TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

25 Gigabit Linux internet router PC build

489 pointsby securealmost 4 years ago

33 comments

formerly_provenalmost 4 years ago
&gt; I read on many different sites that AMD’s current CPUs beat Intel’s CPUs in terms of performance per watt. We can better achieve goals 2 and 3 (low noise and low power usage) by using fewer watts, so we’ll pick an AMD CPU and mainboard for this build.<p>Unfortunately many reviews are very misleading here. Zen 2&#x2F;3 CPUs have good performance per Watt, that&#x27;s true. But for a machine like this, which will be mostly idle, this is not the interesting metric and Zen 2&#x2F;3 systems show that you can combine good perf&#x2F;W with poor idle power consumption (which is not true for their monolithic APU brethren, which are used in laptops).<p>One of the biggest idle power hogs for these is the IO die, so make sure that XMP is disabled and the memory uses one of the slow JEDEC timings. This should be fine for a router. Check that the SoC&#x2F;NB voltage is set to 1 V or less. Some boards set this higher. In the AMD CBS section of the board firmware there should be an item &quot;SoC OC Mode&quot; somewhere. Disable it. Some boards allow you to set a new PPT (package power target), but it&#x27;s worth pointing out that values which are too low will make the CPU very slow because it essentially forces all cores to very low power states in order to meet the PPT since the CPU can&#x27;t influence the baseline power (due to fabric and I&#x2F;O die). The upside of using a reasonable PPT of e.g. 50-60 W is that you reduce power consumption if some errant task hogs the CPU.<p>These settings make a big difference, but only if the CPU is <i>really</i> idle. Even fairly light loads (e.g. on a desktop, moving the mouse on the background) has everything rev up. In deep idle (nothing running at all, no user interaction on a desktop) you might get a Zen 2&#x2F;3 CPU down to around 20 Watts, but as soon as anything is happening at all we&#x27;re straight back to the 40-70 W region.<p>Using an Intel system for this would have likely saved 10-20 W.
评论 #27793206 未加载
tohmasualmost 4 years ago
&gt; Our network cards need PCIe 3.0, so that disqualifies 5 chipsets right away: only the A520, B550 and X570 chipsets remain.<p>No, the linked Wikipedia page only shows the PCIe lanes connected through the chipset and doesn&#x27;t account for PCIe lanes provided directly from supported CPUs. X470 supports CPUs which have PCIe 3.0 and a board with x8&#x2F;x8 mode like the ROG Strix X470-F <a href="https:&#x2F;&#x2F;www.asus.com&#x2F;microsite&#x2F;motherboard&#x2F;AMD-X470&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.asus.com&#x2F;microsite&#x2F;motherboard&#x2F;AMD-X470&#x2F;</a> should work just fine (and has no fan).
评论 #27799019 未加载
specialistalmost 4 years ago
Very cool post. Thank you.<p>This article, and its many links, are helping noob me learn how to ask about I&#x2F;O perf.<p>TechEmpower benchmarks HTTP servers. While contestants continue to improve, I&#x27;ve long been curious what the <i>theoretical</i> fastest HTTP server <i>could</i> be. <a href="https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;</a><p>Basically, an update to the &quot;C10K problem&quot; for the year 2021. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;C10k_problem" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;C10k_problem</a><p>A bit like how Daniel Lemire initially thought about parsing JSON. Paraphrasing: Why can&#x27;t a JSON parser run at wire speed? &quot;Parsing JSON quickly: early comparisons in the wild&quot; <a href="https:&#x2F;&#x2F;lemire.me&#x2F;blog&#x2F;2019&#x2F;03&#x2F;02&#x2F;parsing-json-quickly-early-comparisons-in-the-wild&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lemire.me&#x2F;blog&#x2F;2019&#x2F;03&#x2F;02&#x2F;parsing-json-quickly-early...</a><p>--<p>Also, I really appreciate including the sound and cooling considerations. It&#x27;s just great seeing the process of system design accommodating (balancing) multiple goals. Bravo.
评论 #27794480 未加载
ksecalmost 4 years ago
The most surprising details was [1] from init7.<p>&gt;Compatibility requirements There is no obligation on you to procure the hardware through us, and the hardware shown here is not the only possible hardware for you to use. There are also other compatible products, as long as the requisite «bi-di» fibre optic technology conforms to the following specifications (recommended: Flexoptix, more router information):<p>No Modem &#x2F; ONT. Just a Router with compatible SFP optic. I wish more ISP do that. And not force me to use your crappy ONT or Wifi Router. They could of course go another router and provide actual decent ONT or WiFi Router. But the chance of happening, or they care about quality is slim.<p>[1] <a href="https:&#x2F;&#x2F;www.init7.net&#x2F;en&#x2F;internet&#x2F;hardware&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.init7.net&#x2F;en&#x2F;internet&#x2F;hardware&#x2F;</a>
评论 #27798054 未加载
j1eloalmost 4 years ago
I&#x27;m always amazed by people who don&#x27;t bat an eye on the perspective of having a home server, sucking up electricity 24&#x2F;7. In this case replacing a typical router (which consumes like a lightbulb), with a full-fledged PC (probably consuming like x100 the power).<p>I guess some people around the world have quite cheap utility bills! For me, it&#x27;s either a Raspberry Pi type of power consumption, or else a server that only powers on when needed. But I haven&#x27;t learned yet how to do the latter, if possible at all.<p>In fact this is a nice place to ask: how would you build a &quot;something&quot; that monitors the network for packets sent to powered-off machines, then somehow caches the request, powers the destination machine On, and finally lets the request continue to its target? Has this been tackled anywhere? There must be tons of people wanting a homeserver but living in places where electricity has a considerable cost...
评论 #27793594 未加载
评论 #27793008 未加载
评论 #27792845 未加载
评论 #27793082 未加载
评论 #27793768 未加载
评论 #27792852 未加载
评论 #27793484 未加载
评论 #27793172 未加载
评论 #27793083 未加载
评论 #27794451 未加载
评论 #27792918 未加载
评论 #27793760 未加载
评论 #27793094 未加载
评论 #27793700 未加载
评论 #27793374 未加载
评论 #27793005 未加载
评论 #27794046 未加载
评论 #27792825 未加载
评论 #27794782 未加载
评论 #27794167 未加载
评论 #27794207 未加载
评论 #27796951 未加载
评论 #27793231 未加载
评论 #27797965 未加载
评论 #27794938 未加载
评论 #27794933 未加载
评论 #27792851 未加载
评论 #27795455 未加载
评论 #27795302 未加载
评论 #27796066 未加载
评论 #27793241 未加载
评论 #27792840 未加载
评论 #27792945 未加载
评论 #27794351 未加载
评论 #27793460 未加载
评论 #27794193 未加载
评论 #27796602 未加载
评论 #27792866 未加载
评论 #27797196 未加载
评论 #27793017 未加载
评论 #27793042 未加载
评论 #27793295 未加载
评论 #27792895 未加载
adamcharnockalmost 4 years ago
What is the practical consumer (or even SME) use of a 10 or 25G connection?<p>As a consumer I’d definitely get it for the fun of it, but what is the point in reality?<p>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.<p>I acknowledge this could be lack of imagination on my part, but the progression of bandwidth availability seems to be wildly outstripping demand (at least when it comes to fibre deployments).<p>Perhaps someone living in SF with a 25G connection can disabuse me of this notion.
评论 #27793121 未加载
评论 #27794161 未加载
评论 #27792988 未加载
评论 #27792927 未加载
评论 #27793057 未加载
评论 #27792899 未加载
blackcat201almost 4 years ago
If anyone is interested in building 10Gb router on a budget you can buy Mellanox OCP NIC with an adapter from OCP to PCIe for around 5~30 USD ( depend on your location )[0]. I recently build one 10G router with 4x10Gb, 2x1Gb ports for around 200 USD using second hand PC.<p>[0] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=hkf3PkuKdOA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=hkf3PkuKdOA</a>
timvdalenalmost 4 years ago
I spent a couple of hours last week trying to set up a fiber connection in our new office. Since I didn&#x27;t want to use consumer hardware in an office setting (and I already had a router that was compatible), I opted for getting my own hardware (a media converter).<p>I had _some_ prior knowledge of networking, but had never messed around with VLAN and MTUs before. Luckily I found this[1] gist for a comparable setup that saved me. I&#x27;m still only getting 350Mbps where I should be getting 1Gbps, but I _think_ that&#x27;s just due to the bad networking chip in my cheap chromebook. When I move all my stuff to the office, we&#x27;ll see what we can top out at...<p>All this is to say, I definitely respect the effort the author put into this and it pains me to find out that my new SFP setup is already obsolete :).<p>[1]: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;Ruben-E&#x2F;abb9a4a872a7c4ffff058ae291ef2627" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;Ruben-E&#x2F;abb9a4a872a7c4ffff058ae291ef...</a>
r1chalmost 4 years ago
One thing I&#x27;ve run into when building my own 10gbps router that I didn&#x27;t see mentioned - you probably need to disable power saving &#x2F; frequency scaling. The handling of packets is done in software, so when you start a download and the flood of initial data comes in at 10gbps, your CPU will still be running at 600 MHz and unable to keep up. It ramps up within 5-50 milliseconds depending on CPU, but for a TCP download the sender will have already interpreted the dropped packets as congestion and reduced their upload rate.<p>You can monitor this with ethtool stats to see how many packets the NIC dropped due to host buffers being full.
评论 #27792901 未加载
评论 #27792944 未加载
slikenalmost 4 years ago
Was hoping for similar but 10 gbit. Anyone know a nice small&#x2F;quiet linux box with 2x10 gbit for use as a router?<p>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 untrusted wifi.
评论 #27793423 未加载
评论 #27793150 未加载
评论 #27794474 未加载
评论 #27793384 未加载
评论 #27792953 未加载
rwmjalmost 4 years ago
Here I am having just had FTTH installed, but capped to a mere 160 Mbps. The main problem I am having is not the router (which handles such a &quot;slow&quot; speed fine) but the wiring throughout the house. It&#x27;s all copper ethernet and because of the lengths and the fact that the runs must go parallel to some mains electricity cables, it tops out at 100 Mbps. I hope the poster has already put fibre around his house.
评论 #27792865 未加载
great-potentialalmost 4 years ago
Well, hate to tell you but you&#x27;ll be limited 10Gb&#x2F;s with these Intel cards because they require FEC.
评论 #27792879 未加载
pmoricialmost 4 years ago
Kind of surprised there wasn&#x27;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.
评论 #27794468 未加载
评论 #27794417 未加载
评论 #27795637 未加载
Budalmost 4 years ago
The real story here is how great the internet service can be now in a civilized country if you don&#x27;t let Comcast have monopolies and ban local internet cooperatives and coast along selling the same service for 15 years while raising prices.<p>25Gbps symmetric for about $70&#x2F;month. That&#x27;s significantly less than I pay Comcast for its crappy 900Mbps down&#x2F;40Mbps up service.
评论 #27795942 未加载
评论 #27795463 未加载
评论 #27795625 未加载
评论 #27795682 未加载
评论 #27797105 未加载
评论 #27796579 未加载
评论 #27795893 未加载
评论 #27796956 未加载
评论 #27796669 未加载
评论 #27796990 未加载
评论 #27796029 未加载
评论 #27795533 未加载
评论 #27795628 未加载
InTheArenaalmost 4 years ago
I have a Unifi UDMP, which while I think is probably the best prosumer option right now, falls way short due to a PPPoE problem that limits fiber connections to under 500mb&#x2F;s, and the lack of load balancing across multiple link networks (which I totally admit, is a first world problem).<p>I am thinking about building my own, but then comes the maintaince of all of the hardware &#x2F; software. For me that would be fine, but for my family, it would be a total PITA to manage, and any downtime would be horrible.<p>So, stuck with UDMP for the moment, until they either fix their problems, or alternatively I decide to bite the bullet and build this on top of linux.
评论 #27795197 未加载
评论 #27794982 未加载
评论 #27794927 未加载
unethical_banalmost 4 years ago
This is not related to the article, but to networking in general: I just discovered Brocade switches and how cheap they can be for what you get.<p><a href="https:&#x2F;&#x2F;forums.servethehome.com&#x2F;index.php?threads&#x2F;brocade-icx-series-cheap-powerful-10gbe-40gbe-switching.21107&#x2F;" rel="nofollow">https:&#x2F;&#x2F;forums.servethehome.com&#x2F;index.php?threads&#x2F;brocade-ic...</a><p>Between wanting to dabble with a 10G file server and thinking of hosting 40-60 person LANs, this is incredible.
clktmralmost 4 years ago
The most interesting part for me came at the end: It runs router7+gokrazy, a self-written pure-Go userland instead of the traditional GNU userland.
daneel_walmost 4 years ago
At some point the idea of &quot;use more case fans, then all of them run at lower RPM&quot; simply turns on you and instead produce more noise. For the low wattages of this build a single case fan would&#x27;ve been sufficient to keep PSU and CPU fan at silent levels.<p>I have a few more watts in my PC case, but not a single case fan, and the machine still hovers at a comfortably quiet level at 1 meter&#x27;s distance. No temperature issues.
评论 #27794318 未加载
uvestenalmost 4 years ago
Great :) I’ve been wondering what equipment to get when I upgrade to the 25 gbit connection too. Maybe a custom build is the way to go after all!
louwrentiusalmost 4 years ago
I really respect this build, the only thing that I don’t like is the power consumption at idle of ~50 Watt. I understand that this is probably due to the used NICs but still.<p>It might almost be interesting to setup a second router (a Pi4 might do) for regular casual internet usage + VRRP and only turn on this beast when more bandwidth is required.<p>The 25Gbit machine would be the VRRP master and the Pi4 the slave.
great-potentialalmost 4 years ago
Not sure why you buy at fs.com when you have online stores in CH that are selling much cheaper:<p><a href="https:&#x2F;&#x2F;www.microspot.ch&#x2F;de&#x2F;computer-gaming&#x2F;pc-komponenten&#x2F;steckkarten--c589100&#x2F;intel-netzwerkadapterkarte-pci-express-3-0-2-x-sfp28--p0001320718" rel="nofollow">https:&#x2F;&#x2F;www.microspot.ch&#x2F;de&#x2F;computer-gaming&#x2F;pc-komponenten&#x2F;s...</a>
sydney6almost 4 years ago
To get a grip around the numbers, i quote from George Neville-Neil&#x27;s Talk at BSDCan &#x27;15 &quot;Measure Twice, Code Once&quot; [1]:<p>- 10 Gbps is 14.8 million 64 byte packets per second - 67.5 ns per packet or 200 cycles at 3 GHz - Cache miss is 32 ns<p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=LE4wMsP7zeA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=LE4wMsP7zeA</a>
评论 #27796491 未加载
spicyramenalmost 4 years ago
Good post, bring me back old memories where I used to setup my own PCs back in high school. I think the graphics card and GPU are really not required for a router. Few years ago there was a Linux project called zebra router which was deprecated in favor of <a href="https:&#x2F;&#x2F;www.quagga.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.quagga.net&#x2F;</a>
Aissenalmost 4 years ago
@secure: I&#x27;m a fan and love what you did with router7, gokrazy and your homelab. Note that this might be seen as &quot;How I replaced my off-the-shelf 600CHF router with a 1700CHF custom PC router&quot;.<p>I hope you&#x27;ll update this once Fiber7 updates their POP to show measured performance :-)
bastardoperatoralmost 4 years ago
I have a very similar setup using a desktop as a router (opnsense, 2 WAN, fibre&#x2F;switch) and it has a single, yet fatal flaw.<p>The power button. When you lose power, and the power comes back on, your router does not. If you are away, you must physically turn it back on.
评论 #27794115 未加载
评论 #27794300 未加载
评论 #27794136 未加载
cedricglealmost 4 years ago
I wish P4 fpga boards weren&#x27;t so expensive for hobbyist. You can do fun stuff with them and create a custom network pipeline. It&#x27;s totally overkill for a home network (they are used to create datacenter fabric) but it&#x27;s nice and shiny :)
nimishalmost 4 years ago
Without PPS measurements its hard to say how good this is. 1.488MPPS is needed to saturate a gigabit connection and that usually needs some tricks like poll mode drives&#x2F;dpdk&#x2F;etc on commodity hardware.
tw04almost 4 years ago
I’d strongly recommend people take a look at the supermicro (or your vendor of choice) Xeon-d or AMD embedded 3000 series.<p>Lower power draw, very quiet and more than powerful enough to push 25gbit with cpu left over for VMs.
gigel82almost 4 years ago
Damn, $70 &#x2F; month for 25Gbps symmetric; meanwhile, we&#x27;re paying $130 &#x2F; month for 1Gbps (400Mbps really) down &#x2F; 40Mbps up in Comcast monopoly-land in PNW.
Mave83almost 4 years ago
why no just buy a good nvidia&#x2F;mellanox nic and route directly on it? Modern NIC&#x27;s are amazing and you can offload everything if you like.
评论 #27795785 未加载
kortillaalmost 4 years ago
The article leaves out the actual network packet processing. Is this being done by the kernel or is dpdk being used?
评论 #27799085 未加载
kiririnalmost 4 years ago
This build would be simpler, better and probably cheaper overall with a server grade motherboard and ECC RAM
phreezaalmost 4 years ago
One day init7 is going to poach you :)