From emnettsadiku at gmail.com Mon Jun 2 08:02:12 2014 From: emnettsadiku at gmail.com (Emnet Tsadiku) Date: Mon, 2 Jun 2014 17:02:12 +0200 Subject: [ndnSIM] updating link cost at run time Message-ID: Hi All, i have some problem in updating the link cost: my scenario: i have source1 connected to router 1 and after 10 sec, source1 is disconnected from router1 and connected to router2. so when i change the link cost (from topology reader), say # srcNode dstNode bandwidth metric delay queue Src1 Rtr1 5Mbps 2 250ms 400 Src1 Rtr2 5Mbps 1 250ms 400 *what happens is that, for the first 10 sec src1 is not going through Rtr1, which i understand why, because, the lower value of this metric, the more preferred the face is to route Interest towards the prefix. that's why it is choosing Rtr2, after 10 sec. My goal is : From 0sec-10sec, i want src1 to send interest via Rtr1 then disconnect Rtr1 and connect to Rtr2. i also saw Alex code; https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-triangle-calculate-routes.cc but it is not working in my case as i wanted! what can i do to update the link cost, so that src1 will go through Rtr2 after 10sec. Thank for you time. Emnet Tsadiku PHD student University of Siena Italy -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.sanchez148 at gmail.com Mon Jun 2 21:37:21 2014 From: g.sanchez148 at gmail.com (=?UTF-8?B?Ry5Tw6FuY2hleg==?=) Date: Tue, 3 Jun 2014 13:37:21 +0900 Subject: [ndnSIM] Caching probability issue Message-ID: Hi all, Firstly, I'm quite new with ndnSim, so sorry if my questions may seem too obvious. I am trying to implement scenarios with caching probability, i.e. each node has a probability X to cache the content or not. As far as I know, this is done by using the following function inside the .cc scenario: *ndnHelper.SetContentStore ("ns3::ndn::cs::Probability::Lru", "CacheProbability", "1.0");* before installing the ndnHelper on the nodes. I have tried it with 2 scenarios, the tree scenario with cs tracers, and the ndn simple scenario (adding the same cs tracer). Then I check the cs tracer output (CacheHits/Misses), to see if the behaviour is as expected. In the tree scenario, it works correctly, depending on the probability, we have a number or another of CacheHits, but in the ndn simple scenario, everything is missed (no CacheHits), even if probability is set to 1.0, offering the same results no matter which probability is used. The rest of the code has remained untouched. Does the simple scenario have something special that the tree one doesn't for this situation? Should I add something else in the code? Something different? Is it a bug? Thank you all for your time and help. Guillermo S?nchez -------------- next part -------------- An HTML attachment was scrubbed... URL: From fab.batta at gmail.com Fri Jun 6 10:19:22 2014 From: fab.batta at gmail.com (fabrizio saponaro) Date: Fri, 6 Jun 2014 19:19:22 +0200 Subject: [ndnSIM] ddos-interest-flooding satisfaciont based pushback Message-ID: Hi Alex, I'm using your code for the interest glooding mitigation, but I've a problem. This is a simplification of my scenario: Principal POP ----- Fake Producer | | | POP A --------- Attacker | \\ | \ \ Producer \ \ / \ Client1 ... ClientN Clients band are very low and there are some other POP connected to the Principal POP, but only POP A has the attacker. I'm using your classes, except for the Attacker and the Fake Producer. Attacker, during the entire simulation, sends a large amount of interest per second that fills the Principal POP's pit. At the end of the simulation I can see that the most download finish correctly, but during the time, pit is not empty as if there was no attack (there are a lot of entry with the prefix requiered by the attacker) . I cannot explain me why, I thought that thanks to the statistics that the node makes, the face connected to the attacker (so the face of POP A)should be enforced to refuse all the interests that come from there. Could you tell me what are the involved parameters? I'm using the satisfaction-based pushed algorithm, with a grace threshold of 0.01 and an RTT of 2 seconds, due to my settings topology needs. The other parameters have not been touched, so I'm using your exact version available on github. I also notify that printing stats on the POP A, there is something strange: -If I try to print the unsatisfiedAbs and the countAbs, I can't see all the interfaces, but only M-1, where M is the number of links connected to this node. -For the face connected to the Attacker, I see that unsatisfiedAbs = 0 and countAbs = 49.6678. I thougt should be the same values, because there are not datas for the fake interests. - Printing the announce limit, there aren't announces for the attacker prefix, but only for "good" prefix of a normal client. Best regards, Fabrizio -------------- next part -------------- An HTML attachment was scrubbed... URL: From xuxiaogeng at gmail.com Thu Jun 19 02:35:28 2014 From: xuxiaogeng at gmail.com (Xiaogeng Xu) Date: Thu, 19 Jun 2014 17:35:28 +0800 Subject: [ndnSIM] How to establish ad hoc network environment? Message-ID: <003001cf8ba1$d04bae50$70e30af0$@com> Dear all, We would like to create an ad hoc network environment using ndnSIM. As we know, the P2P mode works fine, but it creates wired connections. The WiFi mode is obviously wireless, but nodes under WiFi mode cannot forward packages. How generate ad hoc network? Best Regards, Xiaogeng XU -------------- next part -------------- An HTML attachment was scrubbed... URL: From fab.batta at gmail.com Fri Jun 20 02:00:22 2014 From: fab.batta at gmail.com (fabrizio saponaro) Date: Fri, 20 Jun 2014 11:00:22 +0200 Subject: [ndnSIM] ddos-interest-flooding satisfaciont based pushback In-Reply-To: References: Message-ID: I hope someone can help me. Fabrizio 2014-06-06 19:19 GMT+02:00 fabrizio saponaro : > Hi Alex, > I'm using your code for the interest glooding mitigation, but I've a > problem. > This is a simplification of my scenario: > > Principal POP ----- Fake Producer > | > | > | > POP A --------- Attacker > | \\ > | \ \ > Producer \ \ > / \ > Client1 ... ClientN > > Clients band are very low and there are some other POP connected to the > Principal POP, but only POP A has the attacker. > I'm using your classes, except for the Attacker and the Fake Producer. > Attacker, during the entire simulation, sends a large amount of interest > per second that fills the Principal POP's pit. > > At the end of the simulation I can see that the most download finish > correctly, but during the time, pit is not empty as if there was no > attack (there are a lot of entry with the prefix requiered by the attacker) > . > I cannot explain me why, I thought that thanks to the statistics that the > node makes, the face connected to the attacker (so the face of POP A)should > be enforced to refuse all the interests that come from there. > > Could you tell me what are the involved parameters? > I'm using the satisfaction-based pushed algorithm, with a grace threshold > of 0.01 and an RTT of 2 seconds, due to my settings topology needs. The > other parameters have not been touched, so I'm using your exact version > available on github. > > I also notify that printing stats on the POP A, there is something > strange: > -If I try to print the unsatisfiedAbs and the countAbs, I can't see all > the interfaces, but only M-1, where M is the number of links connected to > this node. > -For the face connected to the Attacker, I see that unsatisfiedAbs = 0 and > countAbs = 49.6678. I thougt should be the same values, because there are > not datas for the fake interests. > - Printing the announce limit, there aren't announces for the attacker > prefix, but only for "good" prefix of a normal client. > > Best regards, > Fabrizio > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From talbiaymen09 at gmail.com Mon Jun 23 04:06:44 2014 From: talbiaymen09 at gmail.com (talbi aymen) Date: Mon, 23 Jun 2014 12:06:44 +0100 Subject: [ndnSIM] download fle of 10 MB Message-ID: i will a scenario in that's a consumer download a file of 10MB from a producer and i dont know how i do this. i`am beginner in ndnsim thanks:) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ndn-simple-with-link-failure.cc Type: text/x-c++src Size: 3799 bytes Desc: not available URL: From g.sanchez148 at gmail.com Tue Jun 24 01:10:59 2014 From: g.sanchez148 at gmail.com (=?UTF-8?B?Ry5Tw6FuY2hleg==?=) Date: Tue, 24 Jun 2014 17:10:59 +0900 Subject: [ndnSIM] Caching probability issue In-Reply-To: References: Message-ID: The problem was already solved. The answer was the following: It is because of the consumer application, // Consumer ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerCbr");. The "ns3::ndn::ConsumerCbr" generates a series of "sequential interest packets"; for example, Consumer will request /prefix/0, /prefix/1, .... Therefore, the Consumer will never request any previously requested content object, so CacheHit is always zero. By contrast, there is more than one Consumer in tree topology. As a result, a content object that has requested by a Consumer is also requested by another Consumer, so CacheHit occurs. To see what is actually generated by Consumer while running a simulation, you can put the command below to see the log, NS_LOG=ndn.Consumer ./waf --run=ndn-simple Thanks to all. 2014-06-03 13:37 GMT+09:00 G.S?nchez : > Hi all, > > Firstly, I'm quite new with ndnSim, so sorry if my questions may seem too > obvious. > > I am trying to implement scenarios with caching probability, i.e. each > node has a probability X to cache the content or not. As far as I know, > this is done by using the following function inside the .cc scenario: > > > > *ndnHelper.SetContentStore ("ns3::ndn::cs::Probability::Lru", > "CacheProbability", "1.0");* > before installing the ndnHelper on the nodes. > > I have tried it with 2 scenarios, the tree scenario with cs tracers, and > the ndn simple scenario (adding the same cs tracer). Then I check the cs > tracer output (CacheHits/Misses), to see if the behaviour is as expected. > > In the tree scenario, it works correctly, depending on the probability, we > have a number or another of CacheHits, but in the ndn simple scenario, > everything is missed (no CacheHits), even if probability is set to 1.0, > offering the same results no matter which probability is used. The rest of > the code has remained untouched. > > Does the simple scenario have something special that the tree one doesn't > for this situation? Should I add something else in the code? Something > different? Is it a bug? > > Thank you all for your time and help. > > Guillermo S?nchez > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sarantarnoi at gmail.com Tue Jun 24 22:21:50 2014 From: sarantarnoi at gmail.com (Saran Tarnoi) Date: Wed, 25 Jun 2014 14:21:50 +0900 Subject: [ndnSIM] Missing cached item when using a probabilisty caching Message-ID: Hello Alex and All, When I use probability caching, I faced a wired thing when I checked the items cached in Content Store (CS). I found that the number of items actually cached in the CS is less than the determined CS size. This wired thing disappeared when the caching probability is 1.0. Could you give me an idea why this is happening? Note that I checked this by adding m_contentStore->Print (std::cout); in ForwardingStrategy::OnInterest (Ptr inFace, Ptr interest) of ndn-forwarding-strategy.cc. Thank you so much for your time. -- Regards, Saran Tarnoi -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Tue Jun 24 23:35:03 2014 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Tue, 24 Jun 2014 23:35:03 -0700 Subject: [ndnSIM] Missing cached item when using a probabilisty caching In-Reply-To: References: Message-ID: <30A679B7-A1B2-4793-97B0-F365E2773B17@ucla.edu> Hi Saran, What probability did you set and how long was your experiment? Could that be a factor? --- Alex > On Jun 24, 2014, at 10:21 PM, Saran Tarnoi wrote: > > Hello Alex and All, > > When I use probability caching, I faced a wired thing when I checked the items cached in Content Store (CS). I found that the number of items actually cached in the CS is less than the determined CS size. This wired thing disappeared when the caching probability is 1.0. Could you give me an idea why this is happening? > > Note that I checked this by adding > m_contentStore->Print (std::cout); > in > ForwardingStrategy::OnInterest (Ptr inFace, Ptr interest) > of ndn-forwarding-strategy.cc. > > Thank you so much for your time. > > -- > Regards, > Saran Tarnoi > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From alexander.afanasyev at ucla.edu Wed Jun 25 00:04:58 2014 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Wed, 25 Jun 2014 00:04:58 -0700 Subject: [ndnSIM] Missing cached item when using a probabilisty caching In-Reply-To: References: <30A679B7-A1B2-4793-97B0-F365E2773B17@ucla.edu> Message-ID: <3DBB721D-665D-466B-9235-F1C4512CFC5E@ucla.edu> Hi Saran, This is an artifact of policy chaining. As I understand, the way it is chained right now, lru policy kick in first and only then the random policy. What happens is that because LRU policy is admit always/evic when full, when CS reaches the capacity, the item is getting evicted after (to satisfy LRU policy confitions), after which processing is transferred to random policy. Random policy does randomized accept. Therefore, with probability (1-p) you end up with max_size-1 items. If you chain policies the other way around, then I the behavior should be different. --- Alex > On Jun 24, 2014, at 11:54 PM, Saran Tarnoi wrote: > > Hi Alex, > > Thanks for your response. > I picked up caching probability from {0.5, 1.0, 0.01} and used it along with Lru policy. The simulation time was 100,000 sec with 10 Hz of request rate. > All cases showed the same problem, that is the number of items simultaneously residing in CS = CS size - 1 most of the time during simulations. > > I observed that right after the item has been cached in CS, the number of items simultaneously residing in CS = CS size. > However, when a successive content object arrives at the node, one of items in the CS is erased, even though this content object is not cached, considering > ns3_rand_.GetValue () < probability_ in probability-policy.cc is now false. > > I am trying to under stand how you chain the probability-policy.cc, lru-policy.cc, and trie-with-policy.cc and hope that I will understand more. > > Thank so much for your time. > > -- > Saran > > > > > > > 2014-06-25 15:35 GMT+09:00 Alex Afanasyev : >> Hi Saran, >> >> What probability did you set and how long was your experiment? Could that be a factor? >> >> --- >> Alex >> >> > On Jun 24, 2014, at 10:21 PM, Saran Tarnoi wrote: >> > >> > Hello Alex and All, >> > >> > When I use probability caching, I faced a wired thing when I checked the items cached in Content Store (CS). I found that the number of items actually cached in the CS is less than the determined CS size. This wired thing disappeared when the caching probability is 1.0. Could you give me an idea why this is happening? >> > >> > Note that I checked this by adding >> > m_contentStore->Print (std::cout); >> > in >> > ForwardingStrategy::OnInterest (Ptr inFace, Ptr interest) >> > of ndn-forwarding-strategy.cc. >> > >> > Thank you so much for your time. >> > >> > -- >> > Regards, >> > Saran Tarnoi >> > _______________________________________________ >> > ndnSIM mailing list >> > ndnSIM at lists.cs.ucla.edu >> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim > > > > -- > Regards, > Saran Tarnoi > Graduate Student > Department of Informatics > The Graduate University for Advanced Studies (Sokendai) > Tokyo, Japan -------------- next part -------------- An HTML attachment was scrubbed... URL: From mamta_choudhary25 at rediffmail.com Fri Jun 27 04:53:05 2014 From: mamta_choudhary25 at rediffmail.com (mamta choudhary) Date: 27 Jun 2014 11:53:05 -0000 Subject: [ndnSIM] =?utf-8?q?Need_some_basic_help_to_run_the_interest_ddos_?= =?utf-8?q?attack_and_measures__code_in_ndn_SIM?= Message-ID: <20140627115305.22543.qmail@f4mail-235-96.rediffmail.com> I successfully installed ndnSIM and build it But i now want to run the code for ddos attack and countermeasures in interest flooding Also want to do some changes and evaluate the result I m very new to ndnSIM Please help Sent from RediffmailNG on Android -------------- next part -------------- An HTML attachment was scrubbed... URL: From matteo.virgilio at polito.it Fri Jun 27 06:17:57 2014 From: matteo.virgilio at polito.it (Matteo Virgilio) Date: Fri, 27 Jun 2014 15:17:57 +0200 Subject: [ndnSIM] Customizing PIT implementation Message-ID: <53AD6F05.7070501@polito.it> Hi all, I am looking for a fast and simple way to implement my own PIT on ndnSIM. In essence, I just want to hash names before putting them into the PIT so that they all have a fixed size. I am aware that the PIT implementation is based on templates and policies but it is not clear to me how to extend and customize the behaviour. I think having a short tutorial or a skeleton code that can be used to fully manipulate the PIT behaviour, would be helpful (probably also for others). I already customized many other parts of ndnSIM (forwarding strategy, applications, etc...) but I still miss a clear way to do this with the PIT :) Could anyone give me some hints on how to reach my goal? Thank you in advance, Matteo From mamta_choudhary25 at rediffmail.com Fri Jun 27 06:36:35 2014 From: mamta_choudhary25 at rediffmail.com (mamta choudhary) Date: 27 Jun 2014 13:36:35 -0000 Subject: [ndnSIM] =?utf-8?q?Running_the_simulation_code?= Message-ID: <20140627133635.6483.qmail@f4mail-235-118.rediffmail.com> I successfully installed ndnSIM and build it But i now want to run the code for ddos attack and countermeasures in interest flooding Also want to do some changes and evaluate the result I m very new to ndnSIM Please help Sent from RediffmailNG on Android -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.afanasyev at ucla.edu Fri Jun 27 09:14:40 2014 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 27 Jun 2014 09:14:40 -0700 Subject: [ndnSIM] Need some basic help to run the interest ddos attack and measures code in ndn SIM In-Reply-To: <20140627115305.22543.qmail@f4mail-235-96.rediffmail.com> References: <20140627115305.22543.qmail@f4mail-235-96.rediffmail.com> Message-ID: <343735C7-76AB-44FB-852D-047BD4539BCA@ucla.edu> Hi Mamta, What problems are you facing? The instructions I put here https://github.com/cawka/ndnSIM-ddos-interest-flooding should work... --- Alex On Jun 27, 2014, at 4:53 AM, mamta choudhary wrote: > I successfully installed ndnSIM and build it > But i now want to run the code for ddos attack and countermeasures in interest flooding > Also want to do some changes and evaluate the result > I m very new to ndnSIM > Please help > > > Sent from RediffmailNG on Android > Get your own FREE website, FREE domain & FREE mobile app with Company email. > Know More > > _______________________________________________ > 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 Fri Jun 27 09:31:27 2014 From: alexander.afanasyev at ucla.edu (Alex Afanasyev) Date: Fri, 27 Jun 2014 09:31:27 -0700 Subject: [ndnSIM] Customizing PIT implementation In-Reply-To: <53AD6F05.7070501@polito.it> References: <53AD6F05.7070501@polito.it> Message-ID: Hi Matteo, You can simply implement a completely new PIT, which conforms to ndn::Pit interface. You don't really need to use policies and existing implementation, if you're not really using any from this (as I understand you want to do this). --- Alex On Jun 27, 2014, at 6:17 AM, Matteo Virgilio wrote: > Hi all, > I am looking for a fast and simple way to implement my own PIT on > ndnSIM. In essence, I just want to hash names before putting them into > the PIT so that they all have a fixed size. I am aware that the PIT > implementation is based on templates and policies but it is not clear to > me how to extend and customize the behaviour. I think having a short > tutorial or a skeleton code that can be used to fully manipulate the PIT > behaviour, would be helpful (probably also for others). I already > customized many other parts of ndnSIM (forwarding strategy, > applications, etc...) but I still miss a clear way to do this with the > PIT :) > Could anyone give me some hints on how to reach my goal? > > Thank you in advance, > Matteo > _______________________________________________ > ndnSIM mailing list > ndnSIM at lists.cs.ucla.edu > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim From junaidkhanfastian at gmail.com Mon Jun 23 05:09:54 2014 From: junaidkhanfastian at gmail.com (Junaid Ahmed Khan) Date: Mon, 23 Jun 2014 12:09:54 -0000 Subject: [ndnSIM] Scripts not compiling (was: issue 10 NDN-Routing/ndnSIM on GitHub) Message-ID: Hello Alex Afsanasyev, I installed the customized version of ns-3 to use ndnSIM as per instructions on the webpage. After building using waf, i did not find the built in ?wave" module of ns-3. Therefore, I copied the wave module from the generic ns-3 installation but I am unable to build with it. I even tried to do the inverse (copy ndnSIM into the src folder) but nothing works. Kindly guide me on adding wave (used for Vehicular networks) in the customized version i.e. ndnSIM or instructions on adding ndnSIM into ns 3.20. Any response would be appreciated. Thanks. Kind Regards, Junaid Ahmed Khan +33.7.58.04.64.34