[ndnSIM] 回复: Re: question for topology

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Mar 6 17:27:09 PST 2013


Hmm... I suspect it is an old feature/bug with linking on Linux.

You can try to fetch & merge with the latest update I pushed to ndnSIM-sample-topologies repo and check if it solves to the problem (https://github.com/cawka/ndnSIM-sample-topologies/commit/93b67c03051072264af90a0357b5b9fe8be6e47b). 

---
Alex

On Mar 6, 2013, at 5:05 PM, aaronishere <aaronishere at qq.com> wrote:

> Hi, Alex
>  
> root at ubuntu:/home/ndnSIM/ns-3# ./waf shell
> Waf: Entering directory `/home/ndnSIM/ns-3/build'
> Waf: Leaving directory `/home/ndnSIM/ns-3/build'
>  
> root at ubuntu:/home/ndnSIM/ndnSIM-sample-topologies# ./waf configure  --debug
> Setting top to                                                   : /home/ndnSIM/ndnSIM-sample-topologies 
> Setting out to                                                   : /home/ndnSIM/ndnSIM-sample-topologies/build 
> Checking for 'g++' (c++ compiler)                : /usr/bin/g++ 
> Checking boost includes                                : 1_50 
> Checking boost libs                                        : ok 
> Checking for boost linkage                            : ok 
> Checking for program pkg-config                : /usr/bin/pkg-config 
> Checking for pkg-config version >= '0.0.0'  : yes 
> Checking for ns3-ndnSIM                             : yes 
> Checking for ns3-core                                   : yes 
> Checking for ns3-network                            : yes 
> Checking for ns3-internet                            : yes 
> Checking for ns3-point-to-point                 : yes 
> Checking for ns3-topology-read                 : yes 
> Checking for ns3-applications                    : yes 
> Checking for ns3-mobility                          : yes 
> Checking for ns3-visualizer                        : yes 
> 'configure' finished successfully (1.079s)
> root at ubuntu:/home/ndnSIM/ndnSIM-sample-topologies# ./waf --run ndn-grid-topo-plugin --vis
> Waf: Entering directory `/home/ndnSIM/ndnSIM-sample-topologies/build'
> Waf: Leaving directory `/home/ndnSIM/ndnSIM-sample-topologies/build'
> 'build' finished successfully (0.022s)
> assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=419
> terminate called without an active exception
>  
>  
>  
>  
> Aaron
>  
> 发件人: Alex Afanasyev
> 发送时间: 2013-03-07 08:53
> 收件人: aaronishere
> 抄送: ndnsim
> 主题: Re: [ndnSIM] question for topology
> NS-3's python bindings (e.g., visualizer) are not very user friendly and require quite a bit magic.
> 
> The simplest way, just before running scenario, 
> 
> cd /home/ndnSIM/
> ./waf shell
> cd /home/ndnSIM/ndnSIM-sample-topologies
> ./waf --run ndn-grid-topo-plugin --vis
> 
> (or with LD_LIBRARY_PATH, but I don't think it's necessary)
> 
> If it still not working, check again what ./waf configure in /home/ndnSIM/ndnSIM-sample-topologies is telling.  Does it complain about visualizer or it shows "yes"?
> 
> ---
> Alex
> 
> On Mar 6, 2013, at 4:48 PM, aaronishere <aaronishere at qq.com> wrote:
> 
>> Hi, Alex
>> Sorry to bother you again
>> I'm still not clear about how to use the topology
>> I copied the ndn-grid-topo-plugin under the file ..../ndnSIM-sample-topologies/scenario and changed it like below :
>>  
>> int
>> main (int argc, char *argv[])
>> {
>>   ......
>>   RocketfuelWeightsReader  topologyReader ("", 25);
>>   topologyReader.SetFileName ("topologies/bw-delay-rand-1/1221.r0-conv-annotated.txt");
>>   topologyReader.Read ();
>>   ......
>>   // Getting containers for the consumer/producer
>>   Ptr<Node> producer = Names::Find<Node> ("bb-781");
>>   NodeContainer consumerNodes;
>>   consumerNodes.Add (Names::Find<Node> ("leaf-4349"));
>>  ......
>> }
>>  
>> but typed LD_LIBRARY_PATH=/usr/local/lib ./waf --run ndn-grid-topo-plugin --vis , it showed
>>  
>> Waf: Entering directory `/home/ndnSIM/ndnSIM-sample-topologies/build'
>> Waf: Leaving directory `/home/ndnSIM/ndnSIM-sample-topologies/build'
>> 'build' finished successfully (0.024s)
>> assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=419
>> terminate called without an active exception
>>  
>> Thanks a lot! 
>>  
>> Aaron
>> _______________________________________________
>> 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/20130306/d93fcd11/attachment.html>


More information about the ndnSIM mailing list