[ns] Graphical User Interface for NS-2?
Dear all ns users, I am third year student doing my project using ns-2 i have only 2weeks left to complete and hand-in my project. To finalise my project I was thinking of adding a graphical user interace to it. I wrote my code in tcl but I don't know what software I need to use to do the GUI. Hence, I kindly ask you all if you can reply to me with ideas on how to add the GUI or if you have any link(of a tutorial) with an example on how to do it, i would really really appreciate it! Anticipating to hear from you all, I would like to thank you very much in advance for all your help!! Best regards -- View this message in context: http://www.nabble.com/Graphical-User-Interface-for-NS-2--tp22026112p22026112.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] TraceGraph Helpppppp!!!
Dear all, I was trying to use trace graph to plot graph for my simulation. However, it seems like there is something i have not understood about it. Everytime i try to plot the graph say for one of my tracefiles and i do trgrpah name of file on the terminal it does launch the tracegrpah window but it doesn't plot anything. Now what i have done is create a .ip file but what i am not sure about is do i need to write my own awk file to make it plot a graph say for the delay or throughput. I am sure you can tell that i am way losttt so please please any help on tracegraph would be appreciated. I would be more happy if some one can tell me the basics in plotting a trace graph or the things i need to do or don't! Anticipating for your kind cooperation, I would like to thank you very much thank you! Best regards!! -- View this message in context: http://www.nabble.com/TraceGraph-Helpp%21%21%21-tp21243332p21243332.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] Trace Graph Help Neeeeeded so badly!!! Please(100X)
Dear all, i have installed trace graph i am using Linux-Ubuntu! i found some sample trace graph files i wanted to run it and see what it does and understand what it is doing and hence move on from that and do my own. However, i am not sure what command i have to use to make it run on the terminal a friend sent me this link http://tagus.inesc-id.pt/~pestrela/ns2/tracegraph.html not sure what it is really trying to say or what i have to do when it comes to generating a .tr.ip file. Another thing i am finding hard to understand is do i need to download trconvert as well? My project was going fine until this point i only have few weeks left to finalize my project and i am really stuck so every little help with trace graph is more than welcome and appreciated. I have read on a forum that understanding trace file itself takes up to 3months and i don't have that long so please please help as much as u can !! Anticipating for your prompt reply, I would like to thank you all in advance. Best regards, new2ns08 -- View this message in context: http://www.nabble.com/Trace-Graph-Help-Neded-so-badly%21%21%21-Please%28100X%29-tp2127p2127.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] Help pleaseeee!! i am new 2 NS
Dear all, I am using NS-2 to do my final year project. It is my first time to use both NS-2 and TCL. I need to do random generation for my simulation but I don't know how to do that! and I couldn't find any kind of help on that please please do help me as i have only few days left to complete the first part of the project that is running my wireless simulation for randomly generated number of nodes. Any help will do! Hoping to hear from you all, I would like to thank you very much in advancee! Best regards, B :-) -- View this message in context: http://www.nabble.com/Help-pleas%21%21-i-am-new-2-NS-tp20895597p20895597.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] building simulator using MAC 802_15_4! help needed!
Dear all, As my name implies i am new to both ns and tcl. I am trying to develop a WSN simulator using zigbee protocol instead of MAC 802.11 as my final year project. I was trying to give the user of the simulator to choose to enter the number of nodes so before getting my hands dirty with all the coding i decided to run a code which has been written by someone else. I have been told that the code does work however while running it i kept getting the following error message [EMAIL PROTECTED]:~/Documents$ ns wireless1-orig1.tcl num_nodes is set 1 INITIALIZE THE LIST xListHead Agent/TCP B0 with pktsize 1500 flows from Node0 to Node0 Starting Simulation... Segmentation fault I would really really appreciate all the help i can get as i need to get this code working which means i will understand what i am doing or supposed to be doing. For your reference and subsequent correction or comment or explanation here i have attached the code. http://www.nabble.com/file/p20722366/wireless1-orig1.tcl wireless1-orig1.tcl if there is gonna be an error to open here it is again: #== # == # Define options # == set val(chan) Channel/WirelessChannel set val(prop) Propagation/TwoRayGround set val(netif)Phy/WirelessPhy/802_15_4 ;#network interface type set val(mac)Mac/802_15_4 set val(ifq)Queue/DropTail/PriQueue set val(ll) LL set val(ant)Antenna/OmniAntenna set val(x) 670 ;# X dimension of the topography set val(y) 670 ;# Y dimension of the topography set val(ifqlen) 2000;# max packet in ifq set val(seed) 0.0 set val(adhocRouting) AODV set val(traffic)cbr;# cbr/poisson/ftp #set val(nn) 10 ;# how many nodes are simulated #set val(cp) ../Documents/scene/cbr-3-test #set val(sc) ../Documents/scene/scen-3-test set opt(stop) 50.0 ;# simulation time set num_nodes [lindex $argv 0] puts $num_nodes; set nodes [expr $num_nodes + 1] set epsilon 0.5 set ppktsize 160 set pinterval 0.020 set pktsize 1500 set transport both set sink 0 set vsrc 1 Phy/WirelessPhy set CSThresh_ 3.981e-13; #carrier sensing threshold Phy/WirelessPhy set RXThresh_ 3.981e-13; #receiver threshold Phy/WirelessPhy set CPThresh_ 10; #capture threshold Phy/WirelessPhy set freq_ 2.4e+9; #Operating Freq Phy/WirelessPhy set L_ 1.0; #System loss factor Phy/WirelessPhy set pt_ 0.001; #=== # Main Program # == # # Initialize Global Variables # # create simulator instance set ns_ [new Simulator] # setup topography object set topo[new Topography] # create trace object for ns and nam set tracefd [open wireless1-out.tr w] ; #opens the file out.tr set namtrace[open wireless1-out.nam w] ; #opens the file out.nam $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) # define topology $topo load_flatgrid $val(x) $val(y) # Create God set god_ [create-god $nodes] # define how node should be created set chan_1_ [new $val(chan)] #== #Global node setting #== $ns_ node-config -adhocRouting $val(adhocRouting) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channel $chan_1_ \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace ON # Create the specified number of nodes [$val(nn)] and attach them # to the channel. for {set i 0} {$i $nodes } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion $node_($i) shape hexagon $node_($i) color red } for {set i 1} {$i $nodes} {incr i} { set P [new Application/Traffic/CBR] set P_src [new Agent/UDP] set P_sink [new Agent/UDP] $P set random_ 0 $P set packetSize_ $ppktsize $P set interval_ $pinterval $P_src set packetSize_ $ppktsize $P_src set class_ [expr $i + 1] # $P_src set