ns-2 trace format from MIT LEACH
다음은 LEACH 프로토콜의 trace 파일 예이다.
old wireless trace format 에서 RCA 부분만 추가된 형태이다.
s 100.907726608 _8_ AGT --- 13139 rca 16 [0 8000000 0 0] ------- [R 8 74 -1]
s 100.907778134 _26_ AGT --- 13140 rca 16 [0 1a000000 0 0] ------- [R 26 74 -1]
r 100.908064626 _29_ AGT --- 13139 rca 16 [0 8000000 ffff0008 0] ------- [R 8 74 -1]
r 100.908064635 _77_ AGT --- 13139 rca 16 [0 8000000 ffff0008 0] ------- [R 8 74 -1]
r 100.908064641 _23_ AGT --- 13139 rca 16 [0 8000000 ffff0008 0] ------- [R 8 74 -1]
s 100.907778134 _26_ AGT --- 13140 rca 16 [0 1a000000 0 0] ------- [R 26 74 -1]
r 100.908064626 _29_ AGT --- 13139 rca 16 [0 8000000 ffff0008 0] ------- [R 8 74 -1]
r 100.908064635 _77_ AGT --- 13139 rca 16 [0 8000000 ffff0008 0] ------- [R 8 74 -1]
r 100.908064641 _23_ AGT --- 13139 rca 16 [0 8000000 ffff0008 0] ------- [R 8 74 -1]
| Event | Abbreviation | Type | Value |
|---|---|---|---|
| Wireless Event | s: Send r: Receive d: Drop f: Forward |
%.9f %d (%6.2f %6.2f) %3s %4s %d %s %d [%x %x %x %x] | |
| %.9f _%d_ %3s %4s %d %s %d [%x %x %x %x] | |||
| double | Time | ||
| int | Node ID | ||
| double | X Coordinate (If Logging Position) | ||
| double | Y Coordinate (If Logging Position) | ||
| string | Trace Name | ||
| string | Reason | ||
| int | Event Identifier | ||
| string | Packet Type | ||
| int | Packet Size | ||
| hexadecimal | Time To Send Data | ||
| hexadecimal | Destination MAC Address | ||
| hexadecimal | Source MAC Address | ||
| hexadecimal | Type (ARP, IP) | ||
| RCA Trace (from MIT Leach code) | ------- [%c %d %d %d] | |
| char | Operation (A, R, D) | |
| int | RCA Source | |
| int | RCA Link Destination | |
| int | RCA MAC Destination | |
ns-2의 trace format은 아래 사이트에 가면 설명되어져 있다. 밑에 내려보면 LEACH도 있다.
http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
http://www.joon.pe.kr/blog/trackback/23
Commented by hoang anh at 2008/08/17 12:54 Reply|Edit|Delete
Hi do you know how to create a file like out.tr in leach? Unfortunately, I can't make that
Replied by jooness at 2008/08/18 16:13 Edit|Delete
You find that /tmp directory.
