2022-09-11 13:45:06 +02:00
|
|
|
|
##### General Section #####
|
2022-09-10 10:06:17 +02:00
|
|
|
|
general:
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# List of timestamps where the simulator will break
|
|
|
|
|
# and call the callback function (cf breakpoints_callback entry)
|
2022-09-10 10:06:17 +02:00
|
|
|
|
breakpoints: []
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# Same as breakpoints but simulator will break every x second(s)
|
2022-09-10 10:06:17 +02:00
|
|
|
|
breakpoints_every: 0
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# Define the callback to call when the simulator reach a breakpoint
|
2022-09-11 08:17:46 +02:00
|
|
|
|
breakpoints_callback:
|
2022-09-11 14:48:59 +02:00
|
|
|
|
file: "platform_callback.py"
|
2022-09-11 08:17:46 +02:00
|
|
|
|
callback: "callback"
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# Turn on/off the debugging of esds
|
2022-09-10 10:06:17 +02:00
|
|
|
|
debug: off
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# Debug output file (default is ./esds.debug)
|
|
|
|
|
debug_file: "./esds.debug"
|
|
|
|
|
# Should esds take into account interferences
|
2022-09-10 10:06:17 +02:00
|
|
|
|
interferences: on
|
|
|
|
|
|
2022-09-11 13:45:06 +02:00
|
|
|
|
##### Nodes Section #####
|
2022-09-10 10:06:17 +02:00
|
|
|
|
nodes:
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# Number of nodes to simulate
|
2022-09-10 10:06:17 +02:00
|
|
|
|
count: 5
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# List of files used has implementation for each node
|
|
|
|
|
# Example:
|
|
|
|
|
# - 0,1,2 sender.py
|
|
|
|
|
# - 3-4 receiver.py
|
|
|
|
|
# Note that @ will be replaced by the last node id ex:
|
|
|
|
|
# 0-@ receiver.py is equivalent to 0-4 receiver.py
|
2022-09-10 10:06:17 +02:00
|
|
|
|
implementations:
|
2022-09-10 19:25:37 +02:00
|
|
|
|
- all sender.py
|
2022-09-11 15:16:30 +02:00
|
|
|
|
# Node implementations arguments
|
|
|
|
|
# arguments is a dictionary where key isrange of node the value is the arguments for
|
|
|
|
|
# this specific node range
|
|
|
|
|
arguments: {
|
|
|
|
|
"all": 2
|
|
|
|
|
}
|
2022-09-10 10:06:17 +02:00
|
|
|
|
|
2022-09-11 13:45:06 +02:00
|
|
|
|
##### Interfaces Section #####
|
2022-09-10 10:06:17 +02:00
|
|
|
|
interfaces:
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# Each entry for each node interfaces
|
2022-09-10 10:06:17 +02:00
|
|
|
|
wlan0:
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# Interface type (wired/wireless)
|
2022-09-10 21:58:44 +02:00
|
|
|
|
type: "wireless"
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# List of links between nodes in this interface
|
|
|
|
|
# Syntax infos:
|
|
|
|
|
# 1MBps = 1 megaBYTE per seconds
|
|
|
|
|
# 1Mbps = 1 megabit per seconds
|
|
|
|
|
# Each entry has the following format: <ListOfNodes> <Bandwidth> <Latency> <ListOfNodes>
|
2022-09-10 10:06:17 +02:00
|
|
|
|
links:
|
2022-09-11 13:45:06 +02:00
|
|
|
|
- 0 1Bps 10s 0
|
|
|
|
|
# List of transmission performance for each nodes (only for wireless interfaces)
|
|
|
|
|
# Each entry has the following format: <ListOfNodes> <Bandwidth> <Latency>
|
2022-09-10 16:53:39 +02:00
|
|
|
|
txperfs:
|
2022-09-11 13:12:48 +02:00
|
|
|
|
- 0-4 1Bps 10s
|
2022-09-11 13:45:06 +02:00
|
|
|
|
# Example of a wired interface
|
2022-09-10 10:06:17 +02:00
|
|
|
|
eth0:
|
2022-09-10 21:58:44 +02:00
|
|
|
|
type: "wired"
|
2022-09-11 07:57:31 +02:00
|
|
|
|
links:
|
|
|
|
|
- all 5Mbps 10s all
|