Академический Документы
Профессиональный Документы
Культура Документы
Stoica et al.
• Partial search
• Caching
• Partial search
• Caching
False negative, Inconsistency
03/30/07 Chord: Stoica et al. 9
Chord
• Distributed hash table across nodes
Application A
1. Lookup(key) 2. IP = 292.164.2.3
Chord
Node i
N56
N8
N14
N42
N32
N38
N56
N8
K54
K10
N14
N42
• So to fill an entry:
– Compute: key = successor(n + 2i-1) % m
– Do lookup(key)
– Fill entry with the node that has key
• So to fill an entry:
– Compute: key = successor(n + 2i-1) % m
– Do lookup(key)
– Fill entry with the node that has key
N56
N8 K10
K54
N14
N42
N56
N8 K10
K54
N14
N42
N56
N8 K10
K54
N14
N42
N56
N8
K54
K10
N14
N42
N56
N8
K54
K10
N14
N42
N56
N8
K54
K10
N14
N42
N38 K24
N32
K30
N14
N42
K10
K38 N38 K24
N32
K30
03/30/07 Chord: Stoica et al. 29
Joining
N14
N42
K10
K38 N38 K24
N32
K30
03/30/07 Chord: Stoica et al. 30
Joining
N14
N42
K10
K38 N38 K24
N32
K30
03/30/07 Chord: Stoica et al. 31
Joining
N56 N8
K54
N14
N42
K10
K38 N38
N32 K24 N26
N56 N8
K54
N14
N42
K10
K38 N38
K24
N32 N26
N56 N8
K54
predecessor?
N14
N42
K10
K38 N38
K24
N32 N26
N56 N8
K54
N26 N14
N42
K10
K38 N38
K24
N32 N26
N56 N8
K54
N14
N42
K10
K38 N38 N26
K24
N32
• Features:
– Load balancing
– High availability
– Scalability