Code Monkey home page Code Monkey logo

torps's People

Contributors

ajohnson-nrl avatar nullhypothesis avatar robgjansen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

torps's Issues

simulate error

after processed server-descriptor file , when I simulate network_state file ,I get the error "ZeroDivisionError: integer division or modulo by zero",I don't know the reason

Some questions about how to use TorPS to simulate tor path selection algorithm

Hi, I am a senior in university, want to use TorPS to simulate tor path selection algorithm.
While there are some questions may be a bit of infant but that is really I want to know about the tools.

  1. Before I use the tool, stem is required, then Is Tor(original code) is also required ?
  2. My algorithm use C++ language to realize, Do I have to rewrite my algorithm in Python?
  3. I have read the paper roughly - "Users Get Routed - Traffic Correlation on Tor by Realistic Adversaries" , Where can I found more information about it ?

I would like to extend my greatest appreciation if you are so kind as to give me your help ! Thank you very much!

Wrong values of bwweights when simulating with relay adversaries

Hello !

The bandwidth weights received from the consensuses don't take into account the bandwidth we add to the simulated network when we inject adversarial nodes. I think that this could have bad consequences, leading to false results when too much bandwidth is added.
Regarding section 3.8.3 of Tor spec, the computation of bandwidth weights depends of the network load.

  1. It's possible that, depending of the amount of bandwidth added, the case of the network load change. In results, the bwweights need to be computed differently.
  2. Even if the added bandwidth does not modify the case of the network load, the bwweights needs to be recomputed to take into account these adversarial relays in the load balancing.

I plan to modify network_modifiers.py to recompute bwweights. What do you think ?

Regards,

Florentin

Problem in running of run_simulations_cat.sh

Hi, I am trying to run the run_simulations_cat.sh by following the instructions on the main page of torps. It writes
CONGFILE=$BASE_DIR/in/congestion.cator.pickle
at Line 22, but I can't find this file anywhere. Could you please provide this file? I really need it very much to run the simulation.
Thank you!

Problem in running of run_quick_simulation.sh

Hi,
I am trying to run the analyze_and_plot.sh by following the instructions on the main page of torps. I first run the "sh analyze_and_plot.sh" commands, the error is "IndexError: list index out of range", last I find there is no "*.out " and ".time" files, but I don't know where are they from , I checked everything is OK and "stem" is installed on my OS X10.11. Would you please help me? I really need to run the simulator and see the outputs. (I didn't modify any files of torps simulator).
Thank you.

Problem in first running of torps

Hi,
I am trying to run the simulator by following the instructions on the main page of torps. I first run the "python process..." commands and it successfully created network state files in the "out" folder. Afterwards, I wanted to run the simulator using "python simulator...." script, but I encounter a strange error and it made me crazy. The error is "AttributeError: 'str' object has no attribute 'bandwidth_weights' ", the error originates from line "consensus.bandwidth_weights" in file "pathsim.py". I checked everything is OK and "stem" is installed on my ubuntu 14.04. Would you please help me? I really need to run the simulator and see the outputs. (I didn't modify any files of torps simulator).
Thank you.

timestamp() function is mixing UTC and local time

Hi Aaron,

This one is a nasty bug. Currently, the function timestamp (https://github.com/torps/torps/blob/master/pathsim.py#L157) is applied on naive time (without timezone). However, one is received from Stem as a naive UTC (we should report that to Stem, it is a wrong behaviour) and the other is a naive local time. I think that your function will return an offset of the correct timestamp, depending on the local time of the TorPS user.

I think you should enforce using UTC datetime object everywhere. I don't know what are the correctness issues on this but your timestamp function seems to be on the critical path (locate the right desc in process_consensuses, used to convert the published date of the consensus, ect).

A fix would be to:

  1. import pytz (pip install pytz)
  2. set a tzinfo in timestamp() (td = t - datetime.datetime(1970, 1, 1, tzinfo=pytz.utc)
  3. convert all received naive datetime from Stem to timezone-aware utc object (or you will get an exception in timestamp()).

I don't have a solution for 3) but I can search and send you a pull request if you think that everything up makes sense.

Best,
Florentin

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.