V4PingHelper ping (interfaces.GetAddress (size- 1));
ApplicationContainer p = ping.Install (adhocNodes.Get (size-1));
ApplicationContainer p = ping.Install (adhocNodes.Get (size-1)); implies installing ping on the nodes
i put the function
void
InstallApplications (Ipv4InterfaceContainer interfaces, double TotalTime, uint32_t size, NodeContainer adhocNodes)
{
V4PingHelper ping (interfaces.GetAddress (size- 1));
ping.SetAttribute ("Verbose", BooleanValue (true));
ApplicationContainer p = ping.Install (adhocNodes.Get (size-1));
p.Start (Seconds (0));
p.Stop (Seconds (TotalTime) - Seconds (0.001));
// move node away
Ptr<Node> node = adhocNodes.Get (size/2);
Ptr<MobilityModel> mob = node->GetObject<MobilityModel> ();
Simulator::Schedule (Seconds (TotalTime/3), &MobilityModel::SetPosition, mob, Vector (1e5, 1e5, 1e5));
}
just above main in dsr.cc
and included the following line of code in dsr.cc
InstallApplications (allInterfaces, TotalTime,nWifis,adhocNodes);//for ping
and i did get an output finally!!!
why is it 100%packet loss?(i have attached screenshot of the same) kindly provide me with a hint
thanking in advance
lincy
--
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/UddgoGtmHEs/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 http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
V4PingHelper ping (interfaces.GetAddress (size- 1));
ns3::V4PingHelper::V4PingHelper | ( | Ipv4Address | remote | ) |
Create a V4PingHelper which is used to make life easier for people wanting to use ping Applications.
remote | The address which should be pinged |
ApplicationContainer p = ping.Install (adhocNodes.Get (size-1));
ApplicationContainer ns3::V4PingHelper::Install | ( | Ptr< Node > | node | ) | const |
Install a Ping application on the provided Node.
The Node is specified directly by a Ptr<Node>
node | The node to install the V4PingApplication on. |
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
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 http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
--
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/UddgoGtmHEs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
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 http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
--
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/UddgoGtmHEs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
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 http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
--
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/UddgoGtmHEs/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 http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
--
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/UddgoGtmHEs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.