<html><head></head><body><div>Actually, I'm stuck at the same problem, I was trying to implement an adhoc strategy which requires scheduling the retranssmission but I couldn't. If you figured it out please notify me.<br><br><br><br></div>
<div><!-- tmjah_g_1299s -->Sent from <!-- tmjah_g_1299e --><a href="http://www.bluemail.me/r"><!-- tmjah_g_1299s -->BlueMail<!-- tmjah_g_1299e --></a><br><br></div>
<div class="gmail_quote" >On Mar 12, 2017, at 6:00 PM, Rajvardhan Deshmukh <<a href="mailto:rdeshmukh@umass.edu" target="_blank">rdeshmukh@umass.edu</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">Thanks lahmer it works.<br>I had another error while inducing delay using following:<br>  Simulator::Schedule(Seconds(Ndelay),<br>  &WaitStrategy::SendAfterDelay,pitEntry,outFace,interest);<br>  void WaitStrategy::SendAfterDelay(shared_ptr<pit::Entry>&<br>  pitEntry,const Face outFace,const Interest& interest)<br>  {<br>  this->sendInterest(pitEntry, outFace, interest);<br>  }<br><br>  <br><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/a9d889b7a787842d45c86c67bc21d44853b03b7f/apps/ndn-consumer-cbr.cpp#L85">https://github.com/named-data-ndnSIM/ndnSIM/blob/a9d889b7a787842d45c86c67bc21d44853b03b7f/apps/ndn-consumer-cbr.cpp#L85</a><br><br>  <br><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/5ea3322623a0550799431f25b2fc4e7e4df5c046/model/ndn-app-link-service.cpp#L55">https://github.com/named-data-ndnSIM/ndnSIM/blob/5ea3322623a0550799431f25b2fc4e7e4df5c046/model/ndn-app-link-service.cpp#L55</a><br><br>  <br><hr><br><br>  gives
error:<br>  error: use of deleted function 'nfd::face::Face::Face(const<br>  nfd::face::Face&)'<br>  Simulator::Schedule(Seconds(Ndelay),<br>  &WaitStrategy::SendAfterDelay,pitEntry,outFace,interest);<br>  error: candidate is: void<br><br>  <br>nfd::fw::WaitStrategy::SendAfterDelay(std::shared_ptr<nfd::pit::Entry>&,<br><br>  nfd::face::Face, const ndn::Interest&)<br>  Thanks,<br>Raj<br><br><br><br>On 2017-03-11 19:06, ndnsim-request@lists.cs.ucla.edu wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Send ndnSIM mailing list submissions to<br>  ndnsim@lists.cs.ucla.edu<br> <br> To subscribe or unsubscribe via the World Wide Web, visit<br>  <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br> or, via email, send a message with subject or body 'help' to<br>  ndnsim-request@lists.cs.ucla.edu<br> <br> You can reach the
person managing the list at<br>  ndnsim-owner@lists.cs.ucla.edu<br> <br> When replying, please edit your Subject line so it is more specific<br> than "Re: Contents of ndnSIM digest..."<br> <br> <br> Today's Topics:<br> <br>    1. Re: Problem with sequence number (Shahid Md. Asif Iqbal)<br>    2. Re: Problem with sequence number (Junxiao Shi)<br>    3. Re: Problem with sequence number (Shahid Md. Asif Iqbal)<br>    4. (no subject) (lahmer ilyas)<br>    5. Re: Inducing waiting delay in nodes and no member named<br>       GetObject error (lahmer ilyas)<br> <br> <br><hr><br> <br> Message: 1<br> Date: Sat, 11 Mar 2017 11:07:55 +0600<br> From: "Shahid Md. Asif Iqbal" <asifcsep@gmail.com><br> To: "Spyridon (Spyros) Mastorakis" <mastorakis@CS.UCLA.EDU><br> Cc: ndnsim <ndnsim@lists.cs.ucla.edu><br> Subject: Re: [ndnSIM] Problem with sequence number<br> Message-ID:<br>  <CADAVUiHV14mYbr33X6YX7ZCmO72d8MKece25N+i+Ajks=2bDAA@mail.gmail.com><br> Content-Type: text/plain;
charset="utf-8"<br> <br> Thanks Spyridon,<br> Then, how the same line is working fine in the consumer.cpp. As, it is <br> the<br> consumer who is defining the sequence number.<br> <br> Sincerely<br> Asif<br> <br> On Fri, Mar 10, 2017 at 11:25 PM, Spyridon (Spyros) Mastorakis <<br> mastorakis@cs.ucla.edu> wrote:<br> <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Hi,<br> <br> this means that the last name component of your data packet is not a<br> sequence number (or in any case a valid sequence number).<br> <br> Thanks,<br> <br> Spyridon (Spyros) Mastorakis<br> Personal Website: <a href="http://cs.ucla.edu/~mastorakis">http://cs.ucla.edu/~mastorakis</a>/<br> Internet Research Laboratory<br> Computer Science Department<br> UCLA<br> <br> On Mar 10, 2017, at 3:48 AM, Shahid Md. Asif Iqbal <br> <asifcsep@gmail.com><br> wrote:<br> <br> Dear All,<br> When I tried to execute the line<br> uint32_t seq =
data.getName().at(-1).toSequenceNumber();<br> from the onIncomingData(.......) function of the fowarder.cpp file, it <br> is<br> producing the error 'valid marker is not present or value is not a<br> nonnegative integer'. Can anyone please provide a remedy to the <br> problem?<br> <br> Sincerely<br> Asif<br> <br> <br> <br></blockquote> -------------- next part --------------<br> An HTML attachment was scrubbed...<br> URL:<br> <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170311/430d7a2f/attachment-0001.html">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170311/430d7a2f/attachment-0001.html</a>><br> <br><hr><br> <br> Message: 2<br> Date: Fri, 10 Mar 2017 22:14:43 -0700<br> From: Junxiao Shi <shijunxiao@email.arizona.EDU><br> To: "Shahid Md. Asif Iqbal" <asifcsep@gmail.com><br> Cc: ndnsim <ndnsim@lists.cs.ucla.edu>, "Spyridon (Spyros) Mastorakis"<br>  <mastorakis@CS.UCLA.EDU><br> Subject: Re: [ndnSIM] Problem with
sequence number<br> Message-ID:<br>  <CAOFH+Obesxz7Xvei-z6b9Sh2UNWhH1pe4s3hLHeko6sAo9bVxw@mail.gmail.com><br> Content-Type: text/plain; charset="utf-8"<br> <br> Hi Shahid<br> <br> Forwarder::onIncomingInterest processes not only Interests from your<br> consumer, but also Interests from management protocol and routing <br> protocol.<br> Those Interests may not have a sequence number at the end, and thus <br> fails<br> at that line.<br> <br> Yours, Junxiao<br> <br> <br> On Mar 10, 2017 10:08 PM, "Shahid Md. Asif Iqbal" <asifcsep@gmail.com><br> wrote:<br> <br> Thanks Spyridon,<br> Then, how the same line is working fine in the consumer.cpp. As, it is <br> the<br> consumer who is defining the sequence number.<br> <br> Sincerely<br> Asif<br> <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> <br> On Mar 10, 2017, at 3:48 AM, Shahid Md. Asif Iqbal <br> <asifcsep@gmail.com><br> wrote:<br> <br> Dear
All,<br> When I tried to execute the line<br> uint32_t seq = data.getName().at(-1).toSequenceNumber();<br> from the onIncomingData(.......) function of the fowarder.cpp file, it <br> is<br> producing the error 'valid marker is not present or value is not a<br> nonnegative integer'. Can anyone please provide a remedy to the <br> problem?<br> <br> Sincerely<br> Asif<br> <br> <br></blockquote> -------------- next part --------------<br> An HTML attachment was scrubbed...<br> URL:<br> <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170310/59ab14ec/attachment-0001.html">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170310/59ab14ec/attachment-0001.html</a>><br> <br><hr><br> <br> Message: 3<br> Date: Sat, 11 Mar 2017 11:20:30 +0600<br> From: "Shahid Md. Asif Iqbal" <asifcsep@gmail.com><br> To: Junxiao Shi <shijunxiao@email.arizona.EDU><br> Cc: ndnsim <ndnsim@lists.cs.ucla.edu>, "Spyridon (Spyros) Mastorakis"<br> 
<mastorakis@CS.UCLA.EDU><br> Subject: Re: [ndnSIM] Problem with sequence number<br> Message-ID:<br>  <CADAVUiGVGsT2BQ7DvwPgq85DvA3zzk_fYMZ=+AVHPu2MYsFcgg@mail.gmail.com><br> Content-Type: text/plain; charset="utf-8"<br> <br> Thanks Junxiao, that sounds nice.<br> <br> On Sat, Mar 11, 2017 at 11:14 AM, Junxiao Shi <br> <shijunxiao@email.arizona.edu><br> wrote:<br> <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Hi Shahid<br> <br> Forwarder::onIncomingInterest processes not only Interests from your<br> consumer, but also Interests from management protocol and routing <br> protocol.<br> Those Interests may not have a sequence number at the end, and thus <br> fails<br> at that line.<br> <br> Yours, Junxiao<br> <br> <br> On Mar 10, 2017 10:08 PM, "Shahid Md. Asif Iqbal" <asifcsep@gmail.com><br> wrote:<br> <br> Thanks Spyridon,<br> Then, how the same line is working fine in the consumer.cpp.
As, it is <br> the<br> consumer who is defining the sequence number.<br> <br> Sincerely<br> Asif<br> <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> <br> On Mar 10, 2017, at 3:48 AM, Shahid Md. Asif Iqbal <br> <asifcsep@gmail.com><br> wrote:<br> <br> Dear All,<br> When I tried to execute the line<br> uint32_t seq = data.getName().at(-1).toSequenceNumber();<br> from the onIncomingData(.......) function of the fowarder.cpp file, <br> it is<br> producing the error 'valid marker is not present or value is not a<br> nonnegative integer'. Can anyone please provide a remedy to the <br> problem?<br> <br> Sincerely<br> Asif<br> <br> <br></blockquote> <br></blockquote> -------------- next part --------------<br> An HTML attachment was scrubbed...<br> URL:<br> <<a
href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170311/05429144/attachment-0001.html">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170311/05429144/attachment-0001.html</a>><br> <br><hr><br> <br> Message: 4<br> Date: Sat, 11 Mar 2017 23:56:08 +0000<br> From: lahmer ilyas <ilyaslahmer93@gmail.com><br> To: "ndnsim@lists.cs.ucla.edu" <ndnsim@lists.cs.ucla.edu><br> Subject: [ndnSIM] (no subject)<br> Message-ID:<br>  <CAD6hRmk6=Bc-bLoyw3B1y5RLncPxLgCvBkxEZb3+XwS3rq9JQQ@mail.gmail.com><br> Content-Type: text/plain; charset="utf-8"<br> <br> Hi guys,<br> I'm trying to delay sending of an Interest. In my forwarding strategy<br> class, I created a method sendPacket(const Face& inFace, interest, <br> pit);<br> and in the strategy method afterReceiveInterest(...) I make a call<br> nns3::Simulator::Schedule(ns3::Seconds(1.0),&MyStrategy::sendPacket,this,inFace,interest,pitEntry);<br> and this cause me a compiler error:<br>  use of
deleted function ?nfd::face::Face::Face(const <br> nfd::face::Face&)?<br> I tried passing a pointer to the inFace and it compiles successfully <br> but at<br> runtime when I insert pitEntry I got bad weak pointer exception<br> -------------- next part --------------<br> An HTML attachment was scrubbed...<br> URL:<br> <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170311/a6ac1db4/attachment-0001.html">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170311/a6ac1db4/attachment-0001.html</a>><br> <br><hr><br> <br> Message: 5<br> Date: Sun, 12 Mar 2017 00:06:01 +0000<br> From: lahmer ilyas <ilyaslahmer93@gmail.com><br> To: "Spyridon (Spyros) Mastorakis" <mastorakis@CS.UCLA.EDU>,<br>  Rajvardhan Deshmukh <rdeshmukh@umass.edu><br> Cc: NdnSIM <ndnSIM@lists.cs.ucla.edu><br> Subject: Re: [ndnSIM] Inducing waiting delay in nodes and no member<br>  named GetObject error<br> Message-ID:<br> 
<CAD6hRmmsx1fJLO_gAdxtcDseAECQkQZ94_9Lm+Kwnwo53oJBOQ@mail.gmail.com><br> Content-Type: text/plain; charset="utf-8"<br> <br> Hi To get The position of a node you can do the following :<br> #include <ns3/mobility-module><br> #include<ns3/core-module><br> <br> ns3::Ptr<ns3::Node> node = <br> ns3::NodeList::GetNode(ns3::Simulator::GetContext());<br> ns3::Ptr<ns3::MobilityModel> mobility = <br> node->GetObject<ns3::MobilityModel>();<br> ns3::Vector current = mobility->GetPosition();<br> std::cout<<"Node Position"<<current<<std::endl;<br> <br> <br> <br> <br> <br> <br> On Wed, Mar 8, 2017 at 12:57 AM Spyridon (Spyros) Mastorakis <<br> mastorakis@cs.ucla.edu> wrote:<br> <br> Hi,<br> <br> unfortunately, I am not familiar with the mobility models of NS-3.<br> <br> You can try to use the ScheduleWithContext method and see if that will <br> work:<br> <br> <a
href="https://www.nsnam.org/doxygen/classns3_1_1_simulator.html#a5ba9b2de598375791433f1bb9ba9ca83">https://www.nsnam.org/doxygen/classns3_1_1_simulator.html#a5ba9b2de598375791433f1bb9ba9ca83</a><br> <a href="http://thread.gmane.org/gmane.network.simulator.ns3.user/31400">http://thread.gmane.org/gmane.network.simulator.ns3.user/31400</a><br> <br> Thanks,<br> <br> Spyridon (Spyros) Mastorakis<br> Personal Website: <a href="http://cs.ucla.edu/~mastorakis">http://cs.ucla.edu/~mastorakis</a>/<br> Internet Research Laboratory<br> Computer Science Department<br> UCLA<br> <br> On Mar 7, 2017, at 12:50 PM, Rajvardhan Deshmukh <rdeshmukh@umass.edu><br> wrote:<br> <br> <br> <br> -------- Original Message --------<br> Subject: Fwd: Re: Inducing waiting delay in nodes<br> Date: 2017-03-06 12:16<br> From: Rajvardhan Deshmukh <rdeshmukh@umass.edu><br> To: ndnsim@lists.cs.ucla.edu<br> <br> Thanks Spyridon i renamed the strategy and the .cpp and hpp names and<br> it<br> worked.<br> Also,
i wanted to get the position of the nodes in the forwarding<br> strategy.<br> 1.i tried directly using the<br> using namespace ns3;<br> using namespace fw;<br> Ptr<MobilityModel>model=GetObject<MobilityModel>();<br> Vector position= model.GetPosition();<br> -------------------------<br> error: 'GetObject' was not declared in this scope<br> <br> <a href="https://github.com/cawka/ndnSIM-nom-rapid-car2car/blob/master/extensions/ndn-fw-v2v.cc#L99">https://github.com/cawka/ndnSIM-nom-rapid-car2car/blob/master/extensions/ndn-fw-v2v.cc#L99</a><br> <br> 2.also inducing delay using following:<br> Simulator::Schedule(Seconds(Ndelay),<br> &WaitStrategy::SendAfterDelay,pitEntry,outFace,interest);<br> void WaitStrategy::SendAfterDelay(shared_ptr<pit::Entry>&<br> pitEntry,const Face outFace,const Interest& interest)<br> {<br> this->sendInterest(pitEntry, outFace, interest);<br> }<br> <br> <a
href="https://github.com/named-data-ndnSIM/ndnSIM/blob/a9d889b7a787842d45c86c67bc21d44853b03b7f/apps/ndn-consumer-cbr.cpp#L85">https://github.com/named-data-ndnSIM/ndnSIM/blob/a9d889b7a787842d45c86c67bc21d44853b03b7f/apps/ndn-consumer-cbr.cpp#L85</a><br> <br> <a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/5ea3322623a0550799431f25b2fc4e7e4df5c046/model/ndn-app-link-service.cpp#L55">https://github.com/named-data-ndnSIM/ndnSIM/blob/5ea3322623a0550799431f25b2fc4e7e4df5c046/model/ndn-app-link-service.cpp#L55</a><br> <br><hr><br> <br> gives error:<br> error: use of deleted function 'nfd::face::Face::Face(const<br> nfd::face::Face&)'<br> Simulator::Schedule(Seconds(Ndelay),<br> &WaitStrategy::SendAfterDelay,pitEntry,outFace,interest);<br> error: candidate is: void<br> <br> nfd::fw::WaitStrategy::SendAfterDelay(std::shared_ptr<nfd::pit::Entry>&,<br> <br> nfd::face::Face, const ndn::Interest&)<br> Thanks,<br> Raj<br> <br> <br><hr><br> ndnSIM mailing list<br>
ndnSIM@lists.cs.ucla.edu<br> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br> -------------- next part --------------<br> An HTML attachment was scrubbed...<br> URL:<br> <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170312/dcbf54cf/attachment.html">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170312/dcbf54cf/attachment.html</a>><br> <br><hr><br> <br> Subject: Digest Footer<br> <br><hr><br> ndnSIM mailing list<br> ndnSIM@lists.cs.ucla.edu<br> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br> <br> <br><hr><br> <br> End of ndnSIM Digest, Vol 52, Issue 11<br> **************************************<br></blockquote></pre></blockquote></div></body></html>