如何調試緩慢的 VPN 傳輸速度

如何調試緩慢的 VPN 傳輸速度

我有以下網路設置,兩台機器位於不同城市的不同 ISP 上。

+----------------------------+           +------------------------------+
| HOME                       |           | REMOTE                       |
| ISP: 50mbit up/down        | +-------> | ISP: 200mbit down/20mbit up  |
| SCP: 50mbit up/20mbit down |           | SCP: 50mbit down/20mbit up   |
| VPN: 33mbit up/6mbit down  | <-------+ | VPN: 33mbit down/6mbit up    |
|                            |           |                              |
+----------------------------+           +------------------------------+

在家裡,我有 50 兆位元的上傳和下載(透過 speedtest.net 測量),在遠程,我有 200 兆位元的下載和 20 兆位元的上傳。 HOME 是 Win10 VPN 用戶端,REMOTE 位於pptpdUbuntu Server 16.04 上。使用pptpdMS-CHAPv2 128 位元加密,但 CPU 沒有顯示任何明顯的負載。

  • 當上傳數據超過網際網路從家裡到遠程,我使用 SCP 獲得了 50mbit 的完整數據。
  • 下載資料時網際網路從遠端到家庭,我使用 SCP 獲得了完整的 20mbit。

  • 當上傳數據超過VPN從家庭到遠端我使用 SCP 獲得 33 mbit。

  • 下載時下載資料經過VPN從遠端到家庭,使用 SCP 僅獲得 6mbit。

本來我已經注意到Samba的問題,但是當我透過VPN切換到SCP時,速度仍然只有6mbit,所以看起來該協定沒有發揮作用。

網路設定訊息 REMOTE 位於千兆位元 LAN 上。 HOME 使用 WiFi 2.4 GHz 802.11n。

遠端 ifconfig

eno1      Link encap:Ethernet  HWaddr **redacted**
          inet addr:192.168.0.253  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::feaa:14ff:fe27:4fe4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:130858099 errors:0 dropped:6196 overruns:0 frame:0
          TX packets:87190652 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:152330084160 (152.3 GB)  TX bytes:69709394766 (69.7 GB)
          Interrupt:20 Memory:f7e00000-f7e20000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:149614 errors:0 dropped:0 overruns:0 frame:0
          TX packets:149614 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:151856141 (151.8 MB)  TX bytes:151856141 (151.8 MB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:192.168.0.100  P-t-P:192.168.0.101  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1396  Metric:1
          RX packets:458 errors:0 dropped:0 overruns:0 frame:0
          TX packets:297 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:49460 (49.4 KB)  TX bytes:146281 (146.2 KB)

ipconfig /全部在HOME上

PPP adapter VPN:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VPN
   Physical Address. . . . . . . . . :
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.0.101(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.255
   Default Gateway . . . . . . . . . :
   DNS Servers . . . . . . . . . . . : 192.168.0.253
                                       8.8.8.8
   NetBIOS over Tcpip. . . . . . . . : Enabled

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-N 7260
   Physical Address. . . . . . . . . : **redacted**
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.1.16(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 14. ledna 2017 11:44:39
   Lease Expires . . . . . . . . . . : 16. ledna 2017 12:42:59
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DNS Servers . . . . . . . . . . . : 208.67.222.222
                                       192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

長話短說:在 PPTP VPN 上,遠端電腦僅使用可用上傳頻寬的三分之一。我想知道為什麼。

相關內容