Read this in other languages: English, 한국어
cb-network
cb-network is under-study. Proof of concept (POC) of cb-subnet is in progress.
Overview of cb-network
cb-network is Global Network Service in Cloud-Barista. The objective of cb-network is to provide a unified and efficient global network service on Multiple CSPs' heterogeneous network.
We hope to make cb-network independent from CSP's network.
cb-network may include cb-subnet, cb-dns, and cb-loadbalancer. Further items are welcome.
Currently, we are focusing on R&D for cb-subnet among cb-network components. cb-dns and cb-loadbalancer will be added.
cb-subnet performs creating a common network for multiple VMs and supports communication between VMs.
Getting started with cb-network Server
Prerequisites
Install Golang 1.15.3
Please refer to Go Setup Script
wget https://raw.githubusercontent.com/cb-contributhon/cb-coffeehouse/master/scripts/go-setup/go1.15.3-setup.sh
source go1.15.3-setup.sh
How to run cb-network Server
It was deployed and tested on the "home" directory of Ubuntu 18.04. You can start from YOUR_PROJECT_DIRECTORY.
Clone CB-Larva repository
git clone https://github.com/cloud-barista/cb-larva.git
Create MQTT Broker config
Create "configs" directory
mkdir $YOUR_PROJECT_DIRECTORY/cb-larva/poc-cb-net/configs
Create a config file for mqtt broker
- Filename: "mqtt-broker.json"
- Contents:
{
"MQTTBrokerIP": "xxxx",
"MQTTBrokerPort": "xxxx"
}
Please, modify "xxxx" parts
Change directory
cd $YOUR_PROJECT_DIRECTORY/cb-larva/poc-cb-net/cmd/server
Build cb-network Server
On building process, the required packages are automatically installed based on "go module". (Go module is very useful, isn't it?)
go build server.go
Run cb-network Server
sudo ./server
Getting started with cb-network Agent
Prerequisites
Install Golang 1.15.3
If you already install golang 1.15.3 in the above cb-network Server part, you can skip this.
Please refer to Go Setup Script
wget https://raw.githubusercontent.com/cb-contributhon/cb-coffeehouse/master/scripts/go-setup/go1.15.3-setup.sh
source go1.15.3-setup.sh
How to run cb-network Agent
It was deployed and tested on the "home" directory of Ubuntu 18.04. You can start from YOUR_PROJECT_DIRECTORY.
Clone CB-Larva repository
git clone https://github.com/cloud-barista/cb-larva.git
Create MQTT Broker config
If you already create "configs" directory and "mqtt-broker.json" file in the above cb-network Server part, you can skip this.
Create "configs" directory
mkdir $YOUR_PROJECT_DIRECTORY/cb-larva/poc-cb-net/configs
Create a config file for mqtt broker
- Filename: "mqtt-broker.json"
- Contents:
{
"MQTTBrokerIP": "xxxx",
"MQTTBrokerPort": "xxxx"
}
Please, modify "xxxx" parts
Change directory
cd $YOUR_PROJECT_DIRECTORY/cb-larva/poc-cb-net/cmd/agent
Build cb-network Agent
On building process, the required packages are automatically installed based on "go module". (Go module is very useful, isn't it?)
go build agent.go
Run cb-network Agent
sudo ./agent