-
Notifications
You must be signed in to change notification settings - Fork 0
Usage: GUI
The GUI can be launched (after install, within the virtual env) with networksim. This will launch a blank simulation environment.
Devices can be added to the simulation from the panel on the left, and are grouped into collapsable sections.

The panel at the bottom contain the simulation contols and show the current step count of the simulation and controls for moving the simulation forward, as well as a button to reset the view pane.

Clicking on a device type on the left panel will open a device creation window, where default options can be changed or optional information can be provided. For example, this can be used to change the number and properties of interfaces a device has, its name, and how fast it is able to process packets.

Once there are two more more devices (for example, a device and a switch), they can be connected by right-clicking one of them, selecting an interface from the interface menu, and clicking the "Connect" option to enter connection mode.

When in connection mode, click another device to select one of it's available interfaces to connect to.

A cable creation dialog window will open where you can change the characteristics of the cable.

Note that the connection between devices will use the smallest properties of the connected interfaces AND the cable. If the interfaces on the devices have a bandwidth of 10, but the cable only has a bandwidth of 1, the connection will be limited to a bandwidth of 1. The "length" determines how many "steps" in the simulation it takes packets to travel between interfaces.
Once connected, packets can be sent via the interface menu, and packets traveling along a cable can be clicked on to inspect their contents. Devices can also be disconnected by right-clicking the cable connecting them and clicking "delete".