Balancing applies only to IP addresses belonging to the AS defined as local in asnum.dscp.
vi aslocal.txt 10.0.0.0/8 64511 172.16.0.0/12 64511 192.168.0.0/16 64511 cat aslocal.txt | as2bin /etc/dpi/aslocal.bin
vi my_as_dscp.txt 64511 local 10415 local cat my_as_dscp.txt | as2dscp /etc/dpi/asnum.dscp
You can use either a custom AS or a public AS as the AS.
Read more at the link
service fastdpi reload
in_dev parameter, and the output interfaces are specified in out_dev.in_dev=05-00.0:05-00.1:05-00.2:05-00.3:0b-00.0:0b-00.1:0b-00.2:0b-00.3 out_dev=08-00.0:08-00.1:08-00.2:08-00.3
Or
in_dev=05-00.0 out_dev=out_dev=08-00.0:08-00.1:08-00.2:08-00.3
enable_l2_lb parameter, where:0 — deactivate balancing;1 — activate balancing.lb_hash_out_dev_type parameter, where:0 — use the internal index of the output interface;1 — use the interface name from [in|out]_dev.dpdk_engine parameter, where:0 — read/write default engine, one dispatcher for everything;1 — read/write engine with two dispatcher threads: a dispatcher for each direction;2 — Read/write engine with RSS support: for each direction, dpdk_rss dispatchers are created (default dpdk_rss=2), so total number of dispatchers = 2 * dpdk_rss— to work with in_dev, and a separate dispatcher to work with out_dev.mqrx_lb_engine engine is activated. The principle of operation is the same as in the usual mode dpdk_engine=2, only rss is enabled on in_dev, and only one rx queue is created on out_dev.dpdk_engine parameter by clicking here.lb_hash_type parameter is used to select the hashing algorithm. Currently, the maglev algorithm is supported (parameter value 0) — an algorithm with a fixed-size hash table. The hash for load balancing is calculated as follows: