Guide and reference
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.
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.
ReferenceTCP three-way handshake
TCP’s three-way handshake synchronizes connection state and initial sequence information.
ReferenceTCP connection states
TCP connection states describe establishment, data transfer and termination progress.
ReferenceTCP retransmission
TCP retransmits unacknowledged data according to loss-detection and recovery mechanisms.
ReferenceTCP flow control
TCP flow control limits sending according to the receiver’s advertised capacity.
ReferenceTCP congestion control
TCP congestion control adapts sending behavior to inferred network-path capacity and congestion.
ReferenceUDP
UDP transports independent datagrams without built-in ordered delivery or retransmission guarantees.
ReferenceQUIC
QUIC supplies encrypted multiplexed transport and recovery over UDP independently of TCP.
ReferenceICMP
ICMP carries IP control and error messages without TCP or UDP port numbers.
ReferenceARP
ARP resolves IPv4 neighbors to link-layer addresses on a local network.
ReferenceNDP
NDP uses ICMPv6 to discover IPv6 neighbors, routers and local reachability.
ReferenceDHCP
DHCP leases address and network configuration to clients according to server policy.
ReferenceTCP vs. UDP
TCP offers an ordered reliable byte stream; UDP supplies independent datagrams with different application responsibilities.
ReferencePort numbers
Port numbers identify transport endpoints but do not prove the application protocol actually running.
ReferenceEphemeral ports
Ephemeral ports are dynamically selected local transport ports with system-specific ranges and allocation rules.
ReferenceSocket connections
Sockets are operating-system communication endpoints associated with addresses and protocol-specific state.