[ndnSIM] question for topology
Alex Afanasyev
alexander.afanasyev at ucla.edu
Wed Mar 6 16:53:54 PST 2013
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/20130306/c37b7213/attachment.html>
More information about the ndnSIM
mailing list