(Optional) Setting the Maximum Number of Bytes or Packets to Be Cached in a Queue on an Interface
Context
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.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface interface-type interface-number
The interface view is displayed.
- Run:
shutdown
The interface is shut down.
- Run the following commands as required.
Set the maximum number of bytes or packets to be cached in a queue.
Run:
qos queue queue-index static-cell cell-number
The maximum number of bytes to be cached in a queue is set.
Run:
qos queue queue-index 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.
- Run:
undo shutdown
The interface is restarted.