🎓 BookMCQ
← Back to 9. Introduction to Data Link Layer

📝 An Example of Communication in Link Layer Addressing and the Data Link Layer (18 MCQs)

Following a Packet Through Local Link Delivery

Communication between two devices on one LAN illustrates how network-layer and data link addressing work together. The sender uses an IP address to identify the destination host and a MAC address to deliver the Ethernet frame locally. The data link layer encapsulates the IP packet, while switches forward frames within the LAN. The example also shows why the two address types are not interchangeable.

Preparing the IP Packet and Ethernet Header

The application data is passed to transport and network layers, where protocol headers are added and an IP packet is formed. The sender determines that the destination belongs to its local subnet. The link layer then needs the destination host's MAC address and adds source and destination addresses to the Ethernet header.

ARP Resolution and Frame Transmission Sequence

If the destination MAC address is unknown, the sender broadcasts an ARP request. The destination replies with its MAC address, which the sender caches. The sender transmits an Ethernet frame containing the IP packet. A switch examines the destination MAC address and forwards the frame toward the correct interface on the LAN.

A Host at 192.0.2.10 Sends to 192.0.2.20

Assume both hosts share an Ethernet subnet. Host A at 192.0.2.10 learns that host B at 192.0.2.20 is local, then resolves B's MAC address through ARP. A sends a frame from its own MAC to B's MAC, carrying the IP packet addressed to 192.0.2.20.

What Changes When Communication Crosses a Router

If the destination IP address is outside the sender's subnet, the sender addresses the Ethernet frame to the default gateway's MAC address, not the remote host's MAC. The router removes the incoming frame, examines the IP packet, selects the next hop, and encapsulates that packet in a new frame for the outgoing link.

Avoiding Errors When Tracing a Network Exchange

'The Ethernet destination is always the final host' is incorrect when traffic leaves the local subnet; it is the next-hop router. 'ARP carries the user data packet' is false because ARP performs address resolution separately. 'A switch rewrites the IP destination' confuses Layer 2 forwarding with Layer 3 routing at each hop.

Examining Address Fields at Each Communication Stage

For a communication trace, record the sender and receiver IP addresses separately from the source and destination MAC addresses. Decide whether the target is local, show any ARP exchange, and identify the switch's forwarding action. For routed traffic, explain why the MAC addresses change at each hop while the IP destination remains the remote endpoint on the route.

Terms for Local Frame Delivery and Address Resolution

  • IP packet - Network-layer data unit.
  • Ethernet frame - Link-layer packet container.
  • Default gateway - Router for remote networks.
  • ARP cache - Stored IPv4-to-MAC mappings.
  • Switch - Forwards frames using MAC addresses.
  • Encapsulation - Adding headers at protocol layers.
4
Easy
9
Medium
5
Hard

📝 All An Example of Communication in Link Layer Addressing and the Data Link Layer MCQs

Q1. If Alice’s data‑link layer cannot establish a logical connection with router R2, which outcome is most likely?

A.Alice will still send frames that reach R2
B.Frames will be discarded locally and an error will be reported ✅
C.The packet will be routed at the network layer bypassing the data‑link layer
D.Communication will continue using a backup wireless link
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: When the data‑link layer fails to form its logical link, it cannot hand frames to the next hop. The protocol typically drops the frames and signals an error to higher layers, preventing further transmission until the link is restored.

Q2. Suppose a frame arriving at R2’s data‑link layer fails its CRC check. What is the most probable effect on the end‑to‑end communication?

A.R2 will correct the error using forward error correction
B.R2 will discard the corrupted frame and request retransmission from Alice
C.R2 will forward the frame unchanged, relying on higher layers to detect the error
D.R2 will terminate the TCP session immediately ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: A CRC failure indicates that the frame is corrupted. The data‑link layer discards it and, if a reliable protocol is used, signals the sender (Alice) to retransmit. Higher‑layer protocols like TCP also rely on this feedback, but the immediate action is at the data‑link level.

Q3. If the data‑link layer at R4 uses a different framing protocol than R2, what inference can be drawn about interoperability?

A.The two routers can exchange frames without conversion ✅
B.A conversion gateway is required between R2 and R4
C.Frames will be automatically re‑framed by the network layer
D.Interoperability is guaranteed by Ethernet standards
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Different framing conventions mean the raw bit patterns are not mutually understood. A conversion function (often a bridge or gateway) must translate frames so that each router’s data‑link layer can interpret them correctly.

