ArticleslgStudy

science

BATON Overlay

BATON Overlay is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand BATON Overlay rather than just read about it. In short: The BAlanced Tree Overlay Network (BATON) is a distributed tree structure designed for peer-to-peer (P2P) systems. Unlike other overlays that employ a distributed hash table, BATON organises peers in a distributed tree to facilitate range search.

BATON Overlay — main illustration
BATON Overlay — illustration

Key takeaways

  • BATON Overlay belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect BATON Overlay to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of BATON Overlay from memory before moving on to harder problems.

Reference excerpt

The BAlanced Tree Overlay Network (BATON) is a distributed tree structure designed for peer-to-peer (P2P) systems. Unlike other overlays that employ a distributed hash table, BATON organises peers in a distributed tree to facilitate range search. BATON aims to maintain a balanced tree height, similar to the AVL tree, resulting in a bounded to O(log⁡N) for search exact and range queries as well as update operations (join/leave).

System model

BATON is a binary tree. In each tree level, the node is named by its position in the tree. Each node in BATON keeps four kinds of links:

a link to its parent node (unless it is root) links up to two-children nodes a link to left and right adjacent node links to select neighbor nodes maintained in a left routing table (LRT) and right routing table (RRT). Combining these, the routing table is created RT:=LRT∪RRT The level of any node is one greater than the level of its parent. Root is on level 0. For a node at position p, it will fill its left routing table by nodes at position p−2x for any valid x≥0 and fill its right routing table by nodes at position p+2y for any valid y≥0. The construction of the routing table has slight resemblance to the finger tables in Chord. So according to the example structure, node 2:1 would keep links to

1:0 (parent) 3:2 (children) 0:0 and 3:2 (adjacent) 2:0, 2:2 and 2:3 (neighbors) Height-Balanced BATON is considered balanced if and only if the height of its two sub-trees at any node in the tree differs by at most one. If any node detects that the height-balanced constraint is violated, a restructuring process is initiated to ensure that the tree remains balanced.

Node joining and leaving When a new node wants to join the network in BATON, its joining request is always forwarded to the leaf node. The leaf node then checks whether its routing table is full. If the table is full, it means that the level is full of nodes, and the leaf node can accept the new node as its child to create a new level node. If the table is not full, the leaf node must forward the new node to take over one of the empty positions. On the other hand, 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 the leaving node is a leaf node, it can safely leave the network. However, if it is not a leaf node, it must find a leaf node to replace its position.

Routing In BATON, each node maintains a continuous key space. When a new node joins as its child, the node splits its space and assigns half of it to the child. This partitioning method allows the tree to be traversed in ascending order if we travel the tree in in-order. This is why BATON supports range queries. To execute a range query q, BATON first locates its left bound, q.low. Then, the search process travels the tree in in-order (by adjacent link) until it reaches the upper bound, q.up. For locating a single key, BATON uses a similar routing strategy as Chord. The request is first routed to the farthest routing node that does not overshoot 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, let's assume that this restructuring is towards the right. Suppose that y joins as x's left child. To rebalance the system, 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.

BATON extensions BATON* - BAlanced m-ary Tree Overlay Network: A height-balanced m-ary search tree extension of BATON with further links for efficiency, fault-tolerance, and load-balancing. nBATON* - null-BAlanced m-ary Tree Overlay Network: A null-balancey m-ary search tree extension of BATON* with up to 50% better performance w.r.t. required routing hops.

See also Chord CAN Pastry

References H. V. Jagadish; Beng Chin Ooi & Quang Hieu Vu (2005). "BATON: a balanced tree structure for peer-to-peer networks" (PDF). Proceedings of the 31st international conference on Very large data bases, Trondheim, Norway. pp. 661–672. ISBN 1-59593-154-6.

Further reading H. V. Jagadish; Beng Chin Ooi; Quang Hieu Vu; Rong Zhang & Aoying Zhou (2006). "VBI-Tree: A Peer-to-Peer Framework for Supporting Multi-Dimensional Indexing Schemes" (PDF). Proceedings of the 22nd International Conference on Data Engineering. p. 34. ISBN 0-7695-2570-9. H. V. Jagadish; Beng Chin Ooi; Kian-Lee Tan; Quang Hieu Vu & Rong Zhang (2006). "Speeding up search in peer-to-peer networks with a multi-way tree structure" (PDF). Proceedings of the 2006 ACM SIGMOD international conference on Management of data. pp. 1–12. ISBN 1-59593-434-0. Shiyuan Wang; Beng Chin Ooi; Tung, A.K.H. & Lizhen Xu (2007). "Efficient Skyline Query Processing on Peer-to-Peer Networks" (PDF). Proceedings of the 22nd International Conference on Data Engineering. pp. 1126–1135. ISBN 978-1-4244-0803-0. A. Gonzalez-Beltran; P. Milligan & P. Sage (2008). "Range queries over skip tree graphs" (PDF). Computer Communications. pp. 358–374. ISSN 0140-3664. Peter Detzner; Jana Gödeke & Steffen Bondorf (2021). "Low-Cost Search in Tree-Structured P2P Overlays: The Null-Balance Benefit" (link). 46th Conference on Local Computer Networks (LCN). pp. 358–374.

External links Website of BestPeer Project Archived 2008-01-19 at the Wayback Machine

Worked examples

Example 1 — a first encounter with BATON Overlay

Start with the simplest possible case. Write down what BATON Overlay claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to BATON Overlay before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about BATON Overlay ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of BATON Overlay

In research
BATON Overlay appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses BATON Overlay in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
BATON Overlay is common in secondary-school and first-year university syllabi. It links to neighbouring topics Distributed data storage, so understanding it makes those chapters shorter.
In everyday life
Look for BATON Overlay outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “BATON Overlay” →

How to study BATON Overlay in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what BATON Overlay means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain BATON Overlay out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is BATON Overlay in simple terms?

The BAlanced Tree Overlay Network (BATON) is a distributed tree structure designed for peer-to-peer (P2P) systems. Unlike other overlays that employ a distributed hash table, BATON organises peers in a distributed tree to facilitate range search.

Why does BATON Overlay matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study BATON Overlay?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on BATON Overlay.

Tags

  • Distributed data storage

Keep exploring