WCNA practice question 17 of 35

Which statement about packet timestamps is correct?

Full set: 100 questions
Answer options
A: Sorting on packet timestamps alters the packet numbers in the trace file.
B: Packet timestamps for pcap files can denote time to the nanosecond level.
C: You can alter packet timestamps of separate packets in a trace file using Editcap.
D: Packet timestamps are provided by WinPcap, libpcap, or AirPcap at the time packets are captured. Correct answer
Correct Answer:
D. Packet timestamps are provided by WinPcap, libpcap, or AirPcap at the time packets are captured.
Explanation

This statement is correct. Packet timestamps are fundamental to network analysis and are applied by the underlying packet capture library at the earliest possible moment to ensure accuracy. On UNIX-like systems, this is typically libpcap, and on Windows, it is Npcap (which superseded WinPcap). Specialized hardware like AirPcap adapters also have their own drivers that provide high-precision timestamps. This process happens in the kernel or driver level, before the packet is passed to the user-space application (Wireshark).

Why Incorrect

A is incorrect: Sorting the packet list in the Wireshark GUI only changes the display order. The original frame number (frame.number), which is assigned sequentially as packets are written to the file, remains unchanged and is always associated with its original packet. B is incorrect: The traditional pcap file format supports only microsecond (10^-6 seconds) precision for timestamps. The pcap-ng (PCAP Next Generation) format, which is the default for modern Wireshark, is required for nanosecond (10^-9 seconds) precision. The statement specifically mentions "pcap files," making it imprecise and therefore incorrect. C is incorrect: The command-line tool editcap can apply a time adjustment (offset) to all packets in a capture file uniformly. It cannot be used to alter the timestamps of individual, separate packets while leaving others unchanged.

References

1. Wireshark User's Guide, Chapter 4. Capturing Live Network Data, Section 4.10. Timestamps. The guide states, "Packet timestamps are generated by the packet capture library, libpcap or WinPcap/Npcap, on the machine that captures the traffic."

2. Wireshark Wiki, "Time Stamps". This page details the sources of timestamps, confirming they come from the capture library (libpcap/WinPcap) and depend on the system clock. It also discusses the precision limitations of different file formats.

3. Wireshark Man Pages, editcap(1). The documentation for editcap shows options like -t which "sets the time adjustment of the input file." This confirms it applies a uniform offset to the entire file, not to separate packets.

Scroll to Top