Unit 5 CN & WT
Unit 5 CN & WT
Protocols: Polling, ALOHA, CSMA/CD; MAC Addresses and ARP; Switches; Point-to-Point
Protocol.
● Definition: The data link layer is the second layer of the OSI model responsible
for providing reliable data transfer across a physical link.
● Services Provided:
● Frame Synchronization: Delimits the start and end of frames for proper
transmission.
● Error Detection and Correction: Detects and corrects errors to ensure data
integrity.
● Flow Control: Regulates the flow of data to prevent overwhelming the
receiver.
● Access Control: Manages access to the physical medium for multiple
devices.
●
● Single-Bit Error
● Multiple-Bit Error
● A multiple-bit error is an error type that arises when more than
one bit in a data transmission is affected. Although multiple-bit
errors are relatively rare when compared to single-bit errors, they
can still occur, particularly in high-noise or high-interference
digital environments.
●
● Multiple-Bit Error
● Burst Error
● When several consecutive bits are flipped mistakenly in digital
transmission, it creates a burst error. This error causes a
sequence of consecutive incorrect values.
Burst Error
● Checksum
This scheme makes the total number of 1’s even, that is why it is called even
parity checking.
● Minimal Extra Data: Only one additional bit (the parity bit) is added
parity bit is quick, which allows for rapid error detection without
● Single Parity check is not able to detect even no. of bit error.
Let’s assume that during transmission, two of the bits of code word
flipped to 1111101.
On receiving the code word, the receiver finds the no. of ones to be
● Two-Dimensional Parity Check can detect and correct all single bit
error.
● Two-Dimensional Parity Check can detect two or three bit error that
● Two-Dimensional Parity Check can not correct two or three bit error.
● If we have a error in the parity bit then this scheme will not work.
Checksum
Checksum error detection is a method used to identify errors in transmitted
data. The process involves dividing the data into equally sized segments and
using a 1’s complement to calculate the sum of these segments. The
calculated sum is then sent along with the data to the receiver. At the
receiver’s end, the same process is repeated and if all zeroes are obtained in
the sum, it means that the data is correct.
● On the sender’s end, the segments are added using 1’s complement
checksum.
● At the receiver’s end, all received segments are added using 1’s
discarded.
errors. This ensures that the recipient receives the same data that
help to identify and isolate network issues that are causing errors.
that the data transmitted over the network is secure and has not
increased latency.
the network.
● Limited Error Correction: Error detection can only identify errors but
cannot correct them. This means that the recipient must rely on the
sender to retransmit the data, which can lead to further delays and
5. Switches
● Functionality: Devices that operate at the data link layer and forward frames
based on MAC addresses.
● Advantages over Hubs: Provide dedicated bandwidth to each port, offer
full-duplex communication, and reduce collisions by creating separate collision
domains per port.
These lecture notes cover essential concepts in the data link layer, including services
provided, error detection and correction techniques, multiple access protocols, MAC
addresses and ARP, switches, and the Point-to-Point Protocol (PPP). Understanding
these concepts is crucial for designing and managing computer networks effectively.
Q 1 Expolain Data Link Layer: Services;