Applicable Versions
NetSim StandardNetSim AcademicNetSim Pro


Applicable Releases
v10v11
v12

       

In order to quickly obtain the total data and control packets generated by a node, enable packet trace option before running the simulation. Upon doing so, the Packet Trace log file can be accessed from the Simulation Results window using the Open Packet Trace link available. Follow the steps given below to obtain the total data and control packets from packet trace:

1. Open the Packet Trace log file after running the simulation.


2. Format the Packet trace as a table using the "Format as Table" option.


3. Go to Insert and select Pivot Table


4. In the new sheet with Pivot table fields, add SOURCE_ID to ROWS, add PACKET_TYPE to ROWS and again add PACKET_TYPE to values.


 

This will give you a table containing the total data packets sent and the total control packets sent by each node as per the application configuration done. In this example node 1 has sent a total of 519 packets out of which 509 are data packets and 10 are control packets.


Related articles:

how-to-quickly-visualize-the-data-available-in-netsim-packet-trace-

where-can-i-find-packet-trace-and-event-trace-csv-files-after-simulation-

how-to-identify-whether-a-packet-has-reached-the-destination-successfully-