<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">To modify packet format in ndnSIM 2.x, you don't need to modify anything with ndn-header.  You just need to update definition and encoding/decoding in the abstraction definition, e.g., in ndn-cxx/src/interest.hpp/cpp.  You need to be careful with Data packet, as it has special considerations because of the signatures.</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 11, 2016, at 4:43 AM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:mhasabet@gmail.com" class="">mhasabet@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">Hi again,</p><p dir="ltr" class="">Sorry. I want to port some changes in these functions which are defined in model/wire/ndnsim.h:<br class="">
- Interest::GetSerializedSize<br class="">
- Interest::Serialize<br class="">
- Interest::Deserialize<br class="">
Which will lead to modifying ndn-header, right? But header in v 2.1 is much simpler than in v 1. What has been changed here?</p><p dir="ltr" class="">Thanks,<br class="">
Sabet</p>
<div class="gmail_quote">On 2 May 2016 09:11, "Alex Afanasyev" <<a href="mailto:aa@cs.ucla.edu" class="">aa@cs.ucla.edu</a>> wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br class="">
> On Apr 30, 2016, at 11:59 PM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:M.AbdollahiSabet@Mail.sbu.ac.ir" class="">M.AbdollahiSabet@Mail.sbu.ac.ir</a>> wrote:<br class="">
><br class="">
> Alex,<br class="">
><br class="">
> What is equivalent of /model/wire/ndnsim in V.2?<br class="">
><br class="">
<br class="">
The wire encoding is embedded directly in each of the data structure: ndn-cxx/src/interest.cpp, ndn-cxx/src/data.cpp, etc.  Some general-purpose wire-encoding functions are in ndn-cxx/src/encoding.<br class="">
<br class="">
--<br class="">
Alex<br class="">
<br class="">
><br class="">
> Thanks,<br class="">
> Sabet<br class="">
><br class="">
><br class="">
><br class="">
> -----Original Message-----<br class="">
> From: Muhammad Hosain Abdollahi Sabet<br class="">
> Sent: Tue 4/26/2016 4:42 PM<br class="">
> To: 'Alex Afanasyev'<br class="">
> Cc: 'ndnsim'<br class="">
> Subject: RE: [ndnSIM] Porting scenarios to ndnSIM 2.1<br class="">
><br class="">
> Alex,<br class="">
><br class="">
> Thank you so much. You're saving lives!!<br class="">
><br class="">
> Regards,<br class="">
> Sabet<br class="">
><br class="">
> -----Original Message-----<br class="">
> From: Alex Afanasyev [mailto:<a href="mailto:aa@cs.ucla.edu" class="">aa@cs.ucla.edu</a>]<br class="">
> Sent: Thursday, April 14, 2016 6:46 AM<br class="">
> To: Muhammad Hosain Abdollahi Sabet<br class="">
> Cc: <a href="mailto:ndnsim@lists.cs.ucla.edu" class="">ndnsim@lists.cs.ucla.edu</a><br class="">
> Subject: Re: [ndnSIM] Porting scenarios to ndnSIM 2.1<br class="">
><br class="">
><br class="">
> > On Apr 2, 2016, at 11:43 AM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:M.AbdollahiSabet@mail.sbu.ac.ir" class="">M.AbdollahiSabet@mail.sbu.ac.ir</a>> wrote:<br class="">
> ><br class="">
> > Hi everyone,<br class="">
> > 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 class="">
><br class="">
> It very much depends on how extensive are your changes.<br class="">
><br class="">
> To modify interest abstraction and wire encoding, you need to look at<br class="">
><br class="">
> - ndnSIM/ndn-cxx/src/interest.hpp<br class="">
> - ndnSIM/ndn-cxx/src/interest.cpp<br class="">
><br class="">
> For application PIT (ndn.cxx/...), you can look at<br class="">
><br class="">
> - ndnSIM/ndn-cxx/src/detail/pending-interests.hpp, but there is also logic in ndnSIM/ndn-cxx/src/detail/face-impl.hpp<br class="">
><br class="">
> For forwarding strategy, depending on your specific interest, it could be part of the strategy interface<br class="">
><br class="">
> - ndnSIM/NFD/daemon/fw/strategy.hpp<br class="">
> - ndnSIM/NFD/daemon/fw/strategy.cpp<br class="">
> - ndnSIM/NFD/daemon/fw/*-strategy.*pp  (examples of implemented strategies)<br class="">
><br class="">
> or if you need to change some of the forwarding logic (which we call now "pipelines"), you may look into<br class="">
><br class="">
> - ndnSIM/NFD/daemon/fw/forwarder.hpp<br class="">
> - ndnSIM/NFD/daemon/fw/forwarder.cpp<br class="">
><br class="">
> ---<br class="">
> Alex<br class="">
><br class="">
><br class="">
><br class="">
<br class="">
<br class="">_______________________________________________<br class="">
ndnSIM mailing list<br class="">
<a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br class="">
<br class=""></blockquote></div>
</div></blockquote></div><br class=""></body></html>