A Discrete-Event Network Simulator
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 
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 
123 
126 } // namespace lrwpan
127 } // namespace ns3
128 
129 #endif // LR_WPAN_CONSTANTS_H
constexpr uint32_t aMaxSIFSFrameSize
The maximum size of an MPDU, in octets, that can be followed by a Short InterFrame Spacing (SIFS) per...
constexpr uint32_t aNumSuperframeSlots
Number of a superframe slots per superframe.
constexpr uint32_t aMaxLostBeacons
The number of consecutive lost beacons that will cause the MAC sublayer of a receiving device to decl...
constexpr uint32_t aMaxBeaconPayloadLength
The maximum size, in octets, of a beacon payload.
constexpr uint32_t aMaxPhyPacketSize
The maximum packet size accepted by the PHY.
constexpr uint32_t aUnitBackoffPeriod
Number of symbols per CSMA/CA time unit, default 20 symbols.
constexpr uint32_t aTurnaroundTime
The turnaround time in symbol periods for switching the transceiver from RX to TX or vice-versa.
constexpr uint32_t aBaseSuperframeDuration
Length of a superframe in symbols.
constexpr uint32_t aMinMPDUOverhead
The minimum number of octets added by the MAC sublayer to the PSDU.
constexpr uint32_t aBaseSlotDuration
Length of a superframe slot in symbols.
constexpr uint32_t aMaxBeaconOverhead
The maximum number of octets added by the MAC sublayer to the MAC payload o a a beacon frame.
Every class exported by the ns3 library is enclosed in the ns3 namespace.