Hi,
My name is Bodhi Saha, and I’m an intern at Juniper Networks working with AstraSim to simulate the execution of distributed ML workloads.
I had two questions. I was able to successfully run AstraSim with the Analytical Network for the network backend, but I want to be able to display some network statistics (per switch bandwith, latency, etc.) in the output, as opposed to just the number of cycles as usually shown. Do you know how I could do that or what files in the repo I could modify on my end for this effect?
My other question is related to running AstraSim with ns3. I followed the wiki to run AstraSim with ns3, and the only change I made was editing the inputs in build.sh file (build/astra_ns3/build.sh) to reflect the directories of my workload trace, system, memory, and logical topology file.I then built the backend with the command “build/astra_ns3/build.sh -c”, and then ran AstraSim with the corresponding “build/astra_ns3/build.sh -r” command.
At first, I was getting an issue which was saying no flow.txt file found.

I was then looking at the issues tab in the AstraSim github and found that somebody else had a similar issue - https://github.com/astra-sim/astra-sim/issues/240 – and suggested creating an empty flow.txt file. So then I created an empty flow.txt file in my scratch directory, and ran AstraSim again coming across this – where it seems AstraSim ends up getting stuck when running.

Looking at the same opened issue link in github as above, one of the suggestions for bypassing this issue was moving the Simulator::stop command before the Simulator::run command in the main function of the “astra-sim/network_frontend/ns3/AstraSimNetwork.cc” file (illustrated by this link: https://github.com/astra-sim/astra-sim/commit/95898d9d6c165e7b09519d96203c99db30fa3c3e?diff=split&w=0). This didn’t work either, as I still came across the same issue. Just for testing, I then changed the simulation time to 40 seconds to see what would happen (as shown below) – but still the same issue.

Do you know how to fix this so I can run AstraSim successfully with ns3 – is the empty flow.txt file the issue?
Regards,
Bodhi
Juniper Business Use Only