Sunday, January 26, 2014

ProCurve Policy/Classifier based QoS

Policy/Classifier based QoS


Create Classes of traffic


class ipv4 "VOIP”

     10 match udp 0.0.0.0 255.255.255.255
0.0.0.0 255.255.255.255 range 16000 32000

     15 match udp 0.0.0.0 255.255.255.255 range 40000 41000
                  0.0.0.0 255.255.255.255 range 40000 41000
   exit

class ipv4 "VIDEO"

     10 match udp 0.0.0.0 255.255.255.255
0.0.0.0 255.255.255.255 range 35000 39000

     15 match udp 0.0.0.0 255.255.255.255 range 42000 43000
                  0.0.0.0 255.255.255.255 range 42000 43000
   exit

class ipv4 "VOIP_SIGNALING"

     10 match tcp 0.0.0.0 255.255.255.255
0.0.0.0 255.255.255.255 range 2000 2002

     15 match ucp 0.0.0.0 255.255.255.255
0.0.0.0 255.255.255.255 range 2000 2002

     20 match tcp 0.0.0.0 255.255.255.255
0.0.0.0 255.255.255.255 range 5060 5061

     25 match udp 0.0.0.0 255.255.255.255
                  0.0.0.0 255.255.255.255 range 5060 5061
   exit

class ipv4 "DATA"

     10 match tcp 172.31.2.0 255.255.255.0 0.0.0.0 255.255.255.255 eq 23
     15 match tcp 172.31.2.0 255.255.255.0 0.0.0.0 255.255.255.255 eq 22
   exit

class ipv4 "WEB"

     10 match tcp 172.31.2.0 255.255.255.0 0.0.0.0 255.255.255.255 eq 80
     15 match ucp 172.31.2.0 255.255.255.0 0.0.0.0 255.255.255.255 eq 80
     20 match tcp 172.31.2.0 255.255.255.0 0.0.0.0 255.255.255.255 eq 8080
     25 match ucp 172.31.2.0 255.255.255.0 0.0.0.0 255.255.255.255 eq 8080
     30 match tcp 172.31.2.0 255.255.255.0 0.0.0.0 255.255.255.255 eq 443
     35 match ucp 172.31.2.0 255.255.255.0 0.0.0.0 255.255.255.255 eq 443
   exit

class ipv4 "BULK_DATA"

     10 match tcp 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 eq 20
     15 match tcp 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 eq 21
   exit

class ipv4 "REMAINING"

   exit


Create Policies for classes


policy qos "VOIP_TRAFFIC"

     10 class ipv4 "VOIP"           action dscp af33
     30 class ipv4 "VOIP_SIGNALING" action dscp cs3
     70 class ipv4 "REMAINING"      action dscp cs0
   default-class                    action dscp default
   exit

policy qos "VIDEO_TRAFFIC"

     20 class ipv4 "VIDEO”          action dscp cs3
     70 class ipv4 "REMAINING"      action dscp cs0
   default-class                    action dscp default
   exit

policy qos "VOIP_SIGNALLING_TRAFFIC"

     30 class ipv4 "VOIP_SIGNALING" action dscp cs3
     70 class ipv4 "REMAINING"      action dscp cs0
   default-class                    action dscp default
   exit

policy qos "LAN_TRAFFIC"

     40 class ipv4 "DATA"           action dscp af22
     50 class ipv4 “WEB”            action dscp cs2
     70 class ipv4 "REMAINING"      action dscp cs0
   default-class                    action dscp default
   exit

policy qos "BULK_DATA_TRAFFIC"

     60 class ipv4 "BULK_DATA"      action dscp af11
     70 class ipv4 "REMAINING"      action dscp cs0
   default-class                    action dscp default
   exit

policy qos "UPLINK_TRAFFIC"

     10 class ipv4 "VOIP"           action dscp af33
     20 class ipv4 "VIDEO”          action dscp cs3
     30 class ipv4 "VOIP_SIGNALING" action dscp cs3
     40 class ipv4 "DATA"           action dscp af22
     50 class ipv4 “WEB”            action dscp cs2
     60 class ipv4 "BULK_DATA"      action dscp af11
     70 class ipv4 "REMAINING"      action dscp cs0
   default-class                    action dscp default
   exit


Apply Policies to VLANs and Interface(s)


Apply to an interface

interface Trk1
   service-policy "UPLINK_TRAFFIC" in
   exit

Apply to vlans

vlan 10
   name "VOIP_VLAN"
   service-policy "VOIP_TRAFFIC" in
   exit

vlan 20
   name "VIDEO_VLAN"
   service-policy "VIDEO_TRAFFIC" in
   exit

vlan 30
   name "VOIP_SIGNALLING_VLAN"
   service-policy "VOIP_SIGNALLING_TRAFFIC" in
   exit

vlan 40
   name "LAN_VLAN"
   service-policy "LAN_TRAFFIC" in
   exit

vlan 50
   name "BULK_DATA_VLAN"
   service-policy "BULK_DATA_TRAFFIC" in
   exit




No comments:

Post a Comment

Please add comments so I may update the material to accommodate platform modification to various commands. Also if you have some real-world caveats, do please share.

Search Duke

About the Author

My photo
Central Florida, United States