Hello,

My recently acquired PC Engines Alix 3D3 [1] board running OpenBSD
5.5-stable suddenly disconnects from my local network after a random
amount of time, typically 15-60 minutes. This happens consistently
while there is a low but constant amount of network traffic (e.g.
soundcard is used by a remote machine using sndiod).

Re-initializing the interface and running dhclient restores the
connection: 
$ sudo ifconfig vr0 down
$ sudo ifconfig vr0 up
$ sudo dhclient vr0

The Alix is connected to a Wireless Gigabit Dualband 300N prefab
router running dhcp. The router has been reliable so far and other
machines do not suffer from any disconnections.

Since this is a second-hand device I cannot rule out any hardware
problems, although network connectivity is fine until it breaks.
I will try some Linux distro soon and see if the same problem occurs.
Searching the mailing lists does not show any similar issues.

Below is some output from the Alix after disconnection while running tcpbench, 
not sure if
it's useful: dmesg, ifconfig, netstat -i, netstat -s and tcpbench.

[1] http://www.pcengines.ch/alix3d3.htm


$ dmesg
OpenBSD 5.5 (GENERIC) #0: Fri Apr 25 15:04:32 CEST 2014
    
r...@stable-55-i386.mtier.org:/binpatchng/work-binpatch55-i386/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
586-class) 499 MHz cpu0:
FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW real
mem  = 259219456 (247MB) avail mem = 242675712 (231MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/11/09, BIOS32 rev. 0 @ 0xfaf90
apm0 at bios0: Power Management spec V1.2 (slowidle)
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdfb4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf20/144 (7 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 7 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0xa800 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
mtrr: K6-family MTRR support (2 registers)
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
vga1 at pci0 dev 1 function 1 "AMD Geode LX Video" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11,
address 00:0d:b9:2b:97:28 ukphy0 at vr0 phy 1: Generic IEEE 802.3u
media interface, rev. 3: OUI 0x004063, model 0x0034 glxpcib0 at pci0
dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit 3579545Hz
timer, watchdog, gpio, i2c gpio0 at glxpcib0: 32 pins iic0 at glxpcib0
maxtmp0 at iic0 addr 0x4c: lm86
pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility wd0
at pciide0 channel 0 drive 0: <TS4GCF133> wd0: 1-sector PIO, LBA,
3823MB, 7831152 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA
mode 2 pciide0: channel 1 ignored (disabled)
auglx0 at pci0 dev 15 function 3 "AMD CS5536 Audio" rev 0x01: irq 11,
CS5536 AC97 ac97: codec id 0x414c4770 (Avance Logic ALC203 rev 0)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, No 3D Stereo
audio0 at auglx0
ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 5,
version 1.0, legacy support ehci0 at pci0 dev 15 function 5 "AMD CS5536
USB" rev 0x02: irq 5 usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbdprobe: reset response 0xfa
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
uaudio0 at uhub1 port 1 configuration 1 interface 0 "Alesis io|2" rev
1.10/1.01 addr 2 uaudio0: audio rev 1.00, 0 mixer controls
audio1 at uaudio0
umidi0 at uhub1 port 1 configuration 1 interface 3 "Alesis io|2" rev
1.10/1.01 addr 2 umidi0: (genuine USB-MIDI)
umidi0: out=1, in=1
midi0 at umidi0: <USB MIDI I/F>
uhub2 at uhub1 port 2 "ALCOR USB Hub 2.0" rev 2.00/7.02 addr 3
uhidev0 at uhub2 port 2 configuration 1 interface 0 "Primax Electronics
USB Optical Mouse" rev 2.00/2.00 addr 4 uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 4 configuration 1 interface 0 "USB USB Keykoard"
rev 1.10/1.10 addr 5 uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev2 at uhub2 port 4 configuration 1 interface 1 "USB USB Keykoard"
rev 1.10/1.10 addr 5 uhidev2: iclass 3/0, 2 report ids
uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
scsibus1 at softraid0: 256 targets
root on wd0a (a6703cacf60979d8.a) swap on wd0b dump on wd0b

$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
        priority: 0
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:b9:2b:97:28
        priority: 0
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::20d:b9ff:fe2b:9728%vr0 prefixlen 64 scopeid 0x1
        inet 192.168.0.102 netmask 0xffffff00 broadcast 192.168.0.255
enc0: flags=0<>
        priority: 0
        groups: enc
        status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33192
        priority: 0
        groups: pflog

$ netstat -i
Name    Mtu   Network     Address              Ipkts Ierrs    Opkts Oerrs Colls
lo0     33192 <Link>                               0     0        0     0     0
lo0     33192 localhost/1 localhost                0     0        0     0     0
lo0     33192 fe80::%lo0/ fe80::1%lo0              0     0        0     0     0
lo0     33192 127/8       localhost                0     0        0     0     0
vr0     1500  <Link>      00:0d:b9:2b:97:28 36583463     0 54874042     0     0
vr0     1500  fe80::%vr0/ fe80::20d:b9ff:fe 36583463     0 54874042     0     0
vr0     1500  192.168.0/2 192.168.0.102     36583463     0 54874042     0     0
enc0*   0     <Link>                               0     0        0     0     0
pflog0  33192 <Link>                               0     0        0     0     0

$ netstat -s
ip:
        36583235 total packets received
        0 bad header checksums
        0 with size smaller than minimum
        0 with data size < data length
        0 with header length < data size
        0 with data length < header length
        0 with bad options
        0 with incorrect version number
        0 fragments received
        0 fragments dropped (duplicates or out of space)
        0 malformed fragments dropped
        0 fragments dropped after timeout
        0 packets reassembled ok
        36583110 packets for this host
        125 packets for unknown/unsupported protocol
        0 packets forwarded
        0 packets not forwardable
        0 redirects sent
        54875007 packets sent from this host
        0 packets sent with fabricated ip header
        0 output packets dropped due to no bufs, etc.
        0 output packets discarded due to no route
        0 output datagrams fragmented
        0 fragments created
        0 datagrams that can't be fragmented
        0 fragment floods
        0 packets with ip length > max ip packet size
        0 tunneling packets that can't find gif
        0 datagrams with bad address in header
        0 input datagrams software-checksummed
        0 output datagrams software-checksummed
        0 multicast packets which we don't join
icmp:
        125 calls to icmp_error
        0 errors not generated because old message was icmp
        0 errors not generated because of rate limitation
        0 messages with bad code fields
        0 messages < minimum length
        0 bad checksums
        0 messages with bad length
        0 echo requests to broadcast/multicast rejected
        0 message responses generated
igmp:
        125 messages received
        0 messages received with too few bytes
        0 messages received with bad checksum
        125 membership queries received
        0 membership queries received with invalid field(s)
        0 membership reports received
        0 membership reports received with invalid field(s)
        0 membership reports received for groups to which we belong
        0 membership reports sent
ipencap:
        0 total input packets
        0 total output packets
        0 packets shorter than header shows
        0 packets dropped due to policy
        0 packets with possibly spoofed local addresses
        0 packets were dropped due to full output queue
        0 input bytes
        0 output bytes
        0 protocol family mismatches
        0 attempts to use tunnel with unspecified endpoint(s)
tcp:
        54873881 packets sent
                54873866 data packets (79457334560 bytes)
                12 data packets (17376 bytes) retransmitted
                0 fast retransmitted packets
                1 ack-only packet (0 delayed)
                0 URG only packets
                0 window probe packets
                0 window update packets
                2 control packets
                0 packets software-checksummed
        36582009 packets received
                36573758 acks (for 79455195864 bytes)
                425 duplicate acks
                0 acks for unsent data
                0 acks for old data
                0 packets (0 bytes) received in-sequence
                0 completely duplicate packets (0 bytes)
                0 old duplicate packets
                0 packets with some duplicate data (0 bytes duplicated)
                0 out-of-order packets (0 bytes)
                0 packets (0 bytes) of data after window
                0 window probes
                7825 window update packets
                0 packets received after close
                0 discarded for bad checksums
                0 discarded for bad header offset fields
                0 discarded because packet too short
                0 discarded for missing IPsec protection
                0 discarded due to memory shortage
                0 packets software-checksummed
                0 bad/missing md5 checksums
                0 good md5 checksums
        1 connection request
        0 connection accepts
        1 connection established (including accepts)
        11 connections closed (including 1 drop)
        0 connections drained
        0 embryonic connections dropped
        36573759 segments updated rtt (of 29110700 attempts)
        12 retransmit timeouts
                1 connection dropped by rexmit timeout
        0 persist timeouts
        0 keepalive timeouts
                0 keepalive probes sent
                0 connections dropped by keepalive
        14 correct ACK header predictions
        0 correct data packet header predictions
        0 PCB cache misses
        0 ECN connections accepted
                0 ECE packets received
                0 CWR packets received
                0 CE packets received
                0 ECT packets sent
                0 ECE packets sent
                0 CWR packets sent
                        cwr by fastrecovery: 11
                        cwr by timeout: 12
                        cwr by ecn: 0
        0 bad connection attempts
        0 SYN cache entries added
                0 hash collisions
                0 completed
                0 aborted (no space to build PCB)
                0 timed out
                0 dropped due to overflow
                0 dropped due to bucket overflow
                0 dropped due to RST
                0 dropped due to ICMP unreachable
        0 SYN,ACKs retransmitted
        0 duplicate SYNs received for entries already in the cache
        0 SYNs dropped (no route or no space)
        11 SACK recovery episodes
                1309 segment rexmits in SACK recovery episodes
                1895432 byte rexmits in SACK recovery episodes
        1732 SACK options received
        0 SACK options sent
udp:
        1101 datagrams received
        0 with incomplete header
        0 with bad data length field
        0 with bad checksum
        0 with no checksum
        0 input packets software-checksummed
        0 output packets software-checksummed
        0 dropped due to no socket
        75 broadcast/multicast datagrams dropped due to no socket
        0 dropped due to missing IPsec protection
        0 dropped due to full socket buffers
        1026 delivered
        1126 datagrams output
        0 missed PCB cache
esp:
        0 input ESP packets
        0 output ESP packets
        0 packets from unsupported protocol families
        0 packets shorter than header shows
        0 packets dropped due to policy
        0 packets for which no TDB was found
        0 input packets that failed to be processed
        0 packets with bad encryption received
        0 packets that failed verification received
        0 packets for which no XFORM was set in TDB received
        0 packets were dropped due to full output queue
        0 packets where counter wrapping was detected
        0 possibly replayed packets received
        0 packets with bad payload size or padding received
        0 packets attempted to use an invalid TDB
        0 packets got larger than max IP packet size
        0 packets that failed crypto processing
        0 input UDP encapsulated ESP packets
        0 output UDP encapsulated ESP packets
        0 UDP packets for non-encapsulating TDB received
        0 input bytes
        0 output bytes
ah:
        0 input AH packets
        0 output AH packets
        0 packets from unsupported protocol families
        0 packets shorter than header shows
        0 packets dropped due to policy
        0 packets for which no TDB was found
        0 input packets that failed to be processed
        0 packets that failed verification received
        0 packets for which no XFORM was set in TDB received
        0 packets were dropped due to full output queue
        0 packets where counter wrapping was detected
        0 possibly replayed packets received
        0 packets with bad authenticator length received
        0 packets attempted to use an invalid TDB
        0 packets got larger than max IP packet size
        0 packets that failed crypto processing
        0 input bytes
        0 output bytes
etherip:
        0 packets shorter than header shows
        0 packets were dropped due to full output queue
        0 packets were dropped because of no interface/bridge information
        0 packets dropped due to policy
        0 packets dropped for other reasons
        0 input ethernet-in-IP packets
        0 output ethernet-in-IP packets
        0 input bytes
        0 output bytes
ipcomp:
        0 input IPCOMP packets
        0 output IPCOMP packets
        0 packets from unsupported protocol families
        0 packets shorter than header shows
        0 packets dropped due to policy
        0 packets for which no TDB was found
        0 input packets that failed to be processed
        0 packets for which no XFORM was set in TDB received
        0 packets were dropped due to full output queue
        0 packets where counter wrapping was detected
        0 packets attempted to use an invalid TDB
        0 packets got larger than max IP packet size
        0 packets that failed (de)compression processing
        0 packets less than minimum compression length
        0 input bytes
        0 output bytes
carp:
        0 packets received (IPv4)
        0 packets received (IPv6)
                0 packets discarded for bad interface
                0 packets discarded for wrong TTL
                0 packets shorter than header
                0 discarded for bad checksums
                0 discarded packets with a bad version
                0 discarded because packet too short
                0 discarded for bad authentication
                0 discarded for unknown vhid
                0 discarded because of a bad address list
        0 packets sent (IPv4)
        0 packets sent (IPv6)
                0 send failed due to mbuf memory error
        0 transitions to master
pfsync:
        0 packets received (IPv4)
        0 packets received (IPv6)
                0 packets discarded for bad interface
                0 packets discarded for bad ttl
                0 packets shorter than header
                0 packets discarded for bad version
                0 packets discarded for bad HMAC
                0 packets discarded for bad action
                0 packets discarded for short packet
                0 states discarded for bad values
                0 stale states
                0 failed state lookup/inserts
        0 packets sent (IPv4)
        0 packets sent (IPv6)
                0 send failed due to mbuf memory error
                0 send error
divert:
        0 total packets received
        0 dropped due to no socket
        0 dropped due to full socket buffers
        0 packets output
        0 errors
pflow:
        0 flows sent
        0 packets sent
                0 send failed due to mbuf memory error
                0 send error
ip6:
        1 total packet received
        0 with size smaller than minimum
        0 with data size < data length
        0 with bad options
        0 with incorrect version number
        0 fragments received
        0 fragments dropped (duplicates or out of space)
        0 fragments dropped after timeout
        0 fragments that exceeded limit
        0 packets reassembled ok
        0 packets for this host
        0 packets forwarded
        0 packets not forwardable
        0 redirects sent
        9 packets sent from this host
        0 packets sent with fabricated ip header
        0 output packets dropped due to no bufs, etc.
        0 output packets discarded due to no route
        0 output datagrams fragmented
        0 fragments created
        0 datagrams that can't be fragmented
        0 packets that violated scope rules
        0 multicast packets which we don't join
        Input packet histogram:
                ICMP6: 1
        Mbuf statistics:
                0 one mbufs
                1 one ext mbuf
                0 two or more ext mbufs
        0 tunneling packets that can't find gif
        0 packets discarded due to too many headers
        0 failures of source address selection
        0 forward cache hit
        0 forward cache miss
divert6:
        0 total packets received
        0 dropped due to no socket
        0 dropped due to full socket buffers
        0 packets output
        0 errors
icmp6:
        0 calls to icmp6_error
        0 errors not generated because old message was icmp6 or so
        0 errors not generated because of rate limitation
        Output packet histogram:
                multicast listener report: 8
                neighbor solicitation: 1
        0 messages with bad code fields
        0 messages < minimum length
        0 bad checksums
        0 messages with bad length
        Input packet histogram:
                neighbor advertisement: 1
        Histogram of error messages to be generated:
                0 no route
                0 administratively prohibited
                0 beyond scope
                0 address unreachable
                0 port unreachable
                0 packet too big
                0 time exceed transit
                0 time exceed reassembly
                0 erroneous header field
                0 unrecognized next header
                0 unrecognized option
                0 redirect
                0 unknown
        0 message responses generated
        0 messages with too many ND options
        0 messages with bad ND options
        0 bad neighbor solicitation messages
        0 bad neighbor advertisement messages
        0 bad router solicitation messages
        0 bad router advertisement messages
        0 bad redirect messages
        0 path MTU changes
pim6:
        0 messages received
        0 messages received with too few bytes
        0 messages received with bad checksum
        0 messages received with bad version
        0 registers received
        0 bad registers received
        0 registers sent
rip6:
        0 messages received
        0 checksum calculations on inbound
        0 messages with bad checksum
        0 messages dropped due to no socket
        0 multicast messages dropped due to no socket
        0 messages dropped due to full socket buffers
        0 delivered
        0 datagrams output

$ tcpbench -vv 192.168.0.101
  elapsed_ms          bytes         mbps   bwidth 
Trying [192.168.0.101]:12345
        1000       10648592       85.189  100.00% 
Conn:   1 Mbps:       85.189 Peak Mbps:       85.189 Avg Mbps:       85.189
        2000       10622528       84.980  100.00% 
Conn:   1 Mbps:       84.980 Peak Mbps:       85.189 Avg Mbps:       84.980
        3000       10618184       84.945  100.00% 
Conn:   1 Mbps:       84.945 Peak Mbps:       85.189 Avg Mbps:       84.945
        4000       10616736       84.934  100.00% 
Conn:   1 Mbps:       84.934 Peak Mbps:       85.189 Avg Mbps:       84.934
        5000       10615288       84.922  100.00% 
Conn:   1 Mbps:       84.922 Peak Mbps:       85.189 Avg Mbps:       84.922
        6001       10482184       83.857  100.00% 
Conn:   1 Mbps:       83.857 Peak Mbps:       85.189 Avg Mbps:       83.857
        7001        7548984       60.392  100.00% 
Conn:   1 Mbps:       60.392 Peak Mbps:       85.189 Avg Mbps:       60.392
        8001        6047168       48.426  100.00% 
Conn:   1 Mbps:       48.426 Peak Mbps:       85.189 Avg Mbps:       48.426
        9002        8759392       70.075  100.00% 
Conn:   1 Mbps:       70.075 Peak Mbps:       85.189 Avg Mbps:       70.075
       10003       10557376       84.375  100.00% 
Conn:   1 Mbps:       84.375 Peak Mbps:       85.189 Avg Mbps:       84.375
       11015       10670904       84.355  100.00% 
Conn:   1 Mbps:       84.355 Peak Mbps:       85.189 Avg Mbps:       84.355
       12005       10429936       84.368  100.00% 
Conn:   1 Mbps:       84.368 Peak Mbps:       85.189 Avg Mbps:       84.368
       13005       10545744       84.450  100.00% 
Conn:   1 Mbps:       84.450 Peak Mbps:       85.189 Avg Mbps:       84.450
       14005       10539592       84.317  100.00% 
Conn:   1 Mbps:       84.317 Peak Mbps:       85.189 Avg Mbps:       84.317
       15005       10545632       84.365  100.00% 
Conn:   1 Mbps:       84.365 Peak Mbps:       85.189 Avg Mbps:       84.365
       16005       10534784       84.363  100.00% 
Conn:   1 Mbps:       84.363 Peak Mbps:       85.189 Avg Mbps:       84.363
       17006       10553904       84.431  100.00% 

(...)

Conn:   1 Mbps:       84.318 Peak Mbps:       86.210 Avg Mbps:       84.318
     7559538       10552320       84.419  100.00% 
Conn:   1 Mbps:       84.419 Peak Mbps:       86.210 Avg Mbps:       84.419
     7560539       10549504       84.396  100.00% 
Conn:   1 Mbps:       84.396 Peak Mbps:       86.210 Avg Mbps:       84.396
     7561539       10545408       84.363  100.00% 
Conn:   1 Mbps:       84.363 Peak Mbps:       86.210 Avg Mbps:       84.363
     7562539       10533656       84.354  100.00% 
Conn:   1 Mbps:       84.354 Peak Mbps:       86.210 Avg Mbps:       84.354
     7563545        5291776       42.082  100.00% 
Conn:   1 Mbps:       42.082 Peak Mbps:       86.210 Avg Mbps:       42.082
     7564560              0        0.000     nan% 
Conn:   1 Mbps:        0.000 Peak Mbps:       86.210 Avg Mbps:        0.000
     7565575              0        0.000     nan% 
Conn:   1 Mbps:        0.000 Peak Mbps:       86.210 Avg Mbps:        0.000
     7566590              0        0.000     nan% 
Conn:   1 Mbps:        0.000 Peak Mbps:       86.210 Avg Mbps:        0.000
     7567605              0        0.000     nan% 
Conn:   1 Mbps:        0.000 Peak Mbps:       86.210 Avg Mbps:        0.000
     7568621              0        0.000     nan% 
Conn:   1 Mbps:        0.000 Peak Mbps:       86.210 Avg Mbps:        0.000
     7569636              0        0.000     nan% 

(...)

Best,
-- 
Erwin

Reply via email to