RTP / RTCP. Announcements. Today s Lecture. RTP Info RTP (RFC 3550) I. Final Exam study guide online. Signup for project demos



Similar documents
Encapsulating Voice in IP Packets

Advanced Networking Voice over IP: RTP/RTCP The transport layer

Voice over IP: RTP/RTCP The transport layer

Unit 23. RTP, VoIP. Shyam Parekh

IP-Telephony Real-Time & Multimedia Protocols

technology standards and protocol for ip telephony solutions

Introduction to VoIP. 陳 懷 恩 博 士 副 教 授 兼 所 長 國 立 宜 蘭 大 學 資 訊 工 程 研 究 所 TEL: # 255

Nortel Technology Standards and Protocol for IP Telephony Solutions

IP - The Internet Protocol

Multimedia Communications Voice over IP

Voice-Over-IP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Transport and Network Layer

An Introduction to VoIP Protocols

Network Layer: Network Layer and IP Protocol

Ethernet. Ethernet. Network Devices

TECHNICAL CHALLENGES OF VoIP BYPASS

Voice over IP. Demonstration 1: VoIP Protocols. Network Environment

VoIP Bandwidth Calculation

8.2 The Internet Protocol

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

point to point and point to multi point calls over IP

Voice over IP. Presentation Outline. Objectives

Module 7 Internet And Internet Protocol Suite

internet technologies and standards

Introduction VOIP in an Network VOIP 3

VOICE over IP H.323 Advanced Computer Network SS2005 Presenter : Vu Thi Anh Nguyet

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

RARP: Reverse Address Resolution Protocol

Audio and Video for the Internet

Protocols. Packets. What's in an IP packet

Internet, Part 2. 1) Session Initiating Protocol (SIP) 2) Quality of Service (QoS) support. 3) Mobility aspects (terminal vs. personal mobility)

Review: Lecture 1 - Internet History

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

How do I get to

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Chapter 9. IP Secure

Network Security Part II: Standards

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Classes of multimedia Applications

Final for ECE374 05/06/13 Solution!!

Chapter 11. User Datagram Protocol (UDP)

An architecture for the delivery. of DVB services over IP networks Rennes, January 2007 INTRODUCTION DIGITAL VIDEO TRANSPORT

QoS and the Advantages of Multimedia over IP

Network Programming TDC 561

Network Security TCP/IP Refresher

Keywords: VoIP calls, packet extraction, packet analysis

Internet Architecture and Philosophy

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Network Layer. Introduction Datagrams and Virtual Circuits Routing Traffic Control. Data delivery from source to destination.

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

VoIP with SIP. Session Initiation Protocol RFC-3261/RFC

ACHILLES CERTIFICATION. SIS Module SLS 1508

Internet Control Protocols Reading: Chapter 3

Internet Working 15th lecture (last but one) Chair of Communication Systems Department of Applied Sciences University of Freiburg 2005

Transport Layer Protocols

Computer Networks. Voice over IP (VoIP) Professor Richard Harris School of Engineering and Advanced Technology (SEAT)

Internet Services & Protocols Multimedia Applications, Voice over IP

Digital Audio and Video Data

IPv6 Fundamentals Ch t ap 1 er I : ntroducti ti t on I o P IPv6 Copyright Cisco Academy Yannis Xydas

Lecture Computer Networks

Broadband Networks. Prof. Dr. Abhay Karandikar. Electrical Engineering Department. Indian Institute of Technology, Bombay. Lecture - 29.

2. IP Networks, IP Hosts and IP Ports

User Datagram Protocol - Wikipedia, the free encyclopedia

Internet Services & Protocols Multimedia Applications, Voice over IP

Metrics One Way. Two way. Availability Other metrics (R, BW,..?) latency packet loss Jitter delay variation. extensions of one-way metrics

Network Simulation Traffic, Paths and Impairment

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

How To Use Wineyeq Vip Call Monitor And Protocol Analyzer

Session Announcement (SAP, RFC 2974) Session Description (SDP, RFC 2327) (SDP, draft-ietf-mmusic-sdp-new-11)

Quality of Service Analysis of site to site for IPSec VPNs for realtime multimedia traffic.

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

Recent advances in transport protocols

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Objectives of Lecture. Network Architecture. Protocols. Contents

Internet Security. Internet Security Voice over IP. Introduction. ETSF10 Internet Protocols ETSF10 Internet Protocols 2011

Basic principles of Voice over IP

The OSI and TCP/IP Models. Lesson 2

CMA5000 SPECIFICATIONS Gigabit Ethernet Module

Overview of TCP/IP. TCP/IP and Internet

Requirements of Voice in an IP Internetwork

Introduction to IP v6

Glossary of Terms and Acronyms for Videoconferencing

Lesson: TANDBERG and IP

2.1 Introduction. 2.2 Voice over IP (VoIP)

VoIP Bandwidth Considerations - design decisions

VoIP QoS. Version 1.0. September 4, AdvancedVoIP.com. Phone:

Session Initiation Protocol (SIP) The Emerging System in IP Telephony

Voice Over IP Per Call Bandwidth Consumption

Clearing the Way for VoIP

Evaluating Data Networks for Voice Readiness

Receiving the IP packets Decoding of the packets Digital-to-analog conversion which reproduces the original voice stream

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

Transcription:

Announcements I. Final Exam study guide online RTP / RTCP Internet Protocols CSC / ECE 573 Fall, 2005 N. C. State University II. III. Signup for project demos Teaching evaluations at end today copyright 2005 Douglas S. Reeves 2 Today s Lecture I. RTP II. RTCP III. Header Compression RTP (Real-Time Protocol) copyright 2005 Douglas S. Reeves 3 RTP Info RTP adds a new header to each packet application application application RTP ICMP TCP ARP IP RARP Ethernet Driver UDP IGMP application RTP (RFC 3550) TCP unacceptable for voice and video why? Preferable: use UDP for transport but UDP is connectionless, no in-order delivery, no detection of losses RTP adds: Payload Type, Sequence #, Timestamp RTP does not guarantee reliable delivery of packets guarantee QoS copyright 2005 Douglas S. Reeves 5 copyright 2005 Douglas S. Reeves 6 1

RTP Functions 1. Payload Type: identification of media stream 2. Timestamp timing reconstruction (for control of playback) synchronization of different media types (e.g., audio + video) 3. Sequence # packet sequencing loss detection (and rate adaptation) copyright 2005 Douglas S. Reeves 7 Translators and Mixers Participants in a multimedia session may use different media formats or compression standards a translator (also called a media gateway) converts from one media format to another Audio from multiple senders can be mixed into a single audio stream by a mixer Audio Source 1 Audio Source 2 media type 1 G.728 G.711 media type 3 GSM Translator GSM media type 2 Mixer GSM copyright 2005 Douglas S. Reeves 8 RTP Header Contents Appears in every data packet, minimum of 12 bytes Byte 1: Version, Padding Flag, Extension Flag, # of Sources (max of 15) Byte 2: Application Marker Flag, Payload Type (7 bits) Bytes 3-4: Sequence Number Bytes 5-8: Timestamp (format is application-specific) Bytes 9-12: SSRC (Synchronization Source Identifier) = random #, not IP address, identifies a single media stream RTP Ports and Profiles RFC 1990 specifies A/V Profiles default Payload Types for common audio and video compression standards (currently: 24 types) Contains mapping of media encoding to payload format default packet rate Allocate a port pair for RTP and RTCP e.g., 5004 for RTP, 5005 for RTCP each media stream (voice, video, etc.) normally has own RTP connection copyright 2005 Douglas S. Reeves 9 copyright 2005 Douglas S. Reeves 10 RTP Timestamps Initial value is random number (i.e., absolute timing not used) Timing rate or resolution is payload-dependent, specified as part of the A/V profile resolution must be sampling rate of the media type (e.g., 8KHz for compressed voice) RTCP (Real-Time Control Protocol) Timestamp in an RTP packet is time of the first sample in the frame copyright 2005 Douglas S. Reeves 11 2

RTCP Purposes Used for negotiation between senders and receivers Reports the quality of the connection between sender and receivers Types of RTCP Messages (Partial) 1. Source Description useful information about the source data 2. Sender Report report current time and amount of data sent so far 3. Receiver Report feedback to sender about what has been received so far 4. Bye source is disconnecting 5. Application-specific copyright 2005 Douglas S. Reeves 13 copyright 2005 Douglas S. Reeves 14 #1: Source Description Message Contains up to 31 Source Descriptors Each Source Descriptor contains Synchronization Source ID (32 bits) some number of TLV (tag, length, value)-encoded fields Examples of standardized fields Name of originator Email address phone number Location #2: Receiver Report Message There is one Source Report Block for each sender about which the receiver is reporting. Contents as follows: 1. SSRC (32 bits) 2. Fraction of blocks lost since last report (out of 255) 8 bits, i.e., 13 = 13/255 = 5% lost 3. Cumulative number of packets lost (24 bits) copyright 2005 Douglas S. Reeves 15 copyright 2005 Douglas S. Reeves 16 Receiver Report Message (con td) 4. Highest sequence number received (32 bits) RTP sequence numbers wrap around after 2 16-1 this is extended sequence number sender report Computing Round-Trip Delay 5. Interarrival Jitter Estimate (32 bits) 6. LSR: Time of last Sender Report (32 bits) in NTP format, just the middle 4 bytes 7. DLSR: Delay since last Sender Report (32 bits) in units of 1/65536 seconds Receiver report copyright 2005 Douglas S. Reeves 17 copyright 2005 Douglas S. Reeves 18 3

