7.4. Command descriptions

7.4.1. Configuration commands

7.4.1.1. Generic commands

description

Syntax 
description description-string
no description
Context 
config>qos>network
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, etc.), the entire string must be enclosed within double quotes.

7.4.1.2. Operational commands

copy

Syntax 
copy network src-pol dst-pol [overwrite]
Context 
config>qos
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. It 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. Specifies the source policy that the copy command will copy and the destination policy to which the command will duplicate the policy to a new or different policy ID.
Values—
1 to 65535

 

overwrite—
Specifies that everything in the existing destination policy is overwritten with the contents of the source policy. If overwrite is not specified, an error occurs if the destination policy ID exists.

remarking

Syntax 
[no] remarking {use-dot1p | use-dscp | all}
Context 
config>qos>network>egress
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command remarks egress packets sent out of access ports and access-uplink ports. Remarking can be enabled or disabled. On access port and access-uplink port egress, the behavior is as follows.

If remarking is enabled without specifying one of the options, by default 'use-dot1p' is used for access-egress and “all” is used for network-egress (that is, access-uplink port egress).

The no form of this command disables remarking.

Default 

no remarking

Parameters 
use-dot1p—
Specifies that the dot1p bits are marked in the packet header for all IEEE 802.1q and IEEE 802.1p encapsulated traffic sent out of the access port.
use-dscp—
Specifies that the IP DSCP bits are marked in the packet header for IPv4 traffic sent out of the access port.
all—
Specifies that the dot1p bits are marked in the packet header for all IEEE 802.1q and IEEE 802.1p encapsulated traffic, and in addition the IP DSCP bits are marked in the packet header for all IPv4 traffic sent out the access port.

scope

Syntax 
scope {exclusive | template}
no scope
Context 
config>qos>network
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 to the default value.

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, the policy becomes available for assignment to another exclusive interface.

The system default policies cannot be put into the exclusive scope. An error is generated if scope exclusive is executed in any policies with a policy-id equal to 1.

template—
Specifies that the scope of a policy is defined as template, the policy can be applied to multiple interfaces on the router.

Default QoS policies are configured with template scopes. An error is generated if you try to modify the scope template parameter to scope exclusive on default policies.

7.4.1.3. Network QoS policy commands

network

Syntax 
network network-policy-id [create]
no network network-policy-id
Context 
config>qos
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 defines the treatment packets receive as they ingress and egress the access uplink port and network IP interface in network mode of operation.

The QoS network policy consists of an ingress and egress component. The ingress component of the policy defines how dot1p bits are mapped to the internal FC and profile state. The FC 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 FC. Traffic mapped to each FC can be rate limited using separate meters for unicast and multipoint traffic.

The egress component of the network QoS policy defines the FC and profile to packet header priority bits (for example: dot1p bits).

The network policy 1 cannot be modified or deleted. It defines the default dot1p to FC mapping and default meters for unicast traffic and optional multipoint meters for BUM traffic on the, ingress. For the egress, it defines eight FCs which represent individual queues and the packet marking behavior.

