Re: UDP lite for FreeBSD



At 10:26 19/12/2006, Randall Stewart wrote:

I have always thought of it as a bit of a hack as well... and
there is one really big problem with it.. It has no value
unless you can tell your network-interface card to deliver
damaged packets. I don't know if some cards have this option
now or not.. nor if an API in any driver exists for it... without this
you will find very very few packets that are "damaged" that
do get through.. since generally the link layer checksum
is a MUCH better CRC vs the very weak IP/UDP checksum :-0

Each check is meant to detect a different type/source of errors. The CRC is meant to detect burst errors, which are lokely to occur due to, eg, noise. OTOH, the checksum is meant to detect single bit errors, which are more likely to occur in the memory of the processing systems.

There'sa paper by Stone and Partridge (in ACM's CCR) in which they show errors that, IIRC, were not caught by the CRC, but *were* caught by the checksum.

Kindest regards,

--
Fernando Gont
e-mail: fernando@xxxxxxxxxxx || fgont@xxxxxxx
PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1





_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: UDP lite for FreeBSD
    ... unless you can tell your network-interface card to deliver ... is a MUCH better CRC vs the very weak IP/UDP checksum:-0 ... of the udp-lite is so that damaged packets still will arrive at ... So the solution is not complete without a tweak at layer-2 to ...
    (freebsd-net)
  • Re: CRC versus CheckSum
    ... I have a situation where I have a byte in which to place either a checksum ... Our packets cannot have bytes in a packet swapped in order (the transport ... jsut as good as the CRC. ... Neither detect all errors (there are after all the same number of states for the sum in either case). ...
    (comp.arch.embedded)
  • Re: Opinions on 16-bit checksums.
    ... out there besides CRC and "add up the bytes". ... There are other checksum ... I don't think it can be assumed that ROMs ... ROMs do have the same error characteristics as a serial data ...
    (comp.arch.embedded)
  • Re: Opinions on 16-bit checksums.
    ... it's no longer a checksum, ... >> cancel themselves out, but a CRC would. ... I've witnessed no failures or oddities. ... I don't think it can be assumed that ROMs ...
    (comp.arch.embedded)
  • Re: Opinions on 16-bit checksums.
    ... >> possibly result in an unchanged CRC checksum. ... > There are two big reasons CRCs are used in serial communications: ... algorithms that consider the order of the data as well as the value - a ...
    (comp.arch.embedded)