[ndnSIM] ndnSIM Digest, Vol 52, Issue 11

Rajvardhan Deshmukh rdeshmukh at umass.edu
Thu Mar 16 12:15:52 PDT 2017


fib::NextHopList::const_iterator it = nexthops.begin();

   while(it!=nexthops.end())
   {
     //Face& outFace = it->getFace();
     //Face* pt;
     //pt=&it->getFace();
     if (!wouldViolateScope(inFace, interest, it->getFace()) &&
         canForwardToLegacy(*pitEntry, it->getFace()))
     {

       ns3::Simulator::Schedule(ns3::Seconds(tGap), 
&WaitStrategy::SendAfterDelay,pitEntry,interest,it);
     }
   }

void WaitStrategy::SendAfterDelay(const shared_ptr<pit::Entry>& 
pitEntry,const Interest& interest,fib::NextHopList::const_iterator& it)
{
      this->sendInterest(pitEntry, it->getFace(), interest);
      ++it;
}

I tried this and it give following error:

/src/ndnSIM/NFD/daemon/fw/Wait-strategy.cpp:177:104:   required from 
here
./ns3/make-event.h:384:52: error: incomplete type 
‘ns3::EventMemberImplObjTraits<std::shared_ptr<nfd::pit::Entry> >’ used 
in nested name specifier
        (EventMemberImplObjTraits<OBJ>::GetReference 
(m_obj).*m_function)(m_a1, m_a2);

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


More information about the ndnSIM mailing list