8.5. Command Descriptions

8.5.1. Configuration Commands

8.5.1.1. Generic Commands

description

Syntax 
description description-string
no description
Context 
config>qos>sap-ingress
config>qos>sap-ingress>ip-criteria>entry
config>qos>sap-ingress>mac-criteria>entry
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 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.

8.5.1.2. Operational Commands

Note:

QoS capabilities vary across 7210 SAS platforms. The terms meter/queue or queue/meter are used in the command descriptions; meters, queues, or both may apply depending on the capabilities of the 7210 SAS platform. The descriptions of certain commands also mention the capabilities of the platform/node, where applicable.

copy

Syntax 
copy sap-ingress 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 a configuration level maintenance tool used to create new policies based on existing policies. It also allows bulk modifications to an existing policy with the use of the overwrite keyword.

Parameters 
sap-ingress src-pol dst-pol
Specifies that the source policy ID and the destination policy ID are SAP ingress policy IDs. Specify the source policy ID that the copy command will attempt to copy from, and specify the destination policy ID to which the command will copy a duplicate of the policy.
Values—
1 to 65535

 

overwrite—
Specifies to replace the existing destination policy. Everything in the existing destination policy is overwritten by the contents of the source policy. If overwrite is not specified, an error occurs if the destination policy ID exists.

renum

Syntax 
renum old-entry-id new-entry-id
Context 
config>qos>sap-ingress>ip-criteria
config>qos>sap-ingress>ipv6-criteria
config>qos>sap-ingress>mac-criteria
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command renumbers existing QoS policy criteria entries to properly sequence policy entries.

This can be required in some cases because the 7210 SAS exits when the first match is found and executes the actions in accordance with the accompanying action command. This requires that entries be sequenced correctly from most to least explicit.

Parameters 
old-entry-id—
Specifies the entry number of an existing entry.
Values—
1 to 64

 

new-entry-id—
Specifies the new entry number to be assigned to the old entry.
Values—
1 to 64

 

8.5.1.2.1. Service Ingress QoS Policy Commands

sap-ingress

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command is used to create or edit the ingress policy. The ingress policy defines the Service Level Agreement (SLA) enforcement service packets receive when they ingress a SAP. SLA enforcement requires the definition of meters/queues (depends on the support available on a platform) that have Forwarding Class (FC), Committed Information Rate (CIR), Peak Information Rate (PIR), Committed Burst Size (CBS), and Maximum Burst Size (MBS) characteristics. The simplest policy defines a single queue/meter that all ingress traffic flows through. Complex policies have multiple meters/queues combined with classification entries that indicate which meter/queue a packet flows though.

Policies in effect are templates that can be applied to multiple services as long as the scope of the policy is template. Meters/ queues defined in the policy are not instantiated until a policy is applied to a service SAP.

Depending on the support available on different 7210 SAS platforms, SAP ingress policies can be defined with either dot1p, IP DSCP, IP headers, MAC headers, or all as the match criteria.

Only one service ingress policy can be provisioned. The SAP ingress policy with policy-id 1 is a system-defined policy applied to services when no other policy is explicitly specified. The system SAP ingress policy can be modified but not deleted. The no sap-ingress command restores the factory default settings when used on policy-id 1. See Default SAP Ingress Policy for more information.

Any changes made to the existing policy, using any of the sub-commands, are applied immediately to all services where this policy is applied. For this reason, when many changes are required on a policy, it is recommended that the policy be copied to a work area policy ID. The work area 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.

Note:

  1. Before a SAP ingress policy can be associated with a SAP, resources must be allocated using the config>system>resource-profile>ingress-internal-tcam>qos-sap-ingress-resource command. See Resource Allocation for Service Ingress QoS Policy Classification Rules for information about resource allocation. Refer to the 7210 SAS-D, Dxp, K 2F1C2T, K 2F6C4T, K 3SFP+ 8C Basic System Configuration Guide for more information about system resource allocation and examples for this CLI command.
  2. On the 7210 SAS-D and 7210 SAS-Dxp, only meters are supported on service ingress for rate enforcement. These platforms do not support service ingress queues.
  3. On the 7210 SAS-D and 7210 SAS-Dxp, the user has the option to use dot1p, IP DSCP, IPv4 and IPv6 criteria, and MAC criteria.

The no form of this command deletes the SAP ingress policy. A policy cannot be deleted until it is removed from all services where it is applied. The system default SAP ingress policy is a special case; the no command restores the factory defaults to policy ID1.

Default 

policy-id 1

Parameters 
policy-id —
Specifies a policy ID that uniquely identifies the policy.
Values—
1 to 65535

 

create—
Specifies to create a SAP ingress policy.

scope

Syntax 
scope {exclusive | template}
no scope
Context 
config>qos>sap-ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the service ingress QoS policy scope.

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 SAP. If a policy with an exclusive scope is assigned to a second SAP, an error message is generated. If the policy is removed from the exclusive SAP, it will become available for assignment to another exclusive SAP.
template—
Specifies that the policy can be applied to multiple SAPs on the router. An error is generated when scope template is changed to scope exclusive for default policies.

default-fc

Syntax 
default-fc fc
Context 
config>qos>sap-ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the default FC for the policy. If an ingress packet does not match a higher priority (more explicit) classification command, the default FC is associated with the packet. Unless overridden by an explicit FC classification rule, all packets received on an ingress SAP using this ingress QoS policy is classified to the default FC.

The default FC is best effort (be). The default-fc settings are displayed in the show configuration and save output, regardless of whether the detail keyword is included in the show command.

The in and out parameters are mutually exclusive following the profile classification keyword. Either in or out must be specified when the profile keyword is present.

Default 

be

Parameters 
fc
Specifies the FC name for the queue/meter. The value given for fc must be one of the predefined FCs in the system.

fc

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

Supported on all 7210 SAS platforms as described in this document

Description 

The fc command creates a class instance of the FC fc-name. After the fc-name is created, classification actions can be applied and then used in match classification criteria.

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

Parameters 
fc-name—
Specifies the FC name for the queue. The value given for the fc-name must be one of the predefined FCs for the system.
Values—
be, l2, af, l1, h2, ef, h1, nc

 

create—
Keyword to create a class instance of the FC.

ip-mac-match

Syntax 
[no] ip-mac-match {ip-first | mac-first}
Context 
config>qos>sap-ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the user to match on both IP and MAC criteria in a SAP ingress policy. If this command is not executed, the software does not allow for configuration of both IP and MAC criteria in a SAP ingress policy. In other words, without this command in a SAP ingress policy, IP and MAC criteria are mutually exclusive.

The user also has the option to specify if all the IP criteria entries configured in the policy need to be matched first followed by all the MAC criteria entries or vice versa. For example, if ip-first is configured, all the IP criteria entries are compared for matches first; if there are no matches, then MAC criteria entries are compared for matches.If a match is found, no further matches are performed and the actions associated with the matched entry are taken.

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

Default 

no ip-mac-match

Parameters 
ip-first—
Specifies to match all the IP criteria entries first before matching any of the MAC entries.
mac-first—
Specifies to match all the MAC criteria entries first before matching any of the IP entries.

ip-criteria

Syntax 
[no] ip-criteria [any | dscp-only] policy id
Context 
config>qos>sap-ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command selects the ingress meter and corresponding FC for matched traffic.

The user can specify either any or dscp-only as the sub-criteria. The sub-criteria determines what fields can be used to match traffic. The resource allocation for classification is affected by the sub-criteria in use. See Resource Allocation for Service Ingress QoS Policy Classification Rules for more information.

This command is used to enter the context to create or edit policy entries that specify IP criteria DiffServ code point.

The 7210 SAS implementation exits on the first match found and executes the actions in accordance with the accompanying action command. For this reason, entries must be sequenced correctly from most to least explicit.

The no form of this command deletes all the entries specified under this node. After an IP criteria entry is removed from a SAP ingress policy, the IP criteria is removed from all services where that policy is applied.

Default 

dscp-only

Parameters 
any—
Specifies that entries can use any of the fields available under ip-criteria (Example - IP source, IP destination, IP protocol fields can be used) for matching
dscp-only—
Specifies that entries can use the IP DSCP field or IP precedence field.
policy-id —
Specifies the policy ID.
Values—
1 to 65535

 

ipv6-criteria

Syntax 
[no] ipv6-criteria [any | dscp-only] policy-id
Context 
config>qos>sap-ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command selects the appropriate ingress meters and corresponding FC for matched traffic.

This command is used to enter the node to create or edit policy entries that specify IPv6 criteria, such as IP quintuple lookup or DSCP.

The 7210 SAS implementation exits on the first match found and executes the actions in accordance with the accompanying action command. For this reason, entries must be sequenced correctly from most to least explicit.

Note:

Before associating a SAP ingress policy configured to use IPv6 criteria with a SAP, resources must be allocated using the config system resource-profile ingress-internal-tcam qos-sap-ingress-resource ipv6-ipv4-match-enable command. Refer to the 7210 SAS-D, Dxp, K 2F1C2T, K 2F6C4T, K 3SFP+ 8C Basic System Configuration Guide for more information about this CLI command and resource allocation.

The no form of this command deletes all the entries specified under this node. After an IPv6 criteria entry is removed from a SAP ingress policy, the IPv6 criteria is removed from all services where that policy is applied.

Parameters 
any—
Specifies that entries can use any of the fields available under ipv6-criteria (Example - IPv6 source, IPv6 destination, IPv6 protocol fields can be used) for matching
dscp-only—
Specifies that entries can use the IP DSCP field or IPv6 precedence field.
policy-id —
Specifies the policy ID.
Values—
1 to 65535

 

mac-criteria

Syntax 
[no] mac-criteria [any | dot1p-only] policy id
Context 
config>qos>sap-ingress
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command selects the appropriate ingress meters and corresponding FC for matched traffic.

User can specify either any or dot1p-only as the sub-criteria. The sub-criteria determines what fields can be used to match traffic. The resource allocation for classification is affected by the sub-criteria in use. See Resource Allocation for Service Ingress QoS Policy Classification Rules for more information about SAP ingress resource allocation.

This command is used to enter the node to create or edit policy entries that specify MAC criteria.

The 7210 SAS OS implementation exits on the first match found and executes the actions in accordance with the accompanying action command. For this reason, entries must be sequenced correctly from most to least explicit.

The no form of this command deletes all the entries specified under this node. After a MAC criteria entry is removed from a SAP ingress policy, the MAC criteria is removed from all services where that policy is applied.

Default 

dot1p-only

Parameters 
any—
Specifies that entries can use the other MAC header fields for matching.
dot1p-only—
Specifies that entries can use only the dot1p field.
policy-id —
Specifies the policy ID.
Values—
1 to 65535

 

num-qos-classifiers

Syntax 
num-qos-classifiers [num-resources] [ipv6 | no-ipv6]
Context 
config>qos>sap-ingress>num-qos-classifiers
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the number of classifiers the SAP ingress Qos policy can use. This parameter cannot be modified when it is associated with a SAP.

The num-resources parameter also determines the maximum number of meters that are available to this policy. The maximum number of meters available for use by the FCs (FC) defined under this policy is equal to half the value specified in num-resources parameter (maximum of 32). Any of these meters are available for use to police unicast or multipoint traffic. Any of these meters is available for use by more than one FC (or a single meter is available for use by all the FCs).

The ipv6 keyword indicates a plan to use ipv6-criteria, and the resources needed for this SAP ingress QoS policy must be allocated to the slice assigned to IPv6 criteria.

Default 

num-qos-classifiers 2 no-ipv6

Parameters 
num-resources —
Specifies the number of resources planned for use by this policy. The value must be a multiple of two.
Values—
2 to 256

 

ipv6 —
Specifies to use ipv6-criteria. The software must allocate resources from the chunks alloted to IPv6 criteria.
no-ipv6—
Specifies to not use ipv6-criteria. Resources are then allocated from the chunk alloted to either IPv4 criteria or MAC criteria, depending on what criteria the user uses.

8.5.1.2.2. Service Ingress QoS Policy Forwarding Class Commands

broadcast-meter

Syntax 
broadcast-meter meter-id
no broadcast-meter
Context 
config>qos>sap-ingress>fc
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command overrides the default broadcast 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 broadcast traffic on a SAP using this policy is forwarded using the meter-id.

The broadcast forwarding type usually tracks the multicast forwarding type definition. This command overrides that default behavior.

The no form of this command reverts the broadcast forwarding type meter-id to the default of tracking the multicast forwarding type meter mapping.

Parameters 
meter-id—
Specifies an existing multipoint queue defined in the config>qos>sap-ingress context.
Values—
1 to 32

 

Default—
1

meter

Syntax 
meter meter-id
no meter
Context 
config>qos>sap-ingress>fc
Supported 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 (this includes all traffic, even broadcast and multicast for services) on a SAP using this policy is forwarded using the meter-id.

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

Parameters 
meter-id—
Specifies an existing non-multipoint meter defined in the config>qos>sap-ingress context.
Values—
1 to 32

 

Default—
1

multicast-meter

Syntax 
multicast-meter meter-id
no multicast-meter
Context 
config>qos>sap-ingress>fc
Supported 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 SAP using this policy is forwarded using the meter-id.

The multicast forwarding type includes the unknown unicast forwarding type and the broadcast forwarding type, unless each is explicitly defined to a different multipoint meter. When the unknown and broadcast forwarding types are left as default, they will track the defined meter for the multicast forwarding type.

The no form of this command reverts the multicast forwarding type meter-id to the default meter for the FC. If the broadcast and unknown forwarding types were not explicitly defined to a multipoint meter, they are also reverted to the default multipoint meter.

Parameters 
meter-id—
Specifies an existing multipoint meter defined in the config>qos>sap-ingress context.
Values—
1 to 32

 

Default—
1

unknown-meter

Syntax 
unknown-meter meter-id
no unknown-meter
Context 
config>qos>sap-ingress>fc
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command overrides the default unknown unicast 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 unknown traffic on a SAP using this policy is forwarded using the meter-id.

The unknown forwarding type usually tracks the multicast forwarding type definition. This command overrides that default behavior.

The no form of this command reverts the unknown forwarding type meter-id to the default of tracking the multicast forwarding type meter mapping.

Parameters 
meter-id—
Specifies an existing multipoint meter defined in the config>qos>sap-ingress context.
Values—
1 to 32

 

Default—
1

8.5.1.2.3. Service Ingress QoS Policy Entry Commands

action

Syntax 
action [fc fc-name]
no action
Context 
config>qos>sap-ingress>ip-criteria>entry
config>qos>sap-ingress>mac-criteria>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This mandatory command associates the FC with specific IP or MAC criteria entry ID. The action command supports setting the FC parameter. Packets that meet all match criteria within the entry have their FC overridden based on the parameters included in the action parameters.

The action command must be executed for the match criteria to be added to the active list of entries.

Each time action is executed on a specific entry ID, the previously entered values for fc fc-name are overridden with the newly defined parameters.

The no form of this command removes the entry from the active entry list. Removing an entry on a policy immediately removes the entry from all SAPs using the policy. All previous parameters for the action are lost.

Default 

action specified by the default-fc command

Parameters 
fc fc-name
Specifies the FC name for the queue. 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.The value given for fc fc-name must be one of the predefined FCs in the system.
Values—
be, l2, af, l1, h2, ef, h1, nc

 

entry

Syntax 
[no] entry entry-id [create]
Context 
config>qos>sap-ingress>ip-criteria
config>qos>sap-ingress>mac-criteria
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to create or edit an IP or MAC criteria entry for the policy. Multiple entries can be created using unique entry-id numbers.

The list of flow criteria is evaluated in a top-down fashion with the lowest entry ID at the top and the highest entry ID at the bottom. If the defined match criteria for an entry within the list matches the information in the egress packet, the system stops matching the packet against the list and performs the matching reclassification actions specified by the entries. If none of the entries match the packet, the IP flow reclassification list has no effect on the packet.

An entry is not populated in the list unless the action command is executed for the entry. An entry that is not populated in the list has no effect on egress packets. If the action command is executed without any explicit reclassification actions specified, the entry is populated in the list allowing packets matching the entry to exit the list, preventing them from matching entries lower in the list. Because this is the only flow reclassification entry that the packet matched and this entry explicitly states that no reclassification action is to be performed, the matching packet is not reclassified.

The no form of this command removes the specified entry from the policy. Entries removed from the policy are immediately removed from all services where that policy is applied.

Parameters 
entry-id—
Specifies a match criterion and the corresponding action. It is recommended that multiple entries be assigned entry-ids in staggered increments. This allows users to insert a new entry in an existing policy without requiring renumbering of all the existing entries.

An entry may not have any match criteria defined (in which case, everything matches) but it must have at least the command action fc for it to be considered complete. Entries without the action command are considered incomplete and are rendered inactive.

Values—
1 to 64

 

create—
This keyword is required when creating a flow entry if the system is configured to require the explicit use of the keyword to prevent accidental object creation. Objects may be accidentally created when this protection is disabled and an object name is mistyped when attempting to edit the object. This keyword is not required when the protection is disabled. The keyword is ignored when the flow entry already exists.

match

Syntax 
[no] match [protocol protocol-id]
Context 
config>qos>sap-ingress>ip-criteria>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures match criteria for SAP QoS policy matches. When the match criteria are satisfied, the action associated with the match criteria is executed.

If more than one match criteria (within one match statement) are configured, then all criteria must be satisfied (and function) before the action associated with the match will be executed.

A match context can consist of multiple match criteria, but multiple match statements cannot be entered per entry.

The no form of this command removes the match criteria for the entry.

Parameters 
protocol protocol-id—
Specifies an IP protocol to be used as an ingress or egress network QoS policy match criterion.

The protocol type is identified by its respective protocol number. Well-known protocol numbers include ICMP(1), TCP(6), and UDP(17).

Values—
protocol-id: 0 to 255 protocol numbers accepted in decimal, hexadecimal, or binary
keywords: none, crtp, crudp, egp, eigrp, encap, ether-ip, gre, icmp, idrp, igmp, igp, ip, ipv6, ipv6-frag, ipv6-icmp, ipv6-no-nxt, isis, ipv6-opts, isoip, l2tp, ospf-igp, pim, pnni, ptp, rdp, rsvp, stp, tcp, udp, vrrp
* — udp/tcp wildcard

 

match

Syntax 
match
no match
Context 
config>qos>sap-ingress>mac-criteria>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to create or edit the match MAC criteria for ingress SAP QoS policy match criteria. When the match criteria are satisfied the action associated with the match criteria is executed.

