From: Jody Shumaker Date: Wed, 18 Jan 2006 04:59:13 +0000 Subject: Re: [LARTC] Re: Multi-path routing only using last nexthop in default Message-Id: <2af436490601172059s24cddcedy57d26f5028245d67@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1899030900==" List-Id: References: <2af436490601161759l3a452733s7bc93c14fde96b09@mail.gmail.com> In-Reply-To: <2af436490601161759l3a452733s7bc93c14fde96b09@mail.gmail.com> To: lartc@vger.kernel.org --===============1899030900== Content-Type: multipart/alternative; boundary="----=_Part_41647_5345535.1137560353896" ------=_Part_41647_5345535.1137560353896 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I understand it can work, my point was I want to figure out what is different or wrong with my setup compared to one where it is working. Woul= d you mind posting the results of ip rule show ip route show table all what kernel version you have, and possibly the output from this command? for x in $(seq 1 10); do ip r g 1.1.1.$x; done I'm kind of grasping at straws because everything I've tried short of debugging/hacking the kernel code hasn't worked. Thanks, Jody On 1/17/06, Ciprian Constantinescu wrote: > > It works. I have a Debian and the tests were the following: > > 1. multiple traceroute to multiple hosts. you can observe the > gateway that changes > 2. i run a squid server and i entered http://whatismyip.com multiple > times from the same computer in the lan. the ip changed between the 2 > providers i have > 3. i run mrtg on the box, so the graph said it all > > > On 1/18/06, Alexander Samad wrote: > > > On Tue, Jan 17, 2006 at 04:53:06PM -0500, Jody Shumaker wrote: > > > Does anyone have a confirmed to be working multipath setup? I'd like > > to see > > > their route output and confirm that this really is an issue. The > > issue > > > might actually be something else and this output is expected? I'm jus= t > > > sticking on this because the order of nexthops is what changes the > > behavior, > > > which seems wrong. > > > > I think mine is working, because I se traffic heading out of the second > > interface (ones that I know have originated from my box), plus when I > > check the cache table there are entries for both > > interfaces. > > > > just can't prove it right now 8( > > > > A > > > > > > > > Also, if I try retieving paths from an internal address to an > > external, it > > > will always use only the last nexthop. > > > > > > # for x in $(seq 1 10); do ip route get 66.1.1.$x from 192.168.0.128i= if > > > eth0; done > > > 66.1.1.1 from 192.168.0.128 dev ppp0 src 192.168.0.1 > > > cache mtu 1492 advmss 1452 metric10 64 iif eth0 > > > 66.1.1.2 from 192.168.0.128 dev ppp0 src 192.168.0.1 > > > cache mtu 1492 advmss 1452 metric10 64 iif eth0 > > > etc. > > > > > > I'm using 2.6.14-gentoo-r5 #4 SMP PREEMPT w/ julian's patches and > > iptables > > > v1.3.4 > > > > > > - Jody > > > > > > On 1/17/06, Alexander Samad wrote: > > > > > > > > On Tue, Jan 17, 2006 at 12:37:48AM -0500, Jody Shumaker wrote: > > > > > Yes, it just shows you what is in the cache, but I was specifying > > ip > > > > > addresses that weren't in the cache yet. I also tried doing > > traceroutes > > > > from > > > > > an internal pc, and those always ended up going over the 1 > > interface. > > > > I've > > > > > also tried adjusting the weights to 1:1 and opening up numerous > > > > connections > > > > > to multiple ftp's. > > > > > > > > > > Also for comparison, if I change the order of the nexthop's I'll > > instead > > > > get > > > > > effectively the reverse. > > > > > > > > > > # ip route get 66.1.1.11 > > > > > 66.1.1.11 via 66.189.76.1 dev eth1 src 71.248.183.63 > > > > > cache mtu 1500 advmss 1460 metric10 64 > > > > > # ip route get 66.1.1.12 > > > > > 66.1.1.12 via 66.189.76.1 dev eth1 src 66.189.76.198 > > > > > cache mtu 1500 advmss 1460 metric10 64 > > > > > > > > your right I tried it on my machine > > > > for x in $(seq 1 10); do ip r g 1.1.1.$x; done > > > > 1.1.1.1 via 220.233.1.45 dev ppp0 src 220.233.15.63 > > > > cache mtu 1492 advmss 1452 metric 10 64 > > > > 1.1.1.2 via 220.233.1.45 dev ppp0 src 141.168.16.16 > > > > cache mtu 1492 advmss 1452 metric 10 64 > > > > 1.1.1.3 via 220.233.1.45 dev ppp0 src 220.233.15.63 > > > > cache mtu 1492 advmss 1452 metric 10 64 > > > > 1.1.1.4 via 220.233.1.45 dev ppp0 src 141.168.16.16 > > > > cache mtu 1492 advmss 1452 metric 10 64 > > > > 1.1.1.5 via 220.233.1.45 dev ppp0 src 220.233.15.63 > > > > cache mtu 1492 advmss 1452 metric 10 64 > > > > 1.1.1.6 via 220.233.1.45 dev ppp0 src 220.233.15.63 > > > > cache mtu 1492 advmss 1452 metric 10 64 > > > > 1.1.1.7 via 220.233.1.45 dev ppp0 src 220.233.15.63 > > > > cache mtu 1492 advmss 1452 metric 10 64 > > > > 1.1.1.8 via 220.233.1.45 dev ppp0 src 220.233.15.63 > > > > cache mtu 1492 advmss 1452 metric 10 64 > > > > 1.1.1.9 via 220.233.1.45 dev ppp0 src 220.233.15.63 > > > > cache mtu 1492 advmss 1452 metric 10 64 > > > > 1.1.1.10 via 220.233.1.45 dev ppp0 src 220.233.15.63 > > > > cache mtu 1492 advmss 1452 metric 10 64 > > > > > > > > just the src address is changing, I am pretty sure this used work a= t > > > > some point in time, i am using 2.6.14-1-smp, iptables v1.3.3 > > > > > > > > > > > > > > > > > _______________________________________________ > > > LARTC mailing list > > > LARTC@mailman.ds9a.nl > > > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc > > > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.2 (GNU/Linux) > > > > iD8DBQFDzaQ5kZz88chpJ2MRArpVAKDVe8ET7m4Qz09HhxbykV93/meFtACg3bWT > > GgOZ8WrUWiAmIT83rrRCRR8=3D > > =3D7U0w > > -----END PGP SIGNATURE----- > > > > > > _______________________________________________ > > LARTC mailing list > > LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc > > > > > > > > > -- > Ciprian Constantinescu > mobile: +40745192289 > e-mail: c_ciprian_ro@yahoo.com > e-mail: c.ciprian@gmail.com > yahoo messenger: c_ciprian_ro@yahoo.com > msn messenger: c_ciprian_ro@yahoo.com ------=_Part_41647_5345535.1137560353896 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I understand it can work, my point was I want to figure out what is differe= nt or wrong with my setup compared to one where it is working.  Would = you mind posting the results of
ip rule show
ip route show table all

