Bond, Ethernet Bond

Kyle Rankin

Sr. Systems Administrator

Cyan Inc.

Author of The Official Ubuntu Server Book, Ubuntu Hacks, and Knoppix Hacks


http://greenfly.org/talks/misc/bond.html

Agenda

Live and Let Interfaces Die

What is Ethernet Bonding?

Bonding Modes

Bonding Modes

balance-rr or 0

Round-robin policy: Transmit packets in sequential order from the first available slave through the last. This mode provides load balancing and fault tolerance.

Bonding Modes

active-backup or 1

Active-backup policy: Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. The bond's MAC address is externally visible on only one port (network adapter) to avoid confusing the switch.

Bonding Modes

balance-xor or 2

XOR policy: Transmit based on the selected transmit hash policy. The default policy is a simple [(source MAC address XOR'd with destination MAC address) modulo slave count]. Alternate transmit policies may be selected via the xmit_hash_policy option, described below. This mode provides load balancing and fault tolerance.

Bonding Modes

broadcast or 3

Broadcast policy: transmits everything on all slave interfaces. This mode provides fault tolerance.

Bonding Modes

802.3ad or 4

IEEE 802.3ad Dynamic link aggregation. Creates aggregation groups that share the same speed and duplex settings. Utilizes all slaves in the active aggregator according to the 802.3ad specification.

Bonding Modes

balance-tlb or 5

Adaptive transmit load balancing: channel bonding that does not require any special switch support. The outgoing traffic is distributed according to the current load (computed relative to the speed) on each slave. Incoming traffic is received by the current slave. If the receiving slave fails, another slave takes over the MAC address of the failed receiving slave.

Bonding Modes

balance-alb or 6

Adaptive load balancing: includes balance-tlb plus receive load balancing (rlb) for IPV4 traffic, and does not require any special switch support. The receive load balancing is achieved by ARP negotiation. The bonding driver intercepts the ARP Replies sent by the local system on their way out and overwrites the source hardware address with the unique hardware address of one of the slaves in the bond such that different peers use different hardware addresses for the server.

Which Bonding Mode?

For Your Files Only

Configure Kernel Modules

On Your Distribution's Network Service

From Red Hat with Love

From Red Hat with Love

Debian is Forever

Debian is Forever

No, Bond, I Expect you to Die

Bonded Interface Testing

No, Bond, I Expect you to Die

Bonded Interface Testing

Questions