7. Network QoS Policies

This chapter provides information to configure network QoS policies using the CLI.

7.1. Overview of Network QoS Policy on 7210 SAS-K 2F1C2T

Network QoS policies have an ingress and egress component, which define the QoS processing behavior to be provided for packets that ingress the access-uplink port and egress the access-uplink port respectively.

The ingress component of the policy defines how the IP DSCP and dot1p values using the DSCP and dot1p classification policies are mapped to internal FC and profile state for the 7210 SAS-K 2F1C2T. The FC and profile state define the Per Hop Behavior (PHB) or the QoS treatment through the system. The mapping on each access-uplink port defaults to the mappings defined in the default network QoS policy until an explicit policy is defined for the access-uplink ports. It also defines the bandwidth-limiting parameters for the traffic mapped to each FC. Traffic mapped to each FC can be limited to configurable bandwidth values using separate queues for unicast traffic and multipoint traffic.

7210 SAS platforms provide different mechanisms to limit the bandwidth per FC. On 7210 SAS-K 2F1C2T, users can use the queue with packet buffers and a rate shaper to limit and shape the traffic per FC. Use of queue with shapers typically allows for better TCP traffic behavior in the network.

The egress component of the network QoS policy defines the marking values associated with each FC.

On the 7210 SAS, the user has an option to define the number of queues to use per access-uplink port and map the FC to queues. By default, network QoS policy 1 is used for access-uplink ports, until an explicit policy is associated. The default policy creates eight queues per access-uplink port. The queues are assigned default values for all the parameters defined with the default policy.

Access-uplink port egress marking supports the following.

  1. For packets sent out of an access-uplink port, the network QoS policy defines the marking values (for example, IEEE 802.1p bits and so on) to use based on the FC and the profile state.
  2. The default map of FC to marking values (for example, 802.1p bits and so on) is as shown in the default network QoS policy, policy-id 1.
  3. All non-default network QoS policies inherit the default map and can be modified by the user.
  4. Remarking can be enabled or disabled on access-uplink ports.
  5. An option is available to map FC and profile to either IP DSCP and dot1p bits along with DEI bit.

Non-default network policy parameters can be modified. The no form of this command reverts to the default values.

Changes made to a policy are applied immediately to all access uplink ports where the policy is applied. For this reason, when a policy requires several changes, Nokia recommends that you copy the policy to a work area policy-id. The work-in-progress copy can be modified, and then the original policy-id can be overwritten using the config qos copy command.

Refer to the CLI usage chapter in the 7210 SAS-D, Dxp, K 2F1C2T, K 2F6C4T, K 3SFP+ 8C Basic System Configuration Guide for information about the tasks and commands required to access the CLI and to configure and maintain 7210 SAS devices.

7.1.1. Resource Allocation for Network QoS Policy for 7210 SAS-K 2F1C2T

The queues required for access-uplink port egress are allocated for the egress queue system pool. Queues from the egress queue system pool are allocated for per SAP egress queues and per access-uplink port egress queues.

The dot1p policy and DSCP policy resources used for network qos ingress FC assignment on access-uplink port, is shared with the per SAP ingress classification criteria from the system pool.

7.2. Basic Configurations for 7210 SAS-K 2F1C2T

A basic network QoS policy must conform to the following:

  1. have a unique policy ID
  2. specify the default-action
  3. have a QoS policy scope of template or exclusive
  4. on a 7210 SAS platform, have at least one default unicast FC meter/queue
  5. on a 7210 SAS platform, have at least one multipoint FC meter/queue

7.2.1. Create a Network QoS Policy for Access-Uplink Ports on 7210 SAS-K 2F1C2T

Configuring and applying QoS policies other than the default policy is optional. A default network policy of the appropriate type is applied to each access uplink port.

