Transport Layer Doug Young Suh Last update : August 1, 2009 Transport Layer.

Slides:



Advertisements
Similar presentations
Streaming Video over the Internet
Advertisements

RTP/RTCP multimedia protocols for the Internet Center for Software Development CSD, BITS - Pilani CopyRight:
Media: Voice and Video in your SIP Environment Jitendra Shekhawat.
Multimedia Streaming Protocols. signalling and control protocols protocols conveying session setup information and VCR-like commands (play, pause, mute,
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
RTP: A Transport Protocol for Real-Time Applications Provides end-to-end delivery services for data with real-time characteristics, such as interactive.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 25 Multimedia.
1 Chapter 3 TCP and IP. Chapter 3 TCP and IP 2 Introduction Transmission Control Protocol (TCP) Transmission Control Protocol (TCP) User Datagram Protocol.
Decoding Order Recovery in draft-ietf-avt-rtp-svc-08 Ye-Kui Wang, Stephan Wenger, Miska Hannuksela {ye-kui.wang, stephan.wenger,
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 18 – Multimedia Session Protocols Klara Nahrstedt Spring 2011.
User Control of Streaming Media: RTSP
Internet Video By Mo Li. Video over the Internet Introduction Video & Internet: the problems Solutions & Technologies in use Discussion.
Lecture 5 and 6 notes: Reji Mathew & Jian Zhang NICTA & CSE UNSW COMP9519 Multimedia Systems S
Multimedia Applications r Multimedia requirements r Streaming r Phone over IP r Recovering from Jitter and Loss r RTP r Diff-serv, Int-serv, RSVP.
CSc 461/561 CSc 461/561 Multimedia Systems Part C: 1. RTP/RTCP.
K. Salah 1 Chapter 28 VoIP or IP Telephony. K. Salah 2 VoIP Architecture and Protocols Uses one of the two multimedia protocols SIP (Session Initiation.
RTP/RTCP – Real Time Transport Protocol/ Real Time Control Protocol Presented by Manoj Sivakumar.
RTP: A Transport Protocol for Real-Time Applications
RTP/RTCP(RFC 1889) Real-time transport protocol (RTP) is the de facto standard media transport protocol in the Internet Media transport: audio, vedio,
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Streaming Media Protocols Jani Hautakorpi Henry Pohan.
Introduction to SDP Issues. Content Background Goals SDP Primer RTP Primer Use cases “New” Functionalities in SDP Multiple RTP Streams in SDP Decision.
CS640: Introduction to Computer Networks
CS 218 F 2003 Nov 3 lecture:  Streaming video/audio  Adaptive encoding (eg, layered encoding)  TCP friendliness References: r J. Padhye, V.Firoiu, D.
RTSP Real Time Streaming Protocol
CIS679: RTP and RTCP r Review of Last Lecture r Streaming from Web Server r RTP and RTCP.
Streaming Video over the Internet Dapeng Wu Electrical & Computer Engineering University of Florida.
29. Apr INF-3190: Multimedia Protocols Multimedia Protocols Foreleser: Carsten Griwodz
Computer Networks: Multimedia Applications Ivan Marsic Rutgers University Chapter 3 – Multimedia & Real-time Applications.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 4: Multimedia.
1 How Streaming Media Works Bilguun Ginjbaatar IT 665 Nov 14, 2006.
Multimedia Over IP: RTP, RTCP, RTSP “Computer Science” Department of Informatics Athens University of Economics and Business Λουκάς Ελευθέριος.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
Foreleser: Carsten Griwodz
IP Multicast A convention to identify a multicast address Each node must translate between an IP multicast address and a list of networks that contain.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
Video Streaming Concepts Reading: John G. Apostolopoulos, Wai- tian Tan, Susie J. Wee, “Video Streaming: Concepts, Algorithms, and Systems”, HP Laboratories.
1 © NOKIA FILENAMs.PPT/ DATE / NN Helsinki University of Technology Department of Electrical and Communications Engineering Jarkko Kneckt point to point.
Internet Protocol ECS 152B Ref: slides by J. Kurose and K. Ross.
Real Time Protocol (RTP) 김 준
Making the Best of the Best-Effort Service (2) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
Streaming Media Control n The protocol components of the streaming n RTP/RTCP n RVSP n Real-Time Streaming Protocol (RTSP)
報告人:林祐沁 學生 指導教授:童曉儒 老師 March 2, Wireless Video Surveillance Server Based on CDMA1x and H.264.
03/11/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Streaming 1.
Part 2: Making the Best of Best-Effort
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 22 – Multimedia Session Protocols Klara Nahrstedt Spring 2014.
RTP – Real-time Transport Protocol Elbert Tsay, Brad Bargabus, Patrick Lim, Henry Quach The Five Packeteers (minus 1  )
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 20 – Multimedia Session Protocols Klara Nahrstedt Spring 2012.
IETF#64 – 7-11 November 2005 fecframe BOF Chair:Mark Watson Mailing List:
Ch 6. Multimedia Networking Myungchul Kim
CSE5803 Advanced Internet Protocols and Applications (14) Introduction Developed in recent years, for low cost phone calls (long distance in particular).
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
IETF WG Presentation1 Urooj Rab Audio/Video Transport.
1 Internet Telephony: Architecture and Protocols an IETF Perspective Authors:Henning Schulzrinne, Jonathan Rosenberg. Presenter: Sambhrama Mundkur.
RTP Functionalities for RTCWEB A combined view from the authors of draft-cbran-rtcweb-media-00 draft-cbran-rtcweb-media-00 draft-perkins-rtcweb-rtp-usage-02.
3/10/2016 Subject Name: Computer Networks - II Subject Code: 10CS64 Prepared By: Madhuleena Das Department: Computer Science & Engineering Date :
RTP/RTCP/RTSP Ben Biro CISC 856 – Spring '10 University of Delaware Thanks to Professor Amer, Henning Schulzrinne, Colin Perkins, Amit Hetawal.
1-D Interleaved Parity FEC draft-begen-fecframe-interleaved-fec-scheme-00 IETF 72 – July 2008 Ali C. Begen
Multimedia Communication Systems Techniques, Standards, and Networks Chapter 6 Multimedia Communication Across Networks.
Networked Multimedia Basics. Network Characteristics.
The Transport Layer Congestion Control & UDP
Klara Nahrstedt Spring 2012
Klara Nahrstedt Spring 2010
Klara Nahrstedt Spring 2009
RTP: A Transport Protocol for Real-Time Applications
MPEG + RTP.
VOICE AND VIDEO OVER IP VOIP, RTP, RSVP.
RTP: A Transport Protocol for Real-Time Applications
Foreleser: Carsten Griwodz
Presentation transcript:

Transport Layer Doug Young Suh Last update : August 1, 2009 Transport Layer

Contents Transport layer QoS UDP : User Datagram (connection-less) RTP : Realtime Transport (connection-oriented) RFC 3984 RTP Payload format for H.264 Video Transport Layer

Transport layer and Realtime Multimedia Transport Layer Transport layer : end-to-end Flow control : “Send as much as it receives.” Error control : packet loss Nothing to do with the routers

Networked Video Transport layer Call setup : path, resources QoS control : RTP/RTCP QoS enhancement (not standardized, yet) FEC with erasures Interleaving Dejittering buffer Retransmission if allowed Upper Layers Transport Layer Network Layer Data Link Layer Physical Layer Error resilience, scalable coding, rate control FEC, retransmission, flow control Upper Layers Transport Layer Network Layer Data Link Layer Physical Layer Network Layer Data Link Layer Physical Layer Network Layer Data Link Layer Physical Layer Resource allocation …… Mobile terminal Base station VOD Server Routers

Networked Video the avt WG? 8 Areas in IETF ( Applications AreaApplications Area - General AreaGeneral Area Internet AreaInternet Area - Routing AreaRouting Area Security AreaSecurity Area - Sub-IP AreaSub-IP Area Operations and Management Area Transport Area Among 27 working groups in Transport Area (avt-

RTCP (RTP control) In every interval(e.g. 1 sec), exchange RTCP-SR (Sender Report) and RTCP-RR (Receiver Report). Report Packet loss ratio (PLR)  by using SN The receiver counts number of lost RTP packets. Measure RTT (Round Trip Time, but, not one way delay)  by using Time Stamp RTT = T4 – T1 – (T3 – T2) Networked Video senderreceiver RTCP-SR RTCP-RR T1T2 T4 T3

Networked Video Time varying end-to-end QoS (Suwon  Pusan)

Networked Video FEC (forward erasure correction) dataparity lossy channel recovery RFC2733 : XOR-based (one parity packet) IETF : draft-ietf-avt-uxp-02.txt

Networked Video FEC with erasure Erasures : RTP Sequence numbers of lost packets Recover up to N-k lost packets by using RS(N,k) code How to overcome?

Networked Video Interleaving (RFC 3267) to combat against bursty loss : loss rate vs. delay Example) 1) No Interleaving : 2 out of each set of 6 packets ( P1 P2) ( P3 P4)( P5 P6) ( P7 P8) ) Interleaving : up to 12 consecutive packets P1 P3 P5 P7 P9 P11 P2 P4 P6 P8 P10 P12 How to overcome?

RFC 3409 : FEC with UED and UEP XOR based ULP  Increase in data rate P1 P2 P3  RS code with UEP Parity bytes 10 packets Packet size

Introduction to UDP The UDP header (connection-less). Transport Layer

Real-time Transport Protocol (a) The position of RTP (connection-oriented) (b) Packet nesting. Transport Layer

RTP (RFC 3550, 2003) RTP Use Scenarios Simple Multicast Audio Conference Audio and Video Conference Mixers and Translators Layered Encodings RTP Header, RTCP Transport Layer SSRC CSRC

Semantics of fields in RTP Header Marker bit (M): 1 bit Set for the very last packet of the access unit Payload type (PT): 7 bits MPEG-1 Video, MPEG-2 Video, AAC etc. Sequence number (SN): 16 bits decoding order for the NALU. DON (Decoding Order Number) Timestamp: 32 bits the sampling timestamp A 90 kHz clock rate MUST be used. Transport Layer

RFC3550: RTCP(RT Control Protocol, 2003) RTCP SR(Sender Report), RR(Receiver Report) The server monitors round trip time, jitter, and packet loss ratio. Exchanged periodically (<5% bitrate of total) MediaLab, Kyunghee University16

Networked Video RFC3611 RTCP XR(Extended Report, 2003) Block types 1. Loss RLE Report Block  10. post repair RLE Block (2009) 2. Duplicate RLE Report Block 3. Packet Receipt Times Report Block 4. Receiver Reference Time Report Block 5. DLRR Report Block 6. Statistics Summary Report Block 7. VoIP Metrics Report Block Against burst loss (Internet, wireless) 255. reserved for future extensions SDP attributes Attribute name : rtcp-xr Long form: RTP Control Protocol Extended Report Parameters Type of attribute: session and media level loss Run Length Encoding

RFC3550 RTP Translators and Mixers Intermediate systems between “network clouds” Multicast audio and video via firewalls and low bandwidth connections Or IPv4  IPv6 The notation "M1: 48(1,17)" designates a packet originating a mixer M1, identified by M1's (random) SSRC value of 48 and two CSRC identifiers, 1 and 17, copied from the SSRC identifiers of packets from E1 and E MediaLab, Kyunghee University18

Networked Video RFC 3984 : RTP Payload Format for H.264 Video RTP header + NAL header + slice header + coded slice Decoupling sampling/transmission/decoding/presentation time RTP header V(2)+P(1)+X(1)+CC(4)+PT(7)+SN(16)+TS(32)+SSRC(32)+SCRC MANE (Media Aware Network Element) with NAL header F(1) + NRI (2) + NAL Type (5) Packetization 1. A single NALU, 2. Aggregation, 3. Fragmentation Order of packets FEC with RFC 2733 (1999) An RTP Payload Format for Generic Forward Error Correction

RFC 3984 (Feb. 2005) RTP Payload format for H.264/AVC ITU-T Rec. H.264 ISO/IEC IS (MPEG-4 Part 10 AVC) Advanced Video Coding Packetization of one or more Network Abstraction Layer Units (NALUs) Applications simple low bit-rate conversational usage Internet video streaming with interleaved transmission high bit-rate video-on-demand. Transport Layer

RTP and H.264/AVC VCL (Video Coding Layer) NAL (Network Abstraction Layer) RTP (Realtime Transport Protocol) Transport Layer Slice data NAL header RTP header

NAL header F (1 bit) : forbidden_zero_bit. 1 as a syntax violation set by MANE NRI (2 bits) nal_ref_idc 00 not used to reconstruct reference Type (5 bits) : nal_unit_type SPS (7), PPS (8), slice data Transport Layer Type (5)NRI (2)F (1)

NAL Types Transport Layer NALU RTP NALU RTP NALU RTP NALU RTP Single NAL Unit packet STAP (Single Time Aggregation Packet) MTAP (Multi Time Aggregation Packet) FU (Fragmentation Unit) picture NALU pictures

NAL Types 0 undefined 1-23 NAL unit Single NAL unit packet per H.264 Single NALU per one RTP packet Low delay conversational, non-interleaved 24 STAP-A Single-time aggregation packet 25 STAP-B Single-time aggregation packet 26 MTAP16 Multi-time aggregation packet 27 MTAP24 Multi-time aggregation packet 28 FU-A Fragmentation unit 29 FU-B Fragmentation unit undefined Transport Layer Type (5)NRI (2)F (1)

An example of MTAP16 packet 16 bits for time stamp offset Transport Layer RTP Header 4 bytes MTAP NAL HDRDecoding order number baseNALU 1 Size NALU 1 DOND NALU 1 TS Offset NAL 1 DATA NALU 1 HDR NALU 2 SizeNALU 2 DOND NALU 2 TS Offset NALU 2 HDR NAL 2 DATA Optional RTP padding 32 bits

NAL Types and NRI NAL Type Content of NALU NRI non-IDR coded slice 10 2 Coded slice data partition A 10 3 Coded slice data partition B 01 4 Coded slice data partition C 01 5 Primary coded picture 11 7, 8 SPS, PPS 11 Sets of SPS and PPS are selected by slice header. 6, Transport Layer

Packetization modes yes = allowed, no = disallowed, ig = ignore Type Packet Single NAL Non-Interleaved Interleaved Unit Mode Mode Mode undefined ig ig ig 1-23 NAL unit yes yes no 24 STAP-A no yes no 25 STAP-B no no yes 26 MTAP16 no no yes 27 MTAP24 no no yes 28 FU-A no yes yes 29 FU-B no no yes undefined ig ig ig Transport Layer

Packetization modes (1) Single NAL Unit Packet Single-time aggregation packet (STAP) aggregates NAL units with identical NALU-time without DON (STAP-A),including DON (STAP-B). Multi-time aggregation packet (MTAP): aggregates NAL units with potentially differing NALU-time 16, 24 differing in the length of the NAL unit timestamp offset Transport Layer

Packetization modes (2) Fragmentation Units (FUs) a NAL unit into several RTP packets Big NAL units (> 64 kbytes) over an IPv4 network Because of a limit of the number of slices per picture For FEC (Forward Error Correction) Especially for SPS, PPS, or Partition A as in RFC 2733 without DON (FU-A), with DON (FU-B). Interleaving (sprop_deint_buf_req MIME parameter) Interleaved (2) : STAP-Bs, MTAPs, FU-As, FU-Bs Non-interleaved (1) : single, STAP-As, FU-As Transport Layer

MANE (Media Aware Network Element) Installed in application layer gateway Parsing RTP header and payload Drop packets due to congestion No duplication Transformation between Single mode and aggregation mode RTP packets An RTP translator is required to handle RTCP as per RFC Considering path MTU size, UEP Transport Layer

Signaling for an RTP Session MIME registration (or SDP) Media Type name: video Media subtype name: H264 Required parameters: none OPTIONAL parameters: profile-level-id max-mbps, max-fs, max-cpb, max-dpb, and max-br redundant-pic-cap, packetization-mode sprop-parameter-sets : stream properties, SPS, PPS max-rcmd-nalu-size: to signal the capabilities of a receiver Transport Layer

SDP in SIP Offer/Answer Offerer -> Answer SDP message: m=video RTP/AVP a=rtpmap:98 H264/90000 a=fmtp:98 profile-level-id=42A01E; packetization-mode=0; sprop-parameter-sets=Z0IACpZTBYmI,aMljiA== a=rtpmap:99 H264/90000 a=fmtp:99 profile-level-id=42A01E; packetization-mode=1; sprop-parameter-sets=Z0IACpZTBYmI,aMljiA== a=rtpmap:100 H264/90000 a=fmtp:100 profile-level-id=42A01E; packetization-mode=2; sprop-parameter-sets=Z0IACpZTBYmI,aMljiA==; sprop-interleaving-depth=45; sprop-deint-buf- req=64000; sprop-init-buf-time=102478; deint-buf-cap= Transport Layer

Transporting parameter set NALUs 3 Ways 1. Using a session control protocol (out-of-band) prior to the actual RTP session. 2. Using a session control protocol (out-of-band) during an ongoing RTP session. 3. Within the RTP stream in the payload (in-band) during an ongoing RTP session. Transport Layer

Security Issues Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K. Norrman, "The Secure Real-time Transport Protocol (SRTP)", RFC 3711, March data origin authentication data integrity protection Denial of service H.264 is vulnerable to such attack. complex to decode cause the receiver to be overloaded Transport Layer

Congestion Issues In real-time encoding Rate control Pre-coded video Switching by using SI/SP slices of the Extended Profile Switching streams at IDR picture boundaries Terminate and re-start MANE removes certain unusable packets. Transport Layer

Application Examples Video Telephony According to ITU-T Rec. H.241 in H.323 No Slice Data Partitioning, No NALU Aggregation one-picture-per-one-packet Interleaved using NALU aggregation in H.324M/H.223 AL3 with 100 byte SDU With Data Partitioning : DP and UEP (2733) Video Telephony or Streaming With FUs and Forward Error Correction Streaming Low Bit-Rate Streaming Robust Packet Scheduling Transport Layer

Video Telephony or Streaming with FUs and FEC RFC 2733 repetition or XOR based FEC Residual Packet Loss Ratio 10%  (2,1)  1% Extended Golay (24, 12) 0.01% To reduce delay, FEC applied to FUs or slices of similar length Transport Layer

Decoding Order Number With/without interleaving 11 steps of video processing camera & capturing / pre-encoding buffer encoder / encoded picture buffer transmitter / transmission channel / receiver receiver buffer decoder / decoded picture buffer display Transport Layer

Interleaving and DON Early IDR pictures in sending order... I00 N58 N59 R03 N01 N02 R06 N04 N Receiver buffer... N58 N59 I00 R03 N01 N02 R06 N04 N Receiver buffer after reordering... N58 N59 I00 N01 N02 R03 N04 N I : intra, R : predictive, N : bi-directional Transport Layer

Networked Video RFC5109 ULP(Unequal Loss Protection, 2007) XOR based

Networked Video RFC4588 Feedback/Retransmission (2006) Against burst loss (Internet, wireless) Unicast or (small) multicast real-time applications with relaxed delay bounds (e.g. 2-3 sec in streaming) RTP/AVPF 0: unassigned 1: Picture Loss Indication (PLI) 2: Slice Lost Indication (SLI) 3: Reference Picture Selection Indication (RPSI) …………..

Abbreviations DON: Decoding Order Number DONB: Decoding Order Number Base DOND: Decoding Order Number Difference FEC: Forward Error Correction FU: Fragmentation Unit IDR: Instantaneous Decoding Refresh IEC: International Electrotechnical Commission ISO: International Organization for Standardization ITU-T: International Telecomm. Union, Telecomm. Standardization Sector MANE: Media Aware Network Element MTAP: Multi-Time Aggregation Packet MTAP16: MTAP with 16-bit timestamp offset MTAP24: MTAP with 24-bit timestamp offset NAL: Network Abstraction Layer NALU: NAL Unit SEI: Supplemental Enhancement Information Transport Layer  AU Access Unit  IDR Instantaneous Decoding Refresh  MIME Multipurpose Internet Mail Extensions  RTSP Real-Time Streaming Protocol  SAP Session Announcement Protocol  SDP Session Description Protocol  SIP Session Initiation Protocol  SPS (PPS) Sequence (Picture) Parameter Set  STAP: Single-Time Aggregation Packet  STAP-A: STAP type A  STAP-B: STAP type B  TS: Timestamp  VCL: Video Coding Layer