Forum Discussion
Brian_Ott_11267
Nimbostratus
Feb 03, 2005Compression based on client
Is it possible to construct an iRule to turn on compression based on a client's speed?
We find compression to be much less effective for many of our customers, and would like to turn it on for slower customers such as those on dialup and possible 256k/lower DSL.
Any thoughts in regards to how to determine the client's possible speed? Based on mss or mtu is my only idea.
This was one of the selling points for us in regards to the 3400 box, so I was curious what the most effective way to implement this might be.
-Brian.
- rapmaster_c_127Historic F5 AccountYes, you can definitely do this. Here are some commands that you could use to help determine the type of client. We have been working on improving some of them in 9.0.5, so you may want to hold off on getting too elaborate with them until then.
when HTTP_REQUEST { if { [TCP::mss] >= 1280 } { COMPRESS::disable } }
- Brian_Ott_11267
Nimbostratus
I thank you for the reply. I will see what I can do. - jwhitepnv_12764
Nimbostratus
I tried the following and got the following error. How do I change the HTTP profile? - bl0ndie_127134Historic F5 AccountWe don't allow you to switch http profiles from rules. If you are trying to set the compression level dynamically, you may be able achieve the same thing using this rule
where '9' is a value at which you get the highest level of compression. You can call this rule as many times as you like and the value is sticky for the life time of that connection.COMPRESS::gzip level [ 1 .. 10 ]
- rapmaster_c_127Historic F5 AccountI think you want to latch HTTP_REQUEST rather than CLIENT_DATA. CLIENT_DATA occurs after a TCP::collect rule, which may or may not have triggered any HTTP events. The safest place to check this metric is in HTTP_REQUEST.
- bl0ndie_127134Historic F5 AccountCorrection, the rule should read
Actually, I would have preferred '11' but oh well.COMPRESS::gzip level [ 1 .. 9 ]
- tordofm_93708
Nimbostratus
Hi, - JRahm
Admin
Yes, if you use the IP::tos and/or LINK::qos - tordofm_93708
Nimbostratus
Thanks very Much
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