Page 291 / 400 Scroll up to view Page 286 - 290
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quality of Service (QoS) Commands
11-29
202-10088-01, March 2005
Note:
Queue depth management defaults to tail drop, but the randomdrop command can be used
to change to a RED scheme.
Format
shape peak <1-4294967295> <1-4294967295>
Mode
Policy-classmap Config
Restrictions
Neither of the shaping rate parameters is allowed to exceed the
maximum link data rate of the interface to which the policy is
applied.
Policy Type
Out
Incompatibilities
Expedite (all forms)
Service Commands
The 'service' command set is used in DiffServ to define:
Traffic Conditioning
Assign a DiffServ traffic conditioning policy (as specified by the
policy commands) to an interface in the incoming direction
Service Provisioning
Assign a DiffServ service provisioning policy (as specified by the
policy commands) to an interface in the outgoing direction
The service commands attach a defined policy to a directional interface. Only one policy may be
assigned at any one time to an interface in a particular direction. The policy type (in, out) must
match the interface direction to which it is attached.
This set of commands consists of service addition/removal.
The CLI command root is
service-policy
service-policy
This command attaches a policy to an interface in a particular direction. The command can be used
in the
Interface Config
mode to attach a policy to a specific interface. Alternatively, the command
can be used in the
Global Config
mode to attach this policy to all system interfaces. The direction
value is either in or out. The <
policyname>
parameter is the name of an existing DiffServ policy,
whose type must match the interface direction. Note that this command causes a service to create a
reference to the policy.
Note:
This command effectively enables DiffServ on an interface (in a particular direction). There
is no separate interface administrative 'mode' command for DiffServ.
Page 292 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
11-30
Quality of Service (QoS) Commands
202-10088-01, March 2005
Note:
This command shall fail if any attributes within the policy definition exceed the capabilities
of the interface. Once a policy is successfully attached to an interface, any attempt to change the
policy definition such that it would result in a violation of said interface capabilities shall cause the
policy change attempt to fail.
Format
service-policy <in | out> <policymapname>
Modes
Global Config (for all system interfaces)
Interface Config (for a specific interface)
Restrictions
Only a single policy may be attached to a particular interface in a
particular direction at any one time.
no service-policy
This command detaches a policy from an interface in a particular direction. The command can be
used in the Interface Config mode to detach a policy from a specific interface. Alternatively, the
command can be used in the Global Config mode to detach this policy from all system interfaces
to which it is currently attached. The direction value is either in or out. The <
policyname>
parameter is the name of an existing DiffServ policy. Note that this command causes a service to
remove its reference to the policy.
Note:
This command effectively disables DiffServ on an interface (in a particular direction).
There is no separate interface administrative 'mode' command for DiffServ.
Format
no service-policy <in | out> <policymapname>
Modes
Global Config (for all system interfaces)
Interface Config (for a specific interface)
Show Commands
The 'show' command set is used in DiffServ to display configuration and status information for:
Classes
Policies
Services
This information can be displayed in either summary or detailed formats. The status information is
only shown when the DiffServ administrative mode is enabled; it is suppressed otherwise.
There is also a 'show' command for general DiffServ information that is available at any time.
Page 293 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quality of Service (QoS) Commands
11-31
202-10088-01, March 2005
show class-map
This command displays all configuration information for the specified class. The
<classname>
is
the name of an existing DiffServ class.
Format
show class-map
<classname>
Mode
Privileged EXEC and User EXEC
If the Class Name is specified the following fields are displayed:
Class Name
The name of this class.
Class Type
The class type (all, any, or acl) indicating how the match criteria
are evaluated for this class. A class type of all means every match
criterion defined for the class is evaluated simultaneously they
must all be true to indicate a class match. For a type of any each
match criterion is evaluated sequentially and only one need be
true to indicate a class match. Class type acl rules are evaluated in
a hybrid manner, with those derived from each ACL Rule
grouped and evaluated simultaneously, while each such grouping
is evaluated sequentially.
Match Criteria
The Match Criteria fields will only be displayed if they have been
configured. They will be displayed in the order entered by the
user. These are evaluated in accordance with the class type. The
possible Match Criteria fields are: Class of Service, Destination
IP Address, Destination Layer 4 Port, Destination MAC Address,
Every, IP DSCP, IP Precedence, IP TOS, Protocol Keyword, Ref-
erence Class, Source IP Address, Source Layer 4 Port, Source
MAC Address, COS,
Secondary COS
, and VLAN,
Secondary
VLAN, and Ethertype
.
Values
This field displays the values of the Match Criteria.
Excluded
This field indicates whether or not this Match Criteria is
excluded.
If the Class Name is not specified, this command displays a list of all defined DiffServ classes. The
following fields are displayed:
Class Name
The name of this class. (Note that the order in which classes are
displayed is not necessarily the same order in which they were
created.)
Page 294 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
11-32
Quality of Service (QoS) Commands
202-10088-01, March 2005
Class Type
The class type (all, any, or acl) indicating how the match cri-
teria are evaluated for this class. A class type of all means
every match criterion defined for the class is evaluated simul-
taneously they must all be true to indicate a class match.For a
type of any each match criterion is evaluated sequentially and
only one need be true to indicate a class match. Class type acl
rules are evaluated in a hybrid manner, with those derived
from each ACL Rule grouped and evaluated simultaneously,
while each such grouping is evaluated sequentially.
ACL Number
The ACL number used to define the class match conditions
at the time the class was created. This field is only meaning-
ful if the class type is acl. (Note that the contents of the ACL
may have changed since this class was created.)
Ref Class Name
The name of an existing DiffServ class whose match con-
ditions are being referenced by the specified class definition.
show diffserv
This command displays the DiffServ General Status Group information, which includes the
current administrative mode setting as well as the current and maximum number of rows in each of
the main DiffServ private MIB tables. This command takes no options.
Format
show diffserv
Mode
Privileged EXEC
DiffServ Admin mode
The current value of the DiffServ administrative mode.
Class Table Size
The current number of entries (rows) in the Class Table.
Class Table Max
The maximum allowed entries (rows) for the Class Table.
Class Rule Table Size
The current number of entries (rows) in the Class Rule Table.
Class Rule Table Max
The maximum allowed entries (rows) for the Class Rule Table.
Policy Table Size
The current number of entries (rows) in the Policy Table.
Policy Table Max
The maximum allowed entries (rows) for the Policy Table.
Policy Instance Table Size
The current number of entries (rows) in the Policy Instance
Table.
Policy Instance Table Max
The maximum allowed entries (rows) for the Policy Instance
Table.
Page 295 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quality of Service (QoS) Commands
11-33
202-10088-01, March 2005
Policy Attribute Table Size
The current number of entries (rows) in the Policy Attribute
Table.
Policy Attribute Table Max
The maximum allowed entries (rows) for the Policy Attribute
Table.
Service Table Size
The current number of entries (rows) in the Service Table.
Service Table Max
The maximum allowed entries (rows) for the Service Table.
show policy-map
This command displays all configuration information for the specified policy. The <policyname>
is the name of an existing DiffServ policy.
Format
show policy-map
[policyname]
Mode
Policy-classmap Config
Mark Secondary COS
Denotes the secondary class of service value that is set in the
802.1p header of outbound packets. This is not displayed if the
mark secondary-cos was not specified.
Conform COS
The action to be taken on conforming packets per the policing
metrics.
Conform Secondary COS
The action to be taken on packets conforming with the second-
ary class of service value per the policing metrics.
Exceed COS
The action to be taken on excess packets per the policing metrics.
Exceed Secondary COS
The action to be taken on excess packets conforming with the
secondary class of service value per the policing metrics.
Non-Conform COS
The action to be taken on violating packets per the policing met-
ric.
Non-Conform Secondary COS
The action to be taken on violating packets conforming
with the secondary class of service per the policing metric.
Assign Queue
Directs traffic stream to the specified QoS queue.
This allows a
traffic classifier to specify which one of the supported hardware
queues are used for handling packets belonging to the class.
Drop
Drop a packet upon arrival.
This is useful for emulating access
control list operation using DiffServ, especially when DiffServ
and ACL cannot co-exist on the same interface.
Redirect
Forces a classified traffic stream to a specified egress port (physi-
cal or LAG).
This can occur in addition to any marking or polic-

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top