Writing an Agent

From nsnam
Jump to: navigation, search

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.

External Sources

Implementing a New Manet Unicast Routing Protocol in NS2

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.