Open Routing, OpenR, is Facebook's internally designed and developed Interior Routing Protocol/Platform. OpenR was originally designed and built for performing routing on the Terragraph mesh network. OpenR's flexible design has led to its adoption in other networks, including Facebook's new WAN network, Express Backbone.
Please refer to openr/docs/Overview.md to get
started with OpenR.
Please refer to the examples directory to see some useful ways to
leverage the openr and fbzmq libraries to build software to run with OpenR.
- Developer Group: https://www.facebook.com/groups/openr/
- Github: https://github.com/facebook/openr/
- IRC: #openr on freenode
Take a look at openr/docs/DeveloperGuide.md
and CONTRIBUTING.md to get started contributing.
The Developer Guide outlines best practices for code contribution and testing.
Any single change should be well tested for regressions and version
compatibility.
The code of conduct is described in CODE_OF_CONDUCT.md
We have tried OpenR on Ubuntu-16.04, Ubuntu-18.04 and CentOS 7/8.
OpenR should work on all Linux based platforms.
- Compiler supporting C++17 or higher
- libzmq-4.0.6 or greater
At the top level of this repo are the build and openr directories. Under the
former is a tool, gen, that contains scripts for building the
project. The openr directory contains the source for the project.
OpenR requires these dependencies for your system and follow the traditional cmake build steps below.
cmakegflagsgtestlibsodiumlibzmqzstdfollyfbthriftfbzmqre2-devel
We've provided a script, build/build_openr.sh, tested on Ubuntu LTS releases.
It uses gendeps.py to install all necessary dependencies, compile OpenR and install
C++ binaries as well as python tools. Please modify the script as needed for
your platform. Also, note that some library dependencies require a newer version
than provided by the default package manager on the system and hence we are
compiling them from source instead of installing via the package manager. Please
see the script for those instances and the required versions.
# Install dependencies and openr
cd build
bash ./build_openr.sh
// To Run tests (some tests requires sudo privileges)
cd build
sudo make test
If you make any changes you can run cmake ../openr and make from the build
directory to build openr with your changes.
openr builds both static and dynamic libraries and the install step installs
libraries and all header files to /usr/local/lib/ and /usr/local/include/
(under openr subdirectory) along with python modules in site-packages.
Note: the build_openr.sh script will run this step for you:
cd build
sudo make install
You will need python pip or setuptools to build and install python modules.
All library dependencies will be automatically installed except the
fbthrift-python module which you will need to install manually using steps
similar to those described below. This will install breeze, a cli tool to
interact with OpenR.
- Python install requires a
fbthrift/thrift1compiler to be installed and in PATH
cd openr/openr/py
python setup.py build
sudo python setup.py install
OpenR is MIT licensed.