Ocnos DC Qos Guide
Ocnos DC Qos Guide
October 2024
This documentation is subject to change without notice. The software described in this document and this documentation
are furnished under a license agreement or nondisclosure agreement. The software and documentation may be used or
copied only in accordance with the terms of the applicable agreement. No part of this publication may be reproduced,
stored in a retrieval system, or transmitted in any form or any means electronic or mechanical, including photocopying and
recording for any purpose other than the purchaser's internal use without the written permission of IP Infusion Inc.
IP Infusion Inc.
3979 Freedom Circle
Suite 900
Santa Clara, California 95054
http://www.ipinfusion.com/
Trademarks:
IP Infusion and OcNOS are trademarks or registered trademarks of IP Infusion. All other trademarks, service marks,
registered trademarks, or registered service marks are the property of their respective owners.
Use of certain software included in this equipment is subject to the IP Infusion, Inc. End User License Agreement at http://
www.ipinfusion.com/license. By using the equipment, you accept the terms of the End User License Agreement.
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
IP Maestro Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Chapter Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Migration Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Feature Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Preface
This guide describes how to configure OcNOS.
IP Maestro Support
Monitor devices running OcNOS Release 6.3.4-70 and above using IP Maestro software.
Audience
This guide is intended for network administrators and other engineering professionals who configure OcNOS.
Conventions
Table P-1 shows the conventions used in this guide.
Convention Description
monospaced type Code elements such as commands, parameters, files, and directories
Chapter Organization
The chapters in command references are organized as described in Command Description Format.
The chapters in configuration guides are organized into these major sections:
• An overview that explains a configuration in words
• Topology with a diagram that shows the devices and connections used in the configuration
• Configuration steps in a table for each device where the left-hand side shows the commands you enter and the
right-hand side explains the actions that the commands perform
• Validation which shows commands and their output that verify the configuration
Related Documentation
For information about installing of OcNOS, see the Installation Guide for your platform.
Migration Guide
Check the Migration Guide for configuration changes to make when migrating from one version of OcNOS to another.
Feature Availability
The features described in this document that are available depend upon the OcNOS SKU that you purchased. See the
Feature Matrix for a description of the OcNOS SKUs.
Support
For support-related questions, contact [email protected].
Comments
If you have comments, or need to report a problem with the content, contact [email protected].
Overview
You use the CLI to configure, monitor, and maintain OcNOS devices. The CLI is text-based and each command is
usually associated with a specific task.
You can give the commands described in this manual locally from the console of a device running OcNOS or remotely
from a terminal emulator such as putty or xterm. You can also use the commands in scripts to automate
configuration tasks.
Command Completion
The CLI can complete the spelling of a command or a parameter. Begin typing the command or parameter and then
press the tab key. For example, at the CLI command prompt type sh:
> sh
Press the tab key. The CLI displays:
> show
If the spelling of a command or parameter is ambiguous, the CLI displays the choices that match the abbreviation. Type
show i and press the tab key. The CLI displays:
> show i
interface ip ipv6 isis
> show i
The CLI displays the interface and ip keywords. Type n to select interface and press the tab key. The CLI
displays:
> show in
> show interface
Type ? and the CLI displays the list of parameters for the show interface command.
> show interface
IFNAME Interface name
| Output modifiers
> Output redirection
<cr>
The CLI displays the only parameter associated with this command, the IFNAME parameter.
Command Abbreviations
The CLI accepts abbreviations that uniquely identify a keyword in commands. For example:
> sh int xe0
is an abbreviation for:
> show interface xe0
Command Negation
Many commands have a no form that resets a feature to its default value or disables the feature. For example:
• The ip address command assigns an IPv4 address to an interface
• The no ip address command removes an IPv4 address from an interface
Syntax Conventions
Table P-2 describes the conventions used to represent command syntax in this reference.
lowercase Keywords that you enter exactly as shown in the show ip ospf
command syntax.
. Repeatable parameter. The parameter that follows a set as-path prepend .<1-65535>
period can be repeated more than once. Do not
enter the period as part of the command.
Variable Placeholders
Table P-3 shows the tokens used in command syntax use to represent variables for which you supply a value.
Token Description
LINE A text string, including spaces; no other parameters can follow this parameter
IFNAME Interface name whose format varies depending on the platform; examples are: eth0,
Ethernet0, ethernet0, xe0
Section Description
Command Name The name of the command, followed by what the command does and when should it be used
Command Mode The mode in which the command runs; see Command Modes
Keyboard Operations
Table P-5 lists the operations you can perform from the keyboard.
Left arrow or Ctrl+b Moves one character to the left. When a command extends beyond a single line, you can press left
arrow or Ctrl+b repeatedly to scroll toward the beginning of the line, or you can press Ctrl+a to go
directly to the beginning of the line.
Right arrow or Ctrl-f Moves one character to the right. When a command extends beyond a single line, you can press right
arrow or Ctrl+f repeatedly to scroll toward the end of the line, or you can press Ctrl+e to go directly to
the end of the line.
Ctrl+y Pastes text previously deleted with Ctrl+k, Alt+d, Ctrl+w, or Ctrl+u at the cursor
Ctrl+c Ignores the current line and redisplays the command prompt
Begin Modifier
The begin modifier displays the output beginning with the first line that contains the input string (everything typed after
the begin keyword). For example:
# show running-config | begin xe1
...skipping
interface xe1
ipv6 address fe80::204:75ff:fee6:5393/64
!
interface xe2
ipv6 address fe80::20d:56ff:fe96:725a/64
!
line con 0
login
!
end
You can specify a regular expression after the begin keyword, This example begins the output at a line with either
“xe2” or “xe4”:
# show running-config | begin xe[3-4]
...skipping
interface xe3
shutdown
!
interface xe4
shutdown
!
interface svlan0.1
no shutdown
!
route-map myroute permit 3
!
route-map mymap1 permit 10
!
route-map rmap1 permit 3
!
line con 0
login
line vty 0 4
login
!
end
Include Modifier
The include modifier includes only those lines of output that contain the input string. In the output below, all lines
containing the word “input” are included:
# show interface xe1 | include input
input packets 80434552, bytes 2147483647, dropped 0, multicast packets 0
input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 1, missed 0
You can specify a regular expression after the include keyword. This examples includes all lines with “input” or
“output”:
#show interface xe0 | include (in|out)put
input packets 597058, bytes 338081476, dropped 0, multicast packets 0
input errors 0, length 0, overrun 0, CRC 0, frame 0, fifo 0, missed 0
output packets 613147, bytes 126055987, dropped 0
output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0
Exclude Modifier
The exclude modifier excludes all lines of output that contain the input string. In the following output example, all lines
containing the word “input” are excluded:
# show interface xe1 | exclude input
Interface xe1
Scope: both
Hardware is Ethernet, address is 0004.75e6.5393
index 3 metric 1 mtu 1500 <UP,BROADCAST,RUNNING,MULTICAST>
VRF Binding: Not bound
Administrative Group(s): None
DSTE Bandwidth Constraint Mode is MAM
inet6 fe80::204:75ff:fee6:5393/64
output packets 4438, bytes 394940, dropped 0
output errors 0, aborted 0, carrier 0, fifo 0, heartbeat 0, window 0
collisions 0
You can specify a regular expression after the exclude keyword. This example excludes lines with “output” or “input”:
# show interface xe0 | exclude (in|out)put
Interface xe0
Scope: both
Hardware is Ethernet Current HW addr: 001b.2139.6c4a
Physical:001b.2139.6c4a Logical:(not set)
index 2 metric 1 mtu 1500 duplex-full arp ageing timeout 3000
<UP,BROADCAST,RUNNING,MULTICAST>
VRF Binding: Not bound
Bandwidth 100m
DHCP client is disabled.
inet 10.1.2.173/24 broadcast 10.1.2.255
VRRP Master of : VRRP is not configured on this interface.
inet6 fe80::21b:21ff:fe39:6c4a/64
collisions 0
Redirect Modifier
The redirect modifier writes the output into a file. The output is not displayed.
# show cli history | redirect /var/frame.txt
The output redirection token (>) does the same thing:
# show cli history >/var/frame.txt
Last Modifier
The last modifier displays the output of last few number of lines (As per the user input). The last number ranges from
1 to 9999.
For example:
#show running-config | last 10
String Parameters
The restrictions in Table P-6 apply for all string parameters used in OcNOS commands, unless some other restrictions
are noted for a particular command.
Restriction Description
Command Modes
Commands are grouped into modes arranged in a hierarchy. Each mode has its own set of commands. Table P-7 lists
the command modes common to all protocols.
Name Description
Executive Also called view mode, this is the first mode to appear after you start the CLI. It is a base mode from where you
mode can perform basic commands such as show, exit, quit, help, and enable.
Privileged Also called enable mode, in this mode you can run additional basic commands such as debug, write, and
executive show.
mode
Configure Also called configure terminal mode, in this mode you can run configuration commands and go into other
mode modes such as interface, router, route map, key chain, and address family.
Configure mode is single user. Only one user at a time can be in configure mode.
Interface In this mode you can configure protocol-specific settings for a particular interface. Any setting you configure in
mode this mode overrides a setting configured in router mode.
Router This mode is used to configure router-specific settings for a protocol such as BGP or OSPF.
mode
Start in
executive
mode
enable (password)
Privileged
executive
mode
configure terminal
Configure
mode
Interface Router
mode mode
To change modes:
QoS Functionality
Quality of Service (QoS) can be used to give certain traffic priority over other traffic. Without QoS, all traffic in a network
has the same priority and chance of being delivered on time. If congestion occurs, all traffic has the same chance of
being dropped. With QoS, specific network traffic can be prioritized to receive preferential treatment. In turn, a network
performs more predictably, and utilizes bandwidth more effectively.
QoS is based on DiffServ architecture, which stipulates that individual packets be classified upon entry into a network.
Classification information can be carried in the Layer-3 IP packet header or the Layer-2 frame. IP packet headers carry
the information using 6-bits from the deprecated IP type of service (TOS) field. Layer-2 802.1Q frames carry the
information using a 2-byte Tag Control Information field. All switches and routers accessing the Internet depend on
class information to give the same forwarding treatment to packets with the same class information, and give different
treatment to packets with different class information. A packet can be assigned class information, as follows:
• End hosts or switches along a path, based on a configured policy
• Detailed packet examination, expected to occur nearer to the network edge, to prevent overloading core switches
and routers
• A combination of the above two techniques
Class information can be used by switches and routers along a path to limit the amount of allotted resources per traffic
class. Per-hop behavior is an individual device’s behavior when handling traffic in the DiffServ architecture. An end-to-
end QoS solution can be created if all devices along a path have consistent per-hop behavior.
Terminology
Following is a brief description of terms and concepts used to describe QoS.
ACL
Access control lists (ACLs) classify traffic with the same characteristics. IP traffic is classified using IP standard or IP
extended ACLs. The ACL can have multiple access control entries (ACEs), which are commands that match fields
against the contents of the packet. It is not possible to match IP fragments against configured IP extended ACLs to
enforce QoS, but it is possible to match IP options against configured IP extended ACLs to enforce QoS.
CoS Value
Class of Service (CoS) is a 3-bit value used to classify the priority of Layer-2 frames upon entry into a network. QoS
classifies frames by assigning priority-indexed CoS values to them, and gives preference to higher-priority traffic.
Layer-2 802.1Q frame headers have a 2-byte Tag Control Information field that carries the CoS value in the three most-
significant bits, called the User Priority bits. On interfaces configured as Layer-2 802.1Q trunks, all traffic is in 802.1Q
frames, except for traffic in the native VLAN. Other frame types cannot carry Layer-2 CoS values. CoS values range
from zero to seven, seven being the highest priority.
DSCP Value
Differentiated Services Code Point (DSCP) is a 6-bit value used to classify the priority of Layer-3 packets upon entry
into a network. DSCP values range from 0 to 63, 63 being the highest priority, 0 being best-effort traffic.
Classification
Classification distinguishes one kind of traffic from another by examining the fields in the packet. The process
generates an internal DSCP for a packet, which identifies all future QoS actions to be taken on the packet. Each packet
is classified upon entry into the network. At the ingress, the packet is inspected, and the DSCP is determined based on
ACLs or the configuration. The Layer-2 CoS value is then mapped to a DSCP value. The classification is carried in the
IP packet header using 6 bits from the deprecated IP TOS field to carry the classification information. Classification can
also occur in the Layer-2 frame. Classification is enabled only if QoS is globally enabled on the switch. By default, QoS
is globally disabled, thus, no classification occurs. Classification occurs on an ingress physical port, but not at the
switch virtual interface level. Classification can be based on QoS ACLs, or class maps and policy maps.
Policing
Policing determines whether a packet is in or out of profile by comparing the internal DSCP to the configured policer.
Policer limits the bandwidth consumed by a traffic flow with the results given to the marker. The two types of policers:
• Individual: QoS applies the bandwidth limits specified in the policer, separately, to each matched traffic class. An
individual policer is configured within a policy map.
• Aggregate: QoS applies the bandwidth limits specified in an aggregate policer, cumulatively, to all matched traffic
flows. An aggregate policer is configured by specifying the policer name within a policy map. The bandwidth limits
of the policer are specified. In this way, multiple classes of traffic across policy map share the aggregate policer.
Policing and policers have the following attributes:
• Policers can occur only on a physical port basis.
• Policing can occur on ingress interfaces.
• Only one policer can be applied to a packet per direction.
Marking
Marking determines how to handle a packet when it is out of profile. It assesses the policer and the configuration data
to determine the action required for the packet, and then handles the packet using one of the following methods:
• Let the packet through without modification
• Drop the packet
Marking can occur on ingress and egress interfaces.
Queuing
Queuing maps packets to a CoS queue. Each egress port can accommodate up 8 CoS queues, prioritized as 0 lowest
and 7 highest. The tagged packet incoming priority can be mapped to one of the 8 queues obtained from the filtering
mechanism result. The untagged packet CoS priority is also obtained from the filtering mechanism result. After the
packets are mapped to a CoS queue, they are scheduled.
Bandwidth Reservation
Bandwidth reservation is the minimum guaranteed bandwidth allocated per queue. Total guaranteed bandwidth of all
the queues belonging to a particular port should not exceed the interface Bandwidth. In case if no Bandwidth
reservation is done for the queue, minimum guaranteed per each queue will be 1% of the parent node [scheduling
node or interface]
Scheduling
Scheduling forwards or conditions packets using one of the following methods:
• Strict Priority-Based (SP), in which any high-priority packets are first transmitted. Lower-priority packets are
transmitted only when the higher-priority queues are empty. A problem may occur when too many lower-priority
packets are not transmitted. Strict Priority will be operating on the remaining bandwith available for the Port
• Weighted Round Robin (WRR), in which each queue is assigned a weight to control the number of packets
relatively sent from each queue.The weights assigned for the queues will be in the ratio of bandwidth reservation of
those queues
• Combination of WRR and SP, the Remaining Bandwidth will be scheduled in the strict order for the SP Queues.
The Remaining Bandwidth will be scheduled in the WRR mode for WRR Queues.
Class Map
A class map names and isolates specific traffic from other traffic. The class map defines the criteria used to match
against a specific traffic flow to classify it further. The criteria can include:
• Matching the access group defined by the ACL
• Matching a specific list of DSCP values
If there is more than one type of traffic to be classified, another class map can be created under a different name. After
a packet is matched against the class-map criteria, it is further classified using a policy map.
Policy Map
A policy map specifies on which traffic class to act. This can be implemented as follows:
• Set a specific CoS or DSCP value in the traffic class.
• Specify the traffic bandwidth limitations for each matched traffic class (policer) and the action to take (marking)
when the traffic is out of profile.
Policy maps have the following attributes:
• A policy map can contain multiple class statements, each with different match criteria and policers.
• A separate policy-map class can exist for each type of traffic received through an interface.
• There can be only one policy map per interface per direction. The same policy map can be applied to multiple
interfaces and directions.
• Before a policy map can be effective, it must be attached to an interface.
Enable/Disable Configuration
Topology
Enabling QoS
The following steps describe how to enable QoS.
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
qos enable
!
Disabling QoS
The following steps disable QoS.
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
% QoS is not enabled globally
Topology
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
qos enable
qos statistics
!
Topology
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
qos enable
qos statistics
!
qos profile dscp-to-queue Profile1
dscp 10 queue 5
!
qos profile dscp-to-queue Profile3
dscp 24 queue 6 color green
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
qos enable
qos statistics
!
qos profile dscp-to-queue Profile1
dscp 10 queue 5
!
!
!
interface xe2
qos map-profile dscp-to-queue Profile1
!
interface xe3
qos map-profile dscp-to-queue Profile3
!
#show qos-profile type dscp-to-queue Profile1
profile name: Profile1
profile type: dscp-to-queue
profile attached to 1 instances
configured mapping:
dscp 10 queue 5
Detailed mapping:
Ingress map for dscp to queue-color
-------+----------------- | -------+----------------- | -------+----------------- | -------+-----------------
INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT
-------+----------------- | -------+----------------- | -------+----------------- | -------+-----------------
DSCP | Queue | Color | DSCP | Queue | Color | DSCP | Queue | Color | DSCP | Queue | Color
-------+-------+--------- | -------+-------+--------- | -------+-------+--------- | -------+-------+---------
0 0 green | 16 2 green | 32 4 green | 48 6 green
1 0 green | 17 2 green | 33 4 green | 49 6 green
2 0 green | 18 2 green | 34 4 green | 50 6 green
3 0 green | 19 2 green | 35 4 green | 51 6 green
Topology
Validation
Enter the commands below to confirm the configurations.
#show running-config qos qos enable
qos statistics
!
qos profile cos-to-queue Profile2
cos 2 dei all queue 4
qos map cos 2 queue 4
!
qos profile cos-to-queue Profile4
cos 3 dei all queue 4 color yellow
!
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
qos enable
qos statistics
!
qos profile cos-to-queue Profile2
cos 2 dei all queue 4
!
!
!
interface ce3/1
qos map-profile cos-to-queue Profile2
!
qos profile cos-to-queue Profile4
cos 3 dei all queue 4 color yellow
!
!
#show qos-profile type cos-to-queue Profile4
profile name: Profile4
profile type: cos-to-queue
profile attached to 0 instances
configured mapping:
cos 3 dei all queue 4 color yellow
Detailed 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 4 yellow | 3 1 4 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
Topology
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
qos enable
qos statistics
!
qos profile queue-color-to-cos default
queue 3 color all cos 5
!
qos profile queue-color-to-cos Profile5
queue 2 color all cos 7
!
Validation
Enter the commands below to confirm the configurations.
# show running-config qos
qos enable
qos statistics
!
qos profile queue-color-to-cos default
queue 3 color all cos 5
!
qos profile queue-color-to-cos Profile5
queue 2 color all cos 7
!
!
!
interface xe2
qos map-profile queue-color-to-cos Profile5
!
#show qos-profile type queue-color-to-cos Profile5
profile name: Profile5
profile type: queue-color-to-cos
profile attached to 1 instances
configured mapping:
queue 2 color all cos 7
Detailed 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 7 | 2 yellow 7 | 2 red 7
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
Topology
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
qos enable
qos statistics
!
qos profile queue-color-to-dscp default
queue 5 color all dscp 32
!
qos profile queue-color-to-dscp Profile6
queue 3 color green dscp 48
!
Validation
Enter the commands below to confirm the configurations.
# show running-config qos
qos enable
qos statistics
!
qos profile queue-color-to-dscp default
queue 5 color all dscp 32
!
qos profile queue-color-to-dscp Profile6
queue 3 color green dscp 48
!
!
!
interface xe2
qos map-profile queue-color-to-dscp Profile6
!
#show qos-profile type queue-color-to-dscp Profile6
profile name: Profile6
profile type: queue-color-to-dscp
profile attached to 1 instances
configured mapping:
queue 3 color green dscp 48
Detailed mapping:
----------------+-------- | ----------------+-------- | ----------------+--------
INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT
----------------+-------- | ----------------+-------- | ----------------+--------
Queue | Color | DSCP | Queue | Color | DSCP | Queue | Color | DSCP
-------+--------+-------- | -------+--------+-------- | -------+--------+--------
0 green 0 | 0 yellow 0 | 0 red 0
1 green 10 | 1 yellow 12 | 1 red 14
2 green 18 | 2 yellow 20 | 2 red 22
3 green 48 | 3 yellow 28 | 3 red 30
4 green 34 | 4 yellow 36 | 4 red 38
5 green 40 | 5 yellow 40 | 5 red 40
6 green 48 | 6 yellow 48 | 6 red 48
7 green 56 | 7 yellow 56 | 7 red 56
Topology
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
!
qos enable
qos statistics
!
interface xe2
trust dscp
Precedence-to-queue:
This is an ingress profile similar to dscp-to-queue. This profile will map precedence value 0-7 to queue 0-7
Topology
Validation
Router#show run int xe1
!
interface xe1
qos map-profile precedence-to-queue Prec1_que1
!
Queue-to-precedence:
This is egress profile similar to queue-to-dscp. This qos-map profile maps default or corresponding queue to new
precedence value that enables the user to see queue corresponding to new precedence mentioned in this profile on
the next node egress interface.
Topology
Validation
Router1#show run int ce50
!
interface ce50
qos map-profile queue-to-precedence queue_prece1
!
Queue | PREC
-------+--------
0 0
1 1
2 5
3 3
4 4
5 5
6 6
7 7
Topology
Validation
Enter the commands listed in the sections below to confirm the configurations.
#show running-config qos
qos enable
!
qos statistics
!
class-map cmap1
match cos 2
!
class-map cmap2
match cos 3
!
class-map type queuing match-any cq1
match qos-group 1
!
class-map type queuing match-any cq2
match qos-group 2
!
policy-map pmap1
class cmap1
set qos-group 1
exit
class cmap2
set qos-group 2
exit
!
!
policy-map type queuing pq1
class type queuing cq1
wrr-queue weight 2
exit
class type queuing cq2
wrr-queue weight 4
exit
!
!
interface xe2
service-policy type queuing output pq1
!
interface xe3
service-policy type qos input pmap1
!
#show policy-map
policy-map pmap1
class cmap1
set qos-group 1
exit
class cmap2
set qos-group 2
exit
#show class-map
class-map cmap1
match cos 2
class-map cmap2
match cos 3
class-map match-any q0
class-map match-any q1
class-map match-any q2
class-map match-any q3
class-map match-any q4
class-map match-any q5
class-map match-any q6
class-map match-any q7
Class-map (queuing): q1
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Interface xe3
Global statistics status : enabled
Class-map (queuing): q1
priority level 1
output : 11789 packets, 754820 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 1460 packets, 93914 bytes
dropped : 0 packets, 0 bytes
Topology
L2 Interface
The following steps describe how to configure Marking/Remarking.
Validation
Enter the commands listed in the sections below to confirm the configurations.
#show running-config qos
qos enable
!
qos statistics
!
class-map type qos cmap1
match cos 2
!
class-map type qos cmap2
#show policy-map
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 xe2
Global statistics status : enabled
Class-map (queuing): q1
priority
output : 12 packets, 1416 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 589 packets, 37876 bytes
dropped : 0 packets, 0 bytes
Interface xe3
Class-map (queuing): q1
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 699 packets, 59550 bytes
dropped : 0 packets, 0 bytes
L3 Interface
(config)#class-map type qos cmap3 Configure class-map of type qos with name cmap3 and
enter into Class-map mode
(config-cmap-qos)#match dscp 10 Configure match criteria as dscp with a value of 10.
(config-ip-acl)#permit tcp any any eq ftp Permit for tcp traffic with destination port as ftp port.
Validation
Enter the commands listed in the sections below to confirm the configurations.
#show running-config qos
qos enable
!
qos statistics
!
class-map type qos cmap3
#show policy-map
========================
Interface xe2
Type Qos statistics status : enabled
--------------------------------
Class-map (qos): cmap4 (match any)
match access-group 101
set precedence 7
matched : 375594046 packets, 25540397168 bytes
Class-map (queuing): q1
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 391282612 packets, 25042086656 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 4 packets, 256 bytes
dropped : 0 packets, 0 bytes
Interface xe3
Global statistics status : enabled
--------------------------------
Class-map (qos): cmap3 (match all)
match dscp af11
set dscp 46
matched : 401497149 packets, 25695819008 bytes
Class-map (queuing): q1
priority
output : 0 packets, 0 bytes
Class-map (queuing): q2
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 382211720 packets, 25990396484 bytes
dropped : 0 packets, 0 bytes
Topology
L2 Interface
Do the following to configure policing on an L2 interface.
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
qos enable
!
qos statistics
!
class-map type qos 1234
match cos 2
!
class-map type qos match-any 2345
match access-group 102
!
policy-map type qos 1234
class type qos 1234
police cir 2 mbps pir 3 mbps bc 2 mbytes be 2 mbytes conform transmit exceed set-cos-
transmit 1 violate drop
exit
Interface xe2
Global statistics status : enabled
police cir 2 mbps pir 3 mbps bc 2 mbytes be 2 mbytes conform transmit exceed set-cos-
transmit 1 violate drop
matched : 7419394 packets, 504519132 bytes
dropped : 7409793 packets, 503866264 bytes
Class-map (queuing): q1
priority
output : 7222 packets, 491096 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
output : 14444 packets, 982192 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 2 packets, 246 bytes
dropped : 0 packets, 0 bytes
red : 0 packets
Interface xe3
Global statistics status : enabled
Class-map (queuing): q1
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 18527 packets, 1259836 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 5 packets, 615 bytes
dropped : 0 packets, 0 bytes
Topology
L2/L3 Interface
The following steps describe how to configure bandwidth.
(config)#policy-map type qos pmap1 Configure policy-map with name pmap1 and enter policy-
map mode
(config-pmap-qos)#class type qos c1 Assign Class c1 to Policy-map pmap1
(config-pmap-c-qos)#set precedence 2 Set precedence to value 2
(config-pmap-c-qos)#exit Exit out of pmap-c mode
(config-pmap-qos)#class type qos c2 Assign Class c2 to Policy-map pmap1
(config-pmap-c-qos)#set cos 2 Set cos to value 2
(config-pmap-c-qos)#exit Exit out of pmap-c mode
(config)#interface xe3 Enter interface mode
(config-if)#service-policy type queuing Attach service-policy P1 of type queuing on out direction
output P1
(config-if)#exit Exit out of interface mode
(config)#interface xe2 Enter interface mode
(config-if)#service-policy type qos input Attach service-policy pmap1 of type qos on in direction
pmap1
(config-if)#exit Exit out of interface mode
(config)#bridge 1 protocol rstp vlan-bridge Specify VLAN for bridge 1.
(config)#vlan database Enter the VLAN configuration mode.
(config-vlan)#vlan 2-3 bridge 1 state enable Enable VLAN (2-3) on bridge 1. Specifying the enable state.
(config-vlan)#exit Exit the VLAN configuration mode.
(config)#interface vlan1.2 Enter interface mode.
(config-if)# ip address 10.1.1.2/24 Configure the IP address.
(config-if)#exit Exit the interface mode.
(config)#interface vlan1.3 Enter interface mode.
(config-if)# ip address 20.1.1.1/24 Configure the IP address.
(config-if)#exit Exit the interface mode.
(config)#interface xe2 Enter interface mode.
(config-if)#switchport Configure xe2 as a Layer 2 port.
(config-if)#bridge-group 1 Associate the interface with bridge group 1.
(config-if)#switchport mode trunk Configure port as a trunk.
(config-if)#switchport trunk allowed vlan all Allow all the VLANs on the xe3 interface.
(config-if)#exit Exit the interface mode.
(config)#interface xe3 Enter interface mode.
(config-if)#switchport Configure xe3 as a Layer 2 port.
(config-if)#bridge-group 1 Associate the interface with bridge group 1.
(config-if)#switchport mode trunk Configure port as a trunk.
(config-if)#switchport trunk allowed vlan all Allow all the VLANs on the xe3 interface.
(config-if)#exit Exit the interface mode.
Validation
Enter the commands listed in the sections below to confirm the configurations.
!
policy-map type queuing default P1
class type queuing default q1
priority
bandwidth percent 70
exit
class type queuing q2
priority
bandwidth percent 30
exit
!
!
!
interface xe2
service-policy type qos input pmap1
!
interface xe3
service-policy type queuing output P1
!
Interface xe2
Class-map (queuing): q0
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q1
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 6 packets, 724 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 0 packets, 0 bytes
Interface xe3
Type Queuing policy-map : P1
Class-map (queuing): q0
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q1
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
bandwidth percent 70
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
bandwidth percent 30
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Topology
L2/L3 Interface
The following steps describe how to configure Shaping.
(config-pmap-c-qos)#set queue 3 Set queue 3 for frames with either cos 4 or dscp 22
(config-pmap-c-qos)#exit Exit out of pmap-c mode
(config-pmap-qos)#exit Exit policy-map mode
(config)#interface xe3 Enter interface mode
(config-if)#service-policy type queuing Attach service-policy P1 of type queuing on out direction
output P1
(config-if)#exit Exit out of interface mode
(config)#interface xe2 Enter interface mode
(config-if)#service-policy type qos input Attach service-policy pmap1 of type qos on in direction
pmap1
(config-if)#exit Exit out of interface mode
(config)#bridge 1 protocol rstp vlan-bridge Specify VLAN for bridge 1.
(config)#vlan database Enter the VLAN configuration mode.
(config-vlan)#vlan 2-3 bridge 1 state enable Enable VLAN (2-3) on bridge 1. Specifying the enable state.
(config-vlan)#exit Exit the VLAN configuration mode.
(config)#interface vlan1.2 Enter interface mode.
(config-if)# ip address 10.1.1.2/24 Configure the IP address.
(config-if)#exit Exit the interface mode.
(config)#interface vlan1.3 Enter interface mode.
(config-if)# ip address 20.1.1.1/24 Configure the IP address.
(config-if)#exit Exit the interface mode.
(config)#interface xe2 Enter interface mode.
(config-if)#switchport Configure xe2 as a Layer 2 port.
(config-if)#bridge-group 1 Associate the interface with bridge group 1.
(config-if)#switchport mode trunk Configure port as a trunk.
(config-if)#switchport trunk allowed vlan all Allow all the VLANs on the xe3 interface.
(config-if)#exit Exit the interface mode.
(config)#interface xe3 Enter interface mode.
(config-if)#switchport Configure xe3 as a Layer 2 port.
(config-if)#bridge-group 1 Associate the interface with bridge group 1.
(config-if)#switchport mode trunk Configure port as a trunk.
(config-if)#switchport trunk allowed vlan all Allow all the VLANs on the xe3 interface.
(config-if)#exit Exit the interface mode
Validation
Enter the commands listed in the sections below to confirm the configurations.
#show policy-map type queuing
q4 - High - -
q5 - High - -
q6 - High - -
q7 - High - -
Interface xe3
Type QoS statistics status : enabled
Class-map (queuing): q0
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q1
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 6 packets, 724 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Topology
Validation
Enter the commands listed in the sections below to confirm the configurations.
#show policy-map type queuing
Validation
Enter the commands listed in the sections below to confirm the configurations.
# show running-config qos
qos enable
qos statistics
!
!
policy-map type queuing default p3
class type queuing default q0
priority
exit
!
interface xe2
service-policy type queuing output p3
!
OcNOS#
Note: Unicast weight should be always higher than multicast weight (except on Trident+ platforms). Between unicast
and multicast traffic of different traffic class, scheduling will be as per configuration given in the queuing policy-
map attached on the interface.
This hardware limitation is for Trident3 platform which is scheduled between unicast and multicast that requires
the unicast weight to be higher than the multicast queues weights.
Validation
Enter the commands listed in the sections below to confirm the configurations.
#sh run qos
qos enable
qos statistics
set qos wrr uc 3 non-uc 1
!
Validation
Enter the commands listed in the sections below to confirm the configurations.
#show policy-map type queuingdefault default-out-policy Type queuing policy-maps
========================
L0 L1 L2 GroupPrioLevelShape Bandwidth
q0 - - -
-
q1 - High-
-
q2 - High-
-
q3 - High-
-
q4 - High-
-
q5 - High-
-
q6 - High-
-
q7 - High-
-
#
Note: Unicast weight should be always higher than multicast weight. Between unicast and multicast traffic of different
traffic class, scheduling will be as per configuration given in the queueing policy-map attached on the interface.
Validation
Enter the commands listed in the sections below to confirm the configurations.
#show running-configuration qos
qos enable
qos statistics
set qos wrr uc 1 non-uc 1
#show policy-map
+-------------+--------------------+--------+-----------------+-------------------+----
-------------+-------------------+
| Interface | Queue/Class-map | Q-Size | Tx pkts | Tx bytes |
Dropped pkts | Dropped bytes |
+-------------+--------------------+--------+-----------------+-------------------+----
-------------+-------------------+
cpu bpdu (E) 0 1 68 0
0
ce1/1 q1 (E) 424320 816 816000 15279
15276000
ce1/1 q7 (E) 0 1 64 0
0
ce1/1 mc-q1 (E) 106080 816 816000 15229
15226000
ce24/1 q7 (E) 0 1 64 0
0
ce24/1 pg-q1 (I) 513344 NA NA NA
NA
Validation
#show policy-map
Topology
L2/L3 Interface
The following steps describe how to configure WRED.
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
os enable
qos statistics
!
class-map type qos match-all 1
!
class-map type qos match-all C1
match cos 1
!
policy-map type qos p1
class type qos C1
police cir 100 mbps pir 200 mbps
exit
!
!
Interface xe2
Type QoS statistics status : enabled
Class-map (qos): C1 (match all)
match cos 1
police cir 100 mbps pir 200 mbps
Class-map (queuing): q0
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q1
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
Class-map (queuing): q6
priority
output : 6 packets, 724 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Interface xe3
Type Queuing policy-map : p3
Class-map (queuing): q0
wrr-queue weight 10
random-detect min-threshold 50 kbytes max-threshold 80 kbytes drop-probability 80
weight 8
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q1
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): mc-q0
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Topology
Configuring Tail-Drop
The following steps describe how to configure Tail-Drop.
Validation
Enter the commands below to confirm the configurations.
#show running-config qos
qos enable
!
qos statistics
!
class-map type qos match-all C1
match cos 1
!
policy-map type qos p1
class type qos C1
police cir 100 mbps pir 200 mbps
exit
!
!
policy-map type queuing default p3
class type queuing default q1
shape percent 20
priority
exit
class type queuing default q2
priority
queue-limit 99 packets
bandwidth 25000 kbps
exit
class type queuing default q3
priority
queue-limit 101 packets
exit
#show class-map
Type qos class-maps
===================
class-map type qos match-all C1
match cos 1
#show policy-map
Class-map (queuing): q0
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q1
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
Class-map (queuing): q6
priority
output : 6 packets, 724 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q0
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q1
shape percent 20
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority
queue-limit 99 packets
bandwidth 25000 kbps
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority
queue-limit 101 packets
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Topology
(config-pmap-que)#class type queuing cq7 Assign class cq7 to policy-map P4 and enter into policy-
class-map mode.
(config-pmap-c-que)#shape average percent 40 Shape the matched traffic to percent 40
(config-pmap-c-que)#random-detect min- Configure WRED on q7 to maximum threshold of 80
threshold 80 packets max-threshold 100 packets and maximum threshold of 100 packets..
packets
(config-pmap-c-que)#bandwidth percent 35 Configure minimum bandwidth to 35 percent on q7.
(config-pmap-c-que)#exit Exit out of policy-class-map mode.
(config-pmap-que)#class type queuing cq8 Assign class cq8 to policy-map P4 and enter into policy-
class-map mode.
(config-pmap-c-que)#shape average percent 60 Shape the matched traffic to percent 60
(config-pmap-c-que)#random-detect min- Configure WRED on q8 to minimum threshold of 80 packets
threshold 80 packets max-threshold 100 and maximum threshold of 100 packets..
packets
(config-pmap-c-que)#bandwidth percent 55 Configure minimum bandwidth to 55 percent on q8.
(config-pmap-c-que)#exit Exit out of policy-class-map mode.
(config-pmap-que)#exit Exit out of policy-map mode.
(config)#class-map type queuing match-any Configure class-map of type queuing empty1
empty1
(config-cmap-que)#exit Exit out of cmap mode
(config)#class-map type queuing match-any Configure class-map of type queuing empty2
empty2
(config-cmap-que)#exit Exit out of cmap mode
(config)#class-map type queuing match-any Configure class-map of type queuing empty3
empty3
(config-cmap-que)#exit Exit out of cmap mode
(config)#class-map type queuing match-any Configure class-map of type queuing empty4
empty4
(config-cmap-que)#exit Exit out of cmap mode
(config)#class-map type queuing match-any Configure class-map of type queuing empty5
empty5
(config-cmap-que)#exit Exit out of cmap mode
(config)#class-map type queuing match-any Configure class-map of type queuing empty6
empty6
(config-cmap-que)#exit Exit out of cmap mode
(config)#policy-map type queuing P1P2 Configure policy-map of type queuing P1P2 and enter into
policy-map mode.
(config-pmap-que)#class type queuing empty1 Assign class-map of type queuing empty1 to P1P2 and
enter into policy-class-map mode.
(config-pmap-c-que)#shape average percent 40 Shape the matched traffic to 40 percent
(config-pmap-c-que)#bandwidth percent 30 Configure minimum bandwidth to 30 percent on empty1.
(config-pmap-c-que)#service-policy P1P1 Assign service-policy P1P1
(config-pmap-c-que)#exit Exit out of policy-class-map mode.
(config-pmap-que)#class type queuing empty2 Assign class-map of type queuing empty2 to P1P2 and
enter into policy-class-map mode.
(config-pmap-c-que)#shape average percent 60 Shape the matched traffic to 60 percent
(config)#set qos wrr uc 1 non-uc 2 Schedule unicast and multicast traffic in 1:2
(config)#set qos sp Set strict priority between unicast and multicast traffic, with
higher priority to multicast traffic
(config)#interface xe49/2 Enter interface mode
(config-if)#exit Exit interface mode
(config)#bridge 1 protocol rstp vlan-bridge Specify VLAN for bridge 1.
(config)#vlan database Enter the VLAN configuration mode.
(config-vlan)#vlan 2-3 bridge 1 state enable Enable VLAN (2-3) on bridge 1. Specifying the enable state.
(config-vlan)#exit Exit the VLAN configuration mode.
(config)#interface vlan1.2 Enter interface mode.
(config-if)# ip address 10.1.1.2/24 Configure the IP address.
(config-if)#exit Exit the interface mode.
(config)#interface vlan1.3 Enter interface mode.
(config-if)# ip address 20.1.1.1/24 Configure the IP address.
(config-if)#exit Exit the interface mode.
(config)#interface xe2 Enter interface mode.
(config-if)#switchport Configure xe2 as a Layer 2 port.
(config-if)#bridge-group 1 Associate the interface with bridge group 1.
(config-if)#switchport mode trunk Configure port as a trunk.
(config-if)#switchport trunk allowed vlan all Allow all the VLANs on the xe3 interface.
(config-if)#exit Exit the interface mode.
(config)#interface xe3 Enter interface mode.
(config-if)#switchport Configure xe3 as a Layer 2 port.
(config-if)#bridge-group 1 Associate the interface with bridge group 1.
(config-if)#switchport mode trunk Configure port as a trunk.
(config-if)#switchport trunk allowed vlan all Allow all the VLANs on the xe3 interface.
(config-if)#exit Exit the interface mode.
Validation
Enter the commands listed in the sections below to confirm the configurations.
#show running-config qos
qos enable
!
set qos wrr uc 1 non-uc 2
qos statistics
!
class-map type qos match-any C_QOS1
match dscp 0-7
match cos 0
!
class-map type qos match-any C_QOS2
match dscp 8-15
match cos 1
!
class-map type qos match-any C_QOS3
match dscp 16-23
match cos 2
!
class-map type qos match-any C_QOS4
match dscp 24-31
match cos 3
!
class-map type qos match-any C_QOS5
match dscp 32-39
match cos 4
!
class-map type qos match-any C_QOS6
match dscp 40-47
match cos 5
!
class-map type qos match-any C_QOS7
match dscp 48-55
match cos 6
!
class-map type qos match-any C_QOS8
match dscp 56-63
match cos 7
!
class-map type queuing match-any cq1
match qos-group 1
!
class-map type queuing match-any cq2
match qos-group 2
!
class-map type queuing match-any cq3
match qos-group 3
!
class-map type queuing match-any cq4
match qos-group 4
!
class-map type queuing match-any cq5
!
class-map type queuing match-any cq6
match qos-group 6
!
class-map type queuing match-any cq7
match qos-group 7
!
class-map type queuing match-any cq8
match qos-group 8
!
class-map type queuing match-any empty1
!
class-map type queuing match-any empty2
!
class-map type queuing match-any empty3
!
class-map type queuing match-any empty4
!
class-map type queuing match-any empty5
!
class-map type queuing match-any empty6
!
policy-map type qos pmap1
class type qos C_QOS1
set qos-group 1
exit
class type qos C_QOS2
set qos-group 2
exit
class type qos C_QOS3
set qos-group 3
exit
class type qos C_QOS4
set qos-group 4
exit
class type qos C_QOS5
set qos-group 5
exit
class type qos C_QOS6
set qos-group 6
exit
class type qos C_QOS7
set qos-group 7
exit
class type qos C_QOS8
set qos-group 8
exit
!
policy-map type queuing P1P1
class type queuing cq1
shape average percent 20
wrr-queue weight 1
queue-limit 70 packets
bandwidth percent 18
exit
class type queuing cq2
shape average percent 80
wrr-queue weight 1
queue-limit 70 packets
bandwidth percent 75
exit
!
policy-map type queuing P2
class type queuing cq3
shape average percent 25
wrr-queue weight 1
random-detect min-threshold 50 max-threshold 75 kbytes
bandwidth percent 20
exit
class type queuing cq4
shape average percent 75
wrr-queue weight 1
random-detect min-threshold 50 max-threshold 75 kbytes
bandwidth percent 65
exit
!
policy-map type queuing P3
class type queuing cq5
shape average percent 40
wrr-queue weight 1
queue-limit 100 packets
bandwidth percent 35
exit
class type queuing cq6
shape average percent 60
wrr-queue weight 1
queue-limit 100 packets
bandwidth percent 55
exit
!
policy-map type queuing P4
class type queuing cq7
shape average percent 40
wrr-queue weight 1
random-detect min-threshold 80 max-threshold 100 packets
bandwidth percent 35
exit
class type queuing cq8
shape average percent 60
wrr-queue weight 1
random-detect min-threshold 80 max-threshold 100 packets
bandwidth percent 55
exit
!
!
policy-map type queuing P3P4
class type queuing empty3
shape average percent 40
wrr-queue weight 1
bandwidth percent 35
service-policy P3
exit
class type queuing empty4
shape average percent 60
wrr-queue weight 1
bandwidth percent 50
service-policy P4
exit
!
policy-map type queuing P1P2
class type queuing empty1
shape average percent 40
wrr-queue weight 1
bandwidth percent 30
service-policy P1P1
exit
class type queuing empty2
shape average percent 60
wrr-queue weight 1
bandwidth percent 55
service-policy P2
exit
!
policy-map type queuing Pend
class type queuing empty5
shape average 400 mbps
wrr-queue weight 1
bandwidth 350 mbps
service-policy P1P1
exit
class type queuing empty6
shape average 500 mbps
wrr-queue weight 1
bandwidth 450 mbps
service-policy P3P4
exit
!
!
interface xe2
service-policy type qos input pmap1
!
interface xe3
service-policy type queuing output Pend
!
#sh class-map
class-map match-any q0
class-map match-any q1
class-map match-any q2
class-map match-any q3
class-map match-any q4
class-map match-any q5
class-map match-any q6
class-map match-any q7
#show policy-map
exit
class type qos C_QOS2
set qos-group 2
exit
class type qos C_QOS3
set qos-group 3
exit
class type qos C_QOS4
set qos-group 4
exit
class type qos C_QOS5
set qos-group 5
exit
class type qos C_QOS6
set qos-group 6
exit
class type qos C_QOS7
set qos-group 7
exit
class type qos C_QOS8
set qos-group 8
exit
wrr-queue weight 1
bandwidth percent 55
service-policy P2
exit
wrr-queue weight 1
random-detect min-threshold 80 max-threshold 100 packets
bandwidth percent 35
exit
class type queuing cq8
shape average percent 60
wrr-queue weight 1
random-detect min-threshold 80 max-threshold 100 packets
bandwidth percent 55
exit
Interface xe2
Global statistics status : enabled
Class-map (queuing): q1
priority level 1
output : 1 packets, 64 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
Class-map (queuing): q7
priority level 1
output : 2058 packets, 131912 bytes
dropped : 0 packets, 0 bytes
Interface xe3
Class-map (queuing): q1
priority level 1
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 2011 packets, 128964 bytes
dropped : 0 packets, 0 bytes
Interface xe2
Global statistics status : enabled
Class-map (queuing): q1
priority level 1
output : 1 packets, 64 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 2245 packets, 143880 bytes
dropped : 0 packets, 0 bytes
Interface xe3
Global statistics status : enabled
queue-limit 70 packets
bandwidth percent 75
output : 10761532 packets, 688738048 bytes
dropped : 13382100 packets, 856454400 bytes
percent
bandwidth percent 35
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q1
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 2246 packets, 144004 bytes
dropped : 0 packets, 0 bytes
Interface xe2
Global statistics status : enabled
Class-map (queuing): q1
priority level 1
output : 1 packets, 64 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 2412 packets, 154568 bytes
dropped : 0 packets, 0 bytes
Interface xe3
Global statistics status : enabled
Class-map (queuing): q1
priority level 1
output : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 2410 packets, 154500 bytes
dropped : 0 packets, 0 bytes
(config)#set qos sp
(config)#exit
Interface xe2
Global statistics status : enabled
Class-map (queuing): q1
priority level 1
output : 1 packets, 64 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 2493 packets, 159752 bytes
dropped : 0 packets, 0 bytes
Interface xe3
Global statistics status : enabled
Class-map (queuing): q1
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 2488 packets, 159492 bytes
dropped : 3 packets, 192 bytes
Overview
VXLAN enables multiple tenants to operate in a data center. Each tenant is assigned a priority group to prioritize their
traffic. Cloud carriers want to use quality of service to differentiate different applications.
Data center networks are being increasingly used by telecommunications operators as well as by enterprises.
Currently these networks are organized as one large Layer 2 network in a single building. In some cases such a
network is extended geographically using Virtual Local Area Network (VLAN) technologies as an even larger Layer 2
network connecting the virtual machines (VM), each with its own MAC address.
Multiple tenants might want their own isolated network domain. In a data center hosting multiple tenants, each tenant
may independently assign MAC addresses and VLAN IDs and this might lead to duplication.
Cloud carriers wish to categorize the traffic based on the application such as voice, video, etc. Based on the type of the
application different traffic classes may be identified and different priority levels can be assigned to each. To do so,
quality of service marking is needed in VXLAN.
This chapter shows how to mark packet headers with the VXLAN tunnel end point (VTEP) when the frames are
introduced by the virtual machines. The (re)marking /setting of QoS field DSCP/TOS in the VXLAN IP header is done
with the two modes which are set globally.
Topology
COS-DSCP
RTR1/VTEP1
R2
(config-router)#network 46.1.1.0/30 area Configure ospf network address with respective area
0.0.0.0
(config-router)#exit Exit from router mode.
(config)#commit Commit the candidate configuration to the running
configuration
RTR3/VTEP2
(config-router)#neighbor 1.1.1.1 re-mote-as Specify a neighbor router with peer ip address and remote-as
100 defined
(config-router)#neighbor 1.1.1.1 up-date- Specify the neighbor to use loopback address as source
source lo
(config-router)#address-family l2vpn evpn Enter into l2vpn evpn address-family
(config-router-af)#neighbor 1.1.1.1 activate Activate the neighbor to address-family
(config)#nvo vxlan vtep-ip-global 6.6.6.6 Configure Source vtep-ip-global configuration
(config)#nvo vxlan tunnel qos-map-mode cos- Configure the mapping qos profile in to vxlan tunnel ingress
dscp ingress DSCP-QUE
(config)#nvo vxlan id 1 in-gress-replication Create vnid 1 and disable inner-vid
inner-vid-disabled
(config-nvo)#vxlan host-reachability- Assign vrf for evpn-bgp to carry EVPN route
protocol evpn-bgp vrf1
(config-nvo)#nvo vxlan access-if port-vlan Create vxlan access-if with vlan 1000
xe15 1000
(config-nvo-acc-if)#no shutdown No shut the vxlan access-if
(config-nvo-acc-if)#map vnid 1 Map vnid to the vxlan access-if
(config-nvo-acc-if)#map qos-profile queue- Map qos profile for vxlan access-if egress traffic to CE
color-to-cos QUE-COS
(config-nvo-acc-if)#exit Exit from VxLAN access-interface mode and enter into
configuration mode
(config)#commit Commit the candidate configuration to the running
configuration
Validation
As per the QoS configuration, when L2 traffic with cos value 2 sent to VTEP1 access-if, the packets forwarded to queue
3 and packets in queue 3 are mapped with overlay dscp value 16 while egress out of tunnel. At VTEP2, when packets
with overlay dscp value 16 ingresses at tunnel, it is forwarded to queue 4 and packets of queue 4 are remarked with
cos value 5.
RTR1/VTEP1
VTEP1#sh run nvo vxlan
!
nvo vxlan enable
!
nvo vxlan vtep-ip-global 1.1.1.1
!
nvo vxlan tunnel qos-map-mode cos-dscp egress QUE-DSCP
!
nvo vxlan id 1 ingress-replication inner-vid-disabled
vxlan host-reachability-protocol evpn-bgp vrf1
!
nvo vxlan access-if port-vlan po2 1001
map vnid 1
map qos-profile cos-to-queue COS-QUE
!
VTEP1#show run qos
qos enable
!
qos profile cos-to-queue COS-QUE
cos 2 dei all queue 3
!
qos profile queue-color-to-dscp QUE-DSCP
queue 3 color all dscp 16
!
_______________________________________________________________________________________
________________________________________
1 ---- L2 NW ---- ---- ---- ----
1.1.1.1 6.6.6.6
1 ---- AC po2 --- Single Homed port --- 1001 ---- ----
----
7 0 7 green | 7 1 7 yellow
RTR2/VTEP2
dscp 16 queue 4
!
VTEP2#show nvo vxlan mac-table
=======================================================================================
==============================================================
VXLAN MAC Entries
=======================================================================================
==============================================================
VNID Interface VlanId Inner-VlanId Mac-Addr VTEP-Ip/ESI
Type Status AccessPortDesc
_______________________________________________________________________________________
______________________________________________________________
q1 (E) 12517376 0 0 0 0
q2 (E) 12517376 0 0 0 0
q3 (E) 12517376 0 0 0 0
q4 (E) 12517376 37895872 36455829826 0 0
q5 (E) 12517376 0 0 0 0
q6 (E) 12517376 0 0 0 0
q7 (E) 12517376 0 0 0 0
Topology
Default Values
R1#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 - 32000 - *lossy - monitor
bgp - 1500 - lossless - monitor
vrrp - 500 - lossless - monitor
rip - 500 - lossless - monitor
ospf - 2000 - lossless - monitor
dhcp - 100 - lossy - no-
monitor
nd - 6000 - lossless - monitor
pim - 4000 - *lossy - *no-
monitor
arp - 6000 - lossless - monitor
igmp - 4000 - *lossy - *no-
monitor
bpdu - 10000 - lossless - 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
1. 2001 Jan 07 22:29:03.345 : R1 : HSL : NOTIF : [CPU_RATE_HIGH_4]: Average CPU queue rate for bpdu
is 90% (540 pkts/sec).
2. 2001 Jan 07 22:29:08.346 : R1 : HSL : NOTIF : [CPU_QUEUE_RECOVERED_4]: CPU queue rate for
bpdu is back to normal. Current average rate is 89%.
Lossless option will drop the traffic at ingress interface. We can use "show interface counters indiscard-stats"
to verify the drop. Packets will be incremented in IBP Discards column.
Lossy option will drop the traffic at cpu. We can use “show interface cpu counters queue-stats`” to verify the
drop.
“disable l3-protocols-cpu vxlan” command is used, when sending traffic to vxlan interface. In Vxlan, arp and nd
traffic will go to vxlan queue. Remaining traffics are considered as data traffic.
#configure terminal
(config)#bridge 1 protocol rstp Configure Bridge 1
(config)#int xe52/2
(config)#switchport Configure interface as L2
(config-cmap-qos)#bridge-group 1 Configure bridge 1 in interface
(config-cmap-qos)#int xe52/3
(config-cmap-qos)#switchport Configure interface as L2
(config)#bridge-group 1 Configure bridge 1 in interface
(config-cmap-qos)#exit
(config)#cpu-queue bpdu rate 600 lossless no- Configure bpdu cpu-queue with rate of 600 pps and
monitor lossless and no-monitor option
Validation
Enter the commands listed in the sections below to confirm the configurations.
R1(config)#do show running-config | inc cpu
cpu-queue bpdu rate 600 lossless no-monitor
R1(config)#
R1(config)#do 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 - 32000 - *lossy - monitor
bgp - 1500 - lossless - monitor
#configure terminal
R1(config)#cpu-queue bpdu rate 500 lossy no- Configure bpdu cpu-queue with rate of 500 pps and lossy
monitor and no-monitor option
R1(config-if)#exit
Validation
Enter the commands listed in the sections below to confirm the configurations.
R1(config)#do clear interface cpu counters
R1(config)#do clear interface counters
R1(config)#do show running-config | inc cpu
cpu-queue bpdu rate 500 lossy no-monitor
disable l3-protocols-cpu vxlan
R1(config)#do 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 - 32000 - *lossy - monitor
bgp - 1500 - lossless - monitor
vrrp - 500 - lossless - monitor
rip - 500 - lossless - monitor
ospf - 2000 - lossless - monitor
dhcp - 100 - lossy - no-
monitor
nd - 6000 - lossless - monitor
pim - 4000 - *lossy - *no-
monitor
arp - 6000 - lossless - monitor
igmp - 4000 - *lossy - *no-
monitor
bpdu 500 10000 lossy lossless no-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
R1(config)#do show interface counters rate
+-------------------+--------------+-------------+--------------+-------------
+
| Interface | Rx bps | Rx pps | Tx bps | Tx pps
|
+-------------------+--------------+-------------+--------------+-------------
+
po1 780 0 2974 5
po2 769353 1373 769260 1373
xe52/1 0 0 11 0
xe52/2 0 0 248 0
xe52/3 669564071 100000 248 0
xe53/1 98 0 871 1
xe53/2 98 0 692 1
xe53/3 485 0 699 1
xe53/4 98 0 710 1
xe54/1 192647 343 192322 343
xe54/1 3 0 0 0
3 0 3
xe54/2 2 0 0 0
2 0 2
xe54/3 1 0 0 0
1 0 1
xe54/4 3 0 0 0
3 0 3
1 1 Congestion experienced
The ECN field combination 00 indicates that a packet is not using ECN. The ECN field combinations of 01 and 10
called as ECT(1) and ECT(0) respectively. This sets by the data sender to indicate that the endpoints of the transport
protocol are ECN-capable. Routers treat those two field combinations identically. Data senders can use either one or
both of these two combinations.
ECN is Enabled
If the number of packets in the queue is below the minimum threshold, packets are transmitted. This happens whether
or not ECN is enabled, and this treatment is identical to the treatment a packet receives when WRED only is being
used on the network.
If the number of packets in the queue is between the minimum threshold and the maximum threshold, one of the
following three scenarios can occur:
If the ECN field on the packet indicates that the endpoints are ECN-capable (that is, the ECT bit is set to 1 and the CE
bit is set to 0, or the ECT bit is set to 0 and the CE bit is set to 1)--and the WRED algorithm determines that the packet
should have been dropped based on the drop probability--the ECT and CE bits for the packet are changed to 1, and the
packet is transmitted. This happens because ECN is enabled and the packet gets marked instead of dropped.
If the ECN field on the packet indicates that neither endpoint is ECN-capable (that is, the ECT bit is set to 0 and the CE
bit is set to 0), the packet might be dropped based on the WRED drop probability. This is the identical treatment that a
packet receives when WRED is enabled without ECN configured on the router.
If the ECN field on the packet indicates that the network is experiencing congestion (that is, both the ECT bit and the
CE bit are set to 1), the packet is transmitted. No further marking is required.
If the number of packets in the queue is above the maximum threshold, packets are dropped based on the drop
probability. This is the identical treatment a packet receives when WRED is enabled without ECN configured on the
router.
Topology
Validation
Enter the commands listed in the sections below to confirm the configurations.
Router#show policy-map interface xe30
Interface xe30
Global statistics status : enabled
Service-policy (queuing) output: xyz
-----------------------------------
Class-map (queuing): q0
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q1
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
shape percent 80
priority level 1
random-detect min-threshold 100 max-threshold 200 packets ecn
output : 44808 packets, 67210500 bytes
dropped : 10516 packets, 15774000 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 0 packets, 0 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
Topology
Validation
Enter the commands listed in the sections below to confirm the configurations.
Router#show policy-map interface xe30
Interface xe30
Global statistics status : enabled
Service-policy (queuing) output: xyz
-----------------------------------
Class-map (queuing): q0
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q1
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q2
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q3
shape average 900 mbps
priority level 1
random-detect green min-threshold 1000 max-threshold 2000 yellow minimu
m-threshold 3000 max-threshold 4000 red min-threshold 5000 maximum-thres
hold 6000 bytes ecn
output : 308318 packets, 462477000 bytes
dropped : 29774 packets, 44661000 bytes
Class-map (queuing): q4
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q5
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q6
priority level 1
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): q7
priority level 1
output : 3 packets, 369 bytes
dropped : 0 packets, 0 bytes
Class-map (queuing): mc-q0
output : 0 packets, 0 bytes
dropped : 0 packets, 0 bytes
Note: By default ARP/ND packet marked for drop by storm-control configuration will not get uplifted to CPU. Use nvo
vxlan disable-arp-storm-control-for-cpu CLI to uplift the ARP/ND packet to CPU even if packet is
marked for DROP by storm control.
2021 Sep 23 19:51:09.639 : OcNOS : HSL : NOTIF : [IF_STORM_DISCARDS_4]: Storm control discards started on interface xe1 total
discards 364173
2021 Sep 23 19:52:45.740 : OcNOS : HSL : NOTIF : [IF_STORM_DISCARDS_4]: Storm control discards stopped on interface xe1 total
discards 1272806
• queue-limit
• random-detect
• service-policy
• service-policy type qos
• service-policy type queuing
• set bridge cos
• set bridge dscp
• set cos
• set dscp
• set precedence
• set precedence
• set qos-group
• set qos queue scheduler
• set queue
• shape
• shape rate
• show class-map
• show cpu-queue details
• show interface counters
• show policy-map
• show policy-map interface
• show qos-profile
• show qos-profile interface
• show queuing interface
• show running-config qos
• show running-config cpu-queue
• storm-control
• trust dscp
• wrr-queue weight
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 <1-100> 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
Command Syntax
class-map (type qos|) (match-any|match-all|) NAME
no class-map (type qos|) (match-any|match-all|) NAME
Parameters
type qos Ingress/egress class map.
NAME Specify the class map name (Max Size 32)
match-any Match any parameter (boolean OR)
match-all Match all parameters (boolean AND)
Default
Command Mode
Configuration Mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)# class-map type qos C_QOS1
Command Syntax
class-map type queuing (match-any|) NAME
no class-map type queuing (match-any|) NAME
Parameters
type queuing Egress class map
NAME Specify the class map name (Max Size 32)
match-any Match any parameter (boolean OR)
Default
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
Command Syntax
class (type qos|) (NAME|class-default)
no class (type qos|) (NAME|class-default)
Parameters
type qos Ingress/egress class map.
NAME Specify the class map name
class-default Specify the default class map
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
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
type queuing Egress class map
NAME Specify the class map name
<q0-q7> Default queue name
class-default Specify the default class map
Default
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
Command Syntax
clear qos statistics (interface IFNAME|) ((type qos|type qos input|type qos
output|type queuing|type all)|)
Parameters
interface (Optional) Specifies the interface name for which to clear QoS statistics (maximum length
IFNAME 32 characters).
type qos (Optional) Clears QoS statistics
type qos input (Optional) Clears QoS input statistics
type qos (Optional) Clears QoS output statistics
output
type queuing (Optional) Clears queuing class statistics
type all (Optional) Clears all QoS and queuing statistics
Default
if no parameters are configured, the command will clear type QoS and type queuing class statistics on all interfaces.
Command Mode
Privileged Exec mode
Applicability
Introduced before OcNOS version 1.3.
Examples
To clear QoS statistics on all interfaces, use the following command:
OcNOS#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
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 Maps different colors such as green or yellow or red or 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 .
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 Maps different colors such as green or yellow or red or all
dscp <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.
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)
queue <0-7> Identifying queue number
color Maps different colors such as green or yellow or red or all.
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
Command Syntax
dscp <0-63> queue <0-7> (color (green|yellow|red)|)
no dscp <0-63>
Parameters
<0-63> DSCP value
queue <0-7> Identifying queue number
color Maps different colors such as green or yellow or red or all.
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
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
access-group 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.
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
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.
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.
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 src Specifies the source Ethernet MAC
mac dest Specifies the destination Ethernet 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 |
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)
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
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
qos-group <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 l2-uc Match L2 Unicast traffic
traffic-type l2-uc-unknown Match Unknown L2 Unicast traffic
traffic-type default Match 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
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
Command Syntax
match vlan inner WORD
no match vlan inner (WORD|all)
Parameters
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.
Note: Granularity for policer is 8kbps.
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> )) |)((exceed (drop | set-dscp-transmit
<0-63> | set-cos-transmit <0-7> | transmit ))|) ((violate (drop | set-dscp-
transmit <0-63> | transmit))|))
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.
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
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. On Tomahawk 3 and Tomahawk 4 hardware, the policer is
not supported in the egress direction.
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:
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)
type qos QoS policy map
type queuing Queuing policy map
type default Default class map
type NAME Specify the class map name (Max Size 32)
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
Command Syntax
qos (enable | disable)
Parameters
enable Globally enable QoS
disable Globally disable QoS
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).
• 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 and 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
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 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
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 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
Interface remarking will take priority over global remarking configurations.
((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
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
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-629145600>) (packets|bytes|kbytes|mbytes|ms)
no queue-limit
Parameters
<1-629145600> Specify queue-limit threshold range values in packets, bytes, mbytes,ms us or Kilobytes.
packets Specify the units of queue-limit in packets (min 9 - max 614400)
bytes Specify the units of queue-limit in bytes (min 9416 - max 629145600)
kbytes Specify the units of queue-limit in kilobytes (min 9 - max 614400)
mbytes Specify the units of queue-limit in mega-bytes (min 1 - max 600)
ms Specify the units of queue-limit in milliseconds (min 1 - max 50)
us Specify the units of queue-limit in micro-seconds (min 1 - max 50000)
Default
Default queue size is 62914560 bytes
Command Mode
Policy-class-map-queue mode
Applicability
This command was introduced in OcNOS version 3.0.
Examples
(config)# policy-map type queuing default P1
(config-pmap-que-def)#class type queuing default q1
(config-pmap-c-que-def)# queue-limit 1 mbytes
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
Command Syntax
service-policy type qos (input|output) NAME
no service-policy type qos (input|output) NAME
Parameters
type qos (input|output) Specify whether the policy map is of input or output 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
Command Syntax
service-policy type queuing output NAME
no service-policy type queuing output NAME
Parameters
type queuing 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
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
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
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 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
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
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 <1-127> Unicast Queues from 1 to 127
non-uc <1-127> 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-class qos 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
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
<1-1000000000> 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 <1-100> 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
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
The burst size allowed by the traffic shaper. It determines the maximum amount of data to
send or receive before shaping the traffic per the specified rate..
The burst value in kbits in the following range::
<2-1000000> for Trident3 and tomahwak
<1-1000000> for other XGS platforms
The limitation of 1000000 kbits is often a default or practical limit set by the network device
or software. This limit ensures that bursts of traffic beyond this size are controlled to
prevent network congestion or degradation of service quality. It is the maximum value
supported by the hardware.
Default
NA
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
type qos Specify the QoS type class map
type queuing Specify the queuing type class map
NAME Specify the named class map
Command Mode
Privileged executive 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
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
rip - 500 - lossless - monitor
ospf 0 2000 lossy lossless monitor monitor
dhcp - 100 - lossy - no-monitor
nd 200 6000 lossless lossless monitor 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
Entry Description
Command Syntax
show interface IFNAME counters queue-stats
Parameters
IFNAME Interface name.
Command Mode
Exec
Applicability
This command was introduced in OcNOS version 3.0.
Examples
#show interface xe1 counters queue-stats
E - Egress, I - Ingress, Q-Size is in bytes
+---+------+--------+---------+---------+-----------+
| Q | Q-Sz | Tx pkt | Tx byte | Drp pkt | Drop byte |
+---+------+--------+---------+---------+-----------+
q0 629160 100 12000 0 0
q1 629160 0 0 0 0
q2 629160 0 0 0 0
q3 629160 0 0 0 0
q4 629160 0 0 0 0
q5 629160 0 0 0 0
q6 629160 0 0 0 0
q7 629160 0 0 0 0
show policy-map
Use this command to display:
Command Syntax
show policy-map statistics type qos
show policy-map statistics type queuing default (rate (gbps|kbps|mbps)|)
Parameters
Command Mode
Privileged executive 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
Command Syntax
show policy-map interface (NAME (type (qos (input | output |)| queuing)|
(statistics (class NAME (type (qos | queuing (rate|)) | type (qos | queuing
(rate|)))) | class NAME)|brief)
Parameters
interface Specifies the interface name for which to display policy maps (maximum length 32
IFNAME characters).
type qos (Optional) Displays QoS policy maps for the specified interface.
type qos input (Optional) Displays QoS input policy maps for the specified interface.
type qos (Optional) Displays QoS output policy maps for the specified interface.
output
statistics (Optional) Displays statistics of the particular class.
class
statistics (Optional) Name of the particular class.
class NAME
statistics (Optional) Displays statistics of the particular type.
type
statistics (Optional) Displays statistics of the particular QoS type.
type qos
statistics (Optional) Displays statistics of the particular queuing rate type.
type queing
rate
interface (Optional) Displays statistics of the particular class.
class NAME
type queuing (Optional) Displays queuing policy-maps for the specified interface.
brief Displays all QoS and queuing policy maps for the specified interface.
Command Mode
Privileged executive and Configure mode
Applicability
Introduced before OcNOS version 1.3.
Examples
OcNOS#show policy-map interface xe19/1
Interface xe19/1
Global statistics status : enabled
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
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-encap | dscp-to-dscp | dscp-to-queue |
exp-to-queue | queue-to-exp | precedence-to-precedence | precedence-to-queue |
queue-color-to-cos)(NAME|)
Parameters
cos-to-queue profile for cos to Traffic-Class map
dscp-encap profile for dscp encapsulation map
dscp-to-dscp profile for in Dscp to Dscp map
dscp-to-queue profile for dscp to Traffic-Class map
exp-to-queue profile for exp to Traffic-Class map
precedence-to-precedence profile for precedence to precedence map
precedence-to-queue profile for precedence to Traffic-Class map
queue-color-to-cos profile for Traffic-Class color to cos map
NAME Profile map name (maximum 32 characters)
Command Mode
Privileged 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
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
Command Syntax
show qos-profile interface NAME
Parameters
NAME Profile map name (maximum 32 characters)
Command Mode
Privileged 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
Command Syntax
show queuing interface NAME
Parameters
NAME Interface name.
Command Mode
Privileged 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 - -
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
!
interface xe2/1
service-policy type queuing default default-out-policy
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 (errdisable|((broadcast|multicast|dlf) (level LEVEL | <0-4294967294>
(kbps|mbps|gbps|fps) burst-size <32-128000>)))
no storm-control (errdisable|broadcast|multicast|dlf)
Parameters
errdisable Error disable interface on storm control
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-4294967294>
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.
fps specifies the units of Frames per second.
burst-size Set burst size
<32-128000> value of burst in kbps
Default
Disabled
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 3.0.
Examples
#configure terminal
(config)#interface xe1
(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