Try   HackMD
作者: 史啜林
撰寫日期:2021/11/26

<5G O-RAN 筆記5> O-RAN DLUX 部署與測試

O-RAN 官方提供一套簡易的 DLUX 的 Demo 內容,這邊也將進行簡易的功能測試
與以往的專案不同,DLUX 主要透過 OAM 專案進行整合與測試,此內容僅包含 O-DU、O-RU 的簡易 simulator

取得專案

首先取得 OSC 的 github 專案

$ git clone https://github.com/o-ran-sc/oam.git

啟動專案

進入寫好設定環境的 docker-compose 位置

$ cd oam/solution/dev

接著可以進入該 docker-compose.yaml 查看內容,若啟動該服務,則會啟動以下服務:

  • persistence - 作為 sdnr 的 DB
  • sdnr - DLUX 本體,UI 的內容於此定義
  • zookeeper - 與 kafka 搭配,進行通道通道序列化排序
  • kafka - 與 zookeeper 搭配,進行通道通道序列化排序
  • dmaap - O-RAN 元件彼此溝通用的 bus
  • ntsim-ng-o-du-1122 - O-DU 的 simulator

其中登入所使用的帳號密碼、images 版本等都會在「.env」中查閱,可以透過vim .env查看

接著執行以下指令啟動服務

$ docker-compose up -d

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

啟動後,就可以透過http://localhost:8181/odlux/index.html進入 UI 介面並登入

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

登入後,我們可以看到目前還沒有任何的設備進行連接

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

由於剛剛跟著啟動的 o-du simulator 在啟動後會一直持續傳送 fault message,因此預設狀況還不會允舉被加入環境;因此,必須重新啟動 2 次該 container 才可以正式被加入控管行列
當連線狀態從 Connecting 變成 Connected 即代表成功加入

$ docker-compose restart ntsim-ng-o-du-1122
# 間隔個幾秒再重啟一次
$ docker-compose restart ntsim-ng-o-du-1122

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

成功加入後,預設仍不會打通 o-du 與 sdnr 之間的訊息傳輸通道,因此可以透過啟動檔案「config-ntsim-ngs.py」將 parser 的功能,將訊息送給 DLUX 顯示

$ python3 config-ntsim-ngs.py 

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

接著,我們稍等一下~便可以從 DLUX 中看到 o-du 持續發送的 fault message

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

若要停止,僅需使用docker-compose down即可