I am working on the tool to calculate different performance metrics (like average end-to-end delay, throughput, packet delivery ratio, etc.) for the simulation of underwater networks in UnetStack3. I have done an implementation in python that parses the trace.json and calculates end-to-end delay. However, it works only for topology with one-hop communication, as I have considered the MessageID of the events. Further, I analyzed the implementation of the VizTrace tool in Julia and tried to extend the implementation. However, I am unable to figure out how to co-relate events that occur in different nodes for calculating performance measures in a multi-hop topology. Please let me know what approach I should follow with Python and with the vizTrace.