Guide
TCP and UDP
Transport protocols connect applications across an IP network. TCP provides an ordered byte stream with retransmission, flow control and congestion control. UDP carries independent datagrams without those guarantees. QUIC builds secure multiplexed transport over UDP and supplies its own connection and recovery mechanisms.
Meaning and purpose
Transport protocols connect applications across an IP network. TCP provides an ordered byte stream with retransmission, flow control and congestion control. UDP carries independent datagrams without those guarantees. QUIC builds secure multiplexed transport over UDP and supplies its own connection and recovery mechanisms.
How it works in context
TCP establishes connection state through a handshake and acknowledges sequence space. Receiver windows constrain sender volume, while congestion control responds to path conditions. A UDP application must decide how to handle loss, ordering and retries. ICMP supplies network control information and does not use TCP or UDP port numbers.
Technical terms in this section
TCP three-way handshake
TCP’s three-way handshake synchronizes connection state and initial sequence information.
TCP connection states
TCP connection states describe establishment, data transfer and termination progress.
TCP retransmission
TCP retransmits unacknowledged data according to loss-detection and recovery mechanisms.
TCP flow control
TCP flow control limits sending according to the receiver’s advertised capacity.
TCP congestion control
TCP congestion control adapts sending behavior to inferred network-path capacity and congestion.
UDP
UDP transports independent datagrams without built-in ordered delivery or retransmission guarantees.
QUIC
QUIC supplies encrypted multiplexed transport and recovery over UDP independently of TCP.
ICMP
ICMP carries IP control and error messages without TCP or UDP port numbers.
ARP
ARP resolves IPv4 neighbors to link-layer addresses on a local network.
NDP
NDP uses ICMPv6 to discover IPv6 neighbors, routers and local reachability.
DHCP
DHCP leases address and network configuration to clients according to server policy.
TCP vs. UDP
TCP offers an ordered reliable byte stream; UDP supplies independent datagrams with different application responsibilities.
Port numbers
Port numbers identify transport endpoints but do not prove the application protocol actually running.
Ephemeral ports
Ephemeral ports are dynamically selected local transport ports with system-specific ranges and allocation rules.
Socket connections
Sockets are operating-system communication endpoints associated with addresses and protocol-specific state.
Operational checks and security
Inspect retransmissions, round-trip time, receiver limits and application timing together. An open TCP port says nothing by itself about the protocol’s authentication. UDP “no response” is ambiguous: the service may be silent, filtered, lost or absent.
Read-only example
These commands inspect the surrounding system or protocol. They do not automatically change its configuration or establish every property of this term. Replace example targets only with destinations you are authorized to inspect.
ss -tuna
ss -s
Sources and further reading
These explanations are educational. Implementations, policies and standards evolve; check the current specification and software version before changing a system.