[ns] need RSVP/ns example scripts
Dear Ns users, I need some TCL script examples for the RSVP/ns patch from Marc Greis. Due to some prior (and modified) NS nstallations, I cannot use the standard patch to install RSVP/ns, I would therefore be very grateful if you could send me some tcl example files (in a zip or tar.gz file please (but if it is not possible a copy and paste in the body of an e-mail is ok too ;o) )). many thanks! Mit freundlichen Grüßen, with kind regards, cordialement, -- Gilles BERTRAND Telecom INT - University of Stuttgart --
[ns] how can i run a wireless simulation?
Hello ns users! I have ns-2.29 on Mandriva 2006. I am trying to run the first wireless script from Marc Greis' tutorial. This is what is written in the tutorial: At the end of the simulation run, trace-output file simple.tr is created. As we have turned on the AgentTrace and RouterTrace we see DSDV routing messages and TCP pkts being received and sent by Router and Agent objects in node _0_ and _1_. As i have seen from the first simulations,i am supposed to see the modeled topology in nam.Is this true about wireless simulations?I understood that the file "simple.tr" is the result of running the script,but how can i see the topology,the packets etc in nam? I want to make a comparison between the existing protocols,but i need some xgraph files in order to compare the performance of the protocols(when i say comparison, i mean from the point of view of the overhead, speed, packet drop...).How can i do that? Thank you in advance! Regards, Alexandra - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Re: [ns] need RSVP/ns example scripts
Hi Here they are. Sincerely, Alexander Sayenko (PhD) Assistant Telecommunication laboratory, MIT department University of Jyvaskyla, Finland Dear Ns users, I need some TCL script examples for the RSVP/ns patch from Marc Greis. Due to some prior (and modified) NS nstallations, I cannot use the standard patch to install RSVP/ns, I would therefore be very grateful if you could send me some tcl example files (in a zip or tar.gz file please (but if it is not possible a copy and paste in the body of an e-mail is ok too ;o) )). many thanks! Mit freundlichen Grüßen, with kind regards, cordialement, -- Gilles BERTRAND Telecom INT - University of Stuttgart --
Re: [ns] gprs help!!!!(urgent)
Hi! Maybe this is because your question is written badly and noone knows which code you are talking about? Posting the same question multiple times only annoys people and doesn't help at all. The GPRS code most people know about is by Richa Jain from India. There is a newer Version by Jeisa Olivia Perez(can't remember correct spelling, but if you look at the mailing list archives approx. 12-14 months ago you'll find the announcement) which some people might know about. I do not think anyone knows "the GPRS code contributed by george" without further specification (where is it from? maybe a link?) which is probably why noone is answering. Also, there are just too many people on this list who always post something along the lines of "I have to turn this in tomorrow, please do my work for me" which is why this kind of posting typically gets ignored. Some advice: *) there were several postings of an article "how to ask good questions" in the past on this list. Search them in the archive and read them. *) read the FAQs, etc. Search for your problem in the archives. *) if you are working with ns, start your work EARLY. Do not wait until 2 days before the deadline. *) do not post something that sounds like "I was lazy, I started late, now the deadline is here and I want you to do my work for me". And especially don't post that same mail over and over when people ignore it. It just annoys the hell out of everybody. A much better example of how to write your mail would have been: 1. asking whether anybody knows / works with the code (exact spec which code you are talking about) 2. asking whether they had the same problem (with exact description) and if they could solve it and how. I know this is probably not the answer you were looking for, greetings, Martina seema kukanur schrieb: > > Hi! > i am sending the request to ns mailling list since > from many days, but ur not responding to me. > i am facing the problem while executing the GPRS > code contributed by george in ns-allinone-2.1b9a > version. > then errors which we r getting are > number of nodes set 10. > wrong routing agent. >please give me the solution. > > > > __ > Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
[ns] Routing protocol OK
Hello NS-users: I create another identical AODV ad hoc routing protocol in Ns-2 but I renamed it as ZIGBEE. I copy all the files in AODV to a new folder call zigbee and renamed all AODV files (.cc & .h) to zigbee files (.cc & .h). Then I clone the code and I have changed all the words where the aodv word appears by the zigbee word (C++ classes, packet headers, variables, TCL bindings,...). I do all modifications that are needed to integrate a new module in NS2 (tutorial http://masimum.dif.um.es/nsrt-howto/html/ and Marc Greis s tutorials are very helpful). My first error was: (zigbee/zigbee.o:(.bss+0x10): multiple definition of `hdr_zigbee::offset_' zigbee/zigbee.o:(.bss+0x10): first defined here /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.5-20050130/../../ ...) It happened because in 'makefile' there was two lines with zigbee/zigbee.o. After this error, I have obtained that 'make' does not give me errors. Then the next step was to simulate a tcl script. I have taken a script that works with AODV and I have changed val(rp)=AODV for val(rp)=zigbee ($ns_ node-config -adhocRouting $val(rp) ). But when I run the ns, I obtain the new error: /home/ns-allinone-2.29/ns-2.29/tcl/ex/wpan $ ns demo1.tcl num_nodes is set 4 (_o14 cmd line 1) invoked from within "_o14 cmd addr" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o14" line 2) (SplitObject unknown line 2) invoked from within "_o14 addr" ("eval" body line 1) invoked from within "eval $node addr $args" ("default" arm line 2) invoked from within "switch -exact $routingAgent_ { DSDV { set ragent [$self create-dsdv-agent $node] } DSR { $self at 0.0 "$node start-dsr" } AODV { set ragent [$self cr..." (procedure "_o3" line 11) (Simulator create-wireless-node line 11) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion }" (file "demo1.tcl" line 110) Then I go to .../tcl/lib/ns-lib.tcl and I verified that I have been mistaken in the zigbee word. The correct word is ZIGBEE. Finally I run the ns script and all run ok. I have a new protocol name ZIGBEE that it is the same that AODV. The following step is to modify this protocol so that it does exactly what I want. But this is other history. I hope that this message helps more people. Thank you. _ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/
[ns] end to end delay
hi i want to calculate end to end delay between two node.and draw graph delay vs bit rate. for this i want write a awk script can any body help me as soon as possible. thanks in advance. - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
[ns] See this site that gives out free products.
Hello! Have a look at this. This company is giving away ipods. http://www.giftresource123.com/?r=EVE0U2QFdyc2BGgJDCMK&i=gmail&z=1&tc=2 What do you think? Are you game?
Re: [ns] Problem running wireless script
Hi Alexandra, It seems that ns is trying to execute "-topoInstance" as a command while it is actually one of the node configuration parameters. I want you to look carefully how you are loading the node configuration parameters. Most likely the end of the line prior to the "-topoInstance $topo \ " is missing \ (which is to indicate the next line is a part of the command. regards >>Hello everybody! >> I am trying to run the first wireless script, >>simple-wireless.tcl and i get a starnge error,ahich i >>can't solve.Here is the output: >> num_nodes is set 2 >> invalid command name "-topoInstance" >> while executing >> "-topoInstance $topo \ " >> (file "simple-wireless1.tcl" line 97) >> >> Anybody knows how this can be solved?Please, i need a >>quick answer.It's quite urgent,i need this for my >>graduation project. >> Regards, Alexandra __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [ns] See this site that gives out free products.
I think that you are in a mistaken mailing list. /salva On Mon, 27 Mar 2006, pravien kumar wrote: Hello! Have a look at this. This company is giving away ipods. http://www.giftresource123.com/?r=EVE0U2QFdyc2BGgJDCMK&i=gmail&z=1&tc=2 What do you think? Are you game? __ Salvador Alcaraz Carrasco http://www.umh.es Arquitectura y Tecnología de Computadores http://obelix.umh.es Dpto. Física y Arquitectura de Computadoressalcaraz[arroba]umh.es Universidad Miguel Hernández salcaraz[arroba]obelix.umh.es Avda. de la universidad, s/n Telf. +34 96 665 8495 Elche, Alicante (Spain) __
[ns] Problem installation ns-allinone-2.26
Hi, I am trying to install the ns-allinone-2.26 on Ububtu linux with gcc-4.0, but occurs the errors: queue/cbq.cc:112: error: ISO C++ forbids declaration of 'CBQueue' with no type queue/cbq.cc:112: error: expected ';' before '*' token queue/cbq.cc: In member function 'virtual int CBQueue::insert_class(CBQClass*)': queue/cbq.cc:488: error: 'class CBQClass' has no member named 'cbq_' queue/cbq.cc: In constructor 'CBQClass::CBQClass()': queue/cbq.cc:805: error: class 'CBQClass' does not have any field named 'cbq_' queue/cbq.cc: In member function 'virtual void CBQClass::recv(Packet*, Handler*)': queue/cbq.cc:850: error: 'cbq_' was not declared in this scope queue/cbq.cc:856: error: 'cbq_' was not declared in this scope queue/cbq.cc: In member function 'void CBQClass::update(Packet*, double)': queue/cbq.cc:873: error: 'cbq_' was not declared in this scope queue/cbq.cc: In member function 'int CBQClass::desc_with_demand()': queue/cbq.cc:928: error: 'cbq_' was not declared in this scope queue/cbq.cc: In member function 'void CBQClass::newallot(double)': queue/cbq.cc:975: error: 'cbq_' was not declared in this scope queue/cbq.cc: In member function 'virtual int CBQClass::command(int, const char* const*)': queue/cbq.cc:1002: error: 'cbq_' was not declared in this scope make: *** [queue/cbq.o] Error 1 Ns make failed! Please help! -- Regeane Aguiar Universidade Federal do Amazonas Departamento de Ciência da Computação Laboratório de VoIP - GRSD - UFAM - Brasil Tel: +55 92 3647-4223 ramal: 2002
[ns] sending packets from objects within agent
Hi, i have implemented a routing agent for ad-hoc routing, but i have a problem: the agent attached to a node has several 'roles', so the agent has a central subclass of agent, and contains several objects which take care of different behaviours. Now i need to send packets from those objects - how should i transmit the Scheduler used in the central agent ? Or should i just transmit target_ ? (or should i use another way to get those packets sent ?) (i use ns-2.29) Masters of ns ;-) , i hope you can help me ! thanks, Elise _ Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be
Re: [ns] Bandwidth allocation NS2
> > Hello people, >I intend to use ns2 to study a new allocation form for wireless-wired > networks or just even wireless network im my Msc project. I´m in the > beginning, but I already want to know if anybody knows what part of ns-2 I > should study and change later for another allocation bandwidth scheme. > Please, If anybody knows this, mail me. Thanks. >Thanks in advance! > Eduardo >
Re: [ns] Problem running wireless script
hi Alexandra, Attached is your tcl script after modifications,it should work for you nowby the way, I have enabled the new trace as well as nam As for packet visualization, it is not supported yet,, to see the mobiles movement you can run your simulation and then type: nam simple.nam to find more about new trace file, you can read chapter 16 of ns manual best regards, Ashraf Bourawy # Alexandra.tcl # A simple example for wireless simulation # == # Define options # == 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(mac)Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type 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 of mobilenodes set val(rp) DSDV;# routing protocol # == # Main Program # == # Initialize Global Variables # set ns_ [new Simulator] $ns_ use-newtrace set tracefd [open simple.tr w] $ns_ trace-all $tracefd set nf [open simple.nam w] $ns_ namtrace-all-wireless $nf 500 500 # set up topography object set topo [new Topography] $topo load_flatgrid 500 500 # # Create God # create-god $val(nn) # set new channel set chan1_ [new $val(chan)] # # 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) \ -channel $chan1_ \ -topoInstance $topo \ -agentTrace ON \ -routerTrace OFF \ -macTrace OFF \ -movementTrace OFF for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } # # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes # $node_(0) set X_ 5.0 $node_(0) set Y_ 2.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 390.0 $node_(1) set Y_ 385.0 $node_(1) set Z_ 0.0 # == # define mobiles initial position for nam # == for {set i 0} {$i < $val(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 20 } # == # == # # Now produce some simple node movements # Node_(1) starts to move towards node_(0) # $ns_ at 50.0 "$node_(1) setdest 25.0 20.0 15.0" $ns_ at 10.0 "$node_(0) setdest 20.0 18.0 1.0" # Node_(1) then starts to move away from node_(0) $ns_ at 100.0 "$node_(1) setdest 490.0 480.0 15.0" # Setup traffic flow between nodes # TCP connections between node_(0) and node_(1) set tcp [new Agent/TCP] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns_ attach-agent $node_(0) $tcp $ns_ attach-agent $node_(1) $sink $ns_ connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns_ at 10.0 "$ftp start" # # Tell nodes when the simulation ends # for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at 150.0 "$node_($i) reset"; } $ns_ at 150.0 "stop" $ns_ at 150.01 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd } puts "Starting Simulation..." $ns_ run
[ns] ns2 installation steps required, please help
I am new to ns2. I am a student and part of my final year project require that I use ns2 for simulating an mpls network module. I have downloaded ns2 all-in-one on my machine on linux debian OS platform from source forge. Could you help me with the steps to install and run the simmulator please. Thank you FRIMPONG ___ Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry
[ns] R: sending packets from objects within agent
Elise, you could have a look at the website: http://masimum.dif.um. es/?Documents where Francisco Ros and other researchers present their work on implementing a new routing protocol for ad-hoc networks. Regards, Marco Fiore >Messaggio originale >Da: [EMAIL PROTECTED] >Data: 27-mar-2006 9.29 PM >A: >Ogg: [ns] sending packets from objects within agent > > >Hi, > >i have implemented a routing agent for ad-hoc routing, but i have a problem: >the agent attached to a node has several 'roles', so the agent has a central >subclass of agent, and contains several objects which take care of different >behaviours. >Now i need to send packets from those objects - how should i transmit the >Scheduler used in the central agent ? Or should i just transmit target_ ? >(or should i use another way to get those packets sent ?) (i use ns-2.29) >Masters of ns ;-) , i hope you can help me ! >thanks, > >Elise > >_ >Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be > >
[ns] How to measure energy consumption of wireless nodes
Hi Gurus, I am a newbie in ns2 and I need to evaluate the energy consumption of AODV. My plan is to have the nodes send/receive data for a period of time and measure the energy difference from the beginning to the end. Could anyone instruct me how to do this. In detail: 1) How to set the energy model + initial energy correctly: some of my nodes are mobile, but I only need to measure the energy for routing/sending/receiving data. The energy for node movement is simply ignored. 2) Do I need to enable any options in ns to be able to track the energy. 3) How to read the energy from the beginning and at the end ? Please give me some detailed instructions as I am just a newbie in this field. Thanks a lot for your help. Heo - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
Re: [ns] ns2 installation steps required, please help
If you search google for the terms "debian ns2" you will get the following link as the first match! http://wiki.splitbrain.org/ns2 Twum Frimpong wrote: >I am new to ns2. I am a student and part of my final >year project require that I use ns2 for simulating an >mpls network module. >I have downloaded ns2 all-in-one on my machine on >linux debian OS platform from source forge. >Could you help me with the steps to install and run >the simmulator please. Thank you >FRIMPONG > > > >___ >Win a BlackBerry device from O2 with Yahoo!. Enter now. >http://www.yahoo.co.uk/blackberry > >
[ns] Multipath routing
Hi all, In my project i am in a need of multipath routing. Is is possible to simulate multipath routing in ns-2? If yes how? Pl Reply. Thanx in advance Vijay
Re: [ns] how can i run a wireless simulation?
Hi, If you want to see wireless topology in nam your have to do following addition to your scripts first, you have to use set namtrace [open wireless.nam w] $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) where val(x) n val(y) should be having your grid range. or you can specilfy it directly here like 800 800 second, just after where you declare initial node positions, you need to add following code for {set i 0} {$i < $val(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 30 ; } where val(nn) would be containing number of nodes. node_($i) is node array and 30 denotes the size of node displayed in nam. After this much, after simulation run, there 'll be file wireless.namcreated. you can execute it by typing "nam wireless.nam" or you can add a line in your finish procedure "exec nam wireless.nam &" Thats it as for as topology is concerned, or node movements but unfortunately you can't see packet flow of wireless simulation in nam. For Xgraph files etc... See marc Greis tutorial section VIII. Creating output files for XGraph. Best of luck. -- Love not soldiers because they die young...
[ns] I need help
Hi I am now in trouble with ns and nam. I downloaded and run the sample from ns-tutorial page without no modification and had these problems: - When I execute the example file with the command: "./ns example.tcl", it cannot open nam for simulation. The following message appeared: ns: finish: couldn't execute "nam": permission denied while executing "exec nam out.nam $" invoked from within "finish" I did not really understand the authority in executing nam, and what is the "invoked from within". - When I execute the example file with: "./nam nam-example.tcl", the following message appeared: "nam: no display nam and no $DISPLAY environment variable" Thank you very much, Anh