BATON Overlay

BATON Overlay

BATON, BAlanced Tree Over-lay Network, is a distributed tree structure for Peer-to-Peer (P2P) systems. Different from other overlays that use DHT (such as Chord), BATON organizes peers in a distributed tree to support range search. In addition, BATON tries to keep the tree in a balanced manner as the AVL tree. And hence, the search cost is bounded by O(logN)

Architecture

BATON is a binary tree. Each node in BATON keeps four kinds of links:
#link to its parent node
#links to its child nodes
#links to its adjacent nodes in in-order
#links to the routing nodes in the same level

In each tree level, the node is named by its position in the tree. For example, node "h" is named 3:0, node "i" is named 3:1 and node "p" is named 4:6. For a node at position p, it will fill its left routing table by nodes at position p-2x for any valid xgeq 0 and fill its right routing table by nodes at position p+2y for any valid ygeq 0.

Node Joining and Leaving

The new node's joining request will always be forwarded to the leaf node. The leaf node will check to see whether it routing table is full. If the routing table is full, this level is full of nodes and the leaf node can accept the new node as its child to create a new level node. Otherwise, it must forward the new node to take over one of the empty positions.

When a node wants to leave the network, it must update the routing tables of its parent node, child nodes, adjacent nodes and routing nodes. If this node is a leaf node, it can leave the network safely. Otherwise, it must find a leaf node to replace its position.

Routing

In BATON, each node maintains a continuous key space. Once a new node joins as its child, it splits its space and assigns half of it to the child. In this partition way, if we travel the tree in in-order, we can search the whole space in ascendant order. That's why BATON supports range queries.

For a range query q, BATON first locats its left bound, q.low. And then the search process will travel the tree in in-order (by adjacent link), until reach the upper bound, q.up. For locating a single key, BATON performs the similar routing strategy as Chord. First, the request is routed to the farthest routing nodes which does not over hit the key. If no such routing nodes exist, the parent link, child link or adjacent link is used.

Restructure

When a node x accepts a joining node y as its child and detects that the tree balance is violated, it initiates the restructuring process. Without loss of generality, suppose that this restructuring is towards the right. Assume that y joins as x's left child. To rebalance thesystem, x notifies y to replace its position, and notifies its right adjacent node z that x will replace z's position. z then checks its right adjacent node t to see if its left child is empty. If it is, and adding a child to t does not affect the tree balance, z takes the position of t's left child as its new position and the restructuring process stops. If t's left child is full or t cannot accept x as its left child without violating the balance property, z occupies t's position while t needs to find a new position for itself by continuing to its right adjacent node.

Load Balancing

BATON adopts two kinds of load balancing strategy. Once a node n detects that it is over loaded,
# If its left or right adjacent node is light loaded, the node will transfer some data to the adjacent node to lower its load
# If its adjacent nodes are not capable to share the load, the node will invoke a process to find a randomly light loaded node in the network. The light loaded node leaves its original position and joins as the child of the overloaded node to take over part of its data. The restructure process may be invoked.

References

Further reading

*

ee also

#Chord
#CAN
#Pastry

External links

* [http://www.comp.nus.edu.sg/~bestpeer/ Website of BestPeer Project]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Baton — may refer to:In stick like objects: *Baton (conducting), a short thin stick used for directing a musical performance *Baton (running), an object transferred by runners in a relay race *Baton (symbol), a symbolic attribute of military or other… …   Wikipedia

  • List of North American Numbering Plan area codes — This is a list of North American telephone area codes in effect for the North American Numbering Plan (NANP). The area to which an area code is officially assigned is known as a Numbering Plan Area (NPA). Contents 1 200 2 300 3 400 4 …   Wikipedia

  • Slashed zero — Not to be confused with Ø. Display of zero in three typefaces. From top to bottom: slashed zero, dotted zero, plain zero. The slashed zero is a representation of the number 0 (zero), with a slash through it. In character encoding terms, it is an… …   Wikipedia

  • Melbourne Cricket Ground — MCG redirects here. For other uses, see MCG (disambiguation). Melbourne Cricket Ground The MCG …   Wikipedia

  • Marshall, Texas — City of Marshall   City   Marshall welcoming sign …   Wikipedia

  • Urban Dance Squad — Infobox musical artist Name = Urban Dance Squad Img capt = Img size = Background = group or band Origin = Utrecht, Netherlands Genre = Alternative rock Funk rock Rap rock Years active = 1986 ndash;2000 2006 Label = Arista Sony BMG Triple X… …   Wikipedia

  • Purdue All-American Marching Band — School Purdue University Location West Lafayette, IN Conference Big Ten Founded …   Wikipedia

  • Northwestern University Wildcat Marching Band — School Northwestern University Location Evanston, Illinois Conference …   Wikipedia

  • Alexandria — /al ig zan dree euh, zahn /, n. 1. Arabic, Al Iskandarîyah. a seaport in N Egypt, in the Nile delta: founded in 332 B.C. by Alexander the Great; ancient center of learning. 2,201,000. 2. a city in NE Virginia, S of the District of Columbia.… …   Universalium

  • art criticism — Description, interpretation, and evaluation of works of art, manifested in journal reviews, books, and patronage. Art criticism encompasses a wide variety of approaches, from critical commentary to more subjective emotional reactions inspired by… …   Universalium

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”