Advertisement
BowserFlash13

Untitled

Jun 26th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. OnOffHelper onOffApp ("ns3::TcpSocketFactory", InetSocketAddress (interfaces.GetAddress (1), 9));
  2. onOffApp.SetAttribute ("DataRate", StringValue ("1Mbps"));
  3. onOffApp.SetAttribute ("PacketSize", UintegerValue (2048));
  4. onOffApp.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=2.0]"));
  5. onOffApp.SetAttribute ("OffTime", StringValue ("ns3::UniformRandomVariable[Min=1.0|Max=3.0]"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement