CUNP key terms
CUNP · Get comfortable with the vocabulary.
- inode
- Related: file descriptor, hard link
A filesystem data structure that stores a file's metadata, such as permissions, ownership, size, and pointers to data blocks, but not its name. Directories map names to inode numbers.
- hard link
- Related: inode, symbolic link
An additional directory entry pointing to the same inode as an existing file. All links share content and metadata; the data is removed only when the last link is deleted.
- symbolic link
- Related: hard link, inode
A special file containing a pathname that the kernel resolves when accessed. It can cross filesystems and can dangle if the target is removed, unlike a hard link.
- file descriptor
- Related: inode, socket
A small non-negative integer a process uses to refer to an open file, socket, or pipe. Descriptors 0, 1, and 2 are conventionally standard input, output, and error.
- process signal
- Related: daemon, systemd unit
An asynchronous notification delivered to a process, such as SIGTERM or SIGHUP, that interrupts normal execution. Handlers may catch most signals, but SIGKILL and SIGSTOP cannot be caught or ignored.
- daemon
- Related: systemd unit, process signal
A long-running background process detached from a controlling terminal that provides a service, such as sshd or named. Modern systems usually start daemons under a service manager rather than self-daemonizing.
- systemd unit
- Related: daemon, socket activation
A declarative configuration file describing a service, socket, timer, or mount that systemd manages. Unit files define dependencies, start commands, restart behavior, and sandboxing options.
- socket activation
- Related: systemd unit, listen backlog
A technique where the service manager binds a listening socket and passes it to a service on first connection, letting the service start on demand and restart without dropping queued connections.
- OSI model
- Related: encapsulation, TCP/IP stack
A seven-layer reference framework describing network functions from physical signaling up to application services. It is a teaching and diagnostic model; real TCP/IP stacks do not map cleanly onto all seven layers.
- encapsulation
- Related: OSI model, MTU
The process of wrapping data in successive protocol headers as it moves down the stack, so each layer adds its own control information before transmission and strips it on receipt.
- MTU
- Related: fragmentation, path MTU discovery
Maximum transmission unit, the largest payload a link can carry in one frame, typically 1500 bytes on Ethernet. Mismatched MTU along a path causes fragmentation or silently dropped large packets.
- fragmentation
- Related: MTU, path MTU discovery
Splitting an IP datagram into smaller pieces so it fits a link's MTU. IPv4 routers may fragment; IPv6 routers do not, leaving fragmentation to the sender.
- path MTU discovery
- Related: MTU, fragmentation
A mechanism that determines the smallest MTU along a path by setting the don't-fragment flag and relying on ICMP 'fragmentation needed' messages. Blocked ICMP breaks it and causes connectivity stalls.
- three-way handshake
- Related: TCP state, listen backlog
The TCP connection setup exchange: the client sends SYN, the server replies SYN-ACK, and the client sends ACK. It synchronizes sequence numbers and confirms both directions are reachable.
- listen backlog
- Related: three-way handshake, socket
The queue of completed or pending connections a listening socket will hold before the kernel refuses or drops new SYNs. Too small a backlog causes connection timeouts under load.
- TCP state
- Related: three-way handshake, connection tracking
One of the defined phases of a TCP connection, such as ESTABLISHED, TIME_WAIT, or CLOSE_WAIT. Inspecting states reveals hung applications, half-closed connections, and port exhaustion.
- UDP
- Related: TCP state, port
A connectionless transport protocol that sends datagrams without handshakes, ordering, or retransmission. Applications such as DNS and streaming add their own reliability where needed.
- port
- Related: socket, UDP
A 16-bit number identifying a service endpoint within a host's IP address. Servers listen on well-known or registered ports while clients use ephemeral source ports.
- socket
- Related: port, file descriptor
An operating system endpoint for network communication, identified by protocol, local address and port, and often remote address and port. Applications read and write sockets through file descriptors.
- CIDR notation
- Related: subnet mask, routing table
A compact way to write an IP network and its prefix length, such as 192.0.2.0/24. The prefix length gives the number of leading network bits and determines the address range and host count.
- subnet mask
- Related: CIDR notation, routing table
A bit pattern that separates the network portion of an IPv4 address from the host portion. It is the dotted-decimal equivalent of a CIDR prefix length.
- ip command
- Related: routing table, network namespace
The modern Linux utility from iproute2 for inspecting and changing addresses, links, and routes. It replaces legacy tools such as ifconfig and route on current distributions.
- network namespace
- Related: ip command, veth pair
A Linux kernel isolation feature giving a process its own set of interfaces, addresses, routes, and firewall rules. Containers commonly rely on namespaces plus virtual Ethernet pairs.
- veth pair
- Related: network namespace, bridge
A virtual Ethernet device pair whose two ends are linked: a frame sent into one end emerges from the other. Veth pairs connect namespaces or bridges to the host network.
- bridge
- Related: veth pair, ARP
A software switch that forwards frames between attached interfaces based on MAC addresses. Linux bridges commonly join virtual machines or containers to a physical uplink.
- ARP
- Related: bridge, NDP
Address Resolution Protocol maps an IPv4 address to a link-layer MAC address on the local segment. Neighbor caches store results, and stale or spoofed entries cause connectivity or security problems.
- NDP
- Related: ARP, ICMP
Neighbor Discovery Protocol performs address resolution, router discovery, and duplicate address detection for IPv6 using ICMPv6. It replaces ARP and parts of ICMP router discovery in IPv4.
- ICMP
- Related: path MTU discovery, ping
Internet Control Message Protocol carries error and diagnostic messages between hosts and routers, such as destination unreachable and echo request. Firewalls must permit selected ICMP types for correct operation.
- routing table
- Related: default gateway, policy routing
The kernel's list of destination prefixes with next hops, interfaces, and metrics used to choose where to send each packet. The most specific matching prefix wins.
- default gateway
- Related: routing table, policy routing
The router to which packets are sent when no more specific route matches the destination. Without a working default route, a host can reach only directly connected networks.
- policy routing
- Related: routing table, network namespace
Selecting routes using rules beyond destination address, such as source address, mark, or incoming interface. Linux implements it with ip rule and multiple routing tables.
- netfilter
- Related: nftables, connection tracking
The Linux kernel framework providing packet filtering, NAT, and connection tracking hooks. Userspace tools such as iptables and nftables configure rules that netfilter evaluates.
- nftables
- Related: netfilter, connection tracking
The current Linux packet-filtering subsystem and userspace tool, replacing iptables. It uses tables, chains, and rules with a unified syntax and supports sets and maps for efficient matching.
- connection tracking
- Related: netfilter, NAT
The netfilter feature that records the state of flows so rules can match on NEW, ESTABLISHED, or RELATED rather than only addresses and ports. It also underpins stateful NAT.
- NAT
- Related: connection tracking, netfilter
Network Address Translation rewrites addresses or ports as packets pass a router, letting many hosts share a public address. It complicates inbound connections and protocols that embed addresses.
- traffic shaping
- Related: routing table, netfilter
Deliberately delaying or queuing packets to keep transmission within a rate limit and smooth bursts. Linux implements it with queueing disciplines such as tbf and htb attached to interfaces.
- SSH public key authentication
- Related: PAM, TLS certificate
A login method where the client proves possession of a private key matching an authorized public key on the server. It avoids sending passwords and is preferred over password login.
- PAM
- Related: SSH public key authentication, sudo
Pluggable Authentication Modules, a framework of stacked modules that services such as sshd and login consult for authentication, account, session, and password checks. Misordered stacks can lock out access.
- sudo
- Related: PAM, file descriptor
A program that runs commands as another user, usually root, according to policy in sudoers. Rules can be limited by user, host, command, and options, and every use is logged.
- TLS certificate
- Related: SSH public key authentication, SNI
A signed data structure binding a public key to an identity, used to authenticate servers and optionally clients. Validation checks the chain to a trusted root, validity dates, and name match.
- SNI
- Related: TLS certificate
Server Name Indication, a TLS extension in which the client sends the requested hostname before the handshake completes, letting one address serve many certificates.
- tcpdump
- Related: ICMP, TCP state
A command-line packet capture tool that writes or displays traffic matching a filter expression. Captures are often saved as pcap files for analysis in Wireshark.
- ping
- Related: ICMP, traceroute
A utility that sends ICMP echo requests and reports round-trip times and loss. Failure may indicate a dead host, a blocked ICMP type, or a routing problem rather than a down host.
- traceroute
- Related: ping, ICMP
A tool that reveals the path to a destination by sending packets with increasing time-to-live values and collecting the resulting ICMP errors. Blocked responses appear as missing hops.
- shell pipeline
- Related: file descriptor, process substitution
A chain of commands where the standard output of one becomes the standard input of the next, joined by the pipe operator. Each stage runs concurrently as a separate process.
- process substitution
- Related: shell pipeline, file descriptor
A bash feature that presents a command's output or input as a temporary filename, written as <(command) or >(command), so tools expecting files can consume streams.
- exit status
- Related: shell pipeline, set -e
The integer a process returns to its parent when it finishes, where zero conventionally means success. Shells expose it as $? and use it to drive conditional logic.
- set -e
- Related: exit status, shell pipeline
A shell option that makes a script exit when a simple command fails. Its interaction with pipelines, conditionals, and command substitution is subtle, so many scripts add pipefail deliberately.