To create an network QoS policy, define the following.

  1. Specify a network policy ID value. The system does not dynamically assign a value.
  2. Include a description that provides a brief overview of policy features.
  3. Use egress marking and remarking to specify the egress FC to marking value (for example, IEEE 802.1p and so on) map; otherwise, the default values are applied. The following are defined:
    1. remarking
      If enabled, this command remarks ALL packets that egress on the specified access uplink port. The remarking is based on the FC to marking values mapping defined under the egress node of the network QoS policy. On the 7210 SAS-K 2F1C2T, the user has an option to enable it or disable it.
    2. FC criteria
      The FC name represents an egress queue. Specify FC criteria to define the marking criteria of packets flowing through it.
    3. marking value
      The marking (for example, IEEE 802.1p) value is used for all packets requiring marking that egress on this FC queue that are in or out of profile.
  4. Specify ingress criteria to use for FC mapping for all packets using the following:
    1. default action
      Defines the default action to be taken for packets that have undefined dot1p bits set. The default-action specifies the FC to which the packets are assigned.
    2. dot1p
      On the 7210 SAS-K 2F1C2T, the user has an option to specify either dot1p or IP DSCP to FC mapping for all packets. Ingress traffic that matches the specified criteria are assigned to the corresponding FC.

Use the following syntax to create a network QoS policy for 7210 SAS-K 2F1C2T.

CLI Syntax:
config>qos#
Config>qos>network network-policy id create
description description-string
scope {exclusive | template}
egress
[no] remarking
remark remark-policy id
no remark
ingress
default-action fc fc name
dot1p-classification dot1p-classification id
dscp-classification dscp-classification id
queue queue id create
fc fc-name create
queue queue-id
multicast-queue queue-id
[no] use-dei

Use the following syntax to associate a network QoS policy with the access-uplink port.

CLI Syntax:
config>port
ethernet
access
uplink
qos network-policy-id
CLI Syntax:
config>router
interface interface-name
qos network-policy-id

The following is a sample configuration output that displays uplink port 1/1/1 with network policy 600 applied to the interface.

A:ALA-7>config# info
#--------------------------------------------------
echo "Port Configuration"
#--------------------------------------------------
    port 1/1/1
        shutdown
        description "port 1/1/1"
        ethernet
            mode access uplink
            access
                uplink
                    qos 600
                exit
            exit
        exit
    exit
...
#--------------------------------------------------
A:ALA-7>config#

7.2.1.1. Default Network Policy Values for Access-Uplink Ports on 7210 SAS-K 2F1C2T

The default network policy for access-uplink ports is identified as policy-id “1”. Default policies cannot be modified or deleted. The following is sample configuration output that shows the default network policy parameters.

7210SAS>config>qos>network# info
----------------------------------------------
            description "Default network-port QoS policy."
            ingress
                dot1p-classification 1
                queue 1 create
                exit
                queue 2 create
                    rate cir 25
                exit
                queue 3 create
                    rate cir 25
                exit
                queue 4 create
                    rate cir 25
                exit
                queue 5 create
                    rate cir 100
                exit
                queue 6 create
                    rate cir 100
                exit
                queue 7 create
                    rate cir 10
                exit
                queue 8 create
                    rate cir 10
                exit
                fc "af" create
                    queue 3
                    multicast-queue 3
                exit
                fc "be" create
                    queue 1
                    multicast-queue 1
                exit
                fc "ef" create
                    queue 6
                    multicast-queue 6
                exit
                fc "h1" create
                    queue 7
                    multicast-queue 7
                exit
                fc "h2" create
                    queue 5
                    multicast-queue 5
                exit
                fc "l1" create
                    queue 4
                    multicast-queue 4
                exit
                fc "l2" create
                    queue 2
                    multicast-queue 2
                exit
                fc "nc" create
                    queue 8
                    multicast-queue 8
                exit
            exit
            egress
            exit
----------------------------------------------
*7210 SAS>config>qos>network#

Table 32 and Table 33 list default network policy parameters.

Table 32:  Network Policy ID #1 Defaults for Access-Uplink Ports  

Field

Default

description

Default network QoS policy.

scope

template

ingress

default-action

fc be profile out

egress

remarking

No

fc af:

dot1p-in-profile

3

dot1p-out-profile

2

fc be:

dot1p-in-profile

0

dot1p-out-profile

0

fc ef:

dot1p-in-profile

5

dot1p-out-profile

5

fc h1:

dot1p-in-profile

6

dot1p-out-profile

6

fc h2:

dot1p-in-profile

4

dot1p-out-profile

4

fc l1:

dot1p-in-profile

3

dot1p-out-profile

2

fc l2:

dot1p-in-profile

1

dot1p-out-profile

1

fc nc:

dot1p-in-profile

7

dot1p-out-profile

