Swisscom Edge SDN M&C and virtual BNG


Introduction

The Swisscom virtual BNG and Edge SDN M&C for the ONAP BBS use-case is a demo system. It is a functional prototype and it is not meant for production use. The whole system is running in a single OpenStack VM and therefore only able to support a small number of subscribers. The forwarding dataplane is implemented fully inside the VMs networking stack and therefore not designed to support high data rates. The system is able to interact with ONAP according to the BBS use-case definition.

Below a diagram of the whole end-to-end architecture, the Edge SDN M&C + vBNG VM is highlighted:

As shown above in the diagram the DHCP and Dataplane traffic are brought to the VM by VxLAN tunneling.  Since it is just routed L3 traffic,  DHCP traffic does not really require VxLAN. For sake of not having two different tunnel technologies we use VxLAN tunneling for both DHCP and Dataplane traffic. Now the question is if the OLT supports native VxLAN tunneling. In our case the OLT does not. Therefore some VxLAN tunnel encapsulation device is required (see transport middle boxes above). Those boxes are very simple to set up. See at the very end of this document how to build such a middle box.

Installation by Heat Template

The Swisscom virtual BNG and Edge SDN M&C is installed and initially set up by a single Heat Orchestration Template. Therefore the OpenStack cloud you would like to use for testing should support Orchestration with Heat. The complete initial vBNG + Edge SDN M&C configuration is provided as Heat stack parameters. The Heat stack creates all the required OpenStack infrastructure, e.g. router, network, security group, port and vbng instance.

Once the stack is created, the vBNG configuration file is deployed to the instance to '$HOME/vbng.conf' and latest vBNG code is directly pulled from specified upstream git repository (default is the Swisscom repository) by cloud-init user-data script. The stack output shows initial vBNG configuration, the floating IP and how to connect to the instance by SSH. To create a stack in OpenStack heat you first require the Heat template from here: vbng.yaml

Option A) Upload template in Horizon

The stack can be created directly in OpenStack Horizon by:

  • Navigating to 'Orchestration -> Stacks' in the sidebar

  • Pressing the 'Launch Stack' button

  • In 'Template Source' select to upload the template file 'vbng.yaml' and press 'Next'.

  • Now heat asks for the stack input parameters, they can be set by just entering the desired values in the Horizon form.

The template defines a hopefully useful default for each parameter, therefore not much has to be changed for the Swisscom Lab installation. However, some things like e.g. image, flavor and key have to be selected in the drop-down menus. Also all the initial configuration can be changed there. For a full list of the supported stack parameters see the appendix below.

Option B) OpenStack Commandline Client

Source the openrc.sh file of your OpenStack tenant and create the heat stack the following way:

source Downloads/vbng-openrc.sh Please enter your OpenStack Password for project vBNG as user bng: openstack stack create -t Downloads/vbng.yaml vbngstack

In case you would like to overwrite default parameters with your custom values, try adding '--parameter <key=value>', e.g.:

openstack stack create -t Downloads/vbng.yaml vbngstack --parameter key='your_key' --parameter flavor='your_flavor' --parameter image='your_image'

A full list of the supported stack parameter is shown in the following table:

Appendix: Stack Parameters

Key

Default Value

Description

Notes

Key

Default Value

Description

Notes

OpenStack Settings

key

vbng

Name of the SSH keypair for logging in into the instance

constraint: nova.keypair

image

"CentOS 7 x86_64 GenericCloud 1901"

Name of the glance image

Supported are upstream cloud images for: Ubuntu 16.04 / Ubuntu 18.04 / CentOS 7

constraint: glance.image

flavor

a1.tiny

Flavor to use for the instance

Can be a small one (1vCPU/4GB RAM/10GB disk)

constraint: nova.flavor

extnet

external

Name of external network

This is the existing OpenStack external network containing the floating IPs

int_cidr

192.168.1.0/24

Internal Network IPv4 Addressing in CIDR notation

Can be anything in the private IP space if your OpenStack supports overlapping IP tenant ranges.

dns1

8.8.8.8

DNS server 1 for internal network

E.g. DNS server 1 Openstack VMs will use

dns2

8.8.4.4

DNS server 2 for internal network

E.g. DNS server 2 Openstack VMs will use

vBNG Git Repository Settings

git_repo

ssh://git@git.swisscom.com:7999/ztxgspon/vbng.git

Virtual BNG Git Repository URL (ssh://)

This repository holds the vbng code and is cloned by cloud-init

git_branch

master

Git branch to check out.



git_sshkey

NOT SHOWN HERE

SSH Private Key for Git Repository (Read-Only Access)

For cloud-init read-only access

git_hostkey

NOT SHOWN HERE

SSH Host Key for Git Host (git.swisscom.com)



vBNG Settings

cust_cidr

10.66.0.0/16

Customer IPv4 Network in CIDR notation

The network for your subscribers

cust_gw

10.66.0.1

Customer IPv4 Network Gateway

The IPv4 gateway your subscribers will use

cust_dns

8.8.8.8

Customer DNS Server

The DNS severs your subscribers will use

cust_start

10.66.1.1

Customer IPv4 Range Start Address

Subscriber IP range for DHCP

cust_end

10.66.1.254

Customer IPv4 Range End Address

Subscriber IP range for DHCP

dhcp_l2

false

Global Layer 2 DHCP switch

Enable Layer 2 DHCP on datapath

dhcp_cidr

172.24.24.0/24

DHCP Server / Relay Network in CIDR notation

The network between The DHCP server and the DHCP L3 Relay on the OLT.

dhcp_ip

172.24.24.1

DHCP Server IPv4 Address

The DHCP Server is binding/listening to that address

in_tun_port

4789

UDP Port for incoming VxLAN Tunnels

For incoming VxLAN UDP packets. Used to configure OpenStack Security Groups

onap_dcae_ves_collector_url

http://172.30.0.126:30235/eventListener/v7

ONAP DCAE VES Collector URL

The URL the VES agent is streaming VES to

vBNG Initial Configuration by cloud-init

Once the stack is created by heat, cloud-init user data script  checks out the vbng git repository and runs the scripts 00-installdeps.sh, 01-setupdatapath.sh, 02-setupcontainers.sh contained in the repository. The parameters passed to them are kept in $HOME/vbng.conf. Once cloud-init finished its job it will create the file $HOME/vbng_provisioning_done on your instance. Logs are kept in /var/log/cloud-init-output.log. You may re-run those scripts as many times as you wish, work will only be done once. For example you have to re-run these 3 scripts on instance reboot. Keep in mind, you may require a reboot in case you have kernel updates installed.

  • vbng/00-installdeps.sh             

    • Update the system, install dependent packages, install and setup docker.

  • vbng/01-setupdatapath.sh      

    • Set up the datapath part, including shaping, routing and NAT.

  • vbng/02-setupcontainers.sh   

    • Create docker images and start all containers: Database, Message Queue, Restconf Server, VES Agent and DHCP Server.

OLT Configuration

OLT onboarding configuration is not done by cloud-init, since OLT parameters are normally not known at stack creation time. With the newest version there is a REST interface for configuring OLTs. See REST API documentation below: 'POST CreateOLT',  'GET GetOLT',  'POST DeleteOLT'. To assist with working with the REST API, you can utilize Postman, and import the current API Collection.

ONT/Subscriber Configuration

Subscribers are usually configured by calls to bbs-edge-restconf-server directly from ONAP. In case you would like to test this functionality you can of course trigger this directly with the REST API calls defined below.

Important parameters are: "remote_id":"AC9.000.990.001","s_vlan":10,"c_vlan":333 .Of course the values configured must match what the OLT/ONT in the Lab sends.

Currently only 4 subscribers profiles are supported (1/2/3/4), 2 * 100Mbit/s symmetrical and 2 * 20Mit/s symmetrical, respectively. This should be enough to run all test-cases for the BBS use-case.

REST API

To assist with working with the REST API, you can utilize Postman, and import the current API Collection.  The information below documents each REST call that is available.

POST CreateInternetProfileInstance

Description: Creates a subscriber instance in the vBNG.  This call will be used directly by ONAP.  Note, the "service_id" MUST be unique, as this is used to identify the profile for updates and deletion.



Input Parameters / Body