Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RIB parsing error #76

Closed
digizeph opened this issue Dec 11, 2019 · 9 comments · Fixed by #82 · May be fixed by CAIDA/libbgpstream#203
Closed

RIB parsing error #76

digizeph opened this issue Dec 11, 2019 · 9 comments · Fixed by #82 · May be fixed by CAIDA/libbgpstream#203

Comments

@digizeph
Copy link
Contributor

bgpreader -d singlefile -o rib-file=https://www.isolario.it/Isolario_MRT_data/Alderaan/2019_12/rib.20191211.0800.bz2 1>/dev/null
WARN: No time window specified, defaulting to all available data
2019-12-11 08:03:49 51094: bgpstream_parsebgp_common.c:594: ERROR: Failed to parse message from 'https://www.isolario.it/Isolario_MRT_data/Alderaan/2019_12/rib.20191211.0800.bz2' (-2:Invalid Message)
@digizeph
Copy link
Contributor Author

Original issue: CAIDA/libbgpstream#159

@x-bin
Copy link

x-bin commented Nov 21, 2020

bgpreader -d singlefile -o rib-file=https://www.isolario.it/Isolario_MRT_data/Alderaan/2019_12/rib.20191211.0800.bz2 1>/dev/null
WARN: No time window specified, defaulting to all available data
2019-12-11 08:03:49 51094: bgpstream_parsebgp_common.c:594: ERROR: Failed to parse message from 'https://www.isolario.it/Isolario_MRT_data/Alderaan/2019_12/rib.20191211.0800.bz2' (-2:Invalid Message)

Hi, I got the same issue when I parsing the isolario rib data, I just wondered whether the issue has been solved.

@digizeph

This comment has been minimized.

@x-bin
Copy link

x-bin commented Dec 2, 2020

Hello, I have reinstalled the bgpstream, but it got the same issue when I use it to parse the isolario's MRT data in 2020.

bgpreader -d singlefile -o rib-file=rib.20201101.0000 -m > temp
WARN: No time window specified, defaulting to all available data
2020-12-02 16:43:22 18962: bgpstream_parsebgp_common.c:601: ERROR: Failed to parse message from 'rib.20201101.0000' (-2:Invalid Message)

@digizeph
Copy link
Contributor Author

digizeph commented Dec 2, 2020

@x-bin could you provide a download link to the file you're having trouble parsing?

@digizeph
Copy link
Contributor Author

digizeph commented Dec 2, 2020

@kenkeys could you take a look at the error occurred with the following command?
bgpreader -d singlefile -o rib-file=https://www.isolario.it/Isolario_MRT_data/Alderaan/2019_12/rib.20191211.0800.bz2
It prints out a bunch of records, but terminates very early with the error message
2020-12-02 05:39:45 1116054: bgpstream_parsebgp_common.c:599: ERROR: Failed to parse message from 'https://www.isolario.it/Isolario_MRT_data/Alderaan/2019_12/rib.20191211.0800.bz2' (-2:Invalid Message)

@kenkeys
Copy link
Member

kenkeys commented Dec 4, 2020

The message that triggers the error has TABLE_DUMP_V2 subtype 8, which isn't implemented in libparsebgp. It was defined by RFC 8050 in 2017 to allow a message to contain additional paths. Implementing that will take some work.

@x-bin
Copy link

x-bin commented Dec 4, 2020

@x-bin could you provide a download link to the file you're having trouble parsing?

Sure, the link is https://isolario.it/Isolario_MRT_data/Alderaan/2020_11/rib.20201101.0000.bz2

@digizeph
Copy link
Contributor Author

digizeph commented Dec 4, 2020

The message that triggers the error has TABLE_DUMP_V2 subtype 8, which isn't implemented in libparsebgp. It was defined by RFC 8050 in 2017 to allow a message to contain additional paths. Implementing that will take some work.

@kenkeys Do you think we could change the behaviour to throw unimplemented warning instead of error out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants