Reference
Networking terms compared
Pairs that get mixed up. Each page answers in a few lines, sets the two side by side in one table, names the standard behind it, and links the labs where the difference shows on real Linux machines.
- TCP vs UDP TCP sets up a connection and delivers every byte in order, resending what is lost. UDP sends separate datagrams with no connection, no acknowledgement and no resend. Use TCP when every byte must arrive, and UDP when a late packet is worth less than a lost one.
- Hub vs switch vs router A hub repeats every frame out of every port. A switch learns which MAC address is behind which port and sends each frame only there. A router joins separate networks and forwards packets between them by IP address.
- HTTP vs HTTPS HTTPS is HTTP sent inside TLS. The requests and responses are the same; TLS encrypts them and makes the server prove, with a certificate, that it is the name you asked for. Over plain HTTP anyone on the path can read and change all of it.
- IPv4 vs IPv6 IPv4 addresses are 32 bits, written as four numbers; IPv6 addresses are 128 bits, written in hex. Beyond size, IPv6 has no broadcast and no ARP, devices can build their own addresses, and routers never fragment. The two do not talk to each other: most networks run both.
- Public vs private IP address A private address comes from three ranges anyone may use inside their own network: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. It is never routed on the internet. A public address is unique on the internet and reachable from it. Devices with private addresses reach the internet through NAT, behind a public one.
- NAT vs PAT NAT rewrites addresses as packets pass a router. Static NAT maps one inside address to one outside address for good. Dynamic NAT lends outside addresses from a pool. PAT shares one outside address among many devices and tells their conversations apart by port: what nearly every home and office router does.
- Static vs dynamic routing A static route is typed in by hand and stays until someone changes it. With dynamic routing, routers run a protocol such as RIP, OSPF or BGP: they tell each other which networks they reach and work out new paths when a link fails.
- MAC address vs IP address A MAC address names a network card and delivers frames inside one network. An IP address names a device across networks, and routers forward by it. On the way the IP addresses stay the same end to end, while a router rewrites both MAC addresses at every hop. ARP links the two.
- DROP vs REJECT DROP throws the packet away and says nothing, so the client waits until it times out. REJECT throws it away and answers at once, with an ICMP error or a TCP reset, so the client fails immediately with connection refused.
- OSPF vs BGP OSPF routes inside one organisation: every router holds the same map and computes the shortest path by link cost. BGP routes between organisations, the autonomous systems of the internet: each announces its networks, and the path through the fewest systems wins unless policy says otherwise.
- DNS vs DHCP DHCP gives a device its settings when it joins a network: an address, the default gateway and which DNS server to ask. DNS then turns names into addresses, every time the device looks one up. DHCP tells a device where its DNS server is; DNS never hands out addresses.
- VLAN vs subnet A VLAN splits a switch into separate networks at the link layer, by a tag in each frame. A subnet is a block of IP addresses at the network layer. They usually go together, one subnet for each VLAN, but they are different things: the VLAN decides who hears whose frames, the subnet decides which addresses a device treats as its own network.
- Stateful vs stateless firewall A stateless filter judges every packet alone, by its addresses, protocol and ports. A stateful firewall remembers each connection, so it can let replies in while refusing new connections from outside.