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: 10d52b,9eacd4f8141cdf02 X-Google-Attributes: gid10d52b,public X-Google-Thread: fa970,9eacd4f8141cdf02 X-Google-Attributes: gidfa970,public X-Google-Thread: f9325,9eacd4f8141cdf02 X-Google-Attributes: gidf9325,public X-Google-Thread: 10d752,9eacd4f8141cdf02 X-Google-Attributes: gid10d752,public X-Google-Thread: 10996c,9eacd4f8141cdf02 X-Google-Attributes: gid10996c,public X-Google-Thread: 1164f8,9eacd4f8141cdf02 X-Google-Attributes: gid1164f8,public From: smh@netserv.com (Scott M. Hinnrichs) Subject: Re: High Speed TCP/IP Data Needed Date: 1996/05/05 Message-ID: #1/1 X-Deja-AN: 153197201 distribution: world references: <31865FBD.16F1@auc.trw.com> <4mbvb1$5un@duck.inetnebr.com> <4mc7ki$1ob@vixen.cso.uiuc.edu> organization: NetServices 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 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