The ns-3 Network Simulator Project

Modify fifth.cc to support IPv6 addressing

examples/tutorial/fifth.cc is a C++ program provided for ns-3 users to simulate TCP flows. Proceed with the following steps to complete the task:

  1. Copy fifth.cc from examples/tutorial/fifth.cc and paste it in scratch directory.
  2. Modify fifth.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 fifth.cc by passing v4 and v6 as command line arguments. Attach the terminal snapshot for both the cases and send for evaluation.
  4. Make a patch with the modifications made in fifth.cc and send it for evaluation.

Task tags

  • ipv4
  • c++
  • ipv6

Students who completed this task

hax0kartik

Task type

  • code Code
  • chrome_reader_mode Documentation / Training
close

2019