how to calculate end to end delay ,throughput in ns3.26 ??

4,258 views
Skip to first unread message

rabahifa...@gmail.com

unread,
May 18, 2017, 10:20:57 AM5/18/17
to ns-3-users
please i have the file ascii.tr and pcap of my network and i want to calculate end to end delay and throughput ,is anyone here can help me please i don't know what i do if awk like ns2 or somthings else ??
Message has been deleted

Mateus Sousa

unread,
May 18, 2017, 12:32:22 PM5/18/17
to ns-3-users

fatima zahra rabahi

unread,
May 18, 2017, 3:09:47 PM5/18/17
to ns-3-...@googlegroups.com
Can you tel me more about flowmonitor i am beginner on ns3

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/35LR0PhEoHk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Konstantinos

unread,
May 18, 2017, 5:14:07 PM5/18/17
to ns-3-users

fatima zahra rabahi

unread,
May 18, 2017, 7:55:49 PM5/18/17
to ns-3-...@googlegroups.com
Thank you 😀 for your information

fatima zahra rabahi

unread,
May 19, 2017, 6:44:00 PM5/19/17
to ns-3-...@googlegroups.com
Hello friends now i have the results in flow monitor but i don't know what i do for calculate throughput  knowing that (throughput is the rate of succrssful packet delivery over a communication channel) i need the equation or the methode to calculate it thank's

Mahmud Islam

unread,
May 19, 2017, 8:10:18 PM5/19/17
to ns-3-...@googlegroups.com
Hi,

I calculated throughout using flow monitor in one of my code.I am adding that portion for your understanding. Thanks.

FlowMonitorHelper flowmon;
  Ptr<FlowMonitor> monitor = flowmon.InstallAll();

  Simulator::Stop (Seconds (100.0));
  Simulator::Run ();

 // Print per flow statistics
  monitor->CheckForLostPackets ();
  Ptr<Ipv4FlowClassifier> classifier = DynamicCast<Ipv4FlowClassifier> (flowmon.GetClassifier ());
  std::map<FlowId, FlowMonitor::FlowStats> stats = monitor->GetFlowStats ();

  for (std::map<FlowId, FlowMonitor::FlowStats>::const_iterator iter = stats.begin (); iter != stats.end (); ++iter)
    {
      Ipv4FlowClassifier::FiveTuple t = classifier->FindFlow (iter->first);

      if ((t.sourceAddress == Ipv4Address("10.1.1.1") && t.destinationAddress == Ipv4Address("10.1.1.2"))
        || (t.sourceAddress == Ipv4Address("10.1.1.3") && t.destinationAddress == Ipv4Address("10.1.1.2")))
        {
         /* NS_LOG_UNCOND("Flow ID: " << iter->first << " Src Addr " << t.sourceAddress << " Dst Addr " << t.destinationAddress);
          NS_LOG_UNCOND("Tx Packets = " << iter->second.txPackets);
          NS_LOG_UNCOND("Rx Packets = " << iter->second.rxPackets);
          NS_LOG_UNCOND("Throughput: " << iter->second.rxBytes * 8.0 / (iter->second.timeLastRxPacket.GetSeconds()-iter->second.timeFirstTxPacket.GetSeconds()) / 1024  << " Kbps");*/

          std::cout<<"Flow ID: " << iter->first << " Src Addr " << t.sourceAddress << " Dst Addr " << t.destinationAddress<<"\n";
          std::cout<<"Tx Packets = " << iter->second.txPackets<<"\n";
          std::cout<<"Rx Packets = " << iter->second.rxPackets<<"\n";
          std::cout<<"Throughput: " << iter->second.rxBytes * 8.0 / (iter->second.timeLastRxPacket.GetSeconds()-iter->second.timeFirstTxPacket.GetSeconds()) / 1024 /1024  << " Mbps\n";

        }
    }
Thanks
Mahmud

You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

fatima zahra rabahi

unread,
May 20, 2017, 4:09:39 AM5/20/17
to ns-3-...@googlegroups.com
But here you have built ip addresses I do not know how you chose them? for me I have 40 nodes(vehicles) so what i do for the adresse ip .
Me in the vanet- routing -compare the script that is in the ns3.26 i want to vary the throughput depending on the speed(m/s) how i do please

Karim kt

unread,
Mar 1, 2018, 12:01:19 PM3/1/18
to ns-3-users
Miss Fatima zahra
i have the same case of 50 nodes in a MANET Routing compare and i want to calculate those metrics
can you please help on how i can implement them

Mahdi Tahavori

unread,
Apr 20, 2018, 12:57:56 AM4/20/18
to ns-3-users


hi friends
i  am designing an 3-step authentication protocol for smart grid. there is several nodes which are communicating with a gateway.I want to plot End-to-End delay for 3-step authentication by increasing the number of nodes.
i am using NS2 with Xgraph. i will be appreciated if some one can help me come over with it.

thanks alot

imtiaz.ah...@gmail.com

unread,
May 31, 2018, 4:28:51 AM5/31/18
to ns-3-users
thank you very it works for me on vanet-routing-compare.cc example
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/35LR0PhEoHk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

imtiaz.ah...@gmail.com

unread,
Jun 14, 2018, 1:20:03 AM6/14/18
to ns-3-users
flowmonitor is not working in bsm safety message what should i do???
Reply all
Reply to author
Forward
0 new messages