Forum Discussion

NZ_David_20489's avatar
NZ_David_20489
Icon for Nimbostratus rankNimbostratus
Sep 02, 2010

Rate shaping ALL user traffic

Hi,

 

 

I've been looking at some of the irules for rateshaping and I'm pretty sure this shoudl be simple. In particular I've looked at:

 

http://devcentral.f5.com/Forums/tab...fault.aspx

 

 

I need to create an irule that is able to limit the total bandwidth from servers to ALL clients when the client accesses ([HTTP::host] equals "ben.tom.com") and ([HTTP::uri] equals "/fred") to 200Mbps (rateclass_200Mbps).

 

All other traffic will pass unshaped. The concern I have with the irule I've created is I think it will limit each client not the sum of the clients.

 

Is this possible via an irule? Any guidance would be gratefully received.

 

 

(also I assume the direction is specific to the rate class - Client/server/any)

 

 

Thanks David

 

 

 

 

 

3 Replies

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    The classes themselves are cumulative. So if you assign 4 clients to one class, then the 4 clients will SHARE the bandwidth of that class. (Because the class/profile itself has the limit, not the individual connections).

     

     

     

    H
  • Thanks for clearing this up Hamish...could you please confirm if the below would work?

     

     

    when HTTP_REQUEST {

     

    if { ([HTTP::host] equals "ben.tom.com") and ([HTTP::uri] equals "/fred") } {

     

    rateclass class_200Mbps

     

    }

     

    }

     

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Without running it through an actual LTM, that looks fine. It'll assign anyone accessing the host 'ben.tom.com' using the URL http(s)://ben.tom.com/fred to the rateclass class_200Mbps

     

     

    However...

     

     

    1. It won't doit if people access the URL via IP address, or some other name (Official or unofficial alias).

     

    2. It won't doit if people access anything UNDER /fred... e.g. /fred/index.html or /fred.html or /fred.php or anything like that

     

     

    H