SlideShare a Scribd company logo
1 of 26
RAMCO INSTITUTE OF TECHNOLOGY
Introduction
• The Internet is a combination of networks
glued together by connecting devices
(routers or switches). If a packet is to
travel from a host to another host, it needs
to pass through these networks.
Nodes and Links
• Communication at the data-link layer is
node-to-node.
• A data unit from one point in the Internet
needs to pass through many networks
(LANs and WANs) to reach another point.
Theses LANs and WANs are connected by
routers.
• It is customary to refer to the two end hosts
and the routers as nodes and the networks
in between as links.
Nodes and Links
Services
• The data-link layer is located between the
physical and the network layers.
• The data-link layer provides services to
the network layer; it receives services from
the physical layer
• The duty scope of the data-link layer is
node-to-node.
• Data-link layer of the sending node needs
to encapsulate the datagram received from
the network in a frame, and the data-link
layer of the receiving node needs to
decapsulate the datagram from the frame.
• In other words, the data-link layer of the
source host needs only to encapsulate, the
data-link layer of the destination host needs
to decapsulate, but each intermediate node
needs to both encapsulate and decapsulate
Framing
• First service provided by the data-link layer
is framing. The data-link layer at each node
needs to encapsulate the datagram (packet
received from the network layer) in a frame
before sending it to the next node
Flow control
• Flow control is a technique that allows two
stations working at different speeds to
communicate with each other.
• It is a set of measures taken to regulate
the amount of data that a sender sends so
that a fast sender does not overwhelm a
slow receiver.
Error Control
• Error control in data link layer is the process
of detecting and correcting data frames that
have been corrupted or lost during transmission.
..
• Data link layer follows a technique to detect
transit errors and take necessary actions, which
is retransmission of frames whenever error is
detected or frame is lost.
Two Categories of Links
• Although two nodes are physically
connected by a transmission medium such
as cable or air, we need to remember that
the data-link layer controls how the
medium is used.
• We can have a data-link layer that uses the
whole capacity of the medium; we can also
have a data-link layer that uses only part of
the capacity of the link.
• In other words, we can have a point-to-
point link or a broadcast link.
• To better understand the functionality of
and the services provided by the link layer,
we can divide the data-link layer into two
sublayers:
• Data link control (DLC) and
• Media access control (MAC).
Two Sub layers
LINK-LAYER ADDRESSING
• we cannot make a datagram reach its
destination using only IP addresses.
• The source and destination IP addresses define
the two ends but cannot define which links the
packet should pass through.
• so we need link layer address
• IP addresses in a datagram should not be
changed.
• If the destination IP address in a datagram
changes, the packet never reaches its
destination;
• if the source IP address in a datagram changes,
the destination host or a router can never
communicate with the source if a response
needs to be sent back or an error needs to be
reported back to the source
Three Types of addresses
• Link-layer protocols define three types of
addresses:
• Unicast, Multicast, and Broadcast.
• Unicast Address
• Each host or each interface of a router is
assigned a unicast address.
• Unicasting means one-to-one communication.
• Multicast Address: Some link-layer protocols
define multicast addresses. Multicasting
means one-to-many communication.
• Broadcast Address
• Some link-layer protocols define a broadcast
address. Broadcasting means one-to-all
communication. A frame with a destination
broadcast address is sent to all entities in
the link
Address Resolution Protocol
• Anytime a node has an IP datagram to send
to another node in a link, it has the IP
address of the receiving node.
• However, the IP address of the next node is
not helpful in moving a frame through a link;
we need the link-layer address of the next
node. This is the time when the Address
Resolution Protocol (ARP) becomes helpful.
Position of ARP in TCP/IP
protocol suite
• Anytime a host or a router needs to find the link-
layer address of another host or router
in its network, it sends an ARP request packet.
• The packet includes the link-layer and IP addresses
of the sender and the IP address of the receiver.
• Because the sender does not know the link-layer
address of the receiver, the query is broadcast over
the link using the link-layer broadcast address
ARP operation
• Every host or router on the network
receives and processes the ARP request
packet, but only the intended recipient
recognizes its IP address and sends back
an ARP response packet.
• The response packet contains the
recipient’s IP and link-layer addresses.
The packet is unicast directly to the node
that sent the request packet
ARP packet
• The hardware type field defines the type of
the link-layer protocol; Ethernet is given the
type 1.
• The protocol type field defines the network-
layer protocol: IPv4 protocol is (0800)16.
• The source hardware and source protocol
addresses are variable-length fields
defining the link-layer and network-layer
addresses of the sender

