Re: TCP or UDP?
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Tue, 28 Nov 2006 13:17:53 -0800
So far it seems you favor TCP with the robustness
requirement. TCP is not slower than UDP, even though
it has 12 bytes greater overhead per packet (20 vs 8).
It has another hidden overhead in the sense it does not
preserve message boundaries (it has no notion of messages),
so you have to store your packet lengths as part of the
packet data in the stream so you can reconstruct them
from the TCP stream at the other end.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Nils" <leiff@xxxxxxxxxxx> wrote in message
news:ekfnor$si7$1@xxxxxxxxxxxxxxxxxxxxx
Hi,
I need an advice which protocol to use: I develop a client/server system
where the two apps communitcate through packets in a size of 512 bytes up
to 8192 bytes. the sending should be as fast as possible. It has to work
in an intranet only. Rubustness is a must (but I guess because it's only
needed in intranet it's no problem if I would use UDP?). What about speed,
is TCP slower because of overhead or is the size so big that the overhead
can be ignored?
Regards,
Nils
.
- Follow-Ups:
- Re: TCP or UDP?
- From: SergeV
- Re: TCP or UDP?
- Prev by Date: Re: HTTP Download complete detect using TCP sniffer
- Next by Date: Re: HTTP Download complete detect using TCP sniffer
- Previous by thread: Re: Two outputs from a router
- Next by thread: Re: TCP or UDP?
- Index(es):
Relevant Pages
|