15. Remark Policies

This chapter provides information to configure remark policies using the CLI.

15.1. Overview

The remark policies are used to configure the marking behavior for the system at the egress of access SAP or access uplink port, network ports, hybrid ports, ports and network IP interfaces on network ports or hybrid ports. 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 following remark policies are available:

  1. dot1p
    This policy is used for service egress, access port egress, and network QoS (port type policies).
  2. dscp
    This policy is used for access port egress marking and network QoS policies of the port type.
  3. lsp-exp
    This policy is used for network QoS policies of the ip-interface type.
  4. dot1p-dscp
    This policy is used for access port egress marking and network QoS policies of the port type.
  5. dot1p-lsp-exp-shared
    This policy is used for access port egress, access port egress marking, and network QoS policies of the ip-interface type.

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

Table 48:  Summary of Remark Policy and Attachment Points for 7210 SAS-R6 and 7210 SAS-R12  

Remark Policy Type

Qos Policy

Attachment Point

Packet Header Bits Marked

dot1p

SAP-egress policy

Service/SAP egress

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

Access-egress policy

Access port

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

Network policy (port type)

Network port and hybrid port

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

dscp

Access egress policy

Access port

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

Network policy (port type)

Network port and hybrid port

IP DSCP bits in the IP header for IP packets sent out of network port and hybrid port 1

lsp-exp

Network policy (IP-interface type)

Network IP interface

EXP bits in the MPLS header for

MPLS packets sent out of IP interface configured on network port and hybrid port

dot1p-lsp-exp-shared

Access egress policy

Access port

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

Network policy (IP-interface type or port type)

Network IP interface or network port

EXP bits in the MPLS header for MPLS packets sent out of IP interface configured on network port and hybrid port

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

SAP egress policy

Service/SAP egress

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

dot1p-dscp

Access egress policy

Access port

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 1

Network policy (port type)

Network port and hybrid port

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 1

    Note:

  1. For the IP traffic sent out of L2 SAPs on hybrid ports, the DSCP bits are not marked.

15.1.1. Configuration Guidelines

For access port and access SAP marking functionality (SAP-based and port-based), the 7210 SAS-R6 and 7210 SAS-R12 support 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 the 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. See Access Egress QoS Policies for more information.

The 7210 SAS-R6 and 7210 SAS-R12 support only access port-based marking when port-based egress queues are configured. See Access Egress QoS Policies for more information.

15.2. Basic Configurations

A basic remark policy must conform 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.

15.2.1. Creating a Remark Policy

To create a new remark policy, define the following:

  1. a remark policy name and type (this is optional and by default is dot1p)
  2. a brief description of the policy features
  3. the FC-to-egress marking values

Use the following CLI syntax to configure a remark policy.

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

The following is a sample remark policy configuration output.

A:7210>config>qos>remark# info 
----------------------------------------------
fc af
   dscp-in-profile cs1
   dscp-out-profile cp3
exit
fc be
   dscp-in-profile nc2
   dscp-out-profile af11
exit
fc ef
   dscp-in-profile cp1
   dscp-out-profile cp2
exit
fc h1
   dscp-in-profile cp9
   dscp-out-profile cp4
exit
fc h2
   dscp-in-profile cp1
   dscp-out-profile cp2
exit
fc l1
   dscp-in-profile cp9
   dscp-out-profile cp4
exit
fc l2
   dscp-in-profile cp9
   dscp-out-profile cp4
exit
fc nc
   dscp-out-profile af11
exit
----------------------------------------------
A:7210>config>qos>remark#
 

15.2.2. Editing QoS Policies

Existing policies and entries can be edited using 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. Overwrite the original policy.