The file format of protocols and priorities list: [Документация VAS Experts]

Differences

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

Link to this comparison view

en:priority_config [2015/04/05 13:09] – created translator1en:priority_config [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-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. 
- 
-=== 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> 
-DSCP value is specified as [[dscp_table|decimal, hex or octal number or as a text abbreviation]].\\ 
-The drop keyword indicates that packets must not be transmitted further. They must be dropped.\\ 
-The keep keyword shows that priority must keep its current value (typically 0).\\ 
-The default keyword 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> 
-:!: Please use mv instruction! It is an atomic one. Do not use copy!