Congestion Control and Quality of Service
Congestion Control and Quality of Service
Congestion Control and Quality of Service
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
Traffic Descriptors
• Traffic descriptor are qualitative values that represent a data flow
• Average data rate = amount of data/time
• Peak data rate: the max. data rate of the traffic
• Max. burst size: the max. length of time the traffic is generated at the peak rate
• Effective bandwidth: bandwidth that the network needs to allocate for traffic flow
Traffic Profiles
• Constant-bit-rate (CBR)
• Variable-bit-rate (VBR)
• Bursty
Congestion
• Congestion: the load on the network is greater than the capacity of the network
• Congestion control: the mechanisms to control the congestion and keep the load
below the capacity
• Congestion occurs because routers and switches have queues- buffers that hold the
packets before and after processing
• The rate of packet arrival > packet processing time input queue longer
• The packet departure time < packet processing time output queue longer
Congestion Control
• Congestion control refers to techniques and mechanisms that can either prevent
congestion, before it happens, or remove congestion, after it has happened.
• Discard policy: prevent congestion and at the same time may not harm the integrity
of the transmission
• Admission policy: Switch first check the resource requirement of a flow before
admitting it to the network
Closed-Loop Congestion Control: Removal
• Back pressure: inform the previous upstream router to reduce the rate of outgoing
packets if congested
• Choke point: a packet sent by a router to the source to inform it of congestion. In
choke packet method, congested node sends a warning directly to the source station
i.e. the intermediate nodes through which the packet has traveled are not warned.
• Implicit signaling: In implicit signaling, there is no communication between the
congested node or nodes and the source. The source guesses that there is congestion
somewhere in the network when it does not receive any acknowledgment.
Therefore the delay in receiving an acknowledgment is interpreted as congestion in
the network. On sensing this congestion, the source slows down.
• Explicit signaling: The node that experiences congestion can explicitly send a
signal to the source or destination. The explicit signaling method, however, is
different from the choke packet method. In the choke packet method, a separate
packet is used for this purpose; in the explicit signaling method, the signal is
included in the packets that carry data
Quality of Service (QoS)
• Flow Characteristics:
– Reliability
– Delay
– Jitter: the variation in delay for packets belonging to the same flow
– Bandwidth
• Flow Classes:
– Based on the characteristics, we can classify flows into groups, with each group
having similar levels of characteristics
QoS Techniques
• Scheduling: FIFO queuing, priority queuing, and weighted fair queuing
• Traffic shaping: Leaky bucket, token bucket
• Resource reservation
• Admission control: accept or reject a flow based on predefined parameters called
flow specification
• FIFO queuing
Priority Queuing
• Packets are first assigned to priority class. Each priority class has its own queue
• The packets in the highest-priority queue are processed first
Weighted Fair Queuing
• The queues are weighted based on the priority of the queues
• The system processes packets in each queue in a round-robin fashion with the
number of packets selected from each queue based on the weight
Traffic Shaping: Leaky Bucket
• Traffic shaping: to control the amount and the rate of the traffic sent to network
• Two techniques: leaky bucket and token bucket
• A leaky bucket algorithm shapes bursty traffic into fixed-rate traffic by averaging
the data rate. It may drop the packets if the bucket is full.
Token Bucket
• The token bucket allows bursty traffic at a regulated maximum rate.
the token bucket algorithm allows idle hosts to accumulate credit for the future in
the form of tokens. For each tick of the clock, the system sends n tokens to the
bucket. The system removes one token for every cell (or byte) of data sent
Resource Reservation
•A flow of data needs resources such as a buffer, bandwidth, CPU time, and so
on. The quality of service is improved if these resources are reserved
beforehand
Admission Control
•Admission control refers to the mechanism used by a router, or a switch, to
accept or reject a flow based on predefined parameters called flow
specifications. Before a router accepts a flow for processing, it checks the flow
specifications to see if its capacity (in terms of bandwidth, buffer size, CPU
speed, etc.) and its previous commitments to other flows can handle the new
flow
Integrated Services (IntServ)
• Integrated Services is a flow-based QoS model designed for IP
• Signaling: Resource Reservation Protocol (RSVP)
• Flow specification:
– Rspec (resource specification) defines the resource that the flow needs to
reserve
– Tspec (traffic specification) defines the traffic characterization of the flow
• Admission: a router decides to admit or deny the flow specification
• Service classes: guaranteed service and controlled-load service
– Guaranteed service class: guaranteed minimum end-to-end delay
– Controlled-load service class: accept some delays, but is sensitive to an
overloaded network and to the danger of losing packets
RSVP
• In IntServ, the resource reservation is for a flow, a kind of virtual circuit
network out of the IP
• RSVP is a signaling protocol to help IP create a flow and consequently make a
resource reservation
• RSVP is a signaling system designed for multicasting
• Receiver-based reservation
• RSVP message: Path and Resv
• Path message: from sender to all receivers
Resv Messages
• Make a resource reservation from each receiver to sender
Reservation Merging
Reservation Styles
• Wild card filter style: a single reservation for all senders
• Fixed filter style: a distinct reservation for each flow
• Shared explicit style: a single reservation which can be shared by a set of flow
• Network-related attributes:
– CLR (cell loss ratio)
– CTD (cell transfer delay)
– CDV (cell delay variation)
– CER (cell error ratio)