API Guide

可选更改为 network-qos 类别映射流量保留的入口缓冲区大小的默认值以及用于发送 XOFF XON 暂停帧的阈值
kb 为单位
pause [buffer-size kilobytes {pause-threshold kilobytes | resume-threshold kilobytes}]
4. POLICY-CLASS-MAP 模式下启用 dot1p 流量的 PFC 暂停功能。Dot1p 值必须与步骤 2 中类别映射中的 qos-group 流量类别
编号相同。输入单个 dot1p 1 7、连字符分隔的范围或多个 dot1p 用逗号分隔
pfc-cos dot1p-priority
5. 可选设置用于限制分配给 PFC 流量类别队列的共享缓冲区的静态和动态阈值。根据可用的 PFC 共享缓冲区配置静态或固定
队列限制 kb 为单位或动态阈值权重 1-10默认值为 9
queue-limit thresh-mode {static kilobytes | dynamic weight}
6. 可选重复步骤 2 4 以在其他流量类别上配置 PFC
应用服务策略并启用 PFC
1. INTERFACE 模式下在入口接口或接口范围上应用 PFC 服务策略。
interface ethernet node/slot/port:[subport]
service-policy input type network-qos policy—map-name
interface range ethernet node/slot/port:[subport]-node/slot/port[:subport]
service-policy input type network-qos policy—map-name
2. INTERFACE 模式下启用 PFC不带 DCBX for FCoE iSCSI 流量。
priority-flow-control mode on
配置 PFC
在具有 dot1p 3 4 流量的流量类别上已启用 PFC。这两个流量类别需要不同的入口队列处理。在 network-qos pp1 策略映射
类别 cc1 使用自定义 PFC 缓冲区大小和暂停帧设置类别 cc2 使用默认设置。
OS10(config)# system qos
OS10(config-sys-qos)# trust-map dot1p default
OS10(config)# system qos
OS10(config-sys-qos)# exit
OS10(config)# class-map type network-qos cc1
OS10(config-cmap-nqos)# match qos-group 3
OS10(config-cmap-nqos)# exit
OS10(config)# class-map type network-qos cc2
OS10(config-cmap-nqos)# match qos-group 4
OS10(config-cmap-nqos)# exit
OS10(config)# policy-map type network-qos pp1
OS10(config-pmap-network-qos)# class cc1
OS10(config-pmap-c-nqos)# pause buffer-size 30 pause-threshold 20 resume-threshold 10
OS10(config-pmap-c-nqos)#pfc-cos 3
OS10(config-pmap-c-nqos)#exit
OS10(config-pmap-network-qos)# class cc2
OS10(config-pmap-c-nqos)# pause
OS10(config-pmap-c-nqos)#pfc-cos 4
OS10(config-pmap-c-nqos)#exit
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# service-policy input type network-qos pp1
OS10(conf-if-eth1/1/1)# priority-flow-control mode on
OS10(conf-if-eth1/1/1)# no shutdown
查看 PFC 配置和运行状态
OS10(conf-if-eth1/1/1)# do show interface ethernet 1/1/1 priority-flow-control details
ethernet1/1/1
聚合数据中心服务
1265