* Re: High Speed TCP/IP Data Needed
1996-05-03 4:00 ` Justin Hannah
@ 1996-05-03 4:00 ` Ron Natalie
1996-05-03 4:00 ` Pete Flugstad
` (4 subsequent siblings)
5 siblings, 0 replies; 31+ messages in thread
From: Ron Natalie @ 1996-05-03 4:00 UTC (permalink / raw)
Justin Hannah (sparc@inetnebr.com) wrote:
: In the case that the data isn't to be routed, you could get away with
: using UDP (User Datagram Protocol). It is used mostly for NFS.
UDP packets get routed to.
: I think the headers on UDP packets are something like 12 bytes. It is
: the simplest IP protocol and therefore the fastest. Since it wasn't
: meant for routing, such things as a TTL counter aren't bothered with
: and don't take CPU speed or bandwidth away.
Huh? The TTL counter and all the guts for routing are in the IP header
and they apply to UDP packets as well.
-Ron
^ permalink raw reply [flat|nested] 31+ messages in thread* Re: High Speed TCP/IP Data Needed
1996-05-03 4:00 ` Justin Hannah
1996-05-03 4:00 ` Ron Natalie
@ 1996-05-03 4:00 ` Pete Flugstad
1996-05-03 4:00 ` Rick Jones
` (2 more replies)
1996-05-03 4:00 ` Charley Kline
` (3 subsequent siblings)
5 siblings, 3 replies; 31+ messages in thread
From: Pete Flugstad @ 1996-05-03 4:00 UTC (permalink / raw)
From: sparc@inetnebr.com (Justin Hannah)
> It is much faster because it is not a "guarnteed" packet delivery
> system. That means, if packets get out of order (usually via the
> internet or by using routers) they come in out of order. Also, there
> is no real checksum or any other types of error correction done.
>
> I think the headers on UDP packets are something like 12 bytes. It is
> the simplest IP protocol and therefore the fastest. Since it wasn't
> meant for routing, such things as a TTL counter aren't bothered with
> and don't take CPU speed or bandwidth away.
Actually, it's 8 bytes, from rfc768:
0 7 8 15 16 23 24 31
+--------+--------+--------+--------+
| Source | Destination |
| Port | Port |
+--------+--------+--------+--------+
| | |
| Length | Checksum |
+--------+--------+--------+--------+
|
| data octets ...
+---------------- ...
The checksum is on the (pseudo IP) /UDP header only, so there is no
protection for the data.
> My tech descriptions might be a little off, but generally what I am
> tring to say is that UDP is better for high speed point to point
> connections and it is implemented in just about every IP system out
> there. Have fun!
The strength/weaknes with UDP is that it is very simple, and is very
"best effort". My experience is that on a lightly loaded network,
it's perfectly fine, and can often be pretty reliable, and as noted
above, very light-weight.
The problems start to occur when you try to run a "UDP stream" through
a router, or onto a moderately loaded machine. I belive that routers
discard UDP traffic preferentially to TCP packets, so that you're much
more likely to see significant loss. Also, I believe the same is true
of most IP stacks, such that if the machine is receiving a good number
of IP packets, UDP packets will be discarded first.
But, if UDP is run over pt-pt links with low loss, and sufficiently
fast machines, it probably would be a better choice than TCP.
I *think* it will also allow you to have larger packets than TCP. I
seem to recall TCP will generally segment the data into max 512 byte
"segments" (is this tuneable?). UDP doesn't segment at all (IP does),
so if you send large packets, you generally get the benefit of them.
Finally, a note. It's very easy to completely saturate a network with
UDP packets, so be careful. If one machine is sending a high speed
stream of UDP packets to another machine that is not ready for it,
this will easily saturate the network, and pretty much make the
receiving machine unusable (interesting denial of service attack) as
it spends all it's time receiving the UDP packets and discarding them.
I did this accidentially (:-) between a couple of Suns, and it is
likely dependant on how good a particular OS's IP stack is.
Pete
--
Peter J. Flugstad Ascom Nexion
pete@stl.nexen.com 1807 Park 270 Drive, Suite 350
+1 314 579 6520 St. Louis, MO 63146 USA
#include <std/disclaimer> #include <funny/saying>
^ permalink raw reply [flat|nested] 31+ messages in thread* Re: High Speed TCP/IP Data Needed
1996-05-03 4:00 ` Pete Flugstad
@ 1996-05-03 4:00 ` Rick Jones
1996-05-06 4:00 ` Tom Sorensen
1996-05-06 4:00 ` Mike Krause
2 siblings, 0 replies; 31+ messages in thread
From: Rick Jones @ 1996-05-03 4:00 UTC (permalink / raw)
Pete Flugstad (pete@stl.nexen.com) wrote:
: Actually, it's 8 bytes, from rfc768:
: ...
: The checksum is on the (pseudo IP) /UDP header only, so there is no
: protection for the data.
Also from RFC 768, page two, third paragraph:
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.
It does indeed cover the data.
rick jones
^ permalink raw reply [flat|nested] 31+ messages in thread* Re: High Speed TCP/IP Data Needed
1996-05-03 4:00 ` Pete Flugstad
1996-05-03 4:00 ` Rick Jones
@ 1996-05-06 4:00 ` Tom Sorensen
1996-05-06 4:00 ` Charley Kline
1996-05-06 4:00 ` Mike Krause
2 siblings, 1 reply; 31+ messages in thread
From: Tom Sorensen @ 1996-05-06 4:00 UTC (permalink / raw)
In article <PETE.96May3093654@mich.stl.nexen.com>, pete@stl.nexen.com (Pete Flugstad) writes:
>a router, or onto a moderately loaded machine. I belive that routers
>discard UDP traffic preferentially to TCP packets, so that you're much
Although I can't say for sure - I doubt it. There is no reason for the router
to decode all the way down to the TCP/UDP level - all the information it
needs to poke (dest IP, ttl, checksum) is in the IP header, not the TCP or
UDP headers. Decoding those would cause unnecessary overhead, and force
the router to discard even more packets. Better to just toss TCP and UDP
equally along with anything else you might be routing and let the host machines
deal with it - TCP will re-request the data automagically anyway, so that's
why you never see a problem unless you're sniffing the packet stream.
>more likely to see significant loss. Also, I believe the same is true
>of most IP stacks, such that if the machine is receiving a good number
>of IP packets, UDP packets will be discarded first.
This may very well be true, although again, at that point the packet has been
decoded to such a point it may as well be tossed up to the next layer. After
all, the machine has no way to know that the next packet isn't UDP as well,
and the packet after that, and after that, etc.
>But, if UDP is run over pt-pt links with low loss, and sufficiently
>fast machines, it probably would be a better choice than TCP.
If your application doesn't require the other features of TCP as well - such
as a virtual byte stream.
>I *think* it will also allow you to have larger packets than TCP. I
>seem to recall TCP will generally segment the data into max 512 byte
>"segments" (is this tuneable?). UDP doesn't segment at all (IP does),
>so if you send large packets, you generally get the benefit of them.
TCP does not segment either. It's left up to IP and your MTU setting. Various
TCP applications DO segment, often into 512 byte packets.
>Finally, a note. It's very easy to completely saturate a network with
>UDP packets, so be careful. If one machine is sending a high speed
True. You can also do this with ICMP (ping flood anyone?). That's another
advantage of TCP - it will automatically backoff in case of congestion due
to its windowing protocol.
Of course, this entire discussion is irrelevant to the original poster, since
the problem is the physical network, not the protocol. The protocol has
probably already been decided due to application requirements.
--
Tom Sorensen tom@dogbert.de.sc.ti.com | Fight the CDA |blue|
If I managed to represent TI in this post, then I'm | Responsibility | () |
probably far more surprised than TI is. | Starts at Home | /\ |
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
1996-05-06 4:00 ` Tom Sorensen
@ 1996-05-06 4:00 ` Charley Kline
0 siblings, 0 replies; 31+ messages in thread
From: Charley Kline @ 1996-05-06 4:00 UTC (permalink / raw)
tom@dogbert.de.sc.ti.com (Tom Sorensen) writes:
>TCP does not segment either. It's left up to IP and your MTU setting. Various
>TCP applications DO segment, often into 512 byte packets.
No. The segmenting of user data is one of TCP's prime functions. The
application does NOT segment; the network connection appears to the
application to be a stream of bytes with no record boundaries at all.
One of TCP's jobs is to decide how best to chop that up into segments
which are then given to IP for delivery. "Deciding" involves lots of
things, like the interface MTU, the 536-byte minimum MSS of the old
ARPAnet, the result of the path MTU discovery algorithm, the Nagle
algorithm, silly window avoidance, the PSH bit, and so on.
--
Charley Kline, KF9FF kline@uiuc.edu
UIUC Communications Architect n stuff (217) 333-3339
Nobody ever forgets anything. The secret is learning to live with remembering.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
1996-05-03 4:00 ` Pete Flugstad
1996-05-03 4:00 ` Rick Jones
1996-05-06 4:00 ` Tom Sorensen
@ 1996-05-06 4:00 ` Mike Krause
2 siblings, 0 replies; 31+ messages in thread
From: Mike Krause @ 1996-05-06 4:00 UTC (permalink / raw)
Pete Flugstad (pete@stl.nexen.com) wrote:
: I *think* it will also allow you to have larger packets than TCP. I
: seem to recall TCP will generally segment the data into max 512 byte
: "segments" (is this tuneable?). UDP doesn't segment at all (IP does),
: so if you send large packets, you generally get the benefit of them.
I believe it is that everything must support a MSS of at least 512 not
a maximum of 512 so one can have much larger segments.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
1996-05-03 4:00 ` Justin Hannah
1996-05-03 4:00 ` Ron Natalie
1996-05-03 4:00 ` Pete Flugstad
@ 1996-05-03 4:00 ` Charley Kline
1996-05-05 4:00 ` Scott M. Hinnrichs
1996-05-06 4:00 ` Tom Sorensen
1996-05-06 4:00 ` Steinar Haug
` (2 subsequent siblings)
5 siblings, 2 replies; 31+ messages in thread
From: Charley Kline @ 1996-05-03 4:00 UTC (permalink / raw)
sparc@inetnebr.com (Justin Hannah) writes:
>In the case that the data isn't to be routed, you could get away with
>using UDP (User Datagram Protocol). It is used mostly for NFS.
I don't think you really understand the way all these protocols fit into
the layered model. Routing is not a function of TCP nor UDP. UDP
datagrams are routed exactly as TCP datagrams are.
>It is much faster because it is not a "guarnteed" packet delivery
>system. That means, if packets get out of order (usually via the
>internet or by using routers) they come in out of order. Also, there
>is no real checksum or any other types of error correction done.
The host implementation may be faster, but you will in general lose
on overall efficiency because TCP is a windowed protocol and can
keep much more data in the pipe, minimizing bandwidth wasted waiting
for acknowledgements.
>I think the headers on UDP packets are something like 12 bytes. It is
>the simplest IP protocol and therefore the fastest. Since it wasn't
>meant for routing, such things as a TTL counter aren't bothered with
>and don't take CPU speed or bandwidth away.
No, TTL is a function of IP and has no place in a discussion of either
UDP or TCP. I don't know what you mean by 'UDP is not meant for routing';
both protocols must be routed to function on the Internet.
>My tech descriptions might be a little off, but generally what I am
>tring to say is that UDP is better for high speed point to point
>connections and it is implemented in just about every IP system out
>there. Have fun!
As you yourself mentioned, UDP has no error control or guarantees of
delivery of individual datagrams. Assuming that the original poster
cares that the data sent is actually reconstructed accurately on the
receiving end, this means that the application would have to take care
of things like checksumming, flow control, sequencing, and retransmission
of lost data. It is hard to imagine a from-scratch application doing a
more efficient or faster job of this than TCP.
--
Charley Kline, KF9FF kline@uiuc.edu
UIUC Communications Architect n stuff (217) 333-3339
Nobody ever forgets anything. The secret is learning to live with remembering.
^ permalink raw reply [flat|nested] 31+ messages in thread* Re: High Speed TCP/IP Data Needed
1996-05-03 4:00 ` Charley Kline
@ 1996-05-05 4:00 ` Scott M. Hinnrichs
1996-05-06 4:00 ` Tom Sorensen
1 sibling, 0 replies; 31+ messages in thread
From: Scott M. Hinnrichs @ 1996-05-05 4:00 UTC (permalink / raw)
In article <4mc7ki$1ob@vixen.cso.uiuc.edu>, kline@sunkiller2.isdn.uiuc.edu
(Charley Kline) wrote:
>sparc@inetnebr.com (Justin Hannah) writes:
>
>>In the case that the data isn't to be routed, you could get away with
>>using UDP (User Datagram Protocol). It is used mostly for NFS.
>
>I don't think you really understand the way all these protocols fit into
>the layered model. Routing is not a function of TCP nor UDP. UDP
>datagrams are routed exactly as TCP datagrams are.
I took the statement as meaning it isn't a good idea to route UDP on/off
of a WAN. Especially over the currently congested Internet, you are going
to have a lot of application level retries, and for example with NFS (the
application) that means 8 8k back-to-back packets requiring retransmission
for losing even one packet from the bunch.
UDP is best to use over layers with little or no chance of loss. You do
have to handle the retries yourself, which can be a pain to implement, and
a point of loss in performance if the underlying layers are lossy. Hence,
you don't want to *route* UDP for high performance requirements ;)
>As you yourself mentioned, UDP has no error control or guarantees of
>delivery of individual datagrams. Assuming that the original poster
>cares that the data sent is actually reconstructed accurately on the
>receiving end, this means that the application would have to take care
>of things like checksumming, flow control, sequencing, and retransmission
>of lost data.
See, you did know what he was talking about... :)
>It is hard to imagine a from-scratch application doing a
>more efficient or faster job of this than TCP.
There are plenty of implementations of services over UDP that do a faster
and more efficient job than TCP. If you don't need the overhead of TCP to
handle losses, then you shouldn't use it. Or, you should provide the
"user" the option of using UDP for "LAN" performance advantages, or TCP
for robustness over a "WAN"
Scott
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
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
1 sibling, 1 reply; 31+ messages in thread
From: Tom Sorensen @ 1996-05-06 4:00 UTC (permalink / raw)
In article <4mc7ki$1ob@vixen.cso.uiuc.edu>, kline@sunkiller2.isdn.uiuc.edu (Charley Kline) writes:
>sparc@inetnebr.com (Justin Hannah) writes:
>
>The host implementation may be faster, but you will in general lose
>on overall efficiency because TCP is a windowed protocol and can
>keep much more data in the pipe, minimizing bandwidth wasted waiting
>for acknowledgements.
Ah, but UDP doesn't wait for ACKs. That's the entire point behind UDP - it's
best effort, not guaranteed. If the remote host doesn't get the packet
for whatever reason (network burp, queues full, etc) then the data is lost.
If that data was important to you, then you'll have to request it again, in
which case it's a good bet you should be using TCP in the first place.
>UDP or TCP. I don't know what you mean by 'UDP is not meant for routing';
>both protocols must be routed to function on the Internet.
I think what he meant is that he needs to go read the RFCs and/or Steven's
book(s) again. The only thing correct there was that UDP is unreliable. I'll
give 1/2 pt for the NFS comment, but a lot of other protocols use it as well.
NFS is a johnny-come-lately.
--
Tom Sorensen tom@dogbert.de.sc.ti.com | Fight the CDA |blue|
If I managed to represent TI in this post, then I'm | Responsibility | () |
probably far more surprised than TI is. | Starts at Home | /\ |
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
1996-05-06 4:00 ` Tom Sorensen
@ 1996-05-07 4:00 ` Scott M. Hinnrichs
0 siblings, 0 replies; 31+ messages in thread
From: Scott M. Hinnrichs @ 1996-05-07 4:00 UTC (permalink / raw)
In article <4mkvtj$mvk@tilde.csc.ti.com>, tom@dogbert.de.sc.ti.com wrote:
>
>I think what he meant is that he needs to go read the RFCs and/or Steven's
>book(s) again. The only thing correct there was that UDP is unreliable. I'll
>give 1/2 pt for the NFS comment, but a lot of other protocols use it as well.
>NFS is a johnny-come-lately.
Johnny-come-lately? The first commercial NFS implementation(s) were done
in 1984, and shown publicly in 1/85. That was 11 years ago...just 4 years
after the Arpanet TCP transition from NCP. What do you offer as a more
significant UDP usage that predates NFS?
Scott
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
1996-05-03 4:00 ` Justin Hannah
` (2 preceding siblings ...)
1996-05-03 4:00 ` Charley Kline
@ 1996-05-06 4:00 ` Steinar Haug
1996-05-06 4:00 ` Pete Flugstad
1996-05-07 4:00 ` Pete Flugstad
5 siblings, 0 replies; 31+ messages in thread
From: Steinar Haug @ 1996-05-06 4:00 UTC (permalink / raw)
[Fahad A Hoymany]
| : 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.
As far as I know all reasonably modern operating systems have UDP checksums
enabled by default these days. Note that SunOS 4.1.x does *not* count as a
reasonably modern operating system. Unfortunately there are still lots of
4.1.x systems around...
Steinar Haug, Nethelp consulting, sthaug@nethelp.no
^ permalink raw reply [flat|nested] 31+ messages in thread* Re: High Speed TCP/IP Data Needed
1996-05-03 4:00 ` Justin Hannah
` (3 preceding siblings ...)
1996-05-06 4:00 ` Steinar Haug
@ 1996-05-06 4:00 ` Pete Flugstad
1996-05-06 4:00 ` Fahad A Hoymany
1996-05-07 4:00 ` Pete Flugstad
5 siblings, 1 reply; 31+ messages in thread
From: Pete Flugstad @ 1996-05-06 4:00 UTC (permalink / raw)
From: raj@cup.hp.com (Rick Jones)
>
> Pete Flugstad (pete@stl.nexen.com) wrote:
> : Actually, it's 8 bytes, from rfc768:
> : ...
> : The checksum is on the (pseudo IP) /UDP header only, so there is no
> : protection for the data.
>
> Also from RFC 768, page two, third paragraph:
>
> 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.
>
> It does indeed cover the data.
Gaak, how did I miss that... (sheepish grin :-). I'll also note
(from rfc768 again, I read it this time):
An all zero transmitted
checksum value means that the transmitter generated no checksum (for
debugging or for higher level protocols that don't care).
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
with flaky bridge chips corrupting the packet when transferring UDP
packets from an ethernet chip (ethernet CRC passed) to main memory
(for IP stack processing), and the UDP checksum was not catching it
either because the sender was not calculating it, or the receiver was
ignoring it.
Pete
--
Peter J. Flugstad Ascom Nexion
pete@stl.nexen.com 1807 Park 270 Drive, Suite 350
+1 314 579 6520 St. Louis, MO 63146 USA
#include <std/disclaimer> #include <funny/saying>
^ permalink raw reply [flat|nested] 31+ messages in thread* Re: High Speed TCP/IP Data Needed
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 ` Dave Olson
0 siblings, 2 replies; 31+ messages in thread
From: Fahad A Hoymany @ 1996-05-06 4:00 UTC (permalink / raw)
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.
Fahad ! !
!!! % !!!
Fahad Hoymany !!!!! %%% !!!!!
fahad@cs.pitt.edu !!!!!!! %%%%%__|____________
University of Pittsburgh !!!!!!!!!__|_____________
(412) 488 0404 ______|_______________
^ permalink raw reply [flat|nested] 31+ messages in thread* Re: High Speed TCP/IP Data Needed
1996-05-06 4:00 ` Fahad A Hoymany
@ 1996-05-06 4:00 ` Tom Sorensen
1996-05-06 4:00 ` W. Richard Stevens
1996-05-06 4:00 ` Andrew Gierth
1996-05-06 4:00 ` Dave Olson
1 sibling, 2 replies; 31+ messages in thread
From: Tom Sorensen @ 1996-05-06 4:00 UTC (permalink / raw)
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.
--
Tom Sorensen tom@dogbert.de.sc.ti.com | Fight the CDA |blue|
If I managed to represent TI in this post, then I'm | Responsibility | () |
probably far more surprised than TI is. | Starts at Home | /\ |
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
1996-05-06 4:00 ` Tom Sorensen
@ 1996-05-06 4:00 ` W. Richard Stevens
1996-05-06 4:00 ` Andrew Gierth
1 sibling, 0 replies; 31+ messages in thread
From: W. Richard Stevens @ 1996-05-06 4:00 UTC (permalink / raw)
> 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.
Wrong. The UDP checksum includes the UDP header, fields from the
IP header (the UDP pseudo header) *and* all the UDP data.
Rich Stevens
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
1996-05-06 4:00 ` Tom Sorensen
1996-05-06 4:00 ` W. Richard Stevens
@ 1996-05-06 4:00 ` Andrew Gierth
1 sibling, 0 replies; 31+ messages in thread
From: Andrew Gierth @ 1996-05-06 4:00 UTC (permalink / raw)
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..."
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
1996-05-06 4:00 ` Fahad A Hoymany
1996-05-06 4:00 ` Tom Sorensen
@ 1996-05-06 4:00 ` Dave Olson
1996-05-06 4:00 ` Fahad A Hoymany
1 sibling, 1 reply; 31+ messages in thread
From: Dave Olson @ 1996-05-06 4:00 UTC (permalink / raw)
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.
That's a totally bogus statement. Even Sun finally got it together
and does udp checksumming now. Almost everybody else has been doing
it for ages.
--
Dave Olson, Silicon Graphics Guru and busybody at large
http://reality.sgi.com/olson olson@sgi.com
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
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
0 siblings, 1 reply; 31+ messages in thread
From: Fahad A Hoymany @ 1996-05-06 4:00 UTC (permalink / raw)
Dave Olson (olson@anchor.engr.sgi.com) wrote:
: That's a totally bogus statement. Even Sun finally got it together
: and does udp checksumming now. Almost everybody else has been doing
: it for ages.
UDP checksumming has always been optional (from the day UDP was
invented), but it is useful to have it on for many (not all)
applications. If Sun has finally started turning it on, that confirms the
checksum is optional. Also, look at Comer 1995 Volume I edition (page 182)
which confirms this fact.
Fahad ! !
!!! % !!!
Fahad Hoymany !!!!! %%% !!!!!
fahad@cs.pitt.edu !!!!!!! %%%%%__|____________
University of Pittsburgh !!!!!!!!!__|_____________
(412) 488 0404 ______|_______________
^ permalink raw reply [flat|nested] 31+ messages in thread* Re: High Speed TCP/IP Data Needed
1996-05-06 4:00 ` Fahad A Hoymany
@ 1996-05-08 4:00 ` Casper H.S. Dik - Network Security Engineer
0 siblings, 0 replies; 31+ messages in thread
From: Casper H.S. Dik - Network Security Engineer @ 1996-05-08 4:00 UTC (permalink / raw)
fahad@cs.pitt.edu (Fahad A Hoymany) writes:
>Dave Olson (olson@anchor.engr.sgi.com) wrote:
>: That's a totally bogus statement. Even Sun finally got it together
>: and does udp checksumming now. Almost everybody else has been doing
>: it for ages.
> UDP checksumming has always been optional (from the day UDP was
>invented), but it is useful to have it on for many (not all)
>applications. If Sun has finally started turning it on, that confirms the
>checksum is optional. Also, look at Comer 1995 Volume I edition (page 182)
>which confirms this fact.
Dave was replying to your: <4ml74c$331@usenet.srv.cis.pitt.edu>
>No, they are hardly used and so generally they are not considered
>existent. It is optional.
And he's right that that's a bogus statement. Modern implementations
use UDP checksums by default, and all implementations support them,
because the standard say they *must* implement them.
Sure, their use is optional; but the proper practive is using checksums.
(SunOS 4.x doesn't do checksums by default, it is recommended by many
that you turn them on, especially on DNS servers; When checksums are
turned off, SuNOS 4 also doesn't check incoming packets which checksums,
which isn't legal. Checksums that are present *must* be checked)
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: High Speed TCP/IP Data Needed
1996-05-03 4:00 ` Justin Hannah
` (4 preceding siblings ...)
1996-05-06 4:00 ` Pete Flugstad
@ 1996-05-07 4:00 ` Pete Flugstad
5 siblings, 0 replies; 31+ messages in thread
From: Pete Flugstad @ 1996-05-07 4:00 UTC (permalink / raw)
krause@cup.hp.com (Mike Krause) writes:
>
> Pete Flugstad (pete@stl.nexen.com) wrote:
> : I *think* it will also allow you to have larger packets than TCP. I
> : seem to recall TCP will generally segment the data into max 512 byte
> : "segments" (is this tuneable?). UDP doesn't segment at all (IP does),
> : so if you send large packets, you generally get the benefit of them.
>
> I believe it is that everything must support a MSS of at least 512 not
> a maximum of 512 so one can have much larger segments.
Yup, I got my logic reversed...
Pete
--
Peter J. Flugstad Ascom Nexion
pete@stl.nexen.com 1807 Park 270 Drive, Suite 350
+1 314 579 6520 St. Louis, MO 63146 USA
#include <std/disclaimer> #include <funny/saying>
^ permalink raw reply [flat|nested] 31+ messages in thread