Thursday, December 30, 2010

Wireless Trace format : Default


All trace data will be recorded into a specified trace file in a certain format. The default trace format is as show below,


s 75.509208000 _0_ MAC  --- 6 cbr 100 [0.01 1 0] [energy 999.310079] ---
---- [0:0 10:0 32 1] [6] 0 0

r 75.552208667 _1_ MAC  --- 6 cbr 100 [0.01 1 0] [energy 999.411071] ----
--- [0:0 10:0 32 1] [6] 0 0

s 81.997210667 _0_ MAC  --- 7 cbr 100 [0.07 1 0] [energy 999.274915] ----
--- [0:0 10:0 32 1] [7] 0 0

s 82.051212000 _0_ MAC  --- 7 cbr 100 [0.01 1 0] [energy 999.273208] ----
--- [0:0 10:0 32 1] [7] 0 0

r 82.094212667 _1_ MAC  --- 7 cbr 100 [0.01 1 0] [energy 999.372559] -----
-- [0:0 10:0 32 1] [7] 0 0

s 83.502206667 _0_ MAC  --- 8 cbr 100 [0.07 1 0] [energy 999.251147] ----
--- [0:0 10:0 32 1] [8] 0 0

s 83.556208000 _0_ MAC  --- 8 cbr 100 [0.01 1 0] [energy 999.249441] ----
--- [0:0 10:0 32 1] [8] 0 0

r 83.599208667 _1_ MAC  --- 8 cbr 100 [0.01 1 0] [energy 999.366944] ----
--- [0:0 10:0 32 1] [8] 0 0

s 85.112206667 _0_ MAC  --- 9 cbr 100 [0.07 1 0] [energy 999.225868] ----
--- [0:0 10:0 32 1] [9] 0 0

s 85.166208000 _0_ MAC  --- 9 cbr 100 [0.01 1 0] [energy 999.224162] ----
--- [0:0 10:0 32 1] [9] 0 0

r 85.209208667 _1_ MAC  --- 9 cbr 100 [0.01 1 0] [energy 999.361227] ----
--- [0:0 10:0 32 1] [9] 0 0

The fields of trace format are explaining as follows.
  1. The first field represents the event type, whose value can be s (send), r (receive), d (drop) or f (forward).
  2. The second field the time this event happens.
  3. The third field records the id of the node, on which this event takes place.
  4. The fourth field shows the layer where this event happens. Its possible value may be one of the following four: AGT (agent), RTR (router), IFQ (interface queue), and MAC (mac).
  5. The fifth field is normally a short broken line, which is reserved for special events. For example, when collision occurs, the broken line is replaced with COL.
  6. The sixth field is the global sequence number for this packet, which is the integer number used to identify this packet in the whole network and distinguish it from others. Sequence number is only available for data packets and not allocated for control packets, like RTS/CTS/ACK and SYNC packets in S-MAC (using a zero instead).
  7. The seventh field is the packet type. The actual value is determined by the application or MAC layer, which creates this packet. For example, cbr represents that it is a data packet generated by a CBR traffic source.
  8. The eighth field is the packet size in bytes.
  9. The ninth field including three numbers in brackets concerns MAC layer information. Originally, there will be four numbers in the brackets. But S-MAC revises this format. The first number is the duration field of this packet. In Figure 4.6, the duration field of this RTS packet is 0.11 s, which is the remaining time reserved for the coming transmission. The second number stands for the MAC address of the receiver of this packet, and the third number for the sender.
  10. The tenth field including energy remained for the node at that time.
  11. The eleventh field gives source IP, Destination IP, TTL.
  12. This field gives unique packet ID.

1 comment:

  1. Hi, do u have the trace file format for Mobiwan?

    ReplyDelete