Computer and Information Science Ch1.3 Computer Networking Ch1.3 Computer Networking Chapter 1.
Computer networking
-
Upload
maulik-togadiya -
Category
Engineering
-
view
516 -
download
1
Transcript of Computer networking
Functions of data link layer
Subject: computer network
CE-B
Maulik togadiya
Data link layer
The data link layer transmit data packet(frames) sequentially over the transmission medium.
The data link layer provides reliable information transfer capabilities by sending ack frame to the sender after receiving data packet.
The data link layer has two sub layers: 1) logical link control (LLC) 2) media access control (MAC).
LLC: It specifies which mechanisms are to be used for addressing stations over the transmission medium and for controlling the data exchanged between the originator and recipient machines.
MAC: when several computer are trying to transmit data, MAC determine which computer should get a transmission medium to transfer the data.
Main functionsEncapsulation of network layer data packets
into frames.Frame synchronizationError control and error detectionFlow control
Frames A frame is a digital data transmission unit
in computer networking and telecommunication . A frame typically includes frame
synchronization features consisting of a sequence of bits or symbols that indicate to the receiver the beginning and end of the payload data within the stream of symbols or bits it receives. If a receiver is connected to the system in the middle of a frame transmission, it ignores the data until it detects a new frame synchronization sequence.
Framing Method Implemented By Data Link Layer Are:-
Character Count.Starting & Ending Characters With Character
Stuffing.Starting & ending Flags With Bit Stuffing.Physical Layer Coding Violation.
3 0 41 1 57 7 02 41 26 12
Character count
Character Count Method
Frame 1 Frame 2 Frame 3 Frame 4
Starting & Ending Characters With Character Stuffing
DLE ASTX B DC ETXDLE
Start Of Frame Data End Of Frame
A B DC Data From Network Layer
Character Stuffing
DLE ASTX B DC ETXDLE
Start Of Frame
Data End Of Frame
A B DCDLE
DLE DLE
A B DCDLE
data on Sender side
data on Receiver side
Starting & ending Flags With Bit Stuffing
0 1 10 0 10 1 11 1 01 1001111110 01111110
Starting flag BitEnding Flag BIT
Shifted Bit
BIT stuffing
Stuffing Performed By Data
Link layer
0 1 10 0 10 1 11 1 01 101 Data received by Network layer On receiver side After Performing Destuffing By data link Layer
Physical Layer Coding ViolationIn this method Bit 1 Is encoded into high-low(10)
Pair And Bit 0 Is Encoded Into low-high(01)pair shown in figure.
0 1 10 01
Menchester Encoding
Physical Layer Coding Violation.
0 1 10 01
Menchester Encoding
Error detection and correction
Error detectionError detection means to decide whether the received data is correct or not without having a copy of the original message.
Error detection uses the concept of redundancy, which means adding extra bits for detecting errors at the destination.
Four types of redundancy checks are used in data communications
Vertical Redundancy CheckVRC
Longitudinal Redundancy CheckLRC
Cyclic Redundancy Check CRC
Checksum
Error Correction
It can be handled in two ways:1) receiver can have the sender retransmit the entire
data unit.2) The receiver can use an error-correcting code,
which automatically corrects certain errors.
Hamming Code
Hamming Code
Hamming Code
Example of Hamming Code
Error Detection
Thank You