13.4. Remark Policy Command Reference

13.4.1. Command Hierarchies

13.4.1.1. Configuration Commands for 7210 SAS-K 2F1C2T

config
— qos
— no remark policy-id
remark policy-id [create] [remark-type {dot1p | dscp | dot1p-dscp}]
[no] description description-string
[no] fc fc-name
[no] de-mark-outer [force de-value]
dot1p-inner dot1p-value
dot1p-inner [in-profile dot1p-value] [out-profile dot1p-value]
dot1p-outer dot1p-value
dot1p-outer [in-profile dot1p-value] [out-profile dot1p-value]
dscp-in-profile dscp-name
dscp-out-profile dscp-name

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

config
— qos
— no remark policy-id
remark policy-id [create] [remark-type {dot1p | dscp | dot1p-dscp| lsp-exp | dot1p-lsp-exp | dot1p-lsp-exp-dscp | dscp-lsp-exp}]
[no] description description-string
[no] fc fc-name
[no] de-mark-outer [force de-value]
dot1p-inner dot1p-value
dot1p-inner [in-profile dot1p-value] [out-profile dot1p-value]
dot1p-outer dot1p-value
dot1p-outer [in-profile dot1p-value] [out-profile dot1p-value]
dscp-in-profile dscp-name
dscp-out-profile dscp-name
lsp-exp-in-profile lsp-exp-value
lsp-exp-out-profile lsp-exp-value

13.4.1.3. Operational Commands

config
— qos
copy remark src-pol dst-pol [overwrite]

13.4.1.4. Show Commands

show
— qos
remark-policy [policy-id] [association | detail]

13.4.2. Command Descriptions

13.4.2.1. Configuration Commands

13.4.2.1.1. Generic Commands

description

Syntax 
[no] description description-string
Context 
config>qos>remark
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 long 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.

13.4.2.1.2. Remark Policy QoS Commands

remark

Syntax 
no remark policy-id
remark policy-id [create] [remark-type remarking-type]
Context 
config>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a new remark policy of the specified type.

The following types of remark policies are available on the 7210 SAS-K 2F1C2T:

  1. dot1p
  2. dscp
  3. dot1p-dscp

The following type of remark policies are available on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C:

  1. dot1p — used for service egress and network QoS policies
  2. dscp — used for service egress and network QoS policies
  3. dot1p-dscp — used for service egress and network QoS policies
  4. lsp-exp — used for network QoS policies (only network ports and hybrid ports)
  5. dot1p-lsp-exp — used for network QoS policies (only network ports and hybrid ports)
  6. dot1p-lsp-exp-dscp — used for network QoS policies (only network ports and hybrid ports)
  7. dscp-lsp-exp — used for network QoS policies (only network ports and hybrid ports)

The remarking-type of the policy also determines the values user is allowed to configure in the policy and the QoS policy with which this policy can be associated with. See the Summary of Remark Policy and Attachment Points for 7210 SAS-K 2F1C2Tfor the different remark policies supported on the node and its use.

Note:

A limited number of unique remark policies are available to be shared among all the different types of remark policies. The remark policy types share the available resources, and scaling one type of remark policy reduces the number of policies allowed for other types of remark policies.

Default 

no default

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

 

remarking-type—
Specifies the type of marking values in the remark policy.
Values—
dot1p — Specify FC to 802.1 Dot1p value to use for marking. It is the default used if the user does not explicitly specify the remarking-type value. dscp — Specify FC to IP DSCP value to use for marking. dot1p-dscp - Specify FC to both Dot1p and IP DSCP values to use for marking.

 

Values—
lsp-exp — Available only on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C. Specify FC to MPLS EXP values to use for marking.

 

Values—
dot1p-lsp-exp — Available only on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C. Specify FC to MPLS EXP values and Dot1p values to use for marking.

 

Values—
dot1p-dscp-lsp-exp — Available only on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C. Specify FC to MPLS EXP values, IP DSCP values and Dot1p values to use for marking.

 

fc

