[ndnSIM] how to ndnSIM on a wifi node

zjzhou62 at mail.ustc.edu.cn zjzhou62 at mail.ustc.edu.cn
Sun Apr 27 19:36:14 PDT 2014


Hi,
I know ndnSIM can run top of any available link-layer protocol model. I think it MUST be implemented on a wifi node.  In my simulation, I want to manually configure FIB between a wifi node and AP node, like ndn::StackHelper::AddRoute ("Node0", "/data","Node1", 1) and the Node0  is a wifi node.  The packet cannot be forwarded. I see the definition of the function AddRoute. I found that the AddRoute just support point to point module.  Evidently, Now I don't know what I should do in the next step. Can you please give me some hints how to configure FIB routes between  a wifi node with a common node or between two wifi nodes
thank you!
Zijian Zhou



> -----Original E-mail-----
> From: ndnsim-request at lists.cs.ucla.edu
> Sent Time: 2014-4-28 0:41:03
> To: ndnsim at lists.cs.ucla.edu
> Cc: 
> Subject: ndnSIM Digest, Vol 17, Issue 14
> 
> Send ndnSIM mailing list submissions to
> 	ndnsim at lists.cs.ucla.edu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> or, via email, send a message with subject or body 'help' to
> 	ndnsim-request at lists.cs.ucla.edu
> 
> You can reach the person managing the list at
> 	ndnsim-owner at lists.cs.ucla.edu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ndnSIM digest..."
> 
> 
> Today's Topics:
> 
>    1. Unexpected increase in RTT (Azar Fazel)
>    2. a bug in the ndnSIM source code (Zongyi Zhao)
>    3. Re: Need a solution (SHIVANGI GAUTAM)
>    4. Re: a bug in the ndnSIM source code (Ilya Moiseenko)
>    5. Re: Need a solution (Ilya Moiseenko)
>    6. Re: Control messages (narjes aloulou)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 25 Apr 2014 16:56:48 -0700
> From: Azar Fazel <azarmehr65 at gmail.com>
> To: Alex Afanasyev <alexander.afanasyev at ucla.edu>,
> 	ndnsim at lists.cs.ucla.edu
> Subject: [ndnSIM] Unexpected increase in RTT
> Message-ID:
> 	<CAEm6mudcX_GhVWOswGEPSP_FGFR0YreQORXHCHd6Gpz1Wc9zpQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi Alex
> 
> I'm running this simple scenario: there are 3 nodes, one consumer, one
> producer and one router ( same as simple scenario in the Example page)
>  they are connected together using p2p links with the bandwidth of 1Mbps
> and the maxPacket of 10000. The consumer is sending interests to the
> producer with the frequency of "1" ( 1 interest a second).
> I have a database of prefixes which consists of 1000 prefixes. In a loop (
> 1000 times) each time the consumer randomly selects one of these prefixes
> and requests it.
> 
> I have populated the RTT for each Interest by using "AppDelayTracer" and
> run the simulation for 200 seconds.
> 
> But the delays that AppDelayTracer  shows are increasing along with the
> time of simulation ( they starts with 0.017 us and at the end it is about
> 50 us). I tired to change the value of "maxPacket", but the issue still
> exists.
> 
> Can you please give me some hint how can I interpret this growth of RTTs?
> 
> Thanks
> Azar
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20140425/549a7591/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Sun, 27 Apr 2014 10:34:07 +0800
> From: Zongyi Zhao <xinshengzzy at gmail.com>
> To: ndnSIM <ndnsim at lists.cs.ucla.edu>
> Subject: [ndnSIM] a bug in the ndnSIM source code
> Message-ID: <535C6C9F.9060008 at gmail.com>
> Content-Type: text/plain; charset=windows-1252; format=flowed
> 
> Hi, all,
> I have just installed the ndnSIM in my ubuntu. In the process I have 
> encountered some difficulty. Fortunately I have solved most of them. So 
> here I want to report my discovery about the bug in the source code of 
> ndnSIM.
> When I executed the flowing command:
> ./waf configure --boost-includes=/usr/local/include 
> --boost-libs=/usr/local/lib --enable-examples
> ./waf
> The compiler told me the flowing message:
> 
> "../src/ndnSIM/helper/ndn-global-routing-helper.cc: In static member 
> function ?static void ns3::ndn::GlobalRoutingHelper::CalculateRoutes(bool)?:
> ../src/ndnSIM/helper/ndn-global-routing-helper.cc:248:68: error: typedef 
> ?vertex_descriptor? locally defined but not used 
> [-Werror=unused-local-typedefs]
> typedef graph_traits < NdnGlobalRouterGraph >::vertex_descriptor 
> vertex_descriptor;
> ^
> ../src/ndnSIM/helper/ndn-global-routing-helper.cc: In static member 
> function ?static void 
> ns3::ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes(bool)?:
> ../src/ndnSIM/helper/ndn-global-routing-helper.cc:341:68: error: typedef 
> ?vertex_descriptor? locally defined but not used 
> [-Werror=unused-local-typedefs]
> typedef graph_traits < NdnGlobalRouterGraph >::vertex_descriptor 
> vertex_descriptor;"
> 
> So I commented out the line 248 and line 341 in file 
> /src/ndnSIM/helper/ndn-global-routing-helper.cc, then it worked well.
> 
> -- 
> Zongyi Zhao
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Sun, 27 Apr 2014 11:57:38 +0800 (SGT)
> From: SHIVANGI GAUTAM <shivangi_gautam_28 at yahoo.co.in>
> To: "ndnsim at lists.cs.ucla.edu" <ndnsim at lists.cs.ucla.edu>
> Subject: Re: [ndnSIM] Need a solution
> Message-ID:
> 	<1398571058.56043.YahooMailNeo at web193504.mail.sg3.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Please help If you want program I can attach it
> 
> On Friday, 25 April 2014 2:03 PM, SHIVANGI GAUTAM <shivangi_gautam_28 at yahoo.co.in> wrote:
>  
> Hi Everyone
> While running basic example of ndnSIM metrics on tree topology as mentioned in the same I made certain changes like adding content store to LRU ?and setting forwarding strategies to Best Route and then Flooding but when I saw the Rate.txt and Aggregate.txt ?no changes I was able to notice .Can anyone tell me why it was like that???
> 
> 
> 
> With Regards
> Shivangi Gautam
> GGSIPU
> India ?
> _______________________________________________
> 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: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20140427/8f4b7ba2/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 4
> Date: Sun, 27 Apr 2014 11:25:21 -0400
> From: Ilya Moiseenko <iliamo at ucla.edu>
> To: Zongyi Zhao <xinshengzzy at gmail.com>
> Cc: ndnSIM <ndnsim at lists.cs.ucla.edu>
> Subject: Re: [ndnSIM] a bug in the ndnSIM source code
> Message-ID: <B226F9D7-EE83-47E3-9B19-4E694456FA12 at ucla.edu>
> Content-Type: text/plain; charset=windows-1252
> 
> Hi Zonguy,
> what version of Boost is installed on your ubuntu?
> 
> Thanks for feedback
> Ilya
> 
> On Apr 26, 2014, at 10:34 PM, Zongyi Zhao <xinshengzzy at gmail.com> wrote:
> 
> > Hi, all,
> > I have just installed the ndnSIM in my ubuntu. In the process I have encountered some difficulty. Fortunately I have solved most of them. So here I want to report my discovery about the bug in the source code of ndnSIM.
> > When I executed the flowing command:
> > ./waf configure --boost-includes=/usr/local/include --boost-libs=/usr/local/lib --enable-examples
> > ./waf
> > The compiler told me the flowing message:
> > 
> > "../src/ndnSIM/helper/ndn-global-routing-helper.cc: In static member function ?static void ns3::ndn::GlobalRoutingHelper::CalculateRoutes(bool)?:
> > ../src/ndnSIM/helper/ndn-global-routing-helper.cc:248:68: error: typedef ?vertex_descriptor? locally defined but not used [-Werror=unused-local-typedefs]
> > typedef graph_traits < NdnGlobalRouterGraph >::vertex_descriptor vertex_descriptor;
> > ^
> > ../src/ndnSIM/helper/ndn-global-routing-helper.cc: In static member function ?static void ns3::ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes(bool)?:
> > ../src/ndnSIM/helper/ndn-global-routing-helper.cc:341:68: error: typedef ?vertex_descriptor? locally defined but not used [-Werror=unused-local-typedefs]
> > typedef graph_traits < NdnGlobalRouterGraph >::vertex_descriptor vertex_descriptor;"
> > 
> > So I commented out the line 248 and line 341 in file /src/ndnSIM/helper/ndn-global-routing-helper.cc, then it worked well.
> > 
> > -- 
> > Zongyi Zhao
> > 
> > _______________________________________________
> > ndnSIM mailing list
> > ndnSIM at lists.cs.ucla.edu
> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> 
> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Sun, 27 Apr 2014 11:26:56 -0400
> From: Ilya Moiseenko <iliamo at ucla.edu>
> To: SHIVANGI GAUTAM <shivangi_gautam_28 at yahoo.co.in>
> Cc: "ndnsim at lists.cs.ucla.edu" <ndnsim at lists.cs.ucla.edu>
> Subject: Re: [ndnSIM] Need a solution
> Message-ID: <6AD10C9C-151A-4E27-890F-049F7098470D at ucla.edu>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Yes, source file would probably help to understand.
> 
> Ilya
> 
> On Apr 26, 2014, at 11:57 PM, SHIVANGI GAUTAM <shivangi_gautam_28 at yahoo.co.in> wrote:
> 
> > Please help If you want program I can attach it
> > On Friday, 25 April 2014 2:03 PM, SHIVANGI GAUTAM <shivangi_gautam_28 at yahoo.co.in> wrote:
> > Hi Everyone
> > While running basic example of ndnSIM metrics on tree topology as mentioned in the same I made certain changes like adding content store to LRU  and setting forwarding strategies to Best Route and then Flooding but when I saw the Rate.txt and Aggregate.txt  no changes I was able to notice .Can anyone tell me why it was like that???
> > 
> > 
> > 
> > With Regards
> > Shivangi Gautam
> > GGSIPU
> > India  
> > 
> > _______________________________________________
> > 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: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20140427/8c0b53dd/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 6
> Date: Sun, 27 Apr 2014 17:40:53 +0100 (BST)
> From: narjes aloulou <aloulounarjes at yahoo.fr>
> To: Alex Afanasyev <alexander.afanasyev at ucla.edu>
> Cc: "ndnsim at lists.cs.ucla.edu" <ndnsim at lists.cs.ucla.edu>
> Subject: Re: [ndnSIM] Control messages
> Message-ID:
> 	<1398616853.61686.YahooMailNeo at web172106.mail.ir2.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Thanks for your Help Alex.
> Le Vendredi 25 avril 2014 18h16, Alex Afanasyev <alexander.afanasyev at ucla.edu> a ?crit :
>  
> Hi Narjes,
> 
> If you go with Wassim suggestion, then you don't need to do any modifications to the wire format (in wire/ndnsim.cc). ?You would only need to add your new header to the "payload" of Interest and Data when appropriate (e.g., in consumer and producer apps). ?For Interests it is not real payload, but just to move your custom data.
> 
> ---
> Alex
> 
> 
> On Apr 25, 2014, at 7:36 AM, narjes aloulou <aloulounarjes at yahoo.fr> wrote:
> 
> 
> >Hi Wassim, Alex and All,
> >
> >
> >Thanks Wassim for your response.
> >In this case, I don't need to define a new class for my packet (as interest and data) just I must add the header definition in wire/ndnsim.cc?and wire/ndnsim.h??
> >
> >
> >Best Regards
> >Le Jeudi 24 avril 2014 10h09, Wassim Drira <drirawassim+ndnsim at gmail.com> a ?crit :
> >
> >Hi Narjes,
> >
> >
> >You can implement your own header and send it in Data or Interest packets.
> >
> >
> >http://netdb.cis.upenn.edu/rapidnet/doxygen/html/packet-header-trailer.html
> >
> >
> >http://www.nsnam.org/wiki/HOWTO_create_a_new_type_of_protocol_header_or_trailer
> >
> >
> >Regards,?
> >
> >
> >
> >On Thu, Apr 24, 2014 at 11:36 AM, narjes aloulou?<aloulounarjes at yahoo.fr>?wrote:
> >
> >Hi Alex and All,
> >>
> >>
> >>I want to define new control messages in order to send them in my new forwarding strategy.? What are the steps to define them?
> >>
> >>
> >>Thanks
> >>
> >>
> >>
> >>Best Regards
> >>_______________________________________________
> >>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: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20140427/cb804dc2/attachment.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> 
> 
> ------------------------------
> 
> End of ndnSIM Digest, Vol 17, Issue 14
> **************************************



--
祝您工作顺利,笑口常开!
周子健  Zijian Zhou
Email:zjzhou62 at mail.ustc.edu.cn
Mobile:13739258780





More information about the ndnSIM mailing list