Download Batching Issues-Computer Networking and Multimedia Applications-Lecture Slides and more Slides Multimedia Applications in PDF only on Docsity!
41
Batching Issues
ļ² Bandwidth increases linearly with decrease
in start-up delays
ļ² Can we reduce or eliminate āstart-upā
delays?
ļ Periodic Broadcast Protocols
ļ Stream Merging Protocols
42
Periodic Broadcast Example
ļ² Partition the media file into 2 segments with
relative sizes {1, 2}. For a 90 min. movie:
ļ Segment 1 = 30 minutes, Segment 2 = 60 minutes
ļ² Advantage:
ļ Max. start-up delay = 30 minutes ļ Bandwidth required = 2 channels = 2 Mbps
ļ² Disadvantage: Requires increased client capabilities
Time (minutes)
1
2
1 1 1 1 1
2 2
0 30 60 90 120 150 180
Channel 1
Channel 2
docsity.com
44
Comparing Batching and SB
Server Bandwidth
Start-up Delay Batching SB 1 Mbps 90 minutes 90 minutes 2 Mbps 45 minutes 30 minutes 6 Mbps 15 minutes 3 minutes 10 Mbps 9 minutes 30 seconds
ļ² Playback rate = 1 Mbps, duration = 90 minutes
ļ² Limitations of Skyscraper:
ļ Ad hoc segment size progress ļ Does not work for low client data rates
45
Reliable Periodic Broadcasts (RPB)
ļ² Optimized PB protocols (no packet loss recovery)
ļ client fully downloads each segment before playing
ļ required server bandwidth near minimal
ļ Segment size progression is not ad hoc
ļ Works for client data rates < 2 x playback rate
ļ² extend for packet loss recovery
ļ² extend for āburstyā packet loss
ļ² extend for client heterogeneity
[Mahanti et al. 2001, 2003, 2004]
47
Optimized Periodic Broadcasts
ļ² r = segment streaming rate = 1 ļ² s = maximum # streams client listens to concurrently = 2 ļ² b = client data rate = s x r = 2
ļ² length of first s segments:
ļ² length of segment k ļ¾ s:
ļ„
ļ
ļ½
ļ½ ļ«
1
1
1
1 1 k j rlk^ rl lj
ļ„
ļ
ļ½ ļ
ļ½ 1 k^1 j k s rlk^ lj
Channel 1 Channel 2
Channel 3
Channel 4 Channel 5 Channel 6
48
Outline
ļ² Multimedia Networking Applications
ļ² Streaming stored audio and video
ļ² Scalable Streaming Techniques
ļ² Content Distribution Networks
ļ² Beyond Best Effort
50
Content distribution networks (CDNs)
Content replication
ļ² CDN (e.g., Akamai) customer is the content provider (e.g., CNN)
ļ² 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
51
CDN example
origin server (www.foo.com)
ļ² distributes HTML
ļ² replaces:
http://www.foo.com/sports.ruth.gif with http://www.cdn.com/www.foo.com/sports/ruth.gif
HTTP request for www.foo.com/sports/sports.html
DNS query for www.cdn.com
HTTP request for www.cdn.com/www.foo.com/sports/ruth.gif
1 2
3
Origin server
CDNs authoritative DNS server
Nearby CDN server
CDN company (cdn.com)
ļ² distributes gif files
ļ² uses its authoritative
DNS server to route
redirect requests
53
Outline
ļ² Multimedia Networking Applications
ļ² Streaming stored audio and video
ļ² Scalable Streaming Techniques
ļ² Content Distribution Networks
ļ² Beyond Best Effort
54
Integrated Services (Intserv) Architecture
ļ² architecture for providing QOS guarantees in IP
networks for individual flows
ļ² flow: a distinguishable stream of distinct IP
datagrams
ļ Unidirectional ļ Multiple recipient
ļ² Components of this architecture:
ļ Admission control ļ Reservation protocol ļ Routing protocol ļ Classifier and route selection ļ Packet scheduler
56
Call Admission
Arriving session must :
ļ² declare its QOS requirement
ļ R-spec: defines the QOS being requested
ļ² characterize traffic it will send into network
ļ T-spec: defines traffic characteristics
ļ² signaling protocol: needed to carry R-spec and T-
spec to routers (where reservation is required)
ļ RSVP
Need Scheduling and Policing Policies to provide QoS
57
Policing: Token Bucket
Token Bucket: limit input to specified Burst Size
and Average Rate.
ļ² bucket can hold b tokens
ļ² tokens generated at rate r token/sec unless bucket
full
ļ² over interval of length t: number of packets
admitted less than or equal to (r t + b).
59
Round Robin
ļ² multiple classes
ļ² cyclically scan class queues, serving one from each
class (if available)
ļ² real world example?
60
Weighted Fair Queuing
ļ² generalized Round Robin
ļ² each class gets weighted amount of service in each
cycle
ļ² real-world example?