draft-andersdotter-rrm-for-rrt's Issues
Test issue: run_simulation.py produces error
I have the following output from trying to run_simulation.py
`Traceback (most recent call last):
File "run_simulation.py", line 47, in
run_simulation(0.8, 0, 5, 50)
File "run_simulation.py", line 44, in run_simulation
print("Final RTT is %.2f") % observer.measure_rtt()
TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'
Compilation exited abnormally with code 1 at Tue Nov 5 10:05:50`
I can fix it my changing the print-statement to
print("Final RTT is", observer.measure_rtt())
but I'm guessing this is not a problem which is consistent over our python interfaces. Not sure what produces this error.
Clean up simulation code
- Add venv env instructions
- Take in
P=<double between 0 and 1>
andQ=<double between 0 and 1>
as command line args with default values - Add help option
Fix last line in intro
considering the potential of using RRM to have more than one bit assisting in latency measurement as per previous proposals
Changing P or Q for run_simulation() results in faulty paths
Sometimes I can see the wrong index (not the 0th one) being changed in the path if P or Q > 0
Question: output issue?
I have the below out from run_simulation(0.2, 0, 5, 50):
Here in tick 6, the bit starts spinning at v=1 as I would expect:
Tick:
6
Client ->
[1, 0, 0, 0, 0]
-> Server
Client <-
[0, 0, 0, 0, 0]
<- Server
In tick 7, another v=1 bit is added in the beginning of the client->server path:
Tick:
7
Client ->
[1, 1, 0, 0, 0]
-> Server
Client <-
[0, 0, 0, 0, 0]
<- Server
Here at tick 8 it's not obvious to me what's happening. The system remains in the same state as in tick 7, so 0.2 is doing something - but what?
Tick:
8
Client ->
[1, 1, 0, 0, 0]
-> Server
Client <-
[0, 0, 0, 0, 0]
<- Server
Here at tick 9 it looks as if the P=0.2 is making the middle of the path randomized somehow. I would expect to be seeing [1, 0, 1, 1, 0] in the C->S row, and to have seen [0, 1, 1, 0, 0] in tick 8.
Tick:
9
Client ->
[1, 1, 0, 1, 0]
-> Server
Client <-
[0, 0, 0, 0, 0]
<- Server
Here follow three repetitions of tick 9:
Tick:
10
Client ->
[1, 1, 0, 1, 0]
-> Server
Client <-
[0, 0, 0, 0, 0]
<- ServerTick:
11
Client ->
[1, 1, 0, 1, 0]
-> Server
Client <-
[0, 0, 0, 0, 0]
<- ServerTick:
12
Client ->
[1, 1, 0, 1, 0]
-> Server
Client <-
[0, 0, 0, 0, 0]
<- Server
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.