equal
deleted
inserted
replaced
75 Ipv4AddressHelper ("10.3.1.0", "255.255.255.0")); |
75 Ipv4AddressHelper ("10.3.1.0", "255.255.255.0")); |
76 |
76 |
77 // Install on/off app on all right side nodes |
77 // Install on/off app on all right side nodes |
78 OnOffHelper clientHelper ("ns3::UdpSocketFactory", Address ()); |
78 OnOffHelper clientHelper ("ns3::UdpSocketFactory", Address ()); |
79 clientHelper.SetAttribute |
79 clientHelper.SetAttribute |
80 ("OnTime", RandomVariableValue (UniformVariable (0, 1))); |
80 ("OnTime", RandomVariableValue (UniformVariable (0, 1))); |
81 clientHelper.SetAttribute |
81 clientHelper.SetAttribute |
82 ("OffTime", RandomVariableValue (UniformVariable (0, 1))); |
82 ("OffTime", RandomVariableValue (UniformVariable (0, 1))); |
83 ApplicationContainer clientApps; |
83 ApplicationContainer clientApps; |
84 |
84 |
85 for (uint32_t i = 0; i < d.RightCount (); ++i) |
85 for (uint32_t i = 0; i < d.RightCount (); ++i) |
86 { |
86 { |
87 // Create an on/off app sending packets to the same leaf right side |
87 // Create an on/off app sending packets to the same leaf right side |