Bonding - DD-WRT Wiki

Embed Size (px)

Citation preview

  • 7/29/2019 Bonding - DD-WRT Wiki

    1/4

    2/16/13 Bonding - DD-WRT Wiki

    www.dd-wrt.com/wiki/index.php/Bonding

    Log in / create account

    Go

    Main Page

    Community portal

    Current events

    Recent changes

    Random page

    Help

    Donations

    Bonding

    From DD-WRT Wiki

    Contents

    1 Bonding

    2 Samples

    2.1 Config 1

    2.1.1 1st device (AP)

    2.1.2 2nd device (Sta)

    3 Bonding Types

    3.1 balance-rr

    3.2 active-backup

    3.3 balance-xor

    3.4 broadcast

    3.5 802.3ad

    3.6 balance-tlb

    3.7balance-alb

    3.8 weighted-rr

    3.9 duplex4 External links

    Bonding

    location :

    http://www.dd-wrt.com/wiki/index.php/Bonding#External_linkshttp://www.dd-wrt.com/wiki/index.php/Bonding#duplexhttp://www.dd-wrt.com/wiki/index.php/Bonding#balance-xorhttp://www.dd-wrt.com/wiki/index.php/Bonding#Bonding_Typeshttp://www.dd-wrt.com/wiki/index.php/Bonding#Bondinghttp://www.dd-wrt.com/wiki/index.php/DD-WRT_Wiki:Site_supporthttp://www.dd-wrt.com/wiki/index.php/Special:Recentchangeshttp://www.dd-wrt.com/wiki/index.php/Current_eventshttp://www.dd-wrt.com/wiki/index.php/DD-WRT_Wiki:Community_Portalhttp://www.dd-wrt.com/wiki/index.php/Main_Pagehttp://www.dd-wrt.com/wiki/index.php?title=Special:Userlogin&returnto=Bondinghttp://www.dd-wrt.com/wiki/index.php/Bonding#External_linkshttp://www.dd-wrt.com/wiki/index.php/Bonding#duplexhttp://www.dd-wrt.com/wiki/index.php/Bonding#weighted-rrhttp://www.dd-wrt.com/wiki/index.php/Bonding#balance-albhttp://www.dd-wrt.com/wiki/index.php/Bonding#balance-tlbhttp://www.dd-wrt.com/wiki/index.php/Bonding#802.3adhttp://www.dd-wrt.com/wiki/index.php/Bonding#broadcasthttp://www.dd-wrt.com/wiki/index.php/Bonding#balance-xorhttp://www.dd-wrt.com/wiki/index.php/Bonding#active-backuphttp://www.dd-wrt.com/wiki/index.php/Bonding#balance-rrhttp://www.dd-wrt.com/wiki/index.php/Bonding#Bonding_Typeshttp://www.dd-wrt.com/wiki/index.php/Bonding#2nd_device_.28Sta.29http://www.dd-wrt.com/wiki/index.php/Bonding#1st_device_.28AP.29http://www.dd-wrt.com/wiki/index.php/Bonding#Config_1http://www.dd-wrt.com/wiki/index.php/Bonding#Sampleshttp://www.dd-wrt.com/wiki/index.php/Bonding#Bondinghttp://www.dd-wrt.com/wiki/index.php/DD-WRT_Wiki:Site_supporthttp://www.dd-wrt.com/wiki/index.php/Help:Contentshttp://www.dd-wrt.com/wiki/index.php/Special:Randomhttp://www.dd-wrt.com/wiki/index.php/Special:Recentchangeshttp://www.dd-wrt.com/wiki/index.php/Current_eventshttp://www.dd-wrt.com/wiki/index.php/DD-WRT_Wiki:Community_Portalhttp://www.dd-wrt.com/wiki/index.php/Main_Pagehttp://www.dd-wrt.com/wiki/index.php?title=Special:Userlogin&returnto=Bonding
  • 7/29/2019 Bonding - DD-WRT Wiki

    2/4

    2/16/13 Bonding - DD-WRT Wiki

    www.dd-wrt.com/wiki/index.php/Bonding

    http://ip/Networking.asp

    Samples

    This is a description to setup a sample p2p-bridge with 2 bonded interfaces.

    You can use this guide to see how to do the right settings.

    Config 1

    Be aware that you cant encrypt this connection! This will not work.

    1st device (AP)

    Set your wlan interfaces to WDS-AP (see WDS#Atheros).

    Under "Create Bridge" create 2 bridge devices and call them e.g. br1 and br2 (dont use a existing name!),

    but dont set IP's!

    Under "Assign to Bridge" add each of your 2 wlan interfaces (athX) to one of the created bridges from

    above

    Choose the bonding typ u wanna use (read below).

    Create a bonding with the 2 bridge interfaces from above and assign them to the setup

    Assign the bond (bond0) to the default existing brigde (br0)

    2nd device (Sta)

    Set your wlan interfaces to WDS-Sta (see WDS#Atheros).Unbridge every interface device, but dont set IP's!

    Choose the bonding typ u wanna use (read below).

    Create a bonding with the 2 interfaces and assign them to the setup

    At least assign the bond (bond0 )to the brigde (br0)

    Bonding Types

    balance-rrRound-robin policy: Transmit packets in sequential order from the first available slave through the last. This mode

    provides load balancing and fault tolerance.

    active-backup

    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. This mode provides fault tolerance. The primary option affects the behavior of this mode.

    http://www.dd-wrt.com/wiki/index.php/WDS#Atheroshttp://www.dd-wrt.com/wiki/index.php/WDS#Atheroshttp://ip/Networking.asp
  • 7/29/2019 Bonding - DD-WRT Wiki

    3/4

    2/16/13 Bonding - DD-WRT Wiki

    www.dd-wrt.com/wiki/index.php/Bonding

    balance-xor

    XOR policy: 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 fau

    tolerance.

    broadcast

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

    802.3ad

    IEEE 802.3ad Dynamic link aggregation aka LACP. Creates aggregation groups that share the same speed and

    duplex settings. Utilizes all slaves in the active aggregator according to the 802.3ad specification.

    Pre-requisites:

    1. Ethtool support in the base drivers for retrieving the speed and duplex of each slave.

    2. A switch that supports IEEE 802.3ad Dynamic link aggregation. Most switches will require some type of

    configuration to enable 802.3ad mode.

    balance-tlb

    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 i

    received by the current slave. If the receiving slave fails, another slave takes over the MAC address of the failed

    receiving slave.

    Prerequisite: Ethtool support in the base drivers for retrieving the speed of each slave.

    balance-alb

    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 drive

    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.

    weighted-rr

    Weighted round-robin bonding. In this mode bonding interface will use weights assigned to it's slaves. Each slave

    can have weight assigned via ioctl (ifenslave). These values will be used at the start of each "cycle". Each slave will

    have token counter restored to it's weight. Then using round-robin mechanism those tokens are "used" to pay for

    emitted frames. When all token counters are zeroed - new "cycle" begins.

    http://en.wikipedia.org/wiki/Link_Aggregation_Control_Protocol#Link_Aggregation_Control_Protocol
  • 7/29/2019 Bonding - DD-WRT Wiki

    4/4

    2/16/13 Bonding - DD-WRT Wiki

    www.dd-wrt.com/wiki/index.php/Bonding

    duplex

    Uses one dedicated link for TX and one for RX. So u will have a Full-Duplex connection

    External links

    http://sourceforge.net/projects/bonding/files/http://www.linuxhorizon.ro/bonding.html

    Retrieved from "http://www.dd-wrt.com/wiki/index.php/Bonding"

    Categories: Switch | Lan | Wan | Wlan

    Article |

    Discussion |

    Edit |

    History

    What links here |

    Related changes |

    Upload file |

    Special pages

    | Permanent link

    Print as PDF

    This page was last modified 16:00, 30 January 2011. This page has been accessed 37,925 times.

    About DD-WRT Wiki |

    Disclaimers |

    Powered by MediaWiki |

    Design by Paul Gu

    http://paulgu.com/http://mediawiki.org/http://www.dd-wrt.com/wiki/index.php/DD-WRT_Wiki:General_disclaimerhttp://www.dd-wrt.com/wiki/index.php/DD-WRT_Wiki:Abouthttp://www.dd-wrt.com/wiki/index.php?title=Special:PdfPrint&page=Bondinghttp://www.dd-wrt.com/wiki/index.php?title=Bonding&oldid=38368http://www.dd-wrt.com/wiki/index.php/Special:Specialpageshttp://www.dd-wrt.com/wiki/index.php/Special:Uploadhttp://www.dd-wrt.com/wiki/index.php/Special:Recentchangeslinked/Bondinghttp://www.dd-wrt.com/wiki/index.php/Special:Whatlinkshere/Bondinghttp://www.dd-wrt.com/wiki/index.php?title=Bonding&action=historyhttp://www.dd-wrt.com/wiki/index.php?title=Bonding&action=edithttp://www.dd-wrt.com/wiki/index.php?title=Talk:Bonding&action=edithttp://www.dd-wrt.com/wiki/index.php/Bondinghttp://www.dd-wrt.com/wiki/index.php/Bonding#http://www.dd-wrt.com/wiki/index.php/Category:Wlanhttp://www.dd-wrt.com/wiki/index.php/Category:Wanhttp://www.dd-wrt.com/wiki/index.php/Category:Lanhttp://www.dd-wrt.com/wiki/index.php/Category:Switchhttp://www.dd-wrt.com/wiki/index.php/Special:Categorieshttp://www.dd-wrt.com/wiki/index.php/Bondinghttp://www.linuxhorizon.ro/bonding.htmlhttp://sourceforge.net/projects/bonding/files/