Applications sit on top of transport agents in ns. There are two basic types
of applications: traffic generators and simulated applications.
Figure illustrates two examples of how applications
are composed and attached to transport agents. Transport agents are described
in Part V (Transport).
This chapter first describes the base Application../ns-2/app.h. Next, the transport API, through which applications request services from underlying transport agents, is described. Finally, the current implementations of traffic generators and sources are explained.