[ns] how to get queue_size at run time
hi to all.. i am using ns-2.33, how to access the queue size at run time, is there any tcl script to get the queue size at run time, please help me regarding this.. by muralikrishna gaddam
[ns] How to write tcl
Hi i want to ask that how i can write a tcl file to use my own protocol for communication. On 3/14/09, ns-users-requ...@isi.edu wrote: > > Send Ns-users mailing list submissions to >ns-users@isi.edu > > To subscribe or unsubscribe via the World Wide Web, visit >http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to >ns-users-requ...@isi.edu > > You can reach the person managing the list at >ns-users-ow...@isi.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > > 1. wireless access point (mm) > 2. How to simulate mutiple priority queues in ns-2 (Thanh D. Do) > 3. how to set threshold level to queue (muralikrishna g) > 4. upgrade ns2.32 to ns2.33 (mm) > 5. how to get queue size (muralikrishna g) > 6. Re: wireless access point (Kiran K Chauhan) > 7. Re: ns-2 on windows vista (hakki) > 8. How to get information of a node from an agent? (Truong Thuy) > 9. Neighbor List (Mayank Daga) > 10. How to send a message from one node to another node (i.e. to > send an integer value) (muralikrishna g) > 11. How to Drop Packets From a Particular Sender (muralikrishna g) > 12. Re: How to send a message from one node to another node (i.e. > to send an integer value) (Sidney Doria) > 13. Re: How to Drop Packets From a Particular Sender > (Teerawat Issariyakul) > 14. Re: How to Drop Packets From a Particular Sender (Mats Folke) > 15. TCO flag in trace file (antonioli) > 16. TCO flag in trace file (antonioli) > 17. Help!! (vap) > > > -- > > Message: 1 > Date: Fri, 13 Mar 2009 11:12:46 +0800 > From: mm > Subject: [ns] wireless access point > To: ns-users@ISI.EDU > Message-ID: ><6e5ba8080903122012ib207fffl9cb3bd384e791...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello and thank you very much for all your efforts > > Could you please tell me if NS2 (version 2.32) can support simulation of > wireless networks in infrastructure mode (it means wireless nodes connected > to a wireless access point)? > > Thanks in advance > > > -- > > Message: 2 > Date: Thu, 12 Mar 2009 23:21:23 -0400 > From: "Thanh D. Do" > Subject: [ns] How to simulate mutiple priority queues in ns-2 > To: ns-users@ISI.EDU > Message-ID: ><96c42cba0903122021j64e53151v52875156a90e4...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi folks, > > I am a newbie with ns-2. I have a problem of simulating multiple > priority queues. > > In Linux, normally, there is a socket buffer corresponding to each > connection. Data streaming into each socket buffer is encapsulated > into packets which obtain TCP headers and IP headers. Throughout this > processing, the packet streams corresponding to each connection is > kept separate. Finally, there is a single ??priority queue?, into > which all streams feed. All streams that have data ready to send take > equal turns draining into the priority queue. (FAIR) > > There is another possible approach. Instead of a single priority queue > (transmit queue), there are 16 priority queues. These are called bands > and they range in number from 0 to 15, where band 15 has lowest > priority and band 0 has highest priority. All the connections of i > priority feed fairly into the i th priority queue. (SPRT). > > I have attached a figure describing these two approaches. > > My question is, is it possible to simulate both FAIR and SPRT in ns-2. > Could you guys give me some hints how to do that? > > I really appreciate any suggestion. > > Sincerely, > Thanh > > -- > > Message: 3 > Date: Fri, 13 Mar 2009 10:01:34 +0530 > From: muralikrishna g > Subject: [ns] how to set threshold level to queue > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > hi to all.. > > how to set a threshold level to queue in a router.. and if the threshold > level is reached i have to send a message to upstream router.. how to do > it.. please help me.. i am in need > > thank you > > > -- > > Message: 4 > Date: Fri, 13 Mar 2009 13:03:53 +0800 > From: mm > Subject: [ns] upgrade ns2.32 to ns2.33 > To: ns-users@ISI.EDU > Message-ID: ><6e5ba8080903122203i4a4731f3mb4b2e742864e9...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello and thanks a lot > > I have installed ns2.32 on ubuntu7.10 now I want to upgrade my ns2 to > NS2.33. could you please tell me how can I upgrade that? > > Thanks in advance > > > -- > > Message: 5 > Date: Fri, 13 Mar 2009 11:59:21 +0530 > From: muralikrishna g > Subject: [ns] how to get queue size > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > hi to all.. > > if the queue size is rea
Re: [ns] How to do LEO satellite simulation with many GSL terminals ??
lukman_ha...@yahoo.com wrote: > Hi, > > Does anybody knows how to do LEO satellite simulation with many GSL > terminals on the source side and many GSL terminals on the destination > side ?? For example if i want to have 3 polar GSL terminal (S1, S2, S3) > at the source side and 3 polar GSL terminal (D1, D2, D3) at the > destination side, how to make sure that S1 is in connection with D1, S2 > with D2 , and S3 with D3 ?? Can you clarify what you mean by "S1 is in connection with D1"? Do you mean that traffic flows from S1 to D1? So far in the ns manual & examples only show > satellite simulation with one-to-one GSL terminal connection, but is > there possible to simulate many-to-many GSL terminal connections in LEO > satellite network ?? > It is possible to have many ground terminals associated with a single satellite. I am not sure what you mean by "many-to-many GSL terminal connections"; can you clarify? Tom
Re: [ns] How to Drop Packets From a Particular Sender
Hi Mats, I agree with you. In fact, function drop(p) will check whether the packet is in used before dropping it. But the function drop(p) only exists for an NsObject. Objects not derived from class NsObject may not define this function. If you guys would like to use Packet::free(p), you are responsible for consistency check. Failing to do so may result in errors like segmentation fault. Best, Teerawat On 3/13/2009, "Mats Folke" wrote: > >Hi! > >Wouldn't it be kind of dangerous to drop the packet using the first method >described? The packet would jsut disappear and the logs would not be >consistent. I would recommend using the latter method > >drop(p) > >instead. This makes the logging consistent and almost all objects I've come >across where I would like to drop packets have been Connector objects. > >Best regards, >Mats Folke > >Teerawat Issariyakul wrote: >> Hi, >> >> Suppose you have a pointer "p". You can drop the packet by executing >> >> >> Packet::free(p) >> >> Also the packet "*p" can be dropped from within the Connector object >> by invoking function drop as follows: >> >> drop(p); >> >> >> Note that "drop(p)" is a function of class Connector, and therefore >> must be invoked from within the scope of class Connector. >> >> I posted how to drop a a packet in the following blog: >> >> http://t-issariyakul.blogspot.com/2009/03/ns2-dropping-packet.html >> >> For more information about Connector and Packet, see Chapters 5 and 8, >> respectively, in the following book from Springer: >> >> T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator >> NS2", Springer 2008. >> http://www.springer.com/engineering/signals/book/978-0-387-71759-3 >> >> You may also find the following website useful: >> http://www.ece.ubc.ca/~teerawat/NS2.htm >> >> On 3/13/2009, "muralikrishna g" wrote: >> >>> >>> Hi to all.. >>> >>> i am using ns-2.33, here in my work i have to drop packets from a >>> particular sender, i am planing to drop packets depending on the >>> sender node_id >>> >>> please help me regarding this.. >>> >>> by >>> >>> Muralikrishna Gaddam (muralikrishn...@gmail.com) > > > >-- >Mats Folke, M.Sc., Lic.Eng. >Research Engineer > >Ericsson AB Office: +46 10 7171385 >Ericsson Research Fax: +46 920 99621 >P.O. Box 920Mobile: +46 76 1271385 >SE-971 28 Luleå >Sweden >
[ns] how to send a message(excample-45) from node1 to node2
hi to all.. here i have to send a number from from node1 to node2,.. i know how to send a traffic packet op or cbr, but here i have to send my own number from node1 to node2,.. please help me regarding this by muralikrishna
Re: [ns] Range Proble...Again :(
Can you set the radius like below [$HA set netif_(0)] set Pt_ 0.03652 [$FA01 set netif_(0)] set Pt_ 0.03652 [$FA02 set netif_(0)] set Pt_ 0.03652 [$FA03 set netif_(0)] set Pt_ 0.03652 You can use this list to set the radius of a node Tx Range Pt_ 100m 0.00721383 150m 0.03652 200m 0.115421 250m 0.28179 300m 0.58432 Thanks, With Best Regards, Joarder Mohammad Mustafa Kamal --- On Thu, 3/12/09, Mayank Daga wrote: From: Mayank Daga Subject: [ns] Range Proble...Again :( To: "Mubashir Rehmani" , ns-users@ISI.EDU Date: Thursday, March 12, 2009, 9:12 PM Hey Mubashir, Sorry for bugging you again but I am totally clueless as to how to set the range. Since past few days, I have been trying to set the range by the setting the value of radius variable of a particular node. This is what radius variable does according to NS Manual: $mobilenode radius The radius denotes the node’s range. All mobilenodes that fall within the circle of radius with the node at its center are considered as neighbours. This info is typically used by the gridkeeper.. But, today I found out that this is not affecting the way the traffic is sent, i.e., the range is still 250m, the default value. Please help me as to how can I set the range of the nodes. This is is very much imperative for my project. Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India
Re: [ns] Neighbor List
I think you can look at channel.cc to find the list of neighbours because whenever a new mobile node is entering the channel its keep information in the list. Otherwise if you trying to find out the neighbouring BS then you can check it out from the mip-reg.cc file. Thanks, With Best Regards, Joarder Mohammad Mustafa Kamal --- On Fri, 3/13/09, Mayank Daga wrote: From: Mayank Daga Subject: [ns] Neighbor List To: ns-users@ISI.EDU Date: Friday, March 13, 2009, 4:46 PM Hey all, Please let me know, how to access the Neighbor List of any mobile node. It is imperative for my project work and I am not being to able to find it. I found a function addNeighbor(node) in node.cc but it seems that it is not called from anywhere. Then how are neighbors being maintained. Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India
Re: [ns] Intrusion Detection in Manet
On Thu, Mar 12, 2009 at 4:43 PM, Satria Mandala wrote: > I need to learn intrusion detection in wireless ad-hoc network using ns2. > Does any one know how to create some kind of attacks in a node, such > as black hole attack, DoS, and etc? > > > regards > Thariq Satria >
[ns] Help!!
After I run my tcl, it shows the following error, someone, please, give me a hint why that happened? Thanks so much! --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o107: no target for slot -1 _o107 type: Classifier/Hash/Dest content dump: classifier _o107 0 offset 0 shift 2147483647 mask 1 slots slot 5: _o566 (Classifier/Port) -1 default -- Finished standard no-slot{} default handler -- -- View this message in context: http://www.nabble.com/Help%21%21-tp22503305p22503305.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] TCO flag in trace file
Hi, I'm studing some aspects handover over heterogeneous networks, in particularly the IEEE 802.21. I have already installed ns2 with 802.21 module (from NIST) and simulated some scenarios and found a "NCO" in trace file. Can tell me significance of the "NCO" (after -Nw) drop reason? All help or support will be very helpful. -- View this message in context: http://www.nabble.com/TCO-flag-in-trace-file-tp22499739p22499739.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] How to Drop Packets From a Particular Sender
Hi! Wouldn't it be kind of dangerous to drop the packet using the first method described? The packet would jsut disappear and the logs would not be consistent. I would recommend using the latter method drop(p) instead. This makes the logging consistent and almost all objects I've come across where I would like to drop packets have been Connector objects. Best regards, Mats Folke Teerawat Issariyakul wrote: > Hi, > > Suppose you have a pointer "p". You can drop the packet by executing > > > Packet::free(p) > > Also the packet "*p" can be dropped from within the Connector object > by invoking function drop as follows: > > drop(p); > > > Note that "drop(p)" is a function of class Connector, and therefore > must be invoked from within the scope of class Connector. > > I posted how to drop a a packet in the following blog: > > http://t-issariyakul.blogspot.com/2009/03/ns2-dropping-packet.html > > For more information about Connector and Packet, see Chapters 5 and 8, > respectively, in the following book from Springer: > > T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator > NS2", Springer 2008. > http://www.springer.com/engineering/signals/book/978-0-387-71759-3 > > You may also find the following website useful: > http://www.ece.ubc.ca/~teerawat/NS2.htm > > On 3/13/2009, "muralikrishna g" wrote: > >> >> Hi to all.. >> >> i am using ns-2.33, here in my work i have to drop packets from a >> particular sender, i am planing to drop packets depending on the >> sender node_id >> >> please help me regarding this.. >> >> by >> >> Muralikrishna Gaddam (muralikrishn...@gmail.com) -- Mats Folke, M.Sc., Lic.Eng. Research Engineer Ericsson AB Office: +46 10 7171385 Ericsson Research Fax: +46 920 99621 P.O. Box 920Mobile: +46 76 1271385 SE-971 28 Luleå Sweden
Re: [ns] How to Drop Packets From a Particular Sender
Hi, Suppose you have a pointer "p". You can drop the packet by executing Packet::free(p) Also the packet "*p" can be dropped from within the Connector object by invoking function drop as follows: drop(p); Note that "drop(p)" is a function of class Connector, and therefore must be invoked from within the scope of class Connector. I posted how to drop a a packet in the following blog: http://t-issariyakul.blogspot.com/2009/03/ns2-dropping-packet.html For more information about Connector and Packet, see Chapters 5 and 8, respectively, in the following book from Springer: T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator NS2", Springer 2008. http://www.springer.com/engineering/signals/book/978-0-387-71759-3 You may also find the following website useful: http://www.ece.ubc.ca/~teerawat/NS2.htm On 3/13/2009, "muralikrishna g" wrote: > >Hi to all.. > >i am using ns-2.33, here in my work i have to drop packets from a >particular sender, i am planing to drop packets depending on the >sender node_id > >please help me regarding this.. > >by > >Muralikrishna Gaddam (muralikrishn...@gmail.com) >
Re: [ns] How to send a message from one node to another node (i.e. to send an integer value)
Gaddam, this is the FIRST BASIC step when you learning NS-2. You can find lots of information about this, here: - asking google; - reading NS-2 manual; - tutorials in the NS-2 wiki; - on the book "Introduction to Network Simulator NS-2". But we know how difficult are the first steps! So, this tutorial can help with scripts (in OTcl) or how to code (in C++) to send and receive packets in NS-2: http://masimum.inf.um.es/nsrt-howto/pdf/nsrt-howto.pdf That tutorial is for WIRELESS networks. If you want for Wired networks, I suggest you the Marc Greiss's tutorial (Section IV): http://www.isi.edu/nsnam/ns/tutorial/ Sidney Doria UFCG / BRAZIL 2009/3/13 muralikrishna g : > > hi to all.. > > i am using ns-2.33, here i have to send a message (i.e. to send an > integer value) from one node to another node, is it possible in tcl > script itself.. or i have to go for c++ > > please help me regarding this, > > by > > Muralikrishna Gaddam (muralikrishn...@gmail.com) > > -- Sidney Doria Redes ad hoc móveis Doutorado em Computação UFCG Brasil "Nessa jornada, o conhecimento será o seu escudo..." (Mestre dos Magos no episódio do grimoire de ouro)
[ns] How to Drop Packets From a Particular Sender
Hi to all.. i am using ns-2.33, here in my work i have to drop packets from a particular sender, i am planing to drop packets depending on the sender node_id please help me regarding this.. by Muralikrishna Gaddam (muralikrishn...@gmail.com)
[ns] How to send a message from one node to another node (i.e. to send an integer value)
hi to all.. i am using ns-2.33, here i have to send a message (i.e. to send an integer value) from one node to another node, is it possible in tcl script itself.. or i have to go for c++ please help me regarding this, by Muralikrishna Gaddam (muralikrishn...@gmail.com)
[ns] Neighbor List
Hey all, Please let me know, how to access the Neighbor List of any mobile node. It is imperative for my project work and I am not being to able to find it. I found a function addNeighbor(node) in node.cc but it seems that it is not called from anywhere. Then how are neighbors being maintained. Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India
[ns] How to get information of a node from an agent?
Dear All, I'm implementing a routing protocol that explores the mobility of a node. >From the new agent, I want some information of a node such as speed, location, ... Just wondering how I can use getter methods of Node.c inside my NewAgent.c? Please help. Thanks milllion. -- Regards, Thuy
Re: [ns] ns-2 on windows vista
Dear Sidney, I have been trying to install ns-2.27 to my machine runs under vista home. Even I have downloaded all the packages of cygwin, I could not install ns-2.27. I installed also hidden packages in cygwin. Moreover, while I have been trying to install ns-2.27, there does not appear a such message `... package not found'. However, during the installation it gives a such message "tclcl-1.15 make failed!", Exiting. I chechked all my packages, whether I have installed or not, using the cygwin setup and choosing view section, there does not appear any package to install. Do you have any opinion or suggestion? best hakki Sidney Doria wrote: > > > I'm using cygwin 1.5.24 and ns-2 2.31 on Vista Home Premium. There > was no problem on installing it, but a few test have failed on > validation (as promessed in the tutorial). > > I recomend you to use all-in-one package and install a full cygwin > (default installation does't install some packages needed). > > > Sidney Doria > > > 2007/6/6, Karun Dambiec : >> >> Hi, >> >> Im about to upgrade to Windows Vista if all my software is compatible. >> >> Has anybody used Cygwin and NS-2 on Vista? If you have, did you have any >> problems with it? >> >> >> >> Regards >> >> Karun Dambiec >> >> > > > -- > Sidney Doria > Redes ad hoc móveis > Mestrado em Computação > UFCG > Brasil > > "Nessa jornada, o conhecimento será o seu escudo..." > (Mestre dos Magos no episódio do grimoire de ouro) > > > -- View this message in context: http://www.nabble.com/ns-2-on-windows-vista-tp10987280p22493352.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] wireless access point
Hi, Yes NS2 does support that, use ns2.33 version. Sample code given in that is infrs.tcl Kiran On Fri, Mar 13, 2009 at 8:42 AM, mm wrote: > > Hello and thank you very much for all your efforts > > Could you please tell me if NS2 (version 2.32) can support simulation of > wireless networks in infrastructure mode (it means wireless nodes connected > to a wireless access point)? > > Thanks in advance > -- Every footstep in life is full of possibilities we just need to know our ability to explore them