Networking Basics
Two basic building blocks you keep running into with networking, compared simply.
Last updated: September 1, 2026
TCP vs UDP
Two basic ways data gets sent across a network.
TCP
Connection orientedEstablishes a fixed connection first, before data flowsReliableChecks that every data packet really arrives, and resends it if neededSlightly slowerThe checks create a bit of extra overheadTypical useWebsites, email, file transfer, SSHUDP
ConnectionlessJust sends data packets off, without setting up a connection firstNo guaranteeLost packets aren't automatically resentFasterLess overhead, so less delayTypical useVideo streaming, online games, DNS queriesConnection setup compared
TCP deliberately sets up a connection in three steps, UDP just sends data straight away.
TCP: SYN, SYN-ACK, ACK, only then does the actual data flow.
UDP: data is sent directly, with no confirmation or setup.
IPv4 vs IPv6
Two versions for uniquely addressing devices on the internet.
IPv4
FormatFour number blocks, like 192.168.1.1Address spaceAround 4.3 billion possible addressesAdoptionStill the standard in everyday useLimitationAddresses are slowly running out worldwideIPv6
FormatEight number blocks in hexadecimal, like 2001:0db8::1Address spacePractically inexhaustible number of addressesAdoptionSteadily growing, but slower than originally plannedAdvantageSolves the problem of running out of addresses long termOn my own server, I run into both of these topics daily, TCP for example when loading this website over HTTPS, UDP for example with DNS queries in the background.