
257
Step Command
Remarks
14.
Apply the QoS policy.
•
(Method 1) To the outgoing
traffic of all ports:
qos apply policy
policy-name
global
outbound
•
(Method 2) To the outgoing
traffic of a Layer 2 Ethernet
interface:
a.
Enter Layer 2 Ethernet
interface view:
interface
interface-type
interface-number
b.
Apply the QoS policy to
the outgoing traffic:
qos apply policy
policy-name
outbound
•
Configurations made in system
view take effect on all ports.
•
Configurations made in Layer 2
Ethernet interface view take
effect on the interface.
For more information about the
acl
,
rule
,
traffic classifier
,
if-match
,
traffic behavior
,
remark dot1p
,
qos
policy
,
classifier behavior
,
qos apply policy global
, and
qos apply policy
commands, see
ACL and QoS
Command Reference
.
Configuring ETS parameters
ETS provides committed bandwidth. To avoid packet loss caused by congestion, the device performs the
following tasks:
•
Uses ETS parameters to negotiate with the server adapter.
•
Controls the server adapter's transmission speed of a type of traffic.
•
Guarantees that the transmission speed is within the committed bandwidth of the interface.
To configure ETS parameters, you must configure the 802.1p-to-local priority mapping and group-based
WRR queuing.
Configuring the 802.1p-to-local priority mapping
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter 802.1p-to-local priority
mapping table view.
qos map-table
dot1p-lp
N/A
3.
Configure the priority
mapping table to map an
802.1p priority values to a
local precedence value.
import
import-value-list
export
export-value
For information about the default
priority mapping tables, see
ACL and
QoS Configuration Guide
.
4.
Return to system view.
quit
N/A
5.
Enter Ethernet interface view.
interface
interface-type
interface-number
N/A
6.
Configure the interface to
trust the 802.1p priority
carried in packets.
qos trust dot1p
By default, the port priority of the
incoming port is trusted.