[ns] computation of loss of syn packets, first lost packets and total losses using NS-2 in Diffserv network
Hello Kindly tell me How to compute of loss of syn packets, first lost packets and total losses using NS-2 in Diffserv network as soon as possible. Thanks
Re: [ns] computation of loss of syn packets, first lost packets and total losses using NS-2 in Diffserv network
Vinod: The information about lost packets is in the trace file. You must analyze this file after the simulation. You can use several tools: awk, perl file, tracegraph, bash file, etc.. /salva On Thu, 15 Nov 2007, vinod kumar wrote: Hello Kindly tell me How to compute of loss of syn packets, first lost packets and total losses using NS-2 in Diffserv network as soon as possible. Thanks
[ns] Clustering in Ad hoc Network
Dear all, I'm working on wireless mesh network clustering. Has anyone simulated clustering algorithm for ad hoc networks? if so could you please give me pointers as to how to implement the code on NS2.31 or pass on an example code. Hoping to get a response soon, Regards, Eddie Mamahlodi
[ns] oTcl debugging: MASH inspector causes segmentation fault
Hi list, I am trying to debug the mw-node patch for ns2 (http://www.q2s.ntnu.no/~paquerea/ns.html) using Pedro's guide to get oTcl debugging capabilities (http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html). One of the apparently very useful tools is the MashInspector, which unfortunately crashes when inspecting objects introduced be the mw-node patch. *Has anybody experience/hints/links on oTcl debugging with the mw-node patch?* Thanks for any feedback. Claus -- Claus Christmann Graduate Research Assistant Georgia Institute of Technology 270 Ferst Drive Atlanta, GA 30332-0150 http://uav.ae.gatech.edu
[ns] Object instantiation of C++ classes in ns: where and when?
I apologize for the monologue, but I still have some issues with *object instantiation of C++ classes in ns* I read up on inherited classes and according to the book the constructor of a base class is called when an object of an inherited class is instantiated. Example: class animal { public: aninmal(){coutmaking an animalendl;}; ~animal(){coutunmaking an animalendl;}; }; class dog: public animal { public: dog(){coutmaking a dogendl}; ~dog(){coutmaking a dogendl}; }; int main() { dog * bello = new dog; cout blah ... endl; delete bello; bello = 0; return 0; } (should) lead to the following output: making an animal making a dog blah ... unmaking a dog unmaking an animal So the questions remain: a) What happens in the mw-node code with the WirelessRoutingModule() constructor? Why doesn't it seem to be called? b) The constructor only calls init(), declared virtual function in WirelessRoutingModule. Since BaseWirelessRoutingModule (derived from the former) also has a init() function, the WirelessRoutingModule() constructor should call the init() of BaseWirelessRoutingModule, shouldn't it? c) Resulting from that I followed Pedro's guide to get oTcl debugging capabilities, but I couldn't get it to run with the mw-node patch. The MASH inspector always kills ns with a segmentation fault when tryin gto inspect a WirelessRoutingModule oTcl object. Anybody having some input on that? I apologize for this series of long emails, but somehow it seems that there is some basic issues of C++/oTcl/ns2 which I do not understand. Thanks in advance for any comment. Claus Claus Christmann wrote: OK, my mistake... BaseWirelessRouting module is derived from WirelessRoutingModule, but constructors and destructors are not inherited. (Which is a basic C++ behavior...) Hence there is no constructor or destructor explicitly given and thus (an empyt) one is created. This auto generated constructor obviously does not call BaseWirelessRoutingModule::init() . Sorry for all the fuzz... Claus Claus Christmann wrote: Hi list, I am working with Laurent's mw-node patch (http://www.q2s.ntnu.no/~paquerea/ns.html) and am trying to get my own routing protocol to work. Since my routing protocol utilizes several wirelss interfaces it should be implemented as a WirelessRoutingModule akording to Laurent's documentation. Unfortunately the constructor for this class seems to be never called. I assume that is due to the oTcl/C++ duality, which I seem to be unable to debug. The code under consideration is in wireless/wireless-rtmodule.cc, lines 84pp: //! Constructor /*! Create a new WirelessRoutingModule with an empty routing information base.*/ WirelessRoutingModule::WirelessRoutingModule() : RoutingModule(),lastUid_(-1),lastRibEntry_(0) { rib_ = new Rib(); init(); } This C++ class is used as a parent later on (wireless/wirelss-rtmodule.h, lines 173pp): class BaseWirelessRoutingModule : public WirelessRoutingModule { ... } and BaseWirelssRoutingModule is used in the example provided with the patch. Unfortunately BaseWirelessRoutingModule does not do anything in init() (wireless/wireless-rtmodule.cc, lines 488pp) void BaseWirelessRoutingModule::init() { // nothing to do. } Thus it seemes not to matter, that at least using the provided tcl script it seems never to be called. Am I doing somthing wrong in gdb? *How is it possible that the constructor of a used class is never called?* Has anybody any experience in coding a routing protocol for the MW-node patch or could point me to a source to look at? Thanks in advance, Claus -- Claus Christmann Graduate Research Assistant Georgia Institute of Technology 270 Ferst Drive Atlanta, GA 30332-0150 http://uav.ae.gatech.edu
Re: [ns] oTcl debugging: MASH inspector causes segmentation fault
Good question. I've not used this patch, so I can't offer much help (also, while I've put mashinspector to work, I've not entered its details too much also). Pedro Estrela -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Claus Christmann Sent: quinta-feira, 15 de Novembro de 2007 14:15 To: ns users Subject: [ns] oTcl debugging: MASH inspector causes segmentation fault Hi list, I am trying to debug the mw-node patch for ns2 (http://www.q2s.ntnu.no/~paquerea/ns.html) using Pedro's guide to get oTcl debugging capabilities (http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html). One of the apparently very useful tools is the MashInspector, which unfortunately crashes when inspecting objects introduced be the mw-node patch. *Has anybody experience/hints/links on oTcl debugging with the mw-node patch?* Thanks for any feedback. Claus -- Claus Christmann Graduate Research Assistant Georgia Institute of Technology 270 Ferst Drive Atlanta, GA 30332-0150 http://uav.ae.gatech.edu
[ns] Visualization of data pkt movements in nam for wireless scenarios
-- Forwarded message -- From: Karena Stannett [EMAIL PROTECTED] Date: 15 Nov 2007 13:10 Subject: Visualization of data pkt movements in nam for wireless scenarios To: Ns-users@isi.edu Hi all, I am a newbie to NS2 and need to clarify something in respect of the visualisation of data pkt movements in nam in wireless networks. I've worked my way through Marc Gries' Tutorials which state visualisation of pkt movement is not possible. However my research concerns DCCP and as such I am using the dccp-ns2.29.patch. I have also tried the dccp-wireless.tcl example that is available from the same location as the patch. When I run the namtrace file it clearly shows pkts being sent and dropped between 2 nodes over a wireless network. Is this visualisation unique to the DCCP or is it now supported generally in NS2. And if it is now generally supported how is this done? I've looked at the differences between the code of a tcp agent wireless example very similar to the dccp-wireless.tcl and tried commenting out / adding bits to see if I can create visualisation in other wireless networks, read the wireless trace chapters of the manual and tried to see if there is anything relevant in the archives posts but I'm still no closer to knowing how this is being acheived. Any help appreciated Karena -- Respect -the ability to see a person as he is, to be aware of his unique individuality. ROOT(Respicere - to look at) -- Respect -the ability to see a person as he is, to be aware of his unique individuality. ROOT(Respicere - to look at)
Re: [ns] Object instantiation of C++ classes in ns: where and when?
Claus Christmann wrote: I apologize for the monologue, but I still have some issues with *object instantiation of C++ classes in ns* I read up on inherited classes and according to the book the constructor of a base class is called when an object of an inherited class is instantiated. Example: class animal { public: aninmal(){coutmaking an animalendl;}; ~animal(){coutunmaking an animalendl;}; }; class dog: public animal { public: dog(){coutmaking a dogendl}; ~dog(){coutmaking a dogendl}; }; int main() { dog * bello = new dog; cout blah ... endl; delete bello; bello = 0; return 0; } (should) lead to the following output: making an animal making a dog blah ... unmaking a dog unmaking an animal So the questions remain: a) What happens in the mw-node code with the WirelessRoutingModule() constructor? Why doesn't it seem to be called? It is called. Print out some text in the constructor to convince you. b) The constructor only calls init(), declared virtual function in WirelessRoutingModule. Since BaseWirelessRoutingModule (derived from the former) also has a init() function, the WirelessRoutingModule() constructor should call the init() of BaseWirelessRoutingModule, shouldn't it? No it should not. This is because by default the parent constructor (here WirelessRoutingModule()) is called before the child constructor when the child constructor is called (here BaseWirelessRoutingModule()). In your example above, new dog() results in making an animal, making a dog and not in making a dog, making an animal. In the parent constructor, the child object is not created yet and if a function is called it is a parent's function (print out some text in WirelessRoutingModule::init() to convince you). If you want to call BaseWirelessRoutingModule::init() when you create the object you have to call it in BaseWirelessRoutingModule(). -Laurent c) Resulting from that I followed Pedro's guide to get oTcl debugging capabilities, but I couldn't get it to run with the mw-node patch. The MASH inspector always kills ns with a segmentation fault when tryin gto inspect a WirelessRoutingModule oTcl object. Anybody having some input on that? I apologize for this series of long emails, but somehow it seems that there is some basic issues of C++/oTcl/ns2 which I do not understand. Thanks in advance for any comment. Claus Claus Christmann wrote: OK, my mistake... BaseWirelessRouting module is derived from WirelessRoutingModule, but constructors and destructors are not inherited. (Which is a basic C++ behavior...) Hence there is no constructor or destructor explicitly given and thus (an empyt) one is created. This auto generated constructor obviously does not call BaseWirelessRoutingModule::init() . Sorry for all the fuzz... Claus Claus Christmann wrote: Hi list, I am working with Laurent's mw-node patch (http://www.q2s.ntnu.no/~paquerea/ns.html) and am trying to get my own routing protocol to work. Since my routing protocol utilizes several wirelss interfaces it should be implemented as a WirelessRoutingModule akording to Laurent's documentation. Unfortunately the constructor for this class seems to be never called. I assume that is due to the oTcl/C++ duality, which I seem to be unable to debug. The code under consideration is in wireless/wireless-rtmodule.cc, lines 84pp: //! Constructor /*! Create a new WirelessRoutingModule with an empty routing information base.*/ WirelessRoutingModule::WirelessRoutingModule() : RoutingModule(),lastUid_(-1),lastRibEntry_(0) { rib_ = new Rib(); init(); } This C++ class is used as a parent later on (wireless/wirelss-rtmodule.h, lines 173pp): class BaseWirelessRoutingModule : public WirelessRoutingModule { ... } and BaseWirelssRoutingModule is used in the example provided with the patch. Unfortunately BaseWirelessRoutingModule does not do anything in init() (wireless/wireless-rtmodule.cc, lines 488pp) void BaseWirelessRoutingModule::init() { // nothing to do. } Thus it seemes not to matter, that at least using the provided tcl script it seems never to be called. Am I doing somthing wrong in gdb? *How is it possible that the constructor of a used class is never called?* Has anybody any experience in coding a routing protocol for the MW-node patch or could point me to a source to look at? Thanks in advance, Claus
Re: [ns] Visualization of data pkt movements in nam for wirelessscenarios
a) I've put a patch very recently on this list to enable packet coloring in wireless scnenarios. b) for nam to show drops, they must be logged in the .nam file. Try to change the amount of L2 and L3 logging that is being performed. Pedro Estrela http://tagus.inesc-id.pt/~pestrela/ns2/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karena Stannett Sent: quinta-feira, 15 de Novembro de 2007 14:06 To: ns-users@ISI.EDU Subject: [ns] Visualization of data pkt movements in nam for wirelessscenarios -- Forwarded message -- From: Karena Stannett [EMAIL PROTECTED] Date: 15 Nov 2007 13:10 Subject: Visualization of data pkt movements in nam for wireless scenarios To: Ns-users@isi.edu Hi all, I am a newbie to NS2 and need to clarify something in respect of the visualisation of data pkt movements in nam in wireless networks. I've worked my way through Marc Gries' Tutorials which state visualisation of pkt movement is not possible. However my research concerns DCCP and as such I am using the dccp-ns2.29.patch. I have also tried the dccp-wireless.tcl example that is available from the same location as the patch. When I run the namtrace file it clearly shows pkts being sent and dropped between 2 nodes over a wireless network. Is this visualisation unique to the DCCP or is it now supported generally in NS2. And if it is now generally supported how is this done? I've looked at the differences between the code of a tcp agent wireless example very similar to the dccp-wireless.tcl and tried commenting out / adding bits to see if I can create visualisation in other wireless networks, read the wireless trace chapters of the manual and tried to see if there is anything relevant in the archives posts but I'm still no closer to knowing how this is being acheived. Any help appreciated Karena -- Respect -the ability to see a person as he is, to be aware of his unique individuality. ROOT(Respicere - to look at) -- Respect -the ability to see a person as he is, to be aware of his unique individuality. ROOT(Respicere - to look at)
[ns] Visualization of data pkt movements in nam for wirelessscenarios
Pedro Your comments are much appreciated but unfortunately have left me, as a newcomer to NS2 (as well as C++ and Tcl), as unclear as I was. If you have added a patch (which I have located) recently to enable pkt colouring in wireless scenarios it would suggest that visualisation of pkt movement within wireless networks is now supported in NS2 and that this is not just an aspect of the DCCP patch. Is this correct? Can you direct me to an example of a reasonably simple sample code that implements nam visualisation of pkt movements drops or, if you are familiar with Marc Gries' tutorials tell me what is missing from them or needs to be added to them to be able to see pkt movements in nam. Regretably I have knowledge of what L2 and L3 logging you are referring to, I'm still operating at a higher level at the moment! Thanks again Karena On 15/11/2007, Pedro Vale Estrela [EMAIL PROTECTED] wrote: a) I've put a patch very recently on this list to enable packet coloring in wireless scnenarios. b) for nam to show drops, they must be logged in the .nam file. Try to change the amount of L2 and L3 logging that is being performed. Pedro Estrela http://tagus.inesc-id.pt/~pestrela/ns2/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karena Stannett Sent: quinta-feira, 15 de Novembro de 2007 14:06 To: ns-users@ISI.EDU Subject: [ns] Visualization of data pkt movements in nam for wirelessscenarios -- Forwarded message -- From: Karena Stannett [EMAIL PROTECTED] Date: 15 Nov 2007 13:10 Subject: Visualization of data pkt movements in nam for wireless scenarios To: Ns-users@isi.edu Hi all, I am a newbie to NS2 and need to clarify something in respect of the visualisation of data pkt movements in nam in wireless networks. I've worked my way through Marc Gries' Tutorials which state visualisation of pkt movement is not possible. However my research concerns DCCP and as such I am using the dccp-ns2.29.patch. I have also tried the dccp-wireless.tcl example that is available from the same location as the patch. When I run the namtrace file it clearly shows pkts being sent and dropped between 2 nodes over a wireless network. Is this visualisation unique to the DCCP or is it now supported generally in NS2. And if it is now generally supported how is this done? I've looked at the differences between the code of a tcp agent wireless example very similar to the dccp-wireless.tcl and tried commenting out / adding bits to see if I can create visualisation in other wireless networks, read the wireless trace chapters of the manual and tried to see if there is anything relevant in the archives posts but I'm still no closer to knowing how this is being acheived. Any help appreciated Karena -- Respect -the ability to see a person as he is, to be aware of his unique individuality. ROOT(Respicere - to look at) -- Respect -the ability to see a person as he is, to be aware of his unique individuality. ROOT(Respicere - to look at) -- Respect -the ability to see a person as he is, to be aware of his unique individuality. ROOT(Respicere - to look at) -- Respect -the ability to see a person as he is, to be aware of his unique individuality. ROOT(Respicere - to look at)
Re: [ns] Visualization of data pkt movements in nam forwirelessscenarios
Pedro Your comments are much appreciated but unfortunately have left me, as a newcomer to NS2 (as well as C++ and Tcl), as unclear as I was. If I see. But please be aware that NS2 requires a lot of effort to be able to do anything. In my case, I've even spend a lot of weeks for even putting the contributed software to compile. you have added a patch (which I have located) recently to enable pkt colouring in wireless scenarios it would suggest that visualisation of pkt movement within wireless networks is now supported in NS2 and that this is not just an aspect of the DCCP patch. Is this correct? Exactly. Can you direct me to an example of a reasonably simple sample code that implements nam visualisation of pkt movements drops or, if you are familiar with Marc Gries' tutorials tell me what is missing from them or needs to be added to them to be able to see pkt movements in nam. I've volunteered to upgrade the NS2 tutorial, but cannot do this in the very short term. You can trust that such will be the first thing I'll look, when I can. You can send me the .tcl file for TCP and DCCP, and I'll look into it faster. Regretably I have knowledge of what L2 and L3 logging you are referring to, I'm still operating at a higher level at the moment! I'm talking of dumping more trace information to the file, of application layer and other layers also. Such is selectable in the NS2 tracing facilities.
[ns] Wired-cum-wireless simulation
I want to simulate a new Delay Tolerant Network protocol for Vanets, I have tried it from some ways but I can't make it work. The scenario is: I have a wired network, some APs and some wireless nodes, When a node wants to send a message to another far node, it waits until it reaches an AP and it sends it through the wired network to de AP where the destination wireless node is subscribed. My problem is: I have done a protocol who cares about the wireless nodes, it mantains a routing table with the responsable AP where the destination node have subscribed, and when the node sends a packet to the AP it should redirect the packet to the new AP through the wired network. but i don't know how to add the wireless addresses to the wired routing protocol, how can I do it? I think that using jerarquical addresses wouldn't be a good idea... because the nodes are in movement and would change the subnet of the AP in a short time. thanks in advance.
[ns] Newbie question
Hi, I'm new to ns2 and had few questions regarding it : 1. Is the route-computation table stored globally than specific to node. 2. How does this simulation work, I mean the flow from invoking the ns2 script to the invoking the C++ code 3. If I make few changes to the existing code, how do I debug it ? Is it like debugging the C++ code without considering the Tcl thing 4. the main question is the linkage of oTcl and the C++ - DP -- View this message in context: http://www.nabble.com/Newbie-question-tf4818881.html#a13786674 Sent from the ns-users mailing list archive at Nabble.com.