This procedure shows how to define traffic forwarding by adding per-hop behaviors for a class into the IPQoS configuration file.
Before You Begin
The procedure assumes that you have an existing IPQoS configuration file with defined classes and defined filters. 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.3.
For example, on the IPQoS-enabled server Goldweb, you would start after the following filter clause in the configuration file:
filter { name videoout sport videosrv direction LOCAL_OUT class video } }
Because this filter clause is at the end of the ipgpc classifier action statement, you need a closing brace to terminate the filter and a second closing brace to terminate the action statement.
action { module dscpmk name markAF11
Calls the marker module dscpmk.
Assigns the name markAF11 to the action statement.
The previously defined class goldweb includes a next_action markAF11 statement. This statement sends traffic flows to the markAF11 action statement after the classifier concludes processing.
params { global_stats FALSE dscp_map{0-63:10} next_action continue } }
Enables statistics collection for the markAF11 marker action statement. However, because the value of enable_stats is FALSE, statistics are not collected.
Assigns a DSCP of 10 to the packet headers of the traffic class goldweb, which is currently being processed by the marker.
Indicates that no further processing is required on packets of the traffic class goldweb, and that these packets can return to the network stream.
The DSCP of 10 instructs the marker to set all entries in the dscp map to the decimal value 10 (binary 001010). This codepoint indicates that packets of the goldweb traffic class are subject to the AF11 per-hop behavior. AF11 guarantees that all packets with the DSCP of 10 receive a low-drop, high-priority service. Thus, outgoing traffic for premium customers on Goldweb is given the highest priority that is available for the Assured Forwarding (AF) PHB. For a table of possible DSCPs for AF, refer to Figure 5, Table 5, Assured Forwarding Codepoints.
action { module dscpmk name markEF
Calls the marker module dscpmk.
Assigns the name markEF to the action statement.
params { global_stats TRUE dscp_map{0-63:46} next_action acct } }
Enables statistics collection on class video, which selects streaming video packets.
Assigns a DSCP of 46 to the packet headers of the traffic class video, which is currently being processed by the marker.
Instructs the dscpmk module to pass packets of the class video to the acct action statement after dscpmk completes processing. The acct action statement invokes the flowacct module.
The DSCP of 46 instructs the dscpmk module to set all entries in the dscp map to the decimal value 46 (binary 101110) in the DS field. This codepoint indicates that packets of the video traffic class are subject to the Expedited Forwarding (EF) per-hop behavior.
The EF PHB guarantees that packets with the DSCP of 46 are given the highest precedence by IPQoS and Diffserv-aware systems. Streaming applications require highest-priority service, which is the rationale behind assigning to streaming applications the EF PHBs in the QoS policy. For more details about the expedited forwarding PHB, refer to Expedited Forwarding (EF) PHB.
For more information, refer to Providing Differentiated Services on a Router.
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.
Next Steps
To start gathering flow-accounting statistics on traffic flows, refer to How to Enable Accounting for a Class in the IPQoS Configuration File.
To define forwarding behaviors for the marker modules, refer to How to Define Traffic Forwarding in the IPQoS Configuration File.
To define flow-control parameters for the metering modules, refer to How to Configure Flow Control in the IPQoS Configuration File.
To activate the IPQoS configuration file, refer to How to Start the ipqos Service.
To define additional filters, refer to How to Define Filters in the IPQoS Configuration File.
To create classes for traffic flows from applications, refer to How to Configure the IPQoS Configuration File for an Application Server.