7

Table 33:  Default Network QoS Policy ID #1 for dot1p to FC Mapping for Access-Uplink Ports 

dot1p Value

FC Ingress

Profile

0

be

Out

1

l2

In

2

af

Out

3

af

In

4

h2

In

5

ef

In

6

h1

In

7

nc

In

7.3. Overview of Network QoS Policy on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

The network QoS policy has an ingress and egress component, which define the QoS processing behavior for packets that ingress into the network port, hybrid port, and access-uplink port, and egress from the network port, hybrid port, and access-uplink port, respectively.

7.3.1. Network QoS Policy for Access-Uplink Ports on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

The ingress component of the policy defines how the IP DSCP and dot1p values using the DSCP and dot1p classification policies are mapped to the internal FC and profile state for the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C. The FC and profile state define the Per Hop Behavior (PHB) or the QoS treatment through the system. The mapping on each access-uplink port defaults to the mappings defined in the default network QoS policy until an explicit policy is defined for the access-uplink ports. It also defines the bandwidth-limiting parameters for the traffic mapped to each FC. Traffic mapped to each FC can be limited to configurable bandwidth values using separate queues for unicast traffic and multipoint traffic.

Note:

The 7210 SAS platforms provide different mechanisms to limit the bandwidth per FC. On the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C, use the queue with packet buffers and a rate shaper to limit and shape the traffic per FC. Use of queues with shapers allows better TCP traffic behavior in the network.

The egress component of the network QoS policy defines the marking values associated with each FC.

The user has an option to define the number of queues to use per access-uplink port and map the FC to queues. By default, network QoS policy “1” is used for access-uplink ports, until an explicit policy is associated. The default policy creates eight queues per access-uplink port. The queues are assigned default values for all the parameters defined with the default policy.

    Access-uplink port egress marking supports the following.

  1. For packets sent out of an access-uplink port, the network QoS policy defines the marking values (for example, IEEE 802.1p bits and so on) to use based on the FC and the profile state.
  2. The default map of FC to marking values (for example, 802.1p bits) is as shown in the default network QoS policy, policy-id 1.
  3. All non-default network QoS policies inherit the default map and can be modified by the user.
  4. Remarking can be enabled or disabled on access-uplink ports.
  5. An option is available to map FC and profile to either IP DSCP and dot1p bits along with DEI bit.

Non-default network policy parameters can be modified. The no form of the command reverts to the default values.

Changes made to a policy are applied immediately to all access uplink ports where the policy is applied. For this reason, when a policy requires several changes, Nokia recommends that you copy the policy to a work area policy-id. The work-in-progress copy can be modified, and then the original policy-id can be overwritten using the config qos copy command.

Refer to the CLI usage chapter in the 7210 SAS-D, Dxp, K 2F1C2T, K 2F6C4T, K 3SFP+ 8C Basic System Configuration Guide for information about the tasks and commands required to access the CLI, and to configure and maintain your devices.

7.3.2. Network QoS Policy for Network Ports and Hybrid Ports on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

The ingress component of the policy defines how the MPLS EXP, IP DSCP, and dot1p values that use classification policies are mapped to internal FC and profile state for 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C. The FC and profile state define the Per Hop Behavior (PHB) or the QoS treatment through the system. The mapping on each network port and hybrid port defaults to the mapping defined in the default network QoS policy, unless an explicit policy is defined for the network ports. The policy also defines the bandwidth-limiting parameters for the traffic mapped to each FC. Traffic mapped to each FC can be limited to configurable bandwidth values using separate queues for unicast traffic and multipoint traffic.

Note:

The 7210 SAS platforms provide different mechanisms to limit the bandwidth per FC. On the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C, use the queue with packet buffers and a rate shaper to limit and shape the traffic per FC. Use of queues with shapers allows better TCP traffic behavior in the network.

The egress component of the network QoS policy defines the marking values associated with each FC.

