The direction is defined by a number of an autonomous system that sends or receives the traffic. The direction priority specified for autonomous system (if defined) overrides the priority specified by protocol. The direction priority specified for the traffic's source (if defined) overrides the priority specified for the destination.
The direction dependent priorities assigned by the system's administrator, are loaded by DPI from the file /etc/dpi/asnum.dscp.
This file is created in two steps. First, the text file with a list of autonomous systems and their assigned priorities is created. Next, this file is converted into an internal format by a dedicated utility.
Each line of the file contains: AS_number <space> dscp_value. For example:
64512 cs0 64512 local 64513 drop 64514 pass 64514 peer
Keywords meaning:
To convert this file into the internal format and to place it into the working directory for DPI usage:
cat my_as_dscp.txt|as2dscp /etc/dpi/asnum.dscp service fastdpi reload
To allow the transit of local operator traffic through the DPI without analysing and processing:
local_passthrough=1
To place the local operator traffic in a separate class:
local_dscp=0x38
dscp is set in a numerical form, the reference table provides correspondence between the numeric and letter symbols.
Autonomous system traffic within its class can be limited regardless of the basic service plan limitation.