Junior
Mis on TCP protokollide eripära?
sobes.tech AI
Vastus AI-lt
TCP (Transmission Control Protocol) is a transport layer protocol that provides reliable, connection-oriented, and stream-based data transmission.
Features of TCP:
- Reliable data delivery: TCP guarantees delivery of all data in the correct order and without loss. It uses acknowledgment (ACK), retransmission, and error checking (checksum) mechanisms.
- Connection-oriented: Before data exchange, the sender and receiver establish a logical connection (three-way handshake).
- Stream data transfer: TCP treats data as a continuous stream of bytes, not as separate packets.
- Flow control: Mechanism to manage the rate of data sending to prevent buffer overflow at the receiver. Uses sliding window.
- Congestion control: Mechanism to manage the volume of traffic sent to the network to avoid congestion. Uses algorithms like Slow Start, Congestion Avoidance, Fast Retransmit, and Fast Recovery.
- Segmentation and reassembly: TCP divides large amounts of data into segments for transmission and reassembles them at the receiver's side.
- Sequence number: Each segment is assigned a sequence number for correct reassembly and detection of lost segments.
- Ports: Uses port numbers to identify specific applications or services on the host.