what kernel version you have= , and possibly the output from this command?

for x in $(seq 1 10); d= o ip r g=20 1.1.1.$x; done

I'm kind of grasping at straws because everything I'v= e tried short of debugging/hacking the kernel code hasn't worked.

Th= anks,
Jody


On 1/17/06= ,=20 Ciprian Constantinescu <c.ciprian@gmail.com> wrote: It works. I have a Debian and the tests were the following:
  1. mult= iple traceroute to multiple hosts. you can observe the gateway that changes=
  2. i run a squid server and i entered http://whatismyip.com multiple times from the same computer in the lan.= the ip changed between the 2 providers i have
  3. i run mrtg on the bo= x, so the graph said it all

On 1/18/06, Alexander Samad <alex@samad.com.au> wrote:
On Tue, Jan 17, 2006 at 04:53:06PM -0500, Jody Shumaker wrote:
> Does= anyone have a confirmed to be working multipath setup? I'd like to see
= > their route output and confirm that this really is an issue. &nbs= p;The issue
> might actually be something else and this output is expected? I'm = just
> sticking on this because the order of nexthops is what changes= the behavior,
> which seems wrong.

I think mine is working, b= ecause I se traffic heading out of the second
interface (ones that I know have originated from my box), plus when I c= heck the cache table there are entries for both
interfaces.

just = can't prove it right now 8(

A

