Hello everybody,
I'm beginner in Omnet++ and in Network Simulator in general. I'm
working on a VM Virtual BOX with Ubuntu 10.10. I'm using the 4.2b1
version of Omnet++.
I try to follow this tutorial :
http://www.omnetpp.org/webdemo/ide/
in order to understand how does omnet work. I encounter different
problems doing this tuto:
1) When I create my project, I dont know if I need to choose "empty
project" or "project with src and simulation folder", I don't know if
it's important. I've tried the two and I've never arrived to get the
same project appearance that in the tuto (maybe it's because it's a
tutorial for version 4.1 and it's totally different?)
2) When the project is created, I want to create the NED file. But
there is already "package.ned" in my src folder. Do I need to use
this NED file or I must create an other one, with the same name than
the project?
3) When I edit the NED file, I can't use the "design" mode to create
the connections between 2 modules (for example source --> queue1). I
can do it editing the source code with
source.out -->
queue1.in++.
4) Then, in the INI file, is it normal that my network is called
"test1.test1" (network = lo1.lo1) (my project name is lo1). And do I
have to precise the unity of the value entered in the INI file as
second for the time?
Because I've encountered an error saying
"Error in module (queueing::Queue) lo1.queue1 (id=2) at event #3, t=0:
Error evaluating parameter `serviceTime': Cannot convert unit none to
's' (second)." (**.serviceTime=exponential(${serviceMean=1..3 step
1}))
(for example the "interArrivalTime = 0" or "Simulation time limit =
20000s" and what is the value of "Status frequency" in Cmdenv? Is it
2s as it's automatically proponed or do I put 500 or 500s as in the
tutorial?
5) In Run configurations, the tutorial show that they use "queueinglib/
queueinglib.exe" as Simulation Program. Working on ubuntu, I supposed
that I don't have to put an .exe but to choose the "opp_run" option as
executable, but maybe I need to precise an other executable choosed in
the queuinglib project as "libqueueinglib.so"...
6) Which files are supposed to get the same name as the project name
or other file name?
7) There is the result after the Run:
OMNeT++ Discrete Event Simulation (C) 1992-2010 Andras Varga, OpenSim
Ltd.
Version: 4.2b1, build: 110223-1e1fef1, edition: Academic Public
License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
Setting up Cmdenv...
Loading NED files from src: 1
Loading NED files from simulations: 1
Loading NED files from ../queueinglib: 20
Preparing for running configuration General, run #5...
Scenario: $jobs=60, $serviceMean=3, $repetition=0
Assigned runID=General-5-20110413-16:49:15-23648
Recording eventlog to file `src/results/General-5.elog'...
Setting up network `lo1.lo1'...
Initializing...
Running simulation...
** Event #1 T=0 Elapsed: 0.000s (0m 00s) 0% completed
Speed: ev/sec=0 simsec/sec=0 ev/simsec=0
Messages: created: 4 present: 4 in FES: 1
** Event #3 T=0 Elapsed: 0.018s (0m 00s) 0% completed
Speed: ev/sec=0 simsec/sec=0 ev/simsec=0
Messages: created: 6 present: 6 in FES: 2
<!> Error in module (queueing::Queue) lo1.queue1 (id=2) at event #3,
t=0: Error evaluating parameter `serviceTime': Cannot convert unit
none to 's' (second).
End.
Simulation terminated with exit code: 1
Command line: opp_run -r 5 -u Cmdenv -c General -n src:simulations:../
queueinglib -l ../queueinglib/queueinglib --record-eventlog=true src/
omnetpp.ini
Working directory: /home/laurent/Omnetpp/omnetpp-4.2b1/samples/lo1
LD_LIBRARY_PATH=/home/laurent/Omnetpp/omnetpp-4.2b1/lib::/home/laurent/
Omnetpp/omnetpp-4.2b1/samples/queueinglib:/usr/lib/jvm/java-6-openjdk/
jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/
xulrunner-addons:/usr/lib/xulrunner-addons
PATH=/home/laurent/Omnetpp/omnetpp-4.2b1/bin::/home/laurent/Omnetpp/
omnetpp-4.2b1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
sbin:/bin:/usr/X11R6/bin:/usr/local/wsnet-2.0/bin
OMNETPP_IMAGE_PATH=/home/laurent/Omnetpp/omnetpp-4.2b1/images
"
and I suppose that, because of this error, I don't have any data when
I want to analyse the results. No .sca files are created, only .vec
for each run.
I'm sorry if all these question have already been asked on this forum,
i'm also beginner in googlegroups forums, I've searched for all these
questions but haven't found anything. More, I'm french and not so good
in english, maybe that's why I haven't found what I search.
Thank you for your answers
Laurent