- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Data buffer commands | 68.54 KB |
buffer packet-drop alarm enable
buffer packet-drop alarm interval
buffer threshold alarm interval
buffer usage threshold headroom
buffer usage threshold headroom queue
buffer usage threshold queue (interface view)
buffer usage threshold queue (system view)
Data buffer commands
Data buffer commands
buffer packet-drop alarm enable
Use buffer packet-drop alarm enable to enable packet-drop alarms.
Use undo buffer packet-drop alarm enable to disable packet-drop alarms.
Syntax
buffer packet-drop alarm enable
undo buffer packet-drop alarm enable
Default
Packet-drop alarms are disabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
The device generates and reports packet-drop alarms to a network management system (such as IMC) for displaying the data buffer usage.
This command does not take effect only on the Headroom buffer.
Examples
# Enable packet-drop alarms.
<Sysname> system-view
[Sysname] buffer packet-drop alarm enable
Related commands
buffer usage threshold queue (interface view)
buffer usage threshold queue (system view)
buffer packet-drop alarm interval
buffer packet-drop alarm interval
Use buffer packet-drop alarm interval to set the interval for sending packet-drop alarms.
Use undo buffer packet-drop alarm interval to restore the default.
Syntax
buffer packet-drop alarm interval interval
undo buffer packet-drop alarm interval
Default
The interval for sending packet-drop alarms is 5 seconds.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
interval: Specifies the interval for sending packet-drop alarms, in the range of 0 to 60 seconds. The value of 0 indicates that packet-drop alarms are sent immediately after they are generated.
Usage guidelines
This command takes effect only when packet-drop alarms are enabled.
Examples
# Set the interval for sending packet-drop alarms to 20 seconds.
<Sysname> system-view
[Sysname] buffer packet-drop alarm interval 20
Related commands
buffer packet-drop alarm enable
buffer threshold alarm enable
Use buffer threshold alarm enable to enable threshold-crossing alarms.
Use undo buffer threshold alarm enable to disable threshold-crossing alarms.
Syntax
buffer threshold alarm { egress | headroom | ingress } enable
undo buffer threshold alarm { egress | headroom | ingress } enable
Default
Threshold-crossing alarms are disabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
ingress: Specifies the ingress buffer.
headroom: Specifies the Headroom buffer.
egress: Specifies the egress buffer.
Usage guidelines
The device generates and reports threshold-crossing alarms to a network management system (such as IMC) for displaying the data buffer usage.
Examples
# Enable threshold-crossing alarms.
<Sysname> system-view
[Sysname] buffer threshold alarm ingress enable
Related commands
buffer usage threshold headroom
buffer usage threshold headroom queue
buffer usage threshold queue (interface view)
buffer usage threshold queue (system view)
buffer threshold alarm interval
Use buffer threshold alarm interval to set the interval for sending threshold-crossing alarms.
Use undo buffer threshold alarm interval to restore the default.
Syntax
buffer threshold alarm { egress | headroom | ingress } interval interval
undo buffer threshold alarm { egress | headroom | ingress } interval
Default
The interval for sending threshold-crossing alarms is 5 seconds.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
ingress: Specifies the ingress buffer.
headroom: Specifies the Headroom buffer.
egress: Specifies the egress buffer.
interval: Specifies the interval for sending threshold-crossing alarms, in the range of 0 to 60 seconds. 0 indicates that threshold-crossing alarms are sent immediately after they are generated.
Usage guidelines
This command takes effect only when threshold-crossing alarms are enabled.
Examples
# Set the interval for sending threshold-crossing alarms to 20 seconds.
<Sysname> system-view
[Sysname] buffer threshold alarm ingress interval 20
Related commands
buffer threshold alarm enable
buffer usage threshold headroom
buffer usage threshold headroom queue
buffer usage threshold queue (interface view)
buffer usage threshold queue (system view)
buffer usage threshold headroom
Use buffer usage threshold headroom to set the global per-queue alarm threshold for the Headroom buffer.
Use undo buffer usage threshold headroom to restore the default.
Syntax
In standalone mode:
buffer usage threshold headroom slot slot-number ratio ratio
undo buffer usage threshold headroom slot slot-number ratio
In IRF mode:
buffer usage threshold headroom chassis chassis-number slot slot-number ratio ratio
undo buffer usage threshold headroom chassis chassis-number slot slot-number ratio
Default
The global per-queue alarm threshold for the Headroom buffer is 100%.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
slot slot-number: Specifies a card by its slot number. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.)
ratio ratio: Specifies the alarm threshold in percentage, in the range of 1 to 100.
Usage guidelines
This command takes effect only when threshold-crossing alarms are enabled. When a queue exceeds the global alarm threshold for the Headroom buffer, the device generates and reports a threshold-crossing alarm to a network management system (such as IMC).
Examples
# (In standalone mode.) Set the global per-queue alarm threshold to 50% for slot 1.
<Sysname> system-view
[Sysname] buffer usage threshold headroom slot 1 ratio 50
# (In IRF mode.) Set the global per-queue alarm threshold to 50% for slot 2 in chassis 1.
<Sysname> system-view
[Sysname] buffer usage threshold headroom chassis 1 slot 2 ratio 50
Related commands
buffer threshold alarm enable
buffer usage threshold headroom queue
Use buffer usage threshold headroom queue to set the Headroom buffer alarm threshold for a queue on an interface.
Use undo buffer usage threshold headroom queue to restore the default.
Syntax
buffer usage threshold headroom queue queue-id ratio ratio
undo buffer usage threshold headroom queue queue-id ratio
Default
The global per-queue alarm threshold for the Headroom buffer is used.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
queue-id: Specifies a queue by its ID in the range of 0 to 7.
ratio ratio: Specifies the alarm threshold in percentage, in the range of 1 to 100.
Usage guidelines
This command takes effect only when threshold-crossing alarms are enabled. When a queue exceeds the alarm threshold, the device generates and reports a threshold-crossing alarm to a network management system (such as IMC).
Examples
# Set the Headroom buffer alarm threshold to 50% for queue 1 on HundredGigE 3/0/1.
<Sysname> system-view
[Sysname] interface hundredgige 3/0/1
[Sysname–HundredGigE3/0/1] buffer usage threshold headroom queue 1 ratio 50
Related commands
buffer threshold alarm enable
buffer usage threshold queue (interface view)
Use buffer usage threshold queue to set the ingress or egress buffer alarm threshold for a queue on an interface.
Use undo buffer usage threshold queue to restore the default.
Syntax
buffer { egress | ingress } usage threshold queue queue-id ratio ratio
undo buffer { egress | ingress } usage threshold queue queue-id ratio
Default
The global per-queue alarm threshold for the ingress or egress buffer is used.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
ingress: Specifies the ingress buffer.
egress: Specifies the egress buffer.
queue-id: Specifies a queue by its ID in the range of 0 to 7.
ratio ratio: Specifies the alarm threshold in percentage, in the range of 1 to 100.
Usage guidelines
This command takes effect only when threshold-crossing alarms are enabled. When a queue exceeds the alarm threshold for the ingress or egress buffer, the device generates and reports a threshold-crossing alarm to a network management system (such as IMC).
Examples
# Set the ingress buffer alarm threshold to 50% for queue 1 on HundredGigE 3/0/1.
<Sysname> system-view
[Sysname] interface hundredgige 3/0/1
[Sysname–HundredGigE3/0/1] buffer ingress usage threshold queue 1 ratio 50
Related commands
buffer threshold alarm enable
buffer usage threshold queue (system view)
Use buffer usage threshold queue to set the global ingress or egress buffer alarm threshold for a queue.
Use undo buffer usage threshold queue to restore the default.
Syntax
In standalone mode:
buffer { egress | ingress } usage threshold slot slot-number queue queue-id ratio ratio
undo buffer { egress | ingress } usage threshold slot slot-number queue queue-id ratio
In IRF mode:
buffer { egress | ingress } usage threshold chassis chassis-number slot slot-number queue queue-id ratio ratio
undo buffer { egress | ingress } usage threshold chassis chassis-number slot slot-number queue queue-id ratio
Default
The global ingress or egress buffer alarm threshold for a queue is 100%.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
ingress: Specifies the ingress buffer.
egress: Specifies the egress buffer.
slot slot-number: Specifies a card by its slot number. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.)
queue-id: Specifies a queue by its ID in the range of 0 to 7.
ratio ratio: Specifies the alarm threshold in percentage, in the range of 1 to 100.
Usage guidelines
This command takes effect only when threshold-crossing alarms are enabled. When a queue exceeds the global ingress or egress alarm threshold, the device generates and reports a threshold-crossing alarm to a network management system (such as IMC).
Examples
# (In standalone mode.) Set the global ingress alarm threshold to 50% for queue 1 in slot 1.
<Sysname> system-view
[Sysname] buffer ingress usage threshold slot 1 queue 1 ratio 50
# (In IRF mode.) Set the global ingress alarm threshold to 50% for queue 1 in slot 2 of chassis 1.
<Sysname> system-view
[Sysname] buffer ingress usage threshold chassis 1 slot 2 queue 1 ratio 50
Related commands
buffer threshold alarm enable
burst-mode enable
Use burst-mode enable to enable the Burst feature.
Use undo burst-mode enable to disable the Burst feature.
Syntax
In standalone mode:
burst-mode enable slot slot-number
undo burst-mode enable slot slot-number
In IRF mode:
burst-mode enable chassis chassis-number slot slot-number
undo burst-mode enable chassis chassis-number slot slot-number
Default
The Burst feature is disabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
slot slot-number: Specifies a card by its slot number. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.)
Usage guidelines
The Burst feature is especially useful for reducing packet losses under the following circumstances:
· Broadcast or multicast traffic is intensive, resulting in bursts of traffic.
· 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.
Examples
# (In standalone mode.) Enable the Burst feature for slot 1.
<Sysname> system-view
[Sysname] burst-mode enable slot 1
# (In IRF mode.) Enable the Burst feature for slot 1 in chassis 1.
<Sysname> system-view
[Sysname] burst-mode enable chassis 1 slot 1