Simulation from localhost to localhost

Started by wibou7

Simulation from localhost to localhost   13 December 2022, 06:18

Hi!

I was wondering if running simulation where only one machine is both sender/receiver is supported?

We are developing a streaming application that we need to harden against various network degradation.

The idea is to have a setup looking like this:
SENDER (172.16.0.100) --> Network Simulation --> RECEIVER (172.16.0.100)

The packets never leave the interface in such setup so nothing is seen by Connection Emulator.
But I was wondering if there was a way, either by fiddling with the local machine config or directly in CE?
SoftPerfect Support forum - Andrew avatar image

Re: Simulation from localhost to localhost   13 December 2022, 09:54

No, there no way to simulate things like packet loss or out-of-order arrival with a local host connection. The reason is that the OS does not process local host connections the same way as inbound or outbound ones.

You can however set up a virtual machine (e.g. VMWare or VirtualBox VM) with a guest OS. Then launch the sender in the VM and the receiver on the host, or vice versa. The Connection Emulator can be installed either in the VM or on the host, whichever is more convenient. This way there will be network traffic flowing in or out of the VM with the Connection Emulator degrading network conditions along the path.

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. 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: