07-13-2017 06:49 AM - edited 03-05-2019 08:50 AM
Hello,
We are planning the deploy shaping to limit the traffic toward the ISP, and we have a gig interface which is connected to Cisco 7609 ----> ISP.
I would like to limit the traffic 250Mbps (anything above gets queued and dropped). The ISP is not limiting the traffic if it is Oversubscribed they will charge us lots of money.
So I'm preparing the configuration and required your comment on it.
The connection between my router and the ISP is a gig interface.
I ended up doing this:
Class-map ratelimit-250M
match any
Policy-map ratelimit-250M
Match class ratelimit-250M
Shape average 250000000
Exit
Interface range gi9/10-11
Service-policy input ratelimit-250M
Service-policy output ratelimit-250M
Please share your thoughts and findings if I'm missing anything.
Any other recommendations?
Anything I can do to help with the output drops? I thought the shaping would help.
Solved! Go to Solution.
10-08-2017 10:53 PM
Hi Willwetherman,
Thank you for the reply and as you said shaping doesn't support on module "WS-F6700-DFC3C" so apply policying on the interface as following;
class-map match-all ratelimit-250M
match any
!
policy-map ratelimit-250M
class ratelimit-250M
police cir 249000000 conform-action transmit exceed-action drop
!
interface GigabitEthernetx/x
description *** ISP-A primary ***
service-policy output ratelimit-250M
end
Outputs:
PE-7609-XXX-01-01#show policy-map interface gigabitEthernet 9/10
GigabitEthernet9/10
Service-policy output: ratelimit-250M
class-map: ratelimit-250M (match-all)
Match: any
police :
249000000 bps 7781000 limit 7781000 extended limit
Earl in slot 2 :
13300416905062 bytes
30 second offered rate 238846008 bps
aggregate-forwarded 13286855706230 bytes action: transmit
exceeded 13561198832 bytes action: drop
aggregate-forward 231175584 bps exceed 0 bps
Earl in slot 5 :
43098277 bytes
30 second offered rate 376 bps
aggregate-forwarded 43098277 bytes action: transmit
exceeded 0 bytes action: drop
aggregate-forward 488 bps exceed 0 bps
Earl in slot 9 :
471225530 bytes
30 second offered rate 3904 bps
aggregate-forwarded 471225530 bytes action: transmit
exceeded 0 bytes action: drop
aggregate-forward 3688 bps exceed 0 bps
Class-map: class-default (match-any)
0 packets, 0 bytes
30 second offered rate 0000 bps, drop rate 0000 bps
Match: any
Question 1: we limit the bandwidth 250M but strange thing last night we can see the graph of our monitoring tool which shows traffic hits 300M, How it could possible?
Question 2: What is Earl Means and we have applied the policy in module 9 so what is the link with module 2, 5,
If we want to see the drop traffic which Earl we have to look.
Thank you in advance.
07-13-2017 08:11 AM
Hi Muhammad,
This is the config that I typically use for outbound traffic shaping to my ISPs
policy-map parent
class class-default
shape average 250000000
!
interface GigabitEthernetX/X
service-policy output parent
A couple of notes:
1) You can match all traffic under class-default instead of creating a dedicated class-map that matches any traffic.
2) I don’t think the 7609 supports inbound traffic shaping so your input service-policy may not work. This shouldn’t be an issue as you only want prevent egress traffic towards your ISP from exceeding your CIR.
3) Some devices don’t count L2 overhead so I typically reduce the shaped rate by 10% to take L2 overheads into consideration. Example config below. You will need to monitor this and adjust if required.
policy-map parent
class class-default
shape average 225000000 900000
A certain level of output drops will be normal and TCP traffic will adjust its transmission rate to compensate. You could look at increasing the depth of the shaping queue to reduce drops however this will increase latency which will have an impact if you run latency sensitive applications over your internet connection. Another option is to use a nested CBWFQ policy to provide minimum bandwidth guarantees and reduce drops for specific applications.
I hope that this helps
10-08-2017 10:53 PM
Hi Willwetherman,
Thank you for the reply and as you said shaping doesn't support on module "WS-F6700-DFC3C" so apply policying on the interface as following;
class-map match-all ratelimit-250M
match any
!
policy-map ratelimit-250M
class ratelimit-250M
police cir 249000000 conform-action transmit exceed-action drop
!
interface GigabitEthernetx/x
description *** ISP-A primary ***
service-policy output ratelimit-250M
end
Outputs:
PE-7609-XXX-01-01#show policy-map interface gigabitEthernet 9/10
GigabitEthernet9/10
Service-policy output: ratelimit-250M
class-map: ratelimit-250M (match-all)
Match: any
police :
249000000 bps 7781000 limit 7781000 extended limit
Earl in slot 2 :
13300416905062 bytes
30 second offered rate 238846008 bps
aggregate-forwarded 13286855706230 bytes action: transmit
exceeded 13561198832 bytes action: drop
aggregate-forward 231175584 bps exceed 0 bps
Earl in slot 5 :
43098277 bytes
30 second offered rate 376 bps
aggregate-forwarded 43098277 bytes action: transmit
exceeded 0 bytes action: drop
aggregate-forward 488 bps exceed 0 bps
Earl in slot 9 :
471225530 bytes
30 second offered rate 3904 bps
aggregate-forwarded 471225530 bytes action: transmit
exceeded 0 bytes action: drop
aggregate-forward 3688 bps exceed 0 bps
Class-map: class-default (match-any)
0 packets, 0 bytes
30 second offered rate 0000 bps, drop rate 0000 bps
Match: any
Question 1: we limit the bandwidth 250M but strange thing last night we can see the graph of our monitoring tool which shows traffic hits 300M, How it could possible?
Question 2: What is Earl Means and we have applied the policy in module 9 so what is the link with module 2, 5,
If we want to see the drop traffic which Earl we have to look.
Thank you in advance.
10-09-2017 05:54 AM
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