Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:dpi:dpi_options:opt_priority:priority_settings [2020/02/05 17:30] – ↷ Page moved from en:dpi:dpi_options:base_functionality:opt_priority:priority_settings to en:dpi:dpi_options:opt_priority:priority_settings lexx26 | en:dpi:dpi_options:opt_priority:priority_settings [2024/09/26 15:29] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== Configuration ====== |
{{indexmenu_n> | {{indexmenu_n> | ||
+ | =====Configuring DSCP markup in IP/ | ||
+ | The option is configured or disabled by editing the configuration file **/ | ||
+ | |||
+ | <note warning> | ||
+ | |||
+ | Enable prioritizing markup of a traffic on level: | ||
+ | |||
+ | < | ||
+ | set_packet_priority=1 | ||
+ | </ | ||
+ | |||
+ | * 1 - IP header | ||
+ | * 2 - VLAN/QinQ header | ||
+ | * 3 - MPLS header | ||
+ | |||
+ | |||
+ | <note important> | ||
+ | |||
+ | Configuration parameters from [[en: | ||
+ | |||
+ | ===== Configuring DSCP Inheritance and Conversion ===== | ||
+ | <note important> | ||
+ | It is configured in the ''/ | ||
+ | <code bash> | ||
+ | forward_packet_priority=< | ||
+ | </ | ||
+ | Bit masks: | ||
+ | * Depending on the direction: | ||
+ | * 1 — conversion is applied to outbound traffic (subs-> | ||
+ | * 2 — conversion is applied to outbound traffic (inet-> | ||
+ | * Depending on the objects of conversion: | ||
+ | * 4 — Conversion between VLAN and IP | ||
+ | * 8 — IP to IP conversion | ||
+ | |||
+ | If no conversion file is specified (no ''/ | ||
+ | If a conversion file is specified, a priority conversion is performed according to the rules specified in the file. | ||
+ | |||
+ | ====Setting the priority conversion file==== | ||
+ | <code bash> | ||
+ | vi test.txt | ||
+ | in cs0 cs1 | ||
+ | in cs1 cs2 | ||
+ | in cs2 keep | ||
+ | in default cs3 | ||
+ | out default keep | ||
+ | out 0x1 0x2 | ||
+ | out 0x2 0x3 | ||
+ | out cs0 0x3F | ||
+ | |||
+ | cat test.txt|forw2dscp test.bin | ||
+ | cp test.bin / | ||
+ | </ |