7.7. Network QoS Policy Command Reference

7.7.1. Command Hierarchies

7.7.1.1. Configuration Commands for 7210 SAS-K 2F1C2T

— config
— qos
[no] network network-policy-id [create]
description description-string
scope {exclusive | template}
— no scope
egress
remark policy-id
— no remark
[no] remarking
[no] fc fc-name
default-action fc fc-name profile {in | out | use-dei}
dot1p-classification policy-id
dscp-classification policy-id
[no] fc fc-name
— no use-dei
queue queue-id [create]
— no queue queue-id
[no] adaptation-rule [pir adaptation-rule] [cir adaptation-rule]
cbs size-in-kbyte
— no cbs
mbs size-in-kbytes
— no mbs
priority level
— no priority
rate [cir cir-percent] [pir pir-percent]
— no rate
slope-policy name
weight weight
— no weight

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

— config
— qos
[no] network network-policy-id [create]
egress
remark policy-id
— no remark
[no] remarking
[no] fc fc-name
default-action fc fc-name profile {in | out | use-dei}
dot1p-classification policy-id
dscp-classification policy-id
[no] fc fc-name
— no use-dei
queue queue-id [create]
— no queue queue-id
[no] adaptation-rule [pir adaptation-rule] [cir adaptation-rule]
cbs size-in-kbyte
— no cbs
mbs size-in-kbytes
— no mbs
priority level
— no priority
rate [cir cir-percent] [pir pir-percent]
— no rate
slope-policy name
weight weight
— no weight
scope {exclusive | template}
— no scope

7.7.1.3. Self-generated Traffic Commands for 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

config
— router
application dscp-app-name dscp {dscp-value | dscp-name}
application dot1p-app-name dot1p dot1p-priority
— no application {dscp-app-name | dot1p-app-name}
dscp dscp-name fc fc-name
— no dscp dscp-name
— service
— vprn
application dscp-app-name dscp {dscp-value | dscp-name}
application dot1p-app-name dot1p dot1p-priority
— no application {dscp-app-name | dot1p-app-name}
dscp dscp-name fc fc-name
— no dscp dscp-name

7.7.1.4. Operational Commands

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

7.7.1.5. Show Commands

— show
— qos
network [network-policy-id] association
network [network-policy-id] [detail]
router [router-instance]
router service-name service-name
application [app-name] [dscp | dot1p]
dscp-map [dscp-name]

7.7.2. Command Descriptions

7.7.2.1. Configuration Commands

7.7.2.1.1. Generic Commands

description

Syntax 
description description-string
no description
Context 
config>qos>network
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 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.

7.7.2.1.2. Operational Commands

copy

Syntax 
copy network 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 QoS policy entries for a QoS policy ID to another QoS policy ID.

The copy command is used to create new policies using existing policies and also allows bulk modifications to an existing policy with the use of the overwrite keyword.

Parameters 
network src-pol dst-pol —
Specifies that the source and destination policies are network policy IDs. Specify the source policy that the copy command will copy and specify the destination policy to which the command will duplicate the policy to a new or different policy ID.
Values—
1 to 65535

 

overwrite—
Keyword to replace the existing destination policy. Everything in the existing destination policy will be overwritten with the contents of the source policy. If overwrite is not specified, an error will occur if the destination policy ID exists.

remark

Syntax 
remark policy-id
no remark
Context 
config>qos>network>egress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the remarking policy ID to use for marking packets on access-uplink port egress, network port egress, or hybrid port egress. The usage is as follows for different platforms.

  1. On the 7210 SAS-K 2F1C2T, this policy is used to configure marking for packets sent out of access-uplink ports.
  2. On the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C, this policy is used to configure marking for packets sent out of access-uplink ports, network ports, or hybrid ports, depending on the port that the policy is associated with.

For access-uplink ports, the remarking policy ID must be associated with the network QoS policy that is associated with the access-uplink port. Remarking must be enabled in the network QoS policy to enable marking of packets sent out of an access-uplink port. Only a remarking policy of type dot1p, dscp, or dot1p-dscp is allowed to be used when the remark policy is associated with access-uplink port egress. See Remark Policies for more information about remark policy types and its usage.

For network ports and hybrid ports, the remarking policy ID must be associated with the network QoS policy that is associated with the network port and hybrid port. Remarking must be enabled in the network QoS policy to enable marking of packets sent out of network IP interfaces that are configured on the network port or hybrid port. On network ports or hybrid ports, the dot1p bits are marked by default, irrespective of whether remarking is enabled or disabled. Only a remarking policy of type lsp-exp, dot1p, dscp, dot1p-dscp, dot1p-lsp-exp, or dot1p-dscp-lsp-exp is allowed when the remark policy is associated with network port egress. See Remark Policies for more information about remark policy types and their usage.

The no form of this command removes the explicit association of the remark policy and associates the default remark policy. If remarking is enabled and no remark policy is executed, then the default remark policy is used to mark sent packets. If no remark policy is executed and remarking is disabled, then packets are not remarked at all.

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

 

