Selective bandwidth management

You 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  Permalink  
Leave a comment ...
Your email address will not be displayed.
Your URL will be displayed.
This public messageboard is not a forum for technical support. To report technical support problems, please contact our dedicated Support team using the instructions at the bottom of this page.
Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)
Download Free ZXTM Desktop Edition

Recent Articles

Other Resources



www.zeus.com