ECC implementation in NS3.38

118 views
Skip to first unread message

RESHU VERMA

unread,
Dec 20, 2023, 1:15:35 PM12/20/23
to ns-3-users
Dear All,

I am currently working on implementing encryption and decryption for packets exchanged among User Equipment (UEs) in an LTE EPC network using NS3.38. I have thoroughly reviewed several documentation resources, details of which are provided below.
However, I am encountering a couple of challenges that I would greatly appreciate your assistance with:

Linking External Libraries in NS3.38: The documentation suggests modifying the wscript file, but I have noticed that NS3.38 lacks this particular file. I am seeking guidance on the appropriate steps to link external libraries in NS3.38.

Error with Crypto++ and Givaro Library Integration: While attempting to integrate Crypto++ and Givaro libraries with NS3.38, I am encountering an "Undefined Reference" error. 
Please help me how to resolve the issue and implement ECC in NS3.38.

Thanks and Regards
Reshu Verma

Gabriel Ferreira

unread,
Dec 20, 2023, 1:32:50 PM12/20/23
to ns-3-users
ns-3.38 uses CMake and not waf. You are using an incompatible documentation version.
Try this one:
https://www.nsnam.org/docs/release/3.40/manual/html/working-with-cmake.html#linking-third-party-libraries

RESHU VERMA

unread,
Dec 29, 2023, 4:06:05 AM12/29/23
to ns-3-users
Hello sir,

I am currently working on incorporating external libraries (specifically, openssl, givaro, and crypto++) into ns3.38.

To streamline this process, I have created a dedicated folder within the directory Scratch/Test31-08-23/. This folder, named Test31-08-23, contains the necessary files such as app4.cc, tcp_client.h, tcp_client.cc, tcp_server.h, tcp_server.cc, RSU_client.h, RSU_client.cc, RSU_server.cc, RSU_server.h, and CMakeList.txt.

I have attached the CMakeList.txt file along with screenshots detailing the execution of "./ns3 configure" and "./ns3 build."

However, I have encountered an issue when attempting to execute "./ns3 run scratch/Test31-08-23/app4." The error indicates that the target could not be found, and I have attached a screenshot of the error for your reference.

I would greatly appreciate your guidance on whether I am following the correct procedure and kindly request your assistance in resolving this issue.

regards
Reshu Verma

Screenshot from 2023-12-29 14-28-04.png
Screenshot from 2023-12-29 14-28-31.png
Screenshot from 2023-12-29 14-32-09.png
CMakeLists.txt
Reply all
Reply to author
Forward
0 new messages