>
> Also, if I try ret= ieving paths from an internal address to an external, it
> will always use only the last nexthop.
>
> # for x in = $(seq 1 10); do ip route get 66.1.1.$x from 192.168.0.128 dev pp= p0  src 192.168.0.1
>     cache <src-direct>&nb= sp; mtu 1492 advmss 1452 metric10 64 iif eth0
> 66.1.1.2 from 192.168.0.128 dev pp= p0  src 192.168.0.1
>     cache <src-direct>&nb= sp; mtu 1492 advmss 1452 metric10 64 iif eth0
> etc.
>
> I'm using 2.6.14-gentoo-r5 #4 SMP PREEMPT w/ julian's patches = and iptables
> v1.3.4
>
> - Jody
>
> On 1/17/= 06, Alexander Samad < alex@samad.com.au > wrote:
> >
> > On Tue, Jan 17, 2006 at 12:37:48A= M -0500, Jody Shumaker wrote:
> > > Yes, it just shows you what= is in the cache, but I was specifying ip
> > > addresses that = weren't in the cache yet. I also tried doing traceroutes
> > from
> > > an internal pc, and those always ended= up going over the 1 interface.
> > I've
> > > also tr= ied adjusting the weights to 1:1 and opening up numerous
> > conne= ctions
> > > to multiple ftp's.
> > >
> > > A= lso for comparison, if I change the order of the nexthop's I'll instead
= > > get
> > > effectively the reverse.
> > >
> > > # ip route get 66.1.1.11
> > >
66.1.1.11 via 66.189.76.1 dev eth1&= nbsp; src 71.248.183.63
> > >     cache &nbs= p;mtu 1500 advmss 1460 metric10 64
> > > # ip route get 66.1.1.12
> > > 66.1.1.12 via 66.189.76.1 dev eth1  src 66= .189.76.198
> > >     cache  = mtu 1500 advmss 1460 metric10 64
> >
> > your right I tried it on my machine
> > for x in $(s= eq 1 10); do ip r g=20 1.1.1.$x; done
> > 1.1.1.1 via 220.233.1.45 dev ppp0  src 2= 20.233.15.63
> >     cache  mtu = 1492 advmss 1452 metric 10 64
> > 1.1.1.2 via 220.233.1.45 dev ppp0  src 1= 41.168.16.16
> >     cache  mtu = 1492 advmss 1452 metric 10 64
> > 1.1.1.3 via 220.233.1.45 dev ppp0  src 2= 20.233.15.63
> >     cache  mtu = 1492 advmss 1452 metric 10 64
> > 1.1.1.4 via 220.233.1.45 dev ppp0  src 1= 41.168.16.16
> >     cache  mtu = 1492 advmss 1452 metric 10 64
> > 1.1.1.5 via 220.233.1.45 dev ppp0  src 2= 20.233.15.63
> >     cache  mtu = 1492 advmss 1452 metric 10 64
> > 1.1.1.6 via 220.233.1.45 dev ppp0  src 2= 20.233.15.63
> >     cache  mtu = 1492 advmss 1452 metric 10 64
> > 1.1.1.7 via 220.233.1.45 dev ppp0  src 2= 20.233.15.63
> >     cache  mtu = 1492 advmss 1452 metric 10 64
> > 1.1.1.8 via 220.233.1.45 dev ppp0  src 2= 20.233.15.63
> >     cache  mtu = 1492 advmss 1452 metric 10 64
> > 1.1.1.9 via 220.233.1.45 dev ppp0  src 2= 20.233.15.63
> >     cache  mtu = 1492 advmss 1452 metric 10 64
> > 1.1.1.10 via 220.233.1.45 dev ppp0  src 2= 20.233.15.63
> >     cache  mtu = 1492 advmss 1452 metric 10 64
> >
> > just the src address is changing, I am pretty su= re this used work at
> > some point in time, i am using 2.6.14-1-s= mp, iptables v1.3.3
> >
> >
> >

> ____= ___________________________________________
> LARTC mailing list
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc



-----BEGIN PGP SIGNATURE= -----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDzaQ5kZz88c= hpJ2MRArpVAKDVe8ET7m4Qz09HhxbykV93/meFtACg3bWT
GgOZ8WrUWiAmIT83rrRCRR8= =3D
=3D7U0w
-----END PGP SIGNATURE-----


_____________________________________________= __
LARTC mailing list
LARTC@= mailman.ds9a.nl
h= ttp://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc





--
Ciprian Constantinescu
mobile: +40745192289
e-mai= l: c_ciprian_ro@yahoo.com
e-mail: c_ciprian_ro@yahoo.com
msn messenger: c_ciprian_ro@yahoo.com

------=_Part_41647_5345535.1137560353896-- --===============1899030900== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1899030900==--