VXLAN Quality of Service Commands
This chapter describes the VXLAN commands for QoS (Quality of Service):
clear nvo vxlan tunnels
Use this command to clear the nvo vxlan tunnels to re-establish the tunnel after mapping/un-mapping the QoS profile to vxlan tunnel.
Command Syntax
clear nvo vxlan tunnels dst-ip A.B.C.D
Parameters
dst-ip
VXLAN tunnel destination
A.B.C.D
destination IPv4 address
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
#clear nvo vxlan tunnels dst-ip 2.2.2.2
cos queue
Use this command to configure user defined mapping for cos and queue.
Use the no form of this command to remove the mapping.
Command Syntax
cos <0-7> queue <0-7>
no cos <0-7>
Parameters
<0-7>
COS and Queue ranger
Default
Default cos and queue value is one-one default mapping if it is not configured.
Command Mode
QoS config mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
(config)#qos profile cos-to-queue ac_port_ingress
(config-ingress-cos-map)#cos 1 queue 7
(config-ingress-cos-map)#no cos 1
dscp queue
Use this command to configure user defined mapping for DSCP to queue. This will be mapped with nvo VXLAN tunnel of remote VTEP.
Use the no form of this command to delete the mapping.
Command Syntax
dscp <0-63> queue <0-7> (color (green|yellow|red)|) (dscp <0-63>|)
no dscp <0-63>
Parameters
<0-63>
DSCP
<0-7>
Queue number
color
Color to map
green
Set mapping for green packets
red
Set mapping for red packets
yellow
Set mapping for yellow packets
<0-63>
out DSCP value
Default
Default queue and cos value is one-one default mapping if it is not configured.
Command Mode
Ingress-dscp-map mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
(config)#qos profile dscp-to-queue nw_profile
(config-ingress-dscp-map)#dscp 50 queue 1
(config-ingress-dscp-map)#no dscp 50
l2 queue dscp
Use this command to configure or update user defined mapping for queue to dscp for egress L2 Traffic over VXLAN tunnel.
Use the no form of this command to delete the mapping.
Command Syntax
l2 queue <0-7> (color (green|yellow|red|all)|) dscp <0-63>
no l2 queue <0-7> (color (green|yellow|red|all|)|)
Parameters
<0-7>
Queue values
<0-63>
Select DSCP value
color
Color to map
all
Set mapping for all packets
green
Set mapping for green packets
red
Set mapping for red packets
yellow
Set mapping for yellow packets
Default
Default queue and dscp value is one-one default mapping if it is not configured.
Command Mode
egress-dscp-encap-map mode
Applicability
This command was introduced in OcNOS version 4.2.
Example
#configure terminal
(config)#qos profile dscp-encap DSCP_ENCP
(config-egress-dscp-encap-map)#l2 queue 1 dscp 32
(config-egress-dscp-encap-map)#l2 queue 5 color green dscp 16
(config-egress-dscp-encap-map)#no l2 queue 1
l3 dscp dscpEncap
Use this command to configure or update user defined mapping for dscp to dscp for egress L3 Traffic over VXLAN tunnel.
Use the no form of this command to delete the mapping.
Command Syntax
l3 dscp <0-63> dscpEncap <0-63>
no l3 dscp <0-63>
Parameters
<0-63>
DSCP values
Default
Default dscp and dscp encap value is one-one default mapping if it is not configured.
Command Mode
egress-dscp-encap-map mode
Applicability
This command was introduced in OcNOS version 4.2.
Example
#configure terminal
(config)#qos profile dscp-encap DSCP_ENCP
(config-egress-dscp-encap-map)#l3 dscp 10 dscpEncap 48
(config-egress-dscp-encap-map)#no l3 dscp 10
map qos-profile
Use this command to map (attach) the qos profile to an IRB interface.
Use the no form of this command to remove a profile.
We can map the following qos profile type on IRB interface.
• dscp-to-queue for ingress traffic and
• dscp-to-dscp profile for egress traffic
from/to the IRB interface.
On doing no map qos-profile, default profile is applied to the IRB interface.
In order for dscp-to-dscp - qos profile type to be effective on L3 IRB interface , "qos remark dscp" is enabled globally.
Note: Default profile is applied to all the IRB interface only when qos is enabled.
Command Syntax
map qos-profile (dscp-to-dscp | dscp-to-queue) <NAME>
no map qos-profile (dscp-to-dscp | dscp-to-queue) <NAME>
Parameters
NAME
Profile name
Default
By default, the default dscp-to-queue and dscp-to-dscp profile is attached to all IRB interface and if user changes the value in the default profile, it will affect to all the IRB interfaces and L3 interfaces.
Command Mode
IRB_IF_Mode
Default
Default queue and cos value is one-one default mapping if it is not configured.
Applicability
This command was introduced in OcNOS version 4.2.
Example
#configure terminal
(config)#interface irb 1
(config-irb-if)# map qos-profile dscp-to-dscp DSCP_DSCP
(config-irb-if)# no map qos-profile dscp-to-dscp DSCP_DSCP
(config)#interface irb 1
(config-irb-if)# map qos-profile dscp-to-queue DSCP_QUE
(config-irb-if)# no map qos-profile dscp-to-queue DSCP_QUE
map qos-profile cos-to-queue
Use this command to map the cos-to-queue profile to vxlan access port on the local VTEP.
Use the no form of the command to remove the mapping.
Command Syntax
map qos-profile cos-to-queue NAME
no map qos-profile cos-to-queue NAME
Parameters
NAME
Profile name
Default
None
Command Mode
NVO access interface mode
Applicability
This command was introduced before OcNOS version 3.0.
Example
(config)#nvo vxlan access-if port-vlan xe1 10
(config-nvo-acc-if)#map qos-profile cos-to-queue ac_port_ingress
(config-nvo-acc-if)#no map qos-profile cos-to-queue ac_port_ingress
map qos-profile queue-color-to-cos
Use this command to map the queue-color-to-cos profile to vxlan access port on the remote VTEP.
Use the no form of the command to remove the mapping.
Command Syntax
map qos-profile queue-color-to-cos NAME
no map qos-profile queue-color-to-cos NAME
Parameters
NAME
Profile name
Default
None
Command Mode
NVO access interface mode
Applicability
This command was introduced before OcNOS version 3.0.
Example
(config)#nvo vxlan access-if port-vlan xe2 10
(config-nvo-acc-if)#map qos-profile queue-color-to-cos ac_profile
(config-nvo-acc-if)#no map qos-profile queue-color-to-cos ac_profile
nvo vxlan tunnel qos-map-mode cos-dscp
Use this command to map QoS profile for network side to nvo vxlan tunnel. For outgoing/incoming traffic, you need to provide the direction with the keyword egress/ingress.
Use the no form of this command to delete the mapping.
You must give the
clear nvo vxlan tunnels command to do the network port setting for QoS profile mapped.
Command Syntax
nvo vxlan tunnel qos-map-mode cos-dscp (ingress|egress) NAME
no nvo vxlan tunnel qos-map-mode cos-dscp (ingress|egress)
Parameters
NAME
Profile name
ingress
Ingress direction
egress
Egress direction
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
(config)#nvo vxlan tunnel qos-map-mode cos-dscp egress nw_profile
(config)#no nvo vxlan tunnel qos-map-mode cos-dscp egress
(config)#nvo vxlan tunnel qos-map-mode cos-dscp ingress nw_profile
(config)#no nvo vxlan tunnel qos-map-mode cos-dscp ingress
qos profile cos-to-queue
Use this command to configure cos-to-queue profile. This profile has to be mapped to VXLAN access port on the local VTEP.
Use the no form of this command to delete the qos profile.
Command Syntax
qos profile cos-to-queue (NAME|default)
no qos profile cos-to-queue NAME
Parameters
NAME
QoS profile name for cos-to-queue
default
Default name
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
(config)#qos profile cos-to-queue ac_port_ingress
(config)#no qos profile cos-to-queue ac_port_ingress
qos profile dscp-encap
Use this command to create new profiles or to update "default" profiles for dscp-dscpEncap and Queue to DSCP value.
Use the no form of this command to remove the profiles.
Note: "default" profiles can only be updated and not be deleted. User can create/delete user-defined profiles.
Note: Use this command to configure QoS profile for both VXLAN L2 and VXLAN L3 traffic.
Note: This profile will be mapped to nvo vxlan tunnel at the egress direction of the VTEP.
Note: Default Qos profile dscp-encap would take preference than default qos profile queue-color-to dscp when no user-defined qos profile is configured on the nvo vxlan tunnel mode.
Command Syntax
qos profile dscp-encap (NAME | default)
no qos profile dscp-encap NAME
Parameters
NAME
Profile name
default
update global mapping profile
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 4.2.
Example
#configure terminal
(config)#qos profile dscp-encap DSCP_ENCP
(config)#no qos profile dscp-encap DSCP_ENCP
qos profile dscp-to-queue
Use this command to configure QoS profile for DSCP to Queue mapping. This profile will be mapped to nvo vxlan tunnel of remote VTEP. The created profile will support remarking of the data packets.
Use the no form of this command to delete the QoS profile
Command Syntax
qos profile dscp-to-queue (NAME|default}
no qos profile dscp-to-queue NAME
Parameters
NAME
Profile name
default
Default name
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
(config)#qos profile dscp-to-queue nw_profile
(config-ingress-dscp-map)#exit
(config)#no qos profile dscp-to-queue nw_profile
(config)#
qos profile queue-color-to-cos
Use this command to configure queue-color-to-cos profile. This profile has to be mapped to VXLAN access port on remote VTEP.
Use the no form of this command to delete the qos profile.
Command Syntax
qos profile queue-color-to-cos (NAME|default)
no qos profile queue-color-to-cos NAME
Parameters
NAME
Profile name
default
Default name
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
(config)#qos profile queue-color-to-cos ac_profile
(config)#no qos profile queue-color-to-cos ac_profile
qos profile queue-color-to-dscp
Use this command to create a QoS profile queue-color-to-dscp. This profile will be mapped to nvo vxlan tunnel of local VTEP. The created profile supports remarking of the data packets.
Note: The profile name of "default" is not supported for VXLAN QoS.
Use the no form of this command to delete the profile.
Command Syntax
qos profile queue-color-to-dscp (NAME|default)
no qos profile queue-color-to-dscp NAME
Parameters
NAME
Profile name
default
Default name
Default
None
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
(config)#qos profile queue-color-to-dscp nw_profile
(config-egress-dscp-map)#exit
(config)#no qos profile queue-color-to-dscp nw_profile
queue cos
Use this command to configure user defined mapping for queue and cos.
Use the no form of this command to remove the mapping.
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>
Queue and cos range
color
Color to map
all
Set mapping for all packets
green
Set mapping for green packets
red
Set mapping for red packets
yellow
Set mapping for yellow packets
Default
Default queue and cos value is one-one default mapping if it is not configured.
Command Mode
QoS config mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
(config)#qos profile queue-color-to-cos ac_profile
(config-egress-cos-map)#queue 5 cos 2
(config-egress-cos-map)#no queue 5
queue dscp
Use this command to configure user-defined mapping for queue to DSCP. This will be mapped with nvo VXLAN tunnel of local VTEP.
Use the no form of this command to remove the queue-to-DSCP mapping.
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>
Queue number
<0-63>
DSCP
color
Color to map
all
Set mapping for all packets
green
Set mapping for green packets
red
Set mapping for red packets
yellow
Set mapping for yellow packets
Default
Default queue and cos value is one-one default mapping if it is not configured.
Command Mode
QoS config mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
(config)#qos profile queue-color-to-dscp nw_profile
(config-egress-dscp-map)# queue 1 dscp 63
(config-egress-dscp-map)#no queue 1
show qos-profile type dscp-encap
Use this command to show all the default and configured QoS profiles configurations.
Command Syntax
show qos-profile type dscp-encap (| NAME)
Parameters
NAME
Profile name
Command Mode
Exec Mode.
Applicability
This command was introduced in OcNOS version 4.2.
Example
VTEP1#show qos-profile type dscp-encap
profile name: default
profile type: dscp-encap
configured mapping:
Detailed mapping:
L3 DSCP to DSCP-ENCAP
-------+-------- | -------+-------- | -------+-------- | -------+--------
INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT
-------|-------- | -------|-------- | -------|-------- | -------|--------
DSCP | DSCP | DSCP | DSCP | DSCP | DSCP | DSCP | DSCP
-------+-------- | -------+-------- | -------+-------- | -------+--------
0 0 | 16 16 | 32 32 | 48 48
1 1 | 17 17 | 33 33 | 49 49
2 2 | 18 18 | 34 34 | 50 50
3 3 | 19 19 | 35 35 | 51 51
4 4 | 20 20 | 36 36 | 52 52
5 5 | 21 21 | 37 37 | 53 53
6 6 | 22 22 | 38 38 | 54 54
7 7 | 23 23 | 39 39 | 55 55
8 8 | 24 24 | 40 40 | 56 56
9 9 | 25 25 | 41 41 | 57 57
10 10 | 26 26 | 42 42 | 58 58
11 11 | 27 27 | 43 43 | 59 59
12 12 | 28 28 | 44 44 | 60 60
13 13 | 29 29 | 45 45 | 61 61
14 14 | 30 30 | 46 46 | 62 62
15 15 | 31 31 | 47 47 | 63 63
L2 Queue + Color to DSCP-ENCAP
---------------+--------| ----------------+--------| --------------+--------
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 8 | 1 yellow 8 | 1 red 8
2 green 16 | 2 yellow 16 | 2 red 16
3 green 24 | 3 yellow 24 | 3 red 24
4 green 32 | 4 yellow 32 | 4 red 32
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
profile name: DSCP_ENCAP
profile type: dscp-encap
profile attached to 0 instances
configured mapping:
l3 dscp 16 dscpEncap 24
l2 queue 3 color all dscp 40
Detailed mapping:
L3 DSCP to DSCP-ENCAP
-------+-------- | -------+-------- | -------+-------- | -------+--------
INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT
-------|-------- | -------|-------- | -------|-------- | -------|--------
DSCP | DSCP | DSCP | DSCP | DSCP | DSCP | DSCP | DSCP
-------+-------- | -------+-------- | -------+-------- | -------+--------
0 0 | 16 24 | 32 32 | 48 48
1 1 | 17 17 | 33 33 | 49 49
2 2 | 18 18 | 34 34 | 50 50
3 3 | 19 19 | 35 35 | 51 51
4 4 | 20 20 | 36 36 | 52 52
5 5 | 21 21 | 37 37 | 53 53
6 6 | 22 22 | 38 38 | 54 54
7 7 | 23 23 | 39 39 | 55 55
8 8 | 24 24 | 40 40 | 56 56
9 9 | 25 25 | 41 41 | 57 57
10 10 | 26 26 | 42 42 | 58 58
11 11 | 27 27 | 43 43 | 59 59
12 12 | 28 28 | 44 44 | 60 60
13 13 | 29 29 | 45 45 | 61 61
14 14 | 30 30 | 46 46 | 62 62
15 15 | 31 31 | 47 47 | 63 63
L2 Queue + Color to DSCP-ENCAP
---------------+--------| ----------------+--------| --------------+--------
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 8 | 1 yellow 8 | 1 red 8
2 green 16 | 2 yellow 16 | 2 red 16
3 green 40 | 3 yellow 40 | 3 red 40
4 green 32 | 4 yellow 32 | 4 red 32
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
VTEP1#
show running-config interface irb
Use this command to display the current QoS running configuration of IRB interface.
Command Syntax
show running-config interface irb<1-4094>
Parameters
None
Command Mode
Exec Mode.
Applicability
This command was introduced in OcNOS version 4.2.
Example
VTEP1#sh run int irb1010
!
interface irb1010
ip vrf forwarding FAX
ip address 10.210.32.1/24
ipv6 address 3001:ab8:1::1/64
qos map-profile dscp-to-queue DSCP_QUE
qos map-profile dscp-to-dscp DSCP_DSCP
!