Right Clicking Network File Very Slow Over VPN

5,075

Solution 1

Have you any apps installed which have added context menu items to Explorer? WinZip, 7-Zip and others will do this. Try disabling any additional context menus and see if that resolves the issue.

Solution 2

SMB is somewhat of a "ping-pong-protocol" - it does a lot of interdependent back-and-forth communications for most of its actions. A Technet blog entry explains this quite colourfully:

If I wanted to copy a 1MB file over HTTP, it would look something like this over the wire:

Client:  HTTP GET /myfile.zip HTTP/1.0  
Server:  HTTP 200 OK, followed by 1MB of data

The only things that will slow down the HTTP transfer are a TCP window that is too small, slow start, and congestion avoidance.

The same transfer over SMB would look like this:

Client:  C SMB NT Create AndX myfile.zip  
Server:  S SMB NT Create AndX  
Client:  C Read AndX offset 0x0 data 0xf000  
Server:  R Read AndX (with 61440 bytes of data)  
Client:  C Read AndX offset 0xf000 data 0xf000  
Server:  R Read AndX (with the next 61440 bytes of data) 
(Repeat this another 16 times until we get 1MB of data)

So transfers and directory listings will not only depend on your available downstream bandwidth, but also greatly on the latency of your link and the bandwidth of your upstream connection. The same blog article recommends changing SizReqBuf on the file servers to 61440 as described in KB 320829 to somewhat alleviate this situation - this especially should help with speeding up directory listings.

Share:
5,075

Related videos on Youtube

Reafidy
Author by

Reafidy

Updated on September 18, 2022

Comments

  • Reafidy
    Reafidy almost 2 years

    I am having real troubles with a VPN connection. The VPN connection is not used for a internet connection just for file browsing.

    File browsing is slow, taking about 3-4 seconds to bring up a list of folders. I can live with this, however the problem is when I right click on a file. Sometimes the right click menu comes up instantly but sometimes it brings up the wait icon for anywhere between 30 seconds to a few minutes before displaying the menu.

    I ran speedtest.net and the results were: 3.08 Down/0.13 Up (Mbps)

    0.13Mbps = 16kbps upload. So I am not experiencing miracles with opening files. A 120kb file can take anywhere from 5 to 30 seconds. Sometimes transfering/opening files happens as expected other times its slow but the real issue is with the right click as mentioned.

    Anyone have any ideas?

    Using PPTP

    Clients are all windows 7 pro

    • Zoredache
      Zoredache almost 12 years
      What OS do you have on your clients? SMB over a high latency link sucks unless you have Vista + 2008. Even then it isn't going to be great.
    • Reafidy
      Reafidy almost 12 years
      @Zoredache, all client using windows 7 pro.
    • Reafidy
      Reafidy almost 12 years
      @TomTom, latency is 59ms
    • Reafidy
      Reafidy almost 12 years
      @Chris, thanks - I removed the right click apps which didn't seem to help at first but one of the right click apps was Norton Internet Security. I couldn't disable its right click menu item via the registry so I un-installed the whole program. This appears to have made a substantial difference. I still get the wait cursor sometimes but only for a max of maybe 5-10 seconds not minutes like before. Thanks, you should post your comment as a solution.
  • pfo
    pfo almost 12 years
    CIFS 1 is very chatty and highly dependant on round trip latency, but CIFS 2.x is supposed to be much better but server and client need to properly negotiate CIFS 2.x. You can get enterprise grade WAN accelerators for CIFS from Cisco et al but it won't get much better than CIFS 2.x anyways and that's far from good (depending on RTT latency).
  • the-wabbit
    the-wabbit almost 12 years
    @Reafidy did you restart the server service or the server altogether? Also, you did not mention your file server's version and service pack. As already noted by pfo, it would not be effective for SMB version 2 connections (only available with Windows Server 2008 or newer servers and Windows Vista or newer clients).
  • Reafidy
    Reafidy almost 12 years
    @syn, yes I have restarted the server itself. Using Windows Server 2008 R2 Standard with Service Pack 1 and Windows 7 Pro on the clients. Sorry for not mentioning that. I presume from your comments that means changing the SizReqBuf wont have any effect? Any other ideas?
  • Reafidy
    Reafidy over 11 years
    Your right that does sound weird, I'm willing to try anything though. Although the answer by Chris helped it has not completely solved the issue.
  • Reafidy
    Reafidy over 11 years
    Didn't make any difference unfortunately.