When using hierarchical-scheduler , per logical interface queue information is not available if a traffic control profile is not configured at the logical-interface level.
hierarchical-scheduler
This article demonstrates the issue and reiterates the need to have a traffic control profile at the logical-interface level in order to see per-logical-interface queue information.
When there is no traffic control profile attached to the logical interface unit, Class of Service (CoS) programming does not happen on the Packet Forwarding Engine (PFE).
NGMPC2(router vty)# show ifl brief Index Name Type Encapsulation Flags RT Index Channel FNP status ----- -------------------- ------------- -------------- ------ -------- ---------- … 371 ge-2/0/8.541 VLAN Tagged CCC/VLAN 0x000000000000c000 0 0 <<<<logical interface index</span> 361 ge-2/0/8.32767 VLAN Tagged Ethernet 0x000000000400c000 0 0 362 ge-2/0/9.541 VLAN Tagged Ethernet 0x000000000000c000 0 0 363 ge-2/0/9.32767 VLAN Tagged Ethernet 0x000000000400c000 0 0 NGMPC2(router vty)# show cos halp ifl 371 IFL type: Basic -------------------------------------------------------------------------------- IFL name: (ge-2/0/8.541, ge-2/0/8) (Index 371, IFD Index 166) egress information <<< no CoS programming in PFE Not found
Given this situation, the show interfaces queue command output does not show any per-logical-interface statistics:
show interfaces queue
labroot@router> show interfaces queue ge-2/0/8.541 Logical interface ge-2/0/8.541 (Index 337) (SNMP ifIndex 629) Forwarding classes: 16 supported, 7 in use Egress queues: 8 supported, 7 in use Burst size: 0 Queue: 0, Forwarding classes: Standard Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue: 1, Forwarding classes: Business Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue: 2, Forwarding classes: Premiumrt Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue: 3, Forwarding classes: Network-Control Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue: 4, Forwarding classes: Standard-high Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue: 5, Forwarding classes: Business-critical Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue: 7, Forwarding classes: Premiumnrt Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps
However, statistics are available for the physical interface as shown:
labroot@router> show interfaces queue ge-2/0/8 Physical interface: ge-2/0/8, Enabled, Physical link is Up Interface index: 223, SNMP ifIndex: 592 Forwarding classes: 16 supported, 7 in use Egress queues: 8 supported, 7 in use Queue: 0, Forwarding classes: Standard Queued: Packets : 19377 976 pps Bytes : 2432346 984448 bps Transmitted: Packets : 19377 976 pps Bytes : 2432346 984448 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue-depth bytes : Average : 102 Current : 0 Peak : 0 Maximum : 11993088 Queue: 1, Forwarding classes: Business Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue-depth bytes : Average : 0 Current : 0 Peak : 0 Maximum : 33280 Queue: 2, Forwarding classes: Premiumrt Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue-depth bytes : Average : 0 Current : 0 Peak : 0 Maximum : 33280 Queue: 3, Forwarding classes: Network-Control Queued: Packets : 8742 0 pps Bytes : 2858634 0 bps Transmitted: Packets : 8742 0 pps Bytes : 2858634 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue-depth bytes : Average : 0 Current : 0 Peak : 0 Maximum : 626688 Queue: 4, Forwarding classes: Standard-high Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue-depth bytes : Average : 0 Current : 0 Peak : 0 Maximum : 33280 Queue: 5, Forwarding classes: Business-critical Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue-depth bytes : Average : 0 Current : 0 Peak : 0 Maximum : 33280 Queue: 7, Forwarding classes: Premiumnrt Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue-depth bytes : Average : 0 Current : 0 Peak : 0 Maximum : 33280
When using hierarchical-scheduler , the expected design is to have a traffic control profile configured at the IFL level.
After a traffic control profile is attached to the logical interface unit, CoS programming occurs on the PFE and the CoS queue information is available per logical unit:
[edit] labroot@router# run show class-of-service interface ge-2/0/8 May 15 06:46:14 Physical interface: ge-2/0/8, Index: 166 Maximum usable queues: 8, Queues in use: 7 Scheduler map: <default>, Index: 2 Congestion-notification: Disabled Logical interface: ge-2/0/8.32767, Index: 361 Object Name Type Index Traffic-control-profile __control_tc_prof Output 45866 Logical interface: ge-2/0/8.541, Index: 371 Object Name Type Index Traffic-control-profile test1 Output 17858 [edit] labroot@router#exit labroot@router> show configuration class-of-service traffic-control-profiles test1 shaping-rate 1g; labroot@router> show configuration interfaces ge-2/0/8 hierarchical-scheduler; flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 541 { encapsulation vlan-ccc; vlan-id 541; } NGMPC2(router vty)# show cos halp ifl 371 IFL type: Basic -------------------------------------------------------------------------------- IFL name: (ge-2/0/8.541, ge-2/0/8) (Index 371, IFD Index 166) egress information XQ chip id: 0 XQ chip Scheduler: 0 XQ chip L2 index: -1 XQ chip L3 index: 21 XQ chip L4 index: 22 XQ chip base Q index: 176 Number of queues: 8 Queue State Max Guaranteed Burst Weight Priorities Drop-Rules Scaling-profile Index rate rate size G E Wred Tail ID ------ ----------- ----------- ------------ ------- ------ ---------- ---------- ---------------- 176 Configured 1000000000 0 16777216 95 GL EL 4 397 3 177 Configured 1000000000 0 16777216 1 GL EL 0 72 3 178 Configured 1000000000 0 16777216 1 GL EL 0 72 3 179 Configured 1000000000 0 16777216 5 GL EL 4 211 3 180 Configured 1000000000 0 16777216 1 GL EL 0 72 3 181 Configured 1000000000 0 16777216 1 GL EL 0 72 3 182 Configured 1000000000 0 16777216 1 GL EL 0 72 3 183 Configured 1000000000 0 16777216 1 GL EL 0 72 3 NGMPC2(router vty)#
labroot@router# run show interfaces queue ge-2/0/8.541 Logical interface ge-2/0/8.541 (Index 371) (SNMP ifIndex 629) Forwarding classes: 16 supported, 7 in use Egress queues: 8 supported, 7 in use Burst size: 0 Queue: 0, Forwarding classes: Standard Queued: Packets : 24298 862 pps Bytes : 3061548 868864 bps <<<<- Transmitted: Packets : 24298 862 pps Bytes : 3061548 868864 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue-depth bytes : Average : 102 Current : 0 Peak : 0 Maximum : 11993088 Queue: 1, Forwarding classes: Business Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps
To know more about hierarchical schedulers and configuring scheduler hierarchy, refer to Understanding Hierarchical Schedulers and Example: Configuring a Four-Level Scheduler Hierarchy .