Nepal Telecom Exam Preparation (Level 7) : Dipak Kumar Nidhi
Nepal Telecom Exam Preparation (Level 7) : Dipak Kumar Nidhi
Nepal Telecom Exam Preparation (Level 7) : Dipak Kumar Nidhi
(Level 7)
Dipak Kumar Nidhi
Real Time Protocol
( RTP – Real-Time Transport Protocol )
RTP
A General view of the real-time protocols
• Stream description : SDP, SMIL
Describe the session and content
• Stream Control : RTSP
Remote control the session
• Session Handling : SIP, SAP, SDP
Session initiation, announcement, description
• Media Transport : RTP and RSTP
Send data and metadata
RTP
RTP
Streaming : TCP or UDP ?
Why not TCP?
• Loss retransmission mechanism
• Does not take account for take account for the lost packet and delayed
packet
RTP
• UDP is used to carry pure audio streaming
Like audio and VoIP
The main purpose is to aid the application to know something about the
network and accordingly adapt its behavior.
RTP
Design goal and philosophy
• Flexible
Provide mechanisms, do not dictate algorithm
Instantiations for H261, MPEG 1/2/…
• Protocol neutral
UDP/IP, Private ATM networks…
• Scalable
• Unicast, Multicast, from 2 to …
• Separate control/data
Some functions may be taken over by conference control protocol
(e.g. RTSP)
RTP Requirements
• Meet the requirements of
Interactive multimedia applications (strict real-time constraints)
Streaming application (not so strict)
• Allow similar applications to talk to each other
Negotiate on coding schemes
• Help recipients determine timing relationships among data
Time-stamping
Synchronization of multiple-media
RTP Requirements
• Provide an indication of packet loss
Application needs to handle it
• Provide an indication of “frame boundary”
Differs with respect to applications
Audio—talkspurt
Video– I/P/B frames
• Provide a generic identity for senders
Independent of IP address
• All of this without to much header
RTP Requirements
• Application-level framing
An application knows best what it needs
Have different profiles (formats) for different applications
Advantage : app-specific flexibility
• End-to-end principle
End systems to take responsibility of providing service irrespective
of N/W capabilities
Intelligence in the applications
RTP
UDP RTP Video
IP Header
Header Payload
Header
UDP RTP
RTP Audio
IP Header Header
Payload
Header
RTP operation
RTP Header Format
RTP Header Format
Payload type (7 bits)
• Indicates the type of encoding currently being used
• If the sender changes encoding during call, sender informs receiver via
payload type field
Payload type 0 : PCM -law, 64Kbps
Payload type 3 : GSM , 13Kbps
Payload type 7 : LPC, 2.4Kbps
Payload type 26 : Motion JPEG
Payload type 31 : H.261
Payload type 33 : MPEG2 video
• A counter of ticks
Application Layer
Internet Layer
Link Layer