VOIP Honey+Harish
VOIP Honey+Harish
VOIP Honey+Harish
2 /1 3 /1 4
KH A le ty L s D tle A i bt u r s EY TA te P as N M O t di H GU e to - SH k lic : C Y B RI A H
P I
nd a
VOIP
Voice & video transmission over IP network. Convergence around Internet telephone encompassing fax, data, video, voice. Voice/video broken into chunks, transmitted using Packet Switching and reassembled at the Rx.
2 /1 3 /1 4
Why VOIP??
Cheaper connection(economically) Call from anywhere Less maintenance Improved and expanded features eg. caller id, call waiting, call transfer, repeat dial, return call, call forwarding, three way calling.
2 /1 3 /1 4
VoIP connection
Analog voice digital signals (bits) compression of bits (MP-MLQ,ACELP) Insert voice packets in data packets using a realtime transport protocol (RTP over UDP over IP) Use signaling protocols to call users
How does the communication path get established ? Signaling: defined as procedures undertaken to setup, manage, and terminate session btn two end points Protocols: SIP, H.323, MGCP, MEGACO/H.248
2 /1 3 /1 4
Signaling Systems
Developed by IETF Appl layer control protocol SIP establishes, manages, terminate sessions (multimedia conference, internet telephony, media distribution) Sender/receiver identified by IP address, email, telephone no. 2
1 3/ 1 4/
sip:bob@fhda.edu
E-mail address
sip:bob@408-864-8900
2 /1 3 /1 4
SIP components
Caller: initiates conference Callee: caller invites callee Redirect Server: accepts SIP rqst, maps address, & returns address to client
2 /1 3 /1 4
Location Server: provides services to SIP Redirect or Proxy server regarding callees possible location(s) Registrar Server: accept REGISTER rqst User Agent Client: client appl that initiates SIP rqst User Agent Server: server appl that
2 /1 3 /1 4
2 /1 3 /1 4
SIP Servers
UAS
2 /1 3 /1 4
UAS
SIP Cont..
SIP is text based protocol uses ISO 10646 character set in UTF-8 encoding Rqst msg has header and body Msg can be tx over UDP or TCP Header describes msg structure, callers capability, media type
2 /1 3 /1 4
The protocol is composed of a start line, message header, an empty line and an optional message body Request packet header format:
Method Request URI
SIP version
2 /1 3 /1 4
INVITE
ACK
BYE
OPTIONS
CANCEL
REGISTER
2 /1 3 /1 4
Methods Command INVITE ACK BYE call Function Initiate Call Confirm final response Terminate and transfer
CANCEL Cancel searches, pending rqst and ringing OPTIONS Querry a server about its 2 /1 capability 3 1
4/
Request URL A SIP URL or a general Uniform Resource Identifier, is the user or service to which this request is being addressed SIP version The SIP version being used; this should be version 2.0
2 /1 3 /1 4
1XX
2XX
3XX
4XX
5XX
6XX
Reason phase
2 /1 3 /1 4
SIP version
The SIP version being used
Status Code
A 3-digit integer result code of the attempt to understand and satisfy the request, indicates the current condition of rqst
2 Response Phase /1 3
1 4/
Response codes
Function
Informational (rqst received and processing is continuing) Success(ACK, action received, understood, accepted) Redirection(further action required to process the rqst) Client error(bad syntax in
2 4xx /1 3 /1 4 rqst)
UA1
UA2
INVITE
200 OK ACK
BYE
2 /1 3 /1 4
OK
LS
Location response
UA1
INVITE
200 ACK OK UA2
SIP registration
UA RS
REGIS TER
200 OK
2 /1 3 /1 4
Lo ca tio n
UA1
INVITE
302 MOVED
RS
ACK
0O AC K
IN V 20 ITE
2 /1 3 /1 4
UA2
Lo re cat sp io on n se
qu er y
Location Server RS S
Hardware Interface
ATA
2 /1 3 /1 4
Hardware Interface
IP PHONE
2 /1 3 /1 4
Flavors of VOIP!
Computer-to-computer
Cheapest in VoIP connection (No calling cost) Through Software support U need to have high speed internet connection ,Microphone and sound card
2 /1 3 /1 4
Computer-to-computer
2 /1 3 /1 4
Phone to phone
AT A
2 /1 3 /1 4
IP phone
COMPUTER TO PHONE
2 /1 3 /1 4
IP telephony
2 /1 3 /1 4
IP Protocol Stack
Application Layer Transport Layer Network Layer Data Link Layer Physical Layer
2 /1 3 /1 4
Server
HTTP 200 OK Server: Apache/1.3.0 data.data..data. Segment Application Layer Data Datagram Segment Frames Datagram Data in binary form
VOIP
APPLICATION RTP UDP IP DATA LINK PHYSICAL
2 /1 3 /1 4
RTP Packet
Voice Source is PCM encoded at 64 kbps. Application collects encoded data every 20ms. So 1280 bits or 160 bytes in each chunk.
Sequence Number
Time Stamp
Other fields
Payload Type field is 7 bits long so 2^7 or 128 different payloads can be supported by RTP. For an audio stream, it is used to indicate type of audio encoding (ex PCM, ADM) that is being used. Seq. field is 16 bits long and is used by receiver to detect packet loss. Timestamp field is 32 bits long. It reflects sampling instant of the first byte in RTP data packet. Used by receiver to remove packet jitter introduced in n/w & to provide sync. play out at receiver.
2 /1 3 /1 4
Sending Voice Packets using RTP over UDP over IP Caller (after channel setup)
Voice RTP Packet RTP Packet + UDP header Segment (Source & Destination Port no) Segment + IP header Datagram Source & Destination IP address Datagram + header + trailer Frame Error detection & correction, framing, etc Data converted in binary form and 2 transmitted over transmission line. /1 3 /1 4
Callee
RTP Packet Voice Segment RTP Packet Datagram Segment Frame Datagram Data in binary form
Lost Packet: lost in n/w or delay>400 ms. So no need of retransmission. UDP header 8 bytes, TCP header 20 bytes. Question: What about Lost Packets ?? Forward Error Control Interleaving
2 /1 3 /1 4
Interleaving
2 /1 3 /1 4
Thanks
2 /1 3 /1 4