lmirosevic / GBPing

Highly accurate ICMP Ping controller for iOS
Apache License 2.0
279 stars 87 forks source link

RTT is not LATENCY #49

Closed AnassHmida closed 6 years ago

AnassHmida commented 6 years ago

LATENCY: The amount of time physically required for media to travel depending on media length and distance that need to be covered

RTT: Round Trip Trime, A round trip time required to travel from source to destination and vice versa.

So there is no way of getting latency from this library in ms ?

lmirosevic commented 6 years ago

You can approximate it by dividing by two.

To measure true latency you would need to have a controlled server (some routers at the destination could also work). This is a library that implement the well-known ping protocol which runs over ICMP. ICMP is given low priority so you would want to use a purposeful TCP/UDP based implementation to measure true latency.

AnassHmida commented 6 years ago

got it , thank you for your help