Explanation of new trace format

The new trace format as seen above can be can be divided into the following fields :
Event type
In the traces above, the first field (as in the older trace format) describes the type of event taking place at the node and can be one of the four types:

General tag
The second field starting with "-t" may stand for time or global setting
* (global setting)

Node property tags
This field denotes the node properties like node-id, the level at which tracing is being done like agent, router or MAC. The tags start with a leading "-N" and are listed as below:
node id
node's x-coordinate
node's y-coordinate
node's z-coordinate
node energy level
trace level, such as AGT, RTR, MAC
reason for the event. The different reasons for dropping a packet are given below:

DROP_RTR_NO_ROUTE i.e no route is available.
DROP_RTR_ROUTE_LOOP i.e there is a routing loop
DROP_RTR_TTL i.e TTL has reached zero.
DROP_RTR_QTIMEOUT i.e packet has expired.

DROP_IFQ_QFULL i.e no buffer space in IFQ.
DROP_IFQ_ARP_FULL i.e dropped by ARP
DROP_OUTSIDE_SUBNET i.e dropped by base stations on receiving routing updates from nodes outside its domain.

Packet information at IP level
The tags for this field start with a leading "-I" and are listed along with their explanations as following:
source address.source port number
dest address.dest port number
packet type
packet size
flow id
unique id
ttl value

Next hop info
This field provides next hop info and the tag starts with a leading "-H".
id for this node
id for next hop towards the destination.

Packet info at MAC level
This field gives MAC layer information and starts with a leading "-M" as shown below:
dst's ethernet address
src's ethernet address
ethernet type

Packet info at "Application level"
The packet information at application level consists of the type of application like ARP, TCP, the type of adhoc routing protocol like PUMA, DSR, AODV etc being traced. This field consists of a leading "-P" and list of tags for different application is listed as below:
-P arp
Address Resolution Protocol. Details for ARP is given by the following tags:
ARP Request/Reply
src mac address
src address
dst mac address
dst address

-P dsr
This denotes the adhoc routing protocol called Dynamic source routing. Information on DSR is represented by the following tags:
how many nodes traversed
routing request flag
route request sequence number
routing reply flag
reply length
src of srcrouting->dst of the source routing
error report flag ?
number of errors
report to whom
link error from linka->linkb

-P cbr
Constant bit rate. Information about the CBR application is represented by the following tags:

sequence number
how many times this pkt was forwarded
optimal number of forwards

-P tcp
Information about TCP flow is given by the following subtags:

seq number
ack number
how many times this pkt was forwarded
optimal number of forwards

This field is still under development and new tags shall be added for other applications as they get included along the way.

Tom Henderson 2011-11-05