Page 276 / 400 Scroll up to view Page 271 - 275
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
11-14
Quality of Service (QoS) Commands
202-10088-01, March 2005
match dstip
This command adds to the specified class definition a match condition based on the destination IP
address of a packet. The <ipaddr>
parameter specifies an IP address. The <
ipmask>
parameter
specifies an IP address bit mask; note that although similar to a standard subnet mask, this bit mask
need not be contiguous. The optional [
not]
parameter has the effect of negating this match
condition for the class (i.e., match all destination IP addresses except for what is specified here).
Default
none
Format
match [not] dstip <ipaddr> <ipmask>
Mode
Class-Map Config
match dstl4port
This command adds to the specified class definition a match condition based on the destination
layer 4 port of a packet using a single keyword or numeric notation or a numeric range notation.
To specify the match condition as a single keyword, the value for <
portkey>
is one of the supported
port name keywords. The currently supported <
portkey>
values are:
domain, echo, ftp, ftpdata, http,
smtp, snmp, telnet, tftp, www
. Each of these translates into its equivalent port number, which is used as
both the start and end of a port range.
To specify the match condition using a numeric notation, one layer 4 port number is required. The
port number is an integer from 0 to 65535.
To specify the match condition using a numeric range notation, two layer 4 port numbers are
required and together they specify a contiguous port range. Each port number is an integer from 0
to 65535, but with the added requirement that the second number be equal to or greater than the
first.
The optional [not] parameter has the effect of negating this match condition for the class (i.e.,
match all destination layer 4 port numbers except for the one specified here).
Default
none
Format
match [not] dstl4port {portkey | <0-65535>} [0-65535]
Mode
Class-Map Config
Page 277 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quality of Service (QoS) Commands
11-15
202-10088-01, March 2005
match ip dscp
This command adds to the specified class definition a match condition based on the value of the IP
DiffServ Code Point (DSCP) field in a packet, which is defined as the high-order six bits of the
Service Type octet in the IP header (the low-order two bits are not checked). The optional [
not]
parameter has the effect of negating this match condition for the class (i.e., match all IP DSCP
values except for what is specified here). The <
dscpval>
value is specified as either an integer from
0 to 63, or symbolically through one of the following keywords:
af11, af12, af13, af21, af22, af23, af31,
af32, af33, af41, af42, af43, be, cs0, cs1, cs2, cs3, cs4, cs5, cs6, cs7, ef
.
Note: The ip dscp, ip precedence, and ip tos match conditions are alternative ways to specify a
match criterion for the same Service Type field in the IP header, but with a slightly different user
notation.
Note: To specify a match on all DSCP values, use the match [not] ip tos <tosbits> <tosmask>
command with <
tosbits
> set to 0 and <
tosmask
> set to 03 (hex).
Default
none
Format
match [not] ip dscp <dscpval>
Mode
Class-Map Config
match ip precedence
This command adds to the specified class definition a match condition based on the value of the IP
Precedence field in a packet, which is defined as the high-order three bits of the Service Type octet
in the IP header (the low-order five bits are not checked). The precedence value is an integer from
0 to 7. The optional [
not]
parameter has the effect of negating this match condition for the class
(i.e., match all IP Precedence values except for what is specified here).
Note: The ip dscp, ip precedence, and ip tos match conditions are alternative ways to specify a
match criterion for the same Service Type field in the IP header, but with a slightly different user
notation.
Note: To specify a match on all Precedence values, use the match [not] ip tos <tosbits> <tosmask>
command with <
tosbits>
set to 0 and <
tosmask>
set to 1F (hex).
Default
none
Format
match [not] ip precedence <0-7>
Mode
Class-Map Config
Page 278 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
11-16
Quality of Service (QoS) Commands
202-10088-01, March 2005
match ip tos
This command adds to the specified class definition a match condition based on the value of the IP
TOS field in a packet, which is defined as all eight bits of the Service Type octet in the IP header.
The value of <
tosbits>
is a two-digit hexadecimal number from 00 to ff. The value of <
tosmask>
is a
two-digit hexadecimal number from 00 to ff. The optional [
not]
parameter has the effect of
negating this match condition for the class (i.e., match all IP Precedence values except for what is
specified here). The <
tosmask>
denotes the bit positions in <
tosbits>
that are used for comparison
against the IP TOS field in a packet. For example, to check for an IP TOS value having bits 7 and
5 set and bit 1 clear, where bit 7 is most significant, use a <
tosbits>
value of a0 (hex) and a
<
tosmask>
of a2 (hex).
Note: The ip dscp, ip precedence, and ip tos match conditions are alternative ways to specify a
match criterion for the same Service Type field in the IP header, but with a slightly different user
notation.
Note: In essence, this the “free form” version of the IP DSCP/Precedence/TOS match specification
in that the user has complete control of specifying which bits of the IP Service Type field are
checked.
Default
none
Format
match [not] ip tos <tosbits> <tosmask>
Mode
Class-Map Config
match protocol
This command adds to the specified class definition a match condition based on the value of the IP
Protocol field in a packet using a single keyword notation or a numeric value notation.
To specify the match condition using a single keyword notation, the value for <
protocol-name>
is
one of the supported protocol name keywords. The currently supported values are:
icmp, igmp, ip,
tcp, udp
. Note that a value of
ip
is interpreted to match all protocol number values.
To specify the match condition using a numeric value notation, the protocol number is a standard
value assigned by IANA and is interpreted as an integer from 0 to 255. Note: This command does
not validate the protocol number value against the current list defined by IANA.
The optional
[
not]
parameter has the effect of negating this match condition for the class (i.e.,
match all IP Protocol numbers except for the one specified here).
Default
none
Format
match [not] protocol {protocol-name | <0-255>}
Page 279 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quality of Service (QoS) Commands
11-17
202-10088-01, March 2005
Mode
Class-Map Config
match source-address mac
This command adds to the specified class definition a match condition based on the source MAC
address of a packet. The <
address>
parameter is any layer 2 MAC address formatted as six, two-
digit hexadecimal numbers separated by colons (e.g., 00:11:22:dd:ee:ff). The <
macmask>
parameter is a layer 2 MAC address bit mask, which need not be contiguous, and is formatted as
six, two-digit hexadecimal numbers separated by colons (e.g., ff:07:23:ff:fe:dc). The optional
[
not]
parameter has the effect of negating this match condition for the class (i.e., match all source MAC
addresses except for what is specified here).
Default
none
Format
match [not] source-address mac <address> <macmask>
Mode
Class-Map Config
match srcip
This command adds to the specified class definition a match condition based on the source IP
address of a packet. The <ipaddr>
parameter specifies an IP address. The <
ipmask>
parameter
specifies an IP address bit mask; note that although it resembles a standard subnet mask, this bit
mask need not be contiguous. The optional [
not]
parameter has the effect of negating this match
condition for the class (i.e., match all source IP addresses except for what is specified here).
Default
none
Format
match [not] srcip <ipaddr> <ipmask>
Mode
Class-Map Config
match srcl4port
This command adds to the specified class definition a match condition based on the source layer 4
port of a packet using a single keyword or numeric notation or a numeric range notation.
To specify the match condition as a single keyword notation, the value for <
portkey>
is one of the
supported port name keywords (listed below).
The currently supported <
portkey>
values are:
domain, echo, ftp, ftpdata, http, smtp, snmp, telnet, tftp,
www
. Each of these translates into its equivalent port number, which is used as both the start and
end of a port range.
Page 280 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
11-18
Quality of Service (QoS) Commands
202-10088-01, March 2005
To specify the match condition as a numeric value, one layer 4 port number is required. The port
number is an integer from 0 to 65535.
To specify the match condition as a range, rwo layer 4 port numbers are required and together they
specify a contiguous port range. Each port number is an integer from 0 to 65535, but with the
added requirement that the second number be equal to or greater than the first. The optional [
not]
parameter has the effect of negating this match condition for the class (i.e., match all source layer 4
ports except for those within the range specified here).
The optional [
not]
parameter has the effect of negating this match condition for the class (i.e.,
match all source layer 4 port numbers except for the one specified here).
Default
None
Format
match [not] srcl4port {portkey | <0-65535>} [0-65535]
Mode
Class-Map Config
match vlan
This command adds to the specified class definition a match condition based on the value of the
layer 2 VLAN Identifier field (the only tag in a single tagged packet or the first or outer tag of a
double VLAN tagged packet). The VLAN ID is an integer from 1 to 4094. The optional [
not]
parameter has the effect of negating this match condition for the class (i.e., match all VLAN
Identifier values except for what is specified here).
Default
None
Format
match [not] vlan <1-4094>
Mode
Class-Map Config
Policy Commands
The 'policy' command set is used in DiffServ to define:
Traffic Conditioning
Specify traffic conditioning actions (policing, marking, shaping)
to apply to traffic classes
Service Provisioning
Specify bandwidth and queue depth management requirements of
service levels (EF, AF, etc.)
The policy commands are used to associate a traffic class, which was defined by the class
command set, with one or more QoS policy attributes. This association is then assigned to an
interface to form a service. The user specifies the policy name when the policy is created.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top