17. Remark Policies

This section provides information to configure remark policies using the command line interface. This section is applicable to only 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-Mxp devices in network mode.

17.1. Overview

The remark policies are used to configure the marking behavior for the system at the egress of access SAP access port, network ports, hybrid ports, and network IP interfaces on network ports or hybrid ports (for support available on different 7210 SAS platforms refer to Table 69 and Table 70). These policies allow the user to define the forwarding class to egress marking values and allow them to use the available hardware resources efficiently. Based on the packet encapsulation used, the remark policy allows the user to define and associate appropriate policies to service egress, and network QoS policies. The 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-Mxp supports the use of the following types of remark policies for different QoS policies (refer to refer to Table 69 and Table 70 to know which remark policies are allowed on different 7210 platforms):

  1. dot1p
    Used for service egress, access port egress, and network qos (policy of type port policies).
  2. dscp
    Used for access port egress marking and network qos [port type] policies.
  3. lsp-exp
    Used for network qos [ip-interface type] policies.
  4. dot1p-dscp
    Used for access port egress marking and network qos [port type] policies.
  5. dot1p-lsp-exp-shared
    Used for service egress, access port egress, and network qos [ip-interface type] policies.

The type of the remark policy identifies the bits marked in the packet header. Each of these remark policy types can be associated with only appropriate QoS policies and service entities as listed in Table 69.

Table 69:  Summary of Remark Policy and Attachment Points for 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, and 7210 SAS-Sx 10/100GE (Network Mode) 

Remark Policy Type

Qos Policy

Attachment Point

Packet Header Bits Marked

dot1p

access-Egress policy

Access port

  1. Dot1p bits in L2 Ethernet header for service packets sent out of all access SAPs configured on access ports.

network policy (type port)

Network Port and Hybrid Port

  1. Dot1p bits in the L2 Ethernet header for IP packets sent out of network port and hybrid port.

dscp

access-egress policy

Access port

  1. IP DSCP bits in the IP header for service packets sent out of access SAPs configured on access ports.

network policy (type port)

Network Port and Hybrid Port

  1. IP DSCP bits in the IP header for IP packets sent out of network port and hybrid port.
    NOTE: For the IP traffic sent out of L2 SAPs on hybrid ports, the DSCP bits are not marked.

lsp-exp

network policy (type ip-interface)

Network IP interface

  1. EXP bits in the MPLS header for MPLS packets sent out of IP inter-face configured on network port and hybrid port.

dot1p-lsp-exp-shared

access-egress policy

Access port

  1. Dot1p bits in L2 Ethernet header for service packets sent out of access SAPs configured on access ports.

network policy (type IP-interface)

Network IP interface

  1. EXP bits in the MPLS header for MPLS packets sent out of IP interface configured on network port and hybrid port.
  2. Dot1p bits in the L2 Ethernet header for MPLS packets sent out of network and hybrid port.

dot1p-dscp

access-egress policy

Access port

  1. Dot1p bits in L2 Ethernet header and IP DSCP bits in the IP header for service packets sent out of access SAPs configured on access ports.

network policy (type port)

Network Port and Hybrid Port

  1. Dot1p bits in the L2 Ethernet header for IP packets and IP DSCP bits in the IP header for IP packets sent out of network port and hybrid port. NOTE: For the IP traffic sent out of L2 SAPs on hybrid ports, the DSCP bits are not marked.
Table 70:  Summary of Remark Policy and Attachment Points for 7210 SAS-Mxp  

Remark Policy Type

Qos Policy

Attachment Point

Packet Header Bits Marked

dot1p

access-Egress policy

Access port

  1. Dot1p bits in L2 Ethernet header for service packets sent out of all access SAPs configured on access ports.

network policy (type port)

Network Port and Hybrid Port

  1. Dot1p bits in the L2 header for IP packets sent out of network/hybrid port.

Sap-egress policy

Service/SAP egress

  1. Dot1p bits in the L2 Ethernet header for service packets sent out of a SAP egress.

dscp

access-egress policy

Access port

  1. IP DSCP bits in the IP header for service packets sent out of access SAPs configured on access ports.

network policy (type port)

Network Port and Hybrid Port

  1. IP DSCP bits in the IP header for IP packets sent out of network port and hybrid port.
    NOTE: For the IP traffic sent out of L2 SAPs on hybrid ports, the DSCP bits are not marked.

lsp-exp

network policy (type ip-interface)

Network IP interface

  1. EXP bits in the MPLS header for MPLS packets sent out of IP inter-face configured on network port and hybrid port.

dot1p-lsp-exp-shared

access-egress policy

Access port

  1. Dot1p bits in L2 Ethernet header for service packets sent out of access SAPs configured on access ports.

network policy (type IP-interface)

Network IP interface

  1. EXP bits in the MPLS header for MPLS packets sent out of IP interface configured on network port and hybrid port.
  2. Dot1p bits in the L2 Ethernet header for IP and MPLS packets sent out of network port and hybrid port.

Sap-egress policy

Service/SAP egress

  1. Dot1p bits in the L2 Ethernet header for service packets sent out of a SAP egress.

dot1p-dscp

access-egress policy

Access port

  1. Dot1p bits in L2 Ethernet header and IP DSCP bits in the IP header for service packets sent out of access SAPs configured on access ports.

