|TCP option 8, Timestamp|
|Protocol type:||Transport layer protocol.|
|Option length:||10 bytes.|
|Links:||IANA: TCP option numbers.|
The TCP Timestamp option obsoletes the TCP Echo request and Echo reply options.
The timestamps are used for two distinct mechanisms: RTTM (Round Trip Time Measurement) and PAWS (Protect Against Wrapped Sequences).
|MAC header||IP header||TCP header||TCP option 8||Data|
TCP Option 8:
|Timestamp Echo Reply|
Kind. 8 bits. Set to 8.
Length. 8 bits. Set to 10.
Timestamp Value (TSval).
This field contains the current value of the timestamp clock of the TCP sending the option.
Timestamp Echo Reply (TSecr).
This field is only valid if the ACK bit is set in the TCP header. If it is valid, it echos a timestamp value that was sent by the remote TCP in the TSval field of a Timestamps option. When TSecr is not valid, its value must be zero. The TSecr value will generally be from the most recent Timestamp option that was received; however, there are exceptions that are explained below. A TCP may send the Timestamp option in an initial SYN segment (i.e., segment containing a SYN bit and no ACK bit), and may send a TSopt in other segments only if it received a TSopt in the initial SYN segment for the connection.
[RFC 1323] TCP Extensions for High Performance.