maxIdleTime
to keep track of the maximum time at which the network becomes idle.2 * shortestPath[server]
.
b. Determine the number of times the server will resend the message before the first reply arrives.
c. Calculate the last time a message is sent from the server.
d. Update maxIdleTime
with the maximum of its current value and the time at which the last reply is received.maxIdleTime + 1
as the network becomes idle one second after the last message is received.