×

Ethernet Frame Format

What is Ethernet?

As we know in computer networking, LAN (Local Area Network) is used to connect devices in limited geographical areas like schools or a building.LAN uses different topologies (arrangement of nodes in a network) like BUS, STAR, MESH, etc.

Ethernet is the most popular technology used in LAN. It is based upon IEEE (Institute of Electrical and Electronics Engineers) standards. Ethernet is based on IEEE 802.11 standard.

It uses BUS topology in LAN. The reason Ethernet is most popular is because it is quite easy to implement this, and it is also low costly.

In computer networking, there are 7 layers of communication on a network as defined in OSI (Open System Interconnection) model:

  1. Physical layer
  2. Data link layer
  3. Network layer
  4. Transport layer
  5. Session layer
  6. Presentation layer
  7. Application layer

Ethernet is used in physical and data link layers. In the physical layer data is transmitted in the form of 0s and 1s (stream of bits).In the data link layer when data is received, then it adds some extra bits to make sure data will reach the correct node and be error-free. For this, it adds the MAC (Media Access Control), often known as the physical address, of the sender and receiver in the data. But data is converted in the frames then it adds these extra bits.

As the data link layer has the work to add extra bits that is why Ethernet is mostly used in DLL.

Ethernet frame format is a predefined format by IEEE to add extra bits in a specific place with original data.

This frame is divided into 7 sections:

  1. Preamble
  2. SFD
  3. Destination address
  4. Source address
  5. Length
  6. Data
  7. CRC

Ethernet Frame Format

7 bytes1 byte6 bytes6 bytes2 bytes(46-1500 bytes)4 bytes
PreambleSFDDestination AddressSource AddressLengthDataCRC

1. Preamble

The size of the preamble section is 7 bytes or 56 bits. This is the indication that the frame is starting. Basically 0s and 1s are put in this section at alternative places (0101010….). The reason the preamble is used is that during the transmission of data, if some data is lost then, original data will not be lost as we have a protective section of the preamble.

So it is a protective section attached at the starting of original data to avoid them from loss of a single bit.

It also works as an indication for the receiver that the frame has started and the original message is coming, so hold the bits.

2. SFD

 SFD is also known as Start of Frame Delimiter. This section is of 1byte or 8 bits consisting of alternative bits of 0s and 1s starting from 1, but the last bit is altered.

SFD: 10101011

The main objective of the SFD section is to indicate at the receiving end that the frame is just going to start, and the next bits are the address of the destination.

3. Destination address

This section is of size 6 byte or 48 bits long. Here MAC address of receiving node or targeted device is put. It also makes sure that if the MAC address is wrong, then the receiving device will discard the data.

4. Source address

It is also the 6 bytes-long section.MAC address (Media Access Control) of the source node is put in it. With this section, the receiving device can easily identify the source node.

5. Length

It is a 2 bytes or 16-bit long section which contains the length of the whole Ethernet frame. The minimum value is 0, and the maximum value is 65534, although we can have a maximum 1500 size of Ethernet format.

It also describes which IP version is present. If it is 0x800, then IPv4 and if it is 0x86dd, then it is IPv6.

6. Data

This section is the most important section because it contains the actual message bits which we want to transfer over the network. The data in this section is called payload. 46 bytes is the minimum size and the maximum possible size is 1500 bytes of the data.If the data is less than 46 bytes, then 0’s are inserted before the data to make its size 46 bytes.

7. CRC

It is 4 bytes long or 32 bits long section which is also called Cyclic Redundancy Check. It contains a specific hashcode, and if at the receiving end hashcode is changed, it means our data is also changed over the path. So it helps to identify whether data is corrupted or not.

If we calculate the size of Ethernet format, then the Minimum size is 64 bytes for 46 bytes of payload if we exclude the preamble and SFD.

Maximum is 1518 bytes for 1500 bytes of payload.


Related Topics

Control Unit Organization

Control Unit Organization The Control Unit is the unit in the CPU, which controls the various components like input  & output devices, logic unit and memory. The Control Unit is the...

7 minutes read.

Digital Number System

Digital Number System: The computer understands digital language only. Many number systems are used in digital technology. The most common are Decimal, Binary, Octal and Hexadecimal number systems. Types of the...

7 minutes read.

Data Path, ALU and Control Unit

Data Path, ALU(Arithmetic Logic Unit) and Control Unit What is the Data path? Suppose any data processing operation should be performed in the CPU like transferring the content of register from one...

5 minutes read.

Instruction Cycle: Computer Organization and Architecture

What is an effective Address? “Effective address is the address of operand in a computation-type instruction.” Computation type instructions are like ADD, SUB, MOV, OR, AND, etc., which require operand to...

4 minutes read.

Micro-Operations

Micro-Operations If CPU wants to perform any operation, suppose execution of only one instruction or even break it down one particular execution phase (like fetch instruction, write back, decode, operand fetch...

9 minutes read.

Addressing mode in 8085 microprocessor

What is a Microprocessor? Microprocessor is a unit which is able to perform arithmetic and logical operations and is built on a single chip. The 8085 microprocessor is built by Intel which...

4 minutes read.

Fixed and Floating-Point Number

Fixed and Floating-Point Number: In digital technology, data is stored in memory registers with binary bits 0’s and 1’s because the computer only understands binary language. When we enter data...

6 minutes read.

8085 Arithmetic Instructions

Arithmetic instructions are a type of instruction in a computer's instruction set that perform arithmetic operations on data. These operations can include addition, subtraction, multiplication, and division. Arithmetic instructions can...

4 minutes read.

8255 Microprocessor Operating Modes

8255 microprocessor was invented by intel in the year 1980s. 8255 microprocessor is a general-purpose microprocessor that can be programmed. 8255 is mostly used as an interface between devices like...

3 minutes read.

Computer Organization and Architecture Data Formats

Data Formats In the digital world, everything is based on digits. In every method, the calculation is processed on the digits, and most importantly, the computer only understands the binary language...

6 minutes read.

Local Broadcast Address and loopback address

In computer networking, if you send the data from one source to another source or group of sources in the form of packets, then this is called casting. We can categorize...

3 minutes read.

BCD to 7 Segment Decoder

What is BCD? BCD is called Binary Coded Decimal. As you know there are a lot of forms in which we can represent the number like Binary, decimal, hexadecimal, and octal...

3 minutes read.

Basic Terminologies Related to COA

Some Basic Terminologies Related to COA Computer organization and architecture is the detailed study of the internal components of the computer with their functionality. It describes how components arranged together and...

7 minutes read.

Machine Instructions

What is a Digital Computer? A computer that takes input in a binary form and produces output in binary form. The question arises of what kind of input the computer takes...

4 minutes read.

8085 instructions set

Introduction: In the computer, the user sends the data. The computer can use data and it also process the data. After the processing, send the result to the user. The specific...

10 minutes read.

IEEE Standard 754 Floating Point Numbers

Floating Point Representation: IEEE- 754 There were many problems in the conventional representation of floating-point notation like we could not express 0(zero), infinity number. To solve this, scientists have given a...

8 minutes read.

CPU Registers

CPU Registers Within the CPU, we have small- small storage units called registers. If we are executing a certain program within the CPU, there's a need to store that program content,...

11 minutes read.

Pipelining: Computer Organization and Architecture

Introduction to Pipelining Before learning pipeline, we have to understand about the Parallel processing. Parallel processing is the processing of data simultaneously. There are three techniques of parallel processing. Types of Processing: Vector ProcessingArray...

7 minutes read.

COA: Interrupt and its types

Introduction: In general terms, the word interrupt means to stop the progress of ongoing work in between or to break the continuation of the work. In early digital computing, the...

5 minutes read.

Convert a number from base 2 to base 6

Base 2 Base 2 is the format where you can represent any number with just two values which are 0 and 1. With the help of 0s and 1s, we can...

4 minutes read.