?
Solved

Cisco Time based Traffic Shaping

Posted on 2011-03-14
4
Medium Priority
?
1,391 Views
Last Modified: 2012-08-14
We have a server in head office that sends out updates to remote office servers regularly. When this happens it can slow down the connections between offices by utilizing most of the bandwidth. I want to throttle the bandwidth that travels over our WAN links and implement a time scheule so that after hours it can use more bandwidth. We only have T1 connections to remote offices so the bandwidth isnt that huge. This is what I have now and it is effectively shaping the traffic but I want to add some time rules for it.

interface FastEthernet0/0
 ip address 192.168.4.21 255.255.252.0

interface FastEthernet0/1
  ip address 172.17.1.6 255.255.255.252
  traffic-shape group 102 395264 49408 49408 1000

access-list 102 permit ip host 192.168.5.2 any
access-list 102 permit ip any host 192.168.5.2
0
Comment
Question by:damte
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
rochey2009 earned 1000 total points
ID: 35133292
Hi,

Try the following:

Create a time range.

time-range shape-server
 periodic weekdays 8:00 to 18:00

replace your access-list with:

access-list 102 permit ip host 192.168.5.2 any time-range shape-server
access-list 102 permit ip any host 192.168.5.2 time-range shape-server
0
 

Assisted Solution

by:voyager2ie
voyager2ie earned 1000 total points
ID: 35133505
While you can continue to use Generic Traffic Shaping to achieve the desired result, using CBWFQ is much more scalable and will allow you to do a lot more.

Use the following configurations to enable time-based traffic shaping:

---Define the time ranges (use your own values here)---
time-range DAY
 periodic daily 8:00 to 20:00
!
time-range NIGHT
 periodic weekdays 20:01 to 7:59
 periodic weekend 0:00 to 23:59
 
---Configure ACLs to specify interesting traffic and call the time ranges---

 ip access-list extended police-updates-daytime
  permit ip host 192.168.5.2 any time-range DAY
 ip access-list extended police-updates-nighttime
  permit ip host 192.168.5.2 any time-range NIGHT
 
 ---Configure class-map statements which call the ACLs---

 class-map match-all police-updates-daytime
   description Police updates to remote sites between 8am to 8pm
   match access-group name police-updates-daytime
 class-map match-all police-updates-nighttime
   description Police updates to remote sites between 8pm to 8am and weekends
   match access-group name police-updates-nighttime
 !
 
---Configure the main policy-map which calls the two class-maps and enforces the max BW for the server during the time ranges (again, use your own BW values...I set 200Kbps max during the day and full 1.544 at night/weekends)---

 policy-map Police-Update-Traffic
  class police-updates-daytime
     police 200000
  class police-updates-nighttime
     police 1544000

Once this is in, you will need to bind this to your WAN interface:

int Fa0/1:
service-policy output Police-Update-Traffic

Using this method should allow you to easily tack other shaping needs on top...more config than what you have now, but much more flexible.

Hope this helps!
0
 

Author Comment

by:damte
ID: 35150100
Thank you for the responces. Both seemed to have working in my testing.

Voyager2ie, just one command that did not work for me was:
periodic weekdays 20:01 to 7:59
I had to separate those in 2 commands, I was not able to have an end time less that the start time. Fixed by
periodic weekdays 20:01 to 23:59
periodic weekdays 0:00 to 7:59
0
 

Expert Comment

by:voyager2ie
ID: 35162239
Good catch. I forgot about the change of day when there are multiple statements.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question