π Local area networks in Distributed Systems (12 MCQs)
Connecting Computers Within a Limited Geographic Area
A local area network, or LAN, connects computers and devices within a limited geographic area such as an office, laboratory, or campus building. In distributed systems, LANs provide the communication infrastructure for resource sharing, message exchange, remote services, and coordinated processing. Ethernet and Wi-Fi are common LAN technologies, while switches and access points connect participating devices.
Why Nearby Nodes Need High Speed Connectivity
Distributed applications often exchange requests and data repeatedly between nearby computers. A LAN provides relatively high bandwidth and lower latency than many wide-area connections. It also allows organisations to share local servers and devices without relying on separate internet paths for every internal communication.
Frames, Switches and Network Addressing
A sender encapsulates network data into frames for transmission over the local link. Ethernet switches learn source MAC addresses and forward frames toward the appropriate ports. IP addressing enables communication across local and external networks, while routers connect different IP networks when traffic must leave the local segment.
Example of a Campus Laboratory Network
A laboratory connects 40 computers, one file server, and a network printer through Ethernet switches. Each computer obtains an IP address and communicates with the server over the LAN. Students access shared course files and submit print jobs without sending traffic through a remote wide-area network.
Bandwidth, Segmentation and Local Congestion
LANs support fast resource access and communication among distributed nodes. Performance depends on link capacity, switch configuration, wireless interference, traffic volume, and server load. VLANs can separate logical groups, while routers control communication between networks. A local network still requires authentication and security controls because nearby devices are not automatically trusted.
Misconceptions About Local Area Networks
'A LAN must use one physical cable type' ignores wireless and mixed technologies. 'All devices in a LAN share one collision domain' is incorrect for switched full-duplex Ethernet. 'Local traffic is inherently secure' overlooks compromised devices, unauthorised access points, and malicious internal users.
Exam Focus: LAN Devices and Addressing
Distinguish switches, routers, access points, MAC addresses, and IP addresses. Trace frame forwarding within a LAN and identify when a router is needed to reach another network. Questions may compare LANs with WANs or examine bandwidth, latency, VLAN segmentation, and local resource sharing.
Key Terms of Local Area Networks
- LAN - Network covering a limited geographic area.
- Switch - Forwards frames using MAC addresses.
- Router - Forwards packets between IP networks.
- VLAN - Logical separation within a switched network.
- MAC address - Link-layer interface identifier.
π All Local area networks in Distributed Systems MCQs
Q1. What is process migration?
π Explanation: Process migration means moving an executing process, or portions of it, to another computer in the network. Option B correctly captures this definition. Options A and C describe unrelated activities (file transfer and database replication), while D describes termination, not migration. Understanding this core idea is essential for any LAN scenario involving distributed execution.
Q2. Why does load balancing often rely on process migration in homogeneous systems?
π Explanation: Load balancing aims to distribute work evenly across similar machines. By moving processes to underβutilized nodes, the system evens out the workload, improving overall performance. Option B states this purpose directly. Option A is incorrect because migration does not reduce process count, C is irrelevant to balancing, and D misstates that migration guarantees hardware speed, which is not its primary goal.
Q3. How does a hardware preference influence the decision to migrate a process?
π Explanation: When a process benefits from specialized hardware (e.g., an array processor for matrix inversion), moving it to a node possessing that hardware can dramatically improve execution speed. Option C correctly describes this rationale. Option A ignores migration benefits, B mixes hardware with software concerns, and D incorrectly claims hardware never matters, contradicting common practice in LAN environments.
Q4. Which statement best distinguishes transparent migration from explicit migration?
π Explanation: Transparent migration abstracts the move, allowing the program to continue without awareness of the relocation, which is useful for load balancing in homogeneous systems. Explicit migration asks the programmer to define migration points, often needed for hardware or software constraints. Option B captures this contrast. Option A reverses the definitions, C wrongly claims they are the same, and D incorrectly links explicit migration to performance degradation.
Q5. When data volume is high, why might moving the process rather than the data be advantageous?
π Explanation: If a process requires access to massive datasets, relocating the process to the data's location avoids sending large amounts of data over the network, conserving bandwidth and reducing transfer time. Option C correctly emphasizes the bandwidth advantage. Option A is false because data transfer can be costly; D misstates security benefits; D incorrectly claims migration worsens latency, whereas it often reduces it by proximity to data.
Q6. A company splits a large simulation into three subprocesses to run concurrently on different LAN nodes. Which migration approach is most appropriate?
π Explanation: When the goal is to achieve computation speedup by concurrently executing subprocesses on homogeneous machines, transparent migration lets the system automatically distribute work without programmer intervention. This matches the scenario of a simulation split across nodes. Option A is correct. Explicit migration (B) would require manual placement, unnecessary here. Options C and D do not address the need for concurrent execution across the network.
Q7. In a LAN of identical workstations, an administrator wants to keep CPU usage balanced without user involvement. Which migration technique should be employed?
π Explanation: Transparent migration automatically relocates processes to maintain balanced CPU loads, fitting the requirement of no user involvement. The operating system can detect overloads and move processes silently. Option B reflects this. Explicit migration (A) would need user scripts, contradicting the noβinvolvement goal. Manual relocation (C) is impractical for dynamic balancing, and D ignores migration altogether.
Q8. A scientific application needs an array processor for matrix inversion, which is only available on a specific server. Which migration method ensures the process runs on the appropriate hardware?
π Explanation: When a process requires specialized hardware not present on most nodes, the programmer must explicitly direct the process to the server that hosts the array processor. Explicit migration (option B) allows this precise placement. Option A would not guarantee the correct hardware, C is random and unsuitable, and D would force execution on inadequate hardware, leading to poor performance.
Q9. A client must run a program that needs both a GPU for rendering and a licensed database only on a remote server. Which sequence of migrations best satisfies both constraints?
π Explanation: The program should first move to the server that hosts the licensed database (ensuring software availability), then use remote procedure calls or similar mechanisms to leverage the GPU on another node for rendering tasks. This respects both hardware and software preferences. Option C describes this twoβstep approach. Option A reverses the order, potentially violating software licensing, B is infeasible, and D ignores migration benefits.
Q10. In a bandwidthβconstrained LAN, a large data set must be processed. Should the system migrate the process to the data location or transfer the data to the process?
π Explanation: When network bandwidth is limited, moving the process to where the data resides avoids transmitting the large dataset, conserving bandwidth and often reducing overall execution time. Option B correctly identifies this strategy. Option A would overload the network, C is wasteful, and D introduces external variables not addressed in the LAN context.
Q11. How does process migration affect network latency and overall throughput in a LAN environment?
π Explanation: By relocating a process nearer to the required data, the time taken for data requests (latency) decreases, allowing more efficient use of the network and raising overall throughput. Option B captures this benefit. Option A is the opposite of typical behavior, C ignores the network effects, and D mistakenly limits impact to CPU usage, overlooking the interplay between computation and communication.
Q12. A developer wants to run a legacy application that depends on a proprietary library installed only on a specific LAN node. Which migration strategy should be used?
π Explanation: Because the required library cannot be moved, the process must be explicitly sent to the node that already contains it. Explicit migration (option B) lets the developer specify this target. Transparent migration (A) would not guarantee the correct node, rewriting (C) is unnecessary, and random migration (D) risks missing the needed library, causing failure.