remarking

Syntax 
[no] remarking
Context 
config>qos>network>egress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configured marking for packets. The marking functionality is as follows.

  1. On the 7210 SAS-K 2F1C2T, this command enables marking for packets sent out of access-uplink ports.
  2. On the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C, this command enables marking for packets sent out of access-uplink ports, network ports, or hybrid ports, depending on the port that the policy is associated with.

When remarking is enabled, the remark policy configured in the QoS policy context is used to determine the FC to QoS bit mapping. For example, when remarking is enabled in the network QoS policy and remark policy of type dot1p is configured in the network QoS policy, then the FC to Dot1p mapping is used to mark packets sent out of the port.

See Remark Policies for more information on how to configure remark policies.

The no form of this command disables remarking.

Default 

no remarking

scope

Syntax 
scope {exclusive | template}
no scope
Context 
config>qos>network
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the network policy scope as exclusive or template.

The no form of this command reverts the scope of the policy to the default.

Default 

template

Parameters 
exclusive—
Specifies that the policy can only be applied to one interface. If a policy with an exclusive scope is assigned to a second interface an error message is generated. If the policy is removed from the exclusive interface, it will become available for assignment to another exclusive interface. The system default policies cannot be put into the exclusive scope. An error will be generated if scope exclusive is executed in any policies with a policy ID equal to 1.
template—
Specifies that the policy can be applied to multiple interfaces on the router. An error is generated if you try to modify the template scope parameter to exclusive scope on default policies.

7.7.2.1.3. Network QoS Policy Commands

network

Syntax 
network network-policy-id [create]
no network network-policy-id
Context 
config>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates or edits a QoS network policy. The network policy functionality is as follows.

  1. On the 7210 SAS-K 2F1C2T, the network policy defines the treatment the packets receive on ingress into and egress from the access-uplink port.
  2. On the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C, the network policy defines the treatment the packets receive on ingress into and egress from the access-uplink port, network port, and hybrid port.

On the 7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C, the network QoS policy associated with access-uplink port has ingress and egress components. These components are described as follows.

  1. The ingress component of the policy defines how dot1p bits or IP DSCP 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 7210 SAS. 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. It also defines the rate-limiting parameters for the traffic mapped to each forwarding classes. Traffic mapped to each forwarding class can be rate-limited using the same or separate queue for unicast and multipoint traffic.
  2. The egress component of the network qos policy defines the forwarding class and profile to packet header priority bits; for example, dot1p bits. Option is provided to map forwarding class to dot1p bits and IP DSCP bits.

On the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C, the network QoS policy associated with network ports or hybrid ports has ingress and egress components. These components are described as follows.

  1. The ingress component of the policy defines how MPLS EXP bits or dot1p bits or IP DSCP 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 7210 SAS. 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. It also defines the rate-limiting parameters for the traffic mapped to each forwarding classes. Traffic mapped to each forwarding class can be rate-limited using the same or separate queue for unicast and multipoint traffic.
  2. The egress component of the network QoS policy defines the forwarding class and profile to packet header priority bits (for example, dot1p bits). The option is provided to map the forwarding class to MPLS EXP bits, dot1p bits and IP DSCP bits.

The default network policy ID 1 is associated with access-uplink ports that do not have an explicit user configured policy and cannot be modified or deleted. The default network policy ID 2 is associated with network ports and hybrid ports that do not have an explicit user configured policy and cannot be modified or deleted. The default network policies define default mapping for packet header bits to the FCs on ingress and the mapping of the FC to queues.

If a new network policy is created, only the default action, default queues for unicast and multipoint traffic, and egress forwarding class parameters are identical to the default policy. A new network policy does not contain the default QoS bit to FC mapping (e.g. dot1p-to-FC mapping or EXP to FC mapping) for network QoS policy. The default network policy can be copied using the copy command to create a new network policy that includes the default ingress dot1p to FC mapping, as appropriate. You can modify parameters or use the no modifier to remove an object from the configuration.

Any changes made to an existing policy, using any of the sub-commands, will be applied immediately to all the ports where this policy is applied. For this reason, when many changes are required on a policy, it is highly recommended that the policy be copied to a work area policy ID. That work-in-progress policy can be modified until complete and then written over the original policy ID. Use the config qos copy command to maintain policies in this manner.

The no form of this command deletes the network policy. A policy cannot be deleted until it is removed from all entities where it is applied. The default network policy policy-id 1 cannot be deleted.

Default 

System Default Network Policy 1

Parameters 
network-policy-id—
Specifies the policy on the 7210 SAS.
Values—
1 to 65535

 

7.7.2.1.4. Network Egress QoS Policy Commands

egress

Syntax 
egress
Context 
config>qos>network
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to create or edit egress policy entries that specify the forwarding class to marking values maps to be instantiated when this policy is applied to the access-uplink port, network port, or hybrid port.

The forwarding class and profile states are mapped to marking values for all packets affected by the policy defined in this context.

fc

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the forwarding class name. The forwarding class name represents an egress queue. The FC name represents a CLI parent node that contains sub-commands or parameters describing the marking criteria of packets flowing through it. The fc command overrides the default parameters for that forwarding class to the values defined in the network default policy.

The no form of this command removes the forwarding class to marking value association. The forwarding class reverts to the mapping defined in the default network policy.

Default 

undefined forwarding classes default to the configured parameters in the default network policy ID 1

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

 

7.7.2.1.5. Network Ingress QoS Policy Commands

ingress

Syntax 
ingress
Context 
config>qos>network
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to creates or edits policy entries that specify the QoS bits to forwarding class mapping for all packets.

When pre-marked packets ingress on a network port or hybrid port, the QoS treatment through the 7210 SAS is based on the mapping defined on the current node.

default-action

Syntax 
default-action fc fc-name profile {in | out | use-dei}
Context 
config>qos>network>ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command defines or edits the default action to be taken for packets do not match any of the configured classification entries. The default-action command specifies the forwarding class to which such packets are assigned.

Multiple default-action commands will overwrite each previous default-action command.

Default 

default-action fc be profile out

Parameters 
fc fc-name —
Specifies the forwarding class name. All packets with dot1p or dot1p bits that is not defined will be placed in this forwarding class.
Values—
be, l2, af, l1, h2, ef, h1, nc

 

profile {in | out | use-dei}
Specifies that all packets assigned to this forwarding class will be considered in or out of profile based on this command.
Values—
in — Any packets matching the classification rule are treated as in-profile packets.
out — Any packets matching the classification rule are treated as out-of-profile packets.
use-dei — The DEI bit received in the Ethernet VLAN tag is used to determine the profile of the packets. The packet will be considered to be in-profile it the DEI bit value is 0 and out-of-profile is the DEI value is 1.

 

dot1p-classification

Syntax 
dot1p-classification policy-id
no dot1p-classification
Context 
config>qos>network>ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command associates a dot1p classification policy to a forwarding class and profile state based on the dot1p bits in the packet. The dot1p classification policy contains entries used to map traffic received on access-uplink ports, or traffic received in the context of a network IP interface configured on a network port or hybrid port.

The no form of this command disables the use of this policy.

Default 

no dot1p-classification-policy

Parameters 
policy-id—
Specifies the policy on the 7210 SAS.
Values—
1 to 65535

 

dscp-classification

Syntax 
dscp-classification policy-id
no dscp-classification
Context 
config>qos>network>ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command associates an IP DSCP classification policy to a forwarding class and profile state based on the IP DSCP bits in the packet. The IP DSCP classification policy contains entries used to map traffic received on access-uplink ports, or traffic received in the context of a network IP interface configured on a network port or hybrid port.

The no form of the policy disables the use of this policy.

Default 

no dscp-classification-policy

Parameters 
policy-id—
Specifies the policy on the 7210 SAS.
Values—
1 to 65535

 

mpls-lsp-exp-classification

Syntax 
mpls-lsp-exp-classification policy-id
no mpls-lsp-exp-classification
Context 
config>qos>network>ingress
Supported Platforms 

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

Description 

This command associates an mpls-lsp-exp classification policy to a forwarding class and profile state based on the MPLS EXP bits in the MPLS packet. The mpls-lsp-exp classification policy contains entries used to map traffic received in the context of a network IP interface configured on a network port or hybrid port.

The no form of this policy disables the use of this policy.

Default 

no mpls-lsp-exp-classification

Parameters 
policy-id—
Specifies the policy on the 7210 SAS.
Values—
1 to 65535

 

fc

Syntax 
fc fc-name [create]
no fc fc-name
Context 
config>qos>network>ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a class instance of the forwarding class. Once the fc-name is created, classification actions can be applied and it can be used in match classification criteria.

The no form of this command removes all the explicit queue mappings for fc-name forwarding types. The queue mappings revert to the default meters for fc-name.

Default 

undefined forwarding classes default to the configured parameters in the default policy policy-id 1

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

 

create—
Keyword to create the forwarding class. The create keyword requirement can be enabled or disabled in the environment>create context.

use-dei

Syntax 
[no] use-dei
Context 
config>qos>network>ingress>fc
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables DEI based classification. When enabled for packets classified to this FC, the DEI bit is used to determine the ingress profile for the packet. Packets received with DEI bit set to zero are treated as in-profile and packets with DEI bit set to one are treated as out-of-profile packets.

When DEI based classification is enabled under the FC context, it overrules the profile values specified in the classification entry used to assign the FC.

The no form of this command disables use of DEI bit for classification of packets.

Default 

no use-dei

7.7.2.1.6. Network Ingress Queue QoS Policy Commands

queue

Syntax 
queue queue-id [create]
no queue queue-id
Context 
config>qos>network>ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to modify queue parameters associated with a particular queue.

The queue ID to FC map is user defined. In other words, the user can map FC to queues identified by queue IDs as per their needs.

The no form of this command deletes the queue.

Parameters 
queue-id—
Specifies the ID of the queue.
Values—
1 to 8

 

create—
Keyword to create a network queue policy.

adaptation-rule

Syntax 
adaptation-rule [cir adaptation-rule] [pir adaptation-rule]
no adaptation-rule
Context 
config>qos>network>ingress>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command defines the method used by the system to derive the operational CIR and PIR rates when the queue is provisioned in hardware. For the cir and pir parameters, the system attempts to find the best operational rate depending on the defined constraint.

The no form of this command removes any explicitly defined constraints used to derive the operational CIR and PIR created by the application of the policy. When a specific adaptation-rule is removed, the default constraints for rate and cir apply.

Default 

adaptation-rule pir closest cir closest

Parameters 
cir adaptation-rule—
Specifies the adaptation rule and defines the constraints enforced when adapting the CIR rate defined using the queue queue-id rate command. The cir parameter requires a qualifier that defines the constraint used to derive the operational CIR rate for the queue. When the cir parameter is not specified, the default constraint applies. The max (maximum), min (minimum), and closest qualifiers are mutually exclusive.
Default—
closest
Values—
max — Specifies that the operational CIR value is less than or equal to the specified rate, taking into account the hardware step size. The hardware step size varies based on the rate and the platform.
min — Specifies that the operational CIR value is greater than or equal to the specified rate, taking into account the hardware step size. The hardware step size varies based on the rate and the platform.
closest — Specifies that the operational CIR value is equal to the closest specified rate, taking into account the hardware step size.The hardware step size varies based on the rate and the platform.

 

pir adaptation-rule—
Specifies the adaptation rule and defines the constraints enforced when adapting the PIR rate defined using the queue queue-id rate command. The pir parameter requires a qualifier that defines the constraint used when deriving the operational PIR rate for the queue. When the pir command is not specified, the default constraint applies. The max (maximum), min (minimum), and closest qualifiers are mutually exclusive.
Default—
closest
Values—
max — Specifies that the operational PIR value is less than or equal to the specified rate, taking into account the hardware step size. The hardware step size varies based on the rate and the platform.
min — Specifies that the operational PIR value is greater than or equal to the specified rate, taking into account the hardware step size. The hardware step size varies based on the rate and the platform.
closest — Specifies that the operational PIR value is equal to the closest specified rate, taking into account the hardware step size.The hardware step size varies based on the rate and the platform.

 

cbs

Syntax 
cbs size-in-kbytes
no cbs
Context 
config>qos>network>ingress>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the CBS value (minimum depth of the queue).

The no form of this command reverts to the default value.

Default 

32

Parameters 
size-in-kbytes—
Specifies the CBS value, in kilobytes.
Values—
0 to 10240 (7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T)
0 to 102400 (7210 SAS-K 3SFP+ 8C)

 

mbs

Syntax 
mbs size-in-kbytes
no mbs
Context 
config>qos>network>ingress>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the MBS value (maximum depth of the queue).

The no form of this command reverts to the default value.

Default 

512

Parameters 
size-in-kbytes—
Specifies the MBS value, in kilobytes.
Values—
0 to 12800 (7210 SAS-K 2F1C2T, 7210 SAS-K 2F6C4T)
0 to 63488 (7210 SAS-K 3SFP+ 8C)

 

priority

Syntax 
priority level
no priority
Context 
config>qos>network>ingress>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command defines the queue priority. The queue priority is used by the scheduler to determine the order of service in both the within-cir loop and within-pir loop. Higher priority queues are serviced before lower priority queues.

The no form of this command reverts to the default value.

Default 

1

Parameters 
level—
Specifies the priority of the queue.
Values—
1 to 4

 

rate

Syntax 
rate [cir cir-percent] [pir pir-percent]
no rate
Context 
config>qos>network>ingress>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command defines the administrative Peak Information Rate (PIR) and the administrative Committed Information Rate (CIR) parameters for the queue. The PIR defines the maximum rate that the queue can transmit packets through the port. Defining a PIR does not necessarily guarantee that the queue can transmit at the intended rate. The actual rate sustained by the queue can be limited by over subscription factors or available egress bandwidth. The CIR defines the rate at which the system prioritizes the queue over other queues competing for the same bandwidth.

The rate command can be executed at anytime, altering the PIR and CIR rates for all queues created on the access ports.

The no form of this command reverts all queues created with the queue ID by association with the QoS policy to the default PIR(100) and CIR(0).

Parameters 
cir cir percent —
Specifies the percentage of the guaranteed rate allowed for the queue. When the rate command is executed, a valid CIR setting must be explicitly defined. When the rate command has not been executed, the default CIR is assumed. The parameter must be given as positive integer.

The actual CIR rate is dependent on the queue’s adaptation-rule parameters and the actual hardware where the queue is provisioned.

Values—
0 to 100

 

Default—
0
pir pir-percent—
Specifies the percentage of the maximum rate allowed for the queue. When the rate command is executed, the PIR setting is optional. When the rate command has not been executed, or the PIR parameter is not explicitly specified, the default PIR is assumed. The parameter must be given as positive integer.
Values—
1 to 100

 

Default—
100

slope-policy

Syntax 
slope-policy name
no slope-policy
Context 
config>qos>network>ingress>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command overrides the default slope-policy configuration for the queue. The specified slope policy name must exist as a current slope policy name. If the slope policy does not exist, the slope-policy command will fail. If a slope policy is currently associated with a queue, the slope policy cannot be removed from the system.

The slope policy contains the ring and non-ring high and low WRED slope definitions that will be used by the queue. See Buffer Pools for more information about ring and non-ring buffer pools and slope usage.

If the slope-policy command is not executed or the no slope-policy command is executed, the default slope policy will be associated with the queue.

The no form of this command reverts the queue to the default slope policy.

Parameters 
name—
Specifies an existing slope policy name, up to 32 characters.

weight

Syntax 
weight weight
no weight
Context 
config>qos>network>ingress>queue
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the weight of the queue.

The configured weight determines the proportion of available bandwidth that is given to this queue in comparison to other queues contending for bandwidth at the same priority level.

The no form of this command reverts the weight to the default.

Default 

1

Parameters 
weight—
Specifies the weight of the queue.
Values—
1 to 100

 

7.7.2.1.7. Self-Generated Traffic Commands for 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C

sgt-qos

Syntax 
sgt-qos
Context 
config>router
config>service>vprn
Supported Platforms 

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

Description 

This command enables the context to configure DSCP and dot1p marking values for select self-generated traffic.

application

Syntax 
application dscp-app-name dscp {dscp-value | dscp-name}
application dot1p-app-name dot1p dot1p-priority
no application {dscp-app-name | dot1p-app-name}
Context 
config>router>sgt-qos
config>service>vprn>sgt-qos
Supported Platforms 

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

Description 

This command configures DSCP and dot1p marking values for self-generated application traffic. When an application is configured using this command, the specified DSCP name or value is used for all packets generated by this application within the router instance in which it is configured. The instances can be base router or VPRN service.

The values configured in this command are used to perform the following actions.

  1. The values are used to set the DSCP bits in the IP packet.
  2. The values are mapped to the FC.
  3. The values are used to set the Ethernet 802.1p and MPLS EXP bits in the egress QoS policy, as based on the FC. This includes ARP and IS-IS packets that, due to their nature, do not carry DSCP bits.
  4. The values are used to configure the IP DSCP value in the packet IP header when the remarking command is disabled in the egress QoS policy associated with the service object from which the packet is sent out of. If an egress QoS policy is configured and IP DSCP or dot1p remarking is enabled, the DSCP or dot1p bits in the packet header are remarked based on the FC assigned to the packet.

Only one DSCP name or value can be configured per application. If multiple entries are configured, the subsequent entry overrides the previously configured entry.

The no form of this command reverts to the default value.

Parameters 
dscp-app-name —
Specifies the DSCP application name.
Values—
The following values apply to the base router instance:
bgp, dhcp, dns, ftp, icmp, igmp, ldp, ndis, ntp, ospf, pim, ptp, radius, rip, rsvp, snmp, snmp-notification, ssh, syslog, tacplus, telnet, tftp, traceroute, vrrp
The following values apply to the VPRN instance:
bgp, dhcp, icmp, igmp, ndis, ospf, pim, ssh, telnet, traceroute, vrrp

 

dscp-value—
Specifies a value when this packet egresses. The respective egress policy should provide the mapping for the DSCP value to either LSP-EXP bits or dot1p bits as appropriate; otherwise, default mapping applies.
Values—
0 to 63

 

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

 

dot1p-priority—
Specifies the dot1p priority.
Values—
none, 0 to 7

 

dot1p-app-name—
Specifies the dot1p application name.
Values—
arp, isis

 

dscp

Syntax 
dscp dscp-name fc fc-name
no dscp dscp-name
Context 
config>router>sgt-qos
config>service>vprn>sgt-qos
Supported Platforms 

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

Description 

This command creates a mapping between the DSCP of the self-generated traffic and the forwarding class.

Self-generated traffic for configured applications that matches the specified DSCP will be assigned to the corresponding forwarding class. Multiple commands can be entered to define the association of some or all 64 DSCPs to a forwarding class.

All DSCP names that define a DSCP value must be explicitly defined.

The no form of this command removes the DSCP-to-FC association.

Parameters 
dscp-name—
Specifies the name of the DSCP to be associated with the forwarding class. Only an existing DSCP can be specified, and it can only be specified by its name. The software provides names for the well-known code points.
Values—
be, ef, cp1, cp2, cp3, cp4, cp5, cp6, cp7, cp9, cs1, cs2, cs3, cs4, cs5, nc1, nc2, af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cp11, cp13, cp15, cp17, cp19, cp21, cp23, cp25, cp27, cp29, cp31, cp33, cp35, cp37, cp39, cp41, cp42, cp43, cp44, cp45, cp47, cp49, cp50, cp51, cp52, cp53, cp54, cp55, cp57, cp58, cp59, cp60, cp61, cp62, cp63

 

fc fc-name
Specifies the forwarding class name. Applications and protocols that are configured under the dscp command will use the configured IP DSCP value.
Values—
be, l2, af, l1, h2, ef, h1, nc

 

7.7.2.2. Show Commands

network

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays network policy information.

Parameters 
network-policy-id—
Displays network information for the specific policy ID.
Default—
all network policies
Values—
1 to 65535

 

detail—
Displays information about ingress and egress dot1p EXP bit mappings and network policy interface associations.
association—
Displays policy associations.
Output 

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

Sample Output
*A:Dut-A>show>qos# network 2 detail
===============================================================================
QoS Network Policy
===============================================================================
-------------------------------------------------------------------------------
Network Policy (2)
-------------------------------------------------------------------------------
Policy-id        : 2
Egr Remark       : False                  Egr Rem Plcy     : N/A
Forward Class    : be                     Profile          : None
Scope            : Template
DOT1P Class Poli*: 1                      DSCP Class Polic*: 1
MPLS Lsp Exp Cla*: 1
Description      : Default network QoS policy.
-------------------------------------------------------------------------------
FC        Queue       MCast Queue Use Dei
-------------------------------------------------------------------------------
be        1           1           false
l2        2           2           false
af        3           3           false
l1        4           4           false
h2        5           5           false
ef        6           6           false
h1        7           7           false
nc        8           8           false
-------------------------------------------------------------------------------
Queue Rates and Rules
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        CIR          CIR Adpt Rule        PIR          PIR Adpt Rule
-------------------------------------------------------------------------------
Queue1          0              closest            100            closest
Queue2          25             closest            100            closest
Queue3          25             closest            100            closest
Queue4          25             closest            100            closest
Queue5          100            closest            100            closest
Queue6          100            closest            100            closest
Queue7          10             closest            100            closest
Queue8          10             closest            100            closest
-------------------------------------------------------------------------------
Queue Priority and Weight Details
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId         Priority      Weight
-------------------------------------------------------------------------------
Queue1          1             1
Queue2          1             1
Queue3          1             1
Queue4          1             1
Queue5          1             1
Queue6          1             1
Queue7          1             1
Queue8          1             1
-------------------------------------------------------------------------------
High Slope Non Ring
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        State      Start-Avg(%)   Max-Avg(%)   Max-Prob(%)
-------------------------------------------------------------------------------
Queue1          Down            70           90            80
Queue2          Down            70           90            80
Queue3          Down            70           90            80
Queue4          Down            70           90            80
Queue5          Down            70           90            80
Queue6          Down            70           90            80
Queue7          Down            70           90            80
Queue8          Down            70           90            80
-------------------------------------------------------------------------------
Low Slope Non Ring
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        State      Start-Avg(%)   Max-Avg(%)   Max-Prob(%)
-------------------------------------------------------------------------------
Queue1          Down            50           75            80
Queue2          Down            50           75            80
Queue3          Down            50           75            80
Queue4          Down            50           75            80
Queue5          Down            50           75            80
Queue6          Down            50           75            80
Queue7          Down            50           75            80
Queue8          Down            50           75            80
-------------------------------------------------------------------------------
High Slope Ring
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        State      Start-Avg(%)   Max-Avg(%)   Max-Prob(%)
-------------------------------------------------------------------------------
Queue1          Down            70           90            80
Queue2          Down            70           90            80
Queue3          Down            70           90            80
Queue4          Down            70           90            80
Queue5          Down            70           90            80
Queue6          Down            70           90            80
Queue7          Down            70           90            80
Queue8          Down            70           90            80
-------------------------------------------------------------------------------
Low Slope Ring
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        State      Start-Avg(%)   Max-Avg(%)   Max-Prob(%)
-------------------------------------------------------------------------------
Queue1          Down            50           75            80
Queue2          Down            50           75            80
Queue3          Down            50           75            80
Queue4          Down            50           75            80
Queue5          Down            50           75            80
Queue6          Down            50           75            80
Queue7          Down            50           75            80
Queue8          Down            50           75            80
-------------------------------------------------------------------------------
Slope Policies
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
QueueId        CBS(KBytes)  MBS(KBytes)    Slope-Policy
-------------------------------------------------------------------------------
Queue1           24          200           default
Queue2           24          200           default
Queue3           24          200           default
Queue4           24          200           default
Queue5           24          200           default
Queue6           24          200           default
Queue7           24          200           default
Queue8           24          200           default
-------------------------------------------------------------------------------
Port Attachments
-------------------------------------------------------------------------------
Port-id : 1/1/1
Port-id : 1/1/2
Port-id : 1/1/3
Port-id : 1/1/4
Port-id : 1/1/5
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:Dut-A>show>qos#
 
 
*A:SAH01-051>show>qos# network 1 association
===============================================================================
QoS Network Policy
===============================================================================
-------------------------------------------------------------------------------
Network Policy (1)
-------------------------------------------------------------------------------
Policy-id      : 1
Egr Remark     : False
Forward Class  : be                           Profile      : None
Scope          : Template
DOT1P Class Po*: 1                            DSCP Class P*: 0
Description    : Default network-port QoS policy.
 
