0% found this document useful (0 votes)
10 views2 pages

4 - Layer 2 in Detail

Uploaded by

zubairzaidi303
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)
10 views2 pages

4 - Layer 2 in Detail

Uploaded by

zubairzaidi303
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/ 2

Data Link Layer

Layer 2- Data link layer

Data link layer responsible for makes sure Data is formatted the correct way, reliably frame delivery
within local area network using MAC address and error detection using trailer. Ethernet lives here.
Ethernet switch (layer-2) works at this layer.

Ethernet- Ethernet is protocol lives at layer 1, and layer 2 of the OSI model. At data link layer
ethernet known MAC address (media access control address). Each device has globally unique MAC
address on NIC card (Network interface card). This address stored in permanent read only memory
(ROM) on NIC.

MAC address

- MAC address is written in Hexadecimal language


- MAC address has 12 Hexadecimal digits
- The length of MAC address 6 bytes (48 bits)
- MAC address is divided into 2 parts.
- 1st 3 bytes define OUI (organizationally Unique Identifier) and the 2nd 3 bytes define Vendor
part.

- Check your Pc MAC address uses this command- Ipconfig /all in CLI (command line interface)
Ethernet Frame- A frame contain layer-2 header and payload (data).

Layer 2- header has 7 fields, each fields define data flow at layer 2.

Preamble- this files size is 7 bytes. This field inform the receiving system that a frame is starting and
enable synchronization.

SFD (start frame delimiter)- this field size is 1 byte, indicates that the destination MAC address field
start with next byte.

(DMAC) Destination MAC address- This field size is 6 bytes, indicates destination device’s MAC
address.

SMAC (Source MAC address)- This field size is 6 bytes, indicates source device’s MAC address.

Ether Type- This field size is 2 bytes, defines the layer-3 protocol inside the frame, for example IPv4
and IPv6.

Ether type Protocol

0x0800 IPv4
0x0806 ARP (Address resolution protocol)
0x8100 VLAN-tagged 802.1Q
0x86DD IPv6

Payload- This field contain data that generated by sender. Payload size can be 46 bytes to 1500
bytes.

Trailer- This field size is 4 bytes. This field detect errors in frame during communication using FCS
(frame check sequence)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy