Multi-BTS with handover » History » Version 3
Anonymous, 02/19/2016 10:48 PM
1 | 1 | [[PageOutline]] |
|
---|---|---|---|
2 | 3 | == Configuring OpenBSC with muiltiple BTS and in-call handover == |
|
3 | 1 | ||
4 | 3 | === Prerequisites === |
|
5 | 1 | ||
6 | 3 | It is assumed that you already have a functioning [wiki:osmo-nitb OpenBSC NITB] and two or more BTS available. |
|
7 | |||
8 | 1 | Note that if you are using BTS based on OsmoBTS/OsmoTRX handover requires: |
|
9 | |||
10 | * osmo-bts package version >= fw-5 (this [http://cgit.osmocom.org/osmo-bts/commit/?h=fairwaves/master&id=a6ad0b44ae45a2fd51b6a55507e8295605431e92 fix] is included) |
||
11 | * osmo-trx package version >= 0.2.0 (this [http://cgit.osmocom.org/osmo-trx/commit/?h=fairwaves/master&id=19c392df82fe7acd303e4340059c87c432623881 patch] is included) |
||
12 | |||
13 | === Example network architecture === |
||
14 | |||
15 | In this example we have one system running the NITB software and two BTS that are built on the [wiki:OsmoBTS] software. |
||
16 | |||
17 | {{{ |
||
18 | #!graphviz |
||
19 | digraph G { |
||
20 | rankdir = LR; |
||
21 | BSC -> BTS0 [ label = "A-bis" dir=both ]; |
||
22 | BSC -> BTS1 [ label = "A-bis" dir=both ]; |
||
23 | BSC [ shape = square label = "BSC\n172.30.1.10" ]; |
||
24 | BTS0 [ shape = square label = "BTS 0\n172.30.1.11" ]; |
||
25 | BTS1 [ shape = square label = "BTS 1\n172.30.1.12" ]; |
||
26 | } |
||
27 | }}} |
||
28 | |||
29 | === BTS configuration === |
||
30 | |||
31 | 3 | There are three OsmoBTS parameters in particular which must be correctly configured: |
|
32 | 1 | ||
33 | 3 | * '''band''' - the band in which the BTS will operate |
|
34 | 1 | * '''ipa unit-id''' - each BTS must use a unique value |
|
35 | * '''oml remote-ip''' - this is the BSC IP address |
||
36 | |||
37 | The example configuration that follows is for two BTS both on the GSM900 band. |
||
38 | |||
39 | ==== BTS 0 ==== |
||
40 | |||
41 | 3 | Find the aforementioned parameters and ensure that they are correctly set. |
|
42 | |||
43 | 1 | {{{ |
|
44 | bts 0 |
||
45 | band GSM900 |
||
46 | ipa unit-id 1801 0 |
||
47 | 3 | oml remote-ip 172.30.1.10 |
|
48 | ... |
||
49 | }}} |
||
50 | |||
51 | ==== BTS 1 ==== |
||
52 | |||
53 | Ensure that the second BTS has a different '''ipa unit-id''' configured from the first. |
||
54 | |||
55 | {{{ |
||
56 | bts 1 |
||
57 | band GSM900 |
||
58 | ipa unit-id 1802 0 |
||
59 | oml remote-ip 172.30.1.10 |
||
60 | ... |
||
61 | }}} |
||
62 | |||
63 | === BSC configuration === |
||
64 | |||
65 | There are a number of OpenBSC NITB parameters that you must pay particular attention to: |
||
66 | |||
67 | * '''BTS ''n''' |
||
68 | * '''band''' - as configured in the BTS |
||
69 | * '''base_station_id_code''' - should be unique in location area |
||
70 | * '''ip.access unit_id''' - as configured in the BTS |
||
71 | * '''trx ''n'' |
||
72 | * '''arfcn''' - this must be frequencies that you have a licence for and the |
||
73 | * '''neighbor-list mode automatic''' |
||
74 | |||
75 | Configure the first BTS within OpenBSC NITB: |
||
76 | |||
77 | {{{ |
||
78 | bts 0 |
||
79 | ... |
||
80 | band GSM900 |
||
81 | ... |
||
82 | base_station_id_code 63 |
||
83 | ... |
||
84 | ip.access unit_id 1801 0 |
||
85 | ... |
||
86 | neighbor-list mode automatic |
||
87 | ... |
||
88 | trx 0 |
||
89 | rf_locked 0 |
||
90 | arfcn 74 |
||
91 | ... |
||
92 | trx 1 |
||
93 | rf_locked 0 |
||
94 | arfcn 84 |
||
95 | ... |
||
96 | }}} |
||
97 | |||
98 | Ensuring that you have set the correct '''band''' and '''ip.access unit_id''', and an appropriate '''arfcn''' for each TRX. |
||
99 | |||
100 | Next configure the second BTS: |
||
101 | |||
102 | {{{ |
||
103 | bts 1 |
||
104 | ... |
||
105 | band GSM900 |
||
106 | ... |
||
107 | base_station_id_code 62 |
||
108 | ... |
||
109 | ip.access unit_id 1802 0 |
||
110 | ... |
||
111 | neighbor-list mode automatic |
||
112 | ... |
||
113 | trx 0 |
||
114 | rf_locked 0 |
||
115 | arfcn 111 |
||
116 | ... |
||
117 | trx 1 |
||
118 | rf_locked 0 |
||
119 | arfcn 122 |
||
120 | ... |
||
121 | }}} |
||
122 | |||
123 | Ensuring that a different '''base_station_id_code''' is used this time, once again the correct '''ip.access unit_id''' is set, and an appropriate '''arfcn''' for each TRX. |
||
124 | |||
125 | Of course, there are many other core parameters that can be set and which may be important to your installation. For details of all the configuration options please see the [wiki:osmo-nitb_VTY NITB VTY reference]. |
||
126 | |||
127 | ==== Handover ==== |
||
128 | |||
129 | The following parameters must also be configured in order to enable handover: |
||
130 | |||
131 | * '''handover 1''' |
||
132 | * ''Enable in-call handover between multiple BTS.'' |
||
133 | |||
134 | * '''handover window rxlev averaging 10''' |
||
135 | * ''The receive level of the serving cell should be averaged over 10 SACCH frames.'' |
||
136 | |||
137 | * '''handover window rxqual averaging 1''' |
||
138 | * ''The receive quality of the serving cell should be averaged over 1 SACCH frame.'' |
||
139 | |||
140 | * '''handover window rxlev neighbor averaging 10''' |
||
141 | * ''The Rx Level of a neighbour cell should be averaged over 10 SACCH frames.'' |
||
142 | |||
143 | * '''handover power budget interval 6''' |
||
144 | * ''Consider performing a power budget (Rx level) handover every 6 SACCH frames.'' |
||
145 | |||
146 | * '''handover power budget hysteresis 3''' |
||
147 | * ''Set hysteresis (prevents continuous handover back and forth) to 3.'' |
||
148 | |||
149 | * '''handover maximum distance 9999''' |
||
150 | * ''When the distance from the BTS is greater than 9999 attempt a distance handover.'' |
||
151 | |||
152 | These parameters must be set within the '''network''' section of the OpenBSC NITB configuration: |
||
153 | |||
154 | {{{ |
||
155 | network |
||
156 | network country code 1 |
||
157 | ... |
||
158 | handover 1 |
||
159 | handover window rxlev averaging 10 |
||
160 | handover window rxqual averaging 1 |
||
161 | handover window rxlev neighbor averaging 10 |
||
162 | handover power budget interval 6 |
||
163 | handover power budget hysteresis 3 |
||
164 | handover maximum distance 9999 |
||
165 | }}} |
||
166 | |||
167 | Values can be tuned to modify the behaviour of handover. |
||
168 | |||
169 | === Complete configurations === |
||
170 | |||
171 | Complete example configs are included for reference and should not be used without modification, unless you happen to have a licence for those particular frequencies. |
||
172 | |||
173 | ==== BTS 0 ==== |
||
174 | |||
175 | {{{ |
||
176 | bts 0 |
||
177 | band GSM900 |
||
178 | ipa unit-id 1801 0 |
||
179 | oml remote-ip 172.30.1.10 |
||
180 | 1 | rtp jitter-buffer 0 |
|
181 | paging lifetime 0 |
||
182 | gsmtap-sapi bcch |
||
183 | gsmtap-sapi ccch |
||
184 | gsmtap-sapi rach |
||
185 | gsmtap-sapi agch |
||
186 | gsmtap-sapi pch |
||
187 | gsmtap-sapi sdcch |
||
188 | gsmtap-sapi pacch |
||
189 | gsmtap-sapi pdtch |
||
190 | gsmtap-sapi sacch |
||
191 | fn-advance 20 |
||
192 | ms-power-loop -10 |
||
193 | timing-advance-loop |
||
194 | trx 0 |
||
195 | rxgain 12 |
||
196 | power 0 |
||
197 | trx 1 |
||
198 | rxgain 12 |
||
199 | power 0 |
||
200 | }}} |
||
201 | |||
202 | ==== BTS 1 ==== |
||
203 | |||
204 | {{{ |
||
205 | bts 1 |
||
206 | band GSM900 |
||
207 | ipa unit-id 1802 0 |
||
208 | 3 | oml remote-ip 172.30.1.10 |
|
209 | 1 | rtp jitter-buffer 0 |
|
210 | paging lifetime 0 |
||
211 | gsmtap-sapi bcch |
||
212 | gsmtap-sapi ccch |
||
213 | gsmtap-sapi rach |
||
214 | gsmtap-sapi agch |
||
215 | gsmtap-sapi pch |
||
216 | gsmtap-sapi sdcch |
||
217 | gsmtap-sapi pacch |
||
218 | gsmtap-sapi pdtch |
||
219 | gsmtap-sapi sacch |
||
220 | fn-advance 20 |
||
221 | ms-power-loop -10 |
||
222 | timing-advance-loop |
||
223 | trx 0 |
||
224 | rxgain 12 |
||
225 | power 0 |
||
226 | trx 1 |
||
227 | rxgain 12 |
||
228 | power 0 |
||
229 | }}} |
||
230 | |||
231 | 3 | ==== OpenBSC NITB ==== |
|
232 | 1 | ||
233 | {{{ |
||
234 | ! |
||
235 | ! OpenBSC (UNKNOWN) configuration saved from vty |
||
236 | !! |
||
237 | password foo |
||
238 | ! |
||
239 | line vty |
||
240 | no login |
||
241 | ! |
||
242 | e1_input |
||
243 | e1_line 0 driver ipa |
||
244 | e1_line 0 port 0 |
||
245 | no e1_line 0 keepalive |
||
246 | network |
||
247 | network country code 1 |
||
248 | mobile network code 1 |
||
249 | short name Osmocom |
||
250 | long name Osmocom |
||
251 | auth policy accept-all |
||
252 | location updating reject cause 13 |
||
253 | encryption a5 0 |
||
254 | neci 1 |
||
255 | paging any use tch 0 |
||
256 | rrlp mode none |
||
257 | mm info 1 |
||
258 | handover 1 |
||
259 | handover window rxlev averaging 10 |
||
260 | handover window rxqual averaging 1 |
||
261 | handover window rxlev neighbor averaging 10 |
||
262 | handover power budget interval 6 |
||
263 | handover power budget hysteresis 3 |
||
264 | handover maximum distance 9999 |
||
265 | timer t3101 10 |
||
266 | timer t3103 0 |
||
267 | timer t3105 0 |
||
268 | timer t3107 0 |
||
269 | timer t3109 4 |
||
270 | timer t3111 0 |
||
271 | timer t3113 60 |
||
272 | timer t3115 0 |
||
273 | timer t3117 0 |
||
274 | timer t3119 0 |
||
275 | timer t3122 10 |
||
276 | timer t3141 0 |
||
277 | dtx-used 0 |
||
278 | subscriber-keep-in-ram 0 |
||
279 | bts 0 |
||
280 | type sysmobts |
||
281 | band GSM900 |
||
282 | cell_identity 0 |
||
283 | location_area_code 1 |
||
284 | base_station_id_code 63 |
||
285 | ms max power 15 |
||
286 | cell reselection hysteresis 4 |
||
287 | rxlev access min 0 |
||
288 | periodic location update 30 |
||
289 | radio-link-timeout 32 |
||
290 | channel allocator ascending |
||
291 | rach tx integer 9 |
||
292 | rach max transmission 7 |
||
293 | channel-descrption attach 1 |
||
294 | channel-descrption bs-pa-mfrms 5 |
||
295 | channel-descrption bs-ag-blks-res 1 |
||
296 | ip.access unit_id 1801 0 |
||
297 | oml ip.access stream_id 255 line 0 |
||
298 | neighbor-list mode automatic |
||
299 | gprs mode none |
||
300 | no force-combined-si |
||
301 | trx 0 |
||
302 | rf_locked 0 |
||
303 | arfcn 74 |
||
304 | nominal power 23 |
||
305 | max_power_red 0 |
||
306 | rsl e1 tei 0 |
||
307 | timeslot 0 |
||
308 | phys_chan_config CCCH+SDCCH4 |
||
309 | hopping enabled 0 |
||
310 | timeslot 1 |
||
311 | phys_chan_config SDCCH8 |
||
312 | hopping enabled 0 |
||
313 | timeslot 2 |
||
314 | phys_chan_config TCH/F |
||
315 | hopping enabled 0 |
||
316 | timeslot 3 |
||
317 | phys_chan_config TCH/F |
||
318 | hopping enabled 0 |
||
319 | timeslot 4 |
||
320 | phys_chan_config TCH/F |
||
321 | hopping enabled 0 |
||
322 | timeslot 5 |
||
323 | phys_chan_config TCH/F |
||
324 | hopping enabled 0 |
||
325 | timeslot 6 |
||
326 | phys_chan_config TCH/F |
||
327 | hopping enabled 0 |
||
328 | timeslot 7 |
||
329 | phys_chan_config TCH/F |
||
330 | hopping enabled 0 |
||
331 | trx 1 |
||
332 | rf_locked 0 |
||
333 | arfcn 84 |
||
334 | nominal power 23 |
||
335 | max_power_red 0 |
||
336 | rsl e1 tei 0 |
||
337 | timeslot 0 |
||
338 | phys_chan_config TCH/F |
||
339 | hopping enabled 0 |
||
340 | timeslot 1 |
||
341 | phys_chan_config TCH/F |
||
342 | hopping enabled 0 |
||
343 | timeslot 2 |
||
344 | phys_chan_config TCH/F |
||
345 | hopping enabled 0 |
||
346 | timeslot 3 |
||
347 | phys_chan_config TCH/F |
||
348 | hopping enabled 0 |
||
349 | timeslot 4 |
||
350 | phys_chan_config TCH/F |
||
351 | hopping enabled 0 |
||
352 | timeslot 5 |
||
353 | phys_chan_config TCH/F |
||
354 | hopping enabled 0 |
||
355 | timeslot 6 |
||
356 | phys_chan_config TCH/F |
||
357 | hopping enabled 0 |
||
358 | timeslot 7 |
||
359 | phys_chan_config TCH/F |
||
360 | hopping enabled 0 |
||
361 | bts 1 |
||
362 | type sysmobts |
||
363 | band GSM900 |
||
364 | cell_identity 0 |
||
365 | location_area_code 1 |
||
366 | base_station_id_code 62 |
||
367 | ms max power 15 |
||
368 | cell reselection hysteresis 4 |
||
369 | rxlev access min 0 |
||
370 | periodic location update 30 |
||
371 | radio-link-timeout 32 |
||
372 | channel allocator ascending |
||
373 | rach tx integer 9 |
||
374 | rach max transmission 7 |
||
375 | channel-descrption attach 1 |
||
376 | channel-descrption bs-pa-mfrms 5 |
||
377 | channel-descrption bs-ag-blks-res 1 |
||
378 | ip.access unit_id 1802 0 |
||
379 | oml ip.access stream_id 255 line 0 |
||
380 | neighbor-list mode automatic |
||
381 | gprs mode none |
||
382 | no force-combined-si |
||
383 | trx 0 |
||
384 | rf_locked 0 |
||
385 | arfcn 111 |
||
386 | nominal power 23 |
||
387 | max_power_red 0 |
||
388 | rsl e1 tei 0 |
||
389 | timeslot 0 |
||
390 | phys_chan_config CCCH+SDCCH4 |
||
391 | hopping enabled 0 |
||
392 | timeslot 1 |
||
393 | phys_chan_config SDCCH8 |
||
394 | hopping enabled 0 |
||
395 | timeslot 2 |
||
396 | phys_chan_config TCH/F |
||
397 | hopping enabled 0 |
||
398 | timeslot 3 |
||
399 | phys_chan_config TCH/F |
||
400 | hopping enabled 0 |
||
401 | timeslot 4 |
||
402 | phys_chan_config TCH/F |
||
403 | hopping enabled 0 |
||
404 | timeslot 5 |
||
405 | phys_chan_config TCH/F |
||
406 | hopping enabled 0 |
||
407 | timeslot 6 |
||
408 | phys_chan_config TCH/F |
||
409 | hopping enabled 0 |
||
410 | timeslot 7 |
||
411 | phys_chan_config TCH/F |
||
412 | hopping enabled 0 |
||
413 | trx 1 |
||
414 | rf_locked 0 |
||
415 | arfcn 122 |
||
416 | nominal power 23 |
||
417 | max_power_red 0 |
||
418 | rsl e1 tei 0 |
||
419 | timeslot 0 |
||
420 | phys_chan_config TCH/F |
||
421 | hopping enabled 0 |
||
422 | timeslot 1 |
||
423 | phys_chan_config TCH/F |
||
424 | hopping enabled 0 |
||
425 | timeslot 2 |
||
426 | phys_chan_config TCH/F |
||
427 | hopping enabled 0 |
||
428 | timeslot 3 |
||
429 | 2 | phys_chan_config TCH/F |
|
430 | 1 | hopping enabled 0 |
|
431 | timeslot 4 |
||
432 | phys_chan_config TCH/F |
||
433 | hopping enabled 0 |
||
434 | timeslot 5 |
||
435 | phys_chan_config TCH/F |
||
436 | hopping enabled 0 |
||
437 | timeslot 6 |
||
438 | phys_chan_config TCH/F |
||
439 | hopping enabled 0 |
||
440 | timeslot 7 |
||
441 | phys_chan_config TCH/F |
||
442 | hopping enabled 0 |
||
443 | }}} |