Skip to content
עברית

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.

Zaltzman.net · Your choice

Privacy preferences

Choose whether to link returning visits and remember display settings. Public content remains available without optional cookies.

Essential cookies

Always on

Secure forms, login sessions and your privacy choice.

What is included?

Session and CSRF protection, your privacy choice for up to 180 days, and Cloudflare security services. These do not authorise optional visitor analytics.

Analytics & returning visits

Store page history, visit times, IP and approximate location under one browser identifier, including return visits after an IP change.

How is this information used?

Authorised administrators use the history to understand usage and improve the site. No targeted ads, keystroke recording or fingerprinting. Turning this off deletes the history linked to your current identifier from the active database.

Remember display preferences

Save text size, contrast and other accessibility choices locally for your next visit.

Download my browser history

Turning analytics off deletes the current history and stops new collection.

Website operator: The Zaltzman Family
[email protected]

Zaltzman.net · Display settings

Accessibility tools

Adjust reading and navigation to suit you. Analytics consent is not required.

Text size
100%