-------------------------------------------------------------------------------
Port Attachments
-------------------------------------------------------------------------------
No Matching Entries
 
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:SAH01-051>show>qos#
Table 37:  Output Fields: QoS Network 

Label

Description

Policy-Id

The ID that uniquely identifies the policy

Description

A text string that helps identify the policy’s context in the configuration file

Forward Class/ FC Name

Specifies the forwarding class name

Profile

Out — Indicates that packets are classified as out-profile

In — Indicates packets are classified as in-profile

None — Indicates packets profile is undefined

DOT1P Class

Specifies the dot1p-classification policy ID that is being used for mapping the packets to different FC under the FCs based on the dot1p bits

DSCP classification

Specifies the dscp-classification policy ID that is being used for mapping the packets to different FC under the FCs based on the dscp bits

High Slope Non Ring

Specifies the non-ring high-slope policy values

Low Slope Non Ring

Specifies the non-ring low-slope values

High Slope Ring

Specifies the ring high-slope values

Slope Policies

Displays the slope policies applied to the queues

router

Syntax 
router [router-instance]
router service-name service-name
Context 
show
Supported Platforms 

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

Description 

This command enables the context to show router information.

Parameters 
router-instance—
Specifies the router name or service ID.
Values—
router-name — Base
service-id — 1 to 2147483647

 

Default—
Base
service-name—
Specifies the service name, up to 64 characters.

sgt-qos

Syntax 
sgt-qos
Context 
show>router
Supported Platforms 

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

Description 

This command displays QoS information about self-generated traffic. The value “none” in the output indicates that the default value is used; it does not mean that there is no value set. For a list of application defaults, see Table 32.

application

Syntax 
application [app-name] [dscp | dot1p]
Context 
show>router>sgt-qos
Supported Platforms 

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

Description 

This command displays application QoS settings.

Parameters 
app-name—
Specifies the application name.
Values—
The following values apply to the base router instance:
bgp, dhcp, dns, ftp, icmp, igmp, ldp, ndis, ntp, ospf, pim, ptp, radius, rip, rsvp, snmp, snmp-notification, ssh, syslog, tacplus, telnet, tftp, traceroute, vrrp
The following values apply to a VPRN service instance:
bgp, icmp, igmp, ndis, ospf, pim, ssh, telnet, traceroute, vrrp
Note:

  1. The ptp value in the context of SGT QoS is defined as Precision Timing Protocol (PTP) and is an application. The PTP application name is also used in areas such as event-control and logging. PTP is defined in IEEE 1588-2008.
  2. The ptp value in the context of IP filters is defined as Performance Transparency Protocol (PTP). IP protocols can be used as IP filter match criteria; the match is made on the 8-bit protocol field in the IP header.

 

dscp—
Displays all DSCP applications.
dot1p—
Displays all dot1p applications.
Output 

The following outputs are examples of application QoS information, and Table 38 describes the output fields.

Sample Output (Router)
*A:SASM2-DUTA# show router sgt-qos application 
===============================================================================
DSCP Application Values
===============================================================================
Application         DSCP Value                    Default DSCP Value
-------------------------------------------------------------------------------
bgp                 none                          none
dns                 none                          none
ftp                 none                          none
icmp                none                          none
igmp                none                          none
ldp                 none                          none
ndis                none                          none
ntp                 none                          none
ospf                none                          none
pim                 none                          none
ptp                 none                          none
radius              none                          none
rsvp                none                          none
snmp                none                          none
snmp-notification   none                          none
ssh                 none                          none
syslog              none                          none
tacplus             none                          none
telnet              none                          none
tftp                none                          none
traceroute          none                          none
vrrp                none                          none
===============================================================================
===============================================================================
Dot1p Application Values
===============================================================================
Application         Dot1p Value                   Default Dot1p Value
-------------------------------------------------------------------------------
arp                 none                          none
isis                none                          none
===============================================================================
*A:SASM2-DUTA# 
*A:SASM2-DUTA# show router sgt-qos application arp 
===============================================================================
Dot1p Application Values
===============================================================================
Application         Dot1p Value                   Default Dot1p Value
-------------------------------------------------------------------------------
arp                 none                          none
===============================================================================
*A:SASM2-DUTA# 

Sample output (VPRN Service Instance )

=======================
*A:SASM2-DUTA# show router 1 sgt-qos application  
===============================================================================
DSCP Application Values
===============================================================================
Application         DSCP Value                    Default DSCP Value
-------------------------------------------------------------------------------
bgp                 none                          none
icmp                cp17                          none
igmp                none                          none
ndis                none                          none
ospf                none                          none
pim                 none                          none
ssh                 none                          none
telnet              none                          none
traceroute          none                          none
vrrp                none                          none
===============================================================================
===============================================================================
Dot1p Application Values
===============================================================================
Application         Dot1p Value                   Default Dot1p Value
-------------------------------------------------------------------------------
arp                 none                          none
isis                none                          none
===============================================================================
*A:SASM2-DUTA#    
*A:SASM2-DUTA>config>service# \show router 1 sgt-qos application  arp 
===============================================================================
Dot1p Application Values
===============================================================================
Application         Dot1p Value                   Default Dot1p Value
-------------------------------------------------------------------------------
arp                 none                          none
===============================================================================
*A:SASM2-DUTA# 
Table 38:  Output Fields: SGT-QoS Application 

