2009-12-20

NS2 new trace format

###### event type (事件類型) ######
$1 ==> event [s: send(傳送); r: receive(接收); d:drop(丟棄); f: forward(轉送)]

###### general flag ######
$2 ==> -t
$3 ==> 時間

###### Next hop info (下一站的資訊) ######
$4 ==> -Hs
$5 ==> id for this node

$6 ==> -Hd
$7 ==> id for next hop towards the destination

###### Node property type tag (節點屬性類型標籤) ######
$8 ==> -Ni
$9 ==> node id (節點ID)

$10 ==> -Nx
$11 ==> node's x coordinate (節點的x座標位置)

$12 ==> -Ny
$13 ==> node's y coordinate (節點的y座標位置)

$14 ==> -Nz
$15 ==> node's z coordinate (節點的z座標位置)

$16 ==> -Ne
$17 ==> node energy level

$18 ==> -Nl
$19 ==> trace level [AGT: Agent trace ; RTR: Router trace; MAC: Mac trace]

$20 ==> -Nw
$21 ==> reason for the event (事件發生原因)

###### packet info at MAC level (封包在Mac層的資訊) ######
$22 ==> -Ma
$23 ==> duration

$24 ==> -Md
$25 ==> dest's ethernet address

$26 ==> -Ms
$27 ==> src's ethernet address

$28 ==> -Mt
$29 ==> ethernet type

###### Packet information at IP level (封包在IP層的資訊) ######
$30 ==> -Is
$31 ==> source address.Source port number (來源位置,a.b其中a為節點ID,b為埠號)

$32 ==> -Id
$33 ==> dest address.dest port number (目的位置,c.d其中c為節點ID,d為埠號)

$34 ==> -It
$35 ==> packet type (封包類型)

$36 ==> -Il
$37 ==> packet size (封包大小)

$38 ==> -If
$39 ==> flow id (資料流ID)

$40 ==> -Ii
$41 ==> unique id (唯一的ID編號)

$42 ==> -Iv
$43 ==> ttl value (Time To Live的值)

###### Packet info at Application level(封包在應用層的資訊) ######
包含的應用程式類型如arp, tcp或者是adhoc路由協定像是DSDR, DSR, AODV等等。
這個欄位都是以P所開頭的,且標籤為隨著應用程式不同而不同。

r -t 29.994272667 -Hs 3 -Hd -2 -Ni 3 -Nx 70.00 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0

沒有留言: