22 #include "ns3/applications-module.h"
23 #include "ns3/config-store-module.h"
24 #include "ns3/core-module.h"
25 #include "ns3/internet-module.h"
26 #include "ns3/network-module.h"
27 #include "ns3/satellite-module.h"
28 #include "ns3/traffic-module.h"
42 NS_LOG_COMPONENT_DEFINE(
"sat-profiling-sim");
45 main(
int argc,
char* argv[])
47 LogComponentEnable(
"CbrApplication", LOG_LEVEL_INFO);
48 LogComponentEnable(
"PacketSink", LOG_LEVEL_INFO);
50 uint32_t utsPerBeam(1);
51 uint32_t endUsersPerUt(1);
52 double simulationTime(10.0);
54 Ptr<SimulationHelper> simulationHelper = CreateObject<SimulationHelper>(
"sat-profiling-sim");
56 simulationHelper->SetDefaultValues();
57 simulationHelper->SetUtCountPerBeam(utsPerBeam);
58 simulationHelper->SetUserCountPerUt(endUsersPerUt);
59 simulationHelper->SetSimulationTime(simulationTime);
61 simulationHelper->SetBeams(
"48");
63 simulationHelper->LoadScenario(
"geo-33E");
65 simulationHelper->CreateSatScenario();
70 NodeContainer utUsers = Singleton<SatTopology>::Get()->GetUtUserNodes();
72 NS_ASSERT(utUsers.GetN() == 1);
74 simulationHelper->GetTrafficHelper()->AddCbrTraffic(
79 NodeContainer(Singleton<SatTopology>::Get()->GetGwUserNode(0)),
80 Singleton<SatTopology>::Get()->GetUtUserNodes(),
82 Seconds(simulationTime),
85 simulationHelper->GetTrafficHelper()->AddCbrTraffic(
90 NodeContainer(Singleton<SatTopology>::Get()->GetGwUserNode(0)),
91 Singleton<SatTopology>::Get()->GetUtUserNodes(),
93 Seconds(simulationTime),
99 simulationHelper->CreateDefaultRtnLinkStats();
100 simulationHelper->EnableProgressLogs();
101 simulationHelper->RunSimulation();
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.