Unit2 Part D Conge Finalll
Unit2 Part D Conge Finalll
So, consider a situation where too many packets are present in this
queue (or internet or a part of internet), such that constantly
transmitting nodes are pouring packets at a higher rate than
receiving nodes are removing them. This degrades the
performance, and such a situation is termed as Congestion.
3
CONTENTS
• INTRODUCTION TO CONGESTION
• GENERAL PRINCIPLE OF CONGESTION
• OPEN LOOP CONGESTION CONTRO
• CLOSED LOOP CONGESTION CONTROL
• CONGESTION CONTROL ALGORITHMS
– LEAKY BUCKET ALGORITHM
– TOKEN BUCKET ALGORITHM
– CHOKE PACKETS
– HOP BY HOP CHOKE PACKETS
– LOAD SHEDDING
4
INTRODUCTION
WHAT IS CONGESTION?
Congestion is a situation in communication network in which too
many packets are present in a part of the subnet or contending
for the same link so
– The queue overflows
– Packets get dropped
– Network is congested!
BUFFER
BUFFER
CONGESTION
BUFFER
ROUTER
BUFFER
BUFFER
5
Factors that Cause Congestion
4
Effects of Congestion
• Congestion affects two vital parameters of
the network performance ..
1.Through put
2.Delay
Effects of Congestion
Initially throughput increases linearly with
offered load, because utilization of the network
increases. However, as the offered load
increases beyond certain limit, say 60% of the
capacity of the network, the throughput drops.
15
CLOSED LOOP CONGESTION CONTROL
• Closed loop congestion control mechanisms try to remove the
congestion after it happens.
1. Backpressure method
22
TOKEN BUCKET ALGORITHM
Fig. 1 Fig. 2 23
TOKEN BUCKET ALGORITHM
TCP has three congestion-control
methods :
1. slow start
2. Additive increase
3. retransmit
Slow start method
Source Destination
Packet 5 ACK 2
Packet 6
ACK 2
ACK 2
Retransmit
packet 3
ACK 6
TIMERS IN TCP
1.Persistence timer
• When both sender and receiver will be waiting
for ever then to solve this problem persistence
timer is used.
• Here when timer goes off sender transmits
probe to the receiver.
• Receiver sends the window size in response to
this probe.
• If window size is 0 , then persistence timer is set
again .. And window size is not 0 then sender can
send data.
keep alive timer
• Used when connection is idle then timer goes
off… each sender and reciever checks if other
side is alive or not. If not then connection
terminated.
TIME wait
• Used in TIMED wait state while closing. This
timer is set to time equal to twice the max
packet lifetime to ensure that after closing
connection all the packets created by it goes
off.
Jacoban’s Algo
• Used by TCP
• The RTT ( Round trip time ) for each connection of
TCP is variable.
• When a segment is sent , timer is started. There is
to measure the time required to receive ACK & to
trigger retransmission if ACK takes too long to
come.
• If ACK returns back before timer goes out , then
TCP measures the time taken by ACK & adjust RTT
to a new value using following equation:
• RTT = α RTT + (1 – α )M
Jacoban’s Algo
• Where α is smoothing factor. Has value 7/8.
• Jacobian proposed a new smoothing factor D
which is given by :
• D = αD + (1-α ) І RTT – M І
• And time out is calculated by
• time-out = RTT + 4D