Re: [ns] Does anyone in this forum has detailed knowledge about the NS2source code?

2006-06-02 Thread Martina Umlauft

You might want to take a look at the Script NS Simulator for Beginners 
  bei Eitan Altman and Tania Jimenez at 
http://www-sop.inria.fr/mistral/personnel/Eitan.Altman/COURS-NS/n3.pdf

for a User's Guide. If you want to spend time on improving 
documentation I think this is where you should start.

greetings,
 Martina Umlauft

Ahmad Khayyat schrieb:
 A design decision like this can be accepted if it was supported by 
 proper documentation, which is absolutely not the case for ns-2. IMHO, 
 the biggest problem of ns-2 is lack of proper documentation.
 
 At least, there has to be two documents: a user's guide, and a 
 developer's guide.
 ns manual is, again, a mixture of both that, in its current state, does 
 not serve the purpose of any! I understand it is a work-in-progress, but 
 it doesn't have a consistent format for different sections. The level of 
 detail ranges across a wide spectrum in various sections.
 
 A user's guide has to worry about writing oTcl simulation scripts that 
 only uses the simulator to run simulation scenarios. At least half of 
 the problems discussed in the list can be avoided by having such a document.
 
 A developer's guide should present the simulator's architecture, and 
 describe the design of individual modules. Moreover, it should clarify 
 how to go about implementing new modules for every layer in the 
 networking stack.
 
 The maintainers' requirements for including new modules in the 
 distribution is a good move, if they were met more often!
 
 I'm very much interested in producing a more accessible documentation 
 suite for ns-2. Such a great tool has much greater potential than it is 
 credited for, only if it had proper documentation. To take a positive 
 action, I'm willing to spend some time helping the dream of good ns-2 
 documentation happen. If anyone else is interested, please let's do 
 something about it.
 
 PS. the #ns-2 IRC channel on irc.freenode.net could be a good place for 
 such discussions!
 
 Regards,
 - Ahmad Khayyat
 
 
 Bo Wang wrote:
 Hi,

 IMHO, the mixture of C++ and oTcl is the most annoying feature of NS
 which makes it really hard to understand the code.

 Best,
 Bo Wang


 On 5/31/06, Ahmad Khayyat [EMAIL PROTECTED] wrote:
   
 Just a tiny hint..

 When you trace the code, don't forget that ns-2 is a mixture of C++ and
 oTcl. Much of the object passing is done through oTcl.

 Faisal Siddiqui wrote:
 
 Hi Paul,

 Thanks for the link.

 I totally agree with you. I have spent so much time trying to understand
   
 as
 
 to how does the simulation flows through the source code, but can't
   
 really
 
 make any headways anymore. I am trying to implement a new control flow
 mechanism where no packet are dropped, but in order to do so I have read
   
 the
 
 queue size of the next hop so that the current node can decide whether
   
 to
 
 accept any more packets from other nodes or flag its exception
   
 indicatiing
 
 to all other nodes feeding into it to stop sending more packets to it. I
   
 am
 
 really stuck right now because I can't locate where in the source code
   
 does
 
 the current node find its next hop address and how does it find that
   
 out. I
 
 have bunch of more questions like how does the node and agents are
   
 located
 
 to each other because nodes don't store any information regarding agents
   
 or
 
 classifiers within them and vice-versa.

 I am still waiting if someone could lend some insight into it. Please
   
 let me
 
 know if you have any comments or if you find any help.

 Thanks,
 - Faisal


 On 5/21/06, Paul Vincent Craven [EMAIL PROTECTED] wrote:

   
 The proper link is:
 http://www.grid.unina.it/~vollero/resources/doc_ns2.27/html/index.html

 But the documentation there is limited at best.

 I'm in the same boat as you. I've spent a very long time trying to
 understand the passing of events around, how to switch between
 classifiers, etc. I'd love to find someone who really knows NS2 and
 
 hire
 
 them as a consultant for a few hours just to answer all my questions!

 Paul Vincent Craven
 [EMAIL PROTECTED]



 



Re: [ns] Does anyone in this forum has detailed knowledge about the NS2source code?

2006-05-31 Thread Ahmad Khayyat

Just a tiny hint..

When you trace the code, don't forget that ns-2 is a mixture of C++ and 
oTcl. Much of the object passing is done through oTcl.

