* Re: PPP over socket?
[not found] <OF89E28C88.FEBD33E7-ONC1256B3E.002E62B6@diamond.philips.com>
@ 2002-01-12 1:12 ` Chris Dukes
2002-01-12 1:44 ` J Sloan
0 siblings, 1 reply; 5+ messages in thread
From: Chris Dukes @ 2002-01-12 1:12 UTC (permalink / raw)
To: fabrizio.gennari; +Cc: linux-kernel, linux-net, netdev
On Fri, Jan 11, 2002 at 10:13:57AM +0100, fabrizio.gennari@philips.com wrote:
> I was wondering whether the socket architecture could be modified in order
> to support PPP connections over a generic socket (of type SOCK_DGRAM or
> SOCK_SEQPACKET), by mapping each PPP packet to a socket packet. This idea
> is not completely new: somebody raised is in the past, see for example
> http://oss.sgi.com/projects/netdev/mail/netdev/msg00180.html or
> http://oss.sgi.com/projects/netdev/mail/netdev/msg01127.html .
vtun already provides this capability in user space.
(See http://vtun.sourceforge.net/)
ppp(8) on *BSD also provides this capability in user space as well.
As memory serves PPPoE on Linux is partially implemented in userspace
as is, so a partial user space solution for PPPoUDP shouldn't be that
wretched.
--
Chris Dukes
"Bert is apparently EEEEVIL, whereas Oscar is just a sysadmin^Wgrouch."
-- gorski
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: PPP over socket?
2002-01-12 1:12 ` PPP over socket? Chris Dukes
@ 2002-01-12 1:44 ` J Sloan
0 siblings, 0 replies; 5+ messages in thread
From: J Sloan @ 2002-01-12 1:44 UTC (permalink / raw)
To: Chris Dukes; +Cc: fabrizio.gennari, linux-kernel, linux-net, netdev
Just my $.02 -
vtund rocks, I learned about it when
I took on a side job doing linux/vpn
admin for a medium size company.
vtund connects their branch offices
to their main office - it encrypts and
compresses traffic between the vpn
boxes at each end, which in our case
are iptables firewall boxes.
I am impressed with it - as mentioned
it's user space and works with linux,
bsd or solaris....
cu
jjs
Chris Dukes wrote:
>On Fri, Jan 11, 2002 at 10:13:57AM +0100, fabrizio.gennari@philips.com wrote:
>
>>I was wondering whether the socket architecture could be modified in order
>>to support PPP connections over a generic socket (of type SOCK_DGRAM or
>>SOCK_SEQPACKET), by mapping each PPP packet to a socket packet. This idea
>>is not completely new: somebody raised is in the past, see for example
>>http://oss.sgi.com/projects/netdev/mail/netdev/msg00180.html or
>>http://oss.sgi.com/projects/netdev/mail/netdev/msg01127.html .
>>
>
>vtun already provides this capability in user space.
>(See http://vtun.sourceforge.net/)
>ppp(8) on *BSD also provides this capability in user space as well.
>
>As memory serves PPPoE on Linux is partially implemented in userspace
>as is, so a partial user space solution for PPPoUDP shouldn't be that
>wretched.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PPP over socket?
@ 2002-01-12 2:17 Jean Tourrilhes
0 siblings, 0 replies; 5+ messages in thread
From: Jean Tourrilhes @ 2002-01-12 2:17 UTC (permalink / raw)
To: Linux kernel mailing list, fabrizio.gennari, Chris Dukes
Chris Dukes wrote :
> On Fri, Jan 11, 2002 at 10:13:57AM +0100, fabrizio.gennari@philips.com wrote:
> > I was wondering whether the socket architecture could be modified in order
> > to support PPP connections over a generic socket (of type SOCK_DGRAM or
> > SOCK_SEQPACKET), by mapping each PPP packet to a socket packet. This idea
> > is not completely new: somebody raised is in the past, see for example
> > http://oss.sgi.com/projects/netdev/mail/netdev/msg00180.html or
> > http://oss.sgi.com/projects/netdev/mail/netdev/msg01127.html .
>
> vtun already provides this capability in user space.
> (See http://vtun.sourceforge.net/)
> ppp(8) on *BSD also provides this capability in user space as well.
>
> As memory serves PPPoE on Linux is partially implemented in userspace
> as is, so a partial user space solution for PPPoUDP shouldn't be that
> wretched.
And at the total opposite of the spectrum you have IrNET, as
it is implemented in kernekl 2.4.X, that pass PPP packets on an IrDA
socket in the kernel without going through the socket API. But that's
the solution only if you don't mind debugging kernel code...
BTW, I don't understand why the socket architecture would need
to be modified. You just need a user space or a kernel space wrapper.
Regards,
Jean
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PPP over socket?
@ 2002-01-14 9:07 fabrizio.gennari
2002-01-14 17:28 ` Jean Tourrilhes
0 siblings, 1 reply; 5+ messages in thread
From: fabrizio.gennari @ 2002-01-14 9:07 UTC (permalink / raw)
To: jt, linux-kernel, linux-net
(let's hope this time the mail client understands I want to send this in
plain text!)
I thought that, by changing the socket architecture, the result would be
independent to the actual implementation of the socket. For example, a
"PPP over generic socket" could be adapted to "PPP over AF_IRDA socket"
without having to tear one's hair out implementing the pretty complex
/dev/irnet virtual TTY. That is a good solution anyway, but it is very
difficult to port it to different kinds of socket.
What do you exactly mean with "kernel space wrapper"? I guess "user space
wrapper" is something like VTun (which I tried, and it works like a dream.
Only, isn't it a bit inefficient to go through user space?)
Fabrizio Gennari
Philips Research Monza
via G.Casati 23, 20052 Monza (MI), Italy
tel. +39 039 2037816, fax +39 039 2037800
Jean Tourrilhes <jt@bougret.hpl.hp.com>
12/01/2002 03.17
Please respond to jt
To: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Fabrizio Gennari/MOZ/RESEARCH/PHILIPS@EMEA1
Chris Dukes <pakrat@www.uk.linux.org>
cc:
Subject: Re: PPP over socket?
Classification:
Chris Dukes wrote :
> On Fri, Jan 11, 2002 at 10:13:57AM +0100, fabrizio.gennari@philips.com
wrote:
> > I was wondering whether the socket architecture could be modified in
order
> > to support PPP connections over a generic socket (of type SOCK_DGRAM
or
> > SOCK_SEQPACKET), by mapping each PPP packet to a socket packet. This
idea
> > is not completely new: somebody raised is in the past, see for example
> > http://oss.sgi.com/projects/netdev/mail/netdev/msg00180.html or
> > http://oss.sgi.com/projects/netdev/mail/netdev/msg01127.html .
>
> vtun already provides this capability in user space.
> (See http://vtun.sourceforge.net/)
> ppp(8) on *BSD also provides this capability in user space as well.
>
> As memory serves PPPoE on Linux is partially implemented in userspace
> as is, so a partial user space solution for PPPoUDP shouldn't be that
> wretched.
And at the total opposite of the spectrum you have IrNET,
as
it is implemented in kernekl 2.4.X, that pass PPP packets on an IrDA
socket in the kernel without going through the socket API. But that's
the solution only if you don't mind debugging kernel code...
BTW, I don't understand why the socket architecture would
need
to be modified. You just need a user space or a kernel space wrapper.
Regards,
Jean
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: PPP over socket?
2002-01-14 9:07 fabrizio.gennari
@ 2002-01-14 17:28 ` Jean Tourrilhes
0 siblings, 0 replies; 5+ messages in thread
From: Jean Tourrilhes @ 2002-01-14 17:28 UTC (permalink / raw)
To: fabrizio.gennari; +Cc: linux-kernel, linux-net
On Mon, Jan 14, 2002 at 10:07:22AM +0100, fabrizio.gennari@philips.com wrote:
> (let's hope this time the mail client understands I want to send this in
> plain text!)
>
> I thought that, by changing the socket architecture, the result would be
> independent to the actual implementation of the socket. For example, a
> "PPP over generic socket" could be adapted to "PPP over AF_IRDA socket"
> without having to tear one's hair out implementing the pretty complex
> /dev/irnet virtual TTY. That is a good solution anyway, but it is very
> difficult to port it to different kinds of socket.
I agree in theory, but in practice the problem is the
connection setup. On IrDA, you need "someone" to perform the IAS query
on the right device with the right service name (if you are BlueTooth
oriented, think Inquiry + SDP query). If you look IrNET, the actual
data path is only 10% (or less) of the code, most of the code deal
with discovery and connection setup, and this is purely specific to
the PPP over IrDA solution.
By the way, the virtual TTY is not that complex, it's more
complex in the case of IrNET because I actually use the TTY interface
for the control channel. If you remove the control channel, it's
pretty straightforward.
> What do you exactly mean with "kernel space wrapper"?
Like IrNET. There may be way to hook on top of the socket API
from kernel space without modifications (by implementing the bottom
half of the socket layer).
> I guess "user space
> wrapper" is something like VTun (which I tried, and it works like a dream.
> Only, isn't it a bit inefficient to go through user space?)
Did you measure those inefficiencies in practice ?
Jean
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-01-14 17:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <OF89E28C88.FEBD33E7-ONC1256B3E.002E62B6@diamond.philips.com>
2002-01-12 1:12 ` PPP over socket? Chris Dukes
2002-01-12 1:44 ` J Sloan
2002-01-12 2:17 Jean Tourrilhes
-- strict thread matches above, loose matches on Subject: below --
2002-01-14 9:07 fabrizio.gennari
2002-01-14 17:28 ` Jean Tourrilhes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox