Data-Link-Layer-Part2
Data-Link-Layer-Part2
1 ARP
16 bit
Ip add bit Data link layer frame
32bit
Physical
addr 48 bits Data link layer
MAC pdu
Application layer Invers ARP
Transportation layer
data Logical link
Network layer packet control
L2 Data link layer frame
Physical layer Media Access
bit
r 1- exchange frame Control
2- translation frame ARP
3- error detection
Proxy ARP
4- encapsulation /
decapsulation
Why Data Link Control?
How does the data get from this workstation on the desk
here to a server in, say, India?
Packets Packets
(b) 1 1
2 2
1 2 3 21 12 3 21
Medium
2
A B 1
Ethernet II
“Interact with physical layer” Layer IEEE 802.3
+ Media Access
IEEE 802.2 (LLC sub-layer) Control sub-layer
“Interact with Internet layer” )
Physical IEEE 802.3
Layer Physical Layer
802.2 LLC APPLE-
* IPX IP * TALK
Layer 3
Trailer
Formatting Data for Transmission
Shared medium
Methods Access
Token Passing
(1) data
When the channel carries
no signal: BINGO..!
Now I can
I will
transmit
sense
with
the the
whole
channel
bandwidth
to !
Transmitter
transmit
!
Receiver
When the channel carries
a (0) data signal : !..BINGO
Now I can
I will
transmit
sense
with
thethe
whole
channel
! bandwidth
to
transmit
!
Collision
(0) data
Media Access Control Techniques
Token Passing Protocol in Operation
Circulating
Token
A
D B
Server Workstation
C
•No collisions
Workstation
Now let’s see how requests are served
Free Token
+ Data Frame
Thanks
SAMEH
…
I got my
copy.
ALI
Any time
Thanks….
Hey....
ALI. I will
I want
take
Here back
it
to
my data.
goes ALI
transmit
SAMEH
Assume that the time slot is (3) seconds.
(Of course it is too long for a time slot but
Order
it is just an assumption).
1
3
2 3
2
1 3
2
1
Transmitter Transmitter
1 2 3
IDLE
Receiver Receiver
Media Access Control Techniques
Polling
Server
Poll
WS A WS B WSC
Data Delivery
WS : Workstation
Acknowledgement or
Request for
retransmission
Media Access Control Techniques
Polling
1- Polling process is similar to the roll-call performed in class. Just like
the teacher, a controller sends a message to each node in turn.
2-In this, one acts as a primary station(controller) and the others are
secondary stations. All data exchanges must be made through the
controller.
3- The message sent by the controller contains the address of the node
being selected for granting access.
4- Although all nodes receive the message the addressed one responds
to it and sends data if any. If there is no data, usually a “poll
reject”(NAK) message is sent back.
5- Problems include high overhead of the polling messages and high
dependence on the reliability of the controller.
Two types of networks at the data link layer
Typically, local area networks (LANs) are broadcast and wide area
networks (WANs) are point-to-point
32
Point-to-Point (serial) links
Many data link connections are point-
to-point serial links:
–Dial-in or DSL access connects hosts to
access routers
–Routers are connected by Access
high-speed point-to-point links Router
Modems
Dial-Up Access
Here, IP hosts and routers are
connected by a serial cable
Point-to-Point Links
Simplex, Half-Duplex, and Full-Duplex
Transmission
35
Simplex, Half-Duplex, and Full-Duplex
Transmission
Half-Duplex: A half-duplex mechanism involves a shared transmission
medium
–It is analogous to using walkie-talkies where only one side can transmit at a time