SlideShare a Scribd company logo
DAVE NEARY1
Networking in OpenStack for non-
networking people: Neutron, OVS and
friends
Dave Neary
dneary@redhat.com
Open Source and Standards
Red Hat
REDHAT OPENSTACK |2013DOC144908-20130513r1
AGENDA
● Networking review: the OSI model
● Networking in a virtual world
● Neutron and OVS
● Debugging and fixing networking issues
DAVE NEARY3
Networking: The OSI model
Layer 1
Layer 7
DAVE NEARY4
Networking: The OSI model
Layer 1
Layer 7
Cables
Switching
Routers
Hardware
Software
TCP/IP
SMTP
DAVE NEARY5
Switches and routers
DAVE NEARY6
Networking in a virtual world
CC BY from OpenStack Operations Guide:
http://bit.ly/OpenStackNetworking
DAVE NEARY7
Networking in a virtual world: Open vSwitch
DAVE NEARY9
Networking in a virtual world: Neutron
● Abstracts away internals of switching and SDN
provider
● Provides high-level abstractions (router, subnet,
network, gateway)
● “Law of Leaky Abstractions” applies
DAVE NEARY10
Neutron: Creating a subnet
● neutron router-create router1
● neutron net-create net1
● neutron subnet-create net1 172.17.0.0/24 --name
subnet1
● neutron router-interface-add router1 subnet1
DAVE NEARY11
Neutron: Attaching a public subnet
● neutron net-create net2 --router-external=True
● neutron subnet-create net2 192.168.0.0/24
--name subnet2 --enable_dhcp=False
--allocation-pool
start=192.168.0.32,end=192.168.0.63
--gateway=192.168.0.1
● neutron router-gateway-set router1 net2
DAVE NEARY12
Neutron: Floating IPs
● To connect from an external machine to an instance,
you need a routable IP address
● Floating IP addresses are public aliases for private IP
addresses
● They survive changes in private IPs, enable load
balancing, etc.
● Equivalent to Elastic IPs in AWS
DAVE NEARY13
Neutron: Floating IPs
● neutron floatingip-create net2
● neutron floatingip-list
● neutron port-list
● neutron floatingip-associate <floating-ip>
<port>
DAVE NEARY14
Debugging network issues: Devices
●
ip a shows status of all physical and virtual devices
●
ovs-vsctl show shows interfaces and bridges in the
virtual switch
●
ovs-dpctl show shows datapaths on the switch
DAVE NEARY15
Debugging network issues: Tracking packets
●
tcpdump is your friend
● 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
DAVE NEARY16
Debugging network issues: Network namespaces
● Network namespaces allow VLANs to share
overlapping address space – important for bigger
deployments, and to provide multi-tenant networks
●
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)
DAVE NEARY17
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
DAVE NEARY18
Debugging networking issues: Access/routing
● Scenario: 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?
DAVE NEARY19
Debugging networking issues: Access/routing
● Bridge issues:
● ovs-vsctl show – is ethernet card attached to same
bridge as public network?
● neutron router show router1 – are the private
subnet and public subnet connected to the router?
● ip netns exec <public namespace id> ping
<floating IP> - does the public network match the
local LAN exactly?
● ip netns exec <private namespace id> route -n
– is traffic being correctly routed from the instance out?
DAVE NEARY20
Resources
● OpenStack Network troubleshooting:
http://bit.ly/OpenStackNetworking
● OpenStack Networking: L3 workflow:
http://bit.ly/L3Workflow
● RDO Networking: http://bit.ly/RDONetworking
● RDO: Neutron with an external network:
http://bit.ly/RDONeutronExtNet
● OpenStack Tales from the Crypt:
http://bit.ly/OpenStackCrypt
REDHAT OPENSTACK |2013DOC144908-20130513r1
QUESTIONS?

More Related Content

PPTX
Meetup 23 - 02 - OVN - The future of networking in OpenStack
Vietnam Open Infrastructure User Group
 
PDF
Nova: Openstack Compute-as-a-service
Pratik Bandarkar
 
PDF
OpenStack networking (Neutron)
CREATE-NET
 
PDF
OpenStack Networking
Ilya Shakhat
 
PPTX
OVN - Basics and deep dive
Trinath Somanchi
 
PPTX
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
vivekkonnect
 
PDF
OpenStack Architecture
Mirantis
 
PDF
Mastering OpenStack - Episode 01 - Simple Architectures
Roozbeh Shafiee
 
Meetup 23 - 02 - OVN - The future of networking in OpenStack
Vietnam Open Infrastructure User Group
 
Nova: Openstack Compute-as-a-service
Pratik Bandarkar
 
OpenStack networking (Neutron)
CREATE-NET
 
OpenStack Networking
Ilya Shakhat
 
OVN - Basics and deep dive
Trinath Somanchi
 
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
vivekkonnect
 
OpenStack Architecture
Mirantis
 
Mastering OpenStack - Episode 01 - Simple Architectures
Roozbeh Shafiee
 

What's hot (20)

PDF
RedHat OpenStack Platform Overview
indevlab
 
PPTX
Issues of OpenStack multi-region mode
Joe Huang
 
PDF
OpenStack Architecture
Mirantis
 
PDF
오픈스택 기반 클라우드 서비스 구축 방안 및 사례
SONG INSEOB
 
PPTX
Troubleshooting common oslo.messaging and RabbitMQ issues
Michael Klishin
 
PDF
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
Thomas Graf
 
PDF
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
Vietnam Open Infrastructure User Group
 
PDF
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Vietnam Open Infrastructure User Group
 
PPTX
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Vietnam Open Infrastructure User Group
 
PDF
Large scale overlay networks with ovn: problems and solutions
Han Zhou
 
PDF
Red Hat OpenStack - Open Cloud Infrastructure
Alex Baretto
 
PPTX
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Vietnam Open Infrastructure User Group
 
PDF
(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf
ssuserf8b8bd1
 
PDF
Deploying CloudStack and Ceph with flexible VXLAN and BGP networking
ShapeBlue
 
PDF
Monitoring kubernetes with prometheus
Brice Fernandes
 
PDF
Deep dive into Kubernetes Networking
Sreenivas Makam
 
PPTX
Packet flow on openstack
Achhar Kalia
 
PDF
Introduction openstack horizon
Jim Yeh
 
PPTX
Hashicorp Vault ppt
Shrey Agarwal
 
PPTX
Docker Networking Overview
Sreenivas Makam
 
RedHat OpenStack Platform Overview
indevlab
 
Issues of OpenStack multi-region mode
Joe Huang
 
OpenStack Architecture
Mirantis
 
오픈스택 기반 클라우드 서비스 구축 방안 및 사례
SONG INSEOB
 
Troubleshooting common oslo.messaging and RabbitMQ issues
Michael Klishin
 
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
Thomas Graf
 
Room 3 - 1 - Nguyễn Xuân Trường Lâm - Zero touch on-premise storage infrastru...
Vietnam Open Infrastructure User Group
 
Room 1 - 4 - Phạm Tường Chiến & Trần Văn Thắng - Deliver managed Kubernetes C...
Vietnam Open Infrastructure User Group
 
Room 1 - 6 - Trần Quốc Sang - Autoscaling for multi cloud platform based on S...
Vietnam Open Infrastructure User Group
 
Large scale overlay networks with ovn: problems and solutions
Han Zhou
 
Red Hat OpenStack - Open Cloud Infrastructure
Alex Baretto
 
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Vietnam Open Infrastructure User Group
 
(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf
ssuserf8b8bd1
 
Deploying CloudStack and Ceph with flexible VXLAN and BGP networking
ShapeBlue
 
Monitoring kubernetes with prometheus
Brice Fernandes
 
Deep dive into Kubernetes Networking
Sreenivas Makam
 
Packet flow on openstack
Achhar Kalia
 
Introduction openstack horizon
Jim Yeh
 
Hashicorp Vault ppt
Shrey Agarwal
 
Docker Networking Overview
Sreenivas Makam
 
Ad

Similar to Networking in OpenStack for non-networking people: Neutron, Open vSwitch and friends (20)

PPTX
Neutron behind the scenes
inbroker
 
PPTX
Networking in Openstack - Neutron 101
Mochamad Taufik Romdony
 
PDF
Openstack Networking and ML2
Szlovencsak Attila
 
PDF
Agile OpenStack Networking with Cisco Solutions
Cisco DevNet
 
PDF
Open stack networking_101_part-2_tech_deep_dive
yfauser
 
PDF
Open stack networking_101_part-1
yfauser
 
PDF
OpenStack Neutron Tutorial
mestery
 
PDF
OpenStack Neutron: What's New In Kilo and a Look Toward Liberty
mestery
 
PDF
Nova net-or-neutron-atlanta2014.pptx
Somik Behera
 
PDF
Bridges and Tunnels: A Drive Through OpenStack Networking
markmcclain
 
PPTX
Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101
Kevin Jackson
 
PDF
Yechielthur1100red hat-cloud-infrastructure-networking-deep-dive-140417165107...
Công TÔ
 
PDF
ONUG Tutorial: Bridges and Tunnels Drive Through OpenStack Networking
markmcclain
 
PPTX
BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions - Cisco Live! US ...
Rohit Agarwalla
 
PDF
neutron_icehouse_update
Akihiro Motoki
 
PPTX
Neutron DVR
Edgar Magana
 
PDF
OpenStack in Action 4! Mark McCLain - From Segments to Services a Dive into O...
eNovance
 
PPTX
Navigating OpenStack Networking
PLUMgrid
 
PPTX
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
Trevor Roberts Jr.
 
PDF
Introduction to Software Defined Networking and OpenStack Neutron
Sana Khan
 
Neutron behind the scenes
inbroker
 
Networking in Openstack - Neutron 101
Mochamad Taufik Romdony
 
Openstack Networking and ML2
Szlovencsak Attila
 
Agile OpenStack Networking with Cisco Solutions
Cisco DevNet
 
Open stack networking_101_part-2_tech_deep_dive
yfauser
 
Open stack networking_101_part-1
yfauser
 
OpenStack Neutron Tutorial
mestery
 
OpenStack Neutron: What's New In Kilo and a Look Toward Liberty
mestery
 
Nova net-or-neutron-atlanta2014.pptx
Somik Behera
 
Bridges and Tunnels: A Drive Through OpenStack Networking
markmcclain
 
Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101
Kevin Jackson
 
Yechielthur1100red hat-cloud-infrastructure-networking-deep-dive-140417165107...
Công TÔ
 
ONUG Tutorial: Bridges and Tunnels Drive Through OpenStack Networking
markmcclain
 
BRKDCT-2445 Agile OpenStack Networking with Cisco Solutions - Cisco Live! US ...
Rohit Agarwalla
 
neutron_icehouse_update
Akihiro Motoki
 
Neutron DVR
Edgar Magana
 
OpenStack in Action 4! Mark McCLain - From Segments to Services a Dive into O...
eNovance
 
Navigating OpenStack Networking
PLUMgrid
 
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
Trevor Roberts Jr.
 
Introduction to Software Defined Networking and OpenStack Neutron
Sana Khan
 
Ad

More from Dave Neary (20)

PPTX
Crafting an Open Source Product Strategy
Dave Neary
 
PPTX
Community dynamics
Dave Neary
 
PDF
Community catalysts value of open source
Dave Neary
 
PDF
Crafting an open source product strategy
Dave Neary
 
ODP
Open source business models
Dave Neary
 
ODP
Nfv primer v2
Dave Neary
 
ODP
Community Impacts of Legal Decisions
Dave Neary
 
PDF
Community antipatterns
Dave Neary
 
PDF
Is there a big bang going on?
Dave Neary
 
PDF
Open daylight and Openstack
Dave Neary
 
PDF
Swimming upstream
Dave Neary
 
PDF
NFV for beginners
Dave Neary
 
PDF
Metrics gone bad
Dave Neary
 
PDF
A complete Open Source cloud: Storage, Virt, IaaS, PaaS
Dave Neary
 
PDF
The Ecclesiastes principle: Learning lessons of the past
Dave Neary
 
PDF
OpenShift on OpenStack
Dave Neary
 
ODP
Growing the next generation of Open Source developers
Dave Neary
 
ODP
Personas
Dave Neary
 
ODP
Growing next generation
Dave Neary
 
ODP
Foundations 101
Dave Neary
 
Crafting an Open Source Product Strategy
Dave Neary
 
Community dynamics
Dave Neary
 
Community catalysts value of open source
Dave Neary
 
Crafting an open source product strategy
Dave Neary
 
Open source business models
Dave Neary
 
Nfv primer v2
Dave Neary
 
Community Impacts of Legal Decisions
Dave Neary
 
Community antipatterns
Dave Neary
 
Is there a big bang going on?
Dave Neary
 
Open daylight and Openstack
Dave Neary
 
Swimming upstream
Dave Neary
 
NFV for beginners
Dave Neary
 
Metrics gone bad
Dave Neary
 
A complete Open Source cloud: Storage, Virt, IaaS, PaaS
Dave Neary
 
The Ecclesiastes principle: Learning lessons of the past
Dave Neary
 
OpenShift on OpenStack
Dave Neary
 
Growing the next generation of Open Source developers
Dave Neary
 
Personas
Dave Neary
 
Growing next generation
Dave Neary
 
Foundations 101
Dave Neary
 

Recently uploaded (20)

PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Doc9.....................................
SofiaCollazos
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 

Networking in OpenStack for non-networking people: Neutron, Open vSwitch and friends

  • 1. DAVE NEARY1 Networking in OpenStack for non- networking people: Neutron, OVS and friends Dave Neary [email protected] Open Source and Standards Red Hat
  • 2. REDHAT OPENSTACK |2013DOC144908-20130513r1 AGENDA ● Networking review: the OSI model ● Networking in a virtual world ● Neutron and OVS ● Debugging and fixing networking issues
  • 3. DAVE NEARY3 Networking: The OSI model Layer 1 Layer 7
  • 4. DAVE NEARY4 Networking: The OSI model Layer 1 Layer 7 Cables Switching Routers Hardware Software TCP/IP SMTP
  • 6. DAVE NEARY6 Networking in a virtual world CC BY from OpenStack Operations Guide: http://bit.ly/OpenStackNetworking
  • 7. DAVE NEARY7 Networking in a virtual world: Open vSwitch
  • 8. DAVE NEARY9 Networking in a virtual world: Neutron ● Abstracts away internals of switching and SDN provider ● Provides high-level abstractions (router, subnet, network, gateway) ● “Law of Leaky Abstractions” applies
  • 9. DAVE NEARY10 Neutron: Creating a subnet ● neutron router-create router1 ● neutron net-create net1 ● neutron subnet-create net1 172.17.0.0/24 --name subnet1 ● neutron router-interface-add router1 subnet1
  • 10. DAVE NEARY11 Neutron: Attaching a public subnet ● neutron net-create net2 --router-external=True ● neutron subnet-create net2 192.168.0.0/24 --name subnet2 --enable_dhcp=False --allocation-pool start=192.168.0.32,end=192.168.0.63 --gateway=192.168.0.1 ● neutron router-gateway-set router1 net2
  • 11. DAVE NEARY12 Neutron: Floating IPs ● To connect from an external machine to an instance, you need a routable IP address ● Floating IP addresses are public aliases for private IP addresses ● They survive changes in private IPs, enable load balancing, etc. ● Equivalent to Elastic IPs in AWS
  • 12. DAVE NEARY13 Neutron: Floating IPs ● neutron floatingip-create net2 ● neutron floatingip-list ● neutron port-list ● neutron floatingip-associate <floating-ip> <port>
  • 13. DAVE NEARY14 Debugging network issues: Devices ● ip a shows status of all physical and virtual devices ● ovs-vsctl show shows interfaces and bridges in the virtual switch ● ovs-dpctl show shows datapaths on the switch
  • 14. DAVE NEARY15 Debugging network issues: Tracking packets ● tcpdump is your friend ● 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
  • 15. DAVE NEARY16 Debugging network issues: Network namespaces ● Network namespaces allow VLANs to share overlapping address space – important for bigger deployments, and to provide multi-tenant networks ● 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)
  • 16. DAVE NEARY17 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
  • 17. DAVE NEARY18 Debugging networking issues: Access/routing ● Scenario: 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?
  • 18. DAVE NEARY19 Debugging networking issues: Access/routing ● Bridge issues: ● ovs-vsctl show – is ethernet card attached to same bridge as public network? ● neutron router show router1 – are the private subnet and public subnet connected to the router? ● ip netns exec <public namespace id> ping <floating IP> - does the public network match the local LAN exactly? ● ip netns exec <private namespace id> route -n – is traffic being correctly routed from the instance out?
  • 19. DAVE NEARY20 Resources ● OpenStack Network troubleshooting: http://bit.ly/OpenStackNetworking ● OpenStack Networking: L3 workflow: http://bit.ly/L3Workflow ● RDO Networking: http://bit.ly/RDONetworking ● RDO: Neutron with an external network: http://bit.ly/RDONeutronExtNet ● OpenStack Tales from the Crypt: http://bit.ly/OpenStackCrypt