📝 Two Sublayers in Data Link Layer (8 MCQs)
Logical Link Control and Media Access Control
In IEEE 802 LAN architecture, the data link layer is commonly divided into Logical Link Control (LLC) and Media Access Control (MAC) sublayers. LLC provides a link interface to the network layer and can identify the network-layer protocol. MAC handles access to the transmission medium and link-layer addressing. This division is used in common IEEE 802 LAN architecture descriptions and teaching.
Separating Link Services from Medium Access
The LLC sublayer provides a common logical interface above differing LAN technologies. The MAC sublayer is closer to the physical layer and defines how devices use the medium, including frame format and MAC addressing. The precise LLC features depend on the standard and implementation; not every network uses identical sublayer details.
How Data Passes Through the Sublayers
At a sender, network-layer data is passed to LLC, which supplies the appropriate logical link information. The data then reaches MAC, where the frame is formed with MAC addressing and medium-specific control fields. The physical layer transmits the resulting bits; the receiver processes them in the reverse order at the destination.
Sending an IP Packet over an IEEE 802 LAN
An IP packet is handed to the LAN data link service. LLC can indicate that the payload is IPv4 or IPv6, while the MAC sublayer builds the LAN frame using source and destination MAC addresses. The physical layer then encodes and transmits the frame over the selected medium such as Ethernet.
How LLC and MAC Relate to Other Layers
LLC provides an abstraction between network-layer protocols and particular LAN access methods, while MAC coordinates actual access to Ethernet or wireless media. The physical layer handles signals and bit transmission. Together, the sublayers let different LAN technologies offer link-layer communication without making IP manage electrical or radio access details locally.
Distinguishing LLC Duties from MAC Duties
'LLC assigns the destination MAC address' misplaces a MAC-layer responsibility. 'MAC performs IP routing' confuses link delivery with the network layer. 'LLC and MAC are separate OSI layers' is inaccurate: they are sublayers within the OSI data link layer, not independent layers in the seven-layer model within the same layer.
Identifying Sublayers in Layered Architecture Questions
For examinations, associate LLC with the logical interface and protocol identification, and MAC with medium access, frame handling, and hardware addressing. Place both within OSI Layer 2, above the physical layer. When tracing encapsulation, show LLC information and the MAC frame separately only where the named standard requires them carefully.
LLC and MAC Sublayer Terminology
- LLC - Logical link interface sublayer.
- MAC - Sublayer controlling medium access.
- IEEE 802 - LAN standards family.
- SAP - Service identification access point.
- MAC frame - Formatted link-layer data unit.
- Medium access - Rules for shared channel use.
📝 All Two Sublayers in Data Link Layer MCQs
Q1. What is the primary function of the data-link sublayer in a router?
📖 Explanation: The data‑link sublayer’s main job is to take a network‑layer packet, add MAC addresses, and create a frame that can be placed on the specific physical medium. It does not perform routing, encryption, or address allocation, which belong to higher‑layer protocols.
Q2. When a frame arrives at router R4’s data-link layer destined for network X, what must the router do before forwarding it to the next link?
📖 Explanation: The router must decapsulate the incoming frame, discard the original source MAC, and then encapsulate the packet into a new frame. This involves inserting the router’s own MAC as the source address and the next‑hop’s MAC as the destination, followed by recomputing the frame checksum to ensure integrity.
Q3. Given that each router uses two data-link layers, what can be inferred about the role of MAC addresses when a frame traverses router R5?
📖 Explanation: When a frame enters R5, the inbound MAC addresses are discarded. For the outbound interface, R5 inserts its own MAC as the source and the MAC address of the next‑hop device as the destination. Thus the original source MAC never appears beyond the first link, and each hop rewrites both addresses.
Q4. If the link between R2 and R3 fails and frames are rerouted through R4, how does this affect the number of data-link layer processing steps for a packet from Alice to Bob?
📖 Explanation: Each router contributes two data‑link processing stages: one for the inbound interface and one for the outbound interface. Adding R4 introduces an extra router, thereby adding two more data‑link operations (receive and transmit) to the end‑to‑end journey, increasing the total count.
Q5. If a router mistakenly copies the source MAC address from the incoming frame into the destination MAC field of the outgoing frame, which network‑level consequence is most likely?
📖 Explanation: A next‑hop device expects the destination MAC to match one of its own interfaces. Using the source MAC as the destination creates a mismatch, causing the frame to fail the address check and be dropped. This prevents delivery and may generate an error log, but it does not cause looping or broadcasting.
Q6. Which statement correctly distinguishes the responsibilities of the data-link layer at Alice’s computer from those at router R6?
📖 Explanation: Alice’s host is attached to only one physical network, so its data‑link layer creates a frame with a single source and destination MAC. Router R6 sits between two networks; it must receive a frame on one interface, strip its MACs, then generate a new frame with its own source MAC for the outbound interface and the next‑hop’s destination MAC, effectively performing two separate data‑link operations.
Q7. How does using a point‑to‑point WAN link instead of a LAN switch between R3 and R4 affect the data‑link sublayer’s framing overhead?
📖 Explanation: Point‑to‑point WAN technologies such as PPP, HDLC, or MPLS require their own header fields in addition to the standard Ethernet header. This extra encapsulation adds bytes to each frame, raising the per‑packet overhead compared with a simple Ethernet switch that forwards frames using only the native Ethernet header.
Q8. In what way does error detection at the data‑link layer differ when a frame passes through multiple routers versus when it remains within a single LAN?
📖 Explanation: Every time a router creates a new frame for the next link, it must compute a new cyclic redundancy check (CRC) over the new header and payload. This means errors that occur on any individual hop can be detected locally. In a single LAN, the original CRC remains unchanged, and only one detection point exists unless the frame is modified.