Project

General

Profile

BER Testing » History » Version 8

laforge, 03/17/2023 05:21 PM
distinguish between BTS-based and tester-based mode; link to tnt/ber; mention bts-side loopback command

1 8 laforge
{{>toc}}
2
3 1 laforge
h1. BER Testing
4
5 8 laforge
This page is a work-in-progress about the BER (Bit Error Rate) testing infrastructure in OsmoBTS and related projects.
6 1 laforge
7
The goal here is to perform Receiver BER testing of the BTS uplink receiver, in line with the the conformance testing requirements for GSM base stations, but in a way that should work for all the hardware supported by OsmoBTS, as well as with as minimal as possible requirements in terms of test equipment.
8
9 8 laforge
There are multiple different approaches to do this
10
11
# tester-based (e.g. with R&S CMU-300)
12
#* test device generates blocks with PRBS in uplink
13
#* BTS loops back the blocks at the L1/L2 boundary
14
#* tester receives the blocks in downlink, correlates with transmitted uplink and computes BER
15
# BTS-based (if you don't have expensive test equipment)
16
#* network side generates blocks with PRBS in downlink
17
#* standard UE is used to loop back frames from downlink to uplink
18
#* network side receives the blocks from uplink, correlates with transmitted downlink and computes BER
19
20
h1. tester-based
21
22
The idea in this mode goes like this:
23
* establish a traffic channel between BTS and MS (== tester)
24
* activate special loopback mode *in the BTS*, looping back the received data to the MS (== tester) by means of the (hidden) @ts <0-0> trx <0-255> ts <0-7> (lchan|shadow-lchan) <0-7> loopback@ command of the @osmo-bts@ VTY.
25
26
27
h1. BTS-based
28
29 1 laforge
The idea roughly goes like this:
30
* establish a traffic channel between BTS and MS
31 8 laforge
* activate a special "loop" mode *in the MS*, looping back the received bits 1:1 to the BTS
32 1 laforge
* add some RF impairment in the uplink, such as path loss, RF channel/fading simulator, ...
33
* transmit PRBS inside RTP stream to BTS
34
* receive looped PRBS back via RTP stream from BTS
35
* correlate transmitted with received PRBS; compute BER/RBER
36 8 laforge
37
A tool to transmit PRS inside RTP and perform correlation + BER computation can be found in the @tnt/ber@ branch of osmo-bts at https://gitea.osmocom.org/cellular-infrastructure/osmo-bts/src/branch/tnt/ber - it contains a "README file":https://gitea.osmocom.org/cellular-infrastructure/osmo-bts/src/branch/tnt/ber/contrib/ber/README
38 1 laforge
39 5 laforge
h2. What to measure
40
41
h3. FER (Frame Erasure Rate)
42
43
* every frame with invalid CRC is dropped
44
* FER can be displayed right from BTS for each lchan
45
46
h3. RBER (Residual Bit Error Rate)
47
48
* computed on those bits not protected by CRC
49
* we assume transmitter uses one of the ITU pseudo-random sequences
50
* we can compare received bits against PNR sequence, sync to it and then compute the RBER from that
51
* using RTP frames for this seems most natural, given that they are already exported and in a standardized format
52
** doesn't work for PDTCH, special mode required (via PCU socket?)
53
* transmitting single 1-bit at given bit positions can help with bit re-ordering and the like
54
55 2 laforge
h2. What's required to be different from a normal call
56 1 laforge
57 4 laforge
h3. A phone that can loop the TCH
58 2 laforge
59 1 laforge
3GPP TS 44.014 specifies a special TCH loop mode inside MS.  In fact, not just one type of loop, but different types of loops.
60
61
It's unknown if all MS support this, but at least a Sony/Ericsson K800i supports it.
62 2 laforge
63 4 laforge
What's requires is a special "flag" on the SIM card.  The point of this is probably to make sure that this doesn't accidentially get activated in production networks.
64 1 laforge
65 4 laforge
h3. Indefinite radio link timeout
66
67 2 laforge
Normally, when the uplink is subject to many bit-errors, the BTS will at some point close the channel (T200 expired N200+1 times).  We need to circumvent this for testing, as the test should not be aborted even if there is a lot of BER.
68
69 1 laforge
In [[osmobsc:|OsmoBSC]] from version 1.0.1 we implemented this using the @radio-link-timeout infinite@ VTY command.  *DO NOT USE THIS IN PRODUCTION NETWORKS*
70
71 4 laforge
h3. Activation of a given timeslot/channel in a given mode
72
73
The VTY command @bts <0-255> trx <0-255> timeslot <0-7> sub-slot <0-7> (activate|deactivate) (hr|fr|efr|amr) [<0-7>]@ was introduced to [[osmobsc:|OsmoBSC]] from version 1.0.1 to achieve this manual activation.  However, it is a "blind" activation without any associated paging etc.  and hence not 1:1 suited for this approach.  It was implemented for an external signal generator that would be informed out-of-band to use the given timeslot/sub-slot, without any IMMEDIATE ASSIGNMENT or other L3 siganlling.
74 1 laforge
75
h2. Misc notes, unsorted
76
77
h3. Preparing a SIM card for activating the traffic loops in a MS
78
79
Basically you have to authenticate to the card using the proper ADM1 PIN of your card, and then modify the EF.AD file. The ADM1 in the below example will of course only work for the one particular card I used while doing this experiment.
80
81
<pre>
82
# auth with ADM1
83
0020000A083939343631353334
84
# update EF.AD (after auth with ADM1)
85
00d60000048000ff02
86
</pre>
87
88
Interesting by-product:
89 6 tnt
* K800i will no longer roam but only register to home network or to 001-01 test network !
90 1 laforge
91
h3. closing the actual loop in an active TCH
92
93
<pre>
94
subscriber imsi 262423203000003 silent-call start tch/f
95
subscriber imsi 262423203000003 ms-test close-loop a
96
<0002> gsm_04_14.c:129 FIXME: Received TEST class message 'CLOSE_TCH_LOOP_ACK'
97
</pre>
98 6 tnt
99
h3. Tested phones
100
101
* K800i with TEMS firmware:
102
> * Loop works even without a 'test sim' (i.e. without the EF.AD file mod)
103
> * If the call gets disconnected, you will need to send an 'open-loop' command before you can use the 'close-loop' command again.
104
* Nokia 1661: Loop works but requires 'test sim'
Add picture from clipboard (Maximum size: 48.8 MB)