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: 10d52b,9eacd4f8141cdf02 X-Google-Attributes: gid10d52b,public X-Google-Thread: 1164f8,9eacd4f8141cdf02 X-Google-Attributes: gid1164f8,public X-Google-Thread: fa970,9eacd4f8141cdf02 X-Google-Attributes: gidfa970,public From: tom@dogbert.de.sc.ti.com (Tom Sorensen) Subject: Re: High Speed TCP/IP Data Needed Date: 1996/05/06 Message-ID: <4ml0hs$mvk@tilde.csc.ti.com>#1/1 X-Deja-AN: 153276212 references: organization: Texas Instruments, Inc. reply-to: tom@dogbert.de.sc.ti.com 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 , 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 | /\ |