LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-20-2012, 05:16 AM   #1
humairaafzal73
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Rep: Reputation: Disabled
trying to display throughput in CRCN GUI


hi,
i am trying to display graph of throughput in CRCN GUI. but the follwing error appears and it do not display graph. why it is happening.
[root@localhost ns-allinone-2.31]# java -jar CRCN.jar
Yeah

Routing.addAction listerner is called.
>>CMUPriQueue is selected.
/home/hafzal/ns-allinone-2.31/ns-2.31/crcn/humaira5/test2.tcl
routing
Multiradio for Routing

/home/hafzal/ns-allinone-2.31/ns-2.31/crcn/humaira5/test2.tcl is called by ns
num_nodes is set 10
Process exitValue: 1
OUTPUT> 0
Process exitValue: 0
Can't open file ITfile!
java.io.FileNotFoundException: ITfile (No such file or directory)

Please help me in this regard
 
Old 03-28-2012, 03:01 PM   #2
Susheel
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
hey humairaafzal73

even am facing the same issue.... were you able to resolve it... if yes then please share it over here
 
Old 03-29-2012, 08:32 AM   #3
humairaafzal73
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
problem solved for displaying throughput

i installed gnu plot by yum install gnuplot in superuser account. after that graph of throughput is displayed in gui of crcn.
regards
 
Old 03-05-2013, 03:39 AM   #4
harshav
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
through put graph display problem

i am working on ubuntu 12.04
i installed ns2 version 2.31
in crcn
throughput graph is not displaying
i am facing the problem as follows in terminal

num_nodes is set 10
Process exitValue: 1
OUTPUT> 0
Process exitValue: 0
Can't open file ITfile!
java.io.FileNotFoundException: ITfile (No such file or directory)
kindly help me
@harsha

Last edited by harshav; 03-05-2013 at 03:45 AM.
 
Old 03-05-2013, 05:21 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 4, @harshav : Welcome to LQ.

Some information is missing : The file name for the used tcl file,
and the command used for the simulation.

But anyway, I have the files required for the examples :
ITfile, Chanfile, Trafficfile.

→ → crcn-examples-032013.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing

Older version, examples : crcn-test-all-tcl.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing

-
 
Old 03-06-2013, 12:16 AM   #6
harshav
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
Yeah
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl
routing
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl is called by ns
Starting Simulation...
NS EXITING...
num_nodes is set 10
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
Process exitValue: 0

jTabbedPane1_stateChanged(ChangeEvent e) called.
java.io.FileNotFoundException: (No such file or directory)
-------------------------------throughput graph is not displaying------------------------
kindly,
help me..........
 
Old 03-06-2013, 12:57 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 6.

Not quite clear at all what the command is ?
Please show the full command in code tags.
http://www.linuxquestions.org/questi....php?do=bbcode


And what is "test.tcl" ? Please attach the file as test.tcl.txt :
Attachments : The 'paper clip' tool in the Advanced Editor.

-
 
Old 03-06-2013, 11:59 PM   #8
harshav
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
i am sending u my text .tcl script
set val(chan) Channel/WirelessChannel ; #Channel Type
set val(prop) Propagation/TwoRayGround ; #Radio propagation model
set val(netif) Phy/WirelessPhy ; #Network interface type
set val(ant) Antenna/OmniAntenna ; #Antenna model
set val(rp) AODV ;#Routing Protocol
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ifqlen) 50 ;# max packet in ifq
set val(mac) Mac/802_11 ;# MAC type
set val(ll) LL ;# link layer type
set val(nn) 10 ;# number of mobilenodes
set val(cp) /home/harsha/ns2/ns-allinone-2.31/ns-2.31/random.tcl ; # topology traffic file
set val(stop) 50 ;# simulation time
# ==================================================================
# Main Program
# ======================================================================


# Initialize Global Variables
set ns_ [new Simulator]
set tracefd [open /home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tr w]
$ns_ trace-all $tracefd

# set up topography object
set topo [new Topography]
$topo load_flatgrid 1000 1000

#create nam
set namtrace [open /home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.nam w]
$ns_ namtrace-all-wireless $namtrace 1000 1000

# Create God
set god_ [create-god $val(nn)]
# configure node
$ns_ node-config -adhocRouting $val(rp) -llType $val(ll) -macType $val(mac) -ifqType $val(ifq) -ifqLen $val(ifqlen) -antType $val(ant) -propType $val(prop) -phyType $val(netif) -topoInstance $topo -agentTrace ON -routerTrace ON -macTrace ON -movementTrace ON


#Configure for channels
$ns_ node-config -channelType $val(chan)

for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) set recordIfall 1
$node_($i) random-motion 0 ;# disable random motion
}


source $val(cp) ; #source topology and traffic file generated by others

# Tell nodes when the simulation ends
for {set i 0} {$i < $val(nn) } {incr i} {
$ns_ at $val(stop).0 "$node_($i) reset";
}
$ns_ at $val(stop).0002 "puts \"NS EXITING...\" ; $ns_ halt "
proc stop {} {
global ns_ tracefd
$ns_ flush-trace
close $tracefd
exec nam /home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.nam &
exit 0
}
puts "Starting Simulation..."
$ns_ run







in terminal i am typing

harsha@Harsha:~$ cd ns2
harsha@Harsha:~/ns2$ cd ns-allinone-2.31
harsha@Harsha:~/ns2/ns-allinone-2.31$ cd ns-2.31
harsha@Harsha:~/ns2/ns-allinone-2.31/ns-2.31$ java -jar CRCN.jar
Yeah

crcn window is opened

after giving all the settings like path,interference,channels,nodes,

by pressing throughput key
throughput window is opening but the graph is not displaying
in terminal we are getting the following lines

harsha@Harsha:~/ns2/ns-allinone-2.31/ns-2.31$ java -jar CRCN.jar
Yeah
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl
routing
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl is called by ns
Starting Simulation...
NS EXITING...
num_nodes is set 10
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
Process exitValue: 0

jTabbedPane1_stateChanged(ChangeEvent e) called.
java.io.FileNotFoundException: (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
at java.io.FileOutputStream.<init>(FileOutputStream.java:99)
at nsui.CFrame.TopoOK_actionPerformed(CFrame.java:2260)
at nsui.CFrame.access$16(CFrame.java:2113)
at nsui.CFrame$23.actionPerformed(CFrame.java:1077)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6288)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6053)
at java.awt.Container.processEvent(Container.java:2045)
at java.awt.Component.dispatchEventImpl(Component.java:4649)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Component.dispatchEvent(Component.java:4475)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
at java.awt.Container.dispatchEventImpl(Container.java:2089)
at java.awt.Window.dispatchEventImpl(Window.java:2587)
at java.awt.Component.dispatchEvent(Component.java:4475)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:675)
at java.awt.EventQueue.access$300(EventQueue.java:96)
at java.awt.EventQueue$2.run(EventQueue.java:634)
at java.awt.EventQueue$2.run(EventQueue.java:632)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$3.run(EventQueue.java:648)
at java.awt.EventQueue$3.run(EventQueue.java:646)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:645)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
OUTPUT>#
OUTPUT># nodes: 10, max conn: 5, send rate: 0.0, seed: 1
OUTPUT>#
OUTPUT>#
OUTPUT># 1 connecting to 2 at time 2.5568388786897245
OUTPUT>#
OUTPUT>set tcp_(0) [$ns_ create-connection TCP $node_(1) TCPSink $node_(2) 0]
OUTPUT>$tcp_(0) set window_ 32
OUTPUT>$tcp_(0) set packetSize_ 512
OUTPUT>set ftp_(0) [$tcp_(0) attach-source FTP]
OUTPUT>$ns_ at 2.5568388786897245 "$ftp_(0) start"
OUTPUT>#
OUTPUT># 4 connecting to 5 at time 56.333118917575632
OUTPUT>#
OUTPUT>set tcp_(1) [$ns_ create-connection TCP $node_(4) TCPSink $node_(5) 0]
OUTPUT>$tcp_(1) set window_ 32
OUTPUT>$tcp_(1) set packetSize_ 512
OUTPUT>set ftp_(1) [$tcp_(1) attach-source FTP]
OUTPUT>$ns_ at 56.333118917575632 "$ftp_(1) start"
OUTPUT>#
OUTPUT># 4 connecting to 6 at time 146.96568928983328
OUTPUT>#
OUTPUT>set tcp_(2) [$ns_ create-connection TCP $node_(4) TCPSink $node_(6) 0]
OUTPUT>$tcp_(2) set window_ 32
OUTPUT>$tcp_(2) set packetSize_ 512
OUTPUT>set ftp_(2) [$tcp_(2) attach-source FTP]
OUTPUT>$ns_ at 146.96568928983328 "$ftp_(2) start"
OUTPUT>#
OUTPUT># 6 connecting to 7 at time 55.634230382570173
OUTPUT>#
OUTPUT>set tcp_(3) [$ns_ create-connection TCP $node_(6) TCPSink $node_(7) 0]
OUTPUT>$tcp_(3) set window_ 32
OUTPUT>$tcp_(3) set packetSize_ 512
OUTPUT>set ftp_(3) [$tcp_(3) attach-source FTP]
OUTPUT>$ns_ at 55.634230382570173 "$ftp_(3) start"
OUTPUT>#
OUTPUT># 7 connecting to 8 at time 29.546173154165118
OUTPUT>#
OUTPUT>set tcp_(4) [$ns_ create-connection TCP $node_(7) TCPSink $node_(8) 0]
OUTPUT>$tcp_(4) set window_ 32
OUTPUT>$tcp_(4) set packetSize_ 512
OUTPUT>set ftp_(4) [$tcp_(4) attach-source FTP]
OUTPUT>$ns_ at 29.546173154165118 "$ftp_(4) start"
OUTPUT>#
OUTPUT>#Total sources/connections: 4/5
OUTPUT>#
Process exitValue: 0

jTabbedPane1_stateChanged(ChangeEvent e) called.
OUTPUT>2.556838879 0
OUTPUT>2.556838879 0
OUTPUT>3.002780543 28824
Process exitValue: 0
OUTPUT>4.000909190 70656
OUTPUT>5.003164718 70104
OUTPUT>6.000545438 66240
OUTPUT>7.000843468 69000
OUTPUT>8.004517927 69552
OUTPUT>9.004663797 68448
OUTPUT>10.000128508 69000
OUTPUT>11.002497413 69596
OUTPUT>12.000275411 69000
OUTPUT>13.003019420 66830
OUTPUT>14.000903528 70104
OUTPUT>15.000195146 70104
OUTPUT>16.000005061 67388
OUTPUT>17.000149610 70694
OUTPUT>18.000240156 66830
OUTPUT>19.000548789 71248
OUTPUT>20.001811485 68488
OUTPUT>21.000012888 68448
OUTPUT>22.003265582 69044
OUTPUT>23.000487400 69000
OUTPUT>24.000242682 70696
OUTPUT>25.002261890 68486
OUTPUT>26.004203446 67896
OUTPUT>27.001791540 67344
OUTPUT>28.000068767 67344
OUTPUT>29.002370509 67388
OUTPUT>30.000051627 70736
OUTPUT>31.003220383 70142
OUTPUT>32.003297434 69000
OUTPUT>33.000289899 70656
OUTPUT>34.000093423 71248
OUTPUT>35.000013850 68488
OUTPUT>36.000216827 69044
OUTPUT>37.004730163 71760
OUTPUT>38.002345809 68448
OUTPUT>39.000113035 70104
OUTPUT>40.000579428 70148
OUTPUT>41.000585116 67936
OUTPUT>42.002283101 73416
OUTPUT>43.000218079 71208
OUTPUT>44.001708345 70700
OUTPUT>45.002534530 72312
OUTPUT>46.004639791 72312
OUTPUT>47.001564291 67896
OUTPUT>48.004177962 71208
OUTPUT>49.001830710 70104
OUTPUT>50.000000000 71208

thanking u,,
@harsha
 
Old 03-07-2013, 01:20 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 8 : Please edit post #8 to use code tags.
http://www.linuxquestions.org/questi....php?do=bbcode

I.e. write [/code] at code text end, and [code] at code text start.
Or use the # button in the "Advanced Editor".

Like this ...
Code:
set val(chan) Channel/WirelessChannel ; #Channel Type
set val(prop) Propagation/TwoRayGround ; #Radio propagation model
.
.
$ns_ run
Code:
harsha@Harsha:~/ns2/ns-allinone-2.31/ns-2.31$ java -jar CRCN.jar
Yeah
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl
routing
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl is called by ns
Starting Simulation...
NS EXITING...
num_nodes is set 10
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
Process exitValue: 0
.
.
.
OUTPUT>50.000000000 71208
... Your plain text looks like two groups of code. ?
Not easy to see until you have edited the post.

-
 
1 members found this post helpful.
Old 03-07-2013, 02:23 AM   #10
harshav
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
Code:
set val(chan) Channel/WirelessChannel ; #Channel Type
set val(prop) Propagation/TwoRayGround ; #Radio propagation model
set val(netif) Phy/WirelessPhy ; #Network interface type
set val(ant) Antenna/OmniAntenna ; #Antenna model
set val(rp) AODV ;#Routing Protocol
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ifqlen) 50 ;# max packet in ifq
set val(mac) Mac/802_11 ;# MAC type
set val(ll) LL ;# link layer type
set val(nn) 10 ;# number of mobilenodes
set val(cp) /home/harsha/ns2/ns-allinone-2.31/ns-2.31/random.tcl ; # topology traffic file
set val(stop) 50 ;# simulation time
# ==================================================================
# Main Program
# ======================================================================


# Initialize Global Variables
set ns_ [new Simulator]
set tracefd [open /home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tr w]
$ns_ trace-all $tracefd

# set up topography object
set topo [new Topography]
$topo load_flatgrid 1000 1000

#create nam
set namtrace [open /home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.nam w]
$ns_ namtrace-all-wireless $namtrace 1000 1000

# Create God
set god_ [create-god $val(nn)]
# configure node
$ns_ node-config -adhocRouting $val(rp) -llType $val(ll) -macType $val(mac) -ifqType $val(ifq) -ifqLen $val(ifqlen) -antType $val(ant) -propType $val(prop) -phyType $val(netif) -topoInstance $topo -agentTrace ON -routerTrace ON -macTrace ON -movementTrace ON


#Configure for channels
$ns_ node-config -channelType $val(chan)

for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) set recordIfall 1
$node_($i) random-motion 0 ;# disable random motion
}


source $val(cp) ; #source topology and traffic file generated by others

# Tell nodes when the simulation ends
for {set i 0} {$i < $val(nn) } {incr i} {
$ns_ at $val(stop).0 "$node_($i) reset";
}
$ns_ at $val(stop).0002 "puts \"NS EXITING...\" ; $ns_ halt "
proc stop {} {
global ns_ tracefd
$ns_ flush-trace
close $tracefd
exec nam /home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.nam &
exit 0
}
puts "Starting Simulation..."
$ns_ run


[output]
harsha@Harsha:~/ns2/ns-allinone-2.31/ns-2.31$ java -jar CRCN.jar
Yeah
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl
routing
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl is called by ns
Starting Simulation...
NS EXITING...
num_nodes is set 10
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
Process exitValue: 0

jTabbedPane1_stateChanged(ChangeEvent e) called.
java.io.FileNotFoundException: (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
at java.io.FileOutputStream.<init>(FileOutputStream.java:99)
at nsui.CFrame.TopoOK_actionPerformed(CFrame.java:2260)
at nsui.CFrame.access$16(CFrame.java:2113)
at nsui.CFrame$23.actionPerformed(CFrame.java:1077)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6288)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6053)
at java.awt.Container.processEvent(Container.java:2045)
at java.awt.Component.dispatchEventImpl(Component.java:4649)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Component.dispatchEvent(Component.java:4475)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
at java.awt.Container.dispatchEventImpl(Container.java:2089)
at java.awt.Window.dispatchEventImpl(Window.java:2587)
at java.awt.Component.dispatchEvent(Component.java:4475)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:675)
at java.awt.EventQueue.access$300(EventQueue.java:96)
at java.awt.EventQueue$2.run(EventQueue.java:634)
at java.awt.EventQueue$2.run(EventQueue.java:632)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$3.run(EventQueue.java:648)
at java.awt.EventQueue$3.run(EventQueue.java:646)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:645)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
OUTPUT>#
OUTPUT># nodes: 10, max conn: 5, send rate: 0.0, seed: 1
OUTPUT>#
OUTPUT>#
OUTPUT># 1 connecting to 2 at time 2.5568388786897245
OUTPUT>#
OUTPUT>set tcp_(0) [$ns_ create-connection TCP $node_(1) TCPSink $node_(2) 0]
OUTPUT>$tcp_(0) set window_ 32
OUTPUT>$tcp_(0) set packetSize_ 512
OUTPUT>set ftp_(0) [$tcp_(0) attach-source FTP]
OUTPUT>$ns_ at 2.5568388786897245 "$ftp_(0) start"
OUTPUT>#
OUTPUT># 4 connecting to 5 at time 56.333118917575632
OUTPUT>#
OUTPUT>set tcp_(1) [$ns_ create-connection TCP $node_(4) TCPSink $node_(5) 0]
OUTPUT>$tcp_(1) set window_ 32
OUTPUT>$tcp_(1) set packetSize_ 512
OUTPUT>set ftp_(1) [$tcp_(1) attach-source FTP]
OUTPUT>$ns_ at 56.333118917575632 "$ftp_(1) start"
OUTPUT>#
OUTPUT># 4 connecting to 6 at time 146.96568928983328
OUTPUT>#
OUTPUT>set tcp_(2) [$ns_ create-connection TCP $node_(4) TCPSink $node_(6) 0]
OUTPUT>$tcp_(2) set window_ 32
OUTPUT>$tcp_(2) set packetSize_ 512
OUTPUT>set ftp_(2) [$tcp_(2) attach-source FTP]
OUTPUT>$ns_ at 146.96568928983328 "$ftp_(2) start"
OUTPUT>#
OUTPUT># 6 connecting to 7 at time 55.634230382570173
OUTPUT>#
OUTPUT>set tcp_(3) [$ns_ create-connection TCP $node_(6) TCPSink $node_(7) 0]
OUTPUT>$tcp_(3) set window_ 32
OUTPUT>$tcp_(3) set packetSize_ 512
OUTPUT>set ftp_(3) [$tcp_(3) attach-source FTP]
OUTPUT>$ns_ at 55.634230382570173 "$ftp_(3) start"
OUTPUT>#
OUTPUT># 7 connecting to 8 at time 29.546173154165118
OUTPUT>#
OUTPUT>set tcp_(4) [$ns_ create-connection TCP $node_(7) TCPSink $node_(8) 0]
OUTPUT>$tcp_(4) set window_ 32
OUTPUT>$tcp_(4) set packetSize_ 512
OUTPUT>set ftp_(4) [$tcp_(4) attach-source FTP]
OUTPUT>$ns_ at 29.546173154165118 "$ftp_(4) start"
OUTPUT>#
OUTPUT>#Total sources/connections: 4/5
OUTPUT>#
Process exitValue: 0

jTabbedPane1_stateChanged(ChangeEvent e) called.
OUTPUT>2.556838879 0
OUTPUT>2.556838879 0
OUTPUT>3.002780543 28824
Process exitValue: 0
OUTPUT>4.000909190 70656
OUTPUT>5.003164718 70104
OUTPUT>6.000545438 66240
OUTPUT>7.000843468 69000
OUTPUT>8.004517927 69552
OUTPUT>9.004663797 68448
OUTPUT>10.000128508 69000
OUTPUT>11.002497413 69596
OUTPUT>12.000275411 69000
OUTPUT>13.003019420 66830
OUTPUT>14.000903528 70104
OUTPUT>15.000195146 70104
OUTPUT>16.000005061 67388
OUTPUT>17.000149610 70694
OUTPUT>18.000240156 66830
OUTPUT>19.000548789 71248
OUTPUT>20.001811485 68488
OUTPUT>21.000012888 68448
OUTPUT>22.003265582 69044
OUTPUT>23.000487400 69000
OUTPUT>24.000242682 70696
OUTPUT>25.002261890 68486
OUTPUT>26.004203446 67896
OUTPUT>27.001791540 67344
OUTPUT>28.000068767 67344
OUTPUT>29.002370509 67388
OUTPUT>30.000051627 70736
OUTPUT>31.003220383 70142
OUTPUT>32.003297434 69000
OUTPUT>33.000289899 70656
OUTPUT>34.000093423 71248
OUTPUT>35.000013850 68488
OUTPUT>36.000216827 69044
OUTPUT>37.004730163 71760
OUTPUT>38.002345809 68448
OUTPUT>39.000113035 70104
OUTPUT>40.000579428 70148
OUTPUT>41.000585116 67936
OUTPUT>42.002283101 73416
OUTPUT>43.000218079 71208
OUTPUT>44.001708345 70700
OUTPUT>45.002534530 72312
OUTPUT>46.004639791 72312
OUTPUT>47.001564291 67896
OUTPUT>48.004177962 71208
OUTPUT>49.001830710 70104
OUTPUT>50.000000000 71208
[/output]

thanking u,,
@harsha
 
Old 03-11-2013, 12:33 AM   #11
harshav
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
i am getting an error java io file not found

my text.tcl

Code:
set val(chan) Channel/WirelessChannel ; #Channel Type
set val(prop) Propagation/TwoRayGround ; #Radio propagation model
set val(netif) Phy/WirelessPhy ; #Network interface type
set val(ant) Antenna/OmniAntenna ; #Antenna model
set val(rp) AODV ;#Routing Protocol
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ifqlen) 50 ;# max packet in ifq
set val(mac) Mac/802_11 ;# MAC type
set val(ll) LL ;# link layer type
set val(nn) 10 ;# number of mobilenodes
set val(cp) /home/harsha/ns2/ns-allinone-2.31/ns-2.31/random.tcl ; # topology traffic file
set val(stop) 50 ;# simulation time
# ==================================================================
# Main Program
# ======================================================================


# Initialize Global Variables
set ns_ [new Simulator]
set tracefd [open /home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tr w]
$ns_ trace-all $tracefd

# set up topography object
set topo [new Topography]
$topo load_flatgrid 1000 1000

#create nam
set namtrace [open /home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.nam w]
$ns_ namtrace-all-wireless $namtrace 1000 1000

# Create God
set god_ [create-god $val(nn)]
# configure node
$ns_ node-config -adhocRouting $val(rp) -llType $val(ll) -macType $val(mac) -ifqType $val(ifq) -ifqLen $val(ifqlen) -antType $val(ant) -propType $val(prop) -phyType $val(netif) -topoInstance $topo -agentTrace ON -routerTrace ON -macTrace ON -movementTrace ON


#Configure for channels
$ns_ node-config -channelType $val(chan)

for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) set recordIfall 1
$node_($i) random-motion 0 ;# disable random motion
}


source $val(cp) ; #source topology and traffic file generated by others

# Tell nodes when the simulation ends
for {set i 0} {$i < $val(nn) } {incr i} {
$ns_ at $val(stop).0 "$node_($i) reset";
}
$ns_ at $val(stop).0002 "puts \"NS EXITING...\" ; $ns_ halt "
proc stop {} {
global ns_ tracefd
$ns_ flush-trace
close $tracefd
exec nam /home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.nam &
exit 0
}
puts "Starting Simulation..."
$ns_ run
in terminal i am getting as


Code:
harsha@Harsha:~/ns2/ns-allinone-2.31/ns-2.31$ java -jar CRCN.jar
Yeah
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl
routing
/home/harsha/ns2/ns-allinone-2.31/ns-2.31/test.tcl is called by ns
Starting Simulation...
NS EXITING...
num_nodes is set 10
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
Process exitValue: 0