Syntax 
[no] fc fc-name
Context 
config>qos>remark
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the forwarding class name and provides the context to configure the marking value for the FC. Based on the type of remark policy created, the fc command allows the user to specify the appropriate marking values. The fc command overrides the default parameters for the forwarding class to the values defined.

The no form of this command removes the forwarding class to marking values map associated with the FC. The forwarding class reverts to the defined parameters in the default remark policy.

Parameters 
fc-name—
Specifies a case-sensitive system-defined forwarding class name for which policy entries are created.
Values—
be, l2, af, l1, h2, ef, h1, nc

 

13.4.2.1.3. Remark Policy Forwarding Class Commands

de-mark-outer

Syntax 
[no] de-mark-outer [force de-value]
Context 
config>qos>remark-policy>fc
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command explicitly defines the marking of the DEI bit of the outermost tag for fc fc-name according to the in and out of profile status of the packet.

If no de-value is present, the default values are used for the marking of the DE bit, as defined in the IEEE 802.1ad-2005 standard. For example, 0 for in-profile packets, 1 for out-of-profile ones

If the de-value is specifically mentioned in the command line it means this value is to be used for all the packets of this forwarding class regardless of their in or out of profile status.

Note:

If remarking is enabled, the inner tag DEI is always set to zero irrespective of de-mark-outer.

If remarking is enabled and de-mark-outer is not configured then, DEI bit of the outer tag is set to zero.

If remarking is disabled then, the DEI bits are preserved for both inner and outer tag.

Parameters 
de-value—
Specifies the DEI value to use for this forwarding class.
Values—
0 or 1

 

dot1p-inner

Syntax 
no dot1p-inner
dot1p-inner dot1p-value
Context 
config>qos>remark-policy>fc
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command explicitly defines the egress IEEE 802.1P (dot1p) bits for the inner VLAN tag marking for fc-name. When the marking is set, all packets of fc-name that egresses out of QinQ SAP only (that is, SAPs configured with two VLAN tags explicitly defined; for example, SAP 1/1/5:10.100) use the explicitly defined dot1p-value.

This command has no effect for egress packets sent out of all other non-QinQ SAPs; for example, Dot1q SAP and NULL SAP. Additionally, if the egress packets for fc-name are not IEEE 802.1Q or IEEE 802.1P encapsulated, this command has no effect. In other words, this command takes effect, only when the node adds 2 tags to the packet on the egress.

If the no form of this command is executed, the default remarking values are used.

Default 

no dot1p-inner

Parameters 
dot1p-value—
Specifies the 802.1p value to set for the frames in this forwarding class.
Values—
0 to 7

 

dot1p-inner

Syntax 
[no] dot1p-inner [in-profile dot1p-value] [out-profile dot1p-value]
Context 
config>qos>remark-policy>fc
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command explicitly defines the egress IEEE 802.1P (dot1p) bits marking for fc-name. When the marking is set, all packets with in-profile status (or green color) of fc-name that egress out of QinQ SAP only (that is, SAPs configured with two VLAN tags explicitly defined; for example, SAP 1/1/5:10.100) use the explicitly defined in-profile and out-profile dot1p-value.

This command adds the capability to mark the in and out profile status on an egress through a certain dot1p combination. It may be used when the internal in and out of profile status needs to be communicated to an adjacent network or customer device that does not support the DEI bit.

This command has no effect for egress packets sent out of all other non-QinQ SAPs; for example, Dot1q SAP and NULL SAP. Additionally, if the egress packets for fc-name are not IEEE 802.1Q or IEEE 802.1P encapsulated, this command has no effect. In other words, this command takes effect, only when the node adds 2 tags to the packet on the egress.

This variant of the command is mutually exclusive to the use of the dot1p-inner command. In other words, user has a choice to use either this command or the dot1p-inner command but not both together.

If the no form of this command is executed, default remarking values are used for marking the inner VLAN.

Default 

no dot1p-inner

Parameters 
in-profile dot1p-value —
Specifies the dot1p value to use for in-profile packets.
Values—
0 to 7

 

out-profile dot1p-value—
Specifies the dot1p bits to use for the out-profile packets.
Values—
0 to 7

 

dot1p-outer

Syntax 
dot1p-outer dot1p-value
no dot1p-outer
Context 
config>qos>remark-policy>fc
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command explicitly defines the egress IEEE 802.1P (dot1p) bits marking for fc-name. When the marking is set, all packets of fc-name that have either an IEEE 802.1Q or IEEE 802.1P encapsulation use the explicitly defined dot1p-value. If the egress packets for fc-name are not IEEE 802.1Q or IEEE 802.1P encapsulated, the dot1p command has no effect.

If the no form of this command is executed then software will use the default value.

Default 

no dot1p-outer

Parameters 
dot1p-value—
Specifies the dot1p values to use.
Values—
0 to 7

 

dscp-in-profile

Syntax 
dscp-in-profile dscp-name
no dscp-in-profile
Context 
config>qos>remark-policy>fc
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the in-profile DSCP name for the forwarding class. When marking is set, the corresponding DSCP value is used to mark all IP packets with in-profile status, on the egress of this forwarding class queue.

When multiple DSCP names are associated with the forwarding class in the policy, the last name entered will overwrite the previous value.

The no form of this command reverts to the factory default in-profile dscp-name setting for policy ID 1.

Parameters 
dscp-name—
System- or user-defined, case-sensitive dscp-name.
Values—
be, cp1, cp2, cp3, cp4, cp5, cp6, cp7, cs1, cp9, af11, cp11, af12, cp13, af13, cp15, cs2, cp17, af21, cp19, af22, cp21, af23, cp23, cs3, cp25, af31, cp27, af32, cp29, af33, cp31, cs4, cp33, af41, cp35, af42, cp37, af43, cp39, cs5, cp41, cp42, cp43, cp44, cp45, ef, cp47, nc1, cp49, cp50, cp51, cp52, cp53, cp54, cp55, nc2, cp57, cp58, cp59, cp, cp61, cp62, cp63

 

dscp-out-profile

Syntax 
dscp-out-profile dscp-name
no dscp-out-profile
Context 
config>qos>remark-policy>fc
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the out-of-profile DSCP name for the forwarding class. When marking is set, the corresponding DSCP value is used to mark all IP packets with out-of-profile status, on the egress of this forwarding class queue.

When multiple DSCP names are associated with the forwarding class in the policy, the last name entered will overwrite the previous value.

The no form of this command reverts to the factory default out-of-profile dscp-name setting for policy-id 1.

Parameters 
dscp-name—
System- or user-defined, case-sensitive dscp-name.
Values—
be, cp1, cp2, cp3, cp4, cp5, cp6, cp7, cs1, cp9, af11, cp11, af12, cp13, af13, cp15, cs2, cp17, af21, cp19, af22, cp21, af23, cp23, cs3, cp25, af31, cp27, af32, cp29, af33, cp31, cs4, cp33, af41, cp35, af42, cp37, af43, cp39, cs5, cp41, cp42, cp43, cp44, cp45, ef, cp47, nc1, cp49, cp50, cp51, cp52, cp53, cp54, cp55, nc2, cp57, cp58, cp59, cp, cp61, cp62, cp63

 

dot1p-outer

Syntax 
[no] dot1p-outer [in-profile dot1p-value] [out-profile dot1p-value]
Context 
config>qos>remark-policy>fc
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command explicitly defines the egress IEEE 802.1P (dot1p) bits marking for fc-name. When the marking is set, all packets with in-profile status (or green color) of fc-name that have either an IEEE 802.1Q or IEEE 802.1P encapsulation use the explicitly defined in-profile dot1p-value. Similarly all the packet with out-of-profile status use the explicitly defined out-profile dot1p-value. If the egress packets for fc-name are not IEEE 802.1Q or IEEE 802.1P encapsulated, this command has no effect.

This command adds the capability to mark on an egress the in and out profile status via a certain dot1p combination, similarly with the DEI options. It may be used when the internal in and out of profile status needs to be communicated to an adjacent network or customer device that does not support the DEI bit.

When this command is used the DEI Bit is left unchanged by the egress processing if a tag exists. If a new tag is added, the DEI bit is set to 0.

This variant of the command is mutually exclusive to the use of the dot1p-outer command. In other words, user has a choice to use either this command or the dot1p-outer command but not both together.

If the no form of this command is executed then the default remark values are used.

Default 

no dot1p-outer

Parameters 
in-profile dot1p-value—
Specifies the dot1p value to use for in-profile packets.
Values—
0 to 7

 

out-profile dot1p-value—
Specifies the dot1p bits to use for the out-profile packets.
Values—
0 to 7

 

lsp-exp-in-profile

Syntax 
[no] lsp-exp-in-profile lsp-exp-value
Context 
config>qos>remark-policy>fc
Supported Platforms 

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

Description 

This command specifies the in-profile MPLS EXP value for the forwarding class. When marking is set, the corresponding MPSL EXP value is used to mark all MPLS packets with in-profile status, on the egress of this forwarding class queue.

When multiple MPLS EXP names are associated with the forwarding class in the policy, the last name entered will overwrite the previous value.

The no form of this command reverts to the factory default in-profile MPLS EXP value setting for policy-id 1.

Default 

no lsp-exp-in-profile

Parameters 
lsp-exp-value—
Specifies the in-profile MPLS EXP value.
Values—
0 to 7

 

lsp-exp-out-profile

Syntax 
[no] lsp-exp-out-profile lsp-exp-value
Context 
config>qos>remark-policy>fc
Supported Platforms 

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

Description 

This command specifies the out-of-profile MPLS EXP value for the forwarding class. When marking is set, the corresponding MPSL EXP value is used to mark all MPLS packets with out-of-profile status, on the egress of this forwarding class queue.

When multiple MPLS EXP names are associated with the forwarding class in the policy, the last name entered will overwrite the previous value.

The no form of this command reverts to the factory default out-profile MPLS EXP value setting for policy ID 1.

Default 

no lsp-exp-out-profile

Parameters 
lsp-exp-value—
Specifies the out-of-profile MPLS EXP value.
Values—
0 to 7

 

13.4.2.2. Operational Commands

copy

Syntax 
copy remark src-pol dst-pol [overwrite]
Context 
config>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command copies existing remark policy entries to another remark policy.

The copy command is a configuration level maintenance tool used to create new policies using existing policies. It also allows bulk modifications to an existing policy with the use of the overwrite keyword.

If the destination policy already exists, the key word overwrite must be specified.

Parameters 
src-pol—
Specifies the source policy.
Values—
1 to 65535

 

dst-pol—
Specifies the destination policy.
Values—
1 to 65535

 

overwrite—
Keyword to overwrite the information in the source policy.

13.4.2.3. Show Commands

remark-policy

Syntax 
remark-policy [policy-id] [association | detail]
Context 
show>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays remark policy information.

Parameters 
policy-id—
Specifies the ID of the remark policy.
detail—
Displays detailed information about the remark policy.
Output 

The following output is an example of QoS remark policy information, and Table 50 describes the output fields.

Sample Output
*A:SAH01-051> show qos remark-policy 300 detail
===============================================================================
QoS Remarking Policies
===============================================================================
-------------------------------------------------------------------------------
Remark Policy-id   : 300           Type         : dscp
Description        : (Not Specified)
 
-------------------------------------------------------------------------------
FC Name    DSCP              DSCP            
           InProf            OutProf    
-------------------------------------------------------------------------------
be         be                be   
l2         cs1               cs1  
af         af11              af12 
l1         af21              af22 
h2         af41              af41 
ef         ef                ef   
h1         nc1               nc1  
nc         nc2               nc2  
 
-------------------------------------------------------------------------------
Associations                          
-------------------------------------------------------------------------------
SAP Egress
-------------------------------------------------------------------------------
No SAP Egress Associations found.
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
Network
-------------------------------------------------------------------------------
No Network Policy Associations found.
-------------------------------------------------------------------------------
==
*A:SAH01-051>show>qos#
Table 50:  Output Fields: Remark Policy 

Label

Description

Remark Policy ID

The ID that uniquely identifies the policy

Type

Displays the type of the remark policy

dot1P

Dot1p value for in-profile packets

fc name

Forwarding class name