Simulating network latency for localhost connection on Windows 7

5

2

I need to simulate network latency to a program running on the local computer, connecting to a local service. Thus far I have tried dummynet (a windows build of ipfw) which I got working after some trial and error. While it generally works, I can't seem to get it to filter localhost traffic. Even after adding a rule from any to any which affects external traffic, this makes no difference for local connections. I would appreciate if anyone knows how to simulate local latency using dummynet or a different tool. The tool should be able to simulate latency generically in IP packets, (TCP and UDP) and not be protocol specific.

nitro2k01

Posted 2013-10-17T15:27:44.503

Reputation: 2 259

Answers

5

On windows 7 you should take at Clumsy:

clumsy makes your network condition on Windows significantly worse, but in a managed and interactive manner.

clumsy demo

magnetik

Posted 2013-10-17T15:27:44.503

Reputation: 199

Yes, this is the right tool with visible effect. Unfortunately it does not have effect on 'localhost ping' statistics. – TomR – 2017-07-12T13:07:27.587

2

If you're just testing HTTP traffic the Fiddler Web Debugger is pretty easy to use. You just select the stream, flip to the AutoResponder tab, select "Add Rule", then right click on the rule and select "Set Latency".

heavyd

Posted 2013-10-17T15:27:44.503

Reputation: 54 755

Sorry, it's not http traffic. – nitro2k01 – 2013-10-17T15:55:53.560

1

@nitro2k01 then you should edit your question and include the information so people don't need to go hunting in comments of answers to get all of the information.

– Scott Chamberlain – 2013-10-17T16:47:14.027

3I have edited the question now, but I would think that if people make extra assumptions about the question that are not mentioned in the post, that's their prerogative. – nitro2k01 – 2013-10-17T21:09:58.210