[ndnSIM] 回复: Re: question for topology

aaronishere aaronishere at qq.com
Wed Mar 6 17:05:48 PST 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130307/913d78e4/attachment.html>


More information about the ndnSIM mailing list