If more than one match criterion (within one match statement) is configured, all criteria must be satisfied (and function) before the action associated with the match is executed.

A match context can consist of multiple match criteria, but multiple match statements cannot be entered per entry.

The no form of this command removes the match criteria for the entry-id.

match

Syntax 
match [next-header next-header]
no match
Context 
config>qos>sap-ingress>ipv6-criteria>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures match criteria for ingress SAP QoS policy match IPv6 criteria. When the match criteria are satisfied, the action associated with the match criteria is executed.

If more than one match criterion (within one match statement) is configured, all criteria must be satisfied (and function) before the action associated with the match is executed.

A match context can consist of multiple match criteria, but multiple match statements cannot be specified per entry.

The no form of this command removes the match criteria for the entry-id.

Parameters 
next-header next-header—
Specifies the next header to match.

The protocol type such as TCP / UDP / OSPF is identified by its respective protocol number. Well-known protocol numbers include ICMP(1), TCP(6), UDP(17).

Values—
protocol numbers accepted in DHB: 0 to 42, 45 to 49, 52 to 59, 61 to 255
keywords: none, crtp, crudp, egp, eigrp, encap, ether-ip, gre, icmp, idrp, igmp, igp, ip, ipv6, ipv6-icmp, ipv6-no-nxt, isis, isoip, l2tp, ospf-igp, pim, pnni, ptp, rdp, rsvp, stp, tcp, udp, vrrp
* — udp/tcp wildcard

 

8.5.1.2.4. IP QoS Policy Match Commands

dscp

Syntax 
dscp dscp-value|dscp-name [dscp-mask]
no dscp
Context 
config>qos>sap-ingress>ip-criteria>entry>match
config>qos>sap-ingress>ipv6-criteria>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a DiffServ Code Point (DSCP) used for classification of packets from the specified FC.

The no form of this command removes the DSCP match criterion.

Note:

  1. This feature is applicable for ip-criteria (any and dscp-only) and ipv6-criteria (any and dscp-only).
  2. The user is not be allowed to configure dscp name and dscp mask combinations.
  3. When the user configures dscp value alone, the “show” command displays dscp value as configured value and dscp mask as “FC”.
  4. Use of dscp-value and dscp-mask allows for efficient use of match resources in hardware, since the specification of mask allows user to combine individual DSCP entries to a single value/mask pair and specify similar action for all of them.
Parameters 
dscp-value—
Specifies the DSCP value in hexadecimal, decimal, or binary format.
Values—
0 to 64

 

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

 

dscp-mask—
Specifies a 6-bit mask that can be configured using the formats described in Table 38.

This parameter is only supported on the 7210 SAS-D and 7210 SAS-Dxp.

Table 38:  DSCP Mask Value Format 

Format Style

Format Syntax

Example

Decimal

D

4

Hexadecimal

0xH

0x4

Binary

0bBBB

0b100

To select a range from 4 up to 7 specify 4 and 0b000100 for value and mask.

Values—
0 to 64 (decimal, hexadecimal, or binary)

 

Default—
64 (exact match)

dst-ip

Syntax 
dst-ip {ip-address/mask}
dst-ip {ipv6-address/mask}
no dst-ip
Context 
config>qos>sap-ingress>ip-criteria>entry>match
config>qos>sap-ingress>ipv6-criteria>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a destination address range to use as a SAP QoS policy match criterion.

To match on the destination address, specify the address and its associated mask; for example, 10.1.0.0/16. The conventional notation of 10.1.0.0 255.255.0.0 can also be used.

The no form of this command removes the destination IP address match criterion.

Parameters 
ip-address—
Specifies the IP address of the destination IP interface. This address must be unique within the subnet and specified in dotted decimal notation.
Values—

ipv4-prefix -

a.b.c.d

 

ipv6-address—
Specifies the IP address of the destination IPv6 interface. This address must be unique within the subnet.
Values—

ipv6-prefix -

x:x:x:x:x:x:x:x (eight 16-bit pieces)

x:x:x:x:x:x:d.d.d.d

x - 0 to FFFF (hexadecimal)

d - 0 to 255 (decimal)

 

mask—
Specifies the length in bits of the subnet mask.
Values—
1 to 32 (IPv4)
1 to 128 (IPv6; 7210 SAS-D)
1 to 64 (IPv6; 7210 SAS-Dxp)

 

dst-port

Syntax 
dst-port {eq} dst-port-number
no dst-port
Context 
config>qos>sap-ingress
config>qos>sap-ingress>ip-criteria>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a destination TCP or UDP port number or port range for a SAP QoS policy match criterion.

The no form of this command removes the destination port match criterion.

Parameters 
eq dst-port-number
Specifies the destination TCP or UDP port number, as a decimal integer, against which to match equal (eq) values.
Values—
1 to 65535

 

ip-prec

Syntax 
ip-prec ip-prec-value [ip-prec-mask]
no ip-prec
Context 
config>qos>sap-ingress>ip-criteria>entry>match
config>qos>sap-ingress>ipv6-criteria>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies an IP precedence value that must be matched to perform the associated classification actions. If an ingress packet on the SAP where the SAP ingress QoS policy is applied to matches the specified IP precedence value, the actions associated with this entry are taken.

The ip-prec-value is derived from the most significant three bits in the IP header ToS byte field (precedence bits). The three precedence bits define eight Class-of-Service (CoS) values commonly used to map packets to per-hop Quality-of-Service (QoS) behavior. The precedence bits are also part of the newer DSCP method of mapping packets to QoS behavior. The DSCP uses the most significant six bits in the IP header ToS byte and so overlaps with the precedence bits.

Both IP precedence and DSCP classification rules are supported. A match entry cannot match on both IP DSCP and IP precedence, which means that the user can use either IP DSCP or IP precedence match in a match entry but not both. The software blocks configuration of ip-precedence match if the ip-dscp command is configured already. The converse is also true. A single policy having multiple match entries can have entries such that some of them match IP DSCP and others match IP precedence. The order of the entry determines the priority of the match.

The no form of this command removes the IP precedence match criterion.

Parameters 
ip-prec-value—
Specifies the unique IP header ToS byte precedence bits value that matches the IP precedence rule.
Values—
0 to 7

 

ip-prec-mask —
Specifies a mask that can be configured using the formats described in Table 39.
Table 39:  IP precedence mask value format 

Format Style

Format Syntax

Example

Decimal

D

4

Hexadecimal

0xH

0x4

Binary

0bBBB

0b100

To select a range from 4 up to 7, specify an ip-prec-value of 4 and an ip-prec-mask of 0b100 for value and mask.

src-ip

Syntax 
src-ip ipv4-address/mask
no src-ip
Context 
config>qos>sap-ingress>ip-criteria>entry>match
config>qos>sap-egress>ip-criteria>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a source IPv4 address range to use as a SAP QoS policy match criterion.

To match on the source IPv4 address, specify the address and its associated mask; for example, 10.1.0.0/16. The conventional notation of 10.1.0.0 255.255.0.0 can also be used.

The no form of this command removes the source IPv4 address match criterion.

Parameters 
ipv4-address—
Specifies the IPv4 address of the source IP interface. This address must be unique within the subnet and specified in dotted decimal notation.
Values—
a.b.c.d

 

mask—
Specifies the subnet mask length, expressed as an integer or in dotted decimal notation.
Values—
1 to 32

 

src-ip

Syntax 
src-ip ipv6-address/mask
no src-ip
Context 
config>qos>sap-ingress>ipv6-criteria>entry>match
config>qos>sap-egress>ipv6-criteria>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a source IPv6 address range to use as a SAP QoS policy match criterion.

The no form of this command removes the source IPv6 address match criterion.

Parameters 
ipv6-address—
Specifies the IPv6 address of the source IP interface. This address must be unique within the subnet.
Values—

ipv6-address -

x:x:x:x:x:x:x:x (eight 16-bit pieces)

x:x:x:x:x:x:d.d.d.d

x - 0 to FFFF (hexadecimal)

d - 0 to 255 (decimal)

 

mask—
Specifies the subnet mask length, expressed as an integer.
Values—
1 to 128 (7210 SAS-D)
1 to 64 (7210 SAS-Dxp)

 

src-port

Syntax 
src-port {eq} src-port-number
src-port range start end
no src-port
Context 
config>qos>sap-ingress>ip-criteria>entry>match
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a source TCP or UDP port number or port range for a SAP QoS policy match criterion.

The no form of this command removes the source port match criterion.

Parameters 
eq src-port-number
Specifies the source TCP or UDP port number, as a decimal integer, against which to match equal (eq) values.
Values—
1 to 65535

 

range start end
Specifies the range of TCP or UDP port values, starting with the start value and ending with the end value, to compare against for matches.
Values—
1 to 65535

 

8.5.1.2.5. Service Ingress MAC QoS Policy Match Commands

dot1p

Syntax 
dot1p dot1p-value [dot1p-mask]
no dot1p
Context 
config>qos>sap-ingress>mac-criteria>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the IEEE 802.1p value to use as the match criterion.

The no form of this command removes the dot1p value as the match criterion.

Parameters 
dot1p-value—
Specifies the IEEE 802.1p value, expressed as a decimal integer.
Values—
0 to 7

 

dot1p-mask—
Specifies a 3-bit mask that can be configured using the following formats:

Format Style

Format Syntax

Example

Decimal

D

4

Hexadecimal

0xH

0x4

Binary

0bBBB

0b100

Values—
1 to 7 (decimal)

 

Default—
7 (decimal; exact match)

dst-mac

Syntax 
dst-mac ieee-address [ieee-address-mask]
no dst-mac
Context 
config>qos>sap-ingress>mac-criteria>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a destination MAC address or range to use as a service ingress QoS policy match criterion.

The no form of this command removes the destination MAC address as the match criterion.

Parameters 
ieee-address—
Specifies the MAC address to use as a match criterion.
Values—
HH:HH:HH:HH:HH:HH or HH-HH-HH-HH-HH-HH where H is a hexadecimal digit

 

ieee-address-mask—
Specifies a 48-bit mask to match a range of MAC address values.

This 48-bit mask can be configured using the formats described in Table 40.

Table 40:  dot1p Mask Value Format 

Format Style

Format Syntax

Example

Decimal

DDDDDDDDDDDDDD

281474959933440

Hexadecimal

0xHHHHHHHHHHHH

0xFFFFFF000000

Binary

0bBBBBBBB...B

0b11110000...B

All packets with a source MAC OUI value of 00-03-FA subject to a match condition should be specified as: 0003FA000000 0x0FFFFF000000

Values—
0x00000000000000 to 0xFFFFFFFFFFFF (hexadecimal)

 

Default—
0xFFFFFFFFFFFF (hexadecimal; exact match)

etype

Syntax 
etype etype-value
no etype
Context 
config>qos>sap-ingress>mac-criteria>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures an Ethernet type II value for to use as a service ingress QoS policy match criterion.

The Ethernet type field is a two-byte field used to identify the protocol carried by the Ethernet frame. For example, 0800 is used to identify IPv4 packets.

The Ethernet type field is used by the Ethernet version-II frames. IEEE 802.3 Ethernet frames use the dsap, ssap or snap-pid fields as match criteria; the Ethernet type field is not used.

The snap-pid, etype, ssap, and dsap fields are mutually exclusive and cannot be part of the same match criteria.

For the 7210 SAS-D and 7210 SAS-Dxp, the dataplane processes a maximum of two VLAN tags in a received packet. The Ethertype used in the MAC matching criteria for ACLs is the Ethertype that is found in the packet after processing single-tagged frames, double-tagged frames, and no-tag frames

The packet is considered to have no tags if at least one of the following criteria is true:

  1. the packet is a null-tagged frame
  2. the packet is a priority-tagged frame
  3. the outermost Ethertype does not match the default Ethertype (0x8100)
  4. the outermost Ethertype does not match the configured dot1q-etype on dot1q encapsulated ports
  5. the outermost Ethertype does not match the configured qinq-etype on QinQ encapsulated ports

The packet is considered to have a single tag if at least one of the following criteria is true:

  1. the outermost Ethertype matches the default Ethertype (0x8100)
  2. the outermost Ethertype matches the configured dot1q-etype on dot1q encapsulated ports
  3. the outermost Ethertype matches the configured qinq-etype on QinQ encapsulated ports

The packet is considered to have double tags if at least one of the following criteria is true:

  1. the outermost Ethertype matches the default Ethernet type (0x8100)
  2. the configured dot1q-etype on dot1q encapsulated ports and the immediately following Ethertype match the default Ethertype (0x8100)
  3. the configured qinq-etype on QinQ encapsulated ports and the immediately following Ethertype match the default Ethertype (0x8100)

The no form of this command removes the previously entered etype field as the match criteria.

Parameters 
etype-value—
Specifies the Ethernet type II frame Ethertype value to be used as a match criterion in decimal or hexadecimal.
Values—
0x0600 to 0xFFFF

 

src-mac

Syntax 
src-mac ieee-address [ieee-address-mask]
no src-mac
Context 
config>qos>sap-ingress>mac-criteria>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a source MAC address or range to be used as a service ingress QoS policy match criterion.

The no form of this command removes the source MAC address as the match criteria.

Parameters 
ieee-address—
Specifies the 48-bit IEEE MAC address to be used as a match criterion.
Values—
HH:HH:HH:HH:HH:HH or HH-HH-HH-HH-HH-HH where H is a hexadecimal digit

 

ieee-address-mask—
Specifies a 48-bit mask that can be configured using the formats in Table 41.
Table 41:  MAC Mask Format 

Format Style

Format Syntax

Example

Decimal

DDDDDDDDDDDDDD

281474959933440

Hexadecimal

0xHHHHHHHHHHHH

0x0FFFFF000000

Binary

0bBBBBBBB...B

0b11110000...B

To configure all packets with a source MAC OUI value of 00-03-FA are subject to a match condition, then the entry should be specified as: 003FA000000 0xFFFFFF000000

Values—
0x00000000000000 to 0xFFFFFFFFFFFF (hexadecimal)

 

Default—
0xFFFFFFFFFFFF (hexadecimal; exact match)

8.5.1.2.6. Service Meter QoS Policy Commands

meter

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure an ingress SAP QoS policy meter.

This command allows the creation of multipoint meters. Only multipoint meters can receive ingress packets that need flooding to multiple destinations. By separating the unicast for multipoint traffic at service ingress and handling the traffic on separate multipoint meters, special handling of the multipoint traffic is possible. Each meter acts as an accounting and (optionally) policing device offering precise control over potentially expensive multicast, broadcast, and unknown unicast traffic. Only the back-end support of multipoint traffic (between the FC and the meter based on forwarding type) needs to be defined. The individual classification rules used to place traffic into FCs are not affected. Meters must be defined as multipoint within the policy at the time of creation.

The multipoint meters are for service traffic destined to multiple destinations, such as multicast traffic in a VPLS service. 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 is mapped to a multipoint service meter.

When an ingress SAP QoS policy with multipoint meters is applied to an Epipe SAP, the multipoint meters are not created.

Any billing or statistical queries about a multipoint meter on a non-multipoint service return zero values. Any meter parameter information requested about a multipoint meter on a non-multipoint service returns the meter parameters in the policy. Multipoint meters are not created for non-multipoint services.

The no form of this command removes the meter-id from the SAP ingress QoS policy and from any existing SAPs using the policy. Any FC mapped to the meter reverts to the default meters. When a meter is removed, any pending accounting information for each SAP meter, created as a result of the definition of the meter in the policy, is discarded.

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

 

multipoint—
Keyword that creates the meter as a multipoint meter.
create—
Keyword to create a meter.

adaptation-rule

Syntax 
adaptation-rule [cir adaptation-rule] [pir adaptation-rule]
no adaptation-rule
Context 
config>qos>sap-ingress>meter
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 settings when the meter is provisioned in hardware. For the CIR and PIR parameters, individually 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 pir and cir apply.

Default 

adaptation-rule cir closest pir closest

Parameters 
cir adaptation-rule—
Specifies the adaptation rule used while computing the operational CIR value and defines the constraints enforced when adapting 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 for the meter. When the cir parameter is not specified, the default constraint applies.
Note:

For 7210 SAS-Dxp, see Adaptation Rule for Meters for information about calculating the next multiple equal to or less than the specified rate.

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. When min is defined, the operational CIR is the next multiple of 8 kbps that is greater than or equal to 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 that is closest to the specified rate.

 

pir adaptation-rule—
Specifies the adaptation rule used while computing the operational PIR value and defines the constraints enforced when adapting 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 for the meter. When the rate command is not specified, the default applies.
Note:

For 7210 SAS-Dxp, see Adaptation Rule for Meters for information about calculating the next multiple equal to or less than the specified rate.

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. When min is defined, the operational PIR is the next multiple of 8 kbps that is greater than or equal to 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 that is closest to the specified rate.

 

cbs

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command provides a mechanism to override the default CBS for the meter. The CBS command 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 returns the CBS size to the default value.

Default 

32 kbits

Parameters 
size—
Specifies the number of kilobits, kilobytes, or bytes reserved for the meter, expressed as an integer. For example, if a value of 100 kb is desired, enter the value 100 and the keyword kbits. The bucket size is rounded off to the next highest 4096-byte 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)

 

color-mode

Syntax 
color-mode color-mode
no color-mode
Context 
config>qos>sap-ingress>meter
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the meter to operate in either color-aware or color-blind mode.

In color-blind mode, the profile/color assigned to the packet on ingress is ignored. The CIR and PIR rate configured for the meter are used to determine the final profile/color for the packet. If the packet is within the CIR, the final profile/color assigned to the packet is in-profile/green; if the packet exceeds the CIR and is within the PIR, the final profile/color assigned to the packet is out-of-profile/yellow. Packets that exceed the PIR rate are dropped.

In color-aware mode, the meter uses the profile assigned to the packet on ingress. Profile can be assigned on ingress either by enabling DEI classification as done on access ports or by assigning profile based on either dot1p or DEI as done on network ports and access-uplink ports.

The following behavior is available in color-aware mode.

  1. If the packet is pre-colored as in-profile (or green packets), depending on the burst size of the packet, the meter can either be marked in-profile or out-profile.
  2. If the packet is pre-colored as out-profile (or yellow packets), even if the packet burst is less than the current available CBS, it is not marked as in-profile and remains as out-profile.
  3. If the packet burst is higher than the MBS, it is marked as red and is dropped by the meter at ingress.
Default 

color-blind

Parameters 
color-mode—
Specifies the mode the meter operates in.
Values—
color-aware — The meter operates in color-aware mode.
color-blind —The meter operates in color-blind mode.

 

