-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Changes in configuration have non-deterministic effect #610
Comments
@leopoul thanks for reporting this! Very detailed information! Could you also try the same without using any scaling parallelism? |
@vkotronis my pleasure! Issue happened again without scaling. Steps:
I observe the same issue. Upon editing the config and switch from Hijacks during one of my tests showing v4 considered outdated and v6 considered as hijacked: I will let it run for some hours and will report back if I see any changes. |
@leopoul I have not forgotten about this issue, just checking ways to replicate it since it seems to be non-deterministic. |
might be correlated with #611 |
Could be related, yes. I can try only v4 and then only v6. |
I did some more digging into this and submitted a fix: #662. The issue hits whenever there is a config change while Artemis is running. It does not occur if one shuts down all containers and starts again. It looks as if prefixtree remains stale for either v4 or v6 after changes. With this in mind here is what I found:
I have done extensive testing with a large number of prefixes and various prefixtree scaling settings (1,2,4). In all cases the issue I had initially reported does not occur anymore. |
Describe the bug
Config changes to cause pseudo-hijacks make BGP updates appear as hijacks even when origin AS is restored to the legitimate one. The provided config is an example with prefixes from Google, Cloudflare, Neustar, etc. The bug has been triggered with different combinations of prefixes/ASes not only the ones used in this report.
Affected Component(s)
To Reproduce
Steps to reproduce the behavior:
Start Artemis as:
docker-compose up -d --scale prefixtree=4 --scale database=4 --scale detection=4
Configuration:
AS13336
. Switch it to13335
and monitor. It is expected that existing hijacks will be marked as outdated. Config now should be:13336
have been marked as outdated, there are plenty new updates marked as hijacks for13335
. See Screenshots 2 and 3.76 Wait for some minutes, in my case 10mins or so and watch for BGP updates. Some BGP updates from
1.1.1.0/24
appear as non-hijacks, others appear as hijacks. See Screenshot 5.Attempts to fix
No effect.
Wait for some time and check hijacks page. There are still hijacks which are considered as ongoing. See Screenshot 6.
Expected behavior
Changes in configuration should be reflected in BGP updates wrt hijack detection.
Screenshots
Screenshot 1.
Screenshot 2.
Screenshot 3.
Screenshot 4.
Screenshot 5.
Screenshot 6.
System (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: