Mod1 p3
Mod1 p3
Introduction
To
Data-Link
Layer
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
9-1 INTRODUCTION
9.2
Figure 9.1: Communication at the data-link layer
Only one d/l layer
involved at the source
and destination, but two
d/l layers are involved at
each router
9.3
9.9.1 Nodes and Links
Figure is a simple representation of links and nodes when the path of the data unit is
only six nodes. The first node is the source host, last node is the destination host. The
other four nodes are four routers. 1,3,5 links represent the three LANs and 2,4
represent the two WANs
9.5
Figure 9.3: A communication with only three nodes
The datagram received by d/l layer of source host is encapsulated in a
frame. The frame is logically transported from the source host to the
router. The frame is decapsulate at the d/l layer of the router and
encapsulated at the another frame. The new frame is logically transported
from the router to the destination host. Though only 2 d/l layers are
shown router actually has 3 d/l layers because it is connected to 3
physical links.
9.6
9.9.2 Services
9.7
Services provided by Data link layer
Framing- d/l layer has encapsulate /decapsulate
datagram
Flow control- let the receiving d/l layer drop the frames if
its buffer is full. Or let receiving d/l layer send a feed back to the
sending d/l layer to ask it to stop or slow down. In t/l layer flow
control occurs at higher degree of importance
Error control- A frame is susceptible to error. It needs to
be detected, corrected at Rx and discarded or retransmitted at
Tx. To detect (damaged, lost, duplicate) frames
Congestion control- most d/l layer protocol do not
directly use a congestion control , in general it is considered an
issue in n/w layer or t/l layer because of its end to end nature.
1.8
9.9.3 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.
9.10
Figure 9.3: Dividing the data-link layer into two sublayers
9.11
5-4 LINK-LAYER ADDRESSING
9.12
Figure 2.19 Physical
addresses
2.13
•Logical Address:
A universal addressing system is needed in which each host
can be identified uniquely, regardless of the underlying physical n/w
•Currently a 32 bit address is used
IP
addresses
2.14
9.2.2 ARP
9.15
Figure 9.6: Position of ARP in TCP/IP protocol suite
9.16
Figure 9.7: ARP operation
9.17
Figure 9.8: ARP packet
9.18
Example 9.4
A host with IP address N1 and MAC address L1 has a
packet to send to another host with IP address N2 and
physical address L2 (which is unknown to the first host).
The two hosts are on the same network. Figure 9.9 shows
the ARP request and response messages.
9.19
Figure 9.9: Example 9.4
9.20