What's new

Closed TCP vs UDP

Status
Not open for further replies.
Screenshot_20200809_220518.jpg
 

Attachments

UDP -
it’s faster than TCP.

As you may have guessed, UDP is not used in connections where reliability is a big concern. It’s used only when speeds are more important than a few lost packets. For example, if you want a network for online gaming, video conferencing, or broadcasts, UDP will be better than TCP.

UDP is Used for Gaming
If you miss a couple of UDP datagrams, you might feel that instead of walking, your character has suddenly teleported across the map. Or if you’re playing a first-person shooter, you’ve shot two bullets at once instead of one at a time.

The packets that were missed in between are already useless now. There’s no point in requesting them again. You’ll ignore this little glitch and continue playing as earlier. This is better than the alternative TCP, where your game would freeze.

In online gaming, what matters is what’s happening in real time. You aren’t concerned about the missed packets anyway. If you use TCP instead of UDP, there will be no small glitches but your game will be slow, which is a major annoyance.
Screenshot_2020-08-09-22-34-56-14.jpg
 

Attachments

Last edited:
TCP is good po if nagbobrowse ka lang ng websites, pero if more on video streaming and online games mas okay yung UDP. Pero ang problema lang talaga sa UDP is once na mawala yung connection, babalik sa umpisa at hindi continuous. Unlike kay TCP na kahit mawala yung connection, itatry parin nya mag connect ulit para ma continue if ever may dinodownload ka.
 
TCP is good po if nagbobrowse ka lang ng websites, pero if more on video strêâmïng and online games mas okay yung UDP. Pero ang problema lang talaga sa UDP is once na mawala yung connection, babalik sa umpisa at hindi continuous. Unlike kay TCP na kahit mawala yung connection, itatry parin nya mag connect ulit para ma continue if ever may dinodownload ka.
So hinde talaga maganda UDP for downloading because may tendency na uulit yung download mo. Thanks
 
[XX='babyoriokiko, c: 143399, m: 918307'][/XX] depende narin sa laro kung need ba ng reliable data gagamitin ay TCP kung speed naman ay UDP. Kung magaling ang programmer pwedeng mas mabilis ang tcp sa udp at mas reliable pa

TCP - keeps resending the packet if it did not reach the destination making it reliable but may not be fast.
UDP - doesn't care if the data reached the destination or not as long as it sends the data making it fast but not reliable.
 
Status
Not open for further replies.

Similar threads

Back
Top