+ All Categories
Home > Documents > Network Positioning for Wide-Area and Wireless Networks

Network Positioning for Wide-Area and Wireless Networks

Date post: 03-Feb-2022
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
204
Emin Gün Sirer Department of Computer Science Cornell University Network Positioning for Wide-Area and Wireless Networks
Transcript
Page 1: Network Positioning for Wide-Area and Wireless Networks

Emin Gün Sirer

Department of Computer ScienceCornell University

Network Positioning for Wide-Area and Wireless Networks

Page 2: Network Positioning for Wide-Area and Wireless Networks

Localization is Critical

Locality information is the building block for novel services in wired and wireless networks

Critical to find out where in the physical world nodes (and other items of interest) are

Locality­aware content, computing, routing, service discovery, event tracking in sensor networks, ...

Critical to select servers based on the position of target nodes

Find closest server, find centrally located node, find node within latency bounds

Page 3: Network Positioning for Wide-Area and Wireless Networks

Sextant

Determining the location of nodes and events in wireless (ad hoc, sensor) networks

Page 4: Network Positioning for Wide-Area and Wireless Networks

Localization in Wireless Networks

Infrastructure­based hardware (GPS) is the traditional solution

ExpensivePower­hungryDoes not work indoors, without infrastructure

How well can we do with intelligent software and cheap, ubiquitous hardware?

Page 5: Network Positioning for Wide-Area and Wireless Networks

Sextant Approach

Treat localization as a constraint­satisfaction problem

Extract constraints aggressively from the networkDisseminate them transitivelySolve in a distributed manner

Page 6: Network Positioning for Wide-Area and Wireless Networks

Sextant Properties

AccurateNegative as well as positive informationExplicit representation

PracticalConstraint extractionDeployed on Mica­2 motes, PDAs and laptops

Positive Constraint

Negative Constraint

Page 7: Network Positioning for Wide-Area and Wireless Networks

Sextant Properties

AccurateNegative as well as positive informationExplicit representation

PracticalConstraint extractionDeployed on Mica­2 motes, PDAs and laptops

Need not be convexMay have holesMay have disconnected   components

Page 8: Network Positioning for Wide-Area and Wireless Networks

Sextant Properties

AccurateNegative as well as positive informationExplicit representation

PracticalConstraint extractionDeployed on Mica­2 motes, PDAs and laptops

Page 9: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Positive information

Page 10: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Intersection of Positive information

Page 11: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Negative information

Page 12: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Positive information

Page 13: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Transitive dissemination of positive information

Page 14: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Transitive dissemination of positive information

Page 15: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Transitive dissemination of positive information

Page 16: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Transitive dissemination of positive information

Page 17: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Combining negative and positive information

Page 18: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Combining negative and positive information

Page 19: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Combining negative and positive information

Page 20: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Combining negative and positive information

Page 21: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Combining negative and positive information

Page 22: Network Positioning for Wide-Area and Wireless Networks

Node Localization

Refining position estimates

Page 23: Network Positioning for Wide-Area and Wireless Networks

Sextant Approach

Location estimate: ßx

Set of positive constraints: x

Set of negative constraints: x

ßx =  (p  x) \  (n  x)

Page 24: Network Positioning for Wide-Area and Wireless Networks

Sextant Areas

Represent areas explicitlyUse Bezier curves to bound bezier regionsFour control points define a curveUnion and intersection are implemented efficiently

Not a point estimate!Ideally, applications should take the bezier region as inputCan generate point estimate from bezier regions

Page 25: Network Positioning for Wide-Area and Wireless Networks

Localizing Events

Hot area in sensor networksThe Sextant approach provides a comprehensive, unified frameworkDifferences from node localization

Constraints from sensors, not wireless radiosBoolean connected/not connected to sensed/not sensedAnnotate resulting areas with probabilities

Page 26: Network Positioning for Wide-Area and Wireless Networks

Event localization

Decompose space into a grid, propagate probabilitiesCalculate normalized Bayesian probabilities

Page 27: Network Positioning for Wide-Area and Wireless Networks

Event Localization

Start with initial Sextant node regions

Page 28: Network Positioning for Wide-Area and Wireless Networks

Event Localization

An event occurs

Page 29: Network Positioning for Wide-Area and Wireless Networks

Event Localization

Sextant is used for event localization

Page 30: Network Positioning for Wide-Area and Wireless Networks

Event Localization

Sextant is used for event localization

Page 31: Network Positioning for Wide-Area and Wireless Networks

Event Localization

Event localized

Page 32: Network Positioning for Wide-Area and Wireless Networks

Event Localization

Event used for node localization!

Title:sextant Creator:Tgif-4.1.43-QPL written by Willi CreationDate:Sun May 22 18:05:55 2005

Page 33: Network Positioning for Wide-Area and Wireless Networks

Event Localization

Event used to refine node location!

Page 34: Network Positioning for Wide-Area and Wireless Networks

Event Localization

Event detection helps refine node positions!

Page 35: Network Positioning for Wide-Area and Wireless Networks

Meridian

Selecting nodes based on location(without knowing their actual location in the real 

world)

Page 36: Network Positioning for Wide-Area and Wireless Networks

Network Location Service

Real­world problems:

Locate closest game server

Distribute web­crawling to nearby hosts

Perform efficient application level multicast

Satisfy a Service Level Agreement

Provide inter­node latency bounds for clusters

Underlying abstract problems

Finding closest node to target

Finding the closest node to the center of a set of targets

Finding a node that is <ri ms from target ti for all targets

Select nodes based on a set of network properties

Page 37: Network Positioning for Wide-Area and Wireless Networks

Current State­of­the­Art: Virtual Coordinates

Maps Internet latencies into low dimensional spaceGNP, Vivaldi, Lighthouse, ICS, VL, BBS, PIC, NPS, etc.

Reduces number of real­time measurements

3 practical problems:Introduces inherent embedding error

A snapshot in time of the network location of a nodeCoordinates become stale over timeLatency estimates based on coordinates computed at different times can lead to additional errors

Requires additional P2P substrate to solve network location problems without centralized servers or O(N) state

Page 38: Network Positioning for Wide-Area and Wireless Networks

Meridian Approach

Solve node selection directly without computing coordinatesCombine query routing with active measurements

3 Design Goals:Accurate:  Find satisfying nodes with high probability

General:  Users can fully express their network location requirements

Scalable:  O(log N) state per node, O(log D) hops per query

Design tradeoffs:Active measurements incur higher query latencies

Overhead more dependent on query load

Page 39: Network Positioning for Wide-Area and Wireless Networks

Meridian Operation

Framework: 

Loosely structured overlay network

Algorithms: 

Solve network location problems in O(log D) hops

Language:

General­purpose language for expressing network location requirements

Page 40: Network Positioning for Wide-Area and Wireless Networks

Multi­resolution Rings

Organize peers into small fixed number of concentric rings

Radii of rings grow outwards exponentially

Logarithmic # of peers per ring 

Favors nearby neighbors

Retains a sufficient number of pointers to remote regions

Gossip protocol used for peer discovery

r= sr= s2A

Page 41: Network Positioning for Wide-Area and Wireless Networks

Multi­resolution Rings

Organize peers into small fixed number of concentric rings

Radii of rings grow outwards exponentially

Logarithmic # of peers per ring 

Favors nearby neighbors

Retains a sufficient number of pointers to remote regions

Gossip protocol used for peer discovery

r= sr= s2A

Page 42: Network Positioning for Wide-Area and Wireless Networks

Multi­resolution Rings

Organize peers into small fixed number of concentric rings

Radii of rings grow outwards exponentially

Logarithmic # of peers per ring 

Favors nearby neighbors

Retains a sufficient number of pointers to remote regions

Gossip protocol used for peer discovery

r= sr= s2A

Page 43: Network Positioning for Wide-Area and Wireless Networks

Multi­resolution Rings

Organize peers into small fixed number of concentric rings

Radii of rings grow outwards exponentially

Logarithmic # of peers per ring 

Favors nearby neighbors

Retains a sufficient number of pointers to remote regions

Gossip protocol used for peer discovery

r= sr= s2A

Page 44: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

Multi­hop searchSimilar to finding the closest identifier in DHTs

Replaces virtual identifiers with physical latencies

Each hop exponentially reduces the distance to the target

Reduction threshold   for β 0 ≤  < 1β

Only take another hop if a peer node is   times closerβ

Limits # of probed peers through triangle inequality

Page 45: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

Page 46: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

d

Page 47: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

d

Page 48: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

d β * d

β * d

Page 49: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

Page 50: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

Page 51: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

Page 52: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

Page 53: Network Positioning for Wide-Area and Wireless Networks

C

Td

Closest Node Discovery

Page 54: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

Td

Page 55: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

Td

Page 56: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

Page 57: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

Page 58: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

C

T

Page 59: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

T

C

Page 60: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

T

C

Page 61: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

T

C

Page 62: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

T

C

Page 63: Network Positioning for Wide-Area and Wireless Networks

Closest Node Discovery

T

C

Page 64: Network Positioning for Wide-Area and Wireless Networks

Meridian Theoretical AnalysisAnalytical guarantees for closest node discovery

Meridian can find the closest node with high probability

Given nodes in a space with a doubling metric

As well as a growth constrained metric

Scales well with increasing system size

