Can the matlab code integration with ns2 and how the approach or the output from matlab can used in ns2?
Can the matlab code integration with ns2 and how the approach or the output from matlab can used in ns2?
When designing a new routing protocol, an important step in its development is often to implement and experiment with it in a network simulator like NS2. While network simulators have their limits, especially in terms of fidelity of the lower layers and - for wireless network interfaces - in the fidelity of the propagation model used to represent the behavior of physical radio waves, Level and properties Algorithms of a given routing protocol. Particularly in the field of AdHoc mobile networks (MANET), simulations are easier to carry out than building a large network of node testing, simulating mobility and ensuring reproducibility of predefined scenarios. The use of NS2 as a network simulator requires that the routing protocol be implemented in C ++. However, there is a tool called AgentJ that allows you to run Java applications within NS2. In particular, AgentJ allows running unmodified and preexisting Java applications that run on top of an operating system such as Linux or Mac OS also in NS2. AgentJ rewrites all calls related to socket, I / O, and thread processing operations, so the Java application "as is" interacts with NS2. AgentJ was originally developed only for application layer agents, and not for routing agents. This document describes the necessary changes in the AgentJ architecture that allow the use of Java routing protocols within NS2, as well as detailed instructions on how to instantiate and execute in NS2 a new routing protocol implemented in Java.