Description

Qos behavior(Class-of-service) on interface-set group is not as expect.

Symptoms

Below configuration expected interface set1 best-effort forwarding-class output bandwidth is 10Mbps.

set interfaces interface-set set1 interface xe-0/0/0 unit 100

set interfaces interface-set set1 interface xe-0/0/0 unit 200

set class-of-service traffic-control-profiles tcp1 scheduler-map map-be

set class-of-service traffic-control-profiles tcp1 shaping-rate 10g

set class-of-service interfaces interface-set set1 output-traffic-control-profile tcp1

set class-of-service scheduler-maps map-be forwarding-class best-effort scheduler sch-be

set class-of-service schedulers sch-be transmit-rate 10m

set class-of-service schedulers sch-be transmit-rate rate-limit

 

But actual output bandwidth become to 20Mbps.

user@mx> show interfaces queue xe-0/0/0 forwarding-class best-effort

Physical interface: xe-0/0/0, Enabled, Physical link is Up

 Interface index: 152, SNMP ifIndex: 908

Forwarding classes: 16 supported, 4 in use

Egress queues: 8 supported, 4 in use

Queue: 0, Forwarding classes: best-effort

 Queued:

  Packets       :        1355725         16442 pps

  Bytes        :       206069790       19994112 bps

 Transmitted:

  Packets       :        1355725         16442 pps

  Bytes        :       206069790       19994112 bps

  Tail-dropped packets :           0           0 pps

  RL-dropped packets  :       12533713        152476 pps

  RL-dropped bytes   :      1654450116       161016576 bps
 

Besides apply traffic-control-profile on interface-set group, group member logical interfaces also applied traffic-control-profile. 

set class-of-service interfaces xe-0/0/0 unit 100 output-traffic-control-profile tcp1

set class-of-service interfaces xe-0/0/0 unit 200 output-traffic-control-profile tcp1


For this reason, logical interfaces class-of-service setting will take effect firstly.

user@mx> run show class-of-service scheduler-hierarchy interface-set set1

Interface/               Shaping Guaranteed Guaranteed/  Queue  Excess

Resource name               rate   rate    Excess weight  weight

                     kbits   kbits   priority     high/low

xe-0/0/0                10000000

 xe-0/0/0 RTP             10000000     0             1  1

  best-effort            10000000     0   Low Low   95

  network-control          10000000     0   Low Low    5

 set1                 10000000     0            1000 1000

  set1 RTP              10000000     0             1  1

   best-effort           10000000   10000   Low Low    1

  xe-0/0/0.100            10000000     0            1000 1000

   best-effort           10000000   10000   Low Low    1

  xe-0/0/0.200            10000000     0            1000 1000

   best-effort           10000000   10000   Low Low    1

 

 

 

 

Solution

The interface-set group member logical interface cos configuration is prior to interface-set group.

Delete member logical interface configuration and then interface-set group cos works as expected.

 

delete class-of-service interfaces xe-0/0/0 unit 100 output-traffic-control-profile tcp1

delete class-of-service interfaces xe-0/0/0 unit 200 output-traffic-control-profile tcp1

 

user@mx> show class-of-service scheduler-hierarchy interface-set set1

Interface/               Shaping Guaranteed Guaranteed/  Queue  Excess

Resource name               rate   rate    Excess weight  weight

                     kbits   kbits   priority     high/low

xe-0/0/0                10000000

 xe-0/0/0 RTP             10000000     0             1  1

  best-effort            10000000     0   Low Low   95

  network-control          10000000     0   Low Low    5

 set1                 10000000     0            1000 1000

  best-effort            10000000   10000   Low Low    1

 

user@mx> show interfaces queue xe-0/0/0 forwarding-class best-effort

Physical interface: xe-0/0/0, Enabled, Physical link is Up

 Interface index: 152, SNMP ifIndex: 908

Forwarding classes: 16 supported, 4 in use

Egress queues: 8 supported, 4 in use

Queue: 0, Forwarding classes: best-effort

 Queued:

  Packets       :       26146416         8232 pps

  Bytes        :      3974254658       10010368 bps

 Transmitted:

  Packets       :       26146416         8232 pps

  Bytes        :      3974254658       10010368 bps <<<<<works as expected

  Tail-dropped packets :           0           0 pps

  RL-dropped packets  :       247571774        160688 pps

  RL-dropped bytes   :      32679474168       169686912 bps

 

 

Modification History

2023-12-02 : Article Created