Professional Documents
Culture Documents
information is appended to the end of the regular wireless trace format. Event Abbreviation Type double int int string r: Receive d: Drop Normal Event e: Error +: Enqueue -: Dequeue int string int int int int int int Time (Link-layer) Source Node (Link-layer) Destination Node Packet Name Packet Size Flags Flow ID (Network-layer) Source Address Source Port (Network-layer) Destination Address Destination Port Sequence Number Value %g %d %d %s %d %s %d %d.%d %d.%d %d %d
int Unique Packet ID The flags are read as follow (the "value" is displayed instead of `-` if flag is set). Each row is one of the "slots", from left to right. From from ns/trace/trace.cc. Value C P A E F N Congestion Action Congestion Experienced (CE) Fast Start ECN-capable ECN-echo pri_ (supposedly unused) Meaning
SCTP-only Depending on the packet type, the trace may log additional information: Event int TCP Trace hexadecimal int int Type %d 0x%x %d %d Ack Number Flags (Used by FullTCP) FIN=0x01, SYN=02, PUSH=08, ACK=10, ECE=40, CWR=80 Header Length Socket Address Length Value
%.2f %.2f %.2f %.2f double Satellite Trace double double double Source Latitude Source Longitude Destination Latitude Destination Longitude
Wireless Event
hexadecimal Type (ARP, IP) Some older versions of NS2 (such as 2.1b5) have five hexidecimal values between the square braces. The first hexidecimal value is the MAC frame control information, and the remaining hexidecimal values are the same as listed above. Depending on the packet type, the trace may log additional information: Event Type Value
------- [%s %d/%d %d/%d] string ARP Trace int int int int Request or Reply Source MAC Address Source Address Destination MAC Address Destination Address
%d [%d %d] [%d %d %d %d->%d] [%d %d %d %d-> %d] int int int int int DSR Trace int int int int int int int int hexadecimal int int int int int AODV Trace int hexadecimal int int int double string TORA Trace hexadecimal Number Of Nodes Traversed Routing Request Flag Route Request Sequence Number Routing Reply Flag Route Request Sequence Number Reply Length Source Of Source Routing Destination Of Source Routing Error Report Flag (?) Number Of Errors Report To Whom Link Error From Link Error To Type Hop Count Broadcast ID Destination Destination Sequence Number Source Source Sequence Number Type Hop Count Destination Destination Sequence Number Lifetime Operation (REPLY, ERROR, HELLO) Type
int hexadecimal int double int int int int hexadecimal int double int int int IP Trace int int int int int TCP Trace int int int [%d] %d %d CBR Trace int int int char IMEP Trace char char hexadecimal RCA Trace (from MIT Leach code) char
Destination Type Destination Tau Oid R Delta ID Type Destination Tau Oid Source IP Address Source Port Number Destination IP Address Destination Port Number TTL Value Next Hop Address, If Any Sequence Number Acknowledgment Number Number Of Times Packet Was Forwarded Optimal Number Of Forwards Sequence Number Number Of Times Packet Was Forwarded Optimal Number Of Forwards Acknowledgment Flag Hello Flag Object Flag Length Operation (A, R, D)
[%d %d] %d %d
[%c %c %c 0x%04x]
-Nw string
-Ma hexadecimal Duration -Ms hexadecimal Source Ethernet Address -Md hexadecimal Destination Ethernet Address -Mt -P hexadecimal Ethernet Type string Packet Type (arp, dsr, imep, tora, etc.)
-Pn string Packet Type (cbr, tcp) Note that the value for the -Hd flag may be -1 or -2. -1 means that the packet is a broadcast packet, and -2 means that the destination node has not been set. -2 is typically seen for packets that are passed between the agent (-Nl AGT) and routing (-Nl RTR) levels. Depending on the packet type, the following flags may be used: Event ARP Trace Flag -Po -Ps -Pms int int Type string Request or Reply Source MAC Address Source Address Value
-Pmd int -Pd -Ph -Pq -Ps -Pp -Pn DSR Trace -Pl -Pe -Pw -Pm -Pc -Pb -Pt -Ph -Pb -Pd -Ps -Pss -Pl -Pc -Pt -Pd -Pa TORA Trace -Po -Pr -Pe -Pi -Pc -Is -Id -It IP Trace -Il -If -Ii -Iv int int int int int int int int->int int int int int->int int int int int int double string int double int int int int string int.int int.int string int int int int
Destination MAC Address Destination Address Number Of Nodes Traversed Routing Request Flag Route Request Sequence Number Routing Reply Flag Route Request Sequence Number Reply Length Source->Destination Of Source Routing Error Report Flag (?) Number Of Errors Report To Whom Link Error From Link A to Link B Hop Count Broadcast ID Destination Destination Sequence Number Source Source Sequence Number Lifetime Operation (REQUEST, REPLY, ERROR, HELLO) Destination Time Creator ID R Delta ID Operation (QUERY, UPDATE, CLEAR) Source Address And Port Destination Address And Port Packet Type Packet Size Flow ID Unique ID TTL Value
hexadecimal Type
hexadecimal Type
-Ps TCP Trace -Pa -Pf -Po -Pi CBR Trace -Pf -Po -Pa IMEP Trace -Ph -Po -Pl
int int int int int int int char char char
Sequence Number Acknowledgment Number Number Of Times Packet Was Forwarded Optimal Number Of Forwards Sequence Number Number Of Times Packet Was Forwarded Optimal Number Of Forwards Acknowledgment Flag Hello Flag Object Flag
hexadecimal Length
%.9f _%d_ LL unable to deliver packet %d to %d (%d) (reason = %d, ifqlen = %d) double int Broken Link A int int int int int double Keeping Bad A Link int int int string Time Index Unique Packet ID Next Hop Broken Link Count Transmit Reason Queue Length Time Index Destination Kept Bad Link Count Link State (VALID, INVALID)
%.5f _%d_
%.5f _%d_ %d
%.12lf frm %d to %d wst %.12lf nxthp %d [of %d] double Weighted Settling Time VWST int int double int int Time Reporting Address Routing Table Destination Weighted Settling Time Next Hop Distance (Metric)
%.5f _%d_ (%d,%d->%d,%d->%d,%d->%d, %f) double int int Update Route VSD VSU int int int int int int double double int Queue Packet VBP int int int int double Routing Packets Outside Domain int VFP int int int int Table Dump VTD Time Reporting Address Old Destination Old Distance (Metric) or -1 New Distance (Metric) Old Sequence Number or -1 New Sequence Number Old Hop or -1 New Hop When Okay To Advertise This Route Time Reporting Address Source Address Source Port Destination Address Destination Port Time Reporting Address Source Address Source Port Destination Address Destination Port
%.5f %d:%d
string
%.5f $reply for props: %s ring 0 search: %s double string string double double Debug message Sdebug double string string string double string string Time Reply From Cache On Propagating Ring Zero Search Time Time Time ID Source Destination Time ID Destination
%.5f using MOBICACHE %.5f using LINKCACHE %.5f _%s_ stuck into send buff %s -> %s
%.5f _%s_ sendbuf pkt to %s liberated by handlePktWOSR double string string double string string string Time ID Destination Time ID Route Route Copy
%.9f _%s_ liberated from sendbuf %s-> %s %s double string string string string double Time ID Source Destination Route Time
string string int string int string string int string string string
ID ID Header UID %s ID Header UID Reply Path ID Header UID Route ID Route
_%s_ not bothering to send route error to ourselves string ID %.5f _%s_ sending into dead-link (nest %d) tell %d %d -> %d double string int int int int double string string int double double string string int double Time ID Number Of Route Errors Report To Address From Address To Address Time ID Path Link Type Time Added Time ID Path Link Type Time Added
%.9f _%s_ freshening %s->%s to %d %.9f double string string string int double Time ID Path Next Path Link Type Time Added
%.5f _%s_ dumping maximally nested error %s %d -> %d double string string int Errors SDFU int Time ID Tell ID From To
ran off the end of a source route non route containing packet given to acceptRouteReply route error beyond end of source route???? route error forwarding route request???? %.9f _%s_ %d [%s -> %s] %d(%d) to %d double string int Flowstate SFs string string int int int Established Flowstate SFESTs double string int string string int int Time ID Header UID Source Destination Flow ID Flow Header Next Hop Time ID Header UID Source Destination Flow ID Flow Header
int string double string Flow ARS SFARS int string string int int double string Flow Error SFEr int int int int double Unknown Flow SFErr string int int int double string Flow Forward SFf int string string int int double string int Send Out Packet With Route SO double
Next Hop Addresses Time ID Header ID Source Destination Flow ID Amt Time ID Source Flow Destination Flow ID (-1 For Default) Count (-1 For No Flow Index) Time ID Source Flow Destination Flow ID Time ID Header ID Source Destination Flow ID Next Hop Time ID Queue Length Time
%.9f _%s_ cache-summary %d %d %d %d | %d %.9f %d %d | %d %d %d %d %d | %d %d %d %d %d | %d %d %d %d %d %d double string int int int int int double int int Route Cache - Summary SRC int int int int int int int int int int int int int int int int double Route Cache - Node SRC Cache Dump (only with Time ID Route Count Route Bad Count Subroute Count Subroute Bad Count Link Bad Count Average Bad Time Per Link Link Bad Tested Link Good Tested Route Add Count Route Add Bad Count Subroute Add Count Subroute Add Bad Count Link Add Tested Route Notice Count Route Notice Bad Count Subroute Notice Count Subroute Notice Bad Count Link Notice Tested Route Find Count Route Find For Me Route Find Bad Count Route Find Miss Count Subroute Find Count Subroute Find Bad Count Link Good Time (Only In First Format)
| %d %d %d %s | ... | double int int int int int patch) int string int int int int int string Time Source Node Primary Cache Current Size Primary Cache Maximum Size Cache Entry Index Cache Entry Length Cache Entry Address Cache Entry Dump Secondary Cache Current Size Secondary Cache Maximum Size Cache Entry Index Cache Entry Length Cache Entry Address Cache Entry Dump
%.9f _%s_ cache-dump s %d %d | %d %d %d %s | ... | double Route Cache - Node Cache Dump, No Primary Cache (only with patch) int SRC int int int int int string double Route Cache - Find Route Cache Hit SRC string string string string Route Cache - Find Route Cache Miss SRC Time Source Node Secondary Cache Current Size Secondary Cache Maximum Size Cache Entry Index Cache Entry Length Cache Entry Address Cache Entry Dump Time ID Destination Primary Or Secondary Cache Route
%.9f _%s_ find-route [%d] %s->%s miss %d %.9f double string int string string Time ID Hardcoded Zero ID (Should Be Source???) Destination
int double double Route Cache - New Route Contains Cached SRC Route string string int int string double Route Cache - New Route Contained In Cache string SRC string int int string double SRC string string string double Route Cache - Discard Route SRC string int int string double SRC string string string Route Cache Truncating Route To Remove Dead Link SRC double string string string
Hardcoded Zero Hardcoded Zero Time ID Cache Name (primary, secondary) Path Length Route Length Route Dump Time ID Cache Name (primary, secondary) Path Length Route Length Route Dump Time ID Name Dumped Route Time ID Route Length -1 Number Of Bad Routes Name Time ID Name Added Path Time ID Name Route
%.9f _%s_ while adding %s Route Cache - Add Route After Dumping Route
string double string string string double SRC string string string
%.9f _%s_ to %s %s Route Cache - Truncated Or Removed Route With SRC Dead Link
%.9f _%s_ %s [%d %d] %s->%s dead %d %.9f double string string Route Cache - Dead Link SRC int int string string int double Time ID Operation In Progress (add-route, notice-route, find-route, dead-link, evicting-route, checkcache) Route Length Route Index Route Next Route Link Type Time Added
%.9f _%s_ resurrected-link [%d %d] %s-> %s dead %d %.9f double string Route Cache Resurrected Link SRC int int string string int double Route Cache - Add Route SRC double string string Time ID Route Length Route Index Route Next Route Link Type Time Added Time ID Route
string double Route Cache - Dump Dijkstra string SRC int int int int double SRC string int int double Route Cache - Cache Expire Bits string SRC int int int int Route Request/Reply SRR double string string int
From Time ID Destination Index Estimated Shortest Path To Vertex (d) Predecessors For Vertex (pi) Time ID Index Link Destination Time ID Expire Stats 0 Expire Stats 1 Expire Stats 2 Expire Stats 3 Time ID Source Route Request Sequence
%.9f _%s_ discarding %s #%d (ifq length %d) double string string int int Time ID Source Route Request Sequence Queue Length
%.9f _%s_ discarding %s #%d (free air time %f) double string string int Time ID Source Route Request Sequence
int
%.5f _%s_ dropped %s #%d (prop limit exceeded) double string string int double string string int double string string int string string Time ID Source Route Request Sequence Time ID Source Route Request Sequence Time ID Source Route Request Sequence Destination Route
%.9f _%s_ cache-reply-sent %s -> %s #%d (len %d) %s double string string string int int string double string string string double string int string Time ID Source Destination Request Sequence Number Route Length Route Time ID Route Request Source Route Request Destination Time ID Maximum Propagation Source
int string
%.9f _%s_ reply-sent %s -> %s #%d (len %d) %s double string string string int int string Time ID Source Destination Route Request Sequence Route Length Route %s
%.9f _%s_ reply-received %d from %s #%d -> %s %s double string int string string int string string double string int int int Time ID Good Reply (0, 1) Source First Reply Route Route Request Sequence Last Reply Route Reply Route %d -> %d Time ID Report To Address From Address To Address
%.9f _%s_ gratuitous-reply-sent %s -> %s (len %d) %s double string string string int string Time ID Source Destination Route Length Route
%.5f _%s_ salvaging %s -> %s --- %d with %s double string string string int string Time ID Source Destination Header UID Route
%.5f _%s_ adding to SB --- %d %s -> %s [%d] double Salvage Ssalv string int string string int double string int string string int double string string string Send Failure Time ID Header UID Source Destination Salvaged Time ID Header UID Source Destination Salvaged Time ID Source Destination
%.5f _%s_ dropped %s -> %s Packet dropped by send Ssb buffer in DSR agent
SSendFailure %.9f _%s_ %d %d %d:%d %d:%d %s-> %s %d %d %d %d %s double string int int Time ID Header UID Protocol Type
int int int int string string int int int int string double Transmit Failed SxmitFailed string int int int
Source Source Port Destination Destination Port From ID To ID Hops: From -> To Hops: Source -> Destination Hops: From -> Destination Number Of Addresses Header %d->%d god okays #%d Time ID From ID To ID Number of Wrong Link Errors
%.5f _%s_
%.5f _%s_ dumping maximally nested Flow error %d -> %d Maximally Nested Flow SYFU Error double string int int Time ID Source Flow Destination
%.9f _%s_ adding bad route to cache %s %s Attempted To Add Bad Route To Cache double string string string Time ID Source Route
%.9f _%d_ QRY %d for %d (rtreq set) double int int int double int int int double int int double int int Time Address TORA Destination Index Index Time Address Source Destination Time Address Source Time Address Source
-w -t -s -d -r -D -h -O Link l -b -c -o -S -l -L -e -E -t -s -d -e -a h: Hop r: Receive d: Drop Line +: Enqueue -: Dequeue -i -l -c -x -p -k -y -S -m -f Session E: Enqueue D: Dequeue P: Drop -t -s -d -e -a -i
flag time int int double double double orientation string color color string string string color color time int int int int int int string comment string string comment int int int time int int int int int
Wireless Node Time Source ID Destination ID Transmission Rate Delay Length Orientation Label Color Previous Color State (UP, DOWN) Label Previous Label Label Color Previous Label Color Time Source ID Destination ID Extent Packet Color Attribute ID ID Energy Conversation Comment Packet Type Packet Type
Packet
int string comment string string time int int flag string time int int flag char string string string string time string int int flag time int int orientation orientation time string int string string flag time int
Energy Conversation Comment Packet Type Packet Type Time Source ID Destination ID Remove Agent Agent Name Time Source ID Destination ID Remove Feature Type Name Agent Value Previous Value Time Name Node ID Group ID Remove From Group Time Source ID Destination ID Orientation Orientation Time Name Node ID Color Shape (circle, square, hexagon) Remove Mark Time Source ID
-d -g -p -n -x -T -m Execute tcl expression v -t -e -t Set trace file version Use nam graph Wireless range Energy status -- for future use V N -t W g -x -y -t -t -n -p Hierarchical address space configuration -- initialization only -o A -c -a -h -m -s Color table configuration -initialization only -t c -i -n -t Create packet queue -- initialization only Layout lan q -s -d -a X -t -n -r -D -v -a
int int flag flag double string time time string int time int int time time int int int int int int int time int string time int int orientation time string double double
Destination ID Multicast Group Negative Cache This Route Timed Out Timeout Mode (IIF Or OIF) Time Time Version Attribute Time X Y Time Time Hierarchy Port Shift Multicast Shift Multicast Mask Hierarchy Node Shift Node Mask Time ID Color Time Source ID Destination ID Orientation Time Name Rate Delay
-o
orientation
Orientation
-O orientation Orientation For Packet events (entries starting with "h", "r", "d", "+", or "-"), the comment field (field after "-x" has the following format: Event Type Value {%s.%s %s.%s %d %s %s} string Source Node Address string Source Node Port Node Trace string Destination Node Address string Destination Node Port int Sequence Number string Flags string Packet Name