Forum Discussion

Gavin_Coulthar1's avatar
Gavin_Coulthar1
Historic F5 Account
Jun 13, 2006

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_12's avatar
    Colin_Walker_12
    Historic F5 Account
    There 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.

     

     

    Colin