









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Network Client
Decoder
Server
MediaServer Filter
♦ Real-world performance demands
♦ fine-grain adjustment of allocation ♦ dynamic response to variable rates ♦ low programming complexity
3
Dynamic Allocator
Progress Monitor
Scheduling Mechanism Feedback Scheduler
Application-specific progress information
Allocation based on proportion and period
Threads
7
Consumer
Producer
Application
Feedback Scheduler
Monitor Progress
Assign Allocation to Producer, Consumer
Pressure = Fa - Fb
Incoming queue
Outgoing queue Thread
Fa Fb
♦ High pressure: increase CPU allocation/priority ♦ Low pressure: decrease allocation/priority ♦ Goal: keep data flowing smoothly
9
Real-Rate Applications
♦ IP telephony ♦ Videoconferencing ♦ Remote sensors over network
♦ Delay-sensitive z data must be delivered from sender to receiver in bounded time. ♦ Self-rate-regulated z e.g. live video source from camera z break our infinite source assumption
Data Encoding
Data Decoding
Sender-Side
Real-Rate Applications in the Internet
z A real-rate application using a congestion control protocol.
Sender of Congestion Control
Network
Congestion Control Feedback
Receiver of Congestion Control Buffer Buffer
Receiver-Side
13
If Input Rate is Higher Than Output
♦ CBR input ♦ AIMD saw-tooth output ♦ Input rate is higher than the average of the output Rate.
♦ Buffering delay builds up
Application Adaptations
0 Time
Rate
Average Output
0 Time
Buffer Fill-level (Bytes)
Buffering Data
Input Output
QoS Adaptation Based on Local Buffer
z Adaptation: Reducing input rate to be less than the average of output. z System goes to the finite source case!
Real-rate Application Sender Network Buffer
Congestion Control Protocol
Input Rate
Output Rate
Buffering Delay Feedback
0 Time
Rate Average Output Limit
Input
Output Limit
15
App1 App2 App
Manages outgoing network interface bandwidth Buffers & multiplexes different streams Determines inter-packet intervals and overall bandwidth allocation for each stream Conventional End-Host OS uses FCFS policy
♦ Many FTP packets may be inserted between consecutive video packets ♦ FCFS scheduling does not guarantee service intervals
FTP Video
19
♦ Too complex for programmers or users to specify ♦ Bandwidth requirements are not constant
♦ Current schedulers use only resource-level information
♦ Packet scheduler dynamically infers application requirements from protocol state
Network Interface
Socket Layer Protocols Transport Layer Protocols
Applications
Sender-Host Receiver-Host
Network
Sender-side socket buffer
Receiver-side socket buffer
Sender Process Receiver Process
Packet Scheduler
21
Proportion and Period Controller
Reservation-Based Packet Dispatcher Stream-n
Proportion & Period values Socket &Transport Layer Protocols
Buffer Fill-levels Data Stream-1 Packets Network
25
Buffer Fill-Levels Variations
0
100
200
300
400
500
600
1 51 101 151 201 251
Bandwidth Allocation Bandwidth Requirement
Time (10ms)
Rate (Kbytes/Sec)
0
20
40
60
80
100
120
1 51 101 151 201 251
SendBuf Fill-Level Advertise Window Fill-Level Fill-Level Difference
Time (10ms)
Buffer Fill-Level (Percentage)
Step-Input Response
•Controller’s setting: PID parameters (4.0, 0.4, 1.0) and Sampling time (10ms).
27
Progress-driven Packet Scheduler Linux Packet Scheduler
(^1000)
200300
400 500 600700
800 900 1000
1 11 21 31 41 51 61 71 81 91 101 111 121 131 141 151 0 100 200 300 400 500 600 700 800 900 1000
1 51 101 151 201 251 301 351 401 451 501 Time (10ms) Time (10ms)
Rate (Kbytes/Sec) Rate (Kbytes/Sec)
Bandwidth Allocations Bandwidth Allocations (Estimated by the Receive Data Rate)
Real-Rate Stream’s Bandwidth Requirement
Best-effort Stream’s Bandwidth Allocation
Real-Rate Stream’s Bandwidth Allocation
0 100 200 300 400500
600 700 800 900 1000
1 51 101 151 201 251 301 351 401 451 501
Best-Effort Stream Real-Rate Stream (800kBytes/Sec)
Time (10ms) Time (10ms)
Rate (Kbytes/Sec) Rate (Kbytes/Sec)
Bandwidth Allocations Real Usage
(^1000) 200 300400
500600
700800
900 1000
1 51 101 151 201 251 301 351 401 451 501
Best-Effort Stream Real-Rate Stream (800KBytes/Sec)