Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECMP hash is not configured as expected for IPv4 packets #9236

Closed
Xichen96 opened this issue Nov 11, 2021 · 2 comments
Closed

ECMP hash is not configured as expected for IPv4 packets #9236

Xichen96 opened this issue Nov 11, 2021 · 2 comments

Comments

@Xichen96
Copy link
Contributor

Description

A failed fib test indicates that, IPv4 TCP packets with the same src IP, dst IP but different src port and dst port are not transmitted through different network interfaces as expected. Looks like only L3 hash is used for IPv4 packets and not L4. IPv6 packets are routed through L4 hash.

Steps to reproduce the issue:

  1. Construct multiple TCP packets with the same IPv4 IP and different src port and dst port
  2. Send packet to switch
  3. Check for packets transmitted statistics on switch

Describe the results you received:

Packets are routed though only one output interface.

Describe the results you expected:

Packets routed should be balanced across different output interfces.

Output of show version:

SONiC Software Version: SONiC.20201231.41
Distribution: Debian 10.11
Kernel: 4.19.0-12-2-amd64
Build commit: 84eefd6578
Build date: Sat Oct 30 10:02:58 UTC 2021
Built by: cloudtest@3cfd51cec000000Platform: x86_64-cel_e1031-r0
HwSKU: Celestica-E1031-T48S4
ASIC: broadcom
ASIC Count: 1
Serial Number: R0882F2B039723BY000014
Uptime: 20:29:24 up 7 min, 2 users, load average: 5.04, 4.59, 2.44


Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

@Blueve
Copy link
Contributor

Blueve commented Nov 12, 2021

Failed tests are:

FAILED fib/test_fib.py::test_basic_fib[True-True-1514] - Exception
FAILED fib/test_fib.py::test_hash[ipv4] - Exception

Blueve pushed a commit that referenced this issue Apr 22, 2022
Why I did it
Fix issue (#9171) and (#9236)

How I did it
Add flag in config file for get correct count of IPv6 entry.
Add init config file to set IPv4 ECMP hash on L4.

How to verify it
Compile the sonic_platform wheel for e1031, then upload to device and install the wheel, verify using testbed.
qiluo-msft pushed a commit that referenced this issue Apr 26, 2022
Why I did it
Fix issue (#9171) and (#9236)

How I did it
Add flag in config file for get correct count of IPv6 entry.
Add init config file to set IPv4 ECMP hash on L4.

How to verify it
Compile the sonic_platform wheel for e1031, then upload to device and install the wheel, verify using testbed.
@Blueve
Copy link
Contributor

Blueve commented May 5, 2022

To be verify in our testbed

@Blueve Blueve closed this as completed May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants