01 Framing-1
01 Framing-1
Unit 2
02/05/2025
Purpose of the Data Link Layer
02/05/2025
Purpose of the Data Link Layer
02/05/2025
Purpose of the Data Link Layer
02/05/2025
Data Link Sublayers
Ethernet Frames
Field Description
Frame Start and Stop Identifies beginning and end of frame
Addressing Indicates source and destination nodes
Type Identifies encapsulated Layer 3 protocol
Control Identifies flow control services
Data Contains the frame payload
Error Detection Used for determine transmission errors
02/05/2025
Data Link Frame
Layer 2 Addresses
•Also referred to as a physical address.
•Contained in the frame header.
•Used only for local delivery of a frame on
the link.
•Updated by each device that forwards the
frame.
Computer Networks
02/05/2025
Data Link Layer
FRAMING
Character-oriented
protocol: In a
character-oriented
protocol, data to be
carried are 8- bit
characters from a
coding system such as
ASCII . The header, A frame in a character-oriented protocol
which normally carries
the source and To separate one frame from the next, an
destination addresses 8-bit (1-byte) flag is added at the
and other control beginning and the end of a frame.
information, and the The flag, composed of protocol-
trailer, which carries dependent special characters, signals the
error detection or start or end of a frame. Figure shows the
error correction format of a frame in a character-oriented
02/05/2025
Computer Networks
protocol
Data Link Layer
FRAMING
Most protocols use a special 8-bit pattern flag 01111110 as the delimiter
to define the beginning and the end of the frame, as shown in Figure.
Data Encapsulation
IEEE 802.3 data encapsulation includes the
following:
1. Ethernet frame - This is the internal structure of the
Ethernet frame.
2. Ethernet Addressing - The Ethernet frame includes
both a source and destination MAC address to deliver the
Ethernet frame from Ethernet NIC to Ethernet NIC on the
same LAN.
02/05/2025
3. Ethernet Error detection - The Ethernet frame includes
Computer Networks
MAC Sublayer
Ethernet Frames
Media Access
• The IEEE 802.3 MAC sublayer includes the specifications
for different Ethernet communications standards over
various types of media including copper and fiber.
• Legacy Ethernet using a bus topology or hubs, is a shared,
half-duplex medium. Ethernet over a half-duplex medium
uses a contention-based access method, carrier sense
multiple access/collision detection (CSMA/CD).
• Ethernet LANs of today use switches that operate in full-
duplex. Full-duplex communications with Ethernet
switches do not require access control through CSMA/CD