Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
10-18-2012, 08:52 AM
|
#16
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 15
Which "tora.tcl" ? Please use different names for the (3 ?) files.
! Time to edit post # 11 !
Probably delete the faulty code, and enter the correct code in [code]tags.
http://www.linuxquestions.org/questi....php?do=bbcode
Which OS are you using ? Name and version, please.
? Is ns-2.34/ patched / modified with anything else than the tora edits ?
.
Last edited by knudfl; 10-18-2012 at 09:01 AM.
|
|
|
10-18-2012, 09:35 PM
|
#17
|
LQ Newbie
Registered: Aug 2011
Posts: 26
Rep:
|
tora simulation not end
hello knudfl,
in my laptop, windows 7 was installed ,and then VMware work station was installed , in that vmware workstation fedora-8 was installed
on fedora-8 ns-allinone-2.34 was installed .
i run tora.tcl script that provided by u. it works fine for DSDV,AODV,and DSR but not for TORA. when i change the protocol name to tora , the script enters external loop ...that is the problem , i use control+c to exit from the external loop, after that 1_out.nam is run but when i use $ xgraph 1_out.tr is not run smoothly it shows error message: "problems with input data:"; even awk script is also unable to extract data from the 1_out.tr file..
u said that delete incorrect files what it means? u mean tora.tcl ?
when i i patch tora.tcl the following steps are done:
$mv tora.cc tora.old.cc
$mv tora.h tora.old.h
i modified imep.cc (line 504 ) also but still my tora.tcl enter infinite loop..
please give me step by step solution
please
regarding:
*********
N.Venkatadri
|
|
|
10-26-2012, 04:42 AM
|
#18
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 16. The old obsolete / unsupported Fedora 8 : cd ns-allinone-2.34/ && ./install
Fedora 10 ... 17 : cd ns-allinone-2.34/ && export CC=gcc34 CXX=g++34 && ./install
Fedora 8 package : ns-tora-2.34-1.fc8.i386.rpm ( 4.9 MB )
https://docs.google.com/open?id=0B7S...0tSa05zMFU1YXc
The "ipsit tora.tcl" : $ ns-tora tora.tcl : No errors, 'nam' opens OK.
.
|
|
|
10-26-2012, 05:24 AM
|
#19
|
LQ Newbie
Registered: Aug 2011
Posts: 26
Rep:
|
hai knudfl,
thank u very much for ur response ;
nam file is opened for tora tcl script but nam is not enough to plot the graph , for drawing graphs , trace files are must/
but with tora nam file is ok, but trace file it shows 'problems with input data ' - what this error indicates i dont know? please explain ; please clarify one thing : "IS IT POSSIBLE TO SIMULATE TORA IN NS-ALLINONE-2.34 "
when i search the internet most of the threads i found were " tora simulatio does not comes to end"
when i use awk script for tora : it gives "fatal error/ division by zero attempted'
and also provide clear instructions for how to install the
Fedora 8 package : ns-tora-2.34-1.fc8.i386.rpm ( 4.9 MB )
https://docs.google.com/open?id=0B7S...0tSa05zMFU1YXc
|
|
|
10-26-2012, 06:24 AM
|
#20
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 19
# yum localinstall --nogpgcheck ns-tora-2.34-1.fc8.i386.rpm
Or : # rpm -Uvh ns-tora-2.34-1.fc8.i386.rpm
|
|
|
10-26-2012, 03:20 PM
|
#21
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 19
One example using a script ( can be awk or perl etc. ) to filter 1_out.tr:
http://stuweb.ee.mtu.edu/~ljialian/C.../throughput.pl
$ perl throughput.pl 1_out.tr 1 > throughput.pl-out && xgraph throughput.pl-out
|
|
|
10-26-2012, 10:30 PM
|
#22
|
LQ Newbie
Registered: Aug 2011
Posts: 26
Rep:
|
hello knudfl,
i have awk scripts for throughput, end-to-end delay, packet delivery ratio... all these were worked fine for AODV, DSR, and DSDV
but when i use the above awk scripts for 1_out.tr it shows fatal error: "division by zero attempted"
when i use xgraph for 1_out.tr it shows error message "unknow line type 1
unknown line type 2........
problems with input data "
what is the problem?
please clarify one thing that " is there anybody who simulate tora in ns-allinone-2.34 "
please suggest ns version with which tora simulation can success?
please help me
regarding:
***************
N.Venkatadri
|
|
|
11-04-2014, 01:39 AM
|
#23
|
LQ Newbie
Registered: Oct 2014
Posts: 6
Rep:
|
can't read "Node_(10)": no such element in array
Hey,
I am also geeting same error.
Will you please tell me? How did you solve that?
|
|
|
04-30-2015, 02:27 AM
|
#24
|
Member
Registered: Apr 2015
Posts: 58
Rep:
|
Hello, could anyone help me to fix the problem of RS_smile code post#5
|
|
|
09-03-2015, 08:19 PM
|
#25
|
LQ Newbie
Registered: Sep 2015
Posts: 4
Rep:
|
empty trace file
i wrote a script that is correct and there is no error but my trace file is empty .how can i resolve this issue?
|
|
|
09-04-2015, 03:34 AM
|
#26
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Post #25, @saba09 : Welcome to LQ.
Please attach your unknown.tcl as new-name.tcl.txt
I.e. all text files must have suffix .txt in order to get attached.
Attachments : The paper clip tool in the 'Advanced Editor'.
-
|
|
1 members found this post helpful.
|
09-05-2015, 02:24 AM
|
#27
|
LQ Newbie
Registered: Sep 2015
Posts: 4
Rep:
|
the tcl script is about to run but finding error in trace file( simpletrace.tr)
|
|
|
09-05-2015, 05:06 AM
|
#28
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #27.
"wireless.txt" : Simulation files.tcl must have suffix .tcl :
To be easy recognizable. Hence new-name .tcl.txt
And : wireless is not a new name ( Read post #26.)
A new name must be a unique file name : We already have wireless.tcl .
>>> $ cd ns-2.3x/tcl/ex/
Code:
$ ls wireless*.tcl
wireless-demo-csci694.tcl wireless-pkt-demo.tcl
wireless-dsdv-newnode.tcl wireless-shadowing-test.tcl
wireless-flooding.tcl wireless-shadowing-vis-test.tcl
wireless-landmark.tcl wireless-simple-mac.tcl
wireless-mip-test.tcl wireless.tcl
wireless-mitf.tcl wireless-test.tcl
wireless-newnode-energy.tcl
And you can find a couple more wireless**.tcl in all_tcl-examples-2.tar.gz .
Is a 41.8 MB package with ~2,000 simulation files ...
https://drive.google.com/file/d/0B7S...ew?usp=sharing
.. Please compare your file with the available examples to know the difference.
.. And run the examples to get the different <out>.tr files.
-
|
|
|
01-20-2017, 10:05 AM
|
#30
|
LQ Newbie
Registered: Nov 2016
Location: kerala
Posts: 1
Rep:
|
crcn ns2
i have made the tcl code but trace file out05 06 07 08 is empty.crcn patched with ns2.
|
|
|
All times are GMT -5. The time now is 02:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|