CPSC 441: Multimedia Networking1 Instructor: Carey Williamson Office: ICT 740 Class Location: MFH 164.

Slides:



Advertisements
Similar presentations
Scalable On-demand Media Streaming Anirban Mahanti Department of Computer Science University of Calgary Canada T2N 1N4.
Advertisements

1 Multimedia Networking EECS 489 Computer Networks Z. Morley Mao Monday March 26, 2007 Acknowledgement: Some.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 25 Multimedia.
1 Multimedia Networking An Overview Done by Abdallah Quffa Khaleel Al Najjar Supervised by: Mr. Ashraf Y. MAghari.
19 – Multimedia Networking. Multimedia Networking7-2 Multimedia and Quality of Service: What is it? multimedia applications: network audio and video (“continuous.
Scalable On-demand Media Streaming with Packet Loss Recovery Anirban Mahanti Department of Computer Science University of Calgary Calgary, AB T2N 1N4 Canada.
1 Providing Quality of Service in the Internet Based on Slides from Ross and Kurose.
Real-Time Protocol (RTP) r Provides standard packet format for real-time application r Typically runs over UDP r Specifies header fields below r Payload.
User Control of Streaming Media: RTSP
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time, Interactive Multimedia: Internet.
Multimedia Networking: An Overview
CPSC 441: Intro, UDP1 Transport Layer Instructor: Carey Williamson Office: ICT Class Location:
Chapter 6 Multimedia Networking Computer Networking: A Top Down Approach Featuring the Internet, 2 nd edition. Jim Kurose, Keith Ross Addison-Wesley, July.
7: Multimedia Networking7-1 Multimedia, Quality of Service: What is it? Multimedia applications: network audio and video (“continuous media”) network provides.
Multimedia Applications
ACN: IntServ and DiffServ1 Integrated Service (IntServ) versus Differentiated Service (Diffserv) Information taken from Kurose and Ross textbook “ Computer.
Chapter 6: Multimedia Networking
CSE 401N Multimedia Networking-2 Lecture-19. Improving QOS in IP Networks Thus far: “making the best of best effort” Future: next generation Internet.
1 CSE 401N Multimedia Networking Lecture Multimedia, Quality of Service: What is it? Multimedia applications: network audio and video network provides.
Chapter 6: Multimedia Networking
CPSC 441: Intro, UDP1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes.
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.
School of Information Technologies IP Quality of Service NETS3303/3603 Weeks
CSc 461/561 CSc 461/561 Multimedia Systems Part C: 3. QoS.
Computer Networking Multimedia.
CS640: Introduction to Computer Networks
RTSP Real Time Streaming Protocol
CIS679: RTP and RTCP r Review of Last Lecture r Streaming from Web Server r RTP and RTCP.
6: Multimedia Networking6a-1 Chapter 6: Multimedia Applications r Multimedia requirements r Streaming r Phone over IP r Recovering from Jitter and Loss.
Multimedia and QoS#1#1 Multimedia Applications. Multimedia and QoS#2#2 Multimedia Applications r Multimedia requirements r Streaming r Recovering from.
Ch 7. Multimedia Networking Myungchul Kim
Integrated Services Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot December 2010 December 2010.
Integrated Services (RFC 1633) r Architecture for providing QoS guarantees to individual application sessions r Call setup: a session requiring QoS guarantees.
1 Integrated and Differentiated Services Multimedia Systems(Module 5 Lesson 4) Summary: r Intserv Architecture RSVP signaling protocol r Diffserv Architecture.
CSE679: QoS Infrastructure to Support Multimedia Communications r Principles r Policing r Scheduling r RSVP r Integrated and Differentiated Services.
CSE QoS in IP. CSE Improving QOS in IP Networks Thus far: “making the best of best effort”
Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot October 2010 October 2010 Ref: Computer Networking:
K. Salah 1 Beyond Best Effort Technologies Our primarily objective here is to understand more on QoS mechanisms so that you can make informed decision.
Streaming Stored Audio and Video (1) and Video (1) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
1 Internet Quality of Service (QoS) By Behzad Akbari Spring 2011 These slides are based on the slides of J. Kurose (UMASS)
CPSC 441: Multimedia Networking1 Outline r Scalable Streaming Techniques r Content Distribution Networks.
November 27 th, 2012 CS1652 Jack Lange University of Pittsburgh 1.
2: Application Layer1 Chapter 2 outline r 2.1 Principles of app layer protocols r 2.2 Web and HTTP r 2.3 FTP r 2.4 Electronic Mail r 2.5 DNS r 2.6 Socket.
11: Multimedia Networking 11-1 Chapter 11 Multimedia Networking A note on the use of these ppt slides: We’re making these slides freely available to all.
Quality of Service in the Internet The slides of part 1-3 are adapted from the slides of chapter 7 published at the companion website of the book: Computer.
Chapter 5: Summary r principles behind data link layer services: m error detection, correction m multiple access protocols m link layer addressing, ARP.
CS640: Introduction to Computer Networks Aditya Akella Lecture 19 - Multimedia Networking.
Multimedia, Quality of Service: What is it?
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time Multimedia: Internet Phone Case.
Making the Best of the Best-Effort Service (2) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
CMPT365 Multimedia Systems 1 Multimedia Networking/Communications Spring 2015 CMPT 365 Multimedia Systems.
Multimedia networking: outline 7.1 multimedia networking applications 7.2 streaming stored video 7.3 voice-over-IP 7.4 protocols for real-time conversational.
03/11/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Streaming 1.
Network Support for QoS – DiffServ and IntServ Hongli Luo CEIT, IPFW.
Multimedia streaming Application Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Querying.
Computer Networking Multimedia. 11/15/20052 Outline Multimedia requirements Streaming Phone over IP Recovering from Jitter and Loss RTP QoS Requirements.
Internet multimedia: simplest approach audio, video not streamed: r no, “pipelining,” long delays until playout! r audio or video stored in file r files.
Ch 6. Multimedia Networking Myungchul Kim
Multimedia: Conferencing 7-1. MM Networking Applications Fundamental characteristics: typically delay sensitive – end-to-end delay – delay jitter loss.
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time, Interactive Multimedia: Internet.
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.
Providing QoS in IP Networks
Multimedia Networking7-1 Chapter 7 Multimedia Networking A note on the use of these ppt slides: We’re making these slides freely available to all (faculty,
19 – Multimedia Networking
University of Pittsburgh
Multimedia Applications
Chapter 25 Multimedia TCP/IP Protocol Suite
CIS679: Two Planes and Int-Serv Model
Multimedia Applications
Presentation transcript:

CPSC 441: Multimedia Networking1 Instructor: Carey Williamson Office: ICT Class Location: MFH 164 Lectures: TR 8:00 – 9:15 Notes derived from “ Computer Networking: A Top Down Approach Featuring the Internet”, 2005, 3 rd edition, Jim Kurose, Keith Ross, Addison-Wesley. Slides are adapted from the companion web site of the book, as modified by Anirban Mahanti (and Carey Williamson). Multimedia Networking

CPSC 441: Multimedia Networking2 Goals Principles r Classify multimedia applications r Identify the network services the apps need r Making the best of best effort service r Mechanisms for providing QoS Protocols and Architectures r Specific protocols for best-effort r Architectures for QoS

CPSC 441: Multimedia Networking3 Why Study Multimedia Networking? r Exciting, industry relevant research topic r Multimedia is everywhere r Tons of open problems

CPSC 441: Multimedia Networking4 Outline r Multimedia Networking Applications m Stored, live, interactive m Multimedia over “Best Effort” Internet m Evolving the Internet to support multimedia applications r Streaming stored audio and video r Scalable Streaming Techniques (Hot Topic) r Content Distribution Networks (Hot Topic) r Beyond Best Effort

CPSC 441: Multimedia Networking5 MM Networking Applications Fundamental characteristics: r Typically delay sensitive m end-to-end delay m delay jitter r But loss tolerant: infrequent losses cause minor glitches r Antithesis of data, which are loss intolerant but delay tolerant. Classes of MM applications: 1) Streaming stored audio and video 2) Streaming live audio and video 3) Real-time interactive audio and video Jitter is the variability of packet delays within the same packet stream

CPSC 441: Multimedia Networking6 Streaming Stored Multimedia (1/2) r VCR-like functionality: client can pause, rewind, FF, push slider bar m 10 sec initial delay OK m 1-2 sec until command effect OK m need a separate control protocol? r timing constraint for still-to-be transmitted data: in time for playout

CPSC 441: Multimedia Networking7 Streaming Stored Multimedia (2/2) 1. video recorded 2. video sent 3. video received, played out at client Cumulative data streaming: at this time, client playing out early part of video, while server still sending later part of video network delay time

CPSC 441: Multimedia Networking8 Streaming Live Multimedia Examples: r Internet radio talk show r Live sporting event Streaming r playback buffer r playback can lag tens of seconds after transmission r still have timing constraint Interactivity r fast forward impossible r rewind, pause possible!

CPSC 441: Multimedia Networking9 Interactive, Real-Time Multimedia r end-end delay requirements: m audio: < 150 msec good, < 400 msec OK includes application-layer (packetization) and network delays higher delays noticeable, impair interactivity r session initialization m how does callee advertise its IP address, port number, encoding algorithms? r applications: IP telephony, video conference, distributed interactive worlds

CPSC 441: Multimedia Networking10 Multimedia Over “Best Effort” Internet r TCP/UDP/IP: no guarantees on delay, loss Today’s multimedia applications implement functionality at the app. layer to mitigate (as best possible) effects of delay, loss But you said multimedia apps requires QoS and level of performance to be effective! ? ? ?? ? ? ? ? ? ? ?

CPSC 441: Multimedia Networking11 How to provide better support for Multimedia? (1/4) Integrated services philosophy: r architecture for providing QOS guarantees in IP networks for individual flows r Fundamental changes in Internet so that apps can reserve end-to-end bandwidth r Components of this architecture are m Admission control m Reservation protocol m Routing protocol m Classifier and route selection m Packet scheduler

CPSC 441: Multimedia Networking12 How to provide better support for Multimedia? (2/4) Concerns with Intserv: r Scalability: signaling, maintaining per-flow router state difficult with large number of flows r Flexible Service Models: Intserv has only two classes. Desire “qualitative” service classes m E.g., Courier, xPress, and normal mail m E.g., First, business, and cattle class Diffserv approach: r simple functions in network core, relatively complex functions at edge routers (or hosts) r Don’t define define service classes, provide functional components to build service classes

CPSC 441: Multimedia Networking13 How to provide better support for Multimedia? (3/4) Content Distribution Networks (CDNs) r Challenging to stream large files (e.g., video) from single origin server in real time r Solution: replicate content at hundreds of servers throughout Internet m content downloaded to CDN servers ahead of time m placing content “close” to user avoids impairments (loss, delay) of sending content over long paths m CDN server typically in edge/access network origin server in North America CDN distribution node CDN server in S. America CDN server in Europe CDN server in Asia

CPSC 441: Multimedia Networking14 How to provide better support for Multimedia? (4/4) R1 R2 R3R4 (a) R1 R2 R3R4 (b) duplicate creation/transmission duplicate Source-duplication versus in-network duplication. (a) source duplication, (b) in-network duplication Multicast/Broadcast

CPSC 441: Multimedia Networking15 Outline r Multimedia Networking Applications r Streaming stored audio and video m Streaming Architectures m Real Time Streaming Protocol m Packet Loss Recovery r Streaming stored audio and video r Scalable Streaming Techniques (Hot Topic) r Content Distribution Networks (Hot Topic) r Beyond Best Effort

CPSC 441: Multimedia Networking16 Internet multimedia: simplest approach audio, video not streamed: r no, “pipelining,” long delays until playout! r audio or video stored in file r files transferred as HTTP object m received in entirety at client m then passed to player

CPSC 441: Multimedia Networking17 Streaming vs. Download of Stored Multimedia Content r Download: Receive entire content before playback begins m High “start-up” delay as media file can be large m ~ 4GB for a 2 hour MPEG II movie r Streaming: Play the media file while it is being received m Reasonable “start-up” delays m Reception Rate >= playback rate. Why?

CPSC 441: Multimedia Networking18 Progressive Download r browser GETs metafile r browser launches player, passing metafile r player contacts server r server downloads audio/video to player

CPSC 441: Multimedia Networking19 Streaming from a Streaming Server r This architecture allows for non-HTTP protocol between server and media player r Can also use UDP instead of TCP. r Example: Browse the Helix product family

CPSC 441: Multimedia Networking20 constant bit rate video transmission Cumulative data time variable network delay client video reception constant bit rate video playout at client client playout delay buffered video Streaming Multimedia: Client Buffering r Client-side buffering, playout delay compensate for network-added delay, delay jitter

CPSC 441: Multimedia Networking21 Streaming Multimedia: Client Buffering r Client-side buffering, playout delay compensate for network-added delay, delay jitter buffered video variable fill rate, x(t) constant drain rate, d

CPSC 441: Multimedia Networking22 Streaming Multimedia: UDP or TCP? UDP r server sends at rate appropriate for client (oblivious to network congestion !) m often send rate = encoding rate = constant rate m then, fill rate = constant rate - packet loss r short playout delay (2-5 seconds) to compensate for network delay jitter r error recover: time permitting TCP r send at maximum possible rate under TCP r fill rate fluctuates due to TCP congestion control r larger playout delay: smooth TCP delivery rate r HTTP/TCP passes more easily through firewalls

CPSC 441: Multimedia Networking23 Fairness of RealVideo Streams (1/2) Media Server FTP Server Media Client FTP Client R1 R Kbps 10 Mbps R1-R2 is the bottleneck link Media Server is DNA Helix Server from RealNetworks Streaming uses UDP at the transport layer; requesting media encoded at 1 Mbps What fraction of the bottleneck is available to FTP? Talk to Sean Boyden if you want to know more

CPSC 441: Multimedia Networking24 Fairness of RealVideo Streams (2/2)

CPSC 441: Multimedia Networking25 Outline r Multimedia Networking Applications r Streaming stored audio and video m Streaming Architectures m Real Time Streaming Protocol m Packet Loss Recovery r Streaming stored audio and video r Scalable Streaming Techniques (Hot Topic) r Content Distribution Networks (Hot Topic) r Beyond Best Effort

CPSC 441: Multimedia Networking26 Real-Time Streaming Protocol (RTSP) HTTP r Does not target multimedia content r No commands for fast forward, etc. RTSP: RFC 2326 r Client-server application layer protocol. r For user to control display: rewind, fast forward, pause, resume, repositioning, etc… What it doesn’t do: r does not define how audio/video is encapsulated for streaming over network r does not restrict how streamed media is transported; it can be transported over UDP or TCP r does not specify how the media player buffers audio/video

CPSC 441: Multimedia Networking27 RTSP Example Scenario: r metafile communicated to web browser r browser launches player r player sets up an RTSP control connection, data connection to streaming server

CPSC 441: Multimedia Networking28 Metafile Example Twister <track type=audio e="PCMU/8000/1" src = "rtsp://audio.example.com/twister/audio.en/lofi"> <track type=audio e="DVI4/16000/2" pt="90 DVI4/8000/1" src="rtsp://audio.example.com/twister/audio.en/hifi"> <track type="video/jpeg" src="rtsp://video.example.com/twister/video">

CPSC 441: Multimedia Networking29 RTSP Operation

CPSC 441: Multimedia Networking30 RTSP Exchange Example C: SETUP rtsp://audio.example.com/twister/audio RTSP/1.0 Transport: rtp/udp; compression; port=3056; mode=PLAY S: RTSP/ OK Session 4231 C: PLAY rtsp://audio.example.com/twister/audio.en/lofi RTSP/1.0 Session: 4231 Range: npt=0- C: PAUSE rtsp://audio.example.com/twister/audio.en/lofi RTSP/1.0 Session: 4231 Range: npt=37 C: TEARDOWN rtsp://audio.example.com/twister/audio.en/lofi RTSP/1.0 Session: 4231 S: OK

CPSC 441: Multimedia Networking31 Outline r Multimedia Networking Applications r Streaming stored audio and video m Streaming Architectures m Real Time Streaming Protocol m Packet Loss Recovery r Streaming stored audio and video r Scalable Streaming Techniques (Hot Topic) r Content Distribution Networks (Hot Topic) r Beyond Best Effort

CPSC 441: Multimedia Networking32 Packet Loss r network loss: IP datagram lost due to network congestion (router buffer overflow) r delay loss: IP datagram arrives too late for playout at receiver m delays: processing, queueing in network; end-system (sender, receiver) delays m Tolerable delay depends on the application r How can packet loss be handled? m We will discuss this next …

CPSC 441: Multimedia Networking33 Receiver-based Packet Loss Recovery r Generate replacement packet m Packet repetition m Interpolation m Other sophisticated schemes r Works when audio/video stream exhibits short- term self-similarity r Works for relatively low loss rates (e.g., < 5%) r Typically, breaks down on “bursty” losses

CPSC 441: Multimedia Networking34 Forward Error Correction (FEC) r for every group of n packets generate k redundant packets r send out n+k packets, increasing the bandwidth by factor k/n. r can reconstruct the original n packets provided at most k packets are lost from the group r Works well at high loss rate (for a proper choice of k) r Handles “bursty” packet losses r Cost: increase in transmission cost (bandwidth)

CPSC 441: Multimedia Networking35 Another FEC Example “piggyback lower quality stream” Example: send lower resolution audio stream as the redundant information Whenever there is non-consecutive loss, the receiver can conceal the loss. Can also append (n-1)st and (n-2)nd low-bit rate chunk

CPSC 441: Multimedia Networking36 Interleaving: Recovery from packet loss Interleaving r Re-sequence packets before transmission r Better handling of “burst” losses r Results in increased playout delay

CPSC 441: Multimedia Networking37 Summary: Internet Multimedia: bag of tricks r use UDP to avoid TCP congestion control (delays) for time-sensitive traffic r client-side adaptive playout delay: to compensate for delay r server side matches stream bandwidth to available client-to-server path bandwidth m chose among pre-encoded stream rates m dynamic server encoding rate r error recovery (on top of UDP) m FEC, interleaving m retransmissions, time permitting m conceal errors: repeat nearby data

CPSC 441: Multimedia Networking38 Outline r Multimedia Networking Applications r Streaming stored audio and video r Scalable Streaming Techniques r Content Distribution Networks r Beyond Best Effort

CPSC 441: Multimedia Networking39 Streaming Popular Content r Consider a popular media file m Playback rate: 1 Mbps m Duration: 90 minutes m Request rate: once every minute r How can a video server handle such high loads? m Approach 1: Start a new “stream” for each request m Allocate server and disk I/O bandwidth for each request m Bandwidth required at server= 1 Mbps x 90

CPSC 441: Multimedia Networking40 Streaming Popular Content using Batching r Approach 2: Leverage the multipoint delivery capability of modern networks r Playback rate = 1 Mbps, duration = 90 minutes r Group requests in non-overlapping intervals of 30 minutes: m Max. start-up delay = 30 minutes m Bandwidth required = 3 channels = 3 Mbps Time (minutes) Channel 1 Channel 2 Channel 3

CPSC 441: Multimedia Networking41 Batching Issues r Bandwidth increases linearly with decrease in start-up delays r Can we reduce or eliminate “start-up” delays? m Periodic Broadcast Protocols m Stream Merging Protocols

CPSC 441: Multimedia Networking42 Periodic Broadcast Example r Partition the media file into 2 segments with relative sizes {1, 2}. For a 90 min. movie: m Segment 1 = 30 minutes, Segment 2 = 60 minutes r Advantage: m Max. start-up delay = 30 minutes m Bandwidth required = 2 channels = 2 Mbps r Disadvantage: Requires increased client capabilities Time (minutes) Channel 1 Channel 2

CPSC 441: Multimedia Networking43 Skyscraper Broadcasts (SB) r Divide the file into K segments of increasing size m Segment size progression: 1, 2, 2, 5, 5, 12, 12, 25, … r Multicast each segment on a separate channel at the playback rate r Aggregate rate to clients: 2 x playback rate [Hua & Sheu 1997]

CPSC 441: Multimedia Networking44 Comparing Batching and SB Server Bandwidth Start-up Delay BatchingSB 1 Mbps90 minutes 2 Mbps45 minutes30 minutes 6 Mbps15 minutes3 minutes 10 Mbps9 minutes30 seconds r Playback rate = 1 Mbps, duration = 90 minutes r Limitations of Skyscraper: m Ad hoc segment size progress m Does not work for low client data rates

