Hello everyone,

I am aiming to generate a packet trace where I can check(print on console)
the latency of each individual packet (end to end latency / src to
destination latency) for a specific synthetic traffic parameter.

I believe, a basic approach will be: for an injected packet into network,
accumulate the latency for each hop (router to router transmission) till it
reaches destination. As the latency is in cycles: one way to implement this
is via latency = Tick_packet_ejection - Tick_packet_injection.
Then, we can scale this to every router, and print the result on console or
in stats.txt.

I did checked the codebase of garnet: specifically GarnetNetwork.py,
GarnetNetwork.cc, GarnetNetwork.hh.

There, I was able to locate the latency member variables like:
m_packet_network_latency,m_packet_queueing_latency
which are declared as Stats::Vector m_packet_network_latency.

I think I will have to target them and do some calculations.
I am struggling with how these variables are defined and where are they
defined.

Am I missing something?
Can somebody give me pointers on how to make progress in getting the Packet
Trace?

Best,
Rishabh Jain
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to