Morning Dear,
--- Chandrashekhar Mullaparthi > You mean like eat your cake and have it too :-) Like
someone else pointed out, UDP is quite safe to use on LANs these days. We rarely ever see UDP packets being discarded on a LAN these days. But if you use UDP, you still need some application level protocol to make sure your messages get through.
[snip]
I agree sir. The overhead of using Application layer functionality to ensure reliable delivery of UDP is something we will look at. But as of now the short term is to figure out that for a given n/w does tcp/udp give better throughput.
Yes - but what kind of performance are you looking for? Have you prototyped your application using TCP and checked if the thoughput it offers is enough for you? If yes, it will save you the hassle of implementing an application level protocol for ensuring reliability. Remember this: premature optimisation is the root of all evil.
[snip]
:D. I love the perspective. Yes and i understand that setting expectations right is very important. At this point before even deciding on which protocol i would like to make use of on my LAN(We will consider the WAN later) we need to perform some very basic tests and look at the Maximum Throughput as available via TCP-UDP sockets.
As of now for 100Bytes Messages i can do about 6L messages/s on a 100Mbit Lan while about 11L Messages/s on a 1000Mbit Lan. While UDP is about hald those numbers.
I have never really compared the throughput between these two transport protocols but I remember getting more throughput out of UDP by increasing the size of the buffers used for receiving messages.
[snip]
Thats a good tip sir. But increase of buffer size at the OS level you mean???. And these were for messages of what sizes and for how many simultaneous users. Its very important for me to figure out the Raw TCP V/s UDP throughput on my LAN-WAN before i make any other decisions.
Any pointers???.
Trevor
Chandru
|------|____________________________________|------| ( >- / Scaling FreeSoftware & OpenSource \ -< ) /~\ / In the Enterprise \ /~\ | ) \ | www.fsf.org | www.opensource.org | / (/ | |_|_ ____________________________________/ _|_|
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com