Advertisement
Guest User

Benchmark SMB share through VPN vs SSH Tunnel

a guest
May 9th, 2013
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. Benchmark SMB share through VPN vs SSH Tunnel
  2. =============================================
  3.  
  4.  
  5.  
  6. Benchmarking throughput was measured with a dd command.
  7.  
  8. timeout --signal=SIGINT 30 dd if=somefile of=/dev/null
  9.  
  10. For each 30 second sample a different file was chosen so caching doesn't affect the results.
  11.  
  12.  
  13.  
  14. WITH COMPRESSION
  15. ================
  16. (CLIENT 200Mbps+ down bandwidth, SERVER 55Mbps down bandwidth, 8Mbps up bandwidth)
  17.  
  18.  
  19.  
  20. SMB share cifs mounted read only to remote address through OpenVPN PPTP over UDP, 5 samples @ 30 seconds each using dd
  21. 38522880 bytes (39 MB) copied, 29.9714 s, 1.3 MB/s
  22. 39014400 bytes (39 MB) copied, 29.993 s, 1.3 MB/s
  23. 39014400 bytes (39 MB) copied, 29.9924 s, 1.3 MB/s
  24. 39014400 bytes (39 MB) copied, 29.9871 s, 1.3 MB/s
  25. 38952960 bytes (39 MB) copied, 29.9836 s, 1.3 MB/s
  26.  
  27. OpenVPN ovpn client file
  28. ------------------------
  29. client
  30. dev tun
  31. proto udp
  32. remote myserver.com 1194
  33. resolv-retry infinite
  34. nobind
  35. auth-user-pass
  36. auth-nocache
  37. persist-key
  38. persist-tun
  39. verb 3
  40. comp-lzo
  41. <ca>
  42. -----BEGIN CERTIFICATE-----
  43. [CA Cert]
  44. -----END CERTIFICATE-----
  45. </ca>
  46. <cert>
  47. -----BEGIN CERTIFICATE-----
  48. [Client Cert]
  49. -----END CERTIFICATE-----
  50. </cert>
  51. <key>
  52. -----BEGIN PRIVATE KEY-----
  53. [Client Key]
  54. -----END PRIVATE KEY-----
  55. </key>
  56.  
  57.  
  58.  
  59. SMB share cifs mounted read only to localhost through SSH tunnel over TCP, 5 samples @ 30 seconds each using dd
  60. 39321600 bytes (39 MB) copied, 29.983 s, 1.3 MB/s
  61. 40734720 bytes (41 MB) copied, 29.9942 s, 1.4 MB/s
  62. 81715200 bytes (82 MB) copied, 29.9837 s, 2.7 MB/s
  63. 40734720 bytes (41 MB) copied, 30.0122 s, 1.4 MB/s
  64. 40673280 bytes (41 MB) copied, 29.991 s, 1.4 MB/s
  65.  
  66. SSH connection specific options
  67. -------------------------------
  68. -C
  69. CompressionLevel 6
  70. -f
  71. -L localhost:445:localhost:445
  72. -N
  73.  
  74.  
  75.  
  76. WITHOUT COMPRESSION
  77. ===================
  78. (CLIENT 200Mbps+ down 50Mbps+ up bandwidth, SERVER 55Mbps down 8Mbps up bandwidth)
  79.  
  80.  
  81.  
  82. SMB share cifs mounted read only to remote address through OpenVPN PPTP over UDP, 5 samples @ 30 seconds each using dd
  83. 38522880 bytes (39 MB) copied, 29.9814 s, 1.3 MB/s
  84. 39075840 bytes (39 MB) copied, 29.9995 s, 1.3 MB/s
  85. 39075840 bytes (39 MB) copied, 29.9982 s, 1.3 MB/s
  86. 39014400 bytes (39 MB) copied, 30.0036 s, 1.3 MB/s
  87. 39014400 bytes (39 MB) copied, 29.9749 s, 1.3 MB/s
  88.  
  89. OpenVPN ovpn client file
  90. ------------------------
  91. client
  92. dev tun
  93. proto udp
  94. remote myserver.com 1194
  95. resolv-retry infinite
  96. nobind
  97. auth-user-pass
  98. auth-nocache
  99. persist-key
  100. persist-tun
  101. verb 3
  102. <ca>
  103. -----BEGIN CERTIFICATE-----
  104. [CA Cert]
  105. -----END CERTIFICATE-----
  106. </ca>
  107. <cert>
  108. -----BEGIN CERTIFICATE-----
  109. [Client Cert]
  110. -----END CERTIFICATE-----
  111. </cert>
  112. <key>
  113. -----BEGIN PRIVATE KEY-----
  114. [Client Key]
  115. -----END PRIVATE KEY-----
  116. </key>
  117.  
  118.  
  119.  
  120. SMB share cifs mounted read only to localhost through SSH tunnel over TCP, 5 samples @ 30 seconds each using dd
  121. 40734720 bytes (41 MB) copied, 29.9302 s, 1.4 MB/s
  122. 40734720 bytes (41 MB) copied, 29.9505 s, 1.4 MB/s
  123. 40673280 bytes (41 MB) copied, 29.9522 s, 1.4 MB/s
  124. 40734720 bytes (41 MB) copied, 29.9636 s, 1.4 MB/s
  125. 40734720 bytes (41 MB) copied, 29.9383 s, 1.4 MB/s
  126.  
  127. SSH connection specific options
  128. -------------------------------
  129. -f
  130. -L localhost:445:localhost:445
  131. -N
  132.  
  133.  
  134.  
  135. CONCLUSION
  136. ==========
  137.  
  138. If you're watching videos over the network I recommend simply using an SSH tunnel rather than using OpenVPN. Use OpenVPN when you have no other choices.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement