Soru

Zorluk: ZorTCP vs UDP Comparison and Protocols

A network engineer is troubleshooting latency spikes in a real-time financial market data feed. Packet analysis reveals that when minor packet loss occurs on the WAN link, the receiving application experiences head-of-line blocking, holding back newly arrived live data while waiting for lost segments to be retransmitted. The application developers require a transport solution that delivers incoming data segments immediately to the application layer upon arrival, accepting unacknowledged data loss in exchange for minimal overhead and zero retransmission delay. Which transport layer design recommendation satisfies these requirements?

  1. Migrate the streaming protocol to UDP and handle any required packet ordering at the application layer, reducing header overhead from 20 bytes to 8 bytes and eliminating TCP retransmission buffer delays.Cevap
  2. B
    Retain TCP as the transport protocol but configure Selective Acknowledgment (SACK) to force the receiving host to pass out-of-order segments to the application before missing segments arrive.
  3. C
    Retain TCP but set the TCP receive window size to 0 bytes to bypass transport-layer buffering and process incoming segments immediately.
  4. D
    Migrate the application to UDP while retaining the standard 20-byte transport header structure to maintain built-in segment sequence numbers without acknowledgment overhead.

Cevap

Migrating the streaming protocol to UDP and handling any required packet ordering at the application layer satisfies the requirements by reducing header overhead from 20 bytes to 8 bytes and eliminating head-of-line blocking.
Migrating to UDP removes transport-layer retransmissions and stream sequencing delays. UDP operates connectionlessly with a fixed 8-byte header overhead (compared to TCP's minimum 20-byte header), allowing out-of-order packets to be delivered to the application immediately upon arrival without head-of-line blocking.

Adım Adım Çözüm

1
Analyze the application requirements and current failure mode.
The current setup uses TCP, which enforces connection-oriented, reliable, strictly ordered delivery. When a packet is dropped, TCP receiver buffers hold subsequent segments (head-of-line blocking) while awaiting retransmission, causing latency spikes.
Real-time applications prioritize low latency and immediate processing of recent data over complete reliability.
2
Compare TCP and UDP transport characteristics and header structures.
TCP uses a minimum 20-byte header with fields for Sequence Number, Acknowledgment Number, and Window size to provide flow control and reliability. UDP uses a lean, 8-byte fixed header (Source Port, Destination Port, Length, Checksum) with zero retransmission mechanisms or connection setup overhead.
UDP eliminates head-of-line blocking and reduces per-packet transport overhead.
3
Select the appropriate transport protocol migration strategy.
Transitioning to UDP provides connectionless delivery. If sequence tracking is still necessary, the application layer can inspect embedded timestamps or sequence numbers without waiting for transport-layer retransmissions.
This directly fulfills the requirement for zero retransmission delay and minimal transport header overhead.

Anahtar Kavram

TCP vs UDP Transport Characteristics and Header Overhead
Bu soruyu puanla