SlideShare a Scribd company logo
Networking in Openstack - Neutron 101
Mochamad Taufik Romdony
Cloud Network & Datacenter Engineer
Openstack Indonesia - Meetup #6
Bandung, 2019::10:26
My Journey
2012 2013 20192016
Agenda
• History of cloud computing
• Openstack Introduction
• About Openstack
• Openstack Core Service
• Openstack Neutron
• Neutron Architecture
• Neutron plugin & service
The History of cloud computing
Openstack Indonesia Meetup #6
Bandung, 26/10/2019
The History of cloud computing
1950
Mainframe
1969
J.C.R.
Licklider
developed the
ARPANET
1970
IBM
released
VMs
1960
John McCarthy,
Douglas Parkhill
“idea of time-
sharing
computing”
1980 - 1990
● Apple launches Macintosh,
Microsoft launches Windows
● FOSS, GNU/Linux
● CERN launches WWW
● Web hosting service provider
began intern infrastructure
2006
AWS launches
S3 & EC2
1999 - 2005 Server Virtualization
- 1999, VMware introduced the x86 virtualization
- 2000, Xen the open-source x86 hypervisor,
- 2005, Intel released two models of Pentium 4 as
the first Intel processors to support VT-x
- 2007, the Kernel-based Virtual Machine (KVM)
hypervisor created included in the Linux kernel
2010
Rackspace Hosting and NASA, launched the
open source cloud initiative OpenStack
Now
Public cloud, big data, machine learning, IOT,
software defined everything and more
Cloud Service Model
Cloud Deployment Model
Openstack Introduction
Openstack Indonesia Meetup #6
Bandung, 26/10/2019
Openstack History
https://www.nasa.gov/home/hqnews/2010/jul/HQ_10-172_Nebula_Initiative.html
What is Openstack?
OpenStack is a cloud operating system that
controls large pools of compute, storage,
and networking resources throughout a
datacenter, all managed and provisioned
through APIs with common authentication
mechanisms.
Openstack Landscape
OpenStack is broken
up into services to
allow you to plug and
play components
depending on your
needs. The openstack
map gives you an “at
a glance” view of the
openstack landscape
to see where those
services fit and how
they can work
together
Network as a service in Openstack
Openstack Indonesia Meetup #6
Bandung, 26/10/2019
History of Openstack Networking
● In the first openstack release Austin (Oct 2010) the
networking functionality was hard-coded into Nova
● Networking and compute features could not be updated
independently
● Quantum was added as a separate networking service as
part of the Folsom (Sept 2012) release
● The name of networking project was changed to Neutron
as part Havana (Oct 2013) release
● The name change was due to a trademark conflict
● With Neutron, Networking became modular and could
evolve independently
What is Neutron?
● Neutron is networking-as-a-service project in openstack
● Neutron has a server component running on the controller
node
● Neutron has a set of APIs, Plugins, SQL DB and
authentication software
● Neutron has several distributed agent programs
● Neutron enables network devices and technologies to
work together in IaaS environment
Neutron Configuration Overview
Virtual Router
Floating IP/SNAT
Virtual L2 Network
Virtual Subnet
Virtual Port
Virtual Interface
(VIF)
Virtual Server
Namespace
Basic functions of Neutron
● L2 network
Create L2 network between multiple Nova
Compute
● L3 network
Virtual network routing, external network
connection, SNAT, Floating IP
● DHCP server
DHCP server that assigns IP addresses to
virtual machines
● Metadata
Acts as a proxy for the metadata server
Basic functions of Neutron - Cont
● L2 network
Create L2 network between multiple Nova
Compute
● L3 network
Virtual network routing, external network
connection, SNAT, Floating IP
● DHCP server
DHCP server that assigns IP addresses to
virtual machines
● Metadata
Acts as a proxy for the metadata server
Type of Network Traffic
● Management
Internal communication
between services
● API
Exposes Openstack APIs
to users of the cloud
● Guest
A network dedicated to
instance traffic
● External
Provides neutron routers
with network access
Neutron Architecture
Neutron Plugin
● Open vSwitch Plugin
● Cisco UCS/Nexus Plugin
● Cisco Nexus1000v Plugin
● Linux Bridge Plugin
● Modular Layer 2 Plugin (ML2 Plugin)
● Nicira Network Virtualization Platform (NVP) Plugin
● Ryu OpenFlow Controller Plugin
● NEC OpenFlow Plugin
● Big Switch Controller Plugin
● Brocade Neutron Plugin Brocade Neutron Plugin
● Cloudbase Hyper-V Plugin
● OpenContrail/Tungsten Fabric Plugin
● Nuage Networks Plugin
● CPLANE NETWORKS CPLANE NETWORKS
● IBM SDN-VE Plugin
● Embrane Neutron Plugin
● Mellanox Neutron Plugin Mellanox Neutron Plugin
● PLUMgrid Plugin
ML2 Plugin
Openstack Indonesia Meetup #6
Bandung, 26/10/2019
What is ML2 Plugin?
The Modular Layer 2 (ml2) plugin
is a framework allowing
OpenStack Networking to
simultaneously utilize the variety of
layer 2 networking technologies
found in complex real-world data
centers.
Neutron ML2 Plugin
● Type Driver
○ Flat
○ VLAN
○ GRE
○ VXLAN
● Mechanism Driver
○ Open vSwitch
○ Linux Bridge
○ L2 Population
○ Specialized (opensource &
vendor)
ML2 Plugin
Type drivers Mechanism drivers
F
L
A
T
V
L
A
N
V
X
L
A
N
G
R
E
OpenvSwitch
LinuxBridge
L2Population
Specialized
ML2 Architecture
Neutron ML2 Plugin - Cont
● Type Driver : which tells it what type of L2 technology to use when implementing the networking. For
example, there is an option of using VLANs, VXLAN, or GRE Tunneling
○ Local: A local network is a network that can only be realized on a single host. This is only used in proof-
of-concept or development environments, because just about any other OpenStack environment will
have multiple compute hosts and/or a separate network host
○ Flat: A flat network is a network that does not provide any segmentation options. A traditional L2
ethernet network is a "flat" network. Any servers attached to this network are able to see the same
broadcast traffic and can contact each other without requiring a router. flat networks are often used to
attach Nova servers to an existing L2 network (this is called a "provider network")
○ VLAN: In a VLAN network, tenants are separated because each is assigned to a VLAN. In OpenVSwitch
plugin (or ML2 with OVS driver), OVS will in the virtual switches allocate an internal VLAN for each
tenant
○ GRE: GRE tunnels encapsulate isolated layer 2 network traffic in IP packets that are routed between
compute and networking nodes using the hosts' network connectivity and routing tables
○ VXLAN: gre and vxlan networks are very similar. They are both "overylay" networks that work by
encapsulating network traffic. Like vlan networks, each network you create receives a unique tunnel id
● Mechanism Driver: which specifies what driver to use to implement the technology. You can use the
default Open vSwitch driver (which is what we will cover).
Process of Instance creation
1
Sending
API
Request
2
Authentication
request
3
Authentication ACK & validates if
provided data is correct
4
6
5
Update DB
7
Select compute host
8
Update DB
9
Request glance
image
11 Create port (Mac - iP)
10
Glance image
download
12 Notify L2 agent
13 Configure local VLAN and Flows
14 send port up notification (RPC: L2 agent to neutron)
15 port up (RPC: Neutron to NOVA)
16 Instance Booted
L2 Agent
Openstack Nova compute
Openstack glance API
Openstack glance registry
Neutron Server
Neutron L3 Agent
Neutron DHCP agent
Network Troubleshooting
Openstack Indonesia Meetup #6
Bandung, 26/10/2019
Debugging network issues
● ip a shows status of all physical and virtual devices
● ovs-vsctl show shows interfaces and bridges in thevirtual switch
● ovs-dpctl show shows datapaths on the switch
● Tcp dump
○ tcpdump -n -i <interface> -w <filename>
○ Set interface to vnet device, instance eth0, bridge device, or host ethernet
device to see where packets are not getting through
○ -i any for all interfaces
● iptables -L to check iptables rules
● ip netns list – lists all known network namespaces
● ip netns exec <namespace id> route -n
○ Shows routing table inside specific namespace
○ Execute arbitrary commands (incl. ssh, ping)
Debugging networking issues: DHCP
Scenario: Instance is not getting IP address
Step 1: nova console-log <instance name>, DHCP request sent, no reply received
Step 2: Verify neutron-dhcp-agent is running
Step 3: Check host logs (/var/log/messages and
/var/log/neutron/*)
Step 4: If host is not seeing DHCP traffic: tcpdump -i
all | grep -i dhcp
Debugging networking issues:
Access/routingScenario: I can't SSH into an instance
Step 1: Security groups: port 22 TCP & all ICMP
allowed?
Step 2: Is floating IP address routable from client?
● route -n on client
● Verify that public subnet in OpenStack is accessible from client (eg. for local
LAN, that it matches 192.168.0.0/24)
Step 3: Bridges OK?
Closing
Doing nothing at all vs. making very small consistent efforts
Networking in Openstack - Neutron 101
Networking in Openstack - Neutron 101

More Related Content

What's hot

Best Practice for Deploying Application with Heat
Best Practice for Deploying Application with HeatBest Practice for Deploying Application with Heat
Best Practice for Deploying Application with Heat
Ethan Lynn
 
「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~ - ...
「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~  - ...「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~  - ...
「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~ - ...
VirtualTech Japan Inc.
 
日本OpenStackユーザ会 第37回勉強会
日本OpenStackユーザ会 第37回勉強会日本OpenStackユーザ会 第37回勉強会
日本OpenStackユーザ会 第37回勉強会
Yushiro Furukawa
 
Using CloudStack With Clustered LVM
Using CloudStack With Clustered LVMUsing CloudStack With Clustered LVM
Using CloudStack With Clustered LVM
Marcus L Sorensen
 
High availability virtualization with proxmox
High availability virtualization with proxmoxHigh availability virtualization with proxmox
High availability virtualization with proxmox
Oriol Izquierdo Vibalda
 
Zabbix for Monitoring
Zabbix for MonitoringZabbix for Monitoring
Zabbix for Monitoring
GLC Networks
 
ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観
Yamato Tanaka
 
oVirt installation guide_v4.3
oVirt installation guide_v4.3oVirt installation guide_v4.3
oVirt installation guide_v4.3
CheolHee Han
 
Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntu
Sim Janghoon
 
[KubeConEU2023] Lima pavilion
[KubeConEU2023] Lima pavilion[KubeConEU2023] Lima pavilion
[KubeConEU2023] Lima pavilion
Akihiro Suda
 
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
Kentaro Ebisawa
 
NFV Orchestration for Telcos using OpenStack Tacker
NFV Orchestration for Telcos using OpenStack TackerNFV Orchestration for Telcos using OpenStack Tacker
NFV Orchestration for Telcos using OpenStack Tacker
Sridhar Ramaswamy
 
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue
 
一歩進んだXen仮想化環境構築
一歩進んだXen仮想化環境構築一歩進んだXen仮想化環境構築
一歩進んだXen仮想化環境構築
VirtualTech Japan Inc.
 
L3HA-VRRP-20141201
L3HA-VRRP-20141201L3HA-VRRP-20141201
L3HA-VRRP-20141201
Manabu Ori
 
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
ShapeBlue
 
OpenStack超入門シリーズ いまさら聞けないNeutronの使い方
OpenStack超入門シリーズ いまさら聞けないNeutronの使い方OpenStack超入門シリーズ いまさら聞けないNeutronの使い方
OpenStack超入門シリーズ いまさら聞けないNeutronの使い方
Toru Makabe
 
2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration
2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration
2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration
James Denton
 
Nutanix Community Edition 技術解説
Nutanix Community Edition 技術解説Nutanix Community Edition 技術解説
Nutanix Community Edition 技術解説
Satoshi Shimazaki
 
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/NeutronOverview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
vivekkonnect
 

What's hot (20)

Best Practice for Deploying Application with Heat
Best Practice for Deploying Application with HeatBest Practice for Deploying Application with Heat
Best Practice for Deploying Application with Heat
 
「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~ - ...
「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~  - ...「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~  - ...
「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~ - ...
 
日本OpenStackユーザ会 第37回勉強会
日本OpenStackユーザ会 第37回勉強会日本OpenStackユーザ会 第37回勉強会
日本OpenStackユーザ会 第37回勉強会
 
Using CloudStack With Clustered LVM
Using CloudStack With Clustered LVMUsing CloudStack With Clustered LVM
Using CloudStack With Clustered LVM
 
High availability virtualization with proxmox
High availability virtualization with proxmoxHigh availability virtualization with proxmox
High availability virtualization with proxmox
 
Zabbix for Monitoring
Zabbix for MonitoringZabbix for Monitoring
Zabbix for Monitoring
 
ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観
 
oVirt installation guide_v4.3
oVirt installation guide_v4.3oVirt installation guide_v4.3
oVirt installation guide_v4.3
 
Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntu
 
[KubeConEU2023] Lima pavilion
[KubeConEU2023] Lima pavilion[KubeConEU2023] Lima pavilion
[KubeConEU2023] Lima pavilion
 
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
 
NFV Orchestration for Telcos using OpenStack Tacker
NFV Orchestration for Telcos using OpenStack TackerNFV Orchestration for Telcos using OpenStack Tacker
NFV Orchestration for Telcos using OpenStack Tacker
 
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
 
一歩進んだXen仮想化環境構築
一歩進んだXen仮想化環境構築一歩進んだXen仮想化環境構築
一歩進んだXen仮想化環境構築
 
L3HA-VRRP-20141201
L3HA-VRRP-20141201L3HA-VRRP-20141201
L3HA-VRRP-20141201
 
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
 
OpenStack超入門シリーズ いまさら聞けないNeutronの使い方
OpenStack超入門シリーズ いまさら聞けないNeutronの使い方OpenStack超入門シリーズ いまさら聞けないNeutronの使い方
OpenStack超入門シリーズ いまさら聞けないNeutronの使い方
 
2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration
2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration
2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration
 
Nutanix Community Edition 技術解説
Nutanix Community Edition 技術解説Nutanix Community Edition 技術解説
Nutanix Community Edition 技術解説
 
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/NeutronOverview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
 

Similar to Networking in Openstack - Neutron 101

OpenStack Neutron Havana Overview - Oct 2013
OpenStack Neutron Havana Overview - Oct 2013OpenStack Neutron Havana Overview - Oct 2013
OpenStack Neutron Havana Overview - Oct 2013
Edgar Magana
 
neutron_icehouse_update
neutron_icehouse_updateneutron_icehouse_update
neutron_icehouse_update
Akihiro Motoki
 
Quantum - Virtual networks for Openstack
Quantum - Virtual networks for OpenstackQuantum - Virtual networks for Openstack
Quantum - Virtual networks for Openstack
salv_orlando
 
OpenStack Networking and Automation
OpenStack Networking and AutomationOpenStack Networking and Automation
OpenStack Networking and Automation
Adam Johnson
 
Openstack Workshop (Networking/Storage)
Openstack Workshop (Networking/Storage)Openstack Workshop (Networking/Storage)
Openstack Workshop (Networking/Storage)
Affan Syed
 
OpenStack Neutron: What's New In Kilo and a Look Toward Liberty
OpenStack Neutron: What's New In Kilo and a Look Toward LibertyOpenStack Neutron: What's New In Kilo and a Look Toward Liberty
OpenStack Neutron: What's New In Kilo and a Look Toward Liberty
mestery
 
MidoNet gives OpenStack Neutron a Boost
MidoNet gives OpenStack Neutron a BoostMidoNet gives OpenStack Neutron a Boost
MidoNet gives OpenStack Neutron a Boost
OpenStack_Online
 
Openstack Neutron and SDN
Openstack Neutron and SDNOpenstack Neutron and SDN
Openstack Neutron and SDN
inakipascual
 
Yechielthur1100red hat-cloud-infrastructure-networking-deep-dive-140417165107...
Yechielthur1100red hat-cloud-infrastructure-networking-deep-dive-140417165107...Yechielthur1100red hat-cloud-infrastructure-networking-deep-dive-140417165107...
Yechielthur1100red hat-cloud-infrastructure-networking-deep-dive-140417165107...
Công TÔ
 
OpenStack and OpenDaylight Workshop: ONUG Spring 2014
OpenStack and OpenDaylight Workshop: ONUG Spring 2014OpenStack and OpenDaylight Workshop: ONUG Spring 2014
OpenStack and OpenDaylight Workshop: ONUG Spring 2014
mestery
 
SDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center NetworkingSDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center Networking
Thomas Graf
 
Network Virtualization & Software-defined Networking
Network Virtualization & Software-defined NetworkingNetwork Virtualization & Software-defined Networking
Network Virtualization & Software-defined Networking
Digicomp Academy AG
 
Building a sdn solution for the deployment of web application stacks in docker
Building a sdn solution for the deployment of web application stacks in dockerBuilding a sdn solution for the deployment of web application stacks in docker
Building a sdn solution for the deployment of web application stacks in docker
Jorge Juan Mendoza
 
Neutron behind the scenes
Neutron   behind the scenesNeutron   behind the scenes
Neutron behind the scenes
inbroker
 
Open stack networking_101_update_2014
Open stack networking_101_update_2014Open stack networking_101_update_2014
Open stack networking_101_update_2014
yfauser
 
Open stack wtf_(1)
Open stack  wtf_(1)Open stack  wtf_(1)
Open stack wtf_(1)
Ilya Sviridov
 
MidoNet Overview - OpenStack and SDN integration
MidoNet Overview - OpenStack and SDN integrationMidoNet Overview - OpenStack and SDN integration
MidoNet Overview - OpenStack and SDN integration
Akhilesh Dhawan
 
Openstack Neutron Insights
Openstack Neutron InsightsOpenstack Neutron Insights
Openstack Neutron Insights
Atul Pandey
 
Open stack networking_101_update_2014-os-meetups
Open stack networking_101_update_2014-os-meetupsOpen stack networking_101_update_2014-os-meetups
Open stack networking_101_update_2014-os-meetups
yfauser
 
OpenDaylight Netvirt and Neutron - Mike Kolesnik, Josh Hershberg - OpenStack ...
OpenDaylight Netvirt and Neutron - Mike Kolesnik, Josh Hershberg - OpenStack ...OpenDaylight Netvirt and Neutron - Mike Kolesnik, Josh Hershberg - OpenStack ...
OpenDaylight Netvirt and Neutron - Mike Kolesnik, Josh Hershberg - OpenStack ...
Cloud Native Day Tel Aviv
 

Similar to Networking in Openstack - Neutron 101 (20)

OpenStack Neutron Havana Overview - Oct 2013
OpenStack Neutron Havana Overview - Oct 2013OpenStack Neutron Havana Overview - Oct 2013
OpenStack Neutron Havana Overview - Oct 2013
 
neutron_icehouse_update
neutron_icehouse_updateneutron_icehouse_update
neutron_icehouse_update
 
Quantum - Virtual networks for Openstack
Quantum - Virtual networks for OpenstackQuantum - Virtual networks for Openstack
Quantum - Virtual networks for Openstack
 
OpenStack Networking and Automation
OpenStack Networking and AutomationOpenStack Networking and Automation
OpenStack Networking and Automation
 
Openstack Workshop (Networking/Storage)
Openstack Workshop (Networking/Storage)Openstack Workshop (Networking/Storage)
Openstack Workshop (Networking/Storage)
 
OpenStack Neutron: What's New In Kilo and a Look Toward Liberty
OpenStack Neutron: What's New In Kilo and a Look Toward LibertyOpenStack Neutron: What's New In Kilo and a Look Toward Liberty
OpenStack Neutron: What's New In Kilo and a Look Toward Liberty
 
MidoNet gives OpenStack Neutron a Boost
MidoNet gives OpenStack Neutron a BoostMidoNet gives OpenStack Neutron a Boost
MidoNet gives OpenStack Neutron a Boost
 
Openstack Neutron and SDN
Openstack Neutron and SDNOpenstack Neutron and SDN
Openstack Neutron and SDN
 
Yechielthur1100red hat-cloud-infrastructure-networking-deep-dive-140417165107...
Yechielthur1100red hat-cloud-infrastructure-networking-deep-dive-140417165107...Yechielthur1100red hat-cloud-infrastructure-networking-deep-dive-140417165107...
Yechielthur1100red hat-cloud-infrastructure-networking-deep-dive-140417165107...
 
OpenStack and OpenDaylight Workshop: ONUG Spring 2014
OpenStack and OpenDaylight Workshop: ONUG Spring 2014OpenStack and OpenDaylight Workshop: ONUG Spring 2014
OpenStack and OpenDaylight Workshop: ONUG Spring 2014
 
SDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center NetworkingSDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center Networking
 
Network Virtualization & Software-defined Networking
Network Virtualization & Software-defined NetworkingNetwork Virtualization & Software-defined Networking
Network Virtualization & Software-defined Networking
 
Building a sdn solution for the deployment of web application stacks in docker
Building a sdn solution for the deployment of web application stacks in dockerBuilding a sdn solution for the deployment of web application stacks in docker
Building a sdn solution for the deployment of web application stacks in docker
 
Neutron behind the scenes
Neutron   behind the scenesNeutron   behind the scenes
Neutron behind the scenes
 
Open stack networking_101_update_2014
Open stack networking_101_update_2014Open stack networking_101_update_2014
Open stack networking_101_update_2014
 
Open stack wtf_(1)
Open stack  wtf_(1)Open stack  wtf_(1)
Open stack wtf_(1)
 
MidoNet Overview - OpenStack and SDN integration
MidoNet Overview - OpenStack and SDN integrationMidoNet Overview - OpenStack and SDN integration
MidoNet Overview - OpenStack and SDN integration
 
Openstack Neutron Insights
Openstack Neutron InsightsOpenstack Neutron Insights
Openstack Neutron Insights
 
Open stack networking_101_update_2014-os-meetups
Open stack networking_101_update_2014-os-meetupsOpen stack networking_101_update_2014-os-meetups
Open stack networking_101_update_2014-os-meetups
 
OpenDaylight Netvirt and Neutron - Mike Kolesnik, Josh Hershberg - OpenStack ...
OpenDaylight Netvirt and Neutron - Mike Kolesnik, Josh Hershberg - OpenStack ...OpenDaylight Netvirt and Neutron - Mike Kolesnik, Josh Hershberg - OpenStack ...
OpenDaylight Netvirt and Neutron - Mike Kolesnik, Josh Hershberg - OpenStack ...
 

Recently uploaded

一比一原版(ubc毕业证书)英属哥伦比亚大学毕业证如何办理
一比一原版(ubc毕业证书)英属哥伦比亚大学毕业证如何办理一比一原版(ubc毕业证书)英属哥伦比亚大学毕业证如何办理
一比一原版(ubc毕业证书)英属哥伦比亚大学毕业证如何办理
taqyea
 
一比一原版(soas毕业证书)英国伦敦大学亚非学院毕业证如何办理
一比一原版(soas毕业证书)英国伦敦大学亚非学院毕业证如何办理一比一原版(soas毕业证书)英国伦敦大学亚非学院毕业证如何办理
一比一原版(soas毕业证书)英国伦敦大学亚非学院毕业证如何办理
taqyea
 
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
taqyea
 
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
taqyea
 
Book dating , international dating phgra
Book dating , international dating phgraBook dating , international dating phgra
Book dating , international dating phgra
thomaskurtha9
 
cyber-security-training-presentation-q320.ppt
cyber-security-training-presentation-q320.pptcyber-security-training-presentation-q320.ppt
cyber-security-training-presentation-q320.ppt
LiamOConnor52
 
一比一原版美国休斯敦大学毕业证(uh毕业证书)如何办理
一比一原版美国休斯敦大学毕业证(uh毕业证书)如何办理一比一原版美国休斯敦大学毕业证(uh毕业证书)如何办理
一比一原版美国休斯敦大学毕业证(uh毕业证书)如何办理
taqyea
 
Founders Of Digital World Social Media..
Founders Of Digital World Social Media..Founders Of Digital World Social Media..
Founders Of Digital World Social Media..
jom pom
 
Massey University degree offer diploma Transcript
Massey University degree offer diploma TranscriptMassey University degree offer diploma Transcript
Massey University degree offer diploma Transcript
ubufe
 
一比一原版(heriotwatt毕业证书)英国赫瑞瓦特大学毕业证如何办理
一比一原版(heriotwatt毕业证书)英国赫瑞瓦特大学毕业证如何办理一比一原版(heriotwatt毕业证书)英国赫瑞瓦特大学毕业证如何办理
一比一原版(heriotwatt毕业证书)英国赫瑞瓦特大学毕业证如何办理
taqyea
 
一比一原版(aber毕业证)亚伯大学毕业证如何办理
一比一原版(aber毕业证)亚伯大学毕业证如何办理一比一原版(aber毕业证)亚伯大学毕业证如何办理
一比一原版(aber毕业证)亚伯大学毕业证如何办理
taqyea
 
How to Choose the Right UIUX Design Service for Optimal Customer Experience
How to Choose the Right UIUX Design Service for Optimal Customer ExperienceHow to Choose the Right UIUX Design Service for Optimal Customer Experience
How to Choose the Right UIUX Design Service for Optimal Customer Experience
Serva AppLabs
 
一比一原版(ukc毕业证书)英国肯特大学毕业证如何办理
一比一原版(ukc毕业证书)英国肯特大学毕业证如何办理一比一原版(ukc毕业证书)英国肯特大学毕业证如何办理
一比一原版(ukc毕业证书)英国肯特大学毕业证如何办理
taqyea
 
Megalive99 Situs Betting Online Gacor Terpercaya
Megalive99 Situs Betting Online Gacor TerpercayaMegalive99 Situs Betting Online Gacor Terpercaya
Megalive99 Situs Betting Online Gacor Terpercaya
Megalive99
 
一比一原版(爱大毕业证书)英国爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)英国爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)英国爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)英国爱丁堡大学毕业证如何办理
taqyea
 
Corporate Minimal Newspaper Headline Style Newsletter.pptx
Corporate Minimal Newspaper Headline Style Newsletter.pptxCorporate Minimal Newspaper Headline Style Newsletter.pptx
Corporate Minimal Newspaper Headline Style Newsletter.pptx
byubyu7
 
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
taqyea
 
very nice project on internet class 10.pptx
very nice project on internet class 10.pptxvery nice project on internet class 10.pptx
very nice project on internet class 10.pptx
bazukagaming6
 
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
taqyea
 
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptxSlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
NandakumarP24
 

Recently uploaded (20)

一比一原版(ubc毕业证书)英属哥伦比亚大学毕业证如何办理
一比一原版(ubc毕业证书)英属哥伦比亚大学毕业证如何办理一比一原版(ubc毕业证书)英属哥伦比亚大学毕业证如何办理
一比一原版(ubc毕业证书)英属哥伦比亚大学毕业证如何办理
 
一比一原版(soas毕业证书)英国伦敦大学亚非学院毕业证如何办理
一比一原版(soas毕业证书)英国伦敦大学亚非学院毕业证如何办理一比一原版(soas毕业证书)英国伦敦大学亚非学院毕业证如何办理
一比一原版(soas毕业证书)英国伦敦大学亚非学院毕业证如何办理
 
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
一比一原版(ucb毕业证书)英国伯明翰大学学院毕业证如何办理
 
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证)曼彻斯特大学毕业证如何办理
 
Book dating , international dating phgra
Book dating , international dating phgraBook dating , international dating phgra
Book dating , international dating phgra
 
cyber-security-training-presentation-q320.ppt
cyber-security-training-presentation-q320.pptcyber-security-training-presentation-q320.ppt
cyber-security-training-presentation-q320.ppt
 
一比一原版美国休斯敦大学毕业证(uh毕业证书)如何办理
一比一原版美国休斯敦大学毕业证(uh毕业证书)如何办理一比一原版美国休斯敦大学毕业证(uh毕业证书)如何办理
一比一原版美国休斯敦大学毕业证(uh毕业证书)如何办理
 
Founders Of Digital World Social Media..
Founders Of Digital World Social Media..Founders Of Digital World Social Media..
Founders Of Digital World Social Media..
 
Massey University degree offer diploma Transcript
Massey University degree offer diploma TranscriptMassey University degree offer diploma Transcript
Massey University degree offer diploma Transcript
 
一比一原版(heriotwatt毕业证书)英国赫瑞瓦特大学毕业证如何办理
一比一原版(heriotwatt毕业证书)英国赫瑞瓦特大学毕业证如何办理一比一原版(heriotwatt毕业证书)英国赫瑞瓦特大学毕业证如何办理
一比一原版(heriotwatt毕业证书)英国赫瑞瓦特大学毕业证如何办理
 
一比一原版(aber毕业证)亚伯大学毕业证如何办理
一比一原版(aber毕业证)亚伯大学毕业证如何办理一比一原版(aber毕业证)亚伯大学毕业证如何办理
一比一原版(aber毕业证)亚伯大学毕业证如何办理
 
How to Choose the Right UIUX Design Service for Optimal Customer Experience
How to Choose the Right UIUX Design Service for Optimal Customer ExperienceHow to Choose the Right UIUX Design Service for Optimal Customer Experience
How to Choose the Right UIUX Design Service for Optimal Customer Experience
 
一比一原版(ukc毕业证书)英国肯特大学毕业证如何办理
一比一原版(ukc毕业证书)英国肯特大学毕业证如何办理一比一原版(ukc毕业证书)英国肯特大学毕业证如何办理
一比一原版(ukc毕业证书)英国肯特大学毕业证如何办理
 
Megalive99 Situs Betting Online Gacor Terpercaya
Megalive99 Situs Betting Online Gacor TerpercayaMegalive99 Situs Betting Online Gacor Terpercaya
Megalive99 Situs Betting Online Gacor Terpercaya
 
一比一原版(爱大毕业证书)英国爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)英国爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)英国爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)英国爱丁堡大学毕业证如何办理
 
Corporate Minimal Newspaper Headline Style Newsletter.pptx
Corporate Minimal Newspaper Headline Style Newsletter.pptxCorporate Minimal Newspaper Headline Style Newsletter.pptx
Corporate Minimal Newspaper Headline Style Newsletter.pptx
 
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
一比一原版(greenwich毕业证书)英国格林威治大学毕业证如何办理
 
very nice project on internet class 10.pptx
very nice project on internet class 10.pptxvery nice project on internet class 10.pptx
very nice project on internet class 10.pptx
 
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
一比一原版(lu毕业证书)英国拉夫堡大学毕业证如何办理
 
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptxSlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
SlideEgg_200767-ICC Mens T20 World Cup 2024.pptx
 

Networking in Openstack - Neutron 101

  • 1. Networking in Openstack - Neutron 101 Mochamad Taufik Romdony Cloud Network & Datacenter Engineer Openstack Indonesia - Meetup #6 Bandung, 2019::10:26
  • 3. Agenda • History of cloud computing • Openstack Introduction • About Openstack • Openstack Core Service • Openstack Neutron • Neutron Architecture • Neutron plugin & service
  • 4. The History of cloud computing Openstack Indonesia Meetup #6 Bandung, 26/10/2019
  • 5. The History of cloud computing 1950 Mainframe 1969 J.C.R. Licklider developed the ARPANET 1970 IBM released VMs 1960 John McCarthy, Douglas Parkhill “idea of time- sharing computing” 1980 - 1990 ● Apple launches Macintosh, Microsoft launches Windows ● FOSS, GNU/Linux ● CERN launches WWW ● Web hosting service provider began intern infrastructure 2006 AWS launches S3 & EC2 1999 - 2005 Server Virtualization - 1999, VMware introduced the x86 virtualization - 2000, Xen the open-source x86 hypervisor, - 2005, Intel released two models of Pentium 4 as the first Intel processors to support VT-x - 2007, the Kernel-based Virtual Machine (KVM) hypervisor created included in the Linux kernel 2010 Rackspace Hosting and NASA, launched the open source cloud initiative OpenStack Now Public cloud, big data, machine learning, IOT, software defined everything and more
  • 8. Openstack Introduction Openstack Indonesia Meetup #6 Bandung, 26/10/2019
  • 10. What is Openstack? OpenStack is a cloud operating system that controls large pools of compute, storage, and networking resources throughout a datacenter, all managed and provisioned through APIs with common authentication mechanisms.
  • 11. Openstack Landscape OpenStack is broken up into services to allow you to plug and play components depending on your needs. The openstack map gives you an “at a glance” view of the openstack landscape to see where those services fit and how they can work together
  • 12. Network as a service in Openstack Openstack Indonesia Meetup #6 Bandung, 26/10/2019
  • 13. History of Openstack Networking ● In the first openstack release Austin (Oct 2010) the networking functionality was hard-coded into Nova ● Networking and compute features could not be updated independently ● Quantum was added as a separate networking service as part of the Folsom (Sept 2012) release ● The name of networking project was changed to Neutron as part Havana (Oct 2013) release ● The name change was due to a trademark conflict ● With Neutron, Networking became modular and could evolve independently
  • 14. What is Neutron? ● Neutron is networking-as-a-service project in openstack ● Neutron has a server component running on the controller node ● Neutron has a set of APIs, Plugins, SQL DB and authentication software ● Neutron has several distributed agent programs ● Neutron enables network devices and technologies to work together in IaaS environment
  • 15. Neutron Configuration Overview Virtual Router Floating IP/SNAT Virtual L2 Network Virtual Subnet Virtual Port Virtual Interface (VIF) Virtual Server Namespace
  • 16. Basic functions of Neutron ● L2 network Create L2 network between multiple Nova Compute ● L3 network Virtual network routing, external network connection, SNAT, Floating IP ● DHCP server DHCP server that assigns IP addresses to virtual machines ● Metadata Acts as a proxy for the metadata server
  • 17. Basic functions of Neutron - Cont ● L2 network Create L2 network between multiple Nova Compute ● L3 network Virtual network routing, external network connection, SNAT, Floating IP ● DHCP server DHCP server that assigns IP addresses to virtual machines ● Metadata Acts as a proxy for the metadata server
  • 18. Type of Network Traffic ● Management Internal communication between services ● API Exposes Openstack APIs to users of the cloud ● Guest A network dedicated to instance traffic ● External Provides neutron routers with network access
  • 20. Neutron Plugin ● Open vSwitch Plugin ● Cisco UCS/Nexus Plugin ● Cisco Nexus1000v Plugin ● Linux Bridge Plugin ● Modular Layer 2 Plugin (ML2 Plugin) ● Nicira Network Virtualization Platform (NVP) Plugin ● Ryu OpenFlow Controller Plugin ● NEC OpenFlow Plugin ● Big Switch Controller Plugin ● Brocade Neutron Plugin Brocade Neutron Plugin ● Cloudbase Hyper-V Plugin ● OpenContrail/Tungsten Fabric Plugin ● Nuage Networks Plugin ● CPLANE NETWORKS CPLANE NETWORKS ● IBM SDN-VE Plugin ● Embrane Neutron Plugin ● Mellanox Neutron Plugin Mellanox Neutron Plugin ● PLUMgrid Plugin
  • 21. ML2 Plugin Openstack Indonesia Meetup #6 Bandung, 26/10/2019
  • 22. What is ML2 Plugin? The Modular Layer 2 (ml2) plugin is a framework allowing OpenStack Networking to simultaneously utilize the variety of layer 2 networking technologies found in complex real-world data centers.
  • 23. Neutron ML2 Plugin ● Type Driver ○ Flat ○ VLAN ○ GRE ○ VXLAN ● Mechanism Driver ○ Open vSwitch ○ Linux Bridge ○ L2 Population ○ Specialized (opensource & vendor) ML2 Plugin Type drivers Mechanism drivers F L A T V L A N V X L A N G R E OpenvSwitch LinuxBridge L2Population Specialized
  • 25. Neutron ML2 Plugin - Cont ● Type Driver : which tells it what type of L2 technology to use when implementing the networking. For example, there is an option of using VLANs, VXLAN, or GRE Tunneling ○ Local: A local network is a network that can only be realized on a single host. This is only used in proof- of-concept or development environments, because just about any other OpenStack environment will have multiple compute hosts and/or a separate network host ○ Flat: A flat network is a network that does not provide any segmentation options. A traditional L2 ethernet network is a "flat" network. Any servers attached to this network are able to see the same broadcast traffic and can contact each other without requiring a router. flat networks are often used to attach Nova servers to an existing L2 network (this is called a "provider network") ○ VLAN: In a VLAN network, tenants are separated because each is assigned to a VLAN. In OpenVSwitch plugin (or ML2 with OVS driver), OVS will in the virtual switches allocate an internal VLAN for each tenant ○ GRE: GRE tunnels encapsulate isolated layer 2 network traffic in IP packets that are routed between compute and networking nodes using the hosts' network connectivity and routing tables ○ VXLAN: gre and vxlan networks are very similar. They are both "overylay" networks that work by encapsulating network traffic. Like vlan networks, each network you create receives a unique tunnel id ● Mechanism Driver: which specifies what driver to use to implement the technology. You can use the default Open vSwitch driver (which is what we will cover).
  • 26. Process of Instance creation 1 Sending API Request 2 Authentication request 3 Authentication ACK & validates if provided data is correct 4 6 5 Update DB 7 Select compute host 8 Update DB 9 Request glance image 11 Create port (Mac - iP) 10 Glance image download 12 Notify L2 agent 13 Configure local VLAN and Flows 14 send port up notification (RPC: L2 agent to neutron) 15 port up (RPC: Neutron to NOVA) 16 Instance Booted L2 Agent Openstack Nova compute Openstack glance API Openstack glance registry Neutron Server Neutron L3 Agent Neutron DHCP agent
  • 27. Network Troubleshooting Openstack Indonesia Meetup #6 Bandung, 26/10/2019
  • 28. Debugging network issues ● ip a shows status of all physical and virtual devices ● ovs-vsctl show shows interfaces and bridges in thevirtual switch ● ovs-dpctl show shows datapaths on the switch ● Tcp dump ○ tcpdump -n -i <interface> -w <filename> ○ Set interface to vnet device, instance eth0, bridge device, or host ethernet device to see where packets are not getting through ○ -i any for all interfaces ● iptables -L to check iptables rules ● ip netns list – lists all known network namespaces ● ip netns exec <namespace id> route -n ○ Shows routing table inside specific namespace ○ Execute arbitrary commands (incl. ssh, ping)
  • 29. Debugging networking issues: DHCP Scenario: Instance is not getting IP address Step 1: nova console-log <instance name>, DHCP request sent, no reply received Step 2: Verify neutron-dhcp-agent is running Step 3: Check host logs (/var/log/messages and /var/log/neutron/*) Step 4: If host is not seeing DHCP traffic: tcpdump -i all | grep -i dhcp
  • 30. Debugging networking issues: Access/routingScenario: I can't SSH into an instance Step 1: Security groups: port 22 TCP & all ICMP allowed? Step 2: Is floating IP address routable from client? ● route -n on client ● Verify that public subnet in OpenStack is accessible from client (eg. for local LAN, that it matches 192.168.0.0/24) Step 3: Bridges OK?
  • 31. Closing Doing nothing at all vs. making very small consistent efforts