Course: Bca Semester: Iv Subject Code: BC 0048 Subject Name: Computer Networks Unit Number: 6 Unit Title: Data Link Layer
Course: Bca Semester: Iv Subject Code: BC 0048 Subject Name: Computer Networks Unit Number: 6 Unit Title: Data Link Layer
Semester : IV
Unit number :6
o n f i d e NEXT
CHOME ntial
Unit-6 Data link Layer
Objectives
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
Lecture outline
•Introduction
•Summary
PREVIOUS
C o n f i d e nNEXT
tial
Unit-6 Data link Layer
Introduction
• The data link layer is the second layer from bottom of the seven-layer
OSI model
• The data link layer provides the functional and procedural means to
transfer data between network entities and might provide the means to
detect and possibly correct errors that may occur in the Physical layer.
• The data link layer is split into MAC and LLC sub layers.
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
• The data link layer takes the packets from the network layer and
encapsulates bit stream into units called frames for transmission.
• Each frame contains a frame header, a payload field for holding the
packet, and a frame trailer.
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
• Flow control
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
Framing :
The DLL translates the physical layer's raw bit stream into discrete units
(messages) called frames.
That is because the physical layer just accepts a raw bit stream and to
deliver it to the destination. This bit stream is not guaranteed to be error
free.
The number of bits received may be less than, equal to, or more than the
number of bits transmitted. They may also have different values. It is up
to DLL to detect and if necessary correct errors. If not correct at least
detect errors and take proper action like ask for retransmission etc.
The usual approach of DLL is to break the bit stream up into discrete
frames and then for the purpose of error detection or correction, it uses
some coding technique
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
Error control :
Error control is concerned with insuring that all frames are eventually
delivered and possibly in order to a destination as they are sent from the
source.
Reliable delivery is achieved using the ``acknowledgments with
retransmission’’. Here the receiver returns a special acknowledgment
(ACK) frame to the sender indicating the correct receipt of a frame.
In some systems, the receiver also returns a negative acknowledgment
(NACK) for incorrectly-received frames. This is nothing more than a hint
to the sender so that it can retransmit a frame right away without waiting
for a timer to expire.
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
Flow control :
Flow control deals with throttling the speed of the sender to match that of
the receiver.
Usually, this is a dynamic process, as the receiving speed depends on
such changing factors as the load, and availability of buffer space.
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
Parity Bits :
parity: A single parity bit is appended to each data block (e.g. each character in ASCII
systems) so that the number of 1 bits always adds up to an even (odd) number.
If the total number of bits including the appended bit is even, the parity bit appended is
called even parity. Similarly, If the total number of bits including the appended bit is
odd, the parity bit appended is called odd parity
of even parity:
Data is 1000000
After using even parity the code becomes 10000001
Data is 1111101
After using even parity the code becomes 11111010
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
PREVIOUS i d e n t i a NEXT
C o n f HOME l
Unit-6 Data link Layer
Summary
• The data link layer is the second layer from bottom of the seven-
layer OSI model.
• The data link layer is split into MAC and LLC sub layers.
• The data link layer takes the packets from the network layer and
encapsulates bit stream into units called frames for transmission.
• If the total number of bits including the appended bit is even, the
parity bit appended is called even parity.
• The most popular error detection code is polynomial codes or cyclic
redundancy codes (CRCs).
• Most common Data Link Layer Protocols are
Asynchronous DLC protocols(ADLC), Binary Synchronous protocol (Bisync
or BSC), Synchronous DLC (SDLC) and High Level DLC (HDLC)
C o n f HOME
PREVIOUS idential