[ndnSIM] 回复: Re: question for topology

aaronishere aaronishere at qq.com
Thu Mar 7 18:38:55 PST 2013


Hi, Alex 

It works! Thanks a lot!!! So kind of you!!!  Really Nice!!!  : )




Aaron

发件人: Alex Afanasyev
发送时间: 2013-03-08 06:15
收件人: aaronishere
抄送: ndnsim
主题: Re: [ndnSIM] question for topology
Hi Aaron,


I have updated scenario repo, ndnSIM repo, and README instructions.  In my Ubuntu 12.10 (with stock boost 1.49), everything worked, including the visualizer.
mkdir ns-dev
cd ns-dev

git clone git://github.com/cawka/ns-3-dev-ndnSIM.git -b ns-3.16-ndnSIM ns-3
git clone git://github.com/cawka/pybindgen.git pybindgen
git clone git://github.com/NDN-Routing/ndnSIM.git -b v0.2.7 ns-3/src/ndnSIM

git clone git://github.com/cawka/ndnSIM-sample-topologies.git ndnSIM-sample-topologies

cd ns-3
../waf configure -d optimized
../waf
sudo ./waf install
../waf shell
cd .../ndnSIM-sample-topologies
PKG_LIBRARY_PATH=/usr/local/lib NS_VIS_ASSIGN=1 ./waf --run example --vis


---
Alex


On Mar 6, 2013, at 10:02 PM, aaronishere <aaronishere at qq.com> wrote:


VMware 9.0.1 with Ubuntu 12.10 boost 1.50
Thanks a lot!





aaronishere

发件人: Alex Afanasyev
发送时间: 2013-03-07 12:38
收件人: aaronishere
主题: Re: [ndnSIM] question for topology
I'm going to try to reproduce the problem. Are you using ubuntu, if yes then which version?


---
Alex


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



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.024s)
build/ndn-grid-topo-plugin: error while loading shared libraries: libns3-dev-network-debug.so: cannot open shared object file: No such file or directory

root at ubuntu:/home/ndnSIM/ndnSIM-sample-topologies# LD_LIBRARY_PATH=/usr/local/lib ./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.024s)

but there's no visualizer  showed.




Aaron

发件人: Alex Afanasyev
发送时间: 2013-03-07 09:27
收件人: aaronishere
抄送: ndnsim
主题: Re: [ndnSIM] 回复: Re: question for topology
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


_______________________________________________
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/20130308/01c4d76e/attachment.html>


More information about the ndnSIM mailing list