Lecture 05: Congestion Control and Qos
Lecture 05: Congestion Control and Qos
QoS
1
Data Traffic
• The main focus of congestion control and quality of
service is data traffic.
• In congestion control we try to avoid traffic
congestion.
• In quality of service, we try to create an appropriate
environment for the traffic.
• So, before talking about congestion control and
quality of service, we discuss the data traffic itself.
2
Figure Traffic descriptors
3
Figure Three traffic profiles
4
Congestion
❑ Congestion in a network may occur if the load on the
network—the number of packets sent to the
network—is greater than the capacity of the
network—the number of packets a network can
handle.
❑ Congestion control refers to the mechanisms and
techniques to control the congestion and keep the
load below the capacity.
5
Figure Queues in a router
6
Figure Packet delay and throughput as functions of load
7
Congestion Control
8
Figure Congestion control categories
9
At Saturation Point
10
Jackson’s Theorem - Application in Packet Switched Networks
Internal load:
L
= i
Packet Switched i=1
Network where:
= total on all links in network
i = load on link i
L = total number of links
Note:
• Internal > offered load
External load, offered to network:
• Average length for all paths:
N N E[number of links in path] = /
= jk
j=1 k=2 • Average number of items waiting
where:
and being served in link i: ri = i Tri
• Average delay of packets sent Notice: As any
= total workload in packets/sec
jk = workload between source j through the network is: i increases,
1 L Mi total delay
and destination k T=
i=1 Ri - Mi increases.
N = total number of (external)
sources and destinations where: M is average packet length and
Ri is the data rate on link i 11
Ideal Performance
12
Ideal Network Utilization
Load:
Ts = L/R
13
Practical Performance
14
Effects of Congestion
15
Effects of Congestion -
No Control
16
Mechanisms for Congestion Control
17
Backpressure
If node becomes congested it can slow down or halt flow of
packets from other nodes
May mean that other nodes have to apply control on
incoming packet rates
Propagates back to source
Can restrict to logical connections generating most traffic
Used in connection oriented that allow hop by hop
congestion control (e.g. X.25)
Not used in ATM nor frame relay
Only recently developed for IP
18
Choke Packet
Control packet
◼ Generated at congested node
◼ Sent to source node
◼ e.g. ICMP source quench
From router or destination
Source cuts back until no more source quench message
Sent for every discarded packet, or anticipated
Rather crude mechanism
19
Implicit Congestion Signaling
20
Explicit Congestion Signaling
21
Categories of Explicit Signaling
Binary
◼ A bit set in a packet indicates congestion
Credit based
◼ Indicates how many packets source may send
◼ Common for end to end flow control
Rate based
◼ Supply explicit data rate limit
◼ e.g. ATM
22
Congestion Control in Packet Switched
Networks
23
ATM Traffic Management
24
Cell Delay Variation
25
Traffic and Congestion Control Framework
26
Traffic Management in Congested Network – Some Considerations
Fairness
◼ Various flows should “suffer” equally
◼ Last-in-first-discarded may not be fair
Quality of Service (QoS)
◼ Flows treated differently, based on need
◼ Voice, video: delay sensitive, loss insensitive
◼ File transfer, mail: delay insensitive, loss sensitive
◼ Interactive computing: delay and loss sensitive
Reservations
◼ Policing: excess traffic discarded or handled on best-
effort basis
27
Frame Relay Congestion Control
Minimize frame discard
Maintain QoS (per-connection bandwidth)
Minimize monopolization of network
Simple to implement, little overhead
Minimal additional network traffic
Resources distributed fairly
Limit spread of congestion
Operate effectively regardless of flow
Have minimum impact other systems in network
Minimize variance in QoS
28
Congestion Avoidance with Explicit Signaling
Two general strategies considered:
Hypothesis 1: Congestion always occurs
slowly, almost always at egress nodes
◼ forward explicit congestion avoidance
Hypothesis 2: Congestion grows very quickly
in internal nodes and requires quick action
◼ backward explicit congestion avoidance
29
Congestion Control: BECN/FECN
30
FR - 2 Bits for Explicit Signaling
31
Frame Relay Traffic Rate Management Parameters
32
Committed Information Rate (CIR)
Operation
Current rate at which
user is sending over the
channel
Average data rate
(bps) committed to
the user by the Maximum data rate over
Frame Relay network. time period allowed for
this connection by the
Frame Relay network.
Be
Bc
Max.
Rate
Bc
CIR = bps
T
34
Quality of Service
35
Figure Flow characteristics
36
Techniques to Improve QoS
37
Figure Priority queuing
38
Figure Weighted fair queuing
39
Integrated Services
40
IntServ Approach
41
IntServ Implementation
Guaranteed Service
◼ assured capacity (data rate)
◼ specified upper bound on queuing delay through the
network
◼ no queuing loss (i.e., no buffer overflow)
Controlled Load
◼ roughly equivalent to best-effort under no-load
conditions (dprop + dtrans)
◼ no specified upper bound on queuing delay, but will
approximate minimum expected transit delay
◼ almost no queuing loss
Best Effort
43
Leaky Bucket Scheme
Used to:
1. Characterize traffic
in a flow.
2. Describe the load
imposed by a flow.
3. Traffic policing.
45
Queuing Disciplines (Scheduling)
FIFO (First-Come-First-Served) Round Robin (Fair Queuing)
Drawbacks? Drawbacks?
• Flows with busy (greedy) • Flows with shorter packets are
sources crowd out others penalized
• Flows with shorter packets
are penalized
46
Processor Sharing Approach
47
Bit-Round Fair Queuing
48
PS vs. BRFQ Example
Drawback?
No precedence
or priority
weighting of
flows.
49
Queuing Discipline – Priority Queuing
50
Queuing Discipline – Weighted Fair Queuing
51
Weighted Fair Queue (WFQ)
Pi
Guaranteed Rate = .05 Fi = Si + , = weight
52
Scheduling vs. Queue Management (see RFC 2309)
53
Random Early Detection (RED)
54
RED Buffer Management
55
Generalized RED Algorithm
calculate the average queue size, avg
if avg < THmin
queue the packet
else if THmin avg < THmax
calculate probability Pa
with probability Pa
discard the packet
else with probability 1 – Pa
queue the packet
else if avg THmax
discard the packet
56
RED Algorithm
57
Differentiated Services
58
Differentiated Services (DS)
ISA and RSVP (Resource Reservation Protocol)
deployment drawbacks
◼ relatively complex
◼ may not scale well for large traffic volumes
DiffServ solution (RFC2475, 3260)
◼ designed as a simple, easily-implemented, low-overhead tool
◼ offers a range of services in differentiated service categories…
scalable and flexible service classification
Key characteristics
◼ uses existing IPv4 TOS field or IPv6 Traffic Class field (for DS
field)
◼ SLA established in advance… no application changes required
◼ built-in aggregation mechanism based on traffic category
◼ routers queue and forward based on information carried in the DS
59
DS Domains
60
DS Terminology
61
DS and IPv4 TOS Fields
IP ECN Field,
per RFC 3168
& RFC 3260
Replaces
62
DS Traffic Classifier/Conditioner
63
Per-Hop Behavior
64
Per-Hop Behavior (cont.)
Assured Forwarding
◼ designed to offer a service level that is superior to best-
effort service
◼ based on explicit allocation concept
choice of classes offered, each with different traffic profile
monitor traffic at boundary nodes, and mark as in or out based
on conformance to profile
interior nodes handle packets based only on ‘in’ or ‘out’ mark
in congestion, drops outs before ins
➢ implementation defines four AF classes and replaces
in/out mark with a drop precedence code point
◼ simple and easy to implement in nodes
65