6.3. DSCP, Dot1p, and MPLS EXP Classification Policy Command Reference

6.3.1. Command Hierarchies

6.3.1.1. Configuration Commands for 7210 SAS-K 2F1C2T

— config
— qos
dot1p-classification classification-id [create]
— no dot1p-classification classification-id
description description-string
dot1p dot1p-priority fc fc-name profile {in | out}
— no dot1p dot1p-priority
dscp-classification classification-id [use-ip-prec-classification] [create]
— no dscp-classification classification-id
description description-string
dscp dscp-name fc fc-name profile {in | out}
— no dscp dscp-name

6.3.1.2. Configuration Commands for 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

— config
— qos
dot1p-classification classification-id [create]
— no dot1p-classification classification-id
description description-string
dot1p dot1p-priority fc fc-name profile {in | out}
— no dot1p dot1p-priority
dscp-classification classification-id [use-ip-prec-classification] [create]
— no dscp-classification classification-id
description description-string
dscp dscp-name fc fc-name profile {in | out}
— no dscp dscp-name
prec ip-prec-value fc fc-name profile {in | out}
— no prec ip-prec-value
mpls-lsp-exp-classification classification-id [create]
— no mpls-lsp-exp-classification classification-id
description description-string
lsp-exp mpls-lsp-exp-priority fc fc-name profile {in | out}
— no lsp-exp mpls-lsp-exp-priority

6.3.1.3. Show Commands

— show
— qos
dot1p-classification policy-id association [detail]
dscp-classification policy-id association [detail]
mpls-lsp-exp-classification policy-id association [detail]

6.3.1.4. Operational Commands

— config
— qos
copy dot1p-classification src-pol dst-pol [overwrite]
copy dscp-classification src-pol dst-pol [overwrite]

6.3.2. Command Description

6.3.2.1. Configuration Commands

dscp-classification

Syntax 
dscp-classification classification-id [use-ip-prec-classification] [create]
no dscp-classification classification-id
Context 
config>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to define the mapping of the IP DSCP value in the IP header of the received packet to the forwarding class (FC) and ingress profile.

Note:

A DSCP classification policy with IP precedence can be configured only in a service egress policy and used only with access SAP egress.

The no form of this command removes the definition of the DSCP classification policy. The no form of the policy cannot be executed if the policy is in use; for example, if the policy is associated with a network QoS policy.

Default 

dscp-classification 1

Parameters 
classification-id—
Specifies the DSCP classification policy.
Values—
1 to 65535

 

use-ip-prec-classification—
Keyword to configure the software to use IP precedence entries specified in the DSCP classification policy. If this keyword is not specified, the software uses DSCP classification entries. To maintain backward compatibility, use-ip-prec-classification is not configured by default.

This keyword is only supported on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C.

create—
Keyword to create the DSCP classification policy.

description

Syntax 
description description-string
no description
Context 
config>qos>dscp-classification
config>qos> dot1p-classification
config>qos> mpls-lsp-exp-classification
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a text description stored in the configuration file for a configuration context.

The description command associates a text string with a configuration context to help identify the context in the configuration file.

The no form of this command removes any description string from the context.

Parameters 
description-string—
Specifies a text string describing the entity. Allowed values are any string up to 80 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes.

dscp

Syntax 
dscp dscp-name fc fc-name profile {in | out}
no dscp dscp-name
Context 
config>qos>dscp-classification
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command maps the IP DSCP value to an FC and assigns the ingress profile to the packet. The configured value is used to match the value in the received packet and assign the configured FC and profile on a exact match.

The no form of this command removes the mapping of the IP DSCP value to the FC.

Note:

A default FC is not assigned on executing the no form. The default FC is assigned in the QoS policy with which this policy is associated with.

Parameters 
dscp dscp-name —
Specifies the IP DSCP value to match by configuring the IP DSCP name corresponding to the DSCP value.
Values—
be, ef, cp1, cp2, cp3, cp4, cp5, cp6, cp7, cp9, cs1, cs2, cs3, cs4, cs5, nc1, nc2, af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cp11, cp13, cp15, cp17, cp19, cp21, cp23, cp25, cp27, cp29, cp31, cp33, cp35, cp37, cp39, cp41, cp42, cp43, cp44, cp45, cp47, cp49, cp50, cp51, cp52, cp53, cp54, cp55, cp57, cp58, cp59, cp60, cp61, cp62, cp63

 

fc fc-name—
Specifies a case-sensitive, system-defined FC name.
Values—
be, l2, af, l1, ef, h1, nc

 

profile {in | out}
Specifies whether the packets assigned to this FC will be considered in or out of profile. A value of in defines the packet profile as in-profile and a value of out defines the packet profile to be out-of-profile.

prec

Syntax 
prec ip-prec-value [fc fc-name] [profile {in | out}
no prec
Context 
config>qos>dscp-classification
Supported Platforms 

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description 

This command defines a specific IP precedence value that must be matched to perform the associated reclassification actions. If an egress packet on the SAP matches the specified IP precedence value, the FC or profile may be overridden. By default, the FC and profile of the packet are derived from ingress classification and profiling functions.

The IP precedence bits used to match against precedence reclassification rules come from the Type of Service (ToS) field within the IPv4 header. If the packet does not have an IPv4 header, precedence-based matching is not performed.

The reclassification actions from an IP precedence reclassification rule may be overridden by a DSCP matching event.

The fc keyword is optional. When specified, the egress classification rule overwrites the FC derived from ingress. The new FC is used for egress remarking and queue mapping decisions. If a DSCP match occurs after the IP precedence match, the new FC may be overridden by the higher priority match actions. If the higher priority match actions do not specify a new FC, the FC from the IP precedence match is used.

The profile keyword is optional. When specified, the egress classification rule overwrites the profile of the packet derived from ingress. The new profile value is used for egress remarking and queue congestion behavior. If a DSCP match occurs after the IP precedence match, the new profile may be overridden by the higher priority match actions. If the higher priority match actions do not specify a new profile, the profile from the IP precedence match is used.

The no form of this command removes the reclassification rule from the SAP egress QoS policy.

Parameters 
ip-prec-value—
Specifies the IP precedence value.
Values—
0, 1, 2, 3, 4, 5, 6, 7

 

fc-name—
Specifies that packets matching the IP precedence value will be explicitly reclassified to the specified FC regardless of the ingress classification decision. The explicit FC reclassification may be overwritten by a higher priority DSCP reclassification match. The FC name defined must be one of the eight FCs supported by the system. To remove the FC reclassification action for the specified precedence value, the prec command must be re-executed without the fc-name parameter defined.
Values—
be, l2, af, l1, ef, h1, nc

 

profile—
Optional keyword to specify that packets matching the IP precedence value will be explicitly reclassified to the specified profile regardless of the ingress profiling decision. The explicit profile reclassification may be overwritten by a higher priority DSCP reclassification match. To remove the profile reclassification action for the specified precedence value, the prec command must be re-executed without the profile parameter defined.
in—
Keyword to specify that any packets matching the reclassification rule will be treated as in-profile by the egress forwarding plane.
out—
Keyword to specify that any packets matching the reclassification rule will be treated as out-of-profile by the egress forwarding plane.

dot1p-classification

Syntax 
dot1p-classification classification-id [create]
no dot1p-classification classification-id
Context 
config>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to define the map of the dot1p value in the Ethernet header of the received frame to the FC and ingress profile.

The no form of this command removes the definition of the policy. The no form of the policy cannot be executed if the policy is in use; for example, if the policy is associated with a network QoS policy.

Default 

dot1p-classification 1

Parameters 
classification-id—
Specifies the policy ID.
Values—
1 to 65535

 

create—
Keyword to create.

dot1p

Syntax 
dot1p dot1p-priority fc fc-name profile {in | out}
no dot1p dot1p-priority
Context 
config>qos>dot1p-classification
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command maps the dot1p value to an FC and assigns the ingress profile to the packet. The configured value is used to match the value in the received packet and assign the configured FC and profile on a exact match.

The no form of this command removes the mapping of the dot1p value to FC.

A default FC is not assigned on executing the no form of this command. The default FC is assigned in the QoS policy with which this policy is associated with.

Parameters 
fc fc-name—
Specifies a case-sensitive, system-defined FC name.
Values—
be, l2, af, l1, ef, h1, nc

 

profile {in | out}
Specifies whether the packets assigned to this FC will be considered in or out of profile. A value of in defines the packet profile as in-profile and a value of out defines the packet profile to be out-of-profile.
dot1p-priority—
Specifies the dot1p priority value to match.
Values—
0 to 7

 

mpls-lsp-exp-classification

Syntax 
mpls-lsp-exp-classification classification-id [create]
no mpls-lsp-exp-classification classification-id
Context 
config>qos
Supported Platforms 

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description 

This command enables the context to define the map of the MPLS EXP value in the MPLS header of the received packet to the FC and ingress profile.

The no form of this command removes the definition of the policy. The no form of the policy cannot be executed if the policy is in use; for example, if the policy is associated with a network qos policy.

Default 

default policy 1

Parameters 
classification-id—
Specifies the policy.
Values—
1 to 65535

 

create—
Keyword to create.

lsp-exp

Syntax 
lsp-exp mpls-lsp-exp-priority fc fc-name profile {in | out}
no lsp-exp mpls-lsp-exp-priority
Context 
config>qos>mpls-lsp-exp-classification
Supported Platforms 

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description 

This command is used to map the MPLS EXP value to an FC and assigns the ingress profile to the packet. The configured value is used to match the value in the received packet and to assign the configured FC and profile on a exact match.

The no form of this command removes the mapping of the MPLS EXP value to the FC.

Note:

A default FC is not assigned on executing the no form. The default FC is assigned in the QoS policy with which this policy is associated with.

Default 

default FC is not assigned; the mapping must be explicitly configured

Parameters 
mpls-lsp-exp-priority
Specifies the LSP EXP value to match.
Values—
0 to 7

 

fc fc-name—
Specifies a case-sensitive, system-defined FC name.
Values—
be, l2, af, l1, ef, h1, nc

 

profile {in | out}
Specifies whether the packets assigned to this FC will be considered in or out of profile. A value of in defines the packet profile as in-profile and a value of out defines the packet profile to be out-of-profile.

6.3.2.2. Show Commands

dot1p-classification

Syntax 
dot1p-classification [policy-id] association
dot1p-classification [policy-id] detail
Context 
show>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays the dot1p classification.

Parameters 
policy-id—
Displays information about the specific policy ID.
associations—
Displays the associations of the dot1p classification policy.
detail—
Displays the detailed information of the dot1p classification policy.
Output 

The following output is an example of dot1p classification policy information, and Table 29 describes the output fields.

Sample Output
*A:Dut-A# show qos dot1p-classification 10 detail 
===============================================================================
DOT1P Classification Maps
===============================================================================
-------------------------------------------------------------------------------
Dot1P Class Id     : 10
Description        : (Not Specified)
-------------------------------------------------------------------------------
Dot1P Bit Map                         Forwarding Class                Profile
-------------------------------------------------------------------------------
No Matching Entries
 
-------------------------------------------------------------------------------
Network Policy Associations
-------------------------------------------------------------------------------
No Network Policy Associations found.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
SAP Ingress Associations
-------------------------------------------------------------------------------
No SAP Ingress Associations found.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
SAP Egress Associations
-------------------------------------------------------------------------------
SAP Egress Id             : 10
-------------------------------------------------------------------------------
===============================================================================
Table 29:  Output Fields: Dot1p Classification  

Label

Description

Dot1p Class Id

Displays the dot1p classification policy identifier

Description

Displays a text string that helps identify the policy context in the configuration file

Dscp Bit Map

Displays the dot1p value

Forwarding Class

Displays the forwarding class assigned

Profile

Displays the profile assigned

SAP Egress Id

Displays the associated SAP egress policy ID

dscp-classification

Syntax 
dscp-classification [policy-id] association
dscp-classification [policy-id] detail
Context 
show>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays the DSCP classification.

Parameters 
policy-id —
Displays information about the specific policy ID.
associations—
Displays the associations of the dscp-classification policy.
detail—
Displays the detailed information of the dscp-classification policy.
Output 

The following outputs are examples of DSCP classification policy information, and Table 30 describes the output fields.

Sample Output 1
*A:Dut-A# show qos dscp-classification 20 detail 
===============================================================================
DSCP Classification Maps
===============================================================================
-------------------------------------------------------------------------------
Dscp Class Id      : 20
Description        : (Not Specified)
-------------------------------------------------------------------------------
Dscp Bit Map                         Forwarding Class                Profile
-------------------------------------------------------------------------------
cp7                                     nc                              None
 
-------------------------------------------------------------------------------
IP Prec Bit Map                      Forwarding Class                Profile
-------------------------------------------------------------------------------
No Matching Entries
 
-------------------------------------------------------------------------------
Network Policy Associations
-------------------------------------------------------------------------------
No Network Policy Associations found.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
SAP Ingress Associations
-------------------------------------------------------------------------------
No SAP Ingress Associations found.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
SAP Egress Associations
-------------------------------------------------------------------------------
SAP Egress Id             : 10
-------------------------------------------------------------------------------
===============================================================================
Sample Output 2
*A:Dut-A# show qos dscp-classification 10 detail
===============================================================================
DSCP Classification Maps
===============================================================================
-------------------------------------------------------------------------------
Dscp Class Id      : 10
Description        : (Not Specified)
-------------------------------------------------------------------------------
Dscp Bit Map                         Forwarding Class                Profile
-------------------------------------------------------------------------------
No Matching Entries
 
-------------------------------------------------------------------------------
IP Prec Bit Map                      Forwarding Class                Profile
-------------------------------------------------------------------------------
0                                       nc                              In
1                                       be                              None
2                                       af                              Out
-------------------------------------------------------------------------------
Network Policy Associations
-------------------------------------------------------------------------------
No Network Policy Associations found.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
SAP Ingress Associations
-------------------------------------------------------------------------------
No SAP Ingress Associations found.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
SAP Egress Associations
-------------------------------------------------------------------------------
SAP Egress Id             : 10
-------------------------------------------------------------------------------
===============================================================================
Table 30:  Output Fields: DSCP Classification  

Label

Description

Dscp Class Id

Displays the DSCP classification policy identifier

Description

Displays a text string that helps identify the policy context in the configuration file

Dscp Bit Map

Displays the DSCP value

Forwarding Class

Displays the forwarding class assigned

Profile

Displays the profile assigned

IP Prec Bit Map

Displays the IP precedence value

This field is supported only on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

SAP Egress Id

Displays the associated SAP egress policy ID

mpls-lsp-exp-classification

Syntax 
mpls-lsp-exp-classification [policy-id] association
mpls-lsp-exp-classification [policy-id] detail
Context 
show>qos
Supported Platforms 

7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Description 

This command displays the association between network ingress MPLS LSP-EXP values and FCes and profiles.

Parameters 
policy-id —
Displays information about the specific policy ID.
associations—
Displays the associations of the mpls-lsp-exp-classification policy.
detail—
Displays the detailed information of the mpls-lsp-exp-classification policy.
Output 

The following output is an example of MPLS LSP-EXP information, and Table 31 describes the output fields.

Sample Output
===============================================================================
MPLS-LSP-EXP Classification Maps
===============================================================================
-------------------------------------------------------------------------------
Mpls-Lsp-Exp Class Id      : 10
Description                : (Not Specified)
-------------------------------------------------------------------------------
Mpls-Lsp-Exp Bit Map                    Forwarding Class                Profile
-------------------------------------------------------------------------------
1                                       nc                              In
 
-------------------------------------------------------------------------------
Network Policy Associations
-------------------------------------------------------------------------------
Network Policy Id             : 10
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
SAP Ingress Associations
-------------------------------------------------------------------------------
No SAP Ingress Associations found.
-------------------------------------------------------------------------------
===============================================================================
Table 31:  Output Fields: MPLS LSP EXP Classification  

Label

Description

Mpls-Lsp-Exp Class Id

Displays the MPLS LSP EXP classification policy identifier

Description

Displays a text string that helps identify the policy context in the configuration file

Mpls-Lsp-Exp Bit Map

Displays the MPLS LSP EXP value

Forwarding Class

Displays the forwarding class assigned

Profile

Displays the profile assigned

Network Policy Id

Displays the network policy identifier

SAP Ingress Associations

Displays the associated SAP ingress policy identifier