You can implement resource controls over flows by setting flow properties. The following properties are supported by flows:
maxbw - The maximum amount of the link's bandwidth that packets identified with the flow can use. The value you set must be within the allowed range of values for the link's bandwidth. See Example 81, Setting Maximum Bandwidth and Priority for a Flow.
priority - The priority with which packets belonging to the specified flow will be processed. The allowed values for the priority property are high, medium, and low. If the priority of a flow is set to high, all the packets belonging to that flow will be processed ahead of other packets on the same link. This property is used to create a flow for applications that are latency sensitive. The default value of this property is medium. See Example 81, Setting Maximum Bandwidth and Priority for a Flow.
rank - The rank for a flow. The considerations for setting the rank property are:
You do not have to set the rank property on all the flows. A flow with the rank property specified is always higher in the lookup order than a flow with no rank specified.
You can set values for the rank property from 1 to 65535. A flow with a low rank value is higher in the lookup order than a flow with a high rank value.
You can have two flows with the same rank value. In this case, the tie is broken by following the default system policy.
For more information about the rank property, see Overlapping Flows.
This example shows how to set the maximum bandwidth to 2G and a high priority for the flow http.
# flowadm set-flowprop -p maxbw=2G http # flowadm set-flowprop -p priority=high http