AETHER-2365
Add instructions for connecting an eNodeB to SAS
Change-Id: I962f3f0615022900fb262895214013c8b867ca21
diff --git a/conf.py b/conf.py
index aaaa104..a9f4381 100644
--- a/conf.py
+++ b/conf.py
@@ -244,7 +244,9 @@
# The link checker strips off .md from links and then complains
linkcheck_ignore = [
r'https://jenkins\.opencord\.org/job/aether-member-only-jobs/.*',
- r'https://jenkins.aetherproject.org/.*'
+ r'https://jenkins.aetherproject.org/.*',
+ r'https://gerrit.opencord.org/.*',
+ r'https://sas.goog/.*',
]
linkcheck_timeout = 3
diff --git a/dict.txt b/dict.txt
index b6cb3fe..2e53b4b 100644
--- a/dict.txt
+++ b/dict.txt
@@ -42,6 +42,7 @@
QoS
ROC
Raspbian
+SAS
Sercomm
Speedtest
Supermicro
@@ -95,6 +96,7 @@
eNB
eNBID
eNBs
+eNodeB
enb
etcd
ethernet
@@ -115,6 +117,7 @@
ip
jitter
jjb
+json
k8smgmt
keypair
keyring
@@ -181,6 +184,7 @@
routable
rscript
runtime
+sas
scalability
scalable
sd
diff --git a/edge_deployment/enb_installation.rst b/edge_deployment/enb_installation.rst
index e5272a7..80cd9f7 100644
--- a/edge_deployment/enb_installation.rst
+++ b/edge_deployment/enb_installation.rst
@@ -2,125 +2,215 @@
SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
SPDX-License-Identifier: Apache-2.0
-================
eNB Installation
================
-This section describes how to install and configure the Sercomm eNB
-which is the default eNB device for Aether/Pronto project.
+
+This section describes how to install and configure the Sercomm eNB which is
+the default eNB device in Aether.
.. _enb-installation:
Preliminaries
-=============
+-------------
+
Prepare the following devices:
* Sercomm eNB
+* GPS Antenna
* 10GbE SFP+ to 1/10GbE copper media converter
+* PoE+ Injector
* Workstation to remotely access and configure the eNB
Collect the following information:
* eNB IP address
-* MME IP address (10.168.0.6 by default)
+* MME IP address (10.168.0.6 by default for Aether Central)
* TAC
* Cell ID
.. warning::
-
``Cell ID`` and ``TAC`` are critical parameters and the values must
be assigned the by OPs team.
Connect the eNB
-===============
+---------------
-Connect the eNB to the fabric switch through the media converter and power on,
-then it will automatically get pre-configured IP address using DHCP.
-Verify that you can access the web-based configuration(`https://<eNB IP>`) from your workstation.
-If the eNB address is not directly reachable, use the management server as a jump host.
+The Sercomm eNB has two Ethernet ports (``WAN`` and ``LAN``), one power port,
+and one GPS port. The ``WAN`` port support Power over Ethernet (PoE+).
+
+Connect a GPS Antenna to the eNB and place is in a location where it has
+visibility to the open sky, such as a window or skylight.
+
+Connect the eNB to the fabric switch through a media converter and PoE+
+Injector to the ``WAN`` port of the eNB, then it will automatically get
+pre-configured IP address using DHCP.
+
+Verify that you can access the web-based configuration(``https://<eNB IP>``)
+from your workstation. If the eNB address is not directly reachable, use the
+management server as a jump host - this can be done using ssh::
+
+ ssh user@jumphost -L 8443:<eNB IP>:443
+
+then visiting ``https://localhost:8443``
The default credentials for the Sercomm eNB are:
* Username: ``sc_femto``
-* Password: ``scHt3pp`` (or ``sc_femto``)
+* Password: ``scHt3pp`` (may also be ``sc_femto``)
.. image:: images/enb-sercomm-home.png
- :width: 800
LTE configuration
-=================
+-----------------
Go to **Manage > LTE Basic Settings** tab and change the parameters as shown below.
+
Click ``Save`` at the bottom after making the changes.
.. image:: images/enb-sercomm-lte.png
- :width: 800
:alt: Sercomm eNB UI LTE configuration page
-* Carrier Number: `2`
-* Carrier Aggregation: `unchecked`
-* BandWidth: `20`
-* FrequencyBand: `48,48`
-* EARFCN: `55440,55640`
-* CellIdentity: `assigned Cell ID`
-* PCI: `100,101`
-* TxPower: `20`
-* Tunnel Type: `IPv4`
-* MME IP Address: `10.168.0.6`
-* TAC: `assigned TAC`
-* PLMNID: `315010`
-* Sync Source: `FREE_RUNNING`
-* Enable CWMP: `unchecked`
-
-SAS configuration
-=================
-
-Go to **Manage > SAS Configuration** tab and change the parameters as shown below.
-Click ``Save`` at the bottom after making the changes.
-
-.. image:: images/enb-sercomm-sas.png
- :width: 800
- :alt: Sercomm eNB UI SAS configuration page
-
-* Location: `Indoor`
-* Location Source: `Manual`
-* Latitude: `0`
-* Longitude: `0`
-* Elevation: `-18000`
-
+* Carrier Number: ``2``
+* Carrier Aggregation: ``unchecked``
+* BandWidth: ``20``
+* FrequencyBand: ``48,48``
+* EARFCN: ``55440,55640``
+* CellIdentity: ``assigned Cell ID``
+* PCI: ``100,101``
+* TxPower: ``20``
+* Tunnel Type: ``IPv4``
+* MME IP Address: ``10.168.0.6``
+* TAC: ``assigned TAC``
+* PLMNID: ``315010``
+* Sync Source: ``FREE_RUNNING``
+* Enable CWMP: ``unchecked``
Other Settings
-==============
+--------------
Go to **TR098 > SysPara** tab and set ``fsminitd`` parameter setting to ``2``.
Click ``Modify`` button right next to the parameter value, and ``Save`` button at the bottom.
.. image:: images/enb-sercomm-syspara.png
- :width: 800
-Go to **FAPService > FAPControl** tab and check the box next to the ``AdminState``.
-Click ``Save`` button at the bottom after making the change.
+Connect the Sercomm eNB to the Google SAS
+-----------------------------------------
-.. image:: images/enb-sercomm-admin-state.png
- :width: 800
- :alt: Sercomm eNB UI FAP Control page
+Configure the SAS parameters by going to the **Manage > SAS Configuration**
+tab. Configure the following parameters:
+* Enable: checked
+* Server URL: ``https://sas.goog/v1.2/``
+* UserContactInformation: ``aether``
+* FCCID: ``P27-SCE4255W`` (It can be find on the device)
+* Category: ``A``
+* Measure Configuration: ``RECEIVED_POWER_WITHOUT_GRANT``
-Reboot the eNB
-==============
+.. image:: images/enb-sercomm-sascfg.png
-Reboot the eNB to make all changes take effect.
+Make a note of the eNB's GPS coordinates, as they are used later
+
+.. note::
+ The Sercomm eNB multiplies the GPS coordinates by 1000000, and the height in
+ meters by 1000 in it's UI.
+
+Next, go to the **FAP > FAP_Security** section. This will list security
+certificates installed on the eNB, and will provide both the device Serial
+Number and the certificate subject. On the first line copy the ``Subject``
+field, which should have content similar to ``/C=TW/O=Sercomm/OU=WInnForum CBSD
+Certificate/CN=P27-SCE4255W:2009CW5000019``.
+
+.. image:: images/enb-sercomm-fapsec.png
+
+For the SAS to trust the CBSD, it must receive signed CPI data specific to the
+device. To create this data, duplicate the ``example.json`` as
+``DEVICE_SERIAL_NUMBER.json``, and update the content to match eNB's settings.
+
+The signing tool `cbrstools/cpisign.py
+<https://gerrit.opencord.org/plugins/gitiles/cbrstools/+/refs/heads/master/cpisign.py>`_
+script will sign CPI data.
+
+This script requires a CBRS CPI key (``.p12`` format) and associated password
+to be run - an example invocation::
+
+ $ python cpisign.py -k YOUR_CPI_KEY.p12 DEVICE_SERIAL_NUMBER.json
+
+It will prompt for your CPI key password when run, and will generate a signed
+file in ``output/`` folder, named with the serial number.
+
+Next, go to the **FAPService > FAPControl** tab , and in the
+**FAPService_FAPControl_LTE** section set these fields:
+
+* AdminState: checked
+
+In the **FAPService_FAPControl_LTE_X_000E8F_SAS** section, configure the
+following information in fields:
+
+* CPIEnable: checked
+* Enable: checked
+* ManufacturerPrefixEnable: checked
+* Server: <should have the SAS URL filled in>
+* CPIId: <CPI_ID_from_certificate>
+* CPIName: <CPI_name>
+* HeightType: ``AGL``
+* CPISignatureData: <generated_output_from_python_script>
+* Location: ``indoor``
+* AntennaAzimuth, AntennaDowntilt, AntennaGain, AntennaBeamwidth: same as
+ SERIAL_NUMBER.json
+
+* CertSubject: ``/C=TW/O=Sercomm/OU=WInnForum CBSD
+ Certificate/CN=P27-SCE4255W:2009CW50000...`` (from previous step)
+
+Then click ``Save``, and go to the power icon at top right and tell the eNB to restart.
+
+Once restarted, check the **State > Misc State** tab to verify that the device
+is registered with SAS.
+
+.. image:: images/enb-sercomm-sasstatus.png
+
+Verify that the eNB is correctly registered on the SAS website.
Troubleshooting
-===============
+---------------
Connectivity check
-^^^^^^^^^^^^^^^^^^
+""""""""""""""""""
+
In order to check the connectivity, we can use the Sercomm eNB admin UI.
-Go to **Manage > IP Diagnose** tab.
+
+Go to **Manage > IP Diagnose** tab
.. image:: images/enb-sercomm-ip-diagnose.png
:width: 800
:alt: Sercomm eNB UI IP Diagnose page
-In this page, check the ``ping`` menu, put IP address to test in the text box, and click ``Run`` button.
-After a few seconds, we can see the ping results.
+In this page, check the ``ping`` menu, put an IP address to test in the text
+box, and click ``Run`` button.
+
+After a few seconds the ping results will be displayed.
+
+eNB SAS log shows failed state
+""""""""""""""""""""""""""""""
+
+Usually this is because of a configuration mismatch between the eNB config and
+CPI signature data. Check in **Manage > Log > sas.log** and look for
+information returned by the SAS.
+
+eNB SAS log disappears
+""""""""""""""""""""""
+
+When the eNB runs out of space due to log messages, the sas daemon will not
+run. Clear the log by clicking ``ClearLog`` at the bottom of the log page.
+
+eNB SAS log shows errors
+""""""""""""""""""""""""
+
+If the sas.log shows a message like ``failed to open file
+/var/conf/sas/cpi.key`` there is likely something wrong with the configuration.
+Check the following:
+
+* ``CPISignatureData`` field - data is larger than the field size, could be
+ entered twice.
+
+* Check that the location and other data that is signed by the CPI key matches
+ the data in the eNB UI.
diff --git a/edge_deployment/images/enb-sercomm-admin-state.png b/edge_deployment/images/enb-sercomm-admin-state.png
deleted file mode 100644
index 2b0a04d..0000000
--- a/edge_deployment/images/enb-sercomm-admin-state.png
+++ /dev/null
Binary files differ
diff --git a/edge_deployment/images/enb-sercomm-fapsec.png b/edge_deployment/images/enb-sercomm-fapsec.png
new file mode 100644
index 0000000..0ce6818
--- /dev/null
+++ b/edge_deployment/images/enb-sercomm-fapsec.png
Binary files differ
diff --git a/edge_deployment/images/enb-sercomm-sas.png b/edge_deployment/images/enb-sercomm-sas.png
deleted file mode 100644
index afa3b17..0000000
--- a/edge_deployment/images/enb-sercomm-sas.png
+++ /dev/null
Binary files differ
diff --git a/edge_deployment/images/enb-sercomm-sascfg.png b/edge_deployment/images/enb-sercomm-sascfg.png
new file mode 100644
index 0000000..0315308
--- /dev/null
+++ b/edge_deployment/images/enb-sercomm-sascfg.png
Binary files differ
diff --git a/edge_deployment/images/enb-sercomm-sasstatus.png b/edge_deployment/images/enb-sercomm-sasstatus.png
new file mode 100644
index 0000000..364a4bc
--- /dev/null
+++ b/edge_deployment/images/enb-sercomm-sasstatus.png
Binary files differ