TDDD82 Secure Mobile Systems Lecture 6: Quality of Service
Mikael Asplund Real-tjme Systems Laboratory Department of Computer and Informatjon Science Linköping University
Based on slides by Simin Nadjm-Tehrani
TDDD82 Secure Mobile Systems Lecture 6: Quality of Service Mikael - - PowerPoint PPT Presentation
TDDD82 Secure Mobile Systems Lecture 6: Quality of Service Mikael Asplund Real-tjme Systems Laboratory Department of Computer and Informatjon Science Linkping University Based on slides by Simin Nadjm-Tehrani Reading Silberschatz et al.
Mikael Asplund Real-tjme Systems Laboratory Department of Computer and Informatjon Science Linköping University
Based on slides by Simin Nadjm-Tehrani
– Chapter 5.1-5.5, 5.8
– To some applicatjons/tasks/messages – If there is overload - which ones?
– Some basic notjons: QoS parameters,
– QoS mechanisms – Intserv, Difgserv
– CPU – Memory – I/O channels – ...
Burst time Interactive Waited 1 5ms Y 1ms 2 10ms N 20ms 3 2ms N 10ms 4 15ms Y 15ms 5 10ms N 40ms
# of processes that complete their execution per time unit
amount of time to execute a particular process
amount of time a process has been waiting in the ready queue
amount of time it takes from when a request was submitted until the first response is produced, not including output (for time-sharing environment)
Process Burst Time P1 24 P2 3 P3
3
P1 P2 P3 24 27 30
P1 P2 P3 24 27 30
Waiting time Pi = start time Pi – time of arrival for Pi
P1 P2 P3 24 27 30
Waiting time Pi = start time Pi – time of arrival for Pi
Suppose that the processes arrive in the order P2 , P3 , P1
P1 P3 P2 6 3 30
– gives minimum average waiting time for a given set of
– Also known as Shortest-Remaining-Time-First (SRTF)
Process Arrival Time Burst Time P1 0.0 7 P2 2.0 4 P3 4.0 1 P4 5.0 4
P1 P3 P2 7 3 16 P4 8 12
Process Arrival Time Burst Time P1 0.0 7 P2 2.0 4 P3 4.0 1 P4 5.0 4
P1 P3 P2 4 2 11 P4 5 7 P2 P1 16
4 . Define:
τ n+1=α t n+(1−α ) τn.
+
+
– preemptive – nonpreemptive
– What are important jobs?
– Starvation – low-priority processes may never execute – Long jobs, even if delayed will monopolize the CPU
– Aging – as time progresses increase the priority of the
– time quantum, usually 10-100 milliseconds.
Process Burst Time P1 53 P2
17
P3 68 P4
24
P1 P2 P3 P4 P1 P3 P4 P1 P3 P3 20 37 57 77 97 117 121 134 154 162
– Increased Q → increased turnaround time
– Increased Q → decreased turnaround time
– No general rule
– Model of source – Model of resource – Model of provider
– When there are overloads some
connectjons/packets/applicatjons are preferred to others
– All should get something (but how much?)
– Adaptjve ones should adapt to make room for non-adaptjve ones
– CPU – Power – Memory (bufger space)
– Bandwidth
– Service commitment: % of dropped packets, average
– Traffjc profjle: defjnitjon of the fmow entjtled to the
– Image quality (resolutjon/sharpness), viewing size,
– Throughput, delay, jituer, loss ratjo, reliability (lack of
– Mail or video conference
– Voice communicatjon or fjle transfer
– MPEG video-on-demand or automated control
– Audio/video streaming or electronic trading
– IP-telephony or A/V on demand (streaming)
– To manage the limited resources in presence of
– Examples:
resources that was given as a traffjc profjle?)
to adapt to agreed resource picture)
specifjed Burst Size and Average Rate.
–
unless bucket is full of tokens.
than or equal to (r t + b).
– Which QoS metric should be prioritjsed?
– No QoS possible
– One queue for each priority – Guaranteed service for high priority fmows – Risk for starvatjon! – What is the delay for a packet with priority i?
idle when there is work to do)
fairness (i.e., no starvatjon)
–
Assign a logical queue for each fmow
–
Serve an infjnitesimal amount from each queue
– Ensures basic fairness – Fails if the packets are not of the same size
– Queues with small packets get more weight to get a fair share – The packets in a fmow should be of the same size
– Not possible, while being work conservatjve (requires
Packet Arrival time Length Prio 1 5 2 2 10 3 3 1 5 4
by a packet in burst b_i:
Usenet News User type A 40% User type B 60% Real-time 30% ftp 5% Real-time … Link
– In reality bufgers (queues) get full during overloads – Shall we drop all the packets arriving afuer the overload
– Can adopt difgerentjated drop policies
– Best efgort – CL: Controlled Load (acceptable service when no
– GS: Guaranteed Service (strict bounds on e-to-e delay)
– GS: the token-bucket-based requirements from a fmow
– A token bucket specifjcatjon
– Service Rate – R
– Slack Term – S
Source RSVP routers
Destination
– Dynamic and major changes in reservatjon – Not all routers RSVP enabled – Set up tjme can be proportjonately long compared to
– Interactjve sessions need to set up at each end
– low-loss, low-latency traffjc
– assurance of delivery under prescribed conditjons
Packet Marked? Token available? Token available? Clear A bit Drop packet Forwarding engine A set P set Token Token No No Not marked