Re: bandwidth aggregation between 2 hosts in the same subnet

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 30 July 2007 22:48, Ralf Gross wrote:
> Paul Zirnik schrieb:
> > On Monday 30 July 2007 16:10, Ralf Gross wrote:
> > > My goal is to increase the bandwidth for a single tcp session between
> > > the two hosts for a backup job (per packet round robin?), not for
> > > multiple connections between many hosts. I know that I won't get 2 x
> > > 115Mb/s because of packet reordering, but 20-30% more that a single
> > > connection would be ok.
> > >
> > > I followed different HowTOs
> > >
> > > http://www.lartc.org/howto/lartc.rpdb.multiple-links.html#AEN298
> > > http://lartc.org/howto/lartc.loadshare.html
> > > or something like: ip route...equalize via...
> > >
> > > but I never got a higher transfer rate  between the two hosts than
> > > max 115Mb/s with benchmarks like netpipe or netio.
> >
> > If you have different switches for each line i suggest the use
> > of "bonding" in balance-round-robin mode.
> >
> > +-------+  eth0  +--------+  eth0  +------+
> >
> > | Host  |--------|switch 1|--------| Host |
> > |
> > |       |        +--------+        |      |
> > |
> > |  A    |  eth1  +--------+  eth1  |   B  |
> > |
> > |       |--------|switch 2|--------|      |
> >
> > +-------+        +--------+        +------+
>
> I tried this setup a while ago. Both hosts were connected to a Cisco
> switch. On the linux hosts I created bond0 interfaces (round robin)
> and the switch ports on both switches were configured as Port
> Channels.
>
> +-------+ eth2         +----+   +----+         eth2 +------+
>
> | Host  |------        |PC1 |   |PC2 |        ------| Host |
> |
> |       |      |_bond0_|    |__ |    |_bond0_|      |      |
> |
> |  A    |      |       |SW1 |   |SW1 |       |      |  B   |
> |
> |       |------        |    |   |    |        ------|      |
>
> +-------+ eth3         +----+   +----+        eth3  +------+
>
>
> This didn't increase the transfer rate for a tcp session between the
> two hosts. Because the mac and ip addresses are the same for the whole
> tcp session (backup).

This is why i sayed you need two different switches. With only one the switch 
will allways send only to one port, because he knows the MAC address
and will not balance traffic on two or more ports with the same MAC address
as destination. Etherchannel has no balancing algo it is desinged for one to 
many connections not for 1 to 1. With two switches this is not true and the 
traffic will utilize both lines even for a 1 on 1 connection.

regards,
      Paul
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux