This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong.
xxxxxxxxxx
====== Priority assignment depending on the directions ======
{{indexmenu_n>4}}
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.
<note important>One can change the IP list that belongs to an autonomous system and define an auxiliary autonomous system dynamically. It is described in the section [[dpi:dpi_options:opt_statistics:statistics_asn|Configuring autonomous systems]]</note>
The direction dependent priorities assigned by the system's administrator, are loaded by DPI from the file **/etc/dpi/asnum.dscp.**
<note warning>Comments in this file are not allowed!</note>
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.
<note tip>''asnum.bin'' — a directory of public autonomous systems and subnets that can be updated from the cloud. To enable directory updates, add the parameter ''asnum_download=1'' to the configuration file ''/etc/dpi/fastdpi.conf''. By default, updates are disabled (''asnum_download=0'').</note>
===== File format of autonomous systems' list and their priorities: =====
Each line of the file contains: AS_number <space> dscp_value. **For example:**
<code>
64512 cs0
64512 local
64513 drop
64514 pass
64514 peer
</code>
* Here cs0 - is [[dpi:dpi_options:opt_priority:dscp_table|DSCP value]].\\
Keywords meaning: