Query about Ns3 Ascii Trace format

195 views
Skip to first unread message

Moyukh Laha

unread,
Nov 21, 2017, 2:08:39 AM11/21/17
to ns-3-users
Hello friends,
                 I have query about ns3 ascii trace format. Is there any documentation for that? For example::

t 0.0126058 /NodeList/3/DeviceList/0/$ns3::WifiNetDevice/Phy/State/Tx ns3::WifiMacHeader (DATA ToDS=0, FromDS=0, MoreFrag=0, Retry=0, MoreData=0 Duration/ID=0us, DA=ff:ff:ff:ff:ff:ff, SA=00:00:00:00:00:04, BSSID=ff:ff:ff:ff:ff:ff, FragNumber=0, SeqNumber=0) ns3::LlcSnapHeader (type 0x800) ns3::Ipv4Header (tos 0x0 DSCP Default ECN Not-ECT ttl 64 id 0 protocol 17 offset (bytes) 0 flags [none] length: 48 10.1.1.4 > 10.1.1.255) ns3::UdpHeader (length: 28 698 > 698) ns3::olsr::PacketHeader () ns3::olsr::MessageHeader () ns3::WifiMacTrailer ()


Here the first event is 't'. Now I know about '+','-','d','r' but what is this 't' event mean?
Any proper documentation for all these events and all?
Thanks.

Tommaso Pecorella

unread,
Nov 21, 2017, 7:25:57 PM11/21/17
to ns-3-users
Hi,

"t" stands for Transmission.

However, mind that ASCII trace is not really consistently used in ns-3 (e.g., some devices don't output drops there).
In ns-3 you should look at the PCAP traces or at the results of Trace in the code.

T.

Moyukh Laha

unread,
Nov 21, 2017, 10:48:03 PM11/21/17
to ns-3-...@googlegroups.com
       Thanks Tommaso. However its not clear to me what is exactly meant by 'transmission'? Is it like data forwarding? For example I used wifi-adhoc scenario and only a few nodes are generating packets. However I find all of the trace file is full of 't' [ I was running wifi-simple-adhoc-grid.cc example].
        Also, last line is not clear to me. PCAP is alright but what do you mean by "results of Trace in the code"?

Thanks.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/6svuyAI5HGo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Tommaso Pecorella

unread,
Nov 22, 2017, 5:59:58 PM11/22/17
to ns-3-users
Yes, transmission by ANY node, even those forwarding a packet.

T.

To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

Moyukh Laha

unread,
Nov 22, 2017, 11:19:30 PM11/22/17
to ns-3-...@googlegroups.com
Thanks Tommaso.

To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages