The ns-3 Network Simulator Project
Check CalendarScheduler patch, document
Look at Bug 2498. This bug report contains two patches.
Your task is to check that these patches still apply cleanly, the documentation in the first patch is clear, and verify the claimed performance:
- Run bench-simulator as shown in the bug report, and save the performance table as shown in the bug report
- Verify that the two patches apply cleanly
- Check that the Doxygen builds without errors on this file (see the Manual section on Building Doxygen Docs for how to do this). Does the edited description make sense? Does it completely describe the new approach?
- Re-run bench-simulator and show the performance comparison before and after the patch.
Bonus: it would be nice to switch between the old version and the new version by a configuration variable:
- Add a boolean configuration variable to the class, called
m_reverse
. The original code should be the default withm_reverse = false
; the new version is true. - Add a public function
bool SetReverse (bool reverse)
. This should return the current value ofm_reverse
, then set it to the argument value. - Where the patch makes changes to calendar-scheduler.cc, make those depend on
m_reverse
. Note that most of these are inside loops. Instead of testingm_reverse
each iteration of the loop, insert the old and new version of the loop, so them_reverse
test selects which loop version to use.
Task tags
Students who completed this task
InquisitivePenguin, ra1nst0rm3d, SaiMyGuy, hax0kartik, Kr0n0s