I want to judge media protocol

I want to judge media protocol Flash video,Windows media over HTTP,Real media over HTTP and Quicktime over HTTP.

And I want to rate limit.

example…

if { protocol equals “Flash video” } {

rateclass rate_limit_flash

} elseif { protocol equals “Windows media over HTTP” } {

rateclass rate_limit_windows

} elseif { protocol equals “Real media over HTTP” } {

rateclass rate_limit_real

} elseif { protocol equals “Quicktime over HTTP” } {

rateclass rate_limit_quick

}

How can I do this?

Please…

With Flash video (RTMP), you won’t be able to use the HTTP events (since you can’t use an HTTP profile on this traffic). I would collect and search the TCP payload for ‘rtmp’, then apply your rateclass.

There is a lot of garbage that comes across before you ever see the RTMP connection string, so you’ll want to make sure you have a big enough collection buffer (maybe 300?).

-Mike