Ethernet Switching
Reply
Trusted Contributor
mysterx
Posts: 84
Registered: ‎12-17-2010
0

port shaping operational commands for ex3200

I have an EX3200 10.4R9.2 with port shaping configured (800mbps).  I would like to see shaping statistics. Id like to see if the shaper kicked in and things like packet counts for what was shaped. The only operational command that seems to even acknowledge that I have port shaping configured is the show class-of-service interfaces ge-0/0/0 commands. I don't see anything with show interfaces.. The documents I found on port shaping didn't have anything illuminating. Anyone know of operational commands to show detail on port shaping? thank you!

 

root@CE45-EX3200-1> show configuration class-of-service interfaces ge-0/0/0    
scheduler-map 1000M_EDGE_200M-200M-NC-0K-0K-BE;
shaping-rate 800m;  <-- port shaping
unit 1145 {
    classifiers {
        dscp WAN_QOS;
    }
    rewrite-rules {
        dscp CPE_REWRITE;
    }
}

root@CE45-EX3200-1> show class-of-service interface ge-0/0/0
Physical interface: ge-0/0/0, Index: 130
Queues supported: 8, Queues in use: 6
  Shaping rate: 800000000 bps
  Scheduler map: 1000M_EDGE_200M-200M-NC-0K-0K-BE, Index: 50029
  Congestion-notification: Disabled

  Logical interface: ge-0/0/0.0, Index: 2147404772

  Logical interface: ge-0/0/0.1145, Index: 2147404772
    Object                  Name                   Type                    Index
    Rewrite                 CPE_REWRITE            dscp                    61134
    Classifier              WAN_QOS                dscp                     4461
    Classifier              dscp-ipv6-default      dscp-ipv6                   8
root@CE45-EX3200-1>

If this post was helpful, please mark this post as an "Accepted Solution".
Kudos are always appreciated!
Super Contributor
nikolay.semov
Posts: 171
Registered: ‎03-15-2012
0

Re: port shaping operational commands for ex3200

Try show interface ge-0/0/0 extensive. Somewhere towards the middle of the output the queues for the interface should be listed and I believe you would find drop rate somewhere in there, too.
Trusted Contributor
mysterx
Posts: 84
Registered: ‎12-17-2010
0

Re: port shaping operational commands for ex3200

Is it the section in bold below?. It looks like by default it is dividing the 800Mbps between BE and NC? Is that what it is doing? Is there a way to change that for port-shaping?   So during congestion, the only queue to get service will be queue 0 and queue 2 for all my traffic leaving ge-0/0/0?

 

 

 

show interfaces ge-0/0/0 extensive          

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

  Interface index: 130, SNMP ifIndex: 501, Generation: 133

  Description: TO MFN CAT GE6/13 (WAN)

  Link-level type: Ethernet, MTU: 1518, Speed: 1000mbps, Duplex: Full-Duplex, BPDU Error: None, MAC-REWRITE Error: None,

  Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Disabled, Remote fault: Online

  Device flags   : Present Running

  Interface flags: SNMP-Traps Internal: 0x0

  CoS queues     : 8 supported, 8 maximum usable queues

  Hold-times     : Up 0 ms, Down 0 ms

  Current address: 5c:5e:ab:7f:e4:c0, Hardware address: 5c:5e:ab:7f:e4:c0

  Last flapped   : 2012-04-27 14:49:22 EDT (1w4d 18:18 ago)

  Statistics last cleared: 2012-05-04 14:15:50 EDT (4d 18:51 ago)

  Traffic statistics:

   Input  bytes  :       41260266144253            798619264 bps

   Output bytes  :       41286856087916            797967488 bps

   Input  packets:         285673500783               690785 pps

   Output packets:         285690507712               690912 pps

   IPv6 transit statistics:

    Input  bytes  :                   0 

    Output bytes  :                   0

    Input  packets:                   0

    Output packets:                   0

  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: 0, 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, 6 in use

  Queue counters:       Queued packets  Transmitted packets      Dropped packets

    0 BEST_EFFORT                    0          56269600686              2224401

    1 APPLICATION                    0                    0                    0

    2 NETWORK_CONT                   0               939136                    0

    5 VIDEO                          0                    0                    0

    6 VOICE                          0         114710182749                16032

    7 EMERGENCY_VO                   0         114710198801                  177

  Queue number:         Mapped forwarding classes

    0                   BEST_EFFORT 

    1                   APPLICATION 

    2                   NETWORK_CONTROL

    5                   VIDEO       

    6                   VOICE       

    7                   EMERGENCY_VOICE

  Active alarms  : None

  Active defects : None

  MAC statistics:                      Receive         Transmit

    Total octets                41260266144253   41286856087916

    Total packets                 285673500783     285690507712

    Unicast packets               285673251712     285690492733

    Broadcast packets                       92              450

    Multicast packets                   248979            14529

    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

    Code violations                          0

  Autonegotiation information:

    Negotiation status: No-autonegotiation

  Packet Forwarding Engine configuration:

    Destination slot: 0

  CoS information:

    Direction : Output 

    CoS transmit queue               Bandwidth               Buffer Priority   Limit   

                              %            bps     %           usec

    0 BEST_EFFORT            50      400000000    84             NA      low    none

    1 APPLICATION             0              0     0             NA      low    none

    2 NETWORK_CONTROL         5       40000000     5             NA      low    none

    5 VIDEO                   0              0     0             NA      low    none

    6 VOICE                   r              r     5             NA strict-high    none

    7 EMERGENCY_VOICE         r              r     5             NA strict-high    none

  Interface transmit statistics: Disabled

 

  Logical interface ge-0/0/0.0 (Index 68) (SNMP ifIndex 502) (Generation 133)

    Flags: SNMP-Traps VLAN-Tag [ 0x0000.0 ]  Encapsulation: ENET2

    Traffic statistics:

     Input  bytes  :                    0

     Output bytes  :              3583840

     Input  packets:                    0

     Output packets:                13784

    Local statistics:

     Input  bytes  :                    0

     Output bytes  :              3583840

     Input  packets:                    0

     Output packets:                13784

    Transit statistics:

     Input  bytes  :                    0                    0 bps

     Output bytes  :                    0                    0 bps

     Input  packets:                    0                    0 pps

     Output packets:                    0                    0 pps

 

  Logical interface ge-0/0/0.1145 (Index 69) (SNMP ifIndex 559) (Generation 134)

    Flags: SNMP-Traps 0x0 VLAN-Tag [ 0x8100.1145 ]  Encapsulation: ENET2

    Traffic statistics:

     Input  bytes  :       41260441313047

     Output bytes  :       40127977717608

     Input  packets:         285674985108

     Output packets:         285751144577

     IPv6 transit statistics:

      Input  bytes  :                   0 

      Output bytes  :                   0

      Input  packets:                   0

      Output packets:                   0

    Local statistics:

     Input  bytes  :            101582365

     Output bytes  :             98005268

     Input  packets:               959943

     Output packets:               925397

    Transit statistics:

     Input  bytes  :       41260339730682                    0 bps

     Output bytes  :       40127879712340                    0 bps

     Input  packets:         285674025165                    0 pps

     Output packets:         285750219180                    0 pps

     IPv6 transit statistics:

      Input  bytes  :                   0 

      Output bytes  :                   0

      Input  packets:                   0

      Output packets:                   0

    Protocol inet, Generation: 147, Route table: 0

      Flags: None

      Input Filters: WAN_CLASSIFY-ge-0/0/0.1145-i

      Addresses, Flags: Is-Preferred Is-Primary

        Destination: 10.67.45.0/29, Local: 10.67.45.3, Broadcast: 10.67.45.7, Generation: 137

    Protocol inet6, Generation: 148, Route table: 0

      Flags: None

      Addresses, Flags: Is-Preferred Is-Primary

        Destination: fd45::10:67:45:0/125, Local: fd45::10:67:45:3

    Generation: 139

      Addresses, Flags: Is-Preferred

        Destination: fe80::/64, Local: fe80::5e5e:ab04:797f:e4c0

    Generation: 141

If this post was helpful, please mark this post as an "Accepted Solution".
Kudos are always appreciated!
Super Contributor
nikolay.semov
Posts: 171
Registered: ‎03-15-2012
0

Re: port shaping operational commands for ex3200

[ Edited ]

I'd rather look at this:

 

Egress queues: 8 supported, 6 in use
Queue counters: Queued packets Transmitted packets Dropped packets
0 BEST_EFFORT 0 56269600686 2224401
1 APPLICATION 0 0 0
2 NETWORK_CONT 0 939136 0
5 VIDEO 0 0 0
6 VOICE 0 114710182749 16032
7 EMERGENCY_VO 0 114710198801 177

 

Looking at the dropped packet counts, you can get an idea of what traffic loses during times of congestion.

Trusted Contributor
mysterx
Posts: 84
Registered: ‎12-17-2010
0

Re: port shaping operational commands for ex3200

I got it. I'm slow. Thanks Nikolay. I see that the bolded text was showing me the fact I have 50% of the aggregate dedicated for BE so... 400Mbps.  The queue drops section would show me the drops due to exceeding the shaping queue.

 

 

 

 

If this post was helpful, please mark this post as an "Accepted Solution".
Kudos are always appreciated!
Trusted Contributor
mysterx
Posts: 84
Registered: ‎12-17-2010
0

Re: port shaping operational commands for ex3200

What is the "r" mean besides the voice and e_voice queue?

 

  CoS information:

    Direction : Output 

    CoS transmit queue               Bandwidth               Buffer Priority   Limit   

                              %            bps     %           usec

    0 BEST_EFFORT            50      400000000    84             NA      low    none

    1 APPLICATION             0              0     0             NA      low    none

    2 NETWORK_CONTROL         5       40000000     5             NA      low    none

    5 VIDEO                   0              0     0             NA      low    none

    6 VOICE                   r              r     5             NA strict-high    none

    7 EMERGENCY_VOICE         r              r     5             NA strict-high    none

  Interface transmit statistics: Disabled

If this post was helpful, please mark this post as an "Accepted Solution".
Kudos are always appreciated!
Super Contributor
nikolay.semov
Posts: 171
Registered: ‎03-15-2012

Re: port shaping operational commands for ex3200

I believe it means "remainder." I.e. whatever is left unallocated to other queues.

Trusted Contributor
mysterx
Posts: 84
Registered: ‎12-17-2010
0

Re: port shaping operational commands for ex3200

Thanks

If this post was helpful, please mark this post as an "Accepted Solution".
Kudos are always appreciated!
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.