jTabbedPane1_stateChanged(ChangeEvent e) called.
java.io.FileNotFoundException: (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
at java.io.FileOutputStream.<init>(FileOutputStream.java:99)
at nsui.CFrame.TopoOK_actionPerformed(CFrame.java:2260)
at nsui.CFrame.access$16(CFrame.java:2113)
at nsui.CFrame$23.actionPerformed(CFrame.java:1077)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6288)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6053)
at java.awt.Container.processEvent(Container.java:2045)
at java.awt.Component.dispatchEventImpl(Component.java:4649)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Component.dispatchEvent(Component.java:4475)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
at java.awt.Container.dispatchEventImpl(Container.java:2089)
at java.awt.Window.dispatchEventImpl(Window.java:2587)
at java.awt.Component.dispatchEvent(Component.java:4475)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:675)
at java.awt.EventQueue.access$300(EventQueue.java:96)
at java.awt.EventQueue$2.run(EventQueue.java:634)
at java.awt.EventQueue$2.run(EventQueue.java:632)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$3.run(EventQueue.java:648)
at java.awt.EventQueue$3.run(EventQueue.java:646)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:645)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
OUTPUT>#
OUTPUT># nodes: 10, max conn: 5, send rate: 0.0, seed: 1
OUTPUT>#
OUTPUT>#
OUTPUT># 1 connecting to 2 at time 2.5568388786897245
OUTPUT>#
OUTPUT>set tcp_(0) [$ns_ create-connection TCP $node_(1) TCPSink $node_(2) 0]
OUTPUT>$tcp_(0) set window_ 32
OUTPUT>$tcp_(0) set packetSize_ 512
OUTPUT>set ftp_(0) [$tcp_(0) attach-source FTP]
OUTPUT>$ns_ at 2.5568388786897245 "$ftp_(0) start"
OUTPUT>#
OUTPUT># 4 connecting to 5 at time 56.333118917575632
OUTPUT>#
OUTPUT>set tcp_(1) [$ns_ create-connection TCP $node_(4) TCPSink $node_(5) 0]
OUTPUT>$tcp_(1) set window_ 32
OUTPUT>$tcp_(1) set packetSize_ 512
OUTPUT>set ftp_(1) [$tcp_(1) attach-source FTP]
OUTPUT>$ns_ at 56.333118917575632 "$ftp_(1) start"
OUTPUT>#
OUTPUT># 4 connecting to 6 at time 146.96568928983328
OUTPUT>#
OUTPUT>set tcp_(2) [$ns_ create-connection TCP $node_(4) TCPSink $node_(6) 0]
OUTPUT>$tcp_(2) set window_ 32
OUTPUT>$tcp_(2) set packetSize_ 512
OUTPUT>set ftp_(2) [$tcp_(2) attach-source FTP]
OUTPUT>$ns_ at 146.96568928983328 "$ftp_(2) start"
OUTPUT>#
OUTPUT># 6 connecting to 7 at time 55.634230382570173
OUTPUT>#
OUTPUT>set tcp_(3) [$ns_ create-connection TCP $node_(6) TCPSink $node_(7) 0]
OUTPUT>$tcp_(3) set window_ 32
OUTPUT>$tcp_(3) set packetSize_ 512
OUTPUT>set ftp_(3) [$tcp_(3) attach-source FTP]
OUTPUT>$ns_ at 55.634230382570173 "$ftp_(3) start"
OUTPUT>#
OUTPUT># 7 connecting to 8 at time 29.546173154165118
OUTPUT>#
OUTPUT>set tcp_(4) [$ns_ create-connection TCP $node_(7) TCPSink $node_(8) 0]
OUTPUT>$tcp_(4) set window_ 32
OUTPUT>$tcp_(4) set packetSize_ 512
OUTPUT>set ftp_(4) [$tcp_(4) attach-source FTP]
OUTPUT>$ns_ at 29.546173154165118 "$ftp_(4) start"
OUTPUT>#
OUTPUT>#Total sources/connections: 4/5
OUTPUT>#
Process exitValue: 0

jTabbedPane1_stateChanged(ChangeEvent e) called.
OUTPUT>2.556838879 0
OUTPUT>2.556838879 0
OUTPUT>3.002780543 28824
Process exitValue: 0
OUTPUT>4.000909190 70656
OUTPUT>5.003164718 70104
OUTPUT>6.000545438 66240
OUTPUT>7.000843468 69000
OUTPUT>8.004517927 69552
OUTPUT>9.004663797 68448
OUTPUT>10.000128508 69000
OUTPUT>11.002497413 69596
OUTPUT>12.000275411 69000
OUTPUT>13.003019420 66830
OUTPUT>14.000903528 70104
OUTPUT>15.000195146 70104
OUTPUT>16.000005061 67388
OUTPUT>17.000149610 70694
OUTPUT>18.000240156 66830
OUTPUT>19.000548789 71248
OUTPUT>20.001811485 68488
OUTPUT>21.000012888 68448
OUTPUT>22.003265582 69044
OUTPUT>23.000487400 69000
OUTPUT>24.000242682 70696
OUTPUT>25.002261890 68486
OUTPUT>26.004203446 67896
OUTPUT>27.001791540 67344
OUTPUT>28.000068767 67344
OUTPUT>29.002370509 67388
OUTPUT>30.000051627 70736
OUTPUT>31.003220383 70142
OUTPUT>32.003297434 69000
OUTPUT>33.000289899 70656
OUTPUT>34.000093423 71248
OUTPUT>35.000013850 68488
OUTPUT>36.000216827 69044
OUTPUT>37.004730163 71760
OUTPUT>38.002345809 68448
OUTPUT>39.000113035 70104
OUTPUT>40.000579428 70148
OUTPUT>41.000585116 67936
OUTPUT>42.002283101 73416
OUTPUT>43.000218079 71208
OUTPUT>44.001708345 70700
OUTPUT>45.002534530 72312
OUTPUT>46.004639791 72312
OUTPUT>47.001564291 67896
OUTPUT>48.004177962 71208
OUTPUT>49.001830710 70104
OUTPUT>50.000000000 71208

Last edited by harshav; 03-11-2013 at 12:37 AM.
 
Old 11-26-2013, 09:22 PM   #12
leki
LQ Newbie
 
Registered: Nov 2013
Posts: 24

Rep: Reputation: Disabled
GUI throughput display problem

hi Harshav...did you solve your problem??I am too having the same problem.Can you help me if you have done so??
 
Old 05-30-2014, 04:51 AM   #13
nayanb2k7
LQ Newbie
 
Registered: May 2014
Posts: 28

Rep: Reputation: Disabled
hi leki and harshav,

did u both get the solution of your problem?

My problem is I am not getting the throughput graph plot.Its blank.

I am new to CRCN-NS2.

Please share the solution of the problem if any.
 
Old 05-30-2014, 05:11 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 13 .

→ #24 → http://www.linuxquestions.org/questi...55#post5179255
 
Old 11-18-2015, 09:06 PM   #15
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Rep: Reputation: Disabled
Hi,

I use ubuntu 12.04, i installed ns2.31 and CRCN patch, and they work fine.
i want the install the GUI interface ( i downloaded the jar file, the throughput, the gnuplot and when i call the jar from the terminal i have the interface).
The interface dont work normally.
if any one here succeed to install the GUI interface in ubuntu, please he give me the exactly instructions that i must do, also the location of each element like the jar file, the gnuplot... may be this can help me.

Thank you.
 
  


Reply

Tags
crcn, ns2


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
[SOLVED] Meaning of Traffic and IT file generated after simulation in CRCN jaibaba1 Linux - Software 11 07-16-2014 06:22 AM
which is the suitable OS version for crcn simulator to be installed? gomathipalani Linux - Newbie 1 11-03-2011 04:26 PM
No GUI display on console cadences Linux - Newbie 2 02-10-2010 05:00 AM
no GUI for Display card p_shinde Red Hat 2 09-01-2006 09:20 AM
X will not display anything GUI craig467 Linux - General 4 07-10-2006 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 AM.

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