views:

266

answers:

4

On a multi-tier application, I need to simulate various TCP/IP errors to test some reconnection code. Does anyone know of any tools (Windows based) I can use for this purpose? Thanks.

A: 

No tools that I'm aware of, but most of TCP errors can be emulated by a custom LSP filter. This article can get you started writing one


Rom
+3  A: 

Try netwox (formerly lcrzoex.) If it won't do it, it can't be done. It contains >200 tools.

Tyr
This let me find what I needed the fastest. Thanks.
Tom
+4  A: 

Scapy allows you to control every aspect of the packets, and randomly modify ("fuzz") the ones you don't want to control. If you're a command-line kind of guy, it's a great tool.

tbroberg
A: 

On FreeBSD, the best tool, by far, is dummynet, "a tool originally designed for testing networking protocols, and since then used for a variety of applications including bandwidth management. It simulates/enforces queue and bandwidth limitations, delays, packet losses, and multipath effects."

On Linux, you will have to use netem. (It seems there is now a port of dummynet but I never tried it.)

More details (in French) in my article.

bortzmeyer
Unfortunately, neither of these would work as we're a Windows shop, and I don't have time to try to port them. Thanks Though.
Tom