Question

Difficulty: Very hardTCP vs UDP Comparison and Protocols

A network engineer is analyzing performance degradation for an application that streams telemetry data across an enterprise network. The developer considers modifying the application to add custom sequencing and selective retransmission logic over UDP rather than switching to TCP. Which structural characteristic of the UDP header explains why native sequence tracking and acknowledgment cannot occur at the transport layer when using standard UDP?

  1. The UDP header has a fixed 8-byte length containing only Source Port, Destination Port, Length, and Checksum fields, omitting sequence and acknowledgment fields entirely.Answer
  2. B
    UDP dynamically truncates its header from 20 bytes to 8 bytes during congestion, removing the sequence and acknowledgment fields to reduce processing overhead.
  3. C
    UDP offloads datagram sequencing and retransmission control to the IPv4/IPv6 Layer 3 header fields during transmission.
  4. D
    UDP repurposes the Checksum field for sliding window rate control, leaving no remaining header bits for sequence tracking.

Answer

The UDP header has a fixed 8-byte length containing only Source Port, Destination Port, Length, and Checksum fields, omitting sequence and acknowledgment fields entirely.
UDP features a minimal, fixed 8-byte header comprising four 16-bit fields: Source Port, Destination Port, Length, and Checksum. Because UDP lacks fields for Sequence Numbers, Acknowledgment Numbers, and Window Size (which are present in the 20-byte minimum TCP header), native transport-layer sequencing, flow control, and retransmission mechanisms are impossible without upper-layer application logic.

Step-by-Step Solution

1
Examine the structural composition of the UDP header.
Identify that UDP consists of four 16-bit (2-byte) fields totaling 8 bytes: Source Port, Destination Port, Length, and Checksum.
Understanding the fixed 8-byte UDP header format clarifies which functions the protocol can and cannot natively support.
2
Compare UDP header capabilities against TCP reliability mechanisms.
Note that TCP includes explicit 32-bit Sequence Number and 32-bit Acknowledgment Number fields in its 20-byte baseline header, whereas UDP lacks these fields.
Sequence tracking, reorder detection, and flow control require dedicated protocol header fields that exist in TCP but are absent in UDP.
3
Deduce why sequence tracking must be implemented at the application layer when using UDP.
Because UDP operates statelessly without built-in sequence or ACK fields, any reliability or sequencing features must be handled above Layer 4 inside the application payload.
Confirms why the application must provide custom sequence numbers if it uses UDP for transport.

Key Concept

TCP vs UDP Header Overhead and Protocol Mechanics
Estimated Time:1m 30s
Rate this question