zehome / MLVPN

Multi-link VPN (ADSL/SDSL/xDSL/Network aggregation / bonding)
http://www.mlvpn.fr/
BSD 2-Clause "Simplified" License
523 stars 130 forks source link

Transmission rate slows down when using mlvpn0 #121

Open beyondhong opened 5 years ago

beyondhong commented 5 years ago

Hi, @zehome I have two 4G modules and I test their transmission rate via www.speedtest.net. Both of them can reach about 26Mbps. So theoretically I will get about 2X26Mbps if I use mlvpn.

I did some tests and I got these results:

  1. one 4G module without mlvpn -> 26Mbps
  2. one 4G module with mlvpn -> 14.17Mbps
  3. on server side, 75Mbps
  4. two 4G modules with mlvpn -> 10.8Mbps (tcpdump shows both two links carry data)

mlvpn_test

So it seems the transmission rate will slow down when using mlvpn0 and link aggregation did not take effect.

Here are my config:

// client ==================================== [general] statuscommand = "/tmp/root/c_mlvpn0_updown.sh" tuntap = "tun" mode = "client" interface_name = "mlvpn0" timeout = 30 password = "123"

reorder_buffer_size = 0 //disable reorder system by this way?

loss_tolerence = 60

[filters]

[wwan0] bindhost = "wwan0" // get ip by interface remotehost = "120.42.xx.xx" //my server IP remoteport = 1600

[usb0] bindhost = "usb0" remotehost = "120.42.xx.xx" remoteport = 1601

//route table --------------- admin@router:~# ip rule list 0: from all lookup local 32764: from 10.147.166.32/27 lookup t2 32765: from 10.146.207.88/29 lookup t1 32766: from all lookup main 32767: from all lookup default

admin@router:~# ip route list table t1 10.146.207.88/29 dev wwan0 default via 10.146.207.93 dev wwan0 admin@router:~# ip route list table t2 10.147.166.32/27 dev usb0 default via 10.147.166.33 dev usb0 admin@router:~# admin@router:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 218.104.128.106 0.0.0.0 255.255.255.255 UH 0 0 0 wwan0 10.147.166.33 0.0.0.0 255.255.255.255 UH 0 0 0 usb0 58.22.96.66 0.0.0.0 255.255.255.255 UH 0 0 0 wwan0 10.146.207.93 0.0.0.0 255.255.255.255 UH 0 0 0 wwan0 10.146.207.88 0.0.0.0 255.255.255.248 U 0 0 0 wwan0 10.147.166.32 0.0.0.0 255.255.255.224 U 0 0 0 usb0 192.168.57.0 0.0.0.0 255.255.255.0 U 0 0 0 br0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 mlvpn0 128.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 mlvpn0 0.0.0.0 10.146.207.93 0.0.0.0 UG 0 0 0 wwan0

// server ==================================== [general] statuscommand = "/tmp/root/s_mlvpn0_updown.sh" tuntap = "tun" mode = "server" interface_name = "mlvpn0" timeout = 30 password = "123"

reorder_buffer_size = 0

loss_tolerence = 60

[filters]

[wwan0] bindhost="120.42.xx.xx" bindport=1600

[usb0] bindhost="120.42.xx.xx" bindport=1601

Is there anything wrong with my config? Or what problem it might be? Thanks!

c_mlvpn0_updown.sh.txt client.conf.txt s_mlvpn0_updown.sh.txt server.conf.txt sourece_routing.txt

Neustradamus commented 5 years ago

@beyondhong: Any news?

playcamping commented 5 years ago

any news?

2019년 4월 30일 (화) 오후 12:12, Neustradamus notifications@github.com님이 작성:

@beyondhong https://github.com/beyondhong: Any news?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zehome/MLVPN/issues/121#issuecomment-487809566, or mute the thread https://github.com/notifications/unsubscribe-auth/ADEFRXXPBTG6SH3VO3BQE7DPS62I3ANCNFSM4HCULXPA .

ezbik commented 2 years ago

me too. MLVPN shows aggregated bandwidth as 50% of the slowest 4G link. I have two 4G modems. MPTCP kernel works much better with about 70% of sum of bandwdith of underlying links.