Guide: Solution to network drops killing WinSMP clients.

Killer[MoB]

[H]ard|DCer of the Month - March 2008
Joined
Jan 15, 2001
Messages
3,943
Guide: How to prevent network drops from killing the Windows SMP folding client in Windows XP.

This issue comes up in the forum every few days it seems. A client frozen or seemingly hung up when the box is otherwise running just fine. The problem 99.9% of the time is a network connection issue. Any kind of issue, such as a bad cable, a faulty port on a hub, router or switch, a NIC in power save mode or just flakey wireless connection problems could cause the folding client to stop processing. The problem lies in the way the client uses the network for loopback with the folding cores communicating with each other.

A post this morning made me really get after a fix for this as it just seems crazy that something could not be done to fix this issue without it being some complicated task. I think I have it fixed. Loopback is the problem and also the solution to the problem.

The solution is to install the Microsoft Loopback Adapter. It will help maintain a constant network connection within your own machine. Although this is not its intended purpose, it does work for solving this folding problem. Frame times remained the same. Around 13:55 on a P2653 running on an E4500 @ 2.926 GHz. The major difference?? Now I can unplug the network cable completely and it never misses a beat.

What is it and is it a piece of hardware?

It is not hardware. It is a virtual network adapter installed in some cases when you need to test network related things and there is no network available. It is also used when running some virtual machines in various versions of windows.

Where is it and how can I get it?

You don't need to get it because you already have it. This is almost too easy.


How do I install it and set it up?

1) Go to Add Hardware. (Start>Control Panel>Printers and Other Devices>Add Hardware)

2) You should now be at the add hardware wizard.
Click Next.
Select "Yes, I have already connected the hardware" and click next.
Scroll to the bottom of the list and highlight "Add a new hardware device" and click next.
Select "Install the hardware that I manually select from a list (advanced)" and click next.
Highlight "Network adapters" and click next.
Highlight "Microsoft" under manufacturer and "Microsoft Loopback Adapter" under network adapter. Click next.
Click Next again.
Now click Finished.
Close out the Printers and other hardware window.

3) Go to network connections. (Start>Connect to>Show all connections) or (Start>My Network Places>View Network
Connections)
You will see a new Local Area Connection that is listed as being a Microsoft Loopback Adapter. You will also see that it says Limited or no connectivity. We are about to fix that.
Right click on this new loopback connection and select properties.
Double click Internet protocol (TCP/IP).
Select use the following IP address.
Set the IP address to a 192.168.x.x number that would not normally be assigned on your network. Ex 191.168.255.200
Click on the subnet mask box and it should auto fill with 255.255.255.0.
Leave everything else blank.
Click OK.
This may take the machine a couple minutes to think about.
Once it's done, you can close all the windows. Note that on the Network Connections window, the loopback adapter now shows connected.

4) There is no 4. You are done.


I set up all three of my WindowsXP SMP machines like this. Then I flipped the power strip off that has my cable modem, router and both switches on it. Turned it all back on and the machines didn't miss a folding beat.

I wouldn’t try this at work unless you are the one in charge. No warranties expressed or written. Use at your own risk and all that jazz. ;)
 
reserved space for follow ups.

genome@home Overall Rank: 229 Points: 72871.77
 
Excelent work !!! This is perfect :).

One of the reasons I like Vista is that this problem doesnt exist there:)

 
Awesome idea there... I never knew there is a loopback adapter available ! I will try that on the laptops at work since the wifi isn't reliable. My own way to deal with the freezes is to have a task restart the client each 6 hours but with that loopback adapter, I won't need to restart at all.

 
the MS loopback adapter is also great if you want to setup a VPN server on a machine with only one nic...

great idea using it to fix the SMP problem tho!
 
So, I was about to post a auction on eBay and the transformer on my DGL4300 died. The most amazing thing happened next......my folding boxen didn't miss a beat. I sprung into action and replaced the router with my spare and the boxen continued to fold.

So a big thank you to me for saving my ass and the asses of my folding boxen with this kickin' guide.

 
I owe you a beer. None of my SMP boxen have hung in the few days after i implemented this fix. And just in time for a snowboarding weekend in Lake Tahoe so i don't have to worry about restarting clients all weekend while i'm gone! Someones looking for a [H]ard folder of the month nomination haha.




 
+1 for awesome [H]folding tips. We ought to compile all of these various bits of info into a [H]folders guide and sticky it.
 
Thought this was covered already. I know the guys at EOCF Folding forum were talking about this months ago.
 
Weird... I did this trick on all my boxes and now all the cores are throwing communication errors... They will chug for about 40% then boom error

 
What solved it for me is just assigning each box a static IP I went from a status of one machine per day drop'n to going weeks at a time... I have not had one machine go down since we started the Chimp Challenge... :)

 
This would be really cool running F@H on a USB jump drive on a machine that has no web connection. When the WU is done, it can be ported to another machine for UP/DN loading.

There is an AMD X2 with two processors at my work place that just sits around doing NOTHING. It's not even connected to the company network. 4 cores of pure number crunching power sitting idle all day long. :(

Hopefully this tip can do something about that.

Thanks !
 
Back
Top