DHT Routing Presented by Emma Kilfoyle October 24, 2013 DHT - - PowerPoint PPT Presentation

dht routing
SMART_READER_LITE
LIVE PREVIEW

DHT Routing Presented by Emma Kilfoyle October 24, 2013 DHT - - PowerPoint PPT Presentation

DHT Routing Presented by Emma Kilfoyle October 24, 2013 DHT History/Background 1995 - Internet goes public Early 2000s - P2P file sharing, e.g. Napster (1999) and Gnutella (2000), gains popularity 2001 - researchers start


slide-1
SLIDE 1

DHT Routing

Presented by Emma Kilfoyle October 24, 2013

slide-2
SLIDE 2

DHT History/Background

  • 1995 - Internet goes public
  • Early 2000s - P2P file sharing, e.g. Napster (1999) and

Gnutella (2000), gains popularity

  • 2001 - researchers start developing fast, distributed

lookup services (CAN, Chord, Tapestry, Pastry)

  • Today - Cassandra (Facebook), Dynamo (Amazon),

memcached (Twitter/Facebook), etc.

slide-3
SLIDE 3

DHT History/Background

  • 1995 - Internet goes public
  • Early 2000s - P2P file sharing, e.g. Napster (1999) and

Gnutella (2000), gains popularity

  • 2001 - researchers start developing fast, distributed

lookup services (CAN, Chord, Tapestry, Pastry)

  • Today - Cassandra (Facebook), Dynamo (Amazon),

memcached (Twitter/Facebook), etc.

slide-4
SLIDE 4

Chord: A P2P Lookup Service

Ion Stoica UC Berkeley

  • “Chord: A Scalable Peer-to-Peer Lookup Service for Internet Applications”
  • MIT Laboratory for Computer Science and AI
  • Presented at SIGCOMM 2001

Robert Morris MIT, CSAIL David Karger MIT, CSAIL

  • M. F. Kaashoek

MIT, CSAIL Hari Balakrishnan MIT, CSAIL

slide-5
SLIDE 5

Chord Goals

  • Load balance
  • Decentralization
  • Scalability
  • Availability
  • Flexible naming
slide-6
SLIDE 6

Chord Routing Basics

  • Node - any machine running Chord software
  • Successor - node with next largest ID
  • Predecessor - node with next smallest ID
  • Finger table - Chord routing table

○ Includes entries (“fingers”) for O(log N) other nodes ○ kth finger at node n contains the first node s that succeeds n by at least 2k -1, i.e. successor(n + 2k -1)

slide-7
SLIDE 7

Chord Routing Protocol

Example on blackboard!

slide-8
SLIDE 8

Chord Performance

Load balance in a 104 node network...

slide-9
SLIDE 9

Chord Performance

Path length as a function

  • f network size...

Path length PDF in a 212 node network...

slide-10
SLIDE 10

Chord Extras

What we didn’t talk about...

  • Virtual nodes
  • Stabilization processes
  • Concurrent node joins/departures/failures
slide-11
SLIDE 11

Discussion

  • 1. How well did Chord address its 5 goals?

○ load balance ○ decentralization ○ scalability ○ availability ○ flexible naming

  • 2. Are provably short path lengths enough to

ensure fast routing in a WAN?

slide-12
SLIDE 12

Impact of DHT Routing Geometry

  • “The Impact of DHT Routing Geometry on Resilience and Proximity”
  • Presented at SIGCOMM 2003
  • K. Gummadi
  • R. Gummadi
  • S. Gribble
  • S. Ratnasamy
  • S. Shenkar
  • I. Stoica
slide-13
SLIDE 13

Routing Geometries

  • Ring, e.g. Chord
  • Tree, e.g. Tapestry
  • Hypercube, e.g. CAN
  • Butterfly, e.g. Viceroy
  • XOR, e.g. Kademlia
  • Hybrid (Ring+Tree), e.g. Pastry
slide-14
SLIDE 14

Flexibility, Resilience & Proximity

  • Flexibility - how many different ways to route a request

○ Neighbor selection ○ Route selection

  • Resilience - keep routing requests after nodes

fail/depart

  • Proximity - route requests through nodes that are “close

together” w.r.t. some metric, e.g. network latency

slide-15
SLIDE 15

Flexibility, Resilience & Proximity

  • Flexibility - how many different ways to route a request

○ Neighbor selection ○ Route selection

  • Resilience - keep routing requests after nodes

fail/depart

  • Proximity - route requests through nodes that are “close

together” w.r.t. some metric, e.g. network latency

  • Hypothesis: Greater flexibility leads to DHTs with

higher resilience and better proximity of routes

slide-16
SLIDE 16

Results: Resilience

slide-17
SLIDE 17

Results: Proximity

slide-18
SLIDE 18

Results: Proximity cont.

slide-19
SLIDE 19

Takeaways

  • DHT routing geometry matters!
  • Flexibility in neighbor selection is important
  • Simple Ring geometry works surprisingly

well