dynamic-load-balance

Use this command to enable the dynamic load balance globally.

Enabling DLB globally requires the user to either reboot the system or manually clear the IP routing table using the CLI command clear ip route for the changes to take effect. If neither action is taken, the DLB setting will apply only to newly created ECMP groups in the hardware.

To enable dynamic-load-balance it is required to enable load-balance RTAG7

Command Syntax

Copy
dynamic-load-balance ( enable |  ethertype | flowset-size <64-16384> |  inactivity-timer <1-32767> | mode | monitor)
no dynamic-load-balance ( enable |  ethertype | flowset-size <64-16384>|  inactivity-timer <1-32767> | mode | monitor)

Parameters

enable

Enables the dynamic load balance RoCE QPair-based hashing functionality at global level.

ethertype

Specifies IPv4 or IPv6 ethertype value in 0xhhhh hexadecimal notation. Allowed Ethertype values are 0x8100 or 0x88a8 or 0x0800 or 0x0806 or 0x86dd.

flowset-size

Specifies collection of microflow which are represented and managed as macroflows. Following are the supported flowsize. Unconfiguring the value reset the value to default 1024. An increase in flow set size impacts the scalability of ECMP by reducing the total number of ECMP groups that can be supported.

Copy
  1024   Flowset size 1024. Allowed ECMP group count is 32.
  128    Flowset size 128.  
  16384  Flowset size 16384.  Allowed ECMP group count is 2.
  2048   Flowset size 2048.  Allowed ECMP group count is 16.
  256    Flowset size 256.  Allowed ECMP group count is 127.
  32768  Flowset size 32768.  Allowed ECMP group count is 1.
  4096   Flowset size 4096.  Allowed ECMP group count is 8.
  512    Flowset size 512.  Allowed ECMP group count is 64.
  64     Flowset size 64.  
  8192   Flowset size 8192.  Allowed ECMP group count is 4.

inactivity-timer

Specifies time duration in microseconds for which a flow set should remain idle, with no active traffic in that ECMP group. It is applicable for DLB optimal and random modesThe value is reset to 256 microseconds when it is unconfigured.

mode

Specifies the supported DLB modes available for flow reassingment.

monitor

Enables and specify the sampling rate .

Default

Disabled

Mode - optimal-flow

Ethertype - 0x0800 and 0x86dd

Inactivity timer - 256 microseconds

Flowset - 1024 bytes

Monitor - 4294967295 bytes

Configuration Mode

Configure mode

Applicability

This command was introduced in OcNOS version 6.6.1.

Example

Below is an example to enable DLB.

Copy
OcNOS(config)#dynamic-load-balance enable
OcNOS(config)#commit

%% System Reboot required, please save the config and reboot the board.
OcNOS(config)#end
Copy
OcNOS(config)#dynamic-load-balance mode 

Below is an example to disable DLB.

Copy
OcNOS(config)#no dynamic-load-balance enable
OcNOS(config)#commit

%% System Reboot required, please save the config and reboot the board.
OcNOS(config)#end

Below is an example to configure inactivity-timer, flowset-size, multiple ethertype, mode with threshold and quality-delta.

Copy
OcNOS#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
OcNOS(config)#dynamic-load-balance enable
OcNOS(config)#dynamic-load-balance inactivity-timer 36
OcNOS(config)#dynamic-load-balance flowset-size 128
OcNOS(config)#dynamic-load-balance ethertype  0x0806
OcNOS(config)#dynamic-load-balance ethertype  0x86dd
OcNOS(config)#dynamic-load-balance mode reactive-path-rebalance threshold 71  quality-delta 6
OcNOS(config)#commit