A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::lorawan::MacPacketStatus Struct Reference

Stores MAC-layer packet metrics of sender/receivers. More...

#include "lora-packet-tracker.h"

+ Collaboration diagram for ns3::lorawan::MacPacketStatus:

Public Attributes

Ptr< const Packetpacket
 Packet being tracked.
 
Time receivedTime
 Time of first reception (placeholder field)
 
std::map< int, TimereceptionTimes
 Timestamp of the pkt leaving MAC layer to go up the stack, mapped by receiver's node id.
 
uint32_t senderId
 Node id of the packet sender.
 
Time sendTime
 Timestamp of the pkt leaving MAC layer to go down the stack of sender.
 

Detailed Description

Stores MAC-layer packet metrics of sender/receivers.

Remarks
Can be used for both uplink and downlink packets.

Definition at line 65 of file lora-packet-tracker.h.

Member Data Documentation

◆ packet

Ptr<const Packet> ns3::lorawan::MacPacketStatus::packet

Packet being tracked.

Definition at line 67 of file lora-packet-tracker.h.

Referenced by ns3::lorawan::LoraPacketTracker::MacTransmissionCallback().

◆ receivedTime

Time ns3::lorawan::MacPacketStatus::receivedTime

Time of first reception (placeholder field)

Todo:
Field set to max and not used

Definition at line 70 of file lora-packet-tracker.h.

Referenced by ns3::lorawan::LoraPacketTracker::MacTransmissionCallback().

◆ receptionTimes

std::map<int, Time> ns3::lorawan::MacPacketStatus::receptionTimes

Timestamp of the pkt leaving MAC layer to go up the stack, mapped by receiver's node id.

Definition at line 72 of file lora-packet-tracker.h.

◆ senderId

uint32_t ns3::lorawan::MacPacketStatus::senderId

Node id of the packet sender.

Definition at line 68 of file lora-packet-tracker.h.

Referenced by ns3::lorawan::LoraPacketTracker::MacTransmissionCallback().

◆ sendTime

Time ns3::lorawan::MacPacketStatus::sendTime

Timestamp of the pkt leaving MAC layer to go down the stack of sender.

Definition at line 69 of file lora-packet-tracker.h.

Referenced by ns3::lorawan::LoraPacketTracker::MacTransmissionCallback().


The documentation for this struct was generated from the following file: