Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 1 | .. BBSim documentation master file, created by |
| 2 | sphinx-quickstart on Fri Oct 25 12:03:42 2019. |
| 3 | You can adapt this file completely to your liking, but it should at least |
| 4 | contain the root `toctree` directive. |
| 5 | |
Zack Williams | d2907e6 | 2020-04-03 10:23:02 -0700 | [diff] [blame] | 6 | BBSim, a Broadband Simulator |
| 7 | ============================ |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 8 | |
| 9 | .. toctree:: |
Matteo Scandolo | f380a97 | 2020-09-11 12:09:40 -0700 | [diff] [blame] | 10 | :maxdepth: 1 |
| 11 | :hidden: |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 12 | :caption: Contents: |
| 13 | |
Matteo Scandolo | f380a97 | 2020-09-11 12:09:40 -0700 | [diff] [blame] | 14 | bbsim_config.rst |
| 15 | sadis_config.rst |
Matteo Scandolo | e383d5d | 2019-10-25 14:47:27 -0700 | [diff] [blame] | 16 | operations.rst |
Matteo Scandolo | f380a97 | 2020-09-11 12:09:40 -0700 | [diff] [blame] | 17 | development/internals.rst |
| 18 | Performances <bbr.rst> |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 19 | |
| 20 | |
| 21 | Quickstart |
| 22 | ---------- |
| 23 | |
Zack Williams | 4b0ef4d | 2019-12-18 14:25:20 -0700 | [diff] [blame] | 24 | BBSim (a.k.a. BroadBand Simulator) is a tool designed to emulate an `Openolt |
| 25 | <https://github.com/opencord/openolt>`_ compatible device. |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 26 | |
Matteo Scandolo | f380a97 | 2020-09-11 12:09:40 -0700 | [diff] [blame] | 27 | BBSim emulates the OLT, PON Ports, ONUs, UNIs and RG. |
| 28 | For more informations on how configure different Services on the RG refer to :ref:`ConfiguringServices` |
| 29 | |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 30 | In order to use BBSim you need to have: |
| 31 | |
| 32 | - a Kubernetes cluster |
| 33 | - helm |
| 34 | - a working installation of VOLTHA |
| 35 | |
Andrea Campanella | c333ec9 | 2021-09-30 10:40:36 +0200 | [diff] [blame] | 36 | To setup such an environment please look at the `voltha-helm-charts README <https://github.com/opencord/voltha-helm-charts/blob/master/README.md>`_. |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 37 | |
| 38 | Installation |
| 39 | ------------ |
| 40 | |
| 41 | Once VOLTHA is up and running, you can deploy BBSim with this command: |
| 42 | |
| 43 | .. code:: bash |
| 44 | |
Andrea Campanella | 0559ba2 | 2022-03-22 15:14:45 +0100 | [diff] [blame^] | 45 | helm install -n voltha onf/bbsim --set olt_id=10 |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 46 | |
Matteo Scandolo | c114709 | 2019-10-29 09:38:33 -0700 | [diff] [blame] | 47 | If you need to specify a custom image for BBSim you can: |
| 48 | |
| 49 | .. code:: bash |
| 50 | |
Andrea Campanella | 0559ba2 | 2022-03-22 15:14:45 +0100 | [diff] [blame^] | 51 | helm install -n bbsim onf/bbsim --set images.bbsim.repository=bbsim --set images.bbsim.tag=candidate --set images.bbsim.pullPolicy=Never |
Matteo Scandolo | c114709 | 2019-10-29 09:38:33 -0700 | [diff] [blame] | 52 | |
Zack Williams | 4b0ef4d | 2019-12-18 14:25:20 -0700 | [diff] [blame] | 53 | The BBSim installation can be customized to emulate multiple ONUs and multiple |
| 54 | PON Ports: |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 55 | |
| 56 | .. code:: bash |
| 57 | |
Andrea Campanella | 0559ba2 | 2022-03-22 15:14:45 +0100 | [diff] [blame^] | 58 | helm install -n voltha cord/bbsim --set onu=8 --set pon=2 |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 59 | |
Matteo Scandolo | c114709 | 2019-10-29 09:38:33 -0700 | [diff] [blame] | 60 | BBSim can also be configured to automatically start Authentication or DHCP: |
| 61 | |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 62 | Once BBSim is installed you can verify that it's running with: |
| 63 | |
| 64 | .. code:: bash |
| 65 | |
| 66 | kubectl logs -n voltha -f $(kubectl get pods -n voltha | grep bbsim | awk '{print $1}') |
| 67 | |
| 68 | Provision a BBSim OLT in VOLTHA |
| 69 | ------------------------------- |
| 70 | |
| 71 | Create the device: |
| 72 | |
| 73 | .. code:: bash |
| 74 | |
| 75 | voltctl device create -t openolt -H $(kubectl get -n voltha service/bbsim -o go-template='{{.spec.clusterIP}}'):50060 |
| 76 | |
| 77 | Enable the device: |
| 78 | |
| 79 | .. code:: bash |
| 80 | |
| 81 | voltctl device enable $(voltctl device list --filter Type~openolt -q) |