[ns] urgent : how to generate forwarding node in wireless network
hi i am working on wireless network scenario in which one node retransmit the data received to other node. I am looking for these scenario urgently. if anybody knows this please share related knowledge. thanks in advance harpreet singh
[ns] mpls networks at ns v2.30
Hello, I installed the ns-simulator-all-in-one 2.30. I'm trying to simulate mpls networks with explict routes. I would like to know what version of mns is included in ns 2.30. There is a directory mpls called mpls inside root program dir. If anyone have a documentation about mns ou some examples, please send it to my e-mail. Best Regards! Carlos Vale
Re: [ns] How to call a procedure after a constant delay
- At first you need to schedule the loop proc to execute at the start (or whenever you like) of the simulation. Then, you need to put the re-scheduling code inside the procedure itself in order to make it recursive. In this way the loop procedure will execute once at the start of the simulation and then every time it is executed it will re-schedule itself. You can also use the now method of the Simulator object, in order to get the exact current time of execution of the procedure as below. For example you need to change the code to something like this: proc loop {} { global abc value inc ns set value [$abc get_value] set current_time [$ns now] set time [expr {$current_time + $inc}] $ns at $time loop exit 0 } set time 0.2 set inc 0.01 $ns at $time loop } On 2/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: -- Forwarded message -- From: Somera Javed [EMAIL PROTECTED] To: ns-users@ISI.EDU Date: Fri, 9 Feb 2007 03:41:46 +0500 Subject: [ns] How to call a procedure after a constant delay Hi, i am trying to call a procedure after a delay of every 0.01 sec proc loop {} { global abc value set value [$abc get_value] exit 0 } set time 0.2 set inc 0.01 while 1 { $ns at $time loop set time [expr $time + $inc] if {$value == 1} break; } but the program stuck while execution what is the right way to do this??? -- Forwarded message -- From: Scott Ricketts [EMAIL PROTECTED] To: ns-users@ISI.EDU Date: Thu, 8 Feb 2007 15:29:47 -0800 Subject: Re: [ns] How to call a procedure after a constant delay It looks to me like you are putting the Otcl interpreter in an infinite loop before the simulation starts. That is, loop is getting scheduled every time the while loop iterates, but it does not actually get called until you do $ns run, so $value never gets set. -Scott ___ Ns-users mailing list Ns-users@isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users -- 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] urgent : Multiple hopping from source to dest
thanks guys. is this possible to provide some fixed hopping node or routng path in mobile network. and what happened if the node which is out of range want to send packets through base station. let n3 out of range bs is base station and signal reached to n3 from bs through n2. but if n2 want to communicate n1 any other node which path signal follow now. 1. signal goes to bs through n2 and then from bs to b1 or 2. signal goes to n1 from n3 directly if its in range or 3. signal goes to n1 from n3 through hopping at node n2. can u please tell me how to implement patch for routing. thanks guy for help. One way to introduce multihop is to increase the distance between each node to be 250m, as the default trasnmission range for each node is set to be 250m, alternatively you can decrease the transmit power for each node, thus if you have 3 nodes (a,b c), and you want to transmit from a to c, then if you set less transmit power e.g. 40m for each node. You will observe message reaching c via b. Alternatively you can introduce NOAH routing protocol, this allows you to create a multihop scenario within the requred nodes (you will need to download the patch and install NOAH. I hope this helps Kind regards Qasim Raza Iqbal PhD Candidate, ACNRG Lab N504, Office N505 Adaptive Communications Networks Research Group, School of Engineering And Applied Science Aston University Birmingham B4 7ET United Kingdom http://www.ee.aston.ac.uk/research/acrg/index.html Make sure that transmission range is less than inter-node distance. You can see the archives on how to set the transmission range. In the process, you will also require to use the program: ns-2.30/indep-utils/propagation/threshold Tarun On 8 Feb 2007 16:46:17 -, harpreet [EMAIL PROTECTED] wrote: Hi I am a beginner in NS. I am trying to simulate multihopping in a linear network on n nodes where the source is node1 and destination is node-n. I am using DSR as the routing protocol.But instead of multi hopping node 1 is directly sending packets to node n. How can I make node 1 transmit to node n by by hopping through all the intermediate nodes? harpreet singh harpreet singh
Re: [ns] Multi-interface support howto
i got the wirless tracing back to business: replaced: set sndT [cmu-trace Send RTR $self] (see below) with: set sndT [$self mobility-trace Send RTR] $sndT namattach $namfp Tim Elschner schrieb: i found out that a missing line in ns-mobilenode.tcl caused that strange behaviour. since i correctly added set sndT [cmu-trace Send RTR $self] the traffic seems to be fine, except that the wireless packets don't appear in NAM anymore. -tim Tim Elschner schrieb: hi, i'm trying to user mutliple interfaces with the adhoc routing agent noah - which stands for NO AdHoc routing. i use only one mobile node, and some basestations with foreign agents, an home agent and a corresponding node. as noah doesn't need a routing table, i use a map for storing the interface. i use the prev_hop field in the common-header to associate the interface. in the forwardPacket function - which is for unicast transmissions - i use the information stored in the map to send the packets through the correct interface. this works fine with interface 1, but fails vor interface 0. all packets are dropped. if i just flip the channels between interface 0 and 1, still interface 1 is working and interface 0 fails. did i miss something? hints anyone? :) cheers, tim Ramon Aguero schrieb: Hello Tim, thanks for pinpointing the error! Somehow I made a mistake when copying and pasting the code to the file. The correct procedure would be the following one (note that the arptable_ is now within the 'for' cycle). In this sense, I don't think you need to change all arptable_ into arptable. Hope this helps. Node/MobileNode instproc reset {} { $self instvar arptable_ nifs_ netif_ mac_ ifq_ ll_ imep_ for {set i 0} {$i $nifs_} {incr i} { $netif_($i) reset $mac_($i) reset $ll_($i) reset $ifq_($i) reset if { [info exists opt(imep)] $opt(imep) == ON } { $imep_($i) reset } if { $arptable_($i) != } { $arptable_($i) reset } } } Cheers, Ramón PS - I've already modified the document -- with the correct procedure -- in the web page: http://personales.unican.es/aguerocr At 16:39 18/01/2007, Tim Elschner wrote: great job as far as i can see. anyway i ran into problems with ns-mobilenode.tcl: in Node/MobileNode instproc reset i couldn't find any differences to the original. i got an error, that arptable_ is an array. so i changed every arptable_ into arptable. now ns2 complains about the missing variable arptable :( any hints out there? cheers, tim Ramon Aguero schrieb: Dear all, We have seen a lot of requests about the possibility to extend the NS-2 framework to support multiple interfaces. Although there is some information available, according to the messages that have been sent to this list, it seems that a more thorough description may be required. In this sense, after performing an analysis about existing activities in this topic, we have created a document that tries to summarize which are the required changes to be performed within the different pieces of the simulator (tcl, c++) as well as how routing protocols can be adapted to make use of the new feature. The howto is entitled Adding Multiple Interface Support in NS-2 and it has been written by my colleague Jesús Pérez and myself. I’ve uploaded the document, which can be retrieved from the following url: http://personales.unican.es/aguerocrhttp://personales.unican.es/aguerocr We will be happy to receive any feedback, comments, so as to improve the howto, since we would like to have it like a living document, adding new features as they are available. Best regards, Ramón Ramón Agüero Calvo Dept. of Communications Engineering Network Planning Mobile Communications Laboratory University of Cantabria Avda Castros s/n 39005 - Santander SPAIN [EMAIL PROTECTED] Tel: +34 942 201 392 (Ext 14) Fax: +34 942 201 488
[ns] variable nsaddr_t
hi Qual a diferença de uma variavel ns_addr_t de uma variavel inteira.? This message was sent using IMP, the Internet Messaging Program.
[ns] VoIP script or simulation -mine attached
Hello All I am tryin to do VoIP simulation in NS with Wimax NEtwork. Can anyone help me getting a VoIP script. I have written one of my own,but it gives me output where there are only all send packets. Can you suggest anythng for the same,or if anyone has any voip simulation script before, can you please send me that. I am attaching mine here, if you have any suggestions for that, it will help a lot. Thanks in advance and looking forward for some help. -- Thanx Shaili Desai Master's Candidate Telecommunications and Management University of Maryland,College Park,USA
[ns] Class error-any suggestions?
Hello all I tried to run the above attached script in NS and got the following error. I saw on the forum, people had such errors before also,but there were no solutions suggested for the same. Can anyone help me with this, I am not getting a way out! I would appreciate if you can help/ Thanks in advance. (_o83 cmd line 1) invoked from within _083 cmd attach-agent o80 invoked from within catch $self cmd $args ret set cls [$self info class] global errorInfo set savedInfo $errorInfo error error when calling class $cls: $args $... (procedure _o83 line 2) (SplitObject unknown line 2) invoked from within for {set i 0} {$i $val(nn_bs0)} {incr i}{ set udp($i) [new Agent/UDP] $ns attach-agent $node($i) $udp($i) $udp($i) set class_ [expr $i+... (file voip1.tcl line 151) } -- Thanx Shaili Desai Master's Candidate Telecommunications and Management University of Maryland,College Park,USA
Re: [ns] How to call a procedure after a constant delay
To add on to the proposed solution, let me try to offer an explanation of the difference between Somera's original code and Fillippos' suggestion. In Somera's code, the line $ns at $time loop does not call the loop function. Instead, it adds the call to the scheduling queue (or similar data structure). So there is no break condition for the while loop, causing the script to hang. In Fillippos' code, the loop call is scheduled initially with $ns at $time loop and then we call $ns run to start the simulation. At time $time, the scheduler checks the front of the queue and sees the loop call. It then evaluates the impact of the loop event on the simulation -- namely, that another loop event be called $inc ticks later. The scheduler then checks the front of the queue again and repeats the process. Hopefully my explanation is correct. If someone can add to this or correct it, it might be a good lesson describing the difference between events scheduled by the script at configuration time and events scheduled during the runtime of the simulation. Thanks, Scott On 2/8/07, Filippos Kolovos [EMAIL PROTECTED] wrote: - At first you need to schedule the loop proc to execute at the start (or whenever you like) of the simulation. Then, you need to put the re-scheduling code inside the procedure itself in order to make it recursive. In this way the loop procedure will execute once at the start of the simulation and then every time it is executed it will re-schedule itself. You can also use the now method of the Simulator object, in order to get the exact current time of execution of the procedure as below. For example you need to change the code to something like this: proc loop {} { global abc value inc ns set value [$abc get_value] set current_time [$ns now] set time [expr {$current_time + $inc}] $ns at $time loop exit 0 } set time 0.2 set inc 0.01 $ns at $time loop } On 2/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: -- Forwarded message -- From: Somera Javed [EMAIL PROTECTED] To: ns-users@ISI.EDU Date: Fri, 9 Feb 2007 03:41:46 +0500 Subject: [ns] How to call a procedure after a constant delay Hi, i am trying to call a procedure after a delay of every 0.01 sec proc loop {} { global abc value set value [$abc get_value] exit 0 } set time 0.2 set inc 0.01 while 1 { $ns at $time loop set time [expr $time + $inc] if {$value == 1} break; } but the program stuck while execution what is the right way to do this??? -- Forwarded message -- From: Scott Ricketts [EMAIL PROTECTED] To: ns-users@ISI.EDU Date: Thu, 8 Feb 2007 15:29:47 -0800 Subject: Re: [ns] How to call a procedure after a constant delay It looks to me like you are putting the Otcl interpreter in an infinite loop before the simulation starts. That is, loop is getting scheduled every time the while loop iterates, but it does not actually get called until you do $ns run, so $value never gets set. -Scott ___ Ns-users mailing list Ns-users@isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users -- 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] H.323 and SIP modules...
Hi, I already found the SIP module in contributions page but I still have lost the H.323 module, so if somebody can help me to find it or dend it to my e-mail, taht would be wonderfull. Thnaks in advance and best regards Ruben Garcia _ Llama a tus amigos de PC a PC: ¡Es GRATIS! http://get.live.com/messenger/overview
[ns] Implementing a New Manet Unicast Routing Protocol
Hello, I used the following guide to implement my routing protocol: -- Implementing a New Manet Unicast Routing Protocol in NS2 -- It work ok, but I have a problem when I receive a Broadcast message emitted by the other nodes. All my protected variables are affected by the reception of such a message. They are not the same ones that before the reception. Is it because of wrong pointing or there is more changes to made in NS-2 files that are not motioned in the above guide. Please inform me if you have an idea on this problem Thank you, Wissam
[ns] NAM display problem
Hi all, I have a question regarding NAM display. I'd like to make a scenario that contain only fix nodes (no movement). But when I use NAM to display, all the node seem to be in the same place. I have set the position of each node like this $node_(0) set X_ 703.662297539822 $node_(0) set Y_ 450.447506898335 $node_(0) set Z_ 0. $node_(1) set X_ 959.371925459560 $node_(1) set Y_ 564.938365134220 $node_(1) set Z_ 0. $node_(2) set X_ 707.446888123861 $node_(2) set Y_ 667.500873757569 $node_(2) set Z_ 0. $node_(3) set X_ 614.896120945549 $node_(3) set Y_ 877.576693551604 $node_(3) set Z_ 0. Any idea will be appreciated. Thank you very much. Nguyen