README.md 2.34 KB
Newer Older
1 2 3 4
# ORS Amarisoft software release

How to deploy from scratch

5 6 7 8 9 10
  1. Install Amarisoft binaries in /opt/amarisoft/v20XX-XX-XX with folders:
     * enb: needs to containt libraries from trx_sdr
     * trx_sdr
     * mme
  2. Install ors playbook
  3. Deploy this SR
11 12 13

## Generated buildout configurations and json input schemas

14
Since there are multiple ors-amarisoft softwares releases and software types, the following files are
15 16
generated with jinja2 templates with the render-templates script before being pushed to gitlab:

17 18 19 20
 * instance-tdd-enb-input-schema.json
 * instance-fdd-enb-input-schema.json
 * software-fdd.cfg
 * software-tdd.cfg.json
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
21
 * instance-fdd-ue-nr-input-schema.json     XXX kill x-ue
22 23 24 25 26 27 28 29 30
 * instance-tdd-gnb-input-schema.json
 * instance-tdd-ue-nr-input-schema.json
 * test/testFDD.py
 * test/testTDD.py
 * software-tdd.cfg
 * instance-tdd-ue-lte-input-schema.json
 * instance-fdd-gnb-input-schema.json
 * software-fdd.cfg.json
 * instance-fdd-ue-lte-input-schema.json
31 32 33 34 35 36

These files should not be modified directly, and the render-templates scripts should be run along
with update-hash before each commit.

## Services

37
We run 2 binaries from Amarisoft LTE stack:
38 39 40 41 42 43

 * **lteenb** - eNodeB software is the server accepting connection from UI (user interfaces)
 * **ltemme** - Mobile Management Entity in other words core network which handles orchestration of 
   eNodeBs in case UI switches from one to another
 
Those binaries are started in foreground, originaly in screen. We don't want the binaries inside one
44
screen because then we cannot easily control their resource usage. Thus we make 2 on-watch services.
45

46 47 48 49
### ENB / GNB

Is the eNodeB (4G) or gNodeB (5G). This binary handles the radio protocols and sends and receives
IQ samples to trx_sdr driver.
50 51 52 53 54 55 56 57 58 59 60 61 62 63

### MME

Is the core network.  This binary keep track of UEs and to which eNodeB they are currently connected.
It reroutes traffic when UE switches between eNodeBs.
MME also serves as a service bus thus all services must register within MME. 

## Gotchas!

**trx_sdr.so** provided from archive MUST be placed next to `lteenb` binary. This library is the
only one which does not follow standard `ld` path resolution.

**rf_driver** has to be compiled and installed. Inside trx_sdr/kernel folder issue `# make` to compile the
kernel module, and then `# ./init.sh` to create devices `/dev/sdr<N>` and insert compiled module.