vgiotsas / communitiesparser Goto Github PK
View Code? Open in Web Editor NEWCommunityWatch is an open-source system that enables the detection of BGP anomalies and routing events by monitoring changes in the BGP Communities
CommunityWatch is an open-source system that enables the detection of BGP anomalies and routing events by monitoring changes in the BGP Communities
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
I tried to run CommunitiesParser with the example mentioned in README.md
Lines 69 to 73 in 7c3f447
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
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.