Advanced Traffic Management Guide K/KA/KB.15.15
Figure 49 A QoS policy for voice over IP and data traffic
Configuring a QoS policy for layer 4 TCP/UDP traffic (Example)
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.
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
Configuring a QoS policy for subnet traffic (Example)
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 50 A QoS policy for IPv4 and IPv6 subnet traffic on a VLAN interface
Using Differentiated Services Codepoint (DSCP) mapping
The DSCP Policy Table associates an 802.1p priority with a DSCP codepoint in an IPv4/IPv6
packet. Using DSCP codepoints in your network allows you to set a LAN policy that operates
independently of 802.1Q VLAN-tagging.
Configuring a QoS policy for layer 4 TCP/UDP traffic (Example) 233










