From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa751,9eacd4f8141cdf02 X-Google-Attributes: gidfa751,public X-Google-Thread: 100159,9eacd4f8141cdf02 X-Google-Attributes: gid100159,public X-Google-Thread: 10d752,9eacd4f8141cdf02 X-Google-Attributes: gid10d752,public X-Google-Thread: f9325,9eacd4f8141cdf02 X-Google-Attributes: gidf9325,public X-Google-Thread: 10996c,9eacd4f8141cdf02 X-Google-Attributes: gid10996c,public X-Google-Thread: 1164f8,9eacd4f8141cdf02 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10d52b,9eacd4f8141cdf02 X-Google-Attributes: gid10d52b,public X-Google-Thread: fa970,9eacd4f8141cdf02 X-Google-Attributes: gidfa970,public From: andrewg@microlise.co.uk (Andrew Gierth) Subject: Re: High Speed TCP/IP Data Needed Date: 1996/05/06 Message-ID: <4mllvv$pnv@microl4.microlise.UUCP>#1/1 X-Deja-AN: 153340691 x-nntp-posting-host: microl.demon.co.uk references: <4ml74c$331@usenet.srv.cis.pitt.edu> <4mlf3n$mfi@tilde.csc.ti.com> organization: Microlise Engineering Ltd. reply-to: andrewg@microlise.co.uk (Andrew Gierth) newsgroups: comp.dcom.cell-relay,comp.protocols.tcp-ip,comp.sys.sgi.hardware,comp.sys.sgi.misc,comp.sys.convex,comp.sys.dec,comp.sys.hp.hardware,comp.sys.hp.misc,comp.sys.sun.hardware,comp.sys.sun.misc In <4mlf3n$mfi@tilde.csc.ti.com>, tom@dogbert.de.sc.ti.com (Tom Sorensen) writes: > >In article <4ml74c$331@usenet.srv.cis.pitt.edu>, fahad@cs.pitt.edu (Fahad A Hoymany) writes: >>Pete Flugstad (pete@stl.nexen.com) wrote: >> >>: and ask the question: Does anyone know if UDP checksums are commonly >>: done, or are they commonly disabled? We've had problems in the past >> >> No, they are hardly used and so generally they are not considered >>existent. It is optional. > >The UDP header is always checksum'd, but the data is not. If you want >a checksum on the data, your program has to do it itself. Oh no, not again. Here's chapter and verse: RFC0768: User Datagram Protocol (also STD 6) Checksum is the 16-bit one's complement of the one's complement sum of a pseudo header of information from the IP header, the UDP header, and the data, padded with zero octets at the end (if necessary) to make a multiple of two octets. [snip] If the computed checksum is zero, it is transmitted as all ones (the equivalent in one's complement arithmetic). An all zero transmitted checksum value means that the transmitter generated no checksum (for debugging or for higher level protocols that don't care). RFC1122: Requirements for Internet Hosts (also STD 3) 4.1.3.4 UDP Checksums A host MUST implement the facility to generate and validate UDP checksums. An application MAY optionally be able to control whether a UDP checksum will be generated, but it MUST default to checksumming on. If a UDP datagram is received with a checksum that is non- zero and invalid, UDP MUST silently discard the datagram. An application MAY optionally be able to control whether UDP datagrams without checksums should be discarded or passed to the application. -- Andrew (andrewg@microlise.co.uk) "How is this place run - is it an anarchy?" "No, I wouldn't say so; it is not that well organised..."