Chapter 3: Condition Reference
57
bitrate=
Tests if a streaming transaction requests bandwidth within the specified range or an exact match.
When providing a range, either value can be left empty, implying either no lower or no upper limit on
the test. Bitrate can change dynamically during a transaction, so this policy is re-evaluated for each
change. Note that the numeric pattern used to test the bitrate= condition can contain no whitespace.
This trigger is only available if the current transaction is a Real Media or Windows Media transaction.
Syntax
bitrate={ [lower]..[upper]|exact_rate }
where:
lower—Lower end of bandwidth range. Specify using an integer, in bits, kilobits (1000x), or
megabits (1,000,000x), as follows: integer | integerk | integerm. If left blank, there is no
lower limit on the test.
upper—Upper end of bandwidth range. Specify using an integer, in bits, kilobits, or megabits, as
follows: integer | integerk | integerm. If left blank, there is no upper limit on the test.
exact_rate—Exact bandwidth to test. Specify using an integer, in bits, kilobits, or megabits, as
follows: integer | integerk | integerm.
Note: To test an inverted range, the following shorthand expression is available. Instead of writing
bitrate=(..28.8k|56k..) to indicate bit rates from 0 to 28.8k and from 56k up, the policy
language recognizes bitrate=56k..28.8k as equivalent.
Layer and Transaction Notes
•Use in <Cache> and <Proxy> layers.
Applies to streaming transactions.
This condition can be used with the max_bitrate( ) property.
Examples
; Deny service for bit rates above 56k.
deny bitrate=!0..56k
; This example allows members of the Sales group access to streams up to 2 megabits.
; All others are limited to 56K bit streams.
<proxy>
authenticate(NTLMRealm)
<proxy>
; deny sales access to streams over 2M bits
deny group=sales bitrate=!0..2m
; deny non-sales access to streams over 56K bits
deny group=!sales bitrate=!0..56k..
; In this form of the rule, we assume that the users are by default denied, and we
; are overriding this to grant access to authorized users.