Skip to contentSkip to conversation

New: ECMP not working for local sockets

Bug 212921 Stephen Hemminger 1 participant 1 message May 3, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Sun, 02 May 2021 07:10:44 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 212921] New: ECMP not working for local sockets

https://bugzilla.kernel.org/show_bug.cgi?id=212921

            Bug ID: 212921
           Summary: ECMP not working for local sockets
           Product: Networking
           Version: 2.5
    Kernel Version: 5.8.0-50-generic
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: IPV4
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

When you're creating local TCP sockets in a Linux machine, the connections to the same destination IP are not load-balanced across multiple interfaces when ECMP path is set. Even when net.ipv4.fib_multipath_hash_policy is set to L4 hash, multiple interfaces are never used for same destination.

I tried working around the issue by setting two route table entries with same metric using ip route append command. In this case, the connections get load-balanced across multiple interfaces for 5-10 seconds, after which all future connections will choose one of the interfaces. There is no configuration that can disable this behavior. I tried disabling tcp_metrics_nosave

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.