Computer Network & Network Security System — Data Link Layer, NEC licence examination syllabus (Nepal Engineering Council).
Before diving into CRC, Hamming code, and sliding windows, get clear on WHY this layer exists at all.
Imagine two neighbours shouting messages across a noisy street. Some words get lost, some arrive garbled, and sometimes one person talks so fast the other can't keep up. The data link layer's entire job is to fix exactly these problems for two directly-connected devices.
FramingGroup raw bits into manageable, addressed units called frames.
Flow controlMake sure a fast sender doesn't overwhelm a slow receiver.
Error controlDetect (and sometimes fix) frames damaged in transit.
AddressingIdentify which device on the local network a frame is meant for (via MAC address).
The data link layer itself is often split into two sub-layers: LLC (Logical Link Control — handles flow/error control, talks upward to the network layer) and MAC (Media Access Control — handles addressing and who gets to use the shared medium, talks downward to the physical layer).
The four services are easier to hold if you ask what goes wrong without each one.
Without framingThe receiver gets an endless bit stream with no idea where one message stops and the next begins.
Without error controlNoise flips bits and the receiver accepts corrupted data as genuine, never knowing.
Without flow controlA fast sender overruns a slow receiver's buffer and data is silently dropped.
Without access controlOn a shared medium, two stations transmit simultaneously and both signals are destroyed.
Flow control and error control appear in both layers, and questions ask why the duplication is not waste.
Unacknowledged connectionlessSend and hope. No connection, no acknowledgement, no retransmission — right for links with very low error rates or for real-time traffic. This is what Ethernet does.
Acknowledged connectionlessEach frame is acknowledged individually, but there is still no connection setup. Useful on unreliable links such as wireless.
Acknowledged connection-orientedA connection is established, frames are numbered and delivered exactly once and in order — the strongest guarantee and the most overhead.
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Loading…