There is such a task:

  1. There is an application where the video from the camera is broadcast (on one machine the server, on the other the application itself)
  2. It is necessary to create a situation in which an uneven number of frames will arrive in the application. Those. 0.5 seconds of frames is not, and then immediately 25 frames comes

To reproduce this situation, colleagues advise to lower network bandwidth. But I can not understand how. I tried using powershel to reduce the speed of the trace. New-NetQosPolicy -Name "FileCopy" -SMB -ThrottleRateActionBitsPerSecond 10MB command: New-NetQosPolicy -Name "FileCopy" -SMB -ThrottleRateActionBitsPerSecond 10MB but this did not work. I also tried in the QoS Packet Scheduler to increase the limit on the reserved bandwidth. The result is also zero.

    2 answers 2

    Speed ​​reduction works - but does not reflect the full range of possible network problems.

    For a more complete testing of the system under unstable communications, I would recommend setting up a virtual machine with Linux on board (I recommend the debian distribution, a stable branch, without gui), which would give access simultaneously to the "real" network in bridge mode - and to a separate closed network.

    In this case, the virtual machine can be configured as a router between these two networks by forwarding the port from it to the host computer through a closed network. And then you can use the tc module for iptables , which can create a full range of network problems:

    • speed limit;
    • random packet loss;
    • packet arrival in the wrong order;
    • packet duplication;

      After writing the question immediately found a way to lower the bandwidth network. And the way turned out to be incredibly simple.

      You need to go to the network settings "Properties" - select "Client for Microsoft networks" - click on "Configure" - "Advanced" - select "Speed ​​and Duplex" in the list and select the limit of 10mb

      • one
        These properties are not "Client for Microsoft Networks", but the network card itself, more precisely, its driver. And this setting is not for all drivers. - user194374
      • But actually this approach helped me in solving the problem. But if there is still some way to limit Windows speed with Windows devices, could you describe it? ? - Vorobey.A 2:41 pm
      • 2
        And how will this help to simulate the situation "0.5 seconds of frames are not there, and then 25 frames immediately come"? You think that you have solved the problem - but in fact you have decided a different one, with a different formulation. Virtuals with tc in this regard does not create a false illusion that you have modeled the situation. - AK