11Transport layer (Transport layer)
TCP (Transmission Control Protocol)
Easy10MIN
What is TCP?
TCP (Transmission Control Protocol) is a communications protocol that operates at the transport layer of the Internet. Its purpose is to enable reliable data transfer between computers over a network. TCP is based on a connection-oriented and reliable service model, which ensures data integrity, order of arrival, and error-free transmission.
TCP protocol works on the following principle:
- Connection establishment: The sending and receiving parties go through a three-step connection establishment process before sending actual data. This process ensures the readiness of both parties for data transmission and creates a connection between them.
- Data segmentation: The information to be sent is divided into smaller parts or segments, each with a fixed size. This enables efficient data transfer over the network.
- Segment numbering: Each segment is assigned its own number, which helps the recipient organize the segments in the correct order and identify any missing or erroneous segments.
- Error detection and recovery mechanisms: TCP uses checksum verification to ensure the integrity of segments. If the receiver detects an error, it requests the sender to retransmit the faulty or missing segments. This ensures reliable transmission of data.
1 / 7
Hakatemia Pro
Learn to hack — start here
Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.