<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1489005629710_2751"><span>Hi Spyros,</span></div><div id="yui_3_16_0_ym19_1_1489005629710_2760"><span><br></span></div><div id="yui_3_16_0_ym19_1_1489005629710_2828"><span id="yui_3_16_0_ym19_1_1489005629710_3406">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"><span><br></span></div><div id="yui_3_16_0_ym19_1_1489005629710_2931"><span id="yui_3_16_0_ym19_1_1489005629710_2959">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></span></div><div id="yui_3_16_0_ym19_1_1489005629710_3306"><span id="yui_3_16_0_ym19_1_1489005629710_2959">At t=2s, the Consumer nodes sends out another Interest with the prefix /name/segment_2/timestamp_2/some_other_field_2<br></span></div><div id="yui_3_16_0_ym19_1_1489005629710_3359"><span id="yui_3_16_0_ym19_1_1489005629710_2959">And so on.</span></div><div id="yui_3_16_0_ym19_1_1489005629710_3407"><span id="yui_3_16_0_ym19_1_1489005629710_2959"><br></span></div><div id="yui_3_16_0_ym19_1_1489005629710_3403" dir="ltr"><span id="yui_3_16_0_ym19_1_1489005629710_2959">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"><span id="yui_3_16_0_ym19_1_1489005629710_2959"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4840"><span id="yui_3_16_0_ym19_1_1489005629710_2959">So a node can decide to drop a packet if (currentTime - timestamp_n) > threshold, for instance.<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4730"><span id="yui_3_16_0_ym19_1_1489005629710_2959"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4632"><span id="yui_3_16_0_ym19_1_1489005629710_2959">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"><span id="yui_3_16_0_ym19_1_1489005629710_2959"><br></span></div><div dir="ltr"><span id="yui_3_16_0_ym19_1_1489005629710_2959">Thank you<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4664"><span id="yui_3_16_0_ym19_1_1489005629710_2959"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_4665"><span id="yui_3_16_0_ym19_1_1489005629710_2959"><br></span></div><div id="yui_3_16_0_ym19_1_1489005629710_3402"><span id="yui_3_16_0_ym19_1_1489005629710_2959"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489005629710_3640"><span id="yui_3_16_0_ym19_1_1489005629710_2959"><br></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Tuesday, March 7, 2017 6:53 PM, Spyridon (Spyros) Mastorakis <mastorakis@cs.ucla.edu> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv4429360836"><div>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><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><br></div>  </div> </div>  </div></div></body></html>