First of all what is NS-2?..eh..?
It is a sheer replica of a network.(easy)
Network Simulator is a discrete event simulator targeted at networking research.It provides substantial support for simulation of TCP(transmission control protocol) TCP,routing,multicast protocols over wired and wireless networks.The two most important sources for learning ns-2 are
When you start, you learn A,B,C..Z, When you simulate you begin by learning topology(mesh,star,bus).It is open and its source is freely available.More than 80% of the projects in networking research use NS-2.It is easy to interpret its result with the help of easily available tools.So Give yourself a pat,you deserve it ,you are going to learn something Amazing....Hop On!!!The first step is to install this amazing thing.So let's get going.....
Are you a windows user..? Gimme Cygwin!!!
Are you a linux user..? Gimme Ns-2..:)
Still Stuck.....:-( Help Me!!
Basics-----
- The three most important parts are Nodes,Agents and Links.
- These nodes can further be classified with the attributes of source and sink depending on their traffic generator and/or receptor functions respectively.
- Create the Event Scheduler.
- Creating Network.
- Creating Connection
- Creating Traffic.
- Tracing.
When you run a ns-2 File (.tcl),then it will generate a trace file(.tr).This trace file will contain the information of every node at every second during the entire duration of the simulation.
AWK is a programming language that is designed for processing text-based data, either in files or data streams, and was created at Bell Labs in the 1970s. .
"AWK is a language for processing files of text. A file is treated as a sequence of records, and by default each line is a record. Each line is broken up into a sequence of fields, so we can think of the first word in a line as the first field, the second word as the second field, and so on. An AWK program is of a sequence of pattern-action statements. AWK reads the input a line at a time. A line is scanned for each pattern in the program, and for each pattern that matches, the associated action is executed." - Alfred V. Aho
The trace file is used for comparing the performance metrics of the network.It is fed as a input to the awk commands which generate the results for us.Want to learn More..Awk
Tracegraph is a third party software helps in plotting the graphs for NS2 and other networking simulation softwares. But the sad point is the software is not maintained by anyone and the happiest point is the software works fine still and it is free.
Learn More----->Tracegraph
Best of Luck!!!!...Now you are ready to start your NS-2 research ...Have a hot cup of coffee and start exploring...:-)..
No comments:
Post a Comment