L2 - The Data Link Layer
L2 - The Data Link Layer
Application layer
Transport layer
Network layer
LLC sub-layer
Data link layer
MAC sub-layer
Physical layer
Functions of the LLC sublayer
• LLC lies between the network layer and the MAC sub-layer.
• This sub-layer is responsible for identifying protocols and
encapsulating data for transmission.
• The LLC sub-layer performs most functions of the data link
layer and some functions of the network layer such as
sending and receiving frames.
Functions of the LLC sublayer
• When sending a frame, it adds the MAC address and the cyclic
redundancy checksum (CRC) to the original data; it encapsulates the
data into a header and trailer.
• When receiving a frame, it takes apart the frame and performs address
identification and CRC (Decapsulation)
• It also provides flow control, frame sequence check, and error recovery.
• A network card acts as the interface between a computer and the rest of
the devices that form a network.
• The purpose of the network card is to prepare, send, and control data
on the network.
• The orange (10 Mb/s) or red (100 Mb/s) LED indicates network activity
Network interface card (NIC)
• To ensure that the computer and network are compatible, the card
must be suitable for the computer’s data bus architecture, and
have the appropriate type of socket for the cable.
24 bits 24 bits
Serial
Vender Code Number
00e0.fc01.2345 00e0.fc01.2345
Rom
Ethernet Frame format
Ethernet IP TCP User data/padding Ethernet
header header header trailer
14B 20-60B 20B-60B 4B
6B 6B 2B
Represents Length
802.3 Length/T <= 1500
Ethernet frame fields
If the data is less than 46 bytes, add the Pad field to fill
it.
2. FCS: the frame check sum used for correction of
errors in the frame
Data link layer protocols
1. Name any two devices that are used at the datalink layer
2. Explain the mechanisms used by the data link layer for flow control
3. Explain the mechanisms used by the datalink layer to detect and correct
errors.
4. Explain any two link access management techniques used by the data link
layer.
5. With the aid of the diagram, describe the contents of the Ethernet frame.
6. What are the two parts of a MAC address and what do they represent?