OcNOS-DC 6.4.2 : Quality of Service Guide : Quality of Service Command Reference : Quality of Service Commands
Quality of Service Commands
This chapter is a reference for the ingress Quality of Service (QoS) and hierarchical QoS.
police
shape
bandwidth
Use this command to allocate a minimum percentage of the interface bandwidth to a queue.
Use the no command to remove a bandwidth configuration.
Command Syntax
bandwidth (<1-1000000000> (kbps|mbps|gbps) | percent <1-100>)
no bandwidth
Parameters
<1-1000000000>
Bandwidth value
kbps
Units in kilobits/sec.
mbps
Units in megabits/sec.
gbps
Units in gigabits/sec.
percent
Specify the percentage from 1 to 100.
Default
No default value is specified
Command Mode
Policy-class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
(config)# policy-map type queuing PQOS
(config-pmap-que)# class type queuing 1p7q4t-out-pq1
(config-pmap-c-que)# bandwidth 10 mbps
class-map type qos
Use this command to create a class-map of type qos.
Use the no command to remove a class-map.
Note: Class-map without any match qualification behaves similar to default class by matching all the packets on the interface it is attached via service policy.
In a class-map, adding or deleting match criteria with misconfiguration will have silent exit and will not proceed with operation.
Command Syntax
class-map (type qos|) (match-any|match-all|) NAME
no class-map (type qos|) (match-any|match-all|) NAME
Parameters
NAME
Specify the class map name (Max Size 32)
match-any
Match any parameter (boolean OR)
match-all
Match all parameters (boolean AND)
Default
By default, match type is match-all for any class-map
Command Mode
Configuration Mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)# class-map type qos C_QOS1
class-map type queuing
Use this command to create a class-map of type queuing.
Use the no command to remove a class-map.
Note: Class-maps with no action are treated as incomplete configuration and don't take any effect until the action is added. Class-map deletion is not allowed if it is referenced by any policy-map.
Command Syntax
class-map type queuing (match-any|) NAME
no class-map type queuing (match-any|) NAME
Parameters
NAME
Specify the class map name (Max Size 32)
match-any
Match any parameter (boolean OR)
Default
By default, class-map type is match-any
Command Mode
Configuration Mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II and Trident II+ platforms.
Examples
#configure terminal
(config)# class-map type queuing C_QOS1
class type qos
Use this command to add a QoS class-map to a qos policy map.
Use the no command to remove a QoS class-map from the policy map.
Note: Implicit priority of the classes in a policy-map will be calculated based on the number of matches with VLAN match given lower weight-age over other matches. In case of classes with conflicting matches, it is not guaranteed which class the traffic would hit. Users are recommended to use priority in such cases.
Command Syntax
class (type qos|) (NAME|class-default)
no class (type qos|) (NAME|class-default)
Parameters
NAME
Specify the class map name
Default
By default, class is type qos
Command Mode
Policy-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#
(config)#policy-map type qos PP
(config-pmap-que)#class type qos C_PP_1
class type queuing
Use this command to add a queuing class-map to a queuing policy map.
Use the no command to remove a queuing class-map from the policy map.
Command Syntax
class (type queuing ((default (q0|q1|q2|q3|q4|q5|q6|q7))|NAME) | NAME | queuing class-default)
no class (type queuing|) NAME
Parameters
NAME
Specify the class map name
<q0-q7>
Default queue name
Default
No default value is specified
Command Mode
Policy Map type queuing Mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#
(config)#policy-map type queuing PP
(config-pmap-que)#class type queuing C_PP_1
clear qos statistics
Use this command to clear the quality of service (QoS) statistics.
Command Syntax
clear qos statistics (interface IFNAME|) ((type all| type qos| type qos input| type qos output| type queuing)|)
Parameters
NAME
Specify which interface to clear.
type all
Clear all statistics from QoS and Queuing types.
type qos
Clear all statistics from QoS type.
type qos input
Clear all statistics from QoS input type.
type qos output
Clear all statistics from QoS output type.
type queuing
Clear all statistics from queuing type.
Default
By default, type QoS, type queuing class statistics on all interfaces will be cleared, if no parameters configured.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear qos statistics
 
cpu-queue
Use this command to configure create a cpu queue for vxlan.
Use the no form of this command to remove a cpu queue.
Command Syntax
cpu-queue <queue-name> ( (rate <value>|) (lossy|lossless|) (monitor|no-monitor|) )
no cpu-queue <queue-name> ( (rate|) (lossy|lossless|) (monitor|no-monitor) |)
Parameters
queue-name
Name of the cpu queue
rate
When the packets are uplifted
lossy
If enabled, packets are dropped at cpu-queue when the cpu-queues congested
loseless
If enabled, packets are dropped at ingress port
monitor
Enable logging when cpu-queue discards packets
no-monitor
Disable logging
Default
Default value for vxlan cpu-queue command is 500.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.8
Example
#configure terminal
(config)#cpu-queue cpu rate 500
(config-dscp-queue)#exit
egress cos map
Use this command to map a queue value to the CoS value.
Use the no form of this command to remove the map.
Note: Egress CoS map will be taking effect only when remark CoS is enabled.
Note: Color is an optional parameter. If not provided, the same map will be set for all colors.
Note: If ingress qos policy-map is configured with set cos action on ingress interface, set action will take priority over egress cos map and packet will egress out with set cos value.
Command Syntax
queue <0-7> (color (green|yellow|red|all)|) cos <0-7>
no queue <0-7> (color (green|yellow|red|all)|)
Parameters
<0-7>
Identifying queue number
color
(green|yellow|red|all)
<0-7>
CoS value
Default
By default, CoS to queue mapping is one to one.
Command Mode
Egress cos map mode
Applicability
This command was introduced in OcNOS DC version 4.2.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Example
(config)#qos profile queue-color-to-cos default
(config-egress-cos-map)#queue 1 color green cos 5
(config-egress-cos-map)#queue 1 cos 6
 
Color is an optional parameter. So if users do not provide color, for all colors same CoS remarking will be set. If user provides color, then only for that specific color egress map will be changed. If user provides map for all colors as well as without color, map with color will take priority.
(config-egress-cos-map)#no queue 1 color green
(config-egress-cos-map)#no queue 1
If user want to remove all the mapping of queue (for all colors) no need to provide color, else can provide specific color to remove specific map .
 
egress dscp map
Use this command to map a queue to a DSCP value.
Use the no form of this command to remove the map.
Note: Egress DSCP map will be taking effect only when remark DSCP is enabled.
Note: Color is an optional parameter. If not provided, the same map will be set for all colors.
Note: If ingress qos policy-map is configured with set dscp/precedence action on ingress interface, set action will take priority over egress dscp map and packet will egress out with set scp/precedence value.
Command Syntax
queue <0-7> (color (green|yellow|red|all)|) dscp <0-63>
no queue <0-7> (color (green|yellow|red|all)|)
Parameters
<0-7>
Identifying queue number
color
(green|yellow|red|all)
<0-63>
DSCP value
 
Default
By default, 8 DSCP values are mapped to one queue.
For example: DSCP 0-7 queue 0, DSCP 8-15 queue 1.
Command Mode
Egress dscp map mode
Applicability
This command was introduced in OcNOS DC version 4.2
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Example
(config)#qos profile queue-color-to-dscp default
(config-egress-dscp-map)#queue 2 color yellow dscp 40
(config-egress-dscp-map)#queue 2 dscp 36
If user specifies color in map then map will be set for that specific color else for all colors same map will be set.
(config-egress-dscp-map)#no queue 2 color yellow
(config-egress-dscp-map)#no queue 2
If user want to remove all the mapping of dscp (for all colors) no need to provide color, else can provide specific color to remove specific map.
 
ingress cos map
Use this command to map a CoS value to the queue.
Use the no form of this command to remove the map.
 
