[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Cisco Time based Traffic Shaping

Posted on 2011-03-14
4
Medium Priority
?
1,410 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

Are You Ready for GDPR?

With the GDPR deadline set for May 25, 2018, many organizations are ill-prepared due to uncertainty about the criteria for compliance. According to a recent WatchGuard survey, a staggering 37% of respondents don't even know if their organization needs to comply with GDPR. Do you?

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.
WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

650 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