NS2学习:看懂trace文件
2008-05-20 22:53
162 查看
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协议仿真的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的节点 应用层发出了一个CBR分组,这个分组的UID为0长度为512,源地址0:0,目标地址2:0,分组生存周期32
2. 在第10S时 一个ID为0的节点 路由层接收了一个CBR分组,这个分组的UID为0长度为512,源地址0:0,目标地址2:0,分组生存周期32
3. 在第10S时 一个ID为0的节点 路由层发送了一个CBR分组,这个分组的UID为0长度为532,源地址0:0,目标地址2:0,分组生存周期30
4. 在第10.004812500S时 一个ID为1的节点 路由层接收了一个CBR分组,这个分组的UID为0长度为532,源地址0:0,目标地址2:0,分组生存周期30
5. 在第10.020795609S时 一个ID为1的节点 路由层转发收了一个CBR分组,这个分组的UID为0长度为532,源地址0:0,目标地址2:0,分组生存周期29
6. 在第10.025728109S时 一个ID为0的节点 路由层接收了一个CBR分组,这个分组的UID为0长度为532,源地址0:0,目标地址2:0,分组生存周期20
7. 在第10.025728109S时 一个ID为0的节点 路由层丢掉了一个分组,原因是路由环回。
8. 在第10.025728109S时 一个ID为2的节点 应用层接收了一个CBR分组,这个分组的UID为0长度为532,源地址0:0,目标地址2:0,分组生存周期30
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协议仿真的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的节点 应用层发出了一个CBR分组,这个分组的UID为0长度为512,源地址0:0,目标地址2:0,分组生存周期32
2. 在第10S时 一个ID为0的节点 路由层接收了一个CBR分组,这个分组的UID为0长度为512,源地址0:0,目标地址2:0,分组生存周期32
3. 在第10S时 一个ID为0的节点 路由层发送了一个CBR分组,这个分组的UID为0长度为532,源地址0:0,目标地址2:0,分组生存周期30
4. 在第10.004812500S时 一个ID为1的节点 路由层接收了一个CBR分组,这个分组的UID为0长度为532,源地址0:0,目标地址2:0,分组生存周期30
5. 在第10.020795609S时 一个ID为1的节点 路由层转发收了一个CBR分组,这个分组的UID为0长度为532,源地址0:0,目标地址2:0,分组生存周期29
6. 在第10.025728109S时 一个ID为0的节点 路由层接收了一个CBR分组,这个分组的UID为0长度为532,源地址0:0,目标地址2:0,分组生存周期20
7. 在第10.025728109S时 一个ID为0的节点 路由层丢掉了一个分组,原因是路由环回。
8. 在第10.025728109S时 一个ID为2的节点 应用层接收了一个CBR分组,这个分组的UID为0长度为532,源地址0:0,目标地址2:0,分组生存周期30
相关文章推荐
- NS2学习:看懂trace文件(2)
- 看懂trace文件1(转)
- ns2的trace文件分析过程
- ns2的trace文件分析过程
- ns2中程序未执行完无trace文件探究
- ns2中关于mac层802.11协议的学习“trace”
- NS2 trace文件分析脚本(适合无线trace)
- NS2中有线网络trace文件分析脚本(awk)
- Trace文件(NS2仿真结果)详解
- NS2:能量模型以及新版Trace格式仿真结果(.tr文件)中各数据的含义
- 学习java线程状态和看懂thread dump文件中的线程信息
- pl脚本处理ns2的trace文件计算平均时延
- 看懂trace文件(2)(转)
- NS2下的无线Trace文件分析
- ns2中限制Trace文件的输出
- NS2中trace文件分析
- NS2无线仿真中的Trace文件分析
- NS2 trace文件分析脚本(适合无线trace)
- NS2相关学习——创建Xgraph的输出文件
- NS2 trace文件分析脚本(适合无线trace)