- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Data buffer commands | 50.90 KB |
Data buffer commands
buffer usage threshold
Use buffer usage threshold to set a per-interface buffer usage threshold.
Use undo buffer usage threshold to restore the default.
Syntax
buffer usage threshold slot slot-number ratio ratio
undo buffer usage threshold slot slot-number
Default
The per-interface buffer usage threshold is 100%.
Views
System view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies an IRF member device by its member ID.
ratio ratio: Specifies the buffer usage threshold in percentage, in the range of 1 to 100.
Usage guidelines
This command takes effect only when the packet statistics collection mode is queue (configured by using the statistic mode queue command).
After you configure this command, the switch automatically records buffer usage for each interface. When a queue on an interface uses more buffer space than the set threshold, the system counts one threshold violation for the queue.
To display the buffer usage statistics for interfaces, use the display buffer usage interface command.
Examples
# Set the per-interface buffer usage threshold to 50% for IRF member device 1.
<Sysname> system-view
[Sysname] buffer usage threshold slot 1 ratio 50
Related commands
display buffer usage interface
burst-mode enable
Use burst-mode enable to enable the Burst feature.
Use undo burst-mode enable to disable the Burst feature.
Syntax
burst-mode enable
undo burst-mode enable
Default
The Burst feature is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
The Burst feature is especially useful for reducing packet losses under the following circumstances:
· Traffic enters a device from a high-speed interface and goes out of a low-speed interface.
· Traffic enters a device from multiple same-rate interfaces and goes out of an interface with the same rate.
The Burst feature takes effect only on known unicast packets.
Examples
# Enable the Burst feature.
<Sysname> system-view
[Sysname] burst-mode enable
display buffer
Use display buffer to display buffer size settings.
Syntax
display buffer [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies an IRF member device by its slot number. If you do not specify an member device, this command displays buffer size settings for all member devices.
Examples
# Display buffer size settings for slot 0 in chassis 1.
<Sysname> display buffer
Slot Type Eg(Total-shared)
1 cell --
Eg: Size of the sending buffer
Total-shared: Size of the shared buffer for all ports
Unit: Ratio
display buffer usage interface
Use display buffer usage interface to display buffer usage statistics for interfaces.
Syntax
display buffer usage interface [ interface-type [ interface-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface-type [ interface-number ]: Specifies an interface by its type and number. If you do not specify the interface-type argument, this command displays buffer usage statistics for all Ethernet interfaces. If you specify the interface-type argument without the interface-number argument, this command displays buffer usage statistics for all Ethernet interfaces of the specified type.
Examples
# Display buffer usage statistics for Ten-GigabitEthernet 1/0/1.
<Sysname> display buffer usage interface ten-gigabitethernet 1/0/1
Interface QueueID Total Used Threshold(%) Violations
--------------------------------------------------------------------------------
XGE1/0/1 0 761856 0 100 0
1 761856 0 100 0
2 761856 0 100 0
3 761856 0 100 0
4 761856 0 100 0
5 761856 0 100 0
6 761856 0 100 0
7 761856 0 100 0
Table 1 Command output
Field |
Description |
Total |
Data buffer size in bytes allowed for a queue. |
Used |
Data buffer size in bytes that has been used by a queue. |
Threshold(%) |
Buffer usage threshold for a queue. The threshold value is the same as the per-interface threshold value. |
Violations |
Number of threshold violations for a queue. The value of this field is reset upon a switch reboot. |