This chapter provides information to configure network QoS policies using the command line interface (CLI).
Topics in this chapter include:
The network QoS policy consists of an ingress and egress component for interfaces in the IP domain, and a ring component for interfaces in the bridging domain.
The ingress component of the QoS policy defines how DSCP bits (for GRE and IP) and multiprotocol label switching (MPLS) Experimental (EXP) bits are mapped to internal forwarding class and profile state. The forwarding class and profile state define the per-hop behavior (PHB) or the QoS treatment through the 7705 SAR.
The egress component of the QoS policy defines the DSCP bit, MPLS EXP bit, and the dot1p marking based on the forwarding class and the profile state.
The ring component of the QoS policy defines how dot1p bits are mapped to network queue and profile state.
The mapping on each network interface defaults to the mappings defined in the default network QoS policy until an explicit policy is defined for the network interface. Network policy-id 1 exists as the default policy that is applied to all network interfaces by default. The network policy-id 1 cannot be modified or deleted. For the ingress, it defines the default DSCP-to-FC and profile state, and MPLS EXP-to-FC and profile state mappings. For the egress, it defines eight forwarding classes and profile states that represent the packet marking criteria. For the ring, it defines eight dot1p-to-queue and profile state mappings.
New (non-default) network policy parameters can be modified. The no form of the command reverts the object to the default values.
Changes made to a policy are applied immediately to all network interfaces where the policy is applied. For this reason, when a policy requires several changes, it is recommended that you copy the policy to a work area policy-id. The work-in-progress copy can be modified until all the changes are made, and then the original policy-id can be overwritten with the config qos copy command.
For information about the tasks and commands necessary to access the command line interface and to configure and maintain your 7705 SAR devices, refer to the 7705 SAR OS Basic System Configuration Guide, “CLI Usage”.
This section contains the following topics related to creating and applying network QoS policies for the IP domain and the bridging domain:
A basic network QoS policy must conform to the following rule.
Configuring and applying QoS policies other than the default policy is optional.
Define the following parameters to configure a network QoS policy (see Default Network QoS Policy Values for default values):
Configuring and applying network QoS policies other than the default policy is optional.
Use the following CLI syntax to create a network QoS policy for router interfaces (ip-interface type) and ring port (ring type).
The ip-interface keyword is optional for router interface network policies.
Use the ring keyword to create a network QoS policy that can be applied to a bridging domain port (that is, a ring port or the add/drop port). Up to eight dot1p-to-queue and profile mappings can be defined under the ring command.
The following sample output displays the configuration for an ip-interface type network policy 700:
The following example creates a ring type network QoS policy on the 2-port 10GigE (Ethernet) Adapter card or 2-port 10GigE (Ethernet) module.
The following sample output displays the configuration for ring network policy 5:
You can apply network QoS policies to router interfaces and a ring adapter card.
Use the following CLI syntax to apply network policies to router interfaces:
The following sample output displays the configuration for router interface ALU-1 with network policy 700 applied to the interface.
Use the following CLI syntax to apply a ring type network policy to a ring adapter card. Applying the policy to the card means that the policy is applied to ingress traffic of the ring ports and the add/drop port:
The following sample output displays the configuration for ring type network policy 5 applied to a ring adapter card.
The default network policy is identified as policy-id 1. Default policies cannot be modified or deleted. Table 22, Table 23, and Table 24 (found in the section on Network and Network Queue QoS Policies) list the default network QoS policy parameters for ingress, egress, and ring policies.
The following sample output displays the default network policy configuration:
This section describes the following service management tasks:
A network policy is associated by default with router interfaces. You can replace the default policy with a non-default policy, but you cannot entirely remove the policy from the configuration. When you remove a non-default policy, the policy association reverts to the default network policy-id 1.
Use the following syntax to delete a network policy.
You can copy an existing network policy to a new policy ID value or overwrite an existing policy ID. The overwrite option must be specified or an error occurs if the destination policy ID exists.
Use the following syntax to overwrite an existing policy ID.
The following sample output displays copied policies:
You can change existing policies, except the default policies, and entries in the CLI. The changes are applied immediately to all interfaces where the policy is applied. To prevent configuration errors, use the copy command to make a duplicate of the original policy in a work area, make the edits, and then overwrite the original policy.