Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks Locations.

Slides:



Advertisements
Similar presentations
Time in Distributed Systems
Advertisements

COS 461 Fall 1997 Routing COS 461 Fall 1997 Typical Structure.
1 o Two issues in practice – Scale – Administrative autonomy o Autonomous system (AS) or region o Intra autonomous system routing protocol o Gateway routers.
6.033: Intro to Computer Networks Layering & Routing Dina Katabi & Sam Madden Some slides are contributed by N. McKewon, J. Rexford, I. Stoica.
Network Time Protocol (NTP) August 9 th 2011, OSG Site Admin Workshop Jason Zurawski – Internet2 Research Liaison.
Authors: Venkata N. Padmanabhan and Lakshminarayanan Subramanian Publisher: SIGCOMM 2001 Presenter: Chai-Yi Chu Date: 2013/03/06 1.
CS6223: Distributed Systems Distributed Time and Clock Synchronization (1) Physical Time.
Distributed Systems Fall 2010 Time and synchronization.
Time Synchronization (RBS, Elson et al.) Presenter: Peter Sibley.
1 Traffic Engineering for ISP Networks Jennifer Rexford IP Network Management and Performance AT&T Labs - Research; Florham Park, NJ
MIRED: Managing IP Routing is Extremely Difficult Jennifer Rexford Internet and Networking Systems AT&T Labs - Research; Florham Park, NJ
Time and Global States Chapter 11. Why time? Time is an Important and interesting issue in distributes systems. One we can measure accurately. Can use.
Time in Distributed Systems Distributed Systems. Why Time is Important? If you work in the industry, you never have to worry about this You’ll rarely.
Distributed Systems CS Synchronization – Part II Lecture 8, Sep 28, 2011 Majd F. Sakr, Vinay Kolar, Mohammad Hammoud.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 13th Lecture Christian Schindelhauer.
Lecture 9: Time & Clocks CDK4: Sections 11.1 – 11.4 CDK5: Sections 14.1 – 14.4 TVS: Sections 6.1 – 6.2 Topics: Synchronization Logical time (Lamport) Vector.
Lecture 2-1 CS 425/ECE 428 Distributed Systems Lecture 2 Time & Synchronization Reading: Klara Nahrstedt.
NET0183 Networks and Communications Lecture 10 Basic Internet Measurements 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
1 Physical Clocks need for time in distributed systems physical clocks and their problems synchronizing physical clocks u coordinated universal time (UTC)
A Security Analysis of the Network Time Protocol (NTP) Presentation by Tianen Liu.
On the Power of Off-line Data in Approximating Internet Distances Danny Raz Technion - Israel Institute.
PIC: Practical Internet Coordinates for Distance Estimation Manuel Costa joint work with Miguel Castro, Ant Rowstron, Peter Key Microsoft Research Cambridge.
Lecturer: Ghadah Aldehim
A Security Analysis of Network Time Protocol Andy Hospodor COEN /03/03 Paper by Matt Bishop, 1991.
 Network Segments  NICs  Repeaters  Hubs  Bridges  Switches  Routers and Brouters  Gateways 2.
Parallel and Distributed Simulation Synchronizing Wallclock Time.
Computer Science Lecture 9, page 1 CS677: Distributed OS Last Class: Naming Name distribution: use hierarchies DNS Iterative versus Recursive name resolution.
Vytautas Valancius, Nick Feamster, Akihiro Nakao, and Jennifer Rexford.
Internet Tomography and Geography What is this area all about? Related work in the area Main Paper WEBMAPPER’s features How WEBMAPPER works WEBMAPPER results.
1 UNIT 13 The World Wide Web Lecturer: Kholood Baselm.
Determining the Geographic Location of Internet Hosts Venkata N. Padmanabhan Microsoft Research Lakshminarayanan Subramanian University of California at.
Time This powerpoint presentation has been adapted from: 1) sApr20.ppt.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Time and global states Chapter 11. Outline Introduction Clocks, events and process states Synchronizing physical clocks Logical time and logical clocks.
Stainov - DataComMET CS TC5353 THE NETWORK LAYER 5.2 ROUTING ALGORITHMS - adaptive Distance Vector Routing (Bellman-Ford, Ford-Fulkenson). It was used.
Distributed Systems CS Synchronization – Part I Lecture 8, Sep 23, 2013 Mohammad Hammoud.
Routing Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
A Detailed Path-latency Model for Router Geolocation* Internetes hosztok mérés alapú geolokalizációja Sándor Laki, Péter Mátray, Péter Hága, István Csabai.
6 SYNCHRONIZATION. introduction processes synchronize –exclusive access. –agree on the ordering of events much more difficult compared to synchronization.
Distance Vector Routing
15-829A/18-849B/95-811A/19-729A Internet-Scale Sensor Systems: Design and Policy Review.
Distributed Systems Lecture 5 Time and synchronization 1.
1 UNIT 13 The World Wide Web. Introduction 2 Agenda The World Wide Web Search Engines Video Streaming 3.
1 UNIT 13 The World Wide Web. Introduction 2 The World Wide Web: ▫ Commonly referred to as WWW or the Web. ▫ Is a service on the Internet. It consists.
1 IP2Geo: Locating Internet Hosts Geographically Venkat Padmanabhan Microsoft Research Joint work with L. Subramanian (UC Berkeley)
Page 1 Clock Synchronization: Physical Clocks Minqi Zhou Distributed Systems Except as otherwise noted, the content of this presentation.
Lecture 13 – Network Mapping
Instructor Materials Chapter 1 Ever Wonder How It Works?
Vivaldi: A Decentralized Network Coordinate System
Distributed Computing
Distributed Systems CS
Infrastructure II NTP.
COS 561: Advanced Computer Networks
Net 435: Wireless sensor network (WSN)
Dude, where’s that IP? Circumventing measurement-based geolocation
COS 561: Advanced Computer Networks
Logical time (Lamport)
Distributed Systems CS
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
Distributed Systems CS
CDK: Sections 11.1 – 11.4 TVS: Sections 6.1 – 6.2
Logical time (Lamport)
BGP Instability Jennifer Rexford
Logical time (Lamport)
What’s the Time? Geoff Huston APNIC.
Logical time (Lamport)
Presentation transcript:

Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks Locations and Times

Announcements Course projects –Presentations will be in January –… not on the last day of class –… as a “poster session” So, –Written report: Dean’s Date –Poster session: A few days after 2

Locating a Host Geographic location –Actual physical location (e.g., latitude and longitude) –Location-based search results, advertising, content, … –Blocking access based on client location –Deciding whether traffic can be wiretapped Best or closest server in a set –Server with the lowest round-trip time to the client –E.g., the shortest network path –To select the best server replica The two are similar, but not the same 3

Landmarks Fixed vantage points –Known geographic locations –Probe the client IP address 4 V1 V2 V3 Delay vector: [D1, D2, D3]

Latency != Distance Indirect routes –E.g., Princeton town to Princeton campus –Violations of the triangle inequality Asymmetric routing –A-to-B is not the reverse of the B-to-A path –Errors when dividing round-trip-time in half Network congestion –Queuing delay, particularly with deep buffers Last-mile latency –High transmission delays on slow access link –Inflates the latency measurement 5

IP2Geo Paper GeoTrack –Infer location from DNS names –Of the host or routers in the traceroute path –E.g., airport codes like sjc2-cw- oc3.sjc.above.net GeoPing –Hosts with similar delays are close to each other –Store delay vectors for hosts of known locations –For new target, find the nearest neighbor in delay space GeoCluster –Group IP addresses by IP prefix –Infer location of other IP addresses in the cluster –Identify possible errors (outliers) in IP geolocation 6

Octant Paper (NSDI’07) Construct a system of constraints –And solve to locate the host Include a “height” constraint for each node –To capture the latency on the access link Place more weight on low latency measurements –Less likely to involve an indirect route Use intermediate routers as additional landmarks –By extracting router location from the DNS name Both positive and negative constraints –Positive: zip codes from Whois data, others in prefix –Negative: uninhabitable regions (e.g., oceans) 7

Street-Level Geolocation (NSDI’11) Main insights –Many organizations host their web sites locally –Many web sites list the organization’s postal address Example: Princeton CS –Princeton CS is hosted in the Princeton CS building –Princeton CS address at 35 Olden St., Princeton, NJ Combining the information –Infer a coarse-grain region using delay measurements –Identify the zip codes (and Web sites) in the region –Traceroute to the Web sites within the zip code –Find last common hop in the path to Web site and target –Select the location of the “closest” of the Web sites 8

Network Time Protocol (NTP) 9

What is Time in NTP Coordinated Universal Time (UTC) –A successor to Greenwich Mean Time (GMT) –Time zones are expressed as an offset Time relative to an epoch –Starting January 1, bit representation –32 bits for seconds since the epoch –32 bits for fractions of a second –(Will roll over in 2036) 10

Computer Clocks Time stored in a counter –Incremented periodically based on interrupts Generating clock ticks –Quartz crystal oscillator –Common clock hardware is not very accurate –E.g., 0.001% error amounts to almost 1 sec per day –(My laptop is off by 34 parts per million: /var/db/ntp.drift) Terminology –Clock skew: difference between two clocks at one time –Clock drift: change in reference time per period of time  Normal to drift about 1 second every days 11

Clock Strata 12 Multi-level hierarchy of time sources –Level based on distance from reference clock Stratum 0 –High-precision timekeeping devices –Atomic clocks, GPS clocks, other radio clocks Stratum 1 –Computers synchronized to attached stratum 0 devices –Stratum 1 computers can peer for sanity checking Stratum 2 –Synchronized over the network to stratum 1 computers –And so on, for stratum 3, 4, 5, …

Clock Synchronization Client polls NTP server Client computes –Round-trip delay –Offset 13 T1T1 T3T3 T2T2 T4T4 Server Client

Reducing Errors Client regularly polls three or more NTP servers Applying filters and analyzing statistics –Most accurate offset is at the lowest delay 14

Correcting the Clock Time should be a continuous, steady stream –Should not have abrupt changes in the clock –Should not take the clock backwards Gradually adjust the client clock –E.g., 0.5 msec per second Accuracy of NTP –Often within tens of msec over the public Internet –Better than 1 msec within a local area network 15

Finding an NTP Server NTP pool project –Default time server for major Linux distributions –Hundreds of publicly accessible NTP servers – 16