Re: [ns] Pausing and Resuming a Method
- Forwarded Message - From: Dhara Buch dharab...@yahoo.com To: ns-users@isi.edu ns-users@isi.edu Sent: Monday, May 30, 2011 1:42 PM Subject: Re:[ns]Pausing and Resuming a Method Hello, I want to pause a method, say sendRequest, until a specific event occurs. After the occurrence of the event , the method should be resumed. How to do that? Dhara Buch
[ns] Rs:TCL_CHANNEL struct
Hello, Agent class has one field name channel_ of type struct TCL_CHANNEL. I want to change the index number of the channel_. In which file the struct TCL_CHANNEL is defined? Thank you, Dhara Buch
Re: [ns] multichannel interface
Hello, I want to user multiple channel support in ns-2.33. If a node has two interfaces, is there any way by which we can set the channel no with which it will start communication? i.e. The node should receive data from one channel and send it through other one. How to do this? Thank you, Dhara Buch
Re: [ns] giving label to plotted point in xgraph
Hello, I am using xgraph in a tcl script. At run time, adding data to a .tr file and then calling xgraph for that file. I want to give label to each of the plotted point on the graph. How can I do that? Which parameter to set? Xgraph utility has given the option of annotation, but how to give it through the tcl file? Regards, Dhara Buch
Re: [ns] Counting hops
Hello, I want to do brodcasting for a packet. I am creating node objects of Agent/Messagepassing type. I want to keep a variable for storing the number of hops a packet passes i.e. I want to store hop count value for each packet. What is the appropriate method, where should I write the code for increment operation? Thank you, Dhara Buch
Re: [ns] For Wormhole Link
Hello, I am doing simulation for 20 wireless nodes. Node 0 broadcasts a packet. I want to create a wormhole link between Node 18 and Node 19, where they are located far from each other. Before creating node 18, I have set Pt value higher to increase the transmission power of Node 18, but still the packet does not reach to Node 19 directly from Node 18. What may be the reason? If I increase the value more, for some of the cases, I get Segmentation Fault (Core Dump) error. I have created Nodes with agent Agent/Messagepassing. Is it possible to do only if I create the Nodes withe Agent/TCP? In that case, which node is required to be the agent of ACP and which should be of TCPSink for the same case? Thank you, Dhara Buch
Re: [ns] for transmission power
Hello, I want to create a wormhole link. For that, two nodes N1 and N2 have been positioned far away from each other. What transmission and receiver power or some other properties do I need to set for making the packet sent by N1 to reach at N2? Thank You, Dhara Buch
Re: [ns] Altering Packet Data
Hello, I want to change the data field of Packet p. I get it through userdata(), as follows. But after updating, how to set it back? PacketData* data = (PacketData*)p-userdata(); Thank you, Dhara Buch
Re: [ns] Regarding routing algorithm for broadcasting
1. I have placed 6 nodes in the following way. 2 4 5 1 3 6 Node 1 broadcasts a packet. If I keep the distance among them less, the message reaches to each node directly from 1. If not, then 4, 5 and 6 do not get. Is there any way by which the packet can be made to travel like from 1 to 2, 2 to 4, 4 to 5 likewise? 2. I get error like Segmentation fault (core dumped) Dhara Buch
Re: [ns] broadcasting a message
Hello, I want to broadcast a message. I have tried it by setting IP header as: ih-daddr()=IP_BROADCAST But each node does not receive message. In my script totally five nodes are there, arranged in the following way: 45 1 23 Here,message broadcasted by 1 is received by 2, 3 and 4. 5 does not receive it. What may be the reason? What change do I require to do? Thank you, Dhara Buch
Re: [ns] For source id
Hello, I want to get thesource address of the packet. Does thesrc_addr_field of hdr_rtpgive the same?It display 0 for each different source nodes. How can I assign the node id to this field? Thanks, Dhara Buch
Re: [ns] displaying nodeid
Hello, I want to display node id and address in my tcl script. Method nodeid returns id, but how can I call it from tcl script? Lets, set ns [new Simulator] set n0 [$ns node] for, n0, how to display node id? Thanks, Dhara Buch
Re: [ns] About Packet Header
Hello, I want to access various fields of a packet header. I have referred packet.h file. It contains the structure of only hdr_cmn. Which file contains the definition of hdr_rtp and other such headers? Thanks, Dhara Buch
Re: [ns] errors in nam and xgraph in fedora
Hello, I have installed ns-2.33 in Fedora 13. 1. While executing tcl script using xgraph, I get the following error message: ns: finish: couldn't execute xgraph: no such file or directory while executing exec xgraph out0.tr out1.tr out2.tr -geometry 800x400 (procedure finish line 8) invoked from within finish 2. For some of the tcl scripts, nam works properly, but for some scripts, especially which use wireless communication, I get the error message like: Cannot connect to existing nam instance. Starting a new one... nam: Unable to open the file wireless-mitf.nam.nam What can I do to solve these errors? Thank you, Dhara Buch
Re: [ns] error executing nam file
Hello, I have installed ns2 in Ubuntu 10. Installation till ./validate has been completed successfully. When I open .nam file using nam command, I get the following error message: : no event type or button # or keysym while executing bind Listbox MouseWheel { %W yview scroll [expr {- (%D / 120) * 4}] units } invoked from within if {[tk windowingsystem] eq classic || [tk windowingsystem] eq aqua} { bind Listbox MouseWheel { %W yview scroll [expr {- (%D)}] units } bind Li... What may be the reason? Regards, Dhara Buch
Re: [ns] To login as root
Hello, I have installed Ubuntu 10. At booting time, only one user specified at the installation time is visible. It does not show root user. In Users and Groups under Administration also, the root is invisible. What to do if I want to login as root? Dhara
Re: [ns] tk make problem
Helllo, I am using Ubuntu 8.10 version. While executing ./install, I find error : tk make failed. What may be the reason? Any package missing? How to get it installed? Regards, Dhara Buch
Re: [ns] Ns-users Digest, Vol 80, Issue 28
sir, 1. while executing ./configure command under NS-2.33 directory, I get an error message specifying that OTCL is not installed. I have installed NS-all in one-2.33. Which step should I follow to install OTCL solve this error. 2. I have referred Mark Greis's Tutorial. I want to do some changes in recv() function in ping.cc file. after doing the modification, which commands and in which sequence should i execute to make it effective?
[ns] Error in Tcl installation
Hello, While executig make command for tcl8.4.18, I get error message that : 'tz' is unknown in TclpGetClicks() and Tcl_GetTime(). How to solve it? Thank you, Dhara Buch
[ns] Problem in designing packet format and monitoring its arrival event
Hello, I went through the FAQs, but my question does not fall in that, so sending this again. I want to write code for designing the packet format and to monitor the packet arrival event. In which way the provided class and its events of Otcl can be used in NS2? If some sample code can be provided, then it would be too much helpful to me. Thanks, Dhara Buch
Re: [ns] Problem in designing packet format and monitoring its arrival event
Hello, Thanks a lot for the reply. The code seems to be useful to me. Actually, I am just the beginner for ns2. The problem I find is, I dont get how the classes and header files provided by tcl, can be used in the ns2 script commands. More specifically, in the code provided to me, header file aodv.h is used. It defines some structures. Now how to use them from ns2? I would be obliged if some simple examples I can have that shows this kind of usage. tkns rgds dhara
[ns] Problem in designing packet format and monitoring its arrival event
Hello, I want to write code for designing the packet format and to monitor the packet arrival event. In which way the provided class and its events of Otcl can be used in NS2? If some sample code can be provided, then it would be too much helpful to me. Thanks, Dhara Buch