Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show class-of-service

date_range 31-May-24

Syntax

content_copy zoom_out_map
show class-of-service

Description

Display the entire class-of-service (CoS) configuration, including system-chosen defaults. Executing this command is equivalent to executing all show class-of-service commands in succession.

Options

This command has no options.

Required Privilege Level

view

Output Fields

Table 1 lists all possible output fields for the show class-of-service command. The output fields that appear can vary depending on the platform, software release, and operating system (Junos OS or Junos OS Evolved).

Table 1: show class-of-service Output Fields

Field Name

Field Description

Level of Output

Forwarding class

The forwarding class configuration:

  • Forwarding class—Name of the forwarding class.

  • ID—Forwarding class ID.

  • Queue—Queue number.

All levels

Code point type

The type of code-point alias:

  • dscp—Aliases for DiffServ code point (DSCP) values.

  • ieee–802.1—Aliases for IEEE 802.1p values.

  • exp—Aliases for MPLS EXP values.

All levels

Alias

Names given to CoS values.

All levels

Bit pattern

Set of bits associated with an alias.

All levels

Classifier

Name of the classifier.

All levels

Code point

Code-point values.

All levels

Loss priority

Loss priority assigned to specific CoS values and aliases of the classifier.

All levels

Rewrite rule

Name of the rewrite rule if one has been configured.

All levels

Drop profile

Name of the drop profile.

All levels

Type

Type of drop profile.

All levels

Fill level

Percentage of queue buffer fullness in a drop profile at which packets begin to drop during periods of congestion.

All levels

Scheduler map

Name of the scheduler map.

All levels

Scheduler

Name of the scheduler.

All levels

Transmit rate

Transmission rate of the scheduler.

All levels

Excess rate

Percentage of excess bandwidth traffic to share.

All levels

Buffer size

Delay buffer size in the queue.

All levels

Drop profiles

Drop profiles configured for the specified scheduler.

All levels

Protocol

Transport protocol corresponding to the drop profile.

All levels

Name

Name of the drop profile.

All levels

Queues supported

Number of queues that can be configured on the interface.

All levels

Queues in use

Number of queues currently configured.

All levels

Physical interface

Name of the physical interface.

All levels

Scheduler map

Name of the scheduler map.

All levels

Congestion-notification

Enabled if a congestion notification profile is applied to the interface; disabled if no congestion notification profile is applied to the interface.

All levels

Forwarding class set

Name of the forwarding class set (priority group).

Note:

Only on systems that support enhanced transmission selection (ETS) hierarchical port scheduling.

 

Index

Internal index of an object.

All levels

Sample Output

show class-of-service

content_copy zoom_out_map
user@host> show class-of-service
Forwarding class                       ID      Queue  Restricted queue  Fabric priority  Policing priority   SPU priority
  best-effort                           0       0          0             low                normal            low
  expedited-forwarding                  1       1          1             low                normal            low
  assured-forwarding                    2       2          2             low                normal            low
  network-control                       3       3          3             low                normal            low

Code point type: dscp
  Alias              Bit pattern
  af11               001010         
  af12               001100         
  af13               001110         
...
Code point type: dscp-ipv6
  Alias              Bit pattern
  af11               001010         
  af12               001100         
  af13               001110         
...
Code point type: exp
  Alias              Bit pattern
  af11               100            
  af12               101            
  be                 000            
...
Code point type: ieee-802.1
  Alias              Bit pattern
  af11               100            
  af12               101            
  be                 000            
...
Code point type: inet-precedence
  Alias              Bit pattern
  af11               001
  af21               010
  af31               011
...
Code point type: ieee-802.1ad
  Alias              Bit pattern
  af11               1000
  af11-dei           1001
  af12               1010
...
Code point type: inet6-precedence
  Alias              Bit pattern
  af11               001
  af21               010
  af31               011
...
Classifier: dscp-default, Code point type: dscp, Index: 6
  Code point         Forwarding class                    Loss priority
  000000             best-effort                         low         
  000001             best-effort                         low         
  000010             best-effort                         low         
....
Classifier: dscp-ipv6-default, Code point type: dscp-ipv6, Index: 7
  Code point         Forwarding class                    Loss priority
  000000             best-effort                         low         
  000001             best-effort                         low         
  000010             best-effort                         low         
...
Loss-priority-map: frame-relay-de-default, Code point type: frame-relay-de, Index: 12
  Code point         Loss priority
  0                  low         
  1                  high        

Rewrite rule: dscp-default, Code point type: dscp, Index: 23
  Forwarding class                    Loss priority       Code point
  best-effort                         low                 000000         
  best-effort                         high                000000         
  expedited-forwarding                low                 101110         
...
Rewrite rule: dscp-ipv6-default, Code point type: dscp-ipv6, Index: 24
  Forwarding class                    Loss priority       Code point
  best-effort                         low                 000000         
  best-effort                         high                000000         
...
....
Drop profile: <default-drop-profile>, Type: discrete, Index: 1
  Fill level    Drop probability
         100                 100

Scheduler map: <default>, Index: 2

  Scheduler: <default-be>, Forwarding class: best-effort, Index: 16
    Transmit rate: 95 percent, Rate Limit: none, Buffer size: 95 percent, 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>            
...
Fabric priority: low
  Scheduler: <default-fabric>, Index: 24
    Drop profiles:
      Loss priority   Protocol    Index    Name
      Low             non-TCP         1    <default-drop-profile>
      Low             TCP             1    <default-drop-profile>
      High            non-TCP         1    <default-drop-profile>
      High            TCP             1    <default-drop-profile>

Fabric priority: high
  Scheduler: <default-fabric>, Index: 24
    Drop profiles:
      Loss priority   Protocol    Index    Name
      Low             non-TCP         1    <default-drop-profile>
      Low             TCP             1    <default-drop-profile>
      High            non-TCP         1    <default-drop-profile>
      High            TCP             1    <default-drop-profile>

Physical interface: fe-0/0/0, Index: 137
Queues supported: 8, Queues in use: 4
  Scheduler map: <default>, Index: 2

  Logical interface: fe-0/0/0.0, Index: 69
    Object            Name                   Type                    Index
    Adaptive-shaper   fr-shaper                                      35320
    Classifier        ipprec-compatibility   ip                         11
                    
Physical interface: fe-0/0/1, Index: 138
Queues supported: 8, Queues in use: 4
  Scheduler map: <default>, Index: 2
...

Release Information

Command introduced before Junos OS Release 7.4.

footer-navigation