Article View: news.software.nntp
Article #15255Re: Problems streaming to Linux systems?
From: Brian Kelly
Date: Sun, 23 Feb 1997 00:00
Date: Sun, 23 Feb 1997 00:00
50 lines
3173 bytes
3173 bytes
In article <E5zFIA.4uM@spcuna.spc.edu> Terry Kennedy <terry@spcunb.spc.edu> writes: >Brian Kelly <bkelly@sulaco.com> writes: >> The problem appears to be on the feeder end of the connection. I'm >> using non blocking I/O and only write to or read from the sockets if select() >> has said I can. At a certain point in the whole procedure the read() (which >> should only be getting answers to check and takethis) receives 31k (I think >> that's reliable) of data. The first few bytes of this is a proper response, >> the rest is garbage, sourced on the local machine. I don't believe it's come >> across the link. > > Hmmm. I'm feeding from a BSD/OS V2.1 system and the only systems that are >experiencing the problem are the 2 Linux boxes I feed. I don't think there's >>much code commonality between the Linux and BSD/OS networking stacks. Would >it be possible for you to run a tcpdump on that network and record all of the >traffic? That would let you pin down whether it was the sender or the recip- >ient that was causing this. Of course, if there's a bug in the Linux network- >ing code, it might affect recipients as well as senders, so this might be the >bug I'm seeing. Ok, I've just been having a baptism of fire with tcpdump. It would appear the data is coming over the link after all. The sink machine, at some point in the whole procedure decides to send me a single 31K (exactly) TCP packet (which gets fragmented properly). Now the first 80 or so bytes of this data is correct (and that's where it should have stopped), but the rest is pure garbage. I kick off tcpdump thus: tcpdump -S -s 128 -i eth1 -x 'src <sink-machine> and ip[6]&32 = 32' And it stays permanently quiet for the several hundred megabytes of simulated news screaming in on two streaming feeds, each averaging over 1 Mbyte per second (average article size, 15k). However, when it all goes horribly wrong, tcpdump fires and spews out all the fragmented packets who's data corresponds directly with the garbage I'm receiving. I'm not writing this data to the socket on the sink machine, so the net code is doing this off it's own bat. If the two linux machines you're feeding are under heavy load, then they may also be exhibiting this problem and giving you the behaviour you're seeing. I'll continue my investigations, and try and get a simple test program that shows the behaviour so that the real Linux TCP guys can have a bash at it. Brian -- ObAFUFAQ: T. Computers have been stolen. bkelly@sulaco.com
Technical Details
Message-ID:
<BKELLY.97Feb23190824@sulaco.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<E5t578.M6x@spcuna.spc.edu> <5eg4d2$ruc@usenet1y.prodigy.net>Show Full Headers
Complete Article Headers
Message-ID: <BKELLY.97Feb23190824@sulaco.com> Subject: Re: Problems streaming to Linux systems? Date: Sun, 23 Feb 1997 00:00:00 +0000 From: bkelly@sulaco.com (Brian Kelly) References: <E5t578.M6x@spcuna.spc.edu> <5eg4d2$ruc@usenet1y.prodigy.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 220895079 Distribution: inet X-NNTP-Posting-Host: dropship.demon.co.uk Organization: None Newsgroups: news.software.nntp