[ndnSIM] How to connect NDN with Internet in ndnSIM

王绍节 wsjie_happy at 163.com
Thu Aug 15 23:02:48 PDT 2013


Dear Sir,


There is always a problem makes me very confused: how can I connect a network using NDN stack with a network using Internet stack in the ndnSIM? What functions should I use, I can't find a proper one.
I don't know whether am I right to ask you, but I couldn't find anyone else for help. Would you please give me a hand? 
I'm looking forward to your answer! Thank you so much!


Yours sincerely,


Shaojie.Wang


Beijing China












At 2013-08-14 01:13:38,ndnsim-request at lists.cs.ucla.edu wrote:
>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. Re: Compiling Errors (Alex Afanasyev)
>   2. something confuse about ndnSim (jackwee_yao at sina.cn)
>   3. About "ndnSIM format " and " ccnb format" (seugxj)
>   4. Re: About "ndnSIM format " and " ccnb format" (Alex Afanasyev)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Fri, 9 Aug 2013 17:56:22 -0700
>From: Alex Afanasyev <alexander.afanasyev at ucla.edu>
>To: Ravi Ravindran <ravi.ravindran at gmail.com>
>Cc: ndnsim at lists.cs.ucla.edu
>Subject: Re: [ndnSIM] Compiling Errors
>Message-ID: <E0D8092B-B356-4FF8-A783-DC9FECE9F5F5 at ucla.edu>
>Content-Type: text/plain; charset="windows-1252"
>
>Hi Ravi,
>
>The error message indicates that you're still using the system's version of boost libraries (if you're on Ubuntu 12.04, it can be 1.46, 1.48, or both... which make things even more confusing).
>
>Did you use "--boost-includes=/usr/local/include --boost-libs=/usr/local/lib" configure options?
>
>In any case, I can recommend you to get the latest version of ndnSIM (master branch, it is almost ready to be 0.5-rc2), as well as latest version of custom NS-3.
>
>---
>Alex
>
>On Aug 9, 2013, at 5:51 PM, Ravi Ravindran <ravi.ravindran at gmail.com> wrote:
>
>> 
>> Hi Alex,
>> 
>> I've problem compiling ndnSIM, see below for the errors. Seems to be issue with libboost installation, I tried the "apt-get" and also manual installation of  1.52 package, but the problem remains. Current environment has a 1.48 libboost version, the ndnSIM is the latest version 0.2.8, also attached is the config.log.
>> 
>> Any suggestions ?
>> 
>> [1247/1925] cxx: build/src/flow-monitor/bindings/ns3module.cc -> build/src/flow-monitor/bindings/ns3module.cc.7.o
>> [1248/1925] cxx: src/internet/model/ipv6.cc -> build/src/internet/model/ipv6.cc.1.o
>> In file included from /usr/local/include/boost/unordered/detail/equivalent.hpp:14:0,
>>                  from /usr/local/include/boost/unordered/unordered_set.hpp:17,
>>                  from /usr/local/include/boost/unordered_set.hpp:16,
>>                  from /usr/local/include/boost/graph/adjacency_list.hpp:21,
>>                  from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.h:32,
>>                  from ../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc:24:
>> /usr/local/include/boost/unordered/detail/table.hpp:173:46: error: wrong number of template arguments (2, should be 1)
>> /usr/local/include/boost/unordered/detail/buckets.hpp:40:37: error: provided for ?template<class Node> struct boost::unordered::iterator_detail::iterator?
>> /usr/local/include/boost/unordered/detail/table.hpp:175:68: error: wrong number of template arguments (3, should be 2)
>> /usr/local/include/boost/unordered/detail/buckets.hpp:41:64: error: provided for ?template<class Node, class ConstNodePointer> struct boost::unordered::iterator_detail::c_iterator?
>> /usr/local/include/boost/unordered/detail/table.hpp:177:56: error: wrong number of template arguments (3, should be 2)
>> /usr/local/include/boost/unordered/detail/buckets.hpp:42:54: error: provided for ?template<class Node, class Policy> struct boost::unordered::iterator_detail::l_iterator?
>> /usr/local/include/boost/unordered/detail/table.hpp:179:77: error: wrong number of template arguments (4, should be 3)
>> /usr/local/include/boost/unordered/detail/buckets.hpp:44:16: error: provided for ?template<class Node, class ConstNodePointer, class Policy> struct boost::unordered::iterator_detail::cl_iterator?
>> /usr/local/include/boost/unordered/detail/table.hpp: In member function ?std::size_t boost::unordered::detail::table<Types>::bucket_size(std::size_t) const?:
>> /usr/local/include/boost/unordered/detail/table.hpp:263:21: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table<Types>::iterator {aka int}?
>> /usr/local/include/boost/unordered/detail/table.hpp:266:22: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table<Types>::iterator {aka int}?
>> /usr/local/include/boost/unordered/detail/table.hpp:267:43: error: request for member ?node_? in ?it?, which is of non-class type ?boost::unordered::detail::table<Types>::iterator {aka int}?
>> /usr/local/include/boost/unordered/detail/table.hpp: In member function ?void boost::unordered::detail::table<Types>::delete_node(boost::unordered::detail::table<Types>::c_iterator)?:
>> /usr/local/include/boost/unordered/detail/table.hpp:506:19: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table<Types>::c_iterator {aka int}?
>> /usr/local/include/boost/unordered/detail/table.hpp:508:41: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table<Types>::c_iterator {aka int}?
>> /usr/local/include/boost/unordered/detail/table.hpp:509:63: error: request for member ?node_? in ?n?, which is of non-class type ?boost::unordered::detail::table<Types>::c_iterator {aka int}?
>> /usr/local/include/boost/unordered/detail/table.hpp: In member function ?boost::unordered::detail::table<Types>::iterator boost::unordered::detail::table<Types>::find_matching_node(boost::unordered::detail::table<Types>::iterator) const?:
>> /usr/local/include/boost/unordered/detail/table.hpp:839:39: error: invalid type argument of unary ?*? (have ?boost::unordered::detail::table<Types>::iterator {aka int}?)
>> Waf: Leaving directory `/home/ravi/Documents/code/ndnSIM/ns-3/build'
>> Build failed
>>  -> task in 'ns3-ndnSIM' failed (exit status 1): 
>> 	{task 28558352: cxx rocketfuel-map-reader.cc -> rocketfuel-map-reader.cc.1.o}
>> ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-I/usr/include', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '../src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc', '-c', '-o', 'src/ndnSIM/plugins/topology/rocketfuel-map-reader.cc.1.o']
>> 
>> 
>> Regards,
>> Ravi
>> 
>> <config.log>_______________________________________________
>> 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/20130809/2ac0bcc9/attachment-0001.html>
>
>------------------------------
>
>Message: 2
>Date: Tue, 13 Aug 2013 11:05:19 +0800 
>From: <jackwee_yao at sina.cn>
>To: "ndnsim" <ndnsim at lists.cs.ucla.edu>
>Subject: [ndnSIM] something confuse about ndnSim
>Message-ID: <20130813030519.0844F730003 at webmail.sinamail.sina.com.cn>
>Content-Type: text/plain; charset="gbk"
>
>Hi Alex
>how to implement wifi simulation in ndnsim?
>for example,there is a simple example "ndn-simple.cc"
>I try to use WifiHelper instead PointToPointHelper to
>implement it.
>Any suggestion?
>And could you offer some more example about wifi in ndnsim?
>Looking forward for your reply.Thanks a lot.
>                                                yours sincerely
>                                                        jackwee
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130813/668a0eee/attachment-0001.html>
>
>------------------------------
>
>Message: 3
>Date: Tue, 13 Aug 2013 17:59:00 +0800 (CST)
>From: seugxj <seugxj2012 at 163.com>
>To: ndnsim at lists.cs.ucla.edu
>Subject: [ndnSIM] About "ndnSIM format " and " ccnb format"
>Message-ID: <74199152.1dabb.140771d423f.Coremail.seugxj2012 at 163.com>
>Content-Type: text/plain; charset="gbk"
>
> Hi Alex,
>As the following information indicated:
>       "As of now, ndnSIM supports two packet formats: ndnSIM (efficient processing) and ccnb (compatible with NDNx/CCNx). By default, ndnSIM format is used and can be switched to ccnb using global variable ndn::WireFormat:" (from here: http://redmine.named-data.net/issues/1008).
>
>I have run the "ndn-simple-with-pcap.cc" twice with commads as follows:
>             1   ./waf  --run="ndn-simple-with-pcap     ndn::WireFormat=0"   // Through this ,  I want to get the ndnSIM format 
>             2   ./waf  --run="ndn-simple-with-pcap     ndn::WireFormat=1"  // Through this , I want to get ccnb format
>
>
>but? the two reuslts files " ndn-simple-trace.pcap " are the same.  So, I was puzzled.  I don't know where is the problem. Pls, help me.
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130813/48828b4c/attachment-0001.html>
>
>------------------------------
>
>Message: 4
>Date: Tue, 13 Aug 2013 10:13:28 -0700
>From: Alex Afanasyev <alexander.afanasyev at ucla.edu>
>To: seugxj <seugxj2012 at 163.com>
>Cc: ndnsim at lists.cs.ucla.edu
>Subject: Re: [ndnSIM] About "ndnSIM format " and " ccnb format"
>Message-ID: <9E3C1C7A-FCAB-4B63-9D42-07B4A87F824E at ucla.edu>
>Content-Type: text/plain; charset="utf-8"
>
>Hi!
>
>After checking the pcap scenario I realized that there is no command line processing, so the format was basically hard-coded on line 59.  I just pushed an update, so it fixes the problem and the following should work (note, there is a small difference from the command line you tried):
>
>./waf --run "ndn-simple-with-pcap --ndn::WireFormat=0"
>
>and 
>
>./waf --run "ndn-simple-with-pcap --ndn::WireFormat=1"
>
>---
>Alex
>
>On Aug 13, 2013, at 2:59 AM, seugxj <seugxj2012 at 163.com> wrote:
>
>>  Hi Alex,
>> As the following information indicated: 
>>        "As of now, ndnSIM supports two packet formats: ndnSIM (efficient processing) and ccnb (compatible with NDNx/CCNx). By default, ndnSIM format is used and can be switched to ccnb using global variable ndn::WireFormat:" (from here: http://redmine.named-data.net/issues/1008).
>> 
>> I have run the "ndn-simple-with-pcap.cc" twice with commads as follows:
>>              1   ./waf  --run="ndn-simple-with-pcap     ndn::WireFormat=0"   // Through this ,  I want to get the ndnSIM format  
>>              2   ./waf  --run="ndn-simple-with-pcap     ndn::WireFormat=1"  // Through this , I want to get ccnb format
>> 
>> 
>> but? the two reuslts files " ndn-simple-trace.pcap " are the same.  So, I was puzzled.  I don't know where is the problem. Pls, help me.
>> 
>> 
>> _______________________________________________
>> 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/20130813/e8dfa339/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 9, Issue 6
>************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130816/9e889ad7/attachment.html>


More information about the ndnSIM mailing list