Skip to content

VLAN Testing Project (Based on W5500)

This project tests VLAN tagging and handling in MACRAW using the W5500 (Ethernet chip). It employs Python for data processing, Wireshark for packet capture.

irina

Published November 29, 2024

VLAN Testing Project (Based on W5500)

Components

Hardware components

Project description

VLAN Testing Project (Based on W5500)

VLAN Testing Project (Based on W5500)

This project tests VLAN tagging and handling in MACRAW mode using the W5500 (Ethernet chip). It employs Python for data processing, Wireshark for packet capture


📋 Table of Contents


🌟 Introduction

This project demonstrates how to send and receive VLAN-tagged Ethernet frames using the W5500 Ethernet chip in MACRAW mode. The workflow involves:

  • Sending and receiving Ethernet frames with VLAN tags.
  • Analyzing network traffic with Wireshark.
  • Capturing and reviewing hardware signals using an oscilloscope.

📂 Project Overview

The project includes the following materials:

Wireshark Capture Files:

  • .png files for analyzing network traffic.
  • Example file: data/vlan_test_capture.png.

Python Scripts:

  • Scripts for generating data frames and controlling the W5500.
  • Example script: ./py/vlan.py.

🛠️ Setup

Follow these steps to set up the project:

Install Python:

  • Python 3.7 or later is required.
  • Install the required packages:
pip install pyserial scapy

Install Wireshark:


🚀 How to Use

Run the Python Script:

  • Generate VLAN-tagged frames and send them using the W5500:
python ./py/vlan.py
🚀 How to Use

A VLAN packet Frame

A VLAN packet Frame
Analyze with Wireshark:

  • Open Wireshark and capture packets from your network interface.
  • Apply a VLAN filter (0x8100) to isolate VLAN-tagged packets:
vlan

 


📊 Results

  1. Wireshark Capture:
    • Below is an example of VLAN-tagged packets captured with Wireshark:
      VLAN Testing Project (Based on W5500), 📊 Results

Documents

Comments

Comments