Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are examples of TCP and UDP in real life?

Tags:

tcp

udp

I know the difference between the two on a technical level.

But in real life, can anyone provide examples (the more the better) of applications (uses) of TCP and UDP to demonstrate the difference?

like image 899
Leon Avatar asked Mar 16 '11 18:03

Leon


People also ask

What are TCP and UDP protocols explain with examples?

TCP is a connection-oriented protocol, whereas UDP is a connectionless protocol. A key difference between TCP and UDP is speed, as TCP is comparatively slower than UDP. Overall, UDP is a much faster, simpler, and efficient protocol, however, retransmission of lost data packets is only possible with TCP.

What is an example of TCP?

As a result, high-level protocols that need to transmit data all use TCP Protocol. Examples include peer-to-peer sharing methods like File Transfer Protocol (FTP), Secure Shell (SSH), and Telnet.

Which applications use TCP and UDP?

TCP is used to control segment size, rate of data exchange, flow control and network congestion. TCP is preferred where error correction facilities are required at network interface level. UDP is largely used by time sensitive applications as well as by servers that answer small queries from huge number of clients.

What is an example of a UDP?

Examples include Voice over IP (VoIP), online games, and media streaming. Speed – UDP's speed makes it useful for query-response protocols such as DNS, in which data packets are small and transactional.


1 Answers

UDP: Anything where you don't care too much if you get all data always

  • Tunneling/VPN (lost packets are ok - the tunneled protocol takes care of it)
  • Media streaming (lost frames are ok)
  • Games that don't care if you get every update
  • Local broadcast mechanisms (same application running on different machines "discovering" each other)

TCP: Almost anything where you have to get all transmitted data

  • Web
  • SSH, FTP, telnet
  • SMTP, sending mail
  • IMAP/POP, receiving mail

EDIT: I'm not going to bother explaining the differences, since you state that you already know and every other answer explains it anyway :)

like image 180
Erik Avatar answered Sep 18 '22 12:09

Erik