Chapter-9 Introduction to Data-link Layer
Chapter-9 Introduction to Data-link Layer
University
INTRODUCTION TO
D ATA - L I N K L AY E R
Chapter - 9
2
CONTENTS
o Introduction to Data-Link Layers
o Services
o Link-Layer Addressing
o Network Address
Presented By Aung
Yell Htwe
5
I N T R O D U C T I O N T O D ATA -
L I N K L AY E R
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.
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.
SERVICES
Presented By Aung
Paing Thein
11
SERVIC
ES
The datalink 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. When a packet
is travelling in the Internet, the data-link layer of a node (host or
router) is responsible for delivering a datagram to the next node in
the path.
For this purpose, the 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.
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.
The reason is that each link may be using a different protocol with a
different frame format. Even if one link and the next are using the
same protocol, encapsulation and decapsulation are needed because
the link-layer addresses are normally different.
12 A communication with only three
nodes
Two Sublayers
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).
LAN protocols actually use the
same strategy.
The data link control sublayer deals with all issues common to both
point-to-point and broadcast links.
Connectionless Internetwork
In connectionless Internetwork such as the Internet, datagrams
can’t reach its destination by using only IP Address.
Because datagrams from the same source to the same
18
Importance of IP Address
IP addresses in the datagram should not be change
Changing the destination IP address prevents the packet
from reaching its destination.
Changing the source IP address disrupts the
communication between the destination host or a router
with the source.
Source and destination IP addresses define the two
endpoints but cannot define which specific links the
19
N E T W O R K A D D R E SS E S
A network address is a unique identifier assigned to a
device connected to a network. This address allows
devices to find and communicate with each other.
1. IP Addresses(IPV4/IPV6)[32bits/128bits]
2. MAC Addresses
23
1. IP Addresses(Internet Protocol Address)
It’s a numerical label assigned to every device
connected to a network that uses the Internet
Protocol.
e.g.192.168.1.1(dotted decimal notation)
Addresses
MAC Address (Media Access Control Address): This is a
hardware address
assigned to every network interface card (NIC).
It's unique to each device and can't be never changed.
address to
1 . U N I C A S T A D D R E SS
Unicast is one-to-one communication.
unicast address.
specific receiver.
KEY CHARACTERISTICS
Use
•One-to-many delivery: Data is sent to multiple cases:
connected to a network.
There are primarily two types.
1. Local Broadcast(Limited broadcast)
e.g. In IPv4,the local broadcast address is typically
255.255.255.255.
2. Directed Broadcast
e.g. While less common in IPv4,it is more prevalent in IPv6.
34
PURPOSE OF
B R OA D C A S T A D D R E SS
o Discovery: Protocols like ARP(Address Resolution
Protocol)use broadcasts to find MAC address of a device
based on its IP address.
o Network Management: Administrators use broadcasts to
send configuration updates or notifications to all devices
.
o Specific applications: Some applications like file sharing
Example:
or network discovery tools utilize broadcasts.
•Network address: 192.168.1.0
•Subnet mask: 255.255.255.0
•Broadcast address: 192.168.1.255
35
Comparison
Table
Feature Unicast Multicast Broadcast
Multiple
Receiver One All
(interested)
In summary:
Unicast is the most common and efficient method for
point-to-point communication.
Multicast is ideal for distributing data to a specific
group of interested recipients.
Broadcast is generally less efficient , limited in sending
data or information
but most commonly used it everywhere broadly.
A D D R E SS R E S O LU T I O N
PROTOCOL(ARP)
Presented By Swan
Naing Zayar
37
Address Resolution
Protocol (ARP) When sending an IP datagram, a
node needs the link-layer address
of the next node to move the frame
through the network.
To find another device's physical All devices receive the ARP request,
address on the same network, a but only the target replies with its IP
device sends a broadcast ARP and physical address.
request
Flow of activities at
router R1