Beruflich Dokumente
Kultur Dokumente
Catalyst 3750
Enabling QoS
Trust States
Queues
Weighted Tail Drop
Shaped Round-Robin
Maps
Classification
Policing
AutoQos
Dipl.-Ing. Karsten Iwen, CCIE #14602 (Security) - http://Security-Planet.de 7 October, 2007
Quality of Service
Sw#sh ver
Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M),
Version 12.2(25)SEB4, RELEASE SOFTWARE (fc1)
3
QoS on Catalyst 3750
Configuring Trust-States (cisco-phone)
Sw(config)#interface fastEthernet 1/0/1
Sw(config-if)#mls qos trust ?
cos cos keyword
device trusted device class
dscp dscp keyword
ip-precedence ip-precedence keyword
<cr>
4
QoS on Catalyst 3750
Configuring Trust-States (cisco-phone)
Sw(config)#do sh mls qos inter fast 1/0/1
FastEthernet1/0/1
trust state: not trusted
trust mode: trust cos
trust enabled flag: dis
COS override: dis
default COS: 0
DSCP Mutation Map: Default DSCP Mutation Map
Trust device: cisco-phone
qos mode: port-based
5
QoS on Catalyst 3750
Configuring Trust-States (dscp)
Sw(config)#int gig 1/0/1
Sw(config-if)#mls qos trust dscp
Sw(config-if)#exit
Sw(config)#do sh mls qos inter gig 1/0/1
GigabitEthernet1/0/1
trust state: trust dscp
trust mode: trust dscp
trust enabled flag: ena
COS override: dis
default COS: 0
DSCP Mutation Map: Default DSCP Mutation Map
Trust device: none
qos mode: port-based
6
QoS on Catalyst 3750
Configuring DSCP-Transparency
Sw(config)#no mls qos rewrite ip dscp
7
QoS on Catalyst 3750
Egress-Queues
4Q3T or 1P3Q3T
Queue 1 can be configured as Priority-Queue (not
Queue 4 as on 2950/3550)
Sw(config)#interface fastethernet1/0/1
Sw(config-if)#priority-queue out
8
QoS on Catalyst 3750
Two globaly defined Queue-Sets to control
buffers and weighted tail drop (WTD)
9
QoS on Catalyst 3750
Weighted Tail Drop (WTD)
three drop thresholds per queue
Sw(config)#mls qos queue-set output 2 threshold 3 40 60
100 200
Sw(config)#interface fastethernet1/0/1
Sw(config-if)#queue-set 2
10
QoS on Catalyst 3750
Weighted Tail Drop (WTD)
CoS or DSCP-values have to be matched to
thresholds:
Sw(config)#mls qos srr-queue output cos-map queue 3
threshold 1 0 1 2 3
Sw(config)#mls qos srr-queue output cos-map queue 3
threshold 2 4
11
QoS on Catalyst 3750
Ingress-Queues
two Ingress-queues, the second queue is the
priority-queue by default (can be configured)
Frames with a given CoS- or DSCP-value are
assigned to the input-queues
WTD is also supported
Sw(config)#mls qos srr-queue input threshold 1 50 70
Sw(config)#mls qos srr-queue input cos-map queue 1
threshold 1 0 1 2
Sw(config)#mls qos srr-queue input cos-map queue 1
threshold 2 3 4
Sw(config)#mls qos srr-queue input cos-map queue 2 5
12
QoS on Catalyst 3750
Shaped Round-Robin (SRR)
SRR controlls at which rate packets are sent
supports two modes:
shaped mode
the egress queues are guaranteed a percentage of
bandwidth and are also shaped to this bandwidth.
This mode is only supported on egress
shared mode
the queues are guaranteed a bandwidth based on the
configured weight.
This mode is supported on ingress and egress
13
QoS on Catalyst 3750
Shaped Round-Robin (SRR)
shaped mode
Sw(config)#interface gigabitethernet1/0/1
Sw(config-if)#srr-queue bandwidth shape 8 4 0 0
14
QoS on Catalyst 3750
Shaped Round-Robin (SRR)
shared mode
Sw(config)#interface gigabitethernet1/0/1
Sw(config-if)#srr-queue bandwidth share 1 2 3 4
15
QoS on Catalyst 3750
QoS-Maps: cos to dscp
16
QoS on Catalyst 3750
QoS-Maps: dscp to cos
17
QoS on Catalyst 3750
QoS-Maps: cos to queue
18
QoS on Catalyst 3750
QoS-Maps: dscp to queue
Sw#sh mls qos maps dscp-input-q
Dscp-inputq-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 01-01 01-01 01-01 01-01 01-01
1 : 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
2 : 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
3 : 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
4 : 02-01 02-01 02-01 02-01 02-01 02-01 02-01 02-01 01-01 01-01
5 : 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
6 : 01-01 01-01 01-01 01-01
19
QoS on Catalyst 3750
QoS-Maps: dscp to queue
Sw#sh mls qos maps dscp-output-q
Dscp-outputq-threshold map:
d1 :d2 0 1 2 3 4 5 6 7 8 9
------------------------------------------------------------
0 : 02-01 02-01 02-01 02-01 02-01 02-01 02-01 02-01 02-01 02-01
1 : 02-01 02-01 02-01 02-01 02-01 02-01 03-01 03-01 03-01 03-01
2 : 03-01 03-01 03-01 03-01 03-01 03-01 03-01 03-01 03-01 03-01
3 : 03-01 03-01 04-01 04-01 04-01 04-01 04-01 04-01 04-01 04-01
4 : 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 04-01 04-01
5 : 04-01 04-01 04-01 04-01 04-01 04-01 04-01 04-01 04-01 04-01
6 : 04-01 04-01 04-01 04-01
20
QoS on Catalyst 3750
Classification
only one “match” command per “class-map”
the keywords “match-any” and “match-all” are
available but function the same
MAC-ACLs support a wildcard-mask (in contrast to
the 2950 which does not)
21
QoS on Catalyst 3750
Policing
up to 63 user-configured policers per port
up to 255 user-configured policers per Port-ASIC
Policing is supported in an ingress policy-map
No policing on 10-Gigabit Ethernet
The minimum policing-rate is 8000 bps (the 2950
has a minimum of 1 Mbps)
two policing-modes:
per class policing
aggregate policing (for multiple classes)
Not supported on SVIs
22
QoS on Catalyst 3750
Policing
per class policing
Sw(config)#ip access-list extended Webserver1
Sw(config-ext-nacl)#permit tcp host 10.10.10.1 eq 80 any
Sw(config)#class-map Web1
Sw(config-cmap)#match access-group name Webserver1
Sw(config)#policy-map ServerPolicy
Sw(config-pmap)#class Web1
Sw(config-pmap-c)#police 1000000 20000 exceed-action drop
Sw(config)#interface gigabitethernet1/0/1
Sw(config-if)#service-policy input ServerPolicy
23
QoS on Catalyst 3750
Policing
per class policing with remarking
Sw(config)#class-map Bulk
Sw(config-cmap)#match ip dscp af11 af12 af13
Sw(config)#policy-map MarkDown
Sw(config-pmap)#class Bulk
Sw(config-pmap-c)#police 1000000 20000 exceed-action
policed-dscp-transmit
Sw(config)#interface gigabitethernet1/0/1
Sw(config-if)#service-policy input MarkDown
24
QoS on Catalyst 3750
Policing
aggregate policing
Sw(config)#mls qos aggregate-policer agp1 1000000 20000
exceed-action drop
Sw(config)#policy-map AggPolicy
Sw(config-pmap)#class Server1
Sw(config-pmap-c)#police aggregate agp1
Sw(config-pmap-c)#class Server2
Sw(config-pmap-c)#police aggregate agp1
Sw(config)#interface gigabitethernet1/0/1
Sw(config-if)#service-policy input AggPolicy
25
QoS on Catalyst 3750
AutoQoS
enables QoS
can trust the cisco-phone, cisco-softphone and cos
corrects the cos to dscp-map
configures the input- and output-queue-settings
configures a policer on the voice-traffic when
trusting a phone or softphone
26
QoS on Catalyst 3750
AutoQoS
With „voip trust“
Sw(config-if)#auto qos voip trust
27
QoS on Catalyst 3750
AutoQoS
With „voip trust“
Sw#sh mls qos interface fastEthernet 1/0/1
FastEthernet1/0/1
trust state: trust cos
trust mode: trust cos
trust enabled flag: ena
COS override: dis
default COS: 0
DSCP Mutation Map: Default DSCP Mutation Map
Trust device: none
qos mode: port-based
28
QoS on Catalyst 3750
AutoQoS
With „voip cisco-softphone “
Sw(config-if)#auto qos voip cisco-softphone
29
QoS on Catalyst 3750
AutoQoS
With „voip cisco-softphone “
Sw(config-if)#show run
!
mls qos map policed-dscp 24 26 46 to 0
!
class-map match-all AutoQoS-VoIP-RTP-Trust
match ip dscp ef
class-map match-all AutoQoS-VoIP-Control-Trust
match ip dscp cs3 af31
!
30
QoS on Catalyst 3750
AutoQoS
With „voip cisco-softphone “
!
policy-map AutoQoS-Police-SoftPhone
class AutoQoS-VoIP-RTP-Trust
set dscp ef
police 320000 8000 exceed-action policed-dscp-transmit
class AutoQoS-VoIP-Control-Trust
set dscp cs3
police 32000 8000 exceed-action policed-dscp-transmit
!
31
QoS on Catalyst 3750
AutoQoS
With „voip cisco-softphone “
!
interface FastEthernet1/0/1
srr-queue bandwidth share 10 10 60 20
priority-queue out
auto qos voip cisco-softphone
service-policy input AutoQoS-Police-SoftPhone
32
QoS on Catalyst 3750
AutoQoS
With „voip cisco-phone “
Sw(config-if)#auto qos voip cisco-phone
33
QoS on Catalyst 3750
More Information:
QoS Configuration-Guide
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat3750/122
40se/scg1/swqos.htm
Cisco Press: End-to-End Qos Network Design:
http://security-planet.de/2005/11/25/end-to-end-qos-network-
design/
Additional Notes for the Cisco QoS-Training
(in german):
http://security-planet.de/2005/12/09/cisco-qos/
34