Congestion Control | Computer Networks - Computer Science Engineering (CSE) PDF Download

Congestion Control

What is congestion?

A state occurring in network layer when the message traffic is so heavy that it slows down network response time.

Effects of Congestion

  • As delay increases, performance decreases.
  • If delay increases, retransmission occurs, making situation worse.

Congestion control algorithms

  • Leaky Bucket Algorithm

Let us consider an example to understand

Imagine a bucket with a small hole in the bottom.No matter at what rate water enters the bucket, the outflow is at constant rate.When the bucket is full with water additional water entering spills over the sides and is lost.

Congestion Control | Computer Networks - Computer Science Engineering (CSE)

Similarly, each network interface contains a leaky bucket and the following steps are involved in leaky bucket algorithm:

  1.  When host wants to send packet, packet is thrown into the bucket.
  2.  The bucket leaks at a constant rate, meaning the network interface transmits packets at a constant rate.
  3.  Bursty traffic is converted to a uniform traffic by the leaky bucket.
  4. In practice the bucket is a finite queue that outputs at a finite rate.
  • Token bucket Algorithm

Need of token bucket Algorithm:-

The leaky bucket algorithm enforces output pattern at the average rate, no matter how bursty the traffic is. So in order to deal with the bursty traffic we need a flexible algorithm so that the data is not lost. One such algorithm is token bucket algorithm.

Steps of this algorithm can be described as follows:

  1. In regular intervals tokens are thrown into the bucket. ƒ
  2. The bucket has a maximum capacity. ƒ
  3. If there is a ready packet, a token is removed from the bucket, and the packet is send.
  4. If there is no token in the bucket, the packet cannot be send.

Let’s understand with an example,

In figure (A) we see a bucket holding three tokens, with five packets waiting to be transmitted.For a packet to be transmitted, it must capture and destroy one token. In figure (B) We see that three of the five packets have gotten through, but the other two are stuck waiting for more tokens to be generated.

Let’s understand with an example,

Congestion Control | Computer Networks - Computer Science Engineering (CSE)

The document Congestion Control | Computer Networks - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Computer Networks.
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
21 videos|113 docs|66 tests

Top Courses for Computer Science Engineering (CSE)

FAQs on Congestion Control - Computer Networks - Computer Science Engineering (CSE)

1. What is congestion control in computer science engineering?
Ans. Congestion control in computer science engineering refers to the techniques and mechanisms used to manage and regulate the flow of data in a network to prevent congestion. It aims to ensure that the network resources are efficiently utilized and that the performance of the network is optimized.
2. Why is congestion control important in computer networks?
Ans. Congestion control is important in computer networks as it helps to prevent network congestion, which can lead to degraded performance, increased latency, packet loss, and ultimately, network collapse. By regulating the flow of data, congestion control ensures fair resource allocation and maintains the stability and reliability of the network.
3. What are the commonly used congestion control algorithms?
Ans. There are several commonly used congestion control algorithms, including: - TCP Reno: This algorithm uses a combination of slow start, congestion avoidance, and fast retransmit/recovery mechanisms to control congestion in TCP/IP networks. - TCP Vegas: It utilizes an end-to-end delay-based approach to estimate network congestion and adjusts its congestion window accordingly. - TCP Cubic: It is a variant of TCP congestion control that aims to provide better performance for high-speed, long-distance networks. - TCP BBR: BBR stands for Bottleneck Bandwidth and Round-trip propagation time. This algorithm estimates the available bandwidth and round-trip time of the network to control congestion effectively. - Random Early Detection (RED): This active queue management algorithm randomly drops packets before the queue becomes congested, thereby signaling the sender to reduce its transmission rate.
4. How does congestion control work in computer networks?
Ans. Congestion control in computer networks typically involves monitoring various network parameters, such as packet loss, delay, and queuing delays. When congestion is detected, the congestion control mechanism takes action to reduce the rate at which packets are sent into the network. This can be achieved through techniques like reducing the sending rate, adjusting the congestion window size, or dynamically adjusting the transmission parameters based on network feedback.
5. What are the benefits of congestion control in computer networks?
Ans. Congestion control in computer networks offers several benefits, including: - Improved network performance: By preventing congestion, the overall performance of the network is enhanced, resulting in reduced latency and improved throughput. - Fair resource allocation: Congestion control ensures that network resources are fairly distributed among all users, avoiding situations where a few users dominate the network and degrade the experience for others. - Enhanced reliability: By regulating the flow of data, congestion control reduces the occurrence of packet loss, leading to more reliable and stable network connections. - Efficient network utilization: Congestion control optimizes the utilization of network resources, allowing more efficient use of available bandwidth and reducing wastage. - Scalability: Proper congestion control mechanisms enable networks to scale effectively, accommodating increasing traffic demands without experiencing severe congestion-related issues.
21 videos|113 docs|66 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Congestion Control | Computer Networks - Computer Science Engineering (CSE)

,

MCQs

,

Congestion Control | Computer Networks - Computer Science Engineering (CSE)

,

pdf

,

Viva Questions

,

Free

,

Extra Questions

,

video lectures

,

Exam

,

practice quizzes

,

ppt

,

past year papers

,

Important questions

,

Congestion Control | Computer Networks - Computer Science Engineering (CSE)

,

Objective type Questions

,

Previous Year Questions with Solutions

,

Sample Paper

,

study material

,

Summary

,

mock tests for examination

,

Semester Notes

,

shortcuts and tricks

;