0% found this document useful (0 votes)
38 views19 pages

Data Link Layer Functions & Protocols

The document discusses the data link layer of the OSI model. It describes the data link layer as layer 2, which encapsulates packets by adding headers and trailers. The data link layer controls access to the transmission medium and may use different protocols depending on the network environment and topology. Frame formats vary between protocols but generally involve addressing, payload encapsulation, and error checking.

Uploaded by

kevin joshua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views19 pages

Data Link Layer Functions & Protocols

The document discusses the data link layer of the OSI model. It describes the data link layer as layer 2, which encapsulates packets by adding headers and trailers. The data link layer controls access to the transmission medium and may use different protocols depending on the network environment and topology. Frame formats vary between protocols but generally involve addressing, payload encapsulation, and error checking.

Uploaded by

kevin joshua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

AMACC TARLAC

Data link layer

JLD 1
AMACC TARLAC

Data link layer


 OSI model layer 2
 TCP/IP model part of Network Access layer

Application HTTP, FTP,


Data TFTP, SMTP
Presentation stream etc Application
Session
Transport Segment TCP, UDP Transport
Network Packet IP Internet
Data link Frame Ethernet,
WAN
Network Access
Physical Bits technologies
JLD 2
AMACC TARLAC

Functions of data link layer


 Encapsulates packets by adding a frame header and
trailer including appropriate addressing.
 Controls access to the transmission medium.

3
AMACC TARLAC

Hops
 There may be a different layer 2 protocol in use on each
hop of a journey.
 Different media, different types of link, different
bandwidths, LAN/WAN affect the choice of protocol.
 Different protocols have different frames.
 The router removes the old frame and adds a new
header and trailer for the next hop.

4
AMACC TARLAC

Sublayers
Sets up the frame
header and trailer
Network
to encapsulate the
packet.
Logical link Identifies network
control layer protocol.
Data link
Media access Adds layer 2
control address.
Marks frame start
and end.
Physical

5
AMACC TARLAC

Standards
Institute of Electrical and Electronics Engineers
 IEEE 802.2 Logical link control
 IEEE 802.3 Ethernet
 IEEE 802.5 Token ring
 IEEE 802.11 Wi-fi
International Telecommunication Union (ITU)
 Various WAN standards: HDLC, ISDN, Frame relay

6
AMACC TARLAC

Point to point link

 Only two devices on the network


 Full duplex: both can send at the same time, no problem
with media access
 Half duplex: data can only travel one way at a time so
one device can send at a time. Simple media access
control.

7
AMACC TARLAC

Shared medium

Star with hub


Physical bus

 Needs media access control.


 If there is no control there will be many collisions and the
frames will be destroyed.

8
AMACC TARLAC

Contention based media access


 Non-deterministic, first come first served.
 Each device “listens” and sends when the medium
seems to be clear.
 Low overhead.
 Collisions occur.
 Need a way of re-sending lost frames.
 Becomes inefficient on large networks.
 E.g. traditional Ethernet.

9
AMACC TARLAC

Variation on contention based


 Traditional Ethernet uses CSMA/CD (collision detection):
collisions are allowed and detected, frames sent again.
 Wi-fi uses CSMA/CA (collision avoidance): when the
medium is clear, host sends signal to say it is about to
use the medium. It then sends.

10
AMACC TARLAC

Different environments
 Fragile environment e.g. satellite link – frames are likely
to be lost – need large overhead of control mechanisms
to make sure data arrives.
 Protected environment e.g. modern LAN – frames not
often lost – do not need such elaborate control
mechanisms
 Therefore need different layer 2 protocols

11
AMACC TARLAC

Addressing needs
 Point to point link – only one possible destination.
Minimal addressing.

 Multi-access network – need full addressing system.

 Therefore need different layer 2 protocols.

12
AMACC TARLAC

Layer 2 frame format


 All protocols have the same general form but there are
variations.

13
AMACC TARLAC

PPP frame
 Point to point links. Minimal addressing. Control
mechanisms.

Start Minimal Packet Check


address and
stop

14
AMACC TARLAC

Ethernet frame
 Multi-access links. Full addressing.
No control field.
 Same for all Ethernet types/bandwidths.

Timing Addresses Layer 3 Check


48 bits Packet and
and protocol
start each stop

15
AMACC TARLAC

802.11 Wi-Fi
 LAN wireless protocol
 Fragile environment – lots of interference, risk of lost
frames, contention.
 Every transmission needs to be acknowledged.
 No acknowledgement – re-send frame.
 Lots of control mechanisms in frame.

16
AMACC TARLAC

End to end
 PC sends packet to server
 Packet header has PC IP address and source and
server IP address as destination.
 Frame header has PC MAC address as source and
router MAC address as destination.

17
AMACC TARLAC

JLD 18
AMACC TARLAC

The End

JLD 19

You might also like