OcNOS-SP : Layer 2 Guide : Layer 2 Configuration Guide : Provider Bridging Configuration : Provider Bridging QoS Configuration
Provider Bridging QoS Configuration
This chapter contains sample provider bridging configurations for QoS.
Scenario: 1 Traffic flow from CEP to PNP
Topology
Figure 2-7: Provider Bridging with QoS Topology
Bridge Configuration
 
#configure terminal
Enter configure mode.
(config)# bridge 1 protocol provider-rstp edge
Enter configure bridge type as provider-RSTP edge bridge
(config)#commit
Commit the configuration.
(config)#exit
Exit configure mode.
VLAN Configuration
 
#configure terminal
Enter configure mode.
(config)#vlan database
Enter VLAN database
(config-vlan)#vlan 2-500 type customer bridge 1 state enable
Configure customer VLANs on bridge 1
(config-vlan)#vlan 501-1005 type service point-point bridge 1 state enable
Configure service VLANs on bridge 1
(config-vlan)#commit
Commit the configuration.
(config-vlan)#end
Exit VLAN database and configure mode.
CVLAN Registration Table Configuration
 
#configure terminal
Enter configure mode.
(config)#cvlan registration table map1 bridge 1
Configure CVLAN registration table as map1
(config-cvlan-registration)#cvlan 2 svlan 501
Map CVLAN to SVLAN
(config-cvlan-registration)#commit
Commit the configuration.
(config-cvlan-registration)#end
End the CVLAN registration mode
CEP Port Configuration
 
#configure terminal
Enter configure mode.
(config)#interface xe2
Enter the interface mode
(config-if)#switchport
Configure switchport
(config-if)#bridge-group 1
Attach port to bridge
(config-if)#switchport mode customer-edge hybrid
Configure port as customer-edge hybrid port
(config-if)#switchport customer-edge hybrid allowed vlan all
Add all VLANs configured above to this CEP port
(config-if)#switchport customer-edge vlan registration map1
Attach the Map1 to CEP port
(config-if)#commit
Commit the configuration.
(config-if)#end
Exit interface and configure mode.
PNP Port Configuration
 
#configure terminal
Enter configure mode.
(config)#interface xe3
Enter the interface mode
(config-if)#switchport
Configure switchport
(config-if)#bridge-group 1
Attach port to bridge
(config-if)#switchport mode provider-network
Configure port as Provider Network Port (PNP)
(config-if)#switchport provider-network allowed vlan add 501
Add all VLANs configured above to this PNP port
(config-if)#commit
Commit the configuration.
(config-if)#end
Exit interface and configure mode.
QoS Configurations
 
#configure terminal
Enter configure mode.
(config)#hardware-profile filter qos-ext enable
Enabling Ingress extended QoS group for QoS support with statistics
(config-if)#qos enable
Enabling QoS
(config-if)#qos statistics
Enabling QoS statistics
(config-if)#qos profile cos-to-queue cosq-cust1
Configure QoS map profile
config-ingress-cos-map)#cos 0 queue 1
Configuring the cos value to be mapped to queue
(config-ingress-cos-map)#exit
Exit configure mode.
(config)#qos profile queue-color-to-cos cosq-service1
Configuring profile for queue color to cos map
(config-egress-cos-map)#queue 1 cos 3
Configuring the queue value to be cos remarked.
(config-egress-cos-map)#exit
Exit configure mode
(config)#cvlan registration table map1 bridge 1
Enter CVLAN registration mode
(config-cvlan-registration)#cvlan 2 svlan 501 cos-to-queue cosq-cust1
Map CVLAN to SVLAN with QoS map profile. Eg: when vlan 2 customer traffic with cos 0 value is received, queue will be assigned to 1 based on mapping.
(config-cvlan-registration)#end
End the CVLAN registration mode
(config)#interface xe3
Enter the interface mode
(config-if)#qos map-profile queue-color-to-cos cosq-service1
Map the profile to the PNP port. Eg: when traffic goes out of queue 1, cos value on service vlan header will be modified to 3 as remarking is enabled on the interface.
(config-if)#qos remark cos enable
Enabling Cos Remark on the Network Interface.
(config-if)#commit
Commit the configuration.
(config-if)#end
Exit interface and configure mode.
Validation for Scenario 1
#show cvlan registration table map1
Bridge Table Name Port List
====== ========== =========
1 map1 xe2
 
CVLAN ID T-CVLAN ID SVLAN ID Profile Name Egress remark-Cos
======== ========== ======== ============ =================
2 - 501 cosq-cust1 No
 
#show qos-profile interface xe2
profile name: default
profile type: cos-to-queue (Ingress)
mapping:
---------------+----------------- | ---------------+-----------------
INPUT | OUTPUT | INPUT | OUTPUT
---------------+----------------- | ---------------+-----------------
COS | DEI | Queue | Color | COS | DEI | Queue | Color
-------+-------+-------+--------- | -------+-------+-------+---------
0 0 0 green | 0 1 0 yellow
1 0 1 green | 1 1 1 yellow
2 0 2 green | 2 1 2 yellow
3 0 3 green | 3 1 3 yellow
4 0 4 green | 4 1 4 yellow
5 0 5 green | 5 1 5 yellow
6 0 6 green | 6 1 6 yellow
7 0 7 green | 7 1 7 yellow
 
profile name: default
profile type: queue-color-to-cos (Egress)
Status: Inactive
mapping:
----------------+-------- | ----------------+-------- | ----------------+--------
INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT
----------------+-------- | ----------------+-------- | ----------------+--------
Queue | Color | COS | Queue | Color | COS | Queue | Color | COS
-------+--------+-------- | -------+--------+-------- | -------+--------+--------
0 green 0 | 0 yellow 0 | 0 red 0
1 green 1 | 1 yellow 1 | 1 red 1
2 green 2 | 2 yellow 2 | 2 red 2
3 green 3 | 3 yellow 3 | 3 red 3
4 green 4 | 4 yellow 4 | 4 red 4
5 green 5 | 5 yellow 5 | 5 red 5
6 green 6 | 6 yellow 6 | 6 red 6
7 green 7 | 7 yellow 7 | 7 red 7
 
#show qos-profile interface xe3
profile name: default
profile type: cos-to-queue (Ingress)
mapping:
---------------+----------------- | ---------------+-----------------
INPUT | OUTPUT | INPUT | OUTPUT
---------------+----------------- | ---------------+-----------------
COS | DEI | Queue | Color | COS | DEI | Queue | Color
-------+-------+-------+--------- | -------+-------+-------+---------
0 0 0 green | 0 1 0 yellow
1 0 1 green | 1 1 1 yellow
2 0 2 green | 2 1 2 yellow
3 0 3 green | 3 1 3 yellow
4 0 4 green | 4 1 4 yellow
5 0 5 green | 5 1 5 yellow
6 0 6 green | 6 1 6 yellow
7 0 7 green | 7 1 7 yellow
 
profile name: cosq-service1
profile type: queue-color-to-cos (Egress)
Status: Active
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 3 | 1 yellow 3 | 1 red 3
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
 
Scenario: 2 Traffic flow from PNP to CEP
Topology
Figure 2-8: Provider Bridging with QoS Topology
Bridge Configuration
 
#configure terminal
Enter configure mode.
(config)# bridge 1 protocol provider-rstp edge
Enter configure bridge type as provider-RSTP edge bridge
(config)#commit
Commit the configuration.
(config)#exit
Exit configure mode.
VLAN Configuration
 
#configure terminal
Enter configure mode.
(config)#vlan database
Enter VLAN database
(config-vlan)#vlan 2-500 type customer bridge 1 state enable
Configure customer VLANs on bridge 1
(config-vlan)#vlan 501-1005 type service point-point bridge 1 state enable
Configure service VLANs on bridge 1
(config-vlan)#commit
Commit the configuration.
(config-vlan)#end
Exit VLAN database and configure mode.
CVLAN Registration Table Configuration
 
#configure terminal
Enter configure mode.
(config)#cvlan registration table map1 bridge 1
Configure CVLAN registration table as map1
(config-cvlan-registration)#commit
Commit the configuration.
(config-cvlan-registration)#end
End the CVLAN registration mode
CEP Port Configuration
 
#configure terminal
Enter configure mode.
(config)#interface xe2
Enter the interface mode
(config-if)#switchport
Configure switchport
(config-if)#bridge-group 1
Attach port to bridge
(config-if)#switchport mode customer-edge hybrid
Configure port as customer-edge hybrid port
(config-if)#switchport customer-edge hybrid allowed vlan all
Add all VLANs configured above to this CEP port
(config-if)#switchport customer-edge vlan registration map1
Attach the Map1 to CEP port
(config-if)#commit
Commit the configuration.
(config-if)#end
Exit interface and configure mode.
PNP Port Configuration
 
#configure terminal
Enter configure mode.
(config)#interface xe3
Enter the interface mode
(config-if)#switchport
Configure switchport
(config-if)#bridge-group 1
Attach port to bridge
(config-if)#switchport mode provider-network
Configure port as Provider Network Port (PNP)
(config-if)#switchport provider-network allowed vlan add 501
Add all VLANs configured above to this PNP port
(config-if)#commit
Commit the configuration.
(config-if)#end
Exit interface and configure mode.
QoS Configurations
 
#configure terminal
Enter configure mode.
(config)#hardware-profile filter qos-ext enable
Enabling Ingress extended QoS group for QoS support with statistics
(config-if)#qos enable
Enabling QoS
(config-if)#qos statistics
Enabling QoS statistics
(config-if)#qos profile cos-to-queue cosq-cust1
Configure QoS map profile
config-ingress-cos-map)#cos 2 queue 5
Configuring the cos value to be mapped to queue. Eg: when double tagged traffic with cos 2 for outer vlan is received, queue will be assigned to 5 based on mapping.
(config-ingress-cos-map)#exit
Exit configure mode.
(config)#cvlan registration table map1 bridge 1
Enter CVLAN registration mode
(config-cvlan-registration)#cvlan 2 svlan 501 remark-cos
Map CVLAN to SVLAN with remark cos enabled. Eg: when double tagged traffic with cos 2 for outer vlan is received, queue will be assigned to 5 based on mapping and cos value will be changed to 5 when it goes out of cep port since remark cos is enabled.
(config-cvlan-registration)#cvlan 3 svlan 501 remark-cos
Map CVLAN to SVLAN without remark cos. Eg: when double tagged traffic with cos 2 for outer vlan is received, and cos value will be forwarded as it is when it goes out of cep port since remark cos is not enabled for customer2.
(config-cvlan-registration)#end
End the CVLAN registration mode
(config)#configure terminal
Enter configure mode
(config)#interface xe3
Enter the interface mode
(config-if)#qos map-profile cos-to-queue cosq-service
Map the profile to the PNP port
(config-if)#commit
Commit the configuration.
(config-if)#end
Exit interface and configure mode
Validation for Scenario 2
#show cvlan registration table map1
Bridge Table Name Port List
====== ========== =========
1 map1 xe2
 
CVLAN ID T-CVLAN ID SVLAN ID Profile Name Egress remark-Cos
======== ========== ======== ============ =================
2 - 501 N/A Yes
3 - 501 N/A No
 
#show qos-profile interface xe2
profile name: default
profile type: cos-to-queue (Ingress)
mapping:
---------------+----------------- | ---------------+-----------------
INPUT | OUTPUT | INPUT | OUTPUT
---------------+----------------- | ---------------+-----------------
COS | DEI | Queue | Color | COS | DEI | Queue | Color
-------+-------+-------+--------- | -------+-------+-------+---------
0 0 0 green | 0 1 0 yellow
1 0 1 green | 1 1 1 yellow
2 0 2 green | 2 1 2 yellow
3 0 3 green | 3 1 3 yellow
4 0 4 green | 4 1 4 yellow
5 0 5 green | 5 1 5 yellow
6 0 6 green | 6 1 6 yellow
7 0 7 green | 7 1 7 yellow
 
profile name: default
profile type: queue-color-to-cos (Egress)
Status: Inactive
mapping:
----------------+-------- | ----------------+-------- | ----------------+--------
INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT
----------------+-------- | ----------------+-------- | ----------------+--------
Queue | Color | COS | Queue | Color | COS | Queue | Color | COS
-------+--------+-------- | -------+--------+-------- | -------+--------+--------
0 green 0 | 0 yellow 0 | 0 red 0
1 green 1 | 1 yellow 1 | 1 red 1
2 green 2 | 2 yellow 2 | 2 red 2
3 green 3 | 3 yellow 3 | 3 red 3
4 green 4 | 4 yellow 4 | 4 red 4
5 green 5 | 5 yellow 5 | 5 red 5
6 green 6 | 6 yellow 6 | 6 red 6
7 green 7 | 7 yellow 7 | 7 red 7
 
#show qos-profile interface xe3
profile name: cosq-service
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 5 green | 2 1 5 yellow
3 0 3 green | 3 1 3 yellow
4 0 4 green | 4 1 4 yellow
5 0 5 green | 5 1 5 yellow
6 0 6 green | 6 1 6 yellow
7 0 7 green | 7 1 7 yellow
 
profile name: default
profile type: queue-color-to-cos (Egress)
Status: Inactive
mapping:
----------------+-------- | ----------------+-------- | ----------------+--------
INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT
----------------+-------- | ----------------+-------- | ----------------+--------
Queue | Color | COS | Queue | Color | COS | Queue | Color | COS
-------+--------+-------- | -------+--------+-------- | -------+--------+--------
0 green 0 | 0 yellow 0 | 0 red 0
1 green 1 | 1 yellow 1 | 1 red 1
2 green 2 | 2 yellow 2 | 2 red 2
3 green 3 | 3 yellow 3 | 3 red 3
4 green 4 | 4 yellow 4 | 4 red 4
5 green 5 | 5 yellow 5 | 5 red 5
6 green 6 | 6 yellow 6 | 6 red 6
7 green 7 | 7 yellow 7 | 7 red 7
 
 
Last modified date: 07/06/2023