Home > CISCO > QoS Policy – Throttle Bandwidth During Certain Times in the Day

QoS Policy – Throttle Bandwidth During Certain Times in the Day

March 26th, 2010

Scenario:  A servers automatic database replication causes bandwidth utilisation to increase, so we need a QoS policy to throttle the server traffic during the working day (including weekends):

Step 1: Create a Time Range

Router(config)# time-range EVERY_DAY
Router(config-time-range)# periodic weekdays 9:00 to 17:00
Router(config-time-range)# periodic weekend 9:00 to 17:00
Router(config-time-range)# exit
Router(config)# ip access-list extended PROD_SERVER
Router(config-ext-nacl)# permit ip host 192.168.1.50 any time-range EVERY_DAY
Router(config-ext-nacl)# exit
Router(config)#

Step 2: Create a class-map (used for QoS) that matches the PROD_SERVER access-list
Router(config)# class-map MATCH_PROD_SERVER
Router(config-class-map)# match access-group name PROD_SERVER Router(config-class-map)# exit
Router(config)#

Step 3: Create a policy-map (used for QoS) that throttles the bandwidth.

Router(config)# policy-map LIMIT_PROD_SERVER
Router(config-pmap)# class MATCH_PROD_SERVER

Router(config-pmap-c)# police 80000 (i.e. 80Kbps)
Router(config-pmap-c)# exit
Router(config-pmap)# exit
Router(config)#

Step 4: Apply the new policy to the incoming interface (the one connected to the LAN, not the Internet).

Router(config)# interface fa0/0
Router(config-if)# service-policy input LIMIT_PROD_SERVER

Sourced from:  Jeremy Ciaora, http://www.ciscoblog.com/

Categories: CISCO Tags:
Comments are closed.