The user has an option to define the number of queues to use per network port and hybrid port, and to map the FC to queues. By default, network QoS policy “2” is used for network ports, unless an explicit policy is associated. The default policy creates eight queues per network port or hybrid port. The queues are assigned default values for all the parameters defined with the default policy.

    Network port egress marking supports the following.

  1. For packets sent out of the IP interfaces that are configured on a network port or hybrid port, the network QoS policy defines the marking values (for example, IEEE 802.1p bits, and so on) to use based on the FC and the profile state.
  2. The default map of FC to marking values (for example, 802.1p bits) is as shown in default network QoS policy, policy-id 2 for network port.
  3. All non-default network QoS policies inherit the default map and can be modified by the user.
  4. Remarking can be enabled or disabled on access-uplink ports.
  5. An option is available to map FC and profile as follows:
    1. For MPLS packets — option to mark MPLS EXP values and dot1p bits along with DEI bit.
    2. For IP packets — option to mark IP DSCP and dot1p bits along with DEI bit.

Non-default network policy parameters can be modified. The no form of the command reverts to the default values.

Changes made to a policy are applied immediately to all access-uplink ports where the policy is applied. For this reason, when a policy requires several changes, Nokia recommends that you copy the policy to a work area policy-id. The work-in-progress copy can be modified, and then the original policy-id can be overwritten using the config qos copy command.

Refer to the CLI usage chapter in the 7210 SAS-D, Dxp, K 2F1C2T, K 2F6C4T, K 3SFP+ 8C Basic System Configuration Guide for information about the tasks and commands required to access the CLI, and to configure and maintain your devices.

7.3.3. Resource Allocation for Network QoS policy for 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

The queues required for network port egress, hybrid port egress, and access-uplink port egress are allocated from the egress queue system pool. Queues from the egress queue system pool are shared among SAP egress queues, access-uplink port egress queues, network port egress queues, and hybrid port egress queues.

The dot1p policy and DSCP policy resources used for network QoS ingress FC assignment on network ports, hybrid ports, and access-uplink ports are shared with the per-SAP ingress classification criteria from the system pool.

The MPLS EXP policy resources used for network QoS ingress FC assignment on network ports and hybrid ports are allocated from the system pool.

7.4. Basic Configurations for 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

    A basic network QoS policy must conform to the following:

  1. have a unique policy ID
  2. specify the default-action
  3. have a QoS policy scope of template or exclusive
  4. on a 7210 SAS platform, have at least one default unicast FC queue
  5. on a 7210 SAS platform, have at least one multipoint FC queue

7.4.1. Create a Network QoS Policy on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

This section provides information about creating a network QoS policy on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C.

7.4.1.1. Create a Network QoS Policy for Access-Uplink Ports on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

See Create a Network QoS Policy for Access-Uplink Ports on 7210 SAS-K 2F1C2T for more information.

7.4.1.1.1. Default Network Policy Values for Access-Uplink Ports on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

The default network policy for access-uplink ports is identified as policy-id 1. Default policies cannot be modified or deleted.

The following is a sample configuration output for default network policy ID 1 used for the access-uplink port on the 7210 SAS-K 2F6C4T.

*A:K-SASK12>config>qos>network# info
----------------------------------------------
            description "Default network-port QoS policy."
            ingress
                dot1p-classification 1
                queue 1 create
                exit
                queue 2 create
                    rate cir 25
                exit
                queue 3 create
                    rate cir 25
                exit
                queue 4 create
                    rate cir 25
                exit
                queue 5 create
                    rate cir 100
                exit
                queue 6 create
                    rate cir 100
                exit
                queue 7 create
                    rate cir 10
                exit
                queue 8 create
                    rate cir 10
                exit
                fc "af" create
                    queue 3
                    multicast-queue 3
                exit
                fc "be" create
                    queue 1
                    multicast-queue 1
                exit
                fc "ef" create
                    queue 6
                    multicast-queue 6
                exit
                fc "h1" create
                    queue 7
                    multicast-queue 7
                exit
                fc "h2" create
                    queue 5
                    multicast-queue 5
                exit
                fc "l1" create
                    queue 4
                    multicast-queue 4
                exit
                fc "l2" create
                    queue 2
                    multicast-queue 2
                exit
                fc "nc" create
                    queue 8
                    multicast-queue 8
                exit
            exit
            egress
            exit
----------------------------------------------
*A:K-SASK12>config>qos>network#

The following is a sample configuration output for default network policy ID 1 used for the access-uplink port on the 7210 SAS-K 3SFP+ 8C.

*A:Dut-A>config>qos>network# info detail 
----------------------------------------------
            description "Default network-port QoS policy."
            scope template
            ingress
                default-action fc be
                dot1p-classification 1
                no dscp-classification
                no mpls-lsp-exp-classification
                queue 1 create
                    rate cir 0 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 2 create
                    rate cir 10 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 3 create
                    rate cir 10 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 4 create
                    rate cir 10 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24            
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 5 create
                    rate cir 15 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 6 create
                    rate cir 15 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1        
                    slope-policy "default"
                exit
                queue 7 create
                    rate cir 5 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 8 create
                    rate cir 10 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit                  
                fc "af" create
                    queue 3
                    multicast-queue 3
                    no use-dei
                exit
                fc "be" create
                    queue 1
                    multicast-queue 1
                    no use-dei
                exit
                fc "ef" create
                    queue 6
                    multicast-queue 6
                    no use-dei
                exit
                fc "h1" create
                    queue 7
                    multicast-queue 7
                    no use-dei
                exit                  
                fc "h2" create
                    queue 5
                    multicast-queue 5
                    no use-dei
                exit
                fc "l1" create
                    queue 4
                    multicast-queue 4
                    no use-dei
                exit
                fc "l2" create
                    queue 2
                    multicast-queue 2
                    no use-dei
                exit
                fc "nc" create
                    queue 8
                    multicast-queue 8
                    no use-dei
                exit                  
            exit
            egress
                no remarking 
                remark 1
            exit
----------------------------------------------

7.4.1.2. Create a Network QoS Policy for Network Ports and Hybrid Ports on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

Configuring and applying QoS policies other than the default policy is optional. A default network policy is applied to each network port or hybrid port.

    To create a network QoS policy, define the following.

  1. Specify a network policy ID value. The system does not dynamically assign a value.
  2. Include a description that provides a brief overview of policy features.
  3. Use egress marking and remarking to specify the egress FC to marking value (for example, IEEE 802.1p and so on) map; otherwise, the default values are applied. The following are defined:
    1. remarking
      If enabled, the system remarks packets that egress the IP interfaces configured on the network port or hybrid port. The remarking is based on the FC to marking values mapping defined under the egress node of the network QoS policy. The user has an option to enable or disable remarking.
    2. FC criteria
      The FC name represents an egress queue. Specify FC criteria to define the marking criteria of packets flowing through it.
    3. marking value
      The marking (for example, IEEE 802.1p) value is used for all packets requiring marking that egress on this FC queue that are in or out of profile.
  4. Specify the ingress criteria to use for FC mapping for all packets using the following:
    1. default action
      Defines the default action to be taken for packets that have undefined dot1p bits set. The default-action specifies the FC to which the packets are assigned.
    2. The user has an option to specify either MPLS EXP and dot1p and IP DSCP to FC mapping for all packets. Ingress traffic that matches the specified criteria are assigned to the corresponding FC.

Use the following syntax to create a network QoS policy for network port on the 7210 SAS-K 2F6C4T or 7210 SAS-K 3SFP+ 8C.

config>qos>network

network network-policy-id [create]

no network network-policy-id

The following commands associate a network QoS policy with the network port on the 7210 SAS-K 2F6C4T or 7210 SAS-K 3SFP+ 8C.

*A:K-SASK12>config>qos>network# info
----------------------------------------------
            description "Default network QoS policy."
            ingress
                dot1p-classification 1
                dscp-classification 1
                mpls-lsp-exp-classification 1
                queue 1 create
                exit
                queue 2 create
                    rate cir 25
                exit
                queue 3 create
                    rate cir 25
                exit
                queue 4 create
                    rate cir 25
                exit
                queue 5 create
                    rate cir 100
                exit
                queue 6 create
                    rate cir 100
                exit
                queue 7 create
                    rate cir 10
                exit
                queue 8 create
                    rate cir 10
                exit
                fc "af" create
                    queue 3
                    multicast-queue 3
                exit
                fc "be" create
                    queue 1
                    multicast-queue 1
                exit
                fc "ef" create
                    queue 6
                    multicast-queue 6
                exit
                fc "h1" create
                    queue 7
                    multicast-queue 7
                exit
                fc "h2" create
                    queue 5
                    multicast-queue 5
                exit
                fc "l1" create
                    queue 4
                    multicast-queue 4
                exit
                fc "l2" create
                    queue 2
                    multicast-queue 2
                exit
                fc "nc" create
                    queue 8
                    multicast-queue 8
                exit
            exit
            egress
                remark 2
            exit
