I have written a script. But it doesn’t work as I expect. Please forgive my ignorance. Maybe my mistake is obvious.
I have been modified for a long time but the problem is still not solved. I use the mailing list and have not got a reply yet.
In this script I added a computing module to calculate the packet loss rate, throughput, and delay.
However, the simulation result showed that the packet loss rate is one hundred percent. That is to say, the receiving node has not received any data.
Can you give me some suggestions to solve the problem? The source code is in the attachment. According to the guidance of the ns-3 website, I have explained the script at the beginning of the file.
It’s very kind of you to guide me.
Sincerely,
George. Simulator::Run ();
throughput(monitor,&flowmon);