API Guide

1. DCBX 配置全局
在交换机上全局配置 DCBX以使用 PFCETS iSCSI 配置来启用 DCBX TLV 消息的交换。
OS10# configure terminal
OS10(config)# dcbx enable
2. PFC 配置全局
在具有 dot1p 456 7 流量的流量类别上已启用 PFC。所有流量类别均使用默认 PFC 暂停共享缓冲区大小的设置以及在网络
qos 策略映射中的入口队列处理中暂停帧。trust-map dot1p default 接收信任所有 dot1p 入口流量。
OS10(config)# class-map type network-qos test4
OS10(config-cmap-nqos)# match qos-group 4
OS10(config-cmap-nqos)# exit
OS10(config)# class-map type network-qos test5
OS10(config-cmap-nqos)# match qos-group 5
OS10(config-cmap-nqos)# exit
OS10(config)# class-map type network-qos test6
OS10(config-cmap-nqos)# match qos-group 6
OS10(config-cmap-nqos)# exit
OS10(config)# class-map type network-qos test7
OS10(config-cmap-nqos)# match qos-group 7
OS10(config-cmap-nqos)# exit
OS10(config)# policy-map type network-qos test
OS10(config-pmap-network-qos)# class test4
OS10(config-pmap-c-nqos)# pause
OS10(config-pmap-c-nqos)# pfc-cos 4
OS10(config-pmap-c-nqos)# exit
OS10(config-pmap-network-qos)# class test5
OS10(config-pmap-c-nqos)# pause
OS10(config-pmap-c-nqos)# pfc-cos 5
OS10(config-pmap-c-nqos)# exit
OS10(config-pmap-network-qos)# class test6
OS10(config-pmap-c-nqos)# pause
OS10(config-pmap-c-nqos)# pfc-cos 6
OS10(config-pmap-c-nqos)# exit
OS10(config-pmap-network-qos)# class test7
OS10(config-pmap-c-nqos)# pause
OS10(config-pmap-c-nqos)# pfc-cos 7
OS10(config-pmap-c-nqos)# exit
OS10(config-pmap-network-qos)# exit
OS10(config)# system qos
OS10(config-sys-qos)# trust-map dscp default
3. PFC 配置接口
将带 dot1p 信任的服务策略和 PFC 配置应用到接口。
OS10(config)# interface ethernet 1/1/53
OS10(conf-if-eth1/1/53)# no shutdown
OS10(conf-if-eth1/1/53)# service-policy input type network-qos test
OS10(conf-if-eth1/1/53)# trust-map dot1p default
OS10(conf-if-eth1/1/53)# priority-flow-control mode on
OS10(conf-if-eth1/1/53)# end
4. ETS 配置全局
信任 dot1p-map dot1p 012 3 流量分配给 qos 0 dot1p 456 7 流量分配给 qos 1qos-map traffic 类别
映射将 qos 0 中的流量类别分配给队列 0 qos 1 流量分配给队列 1。队列策略映射将 30% 的接口带宽分配给队列 0 70%
的带宽分配给队列 1
OS10(config)# trust dot1p-map tmap1
OS10(config-tmap-dot1p-map)# qos-group 0 dot1p 0-3
OS10(config-tmap-dot1p-map)# qos-group 1 dot1p 4-7
OS10(config-tmap-dot1p-map)# exit
OS10(config)# qos-map traffic-class tmap2
OS10(config-qos-map)# queue 0 qos-group 0
OS10(config-qos-map)# queue 1 qos-group 1
聚合数据中心服务
1289