Poor Performance for ethernet bonding
Hi Ben,
Quoted 5 lines
Couldn't the bonding code be made to distribute pkts to one interface or another based on a hash of the sending IP port or something? Seems like that would fix the reordering problem for IP packets.... It wouldn't help for a single stream, but I'm guessing the real world problem involves many streams, which on average should hash such that the load is balanced...
You may take a look at this for enhancements to the bonding driver :
http://sourceforge.net/projects/bonding/
The XOR method has been implemented to hash the flows based on the SRC/DST MAC addresses.
Regards,
Willy
Quoted 9 lines · Willy Tarreau
Hi Ben,
Quoted 5 lines
Couldn't the bonding code be made to distribute pkts to one interface or another based on a hash of the sending IP port or something? Seems like that would fix the reordering problem for IP packets.... It wouldn't help for a single stream, but I'm guessing the real world problem involves many streams, which on average should hash such that the load is balanced...
Quoted 6 lines
You may take a look at this for enhancements to the bonding driver :
http://sourceforge.net/projects/bonding/
The XOR method has been implemented to hash the flows based on the SRC/DST MAC addresses.
If you are only hashing on MAC addresses, then you would become highly un-optimized in the case where a machine is communicating with it's default gateway primarily. Perhaps the XOR hash is really more sophisticated??
Ben
Quoted 3 lines
Regards,
Willy
Signature · 3 lines
Ben Greear <[email protected]> <[email protected]> President of Candela Technologies Inc http://www.candelatech.com ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
Quoted 8 lines
Quoted 1 line
The XOR method has been implemented to hash the
flows based on the SRC/DST
Quoted 1 line
MAC addresses.
If you are only hashing on MAC addresses, then you would become highly un-optimized in the case where a machine is communicating with it's default gateway primarily.
absolutely right, but I think that when it was designed
(sun? cisco?), it was primarily intended as many hosts to one (server, router or switch). A file server, a router or even a firewall can easily balance their load
when they are connected to several tens of workstations. If your concern is really for peer to peer, then Andy's method is better as long as other hashing methods have not been implemented in the bonding code.
Quoted 1 line
Perhaps the XOR hash is really more sophisticated??
it may be one day, but at the moment, it's designed to be compatible with other equipments which use it too.
Willy
___________________________________________________________
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! Yahoo! Courrier : http://fr.mail.yahoo.com