Does not lead to hot spots

Page 65: Network Positioning for Wide-Area and Wireless Networks

Central Leader Election

Select the closest node to the center of a set of targetsMulti­cast trees can place central nodes higher in the hierarchy

Algorithm similar to closest node discovery

Minimizes avg. latency to a set of targets instead of one targetUses distance metric davg instead of d

Inter­node latencies of targets not knownNeed to be conservative in pruning peers

Page 66: Network Positioning for Wide-Area and Wireless Networks

Central Leader Election

C

T

T

T

Page 67: Network Positioning for Wide-Area and Wireless Networks

Central Leader Election

d1

C

T

T

T

d2

d3

Page 68: Network Positioning for Wide-Area and Wireless Networks

Central Leader Election

d1

C

T

T

T

d2

d3

Page 69: Network Positioning for Wide-Area and Wireless Networks

Central Leader Election

C

T

T

T

Page 70: Network Positioning for Wide-Area and Wireless Networks

Central Leader Election

C

T

T

T

Page 71: Network Positioning for Wide-Area and Wireless Networks

Central Leader Election

d3

d2d1

C

T

T

T

Page 72: Network Positioning for Wide-Area and Wireless Networks

Central Leader Election

d3

d2d1

C

T

T

T

Page 73: Network Positioning for Wide-Area and Wireless Networks

Central Leader Election

C

T

T

T

Page 74: Network Positioning for Wide-Area and Wireless Networks

Central Leader Election

C

T

T

T

Page 75: Network Positioning for Wide-Area and Wireless Networks

Multi­constraint SystemFind a node that satisfies a set of latency constraints

ISP can find a server that can satisfy a SLA with a clientGrid users can find a set of nodes with a bounded inter­node latency

There exists a solution space, containing 0 or more nodesOnly a solution point in previous problems 

Requires a different distance metric s :

 

s = 0 when all constraints are satisfiedSum of squares places more weight on fringe constraints 

Allows for faster convergence to solution space

Other metrics can be used, square works well in practice

Page 76: Network Positioning for Wide-Area and Wireless Networks

Multi­constraint System

T

T

T

C

Page 77: Network Positioning for Wide-Area and Wireless Networks

Multi­constraint System

T

T

T

C

Page 78: Network Positioning for Wide-Area and Wireless Networks

Multi­constraint System

T

T

T

C

Page 79: Network Positioning for Wide-Area and Wireless Networks

Multi­constraint System

T

T

T

C

Page 80: Network Positioning for Wide-Area and Wireless Networks

Multi­constraint System

T

T

T

C

Page 81: Network Positioning for Wide-Area and Wireless Networks

Multi­constraint System

T

T

T

C

Page 82: Network Positioning for Wide-Area and Wireless Networks

Multi­constraint System

T

T

T

C

Page 83: Network Positioning for Wide-Area and Wireless Networks

Multi­constraint System

T

T

T

C

Page 84: Network Positioning for Wide-Area and Wireless Networks

Multi­constraint System

T

T

T

C

Page 85: Network Positioning for Wide-Area and Wireless Networks

Meridian Query Language

Variant of C/Python Safe, polymorphic, and dynamically­typed Includes an extensive set of library functions

Allows users to:Access multi­resolution ringsIssue latency probesForward queries to peers

Tight resource limits on:Execution time of queryNumber of hopsAmount of memory allocated

Page 86: Network Positioning for Wide-Area and Wireless Networks

Evaluation

Evaluated our system through a large scale simulation and a PlanetLab deployment

Simulation parameterized by real latency measurements 

2500 DNS servers, latency between 6.25 million node pairs

DNS servers are authorities name servers for domains found in the Yahoo! web directory

We evaluated system sizes of up to 2000 nodes500 nodes reserved as targets

Page 87: Network Positioning for Wide-Area and Wireless Networks

Evaluation: Closest Node DiscoveryMeridian has an order of magnitude less error than virtual coordinate schemes

Page 88: Network Positioning for Wide-Area and Wireless Networks

Evaluation: Closest Node DiscoveryCDF of relative error shows Meridian is more accurate for both typical nodes and fringe nodes

Page 89: Network Positioning for Wide-Area and Wireless Networks

Evaluation: Closest Node DiscoveryWith k = log1.6 N, error and query latency remain constant as N increasesAverage query latency determined by slowest node in each ring

Page 90: Network Positioning for Wide-Area and Wireless Networks

Evaluation: Central Leader ElectionMeridian incurs significantly less relative error

Page 91: Network Positioning for Wide-Area and Wireless Networks

Evaluation: Multi­constraint SystemCategorized multi­constraint queries by its difficulty

Difficulty a measure of the number of nodes in solution space

Success rate for queries that can be satisfied by only 0.5% of the nodes:

