Angelo
February 27, 2013, 3:36pm
1
Hi
I’m cutting over a VS from ZXTM (zeus traffic manager) to F5 but there is something i don’t understand. there is a rule for rate shaping on there basically certain IP range (10.200.0.0/24) are rate limited to
max_rate_per_minute =360
max_rate_per_second: 6
is this possible on the F5
Angelo
February 27, 2013, 4:23pm
2
i set a rate limit but in bandwidth 3600Kbs with a irule but i need to know if it will work…
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals SmartWizard_rate_limit] } {
log local0. “[IP::client_addr] being handled by rateclass class1”
rateclass Class1
}
}
nitass
February 27, 2013, 10:02pm
3
isn’t it number of requests?
max_rate_per_minute
The maximum number of requests that can take place per minute. ‘0’ means ‘no limit’.
max_rate_per_second
The maximum number of requests that can take place per second. ‘0’ means no limit.
Stingray Traffic Manager User Manual User ManualUser Manual
Version 9.1 December 2012
Angelo
February 28, 2013, 3:38am
4
thanks Niass
one thing i’m getting this error on my irule
TCL error: /Smart_Wizard/SmartWizard_rate_limit - undefined reference to rate class ‘Class1’ (line 3) invoked from within “rateclass Class1”
Angelo
February 28, 2013, 3:52am
5
Hi Niass
Yes it is number of reques…
Angelo
February 28, 2013, 3:53am
6
Hi Niass
Yes it is number of reques…
Angelo
February 28, 2013, 4:22am
7
And doesn’t look like the rate shapeing is working…
nitass
February 28, 2013, 6:33am
8
And doesn’t look like the rate shapeing is working…i do not think rate shaping counts number of requests/connections.
i think you may have to do something like this.
virtual server connection rate limit with tables by Aaron
Angelo
February 28, 2013, 6:40am
9
well i decided to rate shape them to 512 only thing i could think of but i don’t know if it’s working…
Nitass, does the VS need to have a least one Rate Class applied in order for this to work?
nitass
February 28, 2013, 2:50pm
11
does the VS need to have a least one Rate Class applied in order for this to work?i do not think it is required.
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool gw
destination any:any
mask 0.0.0.0
rules myrule
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
rateclass class1
}
}
[root@ve10:Active] config b rate class class1 list
rate class class1 {
rate 296bps
ceiling 296bps
drop policy tail
type sfq
}
[root@ve10:Active] config b rate class class1
RATE CLASS class1
| limits (base, ceiling, burst) = (296bps, 296bps, 0B)
| bytes (base, burst, queue) = (786, 0, 2346)
| drops (pkts, bytes) tail = (0, 0), random = (0, 0), total = (0, 0)
| 4s avg = 10Bps
OK, thanks for the confirmation.
Angelo
February 28, 2013, 3:25pm
13
thank Niass
this is the rule that i have please let me know if it will work and how i can add login to see
when HTTP_REQUEST {
set sm_rate [class match -value [IP::client_addr] equals SM_rate_limit]
if { $sm_rate ne “” } {
rateclass Class1
}
}