04-数据缓冲区命令
本章节下载: 04-数据缓冲区命令 (188.60 KB)
buffer usage threshold命令用来配置接口的数据缓冲区使用门限值。
undo buffer usage threshold命令用来恢复缺省情况。
【命令】
(独立运行模式)
buffer usage threshold slot slot-number ratio ratio
undo buffer usage threshold slot slot-number
(IRF模式)
buffer usage threshold chassis chassis-number slot slot-number ratio ratio
undo buffer usage threshold chassis chassis-number slot slot-number
【缺省情况】
设备上接口的数据缓冲区使用门限值为100。
【视图】
系统视图
【缺省用户角色】
network-admin
mdc-admin
【参数】
slot slot-number:指定接口板所在的槽位号。slot-number表示接口板所在的槽位号。(独立运行模式)
chassis chassis-number slot slot-number:指定成员设备上的指定接口板。chassis-number表示设备在IRF中的成员编号,slot-number表示接口板所在的槽位号。(IRF模式)
ratio ratio:以百分比形式配置接口的数据缓冲区使用门限值,ratio的取值为1~100。
【使用指导】
只有将设备的报文统计模式配置为队列模式后(执行statistic mode queue命令),本命令的配置才能生效。关于报文统计模式的介绍,请参见“ACL和QoS命令参考”中的“QoS”。
配置接口的数据缓冲区使用门限后,设备会自动记录接口对缓冲区的使用情况。当接口上某一队列中需要处理的报文增多,造成该接口对数据缓冲区的使用比率超过设定的门限值时,系统会为该队列增加一次超量使用缓冲区的计数。
通过display buffer usage interface命令,可以查看接口的数据缓冲区使用统计信息。
【举例】
# 配置3号槽位接口板上所有接口的数据缓冲区使用门限值为50%。(独立运行模式)
<Sysname> system-view
[Sysname] buffer usage threshold slot 3 ratio 50
# 配置2号成员设备的3号槽位接口板上所有接口的数据缓冲区使用门限值为50%。(IRF模式)
<Sysname> system-view
[Sysname] buffer usage threshold chassis 2 slot 3 ratio 50
【相关命令】
· display buffer usage interface
display buffer命令用来显示数据缓冲区的大小。
【命令】
(独立运行模式)
display buffer [ slot slot-number ]
(IRF模式)
display buffer [ chassis chassis-number slot slot-number ]
【视图】
任意视图
【缺省用户角色】
network-admin
network-operator
mdc-admin
mdc-operator
【参数】
slot slot-number:表示接口板所在的槽位号。不指定该参数时,表示所有接口板。(独立运行模式)
chassis chassis-number slot slot-number:表示IRF中指定成员设备上的指定接口板。不指定该参数时,表示IRF中的所有接口板。(IRF模式)
【举例】
# 显示指定chassis、指定slot上的数据缓冲区的大小。(IRF模式)
<Sysname> display buffer chassis 1 slot 0
Slot Type Eg(Total-shared)
1/0 cell --
Eg: Size of the sending buffer
Total-shared: Size of the shared buffer for all ports
Unit: Ratio
display buffer usage命令用来显示数据缓冲区的使用率。
【命令】
(独立运行模式)
display buffer usage [ slot slot-number ]
(IRF模式)
display buffer usage [ chassis chassis-number slot slot-number ]
【视图】
任意视图
【缺省用户角色】
network-admin
network-operator
mdc-admin
mdc-operator
【参数】
slot slot-number:表示接口板所在的槽位号。不指定该参数时,表示所有接口板。(独立运行模式)
chassis chassis-number slot slot-number:表示IRF中指定成员设备上的指定接口板。不指定该参数时,表示IRF中的所有接口板。(IRF模式)
【举例】
# 显示数据缓冲区的使用率。
<Sysname> display buffer usage
Ingress buffer usage on slot 3 :
Chip0
core0:
Total: 761856 BD
Used: 0 BD
Free: 761856 BD
core1:
Total:1048576 BD
Used: 0 BD
Free:1048576 BD
表1-1 display buffer usage命令显示信息描述表
字段 |
描述 |
Ingress buffer usage on slot |
表示在指定板卡上BD缓冲区共享区域的使用率 |
Chip |
芯片 |
core |
核心 |
Total |
缓冲区容量 |
Used |
已使用的缓冲区容量 |
Free |
可用缓冲区容量 |
display buffer usage interface命令用来显示接口的数据缓冲区使用统计信息。
【命令】
display buffer usage interface [ interface-type [ interface-number ] ] [ verbose ]
【视图】
任意视图
【缺省用户角色】
network-admin
network-operator
mdc-admin
mdc-operator
【参数】
interface-type interface-number:指定接口,interface-type为接口类型,interface-number为接口编号。未指定interface-type参数时,显示设备上所有以太网接口的数据缓冲区使用统计信息;已指定interface-type但未指定interface-number时,显示设备上所有指定类型的以太网接口的数据缓冲区使用统计信息。
verbose:显示详细信息。如果不指定本参数,则显示简要信息。仅H3C S12500X-AF H系列单板支持指定verbose关键字显示详细使用统计信息。
【举例】
# 显示接口FortyGigE1/0/1的数据缓冲区简要使用统计信息。
<Sysname> display buffer usage interface fortygige 1/0/1
Interface QueueID Total Used Threshold(%) Violations
--------------------------------------------------------------------------------
FGE1/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
表1-2 display buffer usage interface命令显示信息描述表
字段 |
描述 |
Interface |
接口名称 |
QueueID |
队列编号 |
Total |
队列可用的数据缓冲区大小,单位为Byte |
Used |
队列已使用的数据缓冲区大小,单位为Byte |
Threshold(%) |
队列的数据缓冲区使用门限值,该值与队列所在接口的缓冲区使用门限值保持一致 |
Violations |
队列超量使用缓冲区的计数,表示队列使用缓冲区超过设定门限值的次数 该字段仅在设备重启时,才会清零后重新计数 |
# 显示接口FortyGigE1/0/1的数据缓冲区详细使用统计信息。
<Sysname> display buffer usage interface fortygige 1/0/1 verbose
FortyGigE1/0/1
Ingress:
QueueID: 0
Total: -- Used: 2 Threshold(%): 3
Violations: 4 Shared: 5 Headroom: 6
Xoff threshold: 7 Is dynamic: 0
QueueID: 1
Total: -- Used: 4 Threshold(%): 6
Violations: 8 Shared: 10 Headroom: 12
Xoff threshold: 14 Is dynamic: 0
QueueID: 2
Total: -- Used: 6 Threshold(%): 9
Violations: 12 Shared: 15 Headroom: 18
Xoff threshold: 21 Is dynamic: 0
QueueID: 3
Total: -- Used: 8 Threshold(%): 12
Violations: 16 Shared: 20 Headroom: 24
Xoff threshold: 28 Is dynamic: 0
QueueID: 4
Total: -- Used: 10 Threshold(%): 15
Violations: 20 Shared: 25 Headroom: 30
Xoff threshold: 35 Is dynamic: 0
QueueID: 5
Total: -- Used: 12 Threshold(%): 18
Violations: 24 Shared: 30 Headroom: 36
Xoff threshold: 42 Is dynamic: 0
QueueID: 6
Total: -- Used: 14 Threshold(%): 21
Violations: 28 Shared: 35 Headroom: 42
Xoff threshold: 49 Is dynamic: 0
QueueID: 7
Total: -- Used: 16 Threshold(%): 24
Violations: 32 Shared: 40 Headroom: 48
Xoff threshold: 56 Is dynamic: 0
Egress:
QueueID: 0
Total: 9 Used: 10 Threshold(%): 11
Violations: 12 TailDropThreshold: 13 Is dynamic: 1
QueueID: 1
Total: 18 Used: 20 Threshold(%): 22
Violations: 24 TailDropThreshold: 26 Is dynamic: 1
QueueID: 2
Total: 27 Used: 30 Threshold(%): 33
Violations: 36 TailDropThreshold: 39 Is dynamic: 1
QueueID: 3
Total: 36 Used: 40 Threshold(%): 44
Violations: 48 TailDropThreshold: 52 Is dynamic: 1
QueueID: 4
Total: 45 Used: 50 Threshold(%): 55
Violations: 60 TailDropThreshold: 65 Is dynamic: 1
QueueID: 5
Total: 54 Used: 60 Threshold(%): 66
Violations: 72 TailDropThreshold: 78 Is dynamic: 1
QueueID: 6
Total: 63 Used: 70 Threshold(%): 77
Violations: 84 TailDropThreshold: 91 Is dynamic: 1
QueueID: 7
Total: 72 Used: 80 Threshold(%): 88
Violations: 96 TailDropThreshold: 104 Is dynamic: 1
表1-3 display buffer usage interface verbose命令显示信息描述表
字段 |
描述 |
Interface |
接口名称 |
Ingress |
接收数据 |
Egress |
发送数据 |
QueueID |
队列编号 |
Total |
队列可用的数据缓冲区大小,单位为Byte |
Used |
队列已使用的数据缓冲区大小,单位为Byte |
Threshold(%) |
队列的数据缓冲区使用门限值,该值与队列所在接口的缓冲区使用门限值保持一致 |
Violations |
队列超量使用缓冲区的计数,表示队列使用缓冲区超过设定门限值的次数 该字段仅在设备重启时,才会清零后重新计数 |
Shared |
队列已使用共享数据缓冲区的cell资源个数。一个cell资源大小为1024字节 |
Headroom |
队列已使用Headroom缓冲区的cell资源个数。开启PFC功能的端口上某优先级队列进入PFC XOFF状态后,端口会发送XOFF帧通知对端设备暂停向本端发送对应优先级报文,如果对端设备未收到XOFF帧时已发出了流量,则端口会使用Headroom缓冲区缓存这部分流量 |
Xoff threshold |
反压帧触发门限值: · 当用户配置为动态时显示的数值为具体配置的百分比 · 当用户配置为静态门限时显示的数值为具体配置的cell资源个数 配置命令的详细介绍请参见“二层技术-以太网交换命令参考”中的“以太网接口” |
Tail drop threshold |
尾丢弃门限值 |
Is dynamic |
对于入方向,该字段取值如下: · 0:表示反压帧触发门限为静态 · 1:表示反压帧触发门限为动态 对于出方向,该字段取值如下: · 1:表示尾丢弃门限为动态 |
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!