VC: 11%Meridian: 91%4 Constraints

VC: 19%VC: 35% Meridian: 90%3 Constraints

Meridian: 91%2 Constraints

Page 92: Network Positioning for Wide-Area and Wireless Networks

Evaluation: PlanetLab DeploymentA PlanetLab deployment of 166 nodes shows the closest node discovery accuracy to be very close to the simulation results

Have expanded deployment to 325 PlanetLab nodes supporting all 3 applications and MQL

Page 93: Network Positioning for Wide-Area and Wireless Networks

Implementation

Includes query language and the 3 protocols

Works with firewalled hosts

Can use DNS queries, TCP connect times, and Meridian UDP packets to measure latency 

Optimizations:

Measurement cache reduces query latency

Ring management scheme to select more diverse peers

Page 94: Network Positioning for Wide-Area and Wireless Networks

ClosestNode.com

ClosestNode.com is a DNS redirection service that returns the IP address of closest node to the client

e.g. cobweb.closestnode.com will resolve to the closest CobWeb DHT node to the requesting client

Requires minimal changes to the serviceLinking the Meridian library and calling one function at startup

Or add standalone Meridian server to start script

No changes required for the client

Can register your service at:

http://www.closestnode.com

Page 95: Network Positioning for Wide-Area and Wireless Networks

Meridian SummaryA lightweight accurate system for selecting nodes

Combines query routing with active measurements

An order of magnitude less error than virtual coordinates

Solves the network location problem directlyDoes not need to be paired with CAN

Code, data, demos and more information athttp://www.cs.cornell.edu/People/egs/meridian

Page 96: Network Positioning for Wide-Area and Wireless Networks

Octant

Determining the physical location of Internet nodes in the real world(Combining Sextant with Meridian...)

Page 97: Network Positioning for Wide-Area and Wireless Networks

OctantOften need to determine the physical location of a machine on the Internet

Provide customized servicesTrace user activityPerform monitoring and locate attackers

Need to map from IP Address to geographic locationIP to Zip Code: Static, Course­grained, Inaccurate

Need a dynamic, accurate way of finding physical location of machines

Must work even if host is behind NAT, firewall or in a VPN

Page 98: Network Positioning for Wide-Area and Wireless Networks

Octant Approach

Find general dependency between network latency and physical distanceSet up a system of constraints based on latency measurements to known landmark nodes

Aggressively extract constraintsUse both positive and negative information

Solve the system geometrically, yielding the set of physical areas on the globe where a target may be located

Page 99: Network Positioning for Wide-Area and Wireless Networks

Latency-Distance Relationship

Internet latencies correlated with distance

0

2000

4000

6000

8000

10000

0 50 100 150 200 250 300 350 400 450

Latency (ms)

Dis

tanc

e (k

m)

Page 100: Network Positioning for Wide-Area and Wireless Networks

Positive and Negative Information

A latency probe establishes the minimum and maximum distances between a target T and chosen landmarks

Geometric intersection yields target location

TT

r

R

Page 101: Network Positioning for Wide-Area and Wireless Networks

Cylindrical Equidistant Projection

Use Bézier curves to bound the areas in which a node can appear

Map curves onto projected 2D globe

Page 102: Network Positioning for Wide-Area and Wireless Networks

Summary

Octant is a dynamic and accurate Internet host localization service

Achieves high fidelity by using both positive and negative information

Can be used to determine the physical location of any node without user input

Page 103: Network Positioning for Wide-Area and Wireless Networks

Emin Gün Sirer

Department of Computer ScienceCornell University

Network Positioning for Wide-Area and Wireless Networks

Page 104: Network Positioning for Wide-Area and Wireless Networks

2

Localization is Critical

Locality information is the building block for novel services in wired and wireless networks

Critical to find out where in the physical world nodes (and other items of interest) are

Locality­aware content, computing, routing, service discovery, event tracking in sensor networks, ...

Critical to select servers based on the position of target nodes

Find closest server, find centrally located node, find node within latency bounds

Page 105: Network Positioning for Wide-Area and Wireless Networks

3

Sextant

Determining the location of nodes and events in wireless (ad hoc, sensor) networks

Page 106: Network Positioning for Wide-Area and Wireless Networks

4

Localization in Wireless Networks

Infrastructure­based hardware (GPS) is the traditional solution

ExpensivePower­hungryDoes not work indoors, without infrastructure

How well can we do with intelligent software and cheap, ubiquitous hardware?

Page 107: Network Positioning for Wide-Area and Wireless Networks

5

Sextant Approach

Treat localization as a constraint­satisfaction problem

Extract constraints aggressively from the networkDisseminate them transitivelySolve in a distributed manner

Page 108: Network Positioning for Wide-Area and Wireless Networks

6

Sextant Properties

AccurateNegative as well as positive informationExplicit representation

PracticalConstraint extractionDeployed on Mica­2 motes, PDAs and laptops

Positive Constraint

Negative Constraint

Page 109: Network Positioning for Wide-Area and Wireless Networks

7

Sextant Properties

AccurateNegative as well as positive informationExplicit representation

PracticalConstraint extractionDeployed on Mica­2 motes, PDAs and laptops

Need not be convexMay have holesMay have disconnected   components

Page 110: Network Positioning for Wide-Area and Wireless Networks

8

Sextant Properties

AccurateNegative as well as positive informationExplicit representation

PracticalConstraint extractionDeployed on Mica­2 motes, PDAs and laptops

Page 111: Network Positioning for Wide-Area and Wireless Networks

9

Node Localization

Positive information

Page 112: Network Positioning for Wide-Area and Wireless Networks

10

Node Localization

Intersection of Positive information

Page 113: Network Positioning for Wide-Area and Wireless Networks

11

Node Localization

Negative information

Page 114: Network Positioning for Wide-Area and Wireless Networks

12

Node Localization

Positive information

Page 115: Network Positioning for Wide-Area and Wireless Networks

13

Node Localization

Transitive dissemination of positive information

Page 116: Network Positioning for Wide-Area and Wireless Networks

14

Node Localization

Transitive dissemination of positive information

Page 117: Network Positioning for Wide-Area and Wireless Networks

15

Node Localization

Transitive dissemination of positive information

Page 118: Network Positioning for Wide-Area and Wireless Networks

16

Node Localization

Transitive dissemination of positive information

Page 119: Network Positioning for Wide-Area and Wireless Networks

17

Node Localization

Combining negative and positive information

Page 120: Network Positioning for Wide-Area and Wireless Networks

18

Node Localization

Combining negative and positive information

Page 121: Network Positioning for Wide-Area and Wireless Networks

19

Node Localization

Combining negative and positive information

Page 122: Network Positioning for Wide-Area and Wireless Networks

20

Node Localization

Combining negative and positive information

Page 123: Network Positioning for Wide-Area and Wireless Networks

21

Node Localization

Combining negative and positive information

Page 124: Network Positioning for Wide-Area and Wireless Networks

22

Node Localization

Refining position estimates

Page 125: Network Positioning for Wide-Area and Wireless Networks

23

Sextant Approach

Location estimate: ßx

Set of positive constraints: x

Set of negative constraints: x

ßx =  (p  x) \  (n  x)

Page 126: Network Positioning for Wide-Area and Wireless Networks

24

Sextant Areas

Represent areas explicitlyUse Bezier curves to bound bezier regionsFour control points define a curveUnion and intersection are implemented efficiently

Not a point estimate!Ideally, applications should take the bezier region as inputCan generate point estimate from bezier regions

Page 127: Network Positioning for Wide-Area and Wireless Networks

25

Localizing Events

Hot area in sensor networksThe Sextant approach provides a comprehensive, unified frameworkDifferences from node localization

Constraints from sensors, not wireless radiosBoolean connected/not connected to sensed/not sensedAnnotate resulting areas with probabilities

Page 128: Network Positioning for Wide-Area and Wireless Networks

26

Event localization

Decompose space into a grid, propagate probabilitiesCalculate normalized Bayesian probabilities

Page 129: Network Positioning for Wide-Area and Wireless Networks

27

Event Localization

Start with initial Sextant node regions

Page 130: Network Positioning for Wide-Area and Wireless Networks

28

Event Localization

An event occurs

Page 131: Network Positioning for Wide-Area and Wireless Networks

29

Event Localization

Sextant is used for event localization

Page 132: Network Positioning for Wide-Area and Wireless Networks

30

Event Localization

Sextant is used for event localization

Page 133: Network Positioning for Wide-Area and Wireless Networks

31

Event Localization

Event localized

Page 134: Network Positioning for Wide-Area and Wireless Networks

32

Event Localization

Event used for node localization!

Title:sextant Creator:Tgif-4.1.43-QPL written by Willi CreationDate:Sun May 22 18:05:55 2005

Page 135: Network Positioning for Wide-Area and Wireless Networks

33

Event Localization

Event used to refine node location!

Page 136: Network Positioning for Wide-Area and Wireless Networks

34

Event Localization

Event detection helps refine node positions!

Page 137: Network Positioning for Wide-Area and Wireless Networks

35

Meridian

Selecting nodes based on location(without knowing their actual location in the real 

world)

Page 138: Network Positioning for Wide-Area and Wireless Networks

36

Network Location Service

Real­world problems:

Locate closest game server

Distribute web­crawling to nearby hosts

Perform efficient application level multicast

Satisfy a Service Level Agreement

Provide inter­node latency bounds for clusters

Underlying abstract problems

Finding closest node to target

Finding the closest node to the center of a set of targets

Finding a node that is <ri ms from target ti for all targets

Select nodes based on a set of network properties

Page 139: Network Positioning for Wide-Area and Wireless Networks

37

Current State­of­the­Art: Virtual Coordinates

Maps Internet latencies into low dimensional spaceGNP, Vivaldi, Lighthouse, ICS, VL, BBS, PIC, NPS, etc.

Reduces number of real­time measurements

3 practical problems:Introduces inherent embedding error

A snapshot in time of the network location of a nodeCoordinates become stale over timeLatency estimates based on coordinates computed at different times can lead to additional errors

Requires additional P2P substrate to solve network location problems without centralized servers or O(N) state

Page 140: Network Positioning for Wide-Area and Wireless Networks

38

Meridian ApproachSolve node selection directly without computing coordinates

Combine query routing with active measurements

3 Design Goals:Accurate:  Find satisfying nodes with high probability

General:  Users can fully express their network location requirements

Scalable:  O(log N) state per node, O(log D) hops per query

Design tradeoffs:Active measurements incur higher query latencies

Overhead more dependent on query load

Page 141: Network Positioning for Wide-Area and Wireless Networks

39

Meridian OperationFramework: 

Loosely structured overlay network

Algorithms: 

Solve network location problems in O(log D) hops

Language:

General­purpose language for expressing network location requirements

Page 142: Network Positioning for Wide-Area and Wireless Networks

40

Multi­resolution RingsOrganize peers into small fixed number of concentric rings

Radii of rings grow outwards exponentially

Logarithmic # of peers per ring 

Favors nearby neighbors

Retains a sufficient number of pointers to remote regions

Gossip protocol used for peer discovery

r= sr= s2A

Page 143: Network Positioning for Wide-Area and Wireless Networks

41

Multi­resolution RingsOrganize peers into small fixed number of concentric rings

Radii of rings grow outwards exponentially

Logarithmic # of peers per ring 

Favors nearby neighbors

Retains a sufficient number of pointers to remote regions

Gossip protocol used for peer discovery

r= sr= s2A

Page 144: Network Positioning for Wide-Area and Wireless Networks

42

Multi­resolution RingsOrganize peers into small fixed number of concentric rings

Radii of rings grow outwards exponentially

Logarithmic # of peers per ring 

Favors nearby neighbors

Retains a sufficient number of pointers to remote regions

Gossip protocol used for peer discovery

r= sr= s2A

Page 145: Network Positioning for Wide-Area and Wireless Networks

43

Multi­resolution RingsOrganize peers into small fixed number of concentric rings

Radii of rings grow outwards exponentially

Logarithmic # of peers per ring 

Favors nearby neighbors

Retains a sufficient number of pointers to remote regions

Gossip protocol used for peer discovery

r= sr= s2A

Page 146: Network Positioning for Wide-Area and Wireless Networks

44

Closest Node Discovery

Multi­hop searchSimilar to finding the closest identifier in DHTs

Replaces virtual identifiers with physical latencies

Each hop exponentially reduces the distance to the target

Reduction threshold   for β 0 ≤  < 1β

Only take another hop if a peer node is   times closerβ

Limits # of probed peers through triangle inequality

Page 147: Network Positioning for Wide-Area and Wireless Networks

45

Closest Node Discovery

C

T

Page 148: Network Positioning for Wide-Area and Wireless Networks

46

Closest Node Discovery

C

T

d

Page 149: Network Positioning for Wide-Area and Wireless Networks

47

Closest Node Discovery

C

T

d

Page 150: Network Positioning for Wide-Area and Wireless Networks

48

Closest Node Discovery

C

T

d β * d

β * d

Page 151: Network Positioning for Wide-Area and Wireless Networks

49

Closest Node Discovery

C

T

Page 152: Network Positioning for Wide-Area and Wireless Networks

50

Closest Node Discovery

C

T

Page 153: Network Positioning for Wide-Area and Wireless Networks

51

Closest Node Discovery

C

T

Page 154: Network Positioning for Wide-Area and Wireless Networks

52

Closest Node Discovery

C

T

Page 155: Network Positioning for Wide-Area and Wireless Networks

53

C

Td

Closest Node Discovery

Page 156: Network Positioning for Wide-Area and Wireless Networks

54

Closest Node Discovery

C

Td

Page 157: Network Positioning for Wide-Area and Wireless Networks

55

Closest Node Discovery

C

Td

Page 158: Network Positioning for Wide-Area and Wireless Networks

56

Closest Node Discovery

C

T

Page 159: Network Positioning for Wide-Area and Wireless Networks

57

Closest Node Discovery

C

T

Page 160: Network Positioning for Wide-Area and Wireless Networks

58

Closest Node Discovery

C

T

Page 161: Network Positioning for Wide-Area and Wireless Networks

59

Closest Node Discovery

T

C

Page 162: Network Positioning for Wide-Area and Wireless Networks

60

Closest Node Discovery

T

C

Page 163: Network Positioning for Wide-Area and Wireless Networks

61

Closest Node Discovery

T

C

Page 164: Network Positioning for Wide-Area and Wireless Networks

62

Closest Node Discovery

T

C

Page 165: Network Positioning for Wide-Area and Wireless Networks

63

Closest Node Discovery

T

C

Page 166: Network Positioning for Wide-Area and Wireless Networks

64

Meridian Theoretical AnalysisAnalytical guarantees for closest node discovery

Meridian can find the closest node with high probability

Given nodes in a space with a doubling metric

As well as a growth constrained metric

Scales well with increasing system size

Does not lead to hot spots

Page 167: Network Positioning for Wide-Area and Wireless Networks

65

Central Leader ElectionSelect the closest node to the center of a set of targets

Multi­cast trees can place central nodes higher in the hierarchy

Algorithm similar to closest node discovery

Minimizes avg. latency to a set of targets instead of one targetUses distance metric davg instead of d

Inter­node latencies of targets not knownNeed to be conservative in pruning peers

Page 168: Network Positioning for Wide-Area and Wireless Networks

66

Central Leader Election

C

T

T

T

Page 169: Network Positioning for Wide-Area and Wireless Networks

67

Central Leader Election

d1

C

T

T

T

d2

d3

Page 170: Network Positioning for Wide-Area and Wireless Networks

68

Central Leader Election

d1

C

T

T

T

d2

d3

Page 171: Network Positioning for Wide-Area and Wireless Networks

69

Central Leader Election

C

T

T

T

Page 172: Network Positioning for Wide-Area and Wireless Networks

70

Central Leader Election

C

T

T

T

Page 173: Network Positioning for Wide-Area and Wireless Networks

71

Central Leader Election

d3

d2d1

C

T

T

T

Page 174: Network Positioning for Wide-Area and Wireless Networks

72

Central Leader Election

d3

d2d1

C

T

T

T

Page 175: Network Positioning for Wide-Area and Wireless Networks

73

Central Leader Election

C

T

T

T

Page 176: Network Positioning for Wide-Area and Wireless Networks

74

Central Leader Election

C

T

T

T

Page 177: Network Positioning for Wide-Area and Wireless Networks

75

Multi­constraint SystemFind a node that satisfies a set of latency constraints

ISP can find a server that can satisfy a SLA with a clientGrid users can find a set of nodes with a bounded inter­node latency

There exists a solution space, containing 0 or more nodesOnly a solution point in previous problems 

Requires a different distance metric s :

 

s = 0 when all constraints are satisfiedSum of squares places more weight on fringe constraints 

Allows for faster convergence to solution space

Other metrics can be used, square works well in practice

Page 178: Network Positioning for Wide-Area and Wireless Networks

76

Multi­constraint System

T

T

T

C

Page 179: Network Positioning for Wide-Area and Wireless Networks

77

Multi­constraint System

T

T

T

C

Page 180: Network Positioning for Wide-Area and Wireless Networks

78

Multi­constraint System

T

T

T

C

Page 181: Network Positioning for Wide-Area and Wireless Networks

79

Multi­constraint System

T

T

T

C

Page 182: Network Positioning for Wide-Area and Wireless Networks

80

Multi­constraint System

T

T

T

C

Page 183: Network Positioning for Wide-Area and Wireless Networks

81

Multi­constraint System

T

T

T

C

Page 184: Network Positioning for Wide-Area and Wireless Networks

82

Multi­constraint System

T

T

T

C

Page 185: Network Positioning for Wide-Area and Wireless Networks

83

Multi­constraint System

T

T

T

C

Page 186: Network Positioning for Wide-Area and Wireless Networks

84

Multi­constraint System

T

T

T

C

Page 187: Network Positioning for Wide-Area and Wireless Networks

85

Meridian Query LanguageVariant of C/Python 

Safe, polymorphic, and dynamically­typed Includes an extensive set of library functions

Allows users to:Access multi­resolution ringsIssue latency probesForward queries to peers

Tight resource limits on:Execution time of queryNumber of hopsAmount of memory allocated

Page 188: Network Positioning for Wide-Area and Wireless Networks

86

EvaluationEvaluated our system through a large scale simulation and a PlanetLab deployment

Simulation parameterized by real latency measurements 

2500 DNS servers, latency between 6.25 million node pairs

DNS servers are authorities name servers for domains found in the Yahoo! web directory

We evaluated system sizes of up to 2000 nodes500 nodes reserved as targets

Page 189: Network Positioning for Wide-Area and Wireless Networks

87

Evaluation: Closest Node DiscoveryMeridian has an order of magnitude less error than virtual coordinate schemes

Page 190: Network Positioning for Wide-Area and Wireless Networks

88

Evaluation: Closest Node DiscoveryCDF of relative error shows Meridian is more accurate for both typical nodes and fringe nodes

Page 191: Network Positioning for Wide-Area and Wireless Networks

89

Evaluation: Closest Node DiscoveryWith k = log1.6 N, error and query latency remain constant as N increasesAverage query latency determined by slowest node in each ring

Page 192: Network Positioning for Wide-Area and Wireless Networks

90

Evaluation: Central Leader ElectionMeridian incurs significantly less relative error

Page 193: Network Positioning for Wide-Area and Wireless Networks

91

Evaluation: Multi­constraint SystemCategorized multi­constraint queries by its difficulty

Difficulty a measure of the number of nodes in solution space

Success rate for queries that can be satisfied by only 0.5% of the nodes:

VC: 11%Meridian: 91%4 Constraints

VC: 19%VC: 35% Meridian: 90%3 Constraints

Meridian: 91%2 Constraints

Page 194: Network Positioning for Wide-Area and Wireless Networks

92

Evaluation: PlanetLab DeploymentA PlanetLab deployment of 166 nodes shows the closest node discovery accuracy to be very close to the simulation results

Have expanded deployment to 325 PlanetLab nodes supporting all 3 applications and MQL

Page 195: Network Positioning for Wide-Area and Wireless Networks

93

ImplementationIncludes query language and the 3 protocols

Works with firewalled hosts

Can use DNS queries, TCP connect times, and Meridian UDP packets to measure latency 

Optimizations:

Measurement cache reduces query latency

Ring management scheme to select more diverse peers

Page 196: Network Positioning for Wide-Area and Wireless Networks

94

ClosestNode.com

ClosestNode.com is a DNS redirection service that returns the IP address of closest node to the client

e.g. cobweb.closestnode.com will resolve to the closest CobWeb DHT node to the requesting client

Requires minimal changes to the serviceLinking the Meridian library and calling one function at startup

Or add standalone Meridian server to start script

No changes required for the client

Can register your service at:

http://www.closestnode.com

Page 197: Network Positioning for Wide-Area and Wireless Networks

95

Meridian SummaryA lightweight accurate system for selecting nodes

Combines query routing with active measurements

An order of magnitude less error than virtual coordinates

Solves the network location problem directlyDoes not need to be paired with CAN

Code, data, demos and more information athttp://www.cs.cornell.edu/People/egs/meridian

Page 198: Network Positioning for Wide-Area and Wireless Networks

96

Octant

Determining the physical location of Internet nodes in the real world(Combining Sextant with Meridian...)

Page 199: Network Positioning for Wide-Area and Wireless Networks

97

OctantOften need to determine the physical location of a machine on the Internet

Provide customized servicesTrace user activityPerform monitoring and locate attackers

Need to map from IP Address to geographic locationIP to Zip Code: Static, Course­grained, Inaccurate

Need a dynamic, accurate way of finding physical location of machines

Must work even if host is behind NAT, firewall or in a VPN

Page 200: Network Positioning for Wide-Area and Wireless Networks

98

Octant Approach

Find general dependency between network latency and physical distanceSet up a system of constraints based on latency measurements to known landmark nodes

Aggressively extract constraintsUse both positive and negative information

Solve the system geometrically, yielding the set of physical areas on the globe where a target may be located

Page 201: Network Positioning for Wide-Area and Wireless Networks

99

Latency-Distance Relationship

Internet latencies correlated with distance

0

2000

4000

6000

8000

10000

0 50 100 150 200 250 300 350 400 450

Latency (ms)

Dis

tanc

e (k

m)

Page 202: Network Positioning for Wide-Area and Wireless Networks

100

Positive and Negative Information

A latency probe establishes the minimum and maximum distances between a target T and chosen landmarks

Geometric intersection yields target location

TT

r

R

Page 203: Network Positioning for Wide-Area and Wireless Networks

101

Cylindrical Equidistant Projection

Use Bézier curves to bound the areas in which a node can appear

Map curves onto projected 2D globe

Page 204: Network Positioning for Wide-Area and Wireless Networks

102

Summary

Octant is a dynamic and accurate Internet host localization service

Achieves high fidelity by using both positive and negative information

Can be used to determine the physical location of any node without user input


Recommended