commit | 89fffc0c6ae31c3a5a055214a25b4eda7b01caee | [log] [tgz] |
---|---|---|
author | Thiyagarajan Subramani <Thiyagarajan.Subramani@radisys.com> | Mon May 13 21:33:20 2019 +0000 |
committer | Girish Gowdra <girish@opennetworking.org> | Fri Oct 25 19:20:34 2019 +0530 |
tree | 7598a9cd133434afd1688ee99dcd10dac81c2343 | |
parent | ad62a4722f0457d655f0a1c7bb1646ce3b5c4a8b [diff] |
VOL-2014: Rebase bal30-dev branch with master and re-verify sanity with SEBA2.0 and VOLTHA2.x before merge to master Squashed all commits from bal30-dev branch to master branch as a single commit. Bumped version to 2.0.0-dev . Update README.md with the required ONL version for BAL3.1 . VOL-2130: Wrong queue id assigned for downstream queue on tm_sched for the subscriber when using single gem port. Use queue_id as 0 when using single gem port. Issues need to be taken care: VOL-1580: Support reporting ONU Registration ID as part of ONU Activation Indication - commented the code developed for VOL-1580 to fetch ONU registration ID as it uses BAL2.6 specific API's. - Need to check how the same can be achieved using BAL3.x API's to fetch ONU registration ID Set .gitreview defaultbranch to bal30-dev Rebase change - Removed .gitreview defaultbranch so that by default it will point to master Change-Id: Ib57e52e98cf09f4fa3dbaa9156a4375b7dc6ee43 Rebase: [VOL-1635] [BAL3.0 Bridade] OLT Activation [VOL-1636] [BAL3.0 Bridade] ONU Discovery, This OpenOLT agent supports the BAL V3.0.3.3 SDK. OLT/ONU activation from voltha-1.7 is successful Change-Id: I860b31317172139cd4c4244a93e79e0c3ce4fdf8 Rebase: [VOL-1685][BAL3.0 Bridade] generate OpenOLT debian package file Change-Id: Ib0332d948602bf7892b6aae91a4147356237f7e2 Rebase: [VOL-1685][BAL3.0 Brigade] generate OpenOLT debian package file missing copy shell files (dev_mgmt_daemon and openolt). Change-Id: Id29dc24be4d1d5fc12a26884e5b5a69de91fbd69 Rebase: [VOL-1685][BAL3.0 Brigade] generate OpenOLT debian package file Change-Id: Ic5453616c0dbdbc1fb1eb241feba1cbfca5e8e85 Rebase: [VOL-1852][BAL3.0 Brigade] Support Edge-core OLT ASFvOLT16 (XGS-PON) and ASGvOLT64 (GPON) devices Change-Id: I316d35bc76c38b5381e8896148b4ee5cebbd1099 VOL-1850: Fix packet duplication with TM Queue Mapping profile Fix for US and DS scheduler ID allocation irrespective of device type(asfvolt16/asfvolt64) README.md file update with BAL3.1.1.1 specifications Change-Id: I255bf7a4ff35771e9c628bb822ba2190a1fcd5ed Rebase: [VOL-1787] : This commit sets up a unit-test framework for openolt agent based on gtest, gmock and c-mock utilities. A sample unit-test case to test EnableOlt success case is also added. More test cases will be added in future commit. Change-Id: If020be489a04d97df5fcbc15e9207deeee2fcfac Rebase: [VOL-2040]: Patch the macro required by core.cc into bcmos_system.h file Change-Id: Ic841785b2ce451b1acaf007074b8c458687bc753 Rebase: [VOL-2043] : OLT Enable Test Case - Added more test cases for OLT Enable. Now covers all scenarios. - Fixed typos in unit test README.md Change-Id: Ib931d89cedee78fe40ca67761a028365a047ebc3 Rebase: VOL-1941: Use protobufs from the voltha-protos repo, not a copy - Use protobufs from the voltha-protos repo, not a copy - Provided option to specify the openolt proto version via make option - Removed duplicate README.md Change-Id: Id67714c8119521f8358aaa9245268c47b7e843cf
The OpenOLT agent runs on white box Optical Line Terminals (OLTs) and provides a gRPC-based management and control interface to OLTs.
The OpenOLT agent is used by VOLTHA through the OpenOLT adapter.
OpenOLT agent uses Broadcom's BAL (Broadband Access Layer) software for Maple/Qumran chipsets based OLT such as the Edgecore/Accton ASXvOLT16.
+---------------------------------+ | VOLTHA | | | | +------------------+ | | | OpenOLT adapter | | +-------+--------+---------+------+ | OpenOLT gRPC API | | +--------------------- ---------------+ | | | | +------------------+ | | | OpenOLT agent | | | +--------+---------+ | | | | | Vendor specific | (e.g. Broadcom | | API | BAL API | | | | | +------------------+ | | | Vendor SoC/FPGA | | | |(e.g Maple/Qumran)| | | +------------------+ | | | | White box OLT | +-------------------------------------+
A list of tested devices and optics can be found in the CORD hardware requirements guide, in the R-CORD access equipment and optics section.
Accton/Edgecore makes available pre-built debian packages of OpenOLT agent to their customers. Contact your Accton/Edgecore representative for more information.
The pre-built debian packages have been tested on this specific version of OpenNetworkingLinux (ONL).
More info on how to install ONL can be found on the official ONL website.
Copy the debian package to the OLT. For example:
scp openolt.deb root@10.6.0.201:~/.
Install the openolt.deb package using dpkg:
dpkg -i openolt.deb
Note that ONL required for BAL3.1 is ONL 4.14
. This will be built as part of build procedure described Build OpenOLT
section.
Rebooting the OLT (after the installation) will start dev_mgmt_daemon and openolt as init.d services:
Rebooting the OLT will start the dev_mgmt_daemon and openolt services:
reboot
The services can also be stopped/started manually:
service dev_mgmt_daemon stop
service openolt stop
service dev_mgmt_daemon start
service openolt start
Check the status of the services:
service dev_mgmt_daemon status
service openolt status
Running the dev_mgmt_daemon and/or openolt services in the forground is useful for development and debugging. Make sure to first stop the services if they are running in background.
Open a terminal and run the Broadcom BAL software (dev_mgmt_daemon):
cd /broadcom ./dev_mgmt_daemon -d -pcie
The dev_mgmt_daemon
executable, when run in foreground, presents the CLI for Broadcom's BAL - Broadband Access Layer which is useful for debugging.
While the first executable still runs (even in background), open another terminal and run openolt:
cd /broadcom ./openolt
NOTE: the two executables will remain open in the terminals, unless they are put in background.
At the VOLTHA CLI, preprovision and enable the OLT:
(voltha) preprovision_olt -t openolt -H YOUR_OLT_MGMT_IP:9191 (voltha) enable
Currently, OpenOLT supports Broadcom's BAL API, version 3.1.1.1.
The following proprietary source code is required to build the OpenOLT agent.
SW-BCM68620_<BAL_VER>.zip
- Broadcom BAL source and Maple SDKsdk-all-<SDK_VER>.tar.gz
- Broadcom Qumran SDKACCTON_BAL_<BAL_VER>-<ACCTON_VER>.patch
- Accton/Edgecore's patchThe versions currently supported by the OpenOLT agent are:
NOTE: the repository does not contain the above three source packages. These are needed to build the OpenOLT agent executable. Contact Broadcom to access the source packages.
Hardware :
CPU: Dual-core (4 Threads) up.
Memory: 6G bytes.
Hard Disk: 40G of disk free space.
Software :
OpenOLT agent builds on Ubuntu 16.04 LTS.
At least 4G of ram and 4G of swap - compilation is memory intensive
Essential tools for building packages
`sudo apt-get install build-essential ccache`
Install cmake version 3.5.0 or above. Download cmake-3.5.0.tar.gz and install it by untaring cmake tar file. Go to cmake-3.5.0 directory after untaring and execute
`./bootstrap && make && make install`
Clone the openolt repository either from GitHub or from OpenCORD Gerrit:
git clone git@github.com:opencord/openolt.git or git clone https://gerrit.opencord.org/openolt
Copy the Broadcom source and patch files to the openolt/agent/download directory:
cd <dir containing Broadcom source and patch files> cp SW-BCM68620_3_1_1_1.tgz sdk-all-6.5.13.tar.gz ACCTON_BAL_3.1.1.1-V201908010203.patch <cloned openolt repo path>/agent/download
Run Autoconfig to generate the appropriate makefile scaffolding for the desired target
cd openolt/agent ./configure
Run make prereq to install the package dependencies. This is usually a one-time thing, unless there is a change in the dependencies.
make OPENOLTDEVICE=asfvolt16 prereq
Run make. This can take a while to complete the first time, since it builds ONL and the Broadcom SDKs. Following runs will be much faster, as they only build the OpenOLT agent source.
make OPENOLTDEVICE=asfvolt16
Note that the required ONL vesion 4.14
is built as part of the above build procedure and is available at path build/onl/OpenNetworkLinux/RELEASE/jessie/amd64/ONL-onl-4.14_ONL-OS8_2019-09-24.0446 b4af32e_AMD64_INSTALLED_INSTALLER
. This ONL Installer should be used to flash the OS on the OLT.
If you need to use a specific version of voltha-protos, then specify the git tag/branch corresponding to tht specific version as below. For ex:
make OPENOLTDEVICE=asfvolt16 OPENOLT_PROTO_VER=master
By default, the OPENOLT_PROTO_VER defaults to git tag v1.0.3 of https://github.com/opencord/voltha-protos repo.
If the build process succeeds, libraries and executables will be created in the openolt/agent/build directory.
Optionally, build the debian package that will be installed on the OLT.
make OPENOLTDEVICE=asfvolt16 deb
If the build process succeeds, the openolt.deb package will be created as well in the openolt/agent/build directory.
To cleanup the repository and start the build procedure again, run:
make OPENOLTDEVICE=asfvolt16 clean-all
The information here may be specific to specific OLT and ONU hardware such as Edgecore ASFVOLT16 OLT and Broadcom based ONUs.
Auto-negotiation on the NNI (uplink) interfaces is not tested. By default, the OpenOLT agent sets the speed of the NNI interfaces to 100G. To downgrade the network interface speed to 40G, add the following lines at the end of the qax.soc (/broadcom/qax.soc) configuration file. A restart of the dev_mgmt_daemon and openolt executables is required after the change.
port ce128 sp=40000
This change can also be made at run-time from the CLI of the dev_mgmt_daemon:
d/s/shell port ce128 speed=40000
(It is safe to ignore the error msgs.)
The firmware on the ONU is likely not setup to forward 802.1x on the linux bridge. Drop down to the shell in the Broadcom ONU's console and configure the Linux bridge to forward 802.1x.
> sh # echo 8 > /sys/class/net/bronu513/bridge/group_fwd_mask
Version 1.7 of VOLTHA has a known issue where the ONU is only able to pass EAPOL packets from a specific LAN port (e.g. LAN port 1 on ALPHA ONUs)
LAN port packet counters:
bs /b/e port/index=lan{0,1,2,3,4,5,6}
WAN port packt counters:
bs /b/e port/index=wan0
Following is an example of retrieving the interface description for PON intf_id 0 (TODO: document PON interface numbering for Edgecore OLT).
BCM.0> a/t clear=no object=pon_interface sub=itu_pon_stats pon_ni=0 [-- API Start: bcmolt_stat_get --] [-- API Message Data --] object: pon_interface- PON Network Interface. get stat subgroup: itu_pon_stats-ITU PON Statistics. loid: 0 response: OK key={pon_ni=0} data={ fec_codewords=0 bip_units=0 bip_errors=0 rx_gem=0 rx_gem_dropped=0 rx_gem_idle=0 rx_gem_corrected=0 rx_crc_error=0 rx_fragment_error=0 rx_packets_dropped=0 rx_dropped_too_short=0 rx_dropped_too_long=0 rx_key_error=0 rx_cpu_omci_packets_dropped=0 tx_ploams=157 rx_ploams_dropped=0 rx_allocations_valid=0 rx_allocations_invalid=0 rx_allocations_disabled=0 rx_ploams=39 rx_ploams_non_idle=39 rx_ploams_error=0 rx_cpu=0 rx_omci=0 rx_omci_packets_crc_error=0 tx_packets=0 tx_gem=0 tx_cpu=0 tx_omci=0 tx_dropped_illegal_length=0 tx_dropped_tpid_miss=0 tx_dropped_vid_miss=0 tx_dropped_total=0 rx_xgtc_headers=39 rx_xgtc_corrected=0 rx_xgtc_uncorrected=0 fec_codewords_uncorrected=0 rx_fragments_errors=0 } [-- API Complete: 0 (OK) --]
Following command retrieves NNI intf_id 0:
BCM.0> a/t clear=no object=nni_interface sub=stats id=0 [-- API Start: bcmolt_stat_get --] [-- API Message Data --] object: nni_interface- nni_interface. get stat subgroup: stats-NNI Interface Statistics. loid: 0 response: OK key={id=0} data={ rx_bytes=40023 rx_packets=283 rx_ucast_packets=0 rx_mcast_packets=283 rx_bcast_packets=0 rx_error_packets=0 rx_unknown_protos=0 tx_bytes=0 tx_packets=0 tx_ucast_packets=0 tx_mcast_packets=0 tx_bcast_packets=0 tx_error_packets=0 } [-- API Complete: 0 (OK) --]
In the dev_mgmt_daemon CLI:
> ~, Debug/, Maple/, Board/, Cld/, Transport/, Logger/, Quit > Debug .../Debug> Rsc_mgr/, Mac_util/, Switch/, sLeep, sHow_config, os/ > Mac_util .../Mac_util> Print_flows, pRint_flows_for_gem, prInt_flows_for_alloc_id, Epon_helper > Print_flow