blob: 842a3c7b4dea426853c7748ce5f1ff4c389be11b [file] [log] [blame]
Harald Welte3c4d0062019-03-31 18:55:18 +02001== Overview
2
3=== About this manual
4
5This manual should help you getting started with the osmo-remsim software.
6
7It will cover aspects of configuration and running osmo-remsim as well as some
8introduction about its internal architecture and external interfaces.
9
10=== About osmo-remsim
11
12osmo-remsim is a suite of software programs enabling physical/geographic
13separation of a cellular phone (or modem) on the one hand side and the
14SIM/USIM/ISIM card on the other side.
15
16Using osmo-remsim, you can operate an entire fleet of modems/phones, as
17well as banks of SIM cards and dynamically establish or remove the
18connections between modems/phones and cards.
19
20So in technical terms, it behaves like a proxy for the ISO 7816 smart
21card interface between the MS/UE and the UICC/SIM/USIM/ISIM.
22
23While originally designed to be used in context of cellular networks,
24there is nothing cellular specific in the system. It can therefore also
25be used with other systems that use contact based smart cards according
26to ISO 7816. Currently only the T=0 protocol with standard
27(non-extended) APDUs is supported. Both T=1 and extended APDU support
28can easily be added as a pure software update, should it be required at
29some future point.
30
31=== Credits
32
33osmo-remsim was originally developed by Harald Welte with contributions
34by Kevin Redon. It builds on top of pre-existing infrastructure of
35the Osmocom project, including the Osmocom SIMtrace project.
36
37Development of osmo-remsim software was funded by GSMK and sysmocom.
38
Harald Welte51cfec02019-04-03 09:18:44 +020039=== osmo-remsim-server
Harald Welte3c4d0062019-03-31 18:55:18 +020040
Harald Welte51cfec02019-04-03 09:18:44 +020041The `osmo-remsim-server` is the central element of the osmo-remsim
Harald Welte3c4d0062019-03-31 18:55:18 +020042architecture. All other elements connect to it. It maintains the
43inventory of other network elements, as well as the list of
44slot-mappings, i.e. the relationship between each given physical card
45in a bank and each card emulator attached to a phone/modem.
46
Harald Welte51cfec02019-04-03 09:18:44 +020047The tasks of `osmo-remsim-server` include:
Harald Welte3c4d0062019-03-31 18:55:18 +020048
Harald Welte51cfec02019-04-03 09:18:44 +020049* accepting incoming TCP control connections from `osmo-remsim-client` and
50 `osmo-remsim-bankd` instances
Harald Welte3c4d0062019-03-31 18:55:18 +020051* providing a RESTful JSON interface for external application logic to
52
Harald Welte51cfec02019-04-03 09:18:44 +020053=== osmo-remsim-client
Harald Welte3c4d0062019-03-31 18:55:18 +020054
Harald Welte51cfec02019-04-03 09:18:44 +020055The `osmo-remsim-client` software is co-located next to a cellular phone/modem.
Harald Welte3c4d0062019-03-31 18:55:18 +020056It typically runs on an [embedded] computer next to the phone/modem.
57
Harald Welte51cfec02019-04-03 09:18:44 +020058The tasks of `osmo-remsim-client` include:
Harald Welte3c4d0062019-03-31 18:55:18 +020059
60* interaction over USB with a device supported by the 'SIMtrace2 cardem'
61 firmware, which provides the physical interface to the phone/modem SIM
62 interface
Harald Welte51cfec02019-04-03 09:18:44 +020063* establishing a TCP connection with the `osmo-remsim-server`, in order to
Harald Welte3c4d0062019-03-31 18:55:18 +020064 enable the server to issue control commands
Harald Welte51cfec02019-04-03 09:18:44 +020065* under control of `osmo-remsim-server`, establishing a TCP connection to a
66 `osmo-remsim-bankd` in order to connect a card physically located at the
Harald Welte3c4d0062019-03-31 18:55:18 +020067 bankd.
68
Harald Welte51cfec02019-04-03 09:18:44 +020069`osmo-remsim-client` supports at this point only one phone/modem. If you have
Harald Welte3c4d0062019-03-31 18:55:18 +020070multiple phones/modems at one location, you can simply run multiple
Harald Welte51cfec02019-04-03 09:18:44 +020071instances of `osmo-remsim-client` on the same system, one for each phone/modem.
Harald Welte3c4d0062019-03-31 18:55:18 +020072
Harald Welte51cfec02019-04-03 09:18:44 +020073=== osmo-remsim-bankd
Harald Welte3c4d0062019-03-31 18:55:18 +020074
Harald Welte51cfec02019-04-03 09:18:44 +020075The `osmo-remsim-bankd` software is co-located next to a bank of SIM cards.
Harald Welte3c4d0062019-03-31 18:55:18 +020076
Harald Welte51cfec02019-04-03 09:18:44 +020077The tasks of `osmo-remsim-bankd` include:
Harald Welte3c4d0062019-03-31 18:55:18 +020078
79* interaction with the actual card reader hardware. At this point, only
80 PC/SC based readers are supported, with 1 to 255 slots per reader.
Harald Welte51cfec02019-04-03 09:18:44 +020081* establishing a TCP connection with the `osmo-remsim-server`, in order to
Harald Welte3c4d0062019-03-31 18:55:18 +020082 enable the server to issue control commands
Harald Welte51cfec02019-04-03 09:18:44 +020083* running a TCP server where TCP connections from `osmo-remsim-client`
Harald Welte3c4d0062019-03-31 18:55:18 +020084 instances are accepted and handled.
85
86