| commit | 3af86dae7ad28ff5ba4ec1f42b35324f01268aad | [log] [tgz] |
|---|---|---|
| author | Keita NISHIMOTO <nishimoto@opennetworking.org> | Wed Dec 12 10:34:43 2018 +0900 |
| committer | Keita NISHIMOTO <nishimoto@opennetworking.org> | Thu Dec 13 08:31:22 2018 +0900 |
| tree | a4d7f96e2a6bcd3fa5ef193687e020b58e14511f | |
| parent | 8213c53557ad64d40a29f253f5486aa4bd79dffa [diff] |
VOL-1350 BBSim - AAA/DHCP client activation triggered by OpenOMCI Change-Id: Ifa08f8817b51a6a9663646205925c542a7097ba0
The BBSim (Broadband Simulator) is for emulating the control message response sent from OLT and ONUs which are connected to VOLTHA Adapter. It is implemetend as a software process which runs outside VOLTHA, and acts as if it was a OLT connected to multiple ONUs. This enables the scalability test of VOLTHA without actual hardware OLT / ONUs. The difference from the existing PONsim is to focus on emulating control messages, not data-path traffic which PONsim targets.
The BBSim container contains wpa_supplicants and dhcp clients for supporting AAA client (wpa_supplicant) emulation & DHCP client emulation.
============== VOLTHA BBSim Adapter ============== | | gRPC connections | ============== BBSim containers (Each BBSim container corresponds to a single olt) ==============
# Build and Run Docker container
git clone https://github.com/opencord/voltha-bbsim
cd voltha-bbsim
make docker
docker run -it --rm --privileged=true --expose=50060 --network=compose_default voltha/voltha-bbsim /go/src/gerrit.opencord.org/voltha-bbsim/bbsim -n 16
# After this, execute the following commands from VOLTHA-CLI
(voltha) health
{
"state": "HEALTHY"
}
(voltha) preprovision_olt -t bbsimolt -H <BBSim Docker container IP>
success (device id = <deviceid>)
(voltha) enable
enabling <deviceid>
waiting for device to be enabled...
success (device id = <deviceid>)
(voltha) devices
## You can see the list of devices (OLT/ONUs) ##
# Note: 2018/10/8 The current version only supports AAA emulations.
Usage of ./bbsim:
-H string
IP address:port (default ":50060")
-aw int
Wait time (sec) for activation WPA supplicants (default 30)
-dw int
Wait time (sec) for activation DHCP clients (default 10)
-i int
Number of PON-IF ports (default 1)
-id int
OLT-ID (default: 0)
-m string
Emulation mode (default, aaa, both (aaa & dhcp)) (default "default")
-n int
Number of ONUs per PON-IF port (default 1)
-s string
DHCP Server IP Address (default "182.21.0.1")