SA
Skip to main content

TCP vs UDP

  • 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