← Glossary

What Is TCP/IP?

TCP/IP is the family of Internet protocols and the layered model that organizes them, with IP moving independent datagrams between hosts and TCP, UDP and other transports giving applications the delivery behaviour they need.

Updated:

TCP/IP is the name given to the Internet protocol suite: the set of protocols that lets computers on different networks exchange data, together with the layered model that describes how those protocols divide the work. The name joins its two most visible members, the Transmission Control Protocol and the Internet Protocol, but the suite is wider than that pair. UDP, ICMP, and the many application protocols that run on top of them are part of the same family. Any device that reaches the public Internet, from a phone to a proxy server, implements some version of this stack.

IP forwards packets across networks without guaranteeing delivery. Transport protocols add the behaviour applications need, such as TCP's ordered byte stream. This separation lets an application work across different physical links without managing every intervening router or radio.

Layers and Encapsulation

RFC 1122 describes the TCP IP model as four layers. Application protocols include HTTP, SMTP and DNS. TCP and UDP provide transport between application processes. IP and ICMP occupy the internet layer, handling datagrams and related control messages. The link layer carries traffic across the directly attached network, such as Ethernet or Wi-Fi.

Encapsulation wraps one layer's data inside another. For HTTP over TCP, application bytes become TCP segments with ports, sequence numbers and checksums. IP adds addresses and identifies the enclosed transport; a link-layer frame carries the packet to the next hop. The receiver interprets these layers in reverse to deliver the payload to the application.

This is not an exact copy of the seven-layer OSI model. Internet protocols group some responsibilities differently, so the models are useful guides rather than interchangeable numbering systems.

How TCP and IP Work Together

IP, defined for version 4 in RFC 791 and for version 6 in RFC 8200, is a connectionless datagram service. IP provides addressing and forwarding. IPv4 also allows fragmentation by routers unless prohibited; in IPv6, routers do not fragment packets, leaving that task to the source when needed. The specification is explicit that there are no acknowledgements, no retransmissions and no flow control at this layer. Every datagram is treated as independent of every other datagram, and each one may be lost, duplicated, delayed or delivered out of order. Routers forward datagrams one hop at a time based on the destination address, decrementing the time-to-live field in IPv4 or the hop limit in IPv6 so that a looping packet eventually dies.

TCP, specified in RFC 9293, provides a reliable, ordered byte stream. A normal connection begins with SYN, SYN-ACK and ACK messages. Sequence numbers and acknowledgements track delivery; retransmission repairs loss. Receive windows limit how much unconsumed data is outstanding, while congestion control responds to network load. The two addresses and ports identify the connection, allowing many conversations to coexist between hosts.

A Request Through the Stack

For a new HTTPS connection using HTTP/1.1 or HTTP/2, a browser obtains an address, establishes TCP, negotiates TLS and sends its request. IP routing forwards the resulting packets, while TCP handles recovered loss and ordering. The application still experiences delay or failure if recovery cannot complete. HTTP/3 follows a different transport path, using QUIC over UDP.

TCP/IP vs Individual Transport Protocols

Because the suite includes more than one transport, it helps to be clear about what each contributes. TCP provides connection setup, ordered delivery, retransmission and flow control. UDP, defined in RFC 768, preserves datagram boundaries and adds ports, a length field and a checksum on top of IP, leaving reliability decisions to the application. QUIC, defined in RFC 9000, runs over UDP and rebuilds ordered streams, retransmission and congestion control with an integrated TLS handshake. All three depend on the same internet layer and share the same IP addresses.

ProtocolLayerWhat it addsWhat it leaves to others
IP (v4 or v6)InternetAddressing and forwarding; fragmentation rules differ by versionReliability, ordering, flow control
TCPTransportConnections, sequence numbers, retransmission, windowingMessage boundaries, encryption
UDPTransportDatagram boundaries, ports and a checksum normally required in IPv6Delivery guarantees, ordering, congestion control
QUICTransport over UDPStreams, reliability, integrated TLS 1.3Lower-layer addressing and routing

Choosing a transport is an application decision. A file transfer or a web page wants every byte in order, so it uses TCP or QUIC. Real-time voice often favours timely media over waiting for every lost packet, using protocols over UDP with their own timing and sequence information. Relays and network restrictions can lead to other transports. The transport and internet layers are separate precisely so that this choice can be made without touching the routing infrastructure.

Where TCP/IP Appears in Practice

The stack is the shared vocabulary for most network troubleshooting. A ping commonly uses ICMP echo messages to test for a reply; silence can also mean filtering. Traceroute varies TTL or hop limit to solicit responses from intermediate routers, but not every router responds or reveals the full path. A firewall rule that permits TCP port 443 but drops UDP port 443 is a transport-layer decision that will let HTTPS over TCP through while blocking HTTP/3. Network address translation rewrites IP addresses and ports in flight, which is why a home router can share one public address among many devices.

Proxies and tunnels also fit into the layered picture. An HTTP proxy operates at the application layer and understands requests. SOCKS is an application-layer proxy protocol that provides transport-oriented relaying, relaying TCP connections and optionally UDP datagrams without interpreting them. A VPN typically encapsulates whole IP datagrams inside another protocol, so the stack is nested: an inner IP datagram travels as the payload of an outer transport connection. Knowing which layer a tool works at explains what it can and cannot see or change.

Limitations and Common Misunderstandings

TCP/IP does not provide confidentiality or authentication by itself. IP headers and TCP headers travel in the clear, and the payload is readable unless another mechanism protects it, such as TLS above transport or IPsec at the internet layer. Base IP does not cryptographically authenticate the source address; network filtering may still reject implausible sources, which is why spoofed packets are possible and why protocols that care about identity add their own checks.

Reliability in TCP means data arrives intact and in order if the connection survives. It does not mean fast delivery, and it does not mean the connection stays alive indefinitely. RFC 9293 notes that TCP has no built-in liveness detection, so an idle connection may be silently dropped by a middlebox without either endpoint learning about it until the next send. Finally, the two IP versions do not interoperate directly. A host with only IPv6 connectivity needs a translation or dual-stack arrangement to reach an IPv4-only server. The layered model describes how the pieces fit together; it does not remove the work of operating them.

Frequently asked questions

Is TCP/IP one protocol?

No. TCP/IP names a suite of protocols and the layered model that organizes them. TCP and IP are two separate protocols at different layers, and the same family includes UDP, ICMP and the application protocols above them. The name survives because those two members are the most widely recognized.

Can applications use UDP instead of TCP?

Yes. UDP is part of the same suite and runs over IP. DNS, many media transports and QUIC-based HTTP/3 use it. UDP supplies datagram boundaries and port addressing, while the application or a protocol above UDP decides how to handle loss, ordering and congestion.

Which layer handles routing?

The internet layer. IP carries datagrams from the source host to the destination host, and routers forward each one independently using the destination address. Transport protocols such as TCP are not involved in path selection; they operate end to end between the two hosts and only see what arrives.

Does TCP/IP encrypt traffic?

Basic IP and TCP do not encrypt payloads. Security protocols in the wider networking stack can add protection: TLS secures application traffic, while IPsec can protect IP packets. The encrypted fields and visible metadata depend on the mechanism and mode, so using TCP/IP alone is not a confidentiality guarantee.

What is the difference between IPv4 and IPv6 in the TCP/IP model?

Both are internet-layer protocols that provide the same role for TCP and UDP above them. IPv6 uses 128-bit addresses instead of 32-bit, simplifies the fixed header and replaces time-to-live with a hop limit. The two versions do not talk to each other directly, so hosts often run both.