Multimedia networks. Additional references. Jargon. Analog to Digital (S5 4.3) KR: Kurose and Ross chapter 7 (KR3: 3 rd ed)

Similar documents
Multimedia Applications. Classification of Applications. Transport and Network Layer

Mohammad Hossein Manshaei 1393

Real-time Services BUPT/QMUL

EDA095 Audio and Video Streaming

CS519: Computer Networks. Lecture 9: May 03, 2004 Media over Internet

Kommunikationssysteme [KS]

Multimedia Networking

Real-time Services BUPT/QMUL

Computer Networks. Wenzhong Li. Nanjing University

Multimedia Networking

Transporting Voice by Using IP

4 rd class Department of Network College of IT- University of Babylon

RTP. Prof. C. Noronha RTP. Real-Time Transport Protocol RFC 1889

13. Internet Applications 최양희서울대학교컴퓨터공학부

Multimedia networking: outline

ITEC310 Computer Networks II

RTP: A Transport Protocol for Real-Time Applications

EDA095 Audio and Video Streaming

CSC 4900 Computer Networks: Multimedia Applications

Digital Asset Management 5. Streaming multimedia

Real-Time Control Protocol (RTCP)

Multimedia

Provide a generic transport capabilities for real-time multimedia applications Supports both conversational and streaming applications

Popular protocols for serving media

Multimedia Applications. Internet Technologies and Applications

Outline. Multimedia is different Real Time Protocol (RTP) Session Description Protocol (SDP) Session Initiation Protocol (SIP)

CSCD 433/533 Advanced Networks Fall Lecture 14 RTSP and Transport Protocols/ RTP

EDA095 Audio and Video Streaming

Networking Applications

RTP/RTCP protocols. Introduction: What are RTP and RTCP?

Chapter 9. Multimedia Networking. Computer Networking: A Top Down Approach

Ch 4: Multimedia. Fig.4.1 Internet Audio/Video

Chapter 9. Multimedia Networking. Computer Networking: A Top Down Approach

Multimedia in the Internet

Transporting Voice by Using IP

Multimedia Protocols. Foreleser: Carsten Griwodz Mai INF-3190: Multimedia Protocols

Multimedia networking: outline

in the Internet Andrea Bianco Telecommunication Network Group Application taxonomy

TSIN02 - Internetworking

Voice over IP (VoIP)

Department of Computer Science. Burapha University 6 SIP (I)

Video Streaming and Media Session Protocols

Multimedia Networking

Lecture 9: Media over IP

Transport protocols Introduction

Overview. Slide. Special Module on Media Processing and Communication

Real Time Protocols. Overview. Introduction. Tarik Cicic University of Oslo December IETF-suite of real-time protocols data transport:

ITTC Communication Networks The University of Kansas EECS 780 Multimedia and Session Control

TSIN02 - Internetworking

TSIN02 - Internetworking

Lecture 14: Multimedia Communications

Chapter 28. Multimedia

Session Initiation Protocol (SIP) Overview

Quality of Service. Qos Mechanisms. EECS 122: Lecture 15

Today. March 7, 2006 EECS122 Lecture 15 (AKP) 4. D(t) Scheduling Discipline. March 7, 2006 EECS122 Lecture 15 (AKP) 5

Content distribution networks

Provides port number addressing, so that the correct destination application can receive the packet

Chapter 5 VoIP. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March Multmedia Networking

VoIP. ALLPPT.com _ Free PowerPoint Templates, Diagrams and Charts

Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2006

A common issue that affects the QoS of packetized audio is jitter. Voice data requires a constant packet interarrival rate at receivers to convert

Outline. QoS routing in ad-hoc networks. Real-time traffic support. Classification of QoS approaches. QoS design choices

RTP: A Transport Protocol for Real-Time Applications

Multimedia Networking. Protocols for Real-Time Interactive Applications

01-VOIP-ADVANCED Agenda Voice over IP RTP SIP

Application Layer Chapter 7

Multimedia Networking Communication Protocols

Streaming (Multi)media

CS640: Introduction to Computer Networks. Application Classes. Application Classes (more) 11/20/2007

AIMD (additive-increase, multiplicative-decrease),

Chapter 3: IP Multimedia Subsystems and Application-Level Signaling

Introduction to Networked Multimedia An Introduction to RTP p. 3 A Brief History of Audio/Video Networking p. 4 Early Packet Voice and Video

