MQC WRED class-based issue

When enabling WRED in my CBWFQ the traffic is marked as IPP 2 and random-detection works fine.

When i create a class for IPP prec 2 it creates properly but the traffic is moving to IPP0

Without the class

Rack1R4(config-pmap-c)#do sh policy-map int s0/1/0 | sec
 Serial0/1/0

  Service-policy output: R4->R5

    Class-map: VOIP (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: access-group 101
      Match: packet length min 60 max 60
      Queueing
        Strict Priority
        Output Queue: Conversation 40
        Bandwidth 27 (kbps) Burst 675 (Bytes)
        (pkts matched/bytes matched) 0/0
        (total drops/bytes drops) 0/0

    Class-map: HTTP (match-all)
      1942 packets, 1126008 bytes
      5 minute offered rate 35000 bps, drop rate 0 bps
      Match: access-group name HTTP
      QoS Set
        precedence 2
          Packets marked 1942
      Queueing
        Output Queue: Conversation 41
        Bandwidth 32 (kbps)
        (pkts matched/bytes matched) 1935/1122300
        (depth/total drops/no-buffer drops) 4/0/0
         exponential weight: 9
         mean queue depth: 4

  class    Transmitted      Random drop      Tail drop    Minimum Maximum  Mark
           pkts/bytes       pkts/bytes       pkts/bytes    thresh  thresh  prob
      0       0/0               0/0              0/0           20      40  1/10
      1       0/0               0/0              0/0           22      40  1/10
      2    1942/1126008         0/0              0/0           24      40  1/10
      3       0/0               0/0              0/0           26      40  1/10
      4       0/0               0/0              0/0           28      40  1/10
      5       0/0               0/0              0/0           30      40  1/10
      6       0/0               0/0              0/0           32      40  1/10
      7       0/0               0/0              0/0           34      40  1/10
   rsvp       0/0               0/0              0/0           36      40  1/10


    Class-map: ALL-OTHER (match-all)
      0 packets, 0 bytes


Here i configure the class

Rack1R4(config-pmap-c)#random-detect discard-class-based
Rack1R4(config-pmap-c)#random-detect discard-class 2 4 16 4
Rack1R4(config-pmap-c)#do sh policy-map int s0/1/0
 Serial0/1/0

  Service-policy output: R4->R5

    Class-map: VOIP (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: access-group 101
      Match: packet length min 60 max 60
      Queueing
        Strict Priority
        Output Queue: Conversation 40
        Bandwidth 27 (kbps) Burst 675 (Bytes)
        (pkts matched/bytes matched) 0/0
        (total drops/bytes drops) 0/0

    Class-map: HTTP (match-all)
      3019 packets, 1749884 bytes
      5 minute offered rate 51000 bps, drop rate 0 bps
      Match: access-group name HTTP
      QoS Set
        precedence 2
          Packets marked 3019

      Queueing
        Output Queue: Conversation 41
        Bandwidth 32 (kbps)
        (pkts matched/bytes matched) 2996/1737680
        (depth/total drops/no-buffer drops) 4/0/0
         exponential weight: 9
         mean queue depth: 0

Discard    Transmitted      Random drop      Tail drop    Minimum Maximum  Mark
           pkts/bytes       pkts/bytes       pkts/bytes    thresh  thresh  prob
      0     829/480036          0/0              0/0           20      40  1/10
      1       0/0               0/0              0/0           22      40  1/10
      2    2190/1269848         0/0              0/0            4      16  1/4
      3       0/0               0/0              0/0           26      40  1/10
      4       0/0               0/0              0/0           28      40  1/10
      5       0/0               0/0              0/0           30      40  1/10
      6       0/0               0/0              0/0           32      40  1/10
      7       0/0               0/0              0/0           34      40  1/10


    Class-map: ALL-OTHER (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps

Sign In or Register to comment.