Q4. Consider that the path from Alice to the destination traverses four data‑link segments. If each segment introduces a latency of 2.52.5 ms, what is the total minimum latency contributed solely by the data‑link layer?

A.55 ms
B.7.57.5 ms
C.1010 ms ✅
D.12.512.5 ms
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The total latency is the sum of each segment’s delay: 4×2.54 \times 2.5 ms = 1010 ms. This represents the lower bound contributed by the data‑link layer, ignoring processing and queuing delays.

Q5. If a frame is lost between R2 and R4, which logical deduction best explains the observed behavior at Alice’s host?

A.Alice will receive an acknowledgment for the lost frame
B.Alice’s TCP layer will timeout and retransmit the corresponding segment ✅
C.The network layer will reroute the frame via an alternate path automatically
D.R4 will generate a new frame to replace the lost one
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Loss at the data‑link level prevents the segment from reaching its destination, causing the higher‑layer TCP timeout. The sender (Alice) then retransmits the data after the timeout expires, which is the expected behavior.

Q6. Which statement best compares the responsibilities of the data‑link layer and the network layer in this scenario?

A.Both layers perform routing decisions ✅
B.The data‑link layer handles physical addressing while the network layer manages logical addressing
C.The network layer provides error detection, whereas the data‑link layer provides flow control
D.Both layers encapsulate the same protocol headers
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The data‑link layer is responsible for framing and physical (MAC) addresses, while the network layer adds IP addresses and makes routing decisions. This distinction clarifies their complementary but separate roles.

Q7. Analyze the effect of increasing the Maximum Transmission Unit (MTU) at the data‑link layer of R2 from 1500 bytes to 9000 bytes. Which outcome is most likely?

A.The number of frames between Alice and the destination will increase
B.Overall transmission efficiency will improve due to fewer headers per byte of data
C.Packet fragmentation will occur more frequently at the network layer
D.Latency will increase because larger frames take longer to process ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: Larger MTU means each frame carries more payload, reducing the number of frames but increasing the processing time per frame. While efficiency can improve, the dominant effect in a multi‑hop scenario is the added serialization delay for each larger frame, raising latency.

Q8. Evaluate why a store‑and‑forward switch at R3 could improve reliability compared to a cut‑through switch in this data‑link path. Which justification is most accurate?

A.Store‑and‑forward switches reduce propagation delay
B.They allow the entire frame to be checked for errors before forwarding ✅
C.They increase the maximum achievable bandwidth
D.They eliminate the need for MAC address learning
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Store‑and‑forward devices receive the whole frame, verify its CRC, and only then forward it. This ensures that corrupted frames are not propagated, enhancing reliability compared with cut‑through switches that begin forwarding before error checking.

Q9. In a scenario where R2 and R4 use different link‑layer protocols, which analytical approach best determines the feasibility of direct communication?

A.Assess the compatibility of their MAC address formats
B.Compare the physical layer signaling rates
C.Examine the encapsulation and decapsulation mechanisms ✅
D.Measure the round‑trip time between Alice and the destination
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Direct communication hinges on whether each router can correctly interpret the other's frames. This requires analyzing encapsulation (how data is wrapped) and decapsulation (how it is stripped) processes, which reveal any mismatches that would prevent interoperability.

Q10. If Alice’s computer sends a frame with a destination MAC address belonging to R2, but the frame is intercepted by a malicious node that rewrites the MAC to R4’s address, what logical consequence follows?

A.The frame will be delivered to R2 as originally intended
B.R4 will discard the frame because the source address is unknown
C.The frame will be misrouted to R4, bypassing R2 ✅
D.The network layer will correct the MAC address mismatch
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Changing the destination MAC directs the frame to the next hop that matches that address—in this case R4. The frame will be forwarded according to the altered address, effectively bypassing the intended intermediate node (R2).

Q11. Consider the principle of encapsulation: which statement best synthesizes its role across the five logical data‑link connections shown?

