📝 Naming and transparency in Distributed Systems (46 MCQs)
Logical Names and Hidden Resource Locations
Naming and transparency help distributed systems present resources through stable identifiers while concealing selected details of their physical distribution. A name identifies a file, service, process, or device, and a naming service resolves it to a usable reference or location. Transparency allows users and applications to work with resources without managing every underlying machine or network detail.
Why Applications Should Not Depend on Physical Locations
Machines can move, services can migrate, and replicated resources can change their placement. If programs use fixed physical addresses, every relocation may require configuration changes. Logical naming separates resource identity from its current location, while transparency reduces the amount of distribution-specific information applications must handle.
Name Resolution and Types of Transparency
A client submits a logical name to a naming service, which resolves the name into an address or reference. Location transparency hides where a resource resides; access transparency provides consistent operations across local and remote resources. Replication, migration, concurrency, and failure transparency describe other behaviours a system may attempt to conceal.
Example of a Service Moving Between Servers
An application contacts a service using the logical name accounts.example. The service initially runs on server A, then moves to server B during maintenance. The naming system updates the binding, allowing clients to resolve the name to the new location without embedding server A's physical address in their code.
Transparency Benefits and Practical Limits
Naming and transparency improve portability, resource discovery, and service flexibility. Complete transparency is difficult because remote access has different latency, security, and failure characteristics from local access. Caching may preserve outdated bindings, and hiding replication can create expectations about consistency that the underlying system cannot always guarantee.
Misconceptions About Naming and Transparency
'Location transparency means a resource has no physical location' is false because it hides rather than removes location. 'Every naming service resolves names instantly' ignores lookup delays and caching. 'Failure transparency guarantees users never notice failures' overlooks partial outages and recovery delays.
Exam Focus: Naming and Transparency Categories
Distinguish logical names from addresses and explain the name-resolution process. Identify location, access, replication, migration, and failure transparency in practical scenarios. Questions may ask how a service can move without changing client code or explain why full transparency is difficult in systems with network delays and partial failures.
Key Terms of Naming and Transparency
- Logical name - Stable identifier for a resource.
- Binding - Association between name and resource.
- Location transparency - Hides a resource's physical location.
- Access transparency - Provides consistent access methods.
- Migration transparency - Hides resource movement from users.
📝 All Naming and transparency in Distributed Systems MCQs
Q1. A network administrator pins the ARP entry for a heavily used server. Which outcome is most likely?
📖 Explanation: Pinning an ARP entry means the cache entry is kept even if the normal timeout expires. Therefore the MAC address remains stored and is not removed, ensuring fast look‑ups for that host. Option A describes this behavior, so it is correct. Option B is wrong because pinning prevents periodic refreshes; the entry stays static until manually changed. Option C is incorrect because pinning does not block communication. Option D is false because the cache size is unchanged; only the entry is protected from eviction. In practice, keeping the MAC address cached reduces latency for frequent traffic.
Q2. What does ARP stand for in networking?
📖 Explanation: ARP is the acronym for Address Resolution Protocol, a core utility that maps IP addresses to Ethernet MAC addresses. Option B gives the exact expansion, making it correct. The other choices are fabricated terms that do not exist in standard networking literature, so they are incorrect. Knowing the full name helps students recognize its purpose when configuring or troubleshooting IP‑to‑MAC mappings.
Q3. Why does the Ethernet data‑link‑layer header often change as a packet traverses routers?
📖 Explanation: Each router operates at the data‑link layer only for the local segment, so it must insert the MAC address of the next hop as the destination and its own interface MAC as the source. This replacement is essential for the frame to be accepted on the next link, which is why option B is correct. Option A is wrong because routers do not encrypt Ethernet headers by default. Option C misstates the behavior; the Ethernet header is rewritten, not left untouched. Option D confuses the IP layer with the Ethernet layer; routers modify the Ethernet header, not merely add an IP header. The change ensures proper delivery across each segment of the network.
Q4. A host on network 10.0.0.0/24 wants to send data to 192.168.5.10. Which step correctly describes how the packet reaches its destination?
📖 Explanation: Because 192.168.5.10 is outside the host's /24 subnet, the host cannot ARP for it directly; it must send the frame to its configured default gateway (router). The router then performs its own ARP lookup for the next hop toward the destination. This matches option B. Option A is incorrect because ARP works only within the same broadcast domain. Option C describes a broadcast, which is not used for unicast routing. Option D confuses name resolution (DNS) with MAC address resolution; DNS provides an IP, not a MAC. Understanding this flow is key for designing routing and addressing schemes.
Q5. How does a DNS lookup facilitate naming transparency in Ethernet communications?
📖 Explanation: Naming transparency means users can refer to hosts by names instead of numeric addresses. DNS provides this service by converting a host name into its corresponding IP address; once the IP is known, the system can perform an ARP lookup to obtain the Ethernet MAC address needed for the frame. Therefore option C accurately describes the process. Option A is false because MAC addresses are not assigned by DNS. Option B is unrelated; DNS does not perform encryption for Ethernet. Option D misrepresents Ethernet operation—host names never appear in Ethernet headers. This relationship underpins most client‑server communication on modern networks.
Q6. A workstation cannot ping a remote server. The ARP cache shows an entry for the server’s IP pointing to MAC address 00:11:22:33:44:55, but a network scan reveals the server now uses 66:77:88:99:AA:BB. Which troubleshooting step should be taken first?
📖 Explanation: The most direct cause of the ping failure is the mismatched MAC address; the workstation is sending frames to the old MAC, which no longer belongs to the server. Removing the stale ARP entry forces a new ARP request, allowing the correct MAC to be learned. This makes option D the correct first action. Restarting the interface (option A) may eventually refresh the ARP cache but is slower and less targeted. Flushing DNS (option B) does not affect MAC resolution. Updating the server’s routing table (option C) is unrelated to the client’s ARP problem. Promptly correcting the ARP entry restores proper layer‑2 communication.
Q7. What is the primary purpose of the checksum in the Ethernet trailer, and what would likely occur if it were omitted?
📖 Explanation: The Ethernet trailer contains a cyclic redundancy check (CRC) value that receivers recompute to verify that the frame arrived without bit errors. If the checksum is missing, the receiver cannot validate integrity, so it may process corrupted data, causing applications to misbehave. Hence option A correctly states the purpose and consequence. Encryption (option B) is not performed by the Ethernet trailer. Timestamping (option C) is not a function of the CRC. Routing tags (option D) are unrelated to Ethernet framing; switches use MAC addresses, not checksums, for forwarding. Maintaining the checksum is essential for reliable Ethernet communication.
Q8. If an ARP entry expires after 5 minutes and a host repeatedly communicates with the same peer, what effect does this have on overall network performance?
📖 Explanation: When the cached MAC address times out, the host issues a new ARP request before sending the next packet. This introduces a brief pause—typically a few milliseconds—each time the entry expires. Over many transmissions, these occasional delays add only a minor overhead, so overall performance remains acceptable, matching option C. Option A is incorrect because the host automatically refreshes the entry. Option B exaggerates the impact; the host does not broadcast for every packet, only when the entry is missing. Option D misrepresents ARP cache behavior; entries are replaced, not duplicated. Understanding ARP timeout behavior helps in designing efficient networks.)
Q9. A host on a LAN wants to send data to another host, but its ARP cache is empty. What is the first action the host takes?
📖 Explanation: When the ARP cache lacks an entry, the host must discover the MAC address of the destination IP. It does this by broadcasting an ARP request, which all devices on the LAN receive. The device that owns the IP replies with its MAC address, allowing the sender to forward the Ethernet frame correctly. DNS resolves names to IPs, not MACs, so options A and D are incorrect, and option C assumes a default MAC that does not exist.
Q10. What does the acronym ARP stand for?
📖 Explanation: ARP is the protocol that maps network layer IP addresses to link‑layer MAC addresses. The name explicitly reflects this purpose: Address Resolution Protocol. The other choices are fabricated terms that do not describe the function of ARP, making them incorrect.
Q11. Why is the Ethernet (MAC) address placed at the start of an Ethernet frame?
📖 Explanation: The MAC address at the front of the frame lets each network interface compare the destination address with its own. If they match, the NIC accepts the frame; otherwise, it discards it. This early check prevents unnecessary processing of unrelated traffic. Length determination is handled by the length/type field, not the MAC address, and routers modify only the outer Ethernet header, not the address itself. Checksums are located in the trailer, not the leading address.
Q12. An administrator pins an ARP entry for a critical server. What is the primary benefit of this action?
📖 Explanation: Pinning an ARP entry forces the host to keep a permanent mapping of the server’s IP to its MAC address, avoiding repeated ARP requests. This reduces broadcast traffic and saves time when sending packets. DNS is unrelated to MAC address resolution, so option A is irrelevant. MAC addresses can still change if the server’s NIC is replaced, making B inaccurate. Pinning does not affect access control, so D is wrong.
Q13. When a packet traverses two routers, which part of the packet is typically rewritten at each hop?
📖 Explanation: Each router forwards the packet on a new physical segment, so it must replace the outer Ethernet header with the MAC address of the next hop. The IP header remains unchanged except for the TTL field, and transport‑layer fields like the TCP sequence number are preserved end‑to‑end. The application payload is never altered by routers, making options B, C, and D incorrect.
Q14. How do DNS lookup and ARP work together when a host sends a packet to a remote name?
📖 Explanation: First, DNS translates the human‑readable host name into its numeric IP address. Once the IP is known, the host uses ARP to discover the MAC address of the next hop on its local segment (often a router). This two‑step process is essential for communication. ARP never deals with names, so options A and C are reversed, and D suggests a function that does not exist.
Q15. A host receives an Ethernet frame whose trailer checksum does not match the computed value. What should the host do?
📖 Explanation: If the checksum verification fails, the frame is considered corrupted. The standard response is to discard the frame; higher‑level protocols like TCP will handle retransmission. Accepting the frame (A) or ignoring the error (D) risks propagating bad data. Requesting retransmission directly (B) is not performed by the Ethernet layer; instead, the transport layer will notice missing data and trigger retransmission.
Q16. A router’s ARP cache contains a stale entry mapping IP 10.0.0.5 to an old MAC address. What problems can this cause, and how can they be mitigated?
📖 Explanation: A stale ARP entry can cause the router to send frames to an incorrect MAC, leading to lost or misdirected packets. Regular ARP cache aging or manual cache clearing prevents this. DHCP is unrelated to ARP resolution, so B is incorrect. Duplicate IPs arise from address conflicts, not stale ARP entries, making C wrong. Routers do rely on ARP for Ethernet‑level forwarding, so D is false.
Q17. Why are all headers above the 802.3 (data‑link) layer included as data within an Ethernet frame?
📖 Explanation: Ethernet frames are designed to carry a payload that consists of the complete packet from the network layer upward. This encapsulation ensures that the receiving host obtains the full IP packet, including transport and application headers, unchanged. Ethernet devices only need to process the outer header; they do not interpret higher‑layer headers, so A is misleading. Routers modify only the outer Ethernet header, not transport fields, making C incorrect. Error checking is performed by the frame checksum, not by including higher‑layer headers.
Q18. In a mixed IPv4/IPv6 environment, how does the naming process differ when a host resolves a name to an IPv6 address?
📖 Explanation: When a name resolves to an IPv6 address, DNS returns an AAAA record. The host then uses the IPv6 Neighbor Discovery Protocol (NDP) to discover the link‑layer address, replacing ARP which works only for IPv4. Options A and D incorrectly apply ARP to IPv6, and C suggests bypassing DNS, which is not how name resolution works.
Q19. Why might network administrators pin ARP entries for heavily used hosts?
📖 Explanation: Pinning ARP entries keeps the mapping permanently in the cache, eliminating the need for repeated ARP broadcasts each time the host communicates. This reduces network chatter and speeds up packet delivery. Pinning does not affect IP address assignment (A), cache overflow (B), or DNS behavior (D).
Q20. A device must transmit a message larger than the Ethernet MTU of 1500 bytes. Which mechanism is used, and how does the Ethernet address appear in each fragment?
📖 Explanation: When a packet exceeds the MTU, the IP layer fragments it into smaller packets, each still encapsulated in its own Ethernet frame. All fragments keep the same source and destination MAC addresses because they travel over the same physical link. TCP segmentation occurs above IP and does not affect Ethernet headers. Compression (C) does not guarantee size reduction, and switching media (D) does not alter the need for Ethernet addressing on the original link.
Q21. What is the primary purpose of the trailer checksum in an Ethernet frame?
📖 Explanation: The trailer checksum, commonly a CRC, allows the receiving NIC to detect errors that may have occurred while the frame traversed the medium. If the computed checksum differs from the transmitted value, the frame is discarded. It does not identify the sender, specify payload type, or timestamp the frame, making options A, C, and D incorrect.
Q22. What protocol translates a host name into an IP address?
📖 Explanation: The Domain Name System (DNS) is the service that maps human‑readable host names to numeric IP addresses. DHCP assigns IP addresses, ARP maps IP to MAC on a local network, and ICMP is used for error messages and diagnostics. By converting a name like www.example.com into its numeric address, DNS enables applications to locate remote hosts. Understanding this mapping is essential because without DNS a user would have to remember numeric addresses, which is impractical in everyday networking.
Q23. Which layer uses an ARP cache to map IP addresses to Ethernet (MAC) addresses?
📖 Explanation: ARP operates at the interface between the network and data‑link layers, allowing a host to discover the MAC address that corresponds to a known IP address. The ARP cache stores these mappings for quick reuse. When a host needs to send an Ethernet frame, it looks up the destination MAC in the cache; if absent, it broadcasts an ARP request. Knowing that ARP works at the network layer helps students see why IP‑to‑MAC resolution is a fundamental step before frame transmission.
Q24. Why might a host pin an ARP entry in its cache?
📖 Explanation: Pinning an ARP entry prevents it from being removed during cache expiration, ensuring that the MAC address for a frequently contacted host is always available. This eliminates the need for repeated ARP broadcasts, which can add latency and network traffic. The benefit is faster packet delivery and reduced overhead, especially in high‑throughput environments. The other options either describe unrelated functions (DNS caching) or do not address the purpose of pinning ARP entries.
Q25. How does the Ethernet trailer contribute to reliable communication?
📖 Explanation: The Ethernet trailer contains a frame check sequence, commonly a checksum, that receivers compute to verify data integrity. If the calculated checksum does not match the transmitted value, the frame is discarded, indicating corruption during transmission. This mechanism provides reliable communication at the data‑link layer. The other options describe functions of different fields: source IP belongs to the IP header, routing information is in higher‑layer headers, and MAC addresses are part of the Ethernet header, not the trailer.
Q26. A computer A wants to send data to computer B on the same LAN, but its ARP cache is empty. Which sequence of actions will correctly deliver the packet?
📖 Explanation: When host A lacks an entry for host B, it must discover B’s MAC address before sending the Ethernet frame. Broadcasting an ARP request for B’s IP address prompts B to reply with its MAC address, after which A can construct the frame and transmit it directly on the LAN. DNS resolution only yields IP addresses, not MAC addresses; sending via the default gateway adds an unnecessary hop, and static mapping would require prior manual configuration, which is not the case here.
Q27. A network administrator notices that packets to a remote server are taking longer than expected. Which change to the naming scheme could reduce the delay?
📖 Explanation: Pinning the router’s ARP entry ensures the host retains the router’s MAC address in its cache, avoiding repeated ARP lookups each time a packet must be sent to the remote network. This reduces the delay caused by ARP broadcasts and speeds up packet forwarding. Increasing the ARP timeout might help but does not guarantee the entry remains; disabling DNS caching would worsen latency, and changing the MTU affects frame size, not name resolution or ARP behavior.
Q28. If a host's DNS server becomes unavailable, which fallback mechanism allows the host to still communicate with other hosts on the same subnet?
📖 Explanation: If DNS is unavailable, a host can still communicate with other devices on the same subnet by using ARP to resolve their MAC addresses directly from their IP addresses. ARP operates locally and does not depend on DNS, allowing the host to build Ethernet frames for on‑link communication. Querying a secondary DNS server or relying on NetBIOS name broadcast are optional mechanisms, but they still involve name resolution, whereas using link‑local IPv6 addresses changes the addressing scheme entirely.
Q29. A router receives an Ethernet frame destined for a host whose IP address is known but MAC address is not in its ARP cache. What should the router do before forwarding the packet?
📖 Explanation: Before forwarding the packet, the router must know the destination MAC address on the next hop. Since the address is missing from its ARP cache, the router issues a broadcast ARP request for the target IP. Once the correct MAC is learned, the router rewrites the Ethernet header and forwards the frame. Dropping the packet would break connectivity, using a default MAC is invalid, and rewriting with its own MAC would misdirect the packet, so broadcasting ARP is the proper step.
Q30. Explain why the Ethernet header may be altered by each router along a path, while the higher‑level IP header remains unchanged.
📖 Explanation: Each router replaces the source and destination MAC addresses in the Ethernet header to reflect the devices on the current link, because MAC addresses are only meaningful on the local segment. The IP header, however, contains the original source and final destination addresses and is unchanged until it reaches the ultimate recipient. Ethernet does not carry routing information, and routers do not encrypt the header. Therefore, the alteration of the Ethernet header is necessary for correct delivery across multiple hops.
Q31. What is the impact of pinning ARP entries on network scalability and how does it relate to naming scheme design?
📖 Explanation: Pinning ARP entries forces them to remain in the cache even if they become stale, which can lead to incorrect MAC mappings as devices change or move. While this may improve performance for a stable host, it reduces scalability because the network cannot efficiently recycle cache space for new hosts, increasing the risk of communication errors in large or dynamic environments. It does not directly affect DNS queries, and it actually hinders rather than helps scalability.
Q32. A company migrates from a flat naming scheme to a hierarchical DNS structure (e.g., host.department.company.com). Which of the following outcomes is most likely?
📖 Explanation: Adopting a hierarchical DNS naming scheme organizes hosts into logical groups (department, company), making it easier to manage records, delegate authority, and avoid name collisions. Queries may travel through more DNS zones, but modern caching mitigates latency. The change does not require replacing Ethernet hardware, and ARP cache entries remain valid because they map IP to MAC, not names. Thus, the primary benefit is streamlined administration and clearer namespace structure.
Q33. During a network outage, a device still receives packets addressed to its MAC address but cannot resolve the IP address of the sender. Which protocol should the device use to learn the sender's IP, and why?
📖 Explanation: When a device knows a sender’s MAC address but not its IP, it can use Reverse ARP (RARP) to request the IP associated with that MAC. RARP operates at the network layer and allows a host to retrieve its own IP address from a server that maintains a MAC‑to‑IP mapping. DNS resolves names to IPs, not MACs; sending an ARP request for the MAC would be redundant, and ICMP echo requests test reachability, not address resolution.
Q34. A server frequently communicates with a database host on the same LAN. To reduce ARP lookups, the administrator pins the database's MAC address in the ARP cache. Which effect is most likely?
📖 Explanation: Pinning a MAC address eliminates the need for an ARP broadcast each time the server sends data, so the frame can be built and transmitted more quickly. This directly cuts the per‑packet delay, which is perceived as lower latency. The other options describe side effects that do not follow from simply storing a static entry; collisions are unrelated, MAC changes would still be ignored causing possible misdelivery, and expiration rates are unchanged.
Q35. Why does an Ethernet device add a trailer containing a checksum to each packet?
📖 Explanation: The trailer checksum allows the receiving NIC to compute a value over the received frame and compare it with the transmitted checksum. If the values differ, the frame is considered corrupted and is discarded, protecting higher‑layer protocols from erroneous data. The other choices describe functions that are handled elsewhere: priority is set in the header, encryption keys are not part of a checksum, and routing information resides in other fields.
Q36. What protocol translates a host name to an IP address?
📖 Explanation: Domain Name System (DNS) is the standard service that maps human‑readable host names to their numeric IP addresses, enabling applications to locate network resources. DHCP assigns IP addresses, HTTP transfers web pages, and FTP moves files, none of which perform name‑to‑address resolution. Understanding DNS is essential because every network request that starts with a name must first be resolved to an address before any Ethernet frame can be constructed.
Q37. Host A wants to send a packet to Host B on a different subnet. Its router's ARP cache lacks B's MAC address. What is the next step the router takes?
📖 Explanation: When the router does not have a MAC address for the next‑hop host, it must discover it by broadcasting an ARP request on the outgoing LAN. This request prompts the correct host to reply with its MAC, after which the router can encapsulate the packet and forward it. Dropping the packet or sending ICMP would be premature, and using the default gateway's MAC would not reach the intended next hop.
Q38. When an Ethernet frame leaves a LAN and enters a WAN via a router, which part of the frame is most likely to be rewritten?
📖 Explanation: The router replaces the source MAC address with its own MAC for the outgoing interface, ensuring that the next device sees the correct sender. The destination MAC is preserved until the frame reaches the final host on the LAN. EtherType remains unchanged because it identifies the encapsulated protocol, and the payload is not altered by the router. This rewrite is essential for proper link‑layer forwarding across different network segments.
Q39. How does the ARP cache help improve network performance on a LAN?
📖 Explanation: By caching IP‑to‑MAC associations, the ARP cache eliminates the need for repeated broadcast ARP requests each time a host communicates with a known peer. This reduces unnecessary network traffic and speeds up frame construction. Encryption and address assignment are handled by other protocols, and traffic prioritization is a function of Quality of Service mechanisms, not ARP caching.
Q40. What is the role of the Ethernet trailer checksum in ensuring data integrity?
📖 Explanation: The trailer checksum provides a simple error‑detecting code that the receiving NIC can verify against the computed checksum of the received bits. If a mismatch occurs, the frame is discarded, preventing corrupted data from reaching higher‑layer protocols. Frame length is defined by the length field, TCP segmentation is managed by the TCP header, and service type is indicated elsewhere, not by the checksum.
Q41. Why must all headers above the 802.3 layer be included as data in Ethernet packets?
📖 Explanation: Higher‑layer protocols (IP, TCP, etc.) rely on their headers to route and reassemble data correctly. Ethernet, as a data‑link layer, treats everything above 802.3 as payload, so those headers must travel unchanged within the frame. This design maintains the integrity of the original message across multiple hops. Ethernet does not interpret these headers, routing is performed by network‑layer devices, and packet size is governed by the MTU, not by header inclusion.
Q42. If a host is removed from the network but its MAC address remains pinned in another host's ARP cache, what is the most likely outcome when the latter sends a packet to the removed host?
📖 Explanation: The sending host will address the frame to the stale MAC address, causing the frame to be placed on the medium. Since the original host is no longer present, no device will recognize the MAC, and the frame will be ignored, leading to no response. The sender may eventually retransmit after higher‑layer timeouts. The network does not automatically correct the address, and the packet is not delivered to a different host unless MAC address reuse occurs.
Q43. Two hosts, X and Y, are on different VLANs but share the same IP address due to a misconfiguration. Both have their correct MAC addresses pinned in each other's ARP caches. When X sends a packet to Y's IP, what is the most probable behavior on the network?
📖 Explanation: Because the Ethernet switch forwards frames based on MAC addresses, the frame destined for Y's MAC will arrive at the port where X is connected, causing a collision of address expectations. The duplicate IP creates ambiguity, and the switch may discard the frame to avoid forwarding to an incorrect destination. ICMP redirects are generated by routers, not switches, and loopback would not occur in this scenario.
Q44. A router periodically ages out ARP entries after 20 minutes of inactivity. A host sends a burst of traffic to a remote server, then remains idle for 25 minutes before sending another packet. What must the router do to forward the new packet?
📖 Explanation: Since the ARP entry has expired, the router no longer knows the MAC address of the next hop. It must issue a new ARP request on the appropriate interface to learn the current MAC, then forward the packet once the reply is received. Using a stale entry could result in misdelivery, and ICMP Time Exceeded applies to TTL expiration, not ARP aging. Silent dropping would cause unnecessary packet loss.
Q45. Why are Ethernet frames not suitable for direct transmission over WAN links without encapsulation?
📖 Explanation: WAN media such as MPLS, PPP, or ATM employ distinct framing and signaling mechanisms that cannot interpret raw Ethernet frames. Therefore, Ethernet frames must be encapsulated within the WAN's own data‑link protocol to traverse the link correctly. While MTU and routing considerations are also factors, the primary reason is the incompatibility of the underlying link‑layer formats.
Q46. During a high‑traffic period, a NIC receives an Ethernet frame whose trailer checksum does not match the computed value. What action does the NIC typically take, and what downstream effect does this have on the TCP connection?
📖 Explanation: When a checksum mismatch is detected, the NIC drops the corrupted frame and does not pass it upward. The TCP layer, unaware of the loss, will eventually notice the missing acknowledgment and invoke its retransmission mechanisms, often entering fast retransmit after duplicate ACKs. Accepting the frame would propagate errors, and altering the checksum would conceal corruption, both of which are not standard NIC behavior.