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");
62 Ptr<SatHelper> helper = simulationHelper->CreateSatScenario();
67 NodeContainer utUsers = helper->GetUtUsers();
69 NS_ASSERT(utUsers.GetN() == 1);
71 Config::SetDefault(
"ns3::CbrApplication::PacketSize", UintegerValue(64));
72 Config::SetDefault(
"ns3::CbrApplication::Interval", TimeValue(Seconds(2)));
85 simulationHelper->CreateDefaultRtnLinkStats();
86 simulationHelper->EnableProgressLogs();
87 simulationHelper->RunSimulation();
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.