Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:dpi:dpi_options:opt_priority:priority_config [2020/02/05 17:30] – ↷ Page moved from en:dpi:dpi_options:base_functionality:opt_priority:priority_config to en:dpi:dpi_options:opt_priority:priority_config lexx26 | en:dpi:dpi_options:opt_priority:priority_config [2026/05/18 11:23] (current) – [Configuring Traffic Classification] elena.krasnobryzh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 3 Assignment | + | ====== |
| + | {{indexmenu_n> | ||
| + | The protocol priorities (assigned by system administrator) are loaded by DPI from the file **/ | ||
| + | |||
| + | 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: | ||
| + | < | ||
| + | ===== The file format of protocols | ||
| + | |||
| + | Each line contains the protocol name, then space, then dscp value. **For example: | ||
| + | < | ||
| + | dns | ||
| + | skype | ||
| + | compressnet 010 | ||
| + | ftp | ||
| + | http cs0 | ||
| + | default | ||
| + | </ | ||
| + | <note important> | ||
| + | DSCP value is specified as [[en: | ||
| + | |||
| + | 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" | ||
| + | |||
| + | <note tip>To ensure that the '' | ||
| + | ===== Configuring Traffic Classification ===== | ||
| + | 1. Create a file named **protocols.txt** containing a list of the protocol groups we want to filter out from general traffic, along with their assigned priorities (classes): | ||
| + | < | ||
| + | dns cs0 | ||
| + | ICMP cs0 | ||
| + | http cs0 | ||
| + | https cs0 | ||
| + | QUIC cs1 | ||
| + | default cs2 | ||
| + | bittorrent cs7 | ||
| + | </ | ||
| + | where | ||
| + | * cs0 corresponds to priority 0, class 0, respectively | ||
| + | * cs1 corresponds to priority 1, class 1 | ||
| + | * cs7 corresponds to priority 7, the lowest class | ||
| + | <note important> | ||
| + | |||
| + | 2. Convert it to the DSCP format, which fastDPI understands | ||
| + | < | ||
| + | cat protocols.txt|lst2dscp / | ||
| + | </ | ||
| + | < | ||
| + | |||
| + | 3. Apply the settings | ||
| + | < | ||
| + | service fastdpi reload | ||
| + | </ | ||
| + | |||
| + | |||
| + | When moving settings to the working directory after saving a configuration backup, you must perform a reload after the move: | ||
| + | < | ||
| + | <note warning> | ||