mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 18:13:57 +02:00
Add a way to set routing helper
This commit is contained in:
parent
7ba1d66e8c
commit
a55177cd67
3 changed files with 25 additions and 7 deletions
|
@ -6,9 +6,10 @@
|
|||
#include "ns3/applications-module.h"
|
||||
#include "ns3/node-container.h"
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/aodv-module.h"
|
||||
#include "ns3/test.h"
|
||||
|
||||
#include "ns3/leo-module.h"
|
||||
#include "ns3/test.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
|
@ -54,6 +55,7 @@ LeoTestCase1::DoRun (void)
|
|||
LeoHelper leo;
|
||||
leo.SetDeviceAttribute ("DataRate", StringValue ("10Mbps"));
|
||||
leo.SetChannelAttribute ("PropagationDelay", StringValue ("ns3::ConstantSpeedPropagationDelayModel"));
|
||||
leo.SetRoutingHelper (AodvHelper ());
|
||||
|
||||
NetDeviceContainer allDevices = leo.Install (satellites, gateways, terminals);
|
||||
|
||||
|
@ -61,8 +63,6 @@ LeoTestCase1::DoRun (void)
|
|||
UdpEchoServerHelper echoServer (9);
|
||||
ApplicationContainer serverApps = echoServer.Install (terminals);
|
||||
|
||||
// TODO routing
|
||||
|
||||
// install a client on each of the terminals
|
||||
ApplicationContainer clientApps;
|
||||
for (uint32_t i = 1; i < terminals.GetN (); i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue