Comments (6)
The main logic for RAP is in the addrman file and is executed when the node tries to open a new connection (as detailed in Section 4.2 of our paper). The code should help explain the logic.
Also note that if RAP is enabled, the attacker also tries to prepare hidden-shadow IPs to exploit the route inference errors (Section 5.1).
from bitcoin-emulator.
Thank you for replying to me. So how do I edit the cfg.py file to see clearly that the RAP defense is actually working?
from bitcoin-emulator.
If you run the emulator with rap_enabled = False
, it will be easier for the attacker to successfully carry out the attack, i.e., occupy all outgoing connections. The attack duration will be shorter compared to when RAP was enabled.
This is the baseline scenario (Figure 3.a).
from bitcoin-emulator.
But when I look at the log printed to the screen before and after enabling RAP, which parameter will best demonstrate that the enemy successfully attacked before turning on RAP and the enemy failed after enabling RAP?
from bitcoin-emulator.
We consider the attack to succeed if the attacker has occupied all outgoing connections before the end time of the simulation. That is currently set to approximately 381 days (nStart - nEnd
, in seconds). Otherwise, the attack is said to fail.
You will have to wait for the simulation to fully complete. The only two conditions for completion are:
- The simulation runs till
nEnd
. - The attacker occupies all outgoing conditions. Check this line.
We also log the result in the end, you should be able to clearly see the AttackSuccess
output in your console.
from bitcoin-emulator.
Thank you so much! It's help me a lot!!
from bitcoin-emulator.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoin-emulator.