All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Lksctp-developers] Dose lksctp suport ECMP route?
@ 2008-04-17 13:08 Vlad Yasevich
  2008-04-17 13:09 ` Vlad Yasevich
  0 siblings, 1 reply; 2+ messages in thread
From: Vlad Yasevich @ 2008-04-17 13:08 UTC (permalink / raw)
  To: linux-sctp

Li, Zongjun wrote:
> Hellow expert 
>  
> How dose LKSCTP work when there are ECMP routes? How dose the heart beat
> send?
>  
>       +------------+           *~~~~~~~~~*            +------------+
>       | Endpoint A |          *   Cloud   *           | Endpoint B |
>       |      1.2   +---------+ 1.1<--->3.1 +----------+ 3.2        |
>       |            |         |             |          |            |
>       |      2.2   +---------+ 2.1<--->4.1 +----------+ 4.2        |
>       |            |          *           *           |            |
>       +------------+           *~~~~~~~~~*            +------------+
>     Endpoint A                              Endpoint B
>     Destination     Gateway                 Destination      Gateway
>     ------------------------                -------------------------
>     3.0             1.1                     1.0              3.1
>     3.0             2.1                     1.0              4.1
>     4.0             2.1                     2.0              4.1
>      4.0             1.1                    2.0              3.1
>  

That all depends on how ECMP routes are set up and if there is support for
them.  SCTP itself has no in-depth knowledge of routing.  It simply
uses the routes provided to it by the route table lookups.

So, when associations are being established, we will attempt to lookup up and
cache routes to all the destinations provided in the INIT/INIT-ACK exchange.
The only restriction is that the source address from the routes belongs to a set
of addresses bound by the endpoint.

As a result, it is possible for the kernel to give you routes to different destinations
using the same source.  There has never really been an elegant solution to this,
since brute forcing a route lookup for every bound source address can be extremely
time consuming and there is no guarantee that you would get a better result on
subsequent lookups.

-vlad

> Best Regards,
> Jerry Li
> Field Consulting Engineer
> Wind River Bejing Office
> Tel:+86-10-64398185/86/87/88 Ext. 33
> Fax:+86-10-64398189
> Mobile:+86-13910514391
> zongjun.li@windriver.com
>  
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Lksctp-developers mailing list
> Lksctp-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lksctp-developers
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Lksctp-developers] Dose lksctp suport ECMP route?
  2008-04-17 13:08 [Lksctp-developers] Dose lksctp suport ECMP route? Vlad Yasevich
@ 2008-04-17 13:09 ` Vlad Yasevich
  0 siblings, 0 replies; 2+ messages in thread
From: Vlad Yasevich @ 2008-04-17 13:09 UTC (permalink / raw)
  To: linux-sctp

Li, Zongjun wrote:
> Hellow expert 
>  
> How dose LKSCTP work when there are ECMP routes? How dose the heart beat
> send?
>  
>       +------------+           *~~~~~~~~~*            +------------+
>       | Endpoint A |          *   Cloud   *           | Endpoint B |
>       |      1.2   +---------+ 1.1<--->3.1 +----------+ 3.2        |
>       |            |         |             |          |            |
>       |      2.2   +---------+ 2.1<--->4.1 +----------+ 4.2        |
>       |            |          *           *           |            |
>       +------------+           *~~~~~~~~~*            +------------+
>     Endpoint A                              Endpoint B
>     Destination     Gateway                 Destination      Gateway
>     ------------------------                -------------------------
>     3.0             1.1                     1.0              3.1
>     3.0             2.1                     1.0              4.1
>     4.0             2.1                     2.0              4.1
>      4.0             1.1                    2.0              3.1
>  

That all depends on how ECMP routes are set up and if there is support for
them.  SCTP itself has no in-depth knowledge of routing.  It simply
uses the routes provided to it by the route table lookups.

So, when associations are being established, we will attempt to lookup up and
cache routes to all the destinations provided in the INIT/INIT-ACK exchange.
The only restriction is that the source address from the routes belongs to a set
of addresses bound by the endpoint.

As a result, it is possible for the kernel to give you routes to different destinations
using the same source.  There has never really been an elegant solution to this,
since brute forcing a route lookup for every bound source address can be extremely
time consuming and there is no guarantee that you would get a better result on
subsequent lookups.

-vlad

> Best Regards,
> Jerry Li
> Field Consulting Engineer
> Wind River Bejing Office
> Tel:+86-10-64398185/86/87/88 Ext. 33
> Fax:+86-10-64398189
> Mobile:+86-13910514391
> zongjun.li@windriver.com
>  
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Lksctp-developers mailing list
> Lksctp-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lksctp-developers
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-17 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-17 13:08 [Lksctp-developers] Dose lksctp suport ECMP route? Vlad Yasevich
2008-04-17 13:09 ` Vlad Yasevich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.