[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: advantages/disadvantages of kernel pppoe(4) vs userland pppoe(8)?

In message
I wrote
I'm about to setup up ADSL at home for the first time, using the
following network topology:
The firewall/router/nat box is (will be when I get this setup)
an old 486 laptop with 2 pcmcia ethernet cards, running 3.9-stable.
(Yes, I've ordered a CD; until it arrives I'm using 3.8-stable on
various machines.)

I already have the (external) DSL modem, and from talking to other
Unix-savvy customers of my ISP (arcor.de), their setup is that the
DSL modem talks pppoe to me (in this case to my firewall/router/nat
box).  From looking at the FAQ section 6, it seems I have two basic
options available doing this in OpenBSD: pppoe(4) in the kernal, and
pppoe(8) in userland.  My question is, what are the relative
advantages/disadvantages of these?

I'd like to thank everyone who has replied. So far almost everyone has said that the in-kernel pppoe(4) works fine (indeed many find it easier to configure/operate than the userland pppoe(8)), and that given the old hardware I'll need the in-kernel pppoe(4) to get the performance I want.

I have a followup request-for-advice:  Given the old hardware (more
info and full dmesg below), what sorts of network cards should I be
looking for for the firewall/router/nat machine for it to (hopefully)
keep up with the ADSL bandwidth (supposedly 6Mbit/sec downlink, I
think 0.5Mbit/sec uplink)?

That is,  http://www.openbsd.org/i386.html#hardware  lists lots of
pcmcia ethernet adaptors, but apart from the warning
Please be aware that many NE2000 adapters fail or perform very poorly.
We do not recommend using them, but your mileage may vary.
I don't know which of them are likely to be particularly efficient
or inefficient.  The main traffic is likely to be http, scp, and maybe
streaming audio in the future.

Hardware details:

My firewall/router/nat machine is a Toshiba Satellite T2130CT laptop,
with 32MB memory, a 486dx4 cpu, a new-in-2001 10GB disk, and 2 pcmcia
slots which I'll use for the 2 network cards.  (At the moment one pcmcia
slot is the  ne3  card in the dmesg below, and the other slot is empty.
If the  ne3  card + one new card will suffice for 6M bit/sec, that's
great; otherwise I'll need to buy two new cards.)

Here's a full dmesg (yes, I know 3.5-stable is obselete; I promise not
to hook it to the ADSL line before installing at least 3.8-stable):

OpenBSD 3.5 (GENERIC) #4: Wed Jun  9 11:39:09 CDT 2004
cpu0: Intel 486DX4 ("GenuineIntel" 486-class)
cpu0: FPU,V86
real mem  = 33337344 (32556K)
avail mem = 24854528 (24272K)
using 432 buffers containing 1769472 bytes (1728K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(c4) BIOS, date 08/25/95
apm0 at bios0: Power Management spec V1.1
apm0: battery life expectancy 100%
apm0: AC on, battery charge high, charging, estimated 2:36 hours
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xe0000/0x10000
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
vga0 at isa0 port 0x3b0/48 iomem 0xa0000/131072
wsdisplay0 at vga0: console (80x25, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: <TOSHIBA MK1016GAP>
wd0: 16-sector PIO, LBA, 9590MB, 19640880 sectors
wd0(wdc0:0:0): using BIOS timings
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
pcic0 at isa0 port 0x3e0/2 iomem 0xd0000/65536
pcic0 controller 0: <Intel 82365SL rev 1> has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
ne3 at pcmcia0 function 0 "Ethernet, Adapter, 2.0" port 0x340/32: irq 3
ne3: address 00:e0:98:34:68:15
pcmcia1 at pcic0 controller 0 socket 1
pcic0: irq 9, polling enabled
biomask 4040 netmask 4048 ttymask 52ca
pctr: no performance counters in CPU
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

thanks, ciao,

-- Jonathan Thornburg <jthorn_(_at_)_aei_(_dot_)_mpg_(_dot_)_de>
   Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
   Golm, Germany, "Old Europe"     http://www.aei.mpg.de/~jthorn/home.html
   "Washing one's hands of the conflict between the powerful and the
    powerless means to side with the powerful, not to be neutral."
                                      -- quote by Freire / poster by Oxfam

Visit your host, monkey.org