openvpn TCP / UDP较慢的SSH / SMB性能

我对Debian lenny上的openVPNconfiguration的奇怪行为有疑问。 我有2个服务器configuration(一个基于tcp服务器和基于原始udp的基础)。 ISP的带宽是7Mbit / 7Mbit。

当我使用proto tcp-server时,我的下载服务器速率在6.4 Mbit / s左右 ,但是上传速率大约是3Mbit / s。

当我使用proto udp时 ,我的下载服务器速率约为3Mbit / s上传速度约为6.4Mbit / s

我尝试在服务器和客户端configuration上处理MTU,MSSFIX和密码开/关以同步速率,但没有解决scheme。


这里是基于TCP的SERVERconfiguration:

mode server tls-server port 1194 proto tcp-server dev tap0 ifconfig 11.10.15.1 255.255.255.0 ifconfig-pool 11.10.15.2 11.10.15.20 255.255.255.0 push "route 192.168.1.0 255.255.255.0" push "dhcp-option DNS 192.168.1.200" push "route-gateway 11.10.15.1" push "dhcp-option WINS 192.168.1.200" route-up /etc/openvpn/routeup.sh duplicate-cn ca /etc/openvpn/ca.crt cert /etc/openvpn/server.crt key /etc/openvpn/server.key dh /etc/openvpn/dh2048.pem log-append /var/log/openvpn.log status /var/run/vpn.status 10 user nobody group nogroup keepalive 10 120 comp-lzo verb 3 script-security 3 plugin /usr/lib/openvpn/openvpn-auth-pam.so system-auth persist-tun persist-key mssfix cipher BF-CBC 

这里是基于UDP的SERVERconfiguration:

 port 1194 proto udp dev tun0 local xx.xx.xx.xx server 11.10.15.0 255.255.255.0 ca /etc/openvpn/ca.crt cert /etc/openvpn/server.crt key /etc/openvpn/server.key dh /etc/openvpn/dh2048.pem log-append /var/log/openvpn.log status /var/run/vpn.status 10 user nobody group nogroup keepalive 10 120 comp-lzo verb 3 duplicate-cn script-security 3 plugin /usr/lib/openvpn/openvpn-auth-pam.so system-auth persist-tun persist-key tun-mtu 1500 mssfix 1212 client-to-client ifconfig-pool-persist ipp.txt 

这里是基于TCP / UDP的Windows CLIENTconfiguration:

 remote xx.xx.xx.xx --socket-flags TCP_NODELAY tls-client port 1194 proto tcp-client #proto udp dev tap #dev tun pull ca ca.crt cert latis.crt key latis.key mute 0 comp-lzo adaptive verb 3 resolv-retry infinite nobind persist-key auth-user-pass auth-nocache script-security 2 mssfix cipher BF-CBC 

我已经安装了一些OpenVPN的,从来没有这个问题,但如果你在VPS上运行这个,那么这可能是为什么你遇到不同的传输速率,因为即使你在服务器的私人区域,你仍然在一般1 NIC并根据stream量,我会想象UDP和TCP的变化,UDP往往是不太可靠,数据可以发送或接收损坏和折扣不会经常发生滞后尖峰,而TCP更可靠,检查数据和报告断开更快。

我build议你跳到IRC上的irc.freenode.net #openvpn使用像Mirc这样的客户端,他们相当有帮助,应该能够回答这个问题,但我相信这是一个VPS服务器的结果, m正确。