This next procedure shows how to configure forwarding for application traffic. In the procedure, you define per-hop behaviors for application traffic classes that might have lower precedence than other traffic on a network. The procedure continues building the IPQoS configuration file in Example 6, Sample IPQoS Configuration File for an Application Server.
Before You Begin
The procedure assumes that you have an existing IPQoS configuration file with defined classes and defined filters for the applications to be marked.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
In /etc/inet/ipqosinit.conf, the last filter is the following:
filter { name ftpdata sport ftp-data class ftp } }
action { module dscpmk name markAF13
Invokes the marker module dscpmk.
Assigns the name markAF13 to the action statement.
params { global_stats FALSE dscp_map{0-63:14} next_action continue } }
Enables statistics collection for the markAF13 marker action statement. However, because the value of enable_stats is FALSE, statistics are not collected.
Assigns a DSCP of 14 to the packet headers of the traffic class smtp, which is currently being processed by the marker.
Indicates that no further processing is required on packets of the traffic class smtp. These packets can then return to the network stream.
The DSCP of 14 tells the marker to set all entries in the dscp map to the decimal value 14 (binary 001110). The DSCP of 14 sets the AF13 per-hop behavior. The marker marks packets of the smtp traffic class with the DSCP of 14 in the DS field.
AF13 assigns all packets with a DSCP of 14 to a high-drop precedence. However, because AF13 also assures a Class 1 priority, the router still guarantees outgoing email traffic a high priority in its queue. Lists of possible AF codepoints, refer to Figure 5, Table 5, Assured Forwarding Codepoints.
action { module dscpmk name markAF21 params { global_stats FALSE dscp_map{0-63:18} next_action continue } }
Assigns the name markAF21 to the action statement.
Assigns a DSCP of 18 to the packet headers of the traffic class nntp, which is currently being processed by the marker.
The DSCP of 18 tells the marker to set all entries in the dscp map to the decimal value 18 (binary 010010). The DSCP of 18 sets the AF21 per-hop behavior. The marker marks packets of the news traffic class with the DSCP of 18 in the DS field.
AF21 assures that all packets with a DSCP of 18 receive a low-drop precedence but with only Class 2 priority. Thus, the possibility of network news traffic being dropped is low.
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.