Windows – Simulating network latency for localhost connection on Windows 7

ipfwlatencynetworkingwindowswindows 7

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.

Best Answer

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