150 likes | 238 Views
King : A tool to estimate latency between Internet hosts. Krishna Gummadi Stefan Saroiu Steven D. Gribble. Goal. C. Why is this useful? Closest Server Selection Distributed P2P Systems Building topologically sensitive overlay networks (CAN, Chord, Gnutella, …).
E N D
King : A tool to estimate latency between Internet hosts Krishna Gummadi Stefan Saroiu Steven D. Gribble
Goal C • Why is this useful? • Closest Server Selection • Distributed P2P Systems • Building topologically sensitive overlay networks (CAN, Chord, Gnutella, …) Measure the latency between any two IP addresses, from any point in the Internet Internet A B
Outline • Motivation • Techniques to predict network distances • Our DNS-based technique (King) • Evaluation of our tool • Conclusions
Related Techniques • Techniques to estimate the latency between any two arbitrary hosts • IDMAPS (U.Mich) • GNP (CMU) • Drawbacks of existing schemes • Require deployment of additional infrastructure in the Internet • They make assumptions about the topology of the Internet which don’t hold in practice • For example, triangle inequality
King: a DNS-based latency tool • Insights: • We can use recursive DNS queries to deduce latency between DNS servers • Most Internet hosts are located close to their DNS servers • Thus, we can approximate latency between the hosts as latency between their name servers • Later in this talk, we’ll show when this trick works, and when it fails
Resolve xyz.mit.edu using “Recursive” DNS Query My Machine DNS xyz.mit.edu Time taken to resolve recursive query xyz.mit.edu to Berkeley NS is T = t1 + t2 DNS abc.berkeley.edu
Resolve abc.berkeley.edu My Machine DNS xyz.mit.edu Time taken to resolve query abc.berkeley.edu to Berkeley NS is T’ = t1 DNS abc.berkeley.edu
How King Works ? My Machine DNS xyz.mit.edu DNS Latency between Name Servers, t2 = T- T’ Latency between Hosts ~ Latency between Name Servers abc.berkeley.edu
Potential Limitations of King • At least one of the authoritative name servers of either host has to support recursive queries • >75% of name servers support such queries • Multiple authoritative name servers that are geographically distributed • Name Servers tend to be better connected than End Hosts. • Our estimates tend to ignore the large last hop latencies for DSL/cable/modem users
Evaluating the Accuracy of King • Directly measure latencies between 50 public traceroute servers and 50 end hosts • Estimate latencies between the same servers/hosts using King and IDMaps. • Compare • Metric used : Estimated Latency Measured Latency
Additional evaluation • DNS servers tend to be close to IP addresses in practice • far less than 10 milliseconds, >80% of the time (although modems are trouble) • King tends to preserve order • Often more important than accuracy! • Can choose between accuracy and additional measurement costs • “tune” the tool for various applications • Can even measure latency between hosts that are offline or do not respond to ICMP ping messages !
Summary • We presented King, a DNS based tool to estimate latency • King works in the Internet as it exists today. • No need for any additional infrastructure. • We showed that King is fairly accurate for estimating latency between internet hosts
Future Work • Incorporating King into Internet services • e.g., closest server selection • Wide-area measurement studies using King • Generating a latency map of Gnutella overlay • Evaluating the efficiency of Akamai’s server selection • More extensive validation of Detour study
Questions ? More Info: www.cs.washington.edu/homes/gummadi/king