cho.sh
TCP vs UDP

TCP vs UDP

Warning

This post is more than a year old. Information may be outdated.

  • UDP (User Datagram Protocol) uses datagram sockets.
    • connectionless. I'll say a bunch of things. Hope you can hear me.
    • packet abstraction. no deliveries guaranteed.
  • TCP (Transmission Control Protocol) uses stream sockets.
    • connection-oriented. Are you there? Are you there? Ok, I see you! Now I'll talk...
    • byte stream abstraction. in-order. reliable delivery