26 #include "ns3/simulator.h"
27 #include "ns3/packet.h"
28 #include "ns3/mesh-point-device.h"
29 #include "ns3/wifi-net-device.h"
30 #include "ns3/mesh-point-device.h"
31 #include "ns3/mesh-wifi-interface-mac.h"
32 #include "ns3/random-variable-stream.h"
36 #include "ns3/trace-source-accessor.h"
52 .SetGroupName (
"Mesh")
54 .AddAttribute (
"RandomStart",
55 "Random delay at first proactive PREQ",
61 .AddAttribute (
"MaxQueueSize",
62 "Maximum number of packets we can store when resolving route",
66 MakeUintegerChecker<uint16_t> (1)
68 .AddAttribute (
"Dot11MeshHWMPmaxPREQretries",
69 "Maximum number of retries before we suppose the destination to be unreachable",
73 MakeUintegerChecker<uint8_t> (1)
75 .AddAttribute (
"Dot11MeshHWMPnetDiameterTraversalTime",
76 "Time we suppose the packet to go from one edge of the network to another",
82 .AddAttribute (
"Dot11MeshHWMPpreqMinInterval",
83 "Minimal interval between to successive PREQs",
89 .AddAttribute (
"Dot11MeshHWMPperrMinInterval",
90 "Minimal interval between to successive PREQs",
95 .AddAttribute (
"Dot11MeshHWMPactiveRootTimeout",
96 "Lifetime of poractive routing information",
102 .AddAttribute (
"Dot11MeshHWMPactivePathTimeout",
103 "Lifetime of reactive routing information",
109 .AddAttribute (
"Dot11MeshHWMPpathToRootInterval",
110 "Interval between two successive proactive PREQs",
116 .AddAttribute (
"Dot11MeshHWMPrannInterval",
117 "Lifetime of poractive routing information",
123 .AddAttribute (
"MaxTtl",
124 "Initial value of Time To Live field",
128 MakeUintegerChecker<uint8_t> (2)
130 .AddAttribute (
"UnicastPerrThreshold",
131 "Maximum number of PERR receivers, when we send a PERR as a chain of unicasts",
135 MakeUintegerChecker<uint8_t> (1)
137 .AddAttribute (
"UnicastPreqThreshold",
138 "Maximum number of PREQ receivers, when we send a PREQ as a chain of unicasts",
142 MakeUintegerChecker<uint8_t> (1)
144 .AddAttribute (
"UnicastDataThreshold",
145 "Maximum number ofbroadcast receivers, when we send a broadcast as a chain of unicasts",
149 MakeUintegerChecker<uint8_t> (1)
151 .AddAttribute (
"DoFlag",
152 "Destination only HWMP flag",
158 .AddAttribute (
"RfFlag",
159 "Reply and forward flag",
165 .AddTraceSource (
"RouteDiscoveryTime",
166 "The time of route discovery procedure",
169 "ns3::Time::TracedCallback"
171 .AddTraceSource (
"RouteChange",
172 "Routing table changed",
174 "ns3::HwmpProtocol::RouteChangeTracedCallback"
186 m_maxQueueSize (255),
187 m_dot11MeshHWMPmaxPREQretries (3),
188 m_dot11MeshHWMPnetDiameterTraversalTime (
MicroSeconds (1024*100)),
189 m_dot11MeshHWMPpreqMinInterval (
MicroSeconds (1024*100)),
190 m_dot11MeshHWMPperrMinInterval (
MicroSeconds (1024*100)),
191 m_dot11MeshHWMPactiveRootTimeout (
MicroSeconds (1024*5000)),
192 m_dot11MeshHWMPactivePathTimeout (
MicroSeconds (1024*5000)),
193 m_dot11MeshHWMPpathToRootInterval (
MicroSeconds (1024*2000)),
197 m_unicastPerrThreshold (32),
198 m_unicastPreqThreshold (1),
199 m_unicastDataThreshold (1),
230 i->second.preqTimeout.Cancel ();
244 uint32_t sourceIface,
248 uint16_t protocolType,
252 NS_LOG_FUNCTION (
this << sourceIface << source << destination << constPacket << protocolType);
260 NS_FATAL_ERROR (
"HWMP tag has come with a packet from upper layer. This must not occur...");
273 NS_FATAL_ERROR (
"HWMP tag is supposed to be here at this point.");
287 std::vector<uint16_t> channels;
290 bool shouldSend =
true;
291 for (std::vector<uint16_t>::const_iterator chan = channels.begin (); chan != channels.end (); chan++)
293 if ((*chan) == plugin->second->GetChannelId ())
302 channels.push_back (plugin->second->GetChannelId ());
304 for (std::vector<Mac48Address>::const_iterator i = receivers.begin (); i != receivers.end (); i++)
314 routeReply (
true, packetCopy, source, destination, protocolType, plugin->first);
320 return ForwardUnicast (sourceIface, source, destination, packet, protocolType, routeReply, tag.
GetTtl ());
331 NS_FATAL_ERROR (
"HWMP tag must exist when packet received from the network");
339 NS_LOG_FUNCTION (
this << sourceIface << source << destination << packet << protocolType << ttl);
355 routeReply (
true, packet, source, destination, protocolType, result.
ifIndex);
373 NS_LOG_DEBUG (
"Path error, lookup expired proactive path");
378 NS_LOG_DEBUG (
"Path error, initiate reactive path error");
390 uint32_t dst_seqno = 0;
393 dst_seqno = result.
seqnum;
398 i->second->RequestDestination (destination, originator_seqno, dst_seqno);
403 pkt.
dst = destination;
406 pkt.
reply = routeReply;
416 NS_LOG_DEBUG (
"Dropping packet from " << source <<
" to " << destination <<
" due to queue overflow");
428 bool freshInfo (
true);
438 if (i->second.second <= preq.
GetMetric ())
467 rChange.
type =
"Add Reactive";
492 rChange.
type =
"Add Reactive";
511 NS_ASSERT (((*i)->IsDo ()) && ((*i)->IsRf ()));
529 rChange.
type =
"Add Proactive";
554 if ((*i)->GetDestinationAddress () ==
GetAddress ())
576 if ((lifetime > 0) && ((int32_t)(result.
seqnum - (*i)->GetDestSeqNumber ()) >= 0))
579 (*i)->GetDestinationAddress (),
592 (*i)->SetFlags (
true,
false, (*i)->IsUsn ());
611 i->second->SendPreq (preq);
622 bool freshInfo (
true);
626 if ((int32_t)(i->second.first - sequence) > 0)
630 if (i->second.first == sequence)
659 rChange.
type =
"Add Reactive";
665 rChange.
seqnum = sequence;
690 rChange.
type =
"Add Reactive";
696 rChange.
seqnum = sequence;
710 HwmpProtocolMacMap::const_iterator prep_sender =
m_interfaces.find (result.ifIndex);
712 prep_sender->second->SendPrep (prep, result.retransmitter);
720 std::vector<FailedDestination> retval;
722 for (
unsigned int i = 0; i < destinations.size (); i++)
727 (result.
ifIndex != interface) ||
728 ((int32_t)(result.
seqnum - destinations[i].seqnum) > 0)
731 retval.push_back (destinations[i]);
734 if (retval.size () == 0)
746 uint32_t originatorDsn,
747 uint32_t destinationSN,
760 HwmpProtocolMacMap::const_iterator prep_sender =
m_interfaces.find (interface);
762 prep_sender->second->SendPrep (prep, retransmitter);
770 std::vector<Ptr<NetDevice> >
interfaces = mp->GetInterfaces ();
771 for (std::vector<
Ptr<NetDevice> >::const_iterator i = interfaces.begin (); i != interfaces.end (); i++)
787 mac->InstallPlugin (hwmpMac);
792 mp->SetRoutingProtocol (
this);
794 mp->AggregateObject (
this);
801 NS_LOG_FUNCTION (
this << meshPointAddress << peerAddress << interface << status);
807 NS_LOG_DEBUG (destinations.size () <<
" failed destinations for peer address " << peerAddress);
823 std::map<Mac48Address, uint32_t,std::less<Mac48Address> >::const_iterator i =
m_lastDataSeqno.find (source);
830 if ((int32_t)(i->second - seqno) >= 0)
850 for (
unsigned int i = 0; i < destinations.size (); i++)
856 rChange.
type =
"Delete Reactive";
858 rChange.
seqnum = destinations[i].seqnum;
869 std::vector<Mac48Address> receivers_for_interface;
870 for (
unsigned int j = 0; j < perr.
receivers.size (); j++)
874 receivers_for_interface.push_back (perr.
receivers[j].second);
877 i->second->InitiatePerr (perr.
destinations, receivers_for_interface);
886 std::vector<Mac48Address> receivers_for_interface;
887 for (
unsigned int j = 0; j < perr.
receivers.size (); j++)
891 receivers_for_interface.push_back (perr.
receivers[j].second);
894 i->second->ForwardPerr (perr.
destinations, receivers_for_interface);
898 std::vector<std::pair<uint32_t, Mac48Address> >
903 for (
unsigned int i = 0; i < failedDest.size (); i++)
909 rChange.
type =
"Delete Reactive";
911 rChange.
seqnum = failedDest[i].seqnum;
916 rChangePro.
type =
"Delete Proactive";
917 rChangePro.
destination = failedDest[i].destination;
918 rChangePro.
seqnum = failedDest[i].seqnum;
920 for (
unsigned int j = 0; j < precursors.size (); j++)
922 retval.push_back (precursors[j]);
926 for (
unsigned int i = 0; i < retval.size (); i++)
928 for (
unsigned int j = i+1; j < retval.size (); j++)
932 retval.erase (retval.begin () + j);
938 std::vector<Mac48Address>
942 std::vector<Mac48Address> retval;
954 std::vector<Mac48Address>
958 std::vector<Mac48Address> retval;
989 for (std::vector<QueuedPacket>::iterator i =
m_rqueue.begin (); i !=
m_rqueue.end (); i++)
1019 std::map<Mac48Address, PreqEvent>::iterator i =
m_preqTimeouts.find (dst);
1029 while (packet.
pkt != 0)
1051 while (packet.
pkt != 0)
1073 std::map<Mac48Address, PreqEvent>::const_iterator i =
m_preqTimeouts.find (dst);
1095 std::map<Mac48Address, PreqEvent>::iterator i =
m_preqTimeouts.find (dst);
1104 while (packet.
pkt != 0)
1110 std::map<Mac48Address, PreqEvent>::iterator i =
m_preqTimeouts.find (dst);
1121 i->second->RequestDestination (dst, originator_seqno, dst_seqno);
1158 i->second->SendPreq (preq);
1229 os <<
"<Statistics "
1230 "txUnicast=\"" << txUnicast <<
"\" "
1231 "txBroadcast=\"" << txBroadcast <<
"\" "
1232 "txBytes=\"" << txBytes <<
"\" "
1233 "droppedTtl=\"" << droppedTtl <<
"\" "
1234 "totalQueued=\"" << totalQueued <<
"\" "
1235 "totalDropped=\"" << totalDropped <<
"\" "
1236 "initiatedPreq=\"" << initiatedPreq <<
"\" "
1237 "initiatedPrep=\"" << initiatedPrep <<
"\" "
1238 "initiatedPerr=\"" << initiatedPerr <<
"\"/>" << std::endl;
1244 "address=\"" <<
m_address <<
"\"" << std::endl <<
1254 "isRoot=\"" <<
m_isRoot <<
"\"" << std::endl <<
1255 "maxTtl=\"" << (uint16_t)
m_maxTtl <<
"\"" << std::endl <<
1259 "doFlag=\"" <<
m_doFlag <<
"\"" << std::endl <<
1260 "rfFlag=\"" <<
m_rfFlag <<
"\">" << std::endl;
1264 plugin->second->Report (os);
1266 os <<
"</Hwmp>" << std::endl;
1275 plugin->second->ResetStats ();
Time m_dot11MeshHWMPrannInterval
Structure of path error: IePerr and list of receivers: interfaces and MAC address.
void SetDestinationAddress(Mac48Address dest_address)
Set destination address function.
void SetPreqID(uint32_t id)
Set path discovery id field.
uint16_t txBroadcast
transmit broadcast
bool RequestRoute(uint32_t sourceIface, const Mac48Address source, const Mac48Address destination, Ptr< const Packet > packet, uint16_t protocolType, RouteReplyCallback routeReply)
Route request, inherited from MeshL2RoutingProtocol.
Simulation virtual time values and global simulation resolution.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
void SetStream(int64_t stream)
Specifies the stream number for the RngStream.
Mac48Address retransmitter
route source
std::string type
type of change
AttributeValue implementation for Boolean.
uint32_t GetDestinationSeqNumber() const
Get destination sequence number function.
Hwmp tag implements interaction between HWMP protocol and MeshWifiMac.
void SetTTL(uint8_t ttl)
Set remaining number of hops allowed for this element.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
void IncrementMetric(uint32_t metric)
Increment metric function.
static const uint32_t MAX_METRIC
Maximum (the best?) path metric.
void SetOriginatorSeqNumber(uint32_t originator_seq_number)
Set originator sequence number function.
Route lookup result, return type of LookupXXX methods.
Time m_dot11MeshHWMPpreqMinInterval
uint16_t initiatedPreq
initiated PREQ
Time m_dot11MeshHWMPperrMinInterval
void SendPrep(Mac48Address src, Mac48Address dst, Mac48Address retransmitter, uint32_t initMetric, uint32_t originatorDsn, uint32_t destinationSN, uint32_t lifetime, uint32_t interface)
Send Path Reply.
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
uint16_t droppedTtl
dropped TTL
void AddPacketTag(const Tag &tag) const
Add a packet tag.
Time m_dot11MeshHWMPactiveRootTimeout
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
void ForwardPathError(PathError perr)
Forwards a received path error.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
See 7.3.2.97 of 802.11s draft 2.07.
uint32_t GetSize(void) const
Returns the the size in bytes of the packet (including the zero-filled initial payload).
uint32_t ifIndex
IF index.
LookupResult LookupReactiveExpired(Mac48Address destination)
Return all reactive paths, including expired.
bool GetRfFlag()
Get rf flag function.
Mac48Address GetDestinationAddress() const
Get destination address function.
Mac48Address src
src address
bool Install(Ptr< MeshPointDevice >)
Install HWMP on given mesh point.
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
void InitiatePathError(PathError perr)
Passes a self-generated PERR to interface-plugin.
uint32_t CalculateMetric(Mac48Address peerAddress, Ptr< MeshWifiInterfaceMac > mac)
Airtime link metric is defined in Section 13.9 of IEEE 802.11-2012 as:
void SetTtl(uint8_t ttl)
Set TTL function.
Time lifetime
lifetime of route
Statistics m_stats
statistics
uint8_t GetMaxTtl()
Get maximum TTL function.
uint32_t GetLifetime() const
Get lifetime value.
void SetTtl(uint8_t ttl)
Set the TTL value.
void ReactivePathResolved(Mac48Address dst)
void SetOriginatorAddress(Mac48Address originator_address)
Set originator address function.
std::map< Mac48Address, std::pair< uint32_t, uint32_t > > m_hwmpSeqnoMetricDatabase
keeps HWMP seqno (first in pair) and HWMP metric (second in pair) for each address ...
void SetAddress(Mac48Address retransmitter)
Set address.
uint8_t m_unicastDataThreshold
LookupResult LookupReactive(Mac48Address destination)
Lookup path to destination.
TracedCallback< Time > m_routeDiscoveryTimeCallback
Route discovery time:
void SetLifetime(uint32_t lifetime)
Set lifetime in TUs for the forwarding information to be considered valid.
void ReceivePrep(IePrep prep, Mac48Address from, uint32_t interface, Mac48Address fromMp, uint32_t metric)
Handler for receiving Path Reply.
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
void SendProactivePreq()
Proactive Preq routines:
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range.
bool DropDataFrame(uint32_t seqno, Mac48Address source)
MAC-plugin asks whether the frame can be dropped.
QueuedPacket DequeueFirstPacket()
std::vector< std::pair< uint32_t, Mac48Address > > PrecursorList
Path precursor = {MAC, interface ID}.
Mac48Address GetOriginatorAddress() const
Get originator address function.
uint32_t seqnum
sequence number
Ptr< Packet > pkt
the packet
Routing table for HWMP – 802.11s routing protocol.
void Print(std::ostream &os) const
Print function.
std::vector< Mac48Address > GetPreqReceivers(uint32_t interface)
Get PREQ receivers.
double GetSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
bool RemoveRoutingStuff(uint32_t fromIface, const Mac48Address source, const Mac48Address destination, Ptr< Packet > packet, uint16_t &protocolType)
Clean HWMP packet tag from packet; only the packet parameter is used.
uint16_t totalQueued
total queued
Mac48Address GetOriginatorAddress() const
Get originator address value.
bool PeekPacketTag(Tag &tag) const
Search a matching tag and call Tag::Deserialize if it is found.
Time GetPerrMinInterval()
Get PERR minimum interval function.
Ptr< MeshPointDevice > GetMeshPoint() const
Each mesh protocol must be installed on the mesh point to work.
uint8_t m_unicastPerrThreshold
std::vector< QueuedPacket > m_rqueue
Packet Queue.
std::vector< std::pair< uint32_t, Mac48Address > > GetPerrReceivers(std::vector< FailedDestination > failedDest)
Get PERR receivers.
static EventId Schedule(Time const &delay, MEM mem_ptr, OBJ obj)
Schedule an event to expire after delay.
int64_t GetMicroSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
std::vector< HwmpProtocol::FailedDestination > GetUnreachableDestinations(Mac48Address peerAddress)
When peer link with a given MAC-address fails - it returns list of unreachable destination addresses...
void RetryPathDiscovery(Mac48Address dst, uint8_t numOfRetry)
Generates PREQ retry when retry timeout has expired and route is still unresolved.
Ptr< MeshPointDevice > m_mp
Host mesh point.
void IncrementMetric(uint32_t metric)
Handle Metric:
AttributeValue implementation for Time.
void DoDispose()
Destructor implementation.
Mac48Address destination
route destination
Hybrid wireless mesh protocol – a mesh routing protocol defined in IEEE 802.11-2012 standard...
See 7.3.2.96 of 802.11s draft 2.07.
Hold an unsigned integer type.
PrecursorList GetPrecursors(Mac48Address destination)
bool ForwardUnicast(uint32_t sourceIface, const Mac48Address source, const Mac48Address destination, Ptr< Packet > packet, uint16_t protocolType, RouteReplyCallback routeReply, uint32_t ttl)
Like RequestRoute, but for unicast packets.
uint32_t seqnum
sequence number of route
Packet waiting its routing information.
Hold together all Wifi-related objects.
static Mac48Address GetBroadcast(void)
void ProactivePathResolved()
HwmpProtocolMacMap m_interfaces
interfaces
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
uint32_t GetOriginatorSeqNumber() const
Get originator sequence numnber value.
uint32_t GetActivePathLifetime()
Get active path lifetime function.
void AddPrecursor(Mac48Address destination, uint32_t precursorInterface, Mac48Address precursorAddress, Time lifetime)
uint16_t totalDropped
total dropped
Ptr< HwmpRtable > m_rtable
Routing table.
void SetOriginatorAddress(Mac48Address originator_address)
Set originator address value.
void SetLifetime(uint32_t lifetime)
Set lifetime function.
static TypeId GetTypeId()
Get the type ID.
uint16_t initiatedPerr
initiated PERR
uint8_t m_unicastPreqThreshold
LookupResult LookupProactiveExpired()
Return all proactive paths, including expired.
void ReceivePreq(IePreq preq, Mac48Address from, uint32_t interface, Mac48Address fromMp, uint32_t metric)
Handler for receiving Path Request.
uint32_t m_dataSeqno
data sequence no
Time m_randomStart
Random start in Proactive PREQ propagation.
Mac48Address GetAddress()
static Mac48Address ConvertFrom(const Address &address)
Ptr< Packet > Copy(void) const
performs a COW copy of the packet.
uint32_t m_hwmpSeqno
HWMP sequence no.
void SetOriginatorSeqNumber(uint32_t originator_seq_number)
Set originator sequence number.
uint16_t protocol
protocol number
void SetMetric(uint32_t metric)
Set metric function.
Mac48Address m_address
address
uint8_t m_dot11MeshHWMPmaxPREQretries
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void AddDestinationAddressElement(bool doFlag, bool rfFlag, Mac48Address dest_address, uint32_t dest_seq_number)
Add a destination address unit: flags, destination and sequence number.
void AddReactivePath(Mac48Address destination, Mac48Address retransmitter, uint32_t interface, uint32_t metric, Time lifetime, uint32_t seqnum)
uint16_t initiatedPrep
initiated PREP
Ptr< const AttributeChecker > MakeBooleanChecker(void)
uint32_t GetNextPreqId()
Get next period function.
void DelDestinationAddressElement(Mac48Address dest_address)
Delete a destination address unit by destination.
PathError MakePathError(std::vector< FailedDestination > destinations)
forms a path error information element when list of destination fails on a given interface ...
std::vector< std::pair< uint32_t, Mac48Address > > receivers
list of PathError receivers (in case of unicast PERR)
bool IsNeedNotPrep() const
Check whether Proactive PREP subfield to off.
uint32_t GetNextHwmpSeqno()
Get next HWMP sequence no function.
uint8_t GetDestCount() const
Get destination count.
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
static Time Now(void)
Return the current simulation virtual time.
std::vector< Ptr< DestinationAddressUnit > > GetDestinationList()
Get all destinations, which are stored in PREQ:
uint32_t txBytes
transmit bytes
Ptr< HwmpRtable > GetRoutingTable(void) const
Get pointer to HWMP routing table.
RouteReplyCallback reply
how to reply
uint32_t m_preqId
PREQ ID.
Interface for L2 mesh routing protocol and mesh point communication.
uint8_t GetTtl()
Get the TTL value.
void ReceivePerr(std::vector< FailedDestination > destinations, Mac48Address from, uint32_t interface, Mac48Address fromMp)
Handler for receiving Path Error.
void Report(std::ostream &) const
Statistics:
uint32_t metric
metric of route
Mac48Address dst
dst address
void DeleteProactivePath()
Ptr< UniformRandomVariable > m_coefficient
Random variable for random start time.
uint8_t GetUnicastPerrThreshold()
Get unicast PERR threshold function.
EventId m_proactivePreqTimer
proactive PREQ timer
Mac48Address retransmitter
retransmitter
Time m_dot11MeshHWMPactivePathTimeout
std::vector< Mac48Address > GetBroadcastReceivers(uint32_t interface)
Get broadcast receivers.
std::vector< FailedDestination > destinations
destination list: Mac48Address and sequence number
Time m_dot11MeshHWMPpathToRootInterval
bool RemovePacketTag(Tag &tag)
Remove a packet tag.
uint16_t txUnicast
transmit unicast
void DecrementTtl()
Decrement TTL.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
Time Seconds(double value)
Construct a Time in the indicated unit.
Callback< std::vector< Mac48Address >, uint32_t > m_neighboursCallback
neighbors callback
void Cancel(void)
This method is syntactic sugar for the ns3::Simulator::Cancel method.
uint32_t GetLifetime() const
Get lifetime function.
std::map< Mac48Address, uint32_t > m_lastDataSeqno
keeps HWMP seqno (first in pair) and HWMP metric (second in pair) for each address ...
Ptr< T > CreateObject(void)
Create an object by type, with varying number of constructor parameters.
void DeleteReactivePath(Mac48Address destination)
QueuedPacket DequeueFirstPacketByDst(Mac48Address dst)
Time GetPreqMinInterval()
Get PREQ minimum interval function.
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
void AddProactivePath(uint32_t metric, Mac48Address root, Mac48Address retransmitter, uint32_t interface, Time lifetime, uint32_t seqnum)
TracedCallback< struct RouteChange > m_routeChangeTraceSource
Route change trace source.
uint32_t GetMetric() const
Get metric value.
void SetSeqno(uint32_t seqno)
Set sequence number.
uint32_t inInterface
incoming device interface ID. (if packet has come from upper layers, this is Mesh point ID) ...
bool QueuePacket(QueuedPacket packet)
uint32_t GetMetric() const
Get metric function.
bool ShouldSendPreq(Mac48Address dst)
checks when the last path discovery procedure was started for a given destination.
This class can be used to hold variables of floating point type such as 'double' or 'float'...
void SetDestinationSeqNumber(uint32_t dest_seq_number)
Set destination sequence number function.
void SetHopcount(uint8_t hopcount)
Set hop count function.
void PeerLinkStatus(Mac48Address meshPontAddress, Mac48Address peerAddress, uint32_t interface, bool status)
Peer link status function.
void SetAttribute(std::string name, const AttributeValue &value)
Set a single attribute, raising fatal errors if unsuccessful.
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
void ResetStats()
Reset Statistics:
uint32_t interface
interface index
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Basic MAC of mesh point Wi-Fi interface.
void SetHopcount(uint8_t hopcount)
Set number of hops from originator to mesh STA transmitting this element.
std::map< Mac48Address, PreqEvent > m_preqTimeouts
PREQ timeouts.
bool GetDoFlag()
Get do flag function.
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
Time m_dot11MeshHWMPnetDiameterTraversalTime
LookupResult LookupProactive()
Find proactive path to tree root. Note that calling this method has side effect of deleting expired p...
Structure to encapsulate route change information.
void SetNeighboursCallback(Callback< std::vector< Mac48Address >, uint32_t > cb)
This callback is used to obtain active neighbours on a given interface.
virtual void DoInitialize()
Initialize() implementation.