Writing an Agent
Writing an agent is usually necessary to implement a new routing protocol in ns2. Along with the basic question of how to send, receive and deal with custom packets comes the whole issue of how to actually start.
Several people have overcome that issue before and wrote down their experience and advise for others as a start. This page tries to sum up all these efforts and wants to give an overview on the issue.
This paper describes in detail the procedure necessary to implement a generic routing agent. It utilizes
Scheduler::instance().schedule(target_, p, JITTER); in order to send control packets.