Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Ali Kujoory
9/11/2005
Outline
Part 1 Overview of VOIP
What Is VOIP And Why
VOIP Encapsulation
Voice Compression / Encoding
Voice Requirements
Issues With VOIP
VOIP Security
A Comparison Of Protocols
Back up slides
Quick overview of TCP/IP stack
Ali Kujoory
9/11/2005
9/11/2005
What do you do with the BW that was saved over the network?
Use the BW for other calls or applications an advantage
BW = bandwidth
Ali Kujoory
9/11/2005
What Is VOIP?
A technology for transmitting
ordinary telephone calls over a
packet-switched network, Internet
Also called IP telephony
9/11/2005
9/11/2005
Ali Kujoory
9/11/2005
L2 Header
(3-22)
IP
Header
(20 bytes)
UDP
RTP
Header
Header
(8 bytes) (12 bytes)
Voice payload
(20-160 bytes)
L2
Trailer
(3-4)
Notes
Voice payload comprises one or more frames, each carrying a few encoded voice
samples
IP, UDP, RTP are layers 3, 4, and application protocols, respectively
Some headers can be compressed
Typical Layer 2 protocols are PPP, Frame relay, Ethernet
Layer 2 header and trailer may include flags
PPP = Point-to-Point Protocol, provides framing and link functions
UDP = User Data Protocol, provides transport across networks
RTP = Real-Time Protocol, provides timing and sequencing
Ali Kujoory
9/11/2005
BW
(Kbps)
Codec
Delay
(msec)
64
0.125
G.726 ADPCM
(Adaptive Differential Pulse
Code Modulation)
32
0.125
16
0.625
G.729-CS-ACELP (Conjugate
Structure ACELP)
15
5.3
37.5
Common ITU-T
Recommendations For
Voice Encoding
Ali Kujoory
9/11/2005
Voice
Data
Bit rate
Continuous
Constant Bit Rate (CBR)
Queues must be small
Bursty
Variable Bit Rate (VBR)
Queues can be large
Tolerance to packet
loss/errors
High
< 3 % acceptable packet loss
Uses UDP
Low
Value can change
Usually uses TCP
Tolerance to delay
High
May be acceptable
Can be asynchronous
Unless for real-time data
Tolerance to delay
variation
Low
Otherwise not acceptable
Cause distortion
High
Some delay variation
acceptable
Ali Kujoory
9/11/2005
10
Transmission
Voice compression/decompression
E.g., 0.125 msec for G.711 encoding
Accumulation
To collect several voice samples in a
voice frame before encoding
In turn several speech frames may
be collected in a voice packet
Size depends upon format
Processing
Propagation
Queuing
Buffering time in the gateways and
routers along the path
Can vary
c = Speed of light
Ali Kujoory
9/11/2005
11
Problems
Some delay components are
variable
E.g., queuing delay
Ali Kujoory
9/11/2005
12
Echo
When voice signal passes from the
4-wire to the 2-wire
Some of the energy in 4-wire circuit is
reflected back towards the speaker
Due to impedance mis-match
4-wire is used since long-distance
calls require amplification/direction
Original
signal from
speaker
Transmit pair
from remote
Echoed signal to
speaker
Hybrid
Single
pair
Receive pair
to remote
Class 5 Switch
Ali Kujoory
9/11/2005
13
IETF SIP
Client-Server protocol for telephony applications over IP networks
Moves application control to the endpoints
Supported by some vendors
Microsoft Windows Messenger (Instant Messaging) is based on SIP
Used by some ISPs
IETF = Internet Engineering Task Force
May be more common in future
ISP = Internet Service Provider
MEGACO = MEdia GAteway Control Protocol
MGCP = Media Gateway Controller Protocol
SIP = Session Initiation Protocol
Ali Kujoory
9/11/2005
14
H.323
SIP(RFC 3265)
Designed by
ITU-T
IETF
Yes
Yes
Largely
Compatibility with
Internet
No
Yes
Yes
Call signaling
Media Transport
RTP/RTCP
RTP/RTCP
RTP/RTCP
Multiparty call
Yes
Yes
Yes
Multimedia conference
Yes
In future?
Addressing
Host or telephone #
Telephone # or IP address
URL
Implementation
Moderate
Moderate
Used by
Enterprise networks
Ali Kujoory
9/11/2005
15
SI P
User Agent
Client
End System
RE
SIP-PSTN
Gateway
QU
ES
me T/RE
ssa
S
ges PON
S
PSTN
Phone Adapter
(User Agent)
User Agent
Server
End System
Caller
Called
9/11/2005
16
VOIP
Gateway
IP backbone
Network
IP-based
Soft phone
IP Phones
Anyone connected to the IP network could,
in theory, eavesdrop on voice calls if he/she
had the right hacking and data-sniffing tools
Ali Kujoory
9/11/2005
17
9/11/2005
18
Multicast
Security
Internetworking
Ali Kujoory
9/11/2005
19
Outline
Part 1 Overview of VOIP
What Is VOIP And Why
VOIP Encapsulation
Voice Compression / Encoding
Voice Requirements
Issues With VOIP
VOIP Security
A Comparison Of Protocols
Back up slides
Quick overview of TCP/IP stack
Ali Kujoory
9/11/2005
20
IETF SIP
Client-Server protocol for telephony applications over IP networks
Moves application control to the endpoints
Supported by some vendors
Microsoft Windows Messenger (Instant Messaging) is based on SIP
Used by some ISPs
IETF = Internet Engineering Task Force
May be more common in future
ISP = Internet Service Provider
MEGACO = MEdia GAteway Control Protocol
MGCP = Media Gateway Controller Protocol
SIP = Session Initiation Protocol
Ali Kujoory
9/11/2005
21
Ali Kujoory
9/11/2005
22
H.323
Gatekeeper
Corporation LAN
Gateway
H.323
Internet
Switched
Circuit Network
(POTS and ISDN)
Multi-point Control
Unit
H.320
(over ISDN)
H.324
(over POTS, wireless)
Speech-Only
(telephones)
9/11/2005
23
H.323 Terminal
H.323 Terminal
Component
Functions
Terminal
Gateway (GW)
Gatekeeper (GK)
Conference control
Ali Kujoory
9/11/2005
24
Speech
Handle dialtone,
ringing, connect
and release
Transport, timing,
sequencing
Video
Terminals negotiate on
encodings, bit rate,
Share applications
Control
RTCP
(RTP A/V
Control)
H.225.0
(RAS)
Data
H.245
H.225.0/
(Call/
Q.931/
Call Setup Capability
/Signaling) Control)
UDP
T.120
(Data
Sharing)
TCP
Internet Protocol (IP)
RFC 791
Data Link Protocol
Physical Layer
Bold rectangles represent H.323 scope. Other rectangles support H.323 and provide transport.
RAS = Registration/Admission and Status
RT(C)P = Real-time Transport (Control) Protocol
Ali Kujoory
9/11/2005
25
PictureTel
H.323
PictureTel
PictureTel
PictureTel
TCP connection
H.323
SETUP
ALERTING (optional)
CONNECT (H.245 Address)
TCP connection
H.245 Messages
Open Logical Channels
(my RTCP transport address)
H.245
(over TCP)
Ali Kujoory
9/11/2005
RTP stream
RTP stream
RTCP stream
Media
(over UDP)
26
Applications include
Voice and video communication
Instant messaging (IM)
Voice-enriched e-commerce
Web page click-to-dial
Call control
Ali Kujoory
9/11/2005
27
SIP (2)
A request-response protocol
For telephony applications
Closely resembles HTTP (Web
access) and SMTP (email)
Ali Kujoory
9/11/2005
28
Layers
Application
RSTP
Media
SDP
Media
Coding
SIP
RTP
TCP
Transport
Utility
DNS
RSVP
UDP
IP
Internet
PPP
Data Link
Ethernet
ATM
Copper, Fiber, ..
Physical
9/11/2005
29
SIP Protocols
REQUESTS
INVITE
RESPONSES
1xx - Provisional (Informational)
2xx Success
ACK
Confirm that a session has been initiated
BYE
Request termination of a session
OPTIONS
Query a host about its capabilities
CANCEL
Cancel a pending request
REGISTER
Inform a redirection server about the
users current location
3xx Redirection
Further action must be taken to complete
the request, e.g., 305 = Use Proxy
Ali Kujoory
9/11/2005
30
User Agent
Client
SIP REQUEST
SIP RESPONSE
User Agent
Server
End System
Caller
Called
Message Body:
V=0 /* SDP version*/
/* o=<usrname><session-id><version><net-type><adr-type><addr>*/
o=bell 53655765 2 IN IP4 128.3.4.5
s=Bells Call /* session name*/
i=Mr. Watson, Come here. /* session info*/
/* c=connection information=<net-type><adr-type><addr> */
c=IN IP4 petaluma.comcast.net
/* <media><port><transport><fmt-list> */
m=audio 5004 RTP/AVP 0 3 4 5
Ali Kujoory
9/11/2005
31
Caller
3 REPLY
2 LOOKUP
Proxy
1 INVITE
4 INVITE
6 OK
5 OK
7 ACK
8 ACK
Called
9 Data
9/11/2005
32
Ali Kujoory
9/11/2005
33
or PBX
Media
Gateway
Controller
MEGACO
MEGACO
Originating
Media
Gateway
Packet
Network
Terminating
Media
Gateway
Signaling System No. 7 outof-band signaling
9/11/2005
34
or PBX
Media
Gateway
Controller
MEGACO
Originating
Media
Gateway
Ali Kujoory
9/11/2005
SIGTRAN Signaling
Gateway
SS7
Network
MEGACO
Packet
Network
Trunking
Media
Gateway
PSTN
35
DS1,
DS3
Class 5
Circuit
Switch
Analog,
BRI,
GR303
DS1,
PRI
DS1,
DS3
Signaling
Gateway
Access
Gateway
Trunk
Gateway
Analog,
BRI,
GR303
DS1,
PRI
9/11/2005
36
Add (TerminationID
[,MediaDescriptor]
[,ModemDescriptor]
[,MuxDescriptor]
[,EventsDescriptor]
[,SignalsDescriptor]
[,DigitMapDescriptor]
[,AuditDescriptor]
)
Notes
Commands are responded by
responses in each case
Descriptors specify the properties of a
specific termination
Event example: on-hook, off-hook
Signal example: ringing
Ali Kujoory
9/11/2005
37
H.323
H.248/MEGACO(RFC 3015)
SIP(RFC 3265)
Designed by
ITU-T
IETF
Yes
Yes
Largely
Compatibility with
Internet
No
Yes
Yes
Completeness
Parameter negotiation
Yes
Yes
Call signaling
Message format
Binary
ASCII
ASCII
Media Transport
RTP/RTCP
RTP/RTCP
RTP/RTCP
Multiparty call
Yes
Yes
Yes
Multimedia conference
Yes
In future?
Addressing
Host or telephone #
Telephone # or IP address
URL
Instant messaging
No
No
Yes
Encryption
Yes
Possible
Yes
~1400 pages
~200 pages
~270 pages
Implementation
Moderate
Moderate
Used by
Enterprise networks
Ali Kujoory
9/11/2005
38
*Role of 3GPP/IMS in AT&Ts RSOIP Network, AT&T whitepaper, V. 2.0, August 1, 2005.
Ali Kujoory
9/11/2005
BE = Border
Element
CALEA =
Communicatio
ns Assistance
for Law
Enforcement
Act
CCE = Call
Control
Element
SLEE = Service
Logic
Execution
Environment
OSS =
Operation
Support
System
39
Ali Kujoory
9/11/2005
40
References
ITU-T H.323, Packet Based Multimedia Communications Systems, ITU-T, 11/2000
RFC 2205, Resource ReSerVation Protocol (RSVP) Functional Specification, IETF, September
1997.
RFC 2750, RSVP Extensions for Policy Control, IETF, January 2000 (Updates RFC2205).
RFC 2865, Remote Authentication Dial In User Service (RADIUS), IETF, June 2000 .
RFC 3015, MEGACO Protocol Version 1.0,, IETF, November 2000.
RFC 3054, MEGACO IP Phone Media Gateway Application Profile,IETF, January 2001.
RFC 3550, "A Transport Protocol for Real-Time Applications, IETF, July 2003 (Obsoletes 1889).
RFC 3551, "RTP Profile for Audio and Video Conferences with Minimal Control, IETF, July 2003
(Updated 1890).
RFC 3261, SIP: Session Initiation Protocol," IETF, June 2002.
RFC 3265, Session Initiation Protocol (SIP)-Specific Event Notification, IETF, June 2002
(Updates RFC 3261).
RFC 3266, Support for IPv6 in Session Description Protocol (SDP), IETF, June 2002 (Updates
RFC2327).
RFC 3435, Media Gateway Control Protocol (MGCP), IETF, January 2003 (Obsoletes RFC2705).
AF-SAA-0124.000, "Gateway for H.323 Media Transport Over ATM," ATM Forum, July, 1999.
Computer Networks, Andrew Tanenbaum. 4th ed., Prentice Hall 2003.
Voice over IP, Uyless Black, 2nd ed., Prentice Hall, 2002.
"Putting VOIP to Work: Softswitch Network Design and Testing," Bill Douskalis, Prentice Hall PTR,
2001.
IP Telephony Demystified Ken Camp, McGraw-Hill Companies, 2003.
"Voice-Enabling the Data Network: H.323, MGCP, SIP, QoS, SLAs, and Security," James Durkin,
Prentice Hall, 2003.
Role of 3GPP/IMS in AT&Ts RSOIP Network, AT&T whitepaper, V. 2.0, August 1, 2005.
Ali Kujoory
9/11/2005
41
BACK UP SLIDE
Ali Kujoory
9/11/2005
42
TCP/IP Concepts
Layers
Application
App+Data
TCP
Transport
Send
primitive
Deliver
primitive
IP
Network
DL
Data Link
Physical
PhyL
Ali Kujoory
9/11/2005
43
Ali Kujoory
9/11/2005
44
Ali Kujoory
9/11/2005
45
40
0.125
0.125
92.3
1990
32
0.125
0.125
87.3
1990
16
0.625
10
0.625
87.3
1994
10
80
15
84.3
1996
5.3
30
160
37.5
75.3
1995
6.4
30
192
37.5
74.3
1995
24
0.125
0.125
69.3
1990
16
0.125
0.125
44.3
1990
ADPCM = Adaptive
Differential PCM
ACELP = Algebraic
CELP
CELP = Code
Exited Linear
Prediction
CS-ACELP =
Conjugate Structure
ACELP
LD-CELP = Low
Delay CELP
MPC = Multi-Pulse
Coding
MLQ = Maximum
Likelihood
Quantization
PCM = Pulse Code
Modulation
Use different compression algorithms to make different tradeoffs between voice quality and bandwidth.
E.g., G.723.1 encoding takes a block of 240 samples (30 msec of speech) to reduce to either 24 bytes
or 20 bytes for an output rate of 6.4 kbps or 5.3 kbps (compression factor of 10 or 12).
* From several sources including: Richard Cox, AT&T Labs, IEEE Communications, Sept. 1997, Uyless Black/VOIP
Ali Kujoory
9/11/2005
46
Echo Cancellation
A originates
the call to B
GW = Gateway
Ali Kujoory
9/11/2005
47
Signaling
Gateway
SIP
SIGTRAN
MGC
Residential
Gateway
MEGACO
DS0, DS1
Trunks to
PSTN Switches
Analog Lines
ISDN BRIs
DS1 Trunks
ISDN PRIs
Trunk
Gateway
Access
Gateway
Residential
Phone,
Faxes,
Modems;
Ethernet
PCs
Business
Gateway
Business
Phones,
Faxes,
Modems;
Ethernet
PCs
NGN PBX
Gateway
DS1
Trunks,
ISDN PRIs
to PBXes;
Ethernet to
Routers and
LANs
SIGTRAN = Signaling Transport - an IETF standard that deals with Signaling System #7 (SS7;
specifically Transaction Capabilities Application Part or TCAP-over-IP)
STP = Signaling Transfer Point in SS7
Ali Kujoory
9/11/2005
48
VOIP Signaling
Protocols
Definitions
Components
Related protocols
ITU-T H.323
Packet Based MM
Communications System
Terminal, Gatekeeper,
Gateway, Multi-point
Control Unit
H.225, H.235,
H.245. T.120,
H.26x, G.7xx,
RTP/RTCP
IETF SIP
SDP, RTP/RTCP,
DNS, LDAP,
RSVP, RADIUS
IETF MEGACO
= ITU-T H.248
RTP/RTCP, DNS,
LDAP
Ali Kujoory
9/11/2005
49