blob: ae177a926201d47ec67f63b94e451f05dc6d479b [file] [log] [blame]
Harald Welte75c0e082016-02-20 10:56:10 +01001== Running OsmoBSC
2
3The OsmoBSC executable (`osmo-bsc`) offers the following command-line
4arguments:
5
Neels Hofmeyr4c297e72016-10-17 06:12:13 +02006=== SYNOPSIS
Harald Welte75c0e082016-02-20 10:56:10 +01007
8*osmo-bsc* [-h|-V] [-d 'DBGMASK'] [-D] [-c 'CONFIGFILE'] [-s] [-T] [-e 'LOGLEVEL'] [-l 'IP'] [-r 'RFCTL']
9
Neels Hofmeyr4c297e72016-10-17 06:12:13 +020010=== OPTIONS
Harald Welte75c0e082016-02-20 10:56:10 +010011
12*-h, --help*::
13 Print a short help message about the supported options
14*-V, --version*::
Harald Welte16c89102019-12-01 14:23:34 +010015 Print the compile-time version number of the program
Harald Welte75c0e082016-02-20 10:56:10 +010016*-d, --debug 'DBGMASK','DBGLEVELS'*::
17 Set the log subsystems and levels for logging to stderr. This
18 has mostly been superseded by VTY-based logging configuration,
19 see <<logging>> for further information.
20*-D, --daemonize*::
21 Fork the process as a daemon into background.
22*-c, --config-file 'CONFIGFILE'*::
23 Specify the file and path name of the configuration file to be
Daniel Willmann53973262018-10-23 18:17:28 +020024 used. If none is specified, use `osmo-bsc.cfg` in the current
Harald Welte75c0e082016-02-20 10:56:10 +010025 working directory.
26*-s, --disable-color*::
27 Disable colors for logging to stderr. This has mostly been
28 deprecated by VTY based logging configuration, see <<logging>>
29 for more information.
30*-T, --timestamp*::
31 Enable time-stamping of log messages to stderr. This has mostly
32 been deprecated by VTY based logging configu- ration, see
33 <<logging>> for more information.
34*-e, --log-level 'LOGLEVEL'*::
35 Set the global log level for logging to stderr. This has mostly
36 been deprecated by VTY based logging configuration, see
37 <<logging>> for more information.
38*-l, --local='IP'*::
39 Specify the local IP address of the OsmoBSC-MGCP
40*-r, --rf-ctl 'RFCTL'*::
41 Offer a Unix domain socket for RF control at the path/filename
42 'RFCTL' in the file system.
Neels Hofmeyr21a2c812020-03-18 01:01:39 +010043
44
45=== Multiple instances
46
47Running multiple instances of `osmo-bsc` on the same host is possible if all
48interfaces (VTY, CTRL) are separated using the appropriate configuration
49options. The IP based interfaces are binding to local host by default. In order
50to separate the processes, the user has to bind those services to specific but
51different IP addresses and/or ports.
52
53The VTY and the Control interface can be bound to IP addresses from the loopback
54address range, for example:
55
56----
57line vty
58 bind 127.0.0.2
59ctrl
60 bind 127.0.0.2
61----
62
63For the following links, OsmoBSC acts as a client and does not listen/bind to a
64specific interface, and will hence not encounter conflicts for multiple instances
65running on the same interface:
66
67- The SCCP/M3UA links are established by OsmoBSC contacting an STP.
68- The MGCP link is established by OsmoMSC contacting an MGW.
69
70To run multiple OsmoBSC instances on the same A-interface (SCCP/M3UA), each BSC
Neels Hofmeyrb5a25b02020-03-18 01:01:52 +010071has to configure a distinct point-code. See <<cs7_config>>.
Neels Hofmeyr21a2c812020-03-18 01:01:39 +010072
73
74=== Configure primary links
75
Neels Hofmeyr6ab7a522020-03-20 00:44:16 +010076==== Connect to an MSC's _A_ interface
77
78===== Configure SCCP/M3UA (AoIP)
Neels Hofmeyr21a2c812020-03-18 01:01:39 +010079
80OsmoBSC acts as client to contact an STP instance and establish an SCCP/M3UA
81link.
82
83An example configuration of OsmoBSC's AoIP SCCP link, assuming the BSC at
84point-code 1.23.3 and the MSC reachable at point-code 0.23.1 via an SG
85listening for M3UA at 127.0.0.1:2905:
86
87----
88cs7 instance 0
89 point-code 1.23.3
90 asp asp-clnt-msc-0 2905 0 m3ua
91 remote-ip 127.0.0.1
92 sctp-role client
93 sccp-address msc
94 point-code 0.23.1
95msc 0
Neels Hofmeyr6e06bd32020-05-13 19:15:58 +020096 msc-addr msc
Neels Hofmeyr21a2c812020-03-18 01:01:39 +010097----
98
Neels Hofmeyrb5a25b02020-03-18 01:01:52 +010099This configuration is explained in detail in <<cs7_config>>.
100
Neels Hofmeyr6ab7a522020-03-20 00:44:16 +0100101===== Configure SCCPlite
102
103Traditionally, OsmoBSC implemented only an SCCPlite based A-interface, an
104ad-hoc standard encapsulating BSSAP in an IPA Multiplex. Since 2017, OsmoBSC
105supports primarily a proper 3GPP compliant SCCP/M3UA A-interface known as AoIP,
106by a new libosmo-sigtran implementation. In 2018, SCCPlite compatibility was
107added to libosmo-sigtran, re-enabling the option of using an SCCPlite based
108A-interface. For details, see the OsmoSTP manual, chapter "IPA / SCCPlite
109backwards compatibility".
110
111Here is an example configuration of OsmoBSC for SCCPlite, assuming the BSC at
112point-code 1.23.3 and an SCCPlite MSC listening on 127.0.0.1:5000 with own
113point-code 0.23.1:
114
115----
116cs7 instance 0
117 point-code 1.23.3
118 asp asp-clnt-msc-0 5000 0 ipa
119 remote-ip 127.0.0.1
120 as as-clnt-msc-0 ipa
121 asp asp-clnt-msc-0
122 routing-key 0 1.23.3
123 point-code override dpc 0.23.1
124 sccp-address remote_msc
125 point-code 0.23.1
126msc 0
127 msc-addr remote_msc
128----
129
Neels Hofmeyr21a2c812020-03-18 01:01:39 +0100130==== Configure MGCP to connect to an MGW
131
132OsmoBSC uses a media gateway (typically OsmoMGW) to direct RTP streams. By
133default, an MGW is expected to receive MGCP requests on the IANA-registered
134default port for MGCP (2427) on local host (127.0.0.1).
135
136Here is an example configuration for a remote MGW:
137
138----
139msc 0
140 mgw remote-ip 10.9.8.7
141 mgw remote-port 2427
142----
Neels Hofmeyr88a07892020-10-28 03:24:27 +0100143
144==== Configure Lb to connect to an SMLC
145
146Enable the Lb interface. OsmoBSC will then use the default point-codes to
147establish a connection to the SMLC.
148
149----
150smlc
151 enable
152----
153
154More detailed configuration is described in <<smlc-config>>.