cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1275
Views
0
Helpful
3
Replies

NCS540 QoS class class-default

We try to establish easy to use policy-map on NCS 540 for business customers. Form the policy we just need to shape traffic in the egress direction. We would like to shape it overall QoS queues. Inside XR world (ASR9k) we use class class-default which catch-all queues. On the NCS540 class, class-default catches only non-marked traffic. This behavior complicates the structure of policy-map if we will like to shape traffic overall queues.

On ASR egress policy looks like this:

!

policy-map BUSINESS-Q2-2M-OUT
 class class-default
 shape average 2 mbps

!

We would like to find an equivalent for the ASR9k policy map on NCS540.
Right now we are using this policy on NCS540:

 

class-map match-any TRAFFICCLASS-Q2-OUT
 match traffic-class 2
end-class-map
!
policy-map BUSINESS-Q2-2M-OUT
 class TRAFFICCLASS-Q2-OUT
  shape average 2 mbps
!
 class class-default
!
end-policy-map

 

This policy-map is fine if the traffic is marked right on the far end router and comes to the router in queue 2. If traffic comes to the NCS540 in the wrong queue NCS will not shape it at all.

We try to find a solution that will cover all traffic class at once but we can't attach it to the interface:
We try with this:

 

class-map match-any TRAFFICCLASS-ANY
 match traffic-class 1 2 3 4 5 6 7
end-class-map
!
policy-map BUSINESS-TS-Q2-2M-OUT
 class TRAFFICCLASS-ANY
  shape average 2 mbps
!
 class class-default
!
end-policy-map

 

In ingress direction policy like this works fine:

class-map match-all COS-ANY
 match cos 0 1 2 3 4 5 6 7
end-class-map
!
policy-map BUSINESS-Q2-2M-IN
 class COS-ANY
set mpls experimental topmost 2
set traffic-class 2
police rate 2 mbps burst 65536 bytes peak-burst 131072 bytes
!
!
end-policy-map
!

Please let us know hot make class class-default to work on the NCS in the way that we know it from the old IOS routers.

Thanks, Primoz

3 Replies 3

johnlloyd_13
Level 9
Level 9

hi,

the NCS 540 router IOS-XR architecture is different from classic IOS and IOS-XE.

you'll need to enable the hierchical QoS (H-QoS) and setup your "ingress" class-map, map to a "traffic-class, then configure your "egress" QoS with the said H-QoS.


Router(config)# hw-module profile qos hqos-enable
Router(config)# commit
Router# admin
sysadmin-vm:0_RP0# hw-module location all reload


there are only a few cisco docs for NCS 540 and it's challenging to understand them. see helpful link for the QoS examples.

https://www.ciscolive.com/c/dam/r/ciscolive/apjc/docs/2017/pdf/BRKSPG-2370.pdf

We are familiar with QoS functionality on NCS540 and yes, hqos-enable has been enabled on hw-module level.
 
We are only running into some difficulties with class map construction in the egress direction that would allow us to catch all of the traffic throughout all traffic-class-es.
 
Will upcoming software releases support traffic class "class-default", as we have come to know it from our experience with the ASR9k platform, that would encompass and catch any and all traffic.
 
 
 

Hello,

 

I am reading through the 'Modular QoS Configuration Guide for Cisco NCS 540 Series Routers, Cisco IOS XR Release 6.3.x' (linked below) and it states that the default class is available, biut the example given only shows the 'police' parameter, can you,for the sake of testing, check if policing the default class works ?

 

https://www.cisco.com/c/en/us/td/docs/iosxr/ncs5xx/qos/63x/b-qos-cg-63x-ncs5xx/b-qos-cg-63x-ncs5xx_chapter_00.html#concept_BF8CD780CE314E6C86EA650F256D3636

Review Cisco Networking for a $25 gift card