The ns-3 Network Simulator Project
Use breakpoints and backtrace in tcp-bulk-send.cc
Set breakpoint for the InetSocketAddress function (src/network/utils/inet-socket-address.cc:43) called by the main function in tcp-bulk-send.cc. When the breakpoint is reached during the execution, list the trace of functions calling it and understand the line from where it is called. Do this every time the function is called. The program tcp-bulk-send.cc can be found in examples/tcp.
The steps to complete this task are as follows:
- Configure and build ns-3 (not needed if ns-3 is already configured and built).
- Copy tcp-bulk-send.cc from examples/tcp to scratch.
- Execute the command: ./waf shell.
- Execute command: gdb build/scratch/tcp-bulk-send.
- Set breakpoints for InetSocketAddress function.
- List the breakpoint.
- Run till execution reaches the breakpoint. (Perform steps 7 and 8 each time the breakpoint is reached).
- List the trace for the function call.
- Provide the snapshots at each step for the evaluation of the completed task.
Task tags
Students who completed this task
Kr0n0s, ra1nst0rm3d, SaiMyGuy, hax0kartik, howie