Skip to content

Glossary

The terms, collected in one place. Each is defined the way this guide uses it.

Address — A number naming a machine on a network (an IP address, such as 127.0.0.1 or 10.99.0.2). A remote address is the far end of a connection from your machine's point of view.

Bounding set — The ceiling on the capabilities any process in an environment can hold, however they are granted. If a capability is not in the bounding set, no setcap or sudo inside that environment can supply it.

Burst — A transfer that delivers its bytes in a very short time compared with the sampling window — the shape bandwhich's rates describe worst.

Capability — One slice of the root administrator's power on Linux, granted on its own. bandwhich needs four: cap_net_raw, cap_net_admin, cap_sys_ptrace, and cap_dac_read_search.

Connection — One conversation between two endpoints, identified by their addresses, their ports, and the protocol. The unit of bandwhich's second table.

DNS (Domain Name System) — The internet's address book. bandwhich's resolver uses it in reverse, asking which name belongs to an address.

Inode — The identity number the kernel gives a file or socket. A socket's inode is the key the matcher joins on: the same number appears in the kernel's socket tables and in the owning process's /proc/<pid>/fd list.

Interface — A port, physical or virtual, through which a machine's traffic passes — lo for loopback, eth0 or wlan0 for real networks. bandwhich sniffs interfaces.

Loopback — The interface a machine uses to talk to itself (address 127.0.0.1). Traffic on it crosses no wire, and both of its ends are local — the fact behind loopback's odd rows.

Matcher — The part of bandwhich that joins a sniffed connection to the process that owns it, via the kernel's socket tables and /proc.

Port — A numbered door on a machine (0–65535) that one program listens at or connects from, so many programs can share one address. Written after a colon: 127.0.0.1:18090.

Privilege — Permission to perform a gated operation. Packet capture is privileged on every operating system; bandwhich cannot start without it.

Process — A running program, with a number (its pid) and a name. The unit of bandwhich's first table.

Protocol — The rules of a conversation, named on each connection row — in practice tcp (the reliable, connected kind) or udp (the fire-and-forget kind).

Rate — Bytes per second over bandwhich's short smoothing window, shown up (sent) first, then down (received). A sample, not a measurement.

Raw mode — bandwhich's plain-line output (--raw), one line per process, connection, and remote address per refresh. The form scripts and logs use.

Resolver — The part of bandwhich that turns addresses into hostnames in the background, on a best-effort basis. Off with --no-resolve.

Sampler — The part that counts bytes between refreshes and smooths them into rates. The author of every ramp, overshoot, and held figure.

setcap — The Linux command that attaches capabilities to a program file, so the program runs with them without root. The standing-grant route of chapter 4.

Sniffer — The part of bandwhich that watches packets on an interface and records their sizes and endpoints. Also, generally, any tool that watches traffic this way.

Socket — One end of a connection as the kernel keeps it: an entry in the socket tables, held by a process, with an inode for a name tag.

Total utilization — The --total-utilization mode: running totals of attributed bytes instead of per-second rates.