Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: andrewg@microlise.co.uk  (Andrew Gierth)
Subject: Re: High Speed TCP/IP Data Needed
Date: 1996/05/06	[thread overview]
Message-ID: <4mllvv$pnv@microl4.microlise.UUCP> (raw)
In-Reply-To: 4mlf3n$mfi@tilde.csc.ti.com


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..."




  reply	other threads:[~1996-05-06  4:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-30  4:00 High Speed TCP/IP Data Needed Dave Schneider
1996-05-01  4:00 ` Rick Jones
1996-05-01  4:00 ` Larry McVoy
1996-05-02  4:00   ` Rick Jones
1996-05-02  4:00     ` Larry McVoy
1996-05-01  4:00 ` Libor
1996-05-02  4:00   ` Andreas Wierse
1996-05-02  4:00     ` Libor
1996-05-01  4:00 ` Ron Natalie
1996-05-02  4:00 ` Curt Smith
1996-05-03  4:00 ` Justin Hannah
1996-05-03  4:00   ` Ron Natalie
1996-05-03  4:00   ` Charley Kline
1996-05-05  4:00     ` Scott M. Hinnrichs
1996-05-06  4:00     ` Tom Sorensen
1996-05-07  4:00       ` Scott M. Hinnrichs
1996-05-03  4:00   ` Pete Flugstad
1996-05-03  4:00     ` Rick Jones
1996-05-06  4:00     ` Mike Krause
1996-05-06  4:00     ` Tom Sorensen
1996-05-06  4:00       ` Charley Kline
1996-05-06  4:00   ` Steinar Haug
1996-05-06  4:00   ` Pete Flugstad
1996-05-06  4:00     ` Fahad A Hoymany
1996-05-06  4:00       ` Tom Sorensen
1996-05-06  4:00         ` Andrew Gierth [this message]
1996-05-06  4:00         ` W. Richard Stevens
1996-05-06  4:00       ` Dave Olson
1996-05-06  4:00         ` Fahad A Hoymany
1996-05-08  4:00           ` Casper H.S. Dik - Network Security Engineer
1996-05-07  4:00   ` Pete Flugstad
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox