08-08-2011 03:08 AM - edited 03-07-2019 01:35 AM
Hi
We are about to deploy a failover firewall solution between two sites using a port based Etherfow connection between the site's, the Etherflow circuit has a 20Mbps port speed on a 100Mbps bearer. As an Etherflow circuit will need to be shaped to accomadate the lower port speed I have often in the past used routers on this type of circuit. However for this solution I need it to run at layer 2 to support the ASA failover. I currently have 3560's at each of the two site's but they do not support shaping in the format I would use on a router. Does anyone know of anyway to provide the same functionality on a switch port egress.
I thought I might be able to get round this by using a router with a switch port module as routers support shaping, I tried the following on an 877 which had switch ports and hence allowed the shape command but even though the switchport took the service-policy command, no matter how much data i put through the trunk it never throttled it back.
class-map match-all shaper
match access-group 150
!
!
policy-map shaped
class shaper
shape average 2000000
interface FastEthernet3
switchport mode trunk
service-policy output shaped
access-list 150 permit ip any any
I have also seen the following but have seen comments suggesting this does not work the same as shaping
You can limit the bandwidth on an egress port. For example, if a customer pays only for a small percentage of a high-speed link, you can limit the bandwidth to that amount.
Note The egress queue default settings are suitable for most situations. You should change them only when you have a thorough understanding of the egress queues and if these settings do not meet your QoS solution.
Beginning in privileged EXEC mode, follow these steps to limit the bandwidth on an egress port. This procedure is optional.
To return to the default setting, use the no srr-queue bandwidth limit interface configuration command.
This example shows how to limit the bandwidth on a port to 80 percent:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# srr-queue bandwidth limit 80
Thanks for your help
Dameon Boyle
08-08-2011 03:36 AM
Dameon
It doesn't work the same as shaping because it is a hard limit so any packets that exceed that will be dropped. If you want shaping you can look at using shaped weights although it still not a direct comparison with shaping that you see on routers -
One possible reason you may have seen comments about it not working is that on switches like the 3560 it is not exact so the figure you put in is not necessarily the figure you get so some experimentation is need to get the desired result.
Note that with the "bandwidth limit" command you simly need to enable QOS and apply the command. With the "bandwith shape" command you may also need to map markings to queues depending on which markings are present in the packets when they reach the 3560. Or you could just not trust ingress port.
Jon
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide