Skip to content

Networks

Erik Borowski edited this page Mar 18, 2023 · 1 revision

Parameters

Multiple networks can be specified using TOML's array of tables syntax. Every network needs these parameters:

parameter type default role
Name String required Name of the network, passed to output generators.
Type String WirelessLAN Type of the network. Possible values are: wireless_lan, wireless, emane, hub and switch.

WirelessLAN

Networks of the type wireless_lan can also have these parameters. If they are missing, default values are applied.

parameter type default role
Bandwidth Int 54000000 Bandwidth of the Wireless-LAN in bps.
Range Int 400 Range of the Wireless-LAN in pixels.
Jitter Int 0 Transmission jitter of the Wireless-LAN in usec.
Delay Int 5000 Transmission delay of the Wireless-LAN in usec.
Loss Float 0.0 Loss of the Wireless-LAN in %.
Promiscuous Bool False Promiscuous mode for the Wireless-LAN.

Wireless

Networks of the type wireless can also have these parameters. If they are missing, default values are applied. Please note: Networks of the type wireless were added in CORE version 9.0.0 while coreemu-lab uses CORE version 7.0.0. Experiments with wireless networks will therefore not work with coreemu-lab.

parameter type default role
Bandwidth Int 54000000 Bandwidth of the Wireless in bps.
Range Int 400 Range of the Wireless in pixels.
Delay Int 5000 Transmission delay of the Wireless in usec.
LossInitial Float 0.0 Initial loss of the Wireless in %.
LossFactor Float 1.0 Loss factor of the Wireless.
LossStartRange Float 0.0 Starting range of loss of the Wireless in pixels.
Jitter Int 0 Transmission jitter of the Wireless in usec.
Movement Bool true Whether movement is enabled for the Wireless.

Example

[[Network]]
Name = 'switched_network'
Type = 'switch'

[[Network]]
Name = 'university_wifi'
Type = 'wireless_lan'
Bandwidth = 17
Range = 275
Jitter = 0
Delay = 5000
Loss = 0.0
Promiscuous = true

[[Network]]
Name = 'network_using_hub'
Type = 'hub'

[[Network]]
Name = 'emane_network'
Type = 'emane'

[[Network]]
Name = 'wireless'
Type = 'wireless'
Movement = true
Bandwidth = 54000000
Range = 400
Jitter = 0
Delay = 5000
LossInitial = 0.0
LossFactor = 1.0
LossStartRange = 300.0
Clone this wiki locally