<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"Pr\00E9format\00E9 HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.PrformatHTMLCar
{mso-style-name:"Pr\00E9format\00E9 HTML Car";
mso-style-priority:99;
mso-style-link:"Pr\00E9format\00E9 HTML";
font-family:"Courier New";
mso-fareast-language:FR;}
span.m-625098332214757845n
{mso-style-name:m_-625098332214757845n;}
span.m-625098332214757845o
{mso-style-name:m_-625098332214757845o;}
span.m-625098332214757845p
{mso-style-name:m_-625098332214757845p;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi everyone,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'>It’s my first time using ndnSIM and i tried to create this topology :<o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>But that’s not work, </span><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>Could you tell me what’s wrong in my code</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># /----\</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># +=>|Rtr2 |<=+</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># / \----/ \</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># / \</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># / \</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># /---\ /----\<=+ +=>/----\ /---\</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># |Src1 |<------->|Rtr1 | |Rtr4 |<------->|Dst1 |</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># \---/ \----/<=+ +=>\----/ \---/</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># \ /</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># \ /</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># \ /----\ /</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># +=>|Rtr3 |<=+</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'># \----/</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'>I create asmaa.example.txt<o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'>in src/ndnSIM/examples/topologies/asmaa-example.txt<o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;background:white;mso-fareast-language:FR'># asmaa-example.txt</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><br><br><span style='background:white'>router</span><br><br><span style='background:white'># node comment yPos xPos</span><br><span style='background:white'>Src1 NA 2 1</span><br><span style='background:white'>Rtr1 NA 2 3</span><br><span style='background:white'>Rtr2 NA 2 4</span><br><span style='background:white'>Rtr3 NA 1 4</span><br><span style='background:white'>Rtr4 NA 2 5</span><br><span style='background:white'>Dst1 NA 2 7</span><br><br><span style='background:white'>link</span><br><br><span style='background:white'># srcNode dstNode bandwidth metric delay queue</span><br><span style='background:white'>Src1 Rtr1 10Mbps 1 10ms 20</span><br><span style='background:white'>Rtr1 Rtr3 1Mbps 1 10ms 20</span><br><span style='background:white'>Rtr1 Rtr2 1Mbps 1 10ms 20</span><br><span style='background:white'>Rtr2 Rtr4 1Mbps 1 10ms 20</span><br><span style='background:white'>Rtr3 Rtr4 1Mbps 1 10ms 20</span><br><span style='background:white'>Rtr4 Dst1 10Mbps 1 10ms 20</span><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'>Ans the code in scratch folder. This is my code :<o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>#include "ns3/core-module.h"</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>#include "ns3/network-module.h"</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>#include "ns3/ndnSIM-module.h"</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>namespace ns3{</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>int</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>main(int argc, char* argv[])</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>{</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> CommandLine cmd;</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> cmd.Parse(argc, argv);</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>AnnotatedTopologyReader topologyReader(" ", 25);</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>topologyReader.SetFileName("src/ndnSIM/examples/topologies/asmaa-example.txt");</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>topologyReader.Read();</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>//install NDN stack on all nodes</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>ndn::StackHelper ndnHelper;</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>ndnHelper.InstallAll();</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>ndnHelper.SetDefaultRoutes (false);</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>// Set BestRoute strategy</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>ndn::StrategyChoiceHelper::InstallAll("/","/localhost/nfd/strategy/best-route");</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>//Installing global routing interface on all nodes</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>ndn::GlobalRoutingHelper ndnGlobalRoutingHelper;</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>ndnGlobalRoutingHelper.InstallAll();</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>//Getting containers for the consumer/producer</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>Ptr<Node> producer = Names::Find<Node>("Dst1");</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>NodeContainer consumerNode;</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>consumerNode.Add(Names::Find<Node>("Src1");</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>//Install NDN applications</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>std::string prefix = "/prefix";</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>consumerHelper.SetPrefix(prefix);</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>consumerHelper.SetAttribute("Frequency", StringValue("100"));</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>consumerHelper.Install(consumerNode);</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>ndn::AppHelper producerHelper("ns3::ndn::Producer");</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>producerHelper.SetPrefix(prefix);</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>producerHelper.SetAttribute("PayloadSize", StringValue("1024");</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>producerHelper.Install(producer);</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>//Add /prefix origins to ndn::GlobalRouter</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>ndnGlobalRoutingHelper.AddOrigins(prefix, producer);</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>//calculate and install FIBs</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>ndn::GlobalRoutingHelper::CalculateRoutes();</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>Simulator::Stop(seconds(20.0));</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>Simulator::Run();</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>Simulator::Destroy();</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>return 0;</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>}</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>} //namespace ns3</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>int</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>main(int argc, char* argv[])</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>{</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>return ns3::main(argc, argv);</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'>}</span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'> </span><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'>I used this command for simulation :<o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> ./waf –run ndn-example<o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'>But that’s not work and i tried with :<o:p></o:p></span></p><p class=MsoNormal style='line-height:13.2pt;background:#EEFFCC'><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>NS_LOG</span><span style='font-size:10.0pt;font-family:"Courier New";color:#666666;mso-fareast-language:FR'>=</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>ndn</span><span style='font-size:10.0pt;font-family:"Courier New";color:#666666;mso-fareast-language:FR'>.</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>Consumer:ndn</span><span style='font-size:10.0pt;font-family:"Courier New";color:#666666;mso-fareast-language:FR'>.</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>Producer </span><span style='font-size:10.0pt;font-family:"Courier New";color:#666666;mso-fareast-language:FR'>./</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>waf </span><span style='font-size:10.0pt;font-family:"Courier New";color:#666666;mso-fareast-language:FR'>--</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>run</span><span style='font-size:10.0pt;font-family:"Courier New";color:#666666;mso-fareast-language:FR'>=</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>ndn</span><span style='font-size:10.0pt;font-family:"Courier New";color:#666666;mso-fareast-language:FR'>-</span><span style='font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>example</span><span style='font-size:10.0pt;font-family:"Courier New";color:#222222;mso-fareast-language:FR'><o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'>It’s give me as message :<o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'>Program ‘ndn-example ‘ not found ; available program are …..<o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'>Thank you<o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'> <o:p></o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:9.5pt;font-family:"Arial","sans-serif";color:#222222;mso-fareast-language:FR'>Kind Regards,<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Asmaa<o:p></o:p></p></div></body></html>