iRule that restricts bandwidth after a certain amount is transferred

I think I am over my head on this one so I am reaching out. The basics are I need an iRule that will restrict a session throughput after they hit a specific amount of data transfer. Let’s say I have a download area and a customer downloads 5 Gigabytes of data. After the 5 Gigabytes of data I want to restrict or rate shape how fast they can pull, let’s say to 100 Kilobits/s

I guess I need a statistics profile for data collection along with some rate class profiles for the virtual servers. Has anyone implemented anything like this? I’m sure it has been done, I just don’t know where to start.

Thanks in advance for any replies

I don’t believe there is a specific way to track each byte per client.

CB

Thanks Citizen_elah,

I never ever noticed the IP::stats before.

CB

Here is one that Colin had posted

http://devcentral.f5.com/Wiki/default.aspx/iRules/In\_Depth\_Traffic\_Analysis\_via\_iRule.html

CB

O man, thanks for the input. These will aid in what I need…

Thanks again!