[ndnSIM] ndnSIM Digest, Vol 80, Issue 26

Zhongxiang Zhu zzxfisher at gmail.com
Sat Aug 10 07:21:24 PDT 2019


Hi Junxiao,
Thanks a lot for your answer.
Now I'm having a new problem that will I be able to access the previous
replied Data from inside Consumer::SendPacket() before sending out a new
Interest?
As I have a tag (with value1) attached to the Data packet, here I'm trying
to extract this tag value1 of replied Data then attach a new tag to the
subsequent Interest with a value2 which is calculated based on the value1.
Thanks in advance.

Best Wishes
Zhongxiang

On Wed, 31 Jul 2019 at 20:00, <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 reach 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: Set tag to wifi attributes (Junxiao Shi)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 31 Jul 2019 13:00:08 -0400
> From: Junxiao Shi <shijunxiao at email.arizona.edu>
> To: Zhongxiang Zhu <zzxfisher at gmail.com>
> Cc: ndnsim <ndnsim at lists.cs.ucla.edu>
> Subject: Re: [ndnSIM] Set tag to wifi attributes
> Message-ID:
>         <
> CAOFH+OZY-va+Kx-0PecWxE2ZuMvcC41ayC-BJaOpa320Y8EBbA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Zhongxiang
>
> As I understand, your question is: in an application, you want to tag a
> packet with a value that is related to an attribute of a WifiNetDevice.
> In ns-3, this can be achieved with:
>
>    1. Get hold of Ptr<Node>, by looking up NodeList with current execution
>    context ID.
>    2. Enumerate NetDevices attached to the Node.
>    3. Find the WiFiNetDevice, and read its attribute.
>    4. Tag the packet.
>
>
> Yours, Junxiao
>
> On Tue, Jul 23, 2019 at 7:55 PM Zhongxiang Zhu via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
>
> > Hi all,
> >
> > I'm working on a wifi scenario where I have a new tag field attached and
> > tested that works fine.
> > Now I would like to set the tag value to producer node's wifiNetDevices
> > attributes from Producer::onInterest( ) but can't achieve it. Could you
> > please suggest how can tag access wifiNetDevices attributes from inside
> > Producer/Consumer.
> >
> > I have read relevant tag posts but couldn't find what I'm looking for.
> > Appreciate your help!
> >
> > Best Regards
> > Fisher
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190731/93fdbd9f/attachment-0001.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 80, Issue 26
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190810/993e9e64/attachment.html>


More information about the ndnSIM mailing list