network policy (type port)

Network Port and Hybrid Port

  1. Dot1p bits in the L2 Ethernet header for MPLS and IP packets and IP DSCP bits in the IP header for IP packets sent out of network port and hybrid port.
    NOTE: For the IP traffic sent out of L2 SAPs on hybrid ports, the DSCP bits are not marked.

17.1.1. Configuration Guidelines

  1. Access Port and Access SAP Marking functionality (SAP-Based and Port-Based) - 7210 SAS-Mxp supports SAP-based egress marking and port-based egress marking on only access ports when using access SAP-based egress queuing. Users have an option to use either SAP-based marking or port-based marking. In SAP-based marking the remark policy defined in the SAP egress policy associated with each SAP is used to mark the packets egressing out of SAP if marking is enabled. In port-based marking, the remark policy defined in the access-egress policy associated with the access port determines the marking values to use for all the SAPs defined on that port. For more information, see the Access Egress QoS Policies for 7210 SAS-Mxp.
  2. 7210 SAS-Mxp supports only access port-based marking when port-based egress queues is configured. For more information, see the Access Egress QoS Policies for 7210 SAS-Mxp.

17.1.2. Basic Configurations

A basic remark policy must confirm to the following:

  1. Each remark policy must have a unique policy ID.
  2. The remark policy type must be specified.
  3. The forwarding class to egress marking values must be specified.

17.1.2.1. Creating a Remark Policy

To create a new remark policy, define the following:

  1. A remark policy name and type is optional and by default it is 'dot1p'.
  2. Provide a brief description of the policy features.
  3. Specify the forwarding class to egress marking values.

Use the following syntax to configure a remark policy.

CLI Syntax:
A:7210-T>config>qos# remark 122 remark-type dscp create

The following is a sample remark policy configuration output.

*A:7210SAS>config>qos>remark# info detail
----------------------------------------------
            description "Default Remarking Policy for dot1P and DSCP"
                fc af
                    dscp-in-profile af11
                    dscp-out-profile af12
                    no lsp-exp-in-profile
                    no lsp-exp-out-profile
                    no dot1p-lsp-exp-in-profile
                    no dot1p-lsp-exp-out-profile
                    no de-mark
                    no dot1p
                    dot1p-in-profile 3
                    dot1p-out-profile 2
                exit
                fc be
                    dscp-in-profile be
                    dscp-out-profile be
                    no lsp-exp-in-profile
                    no lsp-exp-out-profile
                    no dot1p-lsp-exp-in-profile
                    no dot1p-lsp-exp-out-profile
                    no de-mark
                    no dot1p
                    dot1p-in-profile 0
                    dot1p-out-profile 0
                exit
                fc ef
                    dscp-in-profile ef
                    dscp-out-profile ef
                    no lsp-exp-in-profile
                    no lsp-exp-out-profile
                    no dot1p-lsp-exp-in-profile
                    no dot1p-lsp-exp-out-profile
                    no de-mark
                    no dot1p
                    dot1p-in-profile 5
                    dot1p-out-profile 5
                exit
                fc h1
                    dscp-in-profile nc1
                    dscp-out-profile nc1
                    no lsp-exp-in-profile
                    no lsp-exp-out-profile
                    no dot1p-lsp-exp-in-profile
                    no dot1p-lsp-exp-out-profile
                    no de-mark
                    no dot1p
                    dot1p-in-profile 6
                    dot1p-out-profile 6
                exit
                fc h2
                    dscp-in-profile af41
                    dscp-out-profile af41
                    no lsp-exp-in-profile
                    no lsp-exp-out-profile
                    no dot1p-lsp-exp-in-profile
                    no dot1p-lsp-exp-out-profile
                    no de-mark
                    no dot1p
                    dot1p-in-profile 4
                    dot1p-out-profile 4
                exit
                fc l1
                    dscp-in-profile af21
                    dscp-out-profile af22
                    no lsp-exp-in-profile
                    no lsp-exp-out-profile
                    no dot1p-lsp-exp-in-profile
                    no dot1p-lsp-exp-out-profile
                    no de-mark
                    no dot1p
                    dot1p-in-profile 3
                    dot1p-out-profile 2
                exit
                fc l2
                    dscp-in-profile cs1
                    dscp-out-profile cs1
                    no lsp-exp-in-profile
                    no lsp-exp-out-profile
                    no dot1p-lsp-exp-in-profile
                    no dot1p-lsp-exp-out-profile
                    no de-mark
                    no dot1p
                    dot1p-in-profile 1
                    dot1p-out-profile 1
                exit
                fc nc
                    dscp-in-profile nc2
                    dscp-out-profile nc2
                    no lsp-exp-in-profile
                    no lsp-exp-out-profile
                    no dot1p-lsp-exp-in-profile
                    no dot1p-lsp-exp-out-profile
                    no de-mark
                    no dot1p
                    dot1p-in-profile 7
                    dot1p-out-profile 7
                exit
----------------------------------------------
*A:7210SAS>config>qos>remark#

17.1.2.2. Editing QoS Policies

Existing policies and entries can be edited through the CLI or NMS. The changes are applied immediately to all services where the policy is applicable.

To prevent configuration errors perform the following:

  1. Copy the policy to a work area.
  2. Edit the policy.
  3. Over write the original policies.