Simulating high latency with high bandwidth

Started by Sunil

Sunil

Simulating high latency with high bandwidth   03 December 2019, 10:46

I have two machines that have a two-way latency of <5ms, and have about 700 Mbps bandwidth (up & down).

I am trying to simulate a WAN connection between them with 60mbps bandwidth (up & down) and a two-way latency of 100ms. However, when I set the latency to 50ms in connection emulator, the bandwidth also drops to 10mbps. The same behavior is observed even if I set the bandwidth to unlimited.

Can you provide some guidance for simulating high latency high bandwidth environment?
SoftPerfect Support forum - Ann avatar image
Ann

Re: Simulating high latency with high bandwidth   03 December 2019, 10:56

It sounds like you are using TCP in your tests. For TCP, there is an inherent relationship between latency and maximum bandwidth calculated as:
TCP-Window-Size-in-bits / Latency-in-seconds = Bits-per-second-throughput

The standard window size on a Windows machine is 2^16 bytes, so this formula gives us 2^16 * 8 / 0.05 = 10,485,760 bits-per-second-throughput. It is exactly what you are observing: with the standard window size and 50ms latency the maximum throughput is 10 Mbps. This article How to calculate TCP throughput for long distance links provides more details on the matter.

To achieve higher speeds, you would need to use UDP or adjust TCP window size, depending on what devices you are using for the test. While recent versions of Windows support the so-called TCP window auto-tuning, it may not work if either side or an intermediate router do not support it. This article from Microsoft explains more: TCP Receive Window Auto-Tuning Level feature in Window.

You may need to employ a protocol analyser to see what Window Scaling ends up being set to.

Reply to this topic

Sometimes you can get the answer faster if you try the forum search and/or have a look at the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 ********   ******    **     **  **      **  ******** 
    **     **    **    **   **   **  **  **  **       
    **     **           ** **    **  **  **  **       
    **     **   ****     ***     **  **  **  ******   
    **     **    **     ** **    **  **  **  **       
    **     **    **    **   **   **  **  **  **       
    **      ******    **     **   ***  ***   ******** 

Message: