Networking terms every server owner meets

Running a server means reading words like CIDR, MTU, NAT and TTL in error messages and guides. This glossary explains each term in plain language, says where you will meet it on a Linux VPS, and shows the command that lets you see it on your own machine. Read it top to bottom once, then come back when a term puzzles you.

Networking and security guide, updated 2026-12-03

What is an IP address?

An IP address identifies a network interface so packets can find it. IPv4 addresses are 32 bits, written as four numbers from 0 to 255, such as 203.0.113.10. There are only about four billion of them, which is why they are scarce and why every server here gets exactly one. IPv6 addresses are 128 bits, written in hexadecimal groups, such as 2001:db8:1234:5678::1. The supply is effectively unlimited.

Public addresses are reachable from the internet. Private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are used inside homes, offices and container networks and are never routed on the internet. Docker, for example, puts containers in 172.17.0.0/16 by default.

See yours with ip -br a. More detail is in IPv4 and IPv6 addresses.

What do subnet and CIDR mean?

A subnet is a block of addresses that share the same leading bits. CIDR notation writes the block as an address plus the number of fixed bits after a slash. 192.168.1.0/24 fixes the first 24 bits, leaving 8 bits, so 256 addresses from 192.168.1.0 to 192.168.1.255. A /32 on IPv4 is a single address; a /64 on IPv6 is the standard size for one network segment.

Older tools show the same idea as a netmask: /24 equals 255.255.255.0. You meet CIDR in firewall rules (ufw allow from 198.51.100.0/24), in WireGuard AllowedIPs, and in network config files. The ipcalc package prints the range for any CIDR block if you are unsure.

What is a gateway and what is a route?

A route tells the kernel where to send packets for a given destination. The default route covers everything that has no more specific route, and the router it points to is the default gateway. Without it, the server can reach only its own link.

$ ip route
default via 203.0.113.1 dev eth0 onlink
203.0.113.1 dev eth0 scope link

onlink means the gateway is reached directly on the cable even though it is not inside the address prefix. A router forwards packets between networks; a switch forwards frames inside one network by MAC address. A switch never looks at IP addresses; a router always does. In a data centre both functions sit between your server and the internet.

What are MTU and MSS?

The MTU (maximum transmission unit) is the largest packet an interface sends without splitting it. Ethernet uses 1500 bytes. Tunnels add headers, so a WireGuard interface typically uses 1420. The MSS (maximum segment size) is the largest TCP payload, normally the MTU minus 40 bytes for IPv4 or 60 for IPv6.

When the MTU along a path is smaller than the endpoints think, large packets vanish while small ones pass. The classic symptom: SSH logs in fine, but a big git clone or a web page with large responses hangs. Check your interface with ip link show eth0 and test a path with ping -M do -s 1472 example.com. The full story is in MTU and MSS.

What is NAT?

Network address translation rewrites addresses in packets as they pass a router. The common form, often called masquerading, lets many private addresses share one public address: a home router does this for every phone and laptop behind it. Port forwarding (destination NAT) does the reverse and sends traffic for one public port to a private machine.

On your VPS you meet NAT in two places. Docker uses it so containers in 172.17.0.0/16 can reach the internet and so published ports reach the right container. A WireGuard VPN server uses it so clients browse through the server address. With nftables the rule is a single line in a postrouting chain: oifname "eth0" masquerade. IPv6 rarely needs NAT because every device can have its own public address.

TCP, UDP and ports: how do they fit together?

TCP sets up a connection with a handshake, numbers every byte, resends what is lost and delivers data in order. It is used for web, SSH, mail and databases. UDP just sends independent datagrams with no handshake and no resending. It is used where speed beats completeness or where the application handles loss itself: DNS queries, game traffic, voice and video, WireGuard and QUIC (HTTP/3).

This matters for firewalls: a rule for 443/tcp does not open 443/udp, so HTTP/3 needs both. It also matters for testing: nc -vz host 22 checks a TCP port, but a closed UDP port often looks the same as an open one because UDP does not reply. Use the application itself to test UDP services.

A port is a number from 1 to 65535 that picks one service on an address. Well-known examples: 22 for SSH, 25 for SMTP between mail servers, 53 for DNS, 80 and 443 for HTTP and HTTPS, 3306 for MySQL, 5432 for PostgreSQL, 51820 for WireGuard. Ports below 1024 need root or a capability to bind.

A socket is the combination of protocol, address and port. List the ones your server listens on with:

ss -tulnp

A service bound to 127.0.0.1 is reachable only from the server itself; one bound to 0.0.0.0 or [::] is reachable from outside unless the firewall blocks it. Outgoing port 25 is opened on request through support, as described in the mail server use case.

What are DNS and TTL?

The Domain Name System turns names into addresses and other data. Your server asks a resolver, the resolver asks the authoritative servers for the domain, and the answer is cached. Records have types: A for IPv4, AAAA for IPv6, MX for mail, TXT for text, CNAME for aliases.

TTL (time to live) is how many seconds a cached answer may be reused. A record with TTL 3600 can be served from cache for up to an hour after you change it. Lower the TTL a day before a planned move, then raise it again afterwards. The whole system is explained in how DNS works.

TTL also exists in IP packets, where it counts router hops; traceroute uses it to discover the path.

Latency, jitter, packet loss: what do they measure?

Latency is the time a packet needs to travel, usually shown as round trip time (RTT) by ping. It is set mostly by distance, which is why choosing a city close to your users matters; see locations. Jitter is how much latency varies from one packet to the next; voice, video and games suffer from it more than from steady latency. Packet loss is the share of packets that never arrive; TCP hides it by resending, at the cost of speed.

Measure all three at once with mtr, which combines ping and traceroute per hop:

mtr -rwc 100 example.com

Read the last line first: loss shown only at a middle hop is usually that router ignoring pings, not real loss. See diagnosing network problems with mtr.

Bandwidth or traffic quota: which is which?

Bandwidth is a rate: how much data can pass per second, measured in bits per second. Traffic is an amount: how much data passed over a period, measured in bytes. A fast link can still use little traffic, and a slow one can use a lot if it runs all month.

Plans here include a monthly amount of outgoing traffic; incoming traffic is free. For example, P4 includes 20 TB per month in Europe. Extra outgoing traffic costs $0.72 per TB in Europe and North America and $4.98 per TB in Asia-Pacific and Sao Paulo. Track usage on the server with vnstat (apt install vnstat, then vnstat -m). See pricing for every plan.

What are the OSI layers in simple terms?

The OSI model splits networking into seven layers. For day-to-day server work, four are enough:

LayerWhat it handlesTools on your server
2, linkFrames between neighbours, MAC addressesip link, ip neigh
3, networkIP addresses and routingip addr, ip route, ping
4, transportTCP and UDP, portsss, nc, firewall rules
7, applicationHTTP, DNS, SSH, SMTPcurl, dig, service logs

When something is broken, work upwards: is the link up, is there an address and route, does the port answer, does the application respond correctly.

Questions about this guide

Is a /64 IPv6 network the same as one address?

No. It is a network of about 18 quintillion addresses routed to your server. One is configured at first boot, and you can add more.

Does incoming traffic count against my plan?

No. Only outgoing traffic is counted. Incoming traffic is free on every plan and in every city.

What is the difference between a switch and a router?

A switch connects devices inside one network using MAC addresses; a router connects separate networks using IP addresses.

Why does ping work but my website does not load?

Ping uses ICMP and proves only that the address is reachable. Check that the web server listens with ss -tlnp and that ports 80 and 443 are open in the firewall.

What does 0.0.0.0 mean in a listen address?

It means all IPv4 addresses on the server. The IPv6 equivalent is [::].

How can I see where my traffic goes?

Use ss -tunp for current connections and vnstat for daily and monthly totals per interface.