NAM Trace Format


http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats#DSR_Trace_Formats

 NAM Trace Formats

The general format for a NAM trace is a single letter abbreviation followed by one or more flag/value pairs. This information comes from "The ns Manual" (http://www.isi.edu/nsnam/ns/doc/) "Nam Trace" chapter. It can also be generated by running "nam -p". Note that all flags may not be used every time.

Event Abbreviation Flag Type Value
Comment -- this line is ignored #     
Dummy event to be used in time synchronization T -ttime Time
Node n -ttime Time
-sint Node ID
-udouble X Velocity
-Udouble X Velocity
-Vdouble Y Velocity
-vshape Shape (circle, box, hexagon)
-ccolor Color
-zdouble Size Of Node
-aint Address
-xdouble X Location
-ydouble Y Location
-Zdouble Z Location (Not Supported)
-icolor Label Color
-bstring Label
-lstring Label
-ocolor Previous Color
-Sstring State (UP, DOWN, COLOR)
-Lstring Previous Label
-pstring Label Location
-Pstring Previous Label Location
-icolor Inside Label Color
-Icolor Previous Inside Label Color
-ecolor Label Color
-Ecolor Previous Label Color
-Tdouble Duration Of Movement
-wflag Wireless Node
Link l -ttime Time
-sint Source ID
-dint Destination ID
-rdouble Transmission Rate
-Ddouble Delay
-hdouble Length
-OorientationOrientation
-bstring Label
-ccolor Color
-ocolor Previous Color
-Sstring State (UP, DOWN)
-lstring Label
-Lstring Previous Label
-ecolor Label Color
-Ecolor Previous Label Color
Packet h: Hop
r: Receive
d: Drop Line
+: Enqueue
-: Dequeue
-ttime Time
-sint Source ID
-dint Destination ID
-eint Extent
-aint Packet Color Attribute ID
-iint ID
-lint Energy
-cstring Conversation
-xcomment Comment
-pstring Packet Type
-kstring Packet Type
-ycomment  
-Sint  
-mint  
-fint  
Session E: Enqueue
D: Dequeue
P: Drop
-ttime Time
-sint Source ID
-dint Destination ID
-eint Extent
-aint Attribute
-iint ID
-lint Energy
-cstring Conversation
-xcomment Comment
-pstring Packet Type
-kstring Packet Type
Agent a -ttime Time
-sint Source ID
-dint Destination ID
-xflag Remove Agent
-nstring Agent Name
Feature f -ttime Time
-sint Source ID
-dint Destination ID
-xflag Remove Feature
-Tchar Type
-nstring Name
-astring Agent
-vstring Value
-ostring Previous Value
Group G -ttime Time
-nstring Name
-iint Node ID
-aint Group ID
-xflag Remove From Group
Lan link L -ttime Time
-sint Source ID
-dint Destination ID
-oorientationOrientation
-OorientationOrientation
Mark node m -ttime Time
-nstring Name
-sint Node ID
-cstring Color
-hstring Shape (circle, square, hexagon)
-Xflag Remove Mark
Routing event R -ttime Time
-sint Source ID
-dint Destination ID
-gint Multicast Group
-ppacket sourcePacket Source ID Or *
-nflag Negative Cache
-xflag This Route Timed Out
-Tdouble Timeout
-mstring Mode (IIF Or OIF)
Execute tcl expression v -ttime Time
-etcl expressionTcl Script
Set trace file version V -ttime Time
-vstring Version
-aint Attribute
Use nam graph N     
Wireless range W -ttime Time
-xint X
-yint Y
Energy status -- for future use g -ttime Time
Hierarchical address space configuration -- initialization only A -ttime Time
-nint Hierarchy
-pint Port Shift
-ohexadecimalPort Mask
-cint Multicast Shift
-aint Multicast Mask
-hint Hierarchy
-mint Node Shift
-sint Node Mask
Color table configuration -- initialization only c -ttime Time
-iint ID
-nstring Color
Create packet queue -- initialization only q -ttime Time
-sint Source ID
-dint Destination ID
-aorientationOrientation
Layout lan X -ttime Time
-nstring Name
-rdouble Rate
-Ddouble Delay
-oorientationOrientation
-OorientationOrientation

For Packet events (entries starting with "h", "r", "d", "+", or "-"), the comment field (field after "-x" has the following format:

Event Type Value
Node Trace {%s.%s %s.%s %d %s %s}
string Source Node Address
string Source Node Port
string Destination Node Address
string Destination Node Port
int Sequence Number
string Flags
string Packet Name                             










Comments