Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

i need simple qos config

my situation is

clients -------------- routerA------------------10Mbps----------------routerB-----------5Mbps internet

RouterB is connected to the internet 5Mbps dsl modem. I want to guarantee some important clients at least 90% internet bandwidth. Can anyone share the qos commands that will work for this?

17 REPLIES

Re: i need simple qos config

Try this:

class-map match-any InternetTraffic

match protocol http

match protocol https

policy-map InternetTraffic

class InternetTraffic

bandwidth percent 90

class class-default

bandwidth percent 5

interface

max-reserved-bandwidth 100

service-policy out InternetTraffic

In reality, you'll lose control of qos at your edge router though. This may help with queueing from the router's perspective, but won't help much more than that. The above class map is only for web traffic. You can put anything else web related (video, smtp, esmtp, etc) in the above class map. Whatever lands in the class under the policy will contend for the 90% of bandwidth that you've allocated.

HTH,
John

*** Please rate all useful posts ***

HTH, John *** Please rate all useful posts ***
New Member

i need simple qos config

  • which router do i enter the config?
  • your config will allow 90% guarantee for all clients ? 
  • how about if i wanted to just allow 192.168.1.77 host computer  to have guaranteed 90% internet bandwidth?
New Member

Re: i need simple qos config

Is that your computer?


Yes you can also have a class-map to match by source IP.

New Member

i need simple qos config

Will the "bandwidth percent 90" only kick in if the link is congested? see the difference in speeds in the diagram

Re: i need simple qos config

As Jamie stated, yes you can do it by host with one caveat. QoS happens after natting, so your 192.168.1.77 host would need to be matched on it's natted address outbound instead of the real address.

To do that, you would create an access-list and match on that:

access-list 1 permit host 192.168.1.77

class-map SingleHost

match access-group 1

policy-map SingleHost

class SingleHost

bandwidth percent 90

The config that I posted originally will guarantee 90% for all clients using HTTP/SSL. Anything else would hit the default class. Yes, the bandwidth guarantee kicks in when congestion occurs...otherwise you wouldn't need QoS if there's no congestion on the interface.

HTH,
John

*** Please rate all useful posts ***

HTH, John *** Please rate all useful posts ***
New Member

i need simple qos config

i guess in my situation bandwidth guarantee will never kick in since congestion will never occur even if the 5Mbps internet is fully utilized... what can I do?

i need simple qos config

Congestion happens based on what the interface believes that it has. If you have a 100mb port connected to a DSL modem, you may only have 5Mb on the outside, and your router believes it has 100Mb to use. Set the interface bandwidth command on the router that leads to the DSL modem with "bandwidth 5000". You'll get congestion, especially if you have a 10Mb circuit between your customers and you.

HTH,
John

*** Please rate all useful posts ***

HTH, John *** Please rate all useful posts ***
New Member

i need simple qos config

Clients -------------- routerA (e0)------------------10Mbps----------------routerB-----------5Mbps internet

In the above diagram, if i set the routerA interface e0 to 5000, won't this affect all other traffic (eg. \\file shares on servers in site B)

Re: i need simple qos config

Where are you trying to control it? If you're trying to control to 5Mb on the interface that leads to routerB, you'd probably want to police inbound on routerb to 5Mb. I was under the impression you want to do this on your 5Mb interface on routerB, although that would affect everyone.

And no, it wouldn't affect file shares if you're only matching on web traffic as stated above.

On routerB's interface that leads to routerA, you'd do everything stated above except the bandwidth statement. Then in your policy map, you'd police the traffic inbound:

policy-map

class

police 5000000

That would only police whatever your class map matches to 5Mb.

HTH,
John

*** Please rate all useful posts ***

HTH, John *** Please rate all useful posts ***
New Member

i need simple qos config

the router connected to the dsl modem does not support qos. so I need to implement qos config at router A.

I am thinking the bandwidth 90 percent command would not kick in, since router to router link is 10Mbps, whereas internet dsl speed is 5Mbps. So clients will max out the internet, but the router will think there is no congestion, and allow all clients full internet download speed.

Re: i need simple qos config

You can shape or police to 4.5mb outbound on routerA and still only match on web traffic. Shaping and policing will run all of the time when not congested when it reaches the specified rate.

Sent from Cisco Technical Support iPhone App

HTH, John *** Please rate all useful posts ***
New Member

i need simple qos config

the problem with shaping and policing is that i will be restricting clients. I prefer to allow clients to downloading at whatever speed, but allow a specific important client 90% internet bandwidth guaranteed if needed.

Super Bronze

Re: i need simple qos config

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

John Blakley wrote:

Congestion happens based on what the interface believes that it has. If you have a 100mb port connected to a DSL modem, you may only have 5Mb on the outside, and your router believes it has 100Mb to use. Set the interface bandwidth command on the router that leads to the DSL modem with "bandwidth 5000". You'll get congestion, especially if you have a 10Mb circuit between your customers and you.

John, an interface's bandwidth statement doesn't directly have anything to do with causing congesting, except (?) in later shapers that might use a shaper bandwidth percentage based on what the shaper believes the interface bandwidth to be.

Super Bronze

Re: i need simple qos config

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

Depending on what kind of device are your "routers", it's often not too difficult to guarantee some amount of bandwidth outbound.  However, trying to guarantee inbound bandwidth isn't really possible, although you can often "influence" inbound bandwidth consumption.

Re: i need simple qos config

You can. Create an acl like mentioned above matching on the hosts that you want. Create a class map matching on this acl and your protocols and apply to a policy map.

Access-list 10 permit host 1.1.1.1
Access-list 10 permit host 1.1.1.2

Class-map Internet
Match access-group 10
Match protocol http

Policy-map Internet
Class Internet
Bandwidth percent 90
Shape average 4500000
Class class-default
Fair-queue

It will match only hosts 1.1.1.1 and .2. If .3 wants to go to the internet, they would hit the default class.


Sent from Cisco Technical Support iPhone App

HTH, John *** Please rate all useful posts ***
New Member

i need simple qos config

how does the code in this thread code compare to the following?

https://learningnetwork.cisco.com/message/339947#339947

New Member

i need simple qos config

I do beleive it all depends on your requirements. If this is the same scenario as before, I beleive the requirements were as follows:

1. There is a 10meg interface connecting upstream to an ISP that has a CIR of 5mbit.

2. All internet traffic needs to be at 5mbit as this is ISP CIR. CEO on the LAN needs to be able to use up to 90% of this internet bandwidth if he so chooses at any given time.

3. On the same 10meg link, there are connections to other internal servers/services that do not need to be within the 5meg QoS limit.

In order to define a good QoS policy for this, can you give us a diagram with CEO, LAN, 5M WAN, and servers?

416
Views
0
Helpful
17
Replies
CreatePlease login to create content