ASR 9000 4L HQoS

Basic configuration testing of ASR 9000 4L HQoS, Shared policy-instance.

Under a physical interface, There are 4 vlans, Vlan 10, Vlan 20, Vlan 30 and Vlan 40. Vlan 10 and 20 belong to a same logical group and share a bandwidth of 150 Mbps. Each has a capacity of 100 Mbps. That means there is oversubscription on the shared bandwith. Vlan 30 and Vlan 40 are in same configurations.

Also there is classification on vlan basis. There are two classes, one is for real time and the other is default. We can add more but I’ve reached the limitation of my tester (10 flow maximum).

4L HQOS Configuration

Below is the configuration ;

class-map match-any TT_TLM_V20
match vlan 20
end-class-map
!
class-map match-any TT_TLM_V30
match vlan 30
end-class-map
!
class-map match-any TT_TLM_V40
match vlan 40
end-class-map
!
class-map match-any TN_BACKBONE_QoS_REALTIME
match cos 5
end-class-map
!
policy-map TN_BACKBONE_QoS_OUT
class TN_BACKBONE_QoS_REALTIME
priority level 1
police rate percent 35
!

class class-default
bandwidth percent 65
!
!
policy-map TT_TLM_1_PARENT
class class-default
service-policy TT_TLM_1_CHILD
shape average 150 mbps
!
end-policy-map
!
policy-map TT_TLM_2_PARENT
class class-default
service-policy TT_TLM_2_CHILD
shape average 150 mbps
!
end-policy-map
!

policy-map TT_TLM_1_CHILD
class TT_TLM_V10
service-policy TN_BACKBONE_QoS_OUT
shape average 100 mbps
!
class TT_TLM_V20
service-policy TN_BACKBONE_QoS_OUT
shape average 100 mbps
!
class class-default
!
end-policy-map
!
policy-map TT_TLM_2_CHILD
class TT_TLM_V30
service-policy TN_BACKBONE_QoS_OUT
shape average 100 mbps
!
class TT_TLM_V40
service-policy TN_BACKBONE_QoS_OUT
shape average 100 mbps
!
class class-default
!
end-policy-map
!

 

interface GigabitEthernet0/0/0/6
negotiation auto
load-interval 30
!
interface GigabitEthernet0/0/0/6.10 l2transport
encapsulation dot1q 10
service-policy output TT_TLM_1_PARENT shared-policy-instance TT_TLM_1
!
interface GigabitEthernet0/0/0/6.20 l2transport
encapsulation dot1q 20
service-policy output TT_TLM_1_PARENT shared-policy-instance TT_TLM_1
!
interface GigabitEthernet0/0/0/6.30 l2transport
encapsulation dot1q 30
service-policy output TT_TLM_2_PARENT shared-policy-instance TT_TLM_2
!
interface GigabitEthernet0/0/0/6.40 l2transport
encapsulation dot1q 40
service-policy output TT_TLM_2_PARENT shared-policy-instance TT_TLM_2
!

 

For the test results red means there are drops.

TEST 1 : Testing just VLAN10 and VLAN 20. Sending 100 Mbps on default class of each vlans. As a result total capacity of 150 Mbps is equally given to both vlans.

4L HQOS TEST-1

TEST 2 : Adding 35 Mbps on real time classes of VLAN 10 and VLAN 20. As expected no drops on real time classes. Both default class of each vlans bandwith decreased to (150-(35*2))/2 40 Mbps.

4L HQOS TEST-2

TEST 3 : removing traffic from plan 20 default class. As a result VLAN 10 default class can reach its maximum level of 100-35 = 65 Mbps.

4L HQOS TEST-3

TEST 4 : VLAN 30 and VLAN 40 have the same configuration. For a final test just sending traffic on VLAN 30 and VLAN 40.

4L HQOS TEST-4