Re: ftp on udp and tcp .

From: Ben Hutchings
Date: Tue Jun 15 2010 - 07:50:30 EST


On Tue, 2010-06-15 at 12:50 +0530, ratheesh k wrote:
> Hi ,
>
> what is real advantage of UDP over TCP / TCP over UDP . If i
> put the question in a different way - if run ftp application on UDP
> and TCP , what is the real difference / advantage ??

TCP handles segmentation and bandwidth/congestion management. It
recovers from packet loss and reordering. Recent implementations are
also quite resilient to address spoofing. The downsides are higher
latency (potentially very high when recovering from packet loss), higher
setup cost (3-way handshake), and lack of multicast support.

UDP does none of that. It gives you flexibility and control, but the
downside is you have to handle all of those problems yourself.

Ben.

--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html