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 |
hey humairaafzal73
even am facing the same issue.... were you able to resolve it... if yes then please share it over here |
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 |
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 |
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 - |
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.......... |
# 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. - |
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 |
# 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 Code:
harsha@Harsha:~/ns2/ns-allinone-2.31/ns-2.31$ java -jar CRCN.jar Not easy to see until you have edited the post. - |
Code:
set val(chan) Channel/WirelessChannel ; #Channel Type [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 |
i am getting an error java io file not found
my text.tcl
Code:
Code:
harsha@Harsha:~/ns2/ns-allinone-2.31/ns-2.31$ java -jar CRCN.jar |
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??
|
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. |
|
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. |
All times are GMT -5. The time now is 02:23 AM. |