The Wayback Machine - https://web.archive.org/web/20241008145849/https://www.geeksforgeeks.org/ethernet-frame-format/
Open In App

Ethernet Frame Format

Last Updated : 27 Sep, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

The basic frame format which is required for all MAC implementation is defined in IEEE 802.3 standard. Though several optional formats are being used to extend the protocol’s basic capability. Ethernet frame starts with the Preamble and SFD, both work at the physical layer. The ethernet header contains both the Source and Destination MAC address, after which the payload of the frame is present. The last field is CRC which is used to detect the error. Now, let’s study each field of basic frame format.

Ethernet (IEEE 802.3) Frame Format

Ethernet Frame Format

  1. PREAMBLE: Ethernet frame starts with a 7-Bytes Preamble. This is a pattern of alternative 0’s and 1’s which indicates starting of the frame and allow sender and receiver to establish bit synchronization. Initially, PRE (Preamble) was introduced to allow for the loss of a few bits due to signal delays. But today’s high-speed Ethernet doesn’t need a Preamble to protect the frame bits. PRE (Preamble) indicates the receiver that frame is coming and allow the receiver to lock onto the data stream before the actual frame begins.
  2. Start of frame delimiter (SFD): This is a 1-Byte field that is always set to 10101011. SFD indicates that upcoming bits are starting the frame, which is the destination address. Sometimes SFD is considered part of PRE, this is the reason Preamble is described as 8 Bytes in many places. The SFD warns station or stations that this is the last chance for synchronization.
  3. Destination Address: This is a 6-Byte field that contains the MAC address of the machine for which data is destined.
  4. Source Address: This is a 6-Byte field that contains the MAC address of the source machine. As Source Address is always an individual address (Unicast), the least significant bit of the first byte is always 0.
  5. Length: Length is a 2-Byte field, which indicates the length of the entire Ethernet frame. This 16-bit field can hold a length value between 0 to 65535, but length cannot be larger than 1500 Bytes because of some own limitations of Ethernet.
  6. Data: This is the place where actual data is inserted, also known as Payload . Both IP header and data will be inserted here if Internet Protocol is used over Ethernet. The maximum data present may be as long as 1500 Bytes. In case data length is less than minimum length i.e. 46 bytes, then padding 0’s is added to meet the minimum possible length.
  7. Cyclic Redundancy Check (CRC): CRC is 4 Byte field. This field contains a 32-bits hash code of data, which is generated over the Destination Address, Source Address, Length, and Data field. If the checksum computed by destination is not the same as sent checksum value, data received is corrupted.
  8. VLAN Tagging: The Ethernet frame can also include a VLAN (Virtual Local Area Network) tag, which is a 4-byte field inserted after the source address and before the EtherType field. This tag allows network administrators to logically separate a physical network into multiple virtual networks, each with its own VLAN ID.
  9. Jumbo Frames: In addition to the standard Ethernet frame size of 1518 bytes, some network devices support Jumbo Frames, which are frames with a payload larger than 1500 bytes. Jumbo Frames can increase network throughput by reducing the overhead associated with transmitting a large number of small frames.
  10. Ether Type Field: The EtherType field in the Ethernet frame header identifies the protocol carried in the payload of the frame. For example, a value of 0x0800 indicates that the payload is an IP packet, while a value of 0x0806 indicates that the payload is an ARP (Address Resolution Protocol) packet.
  11. Multicast and Broadcast Frames: In addition to Unicast frames (which are sent to a specific destination MAC address), Ethernet also supports Multicast and Broadcast frames. Multicast frames are sent to a specific group of devices that have joined a multicast group, while Broadcast frames are sent to all devices on the network.
  12. Collision Detection: In half-duplex Ethernet networks, collisions can occur when two devices attempt to transmit data at the same time. To detect collisions, Ethernet uses a Carrier Sense Multiple Access with Collision Detection (CSMA/CD) protocol, which listens for activity on the network before transmitting data and backs off if a collision is detected.

Note: Size of frame of Ethernet IEEE 802.3 varies 64 bytes to 1518 bytes including data length (46 to 1500 bytes).

Understanding the Ethernet frame format is vital for networking. For more insights on network layers and protocols, the GATE CS Self-Paced Course dives deep into Ethernet and other network components.

Brief Overview on Extended Ethernet Frame (Ethernet II Frame)

Standard IEEE 802.3 basic frame format is discussed above in detail. Now let’s see the extended Ethernet frame header, using which we can get a Payload even larger than 1500 Bytes. 

Extended Ethernet Frame

DA [Destination MAC Address]: 6 bytesSA [Source MAC Address]: 6 bytesType [0x8870 (Ethertype)]: 2 bytesDSAP [802.2 Destination Service Access Point] : 1 byteSSAP [802.2 Source Service Access Point] : 1 byteCtrl [802.2 Control Field] : 1-byteData [Protocol Data] : > 46 bytesFCS [Frame Checksum]: 4 bytes Although length field is missing in Ethernet II frame, the frame length is known by virtue of the frame being accepted by the network interface. GATE CS Corner Questions Practicing the following questions will help you test your knowledge. All questions have been asked in GATE in previous years or in GATE Mock Tests. It is highly recommended that you practice them.

  1. GATE CS 2007, Question 85
  2. GATE CS 2005, Question 74
  3. GATE CS 2004, Question 90
  4. GATE IT 2005, Question 27
  5. GATE CS 2016 (Set 2), Question 34

Advantages

  • Simple Format: The Ethernet frame format is simple and easy to understand, making it easy to implement and troubleshoot Ethernet networks.
  • Flexibility: The Ethernet frame format is flexible and can accommodate different data sizes and network topologies, making it suitable for a wide range of network applications.
  • Widely Adopted: The Ethernet frame format is widely adopted and supported by a large number of vendors and network devices, ensuring compatibility and interoperability.
  • Error Detection: The Ethernet frame format includes a cyclic redundancy check (CRC) field for error detection, which helps to ensure data integrity during transmission.
  • Support for VLANs: The Ethernet frame format supports virtual local area networks (VLANs), which allows network administrators to logically partition a physical LAN into multiple smaller virtual LANs for improved network management and security.

Disadvantages

  • Limited Frame Size: The Ethernet frame format has a maximum frame size of 1500 bytes, which can limit the amount of data that can be transmitted in a single frame and can result in increased overhead due to fragmentation and reassembly of larger packets.
  • Broadcast Storms: Ethernet networks use broadcast transmissions to send frames to all devices on the network, which can lead to broadcast storms if too many devices send broadcast frames simultaneously, resulting in network congestion and performance issues.
  • Security Vulnerabilities: The Ethernet frame format does not include built-in security features, making Ethernet networks vulnerable to security threats such as eavesdropping and spoofing .
  • Limited Speed: Ethernet networks have a limited maximum speed, which may not be sufficient for high-speed applications or large-scale networks.
  • Limited Distance: The maximum distance between two devices on an Ethernet network is limited, which can restrict the physical coverage of the network.

Conclusion

A fundamental aspect associated with network communication is Ethernet frame format specified under IEEE 802.3 standard. It enables one reliable and flexible way of sending data through the network. Even though it’s rather basic and widely utilized, it has its drawbacks such as maximum frame size and likelihood of security attacks. Thus, there is need for Ethernet professionals to comprehend this format in order to efficiently design, implement or troubleshoot any Ethernet-based local area network (LAN).

Frequently Asked Questions on Ethernet Frame Format – FAQs

What is the purpose of the Preamble in an Ethernet frame?

The Preamble in an Ethernet frame is a 7-byte pattern of alternating 0’s and 1’s that helps in establishing synchronization between the sender and receiver before the actual data transmission begins.

What is the maximum data size that can be transmitted in a standard Ethernet frame?

The maximum data size that can be transmitted in a standard Ethernet frame, also known as the payload, is 1500 bytes. This can be extended in cases where Jumbo Frames are used.

What is the role of the Cyclic Redundancy Check (CRC) in an Ethernet frame?

The CRC is a 4-byte field used for error detection. It contains a hash code of the data in the frame, which allows the receiver to verify the integrity of the transmitted data.

How does VLAN tagging work in Ethernet frames?

VLAN tagging involves adding a 4-byte field into the Ethernet frame, which helps in logically separating a physical network into multiple virtual networks. Each VLAN has its own ID, allowing for improved network management and security.



Previous Article
Next Article

Similar Reads

Difference between Fast Ethernet and Gigabit Ethernet
Ethernet is the most widely used LAN technology defined under IEEE standards 802.3. Fast Ethernet network uses cables called twisted pair or CAT5. It can transfer data at a speed of 100 Mbps while Gigabit Ethernet can transfer data at a speed of 1000 Mbps or 1 Gbps. Gigabit Ethernet also uses fiber optic and twisted pair cables for communication. I
4 min read
What is Minimum Ethernet Frame Size?
The minimum size of an Ethernet frame is 64 bytes. The Ethernet protocol is responsible for Network Interface Card (NIC) to Network Interface Card (NIC) communication of hosts on the same network. It is a protocol of the Layer 1 (Physical Layer) and Layer 2 (Datalink Layer) of the OSI Reference Model. The Ethernet Protocol is used for NIC-to-NIC co
4 min read
How CRC is Calculated in Ethernet Frame?
Answer: CRC (Cyclic Redundancy Check) is essential to ensuring error-free data transmission across networks. It practically functions as a safety check to make sure the data you transmit gets back to us precisely as you meant.Steps to CRC Calculation in Ethernet FrameGetting Set to Send: Your computer separates the data into tidy small packets know
2 min read
How Does the Data Link Layer Prevent Duplicate Frame Delivery in Switched Ethernet?
Answer: The data link layer prevents duplicate frame delivery in switched Ethernet networks using various methods like MAC addressing, CSMA/CD, switching tables, spanning tree protocol and frame filtering and forwarding. In the switched Ethernet networks the data link layer uses MAC addressing, switching tables, spanning tree protocols, frame filte
2 min read
Token Ring frame format
Prerequisite – Ethernet Frame Format Topology - Ring topology Transmission - Unidirectional Encoding - Differential Manchester encoding Access control - Token passing Data rates - 4 Mbps, 16 Mbps Token Ring Frame format: Start frame delimiter (SFD) - Alerts each station for the arrival of token(or data frame) or start of the frame. It is used to sy
2 min read
Link Access Procedure, Balanced (LAPB) Frame Format
Link Access Procedure, Balanced (LAPB) is basically a layer 2 protocol that is required in many control protocols like X.25. It was developed by ITU-T, OF Link Access Procedure (LAP) that itself comes from High-Level Data Link Control (HDLC). It runs at Layer 2 i.e. Data Link Layer (DLL) of the OSI Model. It is generally a balanced protocol that us
3 min read
Point-to-Point Protocol (PPP) Frame Format
Point-to-Point Protocol (PPP) is generally the default RAS protocol in Windows and is most commonly used protocol of data link layer that is required to encapsulate higher network-layer protocols simply to pass over synchronous and asynchronous communication lines. In PPP, link establishment is controlled and handled mainly by Link Control Protocol
3 min read
Frame Format of BISYNC
Binary Synchronous Communication Protocol (BISYNC) is a byte oriented communication protocol and a data link layer protocol, developed by IBM. In a byte oriented approach, every frame is viewed as a set of bytes/characters. Some of the favored byte oriented protocols are – BISYNC (Binary synchronous communications protocol) Point to point protocol
2 min read
Difference between Ethernet and LAN
In practical, concept of LAN have possible because of Ethernet. The main difference between Ethernet and LAN is that Ethernet's working function is decentralized on the other hand LAN's working functions is centralized. And another difference is that, There is limitation take place in transmission of Ethernet while there is no limitation take place
1 min read
Metro Ethernet (MetroE)
Metro Ethernet (MetroE) as the name suggests uses Ethernet links to connect customer network to a service Provider’s device. The customers of Metro Ethernet is usually Enterprises that need to connect their several offices. Metro Ethernet service uses layer 2 standards i.e, it forwards ethernet frames from one customer device to another. Metro Ethe
2 min read
Types of Metro Ethernet Services
Prerequisite - Metro Ethernet (MetroE) Before using the service provider’s Metro Ethernet service, an enterprise must choose possible variation metro Ethernet service available. Metro Ethernet Forum (MEF) founded in 2001, manages and defines standards for Metro Ethernet. Types of Metro Ethernet Services : Service Name Short Name Topology Descriptio
2 min read
Ethernet Transmitter Algorithm
Prerequisite - Ethernet and Ethernet Frame Format Ethernet Adapter or Network Interface Card (NIC) is hardware device/component, that enables you to send and receive data, to and from your computer. It will be connected to the network via wired or wireless connection. Let us assume we have host computer, which has Ethernet Adapter. The Ethernet cab
6 min read
Advantages and disadvantages of Ethernet
Ethernet is Local Area Network (LAN) technology. This system consists of rules to connect multiple systems on the LAN network connection. Apart from LAN, it is also used in Metropolitan Area Network (MAN) and Wide Area Network (WAN) network. A system for connecting a number of computer systems to form a local area network, with rules to control the
3 min read
Introduction of Gigabit Ethernet
The committee began working on a faster Ethernet, quickly dubbed gigabit Ethernet. The goal was to increase performance while maintaining all Ethernet standards. Gigabit Ethernet had to provide service with both unicast and broadcast using the same 48-bit address scheme and also maintaining the same frame format. All configurations of gigabit Ether
3 min read
10-Gigabit Ethernet
Gigabit Ethernet 802 committee was asked by IEEE to start on 10-Gigabit Ethernet. The work pattern was the same as the previous Ethernet standards. 10 Gbps is a truly great speed, 1000 times faster than the original Ethernet. It could be needed inside data centers and exchanges to connect high-end routers, switches, and servers, as well as in long-
3 min read
Uses of Ethernet
Ethernet :Ethernet was simply another name for the internet in the 1990s. IEEE (Institute of Electrical and Electronics Engineers)802.2 and IEEE 802.3 standards define it as one of the most widely used LAN technologies. The data link layer and the physical layer are both controlled by this ethernet. As you may be aware, before the advent of Wi-Fi i
4 min read
What is Power Over Ethernet (POE)?
Power Over Ethernet (POE) is a technique used for building wired Ethernet local area networks (LANs) which use Ethernet data cables instead of normal electrical power cords and wiring to carry the electrical current required to operate each device. The transfer of power through network cabling is possible because of the coupling of data transmissio
8 min read
What is Fast Ethernet?
In the fast-evolving world of computers, speed plays a vital role in the present and has become paramount. As the technology is advancing and the demands on the networks are increasing significantly, the quest for transferring the data at faster rates has become a priority. A very crucial evolution in networking technology developed to meet the esc
6 min read
What is Ethernet?
A local Area Network (LAN) is a data communication network connecting various terminals or computers within a building or limited geographical area. The connection between the devices could be wired or wireless. Ethernet, Token rings, and Wireless LAN using IEEE 802.11 are examples of standard LAN technologies. What is Ethernet?Ethernet is the most
14 min read
How Fast Ethernet Can Transfer the Data?
Answer: Fast Ethernet is the standard Ethernet Network which supports a data transfer rate of up to 100 megabits per second (Mbps). Steps demonstrating data transfer using Fast EthernetStep 1: EncodingFast Ethernet uses Manchester Encoding, In this each bit is mainly represented by the transition from the high to the low voltage, and also vice vers
2 min read
Ethernet Over Internet Protocol (EoIP)
Ethernet over IP (EoIP) Tunnelling is a MikroTik RouterOS technique that constructs an Ethernet tunnel between two routers on top of an IP connection based on GRE RFC 1701. The EoIP tunnel can be used in conjunction with an IPIP tunnel, a PPTP tunnel, or any other IP-capable connection. When the router's bridging capability is active, all Ethernet
7 min read
How does the Data Link Layer Handle Collisions in Ethernet Networks?
Answer: A data link layer in Ethernet networks handle collision using CSMA/CD (Carrier Sense Multiple Access/ Collision Detection) protocol. A system that wants data transmission first checks the transmission channel. If the transmission channel is free, it sent the data. If during the data transfer congestion occurs, then it stops the data transfe
2 min read
How does Ethernet work in wired networking?
Answer: Ethernet divides the received data packets into small parts known as frames. The frame contains information of source and destination address which helps to reach the correct and desired destination. In wired networking CSMA/CD is used by the Ethernet. In this way Ethernet works in wired networking.Working of Ethernet in Wired NetworkingEth
1 min read
Types of Ethernet Cable
An ethernet cable allows the user to connect their devices such as computers, mobile phones, routers, etc, to a Local Area Network (LAN) that will allow a user to have internet access, and able to communicate with each other through a wired connection. It also carries broadband signals between devices connected through it. In this article, we are g
5 min read
Switched Ethernet
One type of network set that is important for networking and the internet is the Ethernet switch. Ethernet switches provide communication between cabled devices in an Ethernet LAN, such as PCs, servers, Wi-Fi access points, PoE lights, and Internet of Things devices. What is Ethernet?By allowing network-connected devices to operate by a set of rule
10 min read
Fast Ethernet
Fast Ethernet is a type of network standard that improves the basics of Ethernet by raising its speed to 100 Mbps. Developed to address the increasing need for greater bandwidths in LANs, Fast Ethernet results in faster transfer of information in the bandwidth and enhanced performance of the Local Area Networks. Today it is employed most commonly i
11 min read
Difference Between Token ring and Ethernet
There are two prominent local area network (LAN) technologies that are used when it comes to computer networking: Token Ring and Ethernet. Token Ring uses a token-passing to control access while it is governed by IEEE 802.5 standard; thus, devices must wait for a token before transmitting any data. On the other hand, Ethernet utilizes Carrier-Sense
6 min read
Difference Between Ethernet and SDH
Ethernet and Synchronous Digital Hierarchy (SDH) are important technologies in communication networks. Both have significant importance of aid in efficient data communication in different settings including homes, schools, and organizations. Whereas Ethernet typically finds application in coupling devices in a Local Area Network (LAN) or Wide Area
5 min read
Difference Between Wi-Fi and Ethernet
The two most used means of connecting devices to the internet are Wireless Fidelity Technology also known as Wi-Fi and the Ethernet. Wi-Fi is a wireless technology that works on radio signals used to connect several devices, while Ethernet uses cables for the connection. Like any other methods, both methods have their strengths and weaknesses and t
5 min read
IEEE 802.11 Mac Frame
Prerequisite – Basics of Wi-fi MAC layer provides functionality for several tasks like control medium access, can also offer support for roaming, authentication, and power conservation. The basic services provided by MAC are the mandatory asynchronous data service and optional time-bounded service. IEEE 802.11 defines two MAC sub-layers:- Distribut
5 min read
Article Tags :