FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
Network Delay Simulator

nsim enable-disable

Summary/usage

nsim enable-disable <interface-name-1> <interface-name-2> [disable].

Description

Enable or disable network simulation cross-connect on two interfaces The network simulator must have already been configured, see the "nsim_configure" command.

Place the interfaces into a bridge group, to ensure that interfaces are in promiscuous mode.

Example usage
To enable or disable network simulation cross-connect
nsim enable-disable TenGigabitEthernet2/0/0 TenGigabitEthernet2/0
nsim enable-disable TenGigabitEthernet2/0/0 TenGigabitEthernet2/0 disable
vpp# nsim enable-disable <intfc> <intfc> [disable]

Declaration and implementation

Declaration: nsim_enable_disable_command (src/plugins/nsim/nsim.c line 291)

Implementation: nsim_enable_disable_command_fn.

set nsim

Summary/usage

set nsim delay <time> bandwidth <bps> packet-size <nbytes>.

Description

Configure the network simulation cross-connect Once the simulator is configured, use the "nsim enable-disable" command to set up a cross-connect with the supplied delay characteristics.

The cross connect configuration may be changed without restarting vpp but it is good practice to shut down the interfaces.

Example usage
To configure the network delay simulator:
set nsim delay 10.0 ms bandwidth 5.5 gbit packet-size 128

vpp# set nsim delay <nn> bandwidth <bb> packet-size <nn>

Declaration and implementation

Declaration: set_nsim_command (src/plugins/nsim/nsim.c line 515)

Implementation: set_nsim_command_fn.

show nsim

Summary/usage

Display network delay simulator configuration.

Description

Display state info for the network delay simulator.

Example usage
To display the state of the network simulator
show nsim verbose
Network simulator cross-connects TenGigabitEthernet2/0/0 and TenGigabitEthernet2/0/1
...inserting link delay of 10.00 ms, 20.00 ms round-trip
 Configured bandwidth: 10.10 gbit/sec
 Configured packet size: 128
 Sim uses 157814784 bytes total
vpp# show nsim

Declaration and implementation

Declaration: show_nsim_command (src/plugins/nsim/nsim.c line 585)

Implementation: show_nsim_command_fn.