LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-18-2012, 08:52 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

# 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.
 
Old 10-18-2012, 09:35 PM   #17
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
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
 
Old 10-26-2012, 04:42 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.

.
 
Old 10-26-2012, 05:24 AM   #19
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
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
 
Old 10-26-2012, 06:24 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 19

# yum localinstall --nogpgcheck ns-tora-2.34-1.fc8.i386.rpm
Or : # rpm -Uvh ns-tora-2.34-1.fc8.i386.rpm
 
Old 10-26-2012, 03:20 PM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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
 
Old 10-26-2012, 10:30 PM   #22
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
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
 
Old 11-04-2014, 01:39 AM   #23
ridzi
LQ Newbie
 
Registered: Oct 2014
Posts: 6

Rep: Reputation: Disabled
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?
 
Old 04-30-2015, 02:27 AM   #24
najat
Member
 
Registered: Apr 2015
Posts: 58
Blog Entries: 1

Rep: Reputation: Disabled
Hello, could anyone help me to fix the problem of RS_smile code post#5
 
Old 09-03-2015, 08:19 PM   #25
saba09
LQ Newbie
 
Registered: Sep 2015
Posts: 4

Rep: Reputation: Disabled
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?
 
Old 09-04-2015, 03:34 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
Old 09-05-2015, 02:24 AM   #27
saba09
LQ Newbie
 
Registered: Sep 2015
Posts: 4

Rep: Reputation: Disabled
the tcl script is about to run but finding error in trace file( simpletrace.tr)
Attached Files
File Type: txt wireless.txt (4.9 KB, 19 views)
 
Old 09-05-2015, 05:06 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.


-
 
Old 09-07-2015, 02:43 AM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@ saba09 : Your other question(s) ...
. http://www.linuxquestions.org/questi...199/page3.html
. http://www.linuxquestions.org/questi...801/page2.html
.. Please do not ask off topic questions in a thread by another member :
http://www.linuxquestions.org/linux/rules.html
\\\When posting in an existing thread, ensure that what you're posting is on-topic and relevant to the thread.\\\


.... So please start a new "saba09" thread :
http://www.linuxquestions.org/questi...ux-software-2/ >>> `New Thread'


-
 
Old 01-20-2017, 10:05 AM   #30
ammuammu
LQ Newbie
 
Registered: Nov 2016
Location: kerala
Posts: 1

Rep: Reputation: Disabled
crcn ns2

i have made the tcl code but trace file out05 06 07 08 is empty.crcn patched with ns2.
 
  


Reply

Tags
ns2, tora


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sir, While installing ns2.34 on fedora 16 got the error : trace/cmu-trace.cc 1327:22 jeevanpinto Linux - Newbie 2 06-28-2012 03:35 AM
nam not working ns2.33 fabe856 Linux - Software 3 04-20-2012 01:03 PM
[SOLVED] ns2 nam not working in fedora 14 mujtiba Linux - Newbie 7 05-24-2011 07:30 AM
[SOLVED] NS2 Nam Issue atb2010 Linux - Newbie 2 03-17-2011 09:52 AM
nam window is not display in ns2 pratapmeher Linux - Newbie 7 10-21-2010 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration