K
K
kokapuk2021-12-03 16:36:16
Python
kokapuk, 2021-12-03 16:36:16

How to simulate packet loss?

Hello, not so long ago it was necessary to artificially worsen the Internet. I dug up a program called clumsy, you can do a lot of things there, and most importantly, what I need is to simulate the loss of outgoing packets. The program is good, but I need to somehow automate this process, because in order to turn on the program, you need to minimize and press the button. I have two options, either to write packet loss, or somehow through the code to press this fucking button without minimizing, I will be very happy if you tell me at least a little, preferably in languages ​​from tags.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2021-12-03
@kokapuk

For example, in FreeBSD, the standard ipfw firewall has such a thing as dummynet - especially for testing purposes. There you can set the settings for the speed and percentage of losses. You can debug network applications very well if you make a fool with a firewall-like gateway between the client and the server of your application. Such a grid can easily be raised on virtual machines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question