More Related Content

What's hot

What's hot (20)

Layer 2 switching
Layer 2 switchingLayer 2 switching
Layer 2 switching
 
Ipv4 presentation
Ipv4 presentationIpv4 presentation
Ipv4 presentation
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
BASICS OF ROUTING IN NETWORKS
BASICS OF ROUTING IN NETWORKSBASICS OF ROUTING IN NETWORKS
BASICS OF ROUTING IN NETWORKS
 
PPP (Point to Point Protocol)
PPP (Point to Point Protocol)PPP (Point to Point Protocol)
PPP (Point to Point Protocol)
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
Tcp
TcpTcp
Tcp
 
IP Address
IP AddressIP Address
IP Address
 
Unit 2 data link control
Unit 2 data link controlUnit 2 data link control
Unit 2 data link control
 
TCP/IP Protocol Architeture
TCP/IP Protocol ArchitetureTCP/IP Protocol Architeture
TCP/IP Protocol Architeture
 
NETWORK LAYER - Logical Addressing
NETWORK LAYER - Logical AddressingNETWORK LAYER - Logical Addressing
NETWORK LAYER - Logical Addressing
 
Subnetting supernetting
Subnetting supernettingSubnetting supernetting
Subnetting supernetting
 
Computer network switches & their structures
Computer network switches & their structuresComputer network switches & their structures
Computer network switches & their structures
 
Switching
SwitchingSwitching
Switching
 
Tcp ip
Tcp ipTcp ip
Tcp ip
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Icmp
IcmpIcmp
Icmp
 
Distance Vector Routing Protocols
Distance Vector Routing ProtocolsDistance Vector Routing Protocols
Distance Vector Routing Protocols
 

Similar to Introduction to data link layer

Similar to Introduction to data link layer (20)

CN Unit 2 - cs8591.pptx
CN Unit 2 - cs8591.pptxCN Unit 2 - cs8591.pptx
CN Unit 2 - cs8591.pptx
 
CS8591 Computer Networks - Unit II
CS8591 Computer Networks - Unit II CS8591 Computer Networks - Unit II
CS8591 Computer Networks - Unit II
 
lecture 2.pptx
lecture 2.pptxlecture 2.pptx
lecture 2.pptx
 
CN Unit 2 PPT.pptx
CN Unit 2 PPT.pptxCN Unit 2 PPT.pptx
CN Unit 2 PPT.pptx
 
Module_3_Part_3.pptx
Module_3_Part_3.pptxModule_3_Part_3.pptx
Module_3_Part_3.pptx
 
UNIT-3 network security layers andits types
UNIT-3 network security layers andits typesUNIT-3 network security layers andits types
UNIT-3 network security layers andits types
 
Connecting devices
Connecting devicesConnecting devices
Connecting devices
 
Network hardware essentials Lec#3
Network hardware essentials Lec#3Network hardware essentials Lec#3
Network hardware essentials Lec#3
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
TCPIP SLIDES.ppt
TCPIP SLIDES.pptTCPIP SLIDES.ppt
TCPIP SLIDES.ppt
 
CN UNIT III.pptx
CN UNIT III.pptxCN UNIT III.pptx
CN UNIT III.pptx
 
Networking and Internetworking Devices
Networking and Internetworking DevicesNetworking and Internetworking Devices
Networking and Internetworking Devices
 
27 Switching.pptx
27 Switching.pptx27 Switching.pptx
27 Switching.pptx
 
Network layer
Network layerNetwork layer
Network layer
 
TCP /IP
TCP /IPTCP /IP
TCP /IP
 
Routing and switching
Routing and switchingRouting and switching
Routing and switching
 
08 coms 525 tcpip - tcp 1
08   coms 525 tcpip - tcp 108   coms 525 tcpip - tcp 1
08 coms 525 tcpip - tcp 1
 
Networking essentials lect1
Networking essentials lect1Networking essentials lect1
Networking essentials lect1
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 

