Re: [ns] generating topology
- You can use the tool "gt-itm" that it is specifically for this purpose. You can obtain it from http://www.isi.edu/nsnam/ns/ns-topogen.html You can obtain the code according to your distribution. There are, however some problems during its execution, which are documented here: http://mailman.isi.edu/pipermail/ns-users/2006-July/056470.html. If they occur to you as well I might be of assistance. Hope I've helped -Fk On 9/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > -- Forwarded message -- > From: "Sita S. Krishnakumar" <[EMAIL PROTECTED]> > To: ns-users@ISI.EDU > Date: Thu, 28 Sep 2006 10:31:44 -0400 (EDT) > Subject: [ns] generating topology > Hi, > I am interested in generating a random distribution of static nodes for my > simulation. How can I do this in ns-2? I am looking at around 200 nodes > and do not want to hand-generate the topology. > Thanks, > Sita > > > -- Forwarded message -- > From: "Vinod Kumar M" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>, > Date: Thu, 28 Sep 2006 20:32:43 +0530 > Subject: Re: [ns] generating topology > Hi, > Please use "for loops". Refer Eitan Altman's beginner's guide for NS. > > Vinod Kumar > > -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications Automation & Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] --
[ns] TRACE QUERY IN AODV
hi in trace file mac layer detects the link is broken betwwen two nodes. according to mechanism in aodv this broken link information is broadcasted to affected neighbours ,and if it requires still path to that destination it agains route reqiest broadcast but in this trace it will not happen ...after detecting link break many tcp packet send and receive between other nodes and then after link broken information is broadcasted to the whhole network.. why it's happen? plz reply me... khushali __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ns] website for ns-3 project
In July, we announced that a team of PIs, in collaboration with INRIA, had obtained funding from NSF to develop the next major version of ns-3: http://mailman.isi.edu/pipermail/ns-users/2006-July/056352.html A small team of us has worked hard over the summer to establish some project infrastructure, initial designs, and initial code, and we'd like to announce its availability today at the following website: http://www.nsnam.org We will regularly maintain that website and the documentation contained therein. Please visit our website if you are interested in contributing or in tracking the project. We plan to hold technical discussions on the existing ns-developers mailing list. -Tom
Re: [ns] generating topology
Hi, You could simply use setdest with a very short simulation time and low speed (something like this) ./setdest -n 200 -p 0.0 -M 0.1 -t 1.0 -x 500 -y 500 > scen-20-test and then just take the first part of the file, where the positions of the mobilenodes are initialized. Just an idea, not verified. I haven't thought this through entirely. Best, -Matt Am Freitag, 29. September 2006 02:00 schrieb [EMAIL PROTECTED]: > Message: 9 > Date: Thu, 28 Sep 2006 10:31:44 -0400 (EDT) > From: "Sita S. Krishnakumar" <[EMAIL PROTECTED]> > Subject: [ns] generating topology > To: ns-users@ISI.EDU > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain;charset=iso-8859-1 > > Hi, > I am interested in generating a random distribution of static nodes for my > simulation. How can I do this in ns-2? I am looking at around 200 nodes > and do not want to hand-generate the topology. > Thanks, > Sita
Re: [ns] urgent about setdest : node movement file
Hi, Which ns version are you using? I'm guessing you have the usage you used > > ./setdest -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 > scen-20-test from the included README. The parameters are wrong there. Instead of "-s" ist hast to be "-M" for the maximum speed. Also see: http://mailman.isi.edu/pipermail/ns-users/2005-July/050860.html Best, -Matt
Re: [ns] urgent about setdest : node movement file
I see the same problem. However, if you use the make-scen.csh script the directory ~/ns2.29/indep-utils/cmu-scen-gen/setdest, it works just fine. Also you could use the bonnmotion tool to generate node movement files. It is has more features than setdest utility. Hope it helps. Cheers. Abdul. Muhammad Azam Akram wrote: > Hi > I want to create node movement file by "setdest". but when i run this command > for example, > > ./setdest -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 > scen-20-test > > it gives error as > > "assertion "spped != 0.0" failed: file "setdest.cc", line 595 > Aborted " > > please help me to solve this problem. > > Thank you. > > > > > - > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail. > >
[ns] trouble with error model over wired links
Hello, I am having unusual trouble getting a simple error model to work over wired links in ns2.29. I have checked the mailing list archives and could not find a similar problem/solution. Below is my tcl script which represents a simple network topology of 3 nodes connected in a chain using duplex-links. I have a CBR/UDP flow between the nodes 0 and 3. The flow path is 0-1-2-3. If I don't use any error on the links, everything works fine as is confirmed by the trace file and the nam visualization. However, if I include a simple error model and attach it to each of the three links, the whole simulation goes awry. In the trace file I see packets going from node 0 to node 1. There is no data flow between node 2 and node 3 and there is a data flow between nodes 2 and 3. Basically the packets disappear on node 1 and magically reappear at node 2. In nam visualization, it is even worse...there is just one flow between nodes 0 and 1thats it.no other data flows. Changing the error rate does not help. When I have a more complex topology ( like a mesh topology of 8x8 nodes) the whole simulation goes so bizarre, that it is even hard to trace what is going wrong. That's why I am using this simple 3 node topology to illustrate the problem. I am hoping that there is some fundamental mistake on my part. Please point in the right direction. Thanks, Abdul. Here's the TCL script -- set ns [new Simulator] set tf [open simout.tr w] $ns trace-all $tf set nf [open simout.nam w] $ns namtrace-all $nf proc finish {} { global ns nf tf $ns flush-trace close $nf close $tf exec nam simout.nam & exit 0 } for {set i 0} {$i < 4} {incr i} { set n($i) [$ns node] } $ns duplex-link $n(0) $n(1) 500Mb 10ms DropTail $ns duplex-link $n(1) $n(2) 500Mb 10ms DropTail $ns duplex-link $n(2) $n(3) 500Mb 10ms DropTail set em [new ErrorModel] $em unit pkt $em set rate_ 0.01 $em ranvar [new RandomVariable/Uniform] $em drop-target [new Agent/Null] $ns link-lossmodel $em $n(0) $n(1) $ns link-lossmodel $em $n(1) $n(2) $ns link-lossmodel $em $n(2) $n(3) set udp0 [new Agent/UDP] $ns attach-agent $n(0) $udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 1000 $cbr0 set interval_ 0.005 $cbr0 attach-agent $udp0 set null0 [new Agent/Null] $ns attach-agent $n(3) $null0 $ns connect $udp0 $null0 $ns at 0.5 "$cbr0 start" $ns at 4.5 "$cbr0 stop" $ns at 5.0 "finish" $ns run
Re: [ns] Why "out.data" is empty
Hi there, well out.data should be empty since you never write anything in it. See the comments I put in your code below. I would recommend that you work through the "ns-2 for beginners" scriptum by Eitan Altman and Tania Jimenez. There should be a link to it in the ns-2 FAQ. bye, Martina Umlauft[EMAIL PROTECTED] - http://frauenweb.at/~tina Aleksandar Smolovic schrieb: > I am newbie at NS2. I am trying to make tcl script and to get as much data as > it is possible. As output to simulation I have "out.tr", "trace.nam" and > "out.data" files. > > First two files have some data, but the last one "out.data" is empty (0 > bytes). I don't know why. > > Can you help me with this? > > > Thanks. > > Here si my tcl script> > > set ns [new Simulator] > set namFile [open trace.nam w] > set tr_f [open out.tr w] > set record_f [open out.data w] Here you opened the file out.data and get a filehandle called record_f; same goes for trace.nam/namFile and out.tr/tr_f. > $ns namtrace-all $namFile > $ns trace-all $tr_f Here you told ns to write its nam trace into namFile/trace.nam and its standard trace into tr_f/out.tr. > $ns at 10.0 "finish" > proc finish {} { > global ns > global namFile tr_f record_f this command doesn't write anything into the files; it just makes the names available inside the procedure finish. Basically, it imports the names from the global namespace of the script. This is necessary because they were created outside the procedure. > $ns flush-trace > close $namFile > close $tr_f > close $record_f Here all files are closed. Nowhere else in your code is any reference to record_f (the filehandle for the file out.data). If you want anything to go into the file you have to either write stuff into the file yourself (puts $record_f "your text") or, eg. set it up so it is connected to some entity in ns which writes to a file (eg. queue monitors can write to files). > exec nam trace.nam & > exit 0 > } > set SRC [$ns node] > set R1 [$ns node] > set DST [$ns node] > $ns duplex-link $SRC $R1 1Gb 40ms DropTail > set DuplexLink0 [$ns link $SRC $R1] > $ns duplex-link $R1 $DST 100Mb 1ms DropTail > set DuplexLink1 [$ns link $R1 $DST] > set TCP0 [new Agent/TCP] > $TCP0 set window_ 50 > $TCP0 set packetSize_ 1500 > $TCP0 set fid_ 1 > set TCPSink0 [new Agent/TCPSink] > $ns attach-agent $SRC $TCP0 > $ns attach-agent $DST $TCPSink0 > $ns connect $TCP0 $TCPSink0 > set CBR0 [new Application/Traffic/CBR] > $CBR0 set packetSize_ 1500 > $CBR0 set random_ 0 > $CBR0 attach-agent $TCP0 > $ns at .5 "$CBR0 start" > $ns at 4.5 "$CBR0 stop" > $ns run
Re: [ns] cmu new format trace
Gianko wrote: > Somebody may help me? ... the question was: somebody may hel me in understanding the lines above? G.
[ns] cmu new format trace
When I put node-config with params: [...] -wiredRouting OFF \ -agentTrace OFF \ -routerTrace OFF \ -macTrace OFF \ -movementTrace OFF \ [...] in .tr file there are a lot of: SFs 0.38400 _0_ 45 [0 -> 1] 1(0) to 1 SFs 0.393142857 _0_ 46 [0 -> 1] 1(0) to 1 Somebody may help me?
Re: [ns] generating topology
Hi, Please use "for loops". Refer Eitan Altman's beginner's guide for NS. Vinod Kumar - Original Message - From: "Sita S. Krishnakumar" <[EMAIL PROTECTED]> To: Sent: Thursday, September 28, 2006 8:01 PM Subject: [ns] generating topology > > Hi, > I am interested in generating a random distribution of static nodes for my > simulation. How can I do this in ns-2? I am looking at around 200 nodes > and do not want to hand-generate the topology. > Thanks, > Sita > > > >
[ns] generating topology
Hi, I am interested in generating a random distribution of static nodes for my simulation. How can I do this in ns-2? I am looking at around 200 nodes and do not want to hand-generate the topology. Thanks, Sita
[ns] UMTS Mobile node to mobile node TCP link in Eurane?
Hi, I am trying to set up a TCP link between two mobile nodes say UE1 and UE2 in Eurane. But it doesn't work. I used HS-DSCH channels for both UE1 and UE2. So far I can only set up TCP links between a fixed node and a mobile node. Any idea? Thanks! Wong _ Share your special moments by uploading 500 photos per month to Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://www.get.live.com/spaces/features
[ns] Why "out.data" is empty
I am newbie at NS2. I am trying to make tcl script and to get as much data as it is possible. As output to simulation I have "out.tr", "trace.nam" and "out.data" files. First two files have some data, but the last one "out.data" is empty (0 bytes). I don't know why. Can you help me with this? Thanks. Here si my tcl script> set ns [new Simulator] set namFile [open trace.nam w] set tr_f [open out.tr w] set record_f [open out.data w] $ns namtrace-all $namFile $ns trace-all $tr_f $ns at 10.0 "finish" proc finish {} { global ns global namFile tr_f record_f $ns flush-trace close $namFile close $tr_f close $record_f exec nam trace.nam & exit 0 } set SRC [$ns node] set R1 [$ns node] set DST [$ns node] $ns duplex-link $SRC $R1 1Gb 40ms DropTail set DuplexLink0 [$ns link $SRC $R1] $ns duplex-link $R1 $DST 100Mb 1ms DropTail set DuplexLink1 [$ns link $R1 $DST] set TCP0 [new Agent/TCP] $TCP0 set window_ 50 $TCP0 set packetSize_ 1500 $TCP0 set fid_ 1 set TCPSink0 [new Agent/TCPSink] $ns attach-agent $SRC $TCP0 $ns attach-agent $DST $TCPSink0 $ns connect $TCP0 $TCPSink0 set CBR0 [new Application/Traffic/CBR] $CBR0 set packetSize_ 1500 $CBR0 set random_ 0 $CBR0 attach-agent $TCP0 $ns at .5 "$CBR0 start" $ns at 4.5 "$CBR0 stop" $ns run
[ns] [HELP] Functions implemented in Wireless communication
Hello there, For some reasons, I have to check NS2 implementation of two functions used in wireless(AODV) communication. One is Exponential-backoff Retransmission, the other is intermediate nodes discard the reduplicate messages (due to wireless channel). Anyone knows where I can find the files (maybe .cc/.c/.tcl) that have these implementations. I use NS2-2.29. Thanks a lot. Image
[ns] urgent about setdest : node movement file
Hi I want to create node movement file by "setdest". but when i run this command for example, ./setdest -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 > scen-20-test it gives error as "assertion "spped != 0.0" failed: file "setdest.cc", line 595 Aborted " please help me to solve this problem. Thank you. - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail.
[ns] A router (gateway) between two ad hoc networks
Hello, I am trying to implement a router (gateway) between two ad hoc networks using hierarchical addressing and in two different domains. As an example: MANET 1: 1.0.1 1.0.2 MANET 2: 2.0.1 2.0.2 2.0.3 A shortcut solution is to use two BaseStationNodes, i.e.: BSNode1: 1.0.0 BSNode2: 2.0.0 And linking them with a full duplex link. Since the characteristics of the wired link will interfere with the simulation, I do not like this solution. The better solution is to manipulate the ns-bsnode.tcl implementation for supporting two wireless interfaces in different domains. Could you provide me a solution for this, if anyone has a better one, or implemented one? Regards, Majid *** Majid Ghader Research Officer Centre for Communication Systems Research University of Surrey, Guildford, United Kingdom http://www.ee.surrey.ac.uk/showstaff?M.Ghader ***
[ns] calculating bandwith occupation
hi, to calculate the bandwith ocupation on the channel, i extended the mac-802.11.cc but when i try to calculate the occupation for txSate (when i declare type = Packet_type(p) to know the type of my packet) i have segmentation fault. PS : the same function used on rxState there is no pb. Plz if u have an idea or solution let me know sooon thanks