Simulate a network before a specific process

I am trying to simulate a scenario where the connection to the server of one process does not work, while the connection to the other server is completed. Just pulling out the network cable will not work in my case, since I need a different process connection in order not to sleep.

Is there any tool for this kind of work? I am on Windows. Thanks!

+3
source share
3 answers

There are several layers that you can simulate. It would be easiest if your two servers are listening on two different TCP ports. In this case, you can start two tcp proxies and stop / pause one when you want to simulate a failure. For Windows, I would suggest using tcpTrace to do this.

Another option is to have two servers attached to two virtual network adapters that are connected to a physical network adapter. Of course, if you have two physical network adapters, you can bind each server process to another physical network adapter.

WAN. . Packetstorm.

, , - . , . , " " .

+3

- mock . , , , , , .

+2

, / :

  • Windows, .
  • : / , .
  • , .
  • , .

, , . .

0
source

Source: https://habr.com/ru/post/1716276/


All Articles