Comware to ArubaOS-CX Config

In this post we are going to convert the Comware QoS configuration in ArubaOS-CX QoS configuration.

Comware Configuration:
The below is the comware QoS config we wanted to convert.
It has a classifier profile and then a behavior profile, which are mapped to QoS policy.
Then the qos policy is associated to the physical interface.

traffic classifier c_dtrs_default operator and
if-match service-vlan-id 3002
traffic classifier c_ict_default operator and
if-match service-vlan-id 3502
traffic classifier c_ip-pa_in_default operator and
if-match service-vlan-id 3506
traffic classifier c_ip-pa_in_tos5 operator and
if-match service-vlan-id 3506
if-match ip-precedence 5

traffic behavior b_dtrs_default
remark dot1p 5
remark dscp cs5
car cir 256000 cbs 16000000 ebs 4000 green pass red discard yellow pass
traffic behavior b_ict_default
remark dot1p 1
remark dscp cs1
car cir 46080 cbs 2880000 ebs 4000 green pass red discard yellow pass
traffic behavior b_ip-pa_in_default
remark dot1p 3
remark dscp cs3
car cir 32768 cbs 2048000 ebs 4000 green pass red discard yellow pass
traffic behavior b_ip-pa_in_tos5
remark dot1p 5
remark dscp cs5
car cir 128 cbs 8000 ebs 4000 green pass red discard yellow pass

qos policy p_global
classifier c_dtrs_default behavior b_dtrs_default
classifier c_ict_default behavior b_ict_default
classifier c_ip-pa_in_default behavior b_ip-pa_in_default
qos policy p_global_in
classifier c_ip-pa_in_tos5 behavior b_ip-pa_in_tos5
classifier c_ip-pa_in_default behavior b_ip-pa_in_default

interface GigabitEthernet1/0/21
port link-mode bridge
description 1Q–edge-switch:6/1
port link-type trunk
port trunk permit vlan 1 3001 to 4000
port trunk pvid vlan 4000
stp compliance dot1s
stp point-to-point force-true
oam enable
undo ndp enable
undo ntdp enable
qos apply policy p_global_in inbound
qos apply policy p_global outbound
qos wrr 7 group sp
qos wrr 6 group sp
qos wrr 5 group sp
qos wrr 4 group 1 weight 10
qos wrr 3 group 1 weight 8
qos wrr 2 group 1 weight 6
qos wrr 1 group 1 weight 4
qos wrr 0 group 1 weight 2
qos trust dot1p
#

CX Configuration:
The below is how the equivalent CX QoS configuration looks like.,
Points to be noted.,

  1. Cannot have a schedule profile with 3 strict priority queues. Only 1 is allowed in a dwrr profile.
  2. The cbs cannot exceed 4161500 so we need to trim down the comware cbs burst from 16000000
  3. The policers for CX do not work with color, i.e., red, yellow, green classifications
    a. We do support WRED with threshold profiles for drops based on color when there is congestion
    We need to have multiple actions to set pcp and dscp values in the QoS policy.

class ip c_dtrs_default
10 match any any any vlan 3002
class ip c_ict_default
10 match any any any vlan 3502
class ip c_ip-pa_in_default
10 match any any any vlan 3506
class ip c_ip-pa_in_tos5
10 match any any any tos 5 vlan 3506

!
policy p_global
10 class ip c_dtrs_default action pcp 5 action dscp CS5 action cir kbps 256000 cbs 4161500 exceed drop
20 class ip c_ict_default action pcp 1 action dscp CS1 action cir kbps 46080 cbs 2880000 exceed drop

!
policy p_global_in
10 class ip c_ip-pa_in_tos5 action pcp 5 action dscp CS5 action cir kbps 128 cbs 8000 exceed drop
20 class ip c_ip-pa_in_default action pcp 3 action dscp CS3 action cir kbps 32768 cbs 2048000 exceed drop

!
vlan 1,3001-4000
!
qos schedule-profile myschedule
dwrr queue 0 weight 10
dwrr queue 1 weight 20
dwrr queue 2 weight 30
dwrr queue 3 weight 40
dwrr queue 4 weight 60
dwrr queue 5 weight 80
dwrr queue 6 weight 100
strict queue 7

!
interface 1/1/1
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 3001-4000
qos trust cos
apply qos schedule-profile myschedule
apply policy p_global_in in

!
interface 1/1/2
no shutdown
no routing
vlan trunk native 1
vlan trunk allowed 3001-4000
qos trust cos
apply qos schedule-profile myschedule
apply policy p_global out
!