weighted-packet-spray
Syntax
weighted-packet-spray
Hierarchy Level
[edit firewall family <inet/inet6> filter <firewall_filter_name> term <term_name> then]
Description
Use the weighted-packet-spray firewall filter action to
selectively enable Packet Spray only for certain flows while the rest will
use flow based weighted ECMP. In the weighted-packet-spray
load balancing method the packets will be randomly placed on the member
links according to the weights. Hence, the behavior will be similar to the
Packet Spray load balancing technique but with the additional feature of
also honoring the weights of the links. This is especially useful when for
example in a network topology involving multiple spines and leaves, if a
link is down, then this link will receive less or no traffic compared to the
links that are up.
The following is an example of a configuration where the
weighted-packet-spray action is applied to packets
matching an rdma-opcode range.
set firewall family inet filter WEIGHTED_PKT_SPRAY term packet_spray from rdma-opcode 6-11 set firewall family inet filter WEIGHTED_PKT_SPRAY term packet_spray then count COUNT_PKT_SPRAY set firewall family inet filter WEIGHTED_PKT_SPRAY term packet_spray then weighted-packet-spray set firewall family inet filter WEIGHTED_PKT_SPRAY term rest then count COUNT_REST set firewall family inet filter WEIGHTED_PKT_SPRAY term rest then accept set interfaces irb unit 2012 family inet filter input WEIGHTED_PKT_SPRAY
Default
Flows that do not use weighted-packet-spray, will use weighted
ECMP.
Options
NA
Required Privilege Level
firewall—To view this statement in the configuration.
firewall -control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Evolved Release 25.2X100D10EVO