From alexander.afanasyev at ucla.edu Wed Apr 1 00:17:34 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 1 Apr 2015 00:17:34 -0700 Subject: [ndnSIM] Implementing My Own Cache Management Policy In-Reply-To: <5512ECD5.5020004@inl.ics.keio.ac.jp> References: <5512ECD5.5020004@inl.ics.keio.ac.jp> Message-ID: Hi Kanin, > On Mar 25, 2015, at 10:13 AM, Kanin Assantachai wrote: > > Hello all, > > I am currently using ndnSIM 1.0, and I have been trying to implement my own cache management policy for a while already. However, I have quite a lot of questions to ask as follows. > > 1. Referring to the source code of LRU policy (lru-policy.h), what are the roles (functions) of codes from line 39 to line 47? I have crossed check with the code of empty policy (empty-policy.h) and I found that such codes are not necessary for the case of policy that does not implement any algorithm. These are implementation details, related to the use of boost::intrusive container. With such intrusive containers, necessary pointers for the data structure (for list structure, it would be pointer to previous and the next) need to be stored in the item. container_hook::type basically defines what exactly the type needed to be stored. If you want to understand details, I can recommend looking deeper into Boost.Intrusive documentation (http://www.boost.org/doc/libs/1_57_0/doc/html/intrusive.html) > 2. From line 89 to 96 of the same file (lru-policy.h), the "lookup" function is implemented there. Why doesn't it handle the case of cache miss? Based on the code, it seems to me that this case is not handled at all. This implementation of CS splits "data plane" (actual data packet lookup) and "control plane" (caching policy) into completely separate elements. Cache misses are handled by the ContentStore implementation, specifically by Lookup method implemented in model/cs/content-store-impl.h. Policy is only being notified that there was a successful lookup for this data item, so it can promote it internally (if it is what policy wants to do). > 3. It seems to me that the "policy_container" in the code serves as a cache storage (list). I wonder if there are functions I can use to access specific orders of cached objects in the list at a particular time. Let's say I would like to get the first 5 contents which are stored in the cache storage. How can I possibly do that? You are right in the sense that it is a list. The advantage of using boost intrusive container for CS implementation is that this list is just virtual. policy_container essentially builds up an index, in case of lru policy, it is list-based index where the first item points to the "oldest" cached data packet. When you say you want to access 5 first data packets, what is the criterion you define order of the items. If you look into lfu-policy, you can find there that the virtual index is build based on "frequency" of data packet being accessed. You can define something similar for your policy. > 4. This question is about the policy I would like to implement. How can I make nodes automatically send messages about some of the contents of their stored cache objects to next neighbor nodes? Is it better to implement this detail in the same cache policy file that I am going to create, or in different files at different levels? Please kindly provide some suggestions. I'm not sure I can give a good suggestion here. It really depends. Are you planning to send messages every time something is being cached or accessed? Or is it a periodic function. In the latter case, it is probably better to do it outside the policy, as part of some "ordinary" application that accesses information in the policy. > 5. When I simulated the example file "ndn-simple-with-cs-lfu.cc" using the visualizer, I discovered that the request from consumer node still reaches the producer node even after the intermediate router has received the requested content from producer at least once. (The second request from consumer node is sent before the content in the cache of the router expires.) If cache is enabled at the router, why does the later requests (after the first one) still reaches the producer node? Why doesn't the router serve the request with its cache content? I would say that this example is a little bit misleading and we should really modify it. The objective for this example is to just demonstrate how hook up different cache policy, and not really the effect of the policy. In fact, it uses a CBR consumer, which sends requests for unique data items. This is why you don't see the difference. You may want to try to use ConsumerZipfMandelbrot (http://ndnsim.net/2.0/applications.html#consumerzipfmandelbrot), which would repeat request for data items. --- Alex > > Thank you for your responses in advance. > > Kanin Assantachai -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From sarantarnoi at gmail.com Wed Apr 1 00:59:28 2015 From: sarantarnoi at gmail.com (Saran Tarnoi) Date: Wed, 1 Apr 2015 16:59:28 +0900 Subject: [ndnSIM] Update the list of ndnSIM-related research papers Message-ID: Dear Alex and Spyridon, Would you please update the list of research papers with the following article? - *S. Tarnoi, W. Kumwilaisak, and *Y. Ji, "Optimal Cooperative Routing Protocol for Efficient In-Network Cache Management in Content-Centric Networks ," *IEICE Transactions on Communications*, vol. E97-B, no. 12, pp.2627-2640, Dec. 2014. Thank you for your help. -- Regards, Saran Tarnoi -------------- next part -------------- An HTML attachment was scrubbed... URL: From narges.mehran at gmail.com Fri Apr 3 00:40:49 2015 From: narges.mehran at gmail.com (Narges Mehran) Date: Fri, 3 Apr 2015 12:10:49 +0430 Subject: [ndnSIM] fatal error: weights-path-stretch-tag.h: No such file or directory!!! Message-ID: Hello everyone, I am currently using ndnSIM 1.0, and I've been trying to qualify my algorithm by a metric like path stretch factor, but while including the hearer "weights-path-stretch-tag.h", I get the {fatal error: weights-path-stretch-tag.h: No such file or directory}! When I searched, I understood that this header file is in a folder named: tracers-broken! Is there any problem with this folder named "Broken" or my problem is somewhere else? Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Sun Apr 5 02:10:16 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Sun, 5 Apr 2015 02:10:16 -0700 Subject: [ndnSIM] How to configuring Eclipse for DEBUG and INFO logs? Message-ID: There is a link available on how to configure Eclipse with waf to run ndnSIM programs under Eclipse. https://www.nsnam.org/wiki/HOWTO_configure_Eclipse_with_ns-3 However, I did not understood how do I specify the module names so that when run under Eclipse, it also print all the logs. Right now, I am not able to see any DEBUG or INFO logs when run from Eclipse. An equivalent command command line for the program to run from command line is below. NS_LOG=ndn.Consumer:ndn.Producer ./waf --run=ndn-grid-topo-plugin Can someone please tell how to achieve same in Eclipse? /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From anilj.mailing at gmail.com Mon Apr 6 02:59:09 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Mon, 6 Apr 2015 02:59:09 -0700 Subject: [ndnSIM] How to configuring Eclipse for DEBUG and INFO logs? In-Reply-To: References: Message-ID: I think it's an environment variable. Let me adds it in eclipse run configuration env variable list and check out. If incorrect, pls suggest. /anil. On Apr 5, 2015 2:10 AM, "Anil Jangam" wrote: > There is a link available on how to configure Eclipse with waf to run > ndnSIM programs under Eclipse. > https://www.nsnam.org/wiki/HOWTO_configure_Eclipse_with_ns-3 > > However, I did not understood how do I specify the module names so that > when run under Eclipse, it also print all the logs. Right now, I am not > able to see any DEBUG or INFO logs when run from Eclipse. > > An equivalent command command line for the program to run from command > line is below. > > NS_LOG=ndn.Consumer:ndn.Producer ./waf --run=ndn-grid-topo-plugin > > Can someone please tell how to achieve same in Eclipse? > > /anil. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From klaus.schneider at uni-bamberg.de Mon Apr 6 06:44:21 2015 From: klaus.schneider at uni-bamberg.de (Klaus Schneider) Date: Mon, 6 Apr 2015 15:44:21 +0200 Subject: [ndnSIM] L3RateTracer Kilobyte values for OutInterests Message-ID: <55228DB5.1040006@uni-bamberg.de> Hi everyone, I have noticed that in the result file of the L3RateTracer outgoing interest packets ("OutInterests") sometimes have lack the value for "Kilobytes"/"KilobytesRaw". However, the value for "Packets"/"PacketsRaw" seems to always be there. In my example (see appendix) I used the broadcast strategy and the throughput value ("OutInterests") only exists for two of the faces. You can reproduce that by running the ndn-tree-tracers.cpp example (http://ndnsim.net/2.0/metric.html). In this case the Kilobytes values for OutInterests of the leaf nodes are missing. $ cat rate-trace.txt | grep "\sOutInterests" | grep "netDeviceFace" > Time Node FaceId FaceDescr Type Packets Kilobytes PacketRaw KilobytesRaw > 19 leaf-1 256 netDeviceFace:// OutInterests 100 0 50 0 > 19 leaf-2 256 netDeviceFace:// OutInterests 100 0 50 0 > 19 leaf-3 256 netDeviceFace:// OutInterests 100 0 50 0 > 19 leaf-4 256 netDeviceFace:// OutInterests 100 0 50 0 > 19 rtr-1 256 netDeviceFace:// OutInterests 0 0 0 0 > 19 rtr-1 258 netDeviceFace:// OutInterests 200 6.44531 100 3.22266 > 19 rtr-1 257 netDeviceFace:// OutInterests 0 0 0 0 > 19 rtr-2 256 netDeviceFace:// OutInterests 0 0 0 0 > 19 rtr-2 257 netDeviceFace:// OutInterests 0 0 0 0 > 19 rtr-2 258 netDeviceFace:// OutInterests 200 6.44531 100 3.22266 > 19 root 256 netDeviceFace:// OutInterests 0 0 0 0 > 19 root 257 netDeviceFace:// OutInterests 0 0 0 0 Is this behavior expected? Best regards, Klaus -- Klaus Schneider Mail: klaus.schneider at uni-bamberg.de LinkedIn: https://www.linkedin.com/in/schneiderklaus -------------- next part -------------- A non-text attachment was scrubbed... Name: rates_bc.pdf Type: application/pdf Size: 19745 bytes Desc: not available URL: From narges.mehran at gmail.com Tue Apr 7 04:51:44 2015 From: narges.mehran at gmail.com (Narges Mehran) Date: Tue, 7 Apr 2015 16:21:44 +0430 Subject: [ndnSIM] fatal error: weights-path-stretch-tag.h: No such file or directory!!! In-Reply-To: References: Message-ID: Hello everyone, I could find my answer in nsnSim's website: http://ndnsim.net/1.0/metric.html#packet-level-trace-helpers thank you for your complete explanations in your website On Friday, April 3, 2015, Narges Mehran wrote: > Hello everyone, > > I am currently using ndnSIM 1.0, and I've been trying to qualify my > algorithm by a metric like path stretch factor, but while including the > hearer "weights-path-stretch-tag.h", I get the {fatal error: > weights-path-stretch-tag.h: No such file or directory}! > When I searched, I understood that this header file is in a folder named: > tracers-broken! Is there any problem with this folder named "Broken" or my > problem is somewhere else? > > Thanks in advance > -------------- next part -------------- An HTML attachment was scrubbed... URL: From trade20122012 at gmail.com Tue Apr 7 11:22:05 2015 From: trade20122012 at gmail.com (Trade) Date: Tue, 07 Apr 2015 11:22:05 -0700 Subject: [ndnSIM] How to get interest name from consumer sendpacket In-Reply-To: References: Message-ID: <5524204D.9040301@gmail.com> I want to build a new routing protocol, but I need to extract interest name out of from consumer application and returns run-time error. Ptr interest = Create (); const Name prefix = interest->GetName () ; This is from consumer.cc Ptr nameWithSequence = Create (m_interestName ); nameWithSequence->appendSeqNum (seq); 199 // 200 201 Ptr interest = Create (); 202 interest->SetNonce (m_rand .GetValue ()); 203 interest->SetName (nameWithSequence); 204 interest->SetInterestLifetime (m_interestLifeTime ); 205 206 // NS_LOG_INFO ("Requesting Interest: \n" << *interest); -------------- next part -------------- An HTML attachment was scrubbed... URL: From wonjunchoi001 at gmail.com Tue Apr 7 19:07:33 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 8 Apr 2015 11:07:33 +0900 Subject: [ndnSIM] How many faces in node? Message-ID: Hello. I wanted to print all next faces by using broadcast strategy. The example was ndn-different-strategy-per-prefix.cpp broadcast strategy prints only one face for each node. I don't know why. please let me know. Best regards. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Tue Apr 7 20:10:33 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 7 Apr 2015 20:10:33 -0700 Subject: [ndnSIM] How many faces in node? In-Reply-To: References: Message-ID: <5923EEFE-09B7-4039-BF7D-E670CA3A6905@gmail.com> The broadcast forwarding strategy is not a simple coarse-grained broadcast approach. It actually performs a ?smart-flooding? forwarding in the sense that it forwards the interest through faces that there exists a FIB entry for. I guess that in the example that you mentioned, the Interest is being forwarded through a single face, because there is a FIB entry only for this face. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 7, 2015, at 7:07 PM, ??? wrote: > > Hello. > > I wanted to print all next faces by using broadcast strategy. > The example was ndn-different-strategy-per-prefix.cpp > broadcast strategy prints only one face for each node. > I don't know why. please let me know. > > Best regards. > Wonjun, Choi > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Tue Apr 7 20:12:40 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 7 Apr 2015 20:12:40 -0700 Subject: [ndnSIM] fatal error: weights-path-stretch-tag.h: No such file or directory!!! In-Reply-To: References: Message-ID: <25F0108F-40E5-4B26-AA06-6D98E9950ECF@gmail.com> Hello, I was not a member of the ndnSIM team when these tracers were developed, but I guess that this name implies that they do not work. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 7, 2015, at 4:51 AM, Narges Mehran wrote: > > Hello everyone, > I could find my answer in nsnSim's website: > http://ndnsim.net/1.0/metric.html#packet-level-trace-helpers > > thank you for your complete explanations in your website > > On Friday, April 3, 2015, Narges Mehran wrote: > Hello everyone, > > I am currently using ndnSIM 1.0, and I've been trying to qualify my algorithm by a metric like path stretch factor, but while including the hearer "weights-path-stretch-tag.h", I get the {fatal error: weights-path-stretch-tag.h: No such file or directory}! > When I searched, I understood that this header file is in a folder named: tracers-broken! Is there any problem with this folder named "Broken" or my problem is somewhere else? > > Thanks in advance > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Tue Apr 7 20:14:54 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 7 Apr 2015 20:14:54 -0700 Subject: [ndnSIM] How to configuring Eclipse for DEBUG and INFO logs? In-Reply-To: References: Message-ID: Hello Anil, to be honest neither Alex nor me have any knowledge about this specific question. I believe that the ns3 mailing list would be a more appropriate list for your question as the link that you provided refers to NS-3, not ndnSIM itself. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 6, 2015, at 2:59 AM, Anil Jangam wrote: > > I think it's an environment variable. Let me adds it in eclipse run configuration env variable list and check out. > > If incorrect, pls suggest. > > /anil. > > On Apr 5, 2015 2:10 AM, "Anil Jangam" wrote: > There is a link available on how to configure Eclipse with waf to run ndnSIM programs under Eclipse. > https://www.nsnam.org/wiki/HOWTO_configure_Eclipse_with_ns-3 > > However, I did not understood how do I specify the module names so that when run under Eclipse, it also print all the logs. Right now, I am not able to see any DEBUG or INFO logs when run from Eclipse. > > An equivalent command command line for the program to run from command line is below. > NS_LOG=ndn.Consumer:ndn.Producer ./waf --run=ndn-grid-topo-plugin > > Can someone please tell how to achieve same in Eclipse? > > /anil. > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Tue Apr 7 20:18:37 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Tue, 7 Apr 2015 20:18:37 -0700 Subject: [ndnSIM] How to get interest name from consumer sendpacket In-Reply-To: <5524204D.9040301@gmail.com> References: <5524204D.9040301@gmail.com> Message-ID: <6CCCC36E-045A-408E-B5A6-C8D517242AA7@gmail.com> Hello, the first line of the code that you mentioned creates an empty interest and returns a pointer to this empty interest. In the second line, you are requesting the name of this empty interest. This name does not exist. I guess that this is the problem. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 7, 2015, at 11:22 AM, Trade wrote: > > I want to build a new routing protocol, but I need to extract interest name out of from consumer application and returns run-time error. > > Ptr interest = Create (); > const Name prefix = interest->GetName () ; > > > This is from consumer.cc > > Ptr > nameWithSequence = Create ( > m_interestName); > > nameWithSequence->appendSeqNum (seq); > > 199 // > 200 > 201 > > Ptr interest = Create (); > > 202 > > interest->SetNonce ( > m_rand.GetValue ()); > 203 > > interest->SetName (nameWithSequence); > > 204 > > interest->SetInterestLifetime ( > m_interestLifeTime); > 205 > 206 > // NS_LOG_INFO > ("Requesting Interest: \n" << *interest); > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From wonjunchoi001 at gmail.com Tue Apr 7 21:51:02 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Wed, 8 Apr 2015 13:51:02 +0900 Subject: [ndnSIM] How many faces in node? In-Reply-To: References: <5923EEFE-09B7-4039-BF7D-E670CA3A6905@gmail.com> Message-ID: > the Interest is being forwarded through a single face Thanks for you comment. The example is using 3x3 grid topology. It means that some node acts like router. for example (1,1) node is linked 4 nodes and (0,1) node is linked 3 nodes. each node has inFace and outFace and if the node is linked 4 nodes, the available face to forward interest is 3 except for inFace am I right? so I wanted to print the remaining faces. So, I still cannot understand the meaning of above sentence (the Interest is being forwarded through a single face) I want to selectively change the face to forward. Do you know how to do this? Thanks. Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From lizhengyin1115 at 163.com Wed Apr 8 05:28:40 2015 From: lizhengyin1115 at 163.com (lzy) Date: Wed, 8 Apr 2015 20:28:40 +0800 (CST) Subject: [ndnSIM] LTE and WIMAX in NDN Message-ID: <42ba5953.2cf5c.14c9900fac3.Coremail.lizhengyin1115@163.com> Hello Alex , i wonder if LTE and WIMAX module in NS-3 can be used into NDNSIM just like ndn-wifi does? because i've tried a lot ,but all failed. consumer can sent interests but producer won't reply the request when i build ndn-lte just as what ndn-wifi does. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wonjunchoi001 at gmail.com Wed Apr 8 19:03:23 2015 From: wonjunchoi001 at gmail.com (=?UTF-8?B?7LWc7JuQ7KSA?=) Date: Thu, 9 Apr 2015 11:03:23 +0900 Subject: [ndnSIM] How many faces in node? In-Reply-To: References: <5923EEFE-09B7-4039-BF7D-E670CA3A6905@gmail.com> Message-ID: I am still waiting for your comment. I would like to make a simple coarse-grained broadcast approach to print all faces linked to specific node. The default fw staregy is best-route2 so I tried to print alll faces in AfterReceiveInterest function. As you said, the Interest is being forwarded through a single face. how can I insert multiple faces(which is linked to the node) to FIB entry? Wonjun, Choi -------------- next part -------------- An HTML attachment was scrubbed... URL: From harshadshirwadkar at gmail.com Wed Apr 8 21:30:14 2015 From: harshadshirwadkar at gmail.com (harshad shirwadkar) Date: Thu, 9 Apr 2015 00:30:14 -0400 Subject: [ndnSIM] Unable to run CustomApp with my own scenario Message-ID: Hello All, I am a newbie in ndnsim.When I run "CustomApp" in a scenario as mentioned on this page: http://ndnsim.net/2.0/applications.html It runs perfectly. But, when I try to do the following: 1) Make a copy of "ndn-simple-with-custom-app.cpp". Let's call the copy as "ndn-my-scenario.cpp" 2) Run "NS_LOG=CustomApp ./waf --run=ndn-my-scenario". After the second step I get following message: msg="Invalid or unregistered component name "CustomApp" in env variable NS_LOG, see above for a list of valid components" Could anyone please let me know what might be the issue? I might be doing something obviously wrong but have spent hours finding the issue and have not been able to find one. Any help is much appreciated. Thanks, Harshad. From anilj.mailing at gmail.com Thu Apr 9 01:02:16 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Thu, 9 Apr 2015 01:02:16 -0700 Subject: [ndnSIM] Unable to run CustomApp with my own scenario In-Reply-To: References: Message-ID: In your application code (ndn-my-scenario.cpp), check what application you are installing on ndn node. My guess is that you are installing an application other than CustomApp. /anil. On Apr 8, 2015 9:31 PM, "harshad shirwadkar" wrote: > Hello All, > > I am a newbie in ndnsim.When I run "CustomApp" in a scenario as > mentioned on this page: > http://ndnsim.net/2.0/applications.html > It runs perfectly. > > But, when I try to do the following: > 1) Make a copy of "ndn-simple-with-custom-app.cpp". Let's call the > copy as "ndn-my-scenario.cpp" > 2) Run "NS_LOG=CustomApp ./waf --run=ndn-my-scenario". > > After the second step I get following message: > msg="Invalid or unregistered component name "CustomApp" in env > variable NS_LOG, see above for a list of valid components" > > Could anyone please let me know what might be the issue? I might be > doing something obviously wrong but have spent hours finding the issue > and have not been able to find one. Any help is much appreciated. > > Thanks, > Harshad. > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Thu Apr 9 08:00:58 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 9 Apr 2015 08:00:58 -0700 Subject: [ndnSIM] How many faces in node? In-Reply-To: References: <5923EEFE-09B7-4039-BF7D-E670CA3A6905@gmail.com> Message-ID: <6EE1E825-BAD2-4F55-BE43-71285CBADB98@gmail.com> You can install routes manually between adjacent nodes using the FibHelper. Take a look here: http://ndnsim.net/2.0/helpers.html#manually-routes-fib-helper https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-congestion-alt-topo-plugin.cpp#L118 -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 8, 2015, at 7:03 PM, ??? wrote: > > I am still waiting for your comment. > I would like to make a simple coarse-grained broadcast approach to print all faces linked to specific node. > The default fw staregy is best-route2 so I tried to print alll faces in AfterReceiveInterest function. > As you said, the Interest is being forwarded through a single face. how can I insert multiple faces(which is linked to the node) to FIB entry? > > Wonjun, Choi From harshadshirwadkar at gmail.com Thu Apr 9 08:52:04 2015 From: harshadshirwadkar at gmail.com (harshad shirwadkar) Date: Thu, 9 Apr 2015 11:52:04 -0400 Subject: [ndnSIM] Unable to run CustomApp with my own scenario In-Reply-To: References: Message-ID: Thanks Anil for the reply. Well, I had the correct application in ndn-my-scenario.cpp (CustomApp). The problem is when I try to run my scenario, it does not find CustomApp in a set of registered components. For now, I have moved the CustomApp source from src/ndnSIM/examples/ndn-custom-apps to src/ndnSIM/apps and things started working. Eventually, I want to write my own consumer and producer apps. I am not sure if that's the correct place (src/ndnSIM/apps) to write custom applications though. But, I won't mind as long as things work :-). Thanks, Harshad. On Thu, Apr 9, 2015 at 4:02 AM, Anil Jangam wrote: > In your application code (ndn-my-scenario.cpp), check what application you > are installing on ndn node. My guess is that you are installing an > application other than CustomApp. > > /anil. > > On Apr 8, 2015 9:31 PM, "harshad shirwadkar" > wrote: >> >> Hello All, >> >> I am a newbie in ndnsim.When I run "CustomApp" in a scenario as >> mentioned on this page: >> http://ndnsim.net/2.0/applications.html >> It runs perfectly. >> >> But, when I try to do the following: >> 1) Make a copy of "ndn-simple-with-custom-app.cpp". Let's call the >> copy as "ndn-my-scenario.cpp" >> 2) Run "NS_LOG=CustomApp ./waf --run=ndn-my-scenario". >> >> After the second step I get following message: >> msg="Invalid or unregistered component name "CustomApp" in env >> variable NS_LOG, see above for a list of valid components" >> >> Could anyone please let me know what might be the issue? I might be >> doing something obviously wrong but have spent hours finding the issue >> and have not been able to find one. Any help is much appreciated. >> >> Thanks, >> Harshad. >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From trade20122012 at gmail.com Thu Apr 9 17:15:00 2015 From: trade20122012 at gmail.com (Trade) Date: Thu, 09 Apr 2015 17:15:00 -0700 Subject: [ndnSIM] How to install multiple prefixes in one producer In-Reply-To: References: Message-ID: <55271604.1080009@gmail.com> I want one producer can have multiple prefixes, but how to implement? Does this work? or it only takes the last row ? Thanks ProducerHelper.SetPrefix (prefix1); ProducerHelper.SetPrefix (prefix2); ProducerHelper.SetPrefix (prefix3); Trade From marco.ulgelmo at aol.com Fri Apr 10 03:13:04 2015 From: marco.ulgelmo at aol.com (marco.ulgelmo at aol.com) Date: Fri, 10 Apr 2015 12:13:04 +0200 Subject: [ndnSIM] About NotifyNewAggregate Message-ID: Hello, I need to achieve the same functionality of NotifyNewAggregate method in my custom strategy. In ndnsim v1 the method was part of the class but in v2 it's not anymore. Any suggestions? Thanks, Marco From spiros.mastorakis at gmail.com Fri Apr 10 09:22:06 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 10 Apr 2015 09:22:06 -0700 Subject: [ndnSIM] About NotifyNewAggregate In-Reply-To: References: Message-ID: <4C95DCC2-B934-4DFF-9788-383180E9B27E@gmail.com> Hello Marco, I am not sure that I understand your exact goal (as the NotifyNewAggregate performs more than one things..), but I will try to elaborate on this a little bit. In ndnSIM 2.0, the forwarding is performed by NFD. Each forwarding instance (class Forwarder) has various attributes. One of them is the so called ?StrategyChoice?. This is actually a table where the forwarding strategy per name prefix is stored. Using the API of the StrategyChoice class, you can find the forwarding strategy for each name prefix as it is installed on each node. For the attributes of the ?Forwarder? class, you can take a look here: https://github.com/NDN-Routing/ndnSIM/blob/master/NFD/daemon/fw/forwarder.cpp#L42 For the ?StrategyChoice? class and its ?findEffectingStrategy? method, you can take a look here: https://github.com/NDN-Routing/ndnSIM/blob/963621b3fcabbf03484817c434c58792e331928b/NFD/daemon/table/strategy-choice.cpp#L166 Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 10, 2015, at 3:13 AM, marco.ulgelmo at aol.com wrote: > > Hello, > > I need to achieve the same functionality of NotifyNewAggregate method in my custom strategy. In ndnsim v1 the method was part of the class but in v2 it's not anymore. Any suggestions? > > Thanks, > Marco > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Fri Apr 10 09:29:46 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 10 Apr 2015 09:29:46 -0700 Subject: [ndnSIM] How to install multiple prefixes in one producer In-Reply-To: <55271604.1080009@gmail.com> References: <55271604.1080009@gmail.com> Message-ID: <522E9F24-1169-4C6C-A529-D798B89E439A@gmail.com> Hello, you will need to install more than one producer applications on the node, because each producer application has been assumed to respond only to one prefix. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 9, 2015, at 5:15 PM, Trade wrote: > > I want one producer can have multiple prefixes, but how to implement? > Does this work? or it only takes the last row ? Thanks > > ProducerHelper.SetPrefix (prefix1); > ProducerHelper.SetPrefix (prefix2); > ProducerHelper.SetPrefix (prefix3); > > Trade > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From trade20122012 at gmail.com Fri Apr 10 15:24:05 2015 From: trade20122012 at gmail.com (Trade) Date: Fri, 10 Apr 2015 15:24:05 -0700 Subject: [ndnSIM] How to install multiple prefixes in one producer In-Reply-To: <522E9F24-1169-4C6C-A529-D798B89E439A@gmail.com> References: <55271604.1080009@gmail.com> <522E9F24-1169-4C6C-A529-D798B89E439A@gmail.com> Message-ID: <55284D85.1050608@gmail.com> Thanks. Do you mean that multiple producers can be installed at one node? On 4/10/15 9:29 AM, Spyridon (Spyros) Mastorakis wrote: > Hello, > > you will need to install more than one producer applications on the node, because each producer application has been assumed to respond only to one prefix. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > >> On Apr 9, 2015, at 5:15 PM, Trade wrote: >> >> I want one producer can have multiple prefixes, but how to implement? >> Does this work? or it only takes the last row ? Thanks >> >> ProducerHelper.SetPrefix (prefix1); >> ProducerHelper.SetPrefix (prefix2); >> ProducerHelper.SetPrefix (prefix3); >> >> Trade >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From M.AbdollahiSabet at mail.sbu.ac.ir Fri Apr 10 22:40:46 2015 From: M.AbdollahiSabet at mail.sbu.ac.ir (Muhammad Hosain Abdollahi Sabet) Date: Sat, 11 Apr 2015 10:10:46 +0430 Subject: [ndnSIM] How to install multiple prefixes in one producer References: <55271604.1080009@gmail.com><522E9F24-1169-4C6C-A529-D798B89E439A@gmail.com> <55284D85.1050608@gmail.com> Message-ID: <4AC03A6244C3C34BB52A7EC60B799C4C03CC294E@m-pdc.sbu.ac.ir> Yes! I guess something like this should work: ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); consumerHelper.SetPrefix("/prefix1"); consumerHelper.Install(nodes.Get(NODENAME)); ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); consumerHelper.SetPrefix("/prefix2"); consumerHelper.Install(nodes.Get(NODENAME)); ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr"); consumerHelper.SetPrefix("/prefix3"); consumerHelper.Install(nodes.Get(NODENAME)); Thanks, Sabet -----Original Message----- From: ndnSIM on behalf of Trade Sent: Sat 4/11/2015 2:54 AM To: Spyridon (Spyros) Mastorakis Cc: ndnsim at lists.cs.ucla.edu Subject: Re: [ndnSIM] How to install multiple prefixes in one producer Thanks. Do you mean that multiple producers can be installed at one node? On 4/10/15 9:29 AM, Spyridon (Spyros) Mastorakis wrote: > Hello, > > you will need to install more than one producer applications on the node, because each producer application has been assumed to respond only to one prefix. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > >> On Apr 9, 2015, at 5:15 PM, Trade wrote: >> >> I want one producer can have multiple prefixes, but how to implement? >> Does this work? or it only takes the last row ? Thanks >> >> ProducerHelper.SetPrefix (prefix1); >> ProducerHelper.SetPrefix (prefix2); >> ProducerHelper.SetPrefix (prefix3); >> >> Trade >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From M.AbdollahiSabet at mail.sbu.ac.ir Fri Apr 10 22:52:52 2015 From: M.AbdollahiSabet at mail.sbu.ac.ir (Muhammad Hosain Abdollahi Sabet) Date: Sat, 11 Apr 2015 10:22:52 +0430 Subject: [ndnSIM] How to install multiple prefixes in one producer References: <55271604.1080009@gmail.com><522E9F24-1169-4C6C-A529-D798B89E439A@gmail.com> <55284D85.1050608@gmail.com> Message-ID: <4AC03A6244C3C34BB52A7EC60B799C4C03CC294F@m-pdc.sbu.ac.ir> Oops. Sorry. I meant like this: ndn::AppHelper producerHelper("ns3::ndn::Producer"); producerHelper.SetPrefix("/prefix1"); producerHelper.Install(nodes.Get(NODENUMBER)); ndn::AppHelper producerHelper("ns3::ndn::Producer"); producerHelper.SetPrefix("/prefix2"); producerHelper.Install(nodes.Get(NODENUMBER)); ndn::AppHelper producerHelper("ns3::ndn::Producer"); producerHelper.SetPrefix("/prefix3"); producerHelper.Install(nodes.Get(NODENUMBER)); Right? Thanks, Sabet -----Original Message----- From: ndnSIM on behalf of Trade Sent: Sat 4/11/2015 2:54 AM To: Spyridon (Spyros) Mastorakis Cc: ndnsim at lists.cs.ucla.edu Subject: Re: [ndnSIM] How to install multiple prefixes in one producer Thanks. Do you mean that multiple producers can be installed at one node? On 4/10/15 9:29 AM, Spyridon (Spyros) Mastorakis wrote: > Hello, > > you will need to install more than one producer applications on the node, because each producer application has been assumed to respond only to one prefix. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > >> On Apr 9, 2015, at 5:15 PM, Trade wrote: >> >> I want one producer can have multiple prefixes, but how to implement? >> Does this work? or it only takes the last row ? Thanks >> >> ProducerHelper.SetPrefix (prefix1); >> ProducerHelper.SetPrefix (prefix2); >> ProducerHelper.SetPrefix (prefix3); >> >> Trade >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From narges.mehran at gmail.com Sat Apr 11 04:57:17 2015 From: narges.mehran at gmail.com (Narges Mehran) Date: Sat, 11 Apr 2015 16:27:17 +0430 Subject: [ndnSIM] fatal error: weights-path-stretch-tag.h: No such file or directory!!! In-Reply-To: <25F0108F-40E5-4B26-AA06-6D98E9950ECF@gmail.com> References: <25F0108F-40E5-4B26-AA06-6D98E9950ECF@gmail.com> Message-ID: Thank you, yes, it seems so.. Is this a tracer like this developed in ndnSIM 2.0? On Wed, Apr 8, 2015 at 7:42 AM, Spyridon (Spyros) Mastorakis < spiros.mastorakis at gmail.com> wrote: > Hello, > > I was not a member of the ndnSIM team when these tracers were developed, > but I guess that this name implies that they do not work. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > On Apr 7, 2015, at 4:51 AM, Narges Mehran > wrote: > > > > Hello everyone, > > I could find my answer in nsnSim's website: > > http://ndnsim.net/1.0/metric.html#packet-level-trace-helpers > > > > thank you for your complete explanations in your website > > > > On Friday, April 3, 2015, Narges Mehran wrote: > > Hello everyone, > > > > I am currently using ndnSIM 1.0, and I've been trying to qualify my > algorithm by a metric like path stretch factor, but while including the > hearer "weights-path-stretch-tag.h", I get the {fatal error: > weights-path-stretch-tag.h: No such file or directory}! > > When I searched, I understood that this header file is in a folder > named: tracers-broken! Is there any problem with this folder named "Broken" > or my problem is somewhere else? > > > > Thanks in advance > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Sat Apr 11 11:37:55 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Sat, 11 Apr 2015 11:37:55 -0700 Subject: [ndnSIM] How to install multiple prefixes in one producer In-Reply-To: <4AC03A6244C3C34BB52A7EC60B799C4C03CC294F@m-pdc.sbu.ac.ir> References: <55271604.1080009@gmail.com> <522E9F24-1169-4C6C-A529-D798B89E439A@gmail.com> <55284D85.1050608@gmail.com> <4AC03A6244C3C34BB52A7EC60B799C4C03CC294F@m-pdc.sbu.ac.ir> Message-ID: <716E8B77-588F-4194-8ED7-8B6BA9F33E76@ucla.edu> > On Apr 10, 2015, at 10:52 PM, Muhammad Hosain Abdollahi Sabet wrote: > > Oops. Sorry. > I meant like this: > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > producerHelper.SetPrefix("/prefix1"); > producerHelper.Install(nodes.Get(NODENUMBER)); > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > producerHelper.SetPrefix("/prefix2"); > producerHelper.Install(nodes.Get(NODENUMBER)); > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > producerHelper.SetPrefix("/prefix3"); > producerHelper.Install(nodes.Get(NODENUMBER)); > Yes. However, this can be simplified a bit (you don?t need to create multiple producerHelpers) ndn::AppHelper producerHelper("ns3::ndn::Producer"); producerHelper.SetPrefix("/prefix1"); producerHelper.Install(nodes.Get(NODENUMBER)); producerHelper.SetPrefix("/prefix2"); producerHelper.Install(nodes.Get(NODENUMBER)); producerHelper.SetPrefix("/prefix3"); producerHelper.Install(nodes.Get(NODENUMBER)); * * * Another way to accomplish your goal is to create another Producer application, which would register and respond to multiple prefixes. ? Alex > > Right? > > Thanks, > Sabet > > -----Original Message----- > From: ndnSIM on behalf of Trade > Sent: Sat 4/11/2015 2:54 AM > To: Spyridon (Spyros) Mastorakis > Cc: ndnsim at lists.cs.ucla.edu > Subject: Re: [ndnSIM] How to install multiple prefixes in one producer > > Thanks. > Do you mean that multiple producers can be installed at one node? > > On 4/10/15 9:29 AM, Spyridon (Spyros) Mastorakis wrote: > > Hello, > > > > you will need to install more than one producer applications on the node, because each producer application has been assumed to respond only to one prefix. > > > > -- > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > PhD Computer Science > > UCLA > > > > > > > > > >> On Apr 9, 2015, at 5:15 PM, Trade wrote: > >> > >> I want one producer can have multiple prefixes, but how to implement? > >> Does this work? or it only takes the last row ? Thanks > >> > >> ProducerHelper.SetPrefix (prefix1); > >> ProducerHelper.SetPrefix (prefix2); > >> ProducerHelper.SetPrefix (prefix3); > >> > >> Trade > >> _______________________________________________ > >> ndnSIM mailing list > >> ndnSIM at lists.cs.ucla.edu > >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at ucla.edu Sat Apr 11 11:44:01 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Sat, 11 Apr 2015 11:44:01 -0700 Subject: [ndnSIM] fatal error: weights-path-stretch-tag.h: No such file or directory!!! In-Reply-To: References: <25F0108F-40E5-4B26-AA06-6D98E9950ECF@gmail.com> Message-ID: > On Apr 11, 2015, at 4:57 AM, Narges Mehran wrote: > > Thank you, > yes, it seems so.. > Is this a tracer like this developed in ndnSIM 2.0? Unfortunately, not yet. If you can make one, we would be very happy to merge your code into the main repository. ? Alex > > On Wed, Apr 8, 2015 at 7:42 AM, Spyridon (Spyros) Mastorakis > wrote: > Hello, > > I was not a member of the ndnSIM team when these tracers were developed, but I guess that this name implies that they do not work. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > > On Apr 7, 2015, at 4:51 AM, Narges Mehran > wrote: > > > > Hello everyone, > > I could find my answer in nsnSim's website: > > http://ndnsim.net/1.0/metric.html#packet-level-trace-helpers > > > > thank you for your complete explanations in your website > > > > On Friday, April 3, 2015, Narges Mehran > wrote: > > Hello everyone, > > > > I am currently using ndnSIM 1.0, and I've been trying to qualify my algorithm by a metric like path stretch factor, but while including the hearer "weights-path-stretch-tag.h", I get the {fatal error: weights-path-stretch-tag.h: No such file or directory}! > > When I searched, I understood that this header file is in a folder named: tracers-broken! Is there any problem with this folder named "Broken" or my problem is somewhere else? > > > > Thanks in advance > > _______________________________________________ > > ndnSIM mailing list > > ndnSIM at lists.cs.ucla.edu > > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at ucla.edu Sat Apr 11 11:45:54 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Sat, 11 Apr 2015 11:45:54 -0700 Subject: [ndnSIM] Unable to run CustomApp with my own scenario In-Reply-To: References: Message-ID: > On Apr 8, 2015, at 9:30 PM, harshad shirwadkar wrote: > > Hello All, > > I am a newbie in ndnsim.When I run "CustomApp" in a scenario as > mentioned on this page: > http://ndnsim.net/2.0/applications.html > It runs perfectly. > > But, when I try to do the following: > 1) Make a copy of "ndn-simple-with-custom-app.cpp". Let's call the > copy as "ndn-my-scenario.cpp? This part if very important. Where exactly you?re copying it? To make NS-3 find CustomApp, you need custom-app.cpp to be linked together with your scenario. Depending on where you?re copying it, there are different ways to accomplish what you want. ? Alex > 2) Run "NS_LOG=CustomApp ./waf --run=ndn-my-scenario". > > After the second step I get following message: > msg="Invalid or unregistered component name "CustomApp" in env > variable NS_LOG, see above for a list of valid components" > > Could anyone please let me know what might be the issue? I might be > doing something obviously wrong but have spent hours finding the issue > and have not been able to find one. Any help is much appreciated. > > Thanks, > Harshad. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at ucla.edu Sat Apr 11 11:46:56 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Sat, 11 Apr 2015 11:46:56 -0700 Subject: [ndnSIM] LTE and WIMAX in NDN In-Reply-To: <42ba5953.2cf5c.14c9900fac3.Coremail.lizhengyin1115@163.com> References: <42ba5953.2cf5c.14c9900fac3.Coremail.lizhengyin1115@163.com> Message-ID: <76C3CB8C-DC44-43D0-A754-73813DA0FE34@ucla.edu> > On Apr 8, 2015, at 5:28 AM, lzy wrote: > > Hello Alex , i wonder if LTE and WIMAX module in NS-3 can be used into NDNSIM just like ndn-wifi does? > because i've tried a lot ,but all failed. consumer can sent interests but producer won't reply the request when i build ndn-lte just as what ndn-wifi does. Can you share the scenario that reproduces the problem? There shouldn?t be any differences compared to just using wifi netdevices. ? Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at ucla.edu Sat Apr 11 11:49:33 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Sat, 11 Apr 2015 11:49:33 -0700 Subject: [ndnSIM] L3RateTracer Kilobyte values for OutInterests In-Reply-To: <55228DB5.1040006@uni-bamberg.de> References: <55228DB5.1040006@uni-bamberg.de> Message-ID: <29D69EE8-898A-4967-A863-60DBF01C0EA0@ucla.edu> > On Apr 6, 2015, at 6:44 AM, Klaus Schneider wrote: > > Hi everyone, > > I have noticed that in the result file of the L3RateTracer outgoing interest packets ("OutInterests") sometimes have lack the value for "Kilobytes"/"KilobytesRaw". However, the value for "Packets"/"PacketsRaw" seems to always be there. > > In my example (see appendix) I used the broadcast strategy and the throughput value ("OutInterests") only exists for two of the faces. > > You can reproduce that by running the ndn-tree-tracers.cpp example (http://ndnsim.net/2.0/metric.html). In this case the Kilobytes values for OutInterests of the leaf nodes are missing. > > $ cat rate-trace.txt | grep "\sOutInterests" | grep "netDeviceFace" > >> Time Node FaceId FaceDescr Type Packets Kilobytes PacketRaw KilobytesRaw >> 19 leaf-1 256 netDeviceFace:// OutInterests 100 0 50 0 >> 19 leaf-2 256 netDeviceFace:// OutInterests 100 0 50 0 >> 19 leaf-3 256 netDeviceFace:// OutInterests 100 0 50 0 >> 19 leaf-4 256 netDeviceFace:// OutInterests 100 0 50 0 >> 19 rtr-1 256 netDeviceFace:// OutInterests 0 0 0 0 >> 19 rtr-1 258 netDeviceFace:// OutInterests 200 6.44531 100 3.22266 >> 19 rtr-1 257 netDeviceFace:// OutInterests 0 0 0 0 >> 19 rtr-2 256 netDeviceFace:// OutInterests 0 0 0 0 >> 19 rtr-2 257 netDeviceFace:// OutInterests 0 0 0 0 >> 19 rtr-2 258 netDeviceFace:// OutInterests 200 6.44531 100 3.22266 >> 19 root 256 netDeviceFace:// OutInterests 0 0 0 0 >> 19 root 257 netDeviceFace:// OutInterests 0 0 0 0 > > Is this behavior expected? This doesn?t look right? Can you give us a simple scenario that reproduces this output? ? Alex > > Best regards, > Klaus > > > -- > Klaus Schneider > > Mail: klaus.schneider at uni-bamberg.de > LinkedIn: https://www.linkedin.com/in/schneiderklaus > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From M.AbdollahiSabet at mail.sbu.ac.ir Sat Apr 11 12:19:32 2015 From: M.AbdollahiSabet at mail.sbu.ac.ir (Muhammad Hosain Abdollahi Sabet) Date: Sat, 11 Apr 2015 23:49:32 +0430 Subject: [ndnSIM] How to install multiple prefixes in one producer References: <55271604.1080009@gmail.com> <522E9F24-1169-4C6C-A529-D798B89E439A@gmail.com> <55284D85.1050608@gmail.com> <4AC03A6244C3C34BB52A7EC60B799C4C03CC294F@m-pdc.sbu.ac.ir> <716E8B77-588F-4194-8ED7-8B6BA9F33E76@ucla.edu> Message-ID: <4AC03A6244C3C34BB52A7EC60B799C4C03CC2950@m-pdc.sbu.ac.ir> Hi Alex, How? I don't know about the _another way_. According to Spyridon, the assumption is that each application only responds to one prefix. Thanks, Sabet -----Original Message----- From: Alex Afanasyev [mailto:alexander.afanasyev at ucla.edu] Sent: Sat 4/11/2015 11:07 PM To: Muhammad Hosain Abdollahi Sabet Cc: Trade; Spyros Mastorakis; ndnsim at lists.cs.ucla.edu Subject: Re: [ndnSIM] How to install multiple prefixes in one producer > On Apr 10, 2015, at 10:52 PM, Muhammad Hosain Abdollahi Sabet wrote: > > Oops. Sorry. > I meant like this: > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > producerHelper.SetPrefix("/prefix1"); > producerHelper.Install(nodes.Get(NODENUMBER)); > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > producerHelper.SetPrefix("/prefix2"); > producerHelper.Install(nodes.Get(NODENUMBER)); > > ndn::AppHelper producerHelper("ns3::ndn::Producer"); > producerHelper.SetPrefix("/prefix3"); > producerHelper.Install(nodes.Get(NODENUMBER)); > Yes. However, this can be simplified a bit (you don't need to create multiple producerHelpers) ndn::AppHelper producerHelper("ns3::ndn::Producer"); producerHelper.SetPrefix("/prefix1"); producerHelper.Install(nodes.Get(NODENUMBER)); producerHelper.SetPrefix("/prefix2"); producerHelper.Install(nodes.Get(NODENUMBER)); producerHelper.SetPrefix("/prefix3"); producerHelper.Install(nodes.Get(NODENUMBER)); * * * Another way to accomplish your goal is to create another Producer application, which would register and respond to multiple prefixes. - Alex > > Right? > > Thanks, > Sabet > > -----Original Message----- > From: ndnSIM on behalf of Trade > Sent: Sat 4/11/2015 2:54 AM > To: Spyridon (Spyros) Mastorakis > Cc: ndnsim at lists.cs.ucla.edu > Subject: Re: [ndnSIM] How to install multiple prefixes in one producer > > Thanks. > Do you mean that multiple producers can be installed at one node? > > On 4/10/15 9:29 AM, Spyridon (Spyros) Mastorakis wrote: > > Hello, > > > > you will need to install more than one producer applications on the node, because each producer application has been assumed to respond only to one prefix. > > > > -- > > Spyridon (Spyros) Mastorakis > > Personal Website: http://cs.ucla.edu/~mastorakis/ > > Internet Research Laboratory > > PhD Computer Science > > UCLA > > > > > > > > > >> On Apr 9, 2015, at 5:15 PM, Trade wrote: > >> > >> I want one producer can have multiple prefixes, but how to implement? > >> Does this work? or it only takes the last row ? Thanks > >> > >> ProducerHelper.SetPrefix (prefix1); > >> ProducerHelper.SetPrefix (prefix2); > >> ProducerHelper.SetPrefix (prefix3); > >> > >> Trade > >> _______________________________________________ > >> ndnSIM mailing list > >> ndnSIM at lists.cs.ucla.edu > >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From harshadshirwadkar at gmail.com Sat Apr 11 12:49:24 2015 From: harshadshirwadkar at gmail.com (harshad shirwadkar) Date: Sat, 11 Apr 2015 15:49:24 -0400 Subject: [ndnSIM] Unable to run CustomApp with my own scenario In-Reply-To: References: Message-ID: Hi Alex, I copied the "ndn-my-scenario.cpp" to scratch folder. But, I never tried to link custom-app. I am not exactly sure how to do that. But I'll try to find about it more soon and will get back in case of any further questions. Thanks, Harshad. On Sat, Apr 11, 2015 at 2:45 PM, Alex Afanasyev wrote: > >> On Apr 8, 2015, at 9:30 PM, harshad shirwadkar wrote: >> >> Hello All, >> >> I am a newbie in ndnsim.When I run "CustomApp" in a scenario as >> mentioned on this page: >> http://ndnsim.net/2.0/applications.html >> It runs perfectly. >> >> But, when I try to do the following: >> 1) Make a copy of "ndn-simple-with-custom-app.cpp". Let's call the >> copy as "ndn-my-scenario.cpp? > > This part if very important. Where exactly you?re copying it? > > To make NS-3 find CustomApp, you need custom-app.cpp to be linked together with your scenario. Depending on where you?re copying it, there are different ways to accomplish what you want. > > ? > Alex > >> 2) Run "NS_LOG=CustomApp ./waf --run=ndn-my-scenario". >> >> After the second step I get following message: >> msg="Invalid or unregistered component name "CustomApp" in env >> variable NS_LOG, see above for a list of valid components" >> >> Could anyone please let me know what might be the issue? I might be >> doing something obviously wrong but have spent hours finding the issue >> and have not been able to find one. Any help is much appreciated. >> >> Thanks, >> Harshad. From spiros.mastorakis at gmail.com Sat Apr 11 13:02:30 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Sat, 11 Apr 2015 13:02:30 -0700 Subject: [ndnSIM] How to install multiple prefixes in one producer In-Reply-To: <4AC03A6244C3C34BB52A7EC60B799C4C03CC2950@m-pdc.sbu.ac.ir> References: <55271604.1080009@gmail.com> <522E9F24-1169-4C6C-A529-D798B89E439A@gmail.com> <55284D85.1050608@gmail.com> <4AC03A6244C3C34BB52A7EC60B799C4C03CC294F@m-pdc.sbu.ac.ir> <716E8B77-588F-4194-8ED7-8B6BA9F33E76@ucla.edu> <4AC03A6244C3C34BB52A7EC60B799C4C03CC2950@m-pdc.sbu.ac.ir> Message-ID: <6A3A1974-990E-4572-AC42-E077410EEA43@gmail.com> The other way is to create your own producer application that would respond to multiple prefixes. There are no assumptions. It is all about code. The existing producer application responds to a single prefix. You create your own custom producer application that will respond to multiple prefixes. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA From klaus.schneider at uni-bamberg.de Sat Apr 11 13:21:05 2015 From: klaus.schneider at uni-bamberg.de (Klaus Schneider) Date: Sat, 11 Apr 2015 22:21:05 +0200 Subject: [ndnSIM] L3RateTracer Kilobyte values for OutInterests In-Reply-To: <29D69EE8-898A-4967-A863-60DBF01C0EA0@ucla.edu> References: <55228DB5.1040006@uni-bamberg.de> <29D69EE8-898A-4967-A863-60DBF01C0EA0@ucla.edu> Message-ID: <55298231.7070705@uni-bamberg.de> Hi Alexander, thank you for looking at this. I just did a fresh install of ndnSim in order to reproduce the behavior: > mkdir ndnSIM2 > cd ndnSIM2 > git clone https://github.com/named-data/ndn-cxx.git ndn-cxx > git clone https://github.com/cawka/ns-3-dev-ndnSIM.git ns-3 > git clone https://github.com/cawka/pybindgen.git pybindgen > git clone https://github.com/named-data/ndnSIM.git ns-3/src/ndnSIM > cd ndnSIM2/ndn-cxx > ./waf configure > ./waf > sudo ./waf install > cd ../ns-3 > ./waf configure --disable-python --enable-examples > ./waf Then you can just run the "ndn-tree-tracers" example and look at the output (which is the same as below). > ./waf --run=ndn-tree-tracers > cat rate-trace.txt | grep "\sOutInterests" | grep "netDeviceFace" I hope this helps. Klaus On 11.04.2015 20:49, Alex Afanasyev wrote: > >> On Apr 6, 2015, at 6:44 AM, Klaus Schneider wrote: >> >> Hi everyone, >> >> I have noticed that in the result file of the L3RateTracer outgoing interest packets ("OutInterests") sometimes have lack the value for "Kilobytes"/"KilobytesRaw". However, the value for "Packets"/"PacketsRaw" seems to always be there. >> >> In my example (see appendix) I used the broadcast strategy and the throughput value ("OutInterests") only exists for two of the faces. >> >> You can reproduce that by running the ndn-tree-tracers.cpp example (http://ndnsim.net/2.0/metric.html). In this case the Kilobytes values for OutInterests of the leaf nodes are missing. >> >> $ cat rate-trace.txt | grep "\sOutInterests" | grep "netDeviceFace" >> >>> Time Node FaceId FaceDescr Type Packets Kilobytes PacketRaw KilobytesRaw >>> 19 leaf-1 256 netDeviceFace:// OutInterests 100 0 50 0 >>> 19 leaf-2 256 netDeviceFace:// OutInterests 100 0 50 0 >>> 19 leaf-3 256 netDeviceFace:// OutInterests 100 0 50 0 >>> 19 leaf-4 256 netDeviceFace:// OutInterests 100 0 50 0 >>> 19 rtr-1 256 netDeviceFace:// OutInterests 0 0 0 0 >>> 19 rtr-1 258 netDeviceFace:// OutInterests 200 6.44531 100 3.22266 >>> 19 rtr-1 257 netDeviceFace:// OutInterests 0 0 0 0 >>> 19 rtr-2 256 netDeviceFace:// OutInterests 0 0 0 0 >>> 19 rtr-2 257 netDeviceFace:// OutInterests 0 0 0 0 >>> 19 rtr-2 258 netDeviceFace:// OutInterests 200 6.44531 100 3.22266 >>> 19 root 256 netDeviceFace:// OutInterests 0 0 0 0 >>> 19 root 257 netDeviceFace:// OutInterests 0 0 0 0 >> >> Is this behavior expected? > > This doesn?t look right? Can you give us a simple scenario that reproduces this output? > > ? > Alex > >> >> Best regards, >> Klaus >> >> >> -- >> Klaus Schneider >> >> Mail: klaus.schneider at uni-bamberg.de >> LinkedIn: https://www.linkedin.com/in/schneiderklaus >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > -- Klaus Schneider Mail: klaus.schneider at uni-bamberg.de LinkedIn: https://www.linkedin.com/in/schneiderklaus From mejrisafaenig at gmail.com Sun Apr 12 04:11:50 2015 From: mejrisafaenig at gmail.com (Safa Mejri) Date: Sun, 12 Apr 2015 12:11:50 +0100 Subject: [ndnSIM] NACK Message-ID: Hi; I want to know if retransmitted interests generate a duplicate NACK or it's just the case of looped interest. Safa -------------- next part -------------- An HTML attachment was scrubbed... URL: From mejrisafaenig at gmail.com Sun Apr 12 10:14:24 2015 From: mejrisafaenig at gmail.com (Safa Mejri) Date: Sun, 12 Apr 2015 18:14:24 +0100 Subject: [ndnSIM] (no subject) Message-ID: How to define loss rate in ndnSIM ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunlzy at 126.com Sun Apr 12 10:24:44 2015 From: yunlzy at 126.com (=?GBK?B?093B+uzP?=) Date: Mon, 13 Apr 2015 01:24:44 +0800 (CST) Subject: [ndnSIM] How to dynamically install producer in the runtime? Message-ID: <5b065904.b.14caea97973.Coremail.yunlzy@126.com> Hello all: I want to simulate a system with p2p function, so i need to dynamically add producer in the runtime. but when I try to install producer in my client like below: producerHelper.SetPrefix(name); producerHelper.Install(GetNode()); Only the last interest can be satisfied. log looks like this: 4 : new producer for/1 4 : new producer for/2 4 : new producer for/3 4 : new producer for/4 4 : new producer for/5 3 : send interest /1 3 : send interest /2 3 : send interest /3 3 : send interest /4 3 : send interest /5 4 : send Data packet for /5 Only the fifth interest is satisfied. I want to know is there some way to deal with this problem? Sorry for my poor english and thanks for help. Long Yu -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Mon Apr 13 10:20:01 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 13 Apr 2015 10:20:01 -0700 Subject: [ndnSIM] NACK In-Reply-To: References: Message-ID: <500AC154-9AE1-4635-9114-1D6895ED414B@gmail.com> Hello, Retransmitted interests should have a new nonce, so that they are identified as new interests and not as looped ones. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 12, 2015, at 4:11 AM, Safa Mejri wrote: > > Hi; > I want to know if retransmitted interests generate a duplicate NACK or it's just the case of looped interest. > > Safa > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Mon Apr 13 10:24:26 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 13 Apr 2015 10:24:26 -0700 Subject: [ndnSIM] (no subject) In-Reply-To: References: Message-ID: <78CB7D18-0F01-433C-A60C-7E0231DDAF58@gmail.com> For point to point links we have the link-control-helper: http://ndnsim.net/2.0/helpers.html#link-control-helper https://github.com/NDN-Routing/ndnSIM/blob/963621b3fcabbf03484817c434c58792e331928b/helper/ndn-link-control-helper.cpp If you need something more advanced, you may need to take a look at NS3 API documentation: https://www.nsnam.org/doxygen/ -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 12, 2015, at 10:14 AM, Safa Mejri wrote: > > How to define loss rate in ndnSIM ? > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Mon Apr 13 10:26:56 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 13 Apr 2015 10:26:56 -0700 Subject: [ndnSIM] How to dynamically install producer in the runtime? In-Reply-To: <5b065904.b.14caea97973.Coremail.yunlzy@126.com> References: <5b065904.b.14caea97973.Coremail.yunlzy@126.com> Message-ID: <0F8AAA3D-F1EB-4B12-AF0C-4B31A83CDF9A@gmail.com> Hello, there can be a number of reasons for that... A probable reason could be that you do not install the FIB entries on the nodes in the appropriate way for the interest forwarding that you want to achieve. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 12, 2015, at 10:24 AM, ??? wrote: > > Hello all: > I want to simulate a system with p2p function, so i need to dynamically add producer in the runtime. > but when I try to install producer in my client like below: > producerHelper.SetPrefix(name); > producerHelper.Install(GetNode()); > Only the last interest can be satisfied. log looks like this: > 4 : new producer for/1 > 4 : new producer for/2 > 4 : new producer for/3 > 4 : new producer for/4 > 4 : new producer for/5 > 3 : send interest /1 > 3 : send interest /2 > 3 : send interest /3 > 3 : send interest /4 > 3 : send interest /5 > 4 : send Data packet for /5 > Only the fifth interest is satisfied. > I want to know is there some way to deal with this problem? > Sorry for my poor english and thanks for help. > Long Yu > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From yunlzy at 126.com Tue Apr 14 03:45:41 2015 From: yunlzy at 126.com (=?GBK?B?093B+uzP?=) Date: Tue, 14 Apr 2015 18:45:41 +0800 (CST) Subject: [ndnSIM] How to dynamically calculate GlobalRouting? Message-ID: <465d3786.1d49.14cb788d8ff.Coremail.yunlzy@126.com> HI All? I have a scenario that new producer will be install at runtime. For correctly retrieve this producer, i need to re-calculate the globalRouting. I used a map to store all the prefix and node pairs, and use addOrgins function to re-add all the prefix then i I used GlobalRoutingHelper::CalculateRoutes to reCalculate them. But it still does not work as I thought. I doubted if I use calculateRoutes in a wrong way? Thanks. longyu -------------- next part -------------- An HTML attachment was scrubbed... URL: From hailercao at qq.com Tue Apr 14 09:39:42 2015 From: hailercao at qq.com (=?gb18030?B?sty9qNGr?=) Date: Wed, 15 Apr 2015 00:39:42 +0800 Subject: [ndnSIM] unsatisfy timer In-Reply-To: References: Message-ID: hi,I want to know if there is any way to set unsatisfy timer of PIT entry. Thank you! ------------------ ???????? ??? ????????????? ??????? ???FIT 1-216 ???010-62603061 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexni1992 at gmail.com Wed Apr 15 02:03:48 2015 From: alexni1992 at gmail.com (Alexander Ni) Date: Wed, 15 Apr 2015 18:03:48 +0900 Subject: [ndnSIM] Producer Message-ID: Hello everyone, I just start working with ndnSIM and wondering is there any way to simulate just a simple move of producer from one node to another with use of existing ndnSIM modules. Just to see the reaction of network on such events. -- Sincerely, Alexander Ni -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.ulgelmo at aol.com Wed Apr 15 02:09:33 2015 From: marco.ulgelmo at aol.com (marco.ulgelmo at aol.com) Date: Wed, 15 Apr 2015 11:09:33 +0200 Subject: [ndnSIM] About NotifyNewAggregate In-Reply-To: <4C95DCC2-B934-4DFF-9788-383180E9B27E@gmail.com> References: <4C95DCC2-B934-4DFF-9788-383180E9B27E@gmail.com> Message-ID: <5E7522C7-F8B0-4BA2-ADAD-397126378D38@aol.com> Thanks, for the reply, to make it short I need to port some code which was intended for ndnsim v1 to v2. Inside the NotifyNewAggregate method body there's a call to another method. So where can I put this method call in version 2 so that I can achieve the same result? Marco Ulgelmo > Il giorno 10/apr/2015, alle ore 18:22, Spyridon (Spyros) Mastorakis ha scritto: > > Hello Marco, > > I am not sure that I understand your exact goal (as the NotifyNewAggregate performs more than one things..), but I will try to elaborate on this a little bit. In ndnSIM 2.0, the forwarding is performed by NFD. Each forwarding instance (class Forwarder) has various attributes. One of them is the so called ?StrategyChoice?. This is actually a table where the forwarding strategy per name prefix is stored. Using the API of the StrategyChoice class, you can find the forwarding strategy for each name prefix as it is installed on each node. > > For the attributes of the ?Forwarder? class, you can take a look here: > > https://github.com/NDN-Routing/ndnSIM/blob/master/NFD/daemon/fw/forwarder.cpp#L42 > > For the ?StrategyChoice? class and its ?findEffectingStrategy? method, you can take a look here: > > https://github.com/NDN-Routing/ndnSIM/blob/963621b3fcabbf03484817c434c58792e331928b/NFD/daemon/table/strategy-choice.cpp#L166 > > Hope that this helps. > > -- > Spyridon (Spyros) Mastorakis > Personal Website: http://cs.ucla.edu/~mastorakis/ > Internet Research Laboratory > PhD Computer Science > UCLA > > > > >> On Apr 10, 2015, at 3:13 AM, marco.ulgelmo at aol.com wrote: >> >> Hello, >> >> I need to achieve the same functionality of NotifyNewAggregate method in my custom strategy. In ndnsim v1 the method was part of the class but in v2 it's not anymore. Any suggestions? >> >> Thanks, >> Marco >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > From lizhengyin1115 at 163.com Wed Apr 15 19:16:26 2015 From: lizhengyin1115 at 163.com (lzy) Date: Thu, 16 Apr 2015 10:16:26 +0800 (CST) Subject: [ndnSIM] ndn-simple-with-pcap Message-ID: <4d16bdd9.1609b.14cc0035656.Coremail.lizhengyin1115@163.com> i run example :ndn-simple-with-pcap successfully,but under /ns3 ndn-simple-trace.pcap isnt created. i wonder why it happens. because i when i run wimax-simple it will create four *.pcap files. -------------- next part -------------- An HTML attachment was scrubbed... URL: From M.AbdollahiSabet at mail.sbu.ac.ir Wed Apr 15 23:02:29 2015 From: M.AbdollahiSabet at mail.sbu.ac.ir (Muhammad Hosain Abdollahi Sabet) Date: Thu, 16 Apr 2015 10:32:29 +0430 Subject: [ndnSIM] Producer References: Message-ID: <4AC03A6244C3C34BB52A7EC60B799C4C03CC2953@m-pdc.sbu.ac.ir> Hi Alexander, If yea mean handover when you point to producer's moves, well I haven't found it either yet. But in here: http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=6883822 They've done this (I'm quoting): "we emulated the handover process by integrating each mobile host with multiple interface cards (each of which corresponds to an access point within the mobile host?s movement region), and regularly updating the interfaces (i.e., enabling or disabling) depending on the perceived signal quality. A handover is initiated whenever (i) the signal quality perceived by the mobile host at the current network is not the best anymore, with respect to the signal quality perceived through at least one other access points within the host?s range, and (ii) the respective change in signal quality persists for a speci?c duration." If you ever found anything better, please let me know. Thanks, Sabet -----Original Message----- From: ndnSIM on behalf of Alexander Ni Sent: Wed 15/04/2015 13:33 To: ndnsim at lists.cs.ucla.edu Subject: [ndnSIM] Producer Hello everyone, I just start working with ndnSIM and wondering is there any way to simulate just a simple move of producer from one node to another with use of existing ndnSIM modules. Just to see the reaction of network on such events. -- Sincerely, Alexander Ni -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Thu Apr 16 08:14:22 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Thu, 16 Apr 2015 08:14:22 -0700 Subject: [ndnSIM] About NotifyNewAggregate In-Reply-To: <5E7522C7-F8B0-4BA2-ADAD-397126378D38@aol.com> References: <4C95DCC2-B934-4DFF-9788-383180E9B27E@gmail.com> <5E7522C7-F8B0-4BA2-ADAD-397126378D38@aol.com> Message-ID: Hello Marco, NotifyNewAggregate is a virtual method of ns3::Object. I think that we overload it twice in ndnSIM, if I am not wrong (I think we overload it in the ndn-global-router and ndn-l3-protocol). Please be more specific in the way that you want to use this method, so that I can provide some helpful piece of advice. Thank you -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA From anwar.kalghoum at yahoo.fr Fri Apr 17 08:18:11 2015 From: anwar.kalghoum at yahoo.fr (Anwar Kalghoum) Date: Fri, 17 Apr 2015 15:18:11 +0000 (UTC) Subject: [ndnSIM] fib table in ndnSIM Message-ID: <1952716390.6407803.1429283891817.JavaMail.yahoo@mail.yahoo.com> Hi, How to show the contents of the FIB table in ndnSIM ? thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From aloulounarjes at yahoo.fr Fri Apr 17 08:40:56 2015 From: aloulounarjes at yahoo.fr (narjes aloulou) Date: Fri, 17 Apr 2015 16:40:56 +0100 Subject: [ndnSIM] fib table in ndnSIM In-Reply-To: <1952716390.6407803.1429283891817.JavaMail.yahoo@mail.yahoo.com> Message-ID: <1429285256.97750.YahooMailBasic@web172102.mail.ir2.yahoo.com> Hi, I use the ndnSIM v1. The following code displays the content of FIB table for each node: for (NodeList::Iterator node = NodeList::Begin (); node != NodeList::End (); node ++) { std::cout << "Node <" << ((*node)->GetId ())<<"\n"; Ptr fib = (*node)->GetObject (); for (Ptr entry = fib->Begin (); entry != fib->End (); entry = fib->Next (entry)) { std::cout << entry->GetPrefix () ; BOOST_FOREACH (const ndn::fib::FaceMetric &faceMetric, entry->m_faces) { std::cout <<"face=" << faceMetric.GetFace ()->GetId()<<"\n"; } } std::cout <<"==============="< a ?crit?: Objet: [ndnSIM] fib table in ndnSIM ?: "ndnsim at lists.cs.ucla.edu" Date: Vendredi 17 avril 2015, 16h18 Hi, How to show the contents of the FIB table in ndnSIM ? thank you -----La pi?ce jointe associ?e suit----- _______________________________________________ ndnSIM mailing list ndnSIM at lists.cs.ucla.edu http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Fri Apr 17 08:52:07 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 17 Apr 2015 08:52:07 -0700 Subject: [ndnSIM] About NotifyNewAggregate In-Reply-To: References: <4C95DCC2-B934-4DFF-9788-383180E9B27E@gmail.com> <5E7522C7-F8B0-4BA2-ADAD-397126378D38@aol.com> Message-ID: Hello Marco, please use the ?reply to all? option, so that your questions are visible to the list. ndnSIM 2.0 uses the forwarding features of NFD. I think that the instructions in my first message are useful for your goal. Moreover, you need to the change the forwarding strategy structure, so that to follow the general structure of the forwarding strategies of NFD. For example, you can take a look at the best-route forwarding strategy: https://github.com/NDN-Routing/ndnSIM/blob/master/NFD/daemon/fw/best-route-strategy2.cpp https://github.com/NDN-Routing/ndnSIM/blob/master/NFD/daemon/fw/best-route-strategy2.hpp You will need to move the code of your strategy under the directory NFD/daemon/fw and add your strategy in the NFD/daemon/fw/available-strategies.cpp script. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 16, 2015, at 2:40 PM, Marco Ulgelmo wrote: > > I made a custom forwarding strategy in ndnSIM version 1 in which i overrided the NotifyNewAggregate method so that i could call another custom method, say foo(), before calling the NotifyNewAggregate standard method (super::NotifyNewAggregate). Since i need to code that strategy to be compatible for version 2, i?d like to know if there is a way/method that i can override so that i can place the call to foo() method and achieve the same effect that i would as if I still had the NotifyNewAggregate method. I hope i could explain my self. > > Thanks a lot, > Marco > >> On 16 Apr 2015, at 17:14, Spyridon (Spyros) Mastorakis wrote: >> >> Hello Marco, >> >> NotifyNewAggregate is a virtual method of ns3::Object. I think that we overload it twice in ndnSIM, if I am not wrong (I think we overload it in the ndn-global-router and ndn-l3-protocol). Please be more specific in the way that you want to use this method, so that I can provide some helpful piece of advice. >> >> Thank you >> >> -- >> Spyridon (Spyros) Mastorakis >> Personal Website: http://cs.ucla.edu/~mastorakis/ >> Internet Research Laboratory >> PhD Computer Science >> UCLA >> >> >> >> > From lizhengyin1115 at 163.com Fri Apr 17 10:02:58 2015 From: lizhengyin1115 at 163.com (lzy) Date: Sat, 18 Apr 2015 01:02:58 +0800 (CST) Subject: [ndnSIM] some problem in using wimax module for ndn Message-ID: <7db95c98.c04d.14cc85558ec.Coremail.lizhengyin1115@163.com> hello everyone ?i create 2 SS(SubscriberStation) and 1 BS(BaseStation) in my script. One SS(node 0) install ndnConsumer ,another SS(node 1) install ndnProducer,SS1(node 0) can sent packet and BS (node 2) will receive packet(as jpg shows), but BS(node 2) wont trans packet to SS2(node 1).so SS2(node 1) wont sent DataPacket back. If i install ndnConsumer in BS(node 2),ndnProducer in SSs(node 0 and node 1),BS will send packet to SSs but SSs wont sent DatePacket back too (as jpg2 shows),here are my codes in attachment ,anyone could give me some advices? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.JPG Type: image/jpeg Size: 37701 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ndn-wimax.cpp URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ??.JPG Type: image/jpeg Size: 19600 bytes Desc: not available URL: From lizhengyin1115 at 163.com Fri Apr 17 10:25:53 2015 From: lizhengyin1115 at 163.com (lzy) Date: Sat, 18 Apr 2015 01:25:53 +0800 (CST) Subject: [ndnSIM] some problem in using wimax module for ndn Message-ID: <1fb0e15c.c15a.14cc86a5210.Coremail.lizhengyin1115@163.com> hello everyone ?i create 2 SS(SubscriberStation) and 1 BS(BaseStation) in my script. One SS(node 0) install ndnConsumer ,another SS(node 1) install ndnProducer,SS1(node 0) can sent packet and BS (node 2) will receive packet(as jpg shows), but BS(node 2) wont trans packet to SS2(node 1).so SS2(node 1) wont sent DataPacket back. If i install ndnConsumer in BS(node 2),ndnProducer in SSs(node 0 and node 1),BS will send packet to SSs but SSs wont sent DatePacket back too (as jpg2 shows),here are my codes in attachment ,anyone could give me some advices? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.JPG Type: image/jpeg Size: 37701 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ndn-wimax.cpp URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ??.JPG Type: image/jpeg Size: 19600 bytes Desc: not available URL: From spiros.mastorakis at gmail.com Mon Apr 20 13:17:36 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Mon, 20 Apr 2015 13:17:36 -0700 Subject: [ndnSIM] unsatisfy timer In-Reply-To: References: Message-ID: <2717CE15-B55B-4D96-83F0-D3392B14D0A4@gmail.com> Hello, I am quoting the NFD developer guide: "An in-record expires when InterestLifetime has elapsed after the last Interest packet arrives. A PIT entry expires when all in-records expire. A PIT entry is said to be pending if it contains at least one unexpired in-record.? For more information, you can take a look at section 3.3.1 of the NFD developer guide: http://named-data.net/wp-content/uploads/2013/07/ndn-0021-3-nfd-developer-guide.pdf -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 14, 2015, at 9:39 AM, ??? wrote: > > hi,I want to know if there is any way to set unsatisfy timer of PIT entry. > > Thank you! > > ------------------ > ???????? > > ??? > ????????????? > ??????? > ???FIT 1-216 > ???010-62603061 > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From christian.kreuzberger at itec.aau.at Tue Apr 21 00:54:55 2015 From: christian.kreuzberger at itec.aau.at (Christian Kreuzberger) Date: Tue, 21 Apr 2015 09:54:55 +0200 Subject: [ndnSIM] NLSR and ndnSIM? Message-ID: <00cd01d07c08$749c5750$5dd505f0$@itec.aau.at> Dear all, within our research we noticed that the "best-route" forwarding strategy of NFD differs significantly from ndnSIM 1.0. For instance, when a link failure or congestion occurs, the forwarder will not learn anything about the underlying issue. The client will re-issue after the interests times out (depending on the interest timeout, this could be rather long), and the forwarder will try the very same outgoing face again (which is probably still congested). With ndnSIM 1.0, the notion of "red, green, yellow faces" in combination with NACKs was working very well. I understand that the idea for NFD is to use NLSR, though I haven't seen NLSR active/working in ndnSIM yet. Is there ongoing work, are there any examples available? Best regards, Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: From lanwang at memphis.edu Tue Apr 21 07:03:01 2015 From: lanwang at memphis.edu (Lan Wang (lanwang)) Date: Tue, 21 Apr 2015 14:03:01 +0000 Subject: [ndnSIM] NLSR and ndnSIM? In-Reply-To: <00cd01d07c08$749c5750$5dd505f0$@itec.aau.at> References: <00cd01d07c08$749c5750$5dd505f0$@itec.aau.at> Message-ID: <059B4452-9567-4A8D-87CD-BFD4D6FAECA0@memphis.edu> On Apr 21, 2015, at 2:54 AM, Christian Kreuzberger > wrote: Dear all, within our research we noticed that the ?best-route? forwarding strategy of NFD differs significantly from ndnSIM 1.0. For instance, when a link failure or congestion occurs, the forwarder will not learn anything about the underlying issue. The client will re-issue after the interests times out (depending on the interest timeout, this could be rather long), and the forwarder will try the very same outgoing face again (which is probably still congested). This is by design. The best-route strategy in NFD does not remember the status of the routes beyond the current PIT entry, so when you send another interest to the same name prefix (after the previous PIT entry times out), it will still use the same face as long as it is ranked highest by routing. So it works when routing adapts to the failures. With ndnSIM 1.0, the notion of ?red, green, yellow faces? in combination with NACKs was working very well. This is the strategy proposed in the paper http://named-data.net/publications/comcom-stateful-forwarding/ and http://named-data.net/publications/role_of_routing_ndn/. We do not call it best-route strategy. It is not available in NFD yet. I understand that the idea for NFD is to use NLSR, though I haven?t seen NLSR active/working in ndnSIM yet. Is there ongoing work, are there any examples available? There is no NLSR in ndnSIM yet, but there's ongoing work to port it to ndnSIM by Anil Jangam. I'm cc'ing him. Lan Best regards, Christian _______________________________________________ ndnSIM mailing list ndnSIM at lists.cs.ucla.edu http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From anwar.kalghoum at yahoo.fr Tue Apr 21 13:15:44 2015 From: anwar.kalghoum at yahoo.fr (Anwar Kalghoum) Date: Tue, 21 Apr 2015 20:15:44 +0000 (UTC) Subject: [ndnSIM] fib table in ndnSIM In-Reply-To: <1429285256.97750.YahooMailBasic@web172102.mail.ir2.yahoo.com> References: <1429285256.97750.YahooMailBasic@web172102.mail.ir2.yahoo.com> Message-ID: <1823582491.2273855.1429647344747.JavaMail.yahoo@mail.yahoo.com> Hi;thank you very much Narjes; The? code? in ndnSIM v2? : ?? for (const auto& entry : ndn->getForwarder()->getFib()) {????? std::cout << entry.getPrefix() << " ("; ????? bool isFirst = true; ????? for (auto& nextHop : entry.getNextHops()) { ?????? std::cout << *nextHop.getFace(); ??????? auto face = dynamic_pointer_cast(nextHop.getFace()); ??????? if (face == nullptr) ????????? continue; ?????? std::cout << " towards "; ??????? if (!isFirst) ???????? std::cout << ", "; ??????? std::cout << Names::FindName(face->GetNetDevice()->GetChannel()->GetDevice(1)->GetNode()); ??????? isFirst = false; ????? } ????? cout << ")" << endl; ??? } ? ................. Best Regards Le Vendredi 17 avril 2015 16h40, narjes aloulou a ?crit : Hi, I use the ndnSIM v1. The following code displays the content of FIB table for each node: ? for (NodeList::Iterator node = NodeList::Begin (); node != NodeList::End (); node ++) ? { ? std::cout << "Node <" << ((*node)->GetId ())<<"\n"; ? Ptr fib = (*node)->GetObject (); ? for (Ptr entry = fib->Begin (); entry != fib->End (); entry = fib->Next (entry)) ? ? { ? ? ? std::cout << entry->GetPrefix () ;? ? ? ? BOOST_FOREACH (const ndn::fib::FaceMetric &faceMetric, entry->m_faces) ? ? ? { ? ? ? ? std::cout <<"face=" << faceMetric.GetFace ()->GetId()<<"\n"; ? ? ? } ? ? } ? std::cout <<"==============="< a ?crit?: Objet: [ndnSIM] fib table in ndnSIM ?: "ndnsim at lists.cs.ucla.edu" Date: Vendredi 17 avril 2015, 16h18 Hi, How to show the contents of the FIB table in ndnSIM ? thank you -----La pi?ce jointe associ?e suit----- _______________________________________________ ndnSIM mailing list ndnSIM at lists.cs.ucla.edu http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.ulgelmo at aol.com Wed Apr 22 07:21:37 2015 From: marco.ulgelmo at aol.com (Marco Ulgelmo) Date: Wed, 22 Apr 2015 16:21:37 +0200 Subject: [ndnSIM] CAIDA points Message-ID: Hello, I would like to use CAIDA points in a simulation scenario in ndnSIM. In particular I have downloaded these points http://www.caida.org/data/active/ipv4_routed_topology_aslinks_dataset.xml So far i couldn?t seem to find a way to convert these points to a Rocketfuel or Annotated Topology format. Do anyone know how to use CAIDA points in ndnSIM? Thanks, Marco Ulgelmo -------------- next part -------------- An HTML attachment was scrubbed... URL: From kc at caida.org Wed Apr 22 08:16:22 2015 From: kc at caida.org (k claffy) Date: Wed, 22 Apr 2015 08:16:22 -0700 Subject: [ndnSIM] CAIDA points In-Reply-To: References: Message-ID: <20150422151622.GA75056@caida.org> did you look at: http://www.caida.org/data/internet-topology-data-kit/ k On Wed, Apr 22, 2015 at 04:21:37PM +0200, Marco Ulgelmo wrote: Hello, I would like to use CAIDA points in a simulation scenario in ndnSIM. In particular I have downloaded these points http://www.caida.org/data/active/ipv4_routed_topology_aslinks_dataset.xml So far i couldn???t seem to find a way to convert these points to a Rocketfuel or Annotated Topology format. Do anyone know how to use CAIDA points in ndnSIM? Thanks, Marco Ulgelmo _______________________________________________ ndnSIM mailing list ndnSIM at lists.cs.ucla.edu http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From marco.ulgelmo at aol.com Thu Apr 23 02:38:42 2015 From: marco.ulgelmo at aol.com (Marco Ulgelmo) Date: Thu, 23 Apr 2015 11:38:42 +0200 Subject: [ndnSIM] CAIDA points In-Reply-To: <20150422151622.GA75056@caida.org> References: <20150422151622.GA75056@caida.org> Message-ID: Yes, thank you, i also have access to the restricted dataset but each file is too big to be processed (2.5 gb each one more or less), unless I am missing something. Marco > On 22 Apr 2015, at 17:16, k claffy wrote: > > > did you look at: > > http://www.caida.org/data/internet-topology-data-kit/ > > k > > On Wed, Apr 22, 2015 at 04:21:37PM +0200, Marco Ulgelmo wrote: > Hello, > > I would like to use CAIDA points in a simulation scenario in ndnSIM. In particular I have downloaded these points http://www.caida.org/data/active/ipv4_routed_topology_aslinks_dataset.xml > > So far i couldn???t seem to find a way to convert these points to a Rocketfuel or Annotated Topology format. Do anyone know how to use CAIDA points in ndnSIM? > > Thanks, > Marco Ulgelmo > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > From harshadshirwadkar at gmail.com Thu Apr 23 21:27:20 2015 From: harshadshirwadkar at gmail.com (harshad shirwadkar) Date: Fri, 24 Apr 2015 00:27:20 -0400 Subject: [ndnSIM] Content Store Size Message-ID: Hello all, It looks like that content store size is in terms of "packets" and not "bytes". Does packet here refer to interest / data packet? If that's the case, if I change data packet size, the content store capacity would change. Is my understanding correct? For my experiments, I need different packet sizes but constant content store sizes. Could anybody please let me know if there is a way to set content store size in bytes(I did not find anything online about it :( )? Thanks, Harshad. From anilj.mailing at gmail.com Fri Apr 24 00:21:04 2015 From: anilj.mailing at gmail.com (Anil Jangam) Date: Fri, 24 Apr 2015 00:21:04 -0700 Subject: [ndnSIM] GetTypeId() for user defined object. Message-ID: Hi, In my ndn application, which is a composition of other user defined objects, I am trying to write "TypeId GetTypeId(void)" function. I checked some existing examples, and found that most of them are composition of NS and basic data type objects (e.g. Name, Time, uint32_t etc). I don't quite understand in my case how do I write the GetTypeId function and how to use the AddAttribute() for user defined objects. For instance for object of type Name, there is MakeNameAccessor() and MakeNameChecker() functions, and these are used in AddAttribute. Do I have to define these Accessor and Checker functions for my user defined objects? Regards, /anil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From trade20122012 at gmail.com Fri Apr 24 17:15:57 2015 From: trade20122012 at gmail.com (Trade) Date: Fri, 24 Apr 2015 17:15:57 -0700 Subject: [ndnSIM] question on link failure Message-ID: <553ADCBD.5090207@gmail.com> I put this in the main file, and after 10s, I test the neighbor list, the neighbor is still in the node list of the neighbors. Should not that be disappeared because all faces are turned off ? Simulator::Schedule (Seconds (10.0), ndn::LinkControlHelper::FailLink, nodes.Get (0), nodes.Get (1)); -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Fri Apr 24 19:58:25 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 24 Apr 2015 19:58:25 -0700 Subject: [ndnSIM] question on link failure In-Reply-To: <553ADCBD.5090207@gmail.com> References: <553ADCBD.5090207@gmail.com> Message-ID: <1B4E9257-2FB1-42DA-A760-5820595BF8BF@gmail.com> Hi, the thing that LinkControlHelper does is to increase the error rate of a link to the maximum rate. There is no notion of a physically failed link in NS3. This is done by increasing the link error rate to the maximum value. That is why you still see the face to be up. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 24, 2015, at 5:15 PM, Trade wrote: > > I put this in the main file, and after 10s, I test the neighbor list, the neighbor is still in the node list of the neighbors. > > Should not that be disappeared because all faces are turned off ? > > Simulator::Schedule (Seconds (10.0), ndn::LinkControlHelper::FailLink, nodes.Get (0), nodes.Get (1)); > > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From alexander.afanasyev at ucla.edu Fri Apr 24 20:20:51 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 24 Apr 2015 20:20:51 -0700 Subject: [ndnSIM] Content Store Size In-Reply-To: References: Message-ID: > On Apr 23, 2015, at 9:27 PM, harshad shirwadkar wrote: > > Hello all, > > It looks like that content store size is in terms of "packets" and not > "bytes". Does packet here refer to interest / data packet? Content store caches data packets, so it is always about data packets. > If that's > the case, if I change data packet size, the content store capacity > would change. Is my understanding correct? Capacity in terms of ?size? yes, capacity in terms of packets will not. > > For my experiments, I need different packet sizes but constant content > store sizes. Could anybody please let me know if there is a way to set > content store size in bytes(I did not find anything online about it :( > )? To make your experiment work, you would need to write a custom replacement policy that would keep track not just number of elements in the cache, but also the size in bytes that is being used. For example, this could be something like https://gist.github.com/cawka/a4b0ab073216ef7bc230 ? Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From alexander.afanasyev at ucla.edu Fri Apr 24 20:26:48 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 24 Apr 2015 20:26:48 -0700 Subject: [ndnSIM] GetTypeId() for user defined object. In-Reply-To: References: Message-ID: <33A03E0E-58DC-48A1-AFF8-84E4691ADAE9@ucla.edu> > On Apr 24, 2015, at 12:21 AM, Anil Jangam wrote: > > Hi, > > In my ndn application, which is a composition of other user defined objects, I am trying to write "TypeId GetTypeId(void)" function. I checked some existing examples, and found that most of them are composition of NS and basic data type objects (e.g. Name, Time, uint32_t etc). > > I don't quite understand in my case how do I write the GetTypeId function and how to use the AddAttribute() for user defined objects. For instance for object of type Name, there is MakeNameAccessor() and MakeNameChecker() functions, and these are used in AddAttribute. > > Do I have to define these Accessor and Checker functions for my user defined objects? Hi Anil, For your custom objects, you don?t need to explicitly define the accessor, but you need to make sure to add a few things for checker and accessor to be automatically created: 1. Implement std::ostream& operator<<(std::ostream&, const YourCustomType&); 2. Implement std::istream& operator>>(std::istream& YourCustomType&); 3. You need to add the following macro in the header file of your type: ATTRIBUTE_HELPER_HEADER(YourCustomType); 4. And this macro to .cpp file: ATTRIBUTE_HELPER_CPP(YourCustomType); * * * After these steps, you should be able to use your type inside GetTypeId() method. ? Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From mickeysjm at gmail.com Fri Apr 24 21:19:45 2015 From: mickeysjm at gmail.com (mickey-gmail) Date: Sat, 25 Apr 2015 12:19:45 +0800 Subject: [ndnSIM] Problem about ns-3 build Message-ID: <18785075-7087-49D6-BDBA-F208B469B481@gmail.com> I tried to build the ns-3 on my Mac OS 10.10.2, I found a problem about "AttributeError: 'bool' object has no attribute ?split??. I double checked the python version ( which is 2.7 ), and gtk module( which is ok. ). I also tried to disabled python bindings, but it didn?t work. Did anyone meet this kind of problem previously and know a clue to solve it? Thanks. ? p.s.(error-log) chenjiamingdeMacBook-Pro:~ shenjiaming$ cd '/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/' chenjiamingdeMacBook-Pro:ns-3 shenjiaming$ ls AUTHORS RELEASE_NOTES examples utils waf.bat CHANGES.html VERSION scratch utils.py wscript LICENSE bindings src utils.pyc wutils.py Makefile build test.py waf wutils.pyc README doc testpy.supp waf-tools chenjiamingdeMacBook-Pro:ns-3 shenjiaming$ ./waf configure --enable-examples Setting top to : /Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3 Setting out to : /Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/build Checking for 'gcc' (c compiler) : /usr/bin/gcc Checking for cc version : 6.1.0 Checking for 'g++' (c++ compiler) : /usr/bin/g++ Checking supported compiler CXXFLAGS : -std=c++0x -std=c++11 Checking supported optimizations CXXFLAGS : -O0 Checking supported debug CXXFLAGS : -ggdb -g3 Checking supported warnings CXXFLAGS : -Wall -Wno-error=deprecated-declarations -fstrict-aliasing -Wstrict-aliasing Checking for program python : /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Checking for python version : (2, 7, 9, 'final', 0) Checking for library python2.7 in LIBPATH_PYEMBED : yes Checking for program python-config : /opt/local/bin/python2.7-config Checking for header Python.h : yes Checking for compilation flag -fvisibility=hidden... support : ok Checking for compilation flag -Wno-array-bounds... support : ok Checking for pybindgen location : ../pybindgen (guessed) Checking for python module 'pybindgen' : 0.17.0.887 Checking for pybindgen version : 0.17.0.887 Checking for types uint64_t and unsigned long equivalence : no Checking for types uint64_t and unsigned long long equivalence : yes Checking for the apidefs that can be used for Python bindings : gcc-ILP32 Checking for internal GCC cxxabi : incomplete Checking for python module 'pygccxml' : not found Checking boost includes : ok Checking boost libs : ok Checking for boost linkage : ok Checking for click location : not found Checking for program pkg-config : /opt/local/bin/pkg-config Checking for 'gtk+-2.0' >= 2.12 : yes Checking for 'libxml-2.0' >= 2.7 : yes Checking for type uint128_t : not found Checking for type __uint128_t : yes Checking high precision implementation : 128-bit integer (default) Checking for header stdint.h : yes Checking for header inttypes.h : yes Checking for header sys/inttypes.h : not found Checking for header sys/types.h : yes Checking for header sys/stat.h : yes Checking for header dirent.h : yes Checking for header stdlib.h : yes Checking for header signal.h : yes Checking for header pthread.h : yes Checking for header stdint.h : yes Checking for header inttypes.h : yes Checking for header sys/inttypes.h : not found Checking for library rt : not found Checking for header netpacket/packet.h : not found Checking for header sys/ioctl.h : yes Checking for header net/if.h : yes Checking for header net/ethernet.h : yes Checking for header linux/if_tun.h : not found Checking for header netpacket/packet.h : not found Checking for NSC location : not found Checking for program doxygen : /opt/local/bin/doxygen Checking for program tar : /usr/bin/tar Checking for program sphinx-build : /usr/local/bin/sphinx-build Checking for std::is_default_constructible : yes Checking for std::is_move_constructible : yes Checking for override specifier : yes Checking for 'libndn-cxx' : yes Traceback (most recent call last): File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Scripting.py", line 97, in waf_entry_point run_commands() File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Scripting.py", line 153, in run_commands ctx=run_command(cmd_name) File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Scripting.py", line 146, in run_command ctx.execute() File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Configure.py", line 128, in execute super(ConfigurationContext,self).execute() File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 87, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 128, in recurse user_function(self) File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/wscript", line 378, in configure conf.recurse('src') File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 128, in recurse user_function(self) File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/src/wscript", line 68, in configure conf.recurse(module, mandatory=False) File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 128, in recurse user_function(self) File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/src/ndnSIM/wscript", line 60, in configure boost_version = conf.env.BOOST_VERSION.split('_') AttributeError: 'bool' object has no attribute 'split' chenjiamingdeMacBook-Pro:ns-3 shenjiaming$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From spiros.mastorakis at gmail.com Fri Apr 24 21:35:28 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Fri, 24 Apr 2015 21:35:28 -0700 Subject: [ndnSIM] Problem about ns-3 build In-Reply-To: <18785075-7087-49D6-BDBA-F208B469B481@gmail.com> References: <18785075-7087-49D6-BDBA-F208B469B481@gmail.com> Message-ID: <5091BE04-4B23-4E1C-AE86-B7A954E2E659@gmail.com> Hi, I will make a guess: Do you have any files of the codebase, which are about to be configured and compiled, open with unsaved changes? Because this could cause such an error? If this is not the case, I would suggest that you create a new directory and make a fresh clone of ns3 and ndnSIM. Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 24, 2015, at 9:19 PM, mickey-gmail wrote: > > I tried to build the ns-3 on my Mac OS 10.10.2, I found a problem about "AttributeError: 'bool' object has no attribute ?split??. I double checked the python version ( which is 2.7 ), and gtk module( which is ok. ). I also tried to disabled python bindings, but it didn?t work. Did anyone meet this kind of problem previously and know a clue to solve it? > > Thanks. > > ? > p.s.(error-log) > chenjiamingdeMacBook-Pro:~ shenjiaming$ cd '/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/' > chenjiamingdeMacBook-Pro:ns-3 shenjiaming$ ls > AUTHORS RELEASE_NOTES examples utils waf.bat > CHANGES.html VERSION scratch utils.py wscript > LICENSE bindings src utils.pyc wutils.py > Makefile build test.py waf wutils.pyc > README doc testpy.supp waf-tools > chenjiamingdeMacBook-Pro:ns-3 shenjiaming$ ./waf configure --enable-examples > Setting top to : /Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3 > Setting out to : /Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/build > Checking for 'gcc' (c compiler) : /usr/bin/gcc > Checking for cc version : 6.1.0 > Checking for 'g++' (c++ compiler) : /usr/bin/g++ > Checking supported compiler CXXFLAGS : -std=c++0x -std=c++11 > Checking supported optimizations CXXFLAGS : -O0 > Checking supported debug CXXFLAGS : -ggdb -g3 > Checking supported warnings CXXFLAGS : -Wall -Wno-error=deprecated-declarations -fstrict-aliasing -Wstrict-aliasing > Checking for program python : /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python > Checking for python version : (2, 7, 9, 'final', 0) > Checking for library python2.7 in LIBPATH_PYEMBED : yes > Checking for program python-config : /opt/local/bin/python2.7-config > Checking for header Python.h : yes > Checking for compilation flag -fvisibility=hidden... support : ok > Checking for compilation flag -Wno-array-bounds... support : ok > Checking for pybindgen location : ../pybindgen (guessed) > Checking for python module 'pybindgen' : 0.17.0.887 > Checking for pybindgen version : 0.17.0.887 > Checking for types uint64_t and unsigned long equivalence : no > Checking for types uint64_t and unsigned long long equivalence : yes > Checking for the apidefs that can be used for Python bindings : gcc-ILP32 > Checking for internal GCC cxxabi : incomplete > Checking for python module 'pygccxml' : not found > Checking boost includes : ok > Checking boost libs : ok > Checking for boost linkage : ok > Checking for click location : not found > Checking for program pkg-config : /opt/local/bin/pkg-config > Checking for 'gtk+-2.0' >= 2.12 : yes > Checking for 'libxml-2.0' >= 2.7 : yes > Checking for type uint128_t : not found > Checking for type __uint128_t : yes > Checking high precision implementation : 128-bit integer (default) > Checking for header stdint.h : yes > Checking for header inttypes.h : yes > Checking for header sys/inttypes.h : not found > Checking for header sys/types.h : yes > Checking for header sys/stat.h : yes > Checking for header dirent.h : yes > Checking for header stdlib.h : yes > Checking for header signal.h : yes > Checking for header pthread.h : yes > Checking for header stdint.h : yes > Checking for header inttypes.h : yes > Checking for header sys/inttypes.h : not found > Checking for library rt : not found > Checking for header netpacket/packet.h : not found > Checking for header sys/ioctl.h : yes > Checking for header net/if.h : yes > Checking for header net/ethernet.h : yes > Checking for header linux/if_tun.h : not found > Checking for header netpacket/packet.h : not found > Checking for NSC location : not found > Checking for program doxygen : /opt/local/bin/doxygen > Checking for program tar : /usr/bin/tar > Checking for program sphinx-build : /usr/local/bin/sphinx-build > Checking for std::is_default_constructible : yes > Checking for std::is_move_constructible : yes > Checking for override specifier : yes > Checking for 'libndn-cxx' : yes > Traceback (most recent call last): > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Scripting.py", line 97, in waf_entry_point > run_commands() > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Scripting.py", line 153, in run_commands > ctx=run_command(cmd_name) > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Scripting.py", line 146, in run_command > ctx.execute() > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Configure.py", line 128, in execute > super(ConfigurationContext,self).execute() > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 87, in execute > self.recurse([os.path.dirname(g_module.root_path)]) > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 128, in recurse > user_function(self) > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/wscript", line 378, in configure > conf.recurse('src') > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 128, in recurse > user_function(self) > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/src/wscript", line 68, in configure > conf.recurse(module, mandatory=False) > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 128, in recurse > user_function(self) > File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/src/ndnSIM/wscript", line 60, in configure > boost_version = conf.env.BOOST_VERSION.split('_') > AttributeError: 'bool' object has no attribute 'split' > chenjiamingdeMacBook-Pro:ns-3 shenjiaming$ > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From ibrahim at internetworks.my Fri Apr 24 23:01:07 2015 From: ibrahim at internetworks.my (Ibrahim ABDULLAHI) Date: Sat, 25 Apr 2015 14:01:07 +0800 Subject: [ndnSIM] Cache module Message-ID: Hi, I am trying to get the cache module or the class that handles the caching in the typical examples in the ndnSim. I have ran all the examples in the example directory. Please where are the results of the ran simulations? How can I add my cache deployment strategies? Placement and eviction policies. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From harshadshirwadkar at gmail.com Sat Apr 25 10:28:15 2015 From: harshadshirwadkar at gmail.com (harshad shirwadkar) Date: Sat, 25 Apr 2015 13:28:15 -0400 Subject: [ndnSIM] Content Store Size In-Reply-To: References: Message-ID: Hi Alex, Spot on! I think that's perfectly what I need. Thank you very much. Best, Harshad. On Fri, Apr 24, 2015 at 11:20 PM, Alex Afanasyev wrote: > >> On Apr 23, 2015, at 9:27 PM, harshad shirwadkar wrote: >> >> Hello all, >> >> It looks like that content store size is in terms of "packets" and not >> "bytes". Does packet here refer to interest / data packet? > > Content store caches data packets, so it is always about data packets. > >> If that's >> the case, if I change data packet size, the content store capacity >> would change. Is my understanding correct? > > Capacity in terms of ?size? yes, capacity in terms of packets will not. > >> >> For my experiments, I need different packet sizes but constant content >> store sizes. Could anybody please let me know if there is a way to set >> content store size in bytes(I did not find anything online about it :( >> )? > > To make your experiment work, you would need to write a custom replacement policy that would keep track not just number of elements in the cache, but also the size in bytes that is being used. For example, this could be something like https://gist.github.com/cawka/a4b0ab073216ef7bc230 > > ? > Alex > From trade20122012 at gmail.com Sat Apr 25 17:00:28 2015 From: trade20122012 at gmail.com (Trade) Date: Sat, 25 Apr 2015 17:00:28 -0700 Subject: [ndnSIM] link failure Message-ID: <553C2A9C.804@gmail.com> Does link failure refer to only one node down or "the link down but two nodes still can transmit message to other neighbors"? Which one is the case in ns3 or ndnsim? Thanks From christian.kreuzberger at itec.aau.at Mon Apr 27 00:34:25 2015 From: christian.kreuzberger at itec.aau.at (Christian Kreuzberger) Date: Mon, 27 Apr 2015 09:34:25 +0200 Subject: [ndnSIM] link failure In-Reply-To: <553C2A9C.804@gmail.com> References: <553C2A9C.804@gmail.com> Message-ID: <008c01d080bc$9667b3d0$c3371b70$@itec.aau.at> As far as I know, Link failures are, as per the name, LINK failures, and not node failures. This means that in theory two nodes can still communicate via alternate routes. However, this behaviour depends on the forwarding strategy you use. If you are using ndnSIM 2.0 + NFD with BestRoute, you might not be able to experience this behaviour, if you use Broadcast + CalculateAllPossibleRoutes() you should see the behaviour. For examples see http://ndnsim.net/2.0/helpers.html#link-control-helper and http://ndnsim.net/2.0/examples.html#simple-scenario-with-link-failures > -----Original Message----- > From: ndnSIM [mailto:ndnsim-bounces at lists.cs.ucla.edu] On Behalf Of > Trade > Sent: Sunday, April 26, 2015 2:00 AM > To: ndnsim at lists.cs.ucla.edu > Subject: [ndnSIM] link failure > > Does link failure refer to only one node down or "the link down but two > nodes still can transmit message to other neighbors"? Which one is the case > in ns3 or ndnsim? > > Thanks > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From harshadshirwadkar at gmail.com Mon Apr 27 06:53:35 2015 From: harshadshirwadkar at gmail.com (harshad shirwadkar) Date: Mon, 27 Apr 2015 09:53:35 -0400 Subject: [ndnSIM] Chunk eviction policy Message-ID: Hello all, I want to treat multiple data packets (with common prefix) as one chunk. I want content store to evict all the items with common prefix at once. What would be the best way to achieve that? I am thinking of writing a custom eviction policy to do that. But inside the policy module I might not have access to other cached packets. Thanks, Harshad. From trade20122012 at gmail.com Mon Apr 27 12:37:17 2015 From: trade20122012 at gmail.com (Trade) Date: Mon, 27 Apr 2015 12:37:17 -0700 Subject: [ndnSIM] link failure In-Reply-To: <008c01d080bc$9667b3d0$c3371b70$@itec.aau.at> References: <553C2A9C.804@gmail.com> <008c01d080bc$9667b3d0$c3371b70$@itec.aau.at> Message-ID: <553E8FED.1020602@gmail.com> Christian, Thanks for bringing good point. I did notice there are different ways for handling link failures. In NLSR implementation as well as published paper, they use taking one node down instead of link fails. But in Ndnsim, uses the link down but two nodes still can communicate with others. One more question, in ndnsim example, both bestroute and calculateallpossible route appear in the main file, then does it account for ? On 4/27/15 12:34 AM, Christian Kreuzberger wrote: > As far as I know, Link failures are, as per the name, LINK failures, and not > node failures. > This means that in theory two nodes can still communicate via alternate > routes. > > However, this behaviour depends on the forwarding strategy you use. If you > are using ndnSIM 2.0 + NFD with BestRoute, you might not be able to > experience this behaviour, if you use Broadcast + > CalculateAllPossibleRoutes() you should see the behaviour. > > For examples see > http://ndnsim.net/2.0/helpers.html#link-control-helper > and > http://ndnsim.net/2.0/examples.html#simple-scenario-with-link-failures > > > >> -----Original Message----- >> From: ndnSIM [mailto:ndnsim-bounces at lists.cs.ucla.edu] On Behalf Of >> Trade >> Sent: Sunday, April 26, 2015 2:00 AM >> To: ndnsim at lists.cs.ucla.edu >> Subject: [ndnSIM] link failure >> >> Does link failure refer to only one node down or "the link down but two >> nodes still can transmit message to other neighbors"? Which one is the > case >> in ns3 or ndnsim? >> >> Thanks >> >> _______________________________________________ >> ndnSIM mailing list >> ndnSIM at lists.cs.ucla.edu >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Mon Apr 27 23:18:00 2015 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Tue, 28 Apr 2015 14:18:00 +0800 Subject: [ndnSIM] link failure In-Reply-To: <553E8FED.1020602@gmail.com> References: <553C2A9C.804@gmail.com> <008c01d080bc$9667b3d0$c3371b70$@itec.aau.at> <553E8FED.1020602@gmail.com> Message-ID: > On Apr 28, 2015, at 3:37 AM, Trade wrote: > > Christian, > Thanks for bringing good point. I did notice there are different ways for handling link failures. > In NLSR implementation as well as published paper, they use taking one node down > instead of link fails. But in Ndnsim, uses the link down but two nodes still can communicate > with others. Just to add one puzzle piece to the picture: NS-3 as of yet does not support concept of removing node from the simulation environment, nor remove/physically break any specific link. That is main reason why link failures in LinkHelper are implemented as adding 100% LossError model on the link. > One more question, in ndnsim example, both bestroute and calculateallpossible route appear > in the main file, then does it account for ? Trade, I?m not sure I fully understand your question. Can you clarify what you mean? ? Alex > On 4/27/15 12:34 AM, Christian Kreuzberger wrote: >> As far as I know, Link failures are, as per the name, LINK failures, and not >> node failures. >> This means that in theory two nodes can still communicate via alternate >> routes. >> >> However, this behaviour depends on the forwarding strategy you use. If you >> are using ndnSIM 2.0 + NFD with BestRoute, you might not be able to >> experience this behaviour, if you use Broadcast + >> CalculateAllPossibleRoutes() you should see the behaviour. >> >> For examples see >> >> http://ndnsim.net/2.0/helpers.html#link-control-helper >> >> and >> >> http://ndnsim.net/2.0/examples.html#simple-scenario-with-link-failures >> >> >> >> >> >>> -----Original Message----- >>> From: ndnSIM [ >>> mailto:ndnsim-bounces at lists.cs.ucla.edu >>> ] On Behalf Of >>> Trade >>> Sent: Sunday, April 26, 2015 2:00 AM >>> To: >>> ndnsim at lists.cs.ucla.edu >>> >>> Subject: [ndnSIM] link failure >>> >>> Does link failure refer to only one node down or "the link down but two >>> nodes still can transmit message to other neighbors"? Which one is the >>> >> case >> >>> in ns3 or ndnsim? >>> >>> Thanks >>> >>> _______________________________________________ >>> ndnSIM mailing list >>> >>> ndnSIM at lists.cs.ucla.edu >>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 841 bytes Desc: Message signed with OpenPGP using GPGMail URL: From spiros.mastorakis at gmail.com Wed Apr 29 21:02:49 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Wed, 29 Apr 2015 21:02:49 -0700 Subject: [ndnSIM] Cache module In-Reply-To: References: Message-ID: Hello, I am not sure that I fully understand your question. Could you please be more specific? You are not supposed to access any of the CS related classes from the simulation scenario. The simulation scenario should simply define the desired parameters of the simulation itself. You may customize the CS behavior based on your custom policies and CS implementation: http://ndnsim.net/2.0/cs.html#old-content-store-implementations Moreover, you can use the contest store tracer to monitor the cache misses/hits: http://ndnsim.net/2.0/metric.html#content-store-trace-helper To deploy your own custom policies, your code needs to inherit the base class of the ContentStore or ContentStore implementation and to correctly define the TypeId of each implementation: https://github.com/NDN-Routing/ndnSIM/blob/master/model/cs/content-store-with-freshness.hpp#L87 https://github.com/NDN-Routing/ndnSIM/blob/master/model/cs/content-store-with-freshness.hpp#L39-L40 Hope that this helps. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 24, 2015, at 11:01 PM, Ibrahim ABDULLAHI wrote: > > Hi, > I am trying to get the cache module or the class that handles the caching in the typical examples in the ndnSim. I have ran all the examples in the example directory. > Please where are the results of the ran simulations? > How can I add my cache deployment strategies? > Placement and eviction policies. > > Thank you. > > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From spiros.mastorakis at gmail.com Wed Apr 29 21:05:02 2015 From: spiros.mastorakis at gmail.com (Spyridon (Spyros) Mastorakis) Date: Wed, 29 Apr 2015 21:05:02 -0700 Subject: [ndnSIM] Chunk eviction policy In-Reply-To: References: Message-ID: <6808BA22-9903-435A-9E35-138FB4B9239A@gmail.com> Hello, I think that you could leverage on the hierarchical structure of NDN names. That is to say, you could access and/or evict all the names that have a specific number of common name components starting from the first component. -- Spyridon (Spyros) Mastorakis Personal Website: http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD Computer Science UCLA > On Apr 27, 2015, at 6:53 AM, harshad shirwadkar wrote: > > Hello all, > > I want to treat multiple data packets (with common prefix) as one > chunk. I want content store to evict all the items with common prefix > at once. What would be the best way to achieve that? > > I am thinking of writing a custom eviction policy to do that. But > inside the policy module I might not have access to other cached > packets. > > Thanks, > Harshad. > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim