VOOZH about

URL: https://www.geeksforgeeks.org/dsa/program-calculate-round-trip-time-rtt/

⇱ Program to calculate the Round Trip Time (RTT) - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Program to calculate the Round Trip Time (RTT)

Last Updated : 13 Feb, 2023

Round trip time(RTT) is the length of time it takes for a signal to be sent plus the length of time it takes for an acknowledgment of that signal to be received. This time, therefore, consists of the propagation times between the two-point of the signal. 

On the Internet, an end-user can determine the RTT to and from an IP(Internet Protocol) address by pinging that address. The result depends on various factors:- 

  • The data rate transfer of the source's internet connection.
  • The nature of transmission medium.
  • The physical distance between source and destination.
  • The number of nodes between source and destination.
  • The amount of traffic on the LAN(Local Area Network) to which end-user is connected.
  • The number of other requests being handled by intermediate nodes and the remote server.
  • The speed with which the intermediate node and the remote server function.
  • The presence of Interference in the circuit.

Examples:  

Input : www.geeksforgeeks.org
Output : Time in seconds : 0.212174892426

Input : www.cricbuzz.com
Output : Time in seconds : 0.55425786972

Output: 

 Time in seconds :0.0579478740692


 

Comment
Article Tags:
Article Tags: