OcNOS DC : Quality of Service Guide : Quality of Service Configuration : Service based Queue Distribution Configuration
Service based Queue Distribution Configuration
This chapter describes configuring queue distribution based on type of service such as Precedence or DSCP on Layer 3 interface. Prior to this feature support, only one type of configuration was possibile either precedence or DSCP.
Using the most significant three bits of the DSCP such as Class Selector bits which provides backward compatibility with ip precedence, user can set Precedence. For example when user configure Precedence as 101 in CLI, convert this value to DSCPs(101000 ~ 101111), then set the DSCP.
In the configuration section, new precedence profiles are introduced as qos map-profile based on the existing DSCP profiles.
The configuration procedures given below are similar to DSCP, however, both configurations are supported based on requirements.
Service based Queue configuration
There are 2 Qos-map Precedence profiles used in the configuration procedure.
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
Precedence-to-queue topology
 
#configure terminal
Enter configure mode
(config)#enable qos
Enable Qos
(config)#exit
Exit configure mode
(config)# qos profile precedence-to-queue Prec1_que1
Configure qos-map profile precedence-to-queue with
Profile name as Prece1_que1
 
(config-ingress-prec-map)# precedence 1 queue 2
Configure mapping of prece 1 to queue 2, so that traffic with precedence 1 should take queue as q2
(config)#exit
Exit configure mode
(config)# interface xe1
Configure ingress interface xe1
(config-if)#qos map-profile precedence-to-queue Prec1_que1
Map the profile Prec1_que1 to interface xe1 so that ingress traffic hitting the xe1 interface with prece as 1 should take queue q2
(config)#commit
Commit the configuration
(config)#end
 
Validation
Router#show run int xe1
!
interface xe1
qos map-profile precedence-to-queue Prec1_que1
!
 
Router#show qos-profile type precedence-to-queue
profile name: Prec1_que1
profile type: precedence-to-queue
profile attached to 1 instances
configured mapping:
precedence 1 queue 2
Detailed mapping:
-------+------------------
INPUT | OUTPUT
-------+------------------
PREC | Queue | Out PREC
-------+-------+----------
0 0 0
1 1 2
2 2 0
3 3 0
4 4 0
5 5 0
6 6 0
7 7 0
 
Router#show run qos
qos enable
!
qos profile precedence-to-queue Prec1_que1
precedence 1 queue 2
!
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
 
#configure terminal
Enter configure mode
(config)#enable qos
Enable Qos
(config)#exit
Exit configure mode
(config)# qos profile queue-to-precedence queeue_prece1
Configure qos-map profile queue-to-precedence with Profile name as queeue_prece1
(config-ingress-prec-map)# queue 2 precedence 5
Configure mapping of queue 2 to precedence 5, so that traffic with precedence 1 should take queue as q2
(config)#exit
Exit configure mode
(config)# interface xe2
Configure egress interface xe2 of 1st node
(config-if)#qos map-profile queue-to-precedence queeue_prece1
Map the profile queeue_prece1 to interface xe2 so that egress traffic from xe2 can be remarked with new precedence value 5 and on next node can verify this on egress interface xe3
(config)#commit
Commit the configuration
(config)#end
 
Validation
Router1#show run int ce50
!
interface ce50
qos map-profile queue-to-precedence queue_prece1
!
 
Router1#show run qos
!
qos enable
qos statistics
qos remark dscp
!
qos profile queue-to-precedence queeue_prece1
queue 2 precedence 5
!
!
!
interface ce50
qos map-profile queue-to-precedence queeue_prece1
!
 
#show qos-profile queeue_prece1
profile name: queeue_prece1
profile type: queue-to-precedence
profile attached to 1 instances
configured mapping:
queue 2 precedence 5
Detailed mapping:
-------+--------
INPUT | OUTPUT
-------+--------
Queue | PREC
-------+--------
0 0
1 1
2 5
3 3
4 4
5 5
6 6
7 7