torps / torps Goto Github PK
View Code? Open in Web Editor NEWThe Tor Path Simulator
License: Other
The Tor Path Simulator
License: Other
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
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.
I would like to extend my greatest appreciation if you are so kind as to give me your help ! Thank you very much!
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.
I plan to modify network_modifiers.py to recompute bwweights. What do you think ?
Regards,
Florentin
Hi Aaron !
https://github.com/torps/torps/blob/master/process_consensuses.py#L21
I think a f.close() is missing at the end of the function ? I didn't set an unlimited number of open file descriptors on my OS and got some errors :-)
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!
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.
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.
I would like to point out that identifiers like "_TOR_CONTAINER_H
" and "__VIVALDINODE_H__
" do not fit to the expected naming convention of the C++ language standard.
Would you like to adjust your selection for unique names?
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.