Junos
Junos

Cos transmit queue mapping

‎04-18-2014 01:25 AM

Hi.

I created the following Cos config to deal with dscp-marked VoIP traffic. It complements the default Cos configuration on my SRX:

 

classifiers {
    dscp ba-classifier {
        import default;
        forwarding-class voip {
            loss-priority low code-points [ 011000 101110 ];
        }
    }
}
forwarding-classes {
    queue 4 voip;
}
interfaces {
    reth0 {
        unit 0 {
            scheduler-map cos;
        }
    }
    reth1 {
        unit 1 {
            scheduler-map cos;
            classifiers {
                dscp ba-classifier;
            }
        }
        unit 2 {
            scheduler-map cos;
        }
    }
}
scheduler-maps {
    cos {
        forwarding-class voip scheduler voip;
    }
}
schedulers {
    voip {
        priority high;
    }
}


It seems to work and account the VoIP traffic, since counters are increasing.
What I'm worrying about - is that in my case only two of the Cos transmit queues are mapped to forwarding classes in the "show interface extensive" output. But I saw an article - http://mellowd.co.uk/ccie/?p=4357 - and this guy has all of the Cos transmit queues mapped to the forwarding classes. Did I miss something ? Here's my "show interface extensive output (ge-0/0/2 is part of the reth0.0)

 

emz@spb-wc-node0# run show interface ge-0/0/2 extensive
Physical interface: ge-0/0/2, Enabled, Physical link is Up
  Interface index: 213, SNMP ifIndex: 510, Generation: 216
  Link-level type: Ethernet, MTU: 1514, Link-mode: Full-duplex, Speed: 1000mbps, BPDU Error: None,
  MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled,
  Auto-negotiation: Enabled, Remote fault: Online
  Device flags   : Present Running
  Interface flags: SNMP-Traps Internal: 0x0
  Link flags     : Scheduler
  CoS queues     : 8 supported, 8 maximum usable queues
  Hold-times     : Up 0 ms, Down 0 ms
  Current address: 00:10:db:ff:10:00, Hardware address: 3c:8a:b0:5c:5e:22
  Last flapped   : 2014-04-11 17:13:42 UTC (6d 22:45 ago)
  Statistics last cleared: Never
  Traffic statistics:
   Input  bytes  :          92797679890              8910184 bps
   Output bytes  :         239546043617             10780600 bps
   Input  packets:            356970310                 1685 pps
   Output packets:            408668584                 1897 pps
  Input errors:
    Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0,
    L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0
  Output errors:
    Carrier transitions: 1, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0,
    MTU errors: 0, Resource errors: 0
  Egress queues: 8 supported, 5 in use
  Queue counters:       Queued packets  Transmitted packets      Dropped packets
    0 best-effort            207081379            207081379                    0
    1 expedited-fo                   0                    0                    0
    2 assured-forw                   0                    0                    0
    3 network-cont            10359322             10359322                    0
    4 voip                     2990104              2990104                    0
  Queue number:         Mapped forwarding classes
    0                   best-effort
    1                   expedited-forwarding
    2                   assured-forwarding
    3                   network-control
    4                   voip
  Active alarms  : None
  Active defects : None
  MAC statistics:                      Receive         Transmit
    Total octets                   54188157929     134644879688
    Total packets                    192168010        220828814
    Unicast packets                  192080076        220828807
    Broadcast packets                    57915                7
    Multicast packets                    30019                0
    CRC/Align errors                         0                0
    FIFO errors                              0                0
    MAC control frames                       0                0
    MAC pause frames                         0                0
    Oversized frames                         0
    Jabber frames                            0
    Fragment frames                          0
    VLAN tagged frames                       0
    Code violations                          0
  Filter statistics:
    Input packet count                       0
    Input packet rejects                     0
    Input DA rejects                         0
    Input SA rejects                         0
    Output packet count                                       0
    Output packet pad count                                   0
    Output packet error count                                 0
    CAM destination filters: 3, CAM source filters: 0
  Autonegotiation information:
    Negotiation status: Complete
    Link partner:
        Link mode: Full-duplex, Flow control: None, Remote fault: OK, Link partner Speed: 1000 Mbps
    Local resolution:
        Flow control: None, Remote fault: Link OK
  Packet Forwarding Engine configuration:
    Destination slot: 0
  CoS information:
    Direction : Output
    CoS transmit queue               Bandwidth               Buffer Priority   Limit
                              %            bps     %           usec
    0 best-effort            95      950000000    95              0      low    none
    3 network-control         5       50000000     5              0      low    none
  Interface transmit statistics: Disabled

  Logical interface ge-0/0/2.0 (Index 120) (SNMP ifIndex 513) (Generation 215)
    Flags: SNMP-Traps 0x0 Encapsulation: ENET2
    Traffic statistics:
     Input  bytes  :           8632314039
     Output bytes  :          21694951090
     Input  packets:             27189592
     Output packets:             32267735
    Local statistics:
     Input  bytes  :                  360
     Output bytes  :             17650908
     Input  packets:                    6
     Output packets:                89386
    Transit statistics:
     Input  bytes  :           8632313679              8910184 bps
     Output bytes  :          21677300182             10772640 bps
     Input  packets:             27189586                 1685 pps
     Output packets:             32178349                 1891 pps
    Security: Zone: Null                
    Flow Statistics :  
    Flow Input statistics :
      Self packets :                     0
      ICMP packets :                     0
      VPN packets :                      0
      Multicast packets :                0
      Bytes permitted by policy :        0
      Connections established :          0
    Flow Output statistics:
      Multicast packets :                0
      Bytes permitted by policy :        0
    Flow error statistics (Packets dropped due to):
      Address spoofing:                  0
      Authentication failed:             0
      Incoming NAT errors:               0
      Invalid zone received packet:      0
      Multiple user authentications:     0
      Multiple incoming NAT:             0
      No parent for a gate:              0
      No one interested in self packets: 0       
      No minor session:                  0
      No more sessions:                  0
      No NAT gate:                       0
      No route present:                  0
      No SA for incoming SPI:            0
      No tunnel found:                   0
      No session for a gate:             0
      No zone or NULL zone binding       0
      Policy denied:                     0
      Security association not active:   0
      TCP sequence number out of window: 0
      Syn-attack protection:             0
      User authentication errors:        0
    Protocol aenet, AE bundle: reth0.0   Link Index: 0, Generation: 228, Route table: 0

 

1 REPLY 1
Junos

Re: Cos transmit queue mapping

‎05-02-2014 06:55 AM

Hello,

Not sure what Your exact problem is but You have 5 classes mapped into 5 queues:

 

  Queue number:         Mapped forwarding classes
    0                   best-effort
    1                   expedited-forwarding
    2                   assured-forwarding
    3                   network-control
    4                   voip

 However, you did not assign any transmit-rate/burst-size to any of your FCs in sheduler config, hence only 2 of Your 5 queues get BW guarantees:

 

   CoS transmit queue               Bandwidth               Buffer Priority   Limit
                              %            bps     %           usec
    0 best-effort            95      950000000    95              0      low    none
    3 network-control         5       50000000     5              0      low    none

 The rest of the queues will get "remainder" BW.

HTH

Thanks

Alex

 

_____________________________________________________________________

Please ask Your Juniper account team about Juniper Professional Services offerings.
Juniper PS can design, test & build the network/part of the network as per Your requirements

+++++++++++++++++++++++++++++++++++++++++++++

Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !