GithubHelp home page GithubHelp logo

Comments (6)

akshayeshenoi avatar akshayeshenoi commented on July 3, 2024

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.

oisonan1999 avatar oisonan1999 commented on July 3, 2024

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.

akshayeshenoi avatar akshayeshenoi commented on July 3, 2024

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.

oisonan1999 avatar oisonan1999 commented on July 3, 2024

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.

akshayeshenoi avatar akshayeshenoi commented on July 3, 2024

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:

  1. The simulation runs till nEnd.
  2. 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.

oisonan1999 avatar oisonan1999 commented on July 3, 2024

Thank you so much! It's help me a lot!!

from bitcoin-emulator.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.