[ndnSIM] Using SUMO with ndnSim

Sonia zohanoor67 at gmail.com
Wed Jun 2 19:16:39 PDT 2021


Hi,

You already know how to do it. just an example

Ns2MobilityHelper mobility1 = Ns2MobilityHelper (
"/home/han/ndnSIM/ns-3/src/mobility/examples/highway_70_5km.txt");
//highway_70_5km.txt

mobility1.Install();

put the code as above after you create mobile nodes.

Hope it works.



On Thu, Jun 3, 2021 at 2:36 AM Zakaria SABIR <zakaria.sabir at uit.ac.ma>
wrote:

> Dear members,
>
> I hope you are doing well. I want to create a simple code of mobile nodes
> (vehicles) communicating via NDN. So I used SUMO to generate a mobility
> file and I converted this file to ns2 mobility trace. Now I want to
> integrate it in ndnSim. I know that I have to use the following
> instruction "Ns2MobilityHelper ns2 = Ns2MobilityHelper (traceFileName)" but
> I don't know exactly how to do it. I need an example. Could anyone send me
> a simple example, or just guide me to write the code? Any help would be
> appreciated.
>
> My best regards.
> Zakaria
>> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210603/abef437d/attachment.html>


More information about the ndnSIM mailing list