🎓 BookMCQ
← Back to 29. Peer to Peer Paradigm

📝 P2P networks in computer networks (18 MCQs)

📖 From Data Communication and Networks • 29. Peer to Peer Paradigm • 18 questions available

What is P2P networks in computer networks?

P2P networks are decentralized systems where individual computers connect directly to share files, processing power, or services, allowing the network to scale efficiently as more users join without needing expensive central servers.

5
Easy
8
Medium
5
Hard

📝 All P2P networks in computer networks MCQs

Q1. What does the acronym P2P stand for in networking?

A.Peer-to-Peer ✅
B.Protocol-to-Protocol
C.Primary-to-Primary
D.Public-to-Private
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The abbreviation P2P is universally understood as Peer-to-Peer, describing a network model where each participant can act as both client and server, sharing resources directly without a central coordinator. This definition forms the foundation for all subsequent discussions of P2P architectures.

Q2. In a typical structured P2P network, how is a file located?

A.Broadcast query to all peers
B.Central directory lookup ✅
C.DNS resolution
D.Fixed routing table
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Structured P2P systems often maintain a distributed index or central directory that maps file identifiers to responsible nodes. When a peer requests a file, it queries this directory to obtain the location, avoiding the costly broadcast approach used in unstructured overlays.

Q3. If a P2P network relies on super‑nodes to index resources, what is the most likely effect of removing a super‑node?

A.Decreased search latency
B.Reduced bandwidth usage
C.Increased search latency ✅
D.Higher security
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Super‑nodes act as indexing hubs; their removal forces remaining peers to search more hops or fallback to broader queries, which lengthens the time required to locate resources. Consequently, search operations become slower, reflecting the increased latency caused by the missing index point.

Q4. Given that churn (peers joining/leaving) is high, which mechanism best ensures continuity of file availability?

A.Replication of chunks across multiple peers
B.Central server backup
C.Static routing tables
D.Single point of failure ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: When peers frequently appear and disappear, duplicating file fragments on several independent nodes creates redundancy. If one holder leaves, other replicas remain accessible, preserving the overall availability of the content despite the volatile membership characteristic of many P2P environments.

Q5. Assume a P2P overlay uses a ring topology where each node maintains links to its immediate predecessor and successor. If node X fails, which operation must be performed to preserve the ring?

A.Successor updates its predecessor pointer to X's predecessor
B.Both predecessor and successor update their pointers accordingly ✅
C.Predecessor updates its successor pointer to X's successor
D.No update needed
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: In a ring, each node’s predecessor and successor must be re‑linked when an intermediate node disappears. The predecessor’s successor reference must point to the original successor, and the successor’s predecessor reference must point to the original predecessor, thereby closing the gap and maintaining the circular structure.

Q6. Compare the scalability of a pure P2P network with that of a client‑server model. Which statement is accurate?

A.Client‑server scales better due to centralized control
B.Both scale equally
C.Neither scales beyond 100 nodes
D.P2P scales better because each new peer adds resources ✅
💡 Difficulty: easy | ✅ Correct: D

📖 Explanation: A pure P2P system benefits from each joining node contributing bandwidth, storage, and processing power, effectively expanding the system’s capacity. In contrast, a client‑server architecture adds load to a fixed set of servers, limiting scalability as the number of clients grows.

Q7. Which of the following best differentiates structured P2P networks from unstructured ones?

A.Structured networks use deterministic routing based on a distributed hash table ✅
B.Unstructured networks enforce strict hierarchy
C.Structured networks rely on a central index
D.Unstructured networks guarantee O(log n) search
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Structured overlays employ algorithms such as Chord or Kademlia that assign keys to nodes via a distributed hash table, enabling predictable O(log N) lookup paths. Unstructured networks lack this deterministic placement, relying on random walks or flooding, which leads to less predictable performance.

Q8. Evaluate the impact of NAT traversal techniques on P2P connectivity. Which outcome is most likely?

A.Reduced security and no change in reachability
B.Improved peer reachability but increased latency ✅
C.No effect on connectivity
D.Eliminates need for super‑nodes
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: NAT traversal (e.g., STUN, TURN) helps peers behind routers discover public endpoints, thereby expanding the set of reachable nodes. The additional handshake and relay steps, however, can introduce extra round‑trip time, so overall connectivity improves while latency may rise modestly.

Q9. How would you apply the principle of reciprocity in designing incentive mechanisms for P2P file sharing?

A.Peers are forced to upload regardless of download
B.No incentive needed
C.Credits are given randomly ✅
D.Peers earn credits for uploading which they can spend on downloads
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Reciprocity encourages balanced contribution: a peer receives credits proportional to the amount it uploads, which it then spends to download. This creates a self‑regulating economy where free‑riding is discouraged because peers cannot obtain data without first contributing resources to the network.

Q10. In the context of BitTorrent, what is the role of a 'tracker' and how does it influence swarm dynamics?

A.It stores the entire file centrally
B.It encrypts data transfers
C.It limits download speed
D.It coordinates peer discovery, affecting piece distribution efficiency ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: A tracker maintains a list of peers participating in a torrent and supplies this information to newcomers. By informing peers about who holds which pieces, the tracker shapes the distribution pattern, encouraging efficient exchange and balanced load across the swarm, which accelerates overall download completion.

Q11. Synthesize a hybrid architecture that combines P2P overlay with cloud services to improve fault tolerance. Which component primarily provides redundancy?

A.Super‑node election algorithm
B.Cloud‑based backup of critical chunks ✅
C.Peer‑to‑peer gossip protocol
D.DNS caching
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: In a hybrid design, the cloud layer stores essential fragments of shared files, ensuring that even if many peers disappear, the data can be reconstructed from the cloud backup. This off‑site redundancy complements the decentralized P2P overlay, offering resilience against massive churn or localized failures.

Q12. If a P2P network implements a tit‑for‑tat strategy, what is the expected behavior when a peer consistently leeches without uploading?

A.It will be isolated by other peers ✅
B.Its download speed will increase
C.Network will ignore its requests
D.It will become a super‑node
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Tit‑for‑tat punishes non‑cooperative participants by refusing to serve them. Peers monitor each other's contribution histories; a node that only downloads and never uploads quickly loses trust, leading others to drop connections or deprioritize its requests, effectively isolating the leech.

Q13. Compare the security implications of using end‑to‑end encryption vs. application‑level encryption in P2P messaging apps.

A.Both provide identical protection
B.Application‑level is stronger
C.End‑to‑end is irrelevant in P2P
D.End‑to‑end protects data from intermediaries, while application‑level may expose it to the host ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: End‑to‑end encryption encrypts data on the sender’s device and decrypts only on the recipient’s device, preventing intermediate nodes—including super‑nodes or relays—from accessing the plaintext. Application‑level encryption, performed by the app but not the protocol, can still expose data to the host environment, reducing overall confidentiality.

Q14. How does churn affect the maintenance overhead of a distributed hash table (DHT) in a structured P2P network?

A.Churn reduces overhead by removing nodes
B.Frequent updates to routing tables increase overhead ✅
C.DHT is unaffected by churn
D.Only super‑nodes are impacted
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: When nodes join or leave, the DHT must adjust finger tables, successor lists, and key ownership mappings. Each change triggers messages to neighboring nodes, thereby increasing the volume of control traffic. High churn therefore raises the maintenance cost, consuming bandwidth and processing resources to keep the overlay consistent.

Q15. Suppose a P2P network uses a gossip protocol where each node contacts a random peer each round. What is the expected number of rounds to disseminate a message to all NN nodes?

A.O(logN)O(\log N)
B.O(N)O(N)
C.O(N)O(\sqrt{N})
D.O(1)O(1)
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Gossip spreads information exponentially: each informed node contacts another uninformed node per round, roughly doubling the informed population each step. This binary growth leads to a logarithmic number of rounds, Θ(logN)\Theta(\log N), to reach every participant in the network, assuming random peer selection.

Q16. Which metric best captures the efficiency of a P2P content distribution system?

A.Number of peers
B.Size of the routing table
C.Average download completion time per peer ✅
D.CPU usage of a single node
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The primary goal of a P2P distribution scheme is to deliver content quickly to all participants. Measuring the average time each peer requires to finish its download directly reflects how effectively the system utilizes bandwidth, piece selection, and peer collaboration, making it a comprehensive efficiency indicator.

Q17. If you were to design a P2P network for IoT devices with limited battery, which design choice minimizes energy consumption while preserving data availability?

A.Maintain high‑throughput Wi‑Fi links
B.Centralize data on a cloud server
C.Require all devices to stay online permanently
D.Use short‑range, low‑power radios and opportunistic forwarding ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Low‑power radios such as BLE or Zigbee consume far less energy than Wi‑Fi, and opportunistic forwarding lets devices transmit only when nearby peers are present. This strategy reduces active radio time while still allowing data to propagate through the mesh, balancing energy constraints with availability.

Q18. If a peer in a P2P network experiences a sudden bandwidth drop, which immediate effect is most likely?

A.Higher latency for its uploads
B.Decreased network bandwidth usage ✅
C.Higher security
D.Reduced file redundancy
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: When a node reduces its upload capacity, the total upload bandwidth contributed by the network diminishes. This directly lowers the aggregate bandwidth available for distributing pieces, which can slow overall dissemination rates and increase the time required for other peers to obtain needed data.

🔗 Related Topics (MCQs)