User Tools

Site Tools


linux:kcptun

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:kcptun [2018/01/04 12:57] percylinux:kcptun [2018/01/05 12:33] (current) percy
Line 8: Line 8:
 ===== kcptun usage with shadowsocks ===== ===== kcptun usage with shadowsocks =====
 ==== start the server ==== ==== start the server ====
-On you VPN, you should already run your shadowsocks server with port '838'+On you VPS, you should already run your shadowsocks server with port '838'
   alias kcptun_start='~/kcptun/server_linux_amd64 -t "127.0.0.1:838" -l ":4000" -mode fast2'   alias kcptun_start='~/kcptun/server_linux_amd64 -t "127.0.0.1:838" -l ":4000" -mode fast2'
 or just use the command or just use the command
Line 14: Line 14:
  
 ==== start client ==== ==== start client ====
-So in your client: +So in your local machine, start the client: 
-sudo ./client_darwin_amd64 -r "xxx.pjq.me:4000" -l ":838" -mode fast2+  sudo ./client_darwin_amd64 -r "xxx.pjq.me:4000" -l ":838" -mode fast2
  
 Now we have set the connection from local port 838 to the remote port 4000. Now we have set the connection from local port 838 to the remote port 4000.
Line 22: Line 22:
  
  
 +==== Testing the speed ====
 +I did the follow testing
 +  * Just download it directly, curl  https://ef.pjq.me/download/20160420104351.rar -o asdf.rar
 +  * Download it with Shadowsocks,  curl --socks5-hostname localhost:1080 https://ef.pjq.me/download/20160420104351.rar -o asdf.rar
 +  * Download it with Shadowsocks and kcptun, curl --socks5-hostname localhost:1080 https://ef.pjq.me/download/20160420104351.rar -o asdf.rar
 +
 +So we can see the speed is 8689 -> 60858 -> 1088k, the speed is increased significant.
 +  8.6k * 136, 60k * 18 = 1088k
 +
 +<code>
 +Jianqings-MBP:~ pjq$ curl  https://ef.pjq.me/download/20160420104351.rar -o asdf.rar
 +  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
 +                                 Dload  Upload   Total   Spent    Left  Speed
 +  0 72.3M    0  175k    0       8689      0  2:25:31  0:00:20  2:25:11  3599^C
 +Jianqings-MBP:~ pjq$ curl --socks5-hostname localhost:1080 https://ef.pjq.me/download/20160420104351.rar -o asdf.rar
 +  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
 +                                 Dload  Upload   Total   Spent    Left  Speed
 +  1 72.3M    1 1055k    0      60858      0  0:20:46  0:00:17  0:20:29 65614^C
 +Jianqings-MBP:~ pjq$ curl --socks5-hostname localhost:1080 https://ef.pjq.me/download/20160420104351.rar -o asdf.rar
 +  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
 +                                 Dload  Upload   Total   Spent    Left  Speed
 +100 72.3M  100 72.3M    0      1088k      0  0:01:08  0:01:08 --:--:-- 1235k
 +
 +</code>
  
  
/var/www/dokuwiki/wiki/data/attic/linux/kcptun.1515041844.txt.gz · Last modified: 2018/01/04 12:57 by percy