blob: 06be4bad2a31aa03974c683ff9629bca71e2bfd4 [file] [log] [blame]
Neels Hofmeyr8c8ebb12017-09-18 16:19:30 +02001[[net]]
2== Configuring the Core Network
3
4The core network parameters are configured by the config file (as in `osmo-msc
5-c osmo-msc.cfg`). The config file is parsed by the VTY, which is also
6available via telnet in the running `osmo-msc` instance. Be aware that even
7though you may be able to change these parameters without restarting
8`osmo-msc`, some may not take immediate effect, and it is safest to use the
9config file to have these parameters set at startup time.
10
11The core network parameters are found in the `config` / `network`.
12
13A full reference to the available commands can be found in the _OsmoMSC VTY
14reference manual_ <<vty-ref-osmomsc>>. This section describes only the most
15commonly used settings.
16
17Here is an overview of the config items, described in more detail below:
18
19----
20network
21 network country code 262
22 mobile network code 89
23 mm info 1
24 short name OsmoMSC
25 long name OsmoMSC
26 authentication required
27 encryption a5 3
28----
29
30[TIP]
31====
32Use the telnet VTY interface to query the current configuration of a running
33`osmo-msc` process:
34
35----
36$ telnet localhost 4254
37OsmoMSC> enable
38OsmoMSC# show running-config
39----
40
41Some parameters may be changed without restarting `osmo-msc`. To reach the
42`network` node, enter:
43
44----
45OsmoMSC> enable
46OsmoMSC# configure terminal
47OsmoMSC(config)# network
48OsmoMSC(config-net)# short name Example-Name
49OsmoMSC(config-net)# exit
50OsmoMSC(config)#
51----
52
53The telnet VTY features tab-completion as well as context sensitive help shown
54when entering a `?` question mark.
55
56You can always use the `list` VTY command or enter `?` on the blank prompt to
57get a list of all possible commands at the current node.
58====
59
60
61=== MCC/MNC
62
63The key identities of every GSM PLMN is the Mobile Country Code and the Mobile
64Network Code. They are identical over the entire network. In most cases, the
65MCC/MNC will be allocated to the operator by the respective local regulatory
66authority. For example, to set the MCC/MNC of 262-89, have this in your
67osmo-msc.cfg:
68
69----
70network
71 network country code 262
72 mobile network code 89
73----
74
75
76=== Configuring MM INFO
77
78The _MM INFO_ procedure can be used after a successful _LOCATION UPDATE_ in
79order to transmit the human-readable network name as well as local time zone
80information to the MS. By default, _MM INFO_ is not active, i.e. `0`. Set to `1`
81to activate this feature:
82
83----
84network
85 mm info 1
86 short name OsmoMSC
87 long name OsmoMSC
88----
89
90[NOTE]
91====
92Not all phones support the MM INFO procedure. If a phone is not
93factory-programmed to contain the name for your MCC/MNC, it will likely only
94provide a numeric display of the network name, such as _262-89_, or show the
95country code transformed into a letter, such as _D 89_.
96====
97
98The time information transmitted is determined by the local system time of the
99operating system on which OsmoMSC is running.
100
101
102=== Authentication
103
104Authorized subscribers must be entered in the HLR database, see the _OsmoHLR
105reference manual_ <<userman-osmohlr>>. If authentication tokens (such as KI for
1062G, or K and OP/OPC for UMTS) are present in the HLR, OsmoMSC will only attach
107a subscriber after successful authentication.
108
109If no authentication keys are present in the HLR for a given subscriber,
110OsmoMSC will attach the subscriber _without_ authentication. You can reject
111subscribers that lack authentication info in the HLR with this setting:
112
113----
114network
115 authentication required
116----
117
118=== Ciphering
119
120To enable ciphering on the radio link, authentication must take place first:
121the Kc resulting from authentication is the key used for ciphering. Hence, all
122subscribers must have authentication tokens available in the HLR for ciphering.
123
124The MS, BTS and MSC must agree on a ciphering algorithm to use.
125
126- The MS sends its supported ciphering algorithms via Classmark IEs during
127 Location Updating.
128- Typically the BSC needs to know which A5 ciphers are supported by connected
129 BTSes.
130- Finally, OsmoMSC may impose that specific A5 ciphers shall not be considered.
131
132It is the responsibility of the BSC to then pick an A5 cipher that satisfies
133all requirements.
134
135- In OsmoMSC, A5/0 means that ciphering is turned off.
136+
137----
138network
139 encryption a5 0
140----
141
142- A5/1 and A5/3 are currently supported by Osmocom.
143+
144----
145network
146 encryption a5 3
147----
148
149- Never use A5/2: it is an "export grade cipher" and has been deprecated for
150 its low ciphering strength.
151
152NOTE: At the time of writing, OsmoMSC supports setting only a single A5 cipher,
153while it should be able to allow a set of ciphers. This is subject to ongoing
154development.