Giter Club home page Giter Club logo

sdn-cluster's Introduction

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 [email protected]
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

sdn-cluster's People

Contributors

liammeyer avatar nat0321 avatar sakula29 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

sakula29

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.