A.Encapsulation adds a new header at each hop, increasing total packet size linearly
B.Encapsulation occurs only once at the source and is removed only at the destination
C.Each data‑link hop adds its own trailer but reuses the same header
D.Encapsulation ensures that each hop can interpret the payload using its own protocol syntax ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Encapsulation means each hop wraps the payload with its own framing (header/trailer) so that the receiving data‑link layer can process it. Although the original payload remains, each hop adds its own syntax, enabling correct interpretation and forwarding.

Q12. Apply the concept of “store‑and‑forward” to explain why a frame might experience a delay of 33 ms at R2 even though the physical link speed is 11 Gbps. Which explanation aligns with this concept?

A.The frame is waiting for address resolution before forwarding
B.R2 buffers the entire frame to verify its CRC before transmitting ✅
C.The switch performs MAC address learning, causing a temporary pause
D.The frame is fragmented into smaller pieces for transmission
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Store‑and‑forward requires the switch to receive the full frame, compute its CRC, and only then forward it. This verification step introduces a processing delay (here 33 ms) despite the high link speed.

Q13. Which conceptual relationship correctly describes how flow control at the data‑link layer interacts with congestion control at the transport layer?

A.Flow control and congestion control are identical mechanisms operating at different layers
B.Flow control prevents buffer overflow locally, while congestion control manages end‑to‑end traffic rates ✅
C.Both mechanisms rely on the same acknowledgment packets
D.Congestion control supersedes flow control, rendering it unnecessary
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Flow control (e.g., pause frames) regulates the rate between directly connected devices to avoid local overflow. Congestion control (e.g., TCP’s window) operates end‑to‑end, adjusting the overall sending rate to prevent network congestion. They complement each other rather than duplicate functionality.

Q14. If the data‑link layer employs a token‑passing protocol between Alice and R2, what inference can be made about medium access control?

A.The medium is shared and contention‑free ✅
B.Collision detection is the primary method for error handling
C.Frames are transmitted without any coordination
D.The protocol guarantees zero latency
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Token‑passing grants the right to transmit to the node holding the token, ensuring that only one node uses the shared medium at a time, thus eliminating collisions and providing a contention‑free environment.

Q15. Compare the effect of using full‑duplex versus half‑duplex links between Alice and R1 on the number of logical data‑link connections required. Which statement is accurate?

A.Full‑duplex halves the number of logical connections needed
B.Half‑duplex requires an additional logical connection for acknowledgment
C.Both modes require the same number of logical connections ✅
D.Full‑duplex eliminates the need for a data‑link layer altogether
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Regardless of duplex mode, each hop still represents a distinct logical data‑link connection because frames must travel in both directions. The duplex setting affects transmission simultaneity, not the count of logical links.

Q16. When evaluating the security of the data‑link layer in this path, which factor provides the greatest protection against eavesdropping?

A.Use of larger MAC addresses
B.Implementation of link‑layer encryption like MACsec ✅
C.Increasing the frame size
D.Choosing a higher‑speed physical medium
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Link‑layer encryption (e.g., MACsec) encrypts frames directly on the data‑link, making it extremely difficult for an adversary to read intercepted traffic, regardless of address length or speed. This offers the strongest protection at this layer.

Q17. Apply the principle of “layered abstraction” to explain why a change in the framing format at R2 does not affect Alice’s application layer. Which explanation best captures this idea?

A.Application layer directly accesses the frame’s bits, so changes are invisible
B.Each layer only interacts with the adjacent layer, insulating higher layers from lower‑layer modifications ✅
C.The framing format is propagated upward through the OSI model
D.Application layer protocols automatically adapt to any lower‑layer change
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Layered abstraction ensures that each layer provides services to the one above it without exposing internal details. Therefore, modifications in R2’s framing affect only the data‑link layer and are hidden from the application layer, preserving independence.

Q18. If a new router R5 is inserted between R3 and R4, increasing the total number of logical data‑link connections to six, what logical effect does this have on end‑to‑end latency, assuming each new hop adds 11 ms of processing delay?

A.Latency decreases because more hops improve routing efficiency
B.Latency remains unchanged because processing delays cancel out
C.Latency increases by 11 ms per added hop, totaling an extra 11 ms
D.Latency increases by the cumulative processing delay of the added hops, i.e., 11 ms ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Adding a hop introduces an extra processing stage at the data‑link layer. Each additional hop contributes its own delay; therefore, inserting R5 adds another 11 ms, raising the total latency accordingly.

🔗 Related Topics (MCQs)