You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fib/test_fib.py::test_fib::test_hash[ipv4] test checks the ECMP and LAG hashing of 5 different fields: 'src-ip', 'dst-ip', 'src-port', 'dst-port', 'ip-proto'
The ip-proto field is only 8-bits wide so can only have 256 unique values (some of which we need to exclude for special cases).
For this reason even though the test is sending 8000 packets we only end up with ~256 unique packets which are re-sent many times, so if hashing is a little off on these ~256 buckets then we'll get a big deviation from the expected hashing.
The test expects no ECMP or LAG hash to exceed 25% deviation but we see some do:
Issue Description
The
fib/test_fib.py::test_fib::test_hash[ipv4]
test checks the ECMP and LAG hashing of 5 different fields:'src-ip', 'dst-ip', 'src-port', 'dst-port', 'ip-proto'
The
ip-proto
field is only 8-bits wide so can only have 256 unique values (some of which we need to exclude for special cases).For this reason even though the test is sending 8000 packets we only end up with ~256 unique packets which are re-sent many times, so if hashing is a little off on these ~256 buckets then we'll get a big deviation from the expected hashing.
The test expects no ECMP or LAG hash to exceed 25% deviation but we see some do:
Results you see
ip-proto
hashing test goes outside of the 25% deviation threshold on some portsResults you expected to see
ip-proto
might need the threshold relaxed a little due to it's 8-bit entropy limitation.Is it platform specific
generic
Relevant log output
No response
Output of
show version
No response
Attach files (if any)
No response
The text was updated successfully, but these errors were encountered: