equal
deleted
inserted
replaced
44 |
44 |
45 #include "ns3/core-module.h" |
45 #include "ns3/core-module.h" |
46 #include "ns3/simulator-module.h" |
46 #include "ns3/simulator-module.h" |
47 #include "ns3/node-module.h" |
47 #include "ns3/node-module.h" |
48 #include "ns3/helper-module.h" |
48 #include "ns3/helper-module.h" |
49 #include "ns3/global-route-manager.h" |
|
50 |
49 |
51 using namespace ns3; |
50 using namespace ns3; |
52 |
51 |
53 NS_LOG_COMPONENT_DEFINE ("SimpleGlobalRoutingExample"); |
52 NS_LOG_COMPONENT_DEFINE ("SimpleGlobalRoutingExample"); |
54 |
53 |
109 ipv4.SetBase ("10.1.3.0", "255.255.255.0"); |
108 ipv4.SetBase ("10.1.3.0", "255.255.255.0"); |
110 Ipv4InterfaceContainer i3i2 = ipv4.Assign (d3d2); |
109 Ipv4InterfaceContainer i3i2 = ipv4.Assign (d3d2); |
111 |
110 |
112 // Create router nodes, initialize routing database and set up the routing |
111 // Create router nodes, initialize routing database and set up the routing |
113 // tables in the nodes. |
112 // tables in the nodes. |
114 GlobalRouteManager::PopulateRoutingTables (); |
113 Ipv4GlobalRoutingHelper::PopulateRoutingTables (); |
115 |
114 |
116 // Create the OnOff application to send UDP datagrams of size |
115 // Create the OnOff application to send UDP datagrams of size |
117 // 210 bytes at a rate of 448 Kb/s |
116 // 210 bytes at a rate of 448 Kb/s |
118 NS_LOG_INFO ("Create Applications."); |
117 NS_LOG_INFO ("Create Applications."); |
119 uint16_t port = 9; // Discard port (RFC 863) |
118 uint16_t port = 9; // Discard port (RFC 863) |