Selective bandwidth managementYou can control ZXTM's bandwidth management capabilities using a TrafficScript rule. For example, suppose you wish to apply bandwidth limits to large audio and video files, but not apply any limits to other files. This example takes advantage of the fact that you can identify most audio and video transfers by inspecting the 'Content-Type' header value in the HTTP response, but you could easily use other logic if required. The following TrafficScript response rule achieves this:
$mime = http.getResponseHeader( "Content-Type" );
if( string.startswith( $mime, "audio/" ) || string.startswith( $mime, "video/" ) ) {
connection.setBandwidthClass( "multimedia" );
}
The 'multimedia' bandwidth class should be configured to use a smaller part of the total available bandwidth.
Owen Garrett
[Zeus Dev Team] 01 July 2005
|
Recent Articles
Other Resources
|


