Project

General

Profile

Osmocom Network In The Box » History » Version 67

neels, 11/11/2017 04:11 AM

1 23 neels
{{>toc}}
2
3 29 neels
h1. WIP
4
5 31 neels
*This wiki page is still new and in an alpha state. We're still checking whether it is consistent and contains all the important information.*
6 29 neels
7 1 neels
h1. Osmocom Network In The Box
8
9 22 neels
This is a brief guide to the most basic and minimal setup of an Osmocom 2G and/or 3G network for voice and data services. It is a good starting point for newcomers to familiarize with the software, and to expand upon by the [[Osmocom Manuals]] and other wiki pages.
10 21 neels
11 2 neels
h2. OsmoNITB R.I.P., long live the Network In The Box
12 1 neels
13 2 neels
Historically, Osmocom offered the [[OsmoNITB:]] "Network-In-The-Box" as an actual single program. It was a useful simplification at the time, but in 2017, Osmocom have decided to split OsmoNITB into programs more closely resembling traditional network architecture. It is recommended to use the new separate components instead of the OsmoNITB, since active development focus has moved there.
14 1 neels
15 4 neels
It is still very much possible to run a complete Osmocom core network in one "box". For example, a sysmoBTS can run the entire core network on the same hardware that drives the TRX, making it a complete network in actually one single box. At the same time, having separate components also allows scaling to large deployments, with properly distributed load and a central subscriber database.
16 1 neels
17 2 neels
To migrate from OsmoNITB to the new separate programs, see the [[OsmoNITB Migration Guide]].
18
19
h2. Part of this Complete Network
20
21 32 neels
Assuming that you have your radio hardware ready (a BTS, a femto cell or an SDR driven by osmo-trx), the core network consists of separate programs providing voice/SMS/USSD ("circuit-switched" or CS) and data ("packet-switched" or PS) services.
22 2 neels
23 32 neels
Here is a table of the components you need:
24 1 neels
25 32 neels
|\4. *Required for*  |/3. *Program* |/3. *Description* |
26
|\2. *2G*  |\2. *3G* |
27
| *CS* | *PS* | *CS* | *PS* |
28
| ✔ | ✔ | ✔ | ✔ | [[OsmoHLR:]] | Home Location Register, stores subscriber IMSI, phone number and auth tokens. |
29
| ✔ | (1) | ✔ | (1) | [[OsmoMSC:]] | Mobile Switching Center, handles signalling, i.e. attach/detach of subscribers, call establishment, messaging (SMS and USSD). |
30
| ✔ |   | ✔ |   | [[OsmoMGW:]] | Media Gateway, is instructed by the MSC and/or the BSC to direct RTP streams for active voice calls. |
31
| ✔ | ✔ | ✔ | ✔ | [[OsmoSTP:]] | Signal Transfer Point, routes SCCP messages between MSC, BSC, HNBGW and for 3G also the SGSN. |
32
| ✔ | (1) |   |   | [[OsmoBSC:]] | 2G Base Station Controller, manages logical channels and other lower level aspects for one or more 2G BTS; it is technically part of the BSS and not the "core network". |
33
|   |   | ✔ | ✔ | [[OsmoHNBGW:]] | 3G HomeNodeB Gateway, receives the Iuh protocol from a 3G femto cell and forwards to MSC and SGSN by SCCP/M3UA via OsmoSTP. |
34
|   | ✔ (2) |   | ✔ (2) | [[OpenGGSN:|OsmoGGSN]] | Gateway GPRS Support Node, "opens" GTP tunnels received from SGSNs to internet uplink. |
35
|   | ✔ |   | ✔ | [[OsmoSGSN:]] | Serving GPRS Support Node, handles signalling, i.e. attach/detach of subscribers and PDP contexts. |
36
| ✔ | (1) |   |   | [[OsmoBTS:]] | for 2G networks, drives the TRX and ties to the BSC via Abis-interface. |
37
|   | ✔ |   |   | [[OsmoPCU:]] | for 2G networks, a component closely tied to the BTS, drives the TRX for PS timeslots and ties to the SGSN via Gb-interface. |
38 37 neels
|   |   | ✔ | ✔ | hNodeb | 3rd party 3G femto cell hardware to connect to OsmoHNBGW via Iuh |
39 5 neels
40 32 neels
1: PS is always an _addition_ to CS: even though these components do not handle PS requests, you need to have these to be able to setup and register with a network, which is a prerequisite for data services.
41 28 neels
42 32 neels
2: For the GGSN to successfully route packets to an internet uplink, the system needs to have
43 28 neels
* IP-forwarding enabled,
44
* IP-masquerading set up,
45
* a usable tunnel device set up.
46
47
<pre>
48
echo 1 > /proc/sys/net/ipv4/ip_forward
49 33 neels
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
50 34 neels
# Replace 'eth0' with your ethernet device name, or use '*' for all.
51
</pre>
52 18 neels
53 64 neels
h1. Topology
54 55 neels
55
{{graphviz_link()
56
digraph G {
57
  rankdir = LR;
58 56 neels
  
59
  MS [label="MS\n(2G phone)"]
60
  UE [label="UE\n(3G phone)"]
61 1 neels
62 56 neels
  subgraph cluster_bts {
63
    BTS [rank="min"]
64
    PCU [rank="min"]
65
  }
66
67
  subgraph cluster_msc_mgw {
68 59 neels
    label=MGCP;style=dotted
69 56 neels
    MSC
70 57 neels
    MGW1 [label="MGW"]
71 56 neels
  }
72
73
  subgraph cluster_bsc_mgw {
74 59 neels
    label=MGCP;style=dotted
75 56 neels
    BSC
76 57 neels
    MGW2 [label="MGW"]
77 1 neels
  }
78
79 59 neels
  hNodeB [shape="box",label="hNodeB\n(3G femto cell)"]
80
81 61 neels
  MS -> BTS [label="Um"]
82 65 neels
  MS -> PCU [style="dashed"]
83 60 neels
 
84 56 neels
  BTS -> BSC [label="Abis/IP"]
85
  STP [label="STP\n(SCCP/M3UA)"]
86
  BSC -> STP -> MSC [label="A"]
87
  {MSC, SGSN} -> HLR [label="GSUP"]
88 62 neels
  UE -> hNodeB [label="Uu"]
89 65 neels
  UE -> hNodeB [style="dashed"]
90 56 neels
  hNodeB -> HNBGW [label="Iuh"]
91
  HNBGW -> STP -> MSC [label="IuCS"]
92 58 neels
  HNBGW -> STP -> SGSN [label="IuPS",style="dashed"]
93 61 neels
  PCU -> SGSN [label="Gb",style="dashed"]
94 58 neels
  SGSN -> GGSN [label="GTP-C",style="dashed"]
95
  SGSN -> GGSN [label="GTP-U(2G)",style="dashed"]
96
  hNodeB -> GGSN [label="GTP-U(3G)",style="dashed"]
97
  GGSN -> internet [label="tun",style="dashed"]
98 56 neels
99 1 neels
  rMGW [label="remote MGW"]
100 56 neels
  BTS -> MGW2 -> MGW1 -> rMGW [label="RTP"]
101 59 neels
  MGW1 -> MGW1 [label="RTP"]
102 1 neels
  hNodeB -> MGW1 [label="IuUP/RTP"]
103 59 neels
104
  A, B, C, D [style="invisible"]
105 63 neels
  A -> B [label="data (PS)",style="dashed"]
106
  C -> D [label="voice (CS)"]
107 56 neels
108 55 neels
}
109
}}
110
111 5 neels
h1. Have to Know
112 10 neels
113
Each program features a detailed [[Osmocom Manuals|user manual]], your primary source of information to expand on the setup described here.
114 24 laforge
115 5 neels
Osmocom offers [[Binary_Packages|compiled packages for various distributions]]. If you're up to it, you may also [[Build from Source]].
116
117
Each Osmocom program typically has
118
119 1 neels
* a distinct configuration file;
120 25 neels
* a VTY telnet console for live interaction;
121 1 neels
* a CTRL interface for live interaction from 3rd party programs.
122 18 neels
123
See [[Port Numbers]] to find out which program runs VTY on which port.
124
125
h1. Configuration Examples
126 5 neels
127 6 neels
h2. OsmoHLR
128
129 67 neels
Home Location Register, stores subscriber IMSI, phone number and auth tokens. This is where you configure who is allowed on your network and who has which phone number.
130
131 50 neels
osmo-hlr will automatically bootstrap an empty subscriber database. See the [[Osmocom Manuals|manual]] on how to add one or more subscribers -- if you don't know your IMSI, it can be useful to attempt a connection and watch the OsmoHLR log for a rejected IMSI.
132 6 neels
133 50 neels
While you do need one, your configuration file may actually remain empty. This will serve GSUP on localhost (127.0.0.1), sufficient for a Network In The Box with MSC and SGSN on the same machine as the HLR.
134 6 neels
135 48 neels
*osmo-hlr.cfg*
136
<pre>
137
# empty
138
</pre>
139
140 6 neels
h2. OsmoMSC
141 1 neels
142 67 neels
Mobile Switching Center, handles signalling, i.e. attach/detach of subscribers, call establishment, messaging (SMS and USSD). The OsmoMSC is your central "manager" of the network.
143 66 neels
144 6 neels
The VLR component of OsmoMSC needs to connect to the OsmoHLR's GSUP server to know which subscribers are authorized. By default, it will connect to OsmoHLR on localhost, no explicit config needed.
145 26 neels
146 6 neels
To be reachable by OsmoBSC and OsmoHNBGW, OsmoMSC needs an SCCP point code, and it needs to connect to OsmoSTP to make itself known to SCCP routing.
147 7 neels
148 6 neels
* There is a default point code, currently 0.23.1 (in 8.8.3 point code format).
149
* OsmoMSC will by default look for OsmoSTP on localhost's M3UA port, 2905.
150 7 neels
151 51 neels
To direct RTP streams, OsmoMSC needs an OsmoMGW instance (see OsmoMGW below).
152 38 neels
153 51 neels
You only need to set up your MCC, MNC, and how to reach/use the MGW.
154 43 neels
155 49 neels
*osmo-msc.cfg*
156 38 neels
<pre>
157
network
158 53 neels
 network country code 901
