  movement3
join:2002-11-03 Houston, TX
| [Config] QoS with CBWFQ to prioritize a website
Hello, We have an important website that our company heavily uses. We have 2 T1s going out to the Internet, so at times the T1s are maxed out with traffic. During those peak times, I would like priority to be given to this sales portal website and all other traffic falls in the same bucket.
This is my test config on a 871 hooked up to a regular aDSL line:
First, I download a large file from another website, then start a download from *.rapidshare.com, and lastly I fire up a bittorrent. After a couple of mins, the download from rapidshare does not consume the majority of traffic as I would expect. The traffic pattern stays the same as if there is not a policy map applied. Is something wrong with my config? Am I testing this scenario correctly? Thanks. |
|
 mplex
join:2004-04-15 Charleston, SC
| Well that test should work correctly if the service policy is applied to the serial interfaces on your T1 router, but not on a DSL router. As far as your home router is concerned, Fa4 is a 100Mb interface, not a 6Mbps/384kbps etc link. I would try it at work, and then do a show policy-map int se0/1 on the interface and make sure it is matching correctly.
If you want it to work at home, you have to nest your policies and shape all traffic to the speed of your connection. It's too much to write up here, but what you have should work on a serial interface. |
|
  mikeeo Premium join:2000-03-12 Newark, DE
edit: June 8th, @08:19AM
| reply to movement3 Try this
class-map HTTP match protocl http url *rapidshare.com/*
policy-map CBWFQ class HTTP bandwidth whatever class class-default fair-queue
int fast ethernet or serial service policy out CBWFQ
that should do it.
-Mike CCIE #17982 |
|
 Arbelac
join:2004-05-14 Canada | reply to movement3 Try changing the bandwidth on the interface you are applying this to, to match your external bandwidth. |
|
  mikeeo Premium join:2000-03-12 Newark, DE | He shouldn't have to change te bandwidth on the interface unless he is using bandwidth percent. I don't think he was matching packets in his class-map correctly. |
|
  movement3
join:2002-11-03 Houston, TX
edit: June 11th, @03:47PM
| Hello, Thanks for everyone's help. I was able to test the new config, but no luck. I think Mike is right, I not matching the regular expression correctly in the class-map part. To troubleshoot in steps, I'm just trying to match the packets up now, so for the policy part, I'm using a drop command. Here is the full config for the test lab, you can disregard the myFirewall and access 111, they are not applied to the int fa4. Is there specific debug command for class-maps? I just using debug ip packet detail right now. I'll keep on playing with this and post updates...
|
|
 aryoba Premium,MVM join:2002-08-22
| How about something like this?
|
|
  mikeeo Premium join:2000-03-12 Newark, DE | you are gonna wanna stay away from using bandwidth percent. Its not Cisco recommended.
-Mike CCIE #17982 |
|
  movement3
join:2002-11-03 Houston, TX
| Ok, I think I found a working config. I first tested with a drop command in the policy-map and could not reach the webpage. Then I added bandwidth 900 and fired up a lot of downloads from various sites. The speed to my desire site stayed around 100KB and 105KB. Thanks again for you help.
class-map match-any HTTP match protocol http host "*.domain.com*" ! ! policy-map CBWFQ class HTTP bandwidth 900 class class-default fair-queue ! interface FastEthernet4 service-policy output CBWFQ |
|