ACTION: [s|r|D]: s -- sent, r -- received, D -- dropped
WHEN: the time when the action happened
WHERE: the node where the action happened
LAYER:
?????????? AGT -- application, RTR -- routing, LL -- link layer (ARP is done here)
?????????? IFQ -- outgoing packet queue (between link and mac layer)
?????????? MAC -- mac, PHY -- physical flags:
SEQNO: the sequence number of the packet
TYPE: the packet type??
??????????? cbr -- CBR data stream packet??
?????????? DSR -- DSR routing packet (control packet generated by routing)??
?????????? RTS -- RTS packet generated by MAC 802.11??
?????????? ARP -- link layer ARP
packet SIZE: the size of packet at current layer, when packet goes down, size increases, goes up size decreases
[a b c d]: a -- the packet duration in mac layer header??
?????????????? b -- the mac address of destination??
?????????????? c -- the mac address of source??
?????????????? d -- the mac type of the packet body
flags: [......]: [?? source node ip : port_number?? destination node ip (-1 means broadcast) : port_number?? ip header ttl?? ip of next hop (0 means node 0 or broadcast)?? ]
舉例:Mflood協(xié)議仿真的trace文件。
s 10.000000000 _0_ AGT --- 0 cbr 512 [0 0 0 0] ------- [0:0 2:0 32 0] [0] 0 0
r 10.000000000 _0_ RTR --- 0 cbr 512 [0 0 0 0] ------- [0:0 2:0 32 0] [0] 0 0
s 10.000000000 _0_ RTR --- 0 cbr 532 [0 0 0 0] ------- [0:0 2:0 30 0] [0] 0 0
r 10.004812500 _1_ RTR --- 0 cbr 532 [0 ffffffff 0 800] ------- [0:0 2:0 30 0] [0] 1 0
f 10.020795609 _1_ RTR --- 0 cbr 532 [0 ffffffff 0 800] ------- [0:0 2:0 29 0] [0] 1 0
r 10.025728109 _0_ RTR --- 0 cbr 532 [0 ffffffff 1 800] ------- [0:0 2:0 29 0] [0] 2 0
D 10.025728109 _0_ RTR LOOP 0 cbr 532 [0 ffffffff 1 800] ------- [0:0 2:0 29 0] [0] 2 0
r 10.025728109 _2_ AGT --- 0 cbr 532 [0 ffffffff 1 800] ------- [0:0 2:0 29 0] [0] 2 0
1.?????? 在第10S時 一個ID為0的節(jié)點 應(yīng)用層發(fā)出了一個CBR分組,這個分組的UID為0長度為512,源地址0:0,目標(biāo)地址2:0,分組生存周期32
2.?????? 在第10S時 一個ID為0的節(jié)點 路由層接收了一個CBR分組,這個分組的UID為0長度為512,源地址0:0,目標(biāo)地址2:0,分組生存周期32
3.?????? 在第10S時 一個ID為0的節(jié)點 路由層發(fā)送了一個CBR分組,這個分組的UID為0長度為532,源地址0:0,目標(biāo)地址2:0,分組生存周期30
4.?????? 在第10.004812500S時 一個ID為1的節(jié)點 路由層接收了一個CBR分組,這個分組的UID為0長度為532,源地址0:0,目標(biāo)地址2:0,分組生存周期30
5.?????? 在第10.020795609S時 一個ID為1的節(jié)點 路由層轉(zhuǎn)發(fā)收了一個CBR分組,這個分組的UID為0長度為532,源地址0:0,目標(biāo)地址2:0,分組生存周期29
6.?????? 在第10.025728109S時 一個ID為0的節(jié)點 路由層接收了一個CBR分組,這個分組的UID為0長度為532,源地址0:0,目標(biāo)地址2:0,分組生存周期20
7.?????? 在第10.025728109S時 一個ID為0的節(jié)點 路由層丟掉了一個分組,原因是路由環(huán)回。
8.?????? 在第10.025728109S時 一個ID為2的節(jié)點 應(yīng)用層接收了一個CBR分組,這個分組的UID為0長度為532,源地址0:0,目標(biāo)地址2:0,分組生存周期30