A Discrete-Event Network Simulator
API
lte-rrc-protocol-real.cc
Go to the documentation of this file.
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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  * Authors: Nicola Baldo <nbaldo@cttc.es>
19  * Lluis Parcerisa <lparcerisa@cttc.cat>
20  */
21 
22 #include <ns3/fatal-error.h>
23 #include <ns3/log.h>
24 #include <ns3/nstime.h>
25 #include <ns3/node-list.h>
26 #include <ns3/node.h>
27 #include <ns3/simulator.h>
28 
29 #include "lte-rrc-protocol-real.h"
30 #include "lte-ue-rrc.h"
31 #include "lte-enb-rrc.h"
32 #include "lte-enb-net-device.h"
33 #include "lte-ue-net-device.h"
34 
35 namespace ns3 {
36 
37 NS_LOG_COMPONENT_DEFINE ("LteRrcProtocolReal");
38 
41 
43 
45  : m_ueRrcSapProvider (0),
46  m_enbRrcSapProvider (0)
47 {
51 }
52 
54 {
55 }
56 
57 void
59 {
60  NS_LOG_FUNCTION (this);
61  delete m_ueRrcSapUser;
64  m_rrc = 0;
65 }
66 
67 TypeId
69 {
70  static TypeId tid = TypeId ("ns3::LteUeRrcProtocolReal")
71  .SetParent<Object> ()
72  .SetGroupName("Lte")
73  .AddConstructor<LteUeRrcProtocolReal> ()
74  ;
75  return tid;
76 }
77 
78 void
80 {
82 }
83 
86 {
87  return m_ueRrcSapUser;
88 }
89 
90 void
92 {
93  m_rrc = rrc;
94 }
95 
96 void
98 {
99  NS_LOG_FUNCTION (this);
100 
104 }
105 
106 void
108 {
109  // initialize the RNTI and get the EnbLteRrcSapProvider for the
110  // eNB we are currently attached to
111  m_rnti = m_rrc->GetRnti ();
113 
114  Ptr<Packet> packet = Create<Packet> ();
115 
116  RrcConnectionRequestHeader rrcConnectionRequestHeader;
117  rrcConnectionRequestHeader.SetMessage (msg);
118 
119  packet->AddHeader (rrcConnectionRequestHeader);
120 
121  LteRlcSapProvider::TransmitPdcpPduParameters transmitPdcpPduParameters;
122  transmitPdcpPduParameters.pdcpPdu = packet;
123  transmitPdcpPduParameters.rnti = m_rnti;
124  transmitPdcpPduParameters.lcid = 0;
125 
126  m_setupParameters.srb0SapProvider->TransmitPdcpPdu (transmitPdcpPduParameters);
127 }
128 
129 void
131 {
132  Ptr<Packet> packet = Create<Packet> ();
133 
134  RrcConnectionSetupCompleteHeader rrcConnectionSetupCompleteHeader;
135  rrcConnectionSetupCompleteHeader.SetMessage (msg);
136 
137  packet->AddHeader (rrcConnectionSetupCompleteHeader);
138 
139  LtePdcpSapProvider::TransmitPdcpSduParameters transmitPdcpSduParameters;
140  transmitPdcpSduParameters.pdcpSdu = packet;
141  transmitPdcpSduParameters.rnti = m_rnti;
142  transmitPdcpSduParameters.lcid = 1;
143 
145  {
146  m_setupParameters.srb1SapProvider->TransmitPdcpSdu (transmitPdcpSduParameters);
147  }
148 }
149 
150 void
152 {
153  // re-initialize the RNTI and get the EnbLteRrcSapProvider for the
154  // eNB we are currently attached to
155  m_rnti = m_rrc->GetRnti ();
157 
158  Ptr<Packet> packet = Create<Packet> ();
159 
160  RrcConnectionReconfigurationCompleteHeader rrcConnectionReconfigurationCompleteHeader;
161  rrcConnectionReconfigurationCompleteHeader.SetMessage (msg);
162 
163  packet->AddHeader (rrcConnectionReconfigurationCompleteHeader);
164 
165  LtePdcpSapProvider::TransmitPdcpSduParameters transmitPdcpSduParameters;
166  transmitPdcpSduParameters.pdcpSdu = packet;
167  transmitPdcpSduParameters.rnti = m_rnti;
168  transmitPdcpSduParameters.lcid = 1;
169 
170  m_setupParameters.srb1SapProvider->TransmitPdcpSdu (transmitPdcpSduParameters);
171 }
172 
173 void
175 {
176  // re-initialize the RNTI and get the EnbLteRrcSapProvider for the
177  // eNB we are currently attached to
178  m_rnti = m_rrc->GetRnti ();
180 
181  Ptr<Packet> packet = Create<Packet> ();
182 
183  MeasurementReportHeader measurementReportHeader;
184  measurementReportHeader.SetMessage (msg);
185 
186  packet->AddHeader (measurementReportHeader);
187 
188  LtePdcpSapProvider::TransmitPdcpSduParameters transmitPdcpSduParameters;
189  transmitPdcpSduParameters.pdcpSdu = packet;
190  transmitPdcpSduParameters.rnti = m_rnti;
191  transmitPdcpSduParameters.lcid = 1;
192 
193  m_setupParameters.srb1SapProvider->TransmitPdcpSdu (transmitPdcpSduParameters);
194 }
195 
196 void
198 {
199  NS_LOG_FUNCTION(this<<rnti);
200  uint16_t cellId = m_rrc->GetCellId ();
201  // re-initialize the RNTI and get the EnbLteRrcSapProvider for the
202  // eNB we are currently attached to or attempting random access to
203  // a target eNB
204  m_rnti = m_rrc->GetRnti ();
205 
206  NS_LOG_DEBUG ("RNTI " << rnti
207  << " sending UE context remove request to cell id " << cellId);
208  NS_ABORT_MSG_IF (m_rnti != rnti, "RNTI mismatch");
209 
210  SetEnbRrcSapProvider (); //the provider has to be reset since the cell might
211  // have changed due to handover
212  //ideally informing eNB
214  m_enbRrcSapProvider, rnti);
215 }
216 
217 void
219 {
220  Ptr<Packet> packet = Create<Packet> ();
221 
222  RrcConnectionReestablishmentRequestHeader rrcConnectionReestablishmentRequestHeader;
223  rrcConnectionReestablishmentRequestHeader.SetMessage (msg);
224 
225  packet->AddHeader (rrcConnectionReestablishmentRequestHeader);
226 
227  LteRlcSapProvider::TransmitPdcpPduParameters transmitPdcpPduParameters;
228  transmitPdcpPduParameters.pdcpPdu = packet;
229  transmitPdcpPduParameters.rnti = m_rnti;
230  transmitPdcpPduParameters.lcid = 0;
231 
232  m_setupParameters.srb0SapProvider->TransmitPdcpPdu (transmitPdcpPduParameters);
233 }
234 
235 void
237 {
238  Ptr<Packet> packet = Create<Packet> ();
239 
240  RrcConnectionReestablishmentCompleteHeader rrcConnectionReestablishmentCompleteHeader;
241  rrcConnectionReestablishmentCompleteHeader.SetMessage (msg);
242 
243  packet->AddHeader (rrcConnectionReestablishmentCompleteHeader);
244 
245  LtePdcpSapProvider::TransmitPdcpSduParameters transmitPdcpSduParameters;
246  transmitPdcpSduParameters.pdcpSdu = packet;
247  transmitPdcpSduParameters.rnti = m_rnti;
248  transmitPdcpSduParameters.lcid = 1;
249 
250  m_setupParameters.srb1SapProvider->TransmitPdcpSdu (transmitPdcpSduParameters);
251 }
252 
253 
254 void
256 {
257  NS_LOG_FUNCTION (this);
258 
259  uint16_t cellId = m_rrc->GetCellId ();
260 
261  NS_LOG_DEBUG ("RNTI " << m_rnti << " connected to cell " << cellId);
262 
263  // walk list of all nodes to get the peer eNB
264  Ptr<LteEnbNetDevice> enbDev;
265  NodeList::Iterator listEnd = NodeList::End ();
266  bool found = false;
267  for (NodeList::Iterator i = NodeList::Begin ();
268  (i != listEnd) && (!found);
269  ++i)
270  {
271  Ptr<Node> node = *i;
272  int nDevs = node->GetNDevices ();
273  for (int j = 0;
274  (j < nDevs) && (!found);
275  j++)
276  {
277  enbDev = node->GetDevice (j)->GetObject <LteEnbNetDevice> ();
278  if (enbDev == 0)
279  {
280  continue;
281  }
282  else
283  {
284  if (enbDev->HasCellId (cellId))
285  {
286  found = true;
287  break;
288  }
289  }
290  }
291  }
292  NS_ASSERT_MSG (found, " Unable to find eNB with CellId =" << cellId);
293  m_enbRrcSapProvider = enbDev->GetRrc ()->GetLteEnbRrcSapProvider ();
294  Ptr<LteEnbRrcProtocolReal> enbRrcProtocolReal = enbDev->GetRrc ()->GetObject<LteEnbRrcProtocolReal> ();
295  enbRrcProtocolReal->SetUeRrcSapProvider (m_rnti, m_ueRrcSapProvider);
296 }
297 
298 void
300 {
301  // Get type of message received
302  RrcDlCcchMessage rrcDlCcchMessage;
303  p->PeekHeader (rrcDlCcchMessage);
304 
305  // Declare possible headers to receive
306  RrcConnectionReestablishmentHeader rrcConnectionReestablishmentHeader;
307  RrcConnectionReestablishmentRejectHeader rrcConnectionReestablishmentRejectHeader;
308  RrcConnectionSetupHeader rrcConnectionSetupHeader;
309  RrcConnectionRejectHeader rrcConnectionRejectHeader;
310 
311  // Declare possible messages
312  LteRrcSap::RrcConnectionReestablishment rrcConnectionReestablishmentMsg;
313  LteRrcSap::RrcConnectionReestablishmentReject rrcConnectionReestablishmentRejectMsg;
314  LteRrcSap::RrcConnectionSetup rrcConnectionSetupMsg;
315  LteRrcSap::RrcConnectionReject rrcConnectionRejectMsg;
316 
317  // Deserialize packet and call member recv function with appropriate structure
318  switch ( rrcDlCcchMessage.GetMessageType () )
319  {
320  case 0:
321  // RrcConnectionReestablishment
322  p->RemoveHeader (rrcConnectionReestablishmentHeader);
323  rrcConnectionReestablishmentMsg = rrcConnectionReestablishmentHeader.GetMessage ();
324  m_ueRrcSapProvider->RecvRrcConnectionReestablishment (rrcConnectionReestablishmentMsg);
325  break;
326  case 1:
327  // RrcConnectionReestablishmentReject
328  p->RemoveHeader (rrcConnectionReestablishmentRejectHeader);
329  rrcConnectionReestablishmentRejectMsg = rrcConnectionReestablishmentRejectHeader.GetMessage ();
330  // m_ueRrcSapProvider->RecvRrcConnectionReestablishmentReject (rrcConnectionReestablishmentRejectMsg);
331  break;
332  case 2:
333  // RrcConnectionReject
334  p->RemoveHeader (rrcConnectionRejectHeader);
335  rrcConnectionRejectMsg = rrcConnectionRejectHeader.GetMessage ();
336  m_ueRrcSapProvider->RecvRrcConnectionReject (rrcConnectionRejectMsg);
337  break;
338  case 3:
339  // RrcConnectionSetup
340  p->RemoveHeader (rrcConnectionSetupHeader);
341  rrcConnectionSetupMsg = rrcConnectionSetupHeader.GetMessage ();
342  m_ueRrcSapProvider->RecvRrcConnectionSetup (rrcConnectionSetupMsg);
343  break;
344  }
345 }
346 
347 void
349 {
350  // Get type of message received
351  RrcDlDcchMessage rrcDlDcchMessage;
352  params.pdcpSdu->PeekHeader (rrcDlDcchMessage);
353 
354  // Declare possible headers to receive
355  RrcConnectionReconfigurationHeader rrcConnectionReconfigurationHeader;
356  RrcConnectionReleaseHeader rrcConnectionReleaseHeader;
357 
358  // Declare possible messages to receive
359  LteRrcSap::RrcConnectionReconfiguration rrcConnectionReconfigurationMsg;
360  LteRrcSap::RrcConnectionRelease rrcConnectionReleaseMsg;
361 
362  // Deserialize packet and call member recv function with appropriate structure
363  switch ( rrcDlDcchMessage.GetMessageType () )
364  {
365  case 4:
366  params.pdcpSdu->RemoveHeader (rrcConnectionReconfigurationHeader);
367  rrcConnectionReconfigurationMsg = rrcConnectionReconfigurationHeader.GetMessage ();
368  m_ueRrcSapProvider->RecvRrcConnectionReconfiguration (rrcConnectionReconfigurationMsg);
369  break;
370  case 5:
371  params.pdcpSdu->RemoveHeader (rrcConnectionReleaseHeader);
372  rrcConnectionReleaseMsg = rrcConnectionReleaseHeader.GetMessage ();
373  //m_ueRrcSapProvider->RecvRrcConnectionRelease (rrcConnectionReleaseMsg);
374  break;
375  }
376 }
377 
379 
381  : m_enbRrcSapProvider (0)
382 {
383  NS_LOG_FUNCTION (this);
385 }
386 
388 {
389  NS_LOG_FUNCTION (this);
390 }
391 
392 void
394 {
395  NS_LOG_FUNCTION (this);
396  delete m_enbRrcSapUser;
397  for (std::map<uint16_t, LteEnbRrcSapProvider::CompleteSetupUeParameters>::iterator
398  it = m_completeSetupUeParametersMap.begin ();
399  it != m_completeSetupUeParametersMap.end ();
400  ++it)
401  {
402  delete it->second.srb0SapUser;
403  delete it->second.srb1SapUser;
404  }
406 }
407 
408 TypeId
410 {
411  static TypeId tid = TypeId ("ns3::LteEnbRrcProtocolReal")
412  .SetParent<Object> ()
413  .SetGroupName("Lte")
414  .AddConstructor<LteEnbRrcProtocolReal> ()
415  ;
416  return tid;
417 }
418 
419 void
421 {
423 }
424 
427 {
428  return m_enbRrcSapUser;
429 }
430 
431 void
433 {
434  m_cellId = cellId;
435 }
436 
439 {
440  std::map<uint16_t, LteUeRrcSapProvider*>::const_iterator it;
441  it = m_enbRrcSapProviderMap.find (rnti);
442  NS_ASSERT_MSG (it != m_enbRrcSapProviderMap.end (), "could not find RNTI = " << rnti);
443  return it->second;
444 }
445 
446 void
448 {
449  std::map<uint16_t, LteUeRrcSapProvider*>::iterator it;
450  it = m_enbRrcSapProviderMap.find (rnti);
451  NS_ASSERT_MSG (it != m_enbRrcSapProviderMap.end (), "Cell id " << m_cellId
452  << " could not find RNTI = " << rnti);
453  it->second = p;
454 }
455 
456 void
458 {
459  NS_LOG_FUNCTION (this << rnti);
460 
461  // // walk list of all nodes to get the peer UE RRC SAP Provider
462  // Ptr<LteUeRrc> ueRrc;
463  // NodeList::Iterator listEnd = NodeList::End ();
464  // bool found = false;
465  // for (NodeList::Iterator i = NodeList::Begin (); (i != listEnd) && (found == false); i++)
466  // {
467  // Ptr<Node> node = *i;
468  // int nDevs = node->GetNDevices ();
469  // for (int j = 0; j < nDevs; j++)
470  // {
471  // Ptr<LteUeNetDevice> ueDev = node->GetDevice (j)->GetObject <LteUeNetDevice> ();
472  // if (!ueDev)
473  // {
474  // continue;
475  // }
476  // else
477  // {
478  // ueRrc = ueDev->GetRrc ();
479  // if ((ueRrc->GetRnti () == rnti) && (ueRrc->GetCellId () == m_cellId))
480  // {
481  // found = true;
482  // break;
483  // }
484  // }
485  // }
486  // }
487  // NS_ASSERT_MSG (found , " Unable to find UE with RNTI=" << rnti << " cellId=" << m_cellId);
488  // m_enbRrcSapProviderMap[rnti] = ueRrc->GetLteUeRrcSapProvider ();
489 
490  // just create empty entry, the UeRrcSapProvider will be set by the
491  // ue upon connection request or connection reconfiguration
492  // completed
493  m_enbRrcSapProviderMap[rnti] = 0;
494 
495  // Store SetupUeParameters
496  m_setupUeParametersMap[rnti] = params;
497 
498  LteEnbRrcSapProvider::CompleteSetupUeParameters completeSetupUeParameters;
499  std::map<uint16_t, LteEnbRrcSapProvider::CompleteSetupUeParameters>::iterator
500  csupIt = m_completeSetupUeParametersMap.find (rnti);
501  if (csupIt == m_completeSetupUeParametersMap.end ())
502  {
503  // Create LteRlcSapUser, LtePdcpSapUser
504  LteRlcSapUser* srb0SapUser = new RealProtocolRlcSapUser (this,rnti);
506  completeSetupUeParameters.srb0SapUser = srb0SapUser;
507  completeSetupUeParameters.srb1SapUser = srb1SapUser;
508  // Store LteRlcSapUser, LtePdcpSapUser
509  m_completeSetupUeParametersMap[rnti] = completeSetupUeParameters;
510  }
511  else
512  {
513  completeSetupUeParameters = csupIt->second;
514  }
515  m_enbRrcSapProvider->CompleteSetupUe (rnti, completeSetupUeParameters);
516 }
517 
518 void
520 {
521  NS_LOG_FUNCTION (this << rnti);
522  std::map<uint16_t, LteEnbRrcSapProvider::CompleteSetupUeParameters>::iterator
523  it = m_completeSetupUeParametersMap.find (rnti);
525  delete it->second.srb0SapUser;
526  delete it->second.srb1SapUser;
528  m_enbRrcSapProviderMap.erase (rnti);
529  m_setupUeParametersMap.erase (rnti);
530 }
531 
532 void
534 {
535  NS_LOG_FUNCTION (this << cellId);
536  // walk list of all nodes to get UEs with this cellId
537  Ptr<LteUeRrc> ueRrc;
538  for (NodeList::Iterator i = NodeList::Begin (); i != NodeList::End (); ++i)
539  {
540  Ptr<Node> node = *i;
541  int nDevs = node->GetNDevices ();
542  for (int j = 0; j < nDevs; ++j)
543  {
544  Ptr<LteUeNetDevice> ueDev = node->GetDevice (j)->GetObject <LteUeNetDevice> ();
545  if (ueDev != 0)
546  {
547  Ptr<LteUeRrc> ueRrc = ueDev->GetRrc ();
548  NS_LOG_LOGIC ("considering UE IMSI " << ueDev->GetImsi () << " that has cellId " << ueRrc->GetCellId ());
549  if (ueRrc->GetCellId () == cellId)
550  {
551  NS_LOG_LOGIC ("sending SI to IMSI " << ueDev->GetImsi ());
552 
556  ueRrc->GetLteUeRrcSapProvider (),
557  msg);
558  }
559  }
560  }
561  }
562 }
563 
564 void
566 {
567  Ptr<Packet> packet = Create<Packet> ();
568 
569  RrcConnectionSetupHeader rrcConnectionSetupHeader;
570  rrcConnectionSetupHeader.SetMessage (msg);
571 
572  packet->AddHeader (rrcConnectionSetupHeader);
573 
574  LteRlcSapProvider::TransmitPdcpPduParameters transmitPdcpPduParameters;
575  transmitPdcpPduParameters.pdcpPdu = packet;
576  transmitPdcpPduParameters.rnti = rnti;
577  transmitPdcpPduParameters.lcid = 0;
578 
579  m_setupUeParametersMap.at (rnti).srb0SapProvider->TransmitPdcpPdu (transmitPdcpPduParameters);
580 }
581 
582 void
584 {
585  Ptr<Packet> packet = Create<Packet> ();
586 
587  RrcConnectionRejectHeader rrcConnectionRejectHeader;
588  rrcConnectionRejectHeader.SetMessage (msg);
589 
590  packet->AddHeader (rrcConnectionRejectHeader);
591 
592  LteRlcSapProvider::TransmitPdcpPduParameters transmitPdcpPduParameters;
593  transmitPdcpPduParameters.pdcpPdu = packet;
594  transmitPdcpPduParameters.rnti = rnti;
595  transmitPdcpPduParameters.lcid = 0;
596 
597  m_setupUeParametersMap[rnti].srb0SapProvider->TransmitPdcpPdu (transmitPdcpPduParameters);
598 }
599 
600 void
602 {
603  Ptr<Packet> packet = Create<Packet> ();
604 
605  RrcConnectionReconfigurationHeader rrcConnectionReconfigurationHeader;
606  rrcConnectionReconfigurationHeader.SetMessage (msg);
607 
608  packet->AddHeader (rrcConnectionReconfigurationHeader);
609 
610  LtePdcpSapProvider::TransmitPdcpSduParameters transmitPdcpSduParameters;
611  transmitPdcpSduParameters.pdcpSdu = packet;
612  transmitPdcpSduParameters.rnti = rnti;
613  transmitPdcpSduParameters.lcid = 1;
614 
615  m_setupUeParametersMap[rnti].srb1SapProvider->TransmitPdcpSdu (transmitPdcpSduParameters);
616 }
617 
618 void
620 {
621  Ptr<Packet> packet = Create<Packet> ();
622 
623  RrcConnectionReestablishmentHeader rrcConnectionReestablishmentHeader;
624  rrcConnectionReestablishmentHeader.SetMessage (msg);
625 
626  packet->AddHeader (rrcConnectionReestablishmentHeader);
627 
628  LteRlcSapProvider::TransmitPdcpPduParameters transmitPdcpPduParameters;
629  transmitPdcpPduParameters.pdcpPdu = packet;
630  transmitPdcpPduParameters.rnti = rnti;
631  transmitPdcpPduParameters.lcid = 0;
632 
633  m_setupUeParametersMap[rnti].srb0SapProvider->TransmitPdcpPdu (transmitPdcpPduParameters);
634 }
635 
636 void
638 {
639  Ptr<Packet> packet = Create<Packet> ();
640 
641  RrcConnectionReestablishmentRejectHeader rrcConnectionReestablishmentRejectHeader;
642  rrcConnectionReestablishmentRejectHeader.SetMessage (msg);
643 
644  packet->AddHeader (rrcConnectionReestablishmentRejectHeader);
645 
646  LteRlcSapProvider::TransmitPdcpPduParameters transmitPdcpPduParameters;
647  transmitPdcpPduParameters.pdcpPdu = packet;
648  transmitPdcpPduParameters.rnti = rnti;
649  transmitPdcpPduParameters.lcid = 0;
650 
651  m_setupUeParametersMap[rnti].srb0SapProvider->TransmitPdcpPdu (transmitPdcpPduParameters);
652 }
653 
654 void
656 {
657  Ptr<Packet> packet = Create<Packet> ();
658 
659  RrcConnectionReleaseHeader rrcConnectionReleaseHeader;
660  rrcConnectionReleaseHeader.SetMessage (msg);
661 
662  packet->AddHeader (rrcConnectionReleaseHeader);
663 
664  LtePdcpSapProvider::TransmitPdcpSduParameters transmitPdcpSduParameters;
665  transmitPdcpSduParameters.pdcpSdu = packet;
666  transmitPdcpSduParameters.rnti = rnti;
667  transmitPdcpSduParameters.lcid = 1;
668 
669  m_setupUeParametersMap[rnti].srb1SapProvider->TransmitPdcpSdu (transmitPdcpSduParameters);
670 }
671 
672 void
674 {
675  // Get type of message received
676  RrcUlCcchMessage rrcUlCcchMessage;
677  p->PeekHeader (rrcUlCcchMessage);
678 
679  // Declare possible headers to receive
680  RrcConnectionReestablishmentRequestHeader rrcConnectionReestablishmentRequestHeader;
681  RrcConnectionRequestHeader rrcConnectionRequestHeader;
682 
683  // Deserialize packet and call member recv function with appropriate structure
684  switch ( rrcUlCcchMessage.GetMessageType () )
685  {
686  case 0:
687  p->RemoveHeader (rrcConnectionReestablishmentRequestHeader);
688  LteRrcSap::RrcConnectionReestablishmentRequest rrcConnectionReestablishmentRequestMsg;
689  rrcConnectionReestablishmentRequestMsg = rrcConnectionReestablishmentRequestHeader.GetMessage ();
690  m_enbRrcSapProvider->RecvRrcConnectionReestablishmentRequest (rnti,rrcConnectionReestablishmentRequestMsg);
691  break;
692  case 1:
693  p->RemoveHeader (rrcConnectionRequestHeader);
694  LteRrcSap::RrcConnectionRequest rrcConnectionRequestMsg;
695  rrcConnectionRequestMsg = rrcConnectionRequestHeader.GetMessage ();
696  m_enbRrcSapProvider->RecvRrcConnectionRequest (rnti,rrcConnectionRequestMsg);
697  break;
698  }
699 }
700 
701 void
703 {
704  // Get type of message received
705  RrcUlDcchMessage rrcUlDcchMessage;
706  params.pdcpSdu->PeekHeader (rrcUlDcchMessage);
707 
708  // Declare possible headers to receive
709  MeasurementReportHeader measurementReportHeader;
710  RrcConnectionReconfigurationCompleteHeader rrcConnectionReconfigurationCompleteHeader;
711  RrcConnectionReestablishmentCompleteHeader rrcConnectionReestablishmentCompleteHeader;
712  RrcConnectionSetupCompleteHeader rrcConnectionSetupCompleteHeader;
713 
714  // Declare possible messages to receive
715  LteRrcSap::MeasurementReport measurementReportMsg;
716  LteRrcSap::RrcConnectionReconfigurationCompleted rrcConnectionReconfigurationCompleteMsg;
717  LteRrcSap::RrcConnectionReestablishmentComplete rrcConnectionReestablishmentCompleteMsg;
718  LteRrcSap::RrcConnectionSetupCompleted rrcConnectionSetupCompletedMsg;
719 
720  // Deserialize packet and call member recv function with appropriate structure
721  switch ( rrcUlDcchMessage.GetMessageType () )
722  {
723  case 1:
724  params.pdcpSdu->RemoveHeader (measurementReportHeader);
725  measurementReportMsg = measurementReportHeader.GetMessage ();
726  m_enbRrcSapProvider->RecvMeasurementReport (params.rnti,measurementReportMsg);
727  break;
728  case 2:
729  params.pdcpSdu->RemoveHeader (rrcConnectionReconfigurationCompleteHeader);
730  rrcConnectionReconfigurationCompleteMsg = rrcConnectionReconfigurationCompleteHeader.GetMessage ();
731  m_enbRrcSapProvider->RecvRrcConnectionReconfigurationCompleted (params.rnti,rrcConnectionReconfigurationCompleteMsg);
732  break;
733  case 3:
734  params.pdcpSdu->RemoveHeader (rrcConnectionReestablishmentCompleteHeader);
735  rrcConnectionReestablishmentCompleteMsg = rrcConnectionReestablishmentCompleteHeader.GetMessage ();
736  m_enbRrcSapProvider->RecvRrcConnectionReestablishmentComplete (params.rnti,rrcConnectionReestablishmentCompleteMsg);
737  break;
738  case 4:
739  params.pdcpSdu->RemoveHeader (rrcConnectionSetupCompleteHeader);
740  rrcConnectionSetupCompletedMsg = rrcConnectionSetupCompleteHeader.GetMessage ();
741  m_enbRrcSapProvider->RecvRrcConnectionSetupCompleted (params.rnti, rrcConnectionSetupCompletedMsg);
742  break;
743  }
744 }
745 
748 {
750  h.SetMessage (msg);
751 
752  Ptr<Packet> p = Create<Packet> ();
753  p->AddHeader (h);
754  return p;
755 }
756 
759 {
761  p->RemoveHeader (h);
763  return msg;
764 }
765 
768 {
770  h.SetMessage (msg);
771  Ptr<Packet> p = Create<Packet> ();
772  p->AddHeader (h);
773  return p;
774 }
775 
778 {
780  p->RemoveHeader (h);
782  return msg;
783 }
784 
786 
788  : m_pdcp (pdcp),
789  m_rnti (rnti)
790 {
791 }
792 
794 {
795 }
796 
797 void
799 {
801 }
802 
803 } // namespace ns3
virtual void DoDispose(void)
Destructor implementation.
This class only serves to discriminate which message type has been received in downlink (eNb to ue) f...
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer.
Definition: packet.cc:280
RrcConnectionRequest structure.
Definition: lte-rrc-sap.h:692
Service Access Point (SAP) offered by the UM-RLC and AM-RLC entities to the PDCP entity See 3GPP 36...
Definition: lte-rlc-sap.h:67
virtual void ReceivePdcpPdu(Ptr< Packet > p)
Called by the RLC entity to notify the PDCP entity of the reception of a new PDCP PDU...
void DoSetup(LteUeRrcSapUser::SetupParameters params)
Setup function.
LteRrcSap::RrcConnectionReject GetMessage() const
Returns a RrcConnectionReject IE from the values in the class attributes.
LtePdcpSapProvider * srb1SapProvider
SRB1 SAP provider.
Definition: lte-rrc-sap.h:923
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:102
LteRrcSap::HandoverPreparationInfo GetMessage() const
Returns a HandoverPreparationInfo IE from the values in the class attributes.
void DoSendMeasurementReport(LteRrcSap::MeasurementReport msg)
Send measurement report function.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:73
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
virtual void RecvRrcConnectionSetupCompleted(uint16_t rnti, RrcConnectionSetupCompleted msg)=0
Receive an RRCConnectionSetupComplete message from a UE during an RRC connection establishment proced...
LteRrcSap::RrcConnectionReestablishmentReject GetMessage() const
Returns a RrcConnectionReestablishmentReject IE from the values in the class attributes.
Part of the RRC protocol.
Definition: lte-rrc-sap.h:1000
LteUeRrcSapProvider * m_ueRrcSapProvider
UE RRC SAP provider.
MeasurementReport structure.
Definition: lte-rrc-sap.h:901
uint32_t GetId(void) const
Definition: node.cc:107
void DoSendRrcConnectionReject(uint16_t rnti, LteRrcSap::RrcConnectionReject msg)
Send RRC connection reject function.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:45
NS_ASSERT_MSG(false, "Ipv4AddressGenerator::MaskToIndex(): Impossible")
virtual void DoDispose(void)
Destructor implementation.
void DoSendRrcConnectionRelease(uint16_t rnti, LteRrcSap::RrcConnectionRelease msg)
Send RRC connection release function.
friend class RealProtocolRlcSapUser
allow RealProtocolRlcSapUser class friend access
Ptr< NetDevice > GetDevice(uint32_t index) const
Retrieve the index-th NetDevice associated to this node.
Definition: node.cc:142
LteRlcSpecificLteRlcSapUser class.
Definition: lte-rlc-sap.h:124
Part of the RRC protocol.
Definition: lte-rrc-sap.h:1200
void SetMessage(LteRrcSap::RrcConnectionRequest msg)
Receives a RrcConnectionRequest IE and stores the contents into the class attributes.
void SetMessage(LteRrcSap::RrcConnectionSetupCompleted msg)
Receives a RrcConnectionSetupCompleted IE and stores the contents into the class attributes.
void SetMessage(LteRrcSap::RrcConnectionReestablishmentRequest msg)
Receives a RrcConnectionReestablishmentRequest IE and stores the contents into the class attributes...
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
Definition: assert.h:67
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:204
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition: nstime.h:1070
Models the transmission of RRC messages from the UE to the eNB in a real fashion, by creating real RR...
void SetMessage(LteRrcSap::RrcConnectionReestablishmentComplete msg)
Receives a RrcConnectionReestablishmentComplete IE and stores the contents into the class attributes...
static TypeId GetTypeId(void)
Get the type ID.
void SetMessage(LteRrcSap::RrcConnectionReestablishment msg)
Receives a RrcConnectionReestablishment IE and stores the contents into the class attributes...
Template for the implementation of the LteEnbRrcSapUser as a member of an owner class of type C to wh...
Definition: lte-rrc-sap.h:1502
Ptr< Packet > DoEncodeHandoverCommand(LteRrcSap::RrcConnectionReconfiguration msg)
Encode handover command function.
LteUeRrcSapProvider::CompleteSetupParameters m_completeSetupParameters
complete setup parameters
LteRrcSap::RrcConnectionReconfiguration DoDecodeHandoverCommand(Ptr< Packet > p)
Decode handover command function.
Ptr< Packet > DoEncodeHandoverPreparationInformation(LteRrcSap::HandoverPreparationInfo msg)
Encode handover preparation information function.
SetupParameters structure.
Definition: lte-rrc-sap.h:920
int GetMessageType()
Get message type.
virtual void TransmitPdcpPdu(TransmitPdcpPduParameters params)=0
Send a PDCP PDU to the RLC for transmission This method is to be called when upper PDCP entity has a ...
LtePdcpSapUser * srb1SapUser
SRB1 SAP user.
Definition: lte-rrc-sap.h:1007
LteUeRrcSapProvider * GetUeRrcSapProvider(uint16_t rnti)
Get UE RRC SAP provider function.
Models the transmission of RRC messages from the UE to the eNB in a real fashion, by creating real RR...
std::map< uint16_t, LteEnbRrcSapUser::SetupUeParameters > m_setupUeParametersMap
setup UE parameters map
std::map< uint16_t, LteUeRrcSapProvider * > m_enbRrcSapProviderMap
ENB RRC SAP provider map.
LteUeRrcSapUser * m_ueRrcSapUser
UE RRC SAP user.
This class manages the serialization/deserialization of RrcConnectionSetupComplete IE...
LteRrcSap::RrcConnectionSetupCompleted GetMessage() const
Returns a RrcConnectionSetupCompleted IE from the values in the class attributes. ...
virtual void RecvRrcConnectionReject(RrcConnectionReject msg)=0
Receive an RRCConnectionReject message from the serving eNodeB during an RRC connection establishment...
SystemInformation structure.
Definition: lte-rrc-sap.h:608
void SetMessage(LteRrcSap::RrcConnectionRelease msg)
Receives a RrcConnectionRelease IE and stores the contents into the class attributes.
LteRrcSap::RrcConnectionReestablishment GetMessage() const
Returns a RrcConnectionReestablishment IE from the values in the class attributes.
Parameters for LtePdcpSapUser::ReceivePdcpSdu.
Definition: lte-pdcp-sap.h:76
uint16_t rnti
the C-RNTI identifying the UE
Definition: lte-pdcp-sap.h:79
void SetLteEnbRrcSapProvider(LteEnbRrcSapProvider *p)
Set LTE ENB RRC SAP provider function.
This class manages the serialization/deserialization of RrcConnectionSetup IE.
static EventId Schedule(Time const &delay, MEM mem_ptr, OBJ obj)
Schedule an event to expire after delay.
Definition: simulator.h:1389
void DoSendRrcConnectionSetup(uint16_t rnti, LteRrcSap::RrcConnectionSetup msg)
Send RRC connection setup function.
void SetMessage(LteRrcSap::RrcConnectionReestablishmentReject msg)
Receives a RrcConnectionReestablishmentReject IE and stores the contents into the class attributes...
This class only serves to discriminate which message type has been received in uplink (ue to eNb) for...
void SetUeRrcSapProvider(uint16_t rnti, LteUeRrcSapProvider *p)
Set UE RRC SAP provider function.
RrcConnectionReestablishment structure.
Definition: lte-rrc-sap.h:865
LteRrcSap::RrcConnectionReestablishmentComplete GetMessage() const
Returns a RrcConnectionReestablishmentComplete IE from the values in the class attributes.
void DoSendRrcConnectionReestablishmentRequest(LteRrcSap::RrcConnectionReestablishmentRequest msg)
Send RRC connection reestablishment request function.
static Iterator End(void)
Definition: node-list.cc:235
const Time RRC_REAL_MSG_DELAY
RRC real message delay.
virtual void RecvRrcConnectionReconfiguration(RrcConnectionReconfiguration msg)=0
Receive an RRCConnectionReconfiguration message from the serving eNodeB during an RRC connection reco...
std::map< uint16_t, LteEnbRrcSapProvider::CompleteSetupUeParameters > m_completeSetupUeParametersMap
complete setup UE parameters map
This class manages the serialization/deserialization of RrcConnectionReject IE.
virtual void RecvRrcConnectionReestablishment(RrcConnectionReestablishment msg)=0
Receive an RRCConnectionReestablishment message from the serving eNodeB during an RRC connection re-e...
void DoReceivePdcpPdu(Ptr< Packet > p)
Receive PDCP PDU function.
RrcConnectionReconfiguration structure.
Definition: lte-rrc-sap.h:836
uint16_t rnti
the C-RNTI identifying the UE
Definition: lte-pdcp-sap.h:46
SetupUeParameters structure.
Definition: lte-rrc-sap.h:1085
This class only serves to discriminate which message type has been received in downlink (eNb to ue) f...
uint32_t PeekHeader(Header &header) const
Deserialize but does not remove the header from the internal buffer.
Definition: packet.cc:290
void SetMessage(LteRrcSap::RrcConnectionReject msg)
Receives a RrcConnectionReject IE and stores the contents into the class attributes.
RrcConnectionReconfigurationCompleted structure.
Definition: lte-rrc-sap.h:851
Parameters for LtePdcpSapProvider::TransmitPdcpSdu.
Definition: lte-pdcp-sap.h:43
void SetEnbRrcSapProvider()
Set ENB RRC SAP provider.
LteRrcSap::RrcConnectionSetup GetMessage() const
Returns a RrcConnectionSetup IE from the values in the class attributes.
LteEnbRrcSapUser * GetLteEnbRrcSapUser()
Get LTE ENB RRC SAP user function.
This class manages the serialization/deserialization of RRCConnectionReestablishmentRequest IE...
RrcConnectionSetupCompleted structure.
Definition: lte-rrc-sap.h:705
HandoverPreparationInfo structure.
Definition: lte-rrc-sap.h:895
RrcConnectionSetup structure.
Definition: lte-rrc-sap.h:698
uint8_t lcid
the logical channel id corresponding to the sending RLC instance
Definition: lte-rlc-sap.h:47
void SetMessage(LteRrcSap::MeasurementReport msg)
Receives a MeasurementReport IE and stores the contents into the class attributes.
RrcConnectionReestablishmentRequest structure.
Definition: lte-rrc-sap.h:858
void SetMessage(LteRrcSap::RrcConnectionReconfigurationCompleted msg)
Receives a RrcConnectionReconfigurationCompleted IE and stores the contents into the class attributes...
Part of the RRC protocol.
Definition: lte-rrc-sap.h:1081
void DoSendRrcConnectionReestablishmentReject(uint16_t rnti, LteRrcSap::RrcConnectionReestablishmentReject msg)
Send RRC connection reestabishment reject function.
LteRrcSap::RrcConnectionReestablishmentRequest GetMessage() const
Returns a RrcConnectionReestablishmentRequest IE from the values in the class attributes.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual void RecvRrcConnectionSetup(RrcConnectionSetup msg)=0
Receive an RRCConnectionSetup message from the serving eNodeB during an RRC connection establishment ...
std::vector< Ptr< Node > >::const_iterator Iterator
Node container iterator.
Definition: node-list.h:44
RrcConnectionReject structure.
Definition: lte-rrc-sap.h:889
virtual void CompleteSetup(CompleteSetupParameters params)=0
Complete setup function.
Ptr< LteUeRrc > m_rrc
the RRC
void DoSendRrcConnectionReconfiguration(uint16_t rnti, LteRrcSap::RrcConnectionReconfiguration msg)
Send RRC connection reconfiguration function.
virtual void RecvRrcConnectionRequest(uint16_t rnti, RrcConnectionRequest msg)=0
Receive an RRCConnectionRequest message from a UE during an RRC connection establishment procedure (S...
void DoSendRrcConnectionReestablishment(uint16_t rnti, LteRrcSap::RrcConnectionReestablishment msg)
Send RRC connection reestabishment function.
This class manages the serialization/deserialization of RrcConnectionRequest IE.
This class manages the serialization/deserialization of HandoverPreparationInfo IE.
This class manages the serialization/deserialization of RrcConnectionRelease IE.
LtePdcpSpecificLtePdcpSapUser class.
Definition: lte-pdcp-sap.h:132
LteEnbRrcSapProvider * m_enbRrcSapProvider
ENB RRC SAP provider.
virtual void RecvSystemInformation(SystemInformation msg)=0
Receive a SystemInformation message from the serving eNodeB during a system information acquisition p...
RrcConnectionReestablishmentReject structure.
Definition: lte-rrc-sap.h:878
LteRlcSapUser * srb0SapUser
SRB0 SAP user.
Definition: lte-rrc-sap.h:1006
void DoReceivePdcpSdu(LtePdcpSapUser::ReceivePdcpSduParameters params)
Receive PDCP SDU function.
void SetMessage(LteRrcSap::HandoverPreparationInfo msg)
Receives a HandoverPreparationInfo IE and stores the contents into the class attributes.
void DoSendRrcConnectionReestablishmentComplete(LteRrcSap::RrcConnectionReestablishmentComplete msg)
Send RRC connection reestablishment complete function.
NS_LOG_LOGIC("Net device "<< nd<< " is not bridged")
virtual void TransmitPdcpSdu(TransmitPdcpSduParameters params)=0
Send a RRC PDU to the RDCP for transmission This method is to be called when upper RRC entity has a R...
void DoSendRrcConnectionSetupCompleted(LteRrcSap::RrcConnectionSetupCompleted msg)
Send RRC connection setup completed function.
This class manages the serialization/deserialization of MeasurementReport IE.
LteRrcSap::RrcConnectionRequest GetMessage() const
Returns a RrcConnectionRequest IE from the values in the class attributes.
Parameters for LteRlcSapProvider::TransmitPdcpPdu.
Definition: lte-rlc-sap.h:43
LteRrcSap::MeasurementReport GetMessage() const
Returns a MeasurementReport IE from the values in the class attributes.
void DoSendRrcConnectionReconfigurationCompleted(LteRrcSap::RrcConnectionReconfigurationCompleted msg)
Send RRC connection reconfiguration setup completed function.
static TypeId GetTypeId(void)
Get the type ID.
static void ScheduleWithContext(uint32_t context, Time const &delay, MEM mem_ptr, OBJ obj)
Schedule an event with the given context.
Definition: simulator.h:1483
virtual void RecvIdealUeContextRemoveRequest(uint16_t rnti)=0
Receive ideal UE context remove request from the UE RRC.
This class manages the serialization/deserialization of RrcConnectionReconfiguration IE...
LteUeRrcSapUser::SetupParameters m_setupParameters
setup parameters
void DoSendRrcConnectionRequest(LteRrcSap::RrcConnectionRequest msg)
Send RRC connection request function.
virtual void RecvRrcConnectionReestablishmentRequest(uint16_t rnti, RrcConnectionReestablishmentRequest msg)=0
Receive an RRCConnectionReestablishmentRequest message from a UE during an RRC connection re-establis...
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
Definition: abort.h:108
void SetMessage(LteRrcSap::RrcConnectionSetup msg)
Receives a RrcConnectionSetup IE and stores the contents into the class attributes.
static Iterator Begin(void)
Definition: node-list.cc:229
Service Access Point (SAP) offered by the PDCP entity to the RRC entity See 3GPP 36.323 Packet Data Convergence Protocol (PDCP) specification.
Definition: lte-pdcp-sap.h:68
void DoSendIdealUeContextRemoveRequest(uint16_t rnti)
Send ideal UE context remove request function.
void DoReceivePdcpPdu(uint16_t rnti, Ptr< Packet > p)
Receive PDCP PDU function.
This class manages the serialization/deserialization of RrcConnectionReestablishmentReject IE...
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
Definition: log.h:272
LteRlcSapProvider * srb0SapProvider
SRB0 SAP provider.
Definition: lte-rrc-sap.h:922
CompleteSetupUeParameters structure.
Definition: lte-rrc-sap.h:1204
LteEnbRrcSapUser * m_enbRrcSapUser
ENB RRC SAP user.
This class manages the serialization/deserialization of RrcConnectionReestablishmentComplete IE...
RrcConnectionReestablishmentComplete structure.
Definition: lte-rrc-sap.h:872
virtual void RecvMeasurementReport(uint16_t rnti, MeasurementReport msg)=0
Receive a MeasurementReport message from a UE during a measurement reporting procedure (Section 5...
LteRrcSap::HandoverPreparationInfo DoDecodeHandoverPreparationInformation(Ptr< Packet > p)
Decode handover preparation information function.
LteEnbRrcSapProvider * m_enbRrcSapProvider
ENB RRC SAP provider.
void SetMessage(LteRrcSap::RrcConnectionReconfiguration msg)
Receives a RrcConnectionReconfiguration IE and stores the contents into the class attributes...
This class manages the serialization/deserialization of RrcConnectionReestablishment IE...
void DoReceivePdcpSdu(LtePdcpSapUser::ReceivePdcpSduParameters params)
Receive PDCP SDU function.
void SetCellId(uint16_t cellId)
Set cell ID function.
uint16_t rnti
the C-RNTI identifying the UE
Definition: lte-rlc-sap.h:46
virtual void RecvRrcConnectionReestablishmentComplete(uint16_t rnti, RrcConnectionReestablishmentComplete msg)=0
Receive an RRCConnectionReestablishmentComplete message from a UE during an RRC connection re-establi...
virtual void CompleteSetupUe(uint16_t rnti, CompleteSetupUeParameters params)=0
Complete setup UE function.
Template for the implementation of the LteUeRrcSapUser as a member of an owner class of type C to whi...
Definition: lte-rrc-sap.h:1305
LteRrcSap::RrcConnectionReconfiguration GetMessage() const
Returns a RrcConnectionReconfiguration IE from the values in the class attributes.
A base class which provides memory management and object aggregation.
Definition: object.h:87
LteUeRrcSapUser * GetLteUeRrcSapUser()
Get LTE UE RRC SAP user function.
Part of the RRC protocol.
Definition: lte-rrc-sap.h:916
RrcConnectionRelease structure.
Definition: lte-rrc-sap.h:883
LteEnbRrcProtocolReal * m_pdcp
PDCP.
uint8_t lcid
the logical channel id corresponding to the sending RLC instance
Definition: lte-pdcp-sap.h:47
void SetLteUeRrcSapProvider(LteUeRrcSapProvider *p)
Set LTE UE RRC SAP provider function.
void DoSendSystemInformation(uint16_t cellId, LteRrcSap::SystemInformation msg)
Send system information function.
The eNodeB device implementation.
This class only serves to discriminate which message type has been received in uplink (ue to eNb) for...
LteRrcSap::RrcConnectionReconfigurationCompleted GetMessage() const
Returns a RrcConnectionReconfigurationCompleted IE from the values in the class attributes.
LteRrcSap::RrcConnectionRelease GetMessage() const
Returns a RrcConnectionRelease IE from the values in the class attributes.
virtual void RecvRrcConnectionReconfigurationCompleted(uint16_t rnti, RrcConnectionReconfigurationCompleted msg)=0
Receive an RRCConnectionReconfigurationComplete message from a UE during an RRC connection reconfigur...
a unique identifier for an interface.
Definition: type-id.h:58
Ptr< LteEnbRrc > GetRrc() const
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:915
bool HasCellId(uint16_t cellId) const
void DoSetupUe(uint16_t rnti, LteEnbRrcSapUser::SetupUeParameters params)
Setup UE function.
void DoRemoveUe(uint16_t rnti)
Remove UE function.
void SetUeRrc(Ptr< LteUeRrc > rrc)
Set UE RRC function.
This class manages the serialization/deserialization of RrcConnectionSetupComplete IE...
void AddHeader(const Header &header)
Add header to this packet.
Definition: packet.cc:256
uint32_t GetNDevices(void) const
Definition: node.cc:150
The LteUeNetDevice class implements the UE net device.