Here the BGPMon data means two parts. One is the data of log and rib file which are generated periodicly by BGPMon itself. Another part is the data stream sent from BGPMon to it clients upon client requests. But both the two parts share the same XML format . Here is just a very brief description of the XML format, For the details, please refer to internet draft of this XML format which we are working on now. Currently there are two types of information which are included in BGPMon: BGP logs and BGP rib contents. Here are 2 samples for BGP logs and BGP rib contents.
Clearly we pay a storage cost for the XML format compared with MRT as compact binary message is expanded into ASCII with Tags. In order to find out how much we pay for XML format in terms of storage size, we conducted a experiment for XML, MRT and bgpdump format. Experiment results are promising using the default compression parameters for bzip2. As shown in the table below, the uncompressed XML requires more space, but the compressed XML require less space than MRT. Compared with bgpdump format, less storage will be used in compressed Xml format. Even compared with MRT binary format, XML almost consumes the same storage. This table shows the size of data used in the above comparison, using MRT as the baseline.
| format |
umcompressed |
ratio |
compressed |
ratio |
| XML (ASCII) |
74,389,091 |
7.22 |
2,200,472 |
1.03 |
| Bgpdump (ASCII) |
54,466,310 |
5.29 |
2,418,845 |
1.13 |
| MRT (Binary) |
10,298,545 |
1.00 |
2,142,657 |
1.00 |
|