API Guide

NOS(config-wred)# random-detect color red minimum-threshold 100 maximum-threshold 500
drop-probability 100
NOS(config-wred)# exit
NOS(config)# class-map type queuing cq
NOS(config-cmap-queuing)# match queue 5
NOS(config-cmap-queuing)# exit
NOS(config)# policy-map type queuing pq
NOS(config-pmap-queuing)# class cq
NOS(config-pmap-c-que)# random-detect w1
NOS(config-pmap-c-que)# end
NOS# configure terminal
NOS(config)# interface range ethernet 1/1/1,1/1/2,1/1/3
NOS(conf-range-eth1/1/1,1/1/2,1/1/3)# flowcontrol receive off
NOS(conf-range-eth1/1/1,1/1/2,1/1/3)# priority-flow-control mode on
NOS(conf-range-eth1/1/1,1/1/2,1/1/3)# ets mode on
NOS(conf-range-eth1/1/1,1/1/2,1/1/3)# service-policy input type network-qos policy5
NOS(conf-range-eth1/1/1,1/1/2,1/1/3)# service-policy output type queuing pq
NOS(conf-range-eth1/1/1,1/1/2,1/1/3)# trust-map dot1p t1
NOS(conf-range-eth1/1/1,1/1/2,1/1/3)# end
Enable DCBx ToR device
OS10# configure terminal
OS10(config)# dcbx enable
Buffer statistics tracking
OS10 offers the Buffer Statistics Tracking (BST) feature to observe buffer usage across the switch without any impact to
performance. This feature maintains separate sets of counters for buffer usage accounting:
Ingress priority-group
Ingress service-pool
Ingress shared-headroom-pool
Egress queue
Egress service-pool
You can obtain a snapshot of the buffer statistics for the different buffer objects, such as a snapshot of all ingress priority-
groups associated to a port, all egress unicast queues bound to a port, and so on.
You can enable BST at the global level. OS10 tracks buffer utilization and provides the maximum peak statistics value over a
period of time and the current value of the monitored BST counter.
Use the buffer-statistics-tracking command in SYSTEM-QOS mode to enable BST:
OS10# configure terminal
OS10(config)# configure system-qos
OS10(config-sys-qos)# buffer-statistics-tracking
Clear the counter
You can choose to reset the peak buffer utilization value and determine a new peak buffer utilization value. Use the clear qos
statistics type buffer-statistics-tracking command to clear the tracked value and to refresh this counter.
BST tracks peak buffer utilization over a period of time. At any given point in time, the peak buffer usage from the past is
displayed.
For example, if you enable BST at time T0 and use the show command to view the peak buffer utilization value at time T1, the
peak usage between T0 and T1 is displayed. If you view the peak buffer utilization again at time T2, the peak usage between T0
and T2 is displayed. However, if you clear the counter using the clear qos statistics type buffer-statistics-
tracking command at time T3 and view the peak buffer utilization at time T4, the peak usage between T3 and T4 is displayed.
NOTE:
When BST is enabled, if you make any configuration changes that affect the priority group or priority mapping
configuration, such as removal of class map, addition of class map to policy map (nqos), and so on, be sure to clear the
buffer statistics using the clear qos statistics type buffer-statistics-tracking command to view the
actual peak buffer utilization for the current configuration.
Advantages of BST include:
1224
Quality of service