The document presents a domain-specific metamodel and graphical syntax for programming with ns-2, a popular network simulation tool, aimed at reducing its complexity and enhancing productivity. It introduces a model-driven engineering approach to create an abstract representation of ns-2 concepts, enabling more efficient program development through the use of domain-specific modeling languages. The paper includes discussions on abstract and concrete syntaxes, case studies demonstrating the practical application of the proposed metamodel, and graphical representations of network simulations.