Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TCP vs Reliable UDP

Tags:

tcp

rudp

I am writing an application where the client side will be uploading data to the server through a wireless link.

The connection should be very reliable.The link is expected to break many times and there will be many clients connected to the server.

I am confused whether to use TCP or reliable UDP.

Please share your thoughts.

Thanks.

like image 551
Blacklabel Avatar asked Nov 14 '10 20:11

Blacklabel


2 Answers

RUDP is not, of course, a formal standard, and there's no telling if you will find existing implementations you can use. Given a choice between rolling this from scratch and just re-making TCP connections, I'd chose TCP.

like image 126
bmargulies Avatar answered Sep 22 '22 08:09

bmargulies


To be safe, I would go with TCP just because it's a reliable, standard protocol. RUDP has the disadvantage of not being an established standard (although it's been mentioned in several IETF discussions).

Good luck with your project!

like image 27
dave Avatar answered Sep 22 '22 08:09

dave