This procedure shows how to enable accounting on a traffic class in the IPQoS configuration file. It defines flow accounting for the video class, which is introduced in How to Create the IPQoS Configuration File and Define Traffic Classes. This class selects streaming video traffic, which must be billed as part of a premium customer's SLA.
Before You Begin
The procedure assumes that you have an existing IPQoS configuration file with defined classes, filters, metering actions, if appropriate, and marking actions, if appropriate. It continues building the IPQoS configuration file from Example 4, Sample IPQoS Configuration File for a Premium Web Server.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.
For example, on the IPQoS-enabled server Goldweb, you would start after the following markEF action statement in the configuration file, /etc/inet/ipqosinit.conf.
action { module dscpmk name markEF params { global_stats TRUE dscp_map{0-63:46} next_action acct } }
action { module flowacct name acct
Invokes the flow-accounting module flowacct.
Assigns the name acct to the action statement
params { global_stats TRUE timer 10000 timeout 10000 max_limit 2048 next_action continue } }
Enables statistics collection on the class video, which selects streaming video packets.
Specifies the duration of the interval, in milliseconds, when the flow table is scanned for timed-out flows. In this parameter, that interval is 10000 milliseconds.
Specifies the minimum interval timeout value. A flow "times out" when packets for the flow are not seen during a timeout interval. In this parameter, packets time out after 10000 milliseconds.
Sets the maximum number of active flow records in the flow table for this action instance.
Indicates that no further processing is required on packets of the traffic class video, and that these packets can return to the network stream.
The flowacct module gathers statistical information about packet flows of a particular class until a specified timeout value is reached.
See How to Start the ipqos Service for specific instructions about starting or restarting the service.
See General IPQoS Configuration Planning Task Map for a list of additional changes that might be needed.