QoS configuration Command Directory
This chapter
describes the commands related to QoS. The concept of QoS can be referred to
the summary of QoS
The
configuration command “class” in the configuration status of policy mapping can be used for
configuring the name of class mapping used by current policy mapping, the
occupied bandwidth and queue limit. The “no” format of the command can be used
for deleting a class mapping or restoring the default value of parameter.
class
class-name bandwidth bandwidth(kbps) [queue-limit packet-number]
no class class-name [ bandwidth bandwidth(kbps)] [queue-limit packet-number]
parameter:
class-name : The name of class mapping (the
maximum length is 64 bytes)
bandwidth : Size of bandwidth
packet-number :
The maximum length of queue
default:
The default value of the maximum
length of queue is 64, the size of bandwidth has no default value
command mode:
Policy Mapping Configuration Mode
explanation:
none
relevant command:
The global
configuration command “class-map” can be used for defining some class
stream. The “no” format of the command can be used for deleting some class
mapping.
class-map
class-name match
protocol protocol-type
class-map
class-name match interface
interface-type interface-number
class-map class-name
match access-group list-name
no class-map class-name
parameter:
class-name |
Name of class mapping (maximum length
is 64 bytes) |
protocol-type |
Type of Protocol |
interface-type |
Name of interface |
interface-number |
Number of interface |
List-name |
Name of access list |
default:
none
command mode:
global communication mode
explanation:
none
relevant
command:
The
interface configuration command “custom-queue-list” can be used
for using CQ algorithm on an interface. The “no” format of the command can be
used for canceling CQ algorithm.
custom-queue-list list-number
no custom-queue-list list-number
parameter:
list-number |
User-defined
list number(1-16) |
default:
none
command mode:
Interface configuration mode
explanation:
none
relevant
command:
The
interface configuration command “fair-queue” can be used for using fair queue
policy. The “no” format of the command can be used for canceling fair queue policy
(restoring to “first-in, first-out”)
fair-queue
no fair-queue
parameter:
none
default:
On the interface with an operating rate
of 2.048Mbps or less, WFQ is the default queue mode.
command mode:
Interface configuration mode
explanation:
The command is disabled on the interface
configured with X25 and LAPB
relevant command:
The global
configuration command “policy-map” can be used for configuring a
policy mapping. The “no” format of the command can be used for
deleting some policy mapping.
policy-map policy-name
no policy-map
policy-name
parameter:
policy -name |
Name of
policy mapping (the maximum length is 64 bytes) |
default:
none
command mode:
global communication mode
explanation:
The configuration status of policy
mapping can be accessed by using executing the command.
relevant
command:
The
interface configuration command can be used for using PQ algorithm on an
interface. The “no” format of the command can be used for canceling PQ
algorithm.
priority-group list-number
no priority-group list-number
parameter:
list-number |
Number of priority list(1-16) |
default:
none
command mode:
Interface configuration mode
explanation:
none
relevant
command:
The global
configuration command “priority-list default” can be used
for distributing a priority queue for the data packet that does not comply with
any rules of priority list. The “no” format of the command can be used for
restoring default value.
priority-list
list-number default {high | medium
| normal | low}
no
priority-list list-number
default
parameter:
list-number |
Number of priority list(1-16) |
high | medium
| normal | low |
Priority
level |
default:
The default value of each priority list
is normal
command mode:
global communication mode
explanation:
none
relevant
command:
The global
configuration command “priority-list interface” can be used
for creating queue priority for the data packet accessed to some given
interface. The “no” format of the command can be used for deleing some definition.
priority-list list-number interface interface-type
interface-number {high | medium | normal | low}
no priority-list list-number interface[interface-type interface-number high | medium
| normal | low]
parameter:
list-number |
Number of priority list(1-16) |
interface-type |
Name of
interface |
interface-number |
Number of interface |
high | medium
| normal | low |
Priority
level |
default:
none
command mode:
global communication mode
explanation:
If queue number is 0, it means that such kind of packet
shall be put into default queue.
When “no” is used for deleting, the key “enter”
shall be entered after interface, which will delete all the items using
interface as match standards in the list. If not so, the item can be deleted
only when the name of interface, interface number and priority level match with
each other.
relevant
command:
The global
configuration command “priority-list protocol” can be used
for creating queue priority on the protocol type. The “no” format of the command can be used for deleting some definition.
priority-list list-number protocol protocol-type {high | medium
| normal | low} [keyword keyword-value]
no priority-list list-number protocol[protocol-type high | medium
| normal | low keyword keyword-value]
parameter:
list-number |
Number of Priority List (1-16) |
protocol-type |
Protocol type (including ip,arp,compressed_tcp) |
high | medium | normal
| low |
Priority level |
keyword |
Keyword type |
keyword-value |
The value of keyword (for gt and lt, it means the length of
packet; For access-list, it means the name of access-list; For tcp and udp,
it means interface number; fragment has no this item)
|
default:
none
command mode:
global communication mode
explanation:
The keyword type of arp and compressed_tcp is gt and lt.
If queue number is 0, it means that such kind of packet shall be
put into default queue.
When “no” is used for deleting, the key “enter”
shall be entered after protocol, which will delete all the items using protocol as match standards in the list. If not so, the item can be deleted
only when the protocol type, priority level, keyword type and value of keyword
match with each other.
relevant
command:
The global
configuration command “priority-list queue-limit” can
be used for designating the queue limit of each priority queue list. The “no”
format of the command can be used for restoring the default value.
priority-list list-number queue-limit high-limit
medium-limit normal-limit low-limit
no priority-list
list-number queue-limit
parameter:
list-number |
Number of priority list |
high-limit |
The limit of high priority queue (1-32767)
|
middle-limit |
The limit of middle priority queue |
normal-limit |
The limit of normal priority queue |
default:
Default values of high, middle and low
priority are 20, 60 and 80 respectively.
command mode:
global communication mode
explanation:
none
relevant
command:
The global
configuration command “queue-list default” can be used
for distributing a queue number for the data packet that does not comply with
any rules of user-defined list. The “no” format of the command can be
used for restoring default value.
queue-list list-number default queue-number
no
queue-list list-number default
parameter:
list-number |
Number of User-defined list (1-16) |
queue-number |
(queue number) |
default:
Default value is 1
command mode:
global communication mode
explanation:
none
relevant
command:
The global
configuration command “queue-list interface” can be used
for creating user-defined queue for the data accessing to some given interface.
The “no” format of the command can be used for deleting some definition.
queue-list list-number interface interface-type
interface-number queue-number
no queue-list list-number interface[interface-type interface-number queue-number]
parameter:
list-number |
Number of priority list (1-16) |
interface-type |
Name of interface |
interface-number |
Interface number |
queue-number |
Queue number |
default:
none
command mode:
global communication mode
explanation:
If queue number is 0, it means that such kind of packet shall be
put into default queue.
When “no” is used for deleting, the key “enter”
shall be entered after interface, which will
delete all the items using interface as match standards in the
list. If not so, the item can be deleted only when the name of interface,
interface number, queue number match with each other.
relevant
command:
The global
configuration command “queue-list protocol” can be used
for creating user-defined queue on the protocol type.
queue-list list-number protocol protocol-type
queue-number [keyword keyword-value]
no queue-list list-number protocol[protocol-type queue-number
keyword keyword-value]
parameter:
list-number |
Number of user-defined list (1-16) |
protocol-type |
Protocol type (including
ip,arp,compressed_tcp) |
queue-number |
Queue number |
keyword |
Keyword type
(gt,lt,fragment,access-list,tcp,udp) |
keyword-value |
The value of keyword (for gt and lt, it means the length
of packet; For access-list, it means the name of access-list; For tcp and
udp, it means interface number; fragment has no this
item) |
default:
none
command mode:
global communication mode
explanation:
The keyword type of arp and compressed_tcp is gt and lt.
If queue number is 0, it means that such kind of packet shall be
put into default queue.
When “no” is used for deleting, the key “enter”
shall be entered after protocol, which will delete all the items using protocol as match standards in the list. If not so, the item can be deleted
only when the protocol type, queue number, keyword type and value of keyword
match with each other.
relevant
command:
The global
configuration command “queue -list queue byte-count” can be used
for designating the number of transmit byte of each queue of some user-defined
list. The “no” format of the command can be used for restoring default value.
queue-list list-number queue queue-number byte-count byte-count-number
no queue-list list-number queue queue-number byte-count byte-count-number
parameter:
list-number |
Number of user-defined list |
queue-number |
Number of queue |
byte-count-number |
Number of transmit byte |
default:
Default value is 1500
command mode:
global communication mode
explanation:
none
relevant
command:
The global
configuration command “queue -list queue limit” is used for designating
the queue limit of each queue of some user-defined list. The “no” format of the
command can be used for restoring the default value.
queue-list list-number queue queue-number limit limit-number
no queue-list list-number queue queue-number limit limit-number
parameter:
list-number |
Number of user-defined list |
queue-number |
Number of queue |
limit-number |
The limit of queue (1-32767) |
default:
Default value is 20
command mode:
global communication mode
explanation:
none
relevant
command:
The
interface configuration command “random-detect” can be used for configuring
weighting early random detect. The “no” format of the command can be
used for restoring default value.
random-detect
no random-detect
parameter:
none
default:
none
command mode:
Interface configuration mode
explanation:
The command has no effect on the interface
configured with X25 and LAPB.
relevant
command:
none
The
interface configuration command “service-policy” can be used
for configuring some policy mapping on an interface. The “no” format of the command can be used for deleting policy mapping from the
interface.
service-policy
policy-name
no service-policy
parameter:
policy-name |
The name of policy mapping (the maximum
length is 64 bytes) |
default:
none
command mode:
Interface configuration mode
explanation:
The interface configured
with WFQ is effective.
relevant
command:
The
authorization mode command “show class-map” can be used for showing the
configuration of type mapping.
show class-map [class-name]
parameter:
class-name |
Name of type mapping (the maximum length
is 64 bytes) |
default:
none
command mode:
Authorization command mode
explanation:
If name is entered, only the configuration
of the type mapping is shown, otherwise the configuration of all type mappings.
relevant
command:
The
authorization mode command “show policy-map” can be used for showing the
configuration of policy mapping.
parameter:
policy-name |
The name of policy mapping (the maximum
length is 64 bytes) |
default:
none
command mode:
Authorization command mode
explanation:
If name is
entered, the configuration of policy mapping is shown; otherwise the
configuration of all the policy mapping is shown.
relevant
command:
The authorization mode
command “show queue” can be used for showing the status of interface queue.
show queue interface-type
interface-number
parameter:
interface-type |
Name of interface |
interface-number |
Number of interface |
default:
none
command mode:
Authorization command mode
explanation:
none
relevant
command:
none
The authorization
command mode can be used for the configuration of user-defined list or priority
list
show queueing {custom | priority}
parameter:
none
default:
none
command mode:
Authorization command mode
explanation:
none
relevant
command:
none