TXT

NS-2 Traces

By Lucille Porter,2014-05-27 14:58
12 views 0
NS-2 Traces

     ??ÎÄÓÉliaomeng323??Ï×

    pdfÎĵµ?ÉÄÜÔÚWAP?Ëä?ÀÀÌåÑé???Ñ????ÒéÄúÓÅÏÈÑ?ÔñTXT???òÏÂÔØÔ?ÎÄ?þµ????ú?é????

     NS-2 Traces

     NS-2 Trace Formats

     More NS2 information. This document lists various trace formats used by the NS-2 Network Simulator. The information is based on NS2 version 2.1b9a. I've done my best to document correctly all of the trace formats I've come across, but be warned that this list is not complete, and may contain errors. If you find any errors or omissions, please let me know. The trace formats are:

    

     Normal trace formats Wireless trace formats:

     r

    

     Old wireless trace formats New wireless trace formats AODV routing protocol trace formats DSDV routing protocol trace formats DSR routing protocol trace formats TORA routing protocol trace formats

     r

     r

     r

     r

     r

    

     Mobile node movement and energy trace formats NAM (Network Animator) trace formats

     r

    

     Change Log

     The various traces begin with a single character or abbreviation that indicates the type of trace, followed by a fixed or variable trace format. The tables listing the trace formats differ between fixed and variable trace formats:

    

     For fixed trace formats, the table lists the event the triggers the trace under the Event heading and the characters that start the trace under the Abbreviation heading. The format is listed across the last two columns, and the the type and value for each element of the format are listed beneath under the Type and Value headings. Some events have multiple trace formats.

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (1 of 36)2006-4-8 22:12:39

     NS-2 Traces

    

     For variable trace formats, the table lists the event the triggers the trace under the Event heading and the characters that start the trace under the Abbreviation heading. The last three columns list the possible flags, types, and values for the event under the Flag, Type, and Value headings.

     The tables that list the additional wireless trace information do not have an Abbreviation column, since the information is appended to the end of the regular wireless trace format. The following people sent feedback and questions that helped improve this page. Thanks for the help!

    

     Peter Liscovius George Kinal Daniel Brenner Qingjiang Tian Tahir Mahjabeen

    

    

    

    

     Normal trace formats

     This information comes from The ns Manual "Trace and Monitoring Support: Trace File Format" chapter. This trace is used normal wired operations. The trace starts with one of four possible characters. Event Abbreviation Type Value

     %g %d %d %s %d %s %d %d.%d %d.%d %d % d double int r: Receive d: Drop Normal Event e: Error +: Enqueue -: Dequeue int string int string int int Time Source Node Destination Node Packet Name Packet Size Flags Flow ID Source Address

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (2 of 36)2006-4-8 22:12:39

     NS-2 Traces

     int int int

     Destination Address Sequence Number Unique Packet ID

     Depending on the packet type, the trace may log additional information: Event Type int TCP Trace hexadecimal int int Value %d 0x%x %d %d Ack Number Flags Header Length Socket Address Length %.2f %.2f %.2f %.2f double Satellite Trace double double double Source Latitude Source Longitude Destination Latitude Destination Longitude

     Wireless Trace Formats

     This section covers the various wireless trace format:

    

     Old wireless trace format New wireless trace format AODV routing protocol DSDV routing protocol DSR routing protocol

    

    

    

    

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (3 of 36)2006-4-8 22:12:39

     NS-2 Traces

    

     TORA routing protocol Mobile node movement and energy trace formats

    

     Old Wireless Trace Formats

     This information comes from The ns Manual "Mobile Networking in ns: Trace Support" chapter, and the "trace/cmu-trace.cc" file. Wireless traces begin with one of four characters followed by one of two different trace formats, depending on whether the trace logs the X and Y coordinates of the mobile node. Event Abbreviation Type Value

     %.9f %d (%6.2f %6.2f) %3s %4s %d %s %d [%x %x %x % x] %.9f _%d_ %3s %4s %d %s %d [%x %x %x %x] double int double s: Send r: Receive Wireless Event d: Drop f: Forward double string string int string int hexadecimal hexadecimal hexadecimal hexadecimal Time Node ID X Coordinate (If Logging Position) Y Coordinate (If Logging Position) Trace Name Reason Event Identifier Packet Type Packet Size Time To Send Data Destination MAC Address Source MAC Address 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

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (4 of 36)2006-4-8 22:12:39

     NS-2 Traces

     [%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

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (5 of 36)2006-4-8 22:12:39

     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 [0x%x %d [%d %d] %f] (%s) Type

Hop Count

     [0x%x %d %d [%d %d] [%d %d]] (REQUEST)

     NS-2 Traces

     int int double string hexadecimal int hexadecimal int double TORA Trace int int int int hexadecimal int double int int int IP Trace int int int int int TCP Trace int int int

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (6 of 36)2006-4-8 22:12:39

     Destination Destination Sequence Number Lifetime Operation (REPLY, ERROR, HELLO) [0x%x %d] (QUERY) Type Destination 0x%x %d (%f %d %d %d %d) (UPDATE) Type Destination Tau Oid R Delta ID [0x%x %d %f %d] (CLEAR) Type Destination Tau Oid [%d:%d %d:%d %d %d] Source IP Address Source Port Number Destination IP Address Destination Port Number TTL Value Next Hop Address, If Any [%d %d] %d %d Sequence Number Acknowledgment Number Number Of Times Packet Was Forwarded Optimal Number Of Forwards

     NS-2 Traces

     [%d] %d %d CBR Trace int int int char IMEP Trace char char hexadecimal char int int int Sequence Number Number Of Times Packet Was Forwarded Optimal Number Of Forwards [%c %c %c 0x%04x] Acknowledgment Flag Hello Flag Object Flag Length [%c %d %d %d] RCA Trace (from MIT Leach code) Operation (A, R, D) RCA Source RCA Link Destination RCA MAC Destination

     New Wireless Trace Formats

     This information comes from The ns Manual "Mobile Networking in ns: Revised format for wireless traces" chapter, and the

    "trace/cmu-trace.cc" file. Similar to the old format, in the new format wireless traces begin with one of four characters. This is followed by flag/value pairs similar to NAM traces. The first letter of flags with two letters designates the flag type:

     ?ñ ?ñ ?ñ ?ñ ?ñ

     N: Node Property I: IP Level Packet Information H: Next Hop Information M: MAC Level Packet Information P: Packet Specific Information Abbreviation Flag -t -Ni Nx -Ny Type double int double double Value Time (* For Global Setting) Node ID Node X Coordinate Node Y Coordinate

     Event

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (7 of 36)2006-4-8 22:12:39

     NS-2 Traces

     -Nz -Ne -Nl s: Send r: Receive Wireless Event d: Drop f: Forward Nw -Hs Hd

     double double string string int int

     Node Z Coordinate Node Energy Level Network trace Level (AGT, RTR, MAC, etc.) Drop Reason Hop source node ID Hop destination Node ID, -1, -2 Duration Source Ethernet Address Destination Ethernet Address

    Ethernet Type Packet Type (arp, dsr, imep, tora, etc.) Packet Type (cbr, tcp)

     hexadecimal Ma hexadecimal Ms hexadecimal Md -Mt hexadecimal -P -Pn string string

     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 Flag -Po -Pms ARP Trace -Ps -Pmd -Pd -Ph -Pq -Ps Type string int int int int int int int Value Request or Reply Source MAC Address Source Address Destination MAC Address Destination Address Number Of Nodes Traversed Routing Request Flag Route Request Sequence Number

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (8 of 36)2006-4-8 22:12:39

     NS-2 Traces

     -Pp DSR Trace -Pn -Pl -Pe -Pw -Pm -Pc -Pb -Ph -Pb -Pd AODV Trace -Pds -Ps -Pss -Pl -Pc

     int int int int->int int int int int->int int int int int int int double string

     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 Type Hop Count Broadcast ID Destination Destination Sequence Number Source Source Sequence Number Lifetime Operation (REQUEST, REPLY, ERROR, HELLO) Type 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

     -Pt hexadecimal

     -Pt hexadecimal -Pd -Pa TORA Trace -Po -Pr -Pe -Pi -Pc -Is -Id -It IP Trace -Il -If -Ii int double int int int int string int.int int.int string int int int

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (9 of 36)2006-4-8 22:12:39

     NS-2 Traces

     -Iv -Ps TCP Trace -Pa -Pf -Po -Pi CBR Trace -Pf -Po -Pa IMEP Trace -Ph -Po

     int int int int int int int int char char char

     TTL Value 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

     -Pl hexadecimal

     AODV Trace Formats

     AODV traces begin with an "A", followed by the AODV trace. This information comes from the "aodv/ aodv_logs.cc" source file. Event Abbreviation Type double Delete Link A int int int string Value %.9f _%d_ deleting LL hop to %d (delete %d is %s) Time Index Destination Deleted Link Count Link State (VALID, INVALID)

     %.9f _%d_ LL unable to deliver packet %d to %d (%d) (reason = %d, ifqlen = %d) double int Broken Link A int int int int

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (10 of 36)2006-4-8 22:12:39

     Time Index Unique Packet ID Next Hop Broken Link Count Transmit Reason

     NS-2 Traces

     int double Keeping Bad Link A int int int string

     Queue Length %.9f _%d_ keeping LL hop to %d (keep %d is %s) Time Index Destination Kept Bad Link Count Link State (VALID, INVALID)

     DSDV Trace Formats

     DSDV traces begin with a "V", followed by additional characters to indicate the exact DSDV trace. This information comes from the "dsdv/dsdv.cc" source file. Event Abbreviation Type double Trace Packet VPU VTU int int int int int Periodic Callback VPC double int double int int Timeout VTO int double int Value %.5f _%d_ [%d] (%d,%d,%d) ???? Time Reporting Address Count Destination Distance (Metric) Sequence Number %.5f _%d_ Time Reporting Address %.5f _%d_ %d->%d Time Reporting Address Reporting Address (Should be Source???) Routing Table Destination %.5f _%d_ marking %d Time Reporting Address

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (11 of 36)2006-4-8 22:12:39

     NS-2 Traces

     int double Lost Link VLL int int int double int Lost Packet VLP int int int int int double int int

     Routing Table Destination %.8f %d->%d lost at %d Time Source Destination Reporting Address Time Source Source Port Destination Destination Port Reporting Address Routing Table Destination %.5f _%d_ %d Time Reporting Address Routing Table Destination

     %.5f %d:%d->%d:%d lost at %d [hop %d]

     Change Table

     VCT

     %.12lf frm %d to %d wst %.12lf nxthp %d [of % d] double Weighted Settling Time VWST int int double int int double int int Update Route VSD VSU int int Time Reporting Address Routing Table Destination Weighted Settling Time Next Hop Distance (Metric) Time Reporting Address Old Destination Old Distance (Metric) or -1 New Distance (Metric)

     %.5f _%d_ (%d,%d->%d,%d->%d,%d->%d,%f)

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (12 of 36)2006-4-8 22:12:39

     NS-2 Traces

     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 double Table Dump VTD int int int

     Old Sequence Number or -1 New Sequence Number Old Hop or -1 New Hop When Okay To Advertise This Route %.5f _%d_ %d:%d -> %d:%d Time Reporting Address Source Address Source Port Destination Address Destination Port %.5f _%d_ %d:%d -> %d:%d Time Reporting Address Source Address Source Port Destination Address Destination Port %.5f %d:%d Time Reporting Address Source Address Source Port

     DSR Trace Formats

     DSR traces begin with an "S", which may be followed by additional characters to indicate the exact DSR trace. Each trace has one or more formats. This information comes from the "dsr/dsragent.cc", "dsr/linkcache.cc", "dsr/mobicache.cc", "dsr/routecache.cc", and "dsr/simplecache.cc" source files. Event Abbreviation Type Value %.9f _%s_ originating %s -> %s

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (13 of 36)2006-4-8 22:12:39

     NS-2 Traces

     double Send S string string string double Have A Route S$hit string string string string double Don't Have A Route S$miss string string string double string string string double string string Configuration parameters. All strings are either "on" or "off" Sconfig double string string double string string

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (14 of 36)2006-4-8 22:12:39

     Time ID Source Destination %.5f _%s_ %s -> %s %s Time ID Source Destination Route %.5f _%s_ %s -> %s Time ID ID (Should be Source???) Destination Time Use TAP Snoop Source Routes Snoop Forwarded Errors %.5f salvage: %s !bd replies? %s Time Salvage With Cache Don't Salvage Bad Replies %.5f grat error: %s grat reply: %s Time Propagate Last Error Send Grat Replies Time Reply From Cache On Propagating Ring Zero Search

     %.5f tap: %s snoop: rts? %s errs? %s

     %.5f $reply for props: %s ring 0 search: %s

     NS-2 Traces

     %.5f using MOBICACHE double double double string string string double string string Time %.5f using LINKCACHE Time Time ID Source Destination Time ID Destination %.5f _%s_ stuck into send buff %s -> %s

     %.5f _%s_ checking for route for dst %s

     %.5f _%s_ sendbuf pkt to %s liberated by handlePktWOSR double string string double string string string double string string string string

double string

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (15 of 36)2006-4-8 22:12:39

     Time ID Destination %.9f _%s_ splitting %s to %s Time ID Route Route Copy Time ID Source Destination Route Time ID

     %.9f _%s_ liberated from sendbuf %s->%s %s

     %.5f _%s_ unwrapping nested route error

     NS-2 Traces

     _%s_ tap saw error %d string int string int string Debug message Sdebug string int string string string ID Header UID _%s_ tap saw route reply %d %s ID Header UID Reply Path _%s_ tap saw route use %d %s ID Header UID Route %s consider grat arp for %s 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 Time ID Number Of Route Errors Report To Address From Address To Address %.9f _%s_ adding %s [%d %.9f] ???? Time ID Path Link Type Time Added %.9f _%s_ checking %s [%d %.9f] ????

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (16 of 36)2006-4-8 22:12:39

     NS-2 Traces

     double string string int double double string string string int double

     Time ID Path Link Type Time Added Time ID Path Next Path Link Type Time Added

     %.9f _%s_ freshening %s->%s to %d %.9f

     %.5f _%s_ dumping maximally nested error %s %d -> %d double string string Errors SDFU int 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 Time ID Header UID Source Destination Flow ID Flow Header

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (17 of 36)2006-4-8 22:12:39

     NS-2 Traces

     int double string int Established Flowstate SFESTs string string int int 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

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (18 of 36)2006-4-8 22:12:39

     Next Hop Time ID Header UID Source Destination Flow ID Flow Header Next Hop Addresses %.9f _%s_ %d [%s -> %s] %d %d Time ID Header ID Source

    Destination Flow ID Amt %.9f _%s_ from %d re %d : %d [%d] Time ID Source Flow Destination Flow ID (-1 For Default) Count (-1 For No Flow Index) %.5f _%s_ %d -> %d : %d Time ID Source Flow Destination Flow ID

     %.9f _%s_ %d [%s -> %s] %d(%d) to %d %s

     NS-2 Traces

     %.9f _%s_ %d [%s -> %s] %d to %d double string Flow Forward SFf int string string int int double string int double Send Out Packet With Route SO string string string Time ID Header ID Source Destination Flow ID Next Hop %.5f _%s_ len %d Interface Queue SIFQ Time ID Queue Length %.9f _%s_ originating %s %s Time ID Protocol Name Route

     %.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 %.9f %.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

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (19 of 36)2006-4-8 22:12:39

     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

     NS-2 Traces

     int Route Cache - Summary SRC int int int int int int int int int int int int int int int double

     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)

     %.9f _%s_ cache-dump p %d %d | %d %d %d %s | ???? | s %d %d | %d %d %d %s | ???? | double int int int int Route Cache - Node Cache Dump (only with patch) SRC int int string int int int int 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

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (20 of 36)2006-4-8 22:12:39

     NS-2 Traces

     int string

     Cache Entry Address Cache Entry Dump

     %.9f _%s_ cache-dump s %d %d | %d %d %d %s | ???? | double int Route Cache - Node Cache Dump, No Primary Cache (only with patch) SRC int int int int int string double Route Cache - Find Route Cache Hit SRC string string string string Time Source Node Secondary Cache Current

    Size Secondary Cache Maximum Size Cache Entry Index Cache Entry Length Cache Entry Address Cache Entry Dump %.9f _%s_ $hit for %s in %s %s Time ID Destination Primary Or Secondary Cache Route

     %.9f _%s_ find-route [%d] %s->%s miss %d %.9f double string Route Cache - Find Route Cache Miss SRC int string string int double double Route Cache - New Route Contains Cached Route string SRC string int Time ID Hardcoded Zero ID (Should Be Source???) Destination Hardcoded Zero Hardcoded Zero Time ID Cache Name (primary, secondary) Path Length

     %.9f _%s_ %s suffix-rule (len %d/%d) %s

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (21 of 36)2006-4-8 22:12:39

     NS-2 Traces

     int string double Route Cache - New Route Contained In Cache string SRC string int int string double Route Cache - Discard Route SRC string string string double Route Cache - Discard Route SRC string int int string double SRC string string string double Route Cache - Truncating Route To Remove Dead Link SRC string string string string

     Route Length Route Dump Time ID Cache Name (primary, secondary) Path Length Route Length Route Dump %.9f _%s_ %s evicting %s Time ID Name Dumped Route %.9f _%s_ evicting %d %d %s Time ID Route Length -1 Number Of Bad Routes Name %.9f _%s_ while adding %s Time ID Name Added Path %.9f _%s_ %s truncating %s %s Time ID Name Route Owner %.9f _%s_ to %s %s

     %.9f _%s_ %s prefix-rule (len %d/%d) %s

     Route Cache - Add Route After Dumping Route

     file:///C|/Documents and Settings/qian/×ÀÃæ/NS-2 Traces.htm (22 of 36)2006-4-8 22:12:39

     NS-2 Traces

     Route Cache - Truncated Or Removed Route With Dead Link

     double SRC string string string double

     Time ID Route Owner %.9f _%s_ dead link %s->%s Time ID From To Time ID Operation In Progress (add-route, notice-route, find-route, dead-link, evicting-route, check-cache) Route Length Route Index Route Next Route Link Type Time Added

     Route Cache - Dead Link

     SRC

     string string string double string string

     %.9f _%s_ %s [%d %d] %s->%s dead %d %.9f

     Route Cache - Dead Link

     SRC

     int int string string int double

     %.9f _%s_ resurrected-link [%d %d] %s->%s dead %d %.9f double string Route Cache - Resurrected Link SRC int int string string int double Time ID Route Length Route Index Route Next Route Link Type Time Added %.9f _%s_ adding rt %s from %s

Report this document

For any questions or suggestions please email
cust-service@docsford.com