snas / openbmp-mrt2bmp Goto Github PK
View Code? Open in Web Editor NEWRead MRT files and send natively in BMP format
License: Eclipse Public License 1.0
Read MRT files and send natively in BMP format
License: Eclipse Public License 1.0
At times a RIB dump from weeks ago is processed when it shouldn't be.
openbmp-mrt2bmp_route-views.isc.routeviews.org.log:2018-04-10 17:14:26,927 | INFO | router_processor | Using working dir /home/ubuntu/mrt/rv/router_data/route-views.isc.routeviews.org
openbmp-mrt2bmp_route-views.isc.routeviews.org.log:2018-04-10 17:14:26,928 | INFO | router_processor | There is an abnormality between timestamps of two files in route-views.isc.routeviews.org .
openbmp-mrt2bmp_route-views.isc.routeviews.org.log:2018-04-10 17:14:26,928 | INFO | router_processor | There is an abnormality between timestamps of two files in route-views.isc.routeviews.org .
openbmp-mrt2bmp_route-views.isc.routeviews.org.log:2018-04-10 17:14:26,935 | INFO | router_processor | -- 2018.01/RIBS/rib.20180131.2200.bz2 is started
openbmp-mrt2bmp_route-views.isc.routeviews.org.log:2018-04-10 17:14:26,942 | INFO | router_processor | -- 2018.01/RIBS/rib.20180131.2200.bz2 is ended
openbmp-mrt2bmp_route-views.isc.routeviews.org.log:2018-04-10 17:14:56,972 | INFO | router_processor | Using working dir /home/ubuntu/mrt/rv/router_data/route-views.isc.routeviews.org
openbmp-mrt2bmp_route-views.isc.routeviews.org.log:2018-04-10 17:14:56,973 | INFO | router_processor | There is an abnormality between timestamps of two files in route-views.isc.routeviews.org .
openbmp-mrt2bmp_route-views.isc.routeviews.org.log:2018-04-10 17:14:56,979 | INFO | router_processor | -- 2018.02/RIBS/rib.20180203.1000.bz2 is started
openbmp-mrt2bmp_route-views.isc.routeviews.org.log:2018-04-10 17:14:56,987 | INFO | router_processor | -- 2018.02/RIBS/rib.20180203.1000.bz2 is ended
Expected Behavior
root@bgp-mon:~/openbmp-mrt2bmp# openbmp-mrt2bmp --rv list
Peers that are using 2-octet ASN encoding are working with RIB DUMP's but not with updates.
All files in UPDATES or RIBS directory are attempted to be parsed when they do not match the correct filename pattern.
2017-05-16 13:06:42,876 | WARNING | router_processor | 2017.05/RIBS/.rib.20170516.2000.bz2.PNxdCn is not correctly formatted, skipping
Greetings,
when selecting RIPE server (tested with rrc00 and rrc23), there is following error.
How I can debug this further?
/usr/bin/openbmp-mrt2bmp -c /etc/openbmp-mrt2bmp.yml --rp rrc23.ripe.net
Ripe is chosen...
openbmp-mrt2bmp_rrc23.ripe.net.log
<type 'exceptions.KeyError'>
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/openbmp/mrt2bmp/MrtProcessors.py", line 606, in run
rp.processRouteView(is_first_run)
File "build/bdist.linux-x86_64/egg/openbmp/mrt2bmp/MrtProcessors.py", line 526, in processRouteView
rp.processRibFile()
File "build/bdist.linux-x86_64/egg/openbmp/mrt2bmp/MrtProcessors.py", line 68, in processRibFile
for m in mp:
File "build/bdist.linux-x86_64/egg/openbmp/mrt2bmp/MrtParser.py", line 118, in next
self.parseMrtEntry( entry['mrt_entry'], msg_len, msg_type, msg_subtype)
File "build/bdist.linux-x86_64/egg/openbmp/mrt2bmp/MrtParser.py", line 165, in parseMrtEntry
self.parseTableDumpV2(buf, mrt_message, msg_len, msg_type, msg_subtype)
File "build/bdist.linux-x86_64/egg/openbmp/mrt2bmp/MrtParser.py", line 244, in parseTableDumpV2
self.parseRibEntries(buf[p:], mrt_message['rib_entries'], address_family, safi, raw_nlri)
File "build/bdist.linux-x86_64/egg/openbmp/mrt2bmp/MrtParser.py", line 388, in parseRibEntries
rib_entry['raw_bgp_attributes'], rib_entry['attribute_length'], address_family, safi, raw_nlri, rib_entry['raw_mp_reach_nlri'])
File "build/bdist.linux-x86_64/egg/openbmp/mrt2bmp/MrtParser.py", line 425, in parseBgpAttributes
if BGP_ATTRIBUTES[bgp_path_attribute['type']] == 'NEXT_HOP':
KeyError: 32
Updates are read and no table dump import is performed when UPDATE files exist with an earlier timestamp than the first available RIB file.
This results in missing RIB data since the RIB file wasn't conveyed via BMP.
2017-05-16 13:03:05,766 | INFO | mrt_processors | - route-views2 is started
2017-05-16 13:03:05,805 | INFO | router_processor | There is an abnormality between timestamps of two files in route-views2 .
2017-05-16 13:03:05,824 | INFO | router_processor | -- 2017.05/UPDATES/updates.20170516.1845.bz2 is started
2017-05-16 13:03:05,828 | INFO | bmp_writer | Running bmp_writer
2017-05-16 13:03:05,830 | INFO | bmp_writer | Connected to remote collector: localhost:5000
2017-05-16 13:03:20,961 | INFO | router_processor | -- 2017.05/UPDATES/updates.20170516.1845.bz2 is ended
2017-05-16 13:03:20,962 | INFO | router_processor | -- 2017.05/UPDATES/updates.20170516.1900.bz2 is started
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.