author | Manuel Requena <manuel.requena@cttc.es> |
Tue, 26 Mar 2013 10:41:49 +0100 | |
changeset 10019 | 6efd95740e39 |
parent 9470 | 2f0bc0c5c7fe |
permissions | -rw-r--r-- |
8361 | 1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 |
/* |
|
9406 | 3 |
* Copyright (c) 2011,2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
8361 | 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 |
* |
|
9406 | 18 |
* Author: Manuel Requena <manuel.requena@cttc.es> |
19 |
* Nicola Baldo <nbaldo@cttc.es> |
|
8361 | 20 |
*/ |
21 |
||
9406 | 22 |
#ifndef LTE_RLC_TM_H |
23 |
#define LTE_RLC_TM_H |
|
8361 | 24 |
|
25 |
#include "ns3/lte-rlc.h" |
|
26 |
||
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8745
diff
changeset
|
27 |
#include <ns3/event-id.h> |
8361 | 28 |
#include <map> |
29 |
||
30 |
namespace ns3 { |
|
31 |
||
32 |
/** |
|
9406 | 33 |
* LTE RLC Transparent Mode (TM), see 3GPP TS 36.322 |
8361 | 34 |
*/ |
9406 | 35 |
class LteRlcTm : public LteRlc |
8361 | 36 |
{ |
37 |
public: |
|
9406 | 38 |
LteRlcTm (); |
39 |
virtual ~LteRlcTm (); |
|
8361 | 40 |
static TypeId GetTypeId (void); |
9451
116fd6ad4640
cancel pending events upon RLC disposal
Nicola Baldo <nbaldo@cttc.es>
parents:
9414
diff
changeset
|
41 |
virtual void DoDispose (); |
8361 | 42 |
|
43 |
/** |
|
44 |
* RLC SAP |
|
45 |
*/ |
|
46 |
virtual void DoTransmitPdcpPdu (Ptr<Packet> p); |
|
47 |
||
48 |
/** |
|
49 |
* MAC SAP |
|
50 |
*/ |
|
9351
6e074e67a1ad
HARQ first draft version: RR works, PF todo, LteMiErrorModel on-going
mmiozzo
parents:
9337
diff
changeset
|
51 |
virtual void DoNotifyTxOpportunity (uint32_t bytes, uint8_t layer, uint8_t harqId); |
8361 | 52 |
virtual void DoNotifyHarqDeliveryFailure (); |
53 |
virtual void DoReceivePdu (Ptr<Packet> p); |
|
54 |
||
55 |
private: |
|
8499
c2658133775b
Add timer to send RBS to MAC
Manuel Requena <manuel.requena@cttc.es>
parents:
8375
diff
changeset
|
56 |
void ExpireRbsTimer (void); |
c2658133775b
Add timer to send RBS to MAC
Manuel Requena <manuel.requena@cttc.es>
parents:
8375
diff
changeset
|
57 |
void DoReportBufferStatus (); |
c2658133775b
Add timer to send RBS to MAC
Manuel Requena <manuel.requena@cttc.es>
parents:
8375
diff
changeset
|
58 |
|
8361 | 59 |
private: |
8745
b94de33b24d3
Add maximum size to the RLC Transmission Buffer
Manuel Requena <manuel.requena@cttc.es>
parents:
8726
diff
changeset
|
60 |
uint32_t m_maxTxBufferSize; |
8375
201d78643209
Add support for ReportBufferStatus parameters: txQueueSize and txQueueHolDelay
Manuel Requena <manuel.requena@cttc.es>
parents:
8361
diff
changeset
|
61 |
uint32_t m_txBufferSize; |
8361 | 62 |
std::vector < Ptr<Packet> > m_txBuffer; // Transmission buffer |
63 |
||
8499
c2658133775b
Add timer to send RBS to MAC
Manuel Requena <manuel.requena@cttc.es>
parents:
8375
diff
changeset
|
64 |
EventId m_rbsTimer; |
8361 | 65 |
|
66 |
}; |
|
67 |
||
68 |
||
69 |
} // namespace ns3 |
|
70 |
||
9406 | 71 |
#endif // LTE_RLC_TM_H |