Faisal Siddiqui wrote:
 Hi Paul,

 Thanks for the link.

 I totally agree with you. I have spent so much time trying to understand as
 to how does the simulation flows through the source code, but can't really
 make any headways anymore. I am trying to implement a new control flow
 mechanism where no packet are dropped, but in order to do so I have read the
 queue size of the next hop so that the current node can decide whether to
 accept any more packets from other nodes or flag its exception indicatiing
 to all other nodes feeding into it to stop sending more packets to it. I am
 really stuck right now because I can't locate where in the source code does
 the current node find its next hop address and how does it find that out. I
 have bunch of more questions like how does the node and agents are located
 to each other because nodes don't store any information regarding agents or
 classifiers within them and vice-versa.

 I am still waiting if someone could lend some insight into it. Please let me
 know if you have any comments or if you find any help.

 Thanks,
 - Faisal


 On 5/21/06, Paul Vincent Craven [EMAIL PROTECTED] wrote:
   
 The proper link is:
 http://www.grid.unina.it/~vollero/resources/doc_ns2.27/html/index.html

 But the documentation there is limited at best.

 I'm in the same boat as you. I've spent a very long time trying to
 understand the passing of events around, how to switch between
 classifiers, etc. I'd love to find someone who really knows NS2 and hire
 them as a consultant for a few hours just to answer all my questions!

 Paul Vincent Craven
 [EMAIL PROTECTED]


 


Re: [ns] Does anyone in this forum has detailed knowledge about the NS2source code?

2006-05-31 Thread Bo Wang

Hi,

IMHO, the mixture of C++ and oTcl is the most annoying feature of NS
which makes it really hard to understand the code.

Best,
Bo Wang


On 5/31/06, Ahmad Khayyat [EMAIL PROTECTED] wrote:


 Just a tiny hint..

 When you trace the code, don't forget that ns-2 is a mixture of C++ and
 oTcl. Much of the object passing is done through oTcl.

 Faisal Siddiqui wrote:
  Hi Paul,
 
  Thanks for the link.
 
  I totally agree with you. I have spent so much time trying to understand
 as
  to how does the simulation flows through the source code, but can't
 really
  make any headways anymore. I am trying to implement a new control flow
  mechanism where no packet are dropped, but in order to do so I have read
 the
  queue size of the next hop so that the current node can decide whether
 to
  accept any more packets from other nodes or flag its exception
 indicatiing
  to all other nodes feeding into it to stop sending more packets to it. I
 am
  really stuck right now because I can't locate where in the source code
 does
  the current node find its next hop address and how does it find that
 out. I
  have bunch of more questions like how does the node and agents are
 located
  to each other because nodes don't store any information regarding agents
 or
  classifiers within them and vice-versa.
 
  I am still waiting if someone could lend some insight into it. Please
 let me
  know if you have any comments or if you find any help.
 
  Thanks,
  - Faisal
 
 
  On 5/21/06, Paul Vincent Craven [EMAIL PROTECTED] wrote:
 
  The proper link is:
  http://www.grid.unina.it/~vollero/resources/doc_ns2.27/html/index.html
 
  But the documentation there is limited at best.
 
  I'm in the same boat as you. I've spent a very long time trying to
  understand the passing of events around, how to switch between
  classifiers, etc. I'd love to find someone who really knows NS2 and
 hire
  them as a consultant for a few hours just to answer all my questions!
 
  Paul Vincent Craven
  [EMAIL PROTECTED]
 
 
 



Re: [ns] Does anyone in this forum has detailed knowledge about the NS2source code?

2006-05-22 Thread Francisco J. Ros

Hi,

snip
On Monday 22 May 2006 14:25, Paul Vincent Craven wrote:
 As for routing, I'd recommend finding the article Implementing MANET
 Routing Protocols in ns2
 http://ants.dif.um.es/masimum/nsrt-howto/html/nsrt-howto.html. I
 think the site it used to be at is gone. You might need to search around
 the web some to find it.
snip

Sorry for the off-topic, but I'd like to clarify this. The URL changed some 
time ago, now you can find the tutorial in 
http://masimum.inf.um.es/?Documents

Please note that the domain name has changed from dif to inf. Until 
December, you can use http://masimum.dif.um.es/, but it will be no longer 
available when 2007 arrives. So, use http://masimum.inf.um.es/ instead.

Best regards,
fran



Re: [ns] Does anyone in this forum has detailed knowledge about the NS2source code?

2006-05-21 Thread Mahmudul Haque Azad

dear faisal,
 you can check out this link http://www.grid.unina
it/~vollero/resources/doc_ns2.27/html/index.html for ns2 source code
documentation.
 
regards
 
Mahmudul Haque Azad
Undergraduate Student
Department of Computer Science  Engineering
Bangladesh University of Engineering  Technology
http://www.mhazad.tk
+880 191 622 735

---Original Message---
 
From: Faisal Siddiqui
Date: 05/20/06 11:32:35
To: ns-users
Subject: [ns] Does anyone in this forum has detailed knowledge about the
NS2source code?
 
Hi,
 
I am really curious to know if anybody in this forum has detailed knowledge
about the network simulator source code. I have a lot of questions and I
have tried posting it here but haven't received any responses with people
who are the architects of the source code.
 
I really want to know once the node is created through node.cc, is that node
referenced anywhere else in the source code? I tried to step through each
step of the source code and could not find any reference to it.
 
In the document, it says that classifiers are associated with each node. Is
there any ways of accessing these classifier from the node itelf? I mean
from the static node list created from node.cc.
 
Is it possible to access queues associated with each classifier (link)?
 
The variable target_ is used all over the source code without providing any
satisfactory explanation for its usage in various places. What does target_
really means? Does it means the next hop node for the packet? If thats the
case then why it's address doesn't match with the address of one of the
nodes from the static node list created initially from node.cc?
 
If someone here knows the inside out of the simulator, please comment on the
above questions.
 
Thanks,
- Faisal


Re: [ns] Does anyone in this forum has detailed knowledge about the NS2source code?

2006-05-21 Thread Faisal Siddiqui

Hi,

I can't open the page because it reports it can't find the server. Could you
possibly check the link.

Thanks in advance.
- Faisal


On 5/21/06, Mahmudul Haque Azad [EMAIL PROTECTED] wrote:


 dear faisal,
 you can check out this link http://www.grid.unina
 it/~vollero/resources/doc_ns2.27/html/index.html for ns2 source code
 documentation.

 regards

 Mahmudul Haque Azad
 Undergraduate Student
 Department of Computer Science  Engineering
 Bangladesh University of Engineering  Technology
 http://www.mhazad.tk
 +880 191 622 735

 ---Original Message---

 From: Faisal Siddiqui
 Date: 05/20/06 11:32:35
 To: ns-users
 Subject: [ns] Does anyone in this forum has detailed knowledge about the
 NS2source code?

 Hi,

 I am really curious to know if anybody in this forum has detailed
 knowledge
 about the network simulator source code. I have a lot of questions and I
 have tried posting it here but haven't received any responses with people
 who are the architects of the source code.

 I really want to know once the node is created through node.cc, is that
 node
 referenced anywhere else in the source code? I tried to step through each
 step of the source code and could not find any reference to it.

 In the document, it says that classifiers are associated with each node.
 Is
 there any ways of accessing these classifier from the node itelf? I mean
 from the static node list created from node.cc.

 Is it possible to access queues associated with each classifier (link)?

 The variable target_ is used all over the source code without providing
 any
 satisfactory explanation for its usage in various places. What does
 target_
 really means? Does it means the next hop node for the packet? If thats the
 case then why it's address doesn't match with the address of one of the
 nodes from the static node list created initially from node.cc?

 If someone here knows the inside out of the simulator, please comment on
 the
 above questions.

 Thanks,
 - Faisal



Re: [ns] Does anyone in this forum has detailed knowledge about the NS2source code?

2006-05-21 Thread Paul Vincent Craven

The proper link is:
http://www.grid.unina.it/~vollero/resources/doc_ns2.27/html/index.html

But the documentation there is limited at best.

I'm in the same boat as you. I've spent a very long time trying to
understand the passing of events around, how to switch between
classifiers, etc. I'd love to find someone who really knows NS2 and hire
them as a consultant for a few hours just to answer all my questions!

Paul Vincent Craven
[EMAIL PROTECTED]



Re: [ns] Does anyone in this forum has detailed knowledge about the NS2source code?

2006-05-21 Thread Faisal Siddiqui

Hi Paul,

Thanks for the link.

I totally agree with you. I have spent so much time trying to understand as
to how does the simulation flows through the source code, but can't really
make any headways anymore. I am trying to implement a new control flow
mechanism where no packet are dropped, but in order to do so I have read the
queue size of the next hop so that the current node can decide whether to
accept any more packets from other nodes or flag its exception indicatiing
to all other nodes feeding into it to stop sending more packets to it. I am
really stuck right now because I can't locate where in the source code does
the current node find its next hop address and how does it find that out. I
have bunch of more questions like how does the node and agents are located
to each other because nodes don't store any information regarding agents or
classifiers within them and vice-versa.

I am still waiting if someone could lend some insight into it. Please let me
know if you have any comments or if you find any help.

Thanks,
- Faisal


On 5/21/06, Paul Vincent Craven [EMAIL PROTECTED] wrote:


 The proper link is:
 http://www.grid.unina.it/~vollero/resources/doc_ns2.27/html/index.html

 But the documentation there is limited at best.

 I'm in the same boat as you. I've spent a very long time trying to
 understand the passing of events around, how to switch between
 classifiers, etc. I'd love to find someone who really knows NS2 and hire
 them as a consultant for a few hours just to answer all my questions!

 Paul Vincent Craven
 [EMAIL PROTECTED]