The document presents NS4, a programmable data plane simulation tool that simplifies the development of behavioral models and bridges the gap between simulation and real-world implementation, utilizing P4. It describes the NS4 architecture, including its runtime, controller, and configurator, which facilitate flow table entry management and statistical data collection. The evaluation shows significant performance improvements over traditional methods and outlines future work to enhance NS4's functionality and efficiency.