KevinHoarau / BML

https://kevinhoarau.github.io/BML/
MIT License
14 stars 3 forks source link

Can not run the "BML code to collect the data of the Google leak use case" in your BML paper. #1

Open pickmels opened 2 years ago

pickmels commented 2 years ago

Dear authors, I am doing some research about BGP anomaly detection, and I have read your BML paper these days. I want to try your "BML code to collect the data of the Google leak use case"(Fig. 4) in your papers, but there are some errors:

[problem 1]

image

" Traceback (most recent call last): File "test.py", line 10, in dataset.load({ AttributeError: 'Dataset' object has no attribute 'load' "

[problem 2] I find your https://kevinhoarau.github.io/BML/ and try to run the code in 'Dataset' section, and here are the errors:

image

" HTTP ERROR: HTTP response code said error (22) 2021-12-29 11:10:50 16746: bsdi_broker.c:966: ERROR: Could not open https://broker.bgpstream.caida.org/v2/data?projects[]=ris&projects[]=routeviews&collectors[]=rrc06&types[]=updates&intervals[]=1503594000,1503630000 for reading 2021-12-29 11:10:50 16746: bsdi_broker.c:951: WARNING: WARN: Broker request failed, waiting 1s before retry " But I can open this url on my own notebook. I don't know what's wrong.

I think your work are very useful for my research and I want to cite your paper after finishing my work. Thanks for helping me!!!

KevinHoarau commented 2 years ago

Hello, I'm glad our work could be useful to you.

For the problem 1, indeed the code in the BML's paper is out-of-date so you want to refer to the example given in: https://kevinhoarau.github.io/BML/.

Regarding the second issue, the problem seems to be related to BGPStream which is used by BML. Maybe something gone wrong during the installation. You can try to reinstall BGPStream: https://bgpstream.caida.org/download.

If you are familiar with docker, we also have an image ready-to-use, with a jupyter notebook and BML pre-installed. Simply run: $ docker run -d -p 8888:8888 khoarau/bml Then open: http://localhost:8888/ Password is "bml".