<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [ndnSIM] Porting scenarios to ndnSIM 2.1</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Alex,<BR>
<BR>
What is equivalent of /model/wire/ndnsim in V.2?<BR>
<BR>
Thanks,<BR>
Sabet<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Muhammad Hosain Abdollahi Sabet<BR>
Sent: Tue 4/26/2016 4:42 PM<BR>
To: 'Alex Afanasyev'<BR>
Cc: 'ndnsim'<BR>
Subject: RE: [ndnSIM] Porting scenarios to ndnSIM 2.1<BR>
<BR>
Alex,<BR>
<BR>
Thank you so much. You're saving lives!!<BR>
<BR>
Regards,<BR>
Sabet<BR>
<BR>
-----Original Message-----<BR>
From: Alex Afanasyev [<A HREF="mailto:aa@cs.ucla.edu">mailto:aa@cs.ucla.edu</A>]<BR>
Sent: Thursday, April 14, 2016 6:46 AM<BR>
To: Muhammad Hosain Abdollahi Sabet<BR>
Cc: ndnsim@lists.cs.ucla.edu<BR>
Subject: Re: [ndnSIM] Porting scenarios to ndnSIM 2.1<BR>
<BR>
<BR>
> On Apr 2, 2016, at 11:43 AM, Muhammad Hosain Abdollahi Sabet <M.AbdollahiSabet@mail.sbu.ac.ir> wrote:<BR>
><BR>
> Hi everyone,<BR>
> 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, ndn.cxx/detail/pending-interests-container.h,  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.<BR>
<BR>
It very much depends on how extensive are your changes.<BR>
<BR>
To modify interest abstraction and wire encoding, you need to look at<BR>
<BR>
- ndnSIM/ndn-cxx/src/interest.hpp<BR>
- ndnSIM/ndn-cxx/src/interest.cpp<BR>
<BR>
For application PIT (ndn.cxx/...), you can look at<BR>
<BR>
- ndnSIM/ndn-cxx/src/detail/pending-interests.hpp, but there is also logic in ndnSIM/ndn-cxx/src/detail/face-impl.hpp<BR>
<BR>
For forwarding strategy, depending on your specific interest, it could be part of the strategy interface<BR>
<BR>
- ndnSIM/NFD/daemon/fw/strategy.hpp<BR>
- ndnSIM/NFD/daemon/fw/strategy.cpp<BR>
- ndnSIM/NFD/daemon/fw/*-strategy.*pp  (examples of implemented strategies)<BR>
<BR>
or if you need to change some of the forwarding logic (which we call now "pipelines"), you may look into<BR>
<BR>
- ndnSIM/NFD/daemon/fw/forwarder.hpp<BR>
- ndnSIM/NFD/daemon/fw/forwarder.cpp<BR>
<BR>
---<BR>
Alex<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>