Visual RFC.
ALL RFCs / RFC 868
Read the RFC ↗
RFC 868 / TIME PROTOCOL

Connect to receive the TCP time

02

The user opens a TCP connection to the server on port 37. Establishment triggers the time reply; no application request string is specified.

RFC 868 · TCP service · page 1EXAMPLE
4 / 4
Connect to receive the TCP timeFour cumulative application states:server listens onTCP37,user establishes connection,server returns32bit time,user/server close after transfer. No application request string. Lines are application events, not handshake/FIN packets or one-read guarantee. No packet-close ordering is asserted.UserTime serverTCP port 37connect to TCP 37Connection established32-bit binary timeServer sends; user receivesBoth close after the time transfer
04
Close after the reply.

The user receives the time and closes; the server also closes after sending. No detailed TCP close-packet ordering is implied.

Source for this drawing: RFC 868 · Read RFC source: TCP service · page 1 ↗

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

Two clocks may disagree.

A device compares timestamps with another clock. Network delay makes that comparison imperfect. The drawing separates the clock reading from the trip the message takes.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

KEY POINT

The TCP connection triggers one time value.

  • The server listens on TCP port 37, which the RFC also writes as octal 45.
  • After connection establishment the server sends its 32-bit time and closes the connection.
  • The user receives the time and closes its connection. The picture shows application events, not TCP handshake or FIN packets.
DETAILS

TCP is a byte stream: this guide does not promise that one receive call returns the whole value. Transport reliability is separate from the accuracy or authenticity of the server clock.

Read the RFC section ↗

All chapters in RFC 868

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