A TCP/IP network is based on two interacting core protocols: the Transmission Control Protocol (TCP) and the Internet Protocol (IP). Together they form the internet’s fundamental communication protocol and the basis for practically every data transfer between connected devices, from websites via email to file transfer and real-time communication.
The division of labour: TCP and IP
- Internet Protocol (IP): connectionless, responsible for addressing and routing. Every device is assigned a unique IP address by which data packets are routed through the network, with no guarantee that a packet actually arrives.
- Transmission Control Protocol (TCP): connection-oriented, responsible for reliable transmission. TCP ensures packets arrive complete, undamaged and in the correct order, and automatically requests lost packets again.
The three-way handshake
Before data is transferred over TCP, client and server establish a connection via a fixed sequence:
- SYN: the client sends a request to establish a connection.
- SYN-ACK: the server confirms and signals readiness.
- ACK: the client confirms in turn – the connection stands.
This mechanism is also security-relevant: in a SYN flood, a classic form of DDoS attack, massive numbers of SYN requests without a concluding ACK are deliberately sent to exhaust server resources.
TCP vs. UDP
Not every application needs TCP’s reliability guarantees:
| TCP | UDP | |
|---|---|---|
| Connection | Connection-oriented (handshake) | Connectionless |
| Reliability | Guaranteed, with retransmission of lost packets | No guarantee |
| Speed | Slower due to overhead | Faster, lower latency |
| Typical applications | Websites, email, file transfer | Video streaming, online gaming, VoIP |
Ports: how applications within a device are addressed
While the IP address identifies a device, the port number determines which application on that device is responsible for incoming data. Well-known examples: port 80 (HTTP), 443 (HTTPS), 21 (classic FTP) or 389/636 (LDAP/LDAPS). Only the combination of IP address and port uniquely identifies a concrete communication endpoint.
Protocols building on TCP/IP
TCP/IP forms the foundation on which a whole family of further protocols runs – HTTP/HTTPS for websites, FTP for file transfer, WebSocket for bidirectional real-time communication or SSL/TLS for encrypted connections. That’s why the “TCP/IP protocol family” is more frequently spoken of than just two individual protocols.
Conclusion
Even after decades, TCP/IP remains the invisible foundation on which practically every internet application builds, from the simple website to complex, distributed software architecture. We’re happy to support you with designing and securing your network infrastructure as part of our cyber security services or in an informal chat, with no strings attached.