Ysurac / openmptcprouter

OpenMPTCProuter is an open source solution to aggregate multiple internet connections using Multipath TCP (MPTCP) on OpenWrt
https://www.openmptcprouter.com/
GNU General Public License v3.0
1.81k stars 258 forks source link

Iperf UDP not working #3430

Open Raquel1L opened 3 months ago

Raquel1L commented 3 months ago

Expected Behavior

I want to evaluate the performance of the network, in the uplink scenario, from my laptop to a Google Cloud VM (where the openMPTCProuter VPS is installed) using an RPI 4 (where the openMPTCProuter router is installed) as a router.

To do this, I ran the Iperf UDP client on the laptop and the iperf server on the VM and, in parallel, did a tcpdump on the VM. So the idea is to generate traffic from the laptop to the VM.

In short, the command I ran on the laptop was: iperf -c -u -b 5M -t 10

and on the GC VM I ran iperf -s -u sudo tcpdump -i any -w packets.pcap port 5001

What I expected to see in the capture I made was only the MPTCP protocol.

Current Behavior

However, the capture shows UDP packets, which means that MPTCP didn't encapsulate the traffic coming from iperf UDP, as I thought it would.

Captura de ecrã 2024-06-28, às 16 28 44

What could be wrong for this to happen? How can I get MPTCP to work with Iperf?

Note that MPTCP is working on other ports, not related to iperf.

Captura de ecrã 2024-06-28, às 16 42 32

And the system status is all alright

image

Specifications

Ysurac commented 3 months ago

MPTCP is only for TCP, to aggregate UDP a TCP VPN is used. Server IP have a direct route from the router so direct UDP traffic between router and server is not aggregated (UDP traffic from client use the VPN, so is aggregated).

Raquel1L commented 3 months ago

Thank you very much for your reply!

I've used Iperf with TCP, and the VM's packet capture shows only TCP packets. Shouldn't it be showing MPTCP?

This time, the command I ran on the laptop was: iperf -c -p 59990 -b 5M -t 10

and on the GC VM I ran iperf -s -p 59990 sudo tcpdump -i any -w packets.pcap

So, my other questions are: How can I use iperf from a laptop to the VM with MPTCP working as expected? Which ports should I use?

Captura de ecrã 2024-07-01, às 12 10 21
github-actions[bot] commented 13 hours ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days