The ns-3 Network Simulator Project

ns-3 direct code execution: Add PCAP traces to dce-udp-perf.cc

Direct Code Execution (DCE) is a framework for ns-3 that provides facilities to execute, within ns-3, existing implementations of userspace and kernelspace network protocols or applications without source code changes. For example, instead of using ns-3’s implementation of a ping-like application, you can use the real ping application. You can also use the Linux networking stack in simulations.

dce-udp-perf.cc is a simple UDP example program in DCE. In this task, the student is expected to follow the steps given below:

  1. Refer to 'examples/tutorial/second.cc' to understand how to enable PCAP in ns-3 programs.
  2. Clone the github repository of ns-3 DCE.
  3. Refer to 'example/dce-udp-perf.cc' in ns-3 DCE
  4. Modify 'example/dce-udp-perf.cc' to enable PCAP support.
  5. Create a patch using 'git diff' command.
  6. Submit the patch for evaluation

Note: installation of ns-3 DCE is not needed to complete this task.

Task tags

  • tracing
  • pcap
  • c++

Students who completed this task

Kr0n0s, SaiMyGuy, hax0kartik, howie

Task type

  • code Code
  • done_all Quality Assurance
close

2019