* Re: MultiPath Routing
@ 2006-05-19 13:21 pravin b shelar
0 siblings, 0 replies; 6+ messages in thread
From: pravin b shelar @ 2006-05-19 13:21 UTC (permalink / raw)
To: David S. Miller; +Cc: Herbert Xu, netdev, Ravikiran G Thirumalai
>Christian Schmid <webmaster@rapidforum.com> wrote:
>>
>> Since this seems to be an undocumented feature.... How is this equal-cost multipath supposed to
>> work? I just want to send outgoing traffic over two gateways. I tried this:
>>
>> ip route replace default scope global nexthop via 192.168.0.1 dev eth1 weight 100 nexthop via
>> 192.168.0.100 dev eth1 weight 100
>>
>> It it doesnt work. It always uses the last for all download-users (around a few hundreds)
>
>Did you enable IP_ROUTE_MULTIPATH_CACHED? If so please disable it
>since it breaks multipath routing for forwarded traffic.
Hi ,
This was a bug reported by Christian Schmid long back. It is related to equal cost multipath caching on forwarded traffic. The solution suggested for this was
to disable equal-cost multipath caching. But It does not look like a clean solution.
I investigated the problem further and observed that, If multipath caching is "on" then all route entries are added to the route cache. This leads to selection of same
NIC for all route going through this ( forwarding ) sever. This is because we don't have selection logic for forwarded traffic in multipath caching code.
On digging this list further, I found a patch posted by Herbert, which disables multipath route cache entry addition for input case.
I tested this patch and everything works fine now.
for the patch ref: http://oss.sgi.com/projects/netdev/archive/2005-04/msg00232.html
So how about including this patch ?
Comments ?
Regards,
Pravin.
^ permalink raw reply [flat|nested] 6+ messages in thread
* MultiPath Routing
@ 2005-05-05 12:16 Christian Schmid
2005-05-05 12:36 ` Herbert Xu
0 siblings, 1 reply; 6+ messages in thread
From: Christian Schmid @ 2005-05-05 12:16 UTC (permalink / raw)
To: netdev
Hello.
Since this seems to be an undocumented feature.... How is this equal-cost multipath supposed to
work? I just want to send outgoing traffic over two gateways. I tried this:
ip route replace default scope global nexthop via 192.168.0.1 dev eth1 weight 100 nexthop via
192.168.0.100 dev eth1 weight 100
It it doesnt work. It always uses the last for all download-users (around a few hundreds)
Or is this the wrong way? (2.6.12rc3)
Best regards,
Chris
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MultiPath Routing
2005-05-05 12:16 Christian Schmid
@ 2005-05-05 12:36 ` Herbert Xu
2005-05-05 19:15 ` Christian Schmid
0 siblings, 1 reply; 6+ messages in thread
From: Herbert Xu @ 2005-05-05 12:36 UTC (permalink / raw)
To: Christian Schmid; +Cc: netdev
Christian Schmid <webmaster@rapidforum.com> wrote:
>
> Since this seems to be an undocumented feature.... How is this equal-cost multipath supposed to
> work? I just want to send outgoing traffic over two gateways. I tried this:
>
> ip route replace default scope global nexthop via 192.168.0.1 dev eth1 weight 100 nexthop via
> 192.168.0.100 dev eth1 weight 100
>
> It it doesnt work. It always uses the last for all download-users (around a few hundreds)
Did you enable IP_ROUTE_MULTIPATH_CACHED? If so please disable it
since it breaks multipath routing for forwarded traffic.
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: MultiPath Routing
2005-05-05 12:36 ` Herbert Xu
@ 2005-05-05 19:15 ` Christian Schmid
2005-05-06 10:58 ` Herbert Xu
0 siblings, 1 reply; 6+ messages in thread
From: Christian Schmid @ 2005-05-05 19:15 UTC (permalink / raw)
To: Herbert Xu; +Cc: netdev
> Did you enable IP_ROUTE_MULTIPATH_CACHED? If so please disable it
> since it breaks multipath routing for forwarded traffic.
Yes I enabled it. But it shouldnt do anything because its no forwarded traffic here. I just used
example-IPs. Or does the bug also break non-forwarded traffic?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MultiPath Routing
2005-05-05 19:15 ` Christian Schmid
@ 2005-05-06 10:58 ` Herbert Xu
2005-05-06 11:16 ` Christian Schmid
0 siblings, 1 reply; 6+ messages in thread
From: Herbert Xu @ 2005-05-06 10:58 UTC (permalink / raw)
To: Christian Schmid; +Cc: herbert, netdev
Christian Schmid <webmaster@rapidforum.com> wrote:
>
> Yes I enabled it. But it shouldnt do anything because its no forwarded traffic here. I just used
> example-IPs. Or does the bug also break non-forwarded traffic?
Did you select one of the multipath algorithm options? If you selected
them as modules did you load them? If no algorithms are available it
will degenerate into deterministic routing.
It will also work properly if you disable IP_ROUTE_MULTIPATH_CACHED
completely.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: MultiPath Routing
2005-05-06 10:58 ` Herbert Xu
@ 2005-05-06 11:16 ` Christian Schmid
0 siblings, 0 replies; 6+ messages in thread
From: Christian Schmid @ 2005-05-06 11:16 UTC (permalink / raw)
To: Herbert Xu; +Cc: netdev
I tried disabling MULTIPATH_CACHED and now it completely works :) Thank you for your help. I thought
your hint only is for NATed traffic but it seems its for all traffic.
Herbert Xu wrote:
> Christian Schmid <webmaster@rapidforum.com> wrote:
>
>>Yes I enabled it. But it shouldnt do anything because its no forwarded traffic here. I just used
>>example-IPs. Or does the bug also break non-forwarded traffic?
>
>
> Did you select one of the multipath algorithm options? If you selected
> them as modules did you load them? If no algorithms are available it
> will degenerate into deterministic routing.
>
> It will also work properly if you disable IP_ROUTE_MULTIPATH_CACHED
> completely.
>
> Cheers,
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-05-19 13:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-19 13:21 MultiPath Routing pravin b shelar
-- strict thread matches above, loose matches on Subject: below --
2005-05-05 12:16 Christian Schmid
2005-05-05 12:36 ` Herbert Xu
2005-05-05 19:15 ` Christian Schmid
2005-05-06 10:58 ` Herbert Xu
2005-05-06 11:16 ` Christian Schmid
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).