Label

Description

Application

The DSCP or dot1p application

DSCP Value

The DSCP name or value assigned to the application; if you assign a value to the application (0 to 63), the DSCP name that maps to the value is displayed

Default DSCP Value

The default DSCP value

Dot1p Value

The dot1p priority assigned to the application (applies only to ARP and IS-IS)

Default Dot1p Value

The default dot1p value

dscp-map

Syntax 
dscp-map [dscp-name]
Context 
show>router>sgt-qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays DSCP-to-FC mappings.

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

 

Output 

The following output is an example of DSCP-to-FC mapping information, and Table 39 describes the output fields.

Output Sample for Router
*A:SASM2-DUTA# show router sgt-qos dscp-map 
===============================================================================
DSCP to FC Mappings
===============================================================================
DSCP Value          FC Value            Default FC Value
-------------------------------------------------------------------------------
be                  nc                  nc
cp1                 be                  be
cp2                 be                  be
cp3                 be                  be
cp4                 be                  be
cp5                 be                  be
cp6                 be                  be
cp7                 be                  be
cs1                 be                  be
cp9                 be                  be
af11                af                  af
cp11                be                  be
af12                af                  af
cp13                be                  be
af13                af                  af
cp15                be                  be
cs2                 be                  be
cp17                be                  be
af21                l1                  l1
cp19                be                  be
af22                l1                  l1
cp21                be                  be
af23                l1                  l1
cp23                be                  be
cs3                 be                  be
cp25                be                  be
af31                l1                  l1
cp27                be                  be
af32                l1                  l1
cp29                be                  be
af33                h2                  l1
cp31                be                  be
cs4                 be                  be
cp33                be                  be
af41                nc                  nc
cp35                be                  be
af42                h2                  h2
cp37                be                  be
af43                h2                  h2
cp39                be                  be
cs5                 be                  be
cp41                be                  be
cp42                be                  be
cp43                be                  be
cp44                be                  be
cp45                be                  be
ef                  ef                  ef
cp47                be                  be
nc1                 nc                  nc
cp49                be                  be
cp50                h2                  h2
cp51                be                  be
cp52                be                  be
cp53                be                  be
cp54                be                  be
cp55                be                  be
nc2                 nc                  nc
cp57                be                  be
cp58                be                  be
cp59                be                  be
cp60                be                  be
cp61                be                  be
cp62                be                  be
cp63                be                  be
===============================================================================
*A:SASM2-DUTA# 

Output Sample (VPRN Service Instance)

*A:SASM2-DUTA# show router 1 sgt-qos dscp-map 
===============================================================================
DSCP to FC Mappings
===============================================================================
DSCP Value          FC Value            Default FC Value
-------------------------------------------------------------------------------
be                  nc                  nc
cp1                 be                  be
cp2                 be                  be
cp3                 be                  be
cp4                 be                  be
cp5                 be                  be
cp6                 be                  be
cp7                 be                  be
cs1                 be                  be
cp9                 be                  be
af11                af                  af
cp11                be                  be
af12                af                  af
cp13                be                  be
af13                af                  af
cp15                be                  be
cs2                 be                  be
cp17                ef                  be
af21                l1                  l1
cp19                be                  be
af22                l1                  l1
cp21                be                  be
af23                l1                  l1
cp23                be                  be
cs3                 be                  be
cp25                be                  be
af31                l1                  l1
cp27                be                  be
af32                l1                  l1
cp29                be                  be
af33                l1                  l1
cp31                be                  be
cs4                 be                  be
cp33                be                  be
af41                nc                  nc
cp35                be                  be
af42                h2                  h2
cp37                be                  be
af43                h2                  h2
cp39                be                  be
cs5                 be                  be
cp41                be                  be
cp42                be                  be
cp43                be                  be
cp44                be                  be
cp45                be                  be
ef                  ef                  ef
cp47                be                  be
nc1                 nc                  nc
cp49                be                  be
cp50                h2                  h2
cp51                be                  be
cp52                be                  be
cp53                be                  be
cp54                be                  be
cp55                be                  be
nc2                 nc                  nc
cp57                be                  be
cp58                be                  be
cp59                be                  be
cp60                be                  be
cp61                be                  be
cp62                be                  be
cp63                be                  be
===============================================================================
*A:SASM2-DUTA# 
Table 39:  Output Fields: SGT-QoS DSCP Map 

Label

Description

DSCP Value

The DSCP values (displayed as names) of the self-generated traffic

FC Value

The FC value mapped to each DSCP value

Default FC Value

The default FC value