VoIP / Internet Telephony

Slides:



Advertisements
Similar presentations
SIP(Session Initiation Protocol) - SIP Messages
Advertisements

SIP, Presence and Instant Messaging
SIP, Firewalls and NATs Oh My!. SIP Summit SIP, Firewalls and NATs, Oh My! Getting SIP Through Firewalls Firewalls Typically.
1 IP Telephony (VoIP) CSI4118 Fall Introduction (1) A recent application of Internet technology – Voice over IP (VoIP): Transmission of voice.
Gateway and Trunk Concepts Chapter 07. The Process of Converting Voice to Packet 0.
Tom Behrens Adam Muniz. Overview What is VoIP SIP Sessions H.323 Examples Problems.
Voice over IP Fundamentals
Camarillo / Schulzrinne / Kantola November 26th, 2001 SIP over SCTP performance analysis
January 23-26, 2007 Ft. Lauderdale, Florida An introduction to SIP Simon Millard Professional Services Manager Aculab.
TEL500-Voice Communications Session initiation protocol improvement using inter- asterisk exchange Devesh Mendiratta & Sameer Deshmukh MS-Telecommunication.
An Empirical Study of Real Audio Traffic A. Mena and J. Heidemann USC/Information Sciences Institute In Proceedings of IEEE Infocom Tel-Aviv, Israel March.
Session Initiation Protocol (SIP) By: Zhixin Chen.
SIP/RTP/RTCP Implementation by George Fu, UCCS CS 525 Semester Project Fall 2006.
VoIP Using SIP/RTP by George Fu, UCCS CS 522 Semester Project Fall 2004.
K. Salah 1 Chapter 28 VoIP or IP Telephony. K. Salah 2 VoIP Architecture and Protocols Uses one of the two multimedia protocols SIP (Session Initiation.
Introduction to SIP Speaker: Min-Hua Yang Advisor: Ho-Ting Wu Date:2005/3/29.
Secure Telephony Enabled Middle-box (STEM) Maggie Nguyen Dr. Mark Stamp SJSU - CS 265 Spring 2003 STEM is proposed as a solution to network vulnerabilities,
VOIP ENGR 475 – Telecommunications Harding University November 16, 2006 Jonathan White.
1 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Public IP Telephony Introduction to VoIP Cisco Networking Academy Program.
By Stephen Tomko H.323 vs. SIP. Internal PBX Call Extension number is dialed PBX receives extension Routes extension Routes call to the phone Call begins.
Session Initiation Protocol Team Members: Manjiri Ayyar Pallavi Murudkar Sriusha Kottalanka Vamsi Ambati Girish Satya LeeAnn Tam.
P2P VoIP Speaker : Ching Chen Chang Date: 2007/09/27.
Call Control with SIP Brian Elliott, Director of Engineering, NMS.
Packet Filtering Chapter 4. Learning Objectives Understand packets and packet filtering Understand approaches to packet filtering Set specific filtering.
E Multimedia Communications Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
H.323 An International Telecommunications Union (ITU) standard. Architecture consisting of several protocols oG.711: Encoding and decoding of speech (other.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Presented By Team Netgeeks SIP Session Initiation Protocol.
Simon Millard Professional Services Manager Aculab – booth 402 The State of SIP.
Omar A. Abouabdalla Network Research Group (USM) SIP – Functionality and Structure of the Protocol SIP – Functionality and Structure of the Protocol By.
Security, NATs and Firewalls Ingate Systems. Basics of SIP Security.
E Multimedia Communications Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
Voice over IP B 林與絜.
VoIP Signaling Protocols A signaling protocol is a common language spoken by telephones and call-management servers, the PSTN, and legacy PBX systems as.
Introduction to IP Telephony Sunday A. Folayan. VoIP …. A few years ago, everyone struggled to convert data (IP) into sound, and move it over the Public.
| | Internet Technology – Voice over IP Peter Gradwell.
CSE5803 Advanced Internet Protocols and Applications (14) Introduction Developed in recent years, for low cost phone calls (long distance in particular).
1. Layered Architecture of Communication Networks: TCP/IP Model
Ch 6. Multimedia Networking Myungchul Kim
1 Internet Telephony: Architecture and Protocols an IETF Perspective Authors:Henning Schulzrinne, Jonathan Rosenberg. Presenter: Sambhrama Mundkur.
The Session Initiation Protocol - SIP
3/10/2016 Subject Name: Computer Networks - II Subject Code: 10CS64 Prepared By: Madhuleena Das Department: Computer Science & Engineering Date :
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
سمینار تخصصی What is PSTN ? (public switched telephone network) تیرماه 1395.
by Kiran Kumar Devaram Varsha Mahadevan Shashidhar Rampally
Cisco Networking Academy Program
VoIP ALLPPT.com _ Free PowerPoint Templates, Diagrams and Charts.
Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IP Telephony (VoIP).
Session Initiation Protocol
What the OSI Protocol Layers Do
VOICE AND VIDEO OVER IP VOIP, RTP, RSVP.
Understand the OSI Model Part 2
Introduction to Networking
Magda El Zarki Professor, ICS UC, Irvine
Net 431: ADVANCED COMPUTER NETWORKS
Chapter 2 Introduction Application Requirements VS. Transport Services
VOICE OVER INTERNET PROTOCOL
Cisco Networking Academy Program
Cisco Networking Academy Program
Multimedia and Networks
Process-to-Process Delivery:
ENGR 475 – Telecommunications
Network Architecture for Cyberspace
SIP Basics Workshop Dennis Baron July 20, 2005.
OSI Reference Model Unit II
Process-to-Process Delivery: UDP, TCP
網際網路電話系統 期中考重點整理.
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Network programming Lecture 1 Prepared by: Dr. Osama Mokhtar.
Presentation transcript:

VoIP / Internet Telephony Peter Gradwell FBCS www.gradwell.com 01225 800 800 26 Cheltenham St, Bath, BA2 3EX

Gradwell dot com Ltd Founded 1998 whilst an Undergrad Now...30 Staff in Bath 3rd largest UK VoIP Provider for SMEs 30,000 lines on a VoIP platform gives us some interesting lessons to explore

Where does VoIP fit in?

Messaging + Talk

Different Types of VoIP

Voice Protocols All systems use some kind of application protocol to communicate SIP H323 IAX (Inter Asterisk eXchange)‏ Skinny (Cisco Protocol)‏ Audio is transported as RTP

TCP/UDP/Ports Traffic is either TCP or UDP MTU on Ethernet typically 1500 bytes 100 bytes of headers, 1400 bytes of data Lots of packet overhead Socket = IP Address + Port MTU = Max Transfer Unit/A Packet

Good book: If you're interested in more details You can read most of it on amazon

H.323 Point to Point Protocol H.323 is actually a family of protocols H.323 is used a lot on trunk routes, as it's signalling reflects ISDN, but is becoming obsolete Modem over IP Conferencing Fax

Inter-Asterisk eXchange Asterisk is a major OpenSource phone system IAX was invented by Mark Spencer/Digium Single UDP stream – port 4569 Handles the Media inband on the same socket Can support multiple RTP streams Single signalling link Far more bandwidth efficient Also much friendlier for firewalls Pronounced “eeks”

Skinny / SCCP Skinny is a lightweight protocol which allows for efficient communication with Cisco CallManager Not many other people use it, but there is a big Cisco install base Signalling via TCP, Media via RTP/UDP

SIP – Session Initiation Protocol SIP is the dominant VoIP protocol It's a peer to peer protocol, unlike H.323

SIP Addressing SIP is very similar to Email and HTTP URI Address format: sip:peter@gradwell.com sip:100@sip.gradwell.net:5060 sip:441225800800@sip.gradwell.net

Types of SIP Message INVITE—An INVITE method indicates that the recipient user or service is invited to participate in a session. ACK - An ACK request confirms that the UAC has received the final response to an INVITE request. ACK is used only with INVITE requests. ACK is sent end to end for a 200 OK response. OPTIONS—A UA uses the OPTIONS request to query a UAS about its capabilities BYE—A UA uses BYE to request the termination of a previously established session. CANCEL—The CANCEL request enables UACs and network servers to cancel an in-progress request, such as INVITE. This does not affect completed requests in which the UAS had already sent final responses. REGISTER—A client uses a REGISTER request to register its current location information corresponding to the AOR of the user with SIP servers.

SIP Registration Phone registers periodically to tell the SIP server where it is

SIP Call Flow

A Complete Call Often we'll draw SIP call path diagrams out like this for debugging

Debug using wireshark

You can also do redirects

SIP – Just for signalling Register – Hello Invite – Ringing ACK – Please hold OK – Connecting you caller BYE – Nice to talk to you But no sound!

Codecs “Nyquist theorem states that if you sample an analog signal at twice the rate of the highest frequency of interest, you can accurately reconstruct that signal back into its analog form” Audio is sampled at 8k or 16k times per second (Hertz) – Pulse Code Modulation Codecs trade off quality, bandwidth and CPU to produce an RTP data packet Narrow Band (8k) or Wide Band (16k)‏ We waste loads of Bandwidth on packet overhead  Codec BR        NEB  G.711      64 Kbps   87.2 Kbps  G.729       8 Kbps   31.2 Kbps  G.723.1   6.4 Kbps   21.9 Kbps  G.723.1   5.3 Kbps   20.8 Kbps  G.726      32 Kbps   55.2 Kbps  G.726      24 Kbps   47.2 Kbps  G.728      16 Kbps   31.5 Kbps  iLBC       15 Kbps   27.7 Kbps BR = Bit rate NEB = Nominal Ethernet Bandwidth (one direction)‏ Skype uses iLBC and ISAC

RTP RTP is used to send packets and re- assemble them What if? Time stamp Sequence Payload type What if? They arrive out of order - Jitter Or not at all? - Packet Loss

Jitter “Jitter is the variation of packet interarrival time” Jitter is a major problem The internet is asymmetrical Manage the problem with a Jitter buffer ~ 20ms

Packet Loss Typically, each packet is 20ms of voice If we loose one packet, it's not a major problem Cisco implementation replays previous packet

Quality of Service QoS is needed if a network link is congested Routers need to enforce traffic prioritisation across their links How do they decide? Trust the user? - DiffServ, Expedited Forwarding and Low Delay bits in IP header Trust the network – all traffic on port X or from IP address Y is special

QoS Example http://myvoipspeed.visualware.com/servers/lhr.html

Phone numbers 00 44 1225 80 0 800 Typically BT will route/transit the calls inbound from the world, to smaller Telcos Could buy the service from C&W/Kingston Call comes down an ISDN line (SS7 signalling) into a Server and we convert it to SIP BT network is statically routed Customer Intl Country Area Telco

ENUM Phone numbers as domain names My VoIP server can now decide how to route the call 01225 800 810 becomes 0.1.8.0.0.8.5.2.2.1.4.4.e164.arpa. When I look this up I find TEL: 079700NNNNN SIP: 1000200@sip.gradwell.net

ENUM Conceptually Public ENUM is about publishing how you want to receive your phone calls Carrier ENUM is telcos getting a dynamic routing table

SRV Records Can you dial sip:peter@gradwell.com Yes – just do a lookup for the ENUM Records on gradwell.com and make a call to “peter”. Peter = 1000200

Lets make a test call http://www.vaxvoip.com/WebDemo/SoftphoneA/Softphone.HTM login: 2443800 password: Jup5jojo sip proxy: newsip.gradwell.net Outbound proxy: natproxy.gradwell.net:5082 Display name: “test” Then call your mobile – cli should be 02031372331 Now dial inbound, everyones phone should ring! This demo uses an ActiveX control, so only works on windows

Conclusions SIP – Signalling, RTP – Audio But SIP isn't the only game in town RTP is dependent on Network Quality Routing information can be stored in ENUM

Useful Resources www.trixbox.org www.voip-info.org www.asterisk.org www.voip-info.org Great VoIP wiki www.nominet.org.uk/enum Good Enum Primer Cisco Book