blob: 2798b2f27f29e8816be5996526ff6ae61d1958c0 [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 Weltee18069a2020-03-04 15:24:07 +010055The `osmo-remsim-client` software is co-located next to the _user of the card_
56which traditionally is a phone or modem. However, there are other flavors
57of clients available, too. This is for example useful if existing software
58wants to interface remote smart cards, rather than those physically inserted
59into a local reader next to the PC running that application.
60
61In the classic phone / modem use case, osmo-remsim-client
62typically runs on an [embedded] computer next to the phone/modem.
Harald Welte3c4d0062019-03-31 18:55:18 +020063
Harald Welte51cfec02019-04-03 09:18:44 +020064The tasks of `osmo-remsim-client` include:
Harald Welte3c4d0062019-03-31 18:55:18 +020065
Harald Weltee18069a2020-03-04 15:24:07 +010066* interaction with the user application. For phone/modem, that's
67 over USB with a device supported by the 'SIMtrace2 cardem'
Harald Welte3c4d0062019-03-31 18:55:18 +020068 firmware, which provides the physical interface to the phone/modem SIM
Harald Weltee18069a2020-03-04 15:24:07 +010069 interface (ISO 7816-3).
Harald Welte51cfec02019-04-03 09:18:44 +020070* establishing a TCP connection with the `osmo-remsim-server`, in order to
Harald Welte3c4d0062019-03-31 18:55:18 +020071 enable the server to issue control commands
Harald Welte51cfec02019-04-03 09:18:44 +020072* under control of `osmo-remsim-server`, establishing a TCP connection to a
73 `osmo-remsim-bankd` in order to connect a card physically located at the
Harald Welte3c4d0062019-03-31 18:55:18 +020074 bankd.
75
Harald Welte51cfec02019-04-03 09:18:44 +020076`osmo-remsim-client` supports at this point only one phone/modem. If you have
Harald Welte3c4d0062019-03-31 18:55:18 +020077multiple phones/modems at one location, you can simply run multiple
Harald Welte51cfec02019-04-03 09:18:44 +020078instances of `osmo-remsim-client` on the same system, one for each phone/modem.
Harald Welte3c4d0062019-03-31 18:55:18 +020079
Harald Welte51cfec02019-04-03 09:18:44 +020080=== osmo-remsim-bankd
Harald Welte3c4d0062019-03-31 18:55:18 +020081
Harald Welte51cfec02019-04-03 09:18:44 +020082The `osmo-remsim-bankd` software is co-located next to a bank of SIM cards.
Harald Welte3c4d0062019-03-31 18:55:18 +020083
Harald Welte51cfec02019-04-03 09:18:44 +020084The tasks of `osmo-remsim-bankd` include:
Harald Welte3c4d0062019-03-31 18:55:18 +020085
86* interaction with the actual card reader hardware. At this point, only
87 PC/SC based readers are supported, with 1 to 255 slots per reader.
Harald Welte51cfec02019-04-03 09:18:44 +020088* establishing a TCP connection with the `osmo-remsim-server`, in order to
Harald Welte3c4d0062019-03-31 18:55:18 +020089 enable the server to issue control commands
Harald Welte51cfec02019-04-03 09:18:44 +020090* running a TCP server where TCP connections from `osmo-remsim-client`
Harald Welte3c4d0062019-03-31 18:55:18 +020091 instances are accepted and handled.
92
93