In order to improve network performance of delay and throughput, an increasing number of networks begin to support multi-channel communications. Although Network Simulator 2 (NS2) has been the dominant network simulation tool, it does not provide native support for multi-channel simulation. Existing works on extending NS2, such as Hyacinth's and Ramon's contributions, show apparent limitations for usage. This paper proposes a novel extension of NS2, named Multi-channel MAC Simulation Model (MMSM), which defines the facilities for multi-channel MAC protocol simulation.
This paper describes the initiative, simulation model architecture of MMSM. Based on extensions of NS2 MobileNode architecture, MMSM has features of flexibility of configuration and transparency to the upper layer. MMSM defines one MAC entity associated with a number of NetIF (Network Interface) entities and each NetIF adhered to one channel. So the mobile node has the ability to send and receive packets simultaneously through multiple channels to or from different adjoining nodes. Thus MMSM provides strong support for simulating newly designed multi-channel MAC protocols such as MAC over Multiple Input Multiple Output (MIMO) or MIMO-like mechanisms. MMSM not only makes the specific simulation available, but also keeps the upper layer facilities unchanged as usual when implementing multi-channel simulation.
The paper also describes the implementation of MMSM in NS2 (version 2.29). Modifications are carried out both on TCL and on C++ codes. In TCL level ns-mobilenode.tcl and ns-lib.tcl are modified to assemble the multi-channel components and to make TCL scripts to support multi-channel configuration. In C++ level mac.{h,cc}, mobilenode.{h,cc} and channel.{h,cc} are modified to add the channel selection algorithm and to manage the multi-channel node lists. Based on modifications of NS2 described above, researchers can implement their multi-channel MAC protocols conveniently.
To validate the implementation of MMSM, two existing MAC protocols in NS-2.29, the Mac802_11 and Tdma, are extended to have the capability of multi-channel processing. Two typical scenarios are chosen to run the simulation on both the multi-channel and the single channel. Simulation results show that the network throughput of multi-channel MAC is enhanced over the single channel MAC, and therefore it proves the multi-channel capability of MMSM.