netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] can current ECMP implementation support consistent hashing for next hop?
@ 2020-06-11 14:56 Yi Yang (杨燚)-云服务集团
  2020-06-11 18:27 ` David Ahern
  0 siblings, 1 reply; 10+ messages in thread
From: Yi Yang (杨燚)-云服务集团 @ 2020-06-11 14:56 UTC (permalink / raw)
  To: netdev@vger.kernel.org
  Cc: nikolay@cumulusnetworks.com, dsahern@gmail.com,
	Yi Yang (杨燚)-云服务集团

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

Hi, folks

We need to use Linux ECMP to do active-active load balancer, but consistent hash is necessary because load balance node may be added or removed dynamically, so number of hash bucket is changeable, but we have to distribute flow to load balance node which is handling this flow and has current session state, I’m not sure if current Linux has implemented the algorithm in  https://tools.ietf.org/html/rfc2992, anybody can confirm yes or no?

I checked source code in https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/tree/net/ipv4/fib_semantics.c#n2176, every next hop in fib has a upper_bound, fib_select_multipath just checks if hash value is greater than upper_bound of next hop and decide if it is selected next hop, so I don't think current linux has implemented consistent hash, please correct me if I'm wrong.

Thank you all so much in advance and sincerely appreciate your help.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3600 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-08-08 18:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-11 14:56 [PATCH] can current ECMP implementation support consistent hashing for next hop? Yi Yang (杨燚)-云服务集团
2020-06-11 18:27 ` David Ahern
2020-06-12  0:32   ` 答复: " Yi Yang (杨燚)-云服务集团
2020-06-12  4:36     ` David Ahern
2020-06-15  6:56       ` 答复: [vger.kernel.org代发]Re: " Yi Yang (杨燚)-云服务集团
2020-06-15 22:42         ` David Ahern
2020-06-16  0:29           ` 答复: " Yi Yang (杨燚)-云服务集团
2020-08-02 14:49       ` Ido Schimmel
2020-08-06 16:45         ` David Ahern
2020-08-08 18:40           ` Ido Schimmel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).