Skip to main content

Command Palette

Search for a command to run...

Ethernet Frame and MAC Address

Updated
2 min read
Ethernet Frame and MAC Address
S

Hi there 👋

🌱 Back to basic on Networking, Protocols, and Security

🙉 Hobbies include, Hiking, Sketching, and CTFs

About me

I'm Saket Mahar a web developer, solution architect, blogger, and security enthusiast.

I come from a mixed background being a front-end developer, Network Engineer ( CCNA ) and AWS architect ( AWS ).

I currently live in Gujarat, India and my roots are in Uttrakhand, India.

I write about security incidents, networking, and new tech arising in the market.

Packet Data Units encapsulated from all 7 layers in OSI

Screenshot 2022-07-25 033335.png

The encapsulated packet from the OSI layer is seen as below in Ethernet Frame

Screenshot 2022-07-25 033357.png

1. Preamble

  • Length: 7 bytes 9 ( 56 bits ).
  • It's a series of alternating 1's and 0's = 1010101.
  • synchronizes the receiver block to make them ready to receive data

2. SFD

  • SFD - Start Frame Delimiter.
  • Length: 1 byte ( 8 bits ).
  • Binary form = 10101011.
  • Separates preamble with the rest of the frame.

3. Destination and Source

  • Consist of the destination and source ‘MAC address.
  • MAC = Media Access Control.
  • = 6 bytes (48-bit) address of the physical device

4. Type / Length

  • 2 byte (16-bit) field
  • A value of 1500 or less in this field indicates the LENGTH of the encapsulated packet (in bytes).
  • A value of 1536 or greater in this field indicates the TYPE of the encapsulated packet usually IPv4 or IPv6, and the length is determined via other methods.

5. CRC

  • A cyclic redundancy check (CRC) is an error-detecting code commonly used in digital networks and storage devices to detect accidental changes to raw data.
  • Happens at the Data link layer.
  • AKA FCS ( Frame Check Sequence ).
  • 4 bytes ( 32 bits ) in length.

6. MAC Address

022220_0757_WhatisaMACA22.webp

  • A 6-byte (48-bit) physical address is assigned to the device when it is made.
  • A.K.A. ‘Burned-In Address’ (BIA).
  • Is globally unique
  • The first 3 bytes are the OUI (Organizationally Unique Identifier), which is assigned to the company making the device
  • The last 3 bytes are unique to the device itself

mac-address.jpg

Networking Nerd

Part 2 of 3

In this series, I will share the common concepts of networking that should be known by all. This includes various protocols, how they work, and definition of terms like DHCP, STP, NAT,.etc and more

Up next

OSI vs TCP / IP Suite

1. Why do we need a networking model in the first place 🤔? Networking models provide a defined structure for networking protocols and standards. This then helps to create a common and efficient way to understand the flow of the network hence, creati...