๐ Pastry protocol in peer to peer networks (8 MCQs)
๐ From Data Communication and Networks โข 29. Peer to Peer Paradigm โข 8 questions available
What is Pastry protocol in peer to peer networks?
Pastry is a structured P2P protocol that routes messages through a decentralized overlay network using prefix-based routing, ensuring that any message reaches its destination in O(log N) steps while self-organizing as nodes join or leave.
๐ All Pastry protocol in peer to peer networks MCQs
Q1. What does the leaf set in Pastry contain?
๐ Explanation: The leaf set stores the set of nodes whose identifiers are numerically closest to the local node, typically the smallest and largest IDs. This allows Pastry to quickly forward messages to nearby IDs and to handle failures without consulting the full routing table.
Q2. If a node receives a message whose destination ID differs from its own ID in the first digit, which Pastry component is used to forward the message?
๐ Explanation: Pastry routes messages by matching the longest prefix between the current node's ID and the destination ID. When the first digit differs, the routing table entry that corresponds to that digit is consulted, because the leaf set only handles IDs that share the prefix. Therefore the routing table directs the message toward the appropriate next hop.
Q3. Which statement best differentiates Pastryโs routing mechanism from Chordโs finger table approach?
๐ Explanation: Pastry builds a routing table where each row corresponds to a shared prefix length and each column to a possible digit, enabling deterministic prefix matching. In contrast, Chordโs finger table contains entries that point to nodes at distances of around the identifier circle, providing logarithmic hop guarantees but without explicit prefix awareness. Hence option C captures the core structural difference.
Q4. Given a node X with identifier and a destination identifier , what is the minimum number of routing hops Pastry can guarantee to reach the destination?
๐ Explanation: The two identifiers share the first hexadecimal digit โ3โ, so the longest common prefix length is one digit. Pastryโs routing table can forward the message to a node whose prefix matches the destination in the next digit, changing โAโ to โBโ. After that step, the prefix length becomes two digits, and a second hop can resolve the final digit. Therefore the protocol guarantees at most two hops.
Q5. If the leaf set size is increased, which of the following effects is most likely on Pastryโs routing performance?
๐ Explanation: A larger leaf set provides more immediate neighbours whose IDs are close to the local node, thereby offering alternative nextโhops when the preferred routing table entry fails. This redundancy lowers the probability that a message cannot be forwarded because all candidates are unavailable, improving reliability. However, the size of the routing table itself does not change, so latency and bandwidth are largely unaffected.
Q6. Which tradeโoff best describes increasing the routing table width (i.e., number of columns per row) in Pastry?
๐ Explanation: Expanding the number of columns per routingโtable row means each node stores entries for more possible digit values, effectively increasing the branching factor. This reduces the expected number of hops because the message can often jump closer to the destination in a single step. The downside is that each node must maintain more pointers, raising memory requirements and maintenance traffic. Hence option B captures the primary tradeโoff.
Q7. A Pastry network experiences a temporary partition that isolates a subset of nodes. After the partition heals, which mechanism ensures that routing tables and leaf sets converge to a consistent state?
๐ Explanation: Pastry nodes periodically run a stabilization routine that contacts neighbors to verify and update their routing tables and leaf sets. When partitions heal, nodes exchange their current views, reconciling differences and incorporating any newly reachable identifiers. This incremental approach allows the network to converge without global flooding or restarting the bootstrap process, preserving scalability while restoring consistency. Therefore option A correctly describes the convergence mechanism.
Q8. When a new node Y with identifier joins a Pastry network, what is the immediate effect on the routing tables of existing nodes whose prefix matches the first two digits of Y?
๐ Explanation: During the join process, Y sends a join message toward its destination prefix. Each node that receives this message compares Yโs identifier with the current entry for the matching prefix. If Y is numerically closer, the node replaces the existing entry with Y, ensuring the routing table always points to the nearest node for that prefix. This update happens instantly as the join message propagates.