Unit 3
Unit 3
The data link layer provides node-to-node communication, ensuring reliable transfer of
data across a physical link.
It handles framing, error detection, and flow control between adjacent network nodes.
Framing is the process of dividing a data stream into manageable units called frames.
It helps in error checking and allows the receiver to identify the start and end of each
message.
● Parity check
ARQ is an error control method where the receiver sends an acknowledgment or requests
retransmission if an error is detected.
Examples include Stop-and-Wait ARQ and Go-Back-N ARQ.
Carrier Sense Multiple Access with Collision Detection (CSMA/CD) is a protocol used to
detect and handle collisions in wired Ethernet networks.
Stations listen before transmitting and wait if the channel is busy.
Ethernet is a widely used LAN technology that defines wiring and signaling for the data link
layer.
It uses protocols like CSMA/CD and provides high-speed communication.
A parity bit is an extra bit added to a data byte to make the number of 1s either even (even
parity) or odd (odd parity).
It is a simple error detection technique.
Perfect! Here's the expanded version of Section B (3–5 Marks) answers from Unit III –
Data Link and MAC Layer. Each answer is structured, easy to understand, and suitable for
exam writing (3–5 mark level).
The Data Link Layer provides several key services to ensure reliable node-to-node
communication:
🔹 1. Framing:
● Divides the data stream into frames.
🔹 3. Flow Control:
● Ensures that the sender does not send faster than the receiver can process.
✔️ These services are crucial in delivering error-free and orderly data frames across the
physical medium.
✅ 1. Parity Check:
● Adds 1 extra parity bit.
✅ Advantages:
● Simple and easy to implement.
✅ Disadvantages:
● Inefficient for long-distance or high-speed links due to idle time during waiting.
Example:
If Frame 1 is sent and not acknowledged, it is resent until the correct ACK is received.
Go-Back-N is an efficient protocol for reliable transmission using sliding window technique.
🔹 Working:
● Sender can send multiple frames (up to a window size N) without waiting.
● If a frame is lost or corrupted, receiver discards that and all subsequent frames.
🔹 Example:
If Frame 3 is lost, frames 4 and 5 are also discarded. Sender retransmits from frame 3.
🔹 Advantage:
● Better efficiency than Stop-and-Wait.
🔹 Disadvantage:
● Wasted bandwidth during retransmission.
✅ IP Address:
● Logical address assigned by the network.
✔️ Both addresses are important—MAC for local delivery, IP for global routing.
Great! Here is the detailed Section C (8–10 Marks) content for Unit III – Data Link and
MAC Layer. Each answer is expanded with diagrams, comparisons, and clear structure
for better understanding and scoring high in exams.
✅ Section C – Long Answer (8–10 Marks)
1. Explain error detection and correction techniques in the Data Link
Layer with diagrams.
Error detection and correction ensure reliable data communication by identifying and fixing
errors caused during transmission.
Diagram:
Data: 1001001
Sent: 10010011
✅ 2. Checksum:
● Used in TCP/IP.
Diagram:
Data: 1101
Generator: 1011
Example:
✔️ Conclusion: These techniques enhance data integrity and are crucial in modern
communication systems.
These are error control protocols used in the data link layer to ensure reliable
transmission.
✅ 1. Stop-and-Wait ARQ:
● Sends one frame at a time.
Diagram:
✅ 2. Go-Back-N ARQ:
● Sender sends multiple frames (window size = N).
Diagram:
Diagram:
✅ MAC Address:
● A unique 48-bit address assigned to a NIC.
● Format: 00:1A:2B:3C:4D:5E
● Written in hexadecimal.
✅ Working in Ethernet:
1. Sender’s MAC address is included in the Ethernet frame.
3. Receiver compares its own MAC with the destination MAC.
✔️ MAC addresses are fixed and local. They help devices communicate at the hardware
level before IP comes into play.
When multiple devices share a single communication medium, collision can occur. To avoid
and handle this, multiple access protocols are used.
Types:
Diagram:
Listen → Send → Collision? → Backoff → Retry
●
● CSMA/CA (Collision Avoidance):
✔️ These protocols are essential for managing shared channels and reducing data loss due
to collisions.
Speed Low to Moderate (up to Moderate (10 Mbps–100 Very High (up to
1 Gbps) Mbps) Tbps)
✅ Conclusion:
● Twisted Pair is best for short-range, low-budget setups.
Great! Let's talk about numericals from Unit II – Physical Layer of Computer Networks.
While most of Computer Networks is theoretical, some basic numericals are commonly
asked in exams, especially from:
● Formula:
Data Rate (bps)=2×Bandwidth×log2L\text{Data Rate (bps)} = 2 \times
\text{Bandwidth} \times \log_2 L
Where:
○ Bandwidth = in Hz
● Example Question:
If a noiseless channel has a bandwidth of 3 kHz and uses 8 levels, what is the
maximum data rate?
Solution:
Data Rate=2×3000×log2(8)=2×3000×3=18,000 bps\text{Data Rate} = 2 \times 3000
\times \log_2(8) = 2 \times 3000 \times 3 = 18,000 \text{ bps}
2. Nyquist Formula
○ BB = Bandwidth in Hz
○ LL = Signal levels
Where:
● BB = Bandwidth (Hz)
● Example Question:
A channel has a bandwidth of 1 MHz and an SNR of 31. What is the maximum data
rate?
Solution:
log2(1+31)=log2(32)=5\log_2(1 + 31) = \log_2(32) = 5
Capacity=1,000,000×5=5,000,000 bps or 5 Mbps\text{Capacity} = 1,000,000 \times 5
= 5,000,000 \text{ bps or 5 Mbps}
● Formulas:
Propagation Time=DistancePropagation Speed\text{Propagation Time} =
\frac{\text{Distance}}{\text{Propagation Speed}} Transmission Time=Message Size
(bits)Bandwidth (bps)\text{Transmission Time} = \frac{\text{Message Size
(bits)}}{\text{Bandwidth (bps)}}
✅ Summary of Formulas
Concept Formula