equal
deleted
inserted
replaced
16 |
16 |
17 #include "ns3/core-module.h" |
17 #include "ns3/core-module.h" |
18 #include "ns3/simulator-module.h" |
18 #include "ns3/simulator-module.h" |
19 #include "ns3/node-module.h" |
19 #include "ns3/node-module.h" |
20 #include "ns3/helper-module.h" |
20 #include "ns3/helper-module.h" |
21 #include "ns3/global-routing-module.h" |
|
22 |
21 |
23 // Default Network Topology |
22 // Default Network Topology |
24 // |
23 // |
25 // 10.1.1.0 |
24 // 10.1.1.0 |
26 // n0 -------------- n1 n2 n3 n4 |
25 // n0 -------------- n1 n2 n3 n4 |
100 |
99 |
101 ApplicationContainer clientApps = echoClient.Install (p2pNodes.Get (0)); |
100 ApplicationContainer clientApps = echoClient.Install (p2pNodes.Get (0)); |
102 clientApps.Start (Seconds (2.0)); |
101 clientApps.Start (Seconds (2.0)); |
103 clientApps.Stop (Seconds (10.0)); |
102 clientApps.Stop (Seconds (10.0)); |
104 |
103 |
105 GlobalRouteManager::PopulateRoutingTables (); |
104 Ipv4GlobalRoutingHelper::PopulateRoutingTables (); |
106 |
105 |
107 PointToPointHelper::EnablePcapAll ("second"); |
106 PointToPointHelper::EnablePcapAll ("second"); |
108 CsmaHelper::EnablePcap ("second", csmaDevices.Get (1), true); |
107 CsmaHelper::EnablePcap ("second", csmaDevices.Get (1), true); |
109 |
108 |
110 Simulator::Run (); |
109 Simulator::Run (); |