Sobes.tech
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:

  1. 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.
  2. Connection-oriented: Before data exchange, the sender and receiver establish a logical connection (three-way handshake).
  3. Stream data transfer: TCP treats data as a continuous stream of bytes, not as separate packets.
  4. Flow control: Mechanism to manage the rate of data sending to prevent buffer overflow at the receiver. Uses sliding window.
  5. 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.
  6. Segmentation and reassembly: TCP divides large amounts of data into segments for transmission and reassembles them at the receiver's side.
  7. Sequence number: Each segment is assigned a sequence number for correct reassembly and detection of lost segments.
  8. Ports: Uses port numbers to identify specific applications or services on the host.