uint16_t port = 29; // Discard port (RFC 863)
Config::SetDefault ("ns3::OnOffApplication::PacketSize", UintegerValue (210));
Config::SetDefault ("ns3::OnOffApplication::DataRate", StringValue ("448kb/s"));
Config::SetDefault ("ns3::OnOffApplication::OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=0.1]"));
Config::SetDefault ("ns3::OnOffApplication::OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0.3]"));
OnOffHelper onoff ("ns3::UdpSocketFactory", Address (InetSocketAddress (enbInterfaces.GetAddress (0,0), port)));
ApplicationContainer apps = onoff.Install (enbNode.Get (0));
apps.Start (Seconds (0.0));
apps.Stop (Seconds (10.0));
// Create a packet sink to receive these packets
uint16_t sinkPort = 19;
// Address m_sinkAddress (InetSocketAddress (ueInterfaces.GetAddress (0), sinkPort));
PacketSinkHelper sink ("ns3::UdpSocketFactory", Address (InetSocketAddress (Ipv4Address::GetAny (), sinkPort))); //Ipv4Address::GetAny () //ueInterfaces.GetAddress(0)
ApplicationContainer appSink = sink.Install (ueNode.Get (0));
appSink.Start (Seconds (0.0));
appSink.Stop (Seconds (10.0));