blob: 1284fcdd46117ee49b9f8cfb7f49fa9b740bb82b [file] [log] [blame]
Matteo Scandolo9f619492019-10-25 13:11:58 -07001.. 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 Williamsd2907e62020-04-03 10:23:02 -07006BBSim, a Broadband Simulator
7============================
Matteo Scandolo9f619492019-10-25 13:11:58 -07008
9.. toctree::
Matteo Scandolof380a972020-09-11 12:09:40 -070010 :maxdepth: 1
11 :hidden:
Matteo Scandolo9f619492019-10-25 13:11:58 -070012 :caption: Contents:
13
Matteo Scandolof380a972020-09-11 12:09:40 -070014 bbsim_config.rst
15 sadis_config.rst
Matteo Scandoloe383d5d2019-10-25 14:47:27 -070016 operations.rst
Matteo Scandolof380a972020-09-11 12:09:40 -070017 development/internals.rst
18 Performances <bbr.rst>
Matteo Scandolo9f619492019-10-25 13:11:58 -070019
20
21Quickstart
22----------
23
Zack Williams4b0ef4d2019-12-18 14:25:20 -070024BBSim (a.k.a. BroadBand Simulator) is a tool designed to emulate an `Openolt
25<https://github.com/opencord/openolt>`_ compatible device.
Matteo Scandolo9f619492019-10-25 13:11:58 -070026
Matteo Scandolof380a972020-09-11 12:09:40 -070027BBSim emulates the OLT, PON Ports, ONUs, UNIs and RG.
28For more informations on how configure different Services on the RG refer to :ref:`ConfiguringServices`
29
Matteo Scandolo9f619492019-10-25 13:11:58 -070030In order to use BBSim you need to have:
31
32- a Kubernetes cluster
33- helm
34- a working installation of VOLTHA
35
Zack Williams4b0ef4d2019-12-18 14:25:20 -070036We strongly recommend the utilization of `kind-voltha
37<https://github.com/ciena/kind-voltha>`_ to setup such environment.
Matteo Scandolo9f619492019-10-25 13:11:58 -070038
39Installation
40------------
41
42Once VOLTHA is up and running, you can deploy BBSim with this command:
43
44.. code:: bash
45
46 helm install -n bbsim cord/bbsim
47
Matteo Scandoloc1147092019-10-29 09:38:33 -070048If you need to specify a custom image for BBSim you can:
49
50.. code:: bash
51
52 helm install -n bbsim cord/bbsim --set images.bbsim.repository=bbsim --set images.bbsim.tag=candidate --set images.bbsim.pullPolicy=Never
53
Zack Williams4b0ef4d2019-12-18 14:25:20 -070054The BBSim installation can be customized to emulate multiple ONUs and multiple
55PON Ports:
Matteo Scandolo9f619492019-10-25 13:11:58 -070056
57.. code:: bash
58
59 helm install -n bbsim cord/bbsim --set onu=8 --set pon=2
60
Matteo Scandoloc1147092019-10-29 09:38:33 -070061BBSim can also be configured to automatically start Authentication or DHCP:
62
Matteo Scandolo9f619492019-10-25 13:11:58 -070063Once BBSim is installed you can verify that it's running with:
64
65.. code:: bash
66
67 kubectl logs -n voltha -f $(kubectl get pods -n voltha | grep bbsim | awk '{print $1}')
68
69Provision a BBSim OLT in VOLTHA
70-------------------------------
71
72Create the device:
73
74.. code:: bash
75
76 voltctl device create -t openolt -H $(kubectl get -n voltha service/bbsim -o go-template='{{.spec.clusterIP}}'):50060
77
78Enable the device:
79
80.. code:: bash
81
82 voltctl device enable $(voltctl device list --filter Type~openolt -q)