NS2のTrace fileの読み方 DSRまわり

New Wireless Trace Formats

  • N: Node Property
  • I: IP Level Packet Information
  • H: Next Hop Information
  • M: MAC Level Packet Information
  • P: Packet Specific Information
  • Wireless Event
    • -t : Time (* For Global Setting)
    • -Ni: Node ID
    • -Nx: Node X Coordinate
    • -Ny: Node Y Coordinate
    • -Nz: Node Z Coordinate
    • -Ne: Node Energy Level
    • -Nl: Network trace Level (AGT, RTR, MAC, etc.)
    • -Nw: Drop Reason
    • -Hs: Hop source node ID
    • -Hd: Hop destination Node ID, -1, -2
    • -Ma: Duration
    • -Ms: Source Ethernet Address
    • -Md: Destination Ethernet Address
    • -Mt: Ethernet Type
    • -P : Packet Type (arp, dsr, cbr, tcp, etc.)
  • DSR Trace
    • -Ph int Number Of Nodes Traversed
    • -Pq int Routing Request Flag
    • -Ps int Route Request Sequence Number
    • -Pp int Routing Reply Flag
    • -Pn int Route Request Sequence Number
    • -Pl int Reply Length
    • -Pe int->int Source->Destination Of Source Routing
    • -Pw int Error Report Flag (?)
    • -Pm int Number Of Errors
    • -Pc int Report To Whom
    • -Pb int->int Link Error From Link A to Link B

DSR Trace Formats

This information comes from the "dsr/dsragent.cc", "dsr/linkcache.cc", "dsr/mobicache.cc", "dsr/routecache.cc", and "dsr/simplecache.cc" source files.

  • Send
    • S
    • %.9f _%s_ originating %s -> %s
  • Have A Route
    • S$hit
    • %.5f _%s_ %s -> %s %s
  • Don't Have A Route
    • S$miss
    • %.5f _%s_ %s -> %s
  • Configuration parameters. All strings are either "on" or "off"
    • Sconfig
    • %.5f tap: %s snoop: rts? %s errs? %s
      • 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
    • %.5f $reply for props: %s ring 0 search: %s
      • Time /Reply From Cache On Propagating /Ring Zero Search
    • %.5f using MOBICACHE
      • Time
    • %.5f using LINKCACHE
      • Time
  • Debug message
    • Sdebug
    • %.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
    • %.9f _%s_ splitting %s to %s
      • Time /ID /Route /Route Copy
    • %.9f _%s_ liberated from sendbuf %s->%s %s
    • %.5f _%s_ unwrapping nested route error
      • Time /ID
    • _%s_ tap saw error %d
      • 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
      • ID
    • %.5f _%s_ sending into dead-link (nest %d) tell %d %d -> %d
      • 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] ...
      • Time /ID /Path /Link Type /Time Added
    • %.9f _%s_ freshening %s->%s to %d %.9f
      • Time /ID /Path /Next Path /Link Type /Time Added
  • Errors
    • SDFU
    • %.5f _%s_ dumping maximally nested error %s %d -> %d
      • Time /ID /Tell ID /From /To
  • Flowstate
    • SFs
    • %.9f _%s_ %d [%s -> %s] %d(%d) to %d
      • Time /ID /Header UID /Source /Destination /Flow ID /Flow Header /Next Hop
  • Established Flowstate
    • SFESTs
    • %.9f _%s_ %d [%s -> %s] %d(%d) to %d %s
      • Time /ID /Header UID /Source /Destination /Flow ID /Flow Header /Next Hop /Addresses
  • Flow ARS
    • SFARS
    • %.9f _%s_ %d [%s -> %s] %d %d
      • Time /ID /Header ID /Source /Destination /Flow ID /Amt
  • Flow Error
    • SFEr
    • %.9f _%s_ from %d re %d : %d [%d]
      • Time /ID /Source /Flow Destination /Flow ID (-1 For Default) /Count (-1 For No Flow Index)
  • Unknown Flow
    • SFErr
    • %.5f _%s_ %d -> %d : %d
  • Flow Forward
    • SFf
    • %.9f _%s_ %d [%s -> %s] %d to %d
      • Time /ID /Header ID /Source /Destination /Flow ID /Next Hop
  • Interface Queue
    • SIFQ
    • %.5f _%s_ len %d
      • Time /ID /Queue Length
  • Send Out Packet With Route
    • SO
    • %.9f _%s_ originating %s %s
      • Time /ID /Protocol Name /Route
  • Route Cache - Summary
    • SRC
    • %.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
      • 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)
  • Route Cache - Node Cache Dump (only with patch)
    • SRC
    • %.9f _%s_ cache-dump p %d %d | %d %d %d %s | ... | s %d %d | %d %d %d %s | ... |
      • 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
  • Route Cache - Node Cache Dump, No Primary Cache (only with patch)
    • SRC
    • %.9f _%s_ cache-dump s %d %d | %d %d %d %s | ... |
      • Time /Source Node /Secondary Cache Current Size /Secondary Cache Maximum Size /Cache Entry Index /Cache Entry Length /Cache Entry Address /Cache Entry Dump
  • Route Cache - Find Route Cache Hit
    • SRC
    • %.9f _%s_ $hit for %s in %s %s
      • Time /ID /Destination /Primary Or Secondary Cache /Route
  • Route Cache - Find Route Cache Miss
    • SRC
    • %.9f _%s_ find-route [%d] %s->%s miss %d %.9f
      • Time /ID /Hardcoded Zero /ID (Should Be Source???) /Destination /Hardcoded Zero /Hardcoded Zero
  • Route Cache - New Route Contains Cached Route
    • SRC
    • %.9f _%s_ %s suffix-rule (len %d/%d) %s
      • Time /ID /Cache Name (primary, secondary) /Path Length /Route Length /Route Dump
  • Route Cache - New Route Contained In Cache
    • SRC
    • %.9f _%s_ %s prefix-rule (len %d/%d) %s
      • Time /ID /Cache Name (primary, secondary) /Path Length /Route Length /Route Dump
  • Route Cache - Discard Route
    • SRC
    • %.9f _%s_ %s evicting %s
      • Time /ID /Name /Dumped Route
  • Route Cache - Discard Route
    • SRC
    • %.9f _%s_ evicting %d %d %s
      • Time /ID /Route Length -1 /Number Of Bad Routes /Name
  • Route Cache - Add Route After Dumping Route
    • SRC
    • %.9f _%s_ while adding %s
      • Time /ID /Name /Added Path
  • Route Cache - Truncating Route To Remove Dead Link
    • SRC
    • %.9f _%s_ %s truncating %s %s
      • Time /ID /Name /Route /Owner
  • Route Cache - Truncated Or Removed Route With Dead Link
    • SRC
    • %.9f _%s_ to %s %s
      • Time /ID /Route /Owner
  • Route Cache - Dead Link
    • SRC
    • %.9f _%s_ dead link %s->%s
      • Time /ID /From /To
  • Route Cache - Dead Link
    • SRC
    • %.9f _%s_ %s [%d %d] %s->%s dead %d %.9f
      • 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 - Resurrected Link
    • SRC
    • %.9f _%s_ resurrected-link [%d %d] %s->%s dead %d %.9f
      • Time /ID /Route Length /Route Index /Route /Next Route /Link Type /Time Added
  • Route Cache - Add Route
    • SRC
    • %.9f _%s_ adding rt %s from %s
      • Time /ID /Route /From
  • Route Cache - Dump Dijkstra
    • SRC
    • %.9f _%s_ dijkstra *%d* %d,%d,%d ...
      • Time /ID /Destination /Index /Estimated Shortest Path To Vertex (d) /Predecessors For Vertex (pi)
  • Route Cache - Dump Link
    • SRC
    • %.9f _%s_ dump-link %d->%d, ...
  • Route Cache - Cache Expire Bits
    • SRC
    • %.9f _%s_ cache-expire-bits %d %d %d %d
      • Time /ID /Expire Stats 0 /Expire Stats 1 /Expire Stats 2 /Expire Stats 3
  • Route Request/Reply
    • SRR
    • %.5f _%s_ dropped %s #%d (ignored)
      • Time /ID /Source /Route Request Sequence
    • %.9f _%s_ discarding %s #%d (ifq length %d)
      • Time /ID /Source /Route Request Sequence /Queue Length
    • %.9f _%s_ discarding %s #%d (free air time %f)
      • Time /ID /Source /Route Request Sequence /Free Air Time
    • %.5f _%s_ dropped %s #%d (prop limit exceeded)
      • Time /ID /Source /Route Request Sequence
    • %.5f _%s_ dropped %s #%d (SR full)
      • Time /ID /Source /Route Request Sequence
    • %.5f _%s_ rebroadcast %s #%d ->%s %s
      • Time /ID /Source /Route Request Sequence /Destination /Route
    • %.9f _%s_ cache-reply-sent %s -> %s #%d (len %d) %s
      • Time /ID /Source /Destination /Request Sequence Number /Route Length /Route
    • %.5f _%s_ RR-not-sent %s -> %s
      • Time /ID /Route Request Source /Route Request Destination
    • %.5f _%s_ new-request %d %s #%d -> %s
      • Time /ID /Maximum Propagation /Source /Route Request Sequence /Destination
    • %.9f _%s_ reply-sent %s -> %s #%d (len %d) %s
      • Time /ID /Source /Destination /Route Request Sequence /Route Length /Route
    • %.9f _%s_ reply-received %d from %s %s #%d -> %s %s
      • Time /ID /Good Reply (0, 1) /Source /First Reply Route /Route Request Sequence /Last Reply Route /Reply Route
    • %.9f _%s_ dead-link tell %d %d -> %d
      • Time /ID /Report To Address /From Address /To Address
    • %.9f _%s_ gratuitous-reply-sent %s -> %s (len %d) %s
    • %.5f _%s_ --- %d dropping bad-reply %s -> %s
  • Salvage
    • Ssalv
    • %.5f _%s_ salvaging %s -> %s --- %d with %s
    • %.5f _%s_ adding to SB --- %d %s -> %s [%d]
    • %.5f _%s_ dropping --- %d %s -> %s [%d]
  • Packet dropped by send buffer in DSR agent
    • Ssb
    • %.5f _%s_ dropped %s -> %s
  • Send Failure
    • SSendFailure
    • %.9f _%s_ %d %d %d:%d %d:%d %s->%s %d %d %d %d %s
  • Transmit Failed
    • SxmitFailed
    • %.5f _%s_ %d->%d god okays #%d
      • Time /ID /From ID /To ID /Number of Wrong Link Errors
  • Maximally Nested Flow Error
    • SYFU
    • %.5f _%s_ dumping maximally nested Flow error %d -> %d
  • Attempted To Add Bad Route To Cache
    • %.9f _%s_ adding bad route to cache %s %s
      • Time /ID /Source /Route



http://profile.iiita.ac.in/sandeep_wc02/ns/ns2-trace-formats.html