|

[ACSA Training #6] Ethernet Frame

⏱️ Estimated reading time: Approx. 5 minutes (5 min read)

Previous PostWe learned about TCP/IP Stack in .
We looked at the differences between the TCP/IP Stack and the OSI 7-layer model.

Today, we will learn about Ethernet, which corresponds to Layer 1 and Layer 2 of the OSI 7-layer model.

Ethernet

Ethernet is a computer networking technology used at Layer 1 and Layer 2 of the OSI model.

This standard is used to assign a 6-byte (48-bit) MAC (Media Access Control) address to each device at Layer 2. Manufacturers assign a unique MAC address to each NIC (Network Interface Card, commonly referred to as a LAN card in a PC). Hexadecimal Assigns a MAC address. This address is stored in the NIC's ROM (Read Only Memory).

That means every Ethernet NIC in the world has its own unique MAC address. How is this possible?

Family of computer network technologies used in Layer 1 and Layer 2. Layer 2 Ethernet uses MAC addresses — a 6-byte address assigned to each NIC. First 3 bytes: NIC manufacturer's OUI 2 3 Last 3 bytes: Vendor assigned 4 5 6 ox8c8590766c95 ox8c8590766c95 Host A Ethernet link ox8c85908123a4 Host B

The first 3 bytes of each MAC address are Organization Unique Identifier (OUI)It is called.
Each manufacturer of Ethernet NICs is assigned a unique 3-byte number. While some manufacturers only have one unique 3-byte number, a manufacturer producing many products may have multiple OUIs.
The remaining 3 bytes of the MAC address are NIC Serial No.It consists of:.

In hexadecimal, one byte consists of two digits. Therefore, each MAC address consists of 12 digits. Hexadecimal charactersIt is displayed as . Each byte is usually separated by a colon (:) or a dash (-).

https://macvendors.com You can find the NIC manufacturer by searching for the OUI on a website like .

Ethernet Frame

From upper layers Layer 2 Header Byte count Preamble 46- 1500 7 SFD 1 Host A DMAC 6 Ethernet link SMAC 6 Ether Type 2 Ox8c::a4 Host B Trailer FCS 4 Error checking
Ethernet frame structure

Let's assume Host B receives data from the OSI upper layer.
Let's think of Ethernet as a higher-level worker. They provide a payload to Ethernet and ask Ethernet to deliver it to Host A. The Ethernet process for delivery is as shown in the figure. Header와 TrailerRo Lee Payloadwill be wrapped around.

The fields for each Header and Trailer are as follows:.

  • Preamble : Notifies the receiving system that an Ethernet frame is starting and enables synchronization.
  • SFD (Start Frame Delimiter) : Indicates that the destination MAC address field starts from the next byte.

An Ethernet segment can have multiple hosts. All hosts recognize the preamble and SFD as a type of signal.

“Look here!! Here’s a Frame. It could be yours!”

When a frame arrives, how does the receiver know whether it is intended for itself or for another host?
The next field is the destination MAC address.

  • Destination MAC address (DMAC) : Identifies the NIC of the computer system receiving the message.
    For example, Host A reads the MAC address and accepts the frame if it confirms that it is its own MAC address.
    Other devices and stations read the MAC address and, if the corresponding MAC address is not found on that station, discard the frame. This is similar to calling out a student's name in a classroom and telling a story. The other students will ignore the message, while only student A will respond.
  • Source MAC address (SMAC) : Identifies the NIC of the transmitting computer system.
    This allows Host A to know where the message came from and who to respond to.
  • Ethernet Type (EtherType) : Defines the Layer 3 protocol (e.g. IPv4, IPv6) inside the frame.
    The EtherType field tells the Host which stack to pass the Payload to for processing.
  • Payload : Contains the data to be transmitted.
  • FCS(Frame Check Sequence): You can detect corrupted data using CRC (Cyclic Redundancy Check) or Checksum methods.
    Host B performs mathematical calculations on most of the header and payload bits when generating this frame. The result of this calculation is placed in the FCS fieldWhen Host A receives the frame, it performs the same calculation and compares it with the value stored in the FCS field. If the values are the same, the payload is not corrupted. If the data is corrupted due to electromagnetic interference or a faulty cable, the frame is discarded because Host A's calculation does not match the value in the FCS field.

The Ethernet payload contains not only application data but also header information from higher layers. TCP adds a header that IP considers part of the payload. IP then adds a header, and Ethernet references part of the payload.

In the next post, we will look at the information in the IP header.

Similar Posts

  • [ACSA Education #28] MSTP Theory and Regional Structure

    ⏱️ Estimated read time: Approx. 6 minutes (6 min read) A Common Spanning Tree (CST) defines a single Spanning Tree Instance for the entire network, regardless of the number of VLANs. All BPDUs use Untagged VLAN 1, so VLAN details are not considered. Additionally, there is no load balancing, so alternative…

  • [ACP-DC Training #3] Data Center Technology

    ⏱️ Estimated reading time: Approx. 14 minutes (14 min read) Last time, we discussed the robust hardware products of data centers. While physical equipment such as servers, storage, and switches are important, what truly makes a data center 'smart' is likely the various technologies running on top of this hardware. Simply put, data center technology refers to the various… configured on switches

  • [ACMA Training #2] RF Basics

    ⏱️ Estimated read time: Approx. 10 minutes (10 min read) Wireless networks are primarily designed considering coverage or capacity. When designing for WLAN coverage, the design must be based on the area to be covered. If you configure a coverage-based design that provides 100% coverage across the entire area, using high-power APs is less…

  • [ACP-DC Training #2] DCN Products and Specialized Technologies

    ⏱️ Estimated reading time: Approx. 12 minutes (12 min read) Continuing from last time, this time we will cover HPE Aruba Networking DCN products and technologies related to data center network deployment. As this module is the starting point of the process, you must be able to select appropriate products and deploy them in a design suitable for your data center. We will examine various HPE Aruba Networking products and in DCN…

  • [ACSA Training #36] Routing Protocols

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) Before learning about routing protocols, we need to understand an AS (Autonomous System). An Autonomous System can be described as a collection of routers under a management domain. In other words, an ISP (Internet Service Provider) owns its own internal network. And the ISP extends to the routers within that network…

  • [ACSA Training #27] How RSTP Works

    ⏱️ Estimated read time: Approx. 10 minutes (10 min read) RSTP (Rapid STP) operates a loop-free topology through the following algorithm: Select Root Switch Select Root Ports (RPs) of all other non-root switches or non-designated bridge switches Select Designated Ports (DPs) of links connected between each switch Other…