Skip to content

Creation of ONOS controller cluster with Atomix using Docker Compose, with integration of Envoy Proxy

Notifications You must be signed in to change notification settings

nat0321/sdn-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ONOS cluster creation using a Docker compose file

This compose file also automaticlly enables OpenFlow in the ONOS cluster to allow connection to Mininet

Portainer for easy GUI managment of Docker conatiners:
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

Portainer Web Interface: https://IP:9443



Downloading & Installation
Start at your home directory: cd ~
Download tarball: wget https://github.com/nat0321/mininet/raw/main/atomix-cluster/atomix-cluster.tgz
Extract tarball: tar xvfz atomix-cluster.tgz
Enter extracted folder: cd atomix-cluster
Create the cluster with: sudo docker-compose up -d
Confirm the containers are running with Portainer web GUI or sudo docker ps
7 Containers should be created by the compose file

The controllers can be accessed two ways through their Docker local IP or the hosts public IP

To acess them via their Docker local IP use the IPs listed below:
Controller 1: 172.16.1.5
Controller 2: 172.16.1.6
Controller 3: 172.16.1.7

Ports:
GUI: 8181
CLI: 8101
OpenFlow: 6653

Using the hosts public IP:
Acess the three controllers GUIs at:
Controller 1: http://IP:8181/onos/ui
Controller 2: http://IP:8182/onos/ui
Controller 3: http://IP:8183/onos/ui

CLI Ports:
Controller 1: 8101
Controller 2: 8102
Controller 3: 8103

OpenFlow ports:
Controller 1: 6653
Controller 2: 6654
Controller 3: 6655

To connect to ONOS CLI:
Command: ssh -p PORT karaf@IP
Example: ssh -p 8101 karaf@192.168.5.4
Password: karaf

To acess the Mininet container created in the compose file:
sudo docker exec -it mininet bash
Once inside the continer run your Mininet command.
Mininet command cluster example:
mn --controller remote,port=6001 --controller remote,port=6002 --controller remote,port=6003 --topo tree,3

ovs−vsctl − − set Bridge s1 ipfix=@i −− −−id=@i create IPFIX targets=\”192.168.2.249:2055\” obs_domain_id=123 obs_point_id=456
./goflow2-1.1.1-linux-x86_64 -format.selector SrcAddr,DstAddr,SrcMac,DstMac,InIf,OutIf,SrcPort,DstPort -transport.file meeting.json

updated goflow2 command (this command will enable kafka and send output in protobuf for topic named flows)

./goflow2 -transport=kafka -transport.kafka.brokers=localhost:9092 -transport.kafka.topic=flows -format=pb -format.selector SrcAddr,DstAddr,SrcMac,DstMac,InIf,OutIf,SrcPort,DstPort,ObservationPointID,ObservationDomainID,SequenceNum,TimeFlowStart,TimeFlowEnd

About

Creation of ONOS controller cluster with Atomix using Docker Compose, with integration of Envoy Proxy

Topics

Resources

Stars

Watchers

Forks