A Discrete-Event Network Simulator
API
bs-scheduler-rtps.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007,2008 INRIA
3  * 2009 TELEMATICS LAB, Politecnico di Bari
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Giuseppe Piro <g.piro@poliba.it>
19  */
20 
21 /* BS outbound scheduler as per in Section 6.3.5.1 */
22 
23 #ifndef BS_SCHEDULER_RTPS_H
24 #define BS_SCHEDULER_RTPS_H
25 
26 #include "bs-scheduler.h"
27 #include "dl-mac-messages.h"
28 #include "wimax-phy.h"
29 
30 #include "ns3/packet-burst.h"
31 #include "ns3/packet.h"
32 
33 #include <list>
34 
35 namespace ns3
36 {
37 
38 class BaseStationNetDevice;
39 class GenericMacHeader;
40 class WimaxConnection;
41 class Cid;
42 
61 {
62  public:
70  ~BSSchedulerRtps() override;
71 
76  static TypeId GetTypeId();
77 
83  std::list<std::pair<OfdmDlMapIe*, Ptr<PacketBurst>>>* GetDownlinkBursts() const override;
84 
94  uint8_t diuc,
95  WimaxPhy::ModulationType modulationType,
96  Ptr<PacketBurst> burst) override;
100  void Schedule() override;
144 
150  bool SelectConnection(Ptr<WimaxConnection>& connection) override;
151 
156  void BSSchedulerBroadcastConnection(uint32_t& availableSymbols);
157 
162  void BSSchedulerInitialRangingConnection(uint32_t& availableSymbols);
163 
168  void BSSchedulerBasicConnection(uint32_t& availableSymbols);
169 
174  void BSSchedulerPrimaryConnection(uint32_t& availableSymbols);
179  void BSSchedulerUGSConnection(uint32_t& availableSymbols);
195  void BSSchedulerRTPSConnection(uint32_t& availableSymbols);
196 
201  void BSSchedulerNRTPSConnection(uint32_t& availableSymbols);
202 
207  void BSSchedulerBEConnection(uint32_t& availableSymbols);
208 
217  WimaxPhy::ModulationType modulationType,
218  uint32_t availableSymbols) override;
219 
220  private:
221  std::list<std::pair<OfdmDlMapIe*, Ptr<PacketBurst>>>* m_downlinkBursts;
222 };
223 
224 } // namespace ns3
225 
226 #endif /* BS_SCHEDULER_RTPS_H */
BaseStation Scheduler.
Definition: bs-scheduler.h:48
This class implements a simple downlink scheduler for rtPS flows.
static TypeId GetTypeId()
Get the type ID.
void Schedule() override
Schedule function.
void BSSchedulerPrimaryConnection(uint32_t &availableSymbols)
schedules the primary connection
std::list< std::pair< OfdmDlMapIe *, Ptr< PacketBurst > > > * GetDownlinkBursts() const override
This function returns all the downlink bursts scheduled for the next downlink sub-frame.
bool SelectRTPSConnection(Ptr< WimaxConnection > &connection)
Check for rtPS connections that have packets to transmit.
void BSSchedulerUGSConnection(uint32_t &availableSymbols)
schedules the UGS connection
void BSSchedulerBEConnection(uint32_t &availableSymbols)
schedules the BE connection
bool SelectNRTPSConnection(Ptr< WimaxConnection > &connection)
Check for nrtPS connections that have packets to transmit.
void BSSchedulerBasicConnection(uint32_t &availableSymbols)
schedules the basic connections
void AddDownlinkBurst(Ptr< const WimaxConnection > connection, uint8_t diuc, WimaxPhy::ModulationType modulationType, Ptr< PacketBurst > burst) override
This function adds a downlink burst to the list of downlink bursts scheduled for the next downlink su...
bool SelectMenagementConnection(Ptr< WimaxConnection > &connection)
Check for Basic and Primary connections that have packets to transmit.
void BSSchedulerInitialRangingConnection(uint32_t &availableSymbols)
schedules the IR connections
bool SelectUGSConnection(Ptr< WimaxConnection > &connection)
Check for UGS connections that have packets to transmit.
void BSSchedulerRTPSConnection(uint32_t &availableSymbols)
Downlink Scheduler for rtPS connections.
void BSSchedulerBroadcastConnection(uint32_t &availableSymbols)
schedules the broadcast connections
bool SelectBEConnection(Ptr< WimaxConnection > &connection)
Check for BE connections that have packets to transmit.
void BSSchedulerNRTPSConnection(uint32_t &availableSymbols)
schedules the NRTPS connections
Ptr< PacketBurst > CreateUgsBurst(ServiceFlow *serviceFlow, WimaxPhy::ModulationType modulationType, uint32_t availableSymbols) override
Creates a downlink UGS burst.
bool SelectIRandBCConnection(Ptr< WimaxConnection > &connection)
Check for IR and Broadcast connections that have packets to transmit.
bool SelectConnection(Ptr< WimaxConnection > &connection) override
Selects a connection from the list of connections having packets to be sent .
std::list< std::pair< OfdmDlMapIe *, Ptr< PacketBurst > > > * m_downlinkBursts
down link bursts
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
This class implements service flows as described by the IEEE-802.16 standard.
Definition: service-flow.h:43
a unique identifier for an interface.
Definition: type-id.h:59
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:54
Every class exported by the ns3 library is enclosed in the ns3 namespace.