2 Voip Overview
2 Voip Overview
Voice Over IP
VoIP Overview
Liibaan 2023
Hormuud UNI
VoIP Goals and Methods
• Telephone Service
• IP Applications
• Managed IP Network
Liibaan 2023
Hormuud UNI
Telephone Service
Liibaan 2023
Hormuud UNI
The meaning of Carrier Grade
• Important characteristics of Carrier Grade
Telephone service include:
– High Availability
– High capacity
– High quality of telephone service
Liibaan 2023
Hormuud UNI
Carrier Grade - Availability
• The network and its associated functions
and components is available 99.999 % of the
time
Liibaan 2023
Hormuud UNI
Carrier Grade - Capacity
• Millions of subscribers can place millions of
simultaneous calls
Liibaan 2023
Hormuud UNI
Carrier Grade - Telephone service
• calls are routed correctly
• calls are connected and disconnected within
a specified short period of time
• voice quality is high, as measured by
industry defined standards
Liibaan 2023
Hormuud UNI
Carrier Grade - Telephone functions
• We associate particular societal functions to
telephone service
• Emergency 911 service is the best example
• Government approved wiretapping is
another
Liibaan 2023
Hormuud UNI
Carrier Grade - Telephone features
• Traditional telephone networks identified
features and for the purpose of sales, they
grouped them into feature packages
• Features in these feature packages include:
• Call Waiting
• Call Forwarding
• Call Forward on Busy
• Message Waiting - LED indicator
• Message Waiting - audible indicator
Liibaan 2023
Hormuud UNI
IP Application
• The IP Protocol Suite places the Application
Layer at its top.
• VoIP is treated as an Application Layer
protocol similar to HTTP, FTP and SMTP.
• Most IP applications grew up after the
Internet Protocol and are optimized for use
on IP networks.
• Telephony grew up before the Internet
Protocol and the PSTN is optimized to
support telephone service.
Liibaan 2023
Hormuud UNI
IP Application Layer
• Applications such as
Telnet, HTTP and FTP Application
developed after [Telnet, SMTP, HTTP, FTP]
TCP/IP.
• VoIP attempts to
create telephone Transport
service using signaling [TCP, UDP, SCTP]
Layer 2 - MAC
Physical
Liibaan 2023
Hormuud UNI
Managed Data Network vs. The Internet
Liibaan 2023
Hormuud UNI
Managed Data Network vs. The Internet
• No one manages the Internet.
• As a result it is not possible to predict the
path a packet of data will take or the time it
will take to traverse the network.
• Block data transfers may consume large
amounts of bandwidth at unpredictable times
and interfere with high priority - real-time
applications such as voice.
Liibaan 2023
Hormuud UNI
Managed Data Network
• A managed IP network has mechanisms in
place to control the allocation of bandwidth
based on routing and priority parameters.
Liibaan 2023
Hormuud UNI
VoIP Method
Liibaan 2023
Hormuud UNI
Similar to SS7 system on PSTN
Liibaan 2023
Hormuud UNI
Signaling Path in the PSTN
Signaling Path
SS7
Voice Path
Overlay Network
Tandem
Switch
Telephone
Telephone
Transport Network
Access Network LE LE Access Network
Switch Switch Telephone
Telephone
Tandem
Switch
Telephone
Telephone
Liibaan 2023
Hormuud UNI
Signaling and Media on the IP Network
End Point
End Point
signaling path
End Point
media path
IP Network
End Point
signaling path
media path
End Point End Point
Liibaan 2023
Hormuud UNI
Signaling
Liibaan 2023
Hormuud UNI
Signaling
• On the traditional PSTN, signaling
information includes:
– Ringing tones
– Dial tone
– Busy signals
– Congestion tones
– DTMF digits
– Dial pulse digits
Liibaan 2023
Hormuud UNI
VoIP Protocols
• In this course we study four VoIP protocols
specified by Internet Engineering Task Force
(IETF.)
– Three of these specifications are Signaling
Protocols:
• SDP - RFC 4566 (formerly RFC 2723)
• MGCP - RFC 3435
• SIP - RFC 3261
– One of them a Media Protocol:
• RTP - RFC 3550
Liibaan 2023
Hormuud UNI
IETF: Internet Engineering Task Force
• RFCs : http://www.ietf.org/rfc.html.
• Working Groups :
http://www.ietf.org/html.charters/wg-dir.html.
Liibaan 2023
Hormuud UNI
IETF: Internet Engineering Task Force
Liibaan 2023
Hormuud UNI
RTP and the Media Stream
Liibaan 2023
Hormuud UNI
RTP Packet
Liibaan 2023
Hormuud UNI
RTP Body
Liibaan 2023
Hormuud UNI
Codecs
• There are three types of Codec:
– Waveform
– Vocoder
– Hybrid
Liibaan 2023
Hormuud UNI
Codec Reference
Liibaan 2023
Hormuud UNI
Information in the IANA Codec list
PT encoding audio/video clock rate channels
name (A/V) (Hz) (audio)
_____________________________________________________________
0 PCMU A 8000 1
1 1016 A 8000 1
2 G721 A 8000 1
3 GSM A 8000 1
4 unassigned A 8000 1
5 DVI4 A 8000 1
6 DVI4 A 16000 1
7 LPC A 8000 1
8 PCMA A 8000 1
9 G722 A 8000 1
10 L16 A 44100 2
11 L16 A 44100 1
96--127 dynamic ?
Liibaan 2023
Hormuud UNI
Why Signaling Protocols?
Liibaan 2023
Hormuud UNI
Why Signaling Protocols?
• How do we create a stream of these packets?
• How do we connect that stream to the
processes that need to receive them?
• How do we alert the end-user that there is a
call?
• How do we disconnect the media stream from
the endpoints?
Liibaan 2023
Hormuud UNI
Why Signaling Protocols?
Liibaan 2023
Hormuud UNI
VoIP Signaling Protocols
Liibaan 2023
Hormuud UNI
VoIP Signaling Protocols
Liibaan 2023
Hormuud UNI
MGCP Architecture
Blue line represents signaling path.
Red line represents talk path.
Network
Telephone
Call Agent Media Gateway
Media Gateway
Telephone
Liibaan 2023
Hormuud UNI
SIP Architecture
1 2 3 1 2 3
4 5 6 4 5 6
7 8 9 7 8 9
* 8 # * 8 #
Location
Service
1 2
4 5
3
6
SIP phone
7 8 9
* 8 #
1 2
4 5
3
6
SIP phone
7 8 9
* 8 #
Redirect Server
1 2 3
4 5 6
7 8 9
* 8 #
Managed IP Network
Liibaan 2023
Hormuud UNI
Signaling Message Structure
• The top line of the SIP and MGCP message together
with a number of header lines describe signaling
events such as ringing, ring-back, and message-
waiting.
Liibaan 2023
Hormuud UNI
Session Description Protocol
• The Session Description Protocol (SDP) is
used to carry the IP Address and UDP port
number of the endpoints of the RTP stream.
• In addition to this address and port information
the SDP carries other information such as…
– Mode - The session can be send-only,
receive-only or send/receive.
– Local Connection Options - The codec and
other details related to the encoding of the
voice.
Liibaan 2023
Hormuud UNI
Example SDP encoding
v=0
o=- 23456789 98765432 IN IP4
192.168.5.7
s=-
c=IN IP4 192.168.5.7
t=0 0
m=audio 6058 RTP/AVP 0
IP Address
Liibaan 2023
Hormuud UNI
Example of MGCP Encoding
200 1059 OK
I: 456789fedcba5
v=0
o=- 23456789 98765432 IN IP4 192.168.5.7
s=-
c=IN IP4 192.168.5.7
t=0 0
m=audio 6058 RTP/AVP 0
Liibaan 2023
Hormuud UNI
SIP Invite Request and headers
Session Initiation Protocol
Request-Line: INVITE sip:[email protected]:5061 SIP/2.0
Message Header
From: "615551111"<sip:1 615551111 @bspgroup1.bsp.vonage.net:5061>;
tag=d82f8c0c-13c5-408a837c-1418ec-4591;user=phone
To: <sip:[email protected]:5061>;user=phone
Call-ID: 94529b7c-30968-1082819452-79026-128603335600569100000000-
[email protected]
CSeq: 1 INVITE
Via: SIP/2.0/UDP 216.47.140.12:5061;branch=z9hG4bK-408a837c-1418ec-7cf6
User-Agent: <Motorola VT1000 mac: 000CE5C7AAB4 sw:VT20_1.1.16e ln:0
cfg:1082817753596>
Max-Forwards: 70
Contact: <sip:[email protected]:5061;transport=UDP;user=phone>
Content-Type: application/SDP
Content-Length:272
Liibaan 2023
Hormuud UNI
SIP Invite Request - body
Message body
Session Description Protocol
Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): 16306144514 1082819452 1082819452
IN IP4 216.47.140.12
Session Name (s): SIP Call
Connection Information (c): IN IP4 216.47.140.12
Time Description, active time (t): 0 0
Media Description, name and address
(m): audio 10000 RTP/AVP 0 2 18 101
Media Attribute (a): rtpmap:0 PCMU/8000
Media Attribute (a): rtpmap:2 G726-32/8000
Media Attribute (a): rtpmap:18 G729/8000
Media Attribute (a): rtpmap:101 telephone-event/8000
Media Attribute (a): fmtp:101 0-15
Media Attribute (a): ptime:20
Liibaan 2023
Hormuud UNI
Web References
• IETF RFCs : http://www.ietf.org/rfc.html
• IETF working groups:
http://www.ietf.org/html.charters/wg-dir.html
• PacketCable Specifications:
http://www.packetcable.com/specifications/
• ETSI free standards download:
http://www.etsi.org/services_products/freestand
ard/home.htm
Liibaan 2023
Hormuud UNI
The End
Liibaan 2023
Hormuud UNI