@@ -74,14 +74,33 @@ LIMA_SSH_PORT_FORWARDER=false limactl start
7474- Performs faster compared to SSH based forwarding, when VSOCK is not available
7575- No additional child process for port forwarding
7676
77+
78+ ## Accessing ports by IP address
79+
80+ To access a guest's ports by its IP address, connect the guest to the ` vzNAT ` or the ` lima:shared ` network.
81+
82+ The ` vzNAT ` network is extremely faster and easier to use, however, ` vzNAT ` is only available for [ VZ] ( ./vmtype/vz.md ) guests.
83+
84+ ``` bash
85+ limactl start --network vzNAT
86+ lima ip addr show lima0
87+ ```
88+
89+ See [ Config » Network » VMNet networks] ( ./network/vmnet.md ) for the further information.
90+
7791### Benchmarks
7892
7993<!-- When updating the benchmark result, make sure to update the benchmarking environment too -->
8094
81- | Use case | GRPC | ** SSH (w/ VSOCK)** | SSH (w/o VSOCK) |
82- | -------------| ----------------| --------------------| -----------------|
83- | TCP | 5.37 Gbits/sec | 6.32 Gbits/sec | 4.06 Gbits/sec |
84- | TCP Reverse | 7.11 Gbits/sec | 7.47 Gbits/sec | 3.84 Gbits/sec |
95+ | By localhost | SSH (w/o VSOCK) | GRPC | SSH (w/ VSOCK) |
96+ | --------------| -----------------| ----------------| -----------------|
97+ | TCP | 4.06 Gbits/sec | 5.37 Gbits/sec | 6.32 Gbits/sec |
98+ | TCP Reverse | 3.84 Gbits/sec | 7.11 Gbits/sec | 7.47 Gbits/sec |
99+
100+ | By IP address | lima: shared | vzNAT |
101+ | ---------------| ----------------| ----------------|
102+ | TCP | 3.46 Gbits/sec | 59.2 Gbits/sec |
103+ | TCP Reverse | 2.35 Gbits/sec | 130 Gbits/sec |
85104
86105The benchmarks detail above are obtained using the following commands
87106
@@ -94,6 +113,8 @@ Host -> iperf3 -c 127.0.0.1 //Benchmark for TCP (average of "sender" and "receiv
94113Host -> iperf3 -c 127.0.0.1 -R //Benchmark for TCP Reverse (same as above)
95114```
96115
116+ The benchmark result, especially the throughput of vzNAT, highly depends on the performance of the hardware.
117+
97118<details >
98119<summary >Benchmarking environment</summary >
99120<p >
0 commit comments