Hi, all~
Must I install sink-applications while installing on-off-applications?
Some of my test code is:
uint32_t port = 8080;
MyOnOffHelper oo = MyOnOffHelper("ns3::TcpSocketFactory",Address(InetSocketAddress(interfaces.GetAddress (0), port))); // ip address of server
oo.SetAttribute("OnTime",StringValue("ns3::ExponentialRandomVariable[Mean=1]"));
oo.SetAttribute("OffTime",StringValue("ns3::ExponentialRandomVariable[Mean=1]"));
oo.SetAttribute("PacketSize",UintegerValue (packetSize));
oo.SetAttribute("DataRate",DataRateValue(dataRate_OnOff));
oo.SetAttribute("MaxBytes",UintegerValue (maxBytes));
ApplicationContainer serverApps = oo.Install (nodes.Get (1));
serverApps.Start (Seconds (1.0));
serverApps.Stop (Seconds (10.0));
I didn't installed sink-applications at the receiver node, but it also workes, I can view the traffic with NetAnim.
So, my question is, must I install sink-applications while installing on-off-applications(TCP)?
Seems that the on-off-application donot need the installation of the echoServer-application, however, some codes I found in the group have somthing to do with sink-applications, why, are there some special reasons?
Looking forward to your help!