01 Framing-1
01 Framing-1
01 Framing-1
Unit 2
04/01/2024
Purpose of the Data Link Layer
04/01/2024
Purpose of the Data Link Layer
04/01/2024
Purpose of the Data Link Layer
04/01/2024
Data Link Sublayers
Ethernet Frames
Data is encapsulated by the data link layer with a header and a trailer to
form a frame.
A data link frame has three parts:
•Header
•Data
•Trailer
The fields of the header and trailer vary according to data link layer
protocol.
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
04/01/2024
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
04/01/2024
Data Link Layer
FRAMING
The data link layer needs to pack bits into frames, so that each
frame is distinguishable from another. Our postal system practices
a type of 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, which normally
carries the source and A frame in a character-oriented protocol
destination addresses and
other control information, To separate one frame from the next, an 8-bit (1-
and the trailer, which byte) flag is added at the beginning and the end of
carries error detection or a frame.
error correction redundant The flag, composed of protocol-dependent special
bits, are also multiples of 8 characters, signals the start or end of a frame.
bits. Figure shows the format of a frame in a character-
oriented protocol 04/01/2024
Computer Networks
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.
• The minimum Ethernet frame size is 64 bytes and the maximum is 1518 bytes.
The preamble field is not included when describing the size of the frame.
• Any frame less than 64 bytes in length is considered a “collision fragment” or
“runt frame” and is automatically discarded. Frames with more than 1500 bytes of
data are considered “jumbo” or “baby giant frames”.
• If the size of a transmitted frame is less than the minimum, or greater than the
maximum, the receiving device drops the frame. Dropped frames are likely to be
the result of collisions or other unwanted signals. They are considered invalid.
Jumbo frames are usually supported by most Fast Ethernet and Gigabit Ethernet
switches and NICs.
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.
3. Ethernet Error detection - The Ethernet frame includes a frame check
sequence (FCS) trailer used for error detection.
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