../_images/clownix64.png

8. Socket based lanΒΆ

This was the only way to connect virtual guests at the start of the cloonix software.

../_images/sock_iperf3.png

At the quemu level, for the guest, the driver seen for the inside guest kernel is the virtio-net driver on the frontend. The backend inside quemu is a patched code cloonix specific that bring the packets from the virtio into a cloonix unix socket.

As you can see on the picture, the iperf3 throughput with this socket type is more than 4 Gigabits per second. Here is the logical path for a packet:

+-------------+
|    iperf3 TX|
+-------------+
| Guest Kernel|
+-------------+
|   virtio net|
|    qemu     |
| cloonix sock|
+---+---------+
    |
    | unix socket in user world
    v
+---+---------+
| cloonix lan |
+---+---------+
    |
    | unix socket in user world
    v
+---+---------+
| cloonix sock|
|      qemu   |
|   virtio net|
+-------------+
| Guest Kernel|
+-------------+
|    iperf3 RX|
+-------------+