The C source code of NetSim looks complicated. Is there someone who knows a quick way of understanding the IoT routing and clustering protocols? Can a new routing protocol be written in a high level language like python and interfaced to NetSim?
NetSim User Manual section on "Writing custom code in NetSim"
NetSim User Manual section on "Advanced Features"
NetSim Knowledge Base section on "Writing your own code in NetSim" - https://tetcos.freshdesk.com/solution/folders/14000090822
Several examples of customized protocol implementations in NetSim can be found in https://www.tetcos.com/file-exchange.html and in the GitHub repo https://github.com/NetSim-TETCOS?tab=repositories.