Basically i am a protocol tester and i got to know about NS3 from one of my friend and started knowing about it. Its a network simulator which we can write the code in C++ and simulate the networks.
As i just started my learning , am gonna update everything about what i learned and tried out.
First to work on it we need install a NS3, i have a LINUX(or Ubuntu) server so i installed in it and it is not supported on windows platform.
1)Download the NS3 from here in the LINUX machine.
2)untar it using the command "tar xvjf ns-allinone-3.16.tar.bz2"
3)It will create a folder "ns-allinone-3.16"
4)we need to build the ns3, goto this link and follow the step,once we are done with installation we can run the sample programs which are clearly explained in this NS3 tutorial..
It takes some time to understand How to install it and work on it but trust me if you give a try and you can start working on it.
To work on NS3 we need to the object oriented programming in C++, so i started learning C++ and the following are my tools(follow the hyperlinks)
1)C++ tutorial
2)i work on windows machine for learning of C++, so i installed MINGW(GCC compiler),download it from here, you will find the following files in the following directory C:\MinGW
3)After the installation add the path in system environmental variables to specify the path for the each program while compiling.
goto->control panel->system->Advanced->Environmental variables->system variable->new
Create a new path with "C:\MinGW\bin" this is the place where the G++ compiler exist.If we dont add this the system dont understand the command when we are running it like "g++ -o helloworld helloworld.cpp" in the commandprompt.
We can write the program in Notepad, Notepad++ and open a command prompt and run the program using the command "g++ -o helloworld helloworld.cpp", once we run this command it will create a helloworld.exe file and once run it you can see the output.
i suggest to download a Eclipse IDE for C/C++ Developers to make our job easy, Download the Eclipse IDE for C/C++ Developers and extract it ,run the eclipse.exe (Note:remember its a java program so you need to java runtime environment installed in your machine) and to run this the GCC compiler environmental path has to be set already to start the Eclipse otherwise it shows the debug error.
If you have any doubts about your code and NS3, you can visit this page NS3group
Everything got installed and its time to get started. learn the C++ and start programming in NS3.
i started c++ learning and i post my programs time to time in this blog. Thank you
As i just started my learning , am gonna update everything about what i learned and tried out.
First to work on it we need install a NS3, i have a LINUX(or Ubuntu) server so i installed in it and it is not supported on windows platform.
1)Download the NS3 from here in the LINUX machine.
2)untar it using the command "tar xvjf ns-allinone-3.16.tar.bz2"
3)It will create a folder "ns-allinone-3.16"
4)we need to build the ns3, goto this link and follow the step,once we are done with installation we can run the sample programs which are clearly explained in this NS3 tutorial..
It takes some time to understand How to install it and work on it but trust me if you give a try and you can start working on it.
To work on NS3 we need to the object oriented programming in C++, so i started learning C++ and the following are my tools(follow the hyperlinks)
1)C++ tutorial
2)i work on windows machine for learning of C++, so i installed MINGW(GCC compiler),download it from here, you will find the following files in the following directory C:\MinGW
3)After the installation add the path in system environmental variables to specify the path for the each program while compiling.
goto->control panel->system->Advanced->Environmental variables->system variable->new
Create a new path with "C:\MinGW\bin" this is the place where the G++ compiler exist.If we dont add this the system dont understand the command when we are running it like "g++ -o helloworld helloworld.cpp" in the commandprompt.
We can write the program in Notepad, Notepad++ and open a command prompt and run the program using the command "g++ -o helloworld helloworld.cpp", once we run this command it will create a helloworld.exe file and once run it you can see the output.
i suggest to download a Eclipse IDE for C/C++ Developers to make our job easy, Download the Eclipse IDE for C/C++ Developers and extract it ,run the eclipse.exe (Note:remember its a java program so you need to java runtime environment installed in your machine) and to run this the GCC compiler environmental path has to be set already to start the Eclipse otherwise it shows the debug error.
If you have any doubts about your code and NS3, you can visit this page NS3group
Everything got installed and its time to get started. learn the C++ and start programming in NS3.
i started c++ learning and i post my programs time to time in this blog. Thank you