Well first of all sorry if my question was not clear enough and troubles I've caused.
I'm pretty new to ns3 and I didn't get enough time to learn the basics.
I've a final year project on Simulation of AODV,GPSR and GPCR in VANET. I was under the impression that I would eventually get one sample simulation scenario for complete simulation but unfortunately didn't find one.
So I've created a sample scenario in sumo consisting 150 nodes and I generated ns2mobility ns2activity and ns2config files using that traceExporter tool.
I read a blog which explained how to import this mobility file in ns3 using ns2-mobility-helper.cc file. I made some changes in that file as shown in the blog and I was able to generate log file which is correct one as the values of X,Y and velocity matches my mobility file.
But I'm interested in generating trace file.Because based on that file I can do performance evaluation. For that, I need to include a protocol package, say AODV. But I don't know how to do it in ns3. I read tracing manual but it didn't help a lot. Here is my ns2-mobility-helper.cc file which resides in /scratch.
Dear Konstantinos,
Hello again. I've been working on my basics of ns3. And as per your suggestions, I looked at the examples of wifi and aodv. I got a code from this group and learned from it, Then I copied "wifi-simple-adhoc.cc" file from /wireless and modified it for my scenario and I've attached it here.
Now the problem here is, my scenario contains 150 nodes. So I've changed number of nodes to 150 in 123rd line. Is it technically correct? Should number of nodes in ns3 be same as number of nodes in sumo?(In sumo nodes are vehicles) I assume it must be same but still I just want to make it clear.
Then there's code which sets up wifi channel. And then I added mobility nodes using Ns2MobilityHelper class. Now should there be some value in ns2.Install()? I tried passing 150 or c as parameter but it resulted in error.
| void ns3::Ns2MobilityHelper::Install | ( | void | ) | const |
Read the ns2 trace file and configure the movement patterns of all nodes contained in the global ns3::NodeList whose nodeId is matches the nodeId of the nodes in the trace file.
Anyways, I declared AodvHelper class as I want to use AODV. But I'm not sure whether it can be implemented just by declaring it. After that there's InternetStackHelper class which is basically used to assign IP to devices & nodes I assume.
But the code after that is something I couldn't understand. Do I've to create sockets for all the source and receive sinks!!! I've 150 nodes and it would be a hell of a job to do that. However I tried to use a loop which can set 1 to 149 nodes as receive sink and 150th as source but it generates error.
Tracing generates individual pcap file for all 150 nodes but it doesn't look useful to me.
--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/LfjbgCWxNV8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.