Because of the complexity of some systems and the random and undetermined behavior of their components, acquiring some of their parameters may be impossible or may require much expense, time, and energy unless it is done by simulation. In such situations, the simulation becomes very important. Network switches are complicated systems. Therefore, their performance is evaluated via simulation. One conventional approach is computer simulation. Many computer softwares have been developed for the purpose of facilitating and accelerating simulation of network switches. Some of these softwares, such as OPNet, have a vast library of simulated protocols, services, and equipments of a network. They also make easy and fast simulation of a network switch possible. Unfortunately, all these softwares are commercial and expensive. Thus, in order to simulate a network switch, one should either use non-commercial special purpose simulators that have been designed for simulation of network or its equipments such as NS, Having studied each of the above softwares, we realized that only OMNet++, which is also non-commercial, has many parameters of a good simulator and has many advantages compared to other non-commercial simulators. The major disadvantage of OMNet++ is the lack of a complete library or a complete model of protocols, services and components of networks. Models that have been developed by this simulator are either not yet complete or not enough generic. Therefore, these models are either not enough configurable or configuring them is not easy and so simulation of a new switch with this simulator takes much time. In this work, we will explain how to complete the libraries of OMNet++ in order to achieve easy and fast simulation of a network switch and we will propose a new format for configuring a network switch.