Giter VIP home page Giter VIP logo

openbmp-mrt2bmp's People

Contributors

omerpalaz avatar timevens avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

openbmp-mrt2bmp's Issues

Past RIB dumps are loaded when they shouldn't be

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

  • RIB dump is only processed when (a) program is started, (b) when there is an updates gap.
  • There is a knob to allow update gaps, which should trigger the RIB dump from only be read to get peer info
  • When reading a RIB dump, only the RIB dump minus expected hours should be loaded. Currently the max is RIPE with 8 hour RIB DUMPs.
  • If a RIB dump is needed to be loaded and one doesn't exist within the allowed time window, then the program should log that it can't find one and continue to check on interval (e.g. interval of 5 minutes)

BGP attribute NEXT_HOP - KeyError: 32

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

Previous updates are read first before RIB table when starting using '-r' option

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.