Page 286 / 400 Scroll up to view Page 281 - 285
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
11-24
Quality of Service (QoS) Commands
202-10088-01, March 2005
Policy Type
In
Incompatibilities
Mark IP Precedence, Police (all forms)
mark ip-precedence
This command marks all packets for the associated traffic stream with the specified IP Precedence
value. The IP Precedence value is an integer from 0 to 7.
Format
mark ip-precedence <0-7>
Mode
Policy-classmap Config
Policy Type
In
Incompatibilities
Mark IP DSCP, Police (all forms)
police-simple
This command is used to establish the traffic policing style for the specified class. The simple form
of the police command uses a single data rate and burst size, resulting in two outcomes: conform
and nonconform. The conforming data rate is specified in kilobits-per-second (Kbps) and is an
integer from 1 to 4294967295. The conforming burst size is specified in kilobytes (KB) and is an
integer from 1 to 128.
For each outcome, the only possible actions are drop,
set-cos-transmit,| set-sec-cos-transmit,
set-
dscp-transmit, set-prec-transmit, or transmit. In this simple form of the police command, the
conform action defaults to transmit and the violate action defaults to drop. These actions can be set
with this command once the style has been configured.
For set-dscp-transmit, a <
dscpval>
value is required and 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
.
For set-prec-transmit, an IP Precedence value is required and is specified as an integer from 0-7.
Format
police-simple {<1-4294967295> <1-128> conform-action
{drop | set-cos-transmit <0-7> | set-sec-cos-transmit
<0-7> | set-prec-transmit <0-7> | set-dscp-transmit
<0-63> | transmit} [violate-action {drop | set-cos-
transmit <0-7> | set-sec-cos-transmit <0-7> | set-
prec-transmit <0-7> | set-dscp-transmit <0-63> |
transmit}]}
Mode
Policy-classmap Config
Page 287 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quality of Service (QoS) Commands
11-25
202-10088-01, March 2005
Restrictions
Only one style of police command (simple, singlerate, tworate) is
allowed for a given class instance in a particular policy.
Policy Type
In
Incompatibilities
Mark IP DSCP, Mark IP Precedence
police-single-rate
This command is used to establish the traffic policing style for the specified class. The single-rate
form of the police command uses a single data rate and two burst sizes, resulting in three
outcomes: conform, exceed and violate. The conforming data rate is specified in kilobits-per-
second (Kbps) and is an integer from 1 to 4294967295. The conforming burst size is specified in
kilobytes (KB) as an integer from 1 to 128. The exceeding burst size is specified in kilobytes (KB)
as an integer from 1 to 128. Note that the exceeding burst size must be equal to or greater than the
conforming burst size.
For each outcome, the only possible actions are drop,
set-cos-transmit, set-sec-cos-transmit,
set-
dscp-transmit, set-prec-transmit, or transmit. In this singlerate form of the police command, the
conform action defaults to send, the exceed action defaults to drop, and the violate action defaults
to drop. These actions can be set with this command once the style has been configured.
For set-dscp-transmit, a <
dscpval>
value is required and 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
.
For set-prec-transmit, an IP Precedence value is required and is specified as an integer from 0-7.
Format
police-single-rate {<1-4294967295> <1-128> <1-128>
conform-action {drop | set-cos-transmit <0-7> | set-
sec-cos-transmit <0-7> | set-prec-transmit <0-7> |
set-dscp-transmit <0-63> | transmit} exceed-action
{drop | set-cos-transmit <0-7> | set-sec-cos-transmit
<0-7> | set-prec-transmit <0-7> | set-dscp-transmit
<0-63> | transmit} [violate-action {drop | set-cos-
transmit <0-7> | set-sec-cos-transmit <0-7> | set-
prec-transmit <0-7> | set-dscp-transmit <0-63> |
transmit}]}
Mode
Policy-classmap Config
Restrictions
Only one style of police command (simple, singlerate, tworate) is
allowed for a given class instance in a particular policy.
Policy Type
In
Incompatibilities
Mark IP DSCP, Mark IP Precedence
Page 288 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
11-26
Quality of Service (QoS) Commands
202-10088-01, March 2005
police-two-rate
This command is used to establish the traffic policing style for the specified class. The two-rate
form of the police command uses two data rates and two burst sizes, resulting in three outcomes:
conform, exceed and violate. The first two data parameters are the conforming data rate and burst
size. The conforming data rate is specified in kilobits-per-second (Kbps) and is an integer from 1
to 4294967295, while the conforming burst size is specified in kilobytes (KB) as an integer from 1
to 128. The next two data parameters are the peak data rate and burst size. The peak data rate is
specified in kilobits-per-second (Kbps) as an integer from 1 to 4294967295, while the peak burst
size is specified in kilobytes (KB) as an integer from 1 to 128. Note that the peak data rate must be
equal to or greater than the conforming data rate.
For each outcome, the only possible actions are drop,
set-cos-transmit, set-sec-cos-transmit,
set-
dscp-transmit, set-prec-transmit, or transmit. In this two-rate form of the police command, the
conform action defaults to send, the exceed action defaults to drop, and the violate action defaults
to drop. These actions can be set with this command
For set-dscp-transmit, a <
dscpval>
value is required and 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
.
For set-prec-transmit, an IP Precedence value is required and is specified as an integer from 0-7.
Format
police-two-rate {<1-4294967295> <1-4294967295> <1-
128> <1-128> conform-action {drop | set-cos-transmit
<0-7> | set-sec-cos-transmit <0-7> | set-prec-trans-
mit <0-7> | set-dscp-transmit <0-63> | transmit}
exceed-action {drop | set-cos-transmit <0-7> | set-
sec-cos-transmit <0-7> | set-prec-transmit <0-7> |
set-dscp-transmit <0-63> | transmit} [violate-action
{drop | set-cos-transmit <0-7> | set-sec-cos-transmit
<0-7> | set-prec-transmit <0-7> | set-dscp-transmit
<0-63> | transmit}]}
Mode
Policy-classmap Config
Restrictions
Only one style of police command (simple, singlerate, tworate) is
allowed for a given class instance in a particular policy.
Policy Type
In
Incompatibilities
Mark IP DSCP, Mark IP Precedence
Page 289 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quality of Service (QoS) Commands
11-27
202-10088-01, March 2005
policy-map
This command establishes a new DiffServ policy. The <
policyname>
parameter is a case-sensitive
alphanumeric string from 1 to 31 characters uniquely identifying the policy. The type of policy is
specific to either the inbound or outbound traffic direction as indicated by the {
in | out}
parameter.
Note: The policy type dictates which of the individual policy attribute commands are valid within
the policy definition.
Note: The CLI mode is changed to Policy-Map Config when this command is successfully
executed.
Format
policy-map <policyname> <in | out>
Mode
Global Config
no policy-map
This command eliminates an existing DiffServ policy. The <
policyname>
parameter is the name
of an existing DiffServ policy. This command may be issued at any time; if the policy is currently
referenced by one or more interface service attachments, this deletion attempt shall fail.
Format
no policy-map <policyname>
Mode
Global Config
policy-map rename
This command changes the name of a DiffServ policy. The <
policyname>
is the name of an
existing DiffServ class. The <
newpolicyname>
parameter is a case-sensitive alphanumeric string
from 1 to 31 characters uniquely identifying the policy.
Format
policy-map rename <policyname> <newpolicyname>
Mode
Global Config
randomdrop
This command changes the active queue depth management scheme from the default tail drop to
RED. The first two data parameters are the average queue depth minimum and maximum
threshold values specified in bytes. The minimum threshold is an integer from 1 to 250000. The
maximum threshold is an integer from 1 to 500000, but it must be equal to or greater than the
minimum threshold. The third data parameter is the maximum drop probability and is an integer
from 0 to 100. It indicates the percentage likelihood that a packet will be dropped when the
average queue depth reaches the maximum threshold value.
Page 290 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
11-28
Quality of Service (QoS) Commands
202-10088-01, March 2005
The remaining parameters are all optional. The fourth data parameter is the sampling rate,
indicating the period at which the queue is sampled for computing the average depth. Expressed in
microseconds, the sampling rate is an integer from 0 to 1000000, with a default of 0 (meaning per-
packet sampling). The last parameter is the decay exponent, which determines how quickly the
average queue length calculation decays over time, with a higher number producing a faster rate of
decay. This value is an integer from 0 to 16, with a default of 9.
Note:
The last two parameters, namely sampling rate and decay exponent, are hierarchically
specified in this command. That is, in order to provide a value for the decay exponent <0-16>, the
user is required to also specify a sampling rate <
0-1000000>
for proper command interpretation.
Format
randomdrop <1-250000> <1-500000> <0-100> [<0-1000000>
[<0-16>]]
Mode
Policy-classmap Config
Policy Type
Out
shape average
This command is used to establish average rate traffic shaping for the specified class, which limits
transmissions for the class to the committed information rate, with excess traffic delayed via
queueing. The committed information rate is specified in kilobits-per-second (Kbps) and is an
integer from 1 to 4294967295.
Note:
Queue depth management defaults to tail drop, but the randomdrop command can be used
to change to a RED scheme.
Format
shape average <1-4294967295>
Mode
Policy-classmap Config
Restrictions
This shaping rate must not exceed the maximum link data rate of
the interface to which the policy is applied.
Policy Type
Out
shape peak
This command is used to establish peak rate traffic shaping for the specified class, which allows
transmissions for the class to exceed the committed information rate by sending excess traffic with
the understanding that it could be dropped by a downstream network element. Two rate parameters
are used, a committed information rate and a peak information rate. Each of these rates is specified
in kilobits-per-second (Kbps) and is an integer from 1 to 4294967295. The peak rate must be
specified as equal to or greater than the committed rate.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top