[ns] movie in ns2 formate
hi can any one work on video signal. please send me the link for video signal (jurassic park, star war )in ns2 formate as soon as possible. and how i attact this to the source. - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
Re: [ns] NAM trace file -e option
Hi, 210 bytes is the total size of the packet. This includes the size of all the headers (RTP/UDP/IP/...) + the size of the payload. You'll have to use the protocol's access methods to query for the real size of the payload. However if you're simulating CBR stuff over RTP then all your calculations would be simplified since the payload size is likely to be constant through the time (think of an MP3 frame or an MPEG TS packet, etc.). Regards, Ilyes Gouta. On 4/25/06, Faisal Siddiqui <[EMAIL PROTECTED]> wrote: > > Hi, > > I am a bit confused with the -e option in the NAM trace file. I believe it > means the size of the packet. The wording "size of the packet" is throwing > me off. Does it means the size of the packet header that we are using in our > script or is it something else. For instance, when I simulate my script with > the RTP agents, it tells me the size of the rtp packet header is 210 bytes. > But when I look in the code and count the number of bytes that the packet > reserves, it is as follows: > > > struct hdr_rtp { > u_int32_t srcid_; // 4 bytes > intseqno_; // 4 bytes > u_int16_t flags_; // 2 bytes > static int offset_; // 4 bytes > inline static int&offset() {} // 4 bytes > inline static hdr_rtp* access() {}// 4 bytes > u_int32_t&srcid() {} // 4 bytes > int& seqno() {} // 4 bytes > u_int16_t&flags() {} // 4 bytes > }; > > > So from here, the size of the RTP packet header is only 34 bytes. > > Why does in the trace file with -e option, we get the size of the packet as > 210 bytes? > > Any help is highly appreciated. > > Thanks, > - Faisal >
[ns] I am a new NS2 user, need help
Hi, I am working on my bachelor thesis work with the NS2, and I want to create a new command that sends 1 packet to a specific node, by giving the address of this node as an argument to this function. could you please help me. thank you in advance __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [ns] movie in ns2 formate
http://140.116.72.80/~smallko/ns2/myEvalvidNT.htm Try my work. If there is any suggestion, please let me know. BRs, Ke - Original Message - From: minaxi rawat To: aug ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; ns ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 3:08 PM Subject: [ns] movie in ns2 formate hi can any one work on video signal. please send me the link for video signal (jurassic park, star war )in ns2 formate as soon as possible. and how i attact this to the source. - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
[ns] Which ad hoc routing protocol is used in 802.11?
Hi All, Which ad hoc routing protocol is used in 802.11? I can't find any information about this. Can any one help me? Thanks a lot. Best regards. jeevesh kumar - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
[ns] Address confusion !!??
Hi, Can anyone, tell me what is the difference between this 2 types of addresses : ns_addr_t and nsaddr_t thanx Best regards __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[ns] Getting Error : Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl)
Dear all, I tried creating a new simple Agent which broadcasts the packets with its fields set statically. I created a linear static topology just to set if the broadcast works. The topology is like 01 2 Part of my tcl script is set p0 [new Agent/Ant] $node_(0) attach $p0 set p1 [new Agent/Ant] $node_(1) attach $p1 set p2 [new Agent/Ant] $node_(1) attach $p2 $ns at 1.0 "$p0 broadcast" $ns at 1.5 "$p0 broadcast" $ns at 2.0 "$p1 broadcast" Now when 0 broadcasts it is correctly received by 1. when 1 broadcasts, it should be received by both 0 and 2 since both are within 1's tranmission range(???). Now i get the following output : num_nodes is set 3 INITIALIZE THE LIST xListHead channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! Node 1 received broadcast from 0 with no of neighbors 10 Node 1 received broadcast from 0 with no of neighbors 10 Node 0 received broadcast from 1 with no of neighbors 10 --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o74: no target for slot 0 _o74 type: Classifier/Port content dump: classifier _o74 0 offset 0 shift 2147483647 mask 1 slots slot 255: _o76 (CMUTrace/Recv) -- Finished standard no-slot{} default handler -- The problem is node2 is not receiving anything and it is showing some error. Please help me in fixing this problem. I need this to proceed with my final year engineering project. Please help me please... Regards S.Rajapriya - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Re: [ns] Compiling NS2.29.2 on FC5
Hi, Yeah, FC5 comes with a brand new GCC compiler (the 4.0.x series). This is the source of all the trouble. I did the same from Tcl/Tk and I was able to get it up and building. However, I got some other issues w/ OTcl/TclCl related to some shell incompatibilities (expression evaluation) and then I gave up since a release is meant to run flawlessly out of the box and it's not up to the users to fix it. I hope it gets fixed by the next pending NS 2.30 release. Regards, Ilyes Gouta. On 4/26/06, Alex Triffitt <[EMAIL PROTECTED]> wrote: > > > > I had exactly the same problem and had to give up. I got as far as updating > the all-in-one package files of TCL and TK so they were version 8.4.13 and > updated the install file. I then corrected some syntax errors in the > otcl1.11/configure and otcl1.11/configure.in as per the instruction here: > http://sourceforge.net/mailarchive/forum.php?thread_id=10098188&forum_id=22760 > Then I had compilation errors with NS which no one seemed to be able to help > with and it appears that because FC5 comes with the latest GCC compiler it > doesn't like some of the NS compile commands somehow. Down grading the GCC > compiler was too much of a head ache so I installed cygwin and now I happily > run NS in windows. Let me know if you do manage to get it compiled in FC5 > I'd be very interested to try it again > > Alex > >
[ns] How to change seed in NS2
Hello every one I have used these commands to change the seed in ns-2: set val(seed) 0.0 but when I run the same simulation many times, I got the same sesults. is there any help Thanks in advence Nadine ___ Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Rendez-vous sur http://fr.yahoo.com/set
[ns] help regarding for awk file
i m working on simulation of adhoc networks. i want throughput & Delay calculation awk program for trace file analysis. thanks
Re: [ns] Address confusion !!??
ns_addr_t is a structure like below. struct ns_addr_t{ int32_t nsaddr_t; int32_t nsmask_t; ... }; nsaddr_t is a 32 bit integer like below. typedef int32_t nsaddr_t; for details, please have a look in ~/ns-2.2x/config.h Regards, Abdul Awal. - Original Message - From: "Chams D" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 26, 2006 1:00 PM Subject: [ns] Address confusion !!?? Hi, Can anyone, tell me what is the difference between this 2 types of addresses : ns_addr_t and nsaddr_t thanx Best regards __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[ns] need urgent help
Hi In file packet.h , I have added the following line: typedef set addr_set_t; When I compile NS, I have the following error: * In file included from tcp-full.cc:91: template.h:96: redefinition of `template void swap(Type &, Type &)' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_algobase.h:78: `template void swap(_Tp &, _Tp &)' previously declared here template.h:96: redefinition of `void swap(Type &, Type &)' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_algobase.h:78: `void swap(_Tp &, _Tp &)' previously defined here /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_relops.h: In function `bool operator >=(const TracedInt &, const TracedInt &)': tcp-full.cc:1040: instantiated from here /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_relops.h:53: no match for `const TracedInt & < const TracedInt &' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_relops.h:53: candidates are: operator <(int, int) make: *** [tcp-full.o] Erreur 1 What is the origine of this errorIs there any one hwo can help me Thanks in advans nadine ___ Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Rendez-vous sur http://fr.yahoo.com/set
Re: [ns] help regarding for awk file
try http://www-sop.inria.fr/maestro/personnel/Eitan.Altman/ns.htm site step by step. follow the lecture notes. - Original Message - From: "rahul barche" <[EMAIL PROTECTED]> To: "ns_users_request" <[EMAIL PROTECTED]>; "ns_users" Sent: Wednesday, April 26, 2006 1:25 PM Subject: [ns] help regarding for awk file i m working on simulation of adhoc networks. i want throughput & Delay calculation awk program for trace file analysis. thanks
[ns] Need information abt working of Pcap.
hello, i am using ns2.29 for the development of network emulator testbed, could any one plz tel how emulator captures the packets using pcap and sends it to source and from sink to the destined node i.e., can any one briefly tell me the working of pcap. Also any links where we get d detailed information abuot pcap THANKS AND REGARDS..
[ns] Which is the final file/code that handles a packet at the destination?
Hello, Could you please tell me which file/code in ns is responsible for processing a cbr packet, and discard it (after writing any traces) as it has reached its destination and does not need to be forwarded again? The code which calls on the cmu-trace for the "agent" tracing of the reception of the packet seems to be the final task before the packet is forwarded (sent to the routing agent) or discarded if it has reached its destination, but I could not locate where this code actually is. Could anyone please guide me? Thanks. Ma Send instant messages to your online friends http://au.messenger.yahoo.com
Re: [ns] Compiling NS2.29.2 on FC5
Ilyes Gouta schrieb: > Yeah, FC5 comes with a brand new GCC compiler (the 4.0.x series). This > is the source of all the trouble. I did the same from Tcl/Tk and I was > able to get it up and building. However, I got some other issues w/ > OTcl/TclCl related to some shell incompatibilities (expression > evaluation) and then I gave up since a release is meant to run > flawlessly out of the box and it's not up to the users to fix it. I > hope it gets fixed by the next pending NS 2.30 release. > You should try the CVS version - it compiles with gcc 4.0.x and 4.1.x without problems - at least on a Debian 3.1 system. Daniel.
Re: [ns] Can we change the transmission range of the node during the simulation?
Hi, You can change the nodes transmission range by changing the value of RXThresh_ of Phy/WirelessPhy by doing : Phy/WirelessPhy set RXThresh_ A separate C program is provided at ~ns/indep-utils/propagation/threshold.cc to compute the receiving threshold. You have to compile it, then you can use the executable to compute the threshold as follows: threshold -m [other-options] distance Ex: threshold -m Shadowing -r 0.95 50. Here the propagation model is Shadowing, the communication range is set to 50m, and 0.95 is the rate of correctly received packets. Hope it helps. On 4/24/06, Sivakumar Kulasekaran <[EMAIL PROTECTED]> wrote: > > Hi > > I like to know how can we change transmission range between nodes to > different values in dsr?? > > I like to know is it possible to do that > > Also NOAH routing agent , i got an error saying wrong routing agent!!! > can anyone help me on this >
Re: [ns] modify node no of nodes in tcl script codes
Hi, You can specify node movements using "setdest" utility, which will generate a file with initial positions and movements of the nodes. then you have to source this file in your tcl file. You can find more details in the ns_manuel about that. Bye. On 4/24/06, mohd hammad <[EMAIL PROTECTED]> wrote: > > hi > during the implementation the ad hoc routing protcole > such as aodv dsr and dsdv i do the following > Iam trying to modify my tcl script to optain the no of > nodes to be 50 nodes from 6 nodes using the xgraph > visual tool but i faild > becouse the 50 need to defined the movement and > sceinario file > > can any body help me > or owrking to gather > please > best regards > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > >
Re: [ns] Compiling NS2.29.2 on FC5
Try following the instructions on this page (to update the allinone package with the current CVS snapshot, which is reported to support FC5): http://nsnam.isi.edu/nsnam/index.php/Updating_Ns_Allinone Please let me know if that helps. Tom
[ns] How catch Parameters of 802.11 wireless Network Card?
Hi , How do you Earn Special Parameters(Such as CPTHRESH_,RXTHRESH_, CSTHRESH_ , ) For A Special 802.11b wireless Network Cards? thanks in advance for your helps. Best Regards Hamid Reza __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [ns] Floating point exception in NS-2
I'm replying to myself, sorry. I forgot to add that I'm running this on Linux Ubuntu Breezy on a dual Xeon computer. Does someone know why the function below works fine in a basic C program but crashes in NS-2? Thanks in advance, Arkaitz On 4/25/06, Arkaitz Bitorika <[EMAIL PROTECTED]> wrote: > > Hello, > > I am using a Python numerical library (http://www.numpy.org/) embedded in > NS, and while there's no problem on most of the functionality, I've found > that there's a function that throws a Floating point exception whenever it's > called from NS. This function is pasted below, it has no dependency on > Python, it also throws the Floating point exception when called from a > vanilla NS-2 installation: > > double > pinf_init(void) > { > double mul = 1e10; > double tmp = 0.0; > double pinf; > > pinf = mul; > for (;;) { > pinf *= mul; > if (pinf == tmp) break; > tmp = pinf; > } > return pinf; > } > > This function runs fine when called from an empty main() C++ program, but > if called from NS-2 I get the Floating point exception. Any idea what may be > causing this crash? > > Thanks, > Arkaitz >
[ns] Urgent help ,in Make
Sir, I am ahving problem running my Aodv code during make the error is like this aodv/aodv.o(.gnu.linkonce.t._ZN15WirelessChannel8instanceEv+0x4): In function `WirelessChannel::instance()': : undefined reference to `WirelessChannel::instance_' aodv/aodv.o(.gnu.linkonce.t._ZN11CBR_Traffic4instEv+0x4): In function `CBR_Traffic::inst()': : undefined reference to `CBR_Traffic::inst_' collect2: ld returned 1 exit status make: *** [ns] Error 1 if any one has encountered this type of problem please help me out. With regards Rakesh Tripathi __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [ns] How to change seed in NS2
Hi maline nadine, I have had same problem too. I solved it this way. For every iteration, I seeded the defaultRNG with the random number generated in previous iteration. I hope this will help. Here is the implementation. #for generating random integer b/n min and max set nextseed 0.0 proc randomNumber { min max } { global nextseed global defaultRNG $defaultRNG seed $nextseed set nRNG [new RNG] $nRNG next-substream set num_ [new RandomVariable/Uniform] $num_ set min_ $min $num_ set max_ $max $num_ use-rng $nRNG set nextseed [expr round([$num_ value])] return $nextseed } malin nadine <[EMAIL PROTECTED]> wrote: Hello every one I have used these commands to change the seed in ns-2: set val(seed) 0.0 but when I run the same simulation many times, I got the same sesults. is there any help Thanks in advence Nadine ___ Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Rendez-vous sur http://fr.yahoo.com/set __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[ns] Uni directional links in dsr
HI I want to simulate effects of unidirectional links in dsr. As it uses mac 802.11 ,how can i simulate unidirectinal links between nodes What necessary changes i require to make Can anybody help on this THanks Kumar
[ns] Strange Erro
hi, Im simulating my new qos routing protocol in ns-2. I got this strange error while simulating - ns: _o500 reset: can't read "ll_(0)": no such variable while executing "$ll_($i) reset" (procedure "_o500" line 6) (Node/MobileNode reset line 6) invoked from within "_o500 reset" - Could anyone pls let me know what does this mean. Its kinda very urgent..so any inputs would be great. Strange thing is..when my simulation time was set for 2400 secs..this error dint come...but when i set it to 500s this error comes. Thank you, Vinod -- Vinod Kone, Btech,Computer Science, VIII sem, Room 177,Kapili, IIT Guwahati.
[ns] How to access c++ variable from tcl
Hi I am saving node addresses in an array.I added this instructions in the function recv() of my agent. And I want to access this table from the TCL interpreter. how can I do this ?? thank you __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[ns] Stumped on this problem
Hi, I have been learning how to use ns and I have run across a couple of problems. The first problem is the NAM editor seg faults when any objects are deleted, even a simple node, on linux, fedora core 4. My second problem has to do with dynamic routing, in one of my simulations there are some agents talking to other agents across the network and on that part of the network there is only one connection. In the simulation I have that single connection go down for a short period of time and this is when all hell breaks loose. All the nodes keep sending the packets to update node information constantly until there are millions of these packets circulating around the network, never disapearing. I am wondering how you can set either a timeout or max # of hops on the packets to keep this happening or is this a bug in NS? Turning off the dynamic routing fixes the problem and the simulation works as expected for that part. If any of you can help me on this problem, it will be appreciated. Thank you, Randy
Re: [ns] using a trace file as a traffic generator
On 4/26/06, piyush sharma <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have got a trace file with me which contains the record of some one > hour of internet traffic. There are two columns in the file : one for the > packet arrival times and the other for the packet lengths in bytes. I want > to use this trace file to generate the traffic for my ns2 simulations so as > the traffic generator should be able to generate the packets according to > the arrival times and packet sizes as they are in the trace file. > > How can I do it? > > Piyush >
Re: [ns] How to access c++ variable from tcl
Hi, You can access this function (recv as you say) via command function. Command function in your c++ code serves as an interface between tcl code and c++ code. All you need is adding some peace of code that controls wihch arguments passed by the tcl interpreter. Like that: int MyAgent::command(int argc, const char*const* argv) { if (argc==2) { if (strcmp(argv[1],"recv")==0) { recv(); return (TCL_OK); } } } Best Regards. Guzin Ulutas (CEng)
Re: [ns] NAM trace file -e option
Hi, I understand your point. I would really appreciate if you could elaborate more and direct me to the exact structure location in the code from whre we compute the packet size for -e option. I tried to look in the code but can't really pinpoint the structure from which it computes the packet size. Another thing I noticed was the incorrect hdr_cmn size being reported. I checked the sizeof (hdr_cmn) and it reported the size as 96 bytes. But if you go to the hdr_cmn structure, you will find that it's size should be much bigger than 96 bytes because of obvious reasons. Any comments are appreciated. Thanks, - Faisal On 4/26/06, Ilyes Gouta <[EMAIL PROTECTED]> wrote: > > > Hi, > > 210 bytes is the total size of the packet. This includes the size of > all the headers (RTP/UDP/IP/...) + the size of the payload. You'll > have to use the protocol's access methods to query for the real size > of the payload. However if you're simulating CBR stuff over RTP then > all your calculations would be simplified since the payload size is > likely to be constant through the time (think of an MP3 frame or an > MPEG TS packet, etc.). > > Regards, > Ilyes Gouta. > > On 4/25/06, Faisal Siddiqui <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I am a bit confused with the -e option in the NAM trace file. I believe > it > > means the size of the packet. The wording "size of the packet" is > throwing > > me off. Does it means the size of the packet header that we are using in > our > > script or is it something else. For instance, when I simulate my script > with > > the RTP agents, it tells me the size of the rtp packet header is 210 > bytes. > > But when I look in the code and count the number of bytes that the > packet > > reserves, it is as follows: > > > > > > struct hdr_rtp { > > u_int32_t srcid_; // 4 bytes > > intseqno_; // 4 bytes > > u_int16_t flags_; // 2 bytes > > static int offset_; // 4 bytes > > inline static int&offset() {} // 4 bytes > > inline static hdr_rtp* access() {}// 4 bytes > > u_int32_t&srcid() {} // 4 bytes > > int& seqno() {} // 4 bytes > > u_int16_t&flags() {} // 4 bytes > > }; > > > > > > So from here, the size of the RTP packet header is only 34 bytes. > > > > Why does in the trace file with -e option, we get the size of the packet > as > > 210 bytes? > > > > Any help is highly appreciated. > > > > Thanks, > > - Faisal > > > >
[ns] How to stop a source from sending pkts
hi, can anyone tell me how to go about in this case: Suppose in AODV protocol, an error packet comes to the source node indicating that no route to the destination is possible. Now, i want my source to not send data packets at all i.e., this particular flow should not be admitted. Where exactly can I tell my source node to not send data packets. I mean in the aodv.cc file or any other place. Thanx, Vinod -- Vinod Kone, Btech,Computer Science, VIII sem, Room 177,Kapili, IIT Guwahati.
[ns] odmrp simulation under ns-2.1b8-mcast
Hi, i tried to simulate the odmrp version included in ns-2.1b8-mcast and when i execute the command "./ns scripts/run.tcl -x 1200 -y 800 -stop 900 -tr TRACES/out.tr -mg mcast_communication_scenarios/cbr_100_4x64_3x3x20_mcast_ns_rs -sc movement_scenarios/scen-1200x800-100-0-20-1 -nn 100 -rp odmrp", the simulation never ends. I let it running all night and the size of the trace file out.tr was 2Go when i stopped. I don't think it's a normal behavior Do you hae an idea? I have tried to do what says http://www.mail-archive.com/ns-users@isi.edu/msg01878.html but it do no work anyway. P.S : is there any odmrp implementation on a newer ns version ? Thanks for your help Cédric Ferraris This message was sent using IMP, the Internet Messaging Program.
[ns] Xcast (Explicit Multicast) implementation
Hi, i wanna know if there is an implementation under ns2 of any explicit multicast protocol for MANET (such as DDM, E2M or even the basic Xcast scheme) ? Thanks Cédric Ferraris
Re: [ns] here is a wirless code if it helps you have look
Hi all There are some one who looking for wirless code ..here is some wirless code if it helps have look... # == # Define options # == set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagationmodel set val(netif) Phy/WirelessPhy ;# network interfacetype set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type ** I change this ifq value to different algorithms * set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 2 ;# number ofmobilenodes set val(rp) DSDV ;# routing protocol # ===nam === # Main Program # == #Open the output files #set f0 [open out0.tr w] #set f1 [open out1.tr w] # # Initialize Global Variables # set ns_ [new Simulator] set tracefd [open trace/case1a.tr w] set namtrace [open nam/case1a.nam w] $ns_ use-newtrace # set up topography object set topo [new Topography] $topo load_flatgrid 600 500 #set node_(0) [$ns_ node] #set node_(1) [$ns_ node] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace 600 600 # # Create God # set god_ [create-god $val(nn)] # # Create the specified number of mobilenodes [$val(nn)] and "attach" them # to the channel. # Here two nodes are created : node(0) and node(1) # 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) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable randommotion } # # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes set sink [new Agent/TCPSink] # $node_(0) set X_ 100.0 $node_(0) set Y_ 300.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 500.0 $node_(1) set Y_ 300.0 $node_(1) set Z_ 0.0 for {set i 0} {$i < $val(nn)} {incr i} { # 20 defines the node size in nam, must adjust it according to your scenario # The function must be called after mobility model is defined $ns_ initial_node_pos $node_($i) 40 } # - start here #Create a CBR agent and attach it to node n0 set udp [new Agent/UDP] $ns_ attach-agent $node_(0) $udp #$udp set class_ 1 #$udp set fid_ 1 set lost0 [new Agent/LossMonitor] #$ns_ attach-agent $node_(0) $lost0 set cbr [new Application/Traffic/CBR] $cbr set packetSize_ 1000 #$cbr set interval_ 0.01 $cbr set rate_ 5 Kb $cbr attach-agent $udp set udp2 [new Agent/UDP] $ns_ attach-agent $node_(0) $udp2 #$udp2 set class_ 1 #$udp2 set fid_ 1 set cbr2 [new Application/Traffic/CBR] $cbr2 set packetSize_ 1000 #$cbr set interval_ 0.01 $cbr2 set rate_ 6 Kb $cbr2 attach-agent $udp2 set null1 [new Agent/Null] $ns_ attach-agent $node_(1) $null1 $ns_ connect $udp2 $null1 #Create a Null agent (a traffic sink) and attach it to node set null0 [new Agent/Null] $ns_ attach-agent $node_(1) $null0 $ns_ attach-agent $node_(1) $lost0 #Connect the traffic sources with the traffic sink $ns_ connect $udp $null0 # VBR traffic generating section set udp3 [new Agent/UDP] $ns_ attach-agent $node_(1) $udp3 set null3 [new Agent/Null] $ns_ attach-agent $node_(0) $null3 $ns_ connect $udp3 $null3 set tfile [new Tracefile] $tfile filename /root/vin/final/starwars.nsformat set trace [new Application/Traffic/Trace] $trace attach-tracefile $tfile $trace attach-agent $udp3 # end of VBR set tcp1 [new Agent/TCP] $tcp1 set class_ 2 $tcp1 set fid_ 2 set sink1 [new Agent/TCPSink] set ftp [new Application/FTP] $ftp attach-agent $tcp1 $ns_ attach-agent $node_(0) $tcp1 $ns_ attach-agent $node_(1) $sink1 $ns_ connect $tcp1 $sink1 set tcp2 [new Agent/TCP] set sink2 [new Agent/TCPSink] set tel [new Application/Telnet] $tel attach-agent $tcp2 $ns_ attach-agent $node_(0) $tcp2 $ns_ attach-agent $node_(1) $sink2 $ns_ connect $tcp2 $sink2 #Schedule events for the CBR agents $ns_ at 1.0 "$cbr start" $ns_ at 35.5 "$cbr stop" $ns_ at 3.0 "$ftp start" #VBR $ns_ at 16.0 "$trace start" $ns_ at 19.0 "$trace stop" $ns_ at 22.0 "$trace start" $ns_ at 26.0 "$trace stop" $ns_ at 4.0 "$cbr2 start" $ns_ at 20.0 "$cbr2 stop" $ns_ at 7.0 "$ftp produce 100" $ns_ at 4.0 "$tel start" $ns_ at 10.0 "$tel stop" $ns_ at 14.0 "$ftp produce 100" $ns_ at 20.0 "$ftp produce 100" $ns_ at 33.0 "$ftp produce 200" $ns_ at 36.0 "$ftp produce 200" #-- # # Tell nodes when the
Re: [ns] [bug] Build failure on 64-bit Mandriva 2006.0
> From: "D. R. Evans" <[EMAIL PROTECTED]> > Subject: [ns] [bug] Build failure on 64-bit Mandriva 2006.0 > > This is a copy of the stuff originally entered into a bug report form > at isi.edu: > > [Bug Report] > > - > Category: Installation Failure > Package: otcl ns-allinone-2.29 > OS:Linux (Mandriva 2006.0 x86_64) > Environment Variables: > LD_LIBRARY_PATH= > TCL_LIBRARY= > TK_LIBRARY= > (all three are empty) > > (snip) > > gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. > -I/tmp/ns-allinone-2.29/include -I/tmp/ns-allinone-2.29/include > -I/tmp/ns-allinone-2.29/include -I/include otcl.c > ld -shared -o libotcl.so otcl.o > rm -f libotcl.so > gcc -o otclsh -g -O2 -I. -I/tmp/ns-allinone-2.29/include > -I/tmp/ns-allinone-2.29/include -I/tmp/ns-allinone-2.29/include > -I/include otclAppInit.c \ > -L. -lotcl -L/tmp/ns-allinone-2.29/lib -ltk8.4 > -L/tmp/ns-allinone-2.29/lib -ltcl8.4 -L/usr/X11R6/lib -lXext -lX11 > -lnsl -ldl -lm > /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when > searching for -lXext > /usr/bin/ld: cannot find -lXext > collect2: ld returned 1 exit status > make: *** [otclsh] Error 1 > otcl-1.11 make failed! Exiting ... > This seems to be a recurring problem; see my response here from last month: http://mailman.isi.edu/pipermail/ns-users/2006-March/054442.html