Forum Discussion
Gavin_Coulthar1
Jun 13, 2006Historic F5 Account
alter uri based on connection speed
Hi,
I'm trying to put together a rule to send a client connection to an appropriate video file based on their connection speed. the rule is pretty simple at the moment for testing purposes and looks like this
when HTTP_REQUEST {
log local0. " rtt is [TCP::rtt]"
log local0. " bandwidth is [TCP::bandwidth]"
if { ([tcp::bandwidth] < x ) and ([HTTP::uri]contains "/path/file") } {
redirect "http://[HTTP::host]/alternatepath/slow_file" }
}
I have tried tcp:rtt and tcp::bandwidth but get inconsistent results as these values appear to vary greatly initially and become more accurate over time. What I need is a one-shot estimate of performance. Any thoughts ?
1 Reply
- Colin_Walker_12Historic F5 AccountThere isn't currently a way to get an immediate estimate on throughput. This kind of statistic takes a small amount of time and traffic to put together accurately. And, if you think about it, that makes sense, doesn't it? How could we know how fast the connection is after only passing a single packet? We have to get an aggregate of the returns for at least a few transmissions before we can give an accurate estimate on bandwith or RTT.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects