LEFT | RIGHT |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 void | 213 void |
214 LteRlcSm::DoTransmitPdcpPdu (Ptr<Packet> p) | 214 LteRlcSm::DoTransmitPdcpPdu (Ptr<Packet> p) |
215 { | 215 { |
216 NS_LOG_FUNCTION (this << p); | 216 NS_LOG_FUNCTION (this << p); |
217 } | 217 } |
218 | 218 |
219 void | 219 void |
220 LteRlcSm::DoReceivePdu (Ptr<Packet> p, uint16_t rnti, uint8_t lcid) | 220 LteRlcSm::DoReceivePdu (Ptr<Packet> p, uint16_t rnti, uint8_t lcid) |
221 { | 221 { |
222 NS_LOG_FUNCTION (this << p); | 222 NS_LOG_FUNCTION (this << p); |
223 NS_UNUSED(rnti); | 223 NS_UNUSED (rnti); |
224 NS_UNUSED(lcid); | 224 NS_UNUSED (lcid); |
225 // RLC Performance evaluation | 225 // RLC Performance evaluation |
226 RlcTag rlcTag; | 226 RlcTag rlcTag; |
227 Time delay; | 227 Time delay; |
228 NS_ASSERT_MSG (p->PeekPacketTag (rlcTag), "RlcTag is missing"); | 228 NS_ASSERT_MSG (p->PeekPacketTag (rlcTag), "RlcTag is missing"); |
229 p->RemovePacketTag (rlcTag); | 229 p->RemovePacketTag (rlcTag); |
230 delay = Simulator::Now() - rlcTag.GetSenderTimestamp (); | 230 delay = Simulator::Now() - rlcTag.GetSenderTimestamp (); |
231 NS_LOG_LOGIC (" RNTI=" << m_rnti· | 231 NS_LOG_LOGIC (" RNTI=" << m_rnti· |
232 << " LCID=" << (uint32_t) m_lcid· | 232 << " LCID=" << (uint32_t) m_lcid· |
233 << " size=" << p->GetSize ()· | 233 << " size=" << p->GetSize ()· |
234 << " delay=" << delay.GetNanoSeconds ()); | 234 << " delay=" << delay.GetNanoSeconds ()); |
235 m_rxPdu(m_rnti, m_lcid, p->GetSize (), delay.GetNanoSeconds () ); | 235 m_rxPdu(m_rnti, m_lcid, p->GetSize (), delay.GetNanoSeconds () ); |
236 } | 236 } |
237 | 237 |
238 void | 238 void |
239 LteRlcSm::DoNotifyTxOpportunity (uint32_t bytes, uint8_t layer, uint8_t harqId,
uint8_t componentCarrierId, uint16_t rnti, uint8_t lcid) | 239 LteRlcSm::DoNotifyTxOpportunity (uint32_t bytes, uint8_t layer, uint8_t harqId,
uint8_t componentCarrierId, uint16_t rnti, uint8_t lcid) |
240 { | 240 { |
241 NS_LOG_FUNCTION (this << bytes); | 241 NS_LOG_FUNCTION (this << bytes); |
242 NS_UNUSED(rnti); | 242 NS_UNUSED (rnti); |
243 NS_UNUSED(lcid); | 243 NS_UNUSED (lcid); |
244 LteMacSapProvider::TransmitPduParameters params; | 244 LteMacSapProvider::TransmitPduParameters params; |
245 params.pdu = Create<Packet> (bytes); | 245 params.pdu = Create<Packet> (bytes); |
246 params.rnti = m_rnti; | 246 params.rnti = m_rnti; |
247 params.lcid = m_lcid; | 247 params.lcid = m_lcid; |
248 params.layer = layer; | 248 params.layer = layer; |
249 params.harqProcessId = harqId; | 249 params.harqProcessId = harqId; |
250 params.componentCarrierId = componentCarrierId; | 250 params.componentCarrierId = componentCarrierId; |
251 | 251 |
252 // RLC Performance evaluation | 252 // RLC Performance evaluation |
253 RlcTag tag (Simulator::Now()); | 253 RlcTag tag (Simulator::Now()); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 // } | 298 // } |
299 | 299 |
300 ////////////////////////////////////////// | 300 ////////////////////////////////////////// |
301 | 301 |
302 // LteRlcAm::~LteRlcAm () | 302 // LteRlcAm::~LteRlcAm () |
303 // { | 303 // { |
304 // } | 304 // } |
305 | 305 |
306 | 306 |
307 } // namespace ns3 | 307 } // namespace ns3 |
LEFT | RIGHT |