1
Data Link Layer
Design Issues
krraju.in
2
What you’ll learn
Data link layer: Design issues, Framing: fixed size framing, variable size framing, flow control, error control, error detection and correction codes, CRC, Checksum: idea, one’s complement internet checksum, services provided to Network Layer, Elementary Data Link Layer protocols: simplex protocol, Simplex stop and wait, Simplex protocol for Noisy Channel. Sliding window protocol: One bit, Go back N, Selective repeat-Stop and wait protocol, Data link layer in HDLC, Point to point protocol (PPP).
Unit-2
TCP
IP
IGMP
ICMP
Transport Layer
Network Layer
Link Layer
Media
UDP
ARP
Network Access
RARP
krraju.in
Nodes and Links
3
Nodes and Links
Data-link Layer
Transfers datagram over a single link (from one node to adjacent node) in the path
krraju.in
Data Link Layer
4
Transfers data between nodes on a network segment and Provides a well defined service interface to the network layer.
krraju.in
DLL Services
5
Design Issues
Services
krraju.in
Enq/Ack (Enquiry and Acknowledgement)
6
Station
A
Station
B
Used in systems where there is no question of the wrong receiver getting the transmission.
krraju.in
Multipoint Discipline
7
Multipoint Discipline
Who has the right to the channel?
Primary
Secondary
A
Secondary
B
Secondary
C
Poll/Select
All data communication must be made through the primary device.
One device is designated as a primary station and the other devices are secondary stations and all are using a single transmission line.
krraju.in
Link Control
8
Line Discipline
Who should send now?
Error Control
How can errors be corrected?
Flow Control
How much data may be sent?
krraju.in
Framing
9
The data link layer needs to pack bits into frames, so that each frame is distinguishable from another.
Character-oriented protocol
Bit-oriented protocol
krraju.in
Framing Methods
10
Fixed size framing
Variable size framing
Physical layer coding violations
krraju.in
Character Stuffing
11
Character stuffing: Data is changed by inserting additional characters to distinguish between data and control fields.
When the data is having other than text, i.e. audio, video and images character stuffing is not used because there may be a chance when FLAG bytes get matched with the data inside the packet.
krraju.in
Byte Stuffing
12
krraju.in
Bit Stuffing
13
Bit stuffing (zero bit insertion). Each frame begins and ends with a flag pattern 01111110.
Real flag is not stuffed by the sender, hence no need of destuffing for real flag, at the end of the receiver.
krraju.in
Frame Synchronization
14
Synchronous frame format
Asynchronous frame format
Data is transmitted serially between the stations. The receiver may loose synchronization with the transmitter if the bit stream is long
krraju.in
Flow Control
15
Flow control refers to a set of procedures used to restrict the amount of data that the sender can send before waiting for acknowledgement.
Stop and wait:
The sender sends one frame and waits for an acknowledgment before sending the next frame.
Sliding window:
The sender can transmit several frames before needing an acknowledgment, i.e., several frames can be in transit at a time.
krraju.in
Connectionless vs Connection Oriented
16
Connectionless Protocol:
Connection-oriented protocol:
krraju.in
Links and Sublayers
Sublayers
Broadcast link
Point-to-point link
17
Links
Sublayers
Data Link Control
Media Access Control
Data Link Control
krraju.in
Types of Addresses
Unicast (One-to-one): Frame received by only one station.
Multicast (One-to-many): Frame received by a group of stations. However, the jurisdiction is local (inside the link)
18
krraju.in
Recap
19
Essential Network Protocol
ARP is a fundamental protocol that enables successful communication in IP-based networks.
Security Considerations
Understanding ARP security risks and implementing countermeasures is crucial for network protection.
Versatile and Practical
ARP finds applications in various network environments, promoting seamless connectivity.
Reverse Address Resolution Protocol (RARP) is dropped in IPv6 because it is seldom used.
krraju.in
Video Links
20
krraju.in