Community discussions

MikroTik App
 
robertpenz
Member Candidate
Member Candidate
Topic Author
Posts: 104
Joined: Mon Oct 10, 2011 8:41 am

How does the balance-xor bonding exactly work?

Fri Jul 20, 2012 2:52 pm

From the wiki page http://wiki.mikrotik.com/wiki/Manual:Interface/Bonding I get following
balance-xor

This mode balances outgoing traffic across the active ports based on hashed protocol header information and accepts incoming traffic from any active port. Mode is very similar to LACP except that it is not standardized and works with layer-3-and-4 hash policy.
So this means it does the xor over the whole IP header?

But if I check what the Linux kernel guys understands under XOR (http://www.linuxfoundation.org/collabor ... ng/bonding, http://en.wikipedia.org/wiki/Link_aggregation
) I get following:

Transmit based on [(source MAC address XOR'd with destination MAC address) modulo slave count]. This selects the same slave for each destination MAC address. This mode provides load balancing and fault tolerance.
Which one is now correct?

ps: A table which monitoring is possible for which mode would be nice on the wiki page
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How does the balance-xor bonding exactly work?

Fri Jul 20, 2012 2:58 pm

Both are correct depending on which hash policy is selected. If hash policy is layer2 then it is as you quoted from linux manual.
 
robertpenz
Member Candidate
Member Candidate
Topic Author
Posts: 104
Joined: Mon Oct 10, 2011 8:41 am

Re: How does the balance-xor bonding exactly work?

Sat Jul 21, 2012 11:37 am

ah thx. the transmit-hash-policy is not only for the 802.3ad - i overlooked that

that means I can use balance-xor with transmit-hash-policy layer-2-and-3 / layer-3-and-4 and arp as link-monitoring over 2 eoip tunnels which is not possible 802.3ad. thats cool thx.

Who is online

Users browsing this forum: Benzebub, GoogleOther [Bot], MauriceW, Velos and 95 guests