1. INTRODUCTION
This RLI is a step towards subscriber oriented JUNOS model.
-
Traditionally:
-
the QoS configs are defined in different hierarchies of the JUNOS config
-
viewing the QoS config parameters needs the user to
execute a sequence of multiple JUNOS commands corresponding to the different hierarchies.
-
-
In the subscriber model:
-
typically a customer/subscriber is represented by a logical-interface
-
it is desirable to :
-
have JUNOS configs for the logical interface grouped together in a single hierarchy
-
have a single command that allows viewing parameters specific to a customer.
-
-
-
This RLI, as an initial step:
-
providing a unified operational command that
displays all QoS parameters and counters/statistics
for a specific physical or logical interface. -
a requirement from BT for:
-
easy verification & debuggability of CoS features
-
our competitors provide something like this.
-
-
Ref [1] provides more details about the bigger picture in terms of QoS container and the longer term goals.
-
2. Existing QoS display commands
At the moment getting QoS specific details for an interface ge-x/y/z.0 involves running the following set of commands-
-
(provided by ifinfo)
1. show interface ge-x/y/z.0 extensive 2. show interface queue ge-x/y/z.0 show interface filters ge-x/y/z.0 show interface policers ge-x/y/z.0
-
(provided by dfwinfo)
The above commands display details about the multi-field classifiers & the policers(single rate/two-rate discard/two/three-color colorblind/color-aware)
Based on the filters/policers attached to the interface from output of (1), display the counters-
3. show firewall filter <filter-name> 4. show policer <policer-name>
-
(provided by cosd)
-
This prints out all the different constructs attached to the interface.
5. show class-of-service interface ge-x/y/z.0
-
Based on the above output, get more details about each construct attached-
[subs="quotes"]
7. show class-of-service classifier <classifier-name> 8. show class-of-service translation-table <trans-table-name> 9. show class-of-service forwarding-class <fc-q-map> 10. show class-of-service traffic-control-profile <tcp-name>
for different families -
Based on the tc-profile in (10) or a directly attached sched-map in (5)
11. show class-of-service scheduler-map <smap-name> [ingress & egress schedulers. chassis scheduler and pic scheduler for queuing pic]
-
Based on different schedulers listed in the sched-maps
12. show class-of-service scheduler <sched-name> [from (11)] [for each queue]
-
Based on the drop-profiles listed in (12) above,
13. show class-of-service drop-profile <dp-name> [from (12)] [for each PLP] 14. show class-of-service rewrite-rule <rw-name> [From (5)] [for each family] 15. show class-of-service fragmentation-map <fragmap-name> [from (5)]
-
3. example:existing QoS display commands
3.1. show subscribers
RE0# run show subscribers
Interface IP Address/VLAN ID User Name LS:RI
demux0.11152014 108.73.175.96 default:vol-voip
3.2. ifinfo
3.2.1. show interfaces demux0.11152014 brief
z427047@PRVDRI-VFTTP-301_RE0# run show interfaces demux0.11152014 brief
Logical interface demux0.11152014
Description: 01/SIPX/068382/ /VZRI
Flags: 0x104000 VLAN-Tag [ 0x8100.115 0x8100.2014 ] Encapsulation: ENET2
Demux:
Underlying interface: ae1 (Index 129)
inet
3.2.2. show interfaces demux0.11152014
z427047@PRVDRI-VFTTP-301_RE0# run show interfaces demux0.11152014
Logical interface demux0.11152014 (Index 582) (SNMP ifIndex 1428)
Description: 01/SIPX/068382/ /VZRI
Flags: 0x104000 VLAN-Tag [ 0x8100.115 0x8100.2014 ] Encapsulation: ENET2
Demux:
Underlying interface: ae1 (Index 129)
----
Link:
ge-0/0/0
ge-1/0/0
Input packets : 601257
Output packets: 625008
Protocol inet, MTU: 1500
Flags: Sendbcast-pkt-to-re, uRPF, Unnumbered
Donor interface: lo0.200 (Index 83)
Preferred source address: 108.73.160.1
3.2.3. show interfaces demux0.11152014 detail
z427047@PRVDRI-VFTTP-301_RE0# run show interfaces demux0.11152014 detail
Logical interface demux0.11152014 (Index 582) (SNMP ifIndex 1428) (Generation 861)
Description: 01/SIPX/068382/ /VZRI
Flags: 0x104000 VLAN-Tag [ 0x8100.115 0x8100.2014 ] Encapsulation: ENET2
Demux:
Underlying interface: ae1 (Index 129)
Link:
ge-0/0/0
ge-1/0/0
Traffic statistics:
Input bytes : 125977334
Output bytes : 125726160
Input packets: 601257
Output packets: 625008
Local statistics:
Input bytes : 690724
Output bytes : 1083034
Input packets: 7687
Output packets: 15374
Transit statistics:
Input bytes : 125286610 0 bps
Output bytes : 124643126 0 bps
Input packets: 593570 0 pps
Output packets: 609634 0 pps
Protocol inet, MTU: 1500, Generation: 986, Route table: 5
Flags: Sendbcast-pkt-to-re, uRPF, Unnumbered
Donor interface: lo0.200 (Index 83)
Preferred source address: 108.73.160.1
RPF Failures: Packets: 2, Bytes: 668
Input Filters: FILTER-SUB-VOICE-IN-demux0.11152014-i
3.2.4. show interfaces demux0.11152014 extensive
RE0# run show interfaces demux0.11152014 extensive
Logical interface demux0.11152014 (Index 582) (SNMP ifIndex 1428) (Generation 861)
Description: 01/SIPX/068382/ /VZRI
Flags: 0x104000 VLAN-Tag [ 0x8100.115 0x8100.2014 ] Encapsulation: ENET2
Demux:
Underlying interface: ae1 (Index 129)
Link:
ge-0/0/0
ge-1/0/0
Traffic statistics:
Input bytes : 125841909
Output bytes : 125610130
Input packets: 601027
Output packets: 624554
Local statistics:
Input bytes : 679796
Output bytes : 1065910
Input packets: 7565
Output packets: 15130
Transit statistics:
Input bytes : 125162113 0 bps
Output bytes : 124544220 0 bps
Input packets: 593462 0 pps
Output packets: 609424 0 pps
Protocol inet, MTU: 1500, Generation: 986, Route table: 5
Flags: Sendbcast-pkt-to-re, uRPF, Unnumbered
Donor interface: lo0.200 (Index 83)
Preferred source address: 108.73.160.1
RPF Failures: Packets: 2, Bytes: 668
Input Filters: FILTER-SUB-VOICE-IN-demux0.11152014-i
3.2.5. show interfaces queue demux0.11152014
RE0# run show interfaces queue demux0.11152014
Logical interface demux0.11152014 (Index 582) (SNMP ifIndex 1428)
Forwarding classes: 16 supported, 6 in use
Egress queues: 8 supported, 4 in use
Burst size: 0
Queue: 0, Forwarding classes: RADIUS, BEST-EFFORT
Queued:
Packets : 7066 0 pps
Bytes : 622025 0 bps
Transmitted:
Packets : 7066 0 pps
Bytes : 622025 0 bps
Tail-dropped packets : 0 0 pps
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: RT-VIDEO, IPTV
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
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: PR-VOICE
Queued:
Packets : 609412 0 pps
Bytes : 152581084 0 bps
Transmitted:
Packets : 609412 0 pps
Bytes : 152581084 0 bps
Tail-dropped packets : 0 0 pps
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 : 630 0 pps
Bytes : 232470 0 bps
Transmitted:
Packets : 630 0 pps
Bytes : 232470 0 bps
Tail-dropped packets : 0 0 pps
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
3.2.6. show interfaces filters demux0.11152014
RE0# run show interfaces filters demux0.11152014
Interface Admin Link Proto Input Filter Output Filter
demux0.11152014 up up inet FILTER-SUB-VOICE-IN-demux0.11152014-i
3.2.7. show interfaces policers demux0.11152014
RE0# run show interfaces policers demux0.11152014
Interface Admin Link Proto Input Policer Output Policer
demux0.11152014 up up
inet
3.3. dfwinfo
3.3.1. show firewall filter FILTER-SUB-VOICE-IN-demux0.11152014-i
RE0# run show firewall filter FILTER-SUB-VOICE-IN-demux0.11152014-i
Filter: FILTER-SUB-VOICE-IN-demux0.11152014-i
Counters:
Name Bytes Packets
COUNT-ALLOW_DST_DHCP-demux0.11152014-i 206980 631
Policers:
Name Bytes Packets
POLICER-20K-ALLOW-DST-DHCP-demux0.11152014-i 0 0
POLICER-VOIP-5M-ALLOW-ANY-SET_VOICE_FC-demux0.11152014-i 0 0
3.3.2. show policer POLICER-20K-ALLOW-DST-DHCP-demux0.11152014-i logical-system all
{master}[edit]
RE0# run show policer POLICER-20K-ALLOW-DST-DHCP-demux0.11152014-i logical-system all
3.3.3. show policer POLICER-VOIP-5M-ALLOW-ANY-SET_VOICE_FC-demux0.11152014-i
{master}[edit]
RE0# run show policer POLICER-VOIP-5M-ALLOW-ANY-SET_VOICE_FC-demux0.11152014-i
3.4. cosd
3.4.1. show class-of-service interface demux0.11152014
RE0# run show class-of-service interface demux0.11152014
Logical interface: demux0.11152014, Index: 582
Object Name Type Index
Traffic-control-profile TCP-VOICE-SUB Output 36879
Rewrite REWRITE-IEEE-SET-PBIT-SUB ieee8021p (outer) 28917
Rewrite REWRITE-IEEE-SET-PBIT-SUB ieee8021p (both) 28917
Classifier CLASS-INET-SUB-DEFAULT ip 25133
3.4.2. show class-of-service classifier name CLASS-INET-SUB-DEFAULT
RE0# run show class-of-service classifier name CLASS-INET-SUB-DEFAULT
Classifier: CLASS-INET-SUB-DEFAULT, Code point type: inet-precedence, Index: 25133
Code point Forwarding class Loss priority
000 BEST-EFFORT low
001 BEST-EFFORT low
010 BEST-EFFORT low
011 BEST-EFFORT low
100 BEST-EFFORT low
101 BEST-EFFORT low
110 BEST-EFFORT low
111 BEST-EFFORT low
3.4.3. show class-of-service rewrite-rule name REWRITE-IEEE-SET-PBIT-SUB
RE0# run show class-of-service rewrite-rule name REWRITE-IEEE-SET-PBIT-SUB
Rewrite rule: REWRITE-IEEE-SET-PBIT-SUB, Code point type: ieee-802.1, Index: 28917
Forwarding class Loss priority Code point
RT-VIDEO low 100
RT-VIDEO high 100
PR-VOICE low 101
PR-VOICE high 101
network-control low 110
network-control high 111
IPTV low 100
IPTV high 100
BEST-EFFORT low 000
BEST-EFFORT high 000
3.4.4. show class-of-service traffic-control-profile TCP-VOICE-SUB
RE0# run show class-of-service traffic-control-profile TCP-VOICE-SUB
Traffic control profile: TCP-VOICE-SUB, Index: 36879
Shaping rate: 5000000
Scheduler map: SM-VOICE-SUB
Delay Buffer rate: 2500000
Guaranteed rate: 1000
Excess rate: proportion 10
3.4.5. show class-of-service scheduler-map SM-VOICE-SUB
RE0# run show class-of-service scheduler-map SM-VOICE-SUB
Scheduler map: SM-VOICE-SUB, Index: 55422
Scheduler: SCHED-VOICE-SUB, Forwarding class: PR-VOICE, Index: 18200
Transmit rate: 5000000 bps, Rate Limit: rate-limit, Buffer size: remainder, Buffer Limit: exact, Priority: strict-high
Excess Priority: unspecified
Drop profiles:
Loss priority Protocol Index Name
Low any 1 <default-drop-profile>
Medium low any 1 <default-drop-profile>
Medium high any 1 <default-drop-profile>
High any 1 <default-drop-profile>
Scheduler: SCHED-SUB-NETWORK_CONTROL-01, Forwarding class: network-control, Index: 49013
Transmit rate: 30000 bps, Rate Limit: none, Buffer size: remainder, Buffer Limit: none, Priority: high
Excess Priority: unspecified
Drop profiles:
Loss priority Protocol Index Name
Low any 1 <default-drop-profile>
Medium low any 1 <default-drop-profile>
Medium high any 1 <default-drop-profile>
High any 1 <default-drop-profile>
3.4.6. show class-of-service drop-profile default-drop-profile
{master}[edit]
RE0# run show class-of-service drop-profile default-drop-profile
4. existing "show class-of-service interface" command
show class-of-service interface <intf-name>
-
Presently, when the argument is an IFD:
-
class-of-service objects attached to the IFD are printed in brief,
-
followed by the class-of-service objects for all the IFLs on the IFD.
-
-
When the argument is an IFL:
-
only the cos information for IFL is printed.
-
-
The argument IFD, IFL or wildcard string given to the command is passed directly to the daemon
which does the required expansion(e.g in case of wildcard). -
Existing output of the command:
-
"show class-of-service interface <IFD>" :
-
cos info for IFD
-
cos info for IFLs
-
-
"show class-of-service interface <IFL>" :
-
cos info for IFL
-
-
-
This RLI does not plan to change the above behavior of the existing command.
4.1. Example:existing output when the argument is an IFD:
cli> show class-of-service interface ge-0/3/0
Physical interface: ge-0/3/0, Index: 138 Queues supported: 4, Queues in use: 5
Shaping rate: 50000 bps
Scheduler map: interface-schedular-map, Index: 58414
Input shaping rate: 10000 bps
Input scheduler map: schedular-map, Index: 15103
Chassis scheduler map: <default-chassis>, Index: 4
Congestion-notification: Disabled
Logical interface: ge-0/3/0.0, Index: 68
Object Name Type Index
Rewrite exp-default exp (mpls-any) 33
Classifier exp-default exp 10
Classifier ipprec-compatibility ip 13
Logical interface: ge-0/3/0.1, Index: 69
Object Name Type Index
Classifier ipprec-compatibility ip 13
4.2. Example:existing output when the argument is an IFL:
cli> show class-of-service interface ge-0/3/0.0
Logical interface: ge-0/3/0.0, Index: 70
Object Name Type Index
Rewrite exp-default exp (mpls-any) 33
Classifier exp-default exp 10
Classifier ipprec-compatibility ip 13
5. Proposed commands
This RLI plans to introduce new options to the following existing command to print out the QoS specific details also.
"show class-of-service interface"
-
This RLI will keep the existing output as before but introduce a set of new options to the command
-
a single operational command will combine the outputs of the previous commands in in different ways depending on the qualifier.
-
The new options are-
cli> show class-of-service interface <intf-name> [ detail | comprehensive ]
5.1. show class-of-service interface <intf-name> detail
the display shall provide the class-of-service information by combining the outputs of:
show interface <intf-name> brief
show interface filters <intf-name>
show interface policers <intf-name>
show class-of-service interface <intf-name>
-
This option allows users to view the quality-of-service information by a single command for:
-
an IFD
-
all the IFLs on the IFD
-
-
The argument given to the command would now be first passed to ifinfo.
-
ifinfo shall
-
provide the expanded list of names (a list of matching IFD or IFL names)
-
for each item in the list, interface, firewall and cos information shall be printed.
-
-
the cosd will not do the wildcard expansion anymore
-
ifinfo shall do it( ifinfo and cos both use fnmatch for matching).
-
-
If <intf-name> is a physical interface (an ifd):
-
the QoS information shall be printed for this ifd as well as for the logical interfaces (ifls) on the ifd;
-
the above commands shall be executed for the ifd, then each command shall be executed for the IFLs one by one.
-
-
If <intf-name> is logical interface (an ifl), the QoS information shall be printed for this ifl only.
5.1.1. Output of the command with detail option:
-
"show class-of-service interface <IFD> detail" :
-
brief interface info for IFD
-
cos info for IFD
-
brief interface info for IFL
-
cos info for IFL
-
filters/policers for IFL
-
-
"show class-of-service interface <IFL> detail" :
-
brief interface info for IFL
-
filters/policers for IFL
-
cos info for IFL
-
-
This option shows the configured QoS parameters without expanding them.
-
so it :
-
doesn’t display extensive queue stats or
-
doesn’t display the filter counters or
-
doesn’t expand the different CoS constructs like schedulers etc.
-
An example output (when the argument is IFD) is given below
5.1.2. example of "show class-of-service interface <intf-name> detail" command
For example: if ge-0/3/0 has two IFLs:
ge-0/3/0.0 and
ge-0/3/0.1:
"show class-of-service interface ge-0/3/0 detail" shall give the following output:
cli> show class-of-service interface ge-0/3/0 detail
Physical interface: ge-0/3/0, Enabled, Physical link is Up
Link-level type: Ethernet, MTU: 1518, Speed: 1000mbps, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x4000
Physical interface: ge-0/3/0, Index: 138
Queues supported: 4, Queues in use: 5
Shaping rate: 50000 bps
Scheduler map: interface-schedular-map, Index: 58414
Input shaping rate: 10000 bps
Input scheduler map: schedular-map, Index: 15103
Chassis scheduler map: <default-chassis>, Index: 4
Congestion-notification: Disabled
Logical interface ge-0/3/0.0
Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.1 ] Encapsulation: ENET2
inet
mpls
Interface Admin Link Proto Input Filter Output Filter
ge-0/3/0.0 up up inet
mpls
Interface Admin Link Proto Input Policer Output Policer
ge-0/3/0.0 up up
inet
mpls
Logical interface: ge-0/3/0.0, Index: 68
Object Name Type Index
Rewrite exp-default exp (mpls-any) 33
Classifier exp-default exp 10
Classifier ipprec-compatibility ip 13
Logical interface ge-0/3/0.1
Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.2 ] Encapsulation: ENET2
inet
Interface Admin Link Proto Input Filter Output Filter
ge-0/3/0.1 up up inet
Interface Admin Link Proto Input Policer Output Policer
ge-0/3/0.1 up up
inet
Logical interface: ge-0/3/0.1, Index: 69
Object Name Type Index
Classifier ipprec-compatibility ip 13
5.2. show class-of-service interface <intf-name> comprehensive
-
combine the output of all the QoS commands in section [2]
-
print the info for the IFD as well as all IFLs under that IFD.
-
useful specifically for the case where:
-
the IFD has either one or a few IFLs under it and/or
-
no per-unit scheduling
-
-
some constructs like scheduler-map would be attached to the IFD and
-
stuff like classifiers & rewrite rules are attached to the IFL.
-
conveniently view the configured constructs comprehensively coupled with the physical or logical interface level where they hold significance.
-
with a scaled scenario, the output of this command might become quite unmanageable when invoked on an IFD.
5.2.1. An example output
cli> show class-of-service interface ge-0/3/0 comprehensive
Physical interface: ge-0/3/0, Enabled, Physical link is Up
Interface index: 138, SNMP ifIndex: 601, Generation: 141
Link-level type: Ethernet, MTU: 1518, 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: 0x4000
CoS queues : 4 supported, 4 maximum usable queues
Schedulers : 256
Hold-times : Up 0 ms, Down 0 ms
Current address: 00:14:f6:f4:b4:5d, Hardware address: 00:14:f6:f4:b4:5d
Last flapped : 2010-09-07 06:35:22 PDT (15:14:42 ago)
Statistics last cleared: Never
Traffic statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
IPv6 total statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Ingress traffic statistics at Packet Forwarding Engine:
Input bytes : 0 0 bps
Input packets: 0 0 pps
Drop bytes : 0 0 bps
Drop packets: 0 0 pps
Label-switched interface (LSI) traffic statistics:
Input bytes : 0 0 bps
Input packets: 0 0 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: 5, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
---- ---- ---- ---- ---- ----
Ingress queues: 4 supported, 5 in use
Queue counters: Queued packets Transmitted packets Dropped packets
0 af3 0 0 0
1 af2 0 0 0
2 ef2 0 0 0
3 ef1 0 0 0
Egress queues: 4 supported, 5 in use
Queue counters: Queued packets Transmitted packets Dropped packets
0 af3 0 0 0
1 af2 0 0 0
2 ef2 0 0 0
3 ef1 0 0 0
Active alarms : None
Active defects : None
MAC statistics: Receive Transmit
Total octets 0 0
Total packets 0 0
Unicast packets 0 0
Broadcast packets 0 0
Multicast packets 0 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: 0, CAM source filters: 0
Autonegotiation information:
Negotiation status: Complete
Link partner:
Link mode: Full-duplex, Flow control: Symmetric/Asymmetric, Remote fault: OK
Local resolution:
Flow control: Symmetric, Remote fault: Link OK
Packet Forwarding Engine configuration:
Destination slot: 0
---- ---- ---- ---- ---- ----
CoS information:
Direction : Output
CoS transmit queue Bandwidth Buffer Priority Limit
% bps % usec
2 ef2 39 19500 0 120 high none
Direction : Input
CoS transmit queue Bandwidth Buffer Priority Limit
% bps % usec
0 af3 30 3000 45 0 low none
---- ---- ---- ---- ---- ----
Physical interface: ge-0/3/0, Enabled, Physical link is Up
Interface index: 138, SNMP ifIndex: 601
Forwarding classes: 16 supported, 5 in use
---- ---- ---- ---- ---- ----
Ingress queues: 4 supported, 5 in use
Queue: 0, Forwarding classes: af3
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 1, Forwarding classes: af2
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 2, Forwarding classes: ef2
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 3, Forwarding classes: ef1
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Forwarding classes: 16 supported, 5 in use
Egress queues: 4 supported, 5 in use
Queue: 0, Forwarding classes: af3
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 1, Forwarding classes: af2
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 2, Forwarding classes: ef2
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 3, Forwarding classes: ef1
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Packet Forwarding Engine Chassis Queues:
Queues: 4 supported, 5 in use
Queue: 0, Forwarding classes: af3
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : Not Available
RED-dropped bytes : Not Available
Queue: 1, Forwarding classes: af2
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : Not Available
RED-dropped bytes : Not Available
Queue: 2, Forwarding classes: ef2
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : Not Available
RED-dropped bytes : Not Available
Queue: 3, Forwarding classes: ef1
Queued:
Packets : 108546 0 pps
Bytes : 12754752 376 bps
Transmitted:
Packets : 108546 0 pps
Bytes : 12754752 376 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : Not Available
RED-dropped bytes : Not Available
Physical interface: ge-0/3/0, Index: 138
Queues supported: 4, Queues in use: 5
Shaping rate: 50000 bps
Scheduler map: interface-schedular-map, Index: 58414
Scheduler: ef2, Forwarding class: ef2, Index: 39155
Transmit rate: 39 percent, Rate Limit: none, Buffer size: 120 us, Buffer Limit: none, Priority: high
Excess Priority: unspecified
Drop profiles:
Loss priority Protocol Index Name
Low any 1 <default-drop-profile>
Medium low any 1 <default-drop-profile>
Medium high any 1 <default-drop-profile>
High any 1 <default-drop-profile>
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Input shaping rate: 10000 bps
Input scheduler map: schedular-map
Scheduler map: schedular-map, Index: 15103
Scheduler: af3, Forwarding class: af3, Index: 35058
Transmit rate: 30 percent, Rate Limit: none, Buffer size: 45 percent, Buffer Limit: none, Priority: low
Excess Priority: unspecified
Drop profiles:
Loss priority Protocol Index Name
Low any 40582 green
Medium low any 1 <default-drop-profile>
Medium high any 1 <default-drop-profile>
High any 18928 yellow
Drop profile: green, Type: discrete, Index: 40582
Fill level Drop probability
50 0
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: yellow, Type: discrete, Index: 18928
Fill level Drop probability
50 0
100 100
Chassis scheduler map: <default-chassis>
Scheduler map: <default-chassis>, Index: 4
Scheduler: <default-ch-scheduler>, Forwarding class: af3, Index: 25
Transmit rate: 25 percent, Rate Limit: none, Buffer size: 25 percent, Buffer Limit: none, Priority: low
Excess Priority: low
Drop profiles:
Loss priority Protocol Index Name
Low any 1 <default-drop-profile>
Medium low any 1 <default-drop-profile>
Medium high any 1 <default-drop-profile>
High any 1 <default-drop-profile>
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Scheduler: <default-ch-scheduler>, Forwarding class: af2, Index: 25
Transmit rate: 25 percent, Rate Limit: none, Buffer size: 25 percent, Buffer Limit: none, Priority: low
Excess Priority: low
Drop profiles:
Loss priority Protocol Index Name
Low any 1 <default-drop-profile>
Medium low any 1 <default-drop-profile>
Medium high any 1 <default-drop-profile>
High any 1 <default-drop-profile>
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Scheduler: <default-ch-scheduler>, Forwarding class: ef2, Index: 25
Transmit rate: 25 percent, Rate Limit: none, Buffer size: 25 percent, Buffer Limit: none, Priority: low
Excess Priority: low
Drop profiles:
Loss priority Protocol Index Name
Low any 1 <default-drop-profile>
Medium low any 1 <default-drop-profile>
Medium high any 1 <default-drop-profile>
High any 1 <default-drop-profile>
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Scheduler: <default-ch-scheduler>, Forwarding class: ef1, Index: 25
Transmit rate: 25 percent, Rate Limit: none, Buffer size: 25 percent, Buffer Limit: none, Priority: low
Excess Priority: low
Drop profiles:
Loss priority Protocol Index Name
Low any 1 <default-drop-profile>
Medium low any 1 <default-drop-profile>
Medium high any 1 <default-drop-profile>
High any 1 <default-drop-profile>
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
Fill level Drop probability
100 100
Congestion-notification: Disabled
Forwarding class ID Queue Restricted queue Fabric priority Policing priority
af3 0 0 0 low normal
af2 1 1 1 low normal
ef2 2 2 2 high normal
ef1 3 3 3 high normal
af1 4 4 0 low normal
Logical interface ge-0/3/0.0 (Index 68) (SNMP ifIndex 152) (Generation 159)
Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.1 ] Encapsulation: ENET2
Traffic statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
Protocol inet, MTU: 1500, Generation: 172, Route table: 0
Flags: Sendbcast-pkt-to-re
Input Filters: filter-in-ge-0/3/0.0-i,
Policer: Input: p1-ge-0/3/0.0-inet-i
Protocol mpls, MTU: 1488, Maximum labels: 3, Generation: 173, Route table: 0
Flags: Is-Primary
Output Filters: exp-filter,,,,,
Logical interface ge-0/3/0.0 (Index 68) (SNMP ifIndex 152)
Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.1 ] Encapsulation: ENET2
Input packets : 0
Output packets: 0
Interface Admin Link Proto Input Filter Output Filter
ge-0/3/0.0 up up inet filter-in-ge-0/3/0.0-i
mpls exp-filter
Interface Admin Link Proto Input Policer Output Policer
ge-0/3/0.0 up up
inet p1-ge-0/3/0.0-inet-i
mpls
Filter: filter-in-ge-0/3/0.0-i
Counters:
Name Bytes Packets
count-filter-in-ge-0/3/0.0-i 0 0
Filter: exp-filter
Counters:
Name Bytes Packets
count-exp-seven-match 0 0
count-exp-zero-match 0 0
Policers:
Name Packets
p1-ge-0/3/0.0-inet-i 0
Logical interface: ge-0/3/0.0, Index: 68
Object Name Type Index
Rewrite exp-default exp (mpls-any) 33
Rewrite rule: exp-default, Code point type: exp, Index: 33
Forwarding class Loss priority Code point
af3 low 000
af3 high 001
af2 low 010
af2 high 011
ef2 low 100
ef2 high 101
ef1 low 110
ef1 high 111
Object Name Type Index
Classifier exp-default exp 10
Classifier: exp-default, Code point type: exp, Index: 10
Code point Forwarding class Loss priority
000 af3 low
001 af3 high
010 af2 low
011 af2 high
100 ef2 low
101 ef2 high
110 ef1 low
111 ef1 high
Object Name Type Index
Classifier ipprec-compatibility ip 13
Classifier: ipprec-compatibility, Code point type: inet-precedence, Index: 13
Code point Forwarding class Loss priority
000 af3 low
001 af3 high
010 af3 low
011 af3 high
100 af3 low
101 af3 high
110 ef1 low
111 ef1 high
Forwarding class ID Queue Restricted queue Fabric priority Policing priority
af3 0 0 0 low normal
af2 1 1 1 low normal
ef2 2 2 2 high normal
ef1 3 3 3 high normal
af1 4 4 0 low normal
Logical interface ge-0/3/0.1 (Index 69) (SNMP ifIndex 154) (Generation 160)
Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.2 ] Encapsulation: ENET2
Traffic statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
Protocol inet, MTU: 1500, Generation: 174, Route table: 0
Flags: Sendbcast-pkt-to-re
Logical interface ge-0/3/0.1 (Index 69) (SNMP ifIndex 154)
Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.2 ] Encapsulation: ENET2
Input packets : 0
Output packets: 0
Interface Admin Link Proto Input Filter Output Filter
ge-0/3/0.1 up up mpls
Interface Admin Link Proto Input Policer Output Policer
ge-0/3/0.1 up up
mpls
Logical interface: ge-0/3/0.1, Index: 69
Object Name Type Index
Classifier ipprec-compatibility ip 13
Classifier: ipprec-compatibility, Code point type: inet-precedence, Index: 13
Code point Forwarding class Loss priority
000 af3 low
001 af3 high
010 af3 low
011 af3 high
100 af3 low
101 af3 high
110 ef1 low
111 ef1 high
Forwarding class ID Queue Restricted queue Fabric priority Policing priority
af3 0 0 0 low normal
af2 1 1 1 low normal
ef2 2 2 2 high normal
ef1 3 3 3 high normal
af1 4 4 0 low normal
6. CAVEATS
-
This RLI does not try to add any new output that is not available through other existing commands. For e.g.
-
there might be stuff that might be missing like displaying q-pic-large-buffer or
-
some counters that are present in the h/w but not available in any RE cli or
-
stuff that doesn’t work today like queue counters for logical/tunnel interfaces or
-
desirable stuff that the h/w doesn’t support like counters for BA-classification/rewrites
-
-
This RLI provides only an operational command combining only QoS related parameters.
It does not print out any other interface specific info that might need to be pulled out from daemons, say, rpd. -
No support for:
-
interface-set/routing-instance stats or
-
any other thing that doesn’t show up as an interface for the first cut.
-
Same for ATM-cos, services cos, CoS-Based Forwarding.
-
This might be done in a best-effort mode if time permits.
-
The RLI doesn’t try to re-format the output into more readable forms
-
say for instance:by combining output from multiple commands into a single table.
-
-
-
The existing "show class-of-service" commands display the configured rather than the actually applied cos parameters in some cases
-
like when a wildcard is used to apply a config on pics but all of the pics don¿t support it.
-
Since the RLI implementation reuses the functionality provided by the existing class-of-service commands, it would also behave in the same way.
-
-
Support for range match in interface argument is not included.
-
While displaying the qos information there are certain unavoidable repetitions
-
e.g:
-
same scheduler attached to different scheduler maps gets printed more than once,
-
drop profiles get repeated.
-
-
Logic for avoiding repetition in this case and elsewhere would add to undue complexity in implementation and maybe undermine the actual customer requirement of visualizing all config constructs at one place, so it hasn¿t been taken up.
-
Avoiding repetition would be a best effort scenario to be taken up if time permits.
-
-
For firewall qos option display, only following objects are covered:
-
classical,
-
interface-specific and
-
layer2 policers
-
-
This RLI does not plan to address performance issues arising as a result of the ui infrastructure on which it is built up.
-
There may be issues like CLI taking long time to return back on quitting command immediately arising due to underlying ui infrastructure.
-
7. related resources
Tracking PR: 533029
https://gnats.juniper.net/web/default/533029