From: Matthew Burkhart (burkhart_at_cs.washington.edu)
Date: Sun Feb 22 2004 - 15:42:58 PST
We were trying run our test cases for the turnin and we cannot get the
simulator or emulator to produce any packet loss!
We looked in the code and found that that schedulePkt(src, size, now)
method in topology.rb (which causes packet loss) is not used at all in
the emulator/trawler. Ok so the emulator can't do packet loss...?
So we then tried the simulator it didnt work immediately, so we checked
out the code and found two issues:
lossRate = $1.to_f if opts =~ /lossRate:\s*([0-9\.]+(:?[eE]\d*)?)/
so our topo file should use "lossRate: 0.05" instead of "loss: 0.05"?
Furthermore, the $POSTMATCH use in parseEdgeOptions($POSTMATCH) is nil
ONLY when we run simulator, but parses correctly in the trawler.
What is going on here?? What are we missing? Have you all been able to
get packet loss to work?
My ruby is up to date:
## ruby1.8 --version
ruby 1.8.1 (2004-02-03) [i386-linux]
Should we just hard code the default loss rate in simulator to 0.05?
Thanks!
_______________________________________________
Cse461 mailing list
Cse461_at_cs.washington.edu
http://mailman.cs.washington.edu/mailman/listinfo/cse461
This archive was generated by hypermail 2.1.6 : Sun Feb 22 2004 - 15:42:15 PST