Introduction to data link layer

  • 1. RAMCO INSTITUTE OF TECHNOLOGY
  • 2. Introduction • The Internet is a combination of networks glued together by connecting devices (routers or switches). If a packet is to travel from a host to another host, it needs to pass through these networks.
  • 3.
  • 4. Nodes and Links • Communication at the data-link layer is node-to-node. • A data unit from one point in the Internet needs to pass through many networks (LANs and WANs) to reach another point. Theses LANs and WANs are connected by routers. • It is customary to refer to the two end hosts and the routers as nodes and the networks in between as links.
  • 6. Services • The data-link layer is located between the physical and the network layers. • The data-link layer provides services to the network layer; it receives services from the physical layer • The duty scope of the data-link layer is node-to-node.
  • 7. • Data-link layer of the sending node needs to encapsulate the datagram received from the network in a frame, and the data-link layer of the receiving node needs to decapsulate the datagram from the frame. • In other words, the data-link layer of the source host needs only to encapsulate, the data-link layer of the destination host needs to decapsulate, but each intermediate node needs to both encapsulate and decapsulate
  • 8.
  • 9. Framing • First service provided by the data-link layer is framing. The data-link layer at each node needs to encapsulate the datagram (packet received from the network layer) in a frame before sending it to the next node
  • 10. Flow control • Flow control is a technique that allows two stations working at different speeds to communicate with each other. • It is a set of measures taken to regulate the amount of data that a sender sends so that a fast sender does not overwhelm a slow receiver.
  • 11. Error Control • Error control in data link layer is the process of detecting and correcting data frames that have been corrupted or lost during transmission. .. • Data link layer follows a technique to detect transit errors and take necessary actions, which is retransmission of frames whenever error is detected or frame is lost.
  • 12. Two Categories of Links • Although two nodes are physically connected by a transmission medium such as cable or air, we need to remember that the data-link layer controls how the medium is used. • We can have a data-link layer that uses the whole capacity of the medium; we can also have a data-link layer that uses only part of the capacity of the link. • In other words, we can have a point-to- point link or a broadcast link.
  • 13. • To better understand the functionality of and the services provided by the link layer, we can divide the data-link layer into two sublayers: • Data link control (DLC) and • Media access control (MAC).
  • 15. LINK-LAYER ADDRESSING • we cannot make a datagram reach its destination using only IP addresses. • The source and destination IP addresses define the two ends but cannot define which links the packet should pass through. • so we need link layer address
  • 16. • IP addresses in a datagram should not be changed. • If the destination IP address in a datagram changes, the packet never reaches its destination; • if the source IP address in a datagram changes, the destination host or a router can never communicate with the source if a response needs to be sent back or an error needs to be reported back to the source
  • 17.
  • 18. Three Types of addresses • Link-layer protocols define three types of addresses: • Unicast, Multicast, and Broadcast. • Unicast Address • Each host or each interface of a router is assigned a unicast address. • Unicasting means one-to-one communication.
  • 19. • Multicast Address: Some link-layer protocols define multicast addresses. Multicasting means one-to-many communication. • Broadcast Address • Some link-layer protocols define a broadcast address. Broadcasting means one-to-all communication. A frame with a destination broadcast address is sent to all entities in the link
  • 20. Address Resolution Protocol • Anytime a node has an IP datagram to send to another node in a link, it has the IP address of the receiving node. • However, the IP address of the next node is not helpful in moving a frame through a link; we need the link-layer address of the next node. This is the time when the Address Resolution Protocol (ARP) becomes helpful.
  • 21. Position of ARP in TCP/IP protocol suite
  • 22. • Anytime a host or a router needs to find the link- layer address of another host or router in its network, it sends an ARP request packet. • The packet includes the link-layer and IP addresses of the sender and the IP address of the receiver. • Because the sender does not know the link-layer address of the receiver, the query is broadcast over the link using the link-layer broadcast address
  • 24. • Every host or router on the network receives and processes the ARP request packet, but only the intended recipient recognizes its IP address and sends back an ARP response packet. • The response packet contains the recipient’s IP and link-layer addresses. The packet is unicast directly to the node that sent the request packet
  • 26. • The hardware type field defines the type of the link-layer protocol; Ethernet is given the type 1. • The protocol type field defines the network- layer protocol: IPv4 protocol is (0800)16. • The source hardware and source protocol addresses are variable-length fields defining the link-layer and network-layer addresses of the sender