Assigning priorities according to the protocols [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:dpi:dpi_options:opt_priority:priority_config:start [2023/10/10 08:25] – external edit 127.0.0.1en:dpi:dpi_options:opt_priority:priority_config:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Assigning priorities according to the protocols ====== 
-{{indexmenu_n>3}} 
-The protocol priorities (assigned by system administrator) are loaded by DPI from the file **/etc/dpi/protocols.dscp.** 
  
-This file is created in two steps: first one creates a text file with the list of protocols and their priorities. Second, it is converted into an internal format by a special utility. 
- 
-To apply the changes you need to the DPI configuration with the following command: 
-<code>service fastdpi reload</code> 
-===== The file format of protocols and priorities list: ===== 
- 
-Each line contains the protocol name, then space, then dscp value. **For example:** 
-<code> 
-dns         0x3F 
-skype       drop 
-compressnet 010 
-ftp         keep 
-http        cs0 
-default     keep 
-</code> 
-<note important>[[en:dpi:dpi_options:opt_statistics:statistics_info:start|Full list of protocols.]]\\ 
-DSCP value is specified as [[en:dpi:dpi_options:opt_priority:priority_config:dscp_table|decimal, hex or octal number or as a text abbreviation]].</note>  
- 
-Keywords meaning: 
-  * drop - indicates that packets must not be transmitted further. They must be dropped. 
-  * keep - shows that priority must keep its current value (typically 0). 
-  * default - means "for all remaining protocols" and allows to simplify significantly making the configuration file. 
- 
-===== To convert into an internal format: ===== 
-<code>cat my_dscp.txt|lst2dscp protocols.dscp</code> 
- 
-To move the settings into the work directory: 
-<code>mv protocols.dscp  /etc/dpi/protocols.dscp</code> 
- 
-<note warning>Please use mv instruction! It is an atomic one. Do not use copy!</note>