Java library to parse the binary MRT format
Java Shell
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 52 commits ahead of paaguti:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


#1. Overview

This is an extension of the original javaMrt library able parse the binary MRT format to export the information from those in structured xml or directly in Graphml file formats.

For those that have no idea what MRT is - this is a Multi-Threaded Routing Toolkit (MRT) Routing Information Export file format described in RFC(Request for Comments) 6396. To state that simply this is a file format in which routers export their routing tables.

So we have built on top of the initial javaMrt and has converted initially the output of those files into a structured xml and secondly directly into a graphml files. The graphmls is able to analyze BGP routing updates, to extact the AS paths and to build beautiful graphs of the world Internet. In addition we use also the data soure from Geoff's Huston poratoo net IRR server (whois) data export in order to populate our graphml with some useful data about the BGP autonomus systems.

#2. License javaMrt2Graphml library as the original javaMrt is released under LGPL license. For more details please read LICENSE.txt.

#3. Usage

##3.1 Clone the project

git clone

##3.2 Built it with maven

cd javaMrt2Graphml
mvn package 

Here we assume that you know what is maven. If you don't try that one first

##3.3 Execute

./ -f rib.20140401.0000 -f2 out-mrt.xml -o network.graphml

-f is the origiranl mrt file that has been exported by your router
-f2 is the output of that file in xml
-o is the network graphml 

If you don't have your own mrt file (obviously not everybody has a router with full Internet BGP routing table) you can get one from the RouteViews project

Once you download it you have to unzip it and pass the unziped file as an "-f" argument.

##4.4 Visualize the result The final result (network.graphml) could be visualized with gephi or netTransformer or any other Graph Viz tool able to draw graphml file format.

The result of this are Internet wide maps like those bellow: