@node Animation @chapter Animation @anchor{chap:Animation} @menu * Animation interface:: * NetAnim:: @end menu Animation is an important tool for network simulation. While ns-3 does not contain a default graphical animation tool, it does provide an animation interface for use with stand-alone animators. One such animator called NetAnim, presently supporting packet flow animation for point-to-point links, has been developed. Other animators and visualization tools are in development; they may make use of the existing animation interface or may develop new ones, @node Animation interface @section Animation interface The animation interface uses underlying ns-3 trace sources to construct a timestamped ASCII file that can be read by a standalone animator. The animation interface in ns-3 currently only supports point-to-point links; however, we hope to support other link types such as CSMA and wireless in the near future. A snippet from a sample trace file is shown below. @verbatim 0.0 N 0 4 5.5 0.0 N 1 7 5.5 0.0 N 2 2.5 2.90192 ... 0.0 L 0 1 0.0 L 0 2 0.0 L 0 3 ... Running the simulation 0.668926 P 11 1 0.66936 0.669926 0.67036 0.67036 P 1 0 0.670794 0.67136 0.671794 0.671794 P 0 6 0.672227 0.672794 0.673227 ... @end verbatim The tracefile describes where nodes and links should be placed at the top of the file. Following this placement, the packet events are shown. The format for node placement, link placement and packet events is shown below. @itemize @bullet @item Node placement: