Cisco 1721 IOS 12.4 Adv.Security. How to give static bandwidth 256kbps to download and 64kbps to upload for user connected to FastEthernet0? This LAN is only for Internet sharing.
- posted
17 years ago
Cisco 1721 IOS 12.4 Adv.Security. How to give static bandwidth 256kbps to download and 64kbps to upload for user connected to FastEthernet0? This LAN is only for Internet sharing.
~ Cisco 1721 IOS 12.4 Adv.Security. ~ How to give static bandwidth 256kbps ~ to download and 64kbps to upload ~ for user connected to FastEthernet0? ~ This LAN is only for Internet sharing. ~
CAR should be able to do it:
It's no longer necessary to use CAR. There is a better method known as policing. which has the same net effect as CAR, but policing can be applied to QoS class and therefore there is more options to match traffic other then ACL's.
Here is a sample config that shapes traffic to "small ISP" customers up to the 1000000 bps respectively, and gives them ability to upload up to 512000 bps respectively (you need to define class-maps for this example to work - see the link above!):
policy-map simpleISP=>upstream ISP class CustomerA shape average 512000 class CustomerB shape average 512000
policy-map simpleISP=>customers class CustomerA shape average 1000000 class Customer B shape average 1000000
Interface fa0/0 description simpleIPS=>customers service-policy output simpleISP=>customers
Interface s0/0/0.477 description simpleISP=>upstream ISP service-policy output simpleISP=>upstream ISP
Checking example: sh policy-map int fa0/0
If you have some additional questions about Cisco IOS QoS fill free to ask...
B.R. Igor
Thank you very much. I have question ;) In many traffic policing examles is for instance: police 8000 2000 4000 conform-action transmit exceed-action drop, but you suggest to use shape average. What are diferences?
Because 'police' IOS command if followed with drop statement drops packets instead of holding them in the queue... This can be good for TCP traffic, but in most cases it's better to shape all the traffic and use WRED to randomly (and intelligently) drop packets based on CoS marks and use CBWFQ (if this is data traffic) to guarantee bandwidth for some classes. If you only shape traffic then be aware that this increases delay, but on the other side dropping all TCP traffic that exceeds some defined rate and consisting of multiple flows at once can cause so called global synchronization
Traffic policer ('police' or CAR in Cisco case) is useful for 2 things:
- smart packet markings - mark down packets with different CoS depending of traffic rate - for example: you may mark down FTP traffic with cs1 it it exceeds the rate of 512 kbps. This enables you to give that traffic lower priority and higher drop probability when using WRED if it starts using too much bandwidth.
- When using LLQ for VoIP then it's useful to give that traffic strict priority, but to avoid starvation of lower priority data traffic you should limit strict priority traffic so that it doesn't occupies the whole available bandwidth.
B.R. Igor
"rzirzi" wrote in message news:dp8fod$dl0$ snipped-for-privacy@atlantis.news.tpi.pl...
Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.