|

[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 Training #37] OSPFv2

    ⏱️ Estimated read time: Approx. 13 minutes (13 min read) OSPF is the most widely used method for routing traffic within an organization. Among them, OSPFv2 is used to route IPv4 packets within an enterprise internetwork. Today, we will learn about OSPF areas, router IDs, various message types, and Neighbor State… .

  • Managing ArubaCX Switches with NetEdit

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) Our networks are bound to grow. Existing networks expand, networks are split according to purpose, or new networks are created for new businesses. As networks grow in this way, maintenance becomes extremely difficult from an administrator's perspective. In particular, large-scale network changes involve every individual…

  • [APSC Training #3] Using Aruba Central

    ⏱️ Estimated reading time: Approx. 4 minutes (4 min read) Continuing from the previous post, this time we will explore the various ways to use Aruba Central. Basically, Aruba Central is a cloud-based SaaS solution, but it offers various options to meet customer environments and requirements. In addition, the licensing structure has been simplified to make customer selection easier. Desired…

  • Configuring RoCE in AOS-CX (1) – Theory

    ⏱️ Estimated read time: Approx. 8 minutes (8 min read) Today's mission-critical storage environments require higher consistency, predictability, and performance to meet high business demands. Data centers require more I/O capacity to accommodate vast amounts of data, applications, and workloads. Along with this surge in data…

  • [ACP-DC Training #14] VXLAN

    ⏱️ Estimated read time: Approx. 9 min read Why VXLAN? The foundation of VXLAN functionality is the RFC 7348 standard, which provides an alternative to the existing traditional VLAN concept. 1. Overcoming the limitations of the number of VLANs (ID scalability) Traditional VLANs use 12-bit numeric tags inside the 802.1Q header….

  • [ACSA Training #8] TCP Header

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) In the last post, we looked at the IPv4 header at Layer 3 (Network Layer). Today, we will explore TCP and UDP, which can be found at the Transport Layer, Layer 4. 3-Way Handshake First, before processing application data, TCP first ensures that data can be reliably delivered to the destination…