5-89
Quality of Service: Managing Bandwidth More Effectively
Advanced Classifier-Based QoS
QoS Policy for Layer 4 TCP/UDP Traffic
The following example shows how to configure a rate-limiting policy for TCP/
UDP application streams and apply the policy on all inbound switch ports.
Figure 5-38. Example of a QoS Policy for TCP/UDP Applications on Inbound Port Interfaces
QoS Policy for Subnet Traffic
The next example shows how to configure a QoS policy that prioritizes
inbound traffic sent to and received from a specified subnet (15.29.16.0/10)
and TCP port range on VLAN 5.
Figure 5-39. Example of a QoS Policy for IPv4 and IPv6 Subnet Traffic on a VLAN Interface
HP Switch(config)# class ipv4 http
HP Switch(config-class)# match tcp any any eq 80
HP Switch(config-class)# match tcp any any eq 443
HP Switch(config-class)# match tcp any any eq 8080
HP Switch(config-class)# exit
HP Switch(config)# class ipv4 kazaa
HP Switch(config-class)# match tcp any eq 1214 any
HP Switch(config-class)# match tcp any any eq 1214
HP Switch(config-class)# exit
HP Switch(config)# class ipv4 gnutella
HP Switch(config-class)# match tcp any range 6346 6347 any
HP Switch(config-class)# match tcp any any range 6346 6347
HP Switch(config-class)# match udp any range 6346 6347 any
HP Switch(config-class)# match udp any any range 6346 6347
HP Switch(config-class)# exit
HP Switch(config)# policy qos PrioritizeSuspectTraffic
HP Switch(config-policy)# class ipv4 http action rate-limit kbps 7000
HP Switch(config-policy)# class ipv4 kazaa action rate-limit kbps 3500
HP Switch(config-policy)# class ipv4 gnutella action rate-limit kbps 3500
HP Switch(config-policy)# exit
HP Switch(config)# interface all service-policy PrioritizeSuspectTraffic in
HP Switch(config)# class ipv4 adminTraffic
HP Switch(config-class)# match ip 15.29.16.1/10 any
HP Switch(config-class)# match ip any 15.29.16.1/10
HP Switch(config-class)# match tcp ::/0 ::/0 range 100 200 ip-dscp 46
HP Switch(config-class)# exit
HP Switch(config)# policy prioritizeAdminTraffic
HP Switch(config-policy)# class ipv4 adminTraffic action priority 7
HP Switch(config-policy)# exit
HP Switch(config)# vlan 5 service-policy prioritizeAdminTraffic in
Match statement with IPv6 source
and destination addresses.