159
 mobile network code 70
160 43 neels
msc
161 48 neels
 mgw remote-ip 192.168.0.5
162 45 neels
 mgw endpoint-range 1 32
163 38 neels
</pre>
164 47 neels
165 1 neels
h2. OsmoMGW
166
167 67 neels
Media Gateway, is instructed by the MSC and/or the BSC to direct RTP streams for active voice calls. The Media Gateway receives instructions in the form of MGCP messages from OsmoMSC/OsmoBSC. It forwards RTP streams directly between BTS, femto cells and remote endpoints, e.g. other MGW instances, and its job is to transcode between codecs (future).
168 52 neels
169 47 neels
You need an OsmoMGW to serve OsmoMSC's MGCP requests, and an OsmoMGW to serve OsmoBSC's MGCP requests. In fact, these two can be served by one single OsmoMGW instance. If you would like to keep two separate OsmoMGW instances, you need to take care that they don't attempt to bind to identical ports on the same IP address (for MGCP, but also for VTY and CTRL interfaces).
170
171
Consider that you have a 2G network with an external BTS (say a sysmoBTS), which means that you need your OsmoBSC's MGW instance to be reachable on a public interface. So far the MSC's MGW can be on a local loopback interface, it only needs to be reachable by the BSC's MGW and by the MSC.
172
173
If you also have a 3G femto cell, then the MSC's MGW instance also needs to be on a public interface. At this point you either need two public interface addresses, or you need to put one of the MGWs on a different MGCP port.
174
175
If you use one OsmoMGW for both BSC and MSC, there are no port conflicts, but you need to take care that MSC and BSC use differing endpoint identifiers, or they will interfere with each others' RTP stream configurations.
176
177
To increase the likelihood that your first setup will work out, below examples pick distinct endpoint ranges so that MSC and BSC could use the same MGW instance, while at the same time provide config files that allow running two MGWs on the same public IP address.
178
179
h3. OsmoMGW for OsmoMSC
180 1 neels
181 9 neels
*NOTE: Currently, OsmoMSC still requires the legacy osmo-bsc_mgcp program, which will move to the new osmo-mgw soon. osmo-bsc_mgcp is still available from osmo-mgw.git. For osmo-bsc_mgcp, you can use the identical config as shown for the MSC's MGW here.*
182 47 neels
183 9 neels
* In a setup that truly runs in one box (e.g. sysmoBTS or osmo-trx with co-located core network), this may be localhost (127.0.0.1), which is the default, and your config file may omit the 'bind ip'.
184
* With a separate BTS and/or RNC (e.g. 3G femto cell or nanoBTS), make sure to configure an IP address that is reachable by the hNodeB and BTS:
185 1 neels
186 48 neels
*osmo-mgw-for-msc.cfg*
187 1 neels
<pre>
188 40 neels
mgcp
189 47 neels
 bind ip 192.168.0.5
