[ndnSIM] Porting scenarios to ndnSIM 2.1

Muhammad Hosain Abdollahi Sabet M.AbdollahiSabet at mail.sbu.ac.ir
Tue Apr 26 05:12:03 PDT 2016


Thank you so much. You're saving lives!!


-----Original Message-----
From: Alex Afanasyev [mailto:aa at cs.ucla.edu] 
Sent: Thursday, April 14, 2016 6:46 AM
To: Muhammad Hosain Abdollahi Sabet
Cc: ndnsim at lists.cs.ucla.edu
Subject: Re: [ndnSIM] Porting scenarios to ndnSIM 2.1

> On Apr 2, 2016, at 11:43 AM, Muhammad Hosain Abdollahi Sabet
<M.AbdollahiSabet at mail.sbu.ac.ir> wrote:
> Hi everyone,
> Is there any guide on how one can port simulation scenarios wrote for
ndnSIM 1? Currently I have a simulation in which has some modifications
in  model/ndn-interest.h/.cc, model/wire/ndnsim.h/.cc,
model/fw/ndn-forwarding-strategy.h/.cc. I know NFD is being used
directly in ndnSIM 2.1 and there has been some changes in ndn-cxx. But
honestly I'm not much familiar with them and need some guide.

It very much depends on how extensive are your changes.

To modify interest abstraction and wire encoding, you need to look at

- ndnSIM/ndn-cxx/src/interest.hpp
- ndnSIM/ndn-cxx/src/interest.cpp

For application PIT (ndn.cxx/...), you can look at

- ndnSIM/ndn-cxx/src/detail/pending-interests.hpp, but there is also
logic in ndnSIM/ndn-cxx/src/detail/face-impl.hpp

For forwarding strategy, depending on your specific interest, it could
be part of the strategy interface

- ndnSIM/NFD/daemon/fw/strategy.hpp
- ndnSIM/NFD/daemon/fw/strategy.cpp
- ndnSIM/NFD/daemon/fw/*-strategy.*pp  (examples of implemented

or if you need to change some of the forwarding logic (which we call now
"pipelines"), you may look into

- ndnSIM/NFD/daemon/fw/forwarder.hpp
- ndnSIM/NFD/daemon/fw/forwarder.cpp


More information about the ndnSIM mailing list