Professional Documents
Culture Documents
Access network
Access network
Network Access Network Access technology –
technology –
Device (PSTN or Device (PSTN or POTS, mobile
POTS, mobile
Mobile Switch, Edge Mobile Switch, Edge RAN, DSL, Cable
RAN, DSL, Cable
Router, etc.) Router, etc.) modem, etc.
modem, etc.
• Rough answer – add the access costs for the calling and
called party with the cost for transport/termination.
2005: IXCs
network/service (AT&T,MCI,Sprint), 2005: MSOs(Cable Co.),
providers RBOCs, PTTs ITSPs(Level3, iBasis,etc.)
2005:
2005: -Cisco (everything),
- Everything: Lucent, -softswitch:Broadsoft &
Alcatel, Siemens,NEC, Sylantro,
Nortel -SBCs:Acme et.al.(SBCs),
equipment - Enterprise: Nortel, -IP:PBX Microsoft (IP-PBX,
manufactures Avaya, NEC LCS), asterisk (not seriously)
Analog/Twisted Pair
(loop start) POTs from university PBX
IP Phone IP Phone
192.168.1.100 or PROXY 192.168.1.101 or
1.299.373.100 or 192.168.1.1 1.299.373.101 or
sip:phone1@voip.net sip:phone2@voip.net
Signaling messages:
protocol call SIP
IP Phone: IP Phone:
192.168.1.100 192.168.1.101
Media (voice): protocol
called RTP
Talking Talking
No more RTP
Copyright 2003-2010 © by Elliot Eichen. All rights reserved.
Hello World - Morals
• An IP-telephone call is just a series of packets going between computers.
• Call Control:
– Messages between computers setup and tare down calls.
– Messages are sent to ip addresses with well known ports. The messages have a
predefined syntax called a “protocol.”
– Software on computer(s) listens for messages on the well defined ports, and does
stuff like saying “OK, send me the call”, or “BYE, I want to hang up”, or what “codec”
was used to encode the call, or many many other things.
– There are many different protocols for in VoIP for call control: H323, SIP, MGCP, etc.
– Call control packets can be either UDP (best effort), or TCP (in order, acknowledged).
• Media (voice):
– The media (the voice) is sent between ip address on ports that are negotiated during
call setup. The ports do not have to be symmetric.
– There are many difference codecs (or ways to encode the voice stream). They are
typically independent of the signaling protocol (except that they are often negotiated
by the signaling protocol). A codec is a recipe for turning the voice from a microphone
into binary samples (or from samples into a voltage/current to a speaker).
– The protocol for the voice data packets is called RTP - which was defined before IP
Telephony existed. RTP defines how the bits are stored (and some other stuff), but it
doesn’t define the codec.
– RTP is always UDP!
Call Proceeding
Oct 14 16:03:57.677 UTC: ISDN Se1:23: TX -> CALL_PROC pd = 8 callref = 0x8E25
Oct 14 16:03:57.677 UTC: Channel ID i = 0xA98393
Oct 14 16:03:57.677 UTC: Sent: SIP Invite
Oct 14 16:03:57.709 UTC: Sent:
INVITE sip:7818656564@171.78.205.31:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 171.78.205.4:5060
From: "*Conf Rm 27/331" <sip:7818659218@171.78.205.4>;tag=9E874B00-A0A
To: <sip:17818656564@171.78.205.32;user=phone>
Date: Mon, 14 Oct 2002 11:03:57 GMT
Call-ID: 615772B9-DEC511D6-AB63AEB4-CC739108@171.78.205.4
Cisco-Guid: 1632721041-3737457110-2875240116-3430125832
User-Agent: Cisco-SIPGateway/IOS-12.x
CSeq: 101 INVITE
Max-Forwards: 6
Timestamp: 1034611437
Contact: <sip:7818659218@171.78.205.4:5060;user=phone>
Expires: 180
Content-Type: application/sdp
Content-Length: 134
v=0
o=CiscoSystemsSIP-GW-UserAgent 1441 5969 IN IP4 171.78.205.4
s=SIP Call
c=IN IP4 171.78.205.4
t=0 0
m=audio 17986 RTP/AVP 0
Connect ACK
Oct 14 16:04:07.133 UTC: ISDN Se1:23: RX <- CONNECT_ACK pd = 8 callref = 0x0E25
H.323 Version 1 and 2 supports H.245 over TCP, Q.931 over TCP and RAS
over UDP.
H.323 Version 3 and 4 supports H.245 over UDP/TCP and Q.931 over UDP/TCP
and RAS over UDP.
SIP supports TCP and UDP.
Physical
Layer (wire)
Layer 3 (RTP/UDP/IP)
+Layer 2 Encapsulation
40 bytes/sec
∆Delay = buffer (20ms) + codec delay + layer2/3 delay + queuing delay + codec delay
Copyright 2003-2010 © by Elliot Eichen. All rights reserved.
Bandwidth requirement: G729 Example #2
• Assume 60 ms packets.
• Packet payload size = 8 kbits/sec X 60ms = 60 bytes/packet. IP Packet
= 60 bytes.
UDP RTP G729 Payload
IP 20 bytes
8 bytes 12 bytes 60 bytes
Features
• Bitrate 13.33 kbps (399 bits, packetized in 50 bytes) for the frame size of 30 msec and 15.2 kbps
(303 bits, packetized in 38 bytes) for the frame size of 20 msec.
• Basic quality higher then G.729A, high robustness to packet loss.
• Computational complexity in a range of G.729A.
• Royalty Free Codec.
16 kbps
8 kbps
11.8 kbps
For the use in the SDP, the Rtpmap parameter (i.e., PCMU/8000 in
the case of µ-law) is used. Unknown Rtpmap parameters SHOULD
be ignored if theyCopyright
are received.
2003-2010 © by Elliot Eichen. All rights reserved.
.wav
• Microsoft/IBM Spec
• PCM with bandwidth = SxBxC
– S = Sample Rate (samples/sec)
– B = Bits/Sample
– C = Channels
• For example, audio might be 44 kHz sampling rate at 16
bits/sample and 2 channels = 1.4 Mb/s.
• Another example might be voice mail in an email
attachment (try it – right click on a .wav file) – 8kHz
sampling and 16 bits/sample = 124 kb/s.
• Conversion between audio formats! Interesting (how do
you go from compressed format to un-compressed
formats).
Physical
Layer (wire)
Getting from Layer 3 (RTP/UDP/IP)
Layer 2/3
pt A to pt B +Layer 2 Encapsulation
40 bytes/sec
~1-2 packets
Jitter Buffer Codec
PCM