maxdraco

Networking

How machines find and talk to each other: the protocols that carry data, and the routers and firewalls that decide where it may go.

Concepts

  • Captive portal The sign-in or terms page a public Wi-Fi network shows before it lets you onto the internet.
  • Client (client-server) A program that connects to a server to ask it for something.
  • Control plane The part of a system that decides how things should be set up, as opposed to the part that carries the actual traffic or work.
  • Deep packet inspection (DPI) Looking inside network traffic, not just at its addresses, to work out what it is.
  • DMZ A separate part of a network for machines that must be reachable from the internet.
  • DNS tunneling Hiding other data inside DNS lookups to slip it past a network that blocks everything else.
  • Domain name A human-readable name for a place on the internet, such as example.com, rented through a registrar.
  • Dynamic DNS Keeping a hostname pointed at an address that changes, such as a home internet connection.
  • Edge network (CDN) A provider's servers spread around the world that sit between visitors and a website.
  • Firewall A device or program that decides which network traffic is allowed to pass.
  • Handshake The opening exchange of messages in which two devices agree to talk and set up how.
  • HTTP status codes (200, 401, 403, 404) The three-digit number a web server sends back to say how a request went.
  • Ingress filtering Dropping incoming traffic at the point where it enters a device or network when it has no business arriving there.
  • IP address (IPv4/IPv6) The number that identifies a device on a network so that traffic can be delivered to it.
  • LAN A local area network: the devices connected together in one home, office or building.
  • Loopback (localhost) A computer's network connection to itself, reached at the name localhost or the address 127.0.0.1.
  • MAC address The hardware address that identifies a network card on its local network.
  • NAT (and hairpin NAT) Network address translation: how a router lets many devices share one public internet address.
  • Outbound (egress) traffic and filtering Controlling which connections may leave a network, not just which may come in.
  • Packet (and packet capture) A small chunk of data sent across a network, with a header saying where it came from and where it is going.
  • Polling Checking something over and over on a timer to see whether it has changed, instead of waiting to be told.
  • Port (network) A number from 0 to 65535 that tells a computer which program an incoming network message is for.
  • Port forwarding Passing connections that arrive on a port of one machine on to a port on another.
  • Proxy (and reverse proxy) A go-between that makes network requests on someone else's behalf and passes the answers back.
  • Road warrior (VPN) A VPN setup where a laptop or phone connects back to a home or office network from wherever it happens to be.
  • Router on a stick A setup where one cable between a switch and a router carries several VLANs, and the router passes traffic between them.
  • Socket The handle a program uses to send and receive data over a network connection.
  • Spoofing Faking the sender of a message or network packet so it looks like it came from somewhere it didn't.
  • Subnet (network segment) A block of addresses, and the group of devices using them, that forms one section of a network.
  • Tarpit A server that deliberately answers connections as slowly as possible, to waste the time of whoever connects.
  • Tethering Sharing a phone's mobile internet connection with another device, over Wi-Fi, USB or Bluetooth.
  • Timeout A limit on how long a program waits for something before it gives up.
  • Tunnel (networking) A connection that carries one kind of network traffic wrapped inside another.
  • VLAN hopping Attacks that let a device on one VLAN send traffic into another VLAN without passing the router.
  • VPN An encrypted tunnel that joins a device to a network it isn't physically on.
  • WAN Wide area network: the outside network, usually the internet connection, as opposed to the local network.

Organisations

  • Cisco US company that makes networking equipment such as switches, routers and firewalls.
  • Cloudflare Company whose network sits in front of websites to speed them up and protect them.

Protocols

  • ARP Address Resolution Protocol: how a device on a local network finds the hardware address that goes with an IP address.
  • DHCP The protocol that gives a device joining a network its address and settings automatically.
  • DNS The internet's system for turning names like example.com into IP addresses.
  • Ethernet (and USB Ethernet dongle) The standard for wired computer networks: the cables, plugs and signals that connect devices.
  • HTTP The protocol web browsers and servers use to request and send pages and data.
  • NetFlow (network flow records) A way for routers to record a summary of every network conversation: who talked to whom, when, and how much.
  • SSH Encrypted protocol for logging in to and running commands on another computer.
  • syslog The standard way computers and network devices send log messages to a log server.
  • TCP The internet protocol that delivers data reliably and in order between two programs.
  • TLS Transport Layer Security: the encryption that protects data on its way across a network (the S in HTTPS).
  • UDP User Datagram Protocol: a simple, connectionless way to send small messages over a network, with no delivery guarantee and no encryption.
  • WebSocket A web standard for a long-lived, two-way connection between a browser and a server.
  • WireGuard Simple, fast, modern VPN protocol and software.

Standards

  • VLAN A way to split one physical network into separate virtual networks.
  • Wi-Fi Wireless networking based on the IEEE 802.11 standards.
  • WPA2 and WPA3 The security standards that encrypt Wi-Fi and control who can join it.

Things

  • Access point (Wi-Fi) The device that broadcasts a Wi-Fi network and connects wireless devices to the wired network.
  • Network switch (managed switch) A box with many network sockets that passes traffic between the wired devices plugged into it.
  • PHY (network chip) The chip, or part of a chip, that turns a network connection's data into signals on the cable and back.
  • Remote console (KVM over IP) A small device that lets someone see a computer's screen and use its keyboard and mouse over the network.
  • Router A device that passes traffic between separate networks, such as a home network and the internet.

Tools

  • Cloudflare Tunnel Cloudflare's service that publishes something on a private network to the internet without opening it to incoming connections.
  • Headscale Open-source, self-hosted replacement for Tailscale's coordination server.
  • Kea (DHCP server) Open-source DHCP server from ISC that hands out IP addresses to devices on a network.
  • nginx Widely used open-source web server and reverse proxy.
  • OPNsense Open-source firewall and router software, built on FreeBSD.
  • pfSense Firewall and router software built on FreeBSD, made by Netgate.
  • Port scanning Knocking on many ports of a machine in turn to find out which services are listening.
  • Tailscale A commercial service that builds a private network between your devices on top of WireGuard, managed from the company's servers.
  • udp2raw Open-source tool that disguises UDP traffic as TCP so it can pass networks that block UDP.
  • wstunnel Open-source tool that carries other network traffic inside a WebSocket connection.
  • ZeroTier Service and software that joins devices anywhere into one private virtual network.

Related topics