Re: Ethernet data corruption?

From: Andrew Morton (akpm@zip.com.au)
Date: Mon Jan 28 2002 - 15:01:10 EST


Kevin Breit wrote:
>
> Hi,
> The other night, my friend was sending me a video over the internet.
> We tried http, ftp, and other protocols, using different download
> applications. It seemed to be corrupt, the same way, everytime. It
> wouldn't work, and had a different md5sum than the "good" version on my
> friend's computer. Eventually we got it working.
> The same issue came up again today. I uploaded my Java project on my
> professor's server and it gives me an error. However, if I load the
> html file with the Java applet in my web browser from this hard disk
> (instead of from the prof's), it works.
> I am wondering if there is some sort of corruption going on here. I am
> using Red Hat's 2.4.9-21 kernel.
>

Generally, IP checksumming should catch this.

However, a number of ethernet cards do IP checksumming in
hardware, so the kernel doesn't bother doing the checksum
in software.

So if you are experiencing data corruption on the path
between the NIC's FIFO memory, the PCI bus and main memory,
it will not be detected. This is somewhat of a flaw in the
whole idea of checksum offload, IMO...

What ethernet card are you using?

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:00:53 EST