This is an old revision of the document!
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:
dns 0x3F skype drop compressnet 010 ftp keep http cs0 default keep
DSCP value is specified as 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:
cat my_dscp.txt|lst2dscp protocols.dscp
To move the settings into the work directory:
mv protocols.dscp /etc/dpi/protocols.dscp
Please use mv instruction! It is an atomic one. Do not use copy!