#include "ns3/core-module.h"#include "ns3/lorawan-module.h"#include "ns3/mobility-helper.h"#include "ns3/point-to-point-helper.h"Go to the source code of this file.
Functions | |
| void | OnPacketReceptionCallback (Ptr< const Packet > packet, uint32_t receiverNodeId) |
| Record the correct reception of a packet by a gateway. | |
| void | OnTransmissionCallback (Ptr< const Packet > packet, uint32_t senderNodeId) |
| Record the beginning of a transmission by an end device. | |
Variables | |
| int | nDevices = 200 |
| Number of end device nodes to create. | |
| int | nGateways = 1 |
| Number of gateway nodes to create. | |
| auto | packetsReceived = std::vector<int>(6, 0) |
| Record received pkts by Data Rate (DR) [index 0 -> DR5, index 5 -> DR0]. | |
| auto | packetsSent = std::vector<int>(6, 0) |
| Record received pkts by Data Rate (DR) [index 0 -> DR5, index 5 -> DR0]. | |
| double | radiusMeters = 1000 |
| Radius (m) of the deployment. | |
| bool | realisticChannelModel = false |
| Whether to use a more realistic channel model with buildings and correlated shadowing. | |
| double | simulationTimeSeconds = 100 |
| Scenario duration (s) in simulated time. | |
Record the correct reception of a packet by a gateway.
| packet | A pointer to the packet received. |
| receiverNodeId | Node id of the receiver gateway. |
Definition at line 56 of file aloha-throughput.cc.
References ns3::lorawan::LoraTag::GetSpreadingFactor(), NS_LOG_FUNCTION, and packetsReceived.
Record the beginning of a transmission by an end device.
| packet | A pointer to the packet sent. |
| senderNodeId | Node id of the sender end device. |
Definition at line 41 of file aloha-throughput.cc.
References ns3::lorawan::LoraTag::GetSpreadingFactor(), NS_LOG_FUNCTION, and packetsSent.
| int nDevices = 200 |
Number of end device nodes to create.
Definition at line 20 of file aloha-throughput.cc.
Referenced by ns3::GlobalRouter< T >::AnotherRouterOnLink(), ns3::GlobalRouter< T >::BuildNetworkLSAs(), ns3::AnimationInterface::ConnectLte(), ns3::lorawan::CreateEndDevices(), ns3::GlobalRouter< T >::FindDesignatedRouterForLink(), ns3::lorawan::InitializeNetwork(), ns3::GlobalRouter< T >::NetDeviceIsBridged(), ns3::NixVectorRouting< T >::NetDeviceIsBridged(), ns3::GrantedTimeWindowMpiInterface::ReceiveMessages(), and ns3::NullMessageMpiInterface::ReceiveMessages().
| int nGateways = 1 |
Number of gateway nodes to create.
Definition at line 21 of file aloha-throughput.cc.
Referenced by ns3::lorawan::CreateGateways(), and ns3::lorawan::InitializeNetwork().
| auto packetsReceived = std::vector<int>(6, 0) |
Record received pkts by Data Rate (DR) [index 0 -> DR5, index 5 -> DR0].
Definition at line 32 of file aloha-throughput.cc.
Referenced by OnPacketReceptionCallback().
| auto packetsSent = std::vector<int>(6, 0) |
Record received pkts by Data Rate (DR) [index 0 -> DR5, index 5 -> DR0].
Definition at line 30 of file aloha-throughput.cc.
Referenced by OnTransmissionCallback().
| double radiusMeters = 1000 |
Radius (m) of the deployment.
Definition at line 22 of file aloha-throughput.cc.
| bool realisticChannelModel = false |
Whether to use a more realistic channel model with buildings and correlated shadowing.
Definition at line 26 of file aloha-throughput.cc.
| double simulationTimeSeconds = 100 |
Scenario duration (s) in simulated time.
Definition at line 23 of file aloha-throughput.cc.