Professional Documents
Culture Documents
Fall, 2005
N. C. State University
Today’s Lecture
I. VoIP Protocol Overview
V. QoS Assessment
MGCP
(Master-Slave)
Media Media
H1 H2
Gateway UDP/RTP media stream Gateway
POTS IP POTS
copyright 2005 Douglas S. Reeves 5 copyright 2005 Douglas S. Reeves 6
1
Session Initiation Protocol (RFC 3261) SIP Key Features
• Used to initiate, control, and terminate telephone • Functionality
calls and other services – SIP is complete for setting up point-to-point or
– end-to-end call signaling, possibly involving media multiparty multimedia calls
gateway controllers (MGC) between the end points – extensive call handling capabilities
– media capabilities are negotiated by endpoints
• Properties
– fully distributed (peer to peer) • Flexibility
– text-based (human readable) – URLs are used for addresses (i.e., to locate the callee)
– modeled on HTTP – users can move to new locations and access their full
– “SIP is a much simpler protocol than H.323, but is at telephony features from anywhere
least as functional” – SIP wins – users can define what response they want to give
when contacted (availability, etc.)
copyright 2005 Douglas S. Reeves 7 copyright 2005 Douglas S. Reeves 8
SIP Proxies (i.e., Call Servers) Example: “Basic” SIP Call (No Proxy)
• Users may require the use of SIP proxies, or call
servers, to set up and maintain the call
– find the other party
Source: Carrier Grade Voice Over IP,
D. Collins, McGraw-Hill, 2001
– configure the media gateways
– do user authentication, authorization, and billing
2
Media Negotiation
Source: Carrier Grade Voice Over IP,
• The invitation (from caller to callee) suggests the D. Collins, McGraw-Hill, 2001
PSTN to SIP
Call
• Signaling used for REMARKS ON QOS
“conventional”
(PSTN) phone
calls: SS7/ISUP
• Requires
translation
between SIP and
ISUP
3
Applications That Don’t Need QoS How Good Does QoS Need to Be?
• Elastic applications tolerate “best-effort” Internet
service Voice Video
– web, ftp, mail Bandwidth (kb/s) 5—64 64—5000
– “low” loss rates, variable throughput, and small average
delays are good enough
Maximum tolerable 1-3% 1%
packet drop rate
• Non-interactive (streaming) audio and video are
semi-elastic Maximum Latency < 150ms same
(one-way) (if interactive)
4
Application Bandwidth Variations Network Delay Variations
source: http://www.sprintlabs.com/People/amarko/PAPERS/TON/paper-00149-2002.pdf
• Tradeoff of…
– processing overhead and hardware needed
QoS “MECHANISMS” – perceptual quality desired
5
Application Traffic Descriptors LBAP Illustration
• A popular descriptor: Linear Bounded Arrival
Process (LBAP)
rate ρ
Tokens
a traffic descriptor
• Transmit a packet only when the
• Mechanisms sum of the tokens accumulated ≥
packet size
– leaky bucket size σ
– and remove that amount of tokens
– token bucket from the bucket
6
Token Bucket Shaping Example Token Bucket Shaping Example
• Bucket size σ = 4 tokens • Bucket size σ = 4 tokens
Packet leaving
7
Playout Buffer Management Example
• Voice and video are captured at constant
sampling intervals. Examples…
– voice: 8000 samples / sec = 1 sample every .125 ms
Voice samples
– video: 30 frames / sec = 1 sample every 333 ms
Sender
• Network “jitter” means the packets will not arrive
at the receiver at a steady rate
Voice
– receiver uses a playout buffer to restore smooth Recording Internet Receiver
playback Device
Playout
Buffer
Receiver
= packets used by application without buffering = packets used by application without buffering
= packets used by application with playout buffering = packets used by application with playout buffering
Time Time
= packets used by application without buffering = packets used by application without playout buffering
= packets used by application with playout buffering = packets used by application with playout buffering
Time Time
8
Playout Buffer Illustration Playout Buffer Illustration
= packet arrivals = packet arrivals
= packets used by application with no buffering = packets used by application with no buffering
= packets used by application with playout buffering = packets used by application with playout buffering
Time Time
• No guarantees
– Best Effort Service
9
Route Pinning and Message Propagation Guaranteed Service Delay Bounds
RES
(Flo V RESV RES
SV
R E lo w • Goal: receiver must calculate R, rate to be
(Flow (Flo
V (F e c ) H2
H1
sp e w
c) spec) sp e w
c)
sp
assigned to flow
R2
PA
T
(T s H
pe
R1 PAT
H R3 TH c+
P A sp e c) • Application requirements determine maximum total
c) PATH (Tsp (T sp e
ec+ e
Ads c+ Ad
(Tsp c)
Adsp
e pec
) end-to-end delay bound Dreq
• Route pinning • Computed from information in Tspec and Adspec
– make sure the RESV message retraces the same path – (see RFC 2212)
taken by the PATH message
R5 R5
R2 R4 Access
Access Network
Network
Core routers
10
Expedited Forwarding (EF) PHB Assured Forwarding (AF) PHB
(RFC 2598) (RFC 2597)
• Qualitative guarantee: “low” loss, delay, and jitter • Traffic will be forwarded with "high probability" as
– minimal queuing at routers
long as within subscribed rate
– excess traffic more likely to be discarded
• Policing and shaping needed only at...
• Network must not reorder packets in the same
– access routers, on a per-flow basis
“flow” whether they are in or out of profile
– border routers, on aggregated flows
• Four AF classes, with varying priorities for
• Policing based on simple token bucket
dropping
– packets exceeding the subscribed rate must be
dropped
Streaming
RTP / RTCP
SIP
VoIP
11
Next Lecture
• Nothing!
12