[ndnSIM] car2car example

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri Apr 19 12:12:34 PDT 2013


The ./run.py command without any options will just attempt to build graph based on data obtained from previous simulations.
To actually run simulations and then build graph, just add -s option, like this

./run.py -s figure-3-data-propagation-vs-time

---
Alex

On Apr 19, 2013, at 2:36 AM, "cheewii126 at gmail" <cheewii126 at gmail.com> wrote:

> Hi Alex,
>  
> After sloving the previous problems, I encounter a new error as follows:
> root at ubuntu:/home/sally/ndnSIM/ndnSIM-nom-rapid-car2car# ./run.py figure-3-data-propagation-vs-time
> Building graphs for the following scenarios: figure-3-data-propagation-vs-time
> Error in bzfile(input, "r") : cannot open the connection
> Calls: read.table -> bzfile
> In addition: Warning message:
> In bzfile(input, "r") :
> cannot open bzip2-ed file 'results/figure-3-data-propagation-vs-time/car-relay-jump-distance.txt.bz2', probable reason 'No such file or directory'
> Execution halted
> root at ubuntu:/home/sally/ndnSIM/ndnSIM-nom-rapid-car2car#
>  
> It seems that the program can not built the bz2 files. Is there any R-related source-bag I did not install?
>  
> Best regards~
>  
> cheewii126 at gmail
>  
> From: Alex Afanasyev
> Date: 2013-04-18 09:37
> To: Milad Mahdian
> CC: ndnsim
> Subject: Re: [ndnSIM] car2car example
> Hi Milad,
> 
> I pushed a small update of ndnSIM-nom-rapid-car2car repository.  I didn't change any code, just updated README instructions and fixed the directory structure: the scenarios and scripts assume that there is results/ and graphs/pdfs/ folders exist, but they were missing from the clone.
> 
> I also checked on my ubuntu installation and ./run.py -s figure-5-retx-count   succeeded and produced the graph.
> 
> ---
> Alex
> 
> 
> On Apr 17, 2013, at 5:43 PM, Milad Mahdian <mahdian.m at husky.neu.edu> wrote:
> 
>> Alex,
>> 
>> After running the commands, it starts building the graph and then I get this error:
>> ...
>> ./build/car-relay --run=8 --distance=170
>> ./build/car-relay --run=9 --distance=170
>> ./build/car-relay --run=10 --distance=170
>> Traceback (most recent call last):
>>   File "./run.py", line 139, in <module>
>>     fig5.run ()
>>   File "./run.py", line 74, in run
>>     self.postprocess ()
>>   File "./run.py", line 107, in postprocess
>>     f_out = open ("%s-%s.txt" % (prefix_out, subtype), "w")
>> IOError: [Errno 2] No such file or directory: 'results/figure-5-retx-count/car-relay-jump-distance.txt'
>> 
>> I have installed R and ggplot2 previously.
>> 
>> Regards,
>> Milad
>> 
>> On Wed, Apr 17, 2013 at 8:04 PM, Alex Afanasyev <alexander.afanasyev at ucla.edu> wrote:
>> Hi Milad,
>> 
>> Just run the following command, which will install the missing python library
>> 
>> sudo easy_install workerpool
>> 
>> If it complains that easy_install is not found, then just install it using:
>> 
>> sudo apt-get install python-setuptools
>> 
>> ---
>> Alex
>> 
>> On Apr 17, 2013, at 4:59 PM, Milad Mahdian <mahdian.m at husky.neu.edu> wrote:
>> 
>>> Hi Alex,
>>> 
>>> I am trying to run the car2car example. After following the instructions on :http://ndnsim.net/getting-started.html#simulating-using-ndnsim, building the scenario, and running it successfully, I get :
>>>  
>>> milad at ubuntu:~/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car$ ./waf --run car-relay
>>> Waf: Entering directory `/home/milad/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car/build'
>>> Waf: Leaving directory `/home/milad/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car/build'
>>> 'build' finished successfully (0.017s)
>>> 
>>> However, when I want it to show the results in a figure I get this error
>>> 
>>> milad at ubuntu:~/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car$ ./run.py -s figure-4-data-propagation-vs-distance
>>> Traceback (most recent call last):
>>>   File "./run.py", line 8, in <module>
>>>     import workerpool
>>> ImportError: No module named workerpool
>>> milad at ubuntu:~/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car$ ./run.py figure-5-retx-count
>>> Traceback (most recent call last):
>>>   File "./run.py", line 8, in <module>
>>>     import workerpool
>>> ImportError: No module named workerpool
>>> 
>>> And this is the waf configuration:
>>> milad at ubuntu:~/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car$ ./waf configure
>>> Setting top to                           : /home/milad/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car 
>>> Setting out to                           : /home/milad/repos/ns-3-allinone/ns-3.16/ndnSIM/ns-3/ndnSIM/car/build 
>>> Checking for 'g++' (c++ compiler)        : /usr/bin/g++ 
>>> Checking boost includes                  : 1_49 
>>> 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-wifi                      : yes 
>>> Checking for ns3-visualizer                : yes 
>>> 'configure' finished successfully (0.300s)
>>> 
>>> can you please help me solve this problem?
>>> 
>>> 
>>> Regards,
>>> Milad
>>> _______________________________________________
>>> 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/20130419/9d23dc95/attachment.html>


More information about the ndnSIM mailing list