Dont Love Thy Nearest Neighbor Cristian Lumezanu Georgia Tech Dave - - PowerPoint PPT Presentation
Dont Love Thy Nearest Neighbor Cristian Lumezanu Georgia Tech Dave - - PowerPoint PPT Presentation
Dont Love Thy Nearest Neighbor Cristian Lumezanu Georgia Tech Dave Levin, Bo Han, Neil Spring, Bobby Bhattacharjee University of Maryland B Find server that minimizes average latency to players
A ¡
Find ¡server ¡that ¡minimizes ¡ ¡ average ¡latency ¡to ¡players ¡
B ¡ D ¡ C ¡ E ¡
A ¡ B ¡ D ¡ C ¡ E ¡
Theore;cal ¡op;mum ¡
A ¡ B ¡ D ¡ C ¡ E ¡
Nearest ¡neighbor ¡
A ¡
Find ¡server ¡that ¡minimizes ¡ ¡ average ¡latency ¡to ¡players ¡ (and ¡provides ¡fairness) ¡
B ¡ D ¡ C ¡ E ¡
B ¡ D ¡ C ¡ E ¡
Nearest ¡neighbor ¡is ¡not ¡enough ¡
Nearest ¡neighbor ¡ Theore;cal ¡op;mum ¡
A ¡
Lowest ¡cost ¡node ¡ ¡
Cost ¡op;miza;on ¡in ¡the ¡network ¡coordinate ¡space ¡
¡Sherpa ¡
- Overlay ¡network ¡system ¡that ¡finds ¡the ¡lowest ¡cost ¡
node ¡under ¡latency ¡constraints ¡
- Broad ¡classes ¡of ¡latency-‑based ¡cost ¡func<ons, ¡
without ¡knowing ¡all ¡the ¡nodes ¡that ¡we ¡are ¡ querying ¡
- 1. ¡Network ¡coordinates ¡
- 2. ¡Voronoi ¡regions ¡
- 3. ¡Compass ¡rou<ng ¡
- 4. ¡Gradient ¡descent ¡
Overlay ¡setup ¡ Querying/Node ¡discovery ¡
A ¡ B ¡ D ¡ C ¡ E ¡
G ¡ J ¡ H ¡ I ¡ F ¡
A ¡ B ¡ D ¡ C ¡ E ¡
G ¡ J ¡ H ¡ I ¡ F ¡
Compass ¡rou;ng ¡
A ¡ B ¡ D ¡ E ¡
G ¡ J ¡ H ¡ I ¡ F ¡
C ¡
Gradient ¡descent ¡
Nearest ¡neighbor ¡ Lowest ¡cost ¡node ¡ ¡
Evalua<on ¡
- Two ¡latency ¡data ¡sets: ¡ ¡
– 1715 ¡DNS ¡servers, ¡213 ¡PlanetLab ¡nodes ¡ – network ¡coordinate ¡system: ¡Vivaldi ¡
- 1,000 ¡queries: ¡“find ¡centroid ¡of ¡30 ¡nodes” ¡
cost(m) = d(m, pi)
i=1 N
∑
N + +(maxi(d(m, pi)) − mini(d(m, pi)))2
Nearest ¡neighbor ¡is ¡not ¡enough ¡
- ‑1 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡-‑0.5 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡0 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡0.5 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡1 ¡
¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡cost ¡reduc<on ¡ ¡ 1 ¡ 0.5 ¡ 0 ¡
Cost ¡reduc;on ¡
1 ¡-‑ ¡ ¡cost(nn) ¡ cost(opt) ¡
For ¡80% ¡of ¡the ¡queries, ¡the ¡node ¡chosen ¡by ¡Sherpa ¡has ¡a ¡ lower ¡cost ¡than ¡the ¡nearest ¡neighbor ¡
Rela<ve ¡ranking ¡
1 ¡ 0.5 ¡ 0 ¡ 0 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡10 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡20 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡30 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡40 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡50 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡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