Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
DQOS Exam Certification Guide - Cisco press.pdf
Скачиваний:
68
Добавлен:
24.05.2014
Размер:
12.7 Mб
Скачать

QoS Configurations on Catalyst Switches 743

Example 10-44 Set the DSCP Value for the Classes (Continued)

CatIOS (config-pmap-c)#set ip dscp 46

CatIOS (config-pmap)#class GOLD-DATA

CatIOS (config-pmap-c)#set ip dscp 18

In this example, all traffic matching the GOLD-DATA access list is marked with a DSCP value of 18, all traffic matching the VOICE-CONTROL access list is marked with a DSCP value of 26, and all traffic matching the VOICE access list is marked with a DSCP value of 46.

Finally, the service-policy command is used to assign the policy map to the input traffic on a specific interface. In Example 10-45, the policy map configuration is applied to interface Gigabit Ethernet 0/2.

Example 10-45 Applying the Policy to the Interface

CatIOS (config)#int gigabitethernet 0/2

CatIOS (config-if)#service-policy input CAT-IOS-IN

Connecting a Catalyst IOS Switch to Distribution Switches or WAN Segments

In Figure 10-12, a WAN router is connected to port 5. Typically you will trust the Layer 3 markings from a WAN device. Assuming that the switch is a 6500 or a 3500, to configure the switch to trust the DSCP values received on port 5, you must place the mls qos trust dscp command on interface 5. If the switch is a 4500, the qos trust dscp command is configured on interface 5.

Displaying QoS Settings for the Catalyst IOS Switch

Several show commands enable you to verify the QoS configuration of the Catalyst OS switch. The show mls qos interface queueing command enables you to display the QoS queuing strategy for the Catalyst 3550 switch. In Example 10-46, egress expedited queuing (priority queuing) has been enabled on interface gigabit 0/1, causing Queue 4 to become the priority queue. All frames with a CoS value of 5, 6, or 7 are placed in this queue.

Example 10-46 The show mls qos interface queueing Command

3550 #show mls qos interface queueing

GigabitEthernet0/1

Ingress expedite queue: dis Egress expedite queue: ena wrr bandwidth weights: qid-weights

1 - 25

2 - 25

continues

744 Chapter 10: LAN QoS

Example 10-46 The show mls qos interface queueing Command

3 - 25

4 - 25 when expedite queue is disabled Dscp-threshold map:

d1 : d2 0 1 2 3 4 5 6 7 8 9

---------------------------------------

0 : 01 01 01 01 01 01 01 01 01 01 1 : 01 01 01 01 01 01 01 01 01 01 2 : 01 01 01 01 01 01 01 01 01 01 3 : 01 01 01 01 01 01 01 01 01 01 4 : 01 01 01 01 01 01 01 01 01 01 5 : 01 01 01 01 01 01 01 01 01 01 6 : 01 01 01 01

Cos-queue map: cos-qid

0 - 1

1 - 1

2 - 2

3 - 2

4 - 3

5 - 4

6 - 4

7 – 4

Note that at the end of the command output, the CoS values’ mapping to the four queues is listed. CoS 5 maps to Queue 4, the priority queue, automatically as a result of the configuration to use priority queuing.

The show mls qos interface command enables you to display QoS information for a specified interface. In Example 10-47, the QoS configuration of Fast Ethernet port 0/1 on a Catalyst 3550 switch displays. In the earlier example, interface Fast Ethernet 0/1 was configured to trust the DSCP values received.

Example 10-47 The show mls qos interface Command F0/1

3550 t#show mls qos interface fastethernet0/1

FastEthernet0/1

trust state: trust dscp

COS override: dis default COS: 0

DSCP Mutation Map: Default DSCP Mutation Map

QoS Configurations on Catalyst Switches 745

In Example 10-48, the QoS configuration of Fast Ethernet 0/10 on the Catalyst 3550 switch displays. In the earlier example, interface Fast Ethernet 0/10 was configured to trust the CoS values received.

Example 10-48 The show mls qos interface Command F0/10

3550 t#show mls qos int g0/10

GigabitEthernet0/10

trust state: trust cos

COS override: dis default COS: 0

DSCP Mutation Map: Default DSCP Mutation Map

The show qos interface command enables you to display the current QoS configuration information about the specified interface in a Catalyst 4500. In Example 10-49, QoS has been enabled globally in the switch as well as on this port; however, the trust state for port 4/5 is configured for untrusted. Although QoS has been enabled, this port transmits packets without regard to the CoS or DSCP values on the packets.

Example 10-49 The show qos interface Command: Untrusted

4500 #show qos interface fastethernet 4/5

 

 

 

 

 

 

QoS is enabled globally

 

 

 

Port QoS is enabled

 

 

 

Port Trust State: 'untrusted'

 

 

 

Default DSCP: 0 Default CoS: 0

 

 

 

Tx-Queue

Bandwidth

ShapeRate

Priority

QueueSize

(bps)

(bps)

 

(packets)

 

1

N/A

disabled

N/A

240

2

N/A

disabled

N/A

240

3

N/A

disabled

high

240

4

N/A

disabled

N/A

24

 

 

 

 

 

In Example 10-50, port 3/1 on a Catalyst 4500 has been configured to trust the DSCP values of packets. Any packet that matches the DSCP classification for admittance into the priority queue is transmitted immediately.

Example 10-50 The show qos interface Command: Trust DSCP

4500 #show qos interface fastethernet 3/1

 

 

QoS is enabled globally

 

 

 

Port QoS is enabled

 

 

 

Port Trust State: 'dscp'

 

 

 

Default DSCP: 0 Default CoS: 0

 

 

 

Tx-Queue

Bandwidth

ShapeRate

Priority

QueueSize

(bps)

(bps)

 

(packets)

 

continues

746 Chapter 10: LAN QoS

Example 10-50 The show qos interface Command: Trust DSCP (Continued)

1

250000000

disabled

N/A

1920

2

250000000

disabled

N/A

1920

3

250000000

disabled

high

1920

4

250000000

disabled

N/A

1920

 

 

 

 

 

In Example 10-51, port 3/2 on a Catalyst 4500 has been configured to trust the CoS values of frames. Any frame that matches the CoS classification for admittance into the priority queue is transmitted immediately.

Example 10-51 The show qos interface Command: Trust CoS

4500 #show qos interface fastethernet 3/2

QoS is enabled globally

Port QoS is enabled

Port Trust State: 'cos'

Default DSCP: 0 Default CoS: 0

Tx-Queue Bandwidth ShapeRate Priority QueueSize

(bps)

(bps) (packets)

 

1250000000 disabled

N/A

1920

2 250000000

disabled

N/A

1920

3 250000000

disabled

high

1920

4 250000000

disabled

N/A

1920

The show mls qos map cos command on the Catalyst 6500 and 3550 enables you to display the current CoS-to-DSCP mapping in use by the switch. The show qos map cos command on the Catalyst 4500 displays the same results. In Example 10-52, CoS values of 3, 4, and 5 have been mapped to the DSCP values of 26, 34, and 46, respectively.

Example 10-52 The show qos map cos Command

CatIOS #

show mls qos map cos

 

 

 

 

 

 

CoS-DSCP

Mapping

Table

 

 

 

 

 

 

CoS:

0

1

2

 

 

 

 

6

7

3

4

5

 

 

 

 

 

 

 

 

 

 

 

--------------------------------------------------------------

DSCP:

0

8

16

26

34

46

48

56