Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

dynamic-load-balance

date_range 13-Jan-25

Syntax

content_copy zoom_out_map
dynamic-load-balance

Hierarchy Level

content_copy zoom_out_map
[edit firewall family firewall filter family name filter firewall filter name term term name then]

Description

Selectively enable or disable dynamic load balancing based on rdma-opcode match or any match available in firewall filters. Available for INET, INET6, and ethernet-switching firewall filter families, the mode of selective dynamic load balancing depends on the global dynamic load balancing setting, which could be per per packet mode, flowlet mode, or assigned-flow mode. Read Dynamic Load Balancing to learn more about these modes. Take for example the following configuration. The first configuration statement sets the global dynamic load balancing mode to per packet. Only those packets with rdma-opcode as 10 are matched, and dynamically load balanced on a per packet mode. Non-matching packets are load-balanced using static load balancing.

content_copy zoom_out_map
set forwarding-options enhanced-hash-key ecmp-dlb per-packet
set firewall family inet filter f1 term t1 from rdma-opcode 10
set firewall family inet filter f1 term t1 then accept
set firewall family inet filter f1 term default then dynamic-load-balance disable

The aforementioned configuration is a way to have dynamic load balancing enabled globally and dynamic load balancing enabled using firewall filters. There is also a way to disable dynamic load balancing globally, and yet achieve selective dynamic load balancing. The following is the configuration to achieve this. In the first line, the configuration statement configures the mode of dynamic load balancing, which in this example is per-packet. The second configuration statement disables dynamic load balancing globally for all ether types. Packets with rdma-opcode as 10 will undergo selective dynamic load balancing while non-matching packets will not undergo dynamic load balancing because dynamic load balancing is disabled globally.

content_copy zoom_out_map
set forwarding-options enhanced-hash-key ecmp-dlb per-packet
set forwarding-options enhanced-hash-key ecmp-dlb ether-type none
set firewall family inet filter f1 term t1 from rdma-opcode 10
set firewall family inet filter f1 term t1 then dynamic-load-balance enable 
set firewall family inet filter f1 term default then accept

Setting the global configuration statement is important - set forwarding-options enhanced-hash-key ecmp-dlb per-packet|flowlet|assigned-flow. Otherwise even if selective dynamic load balancing is configured, it will not be active; packets will be statically load balanced, because the global configuration is absent.

Also configure the UDF profile to enable UDF and RDMA Opcode match - set system packet-forwarding-options firewall profiles inet | ethernet-switching udf-profile udf-profile1 | udf-profile2. Use show pfe filter hw profile-info to view the supported pre-defined set of match conditions associated with udf-profile1 and udf-profile2.

Options

  1. enable - Enable dynamic load balancing

  2. disable- Disable dynamic load balancing

Required Privilege Level

firewall - To view this statement in the configuration

firewall-control - To add this statement to the configuration

Release Information

Statement released in Junos OS EVO 24.1R1

external-footer-nav