Simulation from localhost to localhost

2 posts · Closed

wibou7
12 Dec 2022

Hi!

I was wondering if running a 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 a 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?

Andrew SoftPerfect
12 Dec 2022

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.

This topic is closed. It has had no new posts for over a year, so the software versions it talks about may be out of date. Start a new topic in Connection Emulator if you have a similar question.