EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login

Data Link Layer

Home » Software Development » Software Development Tutorials » Network Security Tutorial » Data Link Layer

data link layer

Introduction to Data Link Layer

Data Link Layer is the second layer of the OSI model and lies between the physical layer and the network layer. OSI or in other words, Open Systems Interconnection model is a conceptual model which is used vastly in the software industry especially in the field of communication for characterizing and standardizing the functions without touching the internal structure underlying in the structure or technology. This layer in the OSI model defines the protocol for establishment as well as the termination of a connection between two devices. This layer is subdivided into 2 sublayers namely, Medium Access control and Logical Link Control. In the below few sections we will look in detail on these 2 sublayers as well as other components.

Layers of the OSI Model

In the previous section, we already had a glimpse of what the OSI model is, now let us see what the other layers in this conceptual model are. The 7 layers of the OSI model are:

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

  1. Physical Layer
  2. Data Link layer
  3. Network Layer
  4. Transport Layer
  5. Session Layer
  6. Presentation Layer
  7. Application Layer

Now looking into the sublayers of data link layer, i.e. Medium Access Control (MAC) which helps in controlling the hardware responsible for interaction with the transmission mediums and the Logical Link Control (LLC) which acts as a connection between MAC sublayer and the network layer and uses multiplexing mechanism for allowing several network protocols to coexist within a multipoint network. The division into sub layer is to bring in the concept of modularity for standardized practice.

The main functionality of the Data link layer is the transfer of datagram across an individual link. Now in this statement, we came across two new terminologies and let us look briefly into those first before proceeding ahead. One of the terms is Link, Link is the communication channel through which adjacent nodes are connected. For the other term “Datagram” let us understand it from an analogous situation. Now let us prepare an itinerary from Bangalore to some remote place in West Bengal. The entire travel will involve 3 basic transportation i.e. flights, trains, and a bus. Now, these three modes of transportation are independent of each other and we assume the link to be direct in nature but performs a basic service of moving you from one location to its adjacent location so that you can take the next service. In this analogy, the one who is traveling is the datagram, each of the transportation segments the traveler is traveling is analogous to links and each mode used is the link-layer protocol.

Services of Data Link Layer

Now we have a fair idea on what links, datagrams are and at a higher level what is a data link layer, let us look into the aspects and the services provided by them which will encapsulate the importance of the data link layer in OSI model. In a nutshell, we have 6 services which Data Link layer provide, and they are:

1. Framing & Link Access

Even before the transmission starts each network frame is encapsulated by the layer protocols. Earlier we discussed about the frame which consists of a number of data fields and each data field comprising of datagrams inserted. The structure of the frame is specified here along with the channel access protocol which would be used for transmitting the frame over the link.

Popular Course in this category
All in One Software Development Bundle (600+ Courses, 50+ projects)600+ Online Courses | 3000+ Hours | Verifiable Certificates | Lifetime Access
4.6 (3,144 ratings)
Course Price

View Course

Related Courses
CDN Training (2 Courses)OSPF Training Program (2 Courses)Penetration Testing Training Program (2 Courses)

2. Flow Control

The stations through which the transmission happens might have different speed or capacity and this layer ensures that the flow of data works at the same speed for exchanging data. In case the flow is not controlled the recipient buffer might overflow leading to loss of frames.

3. Reliable Delivery

Talking about transmission is incomplete without talking about reliable delivery service and that is where the Data Link layer accomplishes that through the concept of transmissions and acknowledgments. Typically, we encounter the problem of flipped bits of a problem in the transmission. The errors are detected locally, and an attempt is taken to recover the original data along with the error reporting mechanism to the sender.

4. Half-Duplex & Full-Duplex

This characteristic of this is to provide flexibility in the transmission of data. In a full-duplex mode both the nodes would be able to transmit data simultaneously and in a half-duplex mode, only one node would be able to transmit data at the same time.

5. Error Detection

In error detection, Data Link Layers provides the functionality of providing a mechanism for detecting one or more error which might have occurred by signal attenuation or noise. This detection functionality is possible by using error detection bits in the frame which is getting transmitted and based on the bits can perform an error check.

6. Multi-Access

The functionality of multi-access is of high importance as it avoids the collision which might occur due to host on shared link trying to share data. The mechanism of CSMA/CD is deployed for allowing access to shared media among multiple systems.

Advantages of Data Link layer

In the previous sections, we have holistically touched on different aspects of Data Link Layer and dived deep into the importance or feature it provides.

  1. Since the OSI model is very generic, having a standardized model helps in integration without much hassle.
  2. Having hidden protocols allows any protocols implementation and has the flexibility to adapt with many protocols.
  3. It provides a connection through connection-oriented methods as well as connectionless services. Connection services are used when we need high reliability and speed is not of much concern and vice versa requirement for the connectionless transmission.
  4. Since there are so many functionalities around error detection and reliable delivery the messages don’t arrive out of order.

Conclusion

In this article, we have had an overall deep dive in Data Link Layer wherein we started with introducing what it is. In conclusion, it is responsible for the conversion of data streams into signals bit by bit and at the end, the signals are picked and assembled into a recognizable frame format.

Recommended Articles

This is a guide to the Data Link Layer. Here we discuss the Services of Data link layer and important components and proceeding to different features of Data Link Layer. You may also have a look at the following articles to learn more –

  1. What is OSI Model?
  2. OSI Model vs TCP/IP Model
  3. Fish Model
  4. Data Link Layer OSI Model

All in One Software Development Bundle (600+ Courses, 50+ projects)

600+ Online Courses

3000+ Hours

Verifiable Certificates

Lifetime Access

Learn More

0 Shares
Share
Tweet
Share
Primary Sidebar
Network Security Tutorial
  • Protocols
    • What is TCP Protocol
    • What is TCP/IP
    • How do IP Addresses Work?
    • Routing Protocols Types
    • What is Telnet
    • What is TFTP
    • What is DHCP
    • What is SFTP
    • Address Resolution Protocol
    • Internet Control Message Protocol
    • Simple Mail Transfer Protocol
    • Internet Security Protocols
    • SMTP Protocol
    • Types of Networking Protocols
    • User Datagram Protocol
    • Data Link Layer
    • Transport Layer Protocols
    • What Is Networking Protocols
    • TFTP
    • What is ARP
    • Basic Fundamental Of Networking
    • What is IPv4
    • What is IPv6
    • CIFS Protocol
    • What is SMB?
    • What is EIGRP
    • What is LLDP?
  • Basics
    • Security Consultant Definition
    • Security Policies
    • What is Network Security
    • What is Data Security?
    • What is Cryptography
    • Cryptography Techniques
    • Cryptography Tools
    • Data Security Techniques and Privacy
    • Digital Signature Cryptography
    • Java Cryptography
    • Basics of Cybersecurity
    • What is Network Topology
    • Algorithms and Cryptography
    • HTTP Methods
    • Security Technologies
    • Security Architecture
    • Network Topologies
    • What is a Physical Address?
    • Logical Address
    • What is Storage Area Network?
    • Mobile Ad Hoc Network
    • What is Computer Networks?
  • Routing
    • What is Router
    • Types of Routers
    • Dynamic Routing
    • Routing Algorithms
    • Routing Protocol
    • What is Routing
    • What is Static Routing
    • Important Types of DNS Servers (Powerful)
  • Attacks
    • Types of Network Attacks
    • What is Trojan Horse Virus
    • What is DOS
    • Types of DOS Attacks
    • DDos Attack Mitigation
    • Ransomware Attack  
    • Types of Cyber Attack
    • What is a Brute Force Attack
    • What is a Phishing Attack
    • What is Cyber Attack
    • What is DDoS Attack
    • What is Man In The Middle Attack
    • What is Man In The Middle Attack
    • What is Ransomware
    • What is Pharming
    • What is Phishing
    • What is CSRF
    • DNS Amplification Attack
    • Denial of Service Attack
  • Algorithm
    • IDEA Algorithm
    • MD5 Algorithm
    • Symmetric Algorithms
    • Diffie Hellman Key Exchange Algorithm
    • Digital Signature Algorithm
    • Encryption Algorithm
    • Advanced Encryption Standard
    • Asymmetric Encryption
    • ElGamal Encryption
    • HMAC
    • DES Algorithm
    • Brute Force Algorithm
    • SHA Algorithm
    • RSA Algorithm
    • What is Digital Certificate?
    • Certificate Revocation
    • RC5
  • Encryption/ Decryption
    • Encryption process
    • Public Key Encryption
    • Symmetric Key Encryption
    • What is Encryption
    • What is Decryption
    • Types of Cipher
    • Transposition Techniques
    • What is Steganography
    • One Time Pad
    • Steganography Techniques
  • Hosting
    • Types of Web Hosting
    • Free Web Hosting Sites
    • What is Hosting
    • What is VPS Hosting
    • What is Web Hosting
    • Types of Domain
    • VPN Applications for PC
    • Why we use VPN?
    • What is Virtual Host?
  • Firewalls
    • What is a Firewall?
    • Types of Firewalls
    • Firewall Devices
    • Firewall Uses
  • Advanced
    • Cryptosystems
    • Configuring DHCP Server
    • Block Cipher modes of Operation
    • TCP/IP Model
    • Types of Network
    • Types of Network Devices
    • Types of Network Topology
    • Types of Intrusion Prevention System
    • Types of Proxy Servers
    • Types of Websites
    • Types of NAT 
    • Mobile IP
    • Career in Automobile Design
    • What is TFS
    • What is NAT
    • What is OSI Model
    • Data Link Layer OSI Model
    • What is Cross Site Scripting
    • Applications of Sensors
    • ARP Packet Format
    • Asymmetric Information
    • Autoencoders
    • What is FTP Server?
    • IPS Tools
    • IPv4 Header Format
    • IPv6 Header Format
    • Authentication Header
    • Kerberos
    • Network Mapper
    • Network Scanning Tools
    • Network Mapping Tools
    • Network Access Control
    • Network Sniffer
    • Networking Commands
    • Networking Devices
    • Networking Strategies
    • Digital Certificate
    • What is a Digital Signature?
    • Digital Signature Softwares
    • Digital Signature Types
    • Digital Signature vs Digital Certificate
    • PKCS
    • What is FTP
    • FTP Commands
    • What is MIME?
    • What is Smart Card?
    • Networking Ports
    • Mutual Authentication
    • Password Authentication
    • Data Masking 
    • Authentication Tokens
    • Biometric Authentication
    • What is IP?
    • IPSec
    • Secure Electronic Transaction
    • What is CIDR
    • Static Binding and Dynamic Binding
    • What is SSL
    • PKIX
    • Public Key Infrastructure
    • What is Wireshark
    • SNMP Monitoring Tools
    • Network Analysis Tools
    • Server Monitoring Tools
    • Network Discovery Tools
    • Network Management Tool
    • SIEM Tools
    • OSINT Tools
    • Multiple Ping Tool
  • Interview Questions
    • Network Security Interview Questions
    • Networking Interview Questions
    • EIGRP Interview Questions

Related Courses

CDN Training

OSPF Certification Training

Penetration Training Course

Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

© 2020 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you
Book Your One Instructor : One Learner Free Class

Let’s Get Started

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

Special Offer - All in One Software Development Bundle (600+ Courses, 50+ projects) Learn More