I had developed ping utility similar to the ping example available in UnetStack1.3 (/samples/ping
) to ping a remote node over a multi-hop link, but unable to calculate the Round Trip Time (RTT), when I transmit ping packet using routing agent with static route information added to routing table using RouteDiscoveryNtf
as there is no timing information avaiable in upper layer notifications (DatagramNtf
or DatagramDeliveryNtf
or DatagramFailureNtf
).
Calculation of round trip time is the difference of rxtime
and txtime
available with TxFrameNtf
and RxFrameNtf
as implemented in clousure (fshrc.groovy
) in the ping example.
I also tried analyzing the ping utility implemented in UnetStack3, but unable to makeout. Please let me know how the RTT is calculated.