網頁

2010年5月11日 星期二

Network Simulation Evaluation (NS2)

Wireless new trace format

[Example]
s -t 0.001978125 -Hs 12 -Hd -2 -Ni 12 -Nx 0.00 -Ny 0.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md c000000 -Ms ffff0008 -Mt message -Is 12.42 -Id -1.42 -It message -Il 30 -If 0 -Ii 2 -Iv 32 




1st field - Packet event
s: send
r: recv
d:drop
f: forward

2nd field - Event time 
-t time

3rd field - Next hop info
-Hs: id for this node
-Hd: id to the next hop towards the destination
  -> -1 broadcast
  -> -2 not deployed yet

4th field - Node property
-Ni:
-Nx -Ny -Nz : node's coordinate
Ne: node energy level
Nl: trace level (ex: AGT..etc)
Nw: reason for the event - 
END” DROP_END_OF_SIMULATIONCOL” DROP_MAC_COLLISIONDUP” DROP_MAC_DUPLICATEERR” DROP_MAC_PACKET_ERRORRET” DROP_MAC_RETRY_COUNT_EXCEEDEDSTA” DROP_MAC_INVALID_STATEBSY” DROP_MAC_BUSYNRTE” DROP_RTR_NO_ROUTE 
LOOP” DROP_RTR_ROUTE_LOOP 
TTL” DROP_RTR_TTL 
TOUT” DROP_RTR_QTIMEOUT 
CBK” DROP_RTR_MAC_CALLBACKIFQ” DROP_IFQ_QFULL  
ARP” DROP_IFQ_ARP_FULL 
OUT” DROP_OUTSIDE_SUBNET

5th field - Packet info at IP level
-Is: source address.port
-Id: dst address.port
-It: packet type
-Il: packet size
-If: flow id
-Ii: unique id
-Iv: time to live

6th field - Packet info at MAC level
-Ma: duration
-Md: destination's addr
-Ms: source's addr
-Mt: ethernet type


沒有留言: