I am working on a project involving spectrum sensing of VANETs. To do that, i need to specify formation of clusters and cluster heads to coordinate the whole process. My question is, how do i specify cluster formation? is it on the Omnet++ platform or on sumo? I have successfully installed sumo 0.25.0, veins 4.4, and Omnet++ 4.6. and i have imported the map from openstreetmap onto sumo.
Rop.
In most cases vehicle clustering in Veins happens in the application layer and therefore is completely independent from SuMO which only is responsible for the vehicle movements.
Hence, code to form clusters has to be written in OMNeT++ modules in your Veins simulation. Basically, you can put your code wherever you like, however it is nice to stick to the current project structure which would suggest to put your modules in src/veins/modules/application.
To get algorithms for forming clusters you can search the literature or come up with your own ideas which you than have to implement within the aforementioned modules. Consider the Tic Toc Tutorial to find out how to add modules and functionality.