dscp dscp-value | dscp-name [dscp-mask]
no dscp
config>qos>sap-ingress>ip-criteria>entry>match
config>qos>sap-ingress>ipv6-criteria>entry>match
Supported on all 7210 SAS platforms as described in this document
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.
This feature is applicable for ip-criteria (any and dscp-only) and ipv6-criteria (any and dscp-only).
The user is not be allowed to configure dscp name and dscp mask combinations.
When the user configures dscp value alone, the ‟show” command displays dscp value as configured value and dscp mask as ‟FC”.
Use of dscp-value and dscp-mask allows for efficient use of match resources in hardware, because 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.
Specifies the DSCP value in hexadecimal, decimal, or binary format.
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.
Specifies a 6-bit mask that can be configured using the formats described in the following table.
This parameter is only supported on the 7210 SAS-D and 7210 SAS-Dxp.
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.
dst-ip {ip-address/mask}
dst-ip {ipv6-address/mask}
no dst-ip
config>qos>sap-ingress>ip-criteria>entry>match
config>qos>sap-ingress>ipv6-criteria>entry>match
Supported on all 7210 SAS platforms as described in this document
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.
Specifies the IP address of the destination IP interface. This address must be unique within the subnet and specified in dotted-decimal notation.
Specifies the IP address of the destination IPv6 interface. This address must be unique within the subnet.
Specifies the length in bits of the subnet mask.
dst-port {eq} dst-port-number
no dst-port
config>qos>sap-ingress
config>qos>sap-ingress>ip-criteria>entry>match
Supported on all 7210 SAS platforms as described in this document
This command configures a destination TCP or UDP port number for a SAP QoS policy match criterion.
The no form of this command removes the destination port match criterion.
Specifies the destination TCP or UDP port number, specified as equal to (eq) the destination port value specified as a decimal integer.
ip-prec ip-prec-value [ip-prec-mask]
no ip-prec
config>qos>sap-ingress>ip-criteria>entry>match
config>qos>sap-ingress>ipv6-criteria>entry>match
Supported on all 7210 SAS platforms as described in this document
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.
Specifies the unique IP header ToS byte precedence bits value that matches the IP precedence rule.
Specifies a mask that can be configured using the formats described in the following table.
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 ipv4-address/mask
no src-ip
config>qos>sap-ingress>ip-criteria>entry>match
config>qos>sap-egress>ip-criteria>entry>match
Supported on all 7210 SAS platforms as described in this document
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.
Specifies the IPv4 address of the source IP interface. This address must be unique within the subnet and specified in dotted-decimal notation.
Specifies the subnet mask length, expressed as an integer or in dotted-decimal notation.
src-ip ipv6-address/mask
no src-ip
config>qos>sap-ingress>ipv6-criteria>entry>match
config>qos>sap-egress>ipv6-criteria>entry>match
Supported on all 7210 SAS platforms as described in this document
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.
Specifies the IPv6 address of the source IP interface. This address must be unique within the subnet.
Specifies the subnet mask length, expressed as an integer.
src-port {eq} src-port-number
no src-port
config>qos>sap-ingress>ip-criteria>entry>match
Supported on all 7210 SAS platforms as described in this document
This command configures a source TCP or UDP port number for a SAP QoS policy match criterion.
The no form of this command removes the source port match criterion.
Specifies the source TCP or UDP port number, as a decimal integer, against which to match equal (eq) values.