Command Syntax
cos <0-7> (dei (0|1|all)|) queue <0-7> (color (green|yellow|red)|)
no cos <0-7> (dei (0|1|all)|)
Parameters
<0-7>
CoS value
dei
Drop Eligible Indicator (0|1|all)
<0-7>
Identifying queue number
color
(green|yellow|red)
Default
By default, CoS to queue mapping is one to one, and DEI 0 will be mapped to color "green" and DEI 1 will be mapped to color "yellow”.
Command Mode
Ingress cos map mode
Applicability
This command was introduced in OcNOS DC version 4.2.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Example
(config)#qos profile cos-to-queue default
(config-ingress-cos-map)#cos 1 queue 2
ingress dscp map
Use this command to map a DSCP value to the queue.
Use the no form of this command to remove the map.
Note: Color is an optional parameter. If not provided, it will be set as the default value. Please refer the Configuration Guide for the default value table.
Command Syntax
dscp <0-63> queue <0-7> (color (green|yellow|red)|)
no dscp <0-63>
Parameters
<0-63>
DSCP value
<0-7>
Identifying queue number
color
(green|yellow|red)
Default
By default, 8 DSCP values are mapped to one queue.
For example: DSCP 0-7 queue 0, DSCP 8-15 queue 1.
Command Mode
Ingress dscp map mode
Applicability
This command was introduced in OcNOS DC version 4.2.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Example
(config)#qos profile dscp-to-queue default
(config-ingress-dscp-map)#dscp 1 queue 2
 
ingress exp map
Use this command to map a exp value to the queue.
Use the no form of this command to remove the map.
Note: Color is an optional parameter. If not provided, color will be set to green.
Command Syntax
exp <0-7> queue <0-7> (color (green|yellow|red)|)
no exp <0-7>
Parameters
<0-7>
EXP value
<0-7>
Identifying queue number
color
(green|yellow|red)
Default
By default, EXP to queue mapping is one to one.
Command Mode
Ingress exp queue map mode
Applicability
This command was introduced in OcNOS DC version 4.2.
Example
(config)#qos profile exp-to-queue default
(config-ingress-exp-queue-map)#exp 1 queue 4 color green
(config-ingress-exp-queue-map)#exp 2 queue 3
Lossless
Use this command to enable lossless setting on egress queue.
Command Syntax
(no|) lossless
Parameters
None
Default
Disabled
Command Mode
Policy-class-map-queue mode
Applicability
This command was introduced in OcNOS version 6.2.
Example
OcNOS#con t
OcNOS(config)#policy-map type queuing default p1
OcNOS(config-pmap-que)#class type queuing default q0
OcNOS(config-pmap-c-que)#lossless
 
 
match access-group
Use this command to classify the group based on the access group.
Use the no command remove access group match criteria from a class map
Command Syntax
match access-group NAME
no match access-group NAME
Parameters
NAME
Specify the access group name
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)# class-map class_acl
(config-cmap-qos)# match access-group my_acl
match cos
Use this command to classify the traffic based on cos
Use the no command to remove the match configuration.
Note: The match commands which accept range have silent exit which makes removal of these match configurations easier. For example, classify the traffic based on cos using the command match cos 2,4,6 and remove the match configuration using the command no match cos 2-6.
Command Syntax
match cos WORD
no match cos
Parameters
WORD
CoS value or list of specified CoS values. Valid values are from 0 to 7.
all
Delete all matched cos entries.
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#class-map type qos C_QOS1
(config-cmap-qos)#match cos 1
match cos inner
Use this command to classify the traffic based on inner cos.
Use the no command to remove the match configuration.
Note: The match commands which accept range have silent exit which makes removal of these match configurations easier. For example, classify the traffic based on inner cos using the command match cos inner 2,4,6 and remove the match configuration using the command no match cos inner 2-6.
Command Syntax
match cos inner WORD
no match cos inner
Parameters
 
WORD
Inner CoS value or list of specified CoS values. Valid values are from 0 to 7.
all
Delete all matched cos entries.
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#class-map type qos C_QOS1
(config-cmap-qos)#match cos inner 1
match dscp
Use this command to classify the traffic based on dscp.
Use the no command to remove the configured dscp value.
Note: The match commands which accept range have silent exit which makes removal of these match configurations easier. For example, classify the traffic based on dscp using the command match dscp 2,4,6 and remove the match configuration using the command no match dscp 2-6.
Command Syntax
match dscp [WORD | af11 | af12 | af13 | af21 | af22 | af23 | af31| af32 | af33 | af41 | af42 | af43 | cs1 | cs2 | cs3 | cs4 | cs5 | cs6| cs7 | default | ef]
no match dscp
Parameters
WORD
<0-63> List of DSCP values.
af11
AF11 dscp (001010).
af12
AF12 dscp (001100)
af13
AF13 dscp (001110)
af21
AF21 dscp (010010)
af22
AF22 dscp (010100)
af23
AF23 dscp (010110)
af31
AF31 dscp (011010)
af32
AF32 dscp (011100)
af33
AF33 dscp (011110)
af41
AF41 dscp (100010)
af42
AF42 dscp (100100)
af43
AF43 dscp (100110)
cs1
CS1(precedence 1) dscp (001000)
cs2
CS2(precedence 2) dscp (010000)
cs3
CS3(precedence 3) dscp (011000)
cs4
CS4(precedence 4) dscp (100000)
cs5
CS5(precedence 5) dscp (101000)
cs6
CS6(precedence 6) dscp (110000)
cs7
CS7(precedence 7) dscp (111000)
default
Default dscp (000000)
ef
EF dscp (101110)
all
Delete all matched DSCP values.
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#class-map type qos C_QOS7
(config-cmap-qos)#match dscp 48-55
match ip rtp
Use this command to configure a class map to use the Real-Time Protocol (RTP) port as a match criteria.
Use the no command to remove the RTP port as a match criteria.
Note: The match commands which accept range have silent exit which makes removal of these match configurations easier. For example, classify the traffic based on RTP port using the command match ip rtp 5000,7000, 9000 and remove the match configuration using the command no match ip rtp 5000-9000.
Command Syntax
match ip rtp WORD
no match ip rtp
Parameters
WORD
Specify User Datagram Protocol (UDP) or list of UDP ports that are using RTP. Valid values are from 2000 to 65535.
all
Delete all matched IP RTP values.
Default
No default value is specified
Command Mode
Class-map type qos
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)# class-map my_test
(config-cmap-qos)# match ip rtp 2300
match mac
Use this command to classify based on the mac address (can be source or destination or both)
Use the no command to remove the match configuration.
Command Syntax
match mac (src |dest ) (XX:XX:XX:XX:XX:XX| XX-XX-XX-XX-XX-XX |XXXX.XXXX.XXXX)
no match mac (src |dest )
Parameters
mac
Ethernet mac address
src
specifies the source mac
dest
specifies the destination mac
XX:XX:XX:XX:XX:XX
MAC address option 1
XX-XX-XX-XX-XX-XX
MAC address option 2
XXXX.XXXX.XXXX
MAC address option 3
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#class-map type qos C_QOS1
(config-cmap-qos)#match mac src 11:22:33:44:55:66
(config-cmap-qos)#match mac dest 3344.5566.7788
match precedence
Use this command to traffic classification based on precedence.
Use the no command to remove the match configuration.
Note: The match commands which accept range have silent exit which makes removal of these match configurations easier. For example, classify the traffic based on precedence using the command match precedence 2,4,6 and remove the match configuration using the command no match precedence 2-6.
Command Syntax
match precedence [WORD | critical | flash | flash-override | immediate | internet | network | priority | routine | 0-7]
no match precedence
Parameters
word
IP precedence value
critical
Critical precedence
flash
Flash precedence
flash-override
Flash override precedence
immediate
Immediate precedence
internet
Internetwork control precedence
network
Network control precedence
priority
Priority precedence
routine
Routine precedence
all
Delete all matched IP precedence values.
0-7
Valid values are in range 0-7
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)# class-map my_test
(config-cmap-qos)# match precedence 7
match protocol
Use this command to classify traffic based on protocol.
Use the no command to remove the specified protocol as a match criteria.
Command Syntax
match protocol (arp | bridging |cdp | clns | clns-is |clns-es | dhcp | isis | ldp| netbios )
no match protocol
Parameters
arp
Address Resolution Protocol (ARP)
bridging
Bridging
cdp
Cisco Discovery Protocol (CDP)
clns
Connection-less Network Service (CLNS)
clns-is
CLNS Intermediate System
clns-es
CLNS end System
dhcp
Dynamic Host Configuration (DHCP)
isis
Intermediate system to intermediate system (IS-IS)
ldp
Label Distribution Protocol (LDP)
netbios
NetBIOS Extended User Interface (NetBEUI)
all
Delete all matched protocols.
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)# class-map my_test
(config-cmap-qos)# match protocol ldp
match qos-group
Use this command to match a QoS group in a type queuing class map.
Use the no to remove a QoS match on a queue number from a type queuing class map.
Command Syntax
match qos-group <1-2000>
no match qos-group <1-2000>
Parameters
<1-2000>
Specify qos group value or list of qos group values specified in bytes.
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to Trident II and Trident II+ platforms.
Examples
(config)#
(config)#class-map type queuing match-any C_PP_1
(config-cmap-que)#match qos-group 1
match traffic-type
Use this command to classify based on traffic-type
Use the no command to remove the match configuration.
Note: Class with match traffic type default will have lower priority over class with other traffic type match.
Command Syntax
match traffic-type (l2-uc|l2-uc-unknown|default)
no match traffic-type (l2-uc|l2-uc-unknown|default)
Parameters
Traffic-type
type of traffic to be matched
l2-uc
L2 Unicast traffic
l2-uc-unknown
Unknown L2 Unicast traffic
default
All other traffic-types
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
(config)#class-map type qos C_QOS1
(config-cmap-qos)#match traffic-type l2-uc
match vlan
Use this command to classify the traffic based on a VLAN.
Use the no command to remove the match configuration.
Note: The match commands which accept range have silent exit which makes removal of these match configurations easier. For example, classify the traffic based on VLAN using the command match vlan 2,4,6 and remove the match configuration using the command no match vlan 2-6.
Command Syntax
match vlan WORD
no match vlan (WORD|all)
Parameters
not
Match all except this.
WORD
Enter VLAN ID <1-4094> or range of VLAN ID's separated by commas. For example, 2 or 2,4-5 or 50,51,52 or 100-120,122-130 etc.
all
Delete all VLAN ID entries.
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#class-map type qos C_QOS1
(config-cmap-qos)#match vlan 1
match vlan inner
Use this command to classify the traffic based on the inner VLAN.
Use the no command to remove the match configuration.
Note: The match commands which accept range have silent exit which makes removal of these match configurations easier. For example, classify the traffic based on the inner VLAN using the command match vlan inner 2,4,6 and remove the match configuration using the command no match vlan inner 2-6.
 
Command Syntax
match vlan inner WORD
no match vlan inner (WORD|all)
Parameters
 
not
Match all except this.
WORD
Enter VLAN ID <1-4094> or list of VLAN ID's separated by commas. For example, 2,4 etc.
all
Delete all VLAN ID entries.
Default
No default value is specified
Command Mode
Class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#class-map type qos C_QOS1
(config-cmap-qos)#match vlan inner 1
police
Use this command to configure policing of the data rates for a particular class of traffic.
Use the no command to remove a policing configuration.
Note: Committed Information Rate (CIR) and Peak Information Rate (PIR) can only be whole numbers.
Command Syntax
police (colour-blind | colour-aware |) (cir) (<1-2000000000> (kbps|mbps|gbps) | percent <1-100>) ((pir (<1-2000000000> (kbps|mbps|gbps) | percent <1-100>)|)(bc) <1-256000> (kbytes|mbytes|ms|us)|)((be)<1-256000> (kbytes|mbytes|ms|us)|)((conform (transmit | set-prec-transmit <0-7> | set-dscp-transmit <0-63> | set-cos-transmit <0-7> | set-mpls-class <0-7> )) |)((exceed (drop | set-dscp-transmit <0-63> | set-cos-transmit <0-7> | transmit | set-mpls-class <0-7> ))|) ((violate (drop | set-dscp-transmit <0-63> | set-cos-transmit <0-7> | transmit | set-mpls-class <0-7> ))|))
no police
Parameters
colour-blind
Do not police on color.
colour-aware
Do police on color.
cir <1-2000000000>
 
Specify Committed information rate.
pir <1-2000000000>
 
Peak information rate.
kbps
Specify the units of kbps per second.
mbps
Specify the units of mbps per second.
gbps
Specify the units of gbps per second.
Percent
Specify the rate in percent.
bc <1-256000>
 
Burst rate committed.
be <1-256000>
Burst rate extended.
transmit
Specify the action of transmitting packets.
set-prec-transmit
 
Sets the IP precedence field to the specified value and transmits the packet.
set-dscp-transmit
 
Sets the Differentiated Service Code Point (DSCP) field to the specified value and transmits the packet.
set-cos-transmit
 
Sets the class of service (CoS) field to the specified value and transmits the packet.
set-mpls-class
 
Set the mpls class filed to the give value and tx the packet
drop
Specify the action of dropping packets.
conform
Sets the action to take when the data rate is within bounds
exceed
Sets the action to take when the data rate is exceeded. Default is drop.
violate
Sets the action to take when the data rate violates the configured rate values. The default is drop.
Default
 
Table 1-2: Default values
Parameter
Default
policer-type
Color-Blind
cir
N/A
pir
0
bc
0
be
0
conform
Transmit
exceed
Drop
violate
Drop
Command Mode
Policy-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)# policy-map type qos 2345
(config-pmap-qos)#class type qos 2345
(config-pmap-c-qos)# police cir 2 mbps pir 4 mbps bc 2 mbytes be 4 mbytes conform transmit exceed set-cos-transmit 1 violate drop
Usage
Traffic policing is based on the concept of marking IP packets, and then metering the packets in relation to how they are marked. This is called the “Two Rate Three Color Marker (trTCM)” process.
The Two Rate Three Color Marker (trTCM) meters an IP packet stream, and marks its packets as either green, yellow, or red. A packet is marked RED if it exceeds the Peak Information Rate (PIR). Otherwise it is marked either YELLOW or GREEN depending on whether it exceeds or does not exceed the Committed Information Rate (CIR). The trTCM is useful, for example, for ingress policing of a service, where a peak rate needs to be enforced separately from a committed rate.
The Meter meters each packet and passes the packet and the metering result to the Marker. The Meter operates in one of two modes – Color-Blind or Color-Aware. In the Color-Blind mode, the Meter assumes that the packet stream is uncolored.In the Color-Aware mode, the Meter assumes that some preceding entity has pre-colored the incoming packet stream so that each packet is either GREEN, YELLOW, or RED.
The following describes the equations used to determine the BC an BE values:
Note: CIR, PIR, BC, and BE values are all in kbits/sec.
=================
BC = CIR * 5 / 1000;
Range check [64kbytes-256mbytes]
if (BC / 8) < 64)
then BC = 64 * 8;
else if (BC / 8) > 256000)
then BC = 256000 * 8;
=================
Same calculation for BE, as well.
Note: If the PIR value is not mentioned in the configuration, then the CIR value itself is considered for BE calculation.
=================
BE = PIR * 5 / 1000;
Range check [64kbytes-256mbytes]
if (BE / 8) < 64)
then BE = 64 * 8;
else if (BE / 8) > 256000)
then BE = 256000 * 8;
==================
For example:
Configure: police CIR 1 mbps
Hardware: CIR = 1000kbits/sec , BC = 512kbits, BE = 512kbits
 
Configure: police CIR 1 mbps PIR 200 mbps
Hardware: CIR = 1000kbits/sec, BC = 512kbits, PIR = 200000kbits/sec, BE = 1000kbits
 
For additional information regarding policing, see RFC 2697 and RFC 2698.
 
policy-map
Use this command to create a policy map and enter policy-map mode.
Use the no command to remove a policy map.
Note: You cannot delete a policy map if it is attached to an interface.
Command Syntax
policy-map {NAME | (type (qos|queuing (|default)) NAME)}
no policy-map {NAME |(type (qos|queuing (|default)) NAME)}
Parameters
NAME
Policy map name (maximum 32 characters)
qos
QoS policy map
queuing
Queuing policy map
Default
No default value is specified
Command Mode
Configuration mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#
(config)#policy-map type qos PQOS
priority
Use this command to set the user priority for the class attached to this policy-map.
Use the no parameter with this command to unset the priority value.
Note: The higher the priority number, higher the priority for the class in a policy-map. User configured priority takes effect over default priority.
Command Syntax
priority <1-1000>
no priority
Parameters
 
<1-1000>
Priority value
Default
No default value is specified
Command Mode
Policy-class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#policy-map pmap1
(config-pmap)#class cmap1
(config-pmap-c)#priority 20
priority (queuing)
Use this command to configure a single output queuing class as the priority queue.
Note: Priority can be set only on default queues (such as queues in the default queuing policy-map).
Command Syntax
priority
Parameters
None
Default
No default value is specified. Higher priority queue will have higher priority always when set.
Command Mode
Policy map-class type queuing mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
#configure terminal
(config)#policy-map type queuing default default-out-policy
(config-pmap-que)#class type queuing default q0
(config-pmap-c-que)#priority
qos (enable | disable)
Use this command to globally enable or disable Quality-of-Service (QoS).
Note: Enabling or disabling QoS is a disruptive operation, stopping all traffic on ports which causes traffic loss.
Command Syntax
qos (enable | disable)
Parameters
None
Default
By default, QoS is enabled.
Command Mode
Configure
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)# qos enable
 
(config)#qos disable
qos map-profile
Use this command to attach (map) a profile to an interface.
Use the no form of this command to remove a profile.
Note: By-default, "default" profiles are attached on their supported interfaces (cos-to-queue and queue-to-cos on L2 interfaces and DSCP-to-queue and queue-color-to-DSCP on L3 interfaces).
Note: You can create and attach your own profile to supported interfaces. After removing a user-defined profiles from an interface, the "default" profile is applied.
Command Syntax
qos map-profile (cos-to-queue | dscp-to-queue | queue-color-to-cos | queue-color-to-dscp | precedence-to-queue | queue-to-precedence) NAME
no qos map-profile (cos-to-queue | dscp-to-queue | queue-color-to-cos | queue-color-to-dscp| precedence-to-queue | queue-to-precedence) NAME
Parameters
cos-to-queue
 
Profile for CoS to queue map
dscp-to-queue
 
Profile for DSCP to queue map
queue-color-to-cos
 
Profile for queue color to CoS map
queue-color-to-dscp
 
Profile for queue color to DSCP map
precedence-to-queue
profile for precedence to queue map
queue-to-precedence
profile for queue to precedence map
NAME
Profile map name (maximum 32 characters)
Default
By default, the default cos-to-queue-profile is applied to an L2 interface, and the default DSCP-to-queue profile is attached to an L3 interface.
Command Mode
Interface modes
Applicability
This command was introduced in OcNOS DC version 4.2.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Example
(config-if)#qos map-profile cos-to-queue cos-map
(config-if)#qos map-profile dscp-to-queue dscp-map
(config-if)#qos map-profile queue-color-to-cos egress-cos-map
(config-if)#qos map-profile queue-color-to-dscp q-to-dscp-map
qos profile
Use this command to create new profiles or to update "default" profiles.
Use the no form of this command to remove the "user-defined" profiles, or to undo custom updates in "default" profiles.
Command Syntax
qos profile (cos-to-queue | dscp-to-queue | queue-color-to-cos | queue-color-to-dscp) (NAME|default)
no qos profile (cos-to-queue | dscp-to-queue | queue-color-to-cos | queue-color-to-dscp) (NAME|default)
Parameters
cos-to-queue
Profile for CoS to queue map
dscp-to-queue
Profile for DSCP to queue map
queue-color-to-cos
 
Profile for queue color to CoS map
queue-color-to-dscp
 
Profile for queue color to DSCP map
NAME
Profile map name (maximum 32 characters)
 
Default
By default, "default" profile is created for all the profile types. These profiles can only be updated by the user neither be created nor be destroyed.
Command Mode
Configure modes
Applicability
This command was introduced in OcNOS DC version 4.2.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Example
To create a new profile:
(config)#qos profile cos-to-queue cos-map
(config)#qos profile dscp-to-queue dscp-map
(config)#qos profile queue-color-to-cos egress-cos-map
(config)#qos profile queue-color-to-dscp q-to-dscp-map
 
To update the "default" profile:
(config)#qos profile cos-to-queue default
(config)#qos profile dscp-to-queue default
(config)#qos profile queue-color-to-cos default
(config)#qos profile queue-color-to-dscp default
qos profile precedence-to-queue
Use this command to set the precedence to queue profile.
Use the no form of this command delete the profile.
Use show qos-profile to show the profile detail.
Use qos map-profile to map the profile on interface.
Command Syntax
qos profile precedence-to-queue (NAME|)
precedence <0-7> queue <0-7>
no qos profile precedence-to-queue (NAME|)
no precedence <0-7> queue <0-7>
Parameters
NAME
The profile name to be created
precedence <0-7>
Precedence value
queue <0-7>
The queue value
Command Mode
Configure modes
Applicability
This command was introduced in OcNOS-SP version 5.0.
Example
#configure terminal
(config)#qos profile precedence-to-queue prec-map
(config-ingress-prec-map)#precedence 1 queue 1
(config)#interface xe1
(config-if)#qos map-profile precedence-to-queue prec-map
 
qos profile queue-to-precedence
Use this command to set the queue to precedence profile.
Use the no form of this command delete the profile.
Use show qos-profile to show the profile detail.
Use qos map-profile to map the profile on interface.
Command Syntax
qos profile queue-to-precedence (NAME|)
queue <0-7> precedence <0-7>
no qos profile queue-to-precedence (NAME|)
no queue <0-7> precedence <0-7>
Parameters
NAME
The profile name to be created
queue <0-7>
The queue value
precedence <0-7>
Precedence value
Command Mode
Configure modes
Applicability
This command was introduced in OcNOS-SP version 5.0.
Example
#configure terminal
(config)#qos profile queue-to-precedence egress-prec-map
(config-egress-prec-map)#queue 1 precedence 0
(config)#interface xe2
(config-if)#qos map-profile queue-to-precedence egress-prec-map
 
 
 
qos remark
Use this command to enable remarking of the Class of service (CoS) and Differentiated Services Control Protocol (DSCP) set by the egress map.
Use the no command to disable remarking of the CoS and DSCP.
Command Syntax
In Config mode :
qos remark (cos|dei|dscp)
no qos remark (cos|dei|dscp)
In interface mode:
qos remark (cos|dei|dscp)(enable|disable)
no qos remark (cos|dei|dscp)
Parameters
type
 
Remarking type. For example, CoS or DEI (Drop Eligible Indicator bit) or DSCP
(enable|disable)
 
Remarking action
Default
By default, remarking is disabled.
Command Mode
Configure mode, Interface mode
Applicability
This command was introduced in OcNOS DC version 4.2.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
((config)#qos remark cos
(config)#qos remark dscp
(config-if)# qos remark cos disable
(config-if)# qos remark cos enable
(config-if)# qos remark dscp disable
Interface remarking will take priority over global remarking configurations.
 
qos statistics
Use this command to enable Quality of Service (QoS) statistics.
Use the no command to disable QoS statistics
Note: Class-map statistics is cleared whenever the match or action property of the class is modified dynamically.
Command Syntax
qos statistics
no qos statistics
Parameters
None
Default
By default, QoS statistics is disabled
Command Mode
Configure Mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#qos statistics
(config)#
queue-limit
Use this command to configure tail drop by setting queue limits on egress queues.
Use the no command to remove a queue limit.
Command Syntax
queue-limit (<1-524288>) (packets | bytes | kbytes | percent)
no queue-limit
Parameters
<1-524288>
Specify queue-limit in packets, bytes, percent or Kilobytes.
Max value for bytes is 524288
Max value for kilobytes is 512
Max value for packets is 600
Max value of percent is 100
Default
No default value is specified
Command Mode
Policy-class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
(config)# policy-map type queuing P1
(config-pmap-que)#class type queuing q1
(config-pmap-c-que)# queue-limit percent 50
random-detect
Use this command to configure weighted random early detection (WRED).
Use the no command to remove a WRED configuration.
Note: Explicit Congestion Notification (ECN) ECN-WRED is independent of WRED and max queue size parameters. With ECN, queue size can be reached until default max queue size is exceeded.
Command Syntax
random-detect green (min-threshold|)<1-524288> (max-threshold|)<1-524288> (drop-probability <1-100>|) yellow (min-threshold|)<1-524288> (max-threshold|)<1-524288> (drop-probability <1-100>|) red (min-threshold|)<1-524288> (max-threshold|)<1-524288>) (drop-probability <1-100>|) (packets | bytes | kbytes)(ecn|)
random-detect (min-threshold|)<1-524288> (max-threshold|)<1-524288> (packets | bytes | kbytes) (drop-probability <1-100>|) (ecn|)
random-detect weight <0-15>
no random-detect
no random-detect weight
Parameters
min-threshold
 
Specify the minimum threshold. In the range of <1-524288>
max-threshold
 
Specify the maximum threshold. In the range of <1-524288>
drop-probability
 
Specify the probability of dropping. In the range <1-100>
Packets, bytes, kbytes
 
Specify the thresholds in Packets, Bytes, or Kilobytes.
ecn
Explicit Congestion Notification
weight
Specify the weight level . In the range <0-15>
 
Default
No default value is specified
Command Mode
Policy-class map mode
Applicability
This command was introduced before OcNOS version 1.3.
Drop-probability and weight were introduced on OcNOS DC version 4.2.
This command applies only to the Trident II, Trident II+, Trident III, Tomahawk, and Helix platforms.
Examples
(config)# policy-map type queuing default xyz
(config-pmap-que)#class type queuing default q1
(config-pmap-c-que)#random-detect min-threshold 200 max-threshold 512 kbytes drop-probability 50 ecn
(config-pmap-c-que)#random-detect weight 10
(config-pmap-c-que)#no random-detect
 
service-policy
Use this command to attach a child policy onto a parent policy.
Use the no command detach child policy from the parent policy.
Command Syntax
service-policy NAME
no service-policy NAME
Parameters
NAME
Specify the policy map to attach to the parent policy.
Default
No default value is specified
Command Mode
Policy-class-map queuing mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II and Trident II+ platforms.
Examples
(config)#policy-map type queuing P1
(config-pmap-que)#class type queuing empty5b
(config-pmap-c-que)#service-policy PQOS
service-policy type qos
Use this command to attach a service-policy of type qos to the interface.
Use the no command to remove a service-policy from an interface.
Command Syntax
service-policy type qos (input|output) NAME
no service-policy type qos (input|output) NAME
Parameters
type
Specify whether the policy map is of type qos.
NAME
Specify the policy map to attach to this interface.
Default
No default value is specified
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#int xe3
(config-if)#service-policy type qos input PQOS
service-policy type queuing
Use this command to attach a service-policy of type queuing to the interface.
Use the no command to remove a service-policy from an interface.
Command Syntax
service-policy type queuing output NAME
no service-policy type queuing output NAME
Parameters
type
Specify whether the policy map is of type queuing.
NAME
Specify the policy map to attach to this interface.
Default
By default, default-out-policy is attached on all interface
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#int xe3
(config-if)#service-policy type queuing output PQOS
set bridge cos
Use this command to set the Class-of-Service (CoS) value for L2 packets only.
Use the no parameter with this command to unset a CoS value.
Command Syntax
set bridge cos (<0-7>)
no set bridge cos
Parameters
<0-7>
CoS value.
Default
No default value is specified
Command Mode
Policy-class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
#configure terminal
(config)#policy-map pmap1
(config-pmap)#class cmap1
(config-pmap-c)#set bridge cos 2
set bridge dscp
Use this command to set the DSCP value for L3 packets only.
Use the no parameter with this command to unset a DSCP value.
Command Syntax
set bridge dscp (<0-63>|af11| af12| af13| af21| af22| af23| af31|
af32| af33| af41| af42| af43| cs1| cs2| cs3| cs4| cs5|
cs6| cs7| default| ef )
no set bridge dscp
Parameters
<0-63>
DSCP value
af11
DSCP (001011) decimal value 11
af12
DSCP (001100) decimal value 12
af13
DSCP (001101) decimal value 13
af21
DSCP (010101) decimal value 21
af22
DSCP (010110) decimal value 22
af23
DSCP (010111) decimal value 23
af31
DSCP (011111) decimal value 31
af32
DSCP (010000) decimal value 32
af33
DSCP (010001) decimal value 33
af41
DSCP (101001) decimal value 41
af42
DSCP (101010) decimal value 42
af43
DSCP (101011) decimal value 38
cs1
(Precedence 1) DSCP (001000) decimal value 8
cs2
(Precedence 2) DSCP (010000) decimal value 16
cs3
(Precedence 3) DSCP (011000) ecimal value 24
cs4
(Precedence 4) DSCP (100000) decimal value 32
cs5
(Precedence 5) DSCP (101000) decimal value 40
cs6
(Precedence 6) DSCP (110000) decimal value 48
cs7
(Precedence 7) DSCP (111000) decimal value 56
default
DSCP (000000) decimal value 0
ef
DSCP (101110) decimal value 46
Default
No default value is specified
Command Mode
Policy-class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
#configure terminal
(config)#policy-map pmap1
(config-pmap)#class cmap1
(config-pmap-c)#set bridge dscp 25
set cos
Use this command for matching traffic classes set action as change cos in the egress packet to the prescribed value.
Use the no command to remove the assigned value from the class.
Command Syntax
set cos <0-7>
no set cos
Parameters
<0-7>
Specify CoS value to assign for this class of traffic
Default
No default value is specified
Command Mode
Policy-map mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
(config)# policy-map my_policy1
(config-pmap-qos)# class traffic_class2
(config-pmap-c-qos)# no set cos
(config-pmap-c-qos)#
set dscp
Use this command for matching traffic classes set action as change DSCP in the egress packet to the prescribed value.
Use the no command to remove the assigned value from the class
Command Syntax
set dscp (<0-63>|af11| af12| af13| af21| af22| af23| af31|
af32| af33| af41| af42| af43| cs1| cs2| cs3| cs4| cs5|
cs6| cs7| default| ef )
no set dscp
Parameters
<0-63>
DSCP value
af11
DSCP (001011) decimal value 11
af12
DSCP (001100) decimal value 12
af13
DSCP (001101) decimal value 13
af21
DSCP (010101) decimal value 21
af22
DSCP (010110) decimal value 22
af23
DSCP (010111) decimal value 23
af31
DSCP (011111) decimal value 31
af32
DSCP (010000) decimal value 32
af33
DSCP (010001) decimal value 33
af41
DSCP (101001) decimal value 41
af42
DSCP (101010) decimal value 42
af43
DSCP (101011) decimal value 38
cs1
(Precedence 1) DSCP (001000) decimal value 8
cs2
(Precedence 2) DSCP (010000) decimal value 16
cs3
(Precedence 3) DSCP (011000) ecimal value 24
cs4
(Precedence 4) DSCP (100000) decimal value 32
cs5
(Precedence 5) DSCP (101000) decimal value 40
cs6
(Precedence 6) DSCP (110000) decimal value 48
cs7
(Precedence 7) DSCP (111000) decimal value 56
default
DSCP (000000) decimal value 0
ef
DSCP (101110) decimal value 46
Default
No default value is specified
Command Mode
Policy map class mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
#configure terminal
(config)#policy-map pmap1
(config-pmap)#class cmap1
(config-pmap-c)#set dscp af12
set mpls class
Use this command to set mpls class(queue) for the matched packet.
Use the no command to remove the assigned value from the class.
Command Syntax
set mpls class <0-7>
no set mpls class
Parameters
<0-7>
Specify class value to assign for this traffic.
Default
No default value is specified
Command Mode
Policy-map type qos
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
(config)# policy-map my_policy1
(config-pmap-qos)# class traffic_class2
(config-pmap-c-qos)# set mpls class 3
(config-pmap-c-qos)#
set precedence
Use this command for matching traffic classes set action as change precedence in the egress packet to the prescribed value.
Use the no command to leave the precedence value unchanged for the class
Command Syntax
set (precedence (<0-7>| critical| flash | flash-override|immediate|internet| network| priority| routine))
no set precedence
Parameters
<0-7>
Specify IP precedence value to assign for this class of traffic
critical
Critical precedence
flash
Flash precedence
flash-override
Flash override precedence
immediate
Immediate precedence
internet
Internetwork control precedence
network
Network control precedence
priority
Priority precedence
routine
Routine precedence
Default
No default value is specified
Command Mode
Policy-map mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
(config)# policy-map policy1
(config-pmap-qos)# class class2
(config-pmap-c-qos)# set precedence 3
(config-pmap-c-qos)#
set qos-group
Use this command to match a QoS group in a type queuing class map.
Use the no command to remove a QoS group match on a queue number from a type queuing class map.
Command Syntax
set qos-group <1-2000>
no set qos-group <1-2000>
Parameters
<1-2000>
Specify the QoS group value to assign for this class of traffic.
Default
No default value is specified
Command Mode
Policy-class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II and Trident II+ platforms.
Examples
(config)#
(config)#policy-map type qos PQOS
(config-pmap-qos)#class type qos C_QOS1
(config-pmap-c-qos)#set qos-group 1
set qos queue scheduler
Use this command to change the scheduler mode of Unicast Queue and Non-Unicast queue groups to WRR or SP.
Use the no command to disable the set mode, and to change to the default mode
Command Syntax
set qos ((wrr uc <1-127> non-uc <1-127>)|sp)
no set qos (wrr|sp)
Parameters
wrr
 
Weighted Round Robin Mode
uc
Unicast Queues from 1 to 127
non-uc
Non-Unicast Queues from 1 to 127
sp
 
Strict Priority Mode
Default
The default is WRR with 32:2.
Command Mode
Configure Mode
Applicability
This command was introduced before OcNOS version 1.3 for platforms Trident II and Trident II+
Tomahawk support is provided with OcNOS DC version 4.2.
Tomahawk supports only wrr setting between uc and mc queues.
Examples
(config)#set qos wrr uc 30 non-uc 40
(config)#no set qos wrr
set queue
Use this command for matching traffic classes set action as change cos in the egress packet to the prescribed value.
Use the no command to remove the assigned value from the class.
Command Syntax
set queue <0-7>
no set queue
Parameters
<0-7>
Specify queue value to assign for this class of traffic
Default
No default value is specified
Command Mode
Policy-map mode
Applicability
'This command was introduced before OcNOS version 1.3.
This command applies only to the Trident II, Trident II+, and Tomahawk platforms.
Examples
(config)# policy-map my_policy1
(config-pmap-qos)# class traffic_class2
(config-pmap-c-qos)# set queue 4
(config-pmap-c-qos)#
 
 
shape
Use this command to configure shaping on an egress queue to impose a maximum rate on it.
Use the no command to remove a shaping configuration.
Command Syntax
shape (<1-1000000000> (kbps|mbps|gbps) | percent <1-100>)
no shape
Parameters
average
Specify an optional keyword. Shaping is based on an average rate. Average rate for shaping in the range of <1-1000000000>
kbps
Specify the units of kbps per second.
mbps
Specify the units of mbps per second.
gbps
Specify the units of gbps per second.
percent
Specify the percentage from 1 to 100.
Default
No default value is specified
Command Mode
Policy-class-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)# policy-map type queuing my_queue
(config-pmap-que)# class type queuing PQOS
(config-pmap-c-que)# shape percent 25
(config-pmap-c-que)#
shape rate
Use this command to configure shaping on an egress port to impose a maximum rate on it.
Use the no form of the command to remove a shaping configuration.
Command Syntax
shape rate <1-1000000000> (kbps|mbps|gbps) burst SHAPE_BURST_RATE
no shape rate
Parameters
<1-1000000000>
Average rate for shaping in the following range:
8 kbps to 1000 gbps for Trident3
1 kbps to 1000 gbps for other XGS platforms
kbps
Units of kbps per second.
mbps
Units of mbps per second.
gbps
Units of gbps per second.
SHAPE_BURST_RATE
 
Burst value in kbits in the following range:
<2-1000000> for Trident3 and tomahwak
<1-1000000> for other XGS platforms
Default
N/A
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 1.3.8.
Examples
(config)#interface xe11
(config-if)#shape rate 100 mbps burst 20
 
show class-map
Use this command to display qos/queuing class maps.
Command Syntax
show class-map (type (qos|queuing)|) (NAME|)
Parameters
NAME
Specify the named class map
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show class-map type qos
Type qos class-maps
===================
class-map type qos 1234
match cos 3
class-map type qos 2345
QOS-ACCESS-LIST-NAME: 101
 
 
#show class-map 1234
Type qos class-maps
===================
class-map type qos 1234
match cos 3
show cpu-queue details
Use this command to display details about CPU queue for QoS.
Command Syntax
show cpu-queue details
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.8
Example
#show cpu-queue details
* - Can not configure the parameter
Cpu queue Rate In PPS Lossy Status Monitor Status
Name Configured Default Configured Default Configured Default
========= ========== ======= ========== ========== ========== ===========
sflow 10000 32000 - *lossy no-monitor monitor
bgp - 1500 - lossless - monitor
vrrp - 500 - lossless - monitor
ldp-rsvp - 500 - lossless - monitor
rip - 500 - lossless - monitor
ospf 0 2000 lossy lossless monitor monitor
dhcp - 100 - lossy - no-monitor
nd 200 6000 lossless lossless monitor monitor
mpls - 500 - lossy - no-monitor
pim - 4000 - *lossy - *no-monitor
arp 100 6000 lossy lossless no-monitor monitor
igmp - 4000 - *lossy - *no-monitor
bpdu 1000 10000 - lossless monitor monitor
ccm - 500 - lossy - no-monitor
bfd - 2000 - lossy - no-monitor
ptp - 1000 - lossy - no-monitor
isis - 500 - lossless - monitor
trill-isis - 1000 - lossless - monitor
acl - 200 - *lossy - *no-monitor
vxlan - 500 - lossy - monitor
Table 1-3 explains the output fields.
 
Table 1-3: show CPU Queue fields
Entry
Description
CPU queue name
Name of the CPU queue
Rate In PPS
At which packets are successfully delivered
Lossy Status
Status of the network lossy or lossless
Monitor Status
Status of the network monitor
 
 
show policy-map
Use this command to display:
1. Type qos/queuing policy-map
2. Non zero statistics for type qos or queuing classes on interfaces
Command Syntax
show policy-ma statistics type queuing default
show policy-ma statistics type queuing
Parameters
qos
Type qos policy-map
statistics
Displays QoS statistics.
queuing
Type queuing policy-maps
default
Default queue of the port
Interface
Interface on which to get policy-map statistics
NAME
Specify named policy map.
Command Mode
Exec and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
P1#show policy-map statistics
Type qos class-map statistics:
+--------------------------------+-----------------+-----------------+-----------------+------------------+
| Class-map | Match pkts | Match bytes | Dropped pkts | Dropped Bytes |
+--------------------------------+-----------------+-----------------+-----------------+------------------+
ce29/1
C1 100 6796 0 0
 
Type queuing class-map statistics:
+--------------------------------+-----------------+-----------------+-----------------+------------------+
| Class-map | Total pkts | Total bytes | Dropped pkts | Dropped Bytes |
+--------------------------------+-----------------+-----------------+-----------------+------------------+
ce1/1
q7 1689 108888 0 0
ce2/1
q6 8 912 0 0
ce5/1
q6 8 912 0 0
ce29/1
q7 104 7052 0 0
P1#
P1#show policy-map type qos st
P1#show policy-map statistics type qos ?
| Output modifiers
 
Output redirection
<cr>
 
P1#show policy-map statistics type qos
+--------------------------------+-----------------+-----------------+-----------------+------------------+
| Class-map | Match pkts | Match bytes | Dropped pkts | Dropped Bytes |
+--------------------------------+-----------------+-----------------+-----------------+------------------+
ce29/1
C1 100 6796 0 0
P1#,
 
P1#show version
Software version: EC_AS7712-32X-OcNOS-6.0.0-DC-MPLS-Alpha 07/14/2022 09:25:41
Copyright (C) 2022 IP Infusion. All rights reserved
 
Software Product: OcNOS, Version: 6.0.0
Build Number: 132
Release: Alpha
Hardware Model: Edgecore 7712-32X-O-AC-F
Software Feature Code: DC-MPLS
Software Baseline Version: 5.0.145
 
Installation Information:
Image Filename: OcNOS-6.0.0.132-DC_MPLS-Alpha-installer
ONIE SysInfo: x86_64-accton_as7712_32x-r0
 
P1#
 
 
- -
 
show policy-map interface
Use this command to display the statistics and the configurations of the input and output policies that are attached to an interface.
Command Syntax
show policy-map interface (NAME (input | output | ) (type (qos | queuing)|) | brief)
Parameters
NAME
Policy name.
brief
brief policy interface.
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show policy-map interface xe19/1
 
 
Interface xe19/1
Global statistics status : enabled
 
Service-policy (qos) input : p1
--------------------------------
Class-map (qos): c1 (match all)
match vlan 2
police cir 2 mbps
matched : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (qos): c3 (match all)
police cir 2 mbps
matched : 2172408 packets, 2172408000 bytes
dropped : 2128959 packets, 2128959000 bytes
 
 
Service-policy (queuing) output: default-out-policy
--------------------------------
Class-map (queuing): q0
priority level 1
bandwidth percent 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): q1
priority level 1
bandwidth percent 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): q2
priority level 1
bandwidth percent 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): q3
priority level 1
bandwidth percent 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): q4
priority level 1
bandwidth percent 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): q5
priority level 1
bandwidth percent 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): q6
priority level 1
bandwidth percent 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): q7
priority level 1
bandwidth percent 1
output : 1445 packets, 92536 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): mc-q0
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): mc-q1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): mc-q2
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): mc-q3
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): mc-q4
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): mc-q5
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): mc-q6
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
 
 
Class-map (queuing): mc-q7
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
show qos-profile
Use this command to show the all configured QoS profiles configurations like type, name, maps configured except for the default maps, attached info (to how many interfaces it is attached) etc,
Command Syntax
show qos-profile (type (cos-to-queue | dscp-to-queue | queue-color-to-cos | queue-color-to-dscp | dscp-to-exp)| precedence-to-queue | queue-to-precedence |)(NAME|)
Parameters
cos-to-queue
Profile for CoS to queue map
dscp-to-queue
Profile for DSCP to queue map
queue-color-to-cos
 
Profile for queue color to CoS map
queue-color-to-dscp
 
Profile for queue color to DSCP map
dscp-to-exp
Profile for DSCP to exp map
exp-to-queue
Profile for exp to queue map
precedence-to-queue
profile for precedence to queue map
queue-to-precedence
profile for queue to precedence map
NAME
Profile map name (maximum 32 characters)
Command Mode
Exec, config, interface, class-map, policy-map and policy-map-class
Applicability
This command was introduced in OcNOS DC version 4.2.
Examples
OcNOS#show qos-profile in xe1
profile name: default
profile type: cos-to-queue (Ingress)
mapping:
---------------+----------------- | ---------------+-----------------
INPUT | OUTPUT | INPUT | OUTPUT
---------------+----------------- | ---------------+-----------------
COS | DEI | Queue | Color | COS | DEI | Queue | Color
-------+-------+-------+--------- | -------+-------+-------+---------
0 0 0 green | 0 1 0 yellow
1 0 1 green | 1 1 1 yellow
2 0 2 green | 2 1 2 yellow
3 0 3 green | 3 1 3 yellow
4 0 4 green | 4 1 4 yellow
5 0 5 green | 5 1 5 yellow
6 0 6 green | 6 1 6 yellow
7 0 7 green | 7 1 7 yellow
 
profile name: default
profile type: queue-color-to-cos (Egress)
Status: Inactive
mapping:
----------------+-------- | ----------------+-------- | ----------------+--------
INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT
----------------+-------- | ----------------+-------- | ----------------+--------
Queue | Color | COS | Queue | Color | COS | Queue | Color | COS
-------+--------+-------- | -------+--------+-------- | -------+--------+--------
0 green 0 | 0 yellow 0 | 0 red 0
1 green 1 | 1 yellow 1 | 1 red 1
2 green 2 | 2 yellow 2 | 2 red 2
3 green 3 | 3 yellow 3 | 3 red 3
4 green 4 | 4 yellow 4 | 4 red 4
5 green 5 | 5 yellow 5 | 5 red 5
6 green 6 | 6 yellow 6 | 6 red 6
7 green 7 | 7 yellow 7 | 7 red 7
 
show qos-profile interface
Use this command to show the all configured QoS profiles configurations attached on an interface.
Command Syntax
show qos-profile interface NAME
Parameters
NAME
Profile map name (maximum 32 characters)
Command Mode
Exec, config, interface, class-map, policy-map and policy-map-class
Applicability
This command was introduced in OcNOS-SP version 1.0.
Examples
(config)#show qos-profile interface xe11
profile name: cos-map
profile type: cos-to-queue
mapping:
qos profile cos-to-queue cos-map
cos 0 dei 0 queue 0 color green
cos 0 dei 1 queue 0 color yellow
cos 0 queue 0
cos 1 dei 0 queue 1 color green
cos 1 dei 1 queue 1 color yellow
cos 1 queue 1
cos 2 dei 0 queue 2 color green
cos 2 dei 1 queue 2 color yellow
cos 2 queue 2
cos 3 dei 0 queue 3 color green
cos 3 dei 1 queue 3 color yellow
cos 3 queue 3
cos 4 dei 0 queue 4 color green
cos 4 dei 1 queue 4 color yellow
cos 4 queue 4
cos 5 dei 0 queue 5 color green
cos 5 dei 1 queue 5 color yellow
cos 5 queue 5
cos 6 dei 0 queue 6 color green
 
show queuing interface
Use this command to dispay the configurations of queues attached to an interface.
Command Syntax
show queuing interface NAME
Parameters
NAME
Interface name.
Command Mode
Exec & config mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
# show queuing interface xe1/1
Egress Queuing for Ethernet xe1/1 [System]
----------------------------------------------------------------------------------------------------
L0 L1 L2 Group PrioLevel Shape Bandwidth
----------------------------------------------------------------------------------------------------
q0 - High - -
q1 - High - -
q2 - High - -
q3 - High - -
q4 - High - -
q5 - High - -
q6 - High - -
q7 - High - -
 
show running-config qos
Use this command to show the user configured QoS configurations.
Command Syntax
show running-config qos (all|)
Parameters
all
Show all QoS related configuration information including all defaults.
Command Mode
Exec, config, interface, class-map, policy-map and policy-map-class
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show running-config qos
qos enable
!
!
#show running-config qos ?
all diplay all qos info including defaults
| Output modifiers
> Output redirection
<cr>
 
#show running-config qos all
qos enable
!
qos profile cos-to-queue default
cos 0 dei 0 queue 0 color green
cos 0 dei 1 queue 0 color yellow
cos 0 queue 0
cos 1 dei 0 queue 1 color green
cos 1 dei 1 queue 1 color yellow
cos 1 queue 1
cos 2 dei 0 queue 2 color green
cos 2 dei 1 queue 2 color yellow
cos 2 queue 2
cos 3 dei 0 queue 3 color green
cos 3 dei 1 queue 3 color yellow
cos 3 queue 3
cos 4 dei 0 queue 4 color green
cos 4 dei 1 queue 4 color yellow
cos 4 queue 4
cos 5 dei 0 queue 5 color green
cos 5 dei 1 queue 5 color yellow
cos 5 queue 5
cos 6 dei 0 queue 6 color green
cos 6 dei 1 queue 6 color yellow
cos 6 queue 6
cos 7 dei 0 queue 7 color green
cos 7 dei 1 queue 7 color yellow
cos 7 queue 7
!
qos profile queue-color-to-cos default
queue 0 color green cos 0
queue 0 color yellow cos 0
queue 0 color red cos 0
queue 0 color all cos 0
queue 1 color green cos 1
queue 1 color yellow cos 1
queue 1 color red cos 1
queue 1 color all cos 1
queue 2 color green cos 2
queue 2 color yellow cos 2
queue 2 color red cos 2
queue 2 color all cos 2
queue 3 color green cos 3
queue 3 color yellow cos 3
queue 3 color red cos 3
queue 3 color all cos 3
queue 4 color green cos 4
queue 4 color yellow cos 4
queue 4 color red cos 4
queue 4 color all cos 4
queue 5 color green cos 5
queue 5 color yellow cos 5
queue 5 color red cos 5
queue 5 color all cos 5
queue 6 color green cos 6
queue 6 color yellow cos 6
queue 6 color red cos 6
queue 6 color all cos 6
queue 7 color green cos 7
queue 7 color yellow cos 7
queue 7 color red cos 7
queue 7 color all cos 7
!
qos profile dscp-to-queue default
dscp 0 queue 0 color green
dscp 1 queue 0 color green
dscp 2 queue 0 color green
dscp 3 queue 0 color green
dscp 4 queue 0 color green
dscp 5 queue 0 color green
dscp 6 queue 0 color green
dscp 7 queue 0 color green
dscp 8 queue 1 color green
dscp 9 queue 1 color green
dscp 10 queue 1 color green
dscp 11 queue 1 color green
dscp 12 queue 1 color yellow
dscp 13 queue 1 color green
dscp 14 queue 1 color red
dscp 15 queue 1 color green
dscp 16 queue 2 color green
dscp 17 queue 2 color green
dscp 18 queue 2 color green
dscp 19 queue 2 color green
dscp 20 queue 2 color yellow
dscp 21 queue 2 color green
dscp 22 queue 2 color red
dscp 23 queue 2 color green
dscp 24 queue 3 color green
dscp 25 queue 3 color green
dscp 26 queue 3 color green
dscp 27 queue 3 color green
dscp 28 queue 3 color yellow
dscp 29 queue 3 color green
dscp 30 queue 3 color red
dscp 31 queue 3 color green
dscp 32 queue 4 color green
dscp 33 queue 4 color green
dscp 34 queue 4 color green
dscp 35 queue 4 color green
dscp 36 queue 4 color yellow
dscp 37 queue 4 color green
dscp 38 queue 4 color red
dscp 39 queue 4 color green
dscp 40 queue 5 color green
dscp 41 queue 5 color green
dscp 42 queue 5 color green
dscp 43 queue 5 color green
dscp 44 queue 5 color green
dscp 45 queue 5 color green
dscp 46 queue 5 color green
dscp 47 queue 5 color green
dscp 48 queue 6 color green
dscp 49 queue 6 color green
dscp 50 queue 6 color green
dscp 51 queue 6 color green
dscp 52 queue 6 color green
dscp 53 queue 6 color green
dscp 54 queue 6 color green
dscp 55 queue 6 color green
dscp 56 queue 7 color green
dscp 57 queue 7 color green
dscp 58 queue 7 color green
dscp 59 queue 7 color green
dscp 60 queue 7 color green
dscp 61 queue 7 color green
dscp 62 queue 7 color green
dscp 63 queue 7 color green
!
qos profile queue-color-to-dscp default
queue 0 color green dscp 0
queue 0 color yellow dscp 0
queue 0 color red dscp 0
queue 0 color all dscp 0
queue 1 color green dscp 10
queue 1 color yellow dscp 12
queue 1 color red dscp 14
queue 1 color all dscp 8
queue 2 color green dscp 18
queue 2 color yellow dscp 20
queue 2 color red dscp 22
queue 2 color all dscp 16
queue 3 color green dscp 26
queue 3 color yellow dscp 28
queue 3 color red dscp 30
queue 3 color all dscp 24
queue 4 color green dscp 34
queue 4 color yellow dscp 36
queue 4 color red dscp 38
queue 4 color all dscp 32
queue 5 color green dscp 40
queue 5 color yellow dscp 40
queue 5 color red dscp 40
queue 5 color all dscp 40
queue 6 color green dscp 48
queue 6 color yellow dscp 48
queue 6 color red dscp 48
queue 6 color all dscp 48
queue 7 color green dscp 56
queue 7 color yellow dscp 56
queue 7 color red dscp 56
queue 7 color all dscp 56
!
policy-map type queuing default default-out-policy
class type queuing default q0
priority
exit
class type queuing default q1
priority
exit
class type queuing default q2
priority
exit
class type queuing default q3
priority
exit
class type queuing default q4
priority
exit
class type queuing default q5
priority
exit
class type queuing default q6
priority
exit
class type queuing default q7
priority
exit
!
interface xe1/1
service-policy type queuing default default-out-policy
!
interface xe1/2
service-policy type queuing default default-out-policy
!
interface xe1/3
service-policy type queuing default default-out-policy
!
interface xe1/4
service-policy type queuing default default-out-policy
!
interface xe2/1
service-policy type queuing default default-out-policy
 
show running-config cpu-queue
Use this command to display details about CPU queue information based on processes running.
Command Syntax
show running-config cpu-queue
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.8
Example
#show running-config | in cpu-queue
cpu-queue sflow rate 10000 no-monitor
cpu-queue ospf rate 0 lossy monitor
cpu-queue nd rate 200 lossless monitor
cpu-queue arp rate 100 lossy no-monitor
cpu-queue bpdu rate 1000 monitor
storm-control
Use this command to set the rising threshold level for broadcast, multicast, or destination lookup failure traffic. The storm control action occurs when traffic utilization reaches this level.
Storm control is used to block the forwarding of unnecessary flooded traffic. A packet storm occurs when a large number of broadcast packets are received on a port. Forwarding these packets can cause the network to slow down or time out.
Use the no form of this command to disable storm control.
Command Syntax
storm-control (broadcast|multicast|dlf) (level LEVEL | <0-1000000000>
(kbps|mbps|gbps) burst-size <32-16M>)
no storm-control (broadcast|multicast|dlf)
Parameters
broadcast
Broadcast rate limiting.
multicast
Multicast rate limiting.
dlf
Destination lookup failure limiting.
level
Sets the percentage of the threshold.
LEVEL
The percentage of the threshold; percentage of the maximum speed (pps) of the interface <0.0000-1000.0000>.
<0-1000000000>
 
Sets absolute threshold value <0-1000000000>
kbps
specifies the units of Kilobits per second.
mbps
specifies the units of Megabits per second.
gbps
specifies the units of Gigabits per second.
burst-size
Set burst size
<32-16M>
value of burst in kbps
Default
By default, storm control is disabled
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS-SP version 1.0.
Examples
#configure terminal
(config)#interface xe1
(config-if)#storm-control broadcast level 30
 
(config)#interface xe2
(config-if)#storm-control multicast level 30
 
(config)#interface xe3
(config-if)#storm-control multicast 300 mbps
 
(config)#interface xe4
(config-if)#no storm-control multicast
 
 
trust dscp
Use this command to use dscp value to decide queue mapping for packets in Layer 2 interfaces.
The no parameter with this command un-sets trust dscp.
Command Syntax
trust dscp
no trust dscp
Parameters
None
Default
By default, trust dscp is disabled on L2 interface
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#int xe1/1
(config-if)#trust dscp
wrr-queue weight
Use this command to set wrr-queue weight for a queue.
Use the priority command to un-set configured wrr configuration.
Command Syntax
wrr-queue weight <1-127>
Parameters
<1-127>
wrr queue weight to be configured.
Default
No default value is specified
Command Mode
Policy-class-map queuing Mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#policy-map type queuing default default-out-policy
(config-pmap-que-def)# class type queuing default q0
(config-pmap-c-que-def)#wrr-queue weight 2
(config-pmap-c-que-def)#priority