Re: Sockets stuck in SYN_RCVD (re(4), RELENG_7, i386)



Pyun YongHyeon wrote:
On Tue, Nov 20, 2007 at 04:19:18PM +0100, Oliver Fromme wrote:
Some additional information.

Today I have run the re(4) interface at 100 Mbps for a few
hours. The count did still increase, so it's not a GigE-
only problem.

The I disabled RXCSUM,TXCSUM on the interface. Again, the
counter still increased. So hardware checksumming isn't
the cause of the problem either.

Anything else I could try?

re(4) is not smart enough to analyze packet payload. The hardware
also doesn't have a feature like TCP header split so I think re(4)
wouldn't have influence with TCP traffics by itself.

I see. So it does not seem to be a bug in re(4).

My first suspect were the IPFW rules. But they're quite
simple (only 20 rules) and I'm sure they're correct.
Apart from that, if it was a faulty rule that blocks
SYN+ACK packets or similar, then no TCP connections would
work at all. And even in that case, the default timeout
for SYN_RCVD is very short (45 seconds I think), but not
several days.

So my current suspect is a bug in the syncache code.
That bug is probably triggered by something exceptional,
because I don't see the problem on any other machine,
not even on the one which is almost identical in hardware
and OS.

I would like to ask everybody to have a look at the
output from "sysctl net.inet.tcp.syncache.count".
Does anybody else have a non-zero value that slowly
increases? If so, it would be interesting to find out
if there are any similarities with my machine.

Your dmesg indicates that you're using slightly old rgephy(4) on 7.0.
I touched rgephy(4) to support a newer PHY and fixed several bugs. If
speed/duplex mismatch was the cause of the issue you can see lots
of input errors from the output of "netstat -ndi" output. If so, try
latest rgephy(4).

I don't think that's the cause. I tried with and without
auto-select, forcing the interface to 100 and GigE, and
all of that did not affect the behaviour at all. The
error counters are all zero:

Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll Drop
re0 1500 <Link#1> [...] 28363007 0 25430349 0 0 0

net.inet.tcp.syncache.count: 702

It's now at 731.

And now at 832. So it grows by more than 100 entries per
day.

Best regards
Oliver

--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd

Can the denizens of this group enlighten me about what the
advantages of Python are, versus Perl ?
"python" is more likely to pass unharmed through your spelling
checker than "perl".
-- An unknown poster and Fredrik Lundh
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • SUMMARY: panic (cpu 0) kernel memory fault - seems to point to NIC (not yet resolved)
    ... one of the interfaces (a tulip interface, server is ES40, OS is T64 ... I'm going to have to try playing with cables, ... showing any hardware errors on the NIC, making me doubt that will help. ... not be surprised if the bug is in an error handling code path. ...
    (Tru64-UNIX-Managers)
  • Re: check the BER using TCP/IP
    ... What kind of hardware are you using?How are you using TCP to interface with it?Which methods are you using to convert to binary and cehck the BER?  ...
    (comp.lang.labview)
  • Re: Newbie Modelling Interface Question
    ... A client's access to this subsystem is ... interface has a message identifier and a by-value data packet. ... The client then has a pointer to each interface. ... For example, in a hardware interface, clients usually want to manipulate ...
    (comp.object)
  • Re: OpenGL-based framebuffer concepts
    ... Agreed that kernel should only deal with necessary tasks as minimum as ... Designing the interface inevitably involves clear understanding of the ... hardware capabilities and closed hardware spec is an obvious obstacle. ... Open Graphics card would be a great thing ...
    (Linux-Kernel)
  • Re: Cubase SX or Pro-Tools M-Powered?
    ... electronic type composers, MIDI editing, sound stretching etc while ... besides a history lesson and marketing targets, they all employ a 'hyper-tape' type setup unifying audio, midi, and automation in one interface, but obviously going beyond the abilities of tape. ... ProTools would restrict your choice of hardware. ...
    (rec.audio.pro)