DSCP, dot1p, and MPLS EXP classification policies
This chapter provides information to configure the DSCP classification policy, dot1p classification policy, and MPLS EXP classification policy using the CLI.
Overview
These policies allow the user to define a policy or template that maps the packet priority bits, like dot1p, IP DSCP, and MPLS EXP bits to FC and profile. The template can then be used in a SAP ingress policy to define the ingress classification of flows to FC.
The following table describes the support available on different 7210 SAS platforms.
Policy name |
Support available |
---|---|
dot1p-classification |
All platforms with sap-ingress policy and network-qos policy. |
DSCP classification |
All platforms with sap-ingress policy and network-qos policy. |
MPLS-EXP classification |
Only 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C with network-qos policies |
DSCP classification policy
This policy is used to define the map of IP DSCP values in the IP header of the packet to FC and profile (ingress profile).
dot1p classification policy
This policy is used define the map of dot1p values in the Ethernet frame to FC and profile (ingress profile).
MPLS EXP classification policy
This policy is used define the map of MPLS EXP values in the MPLS header of the packet to FC and profile (ingress profile).
Configuring classification policies
config>qos>dot1p-classification 1 create
config>qos>dscp-classification 1 create
config>qos>mpls-lsp-exp-classification 1 create
The following is a sample configuration output that shows the enabling of the DSCP classification policy, dot1p classification policy, and MPLS EXP classification policy.
*A:K-SASK12>config>qos># info detail
----------------------------------------------
---------exit
dot1p-classification 1 create
description "Default Dot1P Classification policy"
dot1p 0 fc "be" profile out
dot1p 1 fc "l2" profile in
dot1p 2 fc "af" profile out
dot1p 3 fc "af" profile in
dot1p 4 fc "h2" profile in
dot1p 5 fc "ef" profile in
dot1p 6 fc "h1" profile in
dot1p 7 fc "nc" profile in
exit
dot1p-classification 10 create
no description
exit
dscp-classification 1 create
description "Default DSCP Classification policy"
dscp be fc "be" profile out
dscp ef fc "ef" profile in
dscp cs1 fc "l2" profile in
dscp nc1 fc "h1" profile in
dscp nc2 fc "nc" profile in
dscp af11 fc "af" profile in
dscp af12 fc "af" profile out
dscp af41 fc "h2" profile in
exit
dscp-classification 20 create
no description
exit
mpls-lsp-exp-classification 1 create
description "Default MplsLspExp Classification policy"
lsp-exp 0 fc "be" profile out
lsp-exp 1 fc "l2" profile in
lsp-exp 2 fc "af" profile out
lsp-exp 3 fc "af" profile in
lsp-exp 4 fc "h2" profile in
lsp-exp 5 fc "ef" profile in
lsp-exp 6 fc "h1" profile in
lsp-exp 7 fc "nc" profile in
exit
mpls-lsp-exp-classification 20 create
no description
exit
*A:K-SASK12>config>qos>dot1p-classification#
*A:K-SASK12>config>qos>mpls-lsp-exp-classification# info detail
----------------------------------------------
description "Default MplsLspExp Classification policy"
lsp-exp 0 fc "be" profile out
lsp-exp 1 fc "l2" profile in
lsp-exp 2 fc "af" profile out
lsp-exp 3 fc "af" profile in
lsp-exp 4 fc "h2" profile in
lsp-exp 5 fc "ef" profile in
lsp-exp 6 fc "h1" profile in
lsp-exp 7 fc "nc" profile in
----------------------------------------------
*A:K-SASK12>config>qos>mpls-lsp-exp-classification
DSCP, dot1p, and MPLS EXP classification policy command reference
Command hierarchies
Configuration commands for 7210 SAS-K 2F1C2T
- config
- qos
- dot1p-classification classification-id [create]
- no dot1p-classification classification-id
- description description-string
- no description
- 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
- no description
- dscp dscp-name fc fc-name profile {in | out}
- no dscp dscp-name
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
- no description
- 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
- no description
- 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
- no description
- lsp-exp mpls-lsp-exp-priority fc fc-name profile {in | out}
- no lsp-exp mpls-lsp-exp-priority
Show commands
- show
- qos
- dot1p-classification policy-id association [detail]
- dscp-classification policy-id association [detail]
- mpls-lsp-exp-classification policy-id association [detail]
Operational commands
Command description
Configuration commands
dscp-classification
Syntax
dscp-classification classification-id [use-ip-prec-classification] [create]
no dscp-classification classification-id
Context
config>qos
Platforms
Supported on all 7210 SAS platforms as described in this document
Description
This command defines the mapping of the IP DSCP value in the IP header of the received packet to the forwarding class (FC) and ingress profile.
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.
- 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
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
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.
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.
- fc fc-name
Specifies a case-sensitive, system-defined FC name.
- profile {in | out}
Specifies whether the packets assigned to this FC are 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
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.
- fc-name
Specifies that packets matching the IP precedence value are 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.
- profile
Optional keyword to specify that packets matching the IP precedence value are 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 are treated as in-profile by the egress forwarding plane.
- out
Keyword to specify that any packets matching the reclassification rule are 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
Platforms
Supported on all 7210 SAS platforms as described in this document
Description
This command defines 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.
- create
Keyword to create.
dot1p
Syntax
dot1p dot1p-priority fc fc-name profile {in | out}
no dot1p dot1p-priority
Context
config>qos>dot1p-classification
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.
- profile {in | out}
Specifies whether the packets assigned to this FC are 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.
mpls-lsp-exp-classification
Syntax
mpls-lsp-exp-classification classification-id [create]
no mpls-lsp-exp-classification classification-id
Context
config>qos
Platforms
7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C
Description
This command defines 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.
- 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
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.
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.
- fc fc-name
Specifies a case-sensitive, system-defined FC name.
- profile {in | out}
Specifies whether the packets assigned to this FC is 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.
Show commands
dot1p-classification
Syntax
dot1p-classification [policy-id] association
dot1p-classification [policy-id] detail
Context
show>qos
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 Output fields: dot1p classification 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
-------------------------------------------------------------------------------
===============================================================================
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
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 Output fields: DSCP classification 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
-------------------------------------------------------------------------------
===============================================================================
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
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 Output fields: MPLS LSP EXP classification 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.
-------------------------------------------------------------------------------
===============================================================================
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 |