A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lr-wpan-cca-test.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2014 Fraunhofer FKIE
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author:
7 * Sascha Alexander Jopen <jopen@cs.uni-bonn.de>
8 * Alberto Gallegos Ramonet <alramonet@is.tokushima-u.ac.jp>
9 */
10
11#include "ns3/rng-seed-manager.h"
12#include <ns3/constant-position-mobility-model.h>
13#include <ns3/core-module.h>
14#include <ns3/log.h>
15#include <ns3/lr-wpan-module.h>
16#include <ns3/packet.h>
17#include <ns3/propagation-delay-model.h>
18#include <ns3/propagation-loss-model.h>
19#include <ns3/simulator.h>
20#include <ns3/single-model-spectrum-channel.h>
21
22#include <iomanip>
23#include <iostream>
24
25using namespace ns3;
26using namespace ns3::lrwpan;
27
28NS_LOG_COMPONENT_DEFINE("lr-wpan-cca-test");
29
30/**
31 * \ingroup lr-wpan-test
32 * \ingroup tests
33 *
34 * LrWpan CCA Test
35 */
37{
38 public:
40
41 private:
42 /**
43 * Function called when PlmeCcaConfirm is hit.
44 *
45 * @param testcase The TestCase.
46 * @param device The LrWpanNetDevice.
47 * @param status The device status.
48 */
49 static void PlmeCcaConfirm(LrWpanCcaTestCase* testcase,
51 PhyEnumeration status);
52 /**
53 * Function called when PhyTxBegin is hit.
54 *
55 * @param testcase The TestCase.
56 * @param device The LrWpanNetDevice.
57 * @param packet The packet.
58 */
59 static void PhyTxBegin(LrWpanCcaTestCase* testcase,
61 Ptr<const Packet> packet);
62 /**
63 * Function called when PhyTxEnd is hit.
64 *
65 * @param testcase The TestCase.
66 * @param device The LrWpanNetDevice.
67 * @param packet The packet.
68 */
69 static void PhyTxEnd(LrWpanCcaTestCase* testcase,
71 Ptr<const Packet> packet);
72 /**
73 * Function called when PhyRxBegin is hit.
74 *
75 * @param testcase The TestCase.
76 * @param device The LrWpanNetDevice.
77 * @param packet The packet.
78 */
79 static void PhyRxBegin(LrWpanCcaTestCase* testcase,
81 Ptr<const Packet> packet);
82 /**
83 * Function called when PhyRxEnd is hit.
84 *
85 * @param testcase The TestCase.
86 * @param device The LrWpanNetDevice.
87 * @param packet The packet.
88 * @param sinr The received SINR.
89 */
90 static void PhyRxEnd(LrWpanCcaTestCase* testcase,
92 Ptr<const Packet> packet,
93 double sinr);
94 /**
95 * Function called when PhyRxDrop is hit.
96 *
97 * @param testcase The TestCase.
98 * @param device The LrWpanNetDevice.
99 * @param packet The packet.
100 */
101 static void PhyRxDrop(LrWpanCcaTestCase* testcase,
103 Ptr<const Packet> packet);
104
105 void DoRun() override;
106
107 PhyEnumeration m_status; //!< PHY status.
108};
109
111 : TestCase("Test the 802.15.4 clear channel assessment")
112{
114}
115
116void
119 PhyEnumeration status)
120{
121 std::cout << std::setiosflags(std::ios::fixed) << std::setprecision(9) << "["
122 << Simulator::Now().As(Time::S) << "] " << device->GetMac()->GetShortAddress()
123 << " PlmeCcaConfirm: " << LrWpanHelper::LrWpanPhyEnumerationPrinter(status)
124 << std::endl;
125
126 testcase->m_status = status;
127}
128
129void
132 Ptr<const Packet> packet)
133{
134 std::ostringstream os;
135 packet->Print(os);
136 std::cout << std::setiosflags(std::ios::fixed) << std::setprecision(9) << "["
137 << Simulator::Now().As(Time::S) << "] " << device->GetMac()->GetShortAddress()
138 << " PhyTxBegin: " << os.str() << std::endl;
139}
140
141void
144 Ptr<const Packet> packet)
145{
146 std::ostringstream os;
147 packet->Print(os);
148 std::cout << std::setiosflags(std::ios::fixed) << std::setprecision(9) << "["
149 << Simulator::Now().As(Time::S) << "] " << device->GetMac()->GetShortAddress()
150 << " PhyTxEnd: " << os.str() << std::endl;
151}
152
153void
156 Ptr<const Packet> packet)
157{
158 std::ostringstream os;
159 packet->Print(os);
160 std::cout << std::setiosflags(std::ios::fixed) << std::setprecision(9) << "["
161 << Simulator::Now().As(Time::S) << "] " << device->GetMac()->GetShortAddress()
162 << " PhyRxBegin: " << os.str() << std::endl;
163}
164
165void
168 Ptr<const Packet> packet,
169 double sinr)
170{
171 std::ostringstream os;
172 packet->Print(os);
173 std::cout << std::setiosflags(std::ios::fixed) << std::setprecision(9) << "["
174 << Simulator::Now().As(Time::S) << "] " << device->GetMac()->GetShortAddress()
175 << " PhyRxEnd (" << sinr << "): " << os.str() << std::endl;
176
177 // The first packet was received. Now start a CCA, to try to detect the second packet which is
178 // still being transmitted.
179 device->GetPhy()->PlmeCcaRequest();
180}
181
182void
185 Ptr<const Packet> packet)
186{
187 std::ostringstream os;
188 packet->Print(os);
189 std::cout << std::setiosflags(std::ios::fixed) << std::setprecision(9) << "["
190 << Simulator::Now().As(Time::S) << "] " << device->GetMac()->GetShortAddress()
191 << " PhyRxDrop: " << os.str() << std::endl;
192}
193
194void
196{
197 // Tx Power: 0 dBm
198 // Receiver Sensitivity: -106.58 dBm
199 // CCA channel busy condition: Rx power > -96.58 dBm
200 // Log distance reference loss at 1 m distance for channel 11 (2405 MHz): 40.0641 dB
201 // Log distance free space path loss exponent: 2
202
203 // Test setup:
204 // Start transmission of a short packet from node 0 to node 1 and at the same
205 // time a transmission of a large packet from node 2 to node 1.
206 // Both transmissions should start without backoff (per configuration) because
207 // the CCA on both nodes should detect a free medium.
208 // The shorter packet will be received first. After reception of the short
209 // packet, which might be destroyed due to interference of the large
210 // packet, node 1 will start a CCA. Depending on the distance between node 1
211 // and node 2, node 1 should detect a busy medium, because the transmission of
212 // the large packet is still in progress. For the above mentioned scenario
213 // parameters, the distance for the CCA detecting a busy medium is about
214 // 669.5685 m.
215
216 // Enable calculation of FCS in the trailers. Only necessary when interacting with real devices
217 // or wireshark. GlobalValue::Bind ("ChecksumEnabled", BooleanValue (true));
218
219 // Set the random seed and run number for this test
222
223 // Create 3 nodes, and a NetDevice for each one
227
231
232 // Make random variable stream assignment deterministic
233 dev0->AssignStreams(0);
234 dev1->AssignStreams(10);
235 dev2->AssignStreams(20);
236
237 dev0->SetAddress(Mac16Address("00:01"));
238 dev1->SetAddress(Mac16Address("00:02"));
239 dev2->SetAddress(Mac16Address("00:03"));
240
241 // Each device must be attached to the same channel
245 propModel->SetReference(1.0,
246 40.0641); // Reference loss at 1m distance for 2405 MHz (channel 11)
247 propModel->SetPathLossExponent(2); // Free space path loss exponent
250 channel->AddPropagationLossModel(propModel);
251 channel->SetPropagationDelayModel(delayModel);
252
253 dev0->SetChannel(channel);
254 dev1->SetChannel(channel);
255 dev2->SetChannel(channel);
256
257 // To complete configuration, a LrWpanNetDevice must be added to a node
258 n0->AddDevice(dev0);
259 n1->AddDevice(dev1);
260 n2->AddDevice(dev2);
261
262 Ptr<ConstantPositionMobilityModel> sender0Mobility =
264 sender0Mobility->SetPosition(Vector(0, 0, 0));
265 dev0->GetPhy()->SetMobility(sender0Mobility);
266 Ptr<ConstantPositionMobilityModel> sender1Mobility =
268 sender1Mobility->SetPosition(Vector(0, 669, 0));
269 dev1->GetPhy()->SetMobility(sender1Mobility);
270 Ptr<ConstantPositionMobilityModel> sender2Mobility =
272 sender2Mobility->SetPosition(Vector(0, 1338, 0));
273 dev2->GetPhy()->SetMobility(sender2Mobility);
274
275 // Disable the NetDevices queue management.
276 dev0->GetMac()->SetMcpsDataConfirmCallback(MakeNullCallback<void, McpsDataConfirmParams>());
277 dev1->GetMac()->SetMcpsDataConfirmCallback(MakeNullCallback<void, McpsDataConfirmParams>());
278 dev2->GetMac()->SetMcpsDataConfirmCallback(MakeNullCallback<void, McpsDataConfirmParams>());
279
280 // Set the CCA confirm callback.
281 dev1->GetPhy()->SetPlmeCcaConfirmCallback(
283
284 // Start sending without backoff, if the channel is free.
285 dev0->GetCsmaCa()->SetMacMinBE(0);
286 dev2->GetCsmaCa()->SetMacMinBE(0);
287
288 // Connect trace sources.
289 dev0->GetPhy()->TraceConnectWithoutContext(
290 "PhyTxBegin",
292 dev0->GetPhy()->TraceConnectWithoutContext(
293 "PhyTxEnd",
295 dev2->GetPhy()->TraceConnectWithoutContext(
296 "PhyTxBegin",
298 dev2->GetPhy()->TraceConnectWithoutContext(
299 "PhyTxEnd",
301 dev1->GetPhy()->TraceConnectWithoutContext(
302 "PhyRxBegin",
304 dev1->GetPhy()->TraceConnectWithoutContext(
305 "PhyRxEnd",
307 dev1->GetPhy()->TraceConnectWithoutContext(
308 "PhyRxDrop",
310
312
313 Ptr<Packet> p0 = Create<Packet>(1); // 1 byte of dummy data
314 McpsDataRequestParams params0;
315 params0.m_srcAddrMode = SHORT_ADDR;
316 params0.m_dstAddrMode = SHORT_ADDR;
317 params0.m_dstPanId = 0;
318 params0.m_dstAddr = Mac16Address("00:02");
319 params0.m_msduHandle = 0;
320 params0.m_txOptions = TX_OPTION_NONE;
321 Simulator::ScheduleNow(&LrWpanMac::McpsDataRequest, dev0->GetMac(), params0, p0);
322
323 Ptr<Packet> p1 = Create<Packet>(100); // 100 bytes of dummy data
324 McpsDataRequestParams params1;
325 params1.m_srcAddrMode = SHORT_ADDR;
326 params1.m_dstAddrMode = SHORT_ADDR;
327 params1.m_dstPanId = 0;
328 params1.m_dstAddr = Mac16Address("00:02");
329 params1.m_msduHandle = 0;
330 params1.m_txOptions = TX_OPTION_NONE;
331 Simulator::ScheduleNow(&LrWpanMac::McpsDataRequest, dev2->GetMac(), params1, p1);
332
334
335 NS_TEST_EXPECT_MSG_EQ(m_status, IEEE_802_15_4_PHY_BUSY, "CCA status BUSY (as expected)");
336
338
339 sender2Mobility->SetPosition(Vector(0, 1340, 0));
340
341 Simulator::ScheduleNow(&LrWpanMac::McpsDataRequest, dev0->GetMac(), params0, p0);
342 Simulator::ScheduleNow(&LrWpanMac::McpsDataRequest, dev2->GetMac(), params1, p1);
343
345
346 NS_TEST_EXPECT_MSG_EQ(m_status, IEEE_802_15_4_PHY_IDLE, "CCA status IDLE (as expected)");
347
349}
350
351/**
352 * \ingroup lr-wpan-test
353 * \ingroup tests
354 *
355 * \brief Test the sensitivity of the CSMA/CA clear channel assestment (CCA)
356 */
358{
359 public:
361 ~CCAVulnerableWindowTest() override;
362
363 private:
364 /**
365 * Function called when a Data indication is invoked
366 *
367 * @param params MCPS data indication parameters
368 * @param p packet
369 */
371
372 void DoRun() override;
373
374 uint8_t countPackets; //!< Count the number of packets received in the test
375};
376
378 : TestCase("Test CCA false positives vulnerable window caused by turnAround")
379{
380}
381
385
386void
391
392void
394{
395 /*
396 * CCA Vulnerable Window:
397 *
398 * Topology
399 * Node 0 Node 1
400 * (dev 0) <-------- (dev1)
401 * ^
402 * |
403 * |------Node2
404 * (dev2)
405 *
406 * Transmission of packets over time:
407 *
408 * Node1 CCA | Node 1 TurnAround Rx->Tx | Node1 Packet Tx
409 * 128us | 192us |
410 * = Collision
411 * Node2 CCA | Node 2 TurnAround Rx->Tx | Node2 Packet Tx
412 * 128us | 192us |
413 * Time ---------------------------------------------------------------->
414 *
415 *
416 * If 2 packets are transmitted within 192 us from each other, CSMA/CA will give a false
417 * positive and cause a collision even with CCA active. This is because there is a vulnerable
418 * window due to the turn around (RX_ON->TX_ON) between the CCA and the actual transmission of
419 * the packet. During this time, the 2nd node's CCA will assume the channel IDLE because there
420 * is no transmission (the first node is in its turnaround before transmission).
421 *
422 * To demonstrate this, In this test, Node 1 transmits a packet to Node 0 at second 1.
423 * Node 0 Attempts transmitting a packet to Node 2 at second and 1.000128 which falls under the
424 * vulnerable window (1 and 1.000192 seconds). A collision occurs and both packets failed to be
425 * received. All 3 nodes are within each other communication range and csma/ca backoff periods
426 * are turn off to make this test reprodusable.
427 *
428 * The test is repeated but outside the vulnerable window, in this case CSMA/CA works as
429 * intended: The CCA of node 2 detects the first packet in the medium and defers the
430 * transmission. Avoiding effectively the collision.
431 */
432
435
436 // Create 3 nodes, and a NetDevice for each one
440
444
445 // Make random variable stream assignment deterministic
446 dev0->AssignStreams(0);
447 dev1->AssignStreams(10);
448 dev2->AssignStreams(20);
449
450 dev0->GetMac()->SetExtendedAddress("00:00:00:00:00:00:CA:FE");
451 dev1->GetMac()->SetExtendedAddress("00:00:00:00:00:00:00:01");
452 dev2->GetMac()->SetExtendedAddress("00:00:00:00:00:00:00:02");
453
454 dev0->SetAddress(Mac16Address("00:00"));
455 dev1->SetAddress(Mac16Address("00:01"));
456 dev2->SetAddress(Mac16Address("00:02"));
457
458 // Note: By default all devices are in the PANID: 0
459
460 // Each device must be attached to the same channel
466 channel->AddPropagationLossModel(propModel);
467 channel->SetPropagationDelayModel(delayModel);
468
469 dev0->SetChannel(channel);
470 dev1->SetChannel(channel);
471 dev2->SetChannel(channel);
472
473 // To complete configuration, a LrWpanNetDevice must be added to a node
474 n0->AddDevice(dev0);
475 n1->AddDevice(dev1);
476 n2->AddDevice(dev2);
477
478 // Set mobility
480 dev0Mobility->SetPosition(Vector(0, 0, 0));
481 dev0->GetPhy()->SetMobility(dev0Mobility);
482
484 dev1Mobility->SetPosition(Vector(10, 0, 0));
485 dev1->GetPhy()->SetMobility(dev1Mobility);
486
488 dev2Mobility->SetPosition(Vector(5, 5, 0));
489 dev2->GetPhy()->SetMobility(dev2Mobility);
490
491 // Do a CCA without a previous RandomBackoffDelay
492 // This is set to make the test reprodusable.
493 dev0->GetCsmaCa()->SetMacMinBE(0);
494 dev1->GetCsmaCa()->SetMacMinBE(0);
495 dev2->GetCsmaCa()->SetMacMinBE(0);
496
497 // Callback hooks to MAC layer
498 dev0->GetMac()->SetMcpsDataIndicationCallback(
500
501 dev1->GetMac()->SetMcpsDataIndicationCallback(
503
504 dev2->GetMac()->SetMcpsDataIndicationCallback(
506
507 // --------------------------------------------------------------------------
508 /// Outside the vulnerable window, 2 packets are meant to be received
509 countPackets = 0;
510
511 // Device 1 send data to Device 0
514 params.m_dstPanId = 0;
515 params.m_srcAddrMode = SHORT_ADDR;
516 params.m_dstAddrMode = SHORT_ADDR;
517 params.m_dstAddr = Mac16Address("00:00");
518 params.m_msduHandle = 0;
520 Seconds(1),
522 dev1->GetMac(),
523 params,
524 p0);
525
526 // Device 0 send data to Device 2
528 McpsDataRequestParams params1;
529 params1.m_dstPanId = 0;
530 params1.m_srcAddrMode = SHORT_ADDR;
531 params1.m_dstAddrMode = SHORT_ADDR;
532 params1.m_dstAddr = Mac16Address("00:02");
533 params1.m_msduHandle = 1;
535 Seconds(1.000193),
537 dev0->GetMac(),
538 params1,
539 p1);
540
542
543 NS_TEST_EXPECT_MSG_EQ(countPackets, 2, "2 Packets are meant to be received");
544 // --------------------------------------------------------------------------
545 // Within the vulnerable window, a collion occurs and no
546 // packets are meant to be received
547 countPackets = 0;
548
549 // Device 1 send data to Device 0
551 McpsDataRequestParams params3;
552 params3.m_dstPanId = 0;
553 params3.m_srcAddrMode = SHORT_ADDR;
554 params3.m_dstAddrMode = SHORT_ADDR;
555 params3.m_dstAddr = Mac16Address("00:00");
556 params3.m_msduHandle = 0;
558 Seconds(1),
560 dev1->GetMac(),
561 params3,
562 p3);
563
564 // Device 0 send data to Device 2
565 // This devices sends a second packet in less that 192us (turnaround time)
566 // apart from the first packet transmission sent by Device 1
568 McpsDataRequestParams params4;
569 params4.m_dstPanId = 0;
570 params4.m_srcAddrMode = SHORT_ADDR;
571 params4.m_dstAddrMode = SHORT_ADDR;
572 params4.m_dstAddr = Mac16Address("00:02");
573 params4.m_msduHandle = 1;
575 Seconds(1.000121),
577 dev0->GetMac(),
578 params4,
579 p4);
581
583 0,
584 "Collision is meant to happen and no packets should be received");
585
587}
588
589/**
590 * \ingroup lr-wpan-test
591 * \ingroup tests
592 *
593 * LrWpan ACK TestSuite
594 */
596{
597 public:
599};
600
602 : TestSuite("lr-wpan-cca-test", Type::UNIT)
603{
604 AddTestCase(new LrWpanCcaTestCase, TestCase::Duration::QUICK);
605 AddTestCase(new CCAVulnerableWindowTest, TestCase::Duration::QUICK);
606}
607
608static LrWpanCcaTestSuite g_lrWpanCcaTestSuite; //!< Static variable for test initialization
Test the sensitivity of the CSMA/CA clear channel assestment (CCA)
void DoRun() override
Implementation to actually run this TestCase.
uint8_t countPackets
Count the number of packets received in the test.
void DataIndication(McpsDataIndicationParams params, Ptr< Packet > p)
Function called when a Data indication is invoked.
LrWpan CCA Test.
static void PhyTxEnd(LrWpanCcaTestCase *testcase, Ptr< LrWpanNetDevice > device, Ptr< const Packet > packet)
Function called when PhyTxEnd is hit.
static void PhyTxBegin(LrWpanCcaTestCase *testcase, Ptr< LrWpanNetDevice > device, Ptr< const Packet > packet)
Function called when PhyTxBegin is hit.
static void PhyRxDrop(LrWpanCcaTestCase *testcase, Ptr< LrWpanNetDevice > device, Ptr< const Packet > packet)
Function called when PhyRxDrop is hit.
PhyEnumeration m_status
PHY status.
static void PlmeCcaConfirm(LrWpanCcaTestCase *testcase, Ptr< LrWpanNetDevice > device, PhyEnumeration status)
Function called when PlmeCcaConfirm is hit.
static void PhyRxBegin(LrWpanCcaTestCase *testcase, Ptr< LrWpanNetDevice > device, Ptr< const Packet > packet)
Function called when PhyRxBegin is hit.
void DoRun() override
Implementation to actually run this TestCase.
static void PhyRxEnd(LrWpanCcaTestCase *testcase, Ptr< LrWpanNetDevice > device, Ptr< const Packet > packet, double sinr)
Function called when PhyRxEnd is hit.
LrWpan ACK TestSuite.
static std::string LrWpanPhyEnumerationPrinter(lrwpan::PhyEnumeration e)
Transform the LrWpanPhyEnumeration enumeration into a printable string.
This class can contain 16 bit addresses.
Smart pointer class similar to boost::intrusive_ptr.
static void SetRun(uint64_t run)
Set the run number of simulation.
static void SetSeed(uint32_t seed)
Set the seed.
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
Definition simulator.cc:131
static void ScheduleWithContext(uint32_t context, const Time &delay, FUNC f, Ts &&... args)
Schedule an event with the given context.
Definition simulator.h:577
static Time Now()
Return the current simulation virtual time.
Definition simulator.cc:197
static void Run()
Run the simulation.
Definition simulator.cc:167
static EventId ScheduleNow(FUNC f, Ts &&... args)
Schedule an event to expire Now.
Definition simulator.h:594
encapsulates test code
Definition test.h:1050
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
Definition test.cc:292
A suite of tests to run.
Definition test.h:1267
Type
Type of test.
Definition test.h:1274
TimeWithUnit As(const Unit unit=Time::AUTO) const
Attach a unit to a Time, to facilitate output in a specific unit.
Definition time.cc:404
@ S
second
Definition nstime.h:105
void McpsDataRequest(McpsDataRequestParams params, Ptr< Packet > p) override
IEEE 802.15.4-2006, section 7.1.1.1 MCPS-DATA.request Request to transfer a MSDU.
Callback< R, Args... > MakeNullCallback()
Definition callback.h:727
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
PhyEnumeration
IEEE802.15.4-2006 PHY Emumerations Table 18 in section 6.2.3.
@ IEEE_802_15_4_PHY_BUSY
@ IEEE_802_15_4_PHY_IDLE
@ IEEE_802_15_4_PHY_UNSPECIFIED
@ TX_OPTION_NONE
TX_OPTION_NONE.
Definition lr-wpan-mac.h:52
auto MakeBoundCallback(R(*fnPtr)(Args...), BArgs &&... bargs)
Make Callbacks with varying number of bound arguments.
Definition callback.h:745
Ptr< T > CreateObject(Args &&... args)
Create an object by type, with varying number of constructor parameters.
Definition object.h:619
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Definition ptr.h:436
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not.
Definition test.h:241
Time Seconds(double value)
Construct a Time in the indicated unit.
Definition nstime.h:1308
static LrWpanCcaTestSuite g_lrWpanCcaTestSuite
Static variable for test initialization.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void LogComponentEnable(const std::string &name, LogLevel level)
Enable the logging output associated with that log component.
Definition log.cc:291
Callback< R, Args... > MakeCallback(R(T::*memPtr)(Args...), OBJ objPtr)
Build Callbacks for class method members which take varying numbers of arguments and potentially retu...
Definition callback.h:684
LogLevel
Logging severity classes and levels.
Definition log.h:83
@ LOG_PREFIX_FUNC
Prefix all trace prints with function.
Definition log.h:107
@ LOG_PREFIX_TIME
Prefix all trace prints with simulation time.
Definition log.h:108
@ LOG_LEVEL_DEBUG
LOG_DEBUG and above.
Definition log.h:102
@ LOG_PREFIX_NODE
Prefix all trace prints with simulation node.
Definition log.h:109
void LogComponentEnableAll(LogLevel level)
Enable the logging output for all registered log components.
Definition log.cc:309
AddressMode m_dstAddrMode
Destination address mode.
Mac16Address m_dstAddr
Destination address.
uint16_t m_dstPanId
Destination PAN identifier.
AddressMode m_srcAddrMode
Source address mode.
uint8_t m_txOptions
Tx Options (bitfield)