|

[ACSA Training #23] Frame Transmission Process

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

Earlier, when we looked at technologies represented in Layer 2, such as VLAN and 802.1Q, we also mentioned frames.
Previous PostWe have also described Ethernet frames, which correspond to Layer 2 in the OSI layer.

So today, I want to look at how this frame works when doing Layer 2 communication with a real-world example.
First, let's look at communication between two devices going back and forth across multiple switches, assuming they are in the same VLAN.

Basic scenario configuration

[ACSA 교육#23] 프레임 전송 과정 - image 43

Looking at the picture above, PC-1 and Server-1 each have their IP addresses properly set, and each switch has VLANs 1, 10, and 20 set up. A trunk port is configured between the two switches, allowing traffic for VLANs 1, 10, and 20 to communicate.

PC-1 is connected to port 1/1/3 of the Access-1 switch with VLAN 20, and Server-1 is connected to port 1/1/4 of the Access-2 switch with VLAN 20.

Assuming that there has been no communication between PC-1 and Server-1 yet, let's look at how frames are transmitted in a scenario where PC-1 downloads a file from Server-1 via FTP.

Starting an FTP session

A user on PC-1 opens a browser and enters the IP address of Server-1.
ftp://10.1.20.200

[ACSA 교육#23] 프레임 전송 과정 - image 44

Even though PC-1 knows the destination IP address, it doesn't yet know the MAC address mapped to that IP address, so the ARP process must be performed. Furthermore, PC-1 knows all the remaining Layer 2 information, including Layers 3 through 7, which are required to create the frame.

ARP Request

[ACSA 교육#23] 프레임 전송 과정 - image 46

PC-1 creates an ARP request message for the ARP process and broadcasts the message to the entire Layer 2 using the destination MAC address (FF:FF:FF:FF:FF:FF).

Sending ARP broadcast

[ACSA 교육#23] 프레임 전송 과정 - image 48

The Access-1 switch receives the message and enters the 1/1/3 port and the PC-1 MAC address into its MAC address table.
Additionally, since the ARP request is a broadcast, the frame is flooded (sent) to all ports corresponding to VLAN 20. At this time, it is forwarded to the Access-2 switch via 1/1/28, which is connected to the trunk port.

dot1q – Tagging

[ACSA 교육#23] 프레임 전송 과정 - image 49

Since port 1/1/28 on the Access-1 switch is configured as a trunk port, it uses the dot1q tag with VLAN ID = 20 when forwarding the frame. The Access-2 switch receives the frame and creates an entry in its MAC address table.

Untagged frame delivery

[ACSA 교육#23] 프레임 전송 과정 - image 51

The Access-2 switch forwards the frame to all ports mapped to VLAN 20. The frame is forwarded to port 1/1/4, which has VLAN 20 configured. Because this interface is not a trunk port, the frame forwarded to Server-1 does not contain 802.1q tags, such as the VLAN ID.

ARP Reply

[ACSA 교육#23] 프레임 전송 과정 - image 52

Server-1 receives the ARP request and generates an ARP reply. Since PC-2 knows the source MAC address, this frame is communicated unicast.
Now, the Access-2 switch must process the ARP Reply message. First, it learns the MAC address of Server-1 and enters an entry in its MAC address table. Then, it forwards the frame, including the VLAN ID, to the Access-1 switch.

Receive ARP message

[ACSA 교육#23] 프레임 전송 과정 - image 53

The Access-1 switch forwards an ARP Reply frame to PC-1. As expected, since port 1/1/3 is not a trunk port, it removes the 802.1q tag and forwards the frame. The Access-1 switch then adds Server-1's MAC address to its MAC address table and ARP table.

Now that PC-1 knows the MAC address of Server-1, it can complete the Ethernet frame and download the file via FTP.

So, we've looked at how the VLAN, ARP, and 802.1Q processes discussed in the previous post actually work and operate. I hope this simple example will help you understand the concepts more clearly.

It is important to have a solid understanding of VLANs and 802.1Q as they are used extensively in the field.
It would be very helpful to set up a simple practice environment and directly view the contents of the frames using Wireshark or similar.

Similar Posts

  • [ACSA Training #20] Virtual LAN

    ⏱️ Estimated read time: Approx. 5 minutes (5 min read) LAN and VLAN A LAN (Local Area Network) refers to a group of devices in the same broadcast domain. As shown in the figure, there are LAN-A and LAN-B. Two devices are connected to LAN-A. Host A is connected to Port 1, and Host B is connected to Port 2. Another switch, LAN-B also…

  • Installing EVE-NG on Hyper-V

    ⏱️ Estimated reading time: Approx. 6 minutes (6 min read) In the previous post, I introduced the AOS-CX simulator. The AOS-CX simulator can be run through emulators such as EVE-NG or GNS3. Today, I would like to look into the installation using EVE-NG. EVE-NG is a very powerful network virtualization emulator that simulates network equipment from various manufacturers as if it were actual equipment…

  • [ACP-DC Training#11] Loop Prevention and LAG Implementation

    ⏱️ Estimated read time: Approx. 6 minutes (6 min read) Data center design involves multiple layers of redundancy, ranging from server NIC cards to uplinks and switches. While this redundancy is essential, it simultaneously increases the risk of network loops, broadcast storms, and network outages. Today, we will discuss key technologies to prevent these risks and build high-performance, redundant L2 data centers…

  • What is HPE's direction in Ultra Ethernet (UEC)?

    ⏱️ Estimated reading time: Approx. 4 minutes (4 min read) The Ultra Ethernet Consortium (UEC), officially launched in July 2023, was formed to develop Ethernet specifications that enhance AI and High Performance Computing (HPC) environments with a new level of performance, scalability, and interoperability. Hewlett Packard Enterprise (HPE) is one of the original founders of the UEC, and regarding the UEC Specification Revision 1.0…

  • [ACSA Training #2] OSI 7 Layers

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) As computers rapidly advanced in the mid-1980s, all manufacturers attempted to implement their own proprietary communication protocols. As a result, compatibility issues arose between products from different manufacturers, leading to unreliable communication. Therefore, the International Organization for Standardization (ISO) [established] standard communication for computing devices…

  • IPv6-ready switches: HPE Aruba Networking switches

    ⏱️ Estimated reading time: Approx. 3 minutes (3 min read) Veteran network administrators likely remember the simple network days of the past, when there were few devices required for internet access and connections were static. As the number of network devices increased, to tag them with unique identifiers (i.e., addresses) and to enable management, routing, and security, the Internet…