Tom's wiki

Networks

How networks work.

Learn

Terminology

Basics

IP addresses are used to identify computers connected to the internet. Ports are used to identify programs running on these computers. Many programs listen on "standard" ports, e.g. HTTP(S) servers listen on 80(443). See the list of common port numbers.

Packets are being delivered much like physical mail: the combination of an IP address and a port (like a house address and an apartment number) is used to find the destination.

See also What happens when you type google.com into your browser and press enter.

Layers

The OSI model:

Sockets

A network socket is a communication endpoint for exchanging data between programs over the network. A socket address consists of a transport protocol (TCP/UDP), an IP address, and a port number.

CIDR notation

Classless Inter-Domain Routing

A compact representation of a subnetwork. The "mask" suffix after / represents the number of significant bits, from left to right. The smaller the mask, the more IP addresses are available.

Private network addresses:

For most purposes, /24 subnets are a reasonable choice.

DNS

Domain Name System, a phone book for the internet.

DNS query

Learn:

Record types:

CDN

Content Delivery Network. A distributed network of servers that broadcasts web content to users. The servers are distributed around the world, significantly reducing delivery time compared to a single server.

CDN

Privacy

Firewall

Tools:

NAT

#todo https://en.wikipedia.org/wiki/Network_address_translation

P2P

#todo https://en.wikipedia.org/wiki/Peer-to-peer

DHCP

Dynamic Host Configuration Protocol

A DHCP server dynamically assigns private IP addresses to devices on the local network. Its role is usually performed by the router.

PGP

PGP is a standard for E2E email encryption. GPG (GNU Privacy Guard) is a GNU's implementation of PGP.

Tools