Week 5
 

I have spent most of this week studying the C++ source code of the NS-2 simulator. The source code consists of hundreds of classes, and very little documentation, so this is not an easy task! Yong suggested that I approach the energy model by dividing up the energy usage into three parts: communication between nodes, computation of a route, and static energy while a packet is being buffered in a queue. The energy model existing in the NS-2 simulator so far is a very basic and rough estimate, and only accounts for the communication energy. Therefore, it is up to me to understand the source code and put in variables that will compute the energy usage in more specific procedures. This has been a very very slow process for me! I am running into a lot of lines of code that I simply cannot make sense of or trace back. However, the more I look at it, the easier it is. I think the most valuable experience I am getting right now is that of "the research process." I am searching for and reading relevant papers, and studying models and code that have little documentation. These are probably some of the most common practices in research and I am sure I will find this experience very helpful later on.