What is the difference between TCP and UDP and what are the ports of each? Tnx for the help guys! Have a nice day!! :D
Three answers:
Alain Suggar
2011-02-01 17:09:35 UTC
Both TCP and UDP can have ports from 1-65535
TCP is a lossless connection based transfer. A definate connection has to be established and any data sent is reliable, which means nothing needs to be done to account for loss of data.
UDP is a non-connection based transfer that can lose data. No definate connection needs to be made, data is simply send to the other party in seperate packets which are not acknowledged by the stack. This means that UDP data is not guaranteed to arrive at the destination.
?
2016-10-27 02:14:29 UTC
TCP and UDP are distinct networking protocols. Your interviewer develop into probable hoping you would arise with a part-by potential of-part evaluation of the execs and cons of each and every protocol. In a nutshell, TCP protocol is slower than UDP protocol, besides the indisputable fact that the education packets are absolute to be dropped at their vacation spot. This makes TCP protocol extra desirable for circumstances the position that is crucial that the education be wisely delivered by the community. UDP is extra desirable for circumstances the position you want to deliver the education rapidly and espresso discrepancies contained in the education packets received't have an unacceptably detrimental impact on this technique's performance.
adaviel
2011-02-01 17:07:32 UTC
TCP uses handshaking and retransmits to ensure the data gets there. UDP does not, so it's faster
Either can use any port; low ports below about 4000 are registered with IANA for official uses, e.g. 80 for HTTP, 25 for SMTP
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.