----------------------------------------------
*A:K-SASK12>config>qos>network#

The following is a sample configuration output for network port 1/1/1 with network policy 600 applied to the port.

#--------------------------------------------------
echo "Port Configuration"
#--------------------------------------------------
    port 1/1/1
        shutdown
        ethernet
            network
                qos 2
            exit
        exit
    exit
    port 1/1/2
        shutdown
        ethernet
            network
                qos 2
            exit
        exit
    exit
    port 1/1/3
        shutdown
        ethernet
            network
                qos 2
            exit
            connection-type copper
        exit
    exit
    port 1/1/4
        shutdown
        ethernet
            network
                qos 2
            exit
        exit
    exit
    port 1/1/5
        ethernet
            mode access
            access
            exit
            mtu 1518
        exit
        no shutdown
    exit
#--------------------------------------------------

7.4.1.3. Default Network Policy Values on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

The default network policy for network ports is identified as policy-id “2”. Default policies cannot be modified or deleted.

The following is a sample configuration output for default network policy ID 2 used for the network port on the 7210 SAS-K 2F6C4T.

*A:K-SASK12>config>qos>network# info detail
----------------------------------------------
            description "Default network QoS policy."
            scope template
            ingress
                default-action fc be
                dot1p-classification 1
                dscp-classification 1
                mpls-lsp-exp-classification 1
                queue 1 create
                    rate cir 0 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 2 create
                    rate cir 25 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 3 create
                    rate cir 25 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 4 create
                    rate cir 25 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 5 create
                    rate cir 100 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 6 create
                    rate cir 100 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 7 create
                    rate cir 10 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 8 create
                    rate cir 10 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                fc "af" create
                    queue 3
                    multicast-queue 3
                    no use-dei
                exit
                fc "be" create
                    queue 1
                    multicast-queue 1
                    no use-dei
                exit
                fc "ef" create
                    queue 6
                    multicast-queue 6
                    no use-dei
                exit
                fc "h1" create
                    queue 7
                    multicast-queue 7
                    no use-dei
                exit
                fc "h2" create
                    queue 5
                    multicast-queue 5
                    no use-dei
                exit
                fc "l1" create
                    queue 4
                    multicast-queue 4
                    no use-dei
                exit
                fc "l2" create
                    queue 2
                    multicast-queue 2
                    no use-dei
                exit
                fc "nc" create
                    queue 8
                    multicast-queue 8
                    no use-dei
                exit
            exit
            egress
                no remarking
                remark 2
            exit
----------------------------------------------
*A:K-SASK12>config>qos>network#

The following is a sample configuration output for default network policy ID 2 used for the network port on the 7210 SAS-K 3SFP+ 8C.

*A:Dut-A>config>qos>network# info detail 
----------------------------------------------
            description "Default network QoS policy."
            scope template
            ingress
                default-action fc be
                dot1p-classification 1
                dscp-classification 1
                mpls-lsp-exp-classification 1
                queue 1 create
                    rate cir 0 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 2 create
                    rate cir 10 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 3 create
                    rate cir 10 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 4 create
                    rate cir 10 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24            
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 5 create
                    rate cir 15 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 6 create
                    rate cir 15 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1        
                    slope-policy "default"
                exit
                queue 7 create
                    rate cir 5 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit
                queue 8 create
                    rate cir 10 pir 100
                    adaptation-rule cir closest pir closest
                    mbs 200
                    cbs 24
                    weight 1
                    priority 1
                    slope-policy "default"
                exit                  
                fc "af" create
                    queue 3
                    multicast-queue 3
                    no use-dei
                exit
                fc "be" create
                    queue 1
                    multicast-queue 1
                    no use-dei
                exit
                fc "ef" create
                    queue 6
                    multicast-queue 6
                    no use-dei
                exit
                fc "h1" create
                    queue 7
                    multicast-queue 7
                    no use-dei
                exit                  
                fc "h2" create
                    queue 5
                    multicast-queue 5
                    no use-dei
                exit
                fc "l1" create
                    queue 4
                    multicast-queue 4
                    no use-dei
                exit
                fc "l2" create
                    queue 2
                    multicast-queue 2
                    no use-dei
                exit
                fc "nc" create
                    queue 8
                    multicast-queue 8
                    no use-dei
                exit                  
            exit
            egress
                no remarking 
                remark 2
            exit
----------------------------------------------

7.5. DSCP Marking CPU Self-Generated Traffic

The user can configure DSCP marking for CPU-generated traffic on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C platforms only. See QoS for CPU Self-Generated Traffic on Network Interfaces for the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C for more information about QoS for self-generated (CPU) traffic on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C. Table 34 lists the default DSCP and dot1p marking values for the 7210 SAS-K 2F1C2T.

Note:

Protocols such as BGP, RSVP, TLDP, OSPF, and IS-IS are not supported on 7210 SAS devices configured in access-uplink mode.

Table 34:  DSCP and dot1p Marking for 7210 SAS-K 2F1C2T 

Protocol

IPv4

DSCP Marking

dot1p Marking

Default FC

DSCP Values

dot1p Values

SNMP

Yes

Yes

Yes

H2

34

4

NTP

Yes

Yes

Yes

H2

48

7

TELNET

Yes

Yes

Yes

H2

34

4

FTP

Yes

Yes

Yes

H2

34

4

TFTP

Yes

Yes

Yes

H2

34

4

SYSLOG

Yes

Yes

Yes

H2

34

4

TACACS

Yes

Yes

Yes

H2

34

4

RADIUS

Yes

Yes

Yes

H2

34

4

SSH

Yes

Yes

Yes

H2

34

7

ICMP Req

Yes

Yes

Yes

NC

0

7

ICMP Res

Yes

Yes

Yes

NC

0

7

ICMP Unreach

Yes

Yes

Yes

NC

0

7

SCP

NA

NA

Yes

H2

34

4

STP

NA

NA

Yes

NC

-

7

CFM

NA

NA

Yes

NC

-

7

ARP

NA

NA

Yes

NC

-

7

SNMP trap/log

Yes

Yes

Yes

H2

34

4

ICMP ping

Yes

Yes

Yes

NC

0

7

Trace route

Yes

Yes

Yes

NC

0

7

TACPLUS

Yes

Yes

Yes

H2

34

4

IGMP

Yes

Yes

Yes

NC

48

7

PTP

Yes

Yes

Yes

H2

48

7

Table 35 lists the default DSCP and dot1p marking values for the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C.

Table 35:  DSCP and dot1p Marking for 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C 

Protocol

IPv4

DSCP Marking

dot1p Marking

Default FC

DSCP Values (Decimal)

dot1p Values

OSPF

Yes

Yes

Yes

NC

48

7

ISIS

Yes

No

Yes

NC

-

7

TLDP

Yes

Yes

Yes

NC

48

7

RSVP

Yes

Yes

Yes

NC

48

7

SNMP

Yes

Yes

Yes

H2

34

4

NTP

Yes

Yes

Yes

NC

48

7

TELNET

Yes

Yes

Yes

H2

34

4

FTP

Yes

Yes

Yes

H2

34

4

TFTP

Yes

Yes

Yes

H2

34

4

SYSLOG

Yes

Yes

Yes

H2

34

4

TACACS

Yes

Yes

Yes

H2

34

4

RADIUS

Yes

Yes

Yes

NC

48

7

SSH

Yes

Yes

Yes

H2

34

4

ICMP Req

Yes

Yes

Yes

NC

0

7

ICMP Res

Yes

Yes

Yes

NC

0

7

ICMP Unreach

Yes

Yes

Yes

NC

0

7

SCP

Yes

Yes

Yes

H2

34

4

PIM (SSM)

Yes

Yes

Yes

NC

48

7

STP

NA

NA

Yes

NC

-

7

CFM

NA

NA

Yes

NC

-

7

ARP

NA

NA

Yes

NC

-

7

Trace route

Yes

Yes

Yes

NC

0

7

TACPLUS

Yes

Yes

Yes

H2

34

4

IGMP

Yes

Yes

Yes

NC

48

7

DNS

Yes

Yes

Yes

H2

34

4

BGP

Yes

Yes

Yes

NC

48

7

PTP (see note 1)

Yes

Yes

Yes

see note 1

see note 1

7

    Note:

  1. Based on the type of the PTP message, that is, PTP event messages (for example, Sync message) and PTP non-event messages (for example, Announce, Follow-up), the DSCP value used is either 0x30 (h1) or 0x38 (nc), and the dot1p value is always 7.
Note:

DSCP and dot1p values in Table 35 are applicable when remarking is disabled on the egress service object (for example, access port, SAP, and network port) used to send out the packets.

7.5.1. QoS for CPU Self-Generated Traffic on Network Interfaces for the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

DSCP, FC, and IEEE 802.1p values can be specified for use by protocol packets generated by the node. This enables prioritization or deprioritization of supported protocols.

DSCP marking for internally-generated control and management traffic should be used for a specified application. The DSCP marking can be configured per routing instance; for example, OSPF packets can carry a different DSCP marking for the base instance than for a VPRN service. ARP and IS-IS are not IP protocols, so only 802.1p values can be configured.

The DSCP value can also be set per application. When an application is configured to use a specified DSCP value and FC, the 802.1p and MPLS EXP bits are marked in accordance with the network (default 802.1p value of 7) or access (default 802.1p value of 0) egress policy, because it applies to the logical interface the packet is egressing.

Configuring self-generated QoS traffic is supported in the base router and VPRN service contexts.

Table 34 and Table 35 list the default values for self-generated traffic on network interfaces.

Note:

  1. ICMP echo requests (type 8) and ICMPv6 echo requests (type 128) initiated from the router use the DSCP value set using the ping command TOS value.
  2. Configurable values for BFD are not supported.
  3. On access SAP egress and access port egress, when remarking is not enabled, the dot1p value for all IP packets generated by the node is set to zero. To enable dot1p marking, remarking must be enabled.

7.5.2. Default DSCP Mapping

Table 36 lists the DSCP mapping between DSCP names and DSCP values (decimal, hexadecimal, and binary), and labels.

Table 36:  Default DSCP Mapping Table 

DSCP Name

DSCP Value Decimal

DSCP Value Hexadecimal

DSCP Value Binary

Label

Default

0

0x00

0b000000

be

nc1

48

0x30

0b110000

h1

nc2

56

0x38

0b111000

nc

ef

46

0x2e

0b101110

ef

af11

10

0x0a

0b001010

assured

af12

12

0x0c

0b001100

assured

af13

14

0x0e

0b001110

assured

af21

18

0x12

0b010010

l1

af22

20

0x14

0b010100

l1

af23

22

0x16

0b010110

l1

af31

26

0x1a

0b011010

l1

af32

28

0x1c

0b011100

l1

af33

30

0x1d

0b011110

l1

af41

34

0x22

0b0100010

h2

af42

36

0x24

0b100100

h2

af43

38

0x26

0b100110

h2

default 1

0

    Note:

  1. The default FC mapping is used for all DSCP names/values for which there is no explicit FC mapping.

7.6. Service Management Tasks

This section provides information about service management tasks.

7.6.1. Deleting QoS Policies

A network policy is associated by default with access-uplink ports.

You can replace the default policy with a non-default policy, but you cannot remove default policies from the configuration. When you remove a non-default policy, the policy association reverts to the appropriate default network policy.

7.6.2. Remove a Policy from the QoS Configuration

Use the following syntax to delete a network policy.

CLI Syntax:
config>qos# no network network-policy-id

7.6.3. Copying and Overwriting Network Policies

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 a network policy.

CLI Syntax:
config>qos# copy network source-policy-id dest-policy-id [overwrite]

The following is a sample configuration output.

A:ALA-12>config>qos# info detail
---------------------------------------------
...
        network 1 create
            description "Default network QoS policy."
            scope template
            ingress
                default-action fc be profile out
...
        network 600 create
            description "Default network QoS policy."
            scope template
            ingress
                default-action fc be profile out
...
        network 700 create
            description "Default network QoS policy."
            scope template
            ingress
                default-action fc be profile out
...
---------------------------------------------
A:ALA-12>config>qos# 
 

7.6.4. Editing QoS Policies

You can change existing policies, except the default policies, and entries in the CLI. The changes are applied immediately to all access uplink ports where the policy is applied. To prevent configuration errors, use the copy command to make a duplicate of the original policy to a work area, make the edits, and then overwrite the original policy.