Title: Ulysses: A Robust, LowDiameter, LowLatency PeertoPeer Network
1Ulysses A Robust, Low-Diameter, Low-Latency
Peer-to-Peer Network
- Abhishek Kumar
- Shashidhar Merugu
- Jim Xu
- Xingxing Yu
- Georgia Tech.
2Outline
- Review of DHT based search.
- Why worry about Diameter?
- The Butterfly Topology and its p2p version.
- Ulysses - Structure and Operation.
- Simulation Results.
3Distributed Hash table (DHT)
I have foo.doc
HASH(foo.doc)10110
Insert(10110, 67.170.23.25)
67.170.23.25
4Search in a DHT
Foo.doc ?
HASH(foo.doc)10110
Search(10110)
67.170.23.25
67.170.23.25
5Why is diameter so important ?
- One Hop in overlay End to end path
in underlying network. - Diameter Worst case latency.
- Avg. hops in overlay avg. latency.
- Littles law
- Avg. hops in overlay avg. stress.
- Reduction in diameter reduces
- Latency
- Node stress
- Edge stress
6Routing table size vs diameter
Routing table size
Maintain full state
n log n ltd
Plaxton et.al, Chord, Pastry, Tapestry
Ulysses, de Bruijn Graph (Koorde etc.)
Viceroy (d7)
Maintain no state
SCAN
0
Worst case distance
O(1) O(log n) O(dn1/d)
O(n)
O(loglognn)
7The Butterfly topology
Source Level
Destination Level
Intermediate Levels
S
Horizontal Links
D
Cross Links
8The p2p Butterfly topology
S
Number of levelsk Out-degree of each
noder Number of nodes in each levelrk Total
nodes in the network, n krk
D
- for n16,000,000 k5 r20 lt log n
9The Butterfly topology
Level 1
Level 0
Level 0
00
00
00
01
01
01
10
10
10
11
11
11
10The Butterfly topology
Level 1
Level 0
Level 0
00
00
00
01
01
01
10
10
10
11
11
11
Dimension 0
Dimension 1
11The Butterfly topology - with dynamic joins and
departures
Level 0
Level 1
Level 0
00
00
00
01
01
01
100
101
10
10
11
11
11
- Invariant Fanouts are consistent
- Routing still correct and efficient
12Keys in the Ulysses network
1100010100011,2
Level
Row identifier
13Partitioning the keyspace
I want to join
New node
Original node
14Partitioning the keyspace
New node
Take half my Zone
Original node
15Partitioning the keyspace
bit_1 0 1
Original node
New node
16Partitioning the keyspace
bit_1 0 0 1 1
bit_3 0 1 0 1
bit_2 0 0 1 1
bit_4 0 1 0 1
00110101110
17The Ulysses network Links
x
1
x
0
Level 0
Level 0
Level 1
18The Ulysses network Links
x
1
x
0
Level 0
Level 0
Level 1
19The Ulysses network Links
x
1
x
0
Level 0
Level 0
Level 1
20The Ulysses network Links
x
1
x
0
Level 0
Level 0
Level 1
21Routing in the Ulysses network
x
1
x
0
S
D
Level 0
Level 0
Level 1
22Results Reduction in diameter
23Prob. Distribution of no. of hops required to
route a query in a 4 million node network
24Reduction in Stress
25Concluding remarks
- Ulysses achieves the optimum diameter.
- Reduction in diameter reduces
- Latency
- Node stress
- Edge stress
- The complete protocol is also
- Robust can route queries even with node
failures. - Self-stabilizing repairs itself on node
arrivals and departures.