SlideShare a Scribd company logo
1 of 49
Single Server 실험망 
Single Server를 사용하는 이유 
• I have no OpenFlow Switch 
 I can’t use SDN Controller 
 SDN Controller는 OF SW를 제어하는데… 
• Just private testbed 
 I want very simple test 
 개인적으로 간단하게 구성해서 테스트 하고 싶은데… 
• How can I use OF SW 
 It’s OpenvSwitch 
 OS는 ubuntu로 정해야 되겠군…
Single Server 실험망 
시스템 구성 
• Server 
 Ubuntu 14.04 LTS 
 OpenvSwitch를 설치하여야 하기 때문 
 Eclipse 
 Java 1.7 
 OpenIRIS 
 VirtualBox 
 OpenvSwitch 
 OpenFlow Enable Switch 대체 
 물리망을 대체하기 위함
Single Server 실험망 
구성도 
Ubuntu 14.04 
OpenIRIS 
virtualbox 
OVS OVS OVS 
Control/Network 
Node 
vnet1-1 
ovs-1 ovs-3 
ovs-2 
openvswitch 
Compute Node 
#01 
Compute Node 
#02 
eth0 eth1 eth0 eth1 eth0 eth1 
OVS 
Compute Node 
#03 
eth0 eth1 
ovs-4 
P1-2 
vnet2-1 
vnet3-1 
vnet4-1 
P2-1 P2-3 
P3-2 P3-4 
P4-3
Single Server 실험망 
Single Server OS 설치 
• OS Install 
 Ubuntu 12.04 or 14.04 LTS desktop version 
 Using CD img 
• Ubuntu configuration 
 Network 
$ sudo apt-get purge network-manager 
$ sudo apt-get autoremove 
$ sudo vi /etc/network/interfaces 
$ sudo /etc/init.d/networking restart 
 OS update 
$ sudo apt-get update 
$ sudo apt-get upgrade 
$ sudo apt-get dist-upgrade 
$ sudo reboot 
auto eth0 
Iface eth0 inet static 
address <your public ip> 
netmask 255.255.255.0 
gateway <your gw ip> 
dns-nameservers 8.8.8.8 8.8.4.4
Single Server 실험망 
Single Server 필수 프로그램 설치 
• Must Install and Downloads 
 git/vim/java1.7 Install 
$ sudo apt-get –y git 
$ sudo apt-get –y vim 
$ sudo apt-get –y openjdk-7-jeadless 
 OpenIRIS download 
$ git clone https://github.com/bjlee72/IRIS.git 
 Download Eclipse 
 http://eclipse.org/downloads/?osType=linux&release=undefined 
 압축해제 
 Download Ubuntu Img 
 Using VirtualBox VM (DevStack install)
Single Server 실험망 
Single Server OpenvSwitch 설치 (1/2) 
• OpenvSwitch Download 
 2.0.1 Version 
 http://openvswitch.org/pipermail/announce/2014/March/0000059.html
Single Server 실험망 
Single Server OpenvSwitch 설치 (2/2) 
• OpenvSwitch Install 
 Must Read : openvswitch 디렉토리 (INSTALL.Debian) 
$ cd openvswitch-2.0.1 
$ sudo apt-get install build-essential fakeroot 
# dpkg-checkbuilddeps 명령을 통하여 dependency 내용을 확인할 수 있다. 
$ sudo apt-get install debhelper autoconf automake libssl-dev 
$ sudo apt-get install python-all python-qt4 python-twisted-conch 
$ fackroot debian/rules binary 
# home directory에 .deb 파일들이 생성된다. 
$ cd~ 
$ sudo apt-get install dkms 
$ sudo dpkg –i openvswitch-datapath-dkms_2.0.1.1_all.deb 
$ sudo apt-get install module-assistant 
$ sudo dpkg –i openvsiwtch-datapath-source_2.0.1-1_all.deb 
$ sudo dpkg –i openvswitch-common_2.0.1-1_amd64.deb 
$ sudo dpkg –i openvswitch-switch_2.0.1-1_amd64.deb
Single Server 실험망 
Single Server VirtualBox 설치 
• VirtualBox Download and install 
 Ubuntu Software Center 
 Find : virtualbox
Single Server 실험망 
Single Server OpenvSwitch 설정 (1/5) 
• OpenvSwitch Configuration 
 Make 4 Bridges : ovs-1, ovs-1, ovs-3, ovs-4 
$ sudo ovs-vsctl add-br ovs-1 
$ sudo ovs-vsctl add-br ovs-2 
$ sudo ovs-vsctl add-br ovs-3 
$ sudo ovs-vsctl add-br ovs-4
Single Server 실험망 
Single Server OpenvSwitch 설정 (2/5) 
• OpenvSwitch Configuration 
 Make tuntap : vnet1-1, vnet2-1, vnet3-1, vnet4-1 
$ sudo ip tuntap add mode tap vnet1-1 
$ sudo ip tuntap add mode tap vnet2-1 
$ sudo ip tuntap add mode tap vnet3-1 
$ sudo ip tuntap add mode tap vnet4-1 
$ sudo ip link set vnet1-1 up 
$ sudo ip link set vnet2-1 up 
$ sudo ip link set vnet3-1 up 
$ sudo ip link set vnet4-1 up
Single Server 실험망 
Single Server OpenvSwitch 설정 (3/5) 
• OpenvSwitch Configuration 
 Connect Bridge to tuntap : ovs-1:vnet1-1, ovs-2:vnet2-1, ovs-3:vnet3-1, ovs-4:vnet4-1 
$ sudo ovs-vsctl add-port ovs-1 vnet1-1 
$ sudo ovs-vsctl add-port ovs-1 vnet2-1 
$ sudo ovs-vsctl add-port ovs-1 vnet3-1 
$ sudo ovs-vsctl add-port ovs-1 vnet4-1
Single Server 실험망 
Single Server OpenvSwitch 설정 (4/5) 
• OpenvSwitch Configuration 
 Make patch : p1-2, p2-1, p2-3, p3-2, p3-4, p4-3 
$ sudo ovs-vsctl add-port ovs-1 p1-2 -- set Interface p1-2 type=patch options:peer=p2-1 
$ sudo ovs-vsctl add-port ovs-2 p2-1 -- set Interface p2-1 type=patch options:peer=p1-2 
$ sudo ovs-vsctl add-port ovs-2 p2-3 -- set Interface p2-3 type=patch options:peer=p3-2 
$ sudo ovs-vsctl add-port ovs-3 p3-2 -- set Interface p3-2 type=patch options:peer=p2-3 
$ sudo ovs-vsctl add-port ovs-3 p3-4 -- set Interface p3-4 type=patch options:peer=p4-3 
$ sudo ovs-vsctl add-port ovs-4 p4-3 -- set Interface p4-3 type=patch options:peer=p3-4
Single Server 실험망 
Single Server OpenvSwitch 설정 (5/5) 
• OpenvSwitch Configuration 
 Conntction OpenIRIS : ovs-1, ovs-2, ovs-3, ovs-4 
$ sudo ovs-vsctl set-controller ovs-1 tcp:<your public ip>:6633 
$ sudo ovs-vsctl set-controller ovs-2 tcp:<your public ip>:6633 
$ sudo ovs-vsctl set-controller ovs-3 tcp:<your public ip>:6633 
$ sudo ovs-vsctl set-controller ovs-4 tcp:<your public ip>:6633
Single Server 실험망 
Single Server VirtualBox 설정 (1/3) 
• VirtualBox Basic Configuration 
 Make 4 VMs : controlnode, com01, com02, com03, com04 
 Memory Size : over 4G 
 Hard Drive Size : over 32G
Single Server 실험망 
Single Server VirtualBox 설정 (2/3) 
• VirtualBox Network Configuration 
 VMs Network Setting 
 eth0 : NAT / eth1 : Bridge Adapter (tuntap select) 
 Warning 
 controlnede – vnet1-1 / com01 – vnet2-1 / com02 – vnet3-1 / com03 – vnet4-1 
com01 -> vnet2-1 
com02 -> vnet3-1 
com03 -> vnet4-1
Single Server 실험망 
Single Server VirtualBox 설정 (3/3) 
• VirtualBox Configuration Complete 
 You can have OpenFlow Switchs 
 ovs-1, ovs-2, ovs-3, ovs-4 
 You can have Hosts 
 controlnede / com01 / com02 / com03
Single Server 실험망 
Single Server DevStack Install (1/10) 
• controlnode 
 OS Install : ubuntu 14.04 
 Already downloaded ubuntu
Single Server 실험망 
Single Server DevStack Install (2/10) 
• controlnode 
 Must Configuration 
$ sudo vi /etc/network/interfaces 
auto lo 
iface lo inet loopback 
# Public Network, NAT 
auto eth0 
iface eth0 inet static 
address <NAT IP> # may be default is 10.0.2.15 
netmask 255.255.255.0 
gateway <GW IP> # may be default is 10.0.2.2 
dns-nameservers 8.8.8.8 8.8.4.4 
# Data Network, Private IP 
auto eth1 
iface eth1 inet static 
address <private ip> 
netmaks 255.255.255.0 
$ sudo apt-get purge network-manager 
$ sudo apt-get autoremove 
$ sudo /etc/init.d/networking restart
Single Server 실험망 
Single Server DevStack Install (3/10) 
• controlnode 
 Must Configuration 
$ sudo apt-get update 
$ sudo apt-get upgrade 
$ sudo apt-get dist-upgrade 
$ sudo reboot 
$ sudo su 
$ echo “stack ALL=(ALL:ALL) NOPASSWD:ALL” >> /etc/sudoers 
$ sudo vi /etc/hosts 
… 
<controlnode private IP> controlnode 
<com01 private IP> com01 
<com02 private IP> com02 
<com03 private IP> com03 
… 
$ sudo apt-get install –y git vim 
 DevStack Download 
$ git clone –b stable/icehouse https://github.com/openstack-dev/devstack.git
Single Server 실험망 
Single Server DevStack Install (4/10) 
• controlnode 
 DevStack Download 
$ cd devstack 
$ vim local.conf 
[[local|localrc]] 
GIT_BASE=${GIT_BASE:-https://git.openstack.org} 
# Credentials 
DATABASE_PASSWORD=openstack 
ADMIN_PASSWORD=openstack 
SERVICE_PASSWORD=openstack 
SERVICE_TOKEN=admin 
RABBIT_PASSWORD=openstack 
# Services 
ENABLED_SERVICES=rabbit,mysql,key 
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cond,n-sch,n-novnc,n-cauth 
ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta 
ENABLED_SERVICES+=,g-api,g-reg 
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak 
ENABLED_SERVICES+=,horizon 
# MULTI_HOST 
MULTI_HOST=True 
# Services IP 
HOST_IP=<controlnode private ip> 
# Use this image when creating test instances 
IMAGE_URLS+=",http://cdn.download.cirros-cloud.net/0.3.2/cirros-0.3.2- 
x86_64-disk.img" 
# vnc 
VNCSERVER_LISTEN=0.0.0.0 
VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP 
# Branches 
KEYSTONE_BRANCH=stable/icehouse 
NOVA_BRANCH=stable/icehouse 
NEUTRON_BRANCH=stable/icehouse 
SWIFT_BRANCH=stable/icehouse 
GLANCE_BRANCH=stable/icehouse 
CINDER_BRANCH=stable/icehouse 
HEAT_BRANCH=stable/icehouse 
TROVE_BRANCH=stable/icehouse 
HORIZON_BRANCH=stable/icehouse 
# Enable Logging 
LOGFILE=/opt/stack/logs/stack.sh.log 
VERBOSE=True 
LOG_COLOR=True 
SCREEN_LOGDIR=/opt/stack/logs
Single Server 실험망 
Single Server DevStack Install (5/10) 
• controlnode 
 Start DevStack 
$ ./stack.sh
Single Server 실험망 
Single Server DevStack Install (6/10) 
• com01, com02, com03 
 OS Install : ubuntu 14.04 
 Already downloaded ubuntu
Single Server 실험망 
Single Server DevStack Install (7/10) 
• com01, com02, com03 
 Must Configuration 
$ sudo vi /etc/network/interfaces 
auto lo 
iface lo inet loopback 
# Public Network, NAT 
auto eth0 
iface eth0 inet static 
address <NAT IP> # may be default is 10.0.2.15 
netmask 255.255.255.0 
gateway <GW IP> # may be default is 10.0.2.2 
dns-nameservers 8.8.8.8 8.8.4.4 
# Data Network, Private IP 
auto eth1 
iface eth1 inet static 
address <private ip> 
netmaks 255.255.255.0 
$ sudo apt-get purge network-manager 
$ sudo apt-get autoremove 
$ sudo /etc/init.d/networking restart
Single Server 실험망 
Single Server DevStack Install (8/10) 
• com01, com02, com03 
 Must Configuration 
$ sudo apt-get update 
$ sudo apt-get upgrade 
$ sudo apt-get dist-upgrade 
$ sudo reboot 
$ sudo su 
$ echo “stack ALL=(ALL:ALL) NOPASSWD:ALL” >> /etc/sudoers 
$ sudo vi /etc/hosts 
… 
<controlnode private IP> controlnode 
<com01 private IP> com01 
<com02 private IP> com02 
<com03 private IP> com03 
… 
$ sudo apt-get install –y git vim 
 DevStack Download 
$ git clone –b stable/icehouse https://github.com/openstack-dev/devstack.git
Single Server 실험망 
Single Server DevStack Install (9/10) 
• com01, com02, com03 
 DevStack Download 
$ cd devstack 
$ vim local.conf 
[[local|localrc]] 
DATABASE_PASSWORD=openstack 
ADMIN_PASSWORD=openstack 
SERVICE_PASSWORD=openstack 
SERVICE_TOKEN=admin 
RABBIT_PASSWORD=openstack 
# Services 
ENABLED_SERVICES=rabbit 
ENABLED_SERVICES+=,n-cpu,n-novnc,n-cauth 
ENABLED_SERVICES+=,neutron,q-agt 
# MULTI_HOST 
MULTI_HOST=True 
# Services IP 
HOST_IP=<com01 private IP> 
SERVICE_HOST=<controlnode private IP> 
MYSQL_HOST=<controlnode private IP> 
RABBIT_HOST=<controlnode private IP> 
GLANCE_HOSTPORT=<controlnode private IP>:9292 
Q_HOST=<controlnode private IP> 
# Neutron OVS (vxlan) 
Q_PLUGIN=ml2 
Q_ML2_TENANT_NETWORK_TYPE=vxlan 
Q_ML2_PLUGIN_TYPE_DRIVERS=vxlan 
Q_ML2_PLUGIN_VXLAN_TYPE_OPTIONS=(vni_ranges=1001:2000) 
Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_types=vxlan 
vxlan_udp_port=8472) 
Q_USE_NAMESPACE=True 
Q_USE_SECGROUP=True 
# vnc 
VNCSERVER_LISTEN=0.0.0.0 
VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP 
# Branches 
KEYSTONE_BRANCH=stable/icehouse 
NOVA_BRANCH=stable/icehouse 
NEUTRON_BRANCH=stable/icehouse 
SWIFT_BRANCH=stable/icehouse 
GLANCE_BRANCH=stable/icehouse 
CINDER_BRANCH=stable/icehouse 
HEAT_BRANCH=stable/icehouse 
TROVE_BRANCH=stable/icehouse 
HORIZON_BRANCH=stable/icehouse 
# Enable Logging 
LOGFILE=/opt/stack/logs/stack.sh.log 
VERBOSE=True 
LOG_COLOR=True 
SCREEN_LOGDIR=/opt/stack/logs
Single Server 실험망 
Single Server DevStack Install (10/10) 
• controlnode 
 Start DevStack 
$ ./stack.sh
Single Server 실험망 
Single Server Test 
• OpenIRIS to OpenvSwitch 
 OpenIRIS connection to OVS (ovs-1, ovs-2, ovs-3, ovs-4) 
 Run OpenIRIS using Eclipse 
 You must edit ‘torpedo.properties’ 
 SimpleOFController = false 
 BasicOFController = true 
Connected OVS -> ovs-1, ovs-2, ovs-3, ovs-4 
OpenIRIS console
Single Server 실험망 
Single Server Test 
• OpenIRIS to OpenvSwitch 
 Web page 
 Single Server ip:8080 
ovs-1, ovs-2, ovs-3, ovs-4 
controlnode, com01, com02, com03 
controlnode, com01, com02, com03 ovs-1, ovs-2, ovs-3, ovs-4
Single Server 실험망 
Single Server Test 
• DevStack (create Network and VM) 
 Create Network (2 Networks) 
 Net01 : 30.0.0.0/24, Net02 : 40.0.0.0/24 
 Create VM (4VMs) 
 Net01: vm01, vm03 / Net02: vm02, vm04
Single Server 실험망 
Single Server Test 
• DevStack (Node OVS) 
 networknode 
 Net01 : 30.0.0.0/24, Net02 : 40.0.0.0/24 
 com01, com02, com03 
 Net01: vm01, vm03 / Net02: vm02, vm04 
controlnode : sudo ovs-vsctl show com01 : sudo ovs-vsctl show 
vxlan configuration vxlan configuration 
com01 : create vm02 port 
controlnode : Net01, Net02
Single Server 실험망 
Single Server Test 
• DevStack (Ping) 
 com01, com02, com03 
 Net01: vm01, vm03 / Net02: vm02, vm04 
 Ping : vm01 to vm03 (It’s same subnet) 
vm01, vm03 Same Network : connected
Single Server 실험망 
Single Server Test 
• DevStack (Ping) 
 com01, com02, com03 
 Net01: vm01, vm03 / Net02: vm02, vm04 
 Ping : vm01 to vm02 (It’s different subnet) 
vm01, vm02 Different Network : 
Not connected
Single Server 실험망 
Single Server Test 
• DevStack (create Virtual Router) 
 Connected Net01 to Net02 : Router01 
 Net01: vm01, vm03 <-> Router01 <-> Net02: vm02, vm04
Single Server 실험망 
Single Server Test 
• DevStack (create Router Node OVS) 
 networknode 
 Virtual Router 
 Routing Net01 to Net02 
controlnode : sudo ovs-vsctl show 
controlnode : virtual router port 
Net01, Net02
Single Server 실험망 
Single Server Test 
• DevStack (check Virtual Router) 
 Connected Net01 to Net02 : Router01 
 Net01: vm01, vm03 <-> Router01 <-> Net02: vm02, vm04
Single Server 실험망 
Single Server Test 
• DevStack (Ping) 
 com01, com02, com03 
 Connected Net01 to Net02 : Router01 
 Net01: vm01, vm03 <-> Router01 <-> Net02: vm02, vm04 
 Ping : vm01 to vm02 (It’s different subnet) 
vm01, vm02 Different Network : 
Connected (Router01)
Multi Nodes 실험망 
Todo Multi Node 
• OpenIRIS Controller 
 Ubuntu 14.04 server/cloud 
 LAN port 3 
• Control Node 
 Ubuntu 14.04 LTS or Ubuntu 14.04 server/cloud 
 LAN port 2 
 For Migration 
• Network Node 
 Ubuntu 14.04 server/cloud 
 LAN port 3 
• Compute Node (over 2 systems) 
 Ubuntu 14.04 server/cloud 
 LAN port 2 
• Switch (OpenFlow SW : 6 ea, SW : 3 ea) 
 OpenFlow Switch (Data Network) 
 Switch (Public Network, Management Network, Aggregation)
Multi Nodes 실험망 
OpenFlow Switch Spec. (1/2, NEC PF5240) 
• NEC PF5240(2ea) 
 Hardware 
 Interface : 1GbE(1000base-T) 48 port 
 10G Ethernet(SFP) 4port 
 Switch Capacity 
 176Gbps switching capacity 
 OpenFlow Mode Func. 
 OpenFlow 1.0 
 160,000 Flow entries 
 L2/L3 Mode Func. 
 L3: OSPF, BGP, RIP, VRRP, PIM, MLD 
 L2: STP, RSTP, MSTP, PVST, IGMP
Multi Nodes 실험망 
OpenFlow Switch Spec. (2/2, NetVision) 
• NetVision (4ea) 
 Hardware 
 Interface : 1GbE(1000base-T) 48 port 
 10G Ethernet(SFP) 4port 
 Switch Capacity 
 132Gbps switching capacity 
 Broadcom switch chip 
 OpenFlow Mode Func. 
 OpenFlow 1.0/1.3 
 OF-Config 1.0 
 2048 Flow tables 
 L2/L3 Mode Func. 
 RIP/OSPF routing protocol 
 PIM-SM multicast routing
Multi Nodes 실험망 
간략 구성도 
eth0 
Control 
Node 
OpenIRIS Network Node 
Compute Node 
#01 
Compute Node 
#02 
eth1 
eth1 
eth0 
eth2 eth1 
eth2 eth1 eth1 
eth0 
eth2:1 
eth0 
eth1:1 
eth0 
eth1:1 
물리 NIC 
OVS 
Management Network 
(IP: 10.0.0.0/24) 
Public Network 
(IP: 129.254.197.0/254, 
GW: 129.254.197.1) 
Management Net 
129.254.197.184, 
129.254.197.182 129.254.197.183 external 
Data Network 
(IP: 10.0.10.0/24, 
OpenFlow) 
가상 연결 
10.0.0.11 
management 
10.0.0.21 
management 
10.0.0.31 
management 
10.0.0.41 
management 
10.0.0.51 
10.0.10.31 management 
Instance tunnel 
10.0.10.41 
Instance tunnel 
10.0.10.51 
Instance tunnel 
10.0.10.21 
Data Net 
Data Net
Multi Nodes 실험망 
세부 구성도 
Data Network 
(IP: 10.0.10.0/24) 
NEC#02 
Netvision#03 Netvision#04 
Netvision#01 Netvision#02 
eth0 eth2 eth2 eth2 eth2 eth2 eth2 eth2 eth2 
eth0 eth2 
OpenIRIS 
Network 
Node 
Control 
Node 
OVS OVS OVS OVS OVS OVS OVS 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
VM 
eth1 eth1 eth1 eth1 eth1 eth1 eth1 eth1 eth1 
Management Network 
(IP: 10.0.0.0/24) 
eth1 
Public 
Network 
eth0 
Compute Nodes (#01 ~ #n) 
Aggregation SW 
NEC#01 
OVS 
VM 
VM 
VM
Mechanism Driver 
Develop Mechanism Driver 
• OpenStack plugin 
 ML2 plugin 
 Mechanism Driver for OpenIRIS : v0.1 dev. Complete 
 Network REST : create_network, update_network, delete_network 
 Subnet REST : create_subnet, update_subnet, delete_subnet 
 Port REST : create_port, update_port, delete_port 
 Now testing 
 Mechanism Driver for OpenIRIS v1.0 
 OVS Bridge and Port create 
 We want managed OVS from OpenIRIS 
 Sync. (Network, Subnet, Port, … info.) 
 We want managed network type(gre, vxlan, …) from OpenIRIS
Mechanism Driver 
Develop OpenIRIS Module 
• OpenIRIS Module 
 ML2 Manager 
 REST call from mechanism_iris (openstack plugin) 
 Now testing 
 Tunnel Manager 
 Create Port to OVS using Network type (gre, vxlan, …) 
 Support overlay network 
 L3 Routing Manager 
 Support L3 Router (ex: virtual router) 
 …

More Related Content

What's hot

What's hot (20)

ONOS SDN Controller - Clustering Tests & Experiments
ONOS SDN Controller - Clustering Tests & Experiments ONOS SDN Controller - Clustering Tests & Experiments
ONOS SDN Controller - Clustering Tests & Experiments
 
ONOS SDN Controller - Introduction
ONOS SDN Controller - IntroductionONOS SDN Controller - Introduction
ONOS SDN Controller - Introduction
 
IxVM on CML
IxVM on CMLIxVM on CML
IxVM on CML
 
青云CoreOS虚拟机部署kubernetes
青云CoreOS虚拟机部署kubernetes 青云CoreOS虚拟机部署kubernetes
青云CoreOS虚拟机部署kubernetes
 
Mathematics and development of fast TLS handshakes
Mathematics and development of fast TLS handshakesMathematics and development of fast TLS handshakes
Mathematics and development of fast TLS handshakes
 
Docker Networking with New Ipvlan and Macvlan Drivers
Docker Networking with New Ipvlan and Macvlan DriversDocker Networking with New Ipvlan and Macvlan Drivers
Docker Networking with New Ipvlan and Macvlan Drivers
 
Understanding docker networking
Understanding docker networkingUnderstanding docker networking
Understanding docker networking
 
Openstack Networking Internals - first part
Openstack Networking Internals - first partOpenstack Networking Internals - first part
Openstack Networking Internals - first part
 
Known basic of NFV Features
Known basic of NFV FeaturesKnown basic of NFV Features
Known basic of NFV Features
 
Install ovs on local pc
Install ovs on local pcInstall ovs on local pc
Install ovs on local pc
 
[2018.10.19] Andrew Kong - Tunnel without tunnel (Seminar at OpenStack Korea ...
[2018.10.19] Andrew Kong - Tunnel without tunnel (Seminar at OpenStack Korea ...[2018.10.19] Andrew Kong - Tunnel without tunnel (Seminar at OpenStack Korea ...
[2018.10.19] Andrew Kong - Tunnel without tunnel (Seminar at OpenStack Korea ...
 
Open stack advanced_part
Open stack advanced_partOpen stack advanced_part
Open stack advanced_part
 
Kernel crashdump
Kernel crashdumpKernel crashdump
Kernel crashdump
 
Getting started with RDO Havana
Getting started with RDO HavanaGetting started with RDO Havana
Getting started with RDO Havana
 
Linux Tracing Superpowers by Eugene Pirogov
Linux Tracing Superpowers by Eugene PirogovLinux Tracing Superpowers by Eugene Pirogov
Linux Tracing Superpowers by Eugene Pirogov
 
LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.
LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.
LF_OVS_17_OVS-DPDK: Embracing your NUMA nodes.
 
nftables - the evolution of Linux Firewall
nftables - the evolution of Linux Firewallnftables - the evolution of Linux Firewall
nftables - the evolution of Linux Firewall
 
E nodeb useful commands for rf engineer
E nodeb useful commands for rf engineerE nodeb useful commands for rf engineer
E nodeb useful commands for rf engineer
 
Docker practice
Docker practiceDocker practice
Docker practice
 
4. open mano set up and usage
4. open mano set up and usage4. open mano set up and usage
4. open mano set up and usage
 

Viewers also liked

Intoduction to VirtualBox English
Intoduction to VirtualBox EnglishIntoduction to VirtualBox English
Intoduction to VirtualBox English
Kichiemon Adachi
 
Manual engleza laptop toshiba
Manual engleza laptop toshibaManual engleza laptop toshiba
Manual engleza laptop toshiba
Sima Sorin
 
Lista fonduri personale_si_familiale_anic
Lista fonduri personale_si_familiale_anicLista fonduri personale_si_familiale_anic
Lista fonduri personale_si_familiale_anic
Sima Sorin
 
OpenStack: running manually installed components on VirtualBox
OpenStack: running manually installed components on VirtualBoxOpenStack: running manually installed components on VirtualBox
OpenStack: running manually installed components on VirtualBox
Ian Choi
 

Viewers also liked (17)

Sol11expresstext Vbox
Sol11expresstext VboxSol11expresstext Vbox
Sol11expresstext Vbox
 
OpenStack Swift on virtualbox
OpenStack Swift on virtualboxOpenStack Swift on virtualbox
OpenStack Swift on virtualbox
 
Virtualization technology "comparison vmware 9 vs virtualbox 4.2"
Virtualization  technology "comparison vmware 9 vs virtualbox 4.2"Virtualization  technology "comparison vmware 9 vs virtualbox 4.2"
Virtualization technology "comparison vmware 9 vs virtualbox 4.2"
 
Red Hat Enterprise Virtualization
Red Hat Enterprise VirtualizationRed Hat Enterprise Virtualization
Red Hat Enterprise Virtualization
 
Intoduction to VirtualBox English
Intoduction to VirtualBox EnglishIntoduction to VirtualBox English
Intoduction to VirtualBox English
 
Introduction of Okinawa Open Laboratory Testbed, OpenStack and SDN Technology...
Introduction of Okinawa Open Laboratory Testbed, OpenStack and SDN Technology...Introduction of Okinawa Open Laboratory Testbed, OpenStack and SDN Technology...
Introduction of Okinawa Open Laboratory Testbed, OpenStack and SDN Technology...
 
Manual engleza laptop toshiba
Manual engleza laptop toshibaManual engleza laptop toshiba
Manual engleza laptop toshiba
 
Lista fonduri personale_si_familiale_anic
Lista fonduri personale_si_familiale_anicLista fonduri personale_si_familiale_anic
Lista fonduri personale_si_familiale_anic
 
History
HistoryHistory
History
 
Eval.mod1
Eval.mod1Eval.mod1
Eval.mod1
 
OpenStack : DevStack installation using VirtualBox & Ubnutu (Juno with Neutron)
OpenStack: DevStack installation using VirtualBox & Ubnutu (Juno with Neutron)OpenStack: DevStack installation using VirtualBox & Ubnutu (Juno with Neutron)
OpenStack : DevStack installation using VirtualBox & Ubnutu (Juno with Neutron)
 
OpenStack: running manually installed components on VirtualBox
OpenStack: running manually installed components on VirtualBoxOpenStack: running manually installed components on VirtualBox
OpenStack: running manually installed components on VirtualBox
 
Diplomatice
DiplomaticeDiplomatice
Diplomatice
 
Free codecs
Free codecsFree codecs
Free codecs
 
오픈스택! 이틀이면할수있다! 시즌2
오픈스택! 이틀이면할수있다! 시즌2오픈스택! 이틀이면할수있다! 시즌2
오픈스택! 이틀이면할수있다! 시즌2
 
Cdc2014 발표자료 (이병준) final
Cdc2014 발표자료 (이병준) finalCdc2014 발표자료 (이병준) final
Cdc2014 발표자료 (이병준) final
 
CBGTBT - Part 1 - Workshop introduction & primer
CBGTBT - Part 1 - Workshop introduction & primerCBGTBT - Part 1 - Workshop introduction & primer
CBGTBT - Part 1 - Workshop introduction & primer
 

Similar to Openstack Testbed_ovs_virtualbox_devstack_single node

ByPat博客出品Lvs+keepalived
ByPat博客出品Lvs+keepalivedByPat博客出品Lvs+keepalived
ByPat博客出品Lvs+keepalived
redhat9
 
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLESQuick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Jan Kalcic
 

Similar to Openstack Testbed_ovs_virtualbox_devstack_single node (20)

OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27
 
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/StableSR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
 
Network Automation Tools
Network Automation ToolsNetwork Automation Tools
Network Automation Tools
 
Hadoop single cluster installation
Hadoop single cluster installationHadoop single cluster installation
Hadoop single cluster installation
 
ByPat博客出品Lvs+keepalived
ByPat博客出品Lvs+keepalivedByPat博客出品Lvs+keepalived
ByPat博客出品Lvs+keepalived
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
 
Neutron CI Run on Docker
Neutron CI Run on DockerNeutron CI Run on Docker
Neutron CI Run on Docker
 
The Basic Introduction of Open vSwitch
The Basic Introduction of Open vSwitchThe Basic Introduction of Open vSwitch
The Basic Introduction of Open vSwitch
 
Intel DPDK Step by Step instructions
Intel DPDK Step by Step instructionsIntel DPDK Step by Step instructions
Intel DPDK Step by Step instructions
 
Razor, the Provisioning Toolbox - PuppetConf 2014
Razor, the Provisioning Toolbox - PuppetConf 2014Razor, the Provisioning Toolbox - PuppetConf 2014
Razor, the Provisioning Toolbox - PuppetConf 2014
 
AEO Training - 2023.pdf
AEO Training - 2023.pdfAEO Training - 2023.pdf
AEO Training - 2023.pdf
 
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLESQuick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
 
See what happened with real time kvm when building real time cloud pezhang@re...
See what happened with real time kvm when building real time cloud pezhang@re...See what happened with real time kvm when building real time cloud pezhang@re...
See what happened with real time kvm when building real time cloud pezhang@re...
 
NFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center OperationsNFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center Operations
 
Dockerizing the Hard Services: Neutron and Nova
Dockerizing the Hard Services: Neutron and NovaDockerizing the Hard Services: Neutron and Nova
Dockerizing the Hard Services: Neutron and Nova
 
k8s practice 2023.pptx
k8s practice 2023.pptxk8s practice 2023.pptx
k8s practice 2023.pptx
 
OpenNebula 5.4 Hands-on Tutorial
OpenNebula 5.4 Hands-on TutorialOpenNebula 5.4 Hands-on Tutorial
OpenNebula 5.4 Hands-on Tutorial
 
[Js hcm] Deploying node.js with Forever.js and nginx
[Js hcm] Deploying node.js with Forever.js and nginx[Js hcm] Deploying node.js with Forever.js and nginx
[Js hcm] Deploying node.js with Forever.js and nginx
 
Nicolas-Embleton - Deploying node.js with forever and nginx
Nicolas-Embleton  - Deploying node.js with forever and nginxNicolas-Embleton  - Deploying node.js with forever and nginx
Nicolas-Embleton - Deploying node.js with forever and nginx
 
Deploying to Ubuntu on Linode
Deploying to Ubuntu on LinodeDeploying to Ubuntu on Linode
Deploying to Ubuntu on Linode
 

More from Yongyoon Shin (9)

Google Cloud NEXT'17 정리
Google Cloud NEXT'17 정리Google Cloud NEXT'17 정리
Google Cloud NEXT'17 정리
 
Open stack summit_barcelona_보고서
Open stack summit_barcelona_보고서Open stack summit_barcelona_보고서
Open stack summit_barcelona_보고서
 
OpenStack summit austin 2016
OpenStack summit austin 2016OpenStack summit austin 2016
OpenStack summit austin 2016
 
Dragon flow and tricircle
Dragon flow and tricircleDragon flow and tricircle
Dragon flow and tricircle
 
Open stack korea_uni2u_pdf
Open stack korea_uni2u_pdfOpen stack korea_uni2u_pdf
Open stack korea_uni2u_pdf
 
OpenStack DVR_What is DVR?
OpenStack DVR_What is DVR?OpenStack DVR_What is DVR?
OpenStack DVR_What is DVR?
 
OpenStack KOREA 정기 세미나_OpenStack meet iNaaS SDN Controller
OpenStack KOREA 정기 세미나_OpenStack meet iNaaS SDN ControllerOpenStack KOREA 정기 세미나_OpenStack meet iNaaS SDN Controller
OpenStack KOREA 정기 세미나_OpenStack meet iNaaS SDN Controller
 
Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1
 
ONS2014 출장보고
ONS2014 출장보고ONS2014 출장보고
ONS2014 출장보고
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Openstack Testbed_ovs_virtualbox_devstack_single node

  • 1.
  • 2.
  • 3. Single Server 실험망 Single Server를 사용하는 이유 • I have no OpenFlow Switch  I can’t use SDN Controller  SDN Controller는 OF SW를 제어하는데… • Just private testbed  I want very simple test  개인적으로 간단하게 구성해서 테스트 하고 싶은데… • How can I use OF SW  It’s OpenvSwitch  OS는 ubuntu로 정해야 되겠군…
  • 4. Single Server 실험망 시스템 구성 • Server  Ubuntu 14.04 LTS  OpenvSwitch를 설치하여야 하기 때문  Eclipse  Java 1.7  OpenIRIS  VirtualBox  OpenvSwitch  OpenFlow Enable Switch 대체  물리망을 대체하기 위함
  • 5. Single Server 실험망 구성도 Ubuntu 14.04 OpenIRIS virtualbox OVS OVS OVS Control/Network Node vnet1-1 ovs-1 ovs-3 ovs-2 openvswitch Compute Node #01 Compute Node #02 eth0 eth1 eth0 eth1 eth0 eth1 OVS Compute Node #03 eth0 eth1 ovs-4 P1-2 vnet2-1 vnet3-1 vnet4-1 P2-1 P2-3 P3-2 P3-4 P4-3
  • 6. Single Server 실험망 Single Server OS 설치 • OS Install  Ubuntu 12.04 or 14.04 LTS desktop version  Using CD img • Ubuntu configuration  Network $ sudo apt-get purge network-manager $ sudo apt-get autoremove $ sudo vi /etc/network/interfaces $ sudo /etc/init.d/networking restart  OS update $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get dist-upgrade $ sudo reboot auto eth0 Iface eth0 inet static address <your public ip> netmask 255.255.255.0 gateway <your gw ip> dns-nameservers 8.8.8.8 8.8.4.4
  • 7. Single Server 실험망 Single Server 필수 프로그램 설치 • Must Install and Downloads  git/vim/java1.7 Install $ sudo apt-get –y git $ sudo apt-get –y vim $ sudo apt-get –y openjdk-7-jeadless  OpenIRIS download $ git clone https://github.com/bjlee72/IRIS.git  Download Eclipse  http://eclipse.org/downloads/?osType=linux&release=undefined  압축해제  Download Ubuntu Img  Using VirtualBox VM (DevStack install)
  • 8. Single Server 실험망 Single Server OpenvSwitch 설치 (1/2) • OpenvSwitch Download  2.0.1 Version  http://openvswitch.org/pipermail/announce/2014/March/0000059.html
  • 9. Single Server 실험망 Single Server OpenvSwitch 설치 (2/2) • OpenvSwitch Install  Must Read : openvswitch 디렉토리 (INSTALL.Debian) $ cd openvswitch-2.0.1 $ sudo apt-get install build-essential fakeroot # dpkg-checkbuilddeps 명령을 통하여 dependency 내용을 확인할 수 있다. $ sudo apt-get install debhelper autoconf automake libssl-dev $ sudo apt-get install python-all python-qt4 python-twisted-conch $ fackroot debian/rules binary # home directory에 .deb 파일들이 생성된다. $ cd~ $ sudo apt-get install dkms $ sudo dpkg –i openvswitch-datapath-dkms_2.0.1.1_all.deb $ sudo apt-get install module-assistant $ sudo dpkg –i openvsiwtch-datapath-source_2.0.1-1_all.deb $ sudo dpkg –i openvswitch-common_2.0.1-1_amd64.deb $ sudo dpkg –i openvswitch-switch_2.0.1-1_amd64.deb
  • 10. Single Server 실험망 Single Server VirtualBox 설치 • VirtualBox Download and install  Ubuntu Software Center  Find : virtualbox
  • 11. Single Server 실험망 Single Server OpenvSwitch 설정 (1/5) • OpenvSwitch Configuration  Make 4 Bridges : ovs-1, ovs-1, ovs-3, ovs-4 $ sudo ovs-vsctl add-br ovs-1 $ sudo ovs-vsctl add-br ovs-2 $ sudo ovs-vsctl add-br ovs-3 $ sudo ovs-vsctl add-br ovs-4
  • 12. Single Server 실험망 Single Server OpenvSwitch 설정 (2/5) • OpenvSwitch Configuration  Make tuntap : vnet1-1, vnet2-1, vnet3-1, vnet4-1 $ sudo ip tuntap add mode tap vnet1-1 $ sudo ip tuntap add mode tap vnet2-1 $ sudo ip tuntap add mode tap vnet3-1 $ sudo ip tuntap add mode tap vnet4-1 $ sudo ip link set vnet1-1 up $ sudo ip link set vnet2-1 up $ sudo ip link set vnet3-1 up $ sudo ip link set vnet4-1 up
  • 13. Single Server 실험망 Single Server OpenvSwitch 설정 (3/5) • OpenvSwitch Configuration  Connect Bridge to tuntap : ovs-1:vnet1-1, ovs-2:vnet2-1, ovs-3:vnet3-1, ovs-4:vnet4-1 $ sudo ovs-vsctl add-port ovs-1 vnet1-1 $ sudo ovs-vsctl add-port ovs-1 vnet2-1 $ sudo ovs-vsctl add-port ovs-1 vnet3-1 $ sudo ovs-vsctl add-port ovs-1 vnet4-1
  • 14. Single Server 실험망 Single Server OpenvSwitch 설정 (4/5) • OpenvSwitch Configuration  Make patch : p1-2, p2-1, p2-3, p3-2, p3-4, p4-3 $ sudo ovs-vsctl add-port ovs-1 p1-2 -- set Interface p1-2 type=patch options:peer=p2-1 $ sudo ovs-vsctl add-port ovs-2 p2-1 -- set Interface p2-1 type=patch options:peer=p1-2 $ sudo ovs-vsctl add-port ovs-2 p2-3 -- set Interface p2-3 type=patch options:peer=p3-2 $ sudo ovs-vsctl add-port ovs-3 p3-2 -- set Interface p3-2 type=patch options:peer=p2-3 $ sudo ovs-vsctl add-port ovs-3 p3-4 -- set Interface p3-4 type=patch options:peer=p4-3 $ sudo ovs-vsctl add-port ovs-4 p4-3 -- set Interface p4-3 type=patch options:peer=p3-4
  • 15. Single Server 실험망 Single Server OpenvSwitch 설정 (5/5) • OpenvSwitch Configuration  Conntction OpenIRIS : ovs-1, ovs-2, ovs-3, ovs-4 $ sudo ovs-vsctl set-controller ovs-1 tcp:<your public ip>:6633 $ sudo ovs-vsctl set-controller ovs-2 tcp:<your public ip>:6633 $ sudo ovs-vsctl set-controller ovs-3 tcp:<your public ip>:6633 $ sudo ovs-vsctl set-controller ovs-4 tcp:<your public ip>:6633
  • 16. Single Server 실험망 Single Server VirtualBox 설정 (1/3) • VirtualBox Basic Configuration  Make 4 VMs : controlnode, com01, com02, com03, com04  Memory Size : over 4G  Hard Drive Size : over 32G
  • 17. Single Server 실험망 Single Server VirtualBox 설정 (2/3) • VirtualBox Network Configuration  VMs Network Setting  eth0 : NAT / eth1 : Bridge Adapter (tuntap select)  Warning  controlnede – vnet1-1 / com01 – vnet2-1 / com02 – vnet3-1 / com03 – vnet4-1 com01 -> vnet2-1 com02 -> vnet3-1 com03 -> vnet4-1
  • 18. Single Server 실험망 Single Server VirtualBox 설정 (3/3) • VirtualBox Configuration Complete  You can have OpenFlow Switchs  ovs-1, ovs-2, ovs-3, ovs-4  You can have Hosts  controlnede / com01 / com02 / com03
  • 19.
  • 20. Single Server 실험망 Single Server DevStack Install (1/10) • controlnode  OS Install : ubuntu 14.04  Already downloaded ubuntu
  • 21. Single Server 실험망 Single Server DevStack Install (2/10) • controlnode  Must Configuration $ sudo vi /etc/network/interfaces auto lo iface lo inet loopback # Public Network, NAT auto eth0 iface eth0 inet static address <NAT IP> # may be default is 10.0.2.15 netmask 255.255.255.0 gateway <GW IP> # may be default is 10.0.2.2 dns-nameservers 8.8.8.8 8.8.4.4 # Data Network, Private IP auto eth1 iface eth1 inet static address <private ip> netmaks 255.255.255.0 $ sudo apt-get purge network-manager $ sudo apt-get autoremove $ sudo /etc/init.d/networking restart
  • 22. Single Server 실험망 Single Server DevStack Install (3/10) • controlnode  Must Configuration $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get dist-upgrade $ sudo reboot $ sudo su $ echo “stack ALL=(ALL:ALL) NOPASSWD:ALL” >> /etc/sudoers $ sudo vi /etc/hosts … <controlnode private IP> controlnode <com01 private IP> com01 <com02 private IP> com02 <com03 private IP> com03 … $ sudo apt-get install –y git vim  DevStack Download $ git clone –b stable/icehouse https://github.com/openstack-dev/devstack.git
  • 23. Single Server 실험망 Single Server DevStack Install (4/10) • controlnode  DevStack Download $ cd devstack $ vim local.conf [[local|localrc]] GIT_BASE=${GIT_BASE:-https://git.openstack.org} # Credentials DATABASE_PASSWORD=openstack ADMIN_PASSWORD=openstack SERVICE_PASSWORD=openstack SERVICE_TOKEN=admin RABBIT_PASSWORD=openstack # Services ENABLED_SERVICES=rabbit,mysql,key ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cond,n-sch,n-novnc,n-cauth ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta ENABLED_SERVICES+=,g-api,g-reg ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak ENABLED_SERVICES+=,horizon # MULTI_HOST MULTI_HOST=True # Services IP HOST_IP=<controlnode private ip> # Use this image when creating test instances IMAGE_URLS+=",http://cdn.download.cirros-cloud.net/0.3.2/cirros-0.3.2- x86_64-disk.img" # vnc VNCSERVER_LISTEN=0.0.0.0 VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP # Branches KEYSTONE_BRANCH=stable/icehouse NOVA_BRANCH=stable/icehouse NEUTRON_BRANCH=stable/icehouse SWIFT_BRANCH=stable/icehouse GLANCE_BRANCH=stable/icehouse CINDER_BRANCH=stable/icehouse HEAT_BRANCH=stable/icehouse TROVE_BRANCH=stable/icehouse HORIZON_BRANCH=stable/icehouse # Enable Logging LOGFILE=/opt/stack/logs/stack.sh.log VERBOSE=True LOG_COLOR=True SCREEN_LOGDIR=/opt/stack/logs
  • 24. Single Server 실험망 Single Server DevStack Install (5/10) • controlnode  Start DevStack $ ./stack.sh
  • 25. Single Server 실험망 Single Server DevStack Install (6/10) • com01, com02, com03  OS Install : ubuntu 14.04  Already downloaded ubuntu
  • 26. Single Server 실험망 Single Server DevStack Install (7/10) • com01, com02, com03  Must Configuration $ sudo vi /etc/network/interfaces auto lo iface lo inet loopback # Public Network, NAT auto eth0 iface eth0 inet static address <NAT IP> # may be default is 10.0.2.15 netmask 255.255.255.0 gateway <GW IP> # may be default is 10.0.2.2 dns-nameservers 8.8.8.8 8.8.4.4 # Data Network, Private IP auto eth1 iface eth1 inet static address <private ip> netmaks 255.255.255.0 $ sudo apt-get purge network-manager $ sudo apt-get autoremove $ sudo /etc/init.d/networking restart
  • 27. Single Server 실험망 Single Server DevStack Install (8/10) • com01, com02, com03  Must Configuration $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get dist-upgrade $ sudo reboot $ sudo su $ echo “stack ALL=(ALL:ALL) NOPASSWD:ALL” >> /etc/sudoers $ sudo vi /etc/hosts … <controlnode private IP> controlnode <com01 private IP> com01 <com02 private IP> com02 <com03 private IP> com03 … $ sudo apt-get install –y git vim  DevStack Download $ git clone –b stable/icehouse https://github.com/openstack-dev/devstack.git
  • 28. Single Server 실험망 Single Server DevStack Install (9/10) • com01, com02, com03  DevStack Download $ cd devstack $ vim local.conf [[local|localrc]] DATABASE_PASSWORD=openstack ADMIN_PASSWORD=openstack SERVICE_PASSWORD=openstack SERVICE_TOKEN=admin RABBIT_PASSWORD=openstack # Services ENABLED_SERVICES=rabbit ENABLED_SERVICES+=,n-cpu,n-novnc,n-cauth ENABLED_SERVICES+=,neutron,q-agt # MULTI_HOST MULTI_HOST=True # Services IP HOST_IP=<com01 private IP> SERVICE_HOST=<controlnode private IP> MYSQL_HOST=<controlnode private IP> RABBIT_HOST=<controlnode private IP> GLANCE_HOSTPORT=<controlnode private IP>:9292 Q_HOST=<controlnode private IP> # Neutron OVS (vxlan) Q_PLUGIN=ml2 Q_ML2_TENANT_NETWORK_TYPE=vxlan Q_ML2_PLUGIN_TYPE_DRIVERS=vxlan Q_ML2_PLUGIN_VXLAN_TYPE_OPTIONS=(vni_ranges=1001:2000) Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_types=vxlan vxlan_udp_port=8472) Q_USE_NAMESPACE=True Q_USE_SECGROUP=True # vnc VNCSERVER_LISTEN=0.0.0.0 VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP # Branches KEYSTONE_BRANCH=stable/icehouse NOVA_BRANCH=stable/icehouse NEUTRON_BRANCH=stable/icehouse SWIFT_BRANCH=stable/icehouse GLANCE_BRANCH=stable/icehouse CINDER_BRANCH=stable/icehouse HEAT_BRANCH=stable/icehouse TROVE_BRANCH=stable/icehouse HORIZON_BRANCH=stable/icehouse # Enable Logging LOGFILE=/opt/stack/logs/stack.sh.log VERBOSE=True LOG_COLOR=True SCREEN_LOGDIR=/opt/stack/logs
  • 29. Single Server 실험망 Single Server DevStack Install (10/10) • controlnode  Start DevStack $ ./stack.sh
  • 30.
  • 31. Single Server 실험망 Single Server Test • OpenIRIS to OpenvSwitch  OpenIRIS connection to OVS (ovs-1, ovs-2, ovs-3, ovs-4)  Run OpenIRIS using Eclipse  You must edit ‘torpedo.properties’  SimpleOFController = false  BasicOFController = true Connected OVS -> ovs-1, ovs-2, ovs-3, ovs-4 OpenIRIS console
  • 32. Single Server 실험망 Single Server Test • OpenIRIS to OpenvSwitch  Web page  Single Server ip:8080 ovs-1, ovs-2, ovs-3, ovs-4 controlnode, com01, com02, com03 controlnode, com01, com02, com03 ovs-1, ovs-2, ovs-3, ovs-4
  • 33. Single Server 실험망 Single Server Test • DevStack (create Network and VM)  Create Network (2 Networks)  Net01 : 30.0.0.0/24, Net02 : 40.0.0.0/24  Create VM (4VMs)  Net01: vm01, vm03 / Net02: vm02, vm04
  • 34. Single Server 실험망 Single Server Test • DevStack (Node OVS)  networknode  Net01 : 30.0.0.0/24, Net02 : 40.0.0.0/24  com01, com02, com03  Net01: vm01, vm03 / Net02: vm02, vm04 controlnode : sudo ovs-vsctl show com01 : sudo ovs-vsctl show vxlan configuration vxlan configuration com01 : create vm02 port controlnode : Net01, Net02
  • 35. Single Server 실험망 Single Server Test • DevStack (Ping)  com01, com02, com03  Net01: vm01, vm03 / Net02: vm02, vm04  Ping : vm01 to vm03 (It’s same subnet) vm01, vm03 Same Network : connected
  • 36. Single Server 실험망 Single Server Test • DevStack (Ping)  com01, com02, com03  Net01: vm01, vm03 / Net02: vm02, vm04  Ping : vm01 to vm02 (It’s different subnet) vm01, vm02 Different Network : Not connected
  • 37. Single Server 실험망 Single Server Test • DevStack (create Virtual Router)  Connected Net01 to Net02 : Router01  Net01: vm01, vm03 <-> Router01 <-> Net02: vm02, vm04
  • 38. Single Server 실험망 Single Server Test • DevStack (create Router Node OVS)  networknode  Virtual Router  Routing Net01 to Net02 controlnode : sudo ovs-vsctl show controlnode : virtual router port Net01, Net02
  • 39. Single Server 실험망 Single Server Test • DevStack (check Virtual Router)  Connected Net01 to Net02 : Router01  Net01: vm01, vm03 <-> Router01 <-> Net02: vm02, vm04
  • 40. Single Server 실험망 Single Server Test • DevStack (Ping)  com01, com02, com03  Connected Net01 to Net02 : Router01  Net01: vm01, vm03 <-> Router01 <-> Net02: vm02, vm04  Ping : vm01 to vm02 (It’s different subnet) vm01, vm02 Different Network : Connected (Router01)
  • 41.
  • 42. Multi Nodes 실험망 Todo Multi Node • OpenIRIS Controller  Ubuntu 14.04 server/cloud  LAN port 3 • Control Node  Ubuntu 14.04 LTS or Ubuntu 14.04 server/cloud  LAN port 2  For Migration • Network Node  Ubuntu 14.04 server/cloud  LAN port 3 • Compute Node (over 2 systems)  Ubuntu 14.04 server/cloud  LAN port 2 • Switch (OpenFlow SW : 6 ea, SW : 3 ea)  OpenFlow Switch (Data Network)  Switch (Public Network, Management Network, Aggregation)
  • 43. Multi Nodes 실험망 OpenFlow Switch Spec. (1/2, NEC PF5240) • NEC PF5240(2ea)  Hardware  Interface : 1GbE(1000base-T) 48 port  10G Ethernet(SFP) 4port  Switch Capacity  176Gbps switching capacity  OpenFlow Mode Func.  OpenFlow 1.0  160,000 Flow entries  L2/L3 Mode Func.  L3: OSPF, BGP, RIP, VRRP, PIM, MLD  L2: STP, RSTP, MSTP, PVST, IGMP
  • 44. Multi Nodes 실험망 OpenFlow Switch Spec. (2/2, NetVision) • NetVision (4ea)  Hardware  Interface : 1GbE(1000base-T) 48 port  10G Ethernet(SFP) 4port  Switch Capacity  132Gbps switching capacity  Broadcom switch chip  OpenFlow Mode Func.  OpenFlow 1.0/1.3  OF-Config 1.0  2048 Flow tables  L2/L3 Mode Func.  RIP/OSPF routing protocol  PIM-SM multicast routing
  • 45. Multi Nodes 실험망 간략 구성도 eth0 Control Node OpenIRIS Network Node Compute Node #01 Compute Node #02 eth1 eth1 eth0 eth2 eth1 eth2 eth1 eth1 eth0 eth2:1 eth0 eth1:1 eth0 eth1:1 물리 NIC OVS Management Network (IP: 10.0.0.0/24) Public Network (IP: 129.254.197.0/254, GW: 129.254.197.1) Management Net 129.254.197.184, 129.254.197.182 129.254.197.183 external Data Network (IP: 10.0.10.0/24, OpenFlow) 가상 연결 10.0.0.11 management 10.0.0.21 management 10.0.0.31 management 10.0.0.41 management 10.0.0.51 10.0.10.31 management Instance tunnel 10.0.10.41 Instance tunnel 10.0.10.51 Instance tunnel 10.0.10.21 Data Net Data Net
  • 46. Multi Nodes 실험망 세부 구성도 Data Network (IP: 10.0.10.0/24) NEC#02 Netvision#03 Netvision#04 Netvision#01 Netvision#02 eth0 eth2 eth2 eth2 eth2 eth2 eth2 eth2 eth2 eth0 eth2 OpenIRIS Network Node Control Node OVS OVS OVS OVS OVS OVS OVS VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM eth1 eth1 eth1 eth1 eth1 eth1 eth1 eth1 eth1 Management Network (IP: 10.0.0.0/24) eth1 Public Network eth0 Compute Nodes (#01 ~ #n) Aggregation SW NEC#01 OVS VM VM VM
  • 47.
  • 48. Mechanism Driver Develop Mechanism Driver • OpenStack plugin  ML2 plugin  Mechanism Driver for OpenIRIS : v0.1 dev. Complete  Network REST : create_network, update_network, delete_network  Subnet REST : create_subnet, update_subnet, delete_subnet  Port REST : create_port, update_port, delete_port  Now testing  Mechanism Driver for OpenIRIS v1.0  OVS Bridge and Port create  We want managed OVS from OpenIRIS  Sync. (Network, Subnet, Port, … info.)  We want managed network type(gre, vxlan, …) from OpenIRIS
  • 49. Mechanism Driver Develop OpenIRIS Module • OpenIRIS Module  ML2 Manager  REST call from mechanism_iris (openstack plugin)  Now testing  Tunnel Manager  Create Port to OVS using Network type (gre, vxlan, …)  Support overlay network  L3 Routing Manager  Support L3 Router (ex: virtual router)  …