📝 Wide-area networks in Distributed Systems (14 MCQs)
Connecting Distributed Nodes Across Large Distances
A wide area network, or WAN, connects computers and local networks across large geographic areas, often through telecommunications infrastructure and service provider links. Distributed systems use WANs to coordinate branches, cloud services, remote databases, and geographically separated users. Routers forward packets between networks, while communication protocols provide addressing, transport, and application-level services.
Why Geographically Separated Resources Need Interconnection
Organisations may maintain services and data centres in different cities or countries. Local area networks cannot directly provide communication across such distances without interconnected network infrastructure. WANs make remote access and replication possible, but introduce greater latency, routing complexity, service-provider dependencies, and potential link failures.
Packet Routing Across Multiple Networks
Data is divided into packets and sent through routers toward its destination IP network. Routing tables determine suitable next hops using configured or dynamically learned routes. Transport protocols manage communication between endpoints, while applications handle request formats, timeouts, and failures that may arise during long-distance transmission.
Example of a Multi Branch Organisation
A company has offices in Lahore, Karachi, and Islamabad. Each office operates a LAN and connects to central services through WAN links. Employees access shared applications hosted in another city. Routers forward packets between sites, while secure tunnels may protect traffic across public network infrastructure.
Latency, Reliability and Wide Area Costs
WANs enable geographically distributed collaboration, backup replication, and centralised services. Long distances increase round-trip latency, and bandwidth may be more costly or limited than within a LAN. Link outages and routing changes affect communication, so applications require timeout handling, redundant paths, traffic management, and appropriate data consistency strategies.
Misconceptions About Wide Area Networks
'A WAN is simply a very large Ethernet LAN' ignores the diverse technologies and routing between networks. 'Packets always follow one fixed route' overlooks dynamic routing and path changes. 'High bandwidth eliminates latency' is false because propagation delay and routing distance remain significant.
Exam Focus: LAN and WAN Communication Differences
Compare LAN and WAN by geographic scope, ownership, bandwidth, latency, and infrastructure. Trace packet forwarding across routers between two sites. Questions may ask how routing tables select next hops or why distributed applications need timeout, replication, and recovery mechanisms over long-distance links.
Key Terms of Wide Area Networks
- WAN - Network spanning large geographic areas.
- Router - Forwards packets between networks.
- Routing table - Stores destination and next-hop information.
- Latency - Delay in data communication.
- Redundant path - Alternative route during link failure.
📝 All Wide-area networks in Distributed Systems MCQs
Q1. What is the definition of process migration in a distributed computing environment?
📖 Explanation: The correct answer is B because process migration specifically refers to moving a live process—or portions of it—from one machine to another so that execution can continue without starting over. Option A describes data transfer, not execution state movement. Option C suggests replication, which is a different concept called cloning. Option D is about termination, which is the opposite of migration. In real systems, migration lets a job continue on a less‑loaded server, preserving work already done.
Q2. Which term describes the distribution of work across multiple computers to improve overall system performance?
📖 Explanation: Load balancing is the practice of spreading tasks among several computers so that no single machine becomes a bottleneck, thereby boosting performance. Caching stores copies of data for faster access, not workload distribution. Routing determines paths for network packets, unrelated to task allocation. Virtualization abstracts hardware resources but does not inherently balance load. In a data‑center, load balancing ensures web requests are spread across servers, keeping response times low.
Q3. Why might a system choose to migrate a process to a site with specialized hardware?
📖 Explanation: Option A is correct: specialized hardware—such as an array processor for matrix inversion—can perform specific calculations far faster than a general‑purpose CPU, making migration advantageous. Option B mentions bandwidth, which matters for data transfer but not for execution speed. Option C focuses on OS preference, which is a software issue, not hardware capability. Option D misinterprets migration as reducing process count, which is not the primary goal. In practice, moving a simulation to a GPU‑enabled node speeds up results dramatically.
Q4. A research lab needs to run a large‑scale simulation that requires an array processor unavailable locally. Which migration approach should they use?
📖 Explanation: The correct choice is B because the lab must explicitly direct the simulation to the remote site that hosts the array processor; the system cannot guess this hardware preference automatically. Implicit migration (A) works well for load balancing on homogeneous machines but does not consider unique hardware needs. Option C wastes time waiting for upgrades, and hybrid (D) adds unnecessary complexity. By explicitly requesting migration, the lab ensures the simulation runs on the optimal hardware, achieving faster turnaround.
Q5. How does data‑access locality influence the decision to migrate a process?
📖 Explanation: Option B is correct: when the data needed by a process is already stored near a remote computer, moving the process to that location reduces the amount of data that must travel across the network, improving efficiency. Option A incorrectly ties the decision solely to bandwidth thresholds, ignoring the benefit of proximity. Option C assumes data must move first, which defeats the purpose of migration. Option D dismisses locality, contrary to real‑world practice where proximity often dictates migration choices. For example, moving a data‑intensive analytics job to the storage node cuts transfer time dramatically.
Q6. A cloud provider has ten identical servers handling web requests. To prevent any single server from becoming overloaded, which technique should be used?
📖 Explanation: Implicit migration (B) is the appropriate technique because it automatically balances load across homogeneous servers without requiring the client to alter code or specify locations. Explicit migration (A) would need user input and is unnecessary for simple load balancing. Manual redistribution (C) is inefficient and prone to error. Disabling migration (D) would worsen overload problems. In practice, the provider’s load balancer silently redirects sessions to less‑busy instances, maintaining smooth performance.
Q7. What is the primary advantage of using process migration for computation speedup?
📖 Explanation: The key benefit is B: by splitting a process into subprocesses that run concurrently on separate machines, the overall execution time can be shortened, achieving speedup. Option A describes parallel execution, not migration of a single process. Option C is false because some data movement is often required. Option D may be a side effect but is not the main reason for speedup. For instance, a video‑encoding task divided across several nodes finishes faster than when run on a single server.
Q8. A software firm has a legacy analytics library that only runs on a Windows server. Which migration strategy should they adopt for a Linux‑based client needing the analytics?
📖 Explanation: Explicit migration (B) is correct because the client must direct its job to the Windows server that hosts the required library; the system cannot automatically infer this software dependency. Implicit migration (A) works for homogeneous environments but cannot handle a specific OS requirement. Rewriting the library (C) is costly and beyond the immediate need. Transferring the code (D) would violate licensing or compatibility constraints. By explicitly invoking the Windows server, the client accesses the needed functionality while preserving existing assets.
Q9. A multinational corporation must process large datasets originating from Europe, but its compute cluster is in Asia. Bandwidth is limited, and latency is high. Which migration decision best balances performance and network cost?
📖 Explanation: The optimal choice is B: moving the process to the European site where the data resides avoids transferring huge datasets over a constrained link, reducing latency and bandwidth expenses while still achieving computation. Option A would require moving massive data across the network, incurring high cost and delay. Option C still necessitates significant cross‑regional transfers. Option D leaves the process unchanged, missing the opportunity for speedup. In real deployments, placing compute close to data—often called “data‑locality‑aware migration”—yields the best trade‑off.
Q10. Why is process migration more challenging in heterogeneous environments than in homogeneous ones?
📖 Explanation: Option B is correct: heterogeneous machines differ in CPU architecture, operating systems, and available libraries, so migrating a process demands translation of binaries, adaptation of data representations, and possibly recompilation, making it complex. Option A is false; identical instruction sets simplify migration. Option C misstates that homogeneous systems cannot share processes—they actually can do so easily. Option D incorrectly claims heterogeneity removes migration need. In practice, moving a Windows binary to a Linux server often fails without compatibility layers, illustrating the added difficulty.
Q11. Explain how limited network bandwidth affects the choice between moving a process versus moving its data.
📖 Explanation: The correct answer is C because when bandwidth is scarce, the optimal strategy hinges on whether the process’s state (code, stack, etc.) is smaller than the dataset it needs. If the state is tiny, moving the process saves bandwidth; if the dataset is smaller, transferring data is preferable. Option A and B are absolute statements that ignore this trade‑off. Option D denies bandwidth’s impact, which is contrary to real‑world networking considerations. For example, a lightweight analytics script may be shipped to a remote server to avoid sending gigabytes of raw logs.
Q12. A real‑time video‑streaming service must decide whether to migrate a transcoding process to a remote edge node. Which factor is most critical to maintain low latency?
📖 Explanation: Option B is most critical because latency is primarily driven by the physical distance (and thus propagation delay) between the client and the processing location; moving transcoding closer to the client reduces round‑trip time. While processing power (A) matters for throughput, it does not directly affect latency if the node is far away. The source file size (C) influences transfer time but is secondary to distance in real‑time constraints. The number of users (D) impacts load but not the fundamental latency of a single stream. Edge computing therefore places transcoding at the nearest node to keep delays minimal.
Q13. A government agency restricts process migration to servers within the same security domain. Which migration approach complies with this policy while still allowing load balancing?
📖 Explanation: Explicit migration (B) satisfies the policy because the user can direct the process to a server that resides in the authorized security domain, ensuring compliance while still enabling load distribution. Implicit migration (A) might inadvertently select unauthorized servers. Hybrid migration (C) introduces randomness that could violate domain restrictions. Disabling migration (D) eliminates load balancing benefits. In practice, administrators often require users to specify target hosts that meet security criteria, preserving both policy adherence and performance gains.
Q14. How does process migration differ from computation migration?
📖 Explanation: The correct distinction is B: process migration concerns relocating an already executing process—including its state, stack, and open resources—while computation migration generally refers to moving a task or job that has not yet started, transferring only code and input data. Option A reverses the roles of code and data. Option C is incorrect because both techniques rely on network communication to transfer state or code. Option D falsely claims they are identical. Understanding this difference helps designers choose the right strategy; for example, a live service may need process migration to avoid downtime, whereas a batch job can use computation migration.