Live data from Hacker News

25 Gigabit Linux internet router PC build

michael.stapelberg.ch

171–180 of 359 posts

Re: 25 Gigabit Linux internet router PC build

#171

Earlier quoted context omitted.

A RPi is not equivalent to what most would use as a COTS router, which includes a GbE switch and some kind of modem (DSL or cable). The latter on its own needs a few Watts.

On the contrary, OpenWRT and a good CM4-based board allows the Pi to run pretty well as a gigabit router :) https://www.jeffgeerling.com/blog/2021/two-tiny-dual-gigabit...

That’s not much of a router with just two ports and no WiFi.

Re: 25 Gigabit Linux internet router PC build

#172
post #4

I'm always amazed by people who don't bat an eye on the perspective of having a home server, sucking up electricity 24/7. In this case replacing a typical router (which consumes like a lightbulb), with a full-fledged PC (probably consuming like x100 the power). I guess some people around the world have quite cheap utility bills! For me, it's either a Raspberry Pi type of power consumption, or else a server that only…

I have a symmetric 10 gbps connection at home. I have an EPYC machine that plays host to a number of virtual machine guests for various tasks. One of them is running opnsense to be my router. It's not fast enough to route at line speed, but it's close enough that I don't care. A consumer router or a pi or something would be far slower, and I would start to care.

Having a tolerably powerful computer doing this means that it's also my web server for several sites, stores local backups and handles offsite backups, acts as my print server, and hosts a Windows virtual machine for using proprietary software (e.g., for my label printers or firmware updates for random widgets like my Lutron light system).

Quiescent appears to be something in the neighborhood of 40 watts. It's not nothing, but it's acceptable, especially for the utility. I don't pay for a VPS because I have the bandwidth and the capacity to self-host everything I want. I spend $8/mo in electricity to run that machine, and that will drop to zero when my solar array and battery become functional.

If the power consumption were 5x worse I would probably not have gone this route.

Re: 25 Gigabit Linux internet router PC build

#173
post #37

Earlier quoted context omitted.

FWIW: raspberry pis (the 4 series) sucks in 15w which is why it’s so bloody difficult to power them through standard USB power adapters (which go up to 12w). So, not hundreds of times more power hungry, but definitely 2-3x

yep, which makes them a pain in the ass to efficiently cool down without active cooling (=fans)

My passively cooled RPi4 with 8GiB RAM + 1GiB/USB ethernet dongle working as a 1Gb router never goes above 50 degrees C (all-metal case from aliexpress).

Re: 25 Gigabit Linux internet router PC build

#174
post #48

Earlier quoted context omitted.

My home server is about 70W, meaning about 150€ a year (~0.20 eur/kWH). So about 12€ a month. For one of my biggest hobbies. It’s fun, but it also runs WireGuard, 3 NextCloud installs, Home Assistant and Mosquitto, 2 MineCraft servers, a FoundryVTT instance, samba, sabnzbd, Unify Controller, an Nginx static site, LibreSpeed, VaultWarden and soon a Django site. Oh and a virtual desktop (vnc) I can always leave running…

> (~0.20 eur/kWH) Are such high electricity prices common in Europe? That's higher than it is in 49 of the 50 US states (assuming 0.20 EUR = 0.24 USD, and with Hawaii being the exception).

That's cheaper than California!

Re: 25 Gigabit Linux internet router PC build

#175

Kind of surprised there wasn't much attention paid to the software. My understanding is that with stuff like DPDK and fd.io you can get much better performance without going to extremes with your hardware. Netgate TNSR is one product that puts all the opensource pieces together to make it easy but it is all opensource software so should be usable by the average home user.

Author has written his own router software and probably wants to continue to develop it. They are much more pro than your normal average home user.

Re: 25 Gigabit Linux internet router PC build

#176
post #28

What is the practical consumer (or even SME) use of a 10 or 25G connection? As a consumer I’d definitely get it for the fun of it, but what is the point in reality? We’ve just launched an ISP a couple of weeks ago here in Europe. Peak bandwidth use is about 3mbps per customer, and customers will download the same amount of data regardless of their plan. I acknowledge this could be lack of imagination on my part, but…

Internally: Every once in a while, I move VM images between machines. Even at 1Gbps, it's a drag to sit there and watch them transfer. Not really a big deal, but it'd be nice to see them move faster. Externally: I back up my Google Drive periodically. 500GB takes a while to transfer.

I would be very surprised if you could even break 2.5 gbps towards google drive. Saturating 25 gbps to anything the peer out of country would be basically impossible most places.

Re: 25 Gigabit Linux internet router PC build

#177
post #8

Was hoping for similar but 10 gbit. Anyone know a nice small/quiet linux box with 2x10 gbit for use as a router? I have a 8 port x 1gbit ubiquiti router, but ubiquiti seems to be going downhill, and 8 port x 10gbit routers are pretty expensive. My plan was a 2 port router and use vlan tagging to a 8+ port 10g switch. That way I can have separate networks for trusted ethernet, trusted wifi, untrusted ethernet, and unt…

I'd love to get something simple that could handle a 10Gbit fiber7 connection and act as a 10Gbit Router & Switch in my home. My skills and patience in this area are a bit limited so going as deep as Michael is not something I could do with confidence. Narrowing down the hardware to something that is not only powerful enough, cheap enough, compatible with something like OPNsense and available to normal humans has kind of scared me off a bit.

Re: 25 Gigabit Linux internet router PC build

#178

Very cool post. Thank you. This article, and its many links, are helping noob me learn how to ask about I/O perf. TechEmpower benchmarks HTTP servers. While contestants continue to improve, I've long been curious what the theoretical fastest HTTP server could be. https://www.techempower.com/benchmarks/ Basically, an update to the "C10K problem" for the year 2021. https://en.wikipedia.org/wiki/C10k_problem A bit like…

> Basically, an update to the "C10K problem" for the year 2021. https://en.wikipedia.org/wiki/C10k_problem

No, routing, natting and terminating connections are very different problems.

Especially if we consider different implementations.

Re: 25 Gigabit Linux internet router PC build

#179
post #4

I'm always amazed by people who don't bat an eye on the perspective of having a home server, sucking up electricity 24/7. In this case replacing a typical router (which consumes like a lightbulb), with a full-fledged PC (probably consuming like x100 the power). I guess some people around the world have quite cheap utility bills! For me, it's either a Raspberry Pi type of power consumption, or else a server that only…

Maybe they have money and they find that spending money on homelabbing is worth the effort. And really it isn't THAT expensive either. I for one don't bat an eye on my USD200 yearly homelab electricity cost. Of course if one wishes to perfectly optimize everything then having a homelab might well wasteful.

Indeed every case is unique. My home lab runs about ~4kw all the time, which end up being about 2.8mWh/month. Here in Oregon that ends up costing $340/month.

This is a brand new house, and as soon as I get permits approved I'm adding 21kw of solar which will help offset that.

Re: 25 Gigabit Linux internet router PC build

#180
post #21

Earlier quoted context omitted.

He claims one of his goals is to be power efficient “The PC consumes about 48W of power when idle (only management …” https://www.eia.gov/tools/faqs/faq.php?id=97&t=3 “ How much electricity does an American home use? In 2019, the average annual electricity consumption for a U.S. residential utility customer was 10,649 kilowatthours (kWh), an average of about 877 kWh per month”

Ok so what am I missing here? In Germany a typical four person household is 2000kwh a year. Surely air conditioning can't make up for such a difference? Everybody already switched to electric cars?

Have you seen the size of an American refrigerator compared to European?

We use 2kwh a month here in August.

Post reply on HN