matrix-bgpsim documentationΒΆ
matrix-bgpsim is a Python project that provides a high-performance BGP routing simulator built on matrix operations. It enables full-scale AS-level route generation across the entire global Internet topology (77k+ ASes) in just a few hours, following the Gao-Rexford simulation model. It supports CPU backend with Python-native multiprocessing, and optionally GPU acceleration via PyTorch and CuPy backends.
API Reference:
- matrix_bgpsim
RMatrixRMatrix.BranchRouteRMatrix.C2PRMatrix.P2CRMatrix.P2PRMatrix.RelMapRMatrix.asn2brts()RMatrix.asn2idx()RMatrix.caida_reader()RMatrix.construct_topology()RMatrix.dump()RMatrix.get_path()RMatrix.get_state()RMatrix.has_asn()RMatrix.idx2asn()RMatrix.idx2ngbrs()RMatrix.is_branch_asn()RMatrix.is_core_asn()RMatrix.load()RMatrix.run()