Benchmarking BGP implementations with bgperf
In this recipe, we aim to introduce BGP implementations with Python through a simple benchmarking project, as a simple exercise. We will benchmark a few BGP implementations with bgpert, a Python-based benchmarking tool for BGP implementations.
Getting ready
To install bgperf, clone the source code from its source repository:
$ git clone https://github.com/pradeeban/bgperf.gitFor this recipe, we forked bgperf and did some minor fixes to make it work with Python 3. The parent project is at https://github.com/osrg/bgperf, which is aimed to work with Python 2, and at the time of writing does not support Python 3. A copy of the pradeeban/bgperf repository as of now has also been included in the source code bundle of this book in the folder 14_2_benchmark_with_bgperf for your ease of reference.
Once you have cloned our bgperf fork, go to the parent directory of bgperf:
$ cd bgperfThe following command installs the listed requirements. This includes Docker...