[ndnSIM] ndnSIM Digest, Vol 47, Issue 4

张国治 zguozhi at foxmail.com
Sun Oct 9 17:46:45 PDT 2016


Hi,
I think I'm just getting to the good bit about my doubt before this.
(1) If you want to run the simulation  outside the directory of ns-3 installed,the command "sudo ./waf install" need be executed after Command"./waf" ,I forgot it.
(2)Modifying the pit directly is feasible , but I know it is not recommended, is there other way to modify the pit/pitEntry  like to modify forward strategy?


Sincerely,
Guozhi Zhang


------------------ Original ------------------
From:  "ndnsim-request";<ndnsim-request at lists.cs.ucla.edu>;
Date:  Mon, Oct 10, 2016 00:51 AM
To:  "ndnsim"<ndnsim at lists.cs.ucla.edu>; 

Subject:  ndnSIM Digest, Vol 47, Issue 4



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: something wrong in the technical report (Alex Afanasyev)
   2. Some doubt  about PIT modify (=?gb18030?B?1cW5+tbO?=)
   3. ndnSIM compile/link error with libprotobuf.a. (saran nath)
   4. Re: ndnSIM compile/link error with libprotobuf.a. (saran nath)
   5. How to Distinguish ContentTypes and downcast to them
      (Muhammad Hosain Abdollahi Sabet)
   6. Re: How to Distinguish ContentTypes and downcast to them
      (Junxiao Shi)


----------------------------------------------------------------------

Message: 1
Date: Wed, 5 Oct 2016 11:18:40 -0700
From: Alex Afanasyev <aa at CS.UCLA.EDU>
To: ??? <410330533 at qq.com>
Cc: ndnsim <ndnsim at lists.cs.ucla.edu>
Subject: Re: [ndnSIM] something wrong in the technical report
Message-ID: <E4AF29EF-1FB3-4601-B6BE-97154FEEAC6D at cs.ucla.edu>
Content-Type: text/plain; charset=utf-8

Oops.  Thanks for pointing this out!  We'll fix it.

---
Alex

> On Sep 29, 2016, at 6:39 PM, ??? <410330533 at qq.com> wrote:
> 
> Hello,
> After read the technical report, I realized something wrong as the following picture shows. Why is the cs::Probability:Fifo correspond to  LFU and cs::Probability:lfu correspond to Random?Does the table lost some information?
> <C7734451 at 259E287E.35C2ED57.jpg>
> Sincerely,
> Prince



------------------------------

Message: 2
Date: Thu, 6 Oct 2016 12:18:12 +0800
From: "=?gb18030?B?1cW5+tbO?=" <zguozhi at foxmail.com>
To: "=?gb18030?B?bmRuc2lt?=" <ndnsim at lists.cs.ucla.edu>
Subject: [ndnSIM] Some doubt  about PIT modify
Message-ID: <tencent_00CBC5E711E77FF356B9864E at qq.com>
Content-Type: text/plain; charset="gb18030"

Dear  All,
I want to simulation cache policy which need to modify PIT, however, I meet some  questions:
(1) I am not clear how to modify PIT, for examples, if I want to add some data struct to pit::Entry,  should I modify directly the source of ndn-pit-entry.cc/ndn-pit-entry.h?  Or  is there a another simple method, such as aggregating or others?
(2)I modify directly the source of PIT in src/nsnSIM/modules/pit/ndn-pit-entry.cc, and recompile successfully  the ns-3, and run successfully simulation  in ns-3 directory? such as "ns-3/scratch/first.cc",   but when I run my  simulation in custom directory following the PAGE: http://ndnsim.net/1.0/getting-started.html,  there are some errors prompting"?class ns3::ndn::pit::Entry? has no member named ?AddInfaceCount?"  ,   ?AddInfaceCount? is the member function added into pit::Entry in source "src/nsnSIM/modules/pit/ndn-pit-entry.cc".  I so strange to this question, since before this I always run simulaiton  in this directory except modifying PIT.


Please forgive me for my poor English?


Sincerely,
Guozhi zhang
Beijing Jiaotong University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161006/7238bb74/attachment-0001.html>

------------------------------

Message: 3
Date: Sat, 8 Oct 2016 01:22:27 -0700
From: saran nath <sarannath39 at gmail.com>
To: ndnsim at lists.cs.ucla.edu
Subject: [ndnSIM] ndnSIM compile/link error with libprotobuf.a.
Message-ID:
	<CAG6erePY34iX+34Rd9Y0bhP21YuNKbTeC3yEzx9pmLoRHyyQhQ at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,

I am new to this project. I have almost compiled everything but failing in
linking I think.

Linking build/libns3-dev-ndnSIM-debug.so

/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libprotobuf.a(common.o): relocation
R_X86_64_32S against `_ZTVN6google8protobuf7ClosureE' can not be used when
making a shared object; recompile with -fPIC

/usr/lib/x86_64-linux-gnu/libprotobuf.a: error adding symbols: Bad value

collect2: error: ld returned 1 exit status

Your suggestion to remove this error will help me.

Saran.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161008/b4676371/attachment-0001.html>

------------------------------

Message: 4
Date: Sat, 8 Oct 2016 02:18:08 -0700
From: saran nath <sarannath39 at gmail.com>
To: ndnsim at lists.cs.ucla.edu
Subject: Re: [ndnSIM] ndnSIM compile/link error with libprotobuf.a.
Message-ID:
	<CAG6erePPKPw_4fMy7=cA0Hybu3rRoD7DvATujEf9_QVpHS_qWg at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

/usr/lib/x86_64-linux-gnu/libprotobuf.a was a stale entry and after
cleaning it up, I am able to successfully compile/link. Thanks. Saran.

On Sat, Oct 8, 2016 at 1:22 AM, saran nath <sarannath39 at gmail.com> wrote:

> Hello,
>
> I am new to this project. I have almost compiled everything but failing in
> linking I think.
>
> Linking build/libns3-dev-ndnSIM-debug.so
>
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libprotobuf.a(common.o):
> relocation R_X86_64_32S against `_ZTVN6google8protobuf7ClosureE' can not
> be used when making a shared object; recompile with -fPIC
>
> /usr/lib/x86_64-linux-gnu/libprotobuf.a: error adding symbols: Bad value
>
> collect2: error: ld returned 1 exit status
>
> Your suggestion to remove this error will help me.
>
> Saran.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161008/e728fbfd/attachment-0001.html>

------------------------------

Message: 5
Date: Sun, 9 Oct 2016 18:06:15 +0330
From: Muhammad Hosain Abdollahi Sabet <mhasabet at gmail.com>
To: ndnsim <ndnsim at lists.cs.ucla.edu>
Subject: [ndnSIM] How to Distinguish ContentTypes and downcast to them
Message-ID:
	<CADQ0MFZ0_Rw0JnGqPD2Xk-Lyfoi8QFzxnHYOw3=LJvpQWU_uYg at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

?Hello everyone,

My application recieves a Data packet. How can I downcast it to its Type? I
mean, for example downcast a data packet to Key or Link or Nack based on
getContentType of the packet. I know it is more of a c++ question, but
again I haven't been able to do it yet in ndnSIM.

Thanks,
Sabet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161009/2b142b94/attachment-0001.html>

------------------------------

Message: 6
Date: Sun, 9 Oct 2016 09:50:24 -0700
From: Junxiao Shi <shijunxiao at email.arizona.edu>
To: Muhammad Hosain Abdollahi Sabet <mhasabet at gmail.com>
Cc: ndnsim <ndnsim at lists.cs.ucla.edu>
Subject: Re: [ndnSIM] How to Distinguish ContentTypes and downcast to
	them
Message-ID:
	<CAOFH+OZDHWiCq0g2VR2XGSHgvQb9+R+X2Pqg2PPtSyboDv49Aw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Sabet

When a Data instance is created during packet decoding, the instance is of
Data type, not a subclass of Data. Thus, you cannot downcast it with
static_cast.

If it's determined that the Data is a Link, you may construct a new Link
instance and decode from the wire encoding:

ndn::Link link(data.wireEncode());


Similarly, you can:

ndn::security::v1::Certificate cert(data);

Certificate has a constructor from Data, which allows you to omit
wireEncode().

ContentType=NACK refers to producer generated Nack, which has no particular
structure. A producer generated Nack is just a regular Data.
This is completely unrelated to ndn::lp::Nack.

Yours, Junxiao

On Sun, Oct 9, 2016 at 7:36 AM, Muhammad Hosain Abdollahi Sabet <
mhasabet at gmail.com> wrote:

> ?Hello everyone,
>
> My application recieves a Data packet. How can I downcast it to its Type?
> I mean, for example downcast a data packet to Key or Link or Nack based on
> getContentType of the packet. I know it is more of a c++ question, but
> again I haven't been able to do it yet in ndnSIM.
>
> Thanks,
> Sabet
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161009/5816565a/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 47, Issue 4
*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161010/72948611/attachment.html>


More information about the ndnSIM mailing list