CPSC 441: Multimedia Networking45 Reliable Periodic Broadcasts (RPB) r Optimized PB protocols (no packet loss recovery) m client fully downloads each segment before playing m required server bandwidth near minimal m Segment size progression is not ad hoc m Works for client data rates < 2 x playback rate r extend for packet loss recovery r extend for “bursty” packet loss r extend for client heterogeneity [Mahanti et al. 2001, 2003, 2004]

CPSC 441: Multimedia Networking46 Reliable Periodic Broadcasts (RPB) r Optimized PB protocols (no packet loss recovery) m client fully downloads each segment before playing m required server bandwidth near minimal m Segment size progression is not ad hoc m Works for client data rates < 2 x playback rate r extend for packet loss recovery r extend for “bursty” packet loss r extend for client heterogeneity [Mahanti et al. 2001, 2003, 2004] CPSC

CPSC 441: Multimedia Networking47 Optimized Periodic Broadcasts r r = segment streaming rate = 1 r s = maximum # streams client listens to concurrently = 2 r b = client data rate = s x r = 2 r length of first s segments: r length of segment k  s:

CPSC 441: Multimedia Networking48 Outline r Multimedia Networking Applications r Streaming stored audio and video r Scalable Streaming Techniques r Content Distribution Networks r Beyond Best Effort

CPSC 441: Multimedia Networking49 Content distribution networks (CDNs) Content replication r Challenging to stream large files (e.g., video) from single origin server in real time r Solution: replicate content at hundreds of servers throughout Internet m content downloaded to CDN servers ahead of time m placing content “close” to user avoids impairments (loss, delay) of sending content over long paths m CDN server typically in edge/access network origin server in North America CDN distribution node CDN server in S. America CDN server in Europe CDN server in Asia

CPSC 441: Multimedia Networking50 Content distribution networks (CDNs) Content replication r CDN (e.g., Akamai) customer is the content provider (e.g., CNN) r CDN replicates customers’ content in CDN servers. When provider updates content, CDN updates servers origin server in North America CDN distribution node CDN server in S. America CDN server in Europe CDN server in Asia

CPSC 441: Multimedia Networking51 CDN example origin server ( r distributes HTML r replaces: with h ttp:// HTTP request for DNS query for HTTP request for Origin server CDNs authoritative DNS server Nearby CDN server CDN company (cdn.com) r distributes gif files r uses its authoritative DNS server to route redirect requests

CPSC 441: Multimedia Networking52 More about CDNs routing requests r CDN creates a “map”, indicating distances from leaf ISPs and CDN nodes r when query arrives at authoritative DNS server: m server determines ISP from which query originates m uses “map” to determine best CDN server r CDN nodes create application-layer overlay network

CPSC 441: Multimedia Networking53 Outline r Multimedia Networking Applications r Streaming stored audio and video r Scalable Streaming Techniques r Content Distribution Networks r Beyond Best Effort

CPSC 441: Multimedia Networking54 Integrated Services (Intserv) Architecture r architecture for providing QOS guarantees in IP networks for individual flows r flow: a distinguishable stream of distinct IP datagrams m Unidirectional m Multiple recipient r Components of this architecture: m Admission control m Reservation protocol m Routing protocol m Classifier and route selection m Packet scheduler

CPSC 441: Multimedia Networking55 Intserv: QoS guarantee scenario r Resource reservation m call setup, signaling (RSVP) m traffic, QoS declaration m per-element admission control m QoS-sensitive scheduling (e.g., WFQ) request/ reply

CPSC 441: Multimedia Networking56 Call Admission Arriving session must : r declare its QOS requirement m R-spec: defines the QOS being requested r characterize traffic it will send into network m T-spec: defines traffic characteristics r signaling protocol: needed to carry R-spec and T- spec to routers (where reservation is required) m RSVP Need Scheduling and Policing Policies to provide QoS

CPSC 441: Multimedia Networking57 Policing: Token Bucket Token Bucket: limit input to specified Burst Size and Average Rate. r bucket can hold b tokens r tokens generated at rate r token/sec unless bucket full r over interval of length t: number of packets admitted less than or equal to (r t + b).

CPSC 441: Multimedia Networking58 Link Scheduling r scheduling: choose next packet to send on link r FIFO (first in first out) scheduling: send in order of arrival to queue m real-world example? m discard policy: if packet arrives to full queue: who to discard? Tail drop: drop arriving packet priority: drop/remove on priority basis random: drop/remove randomly

CPSC 441: Multimedia Networking59 Round Robin r multiple classes r cyclically scan class queues, serving one from each class (if available) r real world example?

CPSC 441: Multimedia Networking60 Weighted Fair Queuing r generalized Round Robin r each class gets weighted amount of service in each cycle r real-world example?

CPSC 441: Multimedia Networking61 Intserv QoS: Service models [rfc2211, rfc 2212] Guaranteed service: r Assured data rate r A specified upper bound on queuing delay Controlled load service: r "a quality of service closely approximating the QoS that same flow would receive from an unloaded network element.“ r Similar to behavior best effort service in an unloaded network WFQ token rate, r bucket size, b per-flow rate, R D = b/R max arriving traffic

CPSC 441: Multimedia Networking62 Differentiated Services Concerns with Intserv: r Scalability: signaling, maintaining per-flow router state difficult with large number of flows r Flexible Service Models: Intserv has only two classes. Desire “qualitative” service classes m E.g., Courier, xPress, and normal mail m E.g., First, business, and cattle class Diffserv approach: r simple functions in network core, relatively complex functions at edge routers (or hosts) r Don’t define define service classes, provide functional components to build service classes

CPSC 441: Multimedia Networking63 Edge router:  per-flow traffic management  Set the DS field; value determines type of service Core router:  buffering and scheduling based on marking at edge  per-class traffic management Diffserv Architecture scheduling... r b marking

CPSC 441: Multimedia Networking64 Traffic Classification/Conditioning r How can packet marks be carried in IPv4 datagrams? r Sender may agree to conform to a “traffic profile”, thus a leaky bucket policer may be used at the network edge to enforce m Peak rate m Average rate m Burst size r What happens when traffic profile is violated? m Employ traffic shaping?

CPSC 441: Multimedia Networking65 Forwarding (PHB) r PHB result in a different observable (measurable) forwarding performance behavior r PHB does not specify what mechanisms to use to ensure required PHB performance behavior r Examples: m Class A gets x% of outgoing link bandwidth over time intervals of a specified length m Class A packets leave first before packets from class B

CPSC 441: Multimedia Networking66 PHB’s Defined in Diffserv r Expedited Forwarding: pkt departure rate of a class equals or exceeds specified rate m logical link with a minimum guaranteed rate r Assured Forwarding: 4 classes of traffic m each guaranteed minimum amount of bandwidth m each with three drop preference partitions

CPSC 441: Multimedia Networking67 Deployment Issues r Single administrative domain r Incremental deployment r Traffic policing/shaping complexity r Charging models

CPSC 441: Multimedia Networking68 Signaling in the Internet connectionless (stateless) forwarding by IP routers best effort service no network signaling protocols in initial IP design + = r New requirement: reserve resources along end-to-end path (end system, routers) for QoS for multimedia applications r RSVP: Resource Reservation Protocol [RFC 2205] m “ … allow users to communicate requirements to network in robust and efficient way.” i.e., signaling ! r earlier Internet Signaling protocol: ST-II [RFC 1819]

CPSC 441: Multimedia Networking69 RSVP Design Goals 1. accommodate heterogeneous receivers (different bandwidth along paths) 2. accommodate different applications with different resource requirements 3. make multicast a first class service, with adaptation to multicast group membership 4. leverage existing multicast/unicast routing, with adaptation to changes in underlying unicast, multicast routes 5. control protocol overhead to grow (at worst) linear in # receivers 6. modular design for heterogeneous underlying technologies

CPSC 441: Multimedia Networking70 RSVP: does not… r specify how resources are to be reserved r rather: a mechanism for communicating needs r determine routes packets will take r that’s the job of routing protocols r signaling decoupled from routing r interact with forwarding of packets r separation of control (signaling) and data (forwarding) planes

CPSC 441: Multimedia Networking71 Multimedia Networking: Summary r multimedia applications and requirements r making the best of today’s best effort service r scheduling and policing mechanisms r next generation Internet: Intserv, RSVP, Diffserv