LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2017, 01:39 PM   #1
KJoubert
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
Bonding modes and gratuitous arp


Hello. I have a question about the Linux bonding modes and gratuitous arp.

Based on the bonding documentation that I can find (it seems unchanged since 2011, https://www.kernel.org/doc/Documenta...ng/bonding.txt)...

when using bond mode 1, a gratuitous arp is sent in the event of a failover (bond leg or cluster node). I see no reference to this when using bond mode 6, which seems to use ARP negotiation instead and responds with ARP replies to correct ARP entries on a requested basis, rather than the broadcast that occurs when using bond mode 1.

I have an issue where servers are using bond mode 6, and the network engineers are complaining about a lot of log traffic after failover, indicating MAC address changes. It doesn't interrupt the client connection to my knowledge... but it does generate log traffic and alerts for the engineers.

Their request is... "Hey... we were expecting a gratuitous ARP and didn't get one? Why not?"

Based on the documentation and my own very limited networking knowledge, it doesn't look like a gratuitous ARP is sent unless the servers are configured for bond mode 1 (Active/Backup). Ours are configured for bond mode 6 (ALB).

Clear as mud?

Any input appreciated. Thanks.
 
Old 08-15-2017, 10:50 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Mode 6 (balance-alb)
This is Adaptive load balancing mode. This includes balance-tlb + receive load balancing (rlb) for IPV4 traffic. The receive load balancing is achieved by ARP negotiation. The bonding driver intercepts the ARP Replies sent by the server on their way out and overwrites the src hw address with the unique hw address of one of the slaves in the bond such that different clients use different hw addresses for the server.
There is no gratuitous arp sent because the MAC (hw) address of of the bond[#] device is ALWAYS that of the one of the underlying slave interfaces in the bond it obtained on start.

That is to say the reason one would send a gratuitous arp is to notify neighbors (including switches) that the IP is now on a different MAC (hw) address but in mode 6 it is never on a "different" address than the one it started with. (Except after network restart such as that done on reboot but even then only if it can't activate the slave interface for some reason so picks the address from a different interface.)

Last edited by MensaWater; 08-15-2017 at 10:56 AM.
 
1 members found this post helpful.
Old 08-15-2017, 12:20 PM   #3
KJoubert
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by MensaWater View Post
There is no gratuitous arp sent because the MAC (hw) address of of the bond[#] device is ALWAYS that of the one of the underlying slave interfaces in the bond it obtained on start.

That is to say the reason one would send a gratuitous arp is to notify neighbors (including switches) that the IP is now on a different MAC (hw) address but in mode 6 it is never on a "different" address than the one it started with. (Except after network restart such as that done on reboot but even then only if it can't activate the slave interface for some reason so picks the address from a different interface.)

Thank you.

-K
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
strange gratuitous arp requests continually sent by my Centos 5 Server wknight39 Linux - Networking 1 08-02-2011 10:12 AM
Gratuitous ARP in RFC's ChooseLife Linux - Networking 3 10-30-2008 11:20 AM
Gratuitous ARP in Slackware newvivs Slackware 4 03-20-2007 04:31 PM
Gratuitous ARP in Debian rickthemick Debian 2 12-20-2004 08:11 PM
Gratuitous ARP himalayas Linux - Networking 3 06-06-2003 03:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration