Congesion Control Algorithm
Congesion Control Algorithm
1. Through put
2. Delay
The second category Closed loop is based on the concept of feedback. During
operation, some system parameters are measured and feed back to portions of
the subnet that can take action to reduce the congestion. This approach can be
divided into 3 steps:
In Fig. 1 the bucket holds two tokens, and three packets are
waiting to be sent out of the interface.
In Fig. 2 two packets have been sent out by consuming two
tokens, and 1 packet is still left.
Fig. 1 Fig. 2
So to help this, Hop-by-Hop Choke packets are used. In this approach, the
choke packet affects each and every intermediate router through which it
passes by.
Here, as soon as choke packet reaches a router back to its path to the
source, it curtails down the traffic between those intermediate routers. In
this scenario, intermediate nodes must dedicate few more buffers for the
incoming traffic as the outflow through that node will be curtailed down
immediately as choke packet arrives it, but the input traffic flow will only be
curtailed down when choke packet reaches the node which is before it in the
original path.
Ans : The leaky bucket algorithm controls the rate at which the packets
are introduced in the network, but it is very conservative in nature.
Some flexibility is introduced in token bucket algorithm. In token
bucket algorithm tokens are generated at each tick (up to certain limit).
For an incoming packet to be transmitted, it must capture a token and
the transmission takes place at the same rate. Hence some of the busty
packets are transmitted at the same rate if tokens are available and thus
introduces some amount of flexibility in the system. This also improves
the performance.