shadow-plugin-tor icon indicating copy to clipboard operation
shadow-plugin-tor copied to clipboard

node bandwidth vs. tor bandwidthrate

Open stef-roos opened this issue 8 years ago • 3 comments

It seems like the tor bandwidthrate can exceed the download/upload bandwidth of a node, e.g., the following results in a relay node with 1miB/s bandwidth

<node id="relay1" bandwidthdown="0" bandwidthup="0">

stef-roos avatar Nov 10 '16 15:11 stef-roos

This is because a value of 0 is invalid for bandwidthdown and bandwidthup - in this case the node gets assigned the bandwidth of the topology vertex to which is was assigned (instead of 0 bandwidth). If you set those bandwidth parameters to 1 instead of 0, my guess is that it will work as you expect.

robgjansen avatar Nov 10 '16 15:11 robgjansen

Hey @stef-roos, can you let me know if bandwidth=1 works as you expect here, so we can close this issue?

(BTW, if you'd like to argue that bandwidth=0 should be allowed as a valid input, please open a separate ticket on the shadow issue tracker to request that change.)

robgjansen avatar Nov 11 '16 21:11 robgjansen

Perhaps if the user specifies a 0 bandwidth, the config file validator should indicate that the config file is invalid, in which case the experiment will not proceed.

robgjansen avatar Sep 13 '17 16:09 robgjansen