190
 number endpoints 64
191 1 neels
</pre>
192
193 47 neels
h3. OsmoMGW for OsmoBSC
194 1 neels
195 47 neels
OsmoBSC also requires an OsmoMGW instance to run alongside it. In a setup where OsmoBSC and OsmoMGW run on the same box, they may in fact share the same OsmoMGW instance, as long as BSC and MSC use different endpoint identifiers.
196 1 neels
197 47 neels
It is semantically more clear to run a separate OsmoMGW instance for the OsmoBSC, which then needs to not interfere with the other MGW's ports, for example:
198 1 neels
199
*osmo-mgw-for-bsc.cfg*
200 41 neels
<pre>
201 40 neels
mgcp
202 47 neels
 bind ip 192.168.0.5
203
 # default port, used for MSC's MGW, is 2427
204
 bind port 12427
205
 number endpoints 64
206 41 neels
line vty
207 47 neels
 # default VTY interface, used for MSC's MGW, is 127.0.0.1
208 41 neels
 bind 127.0.0.2
209 40 neels
</pre>
210
211 9 neels
Note that osmo-bsc.cfg below sets the 'mgw remote-port' to the 'bind port' configured here (the method to run two MGW on the same public IP address), and picks a different 'mgw endpoint' range than the OsmoMSC (the method to use the same MGW for both BSC and MSC) -- these are two separate, redundant measures, and you usually would pick only one of them.
212 1 neels
213 9 neels
h2. OsmoSTP
214
215 67 neels
Signal Transfer Point, acts as a server for routing SCCP messages. OsmoMSC, OsmoBSC, OsmoHNBGW and OsmoSGSN contact OsmoSTP and announce their own point code, after which they may instruct OsmoSTP to route SCCP messages to each other by these point codes.
216 9 neels
217
The basic configuration that permits dynamic routing is:
218
219
*osmo-stp.cfg*
220
<pre>
221
cs7 instance 0
222
 xua rkm routing-key-allocation dynamic-permitted
223
 listen m3ua 2905
224 11 neels
  accept-asp-connections dynamic-permitted
225
</pre>
226 1 neels
227
h2. OsmoBSC
228 11 neels
229 67 neels
2G Base Station Controller, manages logical channels and other lower level aspects for one or more 2G BTS. The BSC tells the MSC what the phones would like to do, and in turn the MSC tells the BSC to establish channels, page phones, and take care of the lower level BTS maintenance.
230
231 1 neels
OsmoBSC needs to register with OsmoSTP, and contact the MSC by its point code.
232 11 neels
233 48 neels
OsmoBSC needs to contact an OsmoMGW to direct RTP streams between BTS and the MSC's MGW, as discussed above under "OsmoMGW".
234 42 neels
235 11 neels
OsmoBSC also needs complete configuration of all connected BTS. This example shows configuration for a sysmoBTS.
236 15 neels
237
Furthermore, some network properties need to be set.
238
239 11 neels
The 'gprs mode' determines whether packet switched access will be enabled. 'gprs mode none' switches off data services, as osmo-bts will not contact osmo-pcu to establish data service. This is a configuration without packet switched service:
240 1 neels
241
*osmo-bsc.cfg* for voice only
242
<pre>
243
network
244 48 neels
 network country code 901
245
 mobile network code 70
246 43 neels
 mm info 1
247 11 neels
 short name OsmoBSC
248
 long name OsmoBSC
249
 bts 0
250
  type sysmobts
251
  band GSM-1800
252 1 neels
  location_area_code 23
253 11 neels
  ip.access unit_id 1800 0
254
  trx 0
255
   rf_locked 0
256
   arfcn 868
257
   nominal power 23
258 48 neels
   max_power_red 20
259 11 neels
   timeslot 0
260
    phys_chan_config CCCH+SDCCH4
261
   timeslot 1
262
    phys_chan_config SDCCH8
263
   timeslot 2
264
    phys_chan_config TCH/H
265
   timeslot 3
266
    phys_chan_config TCH/H
267
   timeslot 4
268
    phys_chan_config TCH/H
269 1 neels
   timeslot 5
270
    phys_chan_config TCH/H
271
   timeslot 6
272
    phys_chan_config TCH/H
273
   timeslot 7
274
    phys_chan_config TCH/H
275 48 neels
e1_input
276
 e1_line 0 driver ipa
277 15 neels
msc 0
278 48 neels
 mgw remote-ip 192.168.0.5
279
 mgw remote-port 12427
280
 mgw endpoint-range 33 64
281
 allow-emergency deny
282
 codec-list hr3
283 15 neels
</pre>
284
285
To allow data service, set a 'gprs mode gprs' or 'gprs mode egprs', and configure PDCH timeslots. Traditionally, a fixed amount of TCH timeslots for voice and PDCH timeslots for data service are configured. OsmoBTS also supports two types of dynamic timeslots, as described in the "Abis manual":http://ftp.osmocom.org/docs/latest/osmobts-abis.pdf, chapter "Dynamic Channel Combinations". The following is a configuration with data service based on Osmocom style dynamic timeslots:
286
287
288 43 neels
*osmo-bsc.cfg* for voice and data service
289 48 neels
<pre>
290 15 neels
# todo
291 1 neels
</pre>
292 12 neels
293 1 neels
h2. OsmoHNBGW
294
295 67 neels
3G HomeNodeB Gateway, receives the Iuh protocol from a 3G femto cell, separates it into IuCS and IuPS and forwards to the MSC and SGSN.
296 16 neels
297
OsmoHNBGW needs to connect to OsmoSTP for routing, and needs to know the MSC and SGSN point codes.
298 12 neels
299
It must also be reachable by the hNodeB, hence its Iuh must typically run on a public IP, not a loopback address like 127.0.0.1.
300
301
*osmo-hnbgw.cfg*
302
<pre>
303
cs7 instance 0
304
 ! OsmoHNBGW's own local point code
305
 point-code 0.3.0
306
 ! Address book entries, used below
307
 sccp-address msc
308
  point-code 0.23.1
309
 sccp-address sgsn
310
  point-code 0.23.2
311
hnbgw
312
 iuh
313 48 neels
  local-ip 192.168.0.5
314 12 neels
 iucs
315
  remote-addr msc
316 13 neels
 iups
317 1 neels
  remote-addr sgsn
318 13 neels
</pre>
319 1 neels
320
h2. OsmoGGSN
321 13 neels
322 67 neels
Gateway GPRS Support Node, "opens" GTP tunnels received from SGSNs to internet uplink. To provide packet switched service, OsmoGGSN must offer GTP service to the OsmoSGSN.
323 13 neels
324 67 neels
Notably, both OsmoGGSN and OsmoSGSN must use identical port numbers, which an intrinsic requirement of the GTP protocol. Hence they must not run on the same IP address. It is sufficient to, for example, run OsmoGGSN on 127.0.0.2, and OsmoSGSN's GTP on 127.0.0.1.
325
326 13 neels
OsmoGGSN maintains a gsn_restart counter, to be able to reliably communicate to the SGSN that it has restarted. This is kept in the 'state-dir', by default in /tmp.
327
328
It also needs access to a tun device. This may be configured ahead of time, so that OsmoGGSN does not need root privileges. If run with 'sudo', OsmoGGSN may also create its own tun device. In below example, the 'tun4' device has been created ahead of time. IPv4 operation is enabled by default, but for future compatibility, it is good to indicate that explicitly.
329 1 neels
330 14 neels
OsmoGGSN furthermore indicates DNS servers, as well as an IPv4 address range to assign to subscribers' PDP contexts.
331 13 neels
332
*osmo-ggsn.cfg*
333
<pre>
334
ggsn ggsn0
335
 gtp bind-ip 127.0.0.2
336
 apn internet
337
  tun-device tun4
338
  type-support v4
339
  ip dns 0 192.168.100.1
340 1 neels
  ip dns 1 8.8.8.8
341
  ip ifconfig 176.16.222.0/24
342
  ip prefix dynamic 176.16.222.0/24
343 14 neels
</pre>
344
345
h2. OsmoSGSN
346 67 neels
347
Serving GPRS Support Node, handles signalling, i.e. attach/detach of subscribers and PDP contexts for data services.
348 14 neels
349
OsmoSGSN needs to reach the GGSN to establish GTP tunnels for subscribers. It must have a separate GTP IP address from OsmoGGSN, as mentioned before.
350
351
For 2G, OsmoSGSN needs to be reachable by the PCU, and needs a public IP for the Gb interface if it is not running directly on the BTS hardware (e.g. on sysmoBTS or when using osmo-trx). For 2G operation, SGSN and GGSN may both use a local IP address for GTP, as long as they differ (e.g. 127.0.0.1 and 127.0.0.2).
352
353
For 3G, OsmoSGSN needs to be reachable by both the HNBGW for IuPS as well as by the hNodeB for GTP, i.e. it definitely needs to have a public IP address for the GTP port. IuPS may remain local if both HNBGW and SGSN are on the same box.
354
355
Finally, OsmoSGSN needs access to OsmoHLR to access subscriber data. Set 'auth-policy remote' to use the HLR for subscriber authorization. The default 
356
357 1 neels
*osmo-sgsn.cfg*
358
<pre>
359 14 neels
sgsn
360
 gtp local-ip 192.168.0.3
361
 ggsn 0 remote-ip 192.168.0.142
362 1 neels
 auth-policy remote
363 14 neels
 gsup remote-ip 127.0.0.1
364 13 neels
</pre>
365 17 neels
366 18 neels
h1. Running Examples
367 17 neels
368
Each Osmocom program comes with a systemd service file. It is recommended to place config files in /etc/osmocom/ and launch the individual components using systemd.
369
370
When installed from debian or opkg feeds, you will find the systemd service files in /lib/systemd/system/.
371
372
Re/starting and stopping then works like this:
373
374
<pre>
375
systemctl restart osmo-hlr
376
systemctl stop osmo-hlr
377 1 neels
</pre>
378
379
It can be useful to have an @osmo-all@ script to re/start or stop all components at once, edit to pick yours:
380 36 neels
381
*osmo-all* script
382
<pre>
383
#!/bin/sh
384
cmd="${1:-start}"
385
set -ex
386
systemctl $cmd osmo-hlr osmo-msc osmo-mgw osmo-ggsn osmo-sgsn osmo-stp osmo-bsc osmo-hnbgw osmo-bts-sysmo osmo-pcu 
387
</pre>
388
389
which allows
390
391
<pre>
392
./osmo-all restart
393
./osmo-all status
394
./osmo-all stop
395
</pre>
396
397 1 neels
For illustration, the manual command invocations for the components would look like this:
398
399
<pre>
400
osmo-hlr -l hlr.db -c osmo-hlr.cfg
401
osmo-msc -c osmo-msc.cfg
402 48 neels
osmo-mgw -c osmo-mgw-for-msc.cfg
403
osmo-mgw -c osmo-mgw-for-bsc.cfg
404 36 neels
osmo-ggsn -c osmo-ggsn.cfg
405 1 neels
osmo-sgsn -c osmo-sgsn.cfg
406
osmo-stp -c osmo-stp.cfg
407
osmo-bsc -c osmo-bsc.cfg
408 36 neels
osmo-hnbgw -c osmo-hnbgw.cfg
409
# on a 2G sysmoBTS:
410
osmo-bts-sysmo -c osmo-bts.cfg -s -M
411 18 neels
osmo-pcu -c osmo-pcu.cfg
412
</pre>
413
414
h1. Logging Examples
415
416
Osmocom programs have a common logging mechanism, configurable by the config files as well as the telnet VTY.
417
418
Depending on the system's logging configuration, logs may by default be visible in /var/log/daemon.log, or by using journalctl:
419
420
<pre>
421
journalctl -f -u osmo-hlr
422
</pre>
423 35 neels
424 19 neels
When journalctl is used, it may be necessary to enable it first, e.g. by setting "Storage=volatile" in /etc/systemd/journald.conf followed by a 'systemctl restart systemd-journald'; you may also need to 'systemctl unmask systemd-journald.service systemd-jounald.socket'. Logging will only start appearing for components that were restarted after these changes.
425
426
A sure way to see the logs is to connect to the program's telnet VTY and enable logging on the VTY session -- this way you do not modify the application's default logging, but create a separate logging target for your telnet VTY session:
427
428
<pre>
429
$ telnet localhost 4254
430
OsmoMSC> logging enable 
431
OsmoMSC> logging level ?
432
  all      Global setting for all subsystems
433
  rll      A-bis Radio Link Layer (RLL)
434
  cc       Layer3 Call Control (CC)
435 35 neels
  mm       Layer3 Mobility Management (MM)
436
  [...]
437 19 neels
OsmoMSC> logging level all ?
438 35 neels
everything debug      info       notice     error      fatal      
439 19 neels
OsmoMSC> logging level all debug 
440 20 neels
OsmoMSC> logging filter all 1
441
</pre>
442 1 neels
443
You will see logging output on your telnet console immediately. Note that the VTY prompt is still listening, so you may at any time issue 'logging filter all 0' to switch off logging, and be able to type commands without being cluttered by ongoing log output.
Add picture from clipboard (Maximum size: 48.8 MB)