I'm using Windows 7, and I have several computers on my network. For some reason, the network connection keeps disconnecting and immediately re-connecting. Infact, it may just be refreshing the DHCP lease... but I'm not sure.

I've tried changing the network card, and ethernet cable, but the issue is still happening. I can only imagine that the issue is with the ethernet switch, but this doesn't happen on my other desktop which uses the same ethernet switch.

Any ideas?

Update:

This is making applications like Skype and SSH clients unusable, as when it reconnects, everything else disconnects.

link|improve this question

59% accept rate
Is it a Laptop? Could it be the powersave settings? – user23907 Mar 4 '10 at 23:40
oh cabled so prob not. – user23907 Mar 4 '10 at 23:41
renewing a DHCP lease does not cause any sort of disconnection. – user23307 Mar 5 '10 at 3:10
does the network cards are the same brand? If it's the case they could use the same driver... – fluxtendu Mar 5 '10 at 7:09
Different brand; new one is a Belkin card with a Realtek chip. Old one is an on-board Atheros chip. – nbolton Mar 5 '10 at 18:18
show 6 more comments
feedback

5 Answers

up vote 1 down vote accepted
+100

Here's what I think is happening: DHCP clients attempt to renew the lease about halfway through the life of the lease. A DHCPREQUEST to renew goes to the DHCP server that granted the lease, and if the lease is extended, the lease expiration time is adjusted to reflect this. There is no ipconfig /release, which drops the assigned IP address, involved, so there is no interruption in connectivity. If, after some interval, the DHCP server which granted the lease cannot be contacted, DHCPREQUESTs are sent with no server specified, and if no response is received before the lease period ends, the lease expires. At lease expiration, an ipconfig /release occurs, dropping the assigned IP and interrupting connectivity. A broadcast DHCPDISCOVER request is made for any listening DHCP server, and when a server responds, a new lease is requested (ipconfig /renew does this if no lease is active). When a new lease is granted, connectivity is restored.

I think your problematic machine for some reason can't reach the assigning DHCP server, and so cannot receive a renewal. At lease expiration, connectivity drops, and a broadcast DHCPDISCOVER request is issued. The DHCP server hears this, responds, and a new lease is negotiated. Lather, rinse, repeat.

I predict that the connectivity interruption changed in sync with your changing the lease interval. If it did not, my theory is wrong, and you can stop reading.

If the loss of connectivity event happens at the end of a lease interval, we've got to figure out why the DHCPREQUEST renewal is not getting to the DHCP server. One possibility is something wrong with the routing table on that machine. Use route print when the machine is connected, and ipconfig /all to show the lease details.

link|improve this answer
+1 Lather, rinse, repeat. Anyway, I think you're right about the DHCP client not being able to contact the DHCP server; but I wonder why it occurs for this computer only? The routing is just default... Unless some app has changed it somehow, hmm... – nbolton Mar 15 '10 at 13:45
Does the trouble exist if you boot into Safe Mode with networking enabled? – goblinbox Mar 16 '10 at 23:01
feedback

I'd swaps ports on the switch with a machine you know hasn't had any issues.

If you experience issues on the other machine you'll know it's the switch and not the machine.

Could just be a faulty port

link|improve this answer
Yeah I'll swap ports. Thanks. – nbolton Mar 5 '10 at 18:17
Tried a different switch. Same issue. Seriously weird. – nbolton Mar 12 '10 at 12:40
feedback

Since you've replaced your NIC and Ethernet cable, it has to be a bad port on the switch.

link|improve this answer
Tried a different switch. Same issue. Seriously weird. – nbolton Mar 12 '10 at 12:41
1  
How different was the switch? I had an older D-Link DI-624 unit that would do exactly what you're describing. Turned out it wasn't able to handle the UDP load that my VPN connection to work was pushing on to the router. I replaced it, after some careful reading, with a D-Link DIR-655 and problem solved. – Ian C. Mar 12 '10 at 16:05
I second (and upvoted) @Ian C's suggestion. It could be a design flaw with that model (and similar models) of switch. Try something totally different -- score a used Cisco switch off eBay for $150, as they're basically bulletproof. – Alexander Burke Mar 13 '10 at 7:22
Completely different model of switch; one was TP-Link 10 port switch, the other is a Draytek router; same issue. I believe it's the PC that's the problem (maybe Windows or some other software is doing something crazy), since I've replaced the NIC, the cable, and the switch. – nbolton Mar 13 '10 at 13:12
feedback

Update your NIC drivers in Windows. Find out what chipset it uses, go straight to the NIC vendor's website (or the NIC chipset vendor's website), get the latest build of the driver, and use the Device Manager in Windows to update the driver by hand.

I second (and upvoted) @Ian C's suggestion. It could be a design flaw with that model and similar models of switch, as the vendors of low-end gear generally either buy gear from a small handful of OEMs, and they generally tend to just implement the IC vendor's reference design (meaning if they use the same Ethernet switching chip inside, they'll basically be the same design internally, with the same bugs and the same behaviour).

Try a totally different switch -- score a used Cisco switch off eBay for ~$150, as they're basically bulletproof and are high-performance (even a 5-year old Cisco switch will outperform a $50 cheapie switch made last year).

link|improve this answer
Thanks, but updating drivers and changing the switch does not fix the issue. – nbolton Mar 13 '10 at 13:11
feedback

Infact, it may just be refreshing the DHCP lease... but I'm not sure.

Generally, you can check this out, just to exclude the chance it happens because of DHCP. The output of ipconfig /all contains detailed data about the DHCP lease: when the IP address was assigned and when will it expire. An accidental typo in the config file of the DHCP server can lead to IP addresses being assigned to very short time intervals, which is not normal.

But since you write that this doesn't happen on all computers, then this is probably not your case. The issue described above would affect all computers that get IP addresses from the same DHCP server.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.