[j-nsp] CoS buffer size

Dan Peachey dan at illusionnetworks.com
Tue Jun 23 11:59:27 EDT 2015


Hi all,

I have an IFL on a 10G interface configured with a traffic-control-profile
that has a 10M shaper and references a scheduler-map with 5 queues. The
platform is MX960 with MPC2E-3D-Q linecard.

I would like to find out the per-queue buffer sizes as configured on the
PFE in bytes. Is there a command to show that?

I know I could work it out but if there is a command to show it and I can
be lazy then I'm all for that :)

If I delve into the PFE I can look at the scheduler hierarchy for the IFL
(hopefully the formatting keeps):


NPC0(pe1-RE0 vty)# show cos scheduler-hierarchy

<--snip-->

class-of-service egress scheduler hierarchy - rates in kbps
---------------------------------------------------------------------------------
                                    shaping guarntd delaybf  excess
interface name               index    rate    rate    rate    rate
 other
---------------------------- -----  ------- ------- ------- -------
-------------
xe-0/0/1                       164        0       0       0       0
  xe-0/0/1.2000                329    10000       0       0       0
    q 1 - pri 0/0            37272        0     24%     24%      0%
    q 2 - pri 0/0            37272        0      2%      2%      0%
    q 3 - pri 2/0            37272        0      1%      5%      0%
    q 4 - pri 0/0            37272        0     24%     24%      0%
    q 5 - pri 3/0            37272        0     24%    5000      0% exact
  xe-0/0/1.32767               429        0    2000    2000       0
    q 0 - pri 0/1                2        0     95%     95%      0%
    q 3 - pri 0/1                2        0      5%      5%      0%


But that doesn't give me the buffer sizes in bytes, only as it's configured
in the config.

If I look closer at the IFL specifically I get:


NPC0(pe1-RE0 vty)# show cos halp ifl 329
IFL type: Basic

--------------------------------------------------------------------------------
IFL name: (xe-0/0/1.2000, xe-0/0/1)   (Index 329, IFD Index 164)
    QX chip id: 0
    QX chip dummy L2 index: 4
    QX chip Scheduler: 4
    QX chip L3 index: 4
    QX chip base Q index: 32
    Number of queues: 8
Queue    State        Max       Guaranteed   Burst  Weight Priorities
Drop-Rules
Index                 rate         rate      size            G    E   Wred
 Tail
------ ----------- ----------- ------------ ------- ------ ----------
----------
    32  Configured    10000000            0  131072      1   GL   EL    0
255
    33  Configured    10000000            0  131072    320   GL   EL    4
 10
    34  Configured    10000000            0  131072     26   GL   EL    4
  2
    35  Configured    10000000            0  131072     13   GM   EL    4
131
    36  Configured    10000000            0  131072    320   GL   EL    4
 10
    37  Configured    10000000      2400000  131072    320   GH   EH    4
193
    38  Configured    10000000            0  131072      1   GL   EL    0
255
    39  Configured    10000000            0  131072      1   GL   EL    0
255

Rate limit info:
    Q 5: Bandwidth = 2400000, Burst size = 73536. Policer NH:
0x3077af9a0003c000

    Index NH: 0xda4be18996801006



That shows me the burst size in bytes but that is for the overall egress
10M shaper I assume.

So I wonder if there is something that will show me it on a per-queue basis?

Thanks,

Dan


More information about the juniper-nsp mailing list