Making a Linux-managed network switch
Martijn Braam developed a custom 5-port gigabit switch using RTL8367S chip, simplifying design by connecting power nets and regulators. Integration with Linux involved kernel adjustments and device tree modifications, showcasing the feasibility of custom network switch creation.
Read original articleNetwork switches are typically managed through web interfaces, but some consumer routers contain Linux-based switches internally. Martijn Braam decided to create a custom 5-port gigabit switch using the RTL8367S chip. Despite initial complexities in chip implementation, Martijn simplified the design by connecting power nets and regulators. The switch chip has CPU ports, but Martijn connected to port 0 for Linux compatibility. Configuring the switch chip involved understanding various communication interfaces and pins. Martijn's design included a USB Type-C connector for power. Integrating the switch with Linux required kernel module adjustments and device tree modifications. By linking the switch ports to the A64-lts board, Martijn successfully created a functional switch with multiple Ethernet interfaces. Despite challenges in chip configuration and board design, Martijn's project demonstrates the feasibility of creating a custom network switch using readily available components and open-source software.
Related
The FreeBSD-native-ish home lab and network
The author details a complex home lab setup with a FreeBSD server on a laptop, utilizing Jails for services like WordPress and emphasizing security measures and network configurations for efficiency and functionality.
Adding a USB Port to the ThinkPad X1 Nano (The Hard Way)
The author modifies a ThinkPad X1 Nano laptop by adding an internal USB port. They overcome challenges, design a flex PCB, boost voltage, and successfully integrate the port for device connectivity.
ChromeOS to Linux migration: requirements and setup
Paolo Amoroso switched from ChromeOS to Linux after nine years due to Linux's advancements. He chose a System76 Merkaat mini PC with Linux Mint for its ease of use and compatibility.
Nvidia NVLink Switch Chips Change to the HGX B200
NVIDIA introduced the HGX B200 board at Computex 2024, featuring two NVLink Switch chips instead of four, aiming to enhance performance and efficiency in high-performance computing applications by optimizing GPU configurations.
The Cheapest NAS
Alexander Gromnitsky shared his experience setting up a budget NAS using an SBC+HDD combo. Despite challenges with hardware compatibility and performance, he managed to install Debian OS but expressed disappointment due to power consumption and reliability issues. He advised against this setup unless prioritizing power efficiency, recommending avoiding similar Chinese devices.
Expensive switches involve some pretty fancy ASICs. For example I have a pair of fairly elderly Dell OS9 switches with 48 x 10Gb/s ports and four x 40Gb/s QSFP+ fibre ports. These are "old skool" stacked jobbies. Each switch can shuffle up to 1.28Tb/s (1). That's quite a lot. You can get those for £1800 including VAT (2) these days and they will last nearly forever.
I love to see efforts like this but do bear in mind that say Netgear will do a eight port 1Gb switch with Power over Ethernet on all ports for about £125.
If you cost your time at somewhere between £20-50 per hour when evaluating whether a project is financially viable, then an off the shelf box might be indicated. However, if the actual purpose is the project itself then sod the price!
(1) https://i.dell.com/sites/doccontent/shared-content/data-shee... (2) https://www.etb-tech.com/dell-force10-s4820t-10gbe-switch-os...
For simpler use you can get an OpenWRT capable router which in most cases uses a managed switch chip. OpenWRT provides a nice interface to configure VLANs and other options.
First time I saw somebody 'creatively using' an RTL83something switch was https://spritesmods.com/?art=rtl8366sb, and there were others since then, but yours was the first 'build my own managed switch', instead of 'adding an external brain to an unmanaged switch'
I'm guessing performance might be better with the hardware, but I don't know --has anyone done tests to show the difference?
And you supposedly need those chips since switching it on the CPU is very taxing.
You use a routerboard block diagram as your model to demonstrate how a hardware switch is connected to the rest of the system. But then you go on to claim that they are impossible/difficult to work with.
Did you source a routerboard at any point here? Fairly sure that OpenWRT can be built for most routerboards, and the 2011 should be a fairly common device on the second hand market.
Maybe this is a better question. Was the goal always to build from scratch? Or did you discard the concept of using someone elses hardware for a particular reason?
Related
The FreeBSD-native-ish home lab and network
The author details a complex home lab setup with a FreeBSD server on a laptop, utilizing Jails for services like WordPress and emphasizing security measures and network configurations for efficiency and functionality.
Adding a USB Port to the ThinkPad X1 Nano (The Hard Way)
The author modifies a ThinkPad X1 Nano laptop by adding an internal USB port. They overcome challenges, design a flex PCB, boost voltage, and successfully integrate the port for device connectivity.
ChromeOS to Linux migration: requirements and setup
Paolo Amoroso switched from ChromeOS to Linux after nine years due to Linux's advancements. He chose a System76 Merkaat mini PC with Linux Mint for its ease of use and compatibility.
Nvidia NVLink Switch Chips Change to the HGX B200
NVIDIA introduced the HGX B200 board at Computex 2024, featuring two NVLink Switch chips instead of four, aiming to enhance performance and efficiency in high-performance computing applications by optimizing GPU configurations.
The Cheapest NAS
Alexander Gromnitsky shared his experience setting up a budget NAS using an SBC+HDD combo. Despite challenges with hardware compatibility and performance, he managed to install Debian OS but expressed disappointment due to power consumption and reliability issues. He advised against this setup unless prioritizing power efficiency, recommending avoiding similar Chinese devices.