04-Traffic Shaping and Line Rate Configuration Commands
Chapters Download (26.3 KB)
Table of Contents
1 Traffic Shaping and Line Rate Configuration Commands
Traffic Shaping Configuration Commands
Line Rate Configuration Commands
Syntax
display qos gts interface [ interface-type interface-number ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-type interface-number: Specifies an interface by type and number.
Description
Use the display qos gts interface command to display generic traffic shaping (GTS) configuration information and operational statistics on a specified interface or all the interfaces.
If no interface is specified, the GTS configuration information and operational statistics on all the interfaces are displayed.
Examples
# Display the GTS configuration information and operational statistics on all the interfaces.
<Sysname> display qos gts interface
Interface: GigabitEthernet1/0/1
Rule(s): If-match queue 0
CIR 12800 (kbps), CBS 819200 (byte)
Rule(s): If-match queue 1
CIR 12800 (kbps), CBS 819200 (byte)
Rule(s): If-match queue 2
CIR 6400 (kbps), CBS 819200 (byte)
Table 1-1 display qos gts command output description
Field |
Description |
Interface |
Interface type and interface number |
Rule(s) |
Match criteria |
CIR |
Committed information rate (CIR) in kbps |
CBS |
Committed burst size in bytes, which specifies the depth of the token bucket for holding bursty traffic |
Syntax
qos gts queue queue-number cir committed-information-rate [ cbs committed-burst-size ]
undo qos gts queue queue-number
View
Interface view, port group view
Default Level
2: System level
Parameters
queue queue-number: Shapes the packets in the queue.
cir committed-information-rate: Committed information rate (CIR) in kbps. The committed-information-rate argument ranges from 8 to 1048576, and must be a multiple of 8.
cbs committed-burst-size: Committed burst size (CBS) in bytes. The committed-burst-size argument ranges from 512 to 16777216, and must be a multiple of 512. The default value is 8192.
Description
Use the qos gts command to set GTS parameters for the traffic in a specific queue.
Use the undo qos gts command to remove the GTS parameters from the traffic of a specific queue or all the traffic on the interface or port group.
By default, no GTS parameters are configured on an interface.
Settings in interface view are effective on the current interface. Settings in port group view are effective on all ports in the port group.
Examples
# Configure GTS for traffic in queue 1 on GigabitEthernet 1/0/1 as follows: set CIR to 256 kbps, and CBS to 40960 bytes.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qos gts queue 1 cir 256 cbs 40960
Syntax
display qos lr interface [ interface-type interface-number ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-type interface-number: Specifies an interface by type and number.
Description
Use the display qos lr interface command to view the line rate configuration information and operational statistics on a specified interface or all interfaces.
If no interface is specified, the line rate configuration information and operational statistics on all interfaces are displayed.
Examples
# Display the line rate configuration information and operational statistics on all interfaces.
<Sysname> display qos lr interface
Interface: GigabitEthernet1/0/1
Direction: Inbound
CIR 12800 (kbps), CBS 256000 (byte)
Direction: Outbound
CIR 256 (kbps), CBS 40960 (byte)
Table 1-2 display qos lr command output description
Field |
Description |
Interface |
Interface type and interface number |
Direction |
The direction in which the line rate configuration is applied: inbound or outbound |
CIR |
Committed information rate (CIR) in kbps |
CBS |
Committed burst size (CBS) in bytes, which specifies the depth of the token bucket for holding bursty traffic |
Syntax
qos lr { inbound | outbound } cir committed-information-rate [ cbs committed-burst-size ]
undo qos lr { inbound | outbound }
View
Interface view, port group view
Default Level
2: System level
Parameters
inbound: Limits the rate of incoming packets on the interface.
outbound: Limits the rate of outgoing packets on the interface.
cir committed-information-rate: Committed information rate (CIR). The committed-information-rate argument ranges from 8 to 1000000 and must be a multiple of 8.
cbs committed-burst-size: Committed burst size (CBS). The committed-burst-size argument ranges from 512 to 16000000, and defaults to 8000.
Description
Use the qos lr command to limit the rate of incoming packets or outgoing packets on the interface.
Use the undo qos lr command to remove the rate limit.
Settings in interface view are effective on the current interface. Settings in port group view are effective on all ports in the port group.
Examples
# Configure line rate for outgoing packets on interface GigabitEthernet 1/0/1 as follows: set CIR to 256 kbps and CBS to 4096 bytes.
<Sysname> system-view
[Sysname] interface gigabitethernet1/0/1
[Sysname-GigabitEthernet1/0/1] qos lr outbound cir 256 cbs 4096