ltm rule command BWC mark
iRule(1) BIG-IP TMSH Manual iRule(1)
BWC::mark
This command allows you to set or unset marking for traffic flows in bwc when configured rate limit is
exceeded.
SYNOPSIS
BWC::mark SESSION_ID ('qos'|'tos') (BWC_VALUE | 'passthrough')
BWC::mark SESSION_ID APP_NAME ('qos'|'tos') (BWC_VALUE | 'passthrough')
DESCRIPTION
This command allows you to set or unset marking for traffic flows in bwc when configured rate limit is
exceeded. Marking can be on DSCP (ToS - L3) and/or QoS (L2). The ToS/QoS value needs to be in valid range and
can be passthrough.
RETURN VALUE
VALID DURING
EXAMPLES
Example for bwc policy to mark traffic flows using iRule:
BWC::mark > >
So to assign a policy, color, and mark here is an example rule
when CLIENT_ACCEPTED {
set mycookie [IP::remote_addr]:[TCP::remote_port]
BWC::policy attach gold_user $mycookie
BWC::color set gold_user p2p
BWC::mark gold_user tos 8 qos 4
}
Example for using bwc policy category to color a flow using iRule:
After a flow has been assigned a policy, at some later time when the traffic is classified the user
can assign an application to this flow. This uses the bwc config to create a bwc policy with the
categories keyword: for example, p2p category below:
tmsh create net bwc policy gold_user categories add { p2p { max-cat-rate 8mbps } } max-rate 10mbps
max-user-rate 10mbps dynamic enabled
The rule args
BWC::color
So to assign a policy and color here is an example rule
when CLIENT_ACCEPTED {
set mycookie [IP::remote_addr]:[TCP::remote_port]
BWC::policy attach gold_user $mycookie
BWC::color set gold_user p2p
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-11.3.0 --First introduced the command.
BIG-IP 2020-06-23 iRule(1)