TCP/IP

Transmission Control Protocol / Internet Protocol—the conceptual model and set of communications protocols used on the Internet.

The Transmission Control Protocol/Internet Protocol (TCP/IP) is a suite of communication protocols used to interconnect network devices on the internet and similar computer networks. It forms the foundational layer for data transmission across the internet. TCP operates at the transport layer, providing reliable, ordered, and error-checked delivery of a stream of octets (bytes) between applications running on hosts communicating via an IP network. It achieves reliability through mechanisms like sequence numbers, acknowledgments, and retransmissions. IP, on the other hand, operates at the network layer and is responsible for addressing, routing, and delivering packets of data from a source host to a destination host. IP is a connectionless protocol, meaning it does not guarantee delivery or order. TCP and IP work together: TCP breaks down messages into packets, numbers them, and ensures they are reassembled correctly at the destination, while IP handles the routing of these packets across different networks. The suite also includes protocols like UDP (User Datagram Protocol), which offers a faster but less reliable alternative to TCP, and ICMP (Internet Control Message Protocol), used for error reporting and diagnostics.

        graph LR
  Center["TCP/IP"]:::main
  Rel_arpanet["arpanet"]:::related -.-> Center
  click Rel_arpanet "/terms/arpanet"
  Rel_osi_model["osi-model"]:::related -.-> Center
  click Rel_osi_model "/terms/osi-model"
  Rel_websocket["websocket"]:::related -.-> Center
  click Rel_websocket "/terms/websocket"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧠 Knowledge Check

1 / 1

🧒 Explain Like I'm 5

TCP/IP is like the global postal system. IP is the address on the envelope that tells the postman where to go. TCP is like an insurance policy that double-checks every letter arrived and puts them in the right order if they got mixed up.

🤓 Expert Deep Dive

The TCP/IP model, often contrasted with the OSI model, is a practical, four-layer abstraction (Application, Transport, Internet, Link) that evolved from ARPANET. TCP's reliability is built upon a three-way handshake (SYN, SYN-ACK, ACK) for connection establishment and a four-way handshake for termination, managing flow control via sliding windows and congestion control using algorithms like slow start, congestion avoidance, fast retransmit, and fast recovery. IP's addressing scheme (IPv4 and IPv6) and routing protocols (e.g., BGP, OSPF) are critical for global network reachability. The inherent trade-off in TCP is reliability versus latency; UDP offers lower latency by sacrificing these guarantees. Security considerations, such as the vulnerability of IP to spoofing and the need for protocols like TLS/SSL at the application layer, are paramount.

📚 Sources