Forum Discussion
Nhat_319247
Nimbostratus
Jun 22, 2017irules and rateclass based on ToS values
Reading this whitepaper:
https://worldtechit.com/wp-content/uploads/2015/07/f5-white-paper-bandwidth-management-for-peer-to-peer-applications-.pdf
it talks about using irules to identify applica...
Nhat_319247
Nimbostratus
Jul 12, 2017In case anyone was interested...
So i got this lab'ed up and tested this with a Virtual LTM. Got it working as follows: Configured a Rate Class: Called it AF11 where i set the base and ceiling rate to 600Kbps Then configured the following irule:
when CLIENT_ACCEPTED {
if { [IP::tos] == 40 } {
rateclass AF11
}
}
Then applied the irule to the Virtual Server.
I also tested a time based version of the above irule:
when CLIENT_ACCEPTED {
set current_day [clock format [clock seconds] -format {%a} ]
set current_time [clock seconds]
set time_min [clock scan {08:00}]
set time_max [clock scan {17:00}]
if {($current_day == {Sat}) or ($current_day == {Sun})} {
rateclass Parent
}
elseif {($current_time < $time_min) or ($current_time > $time_max)} {
rateclass Parent
}
elseif { [IP::tos] == 40 } {
rateclass AF11
}
else {
rateclass Parent
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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