-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ECMP and LAG Hash Seed
In tree-sized data center network topology, different hashing is needed in different tiers to avoid traffic polarization. In SONiC, ECMP and LAG hashing algorithms are different by default, so we only need to configure the hash seed. For easy configuration and debugging, this parameter shall be changed during the run time.
In SAI, two attributes are available - SAI_SWITCH_ATTR_ECMP_DEFAULT_HASH_SEED
and SAI_SWITCH_ATTR_LAG_DEFAULT_HASH_SEED
. By default, the value of these attributes are 0. These two attributes could be set to the same value so that the user only needs to provide one number.
Once the user specifies the seed, it could be picked up and applied when the switch starts or during the run time.
With the design of CONFIG_DB, the change could be notified to SwSS once the value is updated. Orchagent will be able to pick up the change and execute the corresponding SAI function calls.
In order to fit the current design, a SwitchOrch
class is needed to deal with the switch related tasks.
The schema of the configuration is under discussion and will be decided later.
-
For Users
-
For Developers
-
Subgroups/Working Groups
-
Presentations
-
Join Us