Skip to content

fix v4/v6 as2rel issue#8

Merged
digizeph merged 1 commit intomainfrom
bug-fix/#7
Feb 1, 2024
Merged

fix v4/v6 as2rel issue#8
digizeph merged 1 commit intomainfrom
bug-fix/#7

Conversation

@digizeph
Copy link
Copy Markdown
Member

@digizeph digizeph commented Feb 1, 2024

Fixed a bug that is likely related to #7:

  • The as2rel inference needs to run 2 times, updating 3 different HashMaps for global, and v4 or v6 data map
  • The function takes a mutable AS path vector as it examines the reverse of the path (i.e. from origin to collector)
  • The second time the function runs, the AS path is already reversed as input and thus causing the program at different AS paths
  • The first run is for the global relationship, which corresponds to the as2rel-latest data file. It makes sense that the as2rel-latest looks correct, while the v4/v6 ones look strange.

Found a bug that is likely related to this issue:
* The as2rel inference needs to run 2 times, updating 3 different HashMaps for global, and v4 or v6 data map
* The function takes a mutable AS path vector as it examines the reverse of the path (i.e. from origin to collector)
* The second time the function runs, the AS path is already reversed as input and thus causing the program at different AS paths
* The first run is for the global relationship, which corresponds to the `as2rel-latest` data file. It makes sense that the `as2rel-latest` looks correct, while the v4/v6 ones look strange.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant