Coder Social home page Coder Social logo

vgiotsas / communitiesparser Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 1.76 MB

CommunityWatch is an open-source system that enables the detection of BGP anomalies and routing events by monitoring changes in the BGP Communities

Java 100.00%
bgp monitoring networking java-10 ixp

communitiesparser's People

Contributors

billyyo avatar raabf avatar vgiotsas avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

raabf condector

communitiesparser's Issues

Debian stretch/Ubuntu 18.04: Couldn't reach URL / Trust anchors must be non-empty

When you run CommunitiesParser on Debian stretch or Ubuntu 18.04 it could happen that the following error appears:

Couldn't reach URL https://www.peeringdb.com/api/netfac

However the real reason is not displayed in the output. A deeper investigation shows that the real problem is the following:

java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

That again is caused by a malformed local trusted keys store. And the reason why it is malformed is, that Debian stretch and Ubuntu 18.04 generate by default this trusted store in a file format which is only supported by newer versions of java.
It is not something that has to be fixed by CommunitiesParser, but can occur for some users depending on the OS and java version.

The matching bug report is here: https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1739631

A workaround is basically to correctly generate this trusted store manually. There are many posts out there describing this. However a more extended and a good one is here:
https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty

NoSuchElementException with README example

I tried to run CommunitiesParser with the example mentioned in README.md

You can then execute the compiled code, including again the classpath to the jar files:
```
java -cp .:/<download_path>/args4j-2.33.jar:/<download_path>/json-simple-1.1.1.jar:/<download_path>/commons-compress-1.16.1.jar vgiotsas/Main --outdir output --collectors rrc00 --communities 2914:1201 --period 20180407.0000,20180410.0000 --facilities "Interxion Frankfurt (FRA1-12)"
```

However with this example an NoSuchElementException rises:

$ java -cp ./:./src/main/java/:/usr/share/java/args4j.jar:/usr/share/java/json-simple.jar:/usr/share/java/commons-compress.jar vgiotsas/Main --outdir output --collectors rrc00 --communities 2914:1201 --period 20180407.0000,20180410.0000 --facilities "Interxion Frankfurt (FRA1-12)"
Couldn't reach URL https://www.euro-ix.net/csv/ixp-service-matrix
java.io.FileNotFoundException: https://www.euro-ix.net/en/csv/ixp-service-matrix/
/usr/local/bin/bgpreader -w 1522965600,1523052000 -t ribs -P 86400 -c rrc00 -y 2914:1201
Annotated routes after initial pass: 31408
/usr/local/bin/bgpreader -w 1523052000,1523224800 -t ribs -c rrc00 -j 2a00:fda0::/32 -j  63.223.19.0/24 -j  193.105.241.0/24 -j  95.215.144.0/22 -j  104.90.192.0/23 -j  8$
.198.8.0/21 -j  204.93.58.0/24 -j  212.19.32.0/19 -j  185.212.173.0/24 -j  176.124.229.0/24 -j  185.130.177.0/24 -j  188.187.223.0/24 [… Truncated many other -j options]
Annotated routes after filtering: 31408
/usr/local/bin/bgpreader -w 1523224800,1523311200 -t updates -c rrc00 -j 2a00:fda0::/32 -j  63.223.19.0/24 -j  193.105.241.0/24 -j  95.215.144.0/22 -j  104.90.192.0/23 -j
82.198.8.0/21 -j  204.93.58.0/24 -j  212.19.32.0/19 -j  185.212.173.0/24 -j  176.124.229.0/24 [… Truncated many other -j options]
Exception in thread "main" java.util.NoSuchElementException
        at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1209)
        at java.util.TreeMap$KeyIterator.next(TreeMap.java:1265)
        at vgiotsas.CommunitiesParser.writeResults(CommunitiesParser.java:117)
        at vgiotsas.CommunitiesParser.startParser(CommunitiesParser.java:93)
        at vgiotsas.Main.main(Main.java:18)

java version "1.8.0_181" (TM) SE Runtime Environment (build 1.8.0_181-b13)
bgpstream 1.2.0
Debian stretch

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.