Applies To:

Show Versions Show Versions

Manual Chapter: Accelerating Traffic with a Local Traffic Policy
Manual Chapter
Table of Contents   |   << Previous Chapter   |   Next Chapter >>

About classifying types of HTTP traffic with a local traffic policy

An application that runs on a virtual server accelerates all HTTP traffic. You can, however, use a local traffic policy to classify types of HTTP traffic for the BIG-IP system to accelerate, by specifying hosts, paths, headers, and cookies.

Important: Although you can use a local traffic policy to classify the types of HTTP traffic to accelerate, the local traffic policy overrides the Web Acceleration profile on the virtual server. Acceleration of HTTP traffic with the BIG-IP system should primarily be configured through a Web Acceleration profile, instead of a local traffic policy.

Local traffic policy matching Strategies settings

This table summarizes the strategies used for traffic policy matching.

Matching strategy Description
First-match strategy A first-match strategy executes the actions for the first rule in the Rules list that matches.
Best-match strategy A best-match strategy selects and executes the actions of the rule in the Rules list with the best match, as determined by the following factors.
  • The number of conditions and operands that match the rule.
  • The length of the matched value for the rule.
  • The priority of the operands for the rule.
Note: In a best-match strategy, when multiple rules match and specify an action, conflicting or otherwise, only the action of the best-match rule is executed. A best-match rule can be the lowest ordinal, the highest priority, or the first rule that matches in the Rules list.
All-match strategy An all-match strategy executes the actions for all rules in the Rules list that match.
Note: In an all-match strategy, when multiple rules match, but specify conflicting actions, only the action of the best-match rule is executed. A best-match rule can be the lowest ordinal, the highest priority, or the first rule that matches in the Rules list.

Local traffic policy matching Requires profile settings

This table summarizes the profile settings that are required for local traffic policy matching.

Requires Setting Description
http Specifies that the policy matching requires an HTTP profile.
ssl Specifies that the policy matching requires a Client SSL profile.
tcp Specifies that the policy matching requires a TCP profile.

Local traffic policy matching Controls settings

This table summarizes the controls settings that are required for local traffic policy matching.

Controls Setting Description
acceleration Provides controls associated with acceleration functionality.
caching Provides controls associated with caching functionality.
classification Provides controls associated with classification.
compression Provides controls associated with HTTP compression.
forwarding Provides controls associated with forwarding functionality.
request-adaptation Provides controls associated with request-adaptation functionality.
response-adaptation Provides controls associated with response-adaptation functionality.
server-ssl Provides controls associated with server-ssl functionality.

Local traffic policy matching Conditions operands

This table summarizes the operands for each condition used in policy matching.

Operand Type Valid Events Selectors and Parameters Description
client-ssl string/number
  • request
  • response
  • cipher
  • cipher-bits
  • protocol
Requires a Client SSL profile for policy matching.
http-basic-auth string
  • request
  • password
  • username
Returns <username>: <password> or parts of it.
http-cookie string
  • request
  • all
    • name
Returns the value of a particular cookie or cookie attribute.
http-header string
  • request
  • response
  • all
    • name (required)
Returns the value of a particular header.
http-host string/number
  • request
  • all
  • host
  • port
Provides all or part of the HTTP Host header.
http-method string
  • request
  • all
Provides the HTTP method.
http-referer string/number
  • request
  • all
  • extension
  • host
  • path
  • path-segment
    • index (required)
  • port
  • query-parameter
    • name (required)
  • query-string
  • scheme
  • unnamed-query- parameter
    • index (required)
Provides all or part of the HTTP Referer header.
http-set-cookie string
  • response
  • domain
    • name (required)
  • expiry
    • name (required)
  • path
    • name (required)
  • value
    • name (required)
  • version
    • name (required)
Sets the selected setting of a particular cookie or cookie attribute.
http-status string/number
  • response
  • all
  • code
  • text
Returns the HTTP status line or part of it.
http-uri string/number
  • request
  • all
  • extension
  • host
  • path
  • path-segment
    • index (required)
  • port
  • query-parameter
    • name (required)
  • query-string
  • scheme
  • unnamed-query- parameter
    • index (required)
Provides all or part of the request URI.
http-version string/number
  • request
  • response
  • response
    • all
    • major
    • minor
    • protocol
Provides HTTP/1.1 a number.
tcp number
  • request
  • response
  • mss
    • internal true
  • port
    • internal true
    • local true
  • route-domain
    • internal true
  • rtt
    • internal true
  • vlan
    • internal true
  • vlan-id
    • internal true
Requires a TCP profile for policy matching.

Local traffic policy matching Actions operands

This table summarizes the actions associated with the conditions of the rule used in policy matching.

Target Type Valid Events Action
acceleration string/number
  • request
  • disable
  • enable
cache string
  • request
  • response
  • disable
  • enable
    • pin true
compress string
  • request
  • response
  • disable
  • enable
decompress string
  • request
  • response
  • disable
  • enable
forward string
  • request
  • reset
  • select
    • clone-pool
    • member
    • nexthop
    • node
    • pool
    • rateclass
    • snat
    • snatpool
    • vlan
    • vlan-id
http-cookie string
  • request
  • insert
    • name (required)
    • value (required)
  • remove
    • name (required)
http-header string/number
  • request
  • response
  • insert
    • name (required)
    • value (required)
  • remove
    • name (required)
  • replace
    • name (required)
    • value (required)
http-host string
  • request
  • replace
    • value
http-referer string
  • request
  • insert
    • value (required)
  • remove
  • replace
    • value
http-reply string
  • request
  • response
  • redirect
    • location (required)
http-set-cookie string/number
  • response
  • insert
    • name (required)
    • domain
    • path
    • value (required)
  • remove
    • name (required)
http-uri string/number
  • response
  • replace
    • path
    • query-string
    • value
log string/number
  • request
  • response
  • write
    • message (required)
pem string/number
  • request
  • response
  • classify
    • application
    • category
    • defer
    • protocol
request-adapt string/number
  • request
  • response
  • disable
  • enable
response-adapt string/number
  • request
  • response
  • disable
  • enable
server-ssl string/number
  • request
  • disable
  • enable
tcl string/number
  • request
  • response
  • set-variable
    • name (required)
    • expression (required)
tcp-nagle string/number
  • request
  • disable
  • enable
Table of Contents   |   << Previous Chapter   |   Next Chapter >>

Was this resource helpful in solving your issue?




NOTE: Please do not provide personal information.



Incorrect answer. Please try again: Please enter the words to the right: Please enter the numbers you hear:

Additional Comments (optional)