The current trunk includes a bunch of automated network testing tools for 
Freenet. These will require a little bit of glue before you can put them in 
your crontab - in particular you need to fetch the seednodes.fref into your 
current working directory. But they should run without interaction and 
produce interesting results. These are all classes located in 
freenet/node/simulator/ - you can invoke them:
java -jar freenet.jar freenet.node.simulator.<class name>

SeednodePingTest - Attempts to connect to all seednodes at once. Shows the 
status of the seednodes. Mostly written by nextgens but tidied up by me. 
Output is just the last few lines after "TOTALS:" :

TOTALS:
NEVER_CONNECTED : 13
CONNECTED_SUCCESS : 11
################## (0) 11/24
Completed seednodes scan.
run() exiting for UdpSocketHandler on port 5000
run() exiting for UdpSocketHandler on port 5001

BootstrapSeedTest - Bootstraps a new node, and records how long it takes to 
get to 10 peers. Output is the line including "Completed bootstrap":

342 : seeds: 14, connected: 1 opennet: peers: 15, connected: 9
343 : seeds: 14, connected: 1 opennet: peers: 15, connected: 9
344 : seeds: 14, connected: 1 opennet: peers: 15, connected: 9
345 : seeds: 14, connected: 1 opennet: peers: 15, connected: 9
346 : seeds: 14, connected: 1 opennet: peers: 15, connected: 10
Completed bootstrap (10 peers) in 347575ms (5m47s)
run() exiting for UdpSocketHandler on port 5001
run() exiting for UdpSocketHandler on port 5000

BootstrapPushPullTest - Bootstraps a new node, inserts 1MB of random test 
data, shuts it down, bootstraps a second new node, fetches the data from it. 
Output is prefixed with "RESULT:", so grep for it.

RESULT: Completed bootstrap (10 peers) in 252089ms (4m12s)
RESULT: Insert took 447669ms (7m27s) to 
CHK at 
h7QiIPWmH5GRjMG6fhw-XHRSV6IJWmRCvSbLW07MWMU,CfOqVlyp2FwpkopElqFGJy~8rm9WwP88PthgCmtT76g,AAIC--8
 .
RESULT: Completed bootstrap (10 peers) in 216163ms (3m36s)
RESULT: Fetch took 134378ms (2m14s) of 
CHK at 
h7QiIPWmH5GRjMG6fhw-XHRSV6IJWmRCvSbLW07MWMU,CfOqVlyp2FwpkopElqFGJy~8rm9WwP88PthgCmtT76g,AAIC--8
 .

BootstrapPullTest - Inserts 1MB of random test data to a node (presumably 
well-established) via FCP on localhost port 9481, bootstraps a new node, 
fetches the data from the new node. Output like the previous.

RESULT: Insert took 435769ms (7m15s) to 
CHK at 
qWX-M~7OV7Jl-f8zxvSyORI72Fl8sZpXBlSk6Cqepoo,gs4LtG9rzRp~ouHzS4wBKRimJnt~2Hwbn2NCS3oAqN8,AAIC--8
 .
RESULT: Completed bootstrap (10 peers) in 470244ms (7m50s)
RESULT: Fetch took 99601ms (1m39s) of 
CHK at 
qWX-M~7OV7Jl-f8zxvSyORI72Fl8sZpXBlSk6Cqepoo,gs4LtG9rzRp~ouHzS4wBKRimJnt~2Hwbn2NCS3oAqN8,AAIC--8
 .


All four of these tests are running in cron jobs on servalan, twice a day. The 
output is available here:
http://amphibian.dyndns.org/freenet/tests/

So far the last two tests have only failed when wget'ing the seednodes.fref 
has failed. Fetching data even on a newbie node is relatively fast, inserting 
data even on an established node is fairly slow, and bootstrapping is very 
slow. :(

One caveat: all of these tests currently turn off the recent MTU-related 
changes in order to connect to old seednodes. Hopefully this is no longer 
necessary, I will look into this...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080812/dc5d6e34/attachment.pgp>

Reply via email to