Now after installing ns3 and testing it run some programs first to be ns3 user:
make sure you are in directory where waf script is available then run
./waf --run first
and you will probably get
At time 2s client sent 1024 bytes to 10.1.1.2 port 9
At time 2.00369s server received 1024 bytes from 10.1.1.1 port 49153
At time 2.00369s server sent 1024 bytes to 10.1.1.1 port 49153
At time 2.00737s client received 1024 bytes from 10.1.1.2 port 9
then you can replace first by second,third till seven to get different outputs.note that you are running files of directory ../examples/tutorials which are of .cc extension but you have not used .cc in your command.
Next thing you need to know is put your programs in scratch directory so that you have not to make entry in wscript file.for eg copy availabe programs in scratch directory using different filename and try to run them.
ok the above information can also be found in ns3 tutorial but more important points for you can be:
1)ns3 can be used to generate .xml, .pcap, .csv, .dat files.
2)Netanim will be used to visualize your output that will use .xml file.
3).pcap is packet capture file you can open it using wireshark or tcpdump.
4)you can open .csv by just double clicking it(by Libre office).
5).dat is just your file to store data that can be used by .gnuplot script written by you to generate different graphs.
if you are new to netanim, gnuplot or wireshark don't panic i will probably write some intro that will help you to get started with them.
make sure you are in directory where waf script is available then run
./waf --run first
and you will probably get
At time 2s client sent 1024 bytes to 10.1.1.2 port 9
At time 2.00369s server received 1024 bytes from 10.1.1.1 port 49153
At time 2.00369s server sent 1024 bytes to 10.1.1.1 port 49153
At time 2.00737s client received 1024 bytes from 10.1.1.2 port 9
then you can replace first by second,third till seven to get different outputs.note that you are running files of directory ../examples/tutorials which are of .cc extension but you have not used .cc in your command.
Next thing you need to know is put your programs in scratch directory so that you have not to make entry in wscript file.for eg copy availabe programs in scratch directory using different filename and try to run them.
ok the above information can also be found in ns3 tutorial but more important points for you can be:
1)ns3 can be used to generate .xml, .pcap, .csv, .dat files.
2)Netanim will be used to visualize your output that will use .xml file.
3).pcap is packet capture file you can open it using wireshark or tcpdump.
4)you can open .csv by just double clicking it(by Libre office).
5).dat is just your file to store data that can be used by .gnuplot script written by you to generate different graphs.
if you are new to netanim, gnuplot or wireshark don't panic i will probably write some intro that will help you to get started with them.
how to make a topology in ns3 plzz help
ReplyDeleteI need to send a picture between two nodes connected by wireless, or simply a node to send it to another next.
ReplyDelete