If a new network policy is created (for instance, policy 2), only the default action and egress FC parameters are identical to the default policy. A new network policy does not contain the default dot1p to FC mapping for network QoS policy. The default network policy can be copied (use 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.

Changes made to an existing policy, using any of the sub-commands, are applied immediately to all access uplink ports where this policy is applied. For this reason, when many changes are required on a policy, Nokia highly recommends that the policy be copied to a work area. 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 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

 

create—
Specifies that a QoS network policy is created.

7.4.1.4. Network ingress QoS policy commands

fc

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a class instance of the FC. After the fc-name is created, classification actions can be applied, which can be used in match classification criteria. By default, undefined FCs use the parameters configured in the default policy policy-id 1.

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

Parameters 
fc-name—
Specifies the case-sensitive, system-defined FC name for which policy entries will be created.
Values—
be | l2 | af | l1 | h2 | ef | h1 | nc

 

create—
Specifies that the FC is created. The create keyword requirement can be enabled in the environment>create context.

ingress

Syntax 
ingress
Context 
config>qos>network
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

Commands in this context create or edit policy entries that specify the dot1p to FC mapping for all packets.

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

default-action

Syntax 
default-action fc fc-name [profile {in | out}]
Context 
config>qos>network>ingress
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the default action taken for packets that have undefined dot1p bits set. The default-action command specifies the FC 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 FC name. All packets with dot1p or dot1p bits that are not defined are placed in this FC.
Values—
be | l2 | af | l1 | h2 | e | h1 | nc

 

profile {in | out}
Specifies an in or out of profile for all packets assigned to this FC. A value of 'in' defines the packet profile as 'in-profile' and a value of 'out' defines the packet profile to be 'out-of-profile.

fc

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a class instance of the FC. After the fc-name is created, classification actions can be applied and it can be used in match classification criteria. By default, undefined FCs use the parameters configured in the default network policy policy-id 1.

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

Parameters 
fc-name—
Specifies the case-sensitive system-defined FC name for which policy entries are created.
Values—
be | l2 | af | l1 | h2 | ef | h1 | | nc

 

create—
Specifies that the FC is created. The create keyword requirement can be enabled in the environment>create context.

dot1p

Syntax 
dot1p dot1p-priority fc fc-name profile {in|out}
no dot1p dot1p-priority
Context 
config>qos>network>ingress
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command explicitly sets the FC or enqueuing priority and profile of the packet when a packet has the dot1p-priority specified. Adding a dot1p rule on the policy forces packets that match the dot1p-priority specified to be assigned to the FC and profile of the packet based on the parameters included in the dot1p rule.

The dot1p-priority is derived from the most significant three bits in the IEEE 802.1Q or IEEE 802.1P header. The three dot1p bits define 8 Class-of-Service (CoS) values commonly used to map packets to per-hop QoS behavior.

The no form of this command removes the explicit dot1p classification rule from the policy. Removing the rule from the policy immediately removes the rule from all ingress SAP ports using the policy.

Parameters 
dot1p-priority—
Specifies the unique IEEE 802.1P value that will match the dot1p rule. If the command is executed multiple times with the same dot1p-priority value, the previous FC is overridden by the new parameters.

A maximum of eight dot1p rules are allowed on a single policy.

Values—
0 to 7

 

fc fc-name
Specifies a value that must be one of the predefined FCs in the system. Specifying the fc-name is optional. When a packet matches the rule, the FC is only overridden when the fc fc-name parameter is defined on the rule. If the packet matches and the FC is not explicitly defined in the rule, the FC is inherited based on previous rule matches.
Values—
be | l2 | af | l1 | h2 | ef | h1 | nc

 

profile {in|out}
Specifies an in or out of profile for all packets assigned to this FC. A value of 'in' defines the packet profile as 'in-profile' and a value of 'out' defines the packet profile to be 'out-of-profile.

meter

Syntax 
meter meter-id [multipoint] [create]
no meter meter-id
Context 
config>qos>network>ingress
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures an ingress network QoS policy meter. The meter command allows the creation of multipoint meters. Only multipoint meters can receive ingress packets that need to be sent to multiple destinations.

Multipoint meters are for traffic bound to multiple destinations. Within non-multipoint services, such as Epipe services, all traffic is considered unicast because of the nature of the service type. Multicast and broadcast-destined traffic in an Epipe service will not be mapped to a multipoint service meter.

The no form of this command removes the meter-id from the network ingress QoS policy and from any existing ports using the policy. If any FC forwarding types are mapped to the meter, they revert to their default meters. When a meter is removed, any pending accounting information is discarded for each port meter created because of the definition of the meter in the policy is discarded.

Default 

meter 1 (for unicast traffic)

meter 9 multipoint (for traffic other than unicast traffic)

Parameters 
meter-id—
Specifies the meter-id that uniquely identifies the meter within the policy. This is a required parameter each time the meter command is executed.
Values—
1 to 12

 

multipoint—
Specifies that this meter-id is for multipoint forwarded traffic only. This meter-id can only be explicitly mapped to the FC multicast, broadcast, or unknown unicast ingress traffic. If you attempt to map FC unicast traffic to a multipoint queue, an error is generated and no changes are made to the current unicast traffic queue mapping.

The meter must be created as multipoint. The multipoint designator cannot be defined after the meter is created. If an attempt is made to modify the command to include the multipoint keyword, an error is generated and the command does not execute.

The multipoint keyword can be entered in the command line on a pre-existing multipoint meter to edit meter-id parameters.

create—
Keyword to create the ingress network QoS policy meter.

meter

Syntax 
meter meter-id
no meter
Context 
config>qos>network>ingress>fc
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command overrides the default unicast forwarding type meter mapping for fc fc-name. The specified meter-id must exist within the policy as a non-multipoint meter before the mapping can be made. After the FC mapping is executed, all unicast traffic on a port using this policy is forwarded using the meter-id.

The no form of this command reverts the unicast (point-to-point) meter ID back to the default meter for the FC.

Default 

meter 1

Parameters 
meter-id—
Specifies the meter ID. The specified parameter must be an existing, non-multipoint meter defined in the config>qos>network>ingress context.
Values—
1 to 12

 

multicast-meter

Syntax 
multicast-meter meter-id
no multicast-meter
Context 
config>qos>network>ingress>fc
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command overrides the default multicast forwarding type meter mapping for fc fc-name. The specified meter-id must exist within the policy as a multipoint meter before the mapping can be made. After the FC mapping is executed, all multicast traffic on a port using this policy is forwarded using the meter ID.

The no form of this command reverts the multicast forwarding type meter-id to the default meter for the FC.

Default 

9

Parameters 
meter-id—
Specifies the multicast meter. The specified parameter must be an existing multipoint meter defined in the config>qos>network>ingress context.
Values—
2 to 12

 

adaptation-rule

Syntax 
adaptation-rule [cir adaptation-rule] [pir adaptation-rule]
no adaptation-rule
Context 
config>qos>network>ingress>meter
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 meter 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 cir closest pir closest

Parameters 
cir adaptation-rule—
Specifies the adaptation rule and defines the constraints enforced to adapt the CIR rate defined using the meter meter-id rate command. The cir parameter requires a qualifier that defines the constraint used to derive the operational CIR rate for the meter. 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 CIR value is equal to or less than the specified rate, taking into account the hardware step size. When max is defined, the operational CIR is the next multiple of 8 kbps (for 7210 SAS-D) equal to or less than the specified rate. For 7210 SAS-Dxp, see Adaptation rule for meters on 7210 SAS-Dxp devices for information about calculating the next multiple equal to or less than the specified rate.
min — Specifies that the operational CIR value is equal to or greater than the specified rate, taking into account the hardware step size. When min is defined, the operational CIR is the next multiple of 8 kbps (for 7210 SAS-D) equal to or greater than the specified rate. For 7210 SAS-Dxp, see Adaptation rule for meters on 7210 SAS-Dxp devices for information about calculating the next multiple equal to or greater than the specified rate.
closest — Specifies that the operational CIR value is equal to the closest specified rate, taking into account the hardware step size. When closest is defined, the operational CIR is the next multiple of 8 kbps (for 7210 SAS-D) closest to the specified rate. For 7210 SAS-Dxp, see Adaptation rule for meters on 7210 SAS-Dxp devices for information about calculating the next multiple closest to the specified rate.

 

pir adaptation-rule
Specifies the adaptation rule and defines the constraints enforced to adapt the PIR rate defined using the meter meter-id rate command. The pir parameter requires a qualifier that defines the constraint used to derive the operational PIR rate for the meter. 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. When max is defined, the operational PIR is the next multiple of 8 kbps (for 7210 SAS-D) equal to or less than the specified rate. For 7210 SAS-Dxp, see Adaptation rule for meters on 7210 SAS-Dxp devices for information about calculating the next multiple equal to or less than the specified rate.
min — Specifies that the operational PIR value is equal to or greater than the specified rate, taking into account the hardware step size. When min is defined, the operational PIR is the next multiple of 8 kbps (for 7210 SAS-D) equal to or greater than the specified rate. For 7210 SAS-Dxp, see Adaptation rule for meters on 7210 SAS-Dxp devices for information about calculating the next multiple equal to or greater than the specified rate.
closest — Specifies that the operational PIR value is equal to the closest specified rate, taking into account the hardware step size. When closest is defined, the operational PIR is the next multiple of 8 kbps (for 7210 SAS-D) closest to the specified rate. For 7210 SAS-Dxp, see Adaptation rule for meters on 7210 SAS-Dxp devices for information about calculating the next multiple closest to the specified rate.

 

cbs

Syntax 
cbs size [kbits | bytes | kbytes]
no cbs
Context 
config>qos>network>ingress>meter
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command overrides the default CBS for the meter. The committed burst size parameter specifies the maximum burst size that can be transmitted by the source while still complying with the CIR. If the transmitted burst is lower than the CBS value, the packets are marked as in-profile by the meter to indicate that the traffic is complying with meter-configured parameters.

Note:

The adaptation rule configured for the rate influences the step-size used for the burst. See Adaptation rule for meters for information.

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

Default 

32 kbits

Parameters 
size—
Specifies the size parameter is an integer expression of the number of kilobits, kilobytes, or bytes reserved for the meter; for example, if a value of 100 kb is desired, then enter the value 100. The bucket size is rounded to the next highest 4096 bytes boundary.
Values—
kbits — 4 to 16384, default (7210 SAS-D)
             4 to 2146959, default (7210 SAS-Dxp)
bytes — 512 to 2097152, default (7210 SAS-D)
              512 to 274810752, default (7210 SAS-Dxp)
kbytes — 1 to 2048, default (7210 SAS-D)
                1 to 268369, default (7210 SAS-Dxp)

 

kbits—
Specifies that the value is in kilobits.
bytes—
Specifies that the value is in kilobytes.
kbytes—
Specifies that the value is in bytes.

mbs

Syntax 
mbs size [kbits|bytes|kbytes]
no mbs
Context 
config>qos>network>ingress>meter
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command overrides the default MBS for the meter. The maximum burst size parameter specifies the maximum burst size that can be transmitted by the source while still complying with the CIR. If the transmitted burst is lower than the MBS value, the packets are marked as in-profile by the meter to indicate that the traffic is complying with meter-configured parameters.

Note:

The adaptation rule configured for the rate influences the step-size used for the burst. See Adaptation rule for meters for information.

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

Default 

128 kbits

Parameters 
size—
Specifies the size parameter is an integer expression of the number of kilobits reserved for the meter; for example, if a value of 100 kb is desired, then enter the value 100. The bucket size is rounded off to the next highest 4096 bytes boundary.
Values—
kbits — 4 to 16384, default (7210 SAS-D)
             4 to 2146959, default (7210 SAS-Dxp)
bytes — 512 to 2097152, default (7210 SAS-D)
              512 to 274810752, default (7210 SAS-Dxp)
kbytes — 1 to 2048, default (7210 SAS-D)
                1 to 268369, default (7210 SAS-Dxp)

 

kbits—
Specifies that the value is in kilobits.
bytes—
Specifies that the value is in kilobytes.
kbytes—
Specifies that the value is in bytes.

mode

Syntax 
mode {trtcm1|srtcm}
no mode
Context 
config>qos>network>ingress>meter
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command defines the mode of the meter. The mode can be configured as Two Rate Three Color Marker (trTCM1) or Single Rate Three Color Marker (srTCM). The mode command can be executed at any time.

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

Default 

trtcm1

Parameters 
trtcm1—
Specifies the policing algorithm defined in RFC2698 and meters the packet stream and marks its packets green, yellow, or red. A packet is marked red if it exceeds the PIR. Otherwise, it is marked yellow or green depending on whether it exceeds or doesn't exceed the CIR. The trTCM1 is useful, for example, for ingress policing of a service, where a peak rate needs to be enforced separately from a committed rate. Two token buckets are used, the CBS bucket and the MBS bucket. Tokens are added to the buckets based on the CIR and PIR rates. The algorithm deducts tokens from both the CBS and the MBS buckets to determine a profile for the packet.
srtcm—
Specifies that the mode is configured as a srTCM and meters a packet stream and marks the packets green, yellow, or red. Marking is based on a CIR and two associated burst sizes, a CBS and an MBS. A packet is marked green if it does not exceed the CBS, yellow if it does exceed the CBS but not the cir and red otherwise. The srTCM is useful, for example, for ingress policing of a service, where only the length, not the peak rate, of the burst determines service eligibility.

rate

Syntax 
rate cir cir-rate-in-kbps [pir pir-rate-in-kbps]
no rate
Context 
config>qos>network>ingress>meter
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command defines the administrative PIR and CIR parameters for the meter.

The rate command can be executed at any time, altering the PIR and CIR rates for all meters created through the association of the network QoS policy with the meter-id. The max default specifies the amount of bandwidth in kilobits per second (thousand bits per second). The max value is mutually exclusive to the pir-rate value.

Note:

The value of rates are represented in 1000 kilobits per second and bursts are represented as 1024 kilobits per second.

The no form of this command reverts all meter instances created with this meter-id to the default.

Default 

rate 0 pir max

Parameters 
cir cir-rate-in-kbps—
Specifies that the default administrative CIR used by the meter will be overridden. When the rate command has not been executed or the cir parameter is not explicitly specified, the default CIR (0) is assumed.

Fractional values are not allowed and values must be a positive integer.

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

Values—
0 to 20000000, max (7210 SAS-Dxp)
0 to 4000000, max (7210 SAS-D)

 

pir pir-rate-in-kbps
Specifies the administrative PIR rate, in kilobits, for the meter. When this command is executed, a valid PIR setting must be explicitly defined. When the rate command has not been executed, the default PIR of max is assumed. When the rate command is executed, a PIR setting is optional.

Fractional values are not allowed and must be given as a positive integer.

The actual PIR rate is dependent on the meter’s adaptation-rule parameters and the hardware.

Values—
0 to 20000000, max (7210 SAS-Dxp)
0 to 4000000, max (7210 SAS-D)

 

7.4.1.5. Network egress QoS policy commands

egress

Syntax 
egress
Context 
config>qos>network
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates or edits egress policy entries that specify the FC to marking values map to be instantiated when this policy is applied to the access-uplink port.

The FC and profile state mapping to marking values (for example: IEEE 802.1p bits, etc.) bits mapping for all packets are defined in this context.

fc

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

Supported on all 7210 SAS platforms as described in this document

Description 

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

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

Default 

undefined FCs default to the configured parameters in the default network policy (policy ID 1)

Parameters 
fc-name—
Specifies the case-sensitive, system-defined FC name for which policy entries will be created.
Values—
be, l2, af, l1, h2, ef, h1, nc

 

adaptation-rule

Syntax 
adaptation-rule [cir adaptation-rule] [pir adaptation-rule]
no adaptation-rule
Context 
config>qos>network>queue
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. See Table 17 and Table 18 for information about supported hardware step-size rates for 7210 SAS-D and 7210 SAS-Dxp.

Default 

adaptation-rule cir closest pir 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. See Table 17 and Table 18 for information about supported hardware step-size rates for 7210 SAS-D and 7210 SAS-Dxp.
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.

 

slope-policy

Syntax 
[no] slope-policy name
Context 
config>qos>network>queue
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 fails. 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. The non-ring slopes are used by the traffic received on access SAP ingress and sent out of access SAP egress queues. The ring slopes are used by the traffic received on access-uplink port ingress and sent out of access-uplink port egress queues.

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

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

Parameters 
name—
Specifies an existing slope policy name. If the slope policy name does not exist, the slope-policy command fails.
Values—
32 chars maximum

 

queue

Syntax 
queue queue-id create
no queue
Context 
config>qos>network
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

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

The no form of this command deletes the queue.

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

 

create—
Specifies that a network queue policy will be created.

rate

Syntax 
rate [cir cir-percent] [pir pir-percent]
no rate
Context 
config>qos>network>queue
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 oversubscription 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 the command reverts all queues created with the queue-id by association with the QoS policy to the default PIR and CIR parameters.

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 of 0 is assumed. Fractional values are not allowed and must be given as a 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 of 100 is assumed. Fractional values are not allowed and must be given as a positive integer.
Values—
1 to 100 percent

 

Default—
100

7.4.1.6. Network egress QoS policy forwarding class commands

dot1p-in-profile

Syntax 
dot1p-in-profile dot1p-priority
no dot1p-in-profile
Context 
config>qos>network>egress>fc
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

The command enables the context to mark on an egress the in and out of profile status through a certain dot1p combination (similar to DEI option). It may be used when the internal in and out of profile status needs to be communicated to an adjacent network/customer device that does not support the DEI bit.

This command explicitly defines the egress IEEE 802.1P (dot1p) bits marking for fc-name. When the marking is set, all packets with in-profile status (or green color) of fc-name that have either an IEEE 802.1Q or IEEE 802.1P encapsulation use the explicitly defined dot1p-value. If the egress packets for fc-name are not IEEE 802.1Q or IEEE 802.1P encapsulated, this command has no effect.

The no form of the command reverts to the default in-profile dot1p-priority setting for policy-id 1.

Parameters 
dot1p-priority—
Specifies the unique IEEE 802.1P value that will match the dot1p rule. If the command is executed multiple times with the same dot1p-value, the previous FC and enqueuing priority is completely overridden by the new parameters or defined to be inherited when a FC or enqueuing priority parameter is missing. A maximum of eight dot1p rules are allowed on a single policy.
Values—
0 to 7

 

dot1p-out-profile

Syntax 
dot1p-out-profile dot1p-priority
no dot1p-out-profile
Context 
config>qos>network>egress>fc
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

The command enables the context to mark on an egress the in and out of profile status via a certain dot1p combination (similar to DEI option). It may be used when the internal in and out of profile status needs to be communicated to an adjacent network/customer device that does not support the DEI bit.

This command explicitly defines the egress IEEE 802.1P (dot1p) bits marking for fc-name. When the marking is set, all packets with out-profile status (or yellow color) of fc-name that have either an IEEE 802.1Q or IEEE 802.1P encapsulation use the explicitly defined dot1p-value. If the egress packets for fc-name are not IEEE 802.1Q or IEEE 802.1P encapsulated, this command has no effect.

The no form of this command reverts to the default out-profile dot1p-priority setting for policy-id 1.

Parameters 
dot1p-priority—
Specifies the unique IEEE 802.1P value that will match the dot1p rule. If the command is executed multiple times with the same dot1p-value, the previous FC and enqueuing priority is completely overridden by the new parameters or defined to be inherited when a FC or enqueuing priority parameter is missing. A maximum of eight dot1p rules are allowed on a single policy.
Values—
0 to 7

 

dscp-in-profile

Syntax 
dscp-in-profile dscp-name
no dscp-in-profile
Context 
config>qos>network>egress>fc
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the in-profile DSCP name for the FC. When marking is set, the corresponding DSCP value is used to mark all IP packets with in-profile status, on the egress of this FC queue.

When multiple DSCP names are associated with the FC at network egress, the last name entered will overwrite the previous value.

The no form of this command reverts to the factory default in-profile dscp-name setting for policy-id 1.

Parameters 
dscp-name—
Specifies a system-defined or a user-defined, case-sensitive dscp-name.

dscp-out-profile

Syntax 
dscp-out-profile dscp-name
no dscp-out-profile
Context 
config>qos>network>egress>fc
Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the out-of-profile DSCP name for the FC. When marking is set, the corresponding DSCP value is used to mark all IP packets with out-of-profile status, on the egress of this FC queue.

When multiple DSCP names are associated with the FC at network egress, the last name entered will overwrite the previous value.

The no form of this command reverts to the factory default out-of-profile dscp-name setting for policy-id 1.

Parameters 
dscp-name—
Specifies a system-defined or a user-defined, case-sensitive dscp-name.

7.4.1.7. Show commands

network

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays network policy information.

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

 

Default—
all network policies
detail—
Displays information about ingress and egress dot1p bit mappings and network policy interface associations.
Output 

The following outputs are example of network policy information, and Table 32 displays the output fields:

Sample output for 7210 SAS-D
*A:SN12345678# show qos network 1        
===============================================================================
QoS Network Policy
===============================================================================
-------------------------------------------------------------------------------
Network Policy (1)
-------------------------------------------------------------------------------
Policy-id      : 1                            Remark       : True              
Forward Class  : be                           Profile      : Out               
Attach Mode    : l2                           Config Mode  : l2                
Scope          : Template                                                      
Description    : Default network QoS policy.
-------------------------------------------------------------------------------
Meter Mode   CIR Admin   CIR Rule   PIR Admin   PIR Rule    CBS       MBS
-------------------------------------------------------------------------------
1     TrTcm_CA  0         closest       max       closest   32 KBytes 128 KBytes 
9     TrTcm_CA  0         closest       max       closest   32 KBytes 128 KBytes
 
-------------------------------------------------------------------------------
FC                  UCastM         MCastM         
-------------------------------------------------------------------------------
No FC-Map Entries Found.
-------------------------------------------------------------------------------
Port Attachments
-------------------------------------------------------------------------------
Port-id : 1/1/24 
===============================================================================
*A:SN12345678# 
 
 
*A:dut-g# show qos network 1 detail 
===============================================================================
QoS Network Policy
===============================================================================
-------------------------------------------------------------------------------
Network Policy (1)
-------------------------------------------------------------------------------
Policy-id      : 1                            Remark       : True              
Forward Class  : be                           Profile      : Out               
Attach Mode    : l2                           Config Mode  : l2                
Scope          : Template                                                      
Description    : Default network QoS policy.
-------------------------------------------------------------------------------
Meter Mode   CIR Admin   CIR Rule   PIR Admin   PIR Rule    CBS       MBS
-------------------------------------------------------------------------------
1     TrTcm_CA  0         closest       max       closest   32        128    
9     TrTcm_CA  0         closest       max       closest   32        128    
 
-------------------------------------------------------------------------------
FC                  UCastM         MCastM         
-------------------------------------------------------------------------------
No FC-Map Entries Found.
-------------------------------------------------------------------------------
Dot1p Bit Map                         Forwarding Class                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     
 
-------------------------------------------------------------------------------
Egress Forwarding Class Queuing
-------------------------------------------------------------------------------
FC Value       : 0                            FC Name      : be                
- Dot1p Mapping
Out-of-Profile : 0                            In-Profile   : 0                 
 
FC Value       : 1                            FC Name      : l2                
- Dot1p Mapping
Out-of-Profile : 1                            In-Profile   : 1                 
 
FC Value       : 2                            FC Name      : af                
- Dot1p Mapping
Out-of-Profile : 2                            In-Profile   : 3                 
 
FC Value       : 3                            FC Name      : l1                
- Dot1p Mapping
Out-of-Profile : 2                            In-Profile   : 3                 
 
FC Value       : 4                            FC Name      : h2                
- Dot1p Mapping
Out-of-Profile : 4                            In-Profile   : 4                 
 
FC Value       : 5                            FC Name      : ef                
- Dot1p Mapping
Out-of-Profile : 5                            In-Profile   : 5                 
 
FC Value       : 6                            FC Name      : h1                
- Dot1p Mapping
Out-of-Profile : 6                            In-Profile   : 6                 
 
FC Value       : 7                            FC Name      : nc                
- Dot1p Mapping
Out-of-Profile : 7                            In-Profile   : 7                 
-------------------------------------------------------------------------------
Port Attachments
-------------------------------------------------------------------------------
Port-id : 1/1/24                                                               
===============================================================================
*A:dut-g# 
Sample output for 7210 SAS-D (detail)
 
*A:K-SASD>config>qos# show qos network 
Policy-id  Remark     LerUseDscp     Description
-------------------------------------------------------------------------------
1          False  False      Default network QoS policy.
19         True   False      Description for Network Policy id # 19
100        True   False      
200        True   False      
300        True   False      
-------------------------------------------------------------------------------
 
*A:K-SASD>config>qos# show qos network 1 detail 
 
===============================================================================
QoS Network Policy
===============================================================================
-------------------------------------------------------------------------------
Network Policy (1)
-------------------------------------------------------------------------------
Policy-id      : 1                            
Egr Remark     : False                        
Forward Class  : be                           Profile      : Out
Scope          : Template                     Policy Type  : port
Accounting     : packet-based                 
Description    : Default network QoS policy.
 
-------------------------------------------------------------------------------
DSCP (Egress)                           Forwarding Class                Profile
-------------------------------------------------------------------------------
No Matching Entries
 
 
-------------------------------------------------------------------------------
Prec (Egress)                           Forwarding Class                Profile
-------------------------------------------------------------------------------
No Matching Entries
 
 
-------------------------------------------------------------------------------
Dot1p Bit Map                         Forwarding Class                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
-------------------------------------------------------------------------------
Meter Mode     CIR Admin CIR Rule   PIR Admin   PIR Rule    CBS Admin MBS Admin
               CIR Oper             PIR Oper                CBS Oper  MBS Oper
-------------------------------------------------------------------------------
1     TrTcm1_CA   0         closest       max       closest   def       def
                  0                       max                 def       def
9     TrTcm1_CA   0         closest       max       closest   def       def
                  0                       max                 def       def
                                      
-------------------------------------------------------------------------------
FC        UCastM      MCastM      
-------------------------------------------------------------------------------
No FC-Map Entries Found.
 
 
-------------------------------------------------------------------------------
Egress Forwarding Class Queuing
-------------------------------------------------------------------------------
FC Value       : 0                            FC Name      : be
- DSCP Mapping
Out-of-Profile : be                           In-Profile   : be
 
- Dot1p Mapping
Out-of-Profile : 0                            In-Profile   : 0
 
FC Value       : 1                            FC Name      : l2
- DSCP Mapping
Out-of-Profile : cs1                          In-Profile   : cs1
 
- Dot1p Mapping
Out-of-Profile : 1                            In-Profile   : 1
                                      
FC Value       : 2                            FC Name      : af
- DSCP Mapping
Out-of-Profile : af12                         In-Profile   : af11
 
- Dot1p Mapping
Out-of-Profile : 2                            In-Profile   : 3
 
FC Value       : 3                            FC Name      : l1
- DSCP Mapping
Out-of-Profile : af22                         In-Profile   : af21
 
- Dot1p Mapping
Out-of-Profile : 2                            In-Profile   : 3
 
FC Value       : 4                            FC Name      : h2
- DSCP Mapping
Out-of-Profile : af41                         In-Profile   : af41
 
- Dot1p Mapping
Out-of-Profile : 4                            In-Profile   : 4
 
FC Value       : 5                            FC Name      : ef
- DSCP Mapping                        
Out-of-Profile : ef                           In-Profile   : ef
 
- Dot1p Mapping
Out-of-Profile : 5                            In-Profile   : 5
 
FC Value       : 6                            FC Name      : h1
- DSCP Mapping
Out-of-Profile : nc1                          In-Profile   : nc1
 
- Dot1p Mapping
Out-of-Profile : 6                            In-Profile   : 6
 
FC Value       : 7                            FC Name      : nc
- DSCP Mapping
Out-of-Profile : nc2                          In-Profile   : nc2
 
- Dot1p Mapping
Out-of-Profile : 7                            In-Profile   : 7
 
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
Port Attachments                      
-------------------------------------------------------------------------------
Port-id : 1/1/10
 
===============================================================================
 
Table 32:  Output fields: QoS network 

Label

Description

Policy-Id

Displays the ID that uniquely identifies the policy.

Remark

True — Remarking is enabled.

False — Remarking is disabled.

Description

Displays a text string that helps identify the policy’s context in the configuration file.

Forward Class/ FC Name

Specifies the FC name.

Profile

Out — Specifies the EXP marking for the packets that are out-of-profile, egressing on this queue.Specifies the dot1p marking for the packets which are out-of-profile, egressing on this queue

In — Specifies the EXP marking for the packets that are in-of-profile, egressing on this queue.Specifies the dot1p markings for in-profile packets egressing this queue.

Accounting

Packet-based — Specifies that the meters associated with this policy do not account for packet framing overheads (such as Ethernet the Inter Frame Gap (IFG) and the preamble), while accounting for the bandwidth to be used by this flow

Frame-based — Specifies that the meters associated with this policy account for the packet framing overheads (such as for Ethernet the IFG and preamble), while accounting the bandwidth to be used by the flow

dot1p Bit Mapping:

Out-of-Profile

Displays the dot1p value used for out-of-profile traffic

In-Profile

Displays the dot1p value used for in-profile traffic

Port Attachment

Port-Id

Specifies the physical port identifier that associates the interface