Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 1 | .. vim: syntax=rst |
| 2 | |
Scott Baker | 3a60266 | 2022-04-04 13:59:27 -0700 | [diff] [blame^] | 3 | Aether-in-a-Box on Hardware Radios |
| 4 | ================================== |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 5 | |
| 6 | This document describes how to set up an Aether-in-a-Box (AiaB) with |
| 7 | a Sercomm eNodeB and connect real devices (e.g., 4G phones). This |
| 8 | setup is suitable for laboratory experiments and proof-of-concept deployments. |
| 9 | To create this setup you will need the following equipment: |
| 10 | |
| 11 | * Server for running AiaB (SD-CORE / UPF / ROC) |
| 12 | |
| 13 | * Haswell CPU family or newer |
| 14 | * At least 4 CPUs and 12GB RAM |
| 15 | * Internet connection |
| 16 | |
Scott Baker | 3a60266 | 2022-04-04 13:59:27 -0700 | [diff] [blame^] | 17 | * 4G or 5G small cell eNodeB |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 18 | |
Scott Baker | 3a60266 | 2022-04-04 13:59:27 -0700 | [diff] [blame^] | 19 | * Example: Sercomm CBRS LTE small cell eNodeB |
| 20 | |
| 21 | * Firmware version 3918 or newer. For instructions on how to update the firmware see `here <https://docs.aetherproject.org/master/edge_deployment/enb_installation.html#upgrade-firmware>`_. |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 22 | |
| 23 | * SIM card writer and blank SIM cards |
| 24 | |
| 25 | We assume that the server and the eNodeB are connected to the same |
| 26 | LAN, and the LAN also provides external Internet connectivity. |
| 27 | |
| 28 | Preparation |
| 29 | ----------- |
| 30 | |
| 31 | Create SIM cards by following the instructions for your SIM card writer. |
| 32 | Of course you are free to use any values for IMSI, etc. that you choose, |
| 33 | but these are the values that will work with the rest of the configuration |
| 34 | in this document: |
| 35 | |
| 36 | * IMSI: each one is unique, matching pattern ``315010*********`` (15 digits) |
| 37 | * OPc: ``69d5c2eb2e2e624750541d3bbc692ba5`` |
| 38 | * Transport Key: ``000102030405060708090a0b0c0d0e0f`` |
| 39 | |
| 40 | If you choose different values for your SIM cards, you will need to |
| 41 | modify subsequent configuration steps appropriately. |
| 42 | |
| 43 | Insert the SIM cards in devices that you wish to be able to connect to the Aether network. |
| 44 | |
| 45 | Server setup |
| 46 | ------------ |
| 47 | |
| 48 | The server will run Aether-in-a-Box. The eNodeB will connect to the server over the local network. |
| 49 | Perform these steps to prepare the server for the AiaB install: |
| 50 | |
| 51 | * Connect the server to the local network |
| 52 | * Perform a clean install of Ubuntu 18.04 on the server |
| 53 | * Set up password-less sudo for the user that will install Aether-in-a-Box |
| 54 | |
| 55 | After the steps above have been completed, install Aether-in-a-Box as follows:: |
| 56 | |
| 57 | sudo apt install git make |
| 58 | git clone "https://gerrit.opencord.org/aether-in-a-box" |
| 59 | cd aether-in-a-box |
| 60 | |
| 61 | Next, modify the file *sd-core-4g-values.yaml*. Under ``subscribers``, |
| 62 | add an IMSI range for the SIM cards you created, with the Transport Key |
| 63 | and OPc values you used earlier. For example, the following will add |
| 64 | IMSIs between 315010999912301 and 315010999912303:: |
| 65 | |
| 66 | subscribers: |
| 67 | - ueId-start: 315010999912301 |
| 68 | ueId-end: 315010999912303 |
| 69 | plmnId: 315010 |
| 70 | opc: 69d5c2eb2e2e624750541d3bbc692ba5 |
| 71 | key: 000102030405060708090a0b0c0d0e0f |
| 72 | sequenceNumber: 135 |
| 73 | |
| 74 | Determine which is the interface that has L3 connectivity to the |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 75 | eNodeB -- this will be ``DATA_IFACE`` in the configuration later. If |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 76 | the eNodeB will also be connected to the local network, then this is just the |
| 77 | server’s primary interface. If the eNodeB will be connected via an |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 78 | isolated L2/L3 network segment, then ``DATA_IFACE`` refers to the server |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 79 | interface on that network. Remember this interface for later. |
| 80 | |
| 81 | Option 1: Configure Aether with ROC |
| 82 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 83 | |
| 84 | The Aether ROC provides a GUI and API for dynamically configuring |
| 85 | Aether. If you don’t wish to use the ROC to configure AiaB, you |
| 86 | can skip to the next section. |
| 87 | |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 88 | Install AiaB as follows (specifying ``DATA_IFACE`` from above):: |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 89 | |
| 90 | ENABLE_OAISIM=false DATA_IFACE=<iface> CHARTS=latest make roc-4g-models 4g-core |
| 91 | |
| 92 | Next, use the ROC to add information about your SIM cards. |
| 93 | The ROC GUI is available at `http://<server-ip>:31194`. |
| 94 | |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 95 | Choose ``Configuration > Site`` from the drop-down at top right and edit |
| 96 | the ``AiaB site``. Change the following values and click ``Update``: |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 97 | |
| 98 | * MCC: 315 |
| 99 | * MNC: 010 |
| 100 | |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 101 | Choose ``Sim Cards`` from the drop-down at top right. Edit the |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 102 | existing entries to reflect the SIM cards you are adding to devices |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 103 | by replacing their IMSI values. Click ``Update`` after each edit. |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 104 | If you want to connect more than two devices, consult the `ROC |
| 105 | documentation <https://docs.aetherproject.org/master/operations/subscriber.html#configure-connectivity-service-for-a-new-device>`_. |
| 106 | |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 107 | Finally, click the Basket icon at top right and click the ``Commit`` button. |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 108 | |
| 109 | Now jump to the `Verifying the AiaB installation`_ section. |
| 110 | |
| 111 | Option 2: Configure Aether without ROC |
| 112 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 113 | |
| 114 | It is possible to configure Aether without the ROC, |
| 115 | using static YAML files and the SimApp service. If you have already |
| 116 | installed the ROC, you should skip this section. |
| 117 | |
| 118 | Edit *sd-core-4g-values.yaml*. Change ``mcc`` and ``mnc`` as follows:: |
| 119 | |
| 120 | plmn: |
| 121 | mcc: "315" |
| 122 | mnc: "010" |
| 123 | |
| 124 | Also add the IMSIs of your devices under ``imsis``, for example:: |
| 125 | |
| 126 | device-groups: |
| 127 | - name: "4g-oaisim-user" |
| 128 | imsis: |
| 129 | - "315010999912301" |
| 130 | - "315010999912302" |
| 131 | - "315010999912303" |
| 132 | |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 133 | Install AiaB as follows (specifying ``DATA_IFACE`` from above):: |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 134 | |
| 135 | ENABLE_OAISIM=false DATA_IFACE=<iface> CHARTS=latest make 4g-core |
| 136 | |
| 137 | Verifying the AiaB installation |
| 138 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 139 | |
| 140 | Installing AiaB will take about 20 minutes with a fast Internet |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 141 | connection. If you see any errors / timeouts, try running the ``make`` |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 142 | command again. The build will finish with a message: |
| 143 | “Your MME IP address is… ” This is just the IP address assigned to |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 144 | the ``DATA_IFACE``. Remember this for the eNodeB setup. |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 145 | |
| 146 | When the install is complete, check that the 4G SD-CORE is running |
| 147 | as follows:: |
| 148 | |
| 149 | $ kubectl -n omec get pod |
| 150 | NAME READY STATUS RESTARTS AGE |
| 151 | cassandra-0 1/1 Running 0 7m27s |
| 152 | config4g-0 1/1 Running 0 7m27s |
| 153 | hss-0 1/1 Running 0 7m27s |
| 154 | mme-0 4/4 Running 0 7m27s |
| 155 | pcrf-0 1/1 Running 0 7m27s |
| 156 | simapp-65dc44b9d-stx6q 1/1 Running 0 7m27s |
| 157 | spgwc-0 2/2 Running 0 7m27s |
| 158 | upf-0 5/5 Running 0 7m27s |
| 159 | |
| 160 | You should see all pods in Running status. |
| 161 | |
| 162 | If you have installed the ROC, check that all its pods are running |
| 163 | as follows:: |
| 164 | |
| 165 | $ kubectl -n aether-roc get pod |
| 166 | NAME READY STATUS RESTARTS AGE |
| 167 | aether-roc-api-78cc548bb9-7vjs2 1/1 Running 0 4m16s |
| 168 | aether-roc-gui-v2-6d674fd446-tttb5 1/1 Running 0 4m16s |
| 169 | aether-roc-umbrella-grafana-74f8489c8f-s9p45 2/2 Running 0 4m16s |
| 170 | aether-roc-websocket-855d64549b-44fnc 1/1 Running 0 4m16s |
| 171 | onos-cli-5d448ff6c4-stq5t 1/1 Running 0 4m16s |
| 172 | onos-config-7f4df96b88-vtp5s 6/6 Running 0 4m16s |
| 173 | onos-consensus-store-0 1/1 Running 0 4m15s |
| 174 | onos-topo-585c7c8976-6jq7b 3/3 Running 0 4m16s |
| 175 | sdcore-adapter-v2-5646d455b9-2d6zl 1/1 Running 0 4m15s |
| 176 | |
| 177 | You should see all pods in Running status. |
| 178 | |
| 179 | Sercomm eNodeB setup |
| 180 | -------------------- |
| 181 | |
| 182 | The instructions in this section describe a basic configuration of |
| 183 | the eNodeB. For a more comprehensive guide to |
| 184 | eNodeB configuration see `eNB Installation <https://docs.aetherproject.org/master/edge_deployment/enb_installation.html>`_. |
| 185 | |
| 186 | The Sercomm eNodeB has two Ethernet ports: WAN and LAN. We will use |
| 187 | the LAN port for configuration of the eNodeB and the WAN port for |
| 188 | normal operation. Connect the eNodeB WAN port to the local network. |
| 189 | |
| 190 | Connect the eNodeB LAN port to a free Ethernet port on a Linux machine |
| 191 | (say, a laptop) that will be used for the initial configuration of |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 192 | the eNodeB. On that machine run ``dhclient`` on the interface corresponding |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 193 | to the Ethernet port, for example:: |
| 194 | |
| 195 | sudo dhclient eth1 |
| 196 | |
| 197 | The interface should receive an IP address from the Sercomm eNodeB on |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 198 | the 11.11.11.0/24 subnet. Check this using ``ifconfig``:: |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 199 | |
| 200 | $ ifconfig eth1 |
| 201 | eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 |
| 202 | inet 11.11.11.100 netmask 255.255.255.0 broadcast 11.11.11.255 |
| 203 | inet6 fe80::2e0:4cff:fe68:2f76 prefixlen 64 scopeid 0x20<link> |
| 204 | ether 00:e0:4c:68:2f:76 txqueuelen 1000 (Ethernet) |
| 205 | RX packets 264652 bytes 216094312 (216.0 MB) |
| 206 | RX errors 0 dropped 0 overruns 0 frame 0 |
| 207 | TX packets 183978 bytes 36528580 (36.5 MB) |
| 208 | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
| 209 | |
| 210 | The eNodeB IP address should be 11.11.11.188 on that link. Verify |
| 211 | this using ping:: |
| 212 | |
| 213 | $ ping 11.11.11.188 |
| 214 | |
| 215 | To access the Sercomm eNodeB admin page, you can run a Web browser on |
| 216 | the laptop and direct it to `https://11.11.11.188`. Login to the admin |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 217 | interface as user: ``sc_femto`` and password: ``scHt3pp``. |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 218 | |
| 219 | Click the ``NetWork set`` menu at the top. In the first section |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 220 | ``IP Address``, set *Connect type: DHCP* (assuming this is supported on |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 221 | your local network, otherwise set up a static IP address). |
| 222 | Click the blue ``Save`` button at the bottom. |
| 223 | |
| 224 | Next, click the ``Manage`` menu at the top and then click the |
| 225 | ``LTE Basic Setting`` tab. Change these parameters and click ``Save``: |
| 226 | |
| 227 | * Carrier Number: 2 |
| 228 | * Carrier Aggregation: Unset |
| 229 | * BandWidth: 20 |
| 230 | * FrequencyBand: 48,48 |
| 231 | * EARFCN: 55440,55640 |
| 232 | * CellIdentity: 2,1 |
| 233 | * PCI: 100,101 |
| 234 | * TxPower: 20 |
| 235 | * Tunnel Type: IPv4 |
| 236 | * MME IP Address: <MME IP address from AiaB installation> |
| 237 | * PLMNID: 315010 |
| 238 | * TAC: 1 |
| 239 | * Sync Source: FREE_RUNNING |
| 240 | * Enable CWMP: Unset |
| 241 | |
| 242 | Click the ``SAS Configuration`` tab. In the ``Location Configuration`` |
| 243 | section, enter these values and click “Save”: |
| 244 | |
| 245 | * Location: Indoor |
| 246 | * Location Source: Manual |
| 247 | * Latitude: 0 |
| 248 | * Longitude: 0 |
| 249 | * Elevation: -18000 |
| 250 | |
| 251 | Next we need to add a static route to the UPF address, 192.168.252.3, |
| 252 | on the eNodeB. Click on ``TR098`` menu and then click on ``IP`` tab. |
| 253 | Scroll down to ``Device.Routing.Router.`` section. Click ``View List``. |
| 254 | Add this info on the blank line: |
| 255 | |
| 256 | * Enable: Set |
| 257 | * StaticRoute: Set |
| 258 | * DestIPAddress: 192.168.252.0 |
| 259 | * DestSubnetMask: 255.255.255.0 |
| 260 | * GatewayIPAddress: <Use MME IP address from AiaB installation> |
| 261 | * Interface: Device.IP.Interface.1. |
| 262 | |
Andy Bavier | 5a32da0 | 2022-04-01 13:46:54 -0400 | [diff] [blame] | 263 | Then click the ``Add`` button at the far right. |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 264 | |
| 265 | Finally click the ``FAPService`` menu and then go to the ``FAPControl`` |
| 266 | tab. Check the box next to ``AdminState`` in the first section and |
| 267 | click ``Save``. |
| 268 | |
| 269 | After these changes are made, reboot the eNodeB by clicking the red |
| 270 | ``power button`` square at top right and selecting ``Reboot``. When the |
| 271 | eNodeB comes back up, it should have an IP address on the network |
| 272 | (via the WAN port), and the admin page should now be available on |
| 273 | `https://<endoeb-ip>`. |
| 274 | |
| 275 | Test connectivity from the eNodeB to the MME and the UPF running on |
| 276 | the server as follows. Login to the eNodeB admin interface, click |
| 277 | the “Manage” menu at the top, and click the ``IP Diagnose`` tab. Under |
| 278 | ``Ping and Traceroute``, select ``ping``, and then type the following IP |
| 279 | addresses into the box to the right and click ``Run``: |
| 280 | |
| 281 | * <MME IP address from AiaB installation> |
| 282 | * 192.168.251.1 |
| 283 | * 192.168.252.3 |
| 284 | |
| 285 | If all of these are working, then you are ready to try to connect |
| 286 | devices to the network. |
| 287 | |
| 288 | Connecting Devices |
| 289 | ------------------ |
| 290 | |
Andy Bavier | 6f431e4 | 2022-04-01 13:52:22 -0400 | [diff] [blame] | 291 | Documenting how to configure different types of devices to work |
| 292 | with Aether is work-in-progress. |
Andy Bavier | f3e24b6 | 2022-03-30 19:53:01 -0400 | [diff] [blame] | 293 | |
| 294 | Reinstalling AiaB |
| 295 | ----------------- |
| 296 | |
| 297 | A current limitation of AiaB is that if the host machine reboots, |
| 298 | AiaB needs to be reinstalled. We plan to fix this in the future so |
| 299 | that the AiaB configuration will persist across reboots. In the |
| 300 | meantime, to reinstall AiaB on a machine where it was previously |
| 301 | installed, run `make clean` and then start at the `Server setup`_ |
| 302 | section above. |