Internet drops, clock wrong

Status
Not open for further replies.

Tom Brokaw

Ars Tribunus Militum
2,897
Windows 10 Anniversary update
MSI ASUS Z170A, using onboard NIC

Getting random internet drops - browsing and suddenly a page won't display.

- Other computers (two windows phones, wife's laptop, HTPC) do NOT lose connection
- Cannot access router when it goes.
- Resetting router will make it go away, but
- Disconnecting and reconnecting the cable at either end, PC or Router, instantly restores connection.
- Have tried two different ports on router

Possibly related. Windows clock is not keeping the correct time. I've gone back and forth between telling it to update automatically and doing it manually, but it inevitably goes an hour or two slow, sometimes the minutes are off also. BIOS time/date is correct. Resetting the internet connection does not fix the clock.

Thoughts?
 

forky

Ars Tribunus Militum
2,263
Subscriptor++
yeah, two thoughts:

1. First, check time zone is correct. Drop to CLI, type w32tm /monitor. Note where (IP or host) it's (hopefully) getting time from.
Then, w32tm /stripchart /computer:[ip or FQDN from above] /dataonly /samples:4

2. Killer NIC? Is there MSI software for it installed? Do you have spare Intel NIC you can use or a switch between your PC and the router?
 

Tom Brokaw

Ars Tribunus Militum
2,897
Thanks.

Results from w32tm /monitor were:
Code:
GetDcList failed with error code:  0x8007054B.
Exiting with error 0x8007054B
That took me to this page,
http://superuser.com/questions/376162/h ... c-time-ntp
which has a fix if one has access to gpedit.msc. I don't, but part of the answer involved running this:
w32tm /query /configuration

Which told me the service wasn't started. I opened services.msc and it shows Windows Time as Disabled; rightclick | Properties Set to Automatic. This let me start it, and the time immediately jumped back an hour, which is incorrect. w32tm /monitor still fails.

Time/date settings: "Set time automatically" and ""Set time zone automatically" were off, so I turned them on. The latter went right on but the former gave me the processing wheel for a while. I restarted the Windows Time service and ""Set time automatically" turned on; clock is currently correct but w32tm /monitor still fails with the same error.

w32tm /query /configuration now returns the following:
Code:
[Configuration]

EventLogFlags: 2 (Local)
AnnounceFlags: 10 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 10 (Local)
MaxPollInterval: 15 (Local)
MaxNegPhaseCorrection: 54000 (Local)
MaxPosPhaseCorrection: 54000 (Local)
MaxAllowedPhaseOffset: 1 (Local)

FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 1 (Local)
UpdateInterval: 360000 (Local)


[TimeProviders]

NtpClient (Local)
DllName: C:\WINDOWS\system32\w32time.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 604800 (Local)
Type: NTP (Local)
NtpServer: time.windows.com,0x9 (Local)

NtpServer (Local)
DllName: C:\WINDOWS\system32\w32time.dll (Local)
Enabled: 0 (Local)
InputProvider: 0 (Local)
That shows I'm using NTP, which according to the superuser page is correct, since I'm not on a domain.

After I did all that I ran the second command you suggested, which I think may not be helpful since the time is now correct, but here it is (command and results pasted):
Code:
w32tm /stripchart /computer:time.windows.com /dataonly /samples:4
Tracking time.windows.com [40.76.58.209:123].
Collecting 4 samples.
The current time is 11/16/2016 5:59:53 PM.
17:59:53, -00.0012537s
17:59:55, -00.0080186s
17:59:57, -00.0031056s
17:59:59, -00.0104442s

re: network. Device Manager indicates it's an Intel NIC, and shows the driver is up to date. I haven't verified that yet. Windows Power Management doesn't show an option (that I can see at least) to turn off a wired connection, only wireless, and at any rate my power settings are set to High Performance. Device Manager does have an option that was selected: "Allow the computer to turn off this device to save power" and I've disabled that. Hopefully it will work.

Thanks for your response!
 

forky

Ars Tribunus Militum
2,263
Subscriptor++
1. glad you sorted this out, even with my w32tm /monitor instead of w32tm /query /source - I've not used non domain computer for ages now, sorry about that.

2. MSI z170A is apparently a family and there're models: Gaming m5, m7, Gaming Pro. etc. The first one in my search had Killer NIC. Yours is probably Pro then? Still, do you have MSI Lan Manager (or whatever it's called) installed?
 

ZPrime

Ars Legatus Legionis
18,847
Subscriptor++
[url=http:/civis/viewtopic.php?p=32297353#p32297353:1f9zj9yo said:
Tom Brokaw[/url]":1f9zj9yo]
I opened services.msc and it shows Windows Time as Disabled;
On a standard Win10 install, the Windows Time service is "Manual (Triggered)" startup. If it was disabled... I would immediately suspect that the machine was possibly hacked/malware'd or had something else fishy going on, because there is literally no good reason to disable it otherwise.
 
The network connectivity problems also suggest to me a DHCP issue. The fact that you can change link state (disconnect and reconnect the cable) and it will work again makes it sounds like the machine isn't renewing its DHCP lease. The next time the problem happens, open a command prompt and run ipconfig. If you have an IPv4 address that starts with 169., then Windows Time isn't the only problem you're facing.
 

Tom Brokaw

Ars Tribunus Militum
2,897
Thanks, I'll run a scan. Hasn't happened since the last time I've posted.

Of note, I incorrectly identified my mobo as MSI; It's ASUS. (My 960 is MSI. I blame, uh, ... NOT... me... for this mixup.) The NIC is Intel Ethernet Connection I219-V and I've downloaded the latest driver from Intel. I'll install it this weekend when I have more time to troubleshoot.

Appreciate everyone's input.
 

Tom Brokaw

Ars Tribunus Militum
2,897
[url=http:/civis/viewtopic.php?p=32299093#p32299093:3k4b5q6t said:
DrWebster[/url]":3k4b5q6t]The network connectivity problems also suggest to me a DHCP issue. The fact that you can change link state (disconnect and reconnect the cable) and it will work again makes it sounds like the machine isn't renewing its DHCP lease. The next time the problem happens, open a command prompt and run ipconfig. If you have an IPv4 address that starts with 169., then Windows Time isn't the only problem you're facing.
Yes:
Code:
Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) Ethernet Connection (2) I219-V
   Physical Address. . . . . . . . . : 9C-5C-8E-D3-B0-30
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::3d6e:d965:2312:1bfb%13(Preferred)
[b]   Autoconfiguration IPv4 Address. . : 169.254.27.251(Preferred)[/b]
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 60578958
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-A1-E9-47-9C-5C-8E-D3-B0-30
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled
What does that mean though?
 

Paladin

Ars Legatus Legionis
33,855
Subscriptor
Could definitely be that and your router which should be giving a DHCP lease or renew for an existing lease is not happy giving you a lease before it should have expired. Possibly your computer is asking to renew excessively frequently and the router is either denying you or is crashing or something.

First thing is to tackle the software or other issues on the machine. Malware and other scans will be a good start but if it were me, I would just format and reinstall and check it out after that (before installing a lot of stuff).
 

Tom Brokaw

Ars Tribunus Militum
2,897
Avast found 11 items, 8 instances of OCSetupHelp.dll and 3 others, all PUPs. The "others" are shady but trusted leftovers from my XP days. Nothing I'm concerned about.

I'll run a malwarebytes scan tomorrow. Currently have internet (obviously), but clock is 2:20 slow. Windows Time service shows as Running (Automatic), the same as it did after I tried Method 1.

Interestingly, restarting the service changes the time to 1:04 slow. Restarting a second time, 1:00 slow. A third time, 0:59 slow, although since I'm comparing to my cel phone, that could have been a discrepancy of less than a minute. Fourth and fifth restarts had no visible effect on the time.
 

Tom Brokaw

Ars Tribunus Militum
2,897
[url=http:/civis/viewtopic.php?p=32317369#p32317369:3nrit93g said:
forky[/url]":3nrit93g]Could you filter events (System) with Time-Service set as event source.

You might also want to force /resync /nowait and if that doesn't do any good, enable w32tm debug logging.
I'll have to google how to do these, I'm not familiar enough with event logger (assuming that's where I'd see it).

What is the output of w32tm /query /status
C:\WINDOWS\system32> w32tm /query /status
Leap Indicator: 3(last minute has 61 seconds)
Stratum: 0 (unspecified)
Precision: -6 (15.625ms per tick)
Root Delay: 0.1203458s
Root Dispersion: 4368.6968058s
ReferenceId: 0x00000000 (unspecified)
Last Successful Sync Time: 11/19/2016 11:44:17 AM
Source: time.windows.com,0x9
Poll Interval: 10 (1024s)
 

Tom Brokaw

Ars Tribunus Militum
2,897
Thanks again. I really appreciate you continuing to troubleshoot a stranger's problem over the internet.

Filtering showed Event ID 158, "The time provider 'VMICTimeProvider' has indicated that the current hardware and operating environment is not supported and has stopped. This behavior is expected for VMICTimeProvider on non-HyperV-guest environments. This may be the expected behavior for the current provider in the current operating environment as well."

Googling that led me to KB3160132
https://support.microsoft.com/en-gb/kb/3160312

It's written for version 1511, and I'm running 1607, but I tried Workaround 1 anyway; we'll see if it sticks.

Today I didn't lose connection (that I've noticed, haven't been home part of the day) but the clock went back to last night: at about 4:15 this afternoon (11/20) the time/date was reading ~10:45 11/19. Time.is showed me as 17 hours slow.
 

forky

Ars Tribunus Militum
2,263
Subscriptor++
I'm guessing a dead CMOS battery and the hardware RTC is unable to keep time.
Dead battery won't matter from what I've seen, Windows ignores CMOS clock once booted when NTP is configured properly. Have few Dell machines here at work with dead CMOS battery (the battery is under heatsink o_O ) and it asks to press F1 to continue on reboot, yet the time in Windows is correct - synced from DC.

If I were OP, as a last resort I'd nuke HKLM\System\CurrentControlSet\Services\W32Time with service down and merge the key and settings from working machine, followed with unregister / register just to be sure. ATM it's still interesting how time service got disabled and is out of whack.
 

Tom Brokaw

Ars Tribunus Militum
2,897
Edit to summarize two main points:
1. Clock drops an hour at the same minute as when I turned it on. systeminfo | find /i "boot time" shows I booted at 7:22 today, and at the change from 5:21 to 5:22 (that actually happened at about 10:34), it went back an hour to 4:22. Thanks to f.lux for making that change highly visible.
2. Today it was consistently N hours, 12 minutes, and 8.x seconds slow as compared to time.is.

The live CD idea is a good one, I'll give that a shot just to try and eliminate hardware. I've been assuming it's not that since the motherboard was purchased new in April and the time in the BIOS was correct the sole time I checked it.

Shortly after I tried the workaround listed in KB3160312, the time went off again, as compared to time.is, by 12m8.5s. I was out of the house for about two hours, and upon returning, the difference had increased to 2h12m8.3s. Two data points is pretty small but that might be a pattern like (n*12m)+8s. In the roughly 20 minutes I've been typing this reply, it went from the above to 3h12m8.3s. Edit: after another hour it's 4h12m8.2s.

Also, poking through Event Viewer found event ID 52, "Warning The Time Service has set the time with offset 62281 seconds." (which is about 17 hours as noted in a previous post) This happened shortly after I'd done the workaround. XML below. Technet has a registry edit that is in the same area the one Forky is suggesting.

https://technet.microsoft.com/en-us/lib ... 96(v=ws.10).aspx

However, it looks like mine is currently set to 1.

@forky, to clarify your suggestion, you're suggesting to delete that entire folder (containing Config, Parameters, SecureTimeLimits, TimeProviders, TriggerInfo), and then import that same folder from a good machine?

Code:
Log Name:      System
Source:        Microsoft-Windows-Time-Service
Date:          11/20/2016 4:22:24 PM
Event ID:      52
Task Category: None
Level:         Warning
Keywords:      
User:          LOCAL SERVICE
Computer:      DESKTOP-444R4T5
Description:
The time service has set the time with offset 62281 seconds.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Time-Service" Guid="{06EDCFEB-0FD0-4E53-ACCA-A6F8BBF81BCB}" />
    <EventID>52</EventID>
    <Version>0</Version>
    <Level>3</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2016-11-21T00:22:24.252574600Z" />
    <EventRecordID>5989</EventRecordID>
    <Correlation />
    <Execution ProcessID="848" ThreadID="9836" />
    <Channel>System</Channel>
    <Computer>DESKTOP-444R4T5</Computer>
    <Security UserID="S-1-5-19" />
  </System>
  <EventData Name="TMP_EVENT_TIME_JUMP_AUDIT">
    <Data Name="TimeOffsetSeconds">62281</Data>
  </EventData>
</Event>
 

forky

Ars Tribunus Militum
2,263
Subscriptor++
@forky, to clarify your suggestion, you're suggesting to delete that entire folder (containing Config, Parameters, SecureTimeLimits, TimeProviders, TriggerInfo), and then import that same folder from a good machine?
yes, export that key first on your machine as a backup and on working computer for import, stop time service, delete everything in HKLM\System\CurrentControlSet\Services\W32Time, import from working machine, set time in Windows manually, start the service. Might also do unregister / register for good measure.

(I might be wrong but I think I've seen someone had problem with time and f.lux.)
 

ZPrime

Ars Legatus Legionis
18,847
Subscriptor++
Silly question to ask, but the timezone itself is set correctly, right? If this isn't a laptop, turn off the auto-timezone thing in Win10 and just set whatever zone you're in.

Flaky CMOS battery would make some sense if the machine is being shut off, but if it's running the whole time I didn't think Windows normally touched the CMOS for clock.
 

Tom Brokaw

Ars Tribunus Militum
2,897
Update.

No issues with the time yesterday.

I tried to boot onto two live discs before I left for work in the morning, Linux Mate 18 and Ubuntu 16.04 as that's what I had lying around, but both gave me a black screen and I had to hard shut down. Upon booting into Windows, Windows wanted to do a repair due to the hard shutdowns, which I declined but rebooted. After that the time has been within less than a second as compared to time.is.

So it's been good for a day with no deliberate action on my part.
 
Status
Not open for further replies.