linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PPPoE mutiple session issue.
@ 2010-06-11  7:53 arun b
  2010-06-11 12:03 ` James Carlson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: arun b @ 2010-06-11  7:53 UTC (permalink / raw)
  To: linux-ppp

All,
I am running pppd (PPPoE mode).  when i create mutiple
session(interfac) (ppp0 /ppp1..). I am unable to communicate over
ppp1(ping test) only ppp0 is comunicable..

Iis it a valid behaviour  or Is this a know issue, if so pls know the fix  ?

Thanks,
Arun

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

* Re: PPPoE mutiple session issue.
  2010-06-11  7:53 PPPoE mutiple session issue arun b
@ 2010-06-11 12:03 ` James Carlson
  2010-06-12  5:27 ` arun b
  2010-06-12 21:28 ` James Carlson
  2 siblings, 0 replies; 4+ messages in thread
From: James Carlson @ 2010-06-11 12:03 UTC (permalink / raw)
  To: linux-ppp

On 06/11/10 03:53, arun b wrote:
> All,
> I am running pppd (PPPoE mode).  when i create mutiple
> session(interfac) (ppp0 /ppp1..). I am unable to communicate over
> ppp1(ping test) only ppp0 is comunicable..
> 
> Iis it a valid behaviour  or Is this a know issue, if so pls know the fix  ?

There's not a lot of information here, so it's a little hard to guess.
It would usually help matters to include packet traces on the Ethernet
(not text, but raw traces) and/or some hints about how the interfaces
are configured and what routes you have.

There is, though, one possibility that comes immediately to mind.  PPPoE
is not a standards-track protocol, and was not subjected to the sort of
review that standard protocols are.  It has some substantial defects.

One of those defects is that only a single session ID is established for
a session.  Normal tunneling protocols establish a separate ID in each
direction so that each side can demux properly, but PPPoE does not.
This means that when packets go from PPPoE access server back to the
client, there's no real guarantee that the client can successfully
demultiplex the traffic, because the server chose the ID.  The protocol
just "assumes" that "normal" clients won't run more than one instance of
PPPoE, so the ID doesn't matter.

On the Solaris implementation of PPPoE that I wrote, I added special
code to detect conflicting IDs on the client side and then demux based
on Ethernet address.  That makes it work with multiple clients as long
as the servers have different addresses.  That's not specified in the
RFC, so it's possible that not every implementation is able to do that.

On an implementation lacking that feature, you might be able to get away
with using multiple Ethernet interfaces.

-- 
James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>

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

* Re: PPPoE mutiple session issue.
  2010-06-11  7:53 PPPoE mutiple session issue arun b
  2010-06-11 12:03 ` James Carlson
@ 2010-06-12  5:27 ` arun b
  2010-06-12 21:28 ` James Carlson
  2 siblings, 0 replies; 4+ messages in thread
From: arun b @ 2010-06-12  5:27 UTC (permalink / raw)
  To: linux-ppp

Thank you for the detaild response....
as I mentioned before..
I want to run multiple pppd sessions which results in interface (ppp0,
ppp1, ppp2......).
well the connectivity is... as below
the hardware I am using is connected to pc with ethernet crosscable.
on pc i run  - pppoe-server
       sudo pppoe-server -I eth0:0 -R 10.0.0.2

on my hardware, which is a client,  pppd is executed.
  pppd eth0 user xxxx passwordd dddd

though i am able to create mutlipel interfaces . i am not be able to
commuicte over all insted..


I guess these is due to same server -IP :(


Regs,
Arun





On Fri, Jun 11, 2010 at 5:33 PM, James Carlson <carlsonj@workingcode.com> wrote:
> On 06/11/10 03:53, arun b wrote:
>> All,
>> I am running pppd (PPPoE mode).  when i create mutiple
>> session(interfac) (ppp0 /ppp1..). I am unable to communicate over
>> ppp1(ping test) only ppp0 is comunicable..
>>
>> Iis it a valid behaviour  or Is this a know issue, if so pls know the fix  ?
>
> There's not a lot of information here, so it's a little hard to guess.
> It would usually help matters to include packet traces on the Ethernet
> (not text, but raw traces) and/or some hints about how the interfaces
> are configured and what routes you have.
>
> There is, though, one possibility that comes immediately to mind.  PPPoE
> is not a standards-track protocol, and was not subjected to the sort of
> review that standard protocols are.  It has some substantial defects.
>
> One of those defects is that only a single session ID is established for
> a session.  Normal tunneling protocols establish a separate ID in each
> direction so that each side can demux properly, but PPPoE does not.
> This means that when packets go from PPPoE access server back to the
> client, there's no real guarantee that the client can successfully
> demultiplex the traffic, because the server chose the ID.  The protocol
> just "assumes" that "normal" clients won't run more than one instance of
> PPPoE, so the ID doesn't matter.
>
> On the Solaris implementation of PPPoE that I wrote, I added special
> code to detect conflicting IDs on the client side and then demux based
> on Ethernet address.  That makes it work with multiple clients as long
> as the servers have different addresses.  That's not specified in the
> RFC, so it's possible that not every implementation is able to do that.
>
> On an implementation lacking that feature, you might be able to get away
> with using multiple Ethernet interfaces.
>
> --
> James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>
>

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

* Re: PPPoE mutiple session issue.
  2010-06-11  7:53 PPPoE mutiple session issue arun b
  2010-06-11 12:03 ` James Carlson
  2010-06-12  5:27 ` arun b
@ 2010-06-12 21:28 ` James Carlson
  2 siblings, 0 replies; 4+ messages in thread
From: James Carlson @ 2010-06-12 21:28 UTC (permalink / raw)
  To: linux-ppp

On 6/12/2010 1:15 AM, arun b wrote:
> Thank you for the detaild response....
> as I mentioned before..
> I want to run multiple pppd sessions which results in interface (ppp0,
> ppp1, ppp2......).
> well the connectivity is... as below
> the hardware I am using is connected to pc with ethernet crosscable.
> on pc i run  - pppoe-server
>        sudo pppoe-server -I eth0:0 -R 10.0.0.2
> 
> on my hardware, which is a client,  pppd is executed.
>   pppd eth0 user xxxx passwordd dddd
> 
> though i am able to create mutlipel interfaces . i am not be able to
> commuicte over all insted..
> 
> 
> I guess these is due to same server -IP :(

If you can't give us detailed information, there's likely to be little
that anyone can do to help you.  Any details you care to share would be
appreciated -- "netstat -nr" output, packet traces (as I requested last
time), debug output, et cetera.

My understanding is that pppoe-server will not hand out the same IP
address to each connection, so that shouldn't be the problem you're
having.  But, yes, if you did have conflicting addresses on the links,
then you'd have a problem.

However, it's impossible to determine what sort of problem you might be
having if you won't provide details.  We just can't see your computer
from here.

-- 
James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>

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

end of thread, other threads:[~2010-06-12 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-11  7:53 PPPoE mutiple session issue arun b
2010-06-11 12:03 ` James Carlson
2010-06-12  5:27 ` arun b
2010-06-12 21:28 ` James Carlson

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).