tools/zep_dispatch: document topogen usage
This commit is contained in:
parent
546202fe51
commit
40f71284b3
17
dist/tools/zep_dispatch/README.md
vendored
17
dist/tools/zep_dispatch/README.md
vendored
@ -144,3 +144,20 @@ instance [0 | Iface: 7 | mop: 2 | ocp: 0 | mhri: 256 | mri 0]
|
|||||||
```
|
```
|
||||||
|
|
||||||
This should also be visible in Foren6.
|
This should also be visible in Foren6.
|
||||||
|
|
||||||
|
Topology generation
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
To generate a random topology use the `topogen.sh` script.
|
||||||
|
This will randomly distribute *N* nodes on on a *W* × *H* map.
|
||||||
|
Each node has a radio range *R* ± *V* where *V* is a random variance that can also be set to 0.
|
||||||
|
|
||||||
|
The further away a node is from a sending node, the higher the packet loss probability.
|
||||||
|
Nodes outside the sending radius have a zero probability of receiving a packet.
|
||||||
|
|
||||||
|
If you have `gnuplot` installed this will also generate a plot of the resulting node distribution:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
A light color means that a node only has a one-way connection to the network, gray means a node is
|
||||||
|
entirely isolated.
|
||||||
|
|||||||
10
dist/tools/zep_dispatch/topogen.sh
vendored
10
dist/tools/zep_dispatch/topogen.sh
vendored
@ -16,11 +16,11 @@ else
|
|||||||
CRESET=
|
CRESET=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WIDTH=100
|
WIDTH=100 # X dimension of the simulated world
|
||||||
HEIGHT=100
|
HEIGHT=100 # Y dimension of the simulated world
|
||||||
RANGE=30
|
RANGE=30 # base node radio range
|
||||||
VARIANCE=15
|
VARIANCE=15 # random offset to radio range
|
||||||
NUM=10
|
NUM=10 # number of nodes
|
||||||
|
|
||||||
echo "writing to $FILE"
|
echo "writing to $FILE"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user