mbs

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

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a mechanism to override the default MBS for the meter. The MBS 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 configures meter 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 reserved for the meter. For example, if a value of 100 kb is desired, enter the value 100 and the keyword kbits. The bucket size is rounded off to the next highest 4096-byte 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)

 

mode

Syntax 
mode {trtcm1 | trtcm2 | srtcm}
no mode
Context 
config>qos>sap-ingress>meter
Supported 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 anytime.

Note:

  1. The meter counters are reset to zero when the meter mode is changed.
  2. For more information about the interpretation of rate parameters when the meter mode is configured as “trtcm2”, see the command description of the policer rate command.

The no form of the command sets the default mode trtcm1.

Default 

trtcm1

Parameters 
trtcm1—
Specifies the policing algorithm defined in RFC2698 and meters the packet stream and marks its packets as green, yellow, or red. A packet is marked red if it exceeds the PIR. Otherwise, it is marked as yellow or green, depending on whether it exceeds the CIR. The trTCM1 is useful 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.
trtcm2—
Specifies the policing algorithm defined in RFC4115 and meter the packet stream and marks its packets either 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 the CIR. The trTCM2 is useful 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 EBS bucket. Tokens are added to the buckets based on the CIR and EIR rates. The algorithm deducts tokens from either the CBS bucket (that is, when the algorithm identifies the packet as in-profile or green packet) or the EBS bucket (that is, when the algorithm identifies the packet as out-of-profile or yellow packet).
Note:

When the meter mode is configured in trtcm2 mode, the system interprets the PIR rate parameter as EIR and the MBS parameter as the EBS value for use by RFC 4115 algorithm.

srtcm—
Specifies that an IP packet IP packet stream will be metered and marks its 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 doesn't exceed the CBS, yellow if it exceeds the CBS but not the MBS, and red otherwise. The srTCM is useful 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>sap-ingress>meter
Supported 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 anytime, altering the PIR and CIR rates for all meters created through the association of the SAP Ingress QoS policy with the meter-id.

The no form of this command reverts all meters created with the meter-id by association with the QoS policy to the default PIR(max) and CIR(0) parameters.

Default 

rate cir 0 pir max — 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.

Parameters 
cir cir-rate-in-kbps—
Specifies that the cir parameter overrides the default administrative CIR used by the meter. 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 must be given as 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)

 

8.5.1.3. Show Commands

sap-ingress

Syntax 
sap-ingress [policy-id] [detail | association | match-criteria]
Context 
show>qos
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays SAP ingress QoS policy information.

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

 

Default—
all SAP ingress policies
detail—
Displays detailed policy information including policy associations.
associations—
Displays the policy associations of the sap-ingress policy.
match-criterion—
Displays the match-criterion of the sap-ingress policy.
Output 

The following outputs are examples of QoS SAP ingress policy information, and Table 42 describes the output fields.

Sample Output
*A:SAS>show>qos# sap-ingress 1 detail
 
===============================================================================
QoS Sap Ingress
===============================================================================
-------------------------------------------------------------------------------
Sap Ingress Policy (1)
-------------------------------------------------------------------------------
Policy-id                 : 1                 Scope                : Template
Default FC                : be
Criteria-type             : None
Accounting                : packet-based
Classifiers Allowed       : 4                 Meters Allowed       : 2
Classifiers Reqrd (VPLS)  : 2                 Meters Reqrd (VPLS)  : 2
Classifiers Reqrd (EPIPE) : 1                 Meters Reqrd (EPIPE) : 1
Description    : Default SAP ingress QoS policy.
 
-------------------------------------------------------------------------------
Meter Mode  CIR Admin    CIR Rule   PIR Admin   PIR Rule   CBS Admin MBS Admin
            CIR Oper                PIR Oper               CBS Oper  MBS Oper
-------------------------------------------------------------------------------
1     TrTcm1      0         closest       max       closest   7 KBits 10 KBits
                  0                       max                 def       def
11    TrTcm1      0         closest       max       closest   8 KBits 11 KBits
                  0                       max                 def       def
 
-------------------------------------------------------------------------------
FC              UCastM         MCastM         BCastM         UnknownM
-------------------------------------------------------------------------------
No FC-Map Entries Found.
 
-------------------------------------------------------------------------------
Match Criteria
-------------------------------------------------------------------------------
No Matching Criteria.
 
-------------------------------------------------------------------------------
Associations
-------------------------------------------------------------------------------
No Associations Found.
 
===============================================================================
*A:SAS>show>qos#
Sample Output for 7210 SAS-D with DSCP Value and Mask

The following output is an example of SAP ingress QoS policy information on the 7210 SAS-D when the DCSP value and mask are configured.

*A:7210 SAS> show qos sap-ingress 2 detail
 
===============================================================================
QoS Sap Ingress
===============================================================================
-------------------------------------------------------------------------------
Sap Ingress Policy (2)
-------------------------------------------------------------------------------
Policy-id                 : 2                 Scope                : Template
Default FC                : be
Criteria-type             : IP                IP-Mac Rule Priority : None
Mac Sub-Criteria          : None              IP Sub-Criteria      : any
IPv6 Enabled              : False             IPv6 Sub-Criteria    : dscp
Accounting                : packet-based
Classifiers Allowed       : 2                 Meters Allowed       : 1
Classifiers Reqrd (VPLS)  : 2                 Meters Reqrd (VPLS)  : 1
Classifiers Reqrd (L3 Mc) : 2                 Meters Reqrd (L3 Mc) : 1
Classifiers Reqrd (EPIPE) : 2                 Meters Reqrd (EPIPE) : 1
Description               : (Not Specified)
 
-------------------------------------------------------------------------------
Meter Mode        CIR Admin  CIR Rule  PIR Admin  PIR Rule  CBS Admin MBS Admin
      Color Mode  CIR Oper             PIR Oper             CBS Oper  MBS Oper
-------------------------------------------------------------------------------
1     TrTcm1      0          closest   max        closest   def       def
      color-blind 0                    20000000             32        512
 
 
-------------------------------------------------------------------------------
FC        UCastM      MCastM      BCastM      UnknownM
-------------------------------------------------------------------------------
No FC-Map Entries Found.
 
-------------------------------------------------------------------------------
Match Criteria
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
IP Match Criteria
-------------------------------------------------------------------------------
Entry                     : 1
Description    : (Not Specified)
Source IP                 : Undefined         Source Port          : None
Dest. IP                  : Undefined         Dest. Port           : None
Protocol                  : none              DSCP value/mask      : 4/5
Fragment                  : Off               Ip Precedence        : None
FC                        : be
 
-------------------------------------------------------------------------------
IPv6 Match Criteria
-------------------------------------------------------------------------------
No Match Criteria Entries found.
 
 
SAP Associations
-------------------------------------------------------------------------------
Service-Id                : 1 (Epipe)         Customer-Id          : 1
 - SAP : 1/1/24
Sample Output for 7210 SAS-D with DSCP Name

The following output is an example of SAP ingress QoS policy information on the 7210 SAS-D when the DSCP name is configured.

*A:>config>service>epipe>sap$ /show qos sap-ingress 2 detail
 
===============================================================================
QoS Sap Ingress
===============================================================================
-------------------------------------------------------------------------------
Sap Ingress Policy (2)
-------------------------------------------------------------------------------
Policy-id                 : 2                 Scope                : Template
Default FC                : be
Criteria-type             : IP                IP-Mac Rule Priority : None
Mac Sub-Criteria          : None              IP Sub-Criteria      : any
IPv6 Enabled              : False             IPv6 Sub-Criteria    : dscp
Accounting                : packet-based
Classifiers Allowed       : 2                 Meters Allowed       : 1
Classifiers Reqrd (VPLS)  : 2                 Meters Reqrd (VPLS)  : 1
Classifiers Reqrd (L3 Mc) : 2                 Meters Reqrd (L3 Mc) : 1
Classifiers Reqrd (EPIPE) : 2                 Meters Reqrd (EPIPE) : 1
Description               : (Not Specified)
 
-------------------------------------------------------------------------------
Meter Mode        CIR Admin  CIR Rule  PIR Admin  PIR Rule  CBS Admin MBS Admin
      Color Mode  CIR Oper             PIR Oper             CBS Oper  MBS Oper
-------------------------------------------------------------------------------
1     TrTcm1      0          closest   max        closest   def       def
      color-blind 0                    20000000             32        512
 
 
-------------------------------------------------------------------------------
FC        UCastM      MCastM      BCastM      UnknownM
-------------------------------------------------------------------------------
No FC-Map Entries Found.
 
-------------------------------------------------------------------------------
Match Criteria
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
IP Match Criteria
-------------------------------------------------------------------------------
Entry                     : 1
Description    : (Not Specified)
Source IP                 : Undefined         Source Port          : None
Dest. IP                  : Undefined         Dest. Port           : None
Protocol                  : none              DSCP                 : cp63
Fragment                  : Off               Ip Precedence        : None
FC                        : be
 
-------------------------------------------------------------------------------
IPv6 Match Criteria
-------------------------------------------------------------------------------
No Match Criteria Entries found.
 
 
SAP Associations
-------------------------------------------------------------------------------
Service-Id                : 1 (Epipe)         Customer-Id          : 1
 - SAP : 1/1/24
Table 42:  Output Fields: QoS SAP Ingress 

Label

Description

Policy-Id

The ID that uniquely identifies the policy

Scope

Exclusive — Implies that this policy can only be applied to a single SAP

Template — Implies that this policy can be applied to multiple SAPs on the router

Default FC

Specifies the default FC for the policy

Criteria-type

IP — Specifies that an IP criteria-based SAP ingress policy is used to select the appropriate ingress meter and corresponding FC for matched traffic

MAC — Specifies that a MAC criteria-based SAP is used to select the appropriate ingress meters and corresponding FC for matched traffic

Accounting

Packet-based — Specifies that the meters associated with this policy do not account for packet framing overheads (such as the Inter Frame Gap (IFG) and the preamble for the Ethernet), 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

Classifiers Allowed

Indicates the number of classifiers allowed for a service

Classifiers Required

Indicates the number of classifiers for a VPLS or Epipe service

Description

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

Meter

Displays the meter ID

Mode

Specifies the configured mode of the meter (trTcm1,trTcm2 or srTcm)

CIR Admin

Specifies the administrative CIR parameters for the meters

CIR Rule

min — The operational CIR for the meters will be equal to or greater than the administrative rate specified using the rate command

max — The operational CIR for the meter will be equal to or less than the administrative rate specified using the rate command

closest — The operational PIR for the meters will be the rate closest to the rate specified using the rate command without exceeding the operational PIR

PIR Admin

Specifies the administrative PIR parameters for the meters.

PIR Rule

min — The operational PIR for the meter will be equal to or greater than the administrative rate specified using the rate command

max — The operational PIR for the meters will be equal to or less than the administrative rate specified using the rate command

closest — The operational PIR for the meters will be the rate closest to the rate specified using the rate command

CBS

def — Specifies the default CBS value for the meters

value — Specifies the value to override the default reserved buffers for the meters

MBS

def — Specifies the default MBS value

value — Specifies the value to override the default MBS for the meter

UCastM

Specifies the default unicast forwarding type meters mapping

MCastM

Specifies the overrides for the default multicast forwarding type meter mapping

BCastM

Specifies the default broadcast forwarding type meters mapping

UnknownM

Specifies the default unknown unicast forwarding type meters mapping

Match Criteria

Specifies an IP or MAC criteria entry for the policy

Entry

The entry ID in a policy or filter table

DSCP

Specifies a DiffServ Code Point (DSCP) name used for an ingress SAP QoS policy match

FC

Specifies the entry’s FC

Src MAC

Specifies a source MAC address or range to be used as a Service Ingress QoS policy match

Dst MAC

Specifies a destination MAC address or range to be used as a Service Ingress QoS policy match

dot1p

Specifies a IEEE 802.1p value to be used as the match

Ethernet-type

Specifies an Ethernet type II Ethertype value to be used as a Service Ingress QoS policy match

FC

Specifies the entry’s FC

Service Association

Service-Id

The unique service ID number which identifies the service in the service domain

Customer-Id

Specifies the customer ID which identifies the customer to the service

SAP

Specifies the a Service Access Point (SAP) within the service where the SAP ingress policy is applied

Classifiers required

Indicates the number of classifiers for a VPLS or Epipe service

Meters required

Indicates the number of meters for a VPLS or Epipe service