Statistics
| Branch: | Revision:

iof-tools / BGPpysim / README.md @ a395aaa8

History | View | Annotate | Download (1.33 KB)

1
Internet on FIRE BGP py simulator
2
===
3

    
4
## Intro
5

    
6
This is a python simulator for BGP, and the main purpose of this simulator 
7
is to reproduce the results presented in the [Fabrikant paper
8
](https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=5935139)
9

    
10
## Execution
11

    
12
A general fabrikant graphml file needs to be provided to the simulator to replicate the environment.
13

    
14
A general fabrikant graphml could be produced with the script in the `topos` folder with the following command:
15

    
16
`python3 topos/genFABREXfig1.py`
17

    
18
It will produce the file `test.graphml` that can be used to create a simulation.
19

    
20
Now is possible to run a simulation with the command:
21

    
22
`python3 bgpSimulator.py -g test.graphml -w outputDir`
23

    
24
Pay attention, the output dir must exist, in case you did not create it you can 
25
use the command `mkdir outputDir`
26

    
27
Now in the output directory you will find the simulation files produced by the environment.
28

    
29
A more deep explanation of the simulator is available in the `bgpSim_documentation` folder
30

    
31
## Repeated execution
32

    
33
For simplicity to execute more experiments on the same topology is possible to use 
34
the bash file provided, it's called `nSimulations.bash` it only needs the number of 
35
simulations to repeat, the graph file and the output dire, follow this example:
36

    
37
`./nSimulations.bash 50 test.graphml outDir`
38

    
39
Obviously the output dir must exist.