- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Data buffer configuration | 89.78 KB |
Contents
Overview
Data buffers temporarily store packets to avoid packet loss.
An interface card has an ingress buffer and an egress buffer. An interface stores outgoing packets in the egress buffer when congestion occurs, and it stores incoming packets in the ingress buffer when the CPU is busy.
Buffer resource
Shared area and fixed area
Both an ingress buffer and an egress buffer have a shared area and a fixed area. The shared area is partitioned into queues, as shown in Figure 1.
· The shared area is shared by the queues of all interfaces. When an interface or a queue receives traffic bursts, it can temporarily preempt buffer resources of the shared area. After sending out the traffic bursts, the interface releases the preempted resources for use by other interfaces or queues. You can manually set the number of buffer resources for the shared area, and the rest is automatically assigned to the fixed area.
· The fixed area is allocated to interfaces and then to queues of each interface. First, the switch allocates the buffer resources of the fixed area equally among all interfaces on an interface card. Then, the switch allocates the buffer resources of each interface equally among all its queues. In this manner, all queues of all interfaces have an equal number of dedicated buffer resources.
Figure 1 Shared area and fixed area
When congestion occurs, the following rules apply:
1. An interface first uses the buffer resources of the shared area to store packets.
2. When no buffer resources are available in the shared area, the interface uses the buffer resources of the corresponding queue in the fixed area.
3. When no buffer resources of the queue in the fixed area are available, the interface discards subsequent packets.
When an interface uses the egress buffer, the following rules apply:
· Packets with drop precedence 0 can use buffer resources in both the shared area and fixed area.
· Packets with drop precedence 1 or 2 can use only buffer resources in the fixed area.
|
NOTE: Only FD cards, FG cards, and cards with silk screen LST1XP16LEB1, LST1XP16LEC1, or LST1XP16LEC2 support configuring the ingress buffer (the ingress keyword). FD and FG cards refer to the cards with silk screen ending with FD and FG, respectively. |
Configuring a data buffer
|
CAUTION: Inappropriate data buffer changes can cause system problems. Before manually changing data buffer settings, make sure you understand its impact on your device. |
Setting the shared-area size
The data buffer on an interface card has a fixed size. After you set the shared-area size for a data buffer, the rest is automatically assigned to the fixed area.
To set the shared-area size:
Step |
Command |
Remarks |
system-view |
N/A |
|
2. Set the shared-area size. |
· In standalone mode: · In IRF mode: |
The default setting is 1024 buffer resources for the ingress buffer and 4096 buffer resources for the egress buffer. To enable PFC on an interface on a card, you must set the ingress buffer to be greater than or equal to 640 buffer resources. For information about PFC, see Interface Configuration Guide. |
Applying data buffer configuration
Perform this task to apply the data buffer configuration.
You cannot directly modify the applied configuration. To modify the configuration, you must cancel the application, reconfigure data buffers, and reapply the configuration.
To apply data buffer configuration:
Step |
Command |
1. Enter system view. |
system-view |
2. Apply data buffer configuration. |
buffer apply |
Displaying and maintaining data buffers
Execute display commands in any view.
Task |
Command |
Display buffer size settings (in standalone mode). |
display buffer [ slot slot-number ] |
Display buffer size settings (in IRF mode). |
display buffer [ chassis chassis-number slot slot-number ] |
Display buffer usage (in standalone mode). |
display buffer usage [ slot slot-number ] |
Display buffer usage (in IRF mode). |
display buffer usage [ chassis chassis-number [ slot slot-number ] ] |