src/lte/doc/source/lte-testing.rst
author Budiarto Herman <budiarto.herman@magister.fi>
Sat, 24 Aug 2013 19:36:40 +0300
changeset 10331 15d40b3ee6a1
parent 10304 4c147dfa87cd
child 10342 7c2328aee0b1
permissions -rw-r--r--
Updated LTE handover documentation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
     1
.. include:: replace.txt
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
     2
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
     3
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
     4
+++++++++++++++++++++
10253
8fe14565b503 Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10243
diff changeset
     5
Testing Documentation
8fe14565b503 Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10243
diff changeset
     6
+++++++++++++++++++++
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
     7
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
     8
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
     9
Overview
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    10
********
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    11
8092
a56c14529c19 some precisations in the testing documentation
Nicola Baldo <nicola@baldo.biz>
parents: 8082
diff changeset
    12
To test and validate the ns-3 LTE module, several test suites are provided which are integrated with the ns-3 test framework.
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    13
To run them, you need to have configured the build of the simulator in this way::
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    14
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    15
    ./waf configure --enable-tests --enable-modules=lte --enable-examples
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    16
    ./test.py
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    17
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    18
The above will run not only the test suites belonging to the LTE module, but also those belonging to all the other ns-3 modules on which the LTE module depends. See the ns-3 manual for generic information on the testing framework.
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    19
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    20
You can get a more detailed report in HTML format in this way::
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    21
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    22
    ./test.py -w results.html
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    23
8092
a56c14529c19 some precisations in the testing documentation
Nicola Baldo <nicola@baldo.biz>
parents: 8082
diff changeset
    24
After the above command has run, you can view the detailed result for each test by opening the file ``results.html`` with a web browser. 
a56c14529c19 some precisations in the testing documentation
Nicola Baldo <nicola@baldo.biz>
parents: 8082
diff changeset
    25
a56c14529c19 some precisations in the testing documentation
Nicola Baldo <nicola@baldo.biz>
parents: 8082
diff changeset
    26
You can run each test suite separately using this command::
a56c14529c19 some precisations in the testing documentation
Nicola Baldo <nicola@baldo.biz>
parents: 8082
diff changeset
    27
a56c14529c19 some precisations in the testing documentation
Nicola Baldo <nicola@baldo.biz>
parents: 8082
diff changeset
    28
    ./test.py -s test-suite-name
a56c14529c19 some precisations in the testing documentation
Nicola Baldo <nicola@baldo.biz>
parents: 8082
diff changeset
    29
a56c14529c19 some precisations in the testing documentation
Nicola Baldo <nicola@baldo.biz>
parents: 8082
diff changeset
    30
For more details about ``test.py`` and the ns-3 testing framework, please refer to the ns-3 manual.
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    31
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    32
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    33
8092
a56c14529c19 some precisations in the testing documentation
Nicola Baldo <nicola@baldo.biz>
parents: 8082
diff changeset
    34
Description of the test suites
a56c14529c19 some precisations in the testing documentation
Nicola Baldo <nicola@baldo.biz>
parents: 8082
diff changeset
    35
******************************
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    36
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    37
Unit Tests
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    38
~~~~~~~~~~
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    39
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    40
SINR calculation in the Downlink
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    41
--------------------------------
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    42
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    43
The test suite ``lte-downlink-sinr`` 
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    44
checks that the SINR calculation in
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    45
downlink is performed correctly. The SINR in the downlink is calculated for each
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    46
RB assigned to data transmissions by dividing the power of the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    47
intended signal from the considered eNB by the sum of the noise power plus all
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    48
the transmissions on the same RB coming from other eNBs (the interference
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    49
signals):
8082
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    50
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    51
.. math::
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    52
8095
4214c0ab284e revised documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8092
diff changeset
    53
  \gamma = \frac{ P_\mathrm{signal} }{ P_\mathrm{noise} + \sum P_\mathrm{interference} }
8082
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    54
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    55
In general, different signals can be active during different periods
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    56
of time. We define a *chunk* as the time interval between any two
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    57
events of type either start or end of a waveform. In other words, a
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    58
chunk identifies a time interval during which the set of active
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    59
waveforms does not change. Let :math:`i` be the generic chunk,
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    60
:math:`T_i` its duration and :math:`\mathrm{SINR_i}` its SINR,
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    61
calculated with the above equation. The calculation of the average
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    62
SINR :math:`\overline{\gamma}` to be used for CQI feedback reporting
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    63
uses the following formula:  
8082
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    64
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    65
.. math::
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    66
8095
4214c0ab284e revised documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8092
diff changeset
    67
  \overline{\gamma} = \frac{ \sum_i {\gamma}_i  T_i }{ \sum_i T_{i} }
8082
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    68
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    69
The test suite checks that the above calculation is performed
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    70
correctly in the simulator. The test vectors are obtained offline by
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    71
an Octave script that implements the above equation, and that
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    72
recreates a number of random transmitted signals and interference
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    73
signals that mimic a scenario where an UE is trying to decode a signal
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    74
from an eNB while facing interference from other eNBs. The test passes
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    75
if the calculated values are equal to the test vector within a
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    76
tolerance of :math:`10^{-7}`. The tolerance is meant to account for
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    77
the approximation errors typical of floating point arithmetic. 
8082
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    78
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    79
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    80
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    81
SINR calculation in the Uplink
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    82
------------------------------
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
    83
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    84
The test suite ``lte-uplink-sinr`` checks that the SINR calculation in
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    85
uplink is performed correctly. This test suite is identical to
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    86
``lte-downlink-sinr`` described in the previous section, with the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    87
difference than both the signal and the interference now refer to
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    88
transmissions by the UEs, and reception is performed by the eNB. 
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    89
This test suite recreates a number of random transmitted signals and
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    90
interference signals to mimic a scenario where an eNB is trying to
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    91
decode the signal from several UEs simultaneously (the ones in the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    92
cell of the eNB) while facing interference from other UEs (the ones
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    93
belonging to other cells).  
8082
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    94
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    95
The test vectors are obtained by a dedicated Octave script. The test
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    96
passes if the calculated values are equal to the test vector within a
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    97
tolerance of :math:`10^{-7}` which, as for the downlink SINR test,
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
    98
deals with floating point arithmetic approximation issues. 
8082
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
    99
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
   100
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   101
E-UTRA Absolute Radio Frequency Channel Number (EARFCN)
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   102
-------------------------------------------------------
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   103
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   104
The test suite ``lte-earfcn`` checks that the carrier frequency used
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   105
by the LteSpectrumValueHelper class (which implements the LTE spectrum
8825
85fb8f3dc39d fixed bug 1437 - LTE documentation missing figures and references
Nicola Baldo <nbaldo@cttc.es>
parents: 8794
diff changeset
   106
model) is done in compliance with [TS36101]_, where the E-UTRA
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   107
Absolute Radio Frequency Channel Number (EARFCN) is defined. The test
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   108
vector for this test suite comprises a set of EARFCN values and the
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   109
corresponding carrier frequency calculated by hand following the
8825
85fb8f3dc39d fixed bug 1437 - LTE documentation missing figures and references
Nicola Baldo <nbaldo@cttc.es>
parents: 8794
diff changeset
   110
specification of [TS36101]_. The test passes if the carrier frequency
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   111
returned by LteSpectrumValueHelper is the same as the known value for
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   112
each element in the test vector.
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   113
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   114
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   115
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   116
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   117
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   118
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   119
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   120
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
   121
System Tests
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
   122
~~~~~~~~~~~~
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
   123
8146
68cf9eb4d758 fixed references in LTE documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8143
diff changeset
   124
.. _sec-lte-amc-tests:
68cf9eb4d758 fixed references in LTE documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8143
diff changeset
   125
8142
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   126
Adaptive Modulation and Coding Tests
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   127
------------------------------------
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
   128
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   129
The test suite ``lte-link-adaptation`` provides system tests recreating a
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   130
scenario with a single eNB and a single UE. Different test cases are created
8142
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   131
corresponding to different SNR values perceived by the UE. The aim of the test
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   132
is to check that in each test case the chosen MCS corresponds to some known
8142
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   133
reference values. These reference values are obtained by
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   134
re-implementing in Octave (see `src/lte/test/reference/lte_amc.m`) the
8146
68cf9eb4d758 fixed references in LTE documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8143
diff changeset
   135
model described in Section :ref:`sec-lte-amc` for the calculation of the
8142
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   136
spectral efficiency, and determining the corresponding MCS index
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   137
by manually looking up the tables in [R1-081483]_. The resulting test vector is
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   138
represented in Figure :ref:`fig-lte-mcs-index`.
8082
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
   139
8142
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   140
The MCS which is used by the simulator is measured by
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   141
obtaining the tracing output produced by the scheduler after 4ms (this
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   142
is needed to account for the initial delay in CQI reporting). The SINR
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   143
which is calcualted by the simulator is also obtained using the
8146
68cf9eb4d758 fixed references in LTE documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8143
diff changeset
   144
``LteSinrChunkProcessor`` interface. The test
8142
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   145
passes if both the following conditions are satisfied:
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   146
 
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   147
 #. the SINR calculated by the simulator correspond to the SNR
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   148
    of the test vector within an absolute tolerance of :math:`10^{-7}`;
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   149
 #. the MCS index used by the simulator exactly corresponds to
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   150
    the one in the test vector.
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   151
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   152
.. _fig-lte-mcs-index:
8112
59a4939a21c7 mcs index figure
mrequena
parents: 8100
diff changeset
   153
59a4939a21c7 mcs index figure
mrequena
parents: 8100
diff changeset
   154
.. figure:: figures/lte-mcs-index.*
59a4939a21c7 mcs index figure
mrequena
parents: 8100
diff changeset
   155
   :align: center
59a4939a21c7 mcs index figure
mrequena
parents: 8100
diff changeset
   156
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   157
   Test vector for Adaptive Modulation and Coding
8112
59a4939a21c7 mcs index figure
mrequena
parents: 8100
diff changeset
   158
8146
68cf9eb4d758 fixed references in LTE documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8143
diff changeset
   159
68cf9eb4d758 fixed references in LTE documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8143
diff changeset
   160
8142
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   161
Inter-cell Interference Tests
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   162
-----------------------------
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   163
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   164
The test suite `lte-interference`` provides system tests recreating an
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   165
inter-cell interference scenario with two eNBs, each having a single
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   166
UE attached to it and employing Adaptive Modulation and Coding both in
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   167
the downlink and in the uplink. The topology of the scenario
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   168
is depicted in Figure :ref:`fig-lte-interference-test-scenario`. The
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   169
:math:`d_1` parameter represents the distance of each UE to the eNB it
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   170
is attached to, whereas the :math:`d_2` parameter represent the
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   171
interferer distance. We note that the scenario topology is such that
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   172
the interferer distance is the same for uplink and downlink; still,
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   173
the actual interference power perceived will be different, because of
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   174
the different propagation loss in the uplink and downlink
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   175
bands. Different test cases are obtained by varying the :math:`d_1`
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   176
and :math:`d_2` parameters.
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   177
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   178
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   179
.. _fig-lte-interference-test-scenario:
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   180
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   181
.. figure:: figures/lte-interference-test-scenario.*
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   182
   :align: center
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   183
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   184
   Topology for the inter-cell interference test
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   185
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   186
The test vectors are obtained by use of a dedicated octave script
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   187
(available in
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   188
`src/lte/test/reference/lte_link_budget_interference.m`), which does
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   189
the link budget calculations (including interference) corresponding to the topology of each
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   190
test case, and outputs the resulting SINR and spectral efficiency. The
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   191
latter is then used to determine (using the same procedure adopted for 
8146
68cf9eb4d758 fixed references in LTE documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8143
diff changeset
   192
:ref:`sec-lte-amc-tests`. We note that the test vector
10017
d282947b2149 Add lte-ue-measurements test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9550
diff changeset
   193
contains separate values for uplink and downlink.
d282947b2149 Add lte-ue-measurements test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9550
diff changeset
   194
d282947b2149 Add lte-ue-measurements test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9550
diff changeset
   195
d282947b2149 Add lte-ue-measurements test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9550
diff changeset
   196
d282947b2149 Add lte-ue-measurements test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9550
diff changeset
   197
UE Measurements Tests
10253
8fe14565b503 Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10243
diff changeset
   198
---------------------
10017
d282947b2149 Add lte-ue-measurements test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9550
diff changeset
   199
d282947b2149 Add lte-ue-measurements test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9550
diff changeset
   200
The test suite `lte-ue-measurements`` provides system tests recreating an
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   201
inter-cell interference scenario identical of the one defined for
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   202
`lte-interference`` test-suite. However, in this test the quantities to be
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   203
tested are represented by RSRP and RSRQ measurements performed by the UE in two
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   204
different points of the stack: the source, which is UE PHY layer, and the
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   205
destination, that is the eNB RRC.
10017
d282947b2149 Add lte-ue-measurements test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9550
diff changeset
   206
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   207
The test vectors are obtained by the use of a dedicated octave script (available
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   208
in `src/lte/test/reference/lte-ue-measurements.m`), which does the link budget
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   209
calculations (including interference) corresponding to the topology of each
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   210
test case, and outputs the resulting RSRP and RSRQ. The obtained values are then
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   211
used for checking the correctness of the UE Measurements at PHY layer. After
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   212
that, they have to be converted according to 3GPP formatting for the purpose of
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   213
checking their correctness at eNB RRC level.
8142
4befd86cb176 documentation of interference tests
Nicola Baldo <nbaldo@cttc.es>
parents: 8126
diff changeset
   214
8082
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
   215
daa09ac28714 Testing documentation for SINR calculation in downlink/uplink and Adaptive Modulation and Coding tests
mrequena
parents: 8074
diff changeset
   216
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   217
UE measurement configuration tests
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   218
----------------------------------
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   219
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   220
Besides the previously mentioned test suite, there are 3 other test suites for
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   221
testing UE measurements: `lte-ue-measurements-piecewise-1`,
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   222
`lte-ue-measurements-piecewise-2`, and `lte-ue-measurements-handover`. These
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   223
test suites are more focused on the reporting trigger procedure, i.e. the
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   224
correctness of the implementation of the event-based triggering criteria is
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   225
verified here.
10242
190e8f27c6a4 Table titles for UE measurement documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10241
diff changeset
   226
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   227
In more specific, the tests verify the *timing* and the *content* of each
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   228
measurement reports received by eNodeB. Each test case is an stand-alone LTE
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   229
simulation and the test case will pass if measurement report(s) only occurs at
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   230
the prescribed time and shows the correct level of RSRP (RSRQ is not verified at
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   231
the moment).
10242
190e8f27c6a4 Table titles for UE measurement documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10241
diff changeset
   232
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   233
10253
8fe14565b503 Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10243
diff changeset
   234
Piecewise configuration
10303
aa776df53d5f Updated the structure of initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10299
diff changeset
   235
#######################
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   236
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   237
The piecewise configuration aims to test a particular UE measurements
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   238
configuration. The simulation script will setup the corresponding measurements
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   239
configuration to the UE, which will be active throughout the simulation.
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   240
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   241
Since the reference values are precalculated by hands, several assumptions are
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   242
made to simplify the simulation. Firstly, the channel is only affected by path
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   243
loss model (in this case, Friis model is used). Secondly, the ideal RRC protocol
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   244
is used, and layer 3 filtering is disabled. Finally, the UE moves in a
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   245
predefined motion pattern between 4 distinct spots, as depicted in Figure
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   246
:ref:`fig-ue-meas-piecewise-motion` below. Therefore the fluctuation of the
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   247
measured RSRP can be determined more easily.
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   248
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   249
.. _fig-ue-meas-piecewise-motion:
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   250
   
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   251
.. figure:: figures/ue-meas-piecewise-motion.*
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   252
   :scale: 80 %
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   253
   :align: center
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   254
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   255
   UE movement trace throughout the simulation in piecewise configuration
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   256
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   257
The motivation behind the *"teleport"* between the predefined spots is to
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   258
introduce drastic change of RSRP level, which will guarantee the triggering of
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   259
entering or leaving condition of the tested event. By performing drastic
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   260
changes, the test can be run within shorter amount of time.
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   261
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   262
Figure :ref:`fig-ue-meas-piecewise-a1` below shows the measured RSRP after
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   263
layer 1 filtering by the PHY layer during the simulation with a piecewise
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   264
configuration. Because layer 3 filtering is disabled, these are the exact values
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   265
used by the UE RRC instance to evaluate reporting trigger procedure. Notice that
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   266
the values are refreshed every 200 ms, which is the default filtering period of
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   267
PHY layer measurements report. The figure also shows the time when entering and
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   268
leaving conditions of an example instance of Event A1 (serving cell becomes
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   269
better than threshold) occur during the simulation.
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   270
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   271
.. _fig-ue-meas-piecewise-a1:
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   272
   
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   273
.. figure:: figures/ue-meas-piecewise-a1.*
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   274
   :scale: 80 %
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   275
   :align: center
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   276
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   277
   Measured RSRP trace of an example Event A1 test case in piecewise
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   278
   configuration
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   279
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   280
Each reporting criterion is tested several times with different threshold/offset
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   281
parameters. Some test scenarios also take hysteresis and time-to-trigger into
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   282
account. Figure :ref:`fig-ue-meas-piecewise-a1-hys` depicts the effect of
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   283
hysteresis in another example of Event A1 test.
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   284
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   285
.. _fig-ue-meas-piecewise-a1-hys:
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   286
   
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   287
.. figure:: figures/ue-meas-piecewise-a1-hys.*
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   288
   :scale: 80 %
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   289
   :align: center
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   290
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   291
   Measured RSRP trace of an example Event A1 with hysteresis test case in
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   292
   piecewise configuration
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   293
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   294
Piecewise configuration is used in two test suites of UE measurements. The first
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   295
one is `lte-ue-measurements-piecewise-1`, henceforth Piecewise test #1, which
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   296
simulates 1 UE and 1 eNodeB. The other one is `lte-ue-measurements-piecewise-2`,
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   297
which has 1 UE and 2 eNodeBs in the simulation.
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   298
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   299
Piecewise test #1 is intended to test the event-based criteria which are not
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   300
dependent on the existence of a neighbouring cell. These criteria include Event
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   301
A1 and A2. The other events are also briefly tested to verify that they are
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   302
still working correctly (albeit not reporting anything) in the absence of any
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   303
neighbouring cell. Table :ref:`tab-ue-meas-piecewise-1` below lists the
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   304
scenarios tested in piecewise test #1. 
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   305
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   306
.. _tab-ue-meas-piecewise-1:
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   307
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   308
.. table:: UE measurements test scenarios using piecewise configuration #1
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   309
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   310
   ====== ================== ================ ========== ===============
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   311
   Test # Reporting Criteria Threshold/Offset Hysteresis Time-to-Trigger
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   312
   ====== ================== ================ ========== ===============
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   313
   1      Event A1           Low              No         No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   314
   2      Event A1           Normal           No         No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   315
   3      Event A1           Normal           No         Short
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   316
   4      Event A1           Normal           No         Long
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   317
   5      Event A1           Normal           No         Super
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   318
   6      Event A1           Normal           Yes        No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   319
   7      Event A1           High             No         No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   320
   8      Event A2           Low              No         No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   321
   9      Event A2           Normal           No         No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   322
   10     Event A2           Normal           No         Short
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   323
   11     Event A2           Normal           No         Long
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   324
   12     Event A2           Normal           No         Super
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   325
   13     Event A2           Normal           Yes        No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   326
   14     Event A2           High             No         No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   327
   15     Event A3           Zero             No         No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   328
   16     Event A4           Normal           No         No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   329
   17     Event A5           Normal-Normal    No         No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   330
   ====== ================== ================ ========== ===============
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   331
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   332
Other events such as Event A3, A4, and A5 depend on measurements of neighbouring
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   333
cell, so they are more thoroughly tested in Piecewise test #2. The simulation
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   334
places the nodes on a straight line and instruct the UE to *"jump"* in a similar
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   335
manner as in Piecewise test #1. Handover is disabled in the simulation, so the
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   336
role of serving and neighbouring cells do not switch during the simulation.
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   337
Table :ref:`tab-ue-meas-piecewise-2` below lists the scenarios tested in
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   338
Piecewise test #2.
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   339
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   340
.. _tab-ue-meas-piecewise-2:
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   341
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   342
.. table:: UE measurements test scenarios using piecewise configuration #2
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   343
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   344
   ====== ================== ================ ========== ===============
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   345
   Test # Reporting Criteria Threshold/Offset Hysteresis Time-to-Trigger
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   346
   ====== ================== ================ ========== ===============
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   347
   1      Event A1           Low              No         No
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   348
   2      Event A1           Normal           No         No
10299
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   349
   3      Event A1           Normal           Yes        No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   350
   4      Event A1           High             No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   351
   5      Event A2           Low              No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   352
   6      Event A2           Normal           No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   353
   7      Event A2           Normal           Yes        No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   354
   8      Event A2           High             No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   355
   9      Event A3           Positive         No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   356
   10     Event A3           Zero             No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   357
   11     Event A3           Zero             No         Short
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   358
   12     Event A3           Zero             No         Super
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   359
   13     Event A3           Zero             Yes        No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   360
   14     Event A3           Negative         No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   361
   15     Event A4           Low              No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   362
   16     Event A4           Normal           No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   363
   17     Event A4           Normal           No         Short
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   364
   18     Event A4           Normal           No         Super
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   365
   19     Event A4           Normal           Yes        No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   366
   20     Event A4           High             No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   367
   21     Event A5           Low-Low          No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   368
   22     Event A5           Low-Normal       No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   369
   23     Event A5           Low-High         No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   370
   24     Event A5           Normal-Low       No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   371
   25     Event A5           Normal-Normal    No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   372
   26     Event A5           Normal-Normal    No         Short
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   373
   27     Event A5           Normal-Normal    No         Super
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   374
   28     Event A5           Normal-Normal    Yes        No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   375
   29     Event A5           Normal-High      No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   376
   30     Event A5           High-Low         No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   377
   31     Event A5           High-Normal      No         No
f42c7367c110 Updated UE measurements and initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10286
diff changeset
   378
   32     Event A5           High-High        No         No
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   379
   ====== ================== ================ ========== ===============
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   380
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   381
One note about the tests with time-to-trigger, they are tested using 3 different
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   382
values of time-to-trigger: *short* (shorter than report interval), *long*
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   383
(shorter than the filter measurement period of 200 ms), and *super* (longer than
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   384
200 ms). The first two ensure that time-to-trigger evaluation always use the
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   385
latest measurement reports received from PHY layer. While the last one is
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   386
responsible for verifying time-to-trigger cancellation, for example when a
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   387
measurement report from PHY shows that the entering/leaving condition is no
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   388
longer true before the first trigger is fired.
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   389
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   390
Handover configuration
10303
aa776df53d5f Updated the structure of initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10299
diff changeset
   391
######################
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   392
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   393
The purpose of the handover configuration is to verify whether UE measurement
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   394
configuration is updated properly after a succesful handover takes place. For
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   395
this purpose, the simulation will construct 2 eNodeBs with different UE
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   396
measurement configuration, and the UE will perform handover from one cell to
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   397
another. The UE will be located on a straight line between the 2 eNodeBs, and
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   398
the handover will be invoked manually.
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   399
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   400
The `lte-ue-measurements-handover` test suite covers various types of
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   401
configuration differences. The first one is the difference in report interval:
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   402
the first eNodeB is configured with 480 ms report interval, while the second
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   403
eNodeB is configured with 240 ms report interval. Therefore, when the UE
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   404
performed handover to the second cell, the new report interval must take effect.
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   405
As in piecewise configuration, the timing and the content of each measurement
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   406
report received by the eNodeB will be verified.
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   407
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   408
Other types of differences covered by the test suite are differences in event
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   409
and differences in threshold/offset. Table :ref:`tab-ue-meas-handover` below
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   410
lists the tested scenarios. 
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   411
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   412
.. _tab-ue-meas-handover:
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   413
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   414
.. table:: UE measurements test scenarios using handover configuration
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   415
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   416
   ====== ================ =========================== ===========================
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   417
   Test # Test Subject     Initial Configuration       Post-Handover Configuration
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   418
   ====== ================ =========================== ===========================
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   419
   1      Report interval  480 ms                      240 ms
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   420
   2      Report interval  120 ms                      640 ms
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   421
   3      Event            Event A1                    Event A2
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   422
   4      Event            Event A2                    Event A1
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   423
   5      Event            Event A3                    Event A4
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   424
   6      Event            Event A4                    Event A3
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   425
   7      Event            Event A2                    Event A3
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   426
   8      Event            Event A3                    Event A2
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   427
   9      Event            Event A4                    Event A5
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   428
   10     Event            Event A5                    Event A4
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   429
   11     Threshold/offset RSRP range 52 (Event A1)    RSRP range 56 (Event A1)
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   430
   12     Threshold/offset RSRP range 52 (Event A2)    RSRP range 56 (Event A2)
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   431
   13     Threshold/offset A3 offset -30 (Event A3)    A3 offset +30 (Event A3)
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   432
   14     Threshold/offset RSRP range 52 (Event A4)    RSRP range 56 (Event A4)
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   433
   15     Threshold/offset RSRP range 52-52 (Event A5) RSRP range 56-56 (Event A5)
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   434
   ====== ================ =========================== ===========================
10241
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   435
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   436
a3d6e3af0a4b Initial draft of documentation on UE measurements
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10073
diff changeset
   437
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
   438
Round Robin scheduler performance
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
   439
---------------------------------
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
   440
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   441
The test suite ``lte-rr-ff-mac-scheduler`` creates different test cases with
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   442
a single eNB and several UEs, all having the same Radio Bearer specification. In
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   443
each test case, the UEs see the same SINR from the eNB; different test cases are
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   444
implemented by using different distance among UEs and the eNB (i.e., therefore
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   445
having different SINR values) and different numbers of UEs. The test consists on
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   446
checking that the obtained throughput performance is equal among users and
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   447
matches a reference throughput value obtained according to the SINR perceived
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   448
within a given tolerance. 
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   449
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   450
The test vector is obtained according to the values of transport block
8825
85fb8f3dc39d fixed bug 1437 - LTE documentation missing figures and references
Nicola Baldo <nbaldo@cttc.es>
parents: 8794
diff changeset
   451
size reported in table 7.1.7.2.1-1 of [TS36213]_, considering an
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   452
equal distribution of the physical resource block among the users
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   453
using Resource Allocation Type 0 as defined in Section 7.1.6.1 of
8825
85fb8f3dc39d fixed bug 1437 - LTE documentation missing figures and references
Nicola Baldo <nbaldo@cttc.es>
parents: 8794
diff changeset
   454
[TS36213]_.  Let :math:`\tau` be the TTI duration, :math:`N` be the
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   455
number of UEs, :math:`B` the transmission bandwidth configuration in
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   456
number of RBs, :math:`G` the RBG size, :math:`M` the modulation and
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   457
coding scheme in use at the given SINR and :math:`S(M, B)` be the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   458
transport block size in bits as defined by 3GPP TS 36.213. We first
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   459
calculate the number :math:`L` of RBGs allocated to each user as 
8070
6461879c247e added draft formula for reference rr throughput in documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8068
diff changeset
   460
6461879c247e added draft formula for reference rr throughput in documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8068
diff changeset
   461
.. math::
6461879c247e added draft formula for reference rr throughput in documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8068
diff changeset
   462
6461879c247e added draft formula for reference rr throughput in documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8068
diff changeset
   463
   L = \left\lfloor \frac{B}{NG} \right\rfloor 
6461879c247e added draft formula for reference rr throughput in documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8068
diff changeset
   464
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   465
The reference throughput :math:`T` in bit/s achieved by each UE is then calculated as
8070
6461879c247e added draft formula for reference rr throughput in documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8068
diff changeset
   466
6461879c247e added draft formula for reference rr throughput in documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8068
diff changeset
   467
.. math::
6461879c247e added draft formula for reference rr throughput in documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8068
diff changeset
   468
8074
77acd352e7e6 Updates on RR and PF test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8070
diff changeset
   469
   T =  \frac{S(M, L G)}{8 \; \tau}
8070
6461879c247e added draft formula for reference rr throughput in documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8068
diff changeset
   470
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   471
The test passes if the measured throughput matches with the reference throughput
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   472
within a relative tolerance of 0.1. This tolerance is needed to account for the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   473
transient behavior at the beginning of the simulation (e.g., CQI feedback is
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   474
only available after a few subframes) as well as for the accuracy of the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   475
estimator of the average throughput performance over the chosen simulation time
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   476
(0.4s). This choice of the simulation time is justified by the need to
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   477
follow the ns-3 guidelines of keeping the total execution time of the test
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   478
suite low, in spite of the high number of test cases. In any case, we note that
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   479
a lower value of the tolerance can be used when longer simulations are
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   480
run. 
8070
6461879c247e added draft formula for reference rr throughput in documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8068
diff changeset
   481
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   482
In Figure `fig-lenaThrTestCase1`_, the curves labeled "RR" represent the test values
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   483
calculated for the RR scheduler test, as a function of the number of UEs and of
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   484
the MCS index being used in each test case. 
8059
45c5cfc41640 RR and PF Test description updated in manual
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8050
diff changeset
   485
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   486
.. _fig-lenaThrTestCase1:
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   487
8124
2a524da27499 finished testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8123
diff changeset
   488
.. figure:: figures/lenaThrTestCase1.*                 
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   489
   :align: center
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   490
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   491
   Test vectors for the RR and PF Scheduler in the downlink in a
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   492
   scenario where all UEs use the same MCS.
8059
45c5cfc41640 RR and PF Test description updated in manual
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8050
diff changeset
   493
8050
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
   494
Proportional Fair scheduler performance
3d595056658b split manual into design, user and testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents:
diff changeset
   495
---------------------------------------
8059
45c5cfc41640 RR and PF Test description updated in manual
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8050
diff changeset
   496
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   497
The test suite ``lte-pf-ff-mac-scheduler`` creates different test cases with
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   498
a single eNB, using the Proportional Fair (PF) scheduler, and several UEs, all
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   499
having the same Radio Bearer specification. The test cases are grouped in two
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   500
categories in order to evaluate the performance both in terms of the adaptation
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   501
to the channel condition and from a fairness perspective. 
8068
8d10726aa56e updated rr & pf sched test documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8059
diff changeset
   502
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   503
In the first category of test cases, the UEs are all placed at the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   504
same distance from the eNB, and hence all placed in order to have the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   505
same SINR. Different test cases are implemented by using a different
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   506
SINR value and a different number of UEs. The test consists on
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   507
checking that the obtained throughput performance matches with the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   508
known reference throughput up to a given tolerance. The expected
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   509
behavior of the PF scheduler when all UEs have the same SNR is that
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   510
each UE should get an equal fraction of the throughput obtainable by a
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   511
single UE when using all the resources. We calculate the reference
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   512
throughput value by dividing the throughput achievable by a single UE
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   513
at the given SNR by the total number of UEs. 
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   514
Let :math:`\tau` be the TTI duration, :math:`B` the transmission
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   515
bandwidth configuration in number of RBs, :math:`M` the modulation and
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   516
coding scheme in use at the given SINR and :math:`S(M, B)` be the
8825
85fb8f3dc39d fixed bug 1437 - LTE documentation missing figures and references
Nicola Baldo <nbaldo@cttc.es>
parents: 8794
diff changeset
   517
transport block size as defined in [TS36213]_. The reference
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   518
throughput :math:`T` in bit/s achieved by each UE is calculated as 
8068
8d10726aa56e updated rr & pf sched test documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8059
diff changeset
   519
8d10726aa56e updated rr & pf sched test documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8059
diff changeset
   520
.. math::
8d10726aa56e updated rr & pf sched test documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8059
diff changeset
   521
8d10726aa56e updated rr & pf sched test documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8059
diff changeset
   522
   T = \frac{S(M,B)}{\tau N}
8d10726aa56e updated rr & pf sched test documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8059
diff changeset
   523
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   524
The curves labeled "PF" in Figure `fig-lenaThrTestCase1`_ represent the test values
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   525
calculated for the PF scheduler tests of the first category, that we just described.
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   526
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   527
The second category of tests aims at verifying the fairness of the PF
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   528
scheduler in a more realistic simulation scenario where the UEs have a
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   529
different SINR (constant for the whole simulation). In these conditions, the PF
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   530
scheduler will give to each user a share of the system bandwidth that is
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   531
proportional to the capacity achievable by a single user alone considered its
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   532
SINR. In detail, let :math:`M_i` be the modulation and coding scheme being used by
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   533
each UE (which is a deterministic function of the SINR of the UE, and is hence
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   534
known in this scenario). Based on the MCS, we determine the achievable
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   535
rate :math:`R_i` for each user :math:`i` using the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   536
procedure described in Section~\ref{sec:pfs}. We then define the
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   537
achievable rate ratio :math:`\rho_{R,i}` of each user :math:`i` as
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   538
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   539
.. math::
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   540
   \rho_{R,i} = \frac{R_i}{\sum_{j=1}^N R_j}
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   541
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   542
Let now :math:`T_i` be the throughput actually achieved by the UE :math:`i` , which
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   543
is obtained as part of the simulation output. We define the obtained throughput
8143
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   544
ratio :math:`\rho_{T,i}` of UE :math:`i` as
8068
8d10726aa56e updated rr & pf sched test documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8059
diff changeset
   545
8074
77acd352e7e6 Updates on RR and PF test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8070
diff changeset
   546
.. math::
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   547
   \rho_{T,i} = \frac{T_i}{\sum_{j=1}^N T_j}
8074
77acd352e7e6 Updates on RR and PF test documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8070
diff changeset
   548
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   549
The test consists of checking that the following condition is verified:
8068
8d10726aa56e updated rr & pf sched test documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8059
diff changeset
   550
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   551
.. math::
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   552
   \rho_{R,i} = \rho_{T,i}
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   553
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   554
if so, it means that the throughput obtained by each UE over the whole
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   555
simulation matches with the steady-state throughput expected by the PF scheduler
8143
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   556
according to the theory. This test can be derived from [Holtzman2000]_
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   557
as follows. From Section 3 of [Holtzman2000]_, we know that 
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   558
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   559
.. math::
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   560
   \frac{T_i}{R_i} = c, \, \forall i
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   561
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   562
where :math:`c` is a constant. By substituting the above into the
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   563
definition of :math:`\rho_{T,i}` given previously, we get
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   564
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   565
.. math::
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   566
    \frac{T_i}{\sum_{j=1}^N T_j} &=  \frac{c R_i}{\sum_{j=1}^N c R_j} \\
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   567
                                 &=  \frac{c R_i}{c \sum_{j=1}^N  R_j} \\
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   568
                                 &=  \frac{R_i}{\sum_{j=1}^N  R_j}
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   569
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   570
which is exactly the expression being used in the test.
fa72a5b2fc5b documented how PF test expression is derived from the literature
Nicola Baldo <nbaldo@cttc.es>
parents: 8142
diff changeset
   571
              
8068
8d10726aa56e updated rr & pf sched test documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8059
diff changeset
   572
8d10726aa56e updated rr & pf sched test documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8059
diff changeset
   573
8123
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   574
Figure :ref:`fig-lenaThrTestCase2` presents the results obtained in a test case with
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   575
UEs :math:`i=1,\dots,5` that are located at a distance from the base
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   576
station such that they will use respectively the MCS index :math:`28, 24, 16, 12,
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   577
6`. From the figure, we note that, as expected, the obtained throughput is
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   578
proportional to the achievable rate. In other words, the PF scheduler assign
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   579
more resources to the users that use a higher MCS index.
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   580
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   581
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   582
.. _fig-lenaThrTestCase2:
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   583
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   584
.. figure:: figures/lenaThrTestCase2.*
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   585
   :align: center
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   586
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   587
   Throughput ratio evaluation for the PF scheduler in a scenario
1845b08b90a5 updated testing doc
Nicola Baldo <nbaldo@cttc.es>
parents: 8116
diff changeset
   588
   where the UEs have MCS index :math:`28, 24, 16, 12, 6`
8299
f3fff6722a1a Reorganize building documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8146
diff changeset
   589
f3fff6722a1a Reorganize building documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8146
diff changeset
   590
9149
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   591
Maximum Throughput scheduler performance
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   592
----------------------------------------
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   593
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   594
Test suites ``lte-fdmt-ff-mac-scheduler`` and ``lte-tdmt-ff-mac-scheduler`` 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   595
create different test cases with a single eNB and several UEs, all having the same 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   596
Radio Bearer specification, using the Frequency Domain Maximum Throughput (FDMT) 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   597
scheduler and Time Domain Maximum Throughput (TDMT) scheduler respectively.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   598
In other words, UEs are all placed at the
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   599
same distance from the eNB, and hence all placed in order to have the
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   600
same SNR. Different test cases are implemented by using a different
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   601
SNR values and a different number of UEs. The test consists on
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   602
checking that the obtained throughput performance matches with the
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   603
known reference throughput up to a given tolerance.The expected
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   604
behavior of both FDMT and TDMT scheduler when all UEs have the same SNR is that
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   605
scheduler allocates all RBGs to the first UE defined in script. This is because
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   606
the current FDMT and TDMT implementation always select the first UE to serve when there are
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   607
multiple UEs having the same SNR value. We calculate the reference
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   608
throughput value for first UE by the throughput achievable of a single UE
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   609
at the given SNR, while reference throughput value for other UEs by zero.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   610
Let :math:`\tau` be the TTI duration, :math:`B` the transmission
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   611
bandwidth configuration in number of RBs, :math:`M` the modulation and
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   612
coding scheme in use at the given SNR and :math:`S(M, B)` be the
10286
32d90164bfcc Updated UE measurements documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10268
diff changeset
   613
transport block size as defined in [TS36213]_. The reference
9149
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   614
throughput :math:`T` in bit/s achieved by each UE is calculated as 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   615
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   616
.. math::
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   617
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   618
   T = \frac{S(M,B)}{\tau}
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   619
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   620
Throughput to Average scheduler performance
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   621
-------------------------------------------
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   622
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   623
Test suites ``lte-tta-ff-mac-scheduler``
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   624
create different test cases with a single eNB and several UEs, all having the same 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   625
Radio Bearer specification using TTA scheduler. Network topology and configurations in
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   626
TTA test case are as the same as the test for MT scheduler. More complex test case needs to be 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   627
developed to show the fairness feature of TTA scheduler.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   628
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   629
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   630
Blind Average Throughput scheduler performance
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   631
----------------------------------------------
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   632
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   633
Test suites ``lte-tdbet-ff-mac-scheduler`` and ``lte-fdbet-ff-mac-scheduler`` create different
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   634
test cases with a single eNB and several UEs, all having the same Radio Bearer specification. 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   635
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   636
In the first test case of ``lte-tdbet-ff-mac-scheduler`` and ``lte-fdbet-ff-mac-scheduler``, 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   637
the UEs are all placed at the same distance from the eNB, and hence all placed in order to 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   638
have the same SNR. Different test cases are implemented by using a different SNR value and 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   639
a different number of UEs. The test consists on checking that the obtained throughput performance 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   640
matches with the known reference throughput up to a given tolerance. In long term, the expected
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   641
behavior of both TD-BET and FD-BET when all UEs have the same SNR is that each UE should get an 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   642
equal throughput. However, the exact throughput value of TD-BET and FD-BET in this test case is not
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   643
the same.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   644
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   645
When all UEs have the same SNR, TD-BET can be seen as a specific case of PF where achievable rate equals
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   646
to 1. Therefore, the throughput obtained by TD-BET is equal to that of PF. On the other hand, FD-BET performs
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   647
very similar to the round robin (RR) scheduler in case of that all UEs have the same SNR and the number of UE( or RBG)
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   648
is an integer multiple of the number of RBG( or UE). In this case, FD-BET always allocate the same number of RBGs 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   649
to each UE. For example, if eNB has 12 RBGs and there are 6 UEs, then each UE will get 2 RBGs in each TTI.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   650
Or if eNB has 12 RBGs and there are 24 UEs, then each UE will get 2 RBGs per two TTIs. When the number of 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   651
UE (RBG) is not an integer multiple of the number of RBG (UE), FD-BET will not follow the RR behavior because
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   652
it will assigned different number of RBGs to some UEs, while the throughput of each UE is still the same.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   653
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   654
The second category of tests aims at verifying the fairness of the both TD-BET and FD-BET schedulers in a more realistic 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   655
simulation scenario where the UEs have a different SNR (constant for the whole simulation). In this case, 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   656
both scheduler should give the same amount of averaged throughput to each user.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   657
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   658
Specifically, for TD-BET, let :math:`F_i` be the fraction of time allocated to user i in total simulation time, 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   659
:math:`R^{fb}_i` be the the full bandwidth achievable rate for user i and :math:`T_i` be the achieved throughput of 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   660
user i. Then we have:
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   661
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   662
.. math::
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   663
    
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   664
      T_i = F_i R^{fb}_i
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   665
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   666
In TD-BET, the sum of :math:`F_i` for all user equals one. In long term, all UE has the same :math:`T_i` so that we replace 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   667
:math:`T_i` by :math:`T`.  Then we have:
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   668
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   669
.. math::
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   670
    
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   671
      T = \frac{1}{ \sum_{i=1}^{N} \frac{1}{R^{fb}_i} }
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   672
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   673
Token Band Fair Queue scheduler performance
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   674
-------------------------------------------
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   675
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   676
Test suites ``lte-fdtbfq-ff-mac-scheduler`` and ``lte-tdtbfq-ff-mac-scheduler`` create different
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   677
test cases for testing three key features of TBFQ scheduler: traffic policing, fairness and traffic
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   678
balance. Constant Bit Rate UDP traffic is used in both downlink and uplink in all test cases. 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   679
The packet interval is set to 1ms to keep the RLC buffer non-empty. Different traffic rate is 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   680
achieved by setting different packet size. Specifically, two classes of flows are created in the 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   681
testsuites:
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   682
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   683
 * Homogeneous flow: flows with the same token generation rate and packet arrival rate
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   684
 * Heterogeneous flow: flows with different packet arrival rate, but with the same token generation rate
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   685
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   686
In test case 1 verifies traffic policing and fairness features for the scenario that all UEs are 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   687
placed at the same distance from the eNB. In this case, all Ues have the same SNR value. Different
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   688
test cases are implemented by using a different SNR value and a different number of UEs. Because each 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   689
flow have the same traffic rate and token generation rate, TBFQ scheduler will guarantee the same
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   690
throughput among UEs without the constraint of token generation rate. In addition, the exact value 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   691
of UE throughput is depended on the total traffic rate:
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   692
        
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   693
 * If total traffic rate <= maximum throughput, UE throughput = traffic rate
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   694
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   695
 * If total traffic rate > maximum throughput,  UE throughput = maximum throughput / N
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   696
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   697
Here, N is the number of UE connected to eNodeB. The maximum throughput in this case equals to the rate
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   698
that all RBGs are assigned to one UE(e.g., when distance equals 0, maximum throughput is 2196000 byte/sec).
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   699
When the traffic rate is smaller than max bandwidth, TBFQ can police the traffic by token generation rate
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   700
so that the UE throughput equals its actual traffic rate (token generation rate is set to traffic 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   701
generation rate); On the other hand, when total traffic rate is bigger than the max throughput, eNodeB
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   702
cannot forward all traffic to UEs. Therefore, in each TTI, TBFQ will allocate all RBGs to one UE due to
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   703
the large packets buffered in RLC buffer. When  a UE is scheduled in current TTI, its token counter is decreased 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   704
so that it will not be scheduled in the next TTI. Because each UE has the same traffic generation rate, 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   705
TBFQ will serve each UE in turn and only serve one UE in each TTI (both in TD TBFQ and FD TBFQ). 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   706
Therefore, the UE throughput in the second condition equals to the evenly share of maximum throughput.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   707
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   708
Test case 2 verifies traffic policing and fairness features for the scenario that each UE is placed at 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   709
the different distance from the eNB. In this case, each UE has the different SNR value. Similar to test
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   710
case 1, UE throughput in test case 2 is also depended on the total traffic rate but with a different 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   711
maximum throughput. Suppose all UEs have a high traffic load. Then the traffic will saturate the RLC buffer 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   712
in eNodeB. In each TTI, after selecting one UE with highest metric, TBFQ will allocate all RBGs to this 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   713
UE due to the large RLC buffer size. On the other hand, once RLC buffer is saturated, the total throughput 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   714
of all UEs cannot increase any more. In addition, as we discussed in test case 1, for homogeneous flows 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   715
which have the same t_i and r_i, each UE will achieve the same throughput in long term. Therefore, we 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   716
can use the same method in TD BET to calculate the maximum throughput:
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   717
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   718
.. math::
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   719
    
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   720
      T = \frac{N}{ \sum_{i=1}^{N} \frac{1}{R^{fb}_i} }
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   721
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   722
Here, :math:`T` is the maximum throughput. :math:`R^{fb}_i` be the the full bandwidth achievable rate 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   723
for user i. :math:`N` is the number of UE.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   724
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   725
When the totol traffic rate is bigger than :math:`T`, the UE throughput equals to :math:`\frac{T}{N}` . Otherwise, UE throughput
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   726
equals to its traffic generation rate.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   727
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   728
In test case 3, three flows with different traffic rate are created. Token generation rate for each 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   729
flow is the same and equals to the average traffic rate of three flows. Because TBFQ use a shared token
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   730
bank, tokens contributed by UE with lower traffic load can be utilized by UE with higher traffic load.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   731
In this way, TBFQ can guarantee the traffic rate for each flow. Although we use heterogeneous flow here,
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   732
the calculation of maximum throughput is as same as that in test case 2. In calculation max throughput
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   733
of test case 2, we assume that all UEs suffer high traffic load so that scheduler always assign all RBGs
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   734
to one UE in each TTI. This assumes is also true in heterogeneous flow case. In other words, whether 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   735
those flows have the same traffic rate and token generation rate, if their traffic rate is bigger enough, 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   736
TBFQ performs as same as it in test case 2. Therefore, the maximum bandwidth in test case 3 is as 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   737
same as it in test case 2.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   738
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   739
In test case 3, in some flows, token generate rate does not equal to MBR, although all flows are CBR 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   740
traffic. This is not accorded with our parameter setting rules. Actually, the traffic balance feature
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   741
is used in VBR traffic. Because different UE's peak rate may occur in different time, TBFQ use shared
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   742
token bank to balance the traffic among those VBR traffics. Test case 3 use CBR traffic to verify this 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   743
feature. But in the real simulation, it is recommended to set token generation rate to MBR.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   744
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   745
Priority Set scheduler performance
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   746
----------------------------------
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   747
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   748
Test suites ``lte-pss-ff-mac-scheduler`` create different test cases with a single eNB and several UEs.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   749
In all test cases, we select PFsch in FD scheduler. Same testing results can also be obtained by using CoItA
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   750
scheduler. In addition, all test cases do not define nMux so that TD scheduler in PSS will always select half
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   751
of total UE.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   752
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   753
In the first class test case of ``lte-pss-ff-mac-scheduler``, the UEs are all placed at the same distance from
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   754
the eNB, and hence all placed in order to have the same SNR. Different test cases are implemented 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   755
by using a different TBR for each UEs. In each test cases, all UEs have the same
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   756
Target Bit Rate configured by GBR in EPS bear setting. The expected behavior of PSS is to guarantee that 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   757
each UE's throughput at least equals its TBR if the total flow rate is blow maximum throughput. Similar 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   758
to TBFQ, the maximum throughput in this case equals to the rate that all RBGs are assigned to one UE.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   759
When the traffic rate is smaller than max bandwidth, the UE throughput equals its actual traffic rate;
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   760
On the other hand, UE throughput equals to the evenly share of the maximum throughput.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   761
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   762
In the first class of test cases, each UE has the same SNR. Therefore, the priority metric in PF scheduler will be 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   763
determined by past average throughput :math:`T_{j}(t)` because each UE has the same achievable throughput
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   764
:math:`R_{j}(k,t)` in PFsch or same :math:`CoI[k,n]` in CoItA. This means that PSS will performs like a 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   765
TD-BET which allocates all RBGs to one UE in each TTI. Then the maximum value of UE throughput equals to
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   766
the achievable rate that all RBGs are allocated to this UE.
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   767
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   768
In the second class of test case of ``lte-pss-ff-mac-scheduler``, the UEs are all placed at the same distance from
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   769
the eNB, and hence all placed in order to have the same SNR. Different TBR values are assigned to each UE. 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   770
There also exist an maximum throughput in this case. Once total traffic rate is bigger than this threshold,
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   771
there will be some UEs that cannot achieve their TBR. Because there is no fading, subband CQIs for each
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   772
RBGs frequency are the same. Therefore, in FD scheduler,in each TTI, priority metrics of UE for all RBGs
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   773
are the same. This means that FD scheduler will always allocate all RBGs to one user. Therefore, in the
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   774
maximum throughput case, PSS performs like a TD-BET. Then we have:
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   775
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   776
.. math::
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   777
    
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   778
      T = \frac{N}{ \sum_{i=1}^N \frac{1}{R^{fb}_i} }
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   779
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   780
Here, :math:`T` is the maximum throughput. :math:`R^{fb}_i` be the the full bandwidth achievable rate 
2580b67c83b3 GSoC 2012 NS-3 LTE MAC schedulers
Dizhi Zhou <dizhi.zhou@gmail.com>
parents: 9047
diff changeset
   781
for user i. :math:`N` is the number of UE.
8299
f3fff6722a1a Reorganize building documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8146
diff changeset
   782
f3fff6722a1a Reorganize building documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8146
diff changeset
   783
Building Propagation Loss Model
f3fff6722a1a Reorganize building documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8146
diff changeset
   784
-------------------------------
f3fff6722a1a Reorganize building documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8146
diff changeset
   785
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   786
The aim of the system test is to verify the integration of the
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   787
BuildingPathlossModel with the lte module. The test exploits a set of
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   788
three pre calculated losses for generating the expected SINR at the
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   789
receiver counting the transmission and the noise powers. These SINR
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   790
values are compared with the results obtained from a LTE
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   791
simulation that uses the BuildingPathlossModel. The reference loss values are
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   792
calculated off-line with an Octave script
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   793
(/test/reference/lte_pathloss.m). Each test case passes if the
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   794
reference loss value is equal to the value calculated by the simulator
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   795
within a tolerance of :math:`0.001` dB, which accouns for numerical
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   796
errors in the calculations. 
8445
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
   797
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
   798
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   799
Physical Error Model
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   800
--------------------
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   801
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   802
9045
9786bf474ea1 Update LENA documentation with Ctrl and Ref signaling part
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8794
diff changeset
   803
The test suite ``lte-phy-error-model`` generates different test cases for evaluating both data and control error models. For what concern the data, the test consists of nine test cases with single eNB and a various number of UEs, all having the same Radio Bearer specification. Each test is designed for evaluating the error rate perceived by a specific TB size in order to verify that it corresponds to the expected values according to the BLER generated for CB size analog to the TB size. This means that, for instance, the test will check that the performance of a TB of :math:`N` bits is analogous to the one of a a CB size of :math:`N` bits by collecting the performance of a user which has been forced the generation of a such TB size according to the distance to eNB. In order to significantly test the BER at MAC level, we modified the Adaptive Modulation and Coding (AMC) module, the ``LteAmc`` class, for making it less robust to channel conditions by adding a configurable BER parameter (called ``Ber`` in the ns3 attribute system) which enable the selection of the desired BER at MAC level when choosing the MCS to be used. In detail, the AMC module has been forced to select the AMC considering a BER of 0.01 (instead of the standard value equal to 0.00005). We note that, these values do not reflect actual BER since they come from an analytical bound which do not consider all the transmission chain aspects; therefore the resulted BER might be different. 
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   804
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   805
The parameters of the nine test cases are reported in the following:
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   806
8794
a68aeda2d85b Update PEM model with new BLER curves based on standard ECR
mmiozzo
parents: 8714
diff changeset
   807
 #. 4 UEs placed 1800 meters far from the eNB, which implies the use of MCS 2 (SINR of -5.51 dB) and a TB of 256 bits, that in turns produce a BER of 0.33 (see point A in figure :ref:`fig-mcs-2-test`).
a68aeda2d85b Update PEM model with new BLER curves based on standard ECR
mmiozzo
parents: 8714
diff changeset
   808
 #. 2 UEs placed 1800 meters far from the eNB, which implies the use of MCS 2 (SINR of -5.51 dB) and a TB of 528 bits, that in turns produce a BER of 0.11 (see point B in figure :ref:`fig-mcs-2-test`).
a68aeda2d85b Update PEM model with new BLER curves based on standard ECR
mmiozzo
parents: 8714
diff changeset
   809
 #. 1 UE placed 1800 meters far from the eNB, which implies the use of MCS 2 (SINR of -5.51 dB) and a TB of 1088 bits, that in turns produce a BER of 0.02 (see point C in figure :ref:`fig-mcs-2-test`).
a68aeda2d85b Update PEM model with new BLER curves based on standard ECR
mmiozzo
parents: 8714
diff changeset
   810
 #. 1 UE placed 600 meters far from the eNB, which implies the use of MCS 12 (SINR of 4.43 dB) and a TB of 4800 bits, that in turns produce a BER of 0.3 (see point D in figure :ref:`fig-mcs-12-test`).
a68aeda2d85b Update PEM model with new BLER curves based on standard ECR
mmiozzo
parents: 8714
diff changeset
   811
 #. 3 UEs placed 600 meters far from the eNB, which implies the use of MCS 12 (SINR of 4.43 dB) and a TB of 1632 bits, that in turns produce a BER of 0.55 (see point E in figure :ref:`fig-mcs-12-test`).
a68aeda2d85b Update PEM model with new BLER curves based on standard ECR
mmiozzo
parents: 8714
diff changeset
   812
 #. 1 UE placed 470 meters far from the eNB, which implies the use of MCS 16 (SINR of 8.48 dB) and a TB of 7272 bits (segmented in 2 CBs of 3648 and 3584 bits), that in turns produce a BER of 0.14, since each CB has CBLER equal to 0.075 (see point F in figure :ref:`fig-mcs-14-test`).
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   813
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   814
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   815
.. _fig-mcs-2-test:
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   816
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   817
.. figure:: figures/MCS_2_test.*
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   818
   :align: center
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   819
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   820
8794
a68aeda2d85b Update PEM model with new BLER curves based on standard ECR
mmiozzo
parents: 8714
diff changeset
   821
   BLER for tests 1, 2, 3.
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   822
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   823
.. _fig-mcs-12-test:
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   824
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   825
.. figure:: figures/MCS_12_test.*
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   826
   :align: center
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   827
8794
a68aeda2d85b Update PEM model with new BLER curves based on standard ECR
mmiozzo
parents: 8714
diff changeset
   828
   BLER for tests 4, 5.
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   829
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   830
.. _fig-mcs-14-test:
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   831
8794
a68aeda2d85b Update PEM model with new BLER curves based on standard ECR
mmiozzo
parents: 8714
diff changeset
   832
.. figure:: figures/MCS_16_test.*
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   833
   :align: center
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   834
8794
a68aeda2d85b Update PEM model with new BLER curves based on standard ECR
mmiozzo
parents: 8714
diff changeset
   835
   BLER for test 6.
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   836
8714
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8539
diff changeset
   837
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   838
The test verifies that in each case the expected number of packets received correct corresponds to a Bernoulli distribution with a confidence interval of 95%, where the probability of success in each trail is :math:`1-BER` and :math:`n` is the total number of packet sent.
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   839
9045
9786bf474ea1 Update LENA documentation with Ctrl and Ref signaling part
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8794
diff changeset
   840
The error model of PCFICH-PDDCH channels consists of 4 test cases with a single UE and several eNBs, where the UE is connected to only one eNB in order to have the remaining acting as interfering ones. The errors on data are disabled in order to verify only the ones due to erroneous decodification of PCFICH-PDCCH. The test verifies that the error on the data received respects the decodification error probability of the PCFICH-PDCCH with a tolerance of 0.1 due to the errors that might be produced in quantizing the MI and the error curve. As before, the system has been forced on working in a less conservative fashion in the AMC module for appreciating the results in border situations. The parameters of the 4 tests cases are reported in the following:
9786bf474ea1 Update LENA documentation with Ctrl and Ref signaling part
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8794
diff changeset
   841
9786bf474ea1 Update LENA documentation with Ctrl and Ref signaling part
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8794
diff changeset
   842
 #. 2 eNBs placed 1078 meters far from the UE, which implies a SINR of -2.00 dB and a TB of 217 bits, that in turns produce a BER of 0.007.
9786bf474ea1 Update LENA documentation with Ctrl and Ref signaling part
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8794
diff changeset
   843
 #. 3 eNBs placed 1078 meters far from the UE, which implies a SINR of -4.00 dB and a TB of 217 bits, that in turns produce a BER of 0.045.
9786bf474ea1 Update LENA documentation with Ctrl and Ref signaling part
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8794
diff changeset
   844
 #. 4 eNBs placed 1078 meters far from the UE, which implies a SINR of -6.00 dB and a TB of 133 bits, that in turns produce a BER of 0.206.
9786bf474ea1 Update LENA documentation with Ctrl and Ref signaling part
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8794
diff changeset
   845
 #. 5 eNBs placed 1078 meters far from the UE, which implies a SINR of -7.00 dB and a TB of 81 bits, that in turns produce a BER of 0.343.
9377
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   846
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   847
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   848
HARQ Model
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   849
----------
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   850
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   851
The test suite ``lte-harq`` includes two tests for evaluating the HARQ model and the related extension in the error model. The test consists on checking whether the amount of bytes received during the simulation corresponds to the expected ones according to the values of transport block and the HARQ dynamics. In detail, the test checks whether the throughput obtained after one HARQ retransmission is the expeted one. For evaluating the expected throughput the expected TB delivering time has been evaluated according to the following formula:
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   852
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   853
.. math::
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   854
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   855
   \mathrm{T} = P_s^1 \times 1 + P_s^2 \times 2 + (1-P_s^2) \times 3
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   856
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   857
where :math:`P_s^i` is the probability of receiving with success the HARQ block at the attempt :math:`i` (i.e., the RV with 3GPP naming). According to the scenarios, in the test we always have :math:`P_s^1` equal to 0.0, while :math:`P_s^2` varies in the two tests, in detail:
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   858
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   859
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   860
.. math::
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   861
9544
76126d4efd97 Update documentation on HARQ test
mmiozzo
parents: 9377
diff changeset
   862
   \mathrm{T_{test-1}} = 0.0 \times 1 + 0.77 \times 2 + 0.23 \times 3 = 2.23
9377
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   863
9544
76126d4efd97 Update documentation on HARQ test
mmiozzo
parents: 9377
diff changeset
   864
   \mathrm{T_{test-2}} = 0.0 \times 1 + 0.9862 \times 2 + 0.0138 \times 3 = 2.0138
9377
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   865
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   866
The expected throughput is calculted by counting the number of transmission slots available during the simulation (e.g., the number of TTIs) and the size of the TB in the simulation, in detail:
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   867
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   868
.. math::
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   869
9544
76126d4efd97 Update documentation on HARQ test
mmiozzo
parents: 9377
diff changeset
   870
   \mathrm{Thr_{test-i}} = \frac{TTI_{NUM}}{T_{test-i}} TB_{size} = \left\{ \begin{array}{lll} \dfrac{1000}{2.23}41 = 18375\mbox{ bps} & \mbox{ for test-1} \\ & \\ \dfrac{1000}{2.0138}469 = 236096\mbox{ bps} & \mbox{ for test-2}\end{array} \right.
9377
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   871
9544
76126d4efd97 Update documentation on HARQ test
mmiozzo
parents: 9377
diff changeset
   872
where :math:`TTI_{NUM}` is the total number of TTIs in 1 second.
9377
2e3ce7755256 Update HARQ documentation (design and test)
Marco Miozzo <marco.miozzo@cttc.es>
parents: 9047
diff changeset
   873
The test is performed both for Round Robin scheduler. The test passes if the measured throughput matches with the reference throughput within a relative tolerance of 0.1. This tolerance is needed to account for the transient behavior at the beginning of the simulation and the on-fly blocks at the end of the simulation.
9045
9786bf474ea1 Update LENA documentation with Ctrl and Ref signaling part
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8794
diff changeset
   874
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   875
8714
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8539
diff changeset
   876
MIMO Model
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8539
diff changeset
   877
----------
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   878
8714
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8539
diff changeset
   879
The test suite ``lte-mimo`` aims at verifying both the effect of the gain considered for each Transmission Mode on the system performance and the Transmission Mode switching through the scheduler interface. The test consists on checking whether the amount of bytes received during a certain window of time (0.1 seconds in our case) corresponds to the expected ones according to the values of transport block
8825
85fb8f3dc39d fixed bug 1437 - LTE documentation missing figures and references
Nicola Baldo <nbaldo@cttc.es>
parents: 8794
diff changeset
   880
size reported in table 7.1.7.2.1-1 of [TS36213]_, similarly to what done for the tests of the schedulers.
8714
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8539
diff changeset
   881
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8539
diff changeset
   882
The test is performed both for Round Robin and Proportional Fair schedulers. The test passes if the measured throughput matches with the reference throughput within a relative tolerance of 0.1. This tolerance is needed to account for the
398bbcbb3f42 Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents: 8539
diff changeset
   883
transient behavior at the beginning of the simulation and the transition phase between the Transmission Modes.
8539
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   884
aa3c69810a7c Solve bugs in merging PEM repository
mmiozzo
parents: 8507
diff changeset
   885
8507
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   886
Antenna Model integration
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   887
-------------------------
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   888
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   889
The test suite `lte-antenna` checks that the AntennaModel integrated
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   890
with the LTE model works correctly. This test suite recreates a
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   891
simulation scenario with one eNB node at coordinates (0,0,0) and one
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   892
UE node at coordinates (x,y,0). The eNB node is configured with an
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   893
CosineAntennaModel having given orientation and beamwidth. The UE 
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   894
instead uses the default IsotropicAntennaModel. The test
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   895
checks that the received power both in uplink and downlink account for
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   896
the correct value of the antenna gain, which is determined
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   897
offline; this is implemented by comparing the uplink and downlink SINR
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   898
and checking that both match with the reference value up to a
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   899
tolerance of :math:`10^{-6}` which accounts for numerical errors.
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   900
Different test cases are provided by varying the x and y coordinates
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   901
of the UE,  and the beamwidth and the orientation of the antenna of
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   902
the eNB.   
f948efa82e24 documented AntennaModel for LTE
Nicola Baldo <nbaldo@cttc.es>
parents: 8473
diff changeset
   903
8445
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
   904
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   905
RLC
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   906
---
8445
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
   907
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   908
Two test suites ``lte-rlc-um-transmitter`` and
8473
5c4080fe9a9d review RLC testing and some typos in doc
Manuel Requena <manuel.requena@cttc.es>
parents: 8464
diff changeset
   909
``lte-rlc-am-transmitter`` check that the UM RLC and the AM RLC
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   910
implementation work correctly. Both these suites work by testing RLC
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   911
instances connected to special test entities that play the role of the
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   912
MAC and of the PDCP, implementing respectively the LteMacSapProvider
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   913
and LteRlcSapUser interfaces. Different test cases (i.e., input test
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   914
vector consisting of series of primitive calls by the MAC and the
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   915
PDCP) are provided that check the behavior in the following cases:
8445
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
   916
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   917
 #. one SDU, one PDU: the MAC notifies a TX opportunity causes the creation of a PDU which exactly
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   918
    contains a whole SDU
8473
5c4080fe9a9d review RLC testing and some typos in doc
Manuel Requena <manuel.requena@cttc.es>
parents: 8464
diff changeset
   919
 #. segmentation: the MAC notifies multiple TX opportunities that are smaller than the SDU
5c4080fe9a9d review RLC testing and some typos in doc
Manuel Requena <manuel.requena@cttc.es>
parents: 8464
diff changeset
   920
    size stored in the transmission buffer, which is then to be fragmented and hence
5c4080fe9a9d review RLC testing and some typos in doc
Manuel Requena <manuel.requena@cttc.es>
parents: 8464
diff changeset
   921
    multiple PDUs are generated;
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   922
 #. concatenation: the MAC notifies a TX opportunity that is bigger than the SDU, hence
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   923
    multiple SDUs are concatenated in the same PDU
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   924
 #. buffer status report: a series of new SDUs notifications by the
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   925
    PDCP is inteleaved with a series of TX opportunity notification in
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   926
    order to verify that the buffer status report procedure is
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   927
    correct.
8445
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
   928
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   929
In all these cases, an output test vector is determine manually from
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   930
knowledge of the input test vector and knowledge of the expected
8473
5c4080fe9a9d review RLC testing and some typos in doc
Manuel Requena <manuel.requena@cttc.es>
parents: 8464
diff changeset
   931
behavior. These test vector are specialized for UM RLC and
5c4080fe9a9d review RLC testing and some typos in doc
Manuel Requena <manuel.requena@cttc.es>
parents: 8464
diff changeset
   932
AM RLC due to their different behavior. Each test case passes if the
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   933
sequence of primitives triggered by the RLC instance being tested is
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   934
exacly equal to the output test vector. In particular, for each PDU
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   935
transmitted by the RLC instance, both the size and the content of the
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   936
PDU are verified to check for an exact match with the test vector.
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   937
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
   938
9548
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   939
RRC
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   940
---
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   941
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   942
The test suite ``lte-rrc`` tests the correct functionality of the following aspects:
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   943
 
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   944
 #. MAC Random Access
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   945
 #. RRC System Information Acquisition
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   946
 #. RRC Connection Establishment 
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   947
 #. RRC Reconfiguration
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   948
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   949
The test suite considers a type of scenario with a single eNB and multiple UEs that are instructed to connect to the eNB. Each test case implement an instance of this scenario with specific values of the following parameters:
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   950
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   951
 - number of UEs
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   952
 - number of Data Radio Bearers to be activated for each UE
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   953
 - time :math:`t^c_0` at which the first UE is instructed to start connecting to the eNB
9550
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
   954
 - time interval :math:`d^i` between the start of connection of UE :math:`n` and UE :math:`n+1`; the time at which user :math:`n` connects is thus determined as :math:`t^c_n = t^c_0 + n d^i` sdf
9548
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   955
 - a boolean flag indicating whether the ideal or the real RRC protocol model is used
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   956
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   957
Each test cases passes if a number of test conditions are positively evaluated for each UE after a delay :math:`d^e` from the time it started connecting to the eNB. The delay :math:`d^e` is determined as 
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   958
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   959
.. math::
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   960
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   961
   d^e = d^{si} + d^{ra} + d^{ce} + d^{cr}
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   962
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   963
where:
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   964
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   965
 - :math:`d^{si}` is the max delay necessary for the acquisition of System Information. We set it to 90ms accounting for 10ms for the MIB acquisition and 80ms for the subsequent SIB2 acquisition
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   966
 - :math:`d^{ra}` is the delay for the MAC Random Access (RA)
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   967
   procedure. This depends on preamble collisions as well as on the
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   968
   availability of resources for the UL grant allocation. The total amount of
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   969
   necessary RA attempts depends on preamble collisions and failures
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   970
   to allocate the UL grant because of lack of resources. The number
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   971
   of collisions depends on the number of UEs that try to access
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   972
   simultaneously; we estimated that for a :math:`0.99` RA success
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   973
   probability, 5 attempts are sufficient for up to 20 UEs, and 10
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   974
   attempts for up to 50 UEs. For the UL
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   975
   grant, considered the system bandwidth and the
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   976
   default MCS used for the UL grant (MCS 0), at most 4 UL grants can
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   977
   be assigned in a TTI; so for :math:`n` UEs trying to
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   978
   do RA simultaneously the max number of attempts due to the UL grant
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   979
   issue is :math:`\lceil n/4 \rceil`. The time for
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   980
   a RA attempt  is determined by 3ms + the value of
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   981
   LteEnbMac::RaResponseWindowSize, which defaults to 3ms, plus 1ms
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   982
   for the scheduling of the new transmission.
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   983
 - :math:`d^{ce}` is the delay required for the transmission of RRC CONNECTION
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   984
   SETUP + RRC CONNECTION SETUP COMPLETED. We consider a round trip
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   985
   delay of 10ms plus :math:`\lceil 2n/4 \rceil` considering that 2
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   986
   RRC packets have to be transmitted and that at most 4 such packets
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   987
   can be transmitted per TTI.
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   988
 - :math:`d^{cr}` is the delay required for eventually needed RRC
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   989
   CONNECTION RECONFIGURATION transactions. The number of transactions needed is
10073
1c7bd17cb165 updated description of lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 10063
diff changeset
   990
   1 for each bearer activation. Similarly to what done for
1c7bd17cb165 updated description of lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 10063
diff changeset
   991
   :math:`d^{ce}`, for each transaction we consider a round trip 
9548
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   992
   delay of 10ms plus :math:`\lceil 2n/4 \rceil`.
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   993
   delay of 20ms.
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   994
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   995
The conditions that are evaluated for a test case to pass are, for
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   996
each UE:
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   997
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   998
 - the eNB has the context of the UE (identified by the RNTI value
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
   999
   retrieved from the UE RRC)
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1000
 - the RRC state of the UE at the eNB is CONNECTED_NORMALLY
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1001
 - the RRC state at the UE is CONNECTED_NORMALLY
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1002
 - the UE is configured with the CellId, DlBandwidth, UlBandwidth,
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1003
   DlEarfcn and UlEarfcn of the eNB
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1004
 - the IMSI of the UE stored at the eNB is correct
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1005
 - the number of active Data Radio Bearers is the expected one, both
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1006
   at the eNB and at the UE
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1007
 - for each Data Radio Bearer, the following identifiers match between
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1008
   the UE and the eNB: EPS bearer id, DRB id, LCID
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1009
2da2fa2fcbd6 documented lte-rrc test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9544
diff changeset
  1010
 
8445
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1011
10303
aa776df53d5f Updated the structure of initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10299
diff changeset
  1012
Initial cell selection
aa776df53d5f Updated the structure of initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10299
diff changeset
  1013
----------------------
aa776df53d5f Updated the structure of initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10299
diff changeset
  1014
10304
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1015
The test suite `lte-cell-selection` is responsible for verifying the
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1016
:ref:`sec-initial-cell-selection` procedure. 3 short test cases are included in
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1017
the suite.
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1018
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1019
Each test case is a simulation of a small network of 4 cells. Each eNodeB is
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1020
equipped with directional antenna (parabolic model) and is arranged so that some
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1021
of their coverage are overlapping with other eNodeB. They are configured using
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1022
the same Tx Power. Several static UEs are then placed at predefined locations
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1023
and with initial cell selection procedure enabled. Thus the UEs enters the
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1024
simulation without being attached to any cell.
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1025
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1026
At the end of the simulation, the test verifies that every UE is attached to the
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1027
right cell. Moreover, the test also ensures that the UE is properly connected
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1028
(i.e. its final state is `CONNECTED_NORMALLY`).
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1029
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1030
The first test case is a scenario with open access cells, i.e. without Closed
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1031
Subscriber Group (CSG). The result shows that the UEs are attaching to the
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1032
expected cells, as shown in Figure :ref:`fig-lte-cell-selection-open-access`
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1033
below. Note that the grey area below each eNodeB only indicates the rough
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1034
directivity of the antenna, while the actual cell coverage is much wider and
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1035
larger.
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1036
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1037
.. _fig-lte-cell-selection-open-access:
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1038
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1039
.. figure:: figures/lte-cell-selection-open-access.*
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1040
   :scale: 80 %
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1041
   :align: center
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1042
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1043
   Sample result of cell selection in open access scenario
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1044
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1045
The second and third cases incorporate CSG into the simulation. 2 out of 4 cells
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1046
become a single CSG and implement closed access, while the other 2 cells stay
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1047
open. In a similar way, half of the UEs are configured as members of the CSG,
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1048
while the rest are not. The resulting simulation is depicted in Figure
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1049
:ref:`fig-lte-cell-selection-closed-access` below.
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1050
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1051
.. _fig-lte-cell-selection-closed-access:
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1052
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1053
.. figure:: figures/lte-cell-selection-closed-access.*
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1054
   :scale: 80 %
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1055
   :align: center
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1056
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1057
   Sample result of cell selection in closed access scenario
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1058
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1059
It shows that CSG members may attach to either CSG or non-CSG cells, and simply
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1060
choose the stronger one. On the other hand, non-members can only attach to
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1061
non-CSG cells, even when they are actually receive stronger signal from a CSG
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1062
cell.
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1063
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1064
Note that a real life CSG deployment typically implements interference
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1065
coordination. Section 5.1 of [TS36922]_ describes frequency, time, and spatial
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1066
partitioning as possible approaches to interference coordination. However, none
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1067
of these approaches are implemented in this test suite.
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1068
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1069
As "expected", interference issues occur in the simulation. The issue is more
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1070
apparent in the CSG scenario, as experienced by the UE (highlighted in Figure
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1071
:ref:`fig-lte-cell-selection-closed-access` above) which is well positioned
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1072
within the coverage of a CSG cell but not a member of the CSG. After the UE
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1073
fails to attach to the CSG cell, the cell becomes a major interference to the UE
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1074
and causing difficulties to the UE in attempting to attach to the closest
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1075
non-CSG cell. In other words, the UE is experiencing low SINR when receiving
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1076
transmission from the non-CSG cell. As a result, the UE takes longer time to
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1077
attach to the non-CSG cell because it often fails to receive system information
4c147dfa87cd Testing documentation for LTE cell selection
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10303
diff changeset
  1078
messages (e.g. MIB, SIB1, and SIB2) from the non-CSG cell.
10303
aa776df53d5f Updated the structure of initial cell selection documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10299
diff changeset
  1079
8445
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1080
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1081
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1082
GTP-U protocol
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1083
--------------
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1084
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1085
The unit test suite ``epc-gtpu`` checks that the encoding and decoding of the GTP-U
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1086
header is done correctly. The test fills in a header with a set of
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1087
known values, adds the header to a packet, and then removes the header
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1088
from the packet. The test fails if, upon removing, any of the fields
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1089
in the GTP-U header is not decoded correctly. This is detected by
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1090
comparing the decoded value from the known value.
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1091
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1092
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1093
S1-U interface
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1094
--------------
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1095
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1096
Two test suites (``epc-s1u-uplink`` and ``epc-s1u-downlink``) make
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1097
sure that the S1-U interface implementation works correctly in
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1098
isolation. This is achieved by creating a set of simulation scenarios
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1099
where the EPC model alone is used, without the LTE model (i.e.,
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1100
without the LTE radio protocol stack, which is replaced by simple CSMA
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1101
devices). This checks that the
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1102
interoperation between multiple EpcEnbApplication instances in
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1103
multiple eNBs and the EpcSgwPgwApplication instance in the SGW/PGW
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1104
node works correctly in a variety of scenarios, with varying numbers
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1105
of end users (nodes with a CSMA device installed), eNBs, and different
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1106
traffic patterns (packet sizes and number of total packets).
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1107
Each test case works by injecting the chosen traffic pattern in the
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1108
network (at the considered UE or at the remote host for in the uplink or the
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1109
downlink test suite respectively) and checking that at the receiver
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1110
(the remote host or each  considered UE, respectively) that exactly the same
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1111
traffic patterns is received. If any mismatch in the transmitted and
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1112
received traffic pattern is detected for any UE, the test fails.
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1113
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1114
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1115
TFT classifier
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1116
--------------
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1117
8464
60dd9cd95447 renamed EpsTftClassifier --> EpcTftClassifier
Nicola Baldo <nbaldo@cttc.es>
parents: 8454
diff changeset
  1118
The test suite ``epc-tft-classifier`` checks in isolation that the
60dd9cd95447 renamed EpsTftClassifier --> EpcTftClassifier
Nicola Baldo <nbaldo@cttc.es>
parents: 8454
diff changeset
  1119
behavior of the EpcTftClassifier class is correct. This is performed
8454
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1120
by creating different classifier instances where different TFT
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1121
instances are activated, and testing for each classifier that an
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1122
heterogeneous set of packets (including IP and TCP/UDP headers) is
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1123
classified correctly. Several test cases are provided that check the
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1124
different matching aspects of a TFT (e.g. local/remote IP address, local/remote port) both for uplink and
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1125
downlink traffic.  Each test case corresponds to a specific packet and
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1126
a specific classifier instance with a given set of TFTs. The test case
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1127
passes if the bearer identifier returned by the classifier exactly
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1128
matches with the one that is expected for the considered packet.
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1129
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1130
c9ae77ab3d79 updated lte-testing.rst
Nicola Baldo <nbaldo@cttc.es>
parents: 8445
diff changeset
  1131
8445
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1132
End-to-end LTE-EPC data plane functionality
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1133
-------------------------------------------
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1134
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1135
The test suite ``lte-epc-e2e-data`` ensures the correct end-to-end
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1136
functionality of the LTE-EPC data plane. For each test case in this
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1137
suite, a complete LTE-EPC simulation
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1138
scenario is created with the following characteristics:
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1139
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1140
 * a given number of eNBs
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1141
 * for each eNB, a given number of UEs
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1142
 * for each UE, a given number of active EPS bearers
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1143
 * for each active EPS bearer, a given traffic pattern (number of UDP
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1144
   packets to be transmitted and packet size)
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1145
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1146
Each test is executed by transmitting the given traffic pattern both
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1147
in the uplink and in the downlink, at subsequent time intervals. The
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1148
test passes if all the following conditions are satisfied:
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1149
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1150
 * for each active EPS bearer, the transmitted and received traffic
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1151
   pattern (respectively  at the UE and the remote host for uplink,
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1152
   and vice versa for downlink) is exactly the same
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1153
 * for each active EPS bearer and each direction (uplink or downlink),
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1154
   exactly the expected number of packet flows over the corresponding
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1155
   RadioBearer instance  
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1156
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1157
9550
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1158
X2 handover
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1159
-----------
8445
3144b631b14d wrote EPC testing documentation
Nicola Baldo <nbaldo@cttc.es>
parents: 8299
diff changeset
  1160
9550
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1161
The test suite ``lte-x2-handover`` checks the correct functionality of the X2 handover procedure. The scenario being tested is a topology with two eNBs connected by an X2 interface. Each test case is a particular instance of this scenario defined by the following parameters:
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1162
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1163
 - the number of UEs that are initially attached to the first eNB
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1164
 - the number of EPS bearers activated for each UE
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1165
 - a list of handover events to be triggered, where each event is defined by:
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1166
   + the start time of the handover trigger
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1167
   + the index of the UE doing the handover
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1168
   + the index of the source eNB
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1169
   + the index of the target eNB
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1170
 - a boolean flag indicating whether the target eNB admits the handover or not
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1171
 - a boolean flag indicating whether the ideal RRC protocol is to be used instead of the real RRC protocol
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1172
 - the type of scheduler to be used (RR or PF)
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1173
10045
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1174
Each test case passes if the following conditions are true:
9550
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1175
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1176
 - at time 0.06s, the test CheckConnected verifies that each UE is connected to the first eNB
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1177
 - for each event in the handover list:
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1178
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1179
   + at the indicated event start time, the indicated UE is connected to the indicated source eNB
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1180
   + 0.1s after the start time, the indicated UE is connected to the indicated target eNB
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1181
   + 0.6s after the start time, for each active EPS bearer, the uplink and downlink sink applications of the indicated UE have achieved a number of bytes which is at least half the number of bytes transmitted by the corresponding source applications
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1182
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1183
The condition "UE is connected to eNB" is evaluated positively if and only if all the following conditions are met:
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1184
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1185
 - the eNB has the context of the UE (identified by the RNTI value
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1186
   retrieved from the UE RRC)
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1187
 - the RRC state of the UE at the eNB is CONNECTED_NORMALLY
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1188
 - the RRC state at the UE is CONNECTED_NORMALLY
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1189
 - the UE is configured with the CellId, DlBandwidth, UlBandwidth,
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1190
   DlEarfcn and UlEarfcn of the eNB
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1191
 - the IMSI of the UE stored at the eNB is correct
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1192
 - the number of active Data Radio Bearers is the expected one, both
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1193
   at the eNB and at the UE
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1194
 - for each Data Radio Bearer, the following identifiers match between
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1195
   the UE and the eNB: EPS bearer id, DRB id, LCID
b730871cb5d1 documented lte-x2-handover test suite
Nicola Baldo <nbaldo@cttc.es>
parents: 9548
diff changeset
  1196
9738
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1197
10045
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1198
Automatic X2 handover
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1199
---------------------
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1200
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1201
The test suite ``lte-x2-handover-measures`` checks the correct functionality of the handover
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1202
algorithm. The scenario being tested is a topology with two, three or four eNBs connected by
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1203
an X2 interface. The eNBs are located in a straight line in the X-axes. A UE moves along the
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1204
X-axes going from the neighbourhood of one eNB to the next eNB. Each test case is a particular
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1205
instance of this scenario defined by the following parameters:
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1206
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1207
 - the number of eNBs in the X-axes
10331
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1208
 - the number of UEs
10045
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1209
 - the number of EPS bearers activated for the UE
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1210
 - a list of check point events to be triggered, where each event is defined by:
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1211
   + the time of the first check point event
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1212
   + the time of the last check point event
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1213
   + interval time between two check point events
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1214
   + the index of the UE doing the handover
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1215
   + the index of the eNB where the UE must be connected
10331
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1216
 - a boolean flag indicating whether UDP traffic is to be used instead of TCP traffic
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1217
 - the type of scheduler to be used
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1218
 - the type of handover algorithm to be used
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1219
 - a boolean flag indicating whether handover is admitted by default 
10045
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1220
 - a boolean flag indicating whether the ideal RRC protocol is to be used instead of the
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1221
   real RRC protocol
10331
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1222
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1223
The test suite consists of many test cases. In fact, it has been one of the most
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1224
time-consuming test suite in ns-3. The test cases run with *some* combination of
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1225
the following variable parameters:
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1226
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1227
 - number of eNBs: 2, 3, 4;
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1228
 - number of EPS bearers: 0, 1, 2;
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1229
 - RRC: ideal, real (see :ref:`sec-rrc-protocol-models`);
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1230
 - MAC scheduler: round robin, proportional fair (see :ref:`sec-ff-mac-scheduler`); and
15d40b3ee6a1 Updated LTE handover documentation
Budiarto Herman <budiarto.herman@magister.fi>
parents: 10304
diff changeset
  1231
 - handover algorithm: legacy, strongest cell (see :ref:`sec-handover-algorithm`).
10045
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1232
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1233
Each test case passes if the following conditions are true:
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1234
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1235
 - at time 0.08s, the test CheckConnected verifies that each UE is connected to the first eNB
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1236
 - for each event in the check point list:
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1237
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1238
   + at the indicated check point time, the indicated UE is connected to the indicated eNB
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1239
   + 0.5s after the check point, for each active EPS bearer, the uplink and downlink sink
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1240
     applications of the UE have achieved a number of bytes which is at least half the number
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1241
     of bytes transmitted by the corresponding source applications
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1242
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1243
The condition "UE is connected to eNB" is evaluated positively if and only if all the following conditions are met:
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1244
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1245
 - the eNB has the context of the UE (identified by the RNTI value 
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1246
   retrieved from the UE RRC)
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1247
 - the RRC state of the UE at the eNB is CONNECTED_NORMALLY
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1248
 - the RRC state at the UE is CONNECTED_NORMALLY
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1249
 - the UE is configured with the CellId, DlBandwidth, UlBandwidth, 
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1250
   DlEarfcn and UlEarfcn of the eNB
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1251
 - the IMSI of the UE stored at the eNB is correct
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1252
 - the number of active Data Radio Bearers is the expected one, both
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1253
   at the eNB and at the UE
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1254
 - for each Data Radio Bearer, the following identifiers match between
26a4c08df793 Add automatic handover documentation
Manuel Requena <manuel.requena@cttc.es>
parents: 10017
diff changeset
  1255
   the UE and the eNB: EPS bearer id, DRB id, LCID
10063
6b30859ebd37 merge lena-dev with ns-3-dev
Nicola Baldo <nbaldo@cttc.es>
parents: 10045 9738
diff changeset
  1256
6b30859ebd37 merge lena-dev with ns-3-dev
Nicola Baldo <nbaldo@cttc.es>
parents: 10045 9738
diff changeset
  1257
9738
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1258
Handover delays
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1259
---------------
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1260
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1261
Handover procedure consists of several message exchanges between UE, source
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1262
eNodeB, and target eNodeB over both RRC protocol and X2 interface. Test suite
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1263
``lte-handover-delay`` verifies that this procedure consistently spends the
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1264
same amount of time.
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1265
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1266
The test suite will run several handover test cases. Eact test case is an
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1267
individual simulation featuring a handover at a specified time in simulation.
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1268
For example, the handover in the first test case is invoked at time +0.100s,
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1269
while in the second test case it is at +0.101s. There are 10 test cases, each
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1270
testing a different subframe in LTE. Thus the last test case has the handover
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1271
at +0.109s.
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1272
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1273
The simulation scenario in the test cases is as follow:
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1274
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1275
 - EPC is enabled
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1276
 - 2 eNodeBs with circular (isotropic) antenna, separated by 1000 meters
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1277
 - 1 static UE positioned exactly in the center between the eNodeBs
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1278
 - no application installed
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1279
 - no channel fading
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1280
 - default path loss model (Friis)
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1281
 - 0.300s simulation duration
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1282
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1283
The test case runs as follow. At the beginning of the simulation, the UE is
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1284
attached to the first eNodeB. Then at the time specified by the test case input
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1285
argument, a handover request will be explicitly issued to the second eNodeB.
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1286
The test case will then record the starting time, wait until the handover is
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1287
completed, and then record the completion time. If the difference between the
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1288
completion time and starting time is less than a predefined threshold, then the
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1289
test passes.
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1290
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1291
A typical handover in the current ns-3 implementation takes 4.2141 ms when using
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1292
Ideal RRC protocol model, and 19.9283 ms when using Real RRC protocol model.
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1293
Accordingly, the test cases use 5 ms and 20 ms as the maximum threshold values.
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1294
The test suite runs 10 test cases with Ideal RRC protocol model and 10 test
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1295
cases with Real RRC protocol model. More information regarding these models can
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1296
be found in Section :ref:`sec-rrc-protocol-models`.
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1297
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1298
The motivation behind using subframes as the main test parameters is the fact
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1299
that subframe index is one of the factors for calculating RA-RNTI, which is used
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1300
by Random Access during the handover procedure. The test cases verify this
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1301
computation, utilizing the fact that the handover will be delayed when this
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1302
computation is broken. In the default simulation configuration, the handover
972234cd8646 fixed Bug 1660 - Handover at certain subframe produces longer delay
Budiarto Herman <budiarto.herman@magister.fi>
parents: 9653
diff changeset
  1303
delay observed because of a broken RA-RNTI computation is typically 6 ms.