5
\$\begingroup\$

RTT, or round-trip time, is the time that it takes to send a message and receive the result from server. As I searched this, this seems to be the same as ping in network jargon.

Are there some important differences between the two concepts/terms or ping can be considered as RTT?

\$\endgroup\$
8
\$\begingroup\$

A ping is a method to measure round trip time.

The process of "pinging" is to send a "ping". A "ping" is a network message which serves no other purpose than to get an immediate response from the receiver. This can be used to measure the round trip time. It can also be used to verify that another system is able and willing to respond to network messages at all. For example, some games use regular "keep-alive" pings so they notice when a player disconnects without logging out properly.

You can also measure round trip time by measuring responses to network messages which are not just pings but actually do have other practical purposes. You can use any network message which results in an immediate response from the other side and where the response can be clearly attributed to the message. But such a measurement might not be as accurate as with a dedicated ping message, because the receiver might require additional time to process and respond to the primary purpose of the message.

However, in general language usage, "ping" is sometimes used as a synonym for round trip time. Especially among players.

\$\endgroup\$
1
\$\begingroup\$

While Philipp is mostly right, a ping may not be identical to the round-trip time. It differs in that most ping tests are executed within the transport protocol using ICMP packets. In contrast, RTT is measured at the application layer and includes the additional processing delay produced by higher level protocols and applications (e.g. HTTPS). Here's a blog post that clears up some of the misconceptions around RTT.

\$\endgroup\$
  • \$\begingroup\$ It is useful for isolating network performance outside of the application layer however; e.g. if networking is slow but ping times are fast, that helps identify possible causes. \$\endgroup\$ – Maximus Minimus Oct 15 '18 at 17:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.