|
|
This chapter describes the Quality of Service (QoS) features built into your switch router, and how to map QoS scheduling at both the system and interface levels. This chapter includes the following topics:
Extensive core Quality of Service (QoS) mechanisms are built into the switch router architecture to ensure policy enforcement and queuing of the ingress port, as well as weighted round-robin (WRR) scheduling at the egress port.
IP precedence can be mapped into adjacent technologies (for example, tag switching or ATM) to deliver end-to-end network QoS policies. This enables service classes to be established with no changes to existing applications and with no complicated network signaling requirements.
The system gathers IP precedence information from the IP header type-of-service field. For an incoming IP packet, the first two (most significant) bits of the service type field determine the delay priority. Layer 3 switching recognizes four QoS classes, Q-0 to Q-3, as summarized in Table 9-1.
| IP Precedence Bits | Delay Priority | Queue Selected |
|---|---|---|
0 0 0 | 0 0 | Q-0 |
0 0 1 | 0 0 | Q-0 |
0 1 0 | 0 1 | Q-1 |
0 1 1 | 0 1 | Q-1 |
1 0 0 | 1 0 | Q-2 |
1 0 1 | 1 0 | Q-2 |
1 1 0 | 1 1 | Q-3 |
1 1 1 | 1 1 | Q-3 |
Your switch router can read the precedence field and switch the packet accordingly, but it cannot reclassify traffic. The edge router or switch is expected to set the precedence field according to its local policy.
The switch router queues packets based on the delay priority and the target next-hop interface.
![]() | Tips The higher the WRR weight, the higher the effective bandwidth for that particular queue. |
You can find the effective bandwidth (in Mbps) for a particular queue with the following formula:
W | is the WRR weight of the specified queue |
S | is the sum of the weight of all active queues on the outgoing interface |
B | is the available bandwidth in Mbps |
n | is the effective bandwidth in Mbps |
For example, if W is 4, S is 15, and B is 100, the formula would be (4/15) x 100 = 26 Mbps, and the effective bandwidth for the specified queue in this example is 26 Mbps.
Layer 3 switching software enables QoS-based forwarding by default. If disabled, issue the following command to enable QoS switching:
# [no] qos switching
The [no] version of this command disables QoS switching on the entire system.
Table 9-2 shows an example of configuring QoS scheduling at the system level.
| Step | Command | Description | ||
|---|---|---|---|---|
| | From global configuration mode, set the mapping between IP precedence and the WRR weight. See the following syntax description. | ||
| | Return to privileged EXEC mode. |
The syntax used in Table 9-2 is described below:
value | The precedence value (0 to 3) is derived from the IP precedence field. The higher 2-bits of the IP precedence field is used. When a precedence value x is specified, it also implicitly assigns the same WRR-weight to precedence x + 1. |
weight | The WRR-scheduling weight (1 to 15). This parameter specifies the weight assigned to traffic with the given precedence. |
To set the precedence back to the default setting for the switch router, use the no version of the qos mapping precedence command.
Table 9-3 shows the default WRR weights for IP Precedence.
| IP Precedence | WRR Weight |
|---|---|
0 | 1 |
1 | 2 |
2 | 4 |
3 | 8 |
Table 9-4 shows and example of configuring QoS scheduling at the interface level.
| Step | Command | Description | ||
|---|---|---|---|---|
| | From global configuration mode, assign different WRR-scheduling weights for a particular precedence traffic between a pair of interfaces. | ||
| | Return to privileged EXEC mode. |
The QoS commands are applicable to both Gigabit Ethernet and Fast Ethernet interfaces.
To set the precedence back to the system-level default setting for the switch router, use the no version of the qos mapping precedence wrr-weight command.
Both the source and destination interface parameters are optional. When both are not specified, the system-level QoS mapping is configured. Otherwise, you can specify the source interface, or the destination interface, or both to configure the WRR weight for the traffic streams listed below.
The configuration takes precedence in the following order:
1. Traffic streams with a certain precedence, from a particular source interface to a particular destination interface.
2. Traffic streams with a certain precedence to a particular destination interface.
3. Traffic streams with a certain precedence from a particular source interface.
The Cisco IOS show commands for QoS are shown in Table 9-5.
| Command | Display |
|---|---|
show qos switching | |
show qos mapping [source gi x/0/z destination gi a/0/c] | Effective mapping at either the system level or interface-pair level |
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Wed Aug 2 15:41:50 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.