ABSTRACT

The architecture of NS2 and certain preliminary concepts were discussed in Chapter 4 and Chapter 5. In this chapter, we discuss simulation of a wired network. Computer communication networks may be classified into two types: wired and wireless. In wired networks, the nodes are connected via cables. On the other hand, in wireless networks the nodes are connected with air as the medium. In the first case a topology of the network is usually defined, whereas in the second case nodes can move and the topology changes dynamically and hence no static topology can be defined. If a node comes within the communication range of another node, then direct communication between the two nodes is possible. In this chapter we discuss simulation of wired networks, and wireless network simulation is discussed in Chapter 7. We start with a few simple examples and gradually develop programs of increasing sophistication with the objective of being able to simulate real-life wired network scenarios for various kinds of networks.