The ns-3 Network Simulator Project

Modify tcp-bulk-send.cc to support IPv6 addressing

examples/tcp/tcp-bulk-send.cc is a basic C++ program provided for ns-3 beginners. It is similar to examples/tutorial/first.cc whose line by line explanation is provided in the ns-3 tutorial. Understand the working of tcp-bulk-send.cc and then proceed with the following steps:

  1. Copy tcp-bulk-send.cc from examples/tcp and paste it in scratch directory.
  2. Modify tcp-bulk-send.cc in scratch directory to support IPv6 addresses. Do not remove the support of IPv4 address. Instead, provide the support of command line arguments so that the user can choose IPv4 or IPv6 addresses as desired. Let the string to pass the command line argument for IPv4 be 'v4' and for IPv6 be 'v6'.
  3. Run the modified tcp-bulk-send.cc by passing v4 and v6 as command line arguments. 4. Attach the terminal snapshot for both the cases and send for evaluation.
  4. Make a patch with the modifications made in tcp-bulk-send.cc and send it for evaluation.

Task tags

  • c++
  • ipv6

Students who completed this task

Kr0n0s, SaiMyGuy, hax0kartik, pterp, howie

Task type

  • code Code
  • chrome_reader_mode Documentation / Training
  • done_all Quality Assurance
close

2019