[ndnSIM] many cache scenarios

Asim ALHIMSYA asim.alhimsya at gmail.com
Fri Jun 2 16:28:05 PDT 2023


Dear Researchers,
I want to implement many cache scenarios on abilene topology, for example,
20% 40% 80% 100%.
So how can I choose 2 nodes with CS and 8 nodes without CS?
I tried :

  Ptr<Node> consumers[10] = {Names::Find<Node>("consumer0"),
Names::Find<Node>("consumer1"),
                             Names::Find<Node>("consumer2"),
 Names::Find<Node>("consumer3"),
                             Names::Find<Node>("consumer4"),
 Names::Find<Node>("consumer5"),
                             Names::Find<Node>("consumer6"),
 Names::Find<Node>("consumer7"),
                             Names::Find<Node>("consumer8"),
 Names::Find<Node>("consumer9")};

  Ptr<Node> producer = Names::Find<Node>("producer");

  for (int i = 0; i < 2; i++) {
    ndn::AppHelper consumerHelper("ns3::ndn::ConsumerZipfMandelbrot");
    consumerHelper.SetAttribute("Frequency", StringValue("100"));
    consumerHelper.SetAttribute("NumberOfContents", StringValue("10"));
    consumerHelper.SetAttribute("q", StringValue("0.5"));
    consumerHelper.SetPrefix("/prefix/" + Names::FindName(consumers[i]));
     ndnHelper.setCsSize(1000);
    consumerHelper.Install(consumers[i]);
  }
Can you guide me, please
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20230603/f41f4f63/attachment.html>


More information about the ndnSIM mailing list