<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I do not see how you could achieve that by modifying the packet format…</div><div class=""><br class=""></div><div class="">I would suggest you modify NFD directly or write your own application that will be running on each node and implement the required logic.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 8, 2017, at 1:00 PM, John Scott <<a href="mailto:scott1091@yahoo.com" class="">scott1091@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div id="yui_3_16_0_ym19_1_1489005629710_2751" class=""><span class="">Hi Spyros,</span></div><div id="yui_3_16_0_ym19_1_1489005629710_2760" class=""><span class=""><br class=""></span></div><div id="yui_3_16_0_ym19_1_1489005629710_2828" class=""><span id="yui_3_16_0_ym19_1_1489005629710_3406" class="">The title of the email is misleading, sorry. What I want to accomplish is the following:</span></div><div id="yui_3_16_0_ym19_1_1489005629710_2930" class=""><span class=""><br class=""></span></div><div id="yui_3_16_0_ym19_1_1489005629710_2931" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class="">At t=0s, Consumer node sends out an Interest with the prefix /name/segment_1. The application itself adds to the Interest /timestamp_1/some_other_field_1<br class=""></span></div><div id="yui_3_16_0_ym19_1_1489005629710_3306" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class="">At t=2s, the Consumer nodes sends out another Interest with the prefix /name/segment_2/timestamp_2/some_other_field_2<br class=""></span></div><div id="yui_3_16_0_ym19_1_1489005629710_3359" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class="">And so on.</span></div><div id="yui_3_16_0_ym19_1_1489005629710_3407" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class=""><br class=""></span></div><div id="yui_3_16_0_ym19_1_1489005629710_3403" dir="ltr" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class="">The Producer node then interprets the Interest name, parses, and reply with the Data packet /name/segment_1/timestamp_3/some_other_field_3.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_3763" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class=""><br class=""></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4840" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class="">So a node can decide to drop a packet if (currentTime - timestamp_n) > threshold, for instance.<br class=""></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4730" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class=""><br class=""></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4632" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class="">Can this be accomplish by modifying the Interest/Data packet in the ndn-cxx library or by using Interest filters and selectors?</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4928" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class=""><br class=""></span></div><div dir="ltr" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class="">Thank you<br class=""></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4664" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class=""><br class=""></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4665" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class=""><br class=""></span></div><div id="yui_3_16_0_ym19_1_1489005629710_3402" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class=""><br class=""></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_3640" class=""><span id="yui_3_16_0_ym19_1_1489005629710_2959" class=""><br class=""></span></div> <div class="qtdSeparateBR"><br class=""><br class=""></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class=""> <div dir="ltr" class=""><font size="2" face="Arial" class=""> On Tuesday, March 7, 2017 6:53 PM, Spyridon (Spyros) Mastorakis <<a href="mailto:mastorakis@cs.ucla.edu" class="">mastorakis@cs.ucla.edu</a>> wrote:<br class=""></font></div> <br class=""><br class=""> <div class="y_msg_container"><div id="yiv4429360836" class=""><div class="">Hi,<div class="yiv4429360836"><br class="yiv4429360836" clear="none"></div><div class="yiv4429360836">take a look at the ndn-cxx library used by ndnSIM:</div><div class="yiv4429360836"><br class="yiv4429360836" clear="none"></div><div class="yiv4429360836"><a rel="nofollow" shape="rect" class="yiv4429360836" target="_blank" href="https://github.com/named-data-ndnSIM/ndn-cxx">https://github.com/named-data-ndnSIM/ndn-cxx</a></div><div class="yiv4429360836"><br class="yiv4429360836" clear="none"></div><div class="yiv4429360836">Modify the data and interest classes to add the fields that you want:</div><div class="yiv4429360836"><br class="yiv4429360836" clear="none"></div><div class="yiv4429360836"><a rel="nofollow" shape="rect" class="yiv4429360836" target="_blank" href="https://github.com/named-data-ndnSIM/ndn-cxx/blob/ndn-cxx-0.3.4-ndnSIM/src/data.cpp">https://github.com/named-data-ndnSIM/ndn-cxx/blob/ndn-cxx-0.3.4-ndnSIM/src/data.cpp</a></div><div class="yiv4429360836"><a rel="nofollow" shape="rect" class="yiv4429360836" target="_blank" href="https://github.com/named-data-ndnSIM/ndn-cxx/blob/ndn-cxx-0.3.4-ndnSIM/src/interest.cpp">https://github.com/named-data-ndnSIM/ndn-cxx/blob/ndn-cxx-0.3.4-ndnSIM/src/interest.cpp</a></div><div class="yiv4429360836"><br class="yiv4429360836" clear="none"></div><div class="yiv4429360836">Make sure that you also modify the way that you encode and decode an NDN packet to/from its wire format (methods wireEncode and wireDecode).</div><div class="yiv4429360836"><br class="yiv4429360836" clear="none"></div><div class="yiv4429360836">Hope that this helps,</div><div class="yiv4429360836"><br class="yiv4429360836" clear="none"><div class="yiv4429360836">
<div class="yiv4429360836"><div class="yiv4429360836"><div class="yiv4429360836"><span class="yiv4429360836" style="float:none;display:inline;">Spyridon (Spyros) Mastorakis</span><br class="yiv4429360836" clear="none"><span class="yiv4429360836" style="float:none;display:inline;">Personal Website: </span><a rel="nofollow" shape="rect" class="yiv4429360836" target="_blank" href="http://cs.ucla.edu/~mastorakis/">http://cs.ucla.edu/~mastorakis/</a><br class="yiv4429360836" clear="none"><span class="yiv4429360836" style="float:none;display:inline;">Internet Research Laboratory</span><br class="yiv4429360836" clear="none"><span class="yiv4429360836" style="float:none;display:inline;">Computer Science Department</span><br class="yiv4429360836" clear="none"><span class="yiv4429360836" style="float:none;display:inline;">UCLA</span></div><div class="yiv4429360836"><br class="yiv4429360836" clear="none"></div></div></div></div><div class="yiv4429360836yqt4489632569" id="yiv4429360836yqt89804"><div class=""><blockquote class="yiv4429360836" type="cite"><div class="yiv4429360836">On Mar 7, 2017, at 12:26 PM, John Scott <<a rel="nofollow" shape="rect" class="yiv4429360836" ymailto="mailto:scott1091@yahoo.com" target="_blank" href="mailto:scott1091@yahoo.com">scott1091@yahoo.com</a>> wrote:</div><br class="yiv4429360836Apple-interchange-newline" clear="none"><div class="yiv4429360836"><div class="yiv4429360836"><div class="yiv4429360836" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv4429360836">Hi,</div><div class="yiv4429360836" id="yiv4429360836yui_3_16_0_ym19_1_1488597478086_62536"><br class="yiv4429360836" clear="none"></div><div class="yiv4429360836" dir="ltr" id="yiv4429360836yui_3_16_0_ym19_1_1488597478086_62526">I would like to add extra information in the Interest and Data packets so that intermediate nodes can make forwarding decisions; however, I did not find this option in the ndnSIM.</div><div class="yiv4429360836" dir="ltr">Could you please point me to some references?</div><div class="yiv4429360836" dir="ltr"><br class="yiv4429360836" clear="none"></div><div class="yiv4429360836" dir="ltr">Thank you<br class="yiv4429360836" clear="none"></div><div class="yiv4429360836" dir="ltr" id="yiv4429360836yui_3_16_0_ym19_1_1488597478086_62535"><br class="yiv4429360836" clear="none"></div></div></div></div></blockquote></div></div><br class="yiv4429360836" clear="none"></div></div></div><br class=""><br class=""></div> </div> </div> </div></div></div></div></blockquote></div><br class=""></div></body></html>