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 forwarding-class

date_range 19-Nov-24

Syntax

content_copy zoom_out_map
show class-of-service forwarding-class 

Description

Display information about forwarding classes, including the mapping of forwarding classes to queue numbers.

Required Privilege Level

view

Output Fields

The following table lists all possible output fields for the show class-of-service forwarding-class command. The fields that appear may vary depending on the platform and software release.

Table 1: show class-of-service forwarding-class Output Fields

Field Name

Field Description

Forwarding class

Name of the forwarding class.

ID

Forwarding class identifier.

For DSCP-based PFC, the forwarding class ID is assigned from (and should be the same as) the configured PFC priority for the forwarding class. See Configuring DSCP-based PFC for Layer 3 Untagged Traffic for details.

Queue

CoS output queue mapped to the forwarding class.

Restricted queue

Restricted queue number.

Fabric priority

Fabric priority for the forwarding class, either high or low. Determines the priority of packets entering the switch fabric.

Policing priority

Layer 2 policing priority, either premium or normal.

SPU priority

Services Processing Unit (SPU) priority, either high or low.

No-Loss

Packet loss attribute to differentiate lossless forwarding classes from lossy forwarding classes:

  • Disabled—Lossless transport is not configured on the forwarding class (packet drop attribute is drop).

  • Enabled—Lossless transport is configured on the forwarding class (packet drop attribute is no-loss).

PFC Priority

For DSCP-based PFC, the explicitly configured PFC priority configured for the forwarding class.

The DSCP value on which PFC is enabled maps to this priority, and this priority is used in PFC pause frames sent to the peer to request to pause traffic on the mapped DSCP value when the link becomes congested. The forwarding class ID is assigned from and should match this value in the output of this command. See Configuring DSCP-based PFC for Layer 3 Untagged Traffic for details.

Sample Output (Junos OS)

show class-of-service forwarding-class (ACX Series, EX Series, MX Series, PTX Series)

content_copy zoom_out_map
user@host> show class-of-service forwarding-class
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           high
  assured-forwarding     2   2          2             low                normal           low
  network-control        3   3          3             low                normal           low

show class-of-service forwarding-class (SRX Series)

content_copy zoom_out_map
user@host> show class-of-service forwarding-class
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           high
  assured-forwarding     2   2          2             low                normal           low
  network-control        3   3          3             low                normal           low

show class-of-service forwarding-class (EX4100, EX4300, and EX4400 Switch)

content_copy zoom_out_map
user@switch> show class-of-service forwarding-class 
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
  mcast-be                              8       8          8             low                normal            low
  mcast-ef                              9       9          9             low                normal            low
  mcast-af                             10      10         10             low                normal            low
  mcast-nc                             11      11         11             low                normal            low

show class-of-service forwarding-class (QFX Series)

content_copy zoom_out_map
user@switch> show class-of-service forwarding-class 
Forwarding class                       ID      Queue  Policing priority  No-Loss   PFC priority
  best-effort                          0         0         normal        Disabled
  fcoe                                 1         3         normal        Enabled
  no-loss                              2         4         normal        Enabled
  network-control                      3         7         normal        Disabled
  VIP-FC                               4         5         normal        Disabled
  mcast                                8         8         normal        Disabled

show class-of-service forwarding-class (QFX Series with DSCP-based PFC)

content_copy zoom_out_map
user@switch> show class-of-service forwarding-class 
Forwarding class        ID      Queue  Policing priority  No-Loss     PFC priority
  best-effort           0         0        normal         Disabled
  fcoe                  1         3        normal         Enabled
  no-loss               2         4        normal         Enabled
  fc2                   3         2        normal         Enabled          3
  network-control       5         7        normal         Disabled
  fc1                   7         1        normal         Enabled          7
  mcast                 8         8        normal         Disabled

On switches that do not use different forwarding classes and output queues for unicast and multidestination (multicast, broadcast, destination lookup fail) traffic, there is no mcast forwarding class and there is no queue 8. (Switches that use different forwarding classes and output queues for unicast and multidestination traffic support 12 forwarding classes and output queues, of which four of each are dedicated to multidestination traffic. Switches that use the same forwarding classes and output queues for unicast and multidestination traffic support eight forwarding classes and eight output queues.)

Sample Output (Junos OS Evolved)

show class-of-service forwarding-class (ACX Series, QFX Series)

content_copy zoom_out_map
user@host> show class-of-service forwarding-class
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           high
  assured-forwarding     2   2          2             low                normal           low
  network-control        3   3          3             low                normal           low

show class-of-service forwarding-class (PTX Series)

Note:

You can see more advanced details about forwarding classes by logging into the Packet Forwarding Engine and entering the command show class-of-service forwarding-classes.

content_copy zoom_out_map
user@host> show class-of-service forwarding-class
Forwarding class                       ID      Queue     No-Loss
  assured-forwarding                   2         2       disabled
  best-effort                          0         0       disabled
  expedited-forwarding                 1         1       disabled
  network-control                      3         3       disabled

Release Information

Command introduced in Junos OS Release 9.0.

footer-navigation