[LINUX] I made it thinking "My virtual machine router can't be this fast"

Overview

This article is the title of @ tnishinaga's "My virtual machine router can't be this slow / KernelVM online 1" It will be a homage. Please note that we do not consider security or anything else because it is like "I should compromise and move as it is".

~~ (I'll tell you first) ~~ Summary

No matter how much VirtIO is enabled, the speed may not increase if the overhead or the OS installed on the VM is different.

Trigger

From "Previously written desire"

It's about time to become enthusiastic about virtualization and to be interested in "IPv6 IPoE", but I can't afford the hardware budget and the demand for feature phones is also high. It's declining, and the people around me are saying, "What? New hardware? Infrastructure? It would be nice if we could make the Internet, but I'm pretty reluctant to spend money (ry", but someday I'll introduce a new mackerel and "use it now." I would like to take on the challenge of "virtualizing the PC router that is being used" (when?

bought

I bought it with Yahoo Auction and a certain Naughty benefit.

The total cost is about 30,000 yen, but it is cheaper and has a higher grade than the Cerelon PC router built 12 years ago.

setup

Network configuration / measurement conditions

network.png

The measurement site used:

Measurement result

iperf3.png SPEEDTEST by RBB.png When I enabled VirtIO on a FreeBSD VM and interacted with the outside world with PPPoE, the result was that the down speed was high but the up speed was not high. Other than that, I wonder if it's a good place However, if I happen to run ookla's speed test on FreeBSD, it seems that the speed of up will come out, so I guess that something is wrong with the firewall (PF) ~ ~ I do not need ~ ~ I guess ... ~~ Anyway, I decided to use e1000e instead of VirtIO to make the tea muddy, and decided to make a v4 over v6 router. You can use it with v4 PPPoE.

Summary

No matter how much VirtIO is enabled, the speed may not increase if the overhead or the OS installed in the VM is different.

bonus

I searched for and used a public iperf server that does not use VPS or public cloud services, but honestly I found it in Japan, so can anyone do it? (While looking at the i-measures I saw on SoftEther and JANOG from a distance

[^ bcm5751]: I compromised because it was a little expensive for Intel NIC due to the additional HDD. ~~ "I don't like crabs ... I don't like crabs ...!" "BroadCom !!" ~~

Recommended Posts

I made it thinking "My virtual machine router can't be this fast"
I made my goimports
I made my own OSS because I wanted to contribute to it
I made my own language. (1)
I made my own AML
[Python] I made my own library that can be imported dynamically
I made a chatbot with Tensor2Tensor and this time it worked