A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lr-wpan-constants.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 The Boeing Company
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Authors:
18
* Gary Pei <guangyu.pei@boeing.com>
19
* kwong yin <kwong-sang.yin@boeing.com>
20
* Tom Henderson <thomas.r.henderson@boeing.com>
21
* Sascha Alexander Jopen <jopen@cs.uni-bonn.de>
22
* Erwan Livolant <erwan.livolant@inria.fr>
23
* Alberto Gallegos Ramonet <ramonet@fc.ritsumei.ac.jp>
24
*/
25
26
#ifndef LR_WPAN_CONSTANTS_H
27
#define LR_WPAN_CONSTANTS_H
28
29
#include <cstdint>
30
31
namespace
ns3
32
{
33
namespace
lrwpan
34
{
35
48
// PHY constants //
50
55
constexpr uint32_t
aMaxPhyPacketSize
{127};
56
62
constexpr uint32_t
aTurnaroundTime
{12};
63
65
// MAC constants //
67
72
constexpr uint32_t
aMinMPDUOverhead
{9};
73
78
constexpr uint32_t
aBaseSlotDuration
{60};
79
84
constexpr uint32_t
aNumSuperframeSlots
{16};
85
91
constexpr uint32_t
aBaseSuperframeDuration
{
aBaseSlotDuration
*
aNumSuperframeSlots
};
92
98
constexpr uint32_t
aMaxLostBeacons
{4};
99
105
constexpr uint32_t
aMaxSIFSFrameSize
{18};
106
110
constexpr uint32_t
aUnitBackoffPeriod
{20};
111
116
constexpr uint32_t
aMaxBeaconOverhead
{75};
117
122
constexpr uint32_t
aMaxBeaconPayloadLength
{
aMaxPhyPacketSize
-
aMaxBeaconOverhead
};
123
126
}
// namespace lrwpan
127
}
// namespace ns3
128
129
#endif
// LR_WPAN_CONSTANTS_H
ns3::lrwpan::aMaxSIFSFrameSize
constexpr uint32_t aMaxSIFSFrameSize
The maximum size of an MPDU, in octets, that can be followed by a Short InterFrame Spacing (SIFS) per...
Definition:
lr-wpan-constants.h:105
ns3::lrwpan::aNumSuperframeSlots
constexpr uint32_t aNumSuperframeSlots
Number of a superframe slots per superframe.
Definition:
lr-wpan-constants.h:84
ns3::lrwpan::aMaxLostBeacons
constexpr uint32_t aMaxLostBeacons
The number of consecutive lost beacons that will cause the MAC sublayer of a receiving device to decl...
Definition:
lr-wpan-constants.h:98
ns3::lrwpan::aMaxBeaconPayloadLength
constexpr uint32_t aMaxBeaconPayloadLength
The maximum size, in octets, of a beacon payload.
Definition:
lr-wpan-constants.h:122
ns3::lrwpan::aMaxPhyPacketSize
constexpr uint32_t aMaxPhyPacketSize
The maximum packet size accepted by the PHY.
Definition:
lr-wpan-constants.h:55
ns3::lrwpan::aUnitBackoffPeriod
constexpr uint32_t aUnitBackoffPeriod
Number of symbols per CSMA/CA time unit, default 20 symbols.
Definition:
lr-wpan-constants.h:110
ns3::lrwpan::aTurnaroundTime
constexpr uint32_t aTurnaroundTime
The turnaround time in symbol periods for switching the transceiver from RX to TX or vice-versa.
Definition:
lr-wpan-constants.h:62
ns3::lrwpan::aBaseSuperframeDuration
constexpr uint32_t aBaseSuperframeDuration
Length of a superframe in symbols.
Definition:
lr-wpan-constants.h:91
ns3::lrwpan::aMinMPDUOverhead
constexpr uint32_t aMinMPDUOverhead
The minimum number of octets added by the MAC sublayer to the PSDU.
Definition:
lr-wpan-constants.h:72
ns3::lrwpan::aBaseSlotDuration
constexpr uint32_t aBaseSlotDuration
Length of a superframe slot in symbols.
Definition:
lr-wpan-constants.h:78
ns3::lrwpan::aMaxBeaconOverhead
constexpr uint32_t aMaxBeaconOverhead
The maximum number of octets added by the MAC sublayer to the MAC payload o a a beacon frame.
Definition:
lr-wpan-constants.h:116
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lr-wpan
model
lr-wpan-constants.h
Generated on Sun Mar 3 2024 17:11:00 for ns-3 by
1.9.1