- DCN Tutorial
- Data Comm & Networks Home
- DCN - Overview
- DCN - Computer Network Types
- DCN - Network LAN Technologies
- DCN - Computer Network Topologies
- DCN - Computer Network Models
- DCN - Computer Network Security
- Physical Layer
- DCN - Physical Layer Introduction
- DCN - Digital Transmission
- DCN - Analog Transmission
- DCN - Transmission media
- DCN - Wireless Transmission
- DCN - Multiplexing
- DCN - Network Switching
- Data Link Layer
- DCN - Data Link Layer Introduction
- DCN - Error detection and Correction
- DCN - Data Link Control & Protocols
- Network Layer
- DCN - Network Layer Introduction
- DCN - Network Addressing
- DCN - Routing
- DCN - Internetworking
- DCN - Network Layer Protocols
- Transport Layer
- DCN - Transport Layer Introduction
- DCN - Transmission Control Protocol
- DCN - User Datagram Protocol
- Application Layer
- DCN - Application Layer Introduction
- DCN - Client-Server Model
- DCN - Application Protocols
- DCN - Network Services
- DCN Useful Resources
- DCN - Quick Guide
- DCN - Useful Resources
Packet Queuing and Dropping in Routers
Routers are critical networking equipment that control the data flow across a network. Routers have one or more input and output interfaces via which packets are received and sent.
Since a router's memory is limited, it may be unable to handle newly incoming packets. This happens when the pace at which packets arrive exceeds the rate at which packets leave the router's memory. New packets are ignored in this circumstance, while older packets are discarded. Routers must implement some sort of queuing discipline as part of their resource allocation algorithms, in order to regulate how packets are stored or discarded as needed.
Queue Congestion and Queuing Disciplines
Because of the limited buffer memory available to router queues, they are prone to congestion. Congestion occurs when the pace of input traffic exceeds the quantity that can be transmitted on the output link. The following are some of the probable reasons for such a situation −
The rate of incoming traffic exceeds that of leaving traffic.
The entire output capacity is exceeded by the combined traffic from all input interfaces.
The router processor is incapable of handling the size of the forwarding table to determine routing paths.
Queue Congestion and Queuing Disciplines
Different disciplines may be followed by routers to select which packets to keep and which packets to drop in such times of congestion to control the allocation of router memory to the packets. As a result, routers have the following key queuing disciplines −
First-In, First-Out Queuing (FIFO)
Most routers use FIFO as their default queuing method. On the server, this usually needs little to no setup. In FIFO, all packets are serviced in the order in which they arrive at the router. New packets attempting to enter the router are discarded when the memory becomes saturated (tail drop).
However, such a system is unsuitable for real-time applications, particularly in congested areas. During periods of congestion, a real-time application such as VoIP, which constantly sends packets, may get hungry and have all of its packets lost.
Prioritization of Queuing (PQ)
Instead of utilizing a single queue, the router divides the memory into many queues based on some measure of priority in Priority Queuing. Following that, each queue is handled in a FIFO fashion, with each queue being cycled through one by one. According to on priority, the queues are labeled as High, Medium, or Low. The High queue packets are always handled before the medium queue packets.
In Priority Queuing, the router splits the memory into multiple queues based on some measure of priority rather than using a single queue. After then, each queue is dealt with in a FIFO manner, with each queue being cycled through one by one. The queues are labeled as High, Medium, or Low, depending on their priority. The packets in the high queue are always processed first.
Fair Weighted Queuing (WFQ)
WFQ (Weighted Fair Queuing) generates queues based on traffic flows and distributes bandwidth to them depending on priority. The bandwidths for the sub-queues are assigned dynamically. Assume there are three queues, each with a bandwidth percentage of 20%, 30%, and 50%, while they are all active.
- Related Articles
- Advantage and Disadvantage of Routers
- What are Routers in Computer Network?
- Egg Dropping Puzzle
- What are the Routers in Computer Network?
- Store – and – Forward Packet Switching
- Why are cryptocurrencies dropping?
- Packet Switching
- What is a Screening Routers in information security?
- Packet over SONET
- ARP Packet Format
- Difference between Circuit Switching and Packet Switching
- Dropping a SAP HANA database view
- Dropping Unique constraint from MySQL table?
- Python Program for Egg Dropping Puzzle
- Dropping a MySQL Table using NodeJS