I. Introduction
There are many commercial and university based acoustic modems in use around the world, and they use many forms of MAC protocols - both scheduled (such as TDMA) and random access. Improved underwater MAC protocols for varying deployment scenarios are constantly being investigated in many research institutes and commercial entities. The primary mode of investigation is through simulations using network simulators such as NS2 etc, with proprietary modifications to model the underwater channel. Simulations are used since the design/debug/validate cycle is less costly. Some of the promising protocols can then be implemented in modems for sea trials. This typically involves porting of simulation code into the appropriate programming language and software environment in a modem. There are many challenges associated with such a porting process. One of them is to maintain exact algorithmic match in the modem implementation and the simulation code since minor variations in the protocol logic can have significant effects on the protocol behavior. If coded separately based on simulation code from another environment, there could be significant costs in terms of time and effort to develop it.