The switch uses tail drop to prevent congestion. When the length of a queue reaches the maximum value, all the packets last added to the queue (at the tail of the queue) are discarded. You can set the maximum number of bytes or packets to be cached in a queue to prevent traffic loss.
Congestion avoidance can be configured in tail drop profile mode only on the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, S5735S-S, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI.
Before setting the maximum number of bytes or packets to be cached in a queue, run the shutdown command to shut down the interface. After the maximum number of bytes or packets to be cached in a queue is set, run the undo shutdown command to enable the interface. These operations may cause network interruption in a short period of time.
The system view is displayed.
A tail drop profile is created and the tail drop profile view is displayed.
Only one tail drop profile can be created on the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S.
S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI:
Run qos queue queue-index max-buffer cell-number [ green max-buffer cell-number ]
The maximum number of bytes to be cached in a queue is set.
Run qos queue queue-index green max-buffer cell-number
The maximum number of bytes to be cached in a queue is set.
Run qos queue queue-index max-length packet-number [ green max-length packet-number ]
The maximum number of packets to be cached in a queue is set.
Run qos queue queue-index green max-length packet-number
The maximum number of packets to be cached in a queue is set.
If the maximum number of bytes or packets is reached, the device considers that congestion occurs and will discard subsequent packets.
S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S:
The upper and lower limits for buffering packets in a queue are set.
By default, the upper and lower limits for buffering packets in a queue are 78 and 68 buffer units, respectively. Each buffer unit is 360 bytes.
Return to the system view.
The interface view is displayed.
The interface is shut down.
The tail drop profile is applied to the interface.
The interface is restarted.
Run the display qos configuration interface interface-type interface-number command to check all the QoS configurations on the interface.
Run the display qos queue statistics interface interface-type interface-number [ queue queue-index ] command to check the queue-based traffic statistics on the interface.