-
Notifications
You must be signed in to change notification settings - Fork 2
Custom fakeroute topologies
Marc-Olivier Buob edited this page Oct 20, 2021
·
12 revisions
fakeroute
explores successively the following directories until finding some valid configuration files:
./targets
~/.fakeroute/targets
/etc/fakeroute/targets
Write your own file(s) in one of these directories. The filename must respect the following pattern: <ip_address>-<description>
where:
-
ip_address
denotes a fakeroute destination that you can probe with atraceroute
-like tool; -
description
is an arbitrary name.
Example: "1.1.1.1-asymlb"
.
Remark: It's important to follow this convention, otherwise the file is ignored by fakeroute
.
The first line of your file should be:
#DESC Description of your network topology
Then, write one line per arc. An arc involves a source vertex (which may be either "start" or an IP address) and a target vertex (which may be "end" or an IP address) separated by a space character.
- start stands for the node running traceroute measurements
- end stands for the target node of the traceroute
# DESC Simple asymmetric load balancer
start 10.0.0.1
10.0.0.1 10.0.0.2
10.0.0.2 10.0.1.3
10.0.0.2 10.0.2.3
10.0.1.3 10.0.1.4
10.0.2.3 10.0.0.5
10.0.1.4 10.0.0.5
10.0.0.5 10.0.0.6
10.0.0.6 10.0.0.7
10.0.0.7 end
You may use the plot
script to draw the corresponding network topology into a png
file.