1 / 16

A Torus Quorum Protocol for Distributed Mutual Exclusion

A Torus Quorum Protocol for Distributed Mutual Exclusion. Presented by Jun Zhang. S.D. Lang and L.J. Mao. School of Computer Science, University of Central Florida. The Problem of Mutual Exclusion. Exclusive access to a shared resource is sometimes essential for consistency.

jamese
Download Presentation

A Torus Quorum Protocol for Distributed Mutual Exclusion

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Torus Quorum Protocol for Distributed Mutual Exclusion Presented by Jun Zhang S.D. Lang and L.J. Mao School of Computer Science, University of Central Florida

  2. The Problem of Mutual Exclusion • Exclusive access to a shared resource is sometimes essential for consistency. • The problem of mutual exclusion involves granting exclusive access to shared resources whenever it is desired by a requestor.

  3. Two Major Approaches • Token-based • The system uses a unique token to represent the privilege for the node possessing it to enter the critical section. • Permission-based • A node wishing to enter the critical section needs to request permissions from a subset of other nodes, called a request set, also called quorum.

  4. Intuition behind Quorums • Any pair of mutual exclusion requests must be arbitrated and one of the requesting nodes may be given access. • The system comprises entirely of identical nodes which must share the responsibility of mutual exclusion • Thus, any pair of two requests must reach a certain common node. • This implies that the quorums of any two nodes i and j, given by Qi and Qj, must have a non-empty intersection.

  5. Algorithm Intuition • If node i can lock all members of its quorum, then no other node can capture all its members since the intersection of its quorum with that of i’s will have at least one node. • If a node fails to capture all its members, it waits till all of them are freed to lock them. • To prevent deadlocks, nodes get a priority based on the timestamp of their request.

  6. Grid Quorum

  7. Grid Quorum Quorum size W + H - 1

  8. Torus Grid Definition 1. A torus grid of size h x w consists of a rectangular array of h rows and w columns, in which for 1 ≤ i ≤ h -1, row i is followed by row i + 1, and row h is followed by row 1 using wraparound. Similarly, for 1 ≤j ≤ w - 1, column j is followed by column j + 1, and column w is followed by column 1 using wraparound.

  9. Torus Quorum Definition 2. A torus quorum in an h x w torus grid is a set of w + floor( h / 2) nodes, consisting of one entire row (say, row j), plus one node out of each of the (h / 2) rows following row j using end wraparound. We call the row portion of a quorum its head, and the portion consisting of one node from each h / 2 succeeding rows the quorum's tail.

  10. Properties of Torus Quorums • (Non-empty intersection) Any two torus quorums have a non-empty intersection. • (Minimality) No quorum is a proper subset of another quorum. • (Equal-sized) All torus quorums have the same size w + floor (h / 2) . • (Equal-responsibility) Each node belongs to exactly (w+ floor (h / 2) ) w floor(h/2)-1 quorums. • (Optimal quorum size) The optimal (minimum) quorum size is approximately sqrt(2n) , which is obtained by choosing h = 2w.

  11. Analysis of Property 4 • For any given node (i, j), 1 ≤ i ≤ h, 1 ≤ j ≤ w The number of quorums whose head is i (it must contains node (i, j)) = w floor( h / 2) (1) The number of quorums whose head is not i but contains node (i, j) = floor (h / 2) * w floor( h / 2) – 1 (2) Add (1) and (2), we got w * w floor( h / 2) -1 + floor (h / 2) * w floor( h / 2) – 1 = ( w + floor (h / 2)) * w floor( h / 2) – 1

  12. Reliability Definition 3. For a torus grid of size h xw with the node's reliability p, let T (h, w) denote the system's availability, i.e., the probability that a torus quorum exists. Similarly, for a non-wraparound rectangular grid of size h xw, let T1(h, w, j, k) denote the probability that there exists a non-wraparound torus quorum of head length w and tail length k, assuming the bottom j rows of the grid are all in a state of at least one up node per each row.

  13. Reliability (Cont.)

  14. Availability Comparison

  15. Conclusion Torus quorums provide an equal-sized and equal-responsibility coterie; thus, they have the potential to lead to a more balanced load in distributed system control.

  16. Thank you

More Related