Question

Difficulty: HardTCP vs UDP Comparison and Protocols

A network engineer is inspecting packet capture data from a host running a dual-protocol network diagnostic service. The service transmits real-time telemetry using a connectionless transport protocol while concurrently maintaining a stateful management session using a connection-oriented transport protocol. When evaluating the transport layer encapsulation of these two flows, which structural characteristic correctly distinguishes the connectionless transport header from the connection-oriented transport header?

  1. The connectionless header maintains a fixed 8-byte structure consisting strictly of Source Port, Destination Port, Length, and Checksum fields.Answer
  2. B
    The connectionless header offloads datagram sequencing and sliding window flow control to the IPv4 header, keeping its own header size at 20 bytes.
  3. C
    The connectionless header dynamically omits its Checksum field whenever error checking is performed at Layer 2, reducing header overhead to 4 bytes.
  4. D
    The connectionless header includes Sequence Number and Acknowledgment Number fields but sets their values to zero to bypass reliability checks.

Answer

The connectionless transport header (UDP) maintains a minimalist, fixed 8-byte header structure containing only Source Port, Destination Port, Length, and Checksum fields, whereas connection-oriented TCP headers require at least 20 bytes to accommodate sequencing, acknowledgments, window size, and control flags.
The correct answer accurately describes the standard UDP header structure. UDP operates as a lightweight, connectionless protocol with a fixed 8-byte header overhead. It comprises exactly four fields, each 16 bits (2 bytes) in length: Source Port, Destination Port, Length, and Checksum. This minimal structure allows for rapid transmission with minimal latency and process overhead.

Step-by-Step Solution

1
Identify the protocols representing connectionless and connection-oriented transport layer communications.
UDP represents connectionless communications, and TCP represents connection-oriented communications.
Transport layer protocol comparison requires mapping UDP to connectionless datagram delivery and TCP to stateful stream delivery.
2
Analyze the header structure of the UDP (connectionless) transport protocol.
UDP headers contain four 16-bit (2-byte) fields totaling 8 bytes: Source Port (16 bits), Destination Port (16 bits), Length (16 bits), and Checksum (16 bits).
UDP is designed for low overhead without connection setup, state tracking, sequence numbers, or windowing fields.
3
Compare UDP header characteristics with TCP header characteristics to evaluate distractor validity.
TCP headers are 20 bytes minimum (up to 60 bytes with options) and contain Sequence Numbers, Acknowledgment Numbers, Data Offset, Reserved bits, Control Flags, Window Size, Checksum, and Urgent Pointer.
Distractors incorrectly attribute TCP features, IP-layer offloading, or variable header truncation to UDP.

Key Concept

Transport Layer TCP vs UDP Header Structure and Protocol Overhead
Rate this question