mudler / edgevpn

:sailboat: The immutable, decentralized, statically built p2p VPN without any central server and automatic discovery! Create decentralized introspectable tunnels over p2p with shared tokens
https://mudler.github.io/edgevpn
Apache License 2.0
559 stars 81 forks source link

poor data transfer speed #162

Open Villain88 opened 3 months ago

Villain88 commented 3 months ago

Hello I'm using version 0.25.0 and two servers with Ubuntu 22.04 After establishing a connection between the nodes, I observe a low data transfer speed I have little experience interacting with libp2p and my tests showed that the speed slowdown does not exceed 15-20% of the channel speed when hosts are connected directly, without relays. Where the problem could be?

EDGEVPNCONFIG=config.yaml ./edgevpn --address 10.1.0.12/24 --holepunch

Traffic capture using wireshark shows that network packets are sent directly

mauromorales commented 1 month ago

@Villain88 are you using the file-send and file-receive commands or you mean like doing scp between two nodes which are connected. I ask because the speed of the former is much better than that of the latter