🎓 BookMCQ
← Back to 29. Peer to Peer Paradigm

📝 Chord identifier space and hashing (10 MCQs)

Converting Nodes and Resources into Ring Identifiers

Chord uses a fixed-size identifier space to give peers and resource keys a common numerical representation. A base hash function processes a node identity or resource key and produces an m-bit identifier. The identifiers are arranged modulo 2^m on a circle, so the largest value is followed by zero. The ring defines key ownership independently of physical network topology or geographic distance.

Hashing and Clockwise Responsibility Intervals

A node's identifier is commonly derived from information such as its network address, while a resource identifier comes from its key. Chord assigns key k to successor(k), the first live node clockwise at or after k. Thus a node is responsible for the interval after its predecessor through its own identifier. These entries describe logical destinations, not physical network routes between peers.

Modulo Arithmetic and Wraparound

Identifier arithmetic is performed modulo 2^m. To compare positions, a clockwise interval may cross the maximum identifier and continue from zero; this wraparound is part of the ring definition, not an exceptional routing failure. The same interval rules are used when deciding whether a node is responsible for a key. Each hop narrows the clockwise search while preserving ring order.

Finding the Successor in a Small Ring

Consider an 8-bit ring with nodes 20, 75, 130, and 210. A key of 240 maps clockwise to node 20 because the ring wraps from 255 to zero; a key of 100 maps to node 130. These assignments demonstrate successor-based responsibility. Ring position, rather than physical distance, determines this assignment in the overlay.

Identifier Distribution and Load Placement

A well-chosen hash function spreads identifiers across the ring, reducing systematic clustering when node identities or resource names have patterns. When peers join or depart, only affected key ranges normally need reassignment, rather than remapping every key. Replication can further improve availability, but it is a separate policy. Applications must handle replicas, stale records, and content transfer separately.

Hashing Does Not Mean Encryption or Exact Balance

'A hash conceals data like encryption' is false because identifiers do not provide confidentiality. 'Every node receives exactly the same number of keys' overstates the statistical distribution. 'The largest ID has no successor' ignores circular wraparound, where the successor may be the smallest live identifier. Finger shortcuts accelerate lookup but do not replace ring correctness.

Identifier Calculations and Responsibility Intervals

Be able to determine the identifier-space size from m, perform modulo arithmetic, sort node IDs, and locate the first clockwise successor for a key. Mark intervals carefully when they wrap through zero. Explain how hashing, rather than an IP subnet or physical location, establishes the overlay's logical placement. Show interval endpoints and wraparound when justifying each successor choice.

Chord Hashing and Ring-Interval Terms

  • m-bit ID - Identifier containing exactly m bits..
  • Hashing - Converts input into an identifier..
  • Modulo - Arithmetic that wraps at fixed size..
  • Successor key - First clockwise node responsible for key..
  • Wraparound - Continuation from maximum ID to zero..
  • Predecessor interval - Key range assigned after predecessor..
3
Easy
5
Medium
2
Hard

📝 All Chord identifier space and hashing MCQs

Q1. What is the primary purpose of the Session Initiation Protocol (SIP) in VoIP?

A.Establishing media streams ✅
B.Routing IP packets
C.Encrypting voice data
D.Managing user authentication
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: SIP is a signaling protocol whose main role is to set up, modify, and terminate multimedia sessions. It does this by creating and exchanging session descriptions, which effectively establishes the media streams between endpoints. The other options describe functions handled by lower‑layer protocols, not the core purpose of SIP.

Q2. If a VoIP system uses a 128‑bit identifier space for user IDs, what is the most likely impact on collision probability when the number of users doubles?

A.Collision probability halves
B.Collision probability remains the same
C.Collision probability roughly quadruples
D.Collision probability slightly increases ✅
💡 Difficulty: easy | ✅ Correct: D

📖 Explanation: When the identifier space is large (128 bits), the chance that two users pick the same ID follows the birthday problem. Doubling the number of users increases the collision probability, but because the space is astronomically large, the increase is only slight rather than a dramatic rise. Hence the probability slightly increases.

Q3. Which statement best differentiates the identifier allocation mechanisms of SIP and H.323?

A.Both use numeric IDs assigned by a central server
B.SIP uses a URI‑based flexible namespace, while H.323 assigns numeric endpoint identifiers within a gatekeeper domain ✅
C.SIP and H.323 use identical hierarchical naming schemes
D.SIP relies on MAC addresses, whereas H.323 uses email addresses
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: SIP identifiers are expressed as URIs (e.g., sip:user@example.com), giving a flexible, globally unique namespace that can embed domain information. H.323, by contrast, relies on numeric endpoint IDs assigned by a gatekeeper within a local domain. This structural difference means SIP can interoperate across disparate domains more readily, while H.323 requires explicit gatekeeper coordination.

Q4. Designing an identifier space for a future signaling protocol that must support 10^9 devices with a collision probability <10^-6, which size is appropriate?

A.2322^{32}
B.2482^{48}
C.2642^{64} ✅
D.21282^{128}
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The birthday‑paradox approximation gives p≈n2/(2N)p \approx n^2/(2N). For n=109n = 10^9 and target p<10−6p < 10^{-6}, solving yields N>5×1023N > 5 \times 10^{23}. The nearest power of two is 264≈1.8×10192^{64} \approx 1.8 \times 10^{19}, which is the smallest feasible size that keeps the collision risk below the threshold, so a 64‑bit space is sufficient.

Q5. When a VoIP call fails to establish because the identifier is not recognized, which layer is most likely responsible?

A.Physical layer
B.Network layer
C.Transport layer
D.Application layer ✅
💡 Difficulty: easy | ✅ Correct: D

📖 Explanation: In VoIP, the identifier that a device presents is processed by the signaling layer (e.g., SIP or H.323). If the identifier is unknown, the signaling server cannot route the request, causing the call setup to fail. This failure originates at the application layer, where protocol logic validates identifiers, rather than at lower transport or network layers.

Q6. Evaluate the trade‑off between using a short fixed‑length identifier (e.g., 16 bits) versus a variable‑length UUID (128 bits) for a large‑scale IoT signaling protocol.

A.Short IDs reduce overhead but increase collision risk; UUIDs increase overhead but virtually eliminate collisions ✅
B.Short IDs improve security while UUIDs simplify routing
C.Both formats provide identical performance and security characteristics
D.UUIDs are always preferable regardless of device constraints
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: A 16‑bit fixed identifier reduces packet overhead and simplifies storage, which benefits low‑power or bandwidth‑constrained devices. However, with billions of devices the probability of collisions becomes significant, leading to address conflicts and additional resolution traffic. A 128‑bit UUID virtually eliminates collisions, at the cost of larger headers and more processing, making it preferable for large‑scale deployments where uniqueness outweighs overhead.

Q7. How does the concept of an identifier space enable interoperability between different VoIP signaling protocols?

A.By enforcing a single universal identifier format across all protocols
B.By providing a common abstract namespace that can be mapped to protocol‑specific identifiers
C.By eliminating the need for identifiers altogether ✅
D.By requiring each protocol to use its own isolated identifier pool
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: An identifier space abstracts the concrete format of IDs into a universal namespace. Different signaling protocols can map their native identifiers onto this shared space, enabling translation and routing between protocols without needing to understand each other's internal naming rules. This abstraction promotes interoperability by allowing heterogeneous systems to reference the same logical entity through a common identifier.

Q8. Suppose a VoIP network migrates from a 32‑bit identifier scheme to a 64‑bit scheme. What is the most direct effect on routing tables?

A.No change in size or performance
B.Tables double in size due to larger identifier fields ✅
C.Tables increase exponentially because of address space growth
D.Tables become more efficient because of better hashing
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: When the identifier length doubles from 32 to 64 bits, each entry in a routing table occupies twice as many bits for the identifier field. Assuming the number of routes stays constant, the total memory required for the identifier portion roughly doubles, leading to larger routing tables while the overall table structure remains unchanged.

Q9. Compare the security implications of using sequential identifiers versus random identifiers in a signaling protocol.

A.Sequential identifiers provide better resistance to enumeration attacks ✅
B.Random identifiers are easier to generate and store
C.Random identifiers provide better resistance to enumeration attacks
D.Sequential identifiers reduce processing overhead
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Sequential identifiers are predictable; an attacker can enumerate possible IDs to discover active endpoints, facilitating denial‑of‑service or eavesdropping attacks. Random identifiers are statistically unpredictable, making enumeration far more difficult and reducing the risk of targeted attacks. Therefore, random IDs improve security at the cost of potentially larger identifier representations.

Q10. If a new signaling protocol adopts the identifier space concept from SIP but introduces hierarchical naming, what advantage does this provide?

A.Simpler flat address allocation
B.Reduced need for authentication
C.Improved bandwidth efficiency
D.Scalable delegation and easier management of identifiers ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: Hierarchical naming divides the identifier space into parent and child domains, mirroring organizational or geographic structures. This allows delegation of identifier management to sub‑domains, simplifies routing decisions, and scales more gracefully as the network grows. Consequently, a protocol that adds hierarchy to the SIP‑style space gains better manageability and scalability.)

🔗 Related Topics (MCQs)