<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">ndnSIM uses a static NFD configuration file:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/ndn-l3-protocol.cpp#L117" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/ndn-l3-protocol.cpp#L117</a></div><div class=""><br class=""></div><div class="">You can change the parameters of the config file directly in the source code.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br 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 class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Apr 14, 2019, at 7:07 AM, Atif Rehman via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" class="">ndnsim@lists.cs.ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">Dear all, <br class=""></span><div class=""><br class=""></div><div class="">I am simulating an ad hoc scenario and made one change in "nfd.conf.sample.in" file to set Link Type as ad hoc.<span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class=""> <span class="Apple-converted-space"> </span><b class="">  mcast_ad_hoc yes ; set to 'yes' to make all UDP multicast faces "ad hoc", default 'no'</b><br class=""></div><div class=""><br class=""></div><div class="">after making this change in the files i executed<span class="Apple-converted-space"> </span><b class="">"./waf configure"</b><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><b class="">"./waf"</b><span class="Apple-converted-space"> </span>command to reflect the change in the code. However, when i printed the Link Type, it is still point-to-point.<span class="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">Before posting this issue, i searched mailing list and found that there are some code related solutions recommended by Spyridon, Junxiao and Teng (Teng also recommended configuration file solution). But it seems that code changes are for older version of NFD because in previous code there was no check on LINK_TYPE_AD_HOC. However, in current version there is already a check on Link_TYPE as mentioned below.</div><div class=""> <br class=""></div><div class=""><b class="">1. Check in forwarder class</b><br class=""></div><div class=""><br class=""></div><div class="">for (Face* pendingDownstream : pendingDownstreams)<span class="Apple-converted-space"> </span><br class=""></div><div class="">{<br class=""></div><div class="">     <span class="Apple-converted-space"> </span><br class=""></div><div class="">   NS_LOG_INFO("pendingDownstream->getLinkType()"<<pendingDownstream->getLinkType());<br class=""></div><div class="">     <span class="Apple-converted-space"> </span><br class=""></div><div class="">   if (pendingDownstream->getId() == inFace.getId() &&<br class=""></div><div class="">         <span class="Apple-converted-space"> </span><b class="">pendingDownstream->getLinkType() != ndn::nfd::LINK_TYPE_AD_HOC</b>)<span class="Apple-converted-space"> </span><br class=""></div><div class="">   {<br class=""></div><div class="">        continue;<br class=""></div><div class="">   }<br class=""></div><div class="">      // goto outgoing Data pipeline<br class=""></div><div class="">      this->onOutgoingData(data, *pendingDownstream);<br class=""></div><div class=""> }<br class=""></div><div class=""><br class=""></div><div class=""><b class="">2. Check in starategy class (BestRouteStrategy2)</b><br class=""></div><div class="">//do not forward back to the same face, unless it is ad hoc</div><div class="">if (<b class="">outFace.getId() == inFace.getId() && outFace.getLinkType() != ndn::nfd::LINK_TYPE_AD_HOC</b>)<br class=""></div><div class="">    return false;<br class=""></div><div class=""><br class=""></div><div class="">So its mean if we just make changes in configuration file, we can simulate the ad hoc scenarios without making any changes in code.<br class=""></div><div class=""><br class=""></div><div class="">Kindly guide me how to reflect above mentioned configuration change. <br class=""></div><div class=""><br class=""></div><span class="">Thank you.</span><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div id="Signature" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div class=""><span style="font-style: normal; font-weight: 400; font-size: small; line-height: 21.3px; font-family: Verdana;" class=""><b class=""><span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont;" class="">Regards </span></b></span></div><div id="geom_inter_1528795240697_70_17" class=""><span style="font-style: normal; font-weight: 400; font-size: small; line-height: 21.3px; font-family: Verdana;" class=""><b class=""><span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont;" class=""><br class=""></span></b></span></div><b style="font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""></b><span style="font-style: normal; font-weight: 400; font-size: small; line-height: 21.3px; font-family: Verdana;" class=""><b class=""><span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont;" class="">Atif Ur Rehman</span></b><span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont;" class=""> </span></span><span style="font-style: normal; font-weight: 400; font-size: 12pt; line-height: 21.3px; font-family: "Malgun Gothic", "맑은 고딕", AppleGothic, sans-serif, serif, EmojiFont;" class=""><b class=""><span style="font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont;" class="">(Ph.D. Student)</span></b></span><br class=""><div id="geom_inter_1528795240701_98_20" class=""><span style="font-style: normal; font-weight: 400; font-size: small; line-height: 21.3px; font-family: Verdana;" class=""><span style="font-family: "Malgun Gothic", "맑은 고딕", AppleGothic, sans-serif, serif, EmojiFont;" class=""><b class=""> </b></span></span></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">ndnSIM mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">ndnSIM@lists.cs.ucla.edu</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></div></blockquote></div><br class=""></div></body></html>