Greetings, I have an ad-hoc wireless protocol that has been implemented and fielded in an embedded system. I would like to simulate it for performance benchmarking. My problem is that the code is written in C and it has it's own custom implementation for the MAC, routing protocol, queueing, etc. I have just started looking into ns-2, and from what I understand, it requires the MAC, routing protocol, and message queue to be in seperate classes (inheriting from Agent, Mac, etc.).
Is it possible to use ns-2 to simulate a node at the transport layer, and treat the rest as a black box? If not, do you have any suggestions/comments for simulating this firmware? Thanks in advance, Jeff S.