I've looked into this further and still cannot determine where the issue
lies.  Based on some advice, I unplugged the OpenBSD machine and setup a
Windows XP machine instead.  The Windows native PPPoE client was able to
download at 5.5Mb/s and the OpenBSD machine was still stuck at 1.5Mb/s.

A snippet from /var/log/messages after a ifconfig pppoe0 debug/ifconfig
pppoe0 down/ifconfig pppoe0 up may be found at
http://208.139.201.8/pppoe.debug.  Standard output tcpdump captures from
a web server capturing connections from the OpenBSD and Windows machines
notes above may be found at http://208.139.201.8/openbsd.tcpdump and
http://208.139.201.8/windows.tcpdump.

I'm kind of at my "wits end" here and am not certain how to troubleshoot
further--any and all help/comments appreciated.

Thanks,
Danny

Melameth, Daniel D. wrote:
> Just moved from cable to DSL connectivity at home and decided to give
> 3.7's new kernelized pppoe as shot.
> 
> My DSL connection trains at 7Mb/s down and 896Kb/s up and testing with
> Internet speed tests, I generally get 5.5Mb/s down and 715Kb/s up.
> These tests were done with the DSL router provided by my ISP.  Once I
> switched the router to act as just a modem, doing rfc1483 bridging,
> and had the OpenBSD box handle the pppoe connection instead, which
> appears to do the establish, authenticate and network phases
> flawlessly, the same speed tests show my maximum to be 1.5Mb/s down
> and 715Kb/s up--even though the modem is training at full speed and
> the CPU states on the OpenBSD box appear okay, and I am not certain
> what is causing this. This issue is reproducible from NAT/PAT clients
> with PF and from the OpenBSD box itself without PF (which I believe
> rules out MTU issues).  I have tried the following without success,
> am not certain where to look next and am looking for help:
> 
> *     Setting the MTU to 1492 on the physical pppoe interface (as per
> man 4 pppoe (it's a bit confusing where to actually adjust this)?)
> *     Setting MSS to 1440 on pppoe in pf.conf (as per man 4 pppoe)
> *     Setting the MTU to 1492 or less on the interfaces of NAT clients
> 
> One thing I noticed of possible interest is a seemingly peculiar
> round-robin option in:
> 
> $ sudo pfctl -s nat
> nat on pppoe0 inet from 192.168.x.x/27 to ! 192.168.x.x/30 -> (pppoe0)
> round-robin
> 
> As the only nat line I have in my pf.conf is:
> nat on $ext_if from $int_if:network to ! $wan_if:network -> ( $ext_if
> ) 
> 
> Any thoughts/suggestions appreciated as I CANNOT IMAGINE relying on my
> ISP's router for WAP, firewall, QoS and other functions.
> 
> Thanks,
> Danny
> 
> 
> $ ifconfig -a
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
>         inet 127.0.0.1 netmask 0xff000000
>         inet6 ::1 prefixlen 128
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
> pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33224
> pfsync0: flags=0<> mtu 2020
> enc0: flags=0<> mtu 1536
> wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         address: 00:02:6f:09:58:b2
>         ieee80211: nwid methWAP nwkey <not displayed> -18dBm (auto)
>         media: IEEE802.11 autoselect hostap (DS2)
>         status: active
>         inet 192.168.x.x netmask 0xffffffe0 broadcast 192.168.255.255
>         inet6 fe80::202:6fff:fe09:58b2%wi0 prefixlen 64 scopeid 0x5
> xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         address: 00:04:75:ac:05:48
>         media: Ethernet autoselect (100baseTX full-duplex)
>         status: active
>         inet 192.168.x.x netmask 0xfffffffc broadcast 192.168.255.223
>         inet6 fe80::204:75ff:feac:548%xl0 prefixlen 64 scopeid 0x6
> pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
>         dev: xl0 state: session
>         sid: 0xee68 PADI retries: 1 PADR retries: 0 time: 14:2:49
>         inet 70.x.x.x --> 0.0.0.1 netmask 0xffffffff
>         inet6 fe80::202:6fff:fe09:58b2%pppoe0 ->  prefixlen 64 scopeid
> 0x7
> 
> 
> $ dmesg
> OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
>     [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel Pentium III ("GenuineIntel" 686-class) 647 MHz
> cpu0:
>
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,F
> XSR,SSE
> real mem  = 133668864 (130536K)
> avail mem = 115474432 (112768K)
> using 1657 buffers containing 6787072 bytes (6628K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(63) BIOS, date 12/30/99
> apm0 at bios0: Power Management spec V1.2
> apm0: battery life expectancy 100%
> apm0: AC on, battery charge high
> pcibios at bios0 function 0x1a not configured
> bios0: ROM list: 0xc0000/0xc000
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
> ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "S3 Savage/IX-MV" rev 0x11
> wsdisplay0 at vga1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> pcib0 at pci0 dev 5 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
> pciide0 at pci0 dev 5 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
> channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <SAMSUNG MP0402H>
> wd0: 16-sector PIO, LBA48, 38204MB, 78242976 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> atapiscsi0 at pciide0 channel 1 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-C2402, 1317> SCSI0
> 5/cdrom removable
> cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
> uhci0 at pci0 dev 5 function 2 "Intel 82371AB USB" rev 0x01: irq 11
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> "Intel 82371AB Power Mgmt" rev 0x03 at pci0 dev 5 function 3 not
> configured
> "AT&T/Lucent LTMODEM" rev 0x01 at pci0 dev 7 function 0 not configured
> vendor "Toshiba", unknown product 0x0d01 (class wireless subclass
> IrDA, rev 0x00) at pci0 dev 9 function 0 not configured
> cbb0 at pci0 dev 11 function 0 "Toshiba ToPIC95B CardBus" rev 0x07:
> irq 11
> cbb1 at pci0 dev 11 function 1 "Toshiba ToPIC95B CardBus" rev 0x07:
> irq 11
> yds0 at pci0 dev 12 function 0 "Yamaha 744" rev 0x02: irq 11
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using
> wsdisplay0
> pmsi0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pmsi0 mux 0
> 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
> pccom1 at isa0 port 0x2f8/8 irq 3: ns8250, no fifo
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 20 device 0 cacheline 0x0, lattimer 0x0
> pcmcia0 at cardslot0
> cardslot1 at cbb1 slot 1 flags 0
> cardbus1 at cardslot1: bus 21 device 0 cacheline 0x0, lattimer 0x0
> pcmcia1 at cardslot1
> biomask ef65 netmask ef65 ttymask ffe7
> pctr: 686-class user-level performance counters enabled
> mtrr: Pentium Pro MTRR support
> wi0 at pcmcia0 function 0 "INTERSIL, HFA384x/IEEE, Version 01.02" port
> 0xa000/64
> wi0: PRISM2.5 ISL3873, Firmware 1.1.1 (primary), 1.8.2 (station),
> address 00:02:6f:09:58:b2
> xl0 at cardbus1 dev 0 function 0 "3Com Corporation, 3CCFE575CT, LAN
> Cardbus Card": 3Com 3c575C-TX Ethernet: irq 11, address
> 00:04:75:ac:05:48
> tqphy0 at xl0 phy 0: 78Q2120 10/100 PHY, rev. 11
> dkcsum: wd0 matched BIOS disk 80
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302
> ac97: codec id 0x414b4d02 (Asahi Kasei AK4543)
> ac97: codec features headphone, 18 bit DAC, 18 bit ADC, AKM 3D
> audio0 at yds0
> opl0 at yds0: model OPL3
> midi1 at opl0: <DS-1 integrated Yamaha OPL3>
> mpu at yds0 not configured
> mpu at yds0 not configured
> mpu at yds0 not configured
> mpu at yds0 not configured
> pppoe0: phase establish
> pppoe0: phase authenticate
> pppoe0: phase network

Reply via email to