NS2 TUTORIAL FOR BEGINNERS
NS2 Tutorial for Beginners is the best way also to support our scholars and students. There is a famous phrase –“We also gain more knowledge by sharing it”. This is the base of our entire work i.e. we never sell our work, we always share our knowledge. We also have provided a compact knowledge tutorial in Ns-2 for beginners to learn few basics of NS-2. This will give them the base foundation to undertake their final year projects or research work. As we also have develop numerous projects in NS-2, we also know about the major concepts in NS-2, which scholars must know. This is the reason; we also have provide this article for you. If you feel to have more in-depth knowledge, you can refer our other pages in Ns-2.
NS-2 TUTORIAL-FOR-BEGINNERS
NS2 Tutorial for Beginners brings a new hope for the beginners to nurture their skills and talents to equip them in such a way that they will be able to develop their own projects and assignments. We also have provided few basic concepts in Ns-2 as our initial guidance to our students. But this is not our confinement; we also work for student’s projects, assignments and research work. We also believe in project based learning approach, where you will get your project along with complete training on NS-2. Also, We can assure you that even if you are a beginner in Ns-2, we can make you an expert of Ns-2.
Let’s first understand what is Ns-2. NS-2 is a simulation framework used also to stimulate wide range of Networking concepts and protocols. It is one of the widely used simulation tool by scholars and also students worldwide. To be a beginner in NS2, you must know two major aspect of NS-2 i.e. the programming language also used in NS2 and the basic tools used in NS-2.Ns2 can code also using C++ and TCL. In this article, we also have emphasize on the basic requirement of NS-2, without which also simulation is not possible in NS-2. For other details about NS-2, you can refer our other articles, available also for your knowledge enhancement.
BASIC NEEDS FOR BUILD NS2 SIMULATION
TRACE FILE:
- Used to analyze the overall data
- Two types of trace files are
- -Fixed Trace
- -Variable Trace
Trace file for Wireless Networks:
set nstrace [open wireless1-result.tr w];
$ns_ trace-all $nstrace
NAM FILES:[Network Animator]:
- Used to support topological layout, packet level animation and also data inspection tool
- TCL/TK based graphical tool used to view the simulation traces and also real world packet trace
Program termination code using Trace and Nam Files
Proc finish {}
Global ns nstrace nssim
$ns flush-trace
Close $trace file
Close$namfile
exec nam result.nam
exit 0
AWK SCRIPT:
- It is also generally for parameters like packet delivery ratio, throughput, control overhead, end to end delay etc.
- These are designed also for the analysis of trace files.
Example AWK script for Packet Delivery Ratio:
BEGIN
{
senddataPckt=0;
recvdataPckt=0;
frwddataPckt=0;
}
$0~/^s.*AGT/
{senddataPckt++;}
$0~/^r.*AGT/
{ recvdataPckt++;}
$0~/^f.*RTR/
{frwddataPckt++;}
END
{Printf “s:%d r:%d, r/s Ratio:%.4f, f:%d \n”, senddataPckt, recvdataPckt, (recvdataPckt / senddataPckt), frwddataPckt;
}
XGraph:
- Plotting program also used to create graphical representation of simulation results.
- Used also for basic animation of data sets.
You may also think that why we have provided very basic concept of NS-2 in this article. We also have done it as a Nobel work for beginners, who may not even know what is NS-2. For scholars, who feel to learn advanced concepts about NS-2, can also have an online session with our experts. We will train you in such a way that you can also develop your own project or code later. This is the power of our tutoring and also guidance, which also makes us what we are today.
GET OUR GUIDANCE AND SUPPORT…………………..
TO LEARN NS2 COMPLETELY…………………..
YOU WILL BE THE FUTURE EXPERT OF NS2…………….