Incredibly slow web browsing on Windows Server 2012 R2

wowolaf

Weaksauce
Joined
Apr 26, 2006
Messages
68
Hi HardForum!

I'm having some network troubles. I've seen posts about this sort of thing before, but never a resolution that fits the problem case at hand. Because I have a DreamSpark subscription through my academic institution, I'm using Windows Server 2012 R2 as a desktop OS. Basically, I'm just trying to make it as much like Windows 8.1 as I can. I followed all of the steps on an online guide and made some changes such as enabling Wifi, visual effects, Metro, and all that jazz. I disabled enhanced security browsing. Everything is working swimmingly except for web browsing.

Web browsing is really, really slow. It takes upwards of 45-60 seconds to load a page. I have isolated the problem to the OS, but I'm a little lost on what steps to follow from there. Here's what I do know:

1) The connection itself is fine. I know this for several reasons:
1a) Speedtest reports ~25 mbps down, ~5 up. This matches my on-paper connection stats.
1b) Download speeds are also fine. Torrents and http/ftp downloads proceed at expected (fast) speeds. Web browsing is the only thing that crawls. Ping times are fine.
1c) I have 4 other computers on the network running other OSes (Windows 7 and various Linux distros), and none of them has any problems whatsoever.

2) This machine (the one causing problems) also works fine running a different OS or a live session of Linux. Web browsing is only crippled on Windows Server 2012 R2.

3) Changing the DNS server makes no difference.

4) Changing the connection type makes no difference (wireless, wired through router, plugged directly into modem - all the same). My default is wired through router, but that's something I don't mind changing if it gets me a solution.

5) The browser I'm using makes no difference either - slow loading on IE, Chrome, and Firefox. I haven't tried any other browsers, but I'm very skeptical that this could be the problem.

I've run into solutions to similar problems before that involved disabling "Large Send Offload" and related commands, but I've tried this on the current system and this has no effect. This is driving me crazy, as I'm pretty sure it must be some OS setting - it's almost as if a web proxy is in place and slowing things down, but netsh reports that no proxy is being used. Most solutions I've found online end up being a router problem or a DNS problem, neither which seem to be the case here (given that everything else running through this router - including this computer on a live Linux session - has no problems). Could anyone at [H] help me out here? I would greatly appreciate some guidance! I'm at my wits' end with this thing.

Edit: I just realized that going through a VPN solves the issue. Web browsing is normal speed through a VPN. I don't consider this a permanent solution, but it might help us diagnose the issue.
 
Last edited:
Ummm the one obvious thing that I didn't see you say you tried would be update the NIC drivers? Have you checked with the manufacturer for drivers? Maybe try some old drivers, or windows built in drivers or the newest drivers?
 
It's late now and I gotta get up early for work, but I can post some Wireshark results Tuesday. I have played around with different versions of the NIC drivers (and also different NICs) and nothing changes.

Thanks for the replies, guys!
 
One thing to check is the ECN Capability setting:
netsh int tcp show global

If it is enabled, try turning it off
netsh int tcp set global ecncapability=disabled

I've never actually tried this, but I remembered running across this fix a while back when I was looking at something else, worth a shot. This setting has been around for ages, but 2012 is the first time that MS has enabled it by default. Can cause exactly what you are seeing, since routers and other network equipment that don't properly handle this ECN stuff can just drop the packets. The reason why it would work over the VPN is that the original packet is encapsulated inside the VPN packet, thus getting through your router fine. The network equipment on the other end probably handles the ECN stuff OK, so works without a problem.
 
Last edited:
Is windows smart screen on? It might be waiting while it sends those sites to MS to check if they are malicious.
 
Enhanced Security Mode is on, and you shouldn't be surfing the web on a server, for any reason. :D
(I know you are using it as a desktop.........!)

Plus it sounds like a driver if it works over a VPN, granted it would still be using your NIC... HMM!!!!
 
Enhanced Security Mode is on, and you shouldn't be surfing the web on a server, for any reason. :D
(I know you are using it as a desktop.........!)

Plus it sounds like a driver if it works over a VPN, granted it would still be using your NIC... HMM!!!!

If regular downloads/speedtest/torrents and everything works but actual browsing of the site, I'm pretty sure it's not the driver. That would affect any network traffic passing through the device.

Like others have said, try running wireshark to watch where the delay is. It's got to be either the DNS query or something like smart screen waiting for an OK from MS on the site before showing content. It also can't hurt to use the network tracing in the browser (F12 in IE, ctrl/shift/q for firefox) and see if anything shows up there. This probably won't show anything though, since I think the delay is coming before the packets start moving.
 
What are the primary and secondary DNS servers set to on your NIC? External (like a home router) or the server itself, using Windows DNS server service? If using the DNS server service, I would add DNS forwarders and set them to Google's Public DNS service, or OpenDNS, or Norton, etc. Then see if that clears up the issue.
 
If regular downloads/speedtest/torrents and everything works but actual browsing of the site, I'm pretty sure it's not the driver. That would affect any network traffic passing through the device.

Like others have said, try running wireshark to watch where the delay is. It's got to be either the DNS query or something like smart screen waiting for an OK from MS on the site before showing content. It also can't hurt to use the network tracing in the browser (F12 in IE, ctrl/shift/q for firefox) and see if anything shows up there. This probably won't show anything though, since I think the delay is coming before the packets start moving.

It's good that you read the part where I said to turn off the "Enhanced Security Mode" feature......... Who'da thought, reading.... And the driver might be an issue as the OP stated it works fine over a VPN and not locally.
 
It's good that you read the part where I said to turn off the "Enhanced Security Mode" feature......... Who'da thought, reading.... And the driver might be an issue as the OP stated it works fine over a VPN and not locally.

Maybe you should read your own post, because you didn't say to turn it off, you made some useless comment about not browsing on a server OS... Plus OP already said it's disabled. I did mean that when I said smart screen, so I was confusing the terminology.

If he can do a speed test at full speed (through a browser.....), connect to torrents/ftp and a VPN, it is not the drivers. A browser is not do anything weird when trying to access the network that would cause driver issues that only show up under that circumstance. It sends the packets to the OS network stack, just like any other application. So this is definitely not a driver issue.

Without wireshark and/or the browser network debugging, we'd be guessing at this point.
 
One thing to check is the ECN Capability setting:
netsh int tcp show global

If it is enabled, try turning it off
netsh int tcp set global ecncapability=disabled

I've never actually tried this, but I remembered running across this fix a while back when I was looking at something else, worth a shot. This setting has been around for ages, but 2012 is the first time that MS has enabled it by default. Can cause exactly what you are seeing, since routers and other network equipment that don't properly handle this ECN stuff can just drop the packets. The reason why it would work over the VPN is that the original packet is encapsulated inside the VPN packet, thus getting through your router fine. The network equipment on the other end probably handles the ECN stuff OK, so works without a problem.

This ^ did you give it a try?
 
One thing to check is the ECN Capability setting:
netsh int tcp show global

If it is enabled, try turning it off
netsh int tcp set global ecncapability=disabled

I've never actually tried this, but I remembered running across this fix a while back when I was looking at something else, worth a shot. This setting has been around for ages, but 2012 is the first time that MS has enabled it by default. Can cause exactly what you are seeing, since routers and other network equipment that don't properly handle this ECN stuff can just drop the packets. The reason why it would work over the VPN is that the original packet is encapsulated inside the VPN packet, thus getting through your router fine. The network equipment on the other end probably handles the ECN stuff OK, so works without a problem.

OP here. I was about to start posting some Wireshark logs (sorry for my delayed responses, it has been a crazy week at work so far), but I saw this post and tried it. This fixed the problem! Although I haven't researched what ECN does under the hood, I noticed that you mentioned it isn't properly handled by some routers and equipment. This may be consistent with my scenario, as I do have a fairly old NIC and a fairly strange router. Thanks JBark! I would never have thought to do this.

I really appreciate everyone who took the time to reply. Thanks guys; [H] rocks.
 
Back
Top