RTP Jitter Calculations Jitter: statistical variance of the RTP data interarrival times Symbols for calculations s is the source r is the receiver rr is receiver report jitter estimate is a floating point number rr->jitter field of the receiver report is integer approximation copyright 2005 Douglas S. Reeves 19 RTP Jitter Calculations (cont d) Inputs r->ts = timestamp from the incoming packet arrival = the current time (in the same units) Outputs s->transit = the transit time for the previous packet s->jitter = the estimated jitter int transit = arrival - r->ts; int d = transit - s->transit ; s->transit = transit; s->jitter += (1./16.) * ((double)d - s->jitter); rr->jitter = (u_int32) s->jitter; copyright 2005 Douglas S. Reeves 20 arrival = 1000, r->ts = 700 transit = 300 d = 300 0 = 300 s->transit = 300 s->jitter = 0 + 1/16*(300-0) = 18.75 rr->jitter = 18 next packet Example Initially, s->transit = 0, s->jitter = 0) arrival=1800,r->ts=1700 transit = 100 d = 200 first packet s->transit = 100 s->jitter = 18.75 + 1/16*(200 18.75) = 30.01 rr->jitter = 30 copyright 2005 Douglas S. Reeves 21 Sender Report Message Sender Source ID (SSRC) NTP Timestamp standard representation of time of day, 8 bytes long (better than) nanosecond resolution RTP Timestamp (application specific) (32 bits) Number of packets sent so far (32 bits) Number of bytes sent so far (32 bits) copyright 2005 Douglas S. Reeves 22 Additional RTCP Messages MsgType 4: Bye message SSRCs of sources leaving optionally: reason for leaving MsgType 5: Application-Specific message makes RTCP easily extensible Moderating RTCP Traffic Volume RTCP traffic volume is carefully controlled to prevent excessive overhead RTCP traffic designed to be no more than 5% of the media traffic (RTP) 1.25% allocated to senders, and 3.75% allocated to receivers as number of receivers increases, frequency of response per receiver decreases Minimum packet transmission frequency is 5 seconds copyright 2005 Douglas S. Reeves 23 copyright 2005 Douglas S. Reeves 24 4

Header Compression (RFC 2507) HEADER COMPRESSION Every voice packet may have following overhead IP = 20 bytes UDP = 8 bytes RTP = 12 bytes = 40 bytes per packet! With 20 bytes of payload, 66% of the packet is overhead! this is particularly a problem with slow links (e.g., access network) copyright 2005 Douglas S. Reeves 26 Header Compression (cont d) Q. Why not put more payload per packet? A: larger payload = more packetization delay Goal: reduce packet overhead, but make it transparent to the endpoints solution: compress at the link layer Header Compression Principles Many of the fields in the headers do not change (immutable) same values in packets i, i+1, i+2, transmit value only with first packet e.g., value always = 4 H1 R1 HC #1 R2 HC #2 R3 H2 Many of the fields change by a constant increment between packets, and are therefore predictable transmit with the first packet, + increment value to use e.g., first value = 3000, add 80 for each additional packet copyright 2005 Douglas S. Reeves 27 copyright 2005 Douglas S. Reeves 28 Header Compression Principles (cont d) Many field values change by only small amount use differential coding on these fields e.g., use value from previous packet + 2 Result: substitute for the normal (IP+UDP+RTP) header session index # differences, for differentially-coded fields HC: Identifying Each RTP Session Identifying a session context IP source and destination addresses UDP source and destination ports RTP synchronization source ID (SSRC) Hash this session context to a unique session index # copyright 2005 Douglas S. Reeves 29 copyright 2005 Douglas S. Reeves 30 5

Mutable or Predictable Fields? IPv4 Version (4 bits) Header Length x4 (4) Type of Service (8) Total Length (16) Identification (16) Flags (3) Fragment Offset x8 (13) Time-to-Live (8) Protocol Identifier (8) Header Checksum (16) Source IP Address (32) Destination IP Address (32) IP Options ( 320) Source Port UDP Destination Port Payload Length Checksum RTP Version, Flags, #Sources Marker Flag, Payload Type Sequence # Timestamp SSRC copyright 2005 Douglas S. Reeves 31 HC: Results Amount of compression (typical): from 40 down to 2-4 bytes Success rate of prediction (typical): 95-98% copyright 2005 Douglas S. Reeves 32 Summary RTP and RTCP are widely used for voice and video traffic QoS Next Lecture Provide a number of capabilities, mainly synchronization, QoS adaptation, and playback control Overhead per packet may justify header compression copyright 2005 Douglas S. Reeves 33 copyright 2005 Douglas S. Reeves 34 6