Lecture 7: Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2007

Lecture 7: Internet Streaming Media

Overview of the Session Initiation Protocol

Media Communications Internet Telephony and Teleconference

Medical Sensor Application Framework Based on IMS/SIP Platform

Session Initiation Protocol (SIP) Overview

VoIP Basics. 2005, NETSETRA Corporation Ltd. All rights reserved.

Multimedia Networking. Network Support for Multimedia Applications

Transport Protocols. ISO Defined Types of Network Service: rate and acceptable rate of signaled failures.

TODAY AGENDA. VOIP Mobile IP

CS 218 F Nov 3 lecture: Streaming video/audio Adaptive encoding (eg, layered encoding) TCP friendliness. References:

CS 457 Multimedia Applications. Fall 2014

Multimedia Networking

Transporting audio-video. over the Internet

Internet Streaming Media

Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2007

The Session Initiation Protocol

File transfer. Internet Applications (FTP,WWW, ) Connections. Data connections

Telematics 2 & Performance Evaluation

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Request for Comments: 5109 December 2007 Obsoletes: 2733, 3009 Category: Standards Track. RTP Payload Format for Generic Forward Error Correction

Overview of SIP. Information About SIP. SIP Capabilities. This chapter provides an overview of the Session Initiation Protocol (SIP).

Advanced Computer Networks

Chapter 7 Multimedia Networking

EEC-682/782 Computer Networks I

Multimedia networking: outline

Summary of last time " " "

On the Scalability of RTCP Based Network Tomography for IPTV Services. Ali C. Begen Colin Perkins Joerg Ott

Transcription:

Additional references Multimedia networks KR: Kurose and Ross chapter 7 (KR3: 3 rd ed) C4: Douglas Comer, Internetworking with TCP/IP Vol 1: Principles, Protocols and Architecture 4 th ed, Prentice-Hall 2000, chap 29. S(CNIPT): William Stallings, Computer Networking with Internet Protocols and Technology Pearson Prentice Hall 2004, chap 10. S5: William Stallings, Data and Computer Communications 5 th ed. H5: Fred Halsall, Computer Networking and the Internet, 5 th ed, 2005, chap 8 Jargon Codec: coder/decoder converts audio/video between analog and digital VoIP Voice over IP / Internet phone Analog to Digital (S5 4.3) Sampling theorem Original signal can be fully recovered if it is is sampled at a rate at least twice the bandwidth (or highest frequency) 1

Analog to Digital If sampling rate is too low, reconstruction may be incorrect Pulse Amplitude Modulation Analog pulse height represents signal value at discrete times Pulse Code Modulation 7 6 5 4 3 2 1 0 Quantise pulses and represent as digital output Reconstruction is no longer exact 100 011 011 101 110 101 100 Audio data Telephone speech quality 4kHz 8000 samples/second 128 quantisation levels 7 bits 56kbps 256 levels 8 bits 64kbps CD audio quality 44100 samples/second Frequency range? 16 bits/sample, signed 2 channels 1411.2 kbps Reference: Wikipedia 2

Image data TV resolution PAL 768 X 576 25fps Horizontal resolution actually more like 350 lines Interlaced: vertical resolution reduced to 400 DVD PAL: 704 X 576 (4:3 or 16:9 non-square) HDTV 1080i 25fps interlaced 1920 X 1080 (16:9 square pixels) Compression Lossless Original data can be exactly restored Run-length coding Lempel-Ziv algorithms, LZW Huffman coding Audio lossless Linear prediction FLAC Apple s ALAC Compressed file 40-70% of original size Lossless Compression Images GIF 8 bit image + colour table LZW patent expired 2003-2004 PNG Full colour LZ77 Prediction: Prediction of pixel colour based on previous pixels 85 83 86 84 88 50 20 14 12 08 07 09 10 09 11 85-2 +3-2 +4-38 -30-6 -2-4 -1 +2 +1-1 +2 Lossy Compression Audio Psycho-acoustic MP3 Tightly specified decoder Encoders vary depending on what they discard 32-320kbps (128kbps is common) Variable Bit Rate (individual frames of audio can use different bit rates) 3

MP3 format Frame = header + data Lossy Compression Images JPEG DCT compression artefacts 8kB 3kB From: Wikipedia Lossy Compression Types of multimedia services Video MPEG Intraframe compression (similar to JPEG) Interframe compression Copies data from previous frame, possibly with modifications Independent frame has no dependency on prior frames Streaming stored media Streaming live media Interactive media VoIP 4

QoS challenges (KR) End-to-end delay Jitter Packet resequencing Packet loss QoS work-arounds End-to-end delay No work-around delays play out Jitter Timestamp packets Buffer with increased delay; drop excessively late packets (see packet loss) Packet resequencing Sequence numbers on packets Packet loss Forward Error Correction; interpolation of missing data Delayed play out Acceptable delay Streaming media can accommodate delays up to several seconds VoIP internet phone 150ms unnoticable 400ms tolerable >400ms frustrating or unintelligible conversation Delayed play out Fixed delay Packet generation Packet arrival Missed playout Time After KR fig 7.6 5

Adaptive play out delay (KR) t i = timestamp of packet i r i = time packet i received So delay of packet i is r i t i Estimate Mean end-to-end delay d i = (1 u) d i-1 + u (r i t i ) Variability of end-to-end delay v i = (1 u) v i-1 + u r i t i d i Adaptive play out delay At the start of each talk spurt Calculate playout delay for talk spurt as q i = d i + Kv i Playout time for packet j is then t j + q i Start of talk spurt: Time difference between packets exceeds chunk (e.g. 20ms) Sequence numbers show no missing packet Recovering from packet loss Note: Excessive delay is treated as loss Forward error correction Interleaving Repair FEC Aim: To provide sufficient data to correct packet loss without retransmission Redundant information (e.g. parity block every n blocks) Increases data rate by (n+1)/n Loss may require n-1 packets delay to recover Includes P Loss Recovered 6

FEC Low-resolution version of block n-1 in block n (KR3 fig 7.7) Smaller increase in play out delay Occasional low-quality packet not noticeable Interleaving Interleaving Each packet contains small pieces from a number of intervals (KR3 fig 7.8) Loss Loss Lo-Qual version Repair RTP Real-time transport protocol Repair Packet repetition Interpolation C4 Fig 29.2 VER: Currently 2 SEQUENCE NUM: random start for each session PTYPE: Payload type (KR3 tables 7.1, 7.2) X: Optional extension headers present. P: Indicates if zero padding follows data (used w encryption) M: Marker (e.g. start of video frame) TIMESTAMP: Random start, regular increment, tick rate depends on application SSRC: Source of stream (ID chosen at random, protocol allows for resolving conflicts) CC: Number of CSRC (for mixing) 7

RTP Translator Processes RTP stream e.g. Change format of packet data Reduce data rate (lower quality video/audio) Tunnel RTP packets through a firewall for separate multicasting inside Receive RTP multicast packets and unicast them to individual receivers RTP Mixing Sources unicast to mixer Mixer combines streams and multicasts E.g. mix audio streams SSID of combined stream is mixer CSID s record source SSIDs S1 S2 Mixer R1 R2 R3 RTP in UDP RTP is not usually encapsulated into IP KR3 fig 7.10, 7.11 RTP is encapsulated in UDP UDP provides port number Multiple applications can use RTP on one host RTP uses even UDP port number Session port, not reserved port Application must notify other end RTCP uses the next (odd) UDP port RTCP QoS and congestion control RTCP allows session members to feedback quality of data distribution multicast to all. Identification of users Association of video and audio streams together RTCP report frequency is adjusted depending upon number of participants to limit RTCP traffic to 5% of total session traffic. 8

RTCP sender report (S(CNIPT) pp374-378) SSRC of sender NTP timestamp (64 bits) Corresponding RTP timestamp Count of packets sent in stream Count of octets sent in stream Reports on receiving from other senders Same as for receiver report RTCP receiver report S(CNIPT) fig 10.11 SSRC of sender of report Report blocks for each source SSRC of source Fraction and count of packets lost Extended highest sequence number received Interarrival jitter Abbreviated NTP time of last SR received from sender Delay since receiving last SR from sender Interarrival jitter (S(CNIPT)) S(i) = Timestamp from RTP packet I R(i) = Arrival time of packet i D(i) = R(i) R(i-1) (S(i) S(i-1)) Change in spacing between packets from source to destination J(i) = (1-u) J(i-1) + u D(i) u = 1/16 Estimated average interarrival jitter RTCP source description One or more chunks SSRC or CSRC of contributing source Descriptive items (S(CNIPT) table 10.4) CNAME Canonical name unique in RTP session NAME Real user name EMAIL, PHONE, LOC (geo location) TOOL (application generating stream) NOTE, PRIV (extension) 9

RTCP packet types Sender report Receiver report Source description Goodbye (source no longer active) Application-defined extension VoIP: Internet Phone Establish connection to other user Send/receive audio/video data Manage QoS impacts Described above SIP Session Initiation Protocol Set up, modify, terminate real-time sessions Single media or multimedia Teleconferencing Example: KR3 fig 7.13 SIP features (S(CNIPT) 4.3) User location User can access services from other locations (e.g. telephone) User availability Is called party willing to engage in communication? User capabilities Media to use and parameters 10

SIP features Session setup Point-to-point, multi-party, with agreed parameters Session management Transfer and termination of sessions Modify session parameters SIP interaction Client/server Client: sends SIP requests and receives SIP responses User agent clients Proxies Server: receives SIP requests and sends SIP responses User agent service Proxies, Redirect servers, Registrars SIP network elements (S fig 4.8) User agent (SIP end station) User agent client (UAC): issues SIP requests User agent server (UAS): receives SIP requests and issues responses to accept, reject or redirect Redirect server Responds to calling device telling it to contact the alternate URI SIP network elements Proxy server Routes requests closer to destination May enforce policy Interprets request and may rewrite part of it before forwarding Registrar Accepts REGISTER requests, storing SIP address and corresponding IP address into location service 11

SIP network elements Location service SIP redirect or proxy server queries location service for information about location of the callee Maintains database of SIP address mapped to IP address SIP Example S(CNIPT) Fig 4.9 Alice tries to phone Bob who is not signed in Alice contacts her proxy server (1-2) Alice s proxy server locates Bob s proxy server and contacts it (3-6) Bob s proxy server queries its location service (not a SIP protocol operation) (7-8) Bob is not available (9-12) SIP Example S(CNIPT) fig 4.10, 4.11 Alice requests notification when Bob comes on line (Extension - not yet part of SIP) SIP Example S(CNIPT) fig 4.12 Alice sets up a call to Bob Proxy server has cached DNS data from before (1-4) Location is available (5-6) INVITE is forwarded (7-10) Bob answers (11-13) Direct end-to-end ACK (14) Call proceeds using RTP 12

SIP protocol Requests REGISTER: Notify my current IP address and URL to receive calls INVITE: Establish media session ACK: Confirm reliable message exchange CANCEL: Terminate pending request BYE: Terminate session between two users in a conference OPTIONS: Request information about callee capabilities SIP protocol HTTP syntax E.g. (S(CNIPT) p144) INVITE sip:bob@biloxi.com SIP/2.0 Via: SIP/2.0/UDP 12.26.17.91:5060 Max-Forwards: 70 To: Bob <sip:bob@biloxi.com> From: Alice <sip:alice@atlanta.com>;tag=1928301774 Call-ID: s84b4c76e66710@12.26.17.91 CSeq: 314159 INVITE Contact: <sip:alice@atlanta.com> Content-type: application/sdp Content-length: 142 SIP protocol SIP header fields (S(CNIPT) table 4.8) SIP response codes (S(CNIPT table 4.9) Follow the high-level structure of HTTP code groups Reuse the same response codes with the same meanings (200, 404, etc) SDP session description protocol ASCII text protocol, sent as content of INVITE Describes content of session Media streams with types similar to MIME Destination addresses Sending and receiving UDP ports Payload types Start and stop times (broadcast, e.g. TV) Originator of broadcast streams E.g. (KR3 p606) c=in IP4 167.180.112.24 M=audio 38060 RTP/AVP 0 13

VoIP using SIP SIP and RTP protocol design H5 fig 8.19 SIP ASCII HTTP based Regular use Low bandwidth impact Flexible Negotiations Naming Extensible RTP, RTCP Binary fields Continuous use High bandwidth impact Fixed content Limited extensibility X bit Version number H.323 H5 fig 8.22 RTP H.323 H.225 H.245 T.120 RAS Q.931 H.323 Minimal audio codec: G.711 56kbps or 64kbps PCM Video optional. Minimal video codec: QCIF H.261 (174 X 144 pixels) RAS: resource access service (interactions with gatekeeper) Q.931 signalling (end-to-end) H.245 control (negotiate capabilities and open logical channels) RTP, RTCP: transmission of actual audio/video H5 fig 8.23 14