SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Downloaden Sie, um offline zu lesen
Deep dive into Quantum


           2012/11/10 COSUG Meet up
           Luo, Zhongyue




1
TODO

    Intro
    Overview
    File Structure
    Components
    REST APIs
    Under the hood
     – Configuration: Open vSwitch plugin
     – How does the plugin get loaded?
     – Why is there a agent for the Open vSwitch plugin?
    Resources




2
Intro

    What is Quantum?

           Network-Connectivity-as-a-Service for OpenStack

    Goal
     • Provides an API to dynamically request and configure
       virtual networks
     • Support API and API extensions to provide advanced
       network capabilities
     • Integrate virtual networks with other OpenStack services




3
Intro

                                       VM           VM                        VM           VM
                                       A1           A2                        B1           B2
    Tenant View
                                            Network A                              Network B




                           Phy Srv 1                              Phy Srv 2                             Phy Srv 3

                        VM      VM                                            VM                                    VM
                        A1      B1                                            A2                                    B2


                  Hypervisor                             Hypervisor                            Hypervisor



    Provider View


                                                        Data Centre Network


4
Intro




               VM1                    VM2                   virtual server
     Nova     10.0.0.2               10.0.0.3
                                                         virtual interface
                                 3                       (VIF)
                           2                               virtual port
    Quantum           Net1
                                                         L2 virtual
                   10.0.0.0/24
                                                         network
                           1                    Subnet




5
Intro


                      TenantA-VM1      TenantA-VM2          TenantA-VM3
                        10.0.0.2      10.0.0.3 9.0.0.3        10.0.1.2




           TenantA-VM4         Tenant-A Net1              Tenant-A Net2
            172.16.0.30         10.0.0.0/24                10.0.1.0/24


                  Tenant-A Net3
                  172.16.0.0/24
                                                                    Not
         VPN                                                        necessarily a
                                                                    VM!
       Tenant-A On
       Premise Net                           Public Net
      172.16.0.0/24                         88.0.0.0/18



6
File Structure

                extensions




                      choose
                      one
              start




7
File Structure



              agent              extension
              implementations    implementations




                   handler
                   setup

                  api-pate.ini




8
Components

    Plugins
     • Cloud Operators weigh trade-offs, choose a plugin
     • Hide backend technology

    Server
     • A generic tenant API to create and configure “virtual
       networks”

    Agent
     • Daemon to perform the actual network configuration on
       each physical host




9
Components

     API Extentions
      • QoS, SLA, L3 forwarding, Security, Metering, etc.
      • Enables innovation in virtual networking.
      • Extensions implemented by many plugins can become
        “core”.




10
Overview




                RPC

11
Overview                       http://wiki.openstack.org/Quantum?action=AttachFil
                                     e&do=get&target=quantum-technical-archicture.ppt
      Dhcp agent
                                                                             quantum-server
                    get_active_networks
                    get_network_info
                    get_dhcp_port
                    release_dhcp_port
                    release_port_fixed_ip
                    update_lease_expiration

     Plugin agent                                Quantum rest api
                                                 (resource CUD)
                    get_device_details
                    update_device_down                              network_delete      tunnel_update       port_update
                    tunnel_sync

                                                               q-agent-notifier-       q-agent-notifier-     q-agent-notifier-
     Exchange:                      Quantum                 network-delete_fanout    tunnel-update_fanout   port-update_fanout
                                     topic                          fanout                  fanout                fanout




      Queue:                                                   q-agent-notifier-       q-agent-notifier-     q-agent-notifier-
                       q-plugin        notifications.info   network-delete_fanout    tunnel-update_fanout   port-update_fanout
                                                                  _{uuid4}                 _{uuid4}              _{uuid4}




     Comsumer:   quantum-server               Dhcp agent                             Plugin agent



12
Rest APIs

     Networks
      • Represents an L2 network segment
      • Can associate with a set of subnets and ports
      http://docs.openstack.org/api/openstack-network/1.0/content/Networks.html




                                          quantum/api/v2/attributes.py

13
Rest APIs

     Subnets
      • Represents a range of IP addresses
      • Allocated to devices
      • API request specifications
       o quantum/api/v2/attributes.py




14
Rest APIs

     Ports
      • A connection point of a device to attach to a L2 Quantum
        network
      • Allocated to devices
     http://docs.openstack.org/api/openstack-network/1.0/content/Ports.html

      • API request specifications
        o quantum/api/v2/attributes.py




15
Under the Hood
Configuration: Open vSwitch plugin

     Install KVM, Open vSwitch and configure your environment
     http://blog.scottlowe.org/2012/08/17/installing-kvm-and-open-vswitch-on-ubuntu/




     Edit etc/quantum/plugins.ini
     core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPlugin



     Edit etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
     mysql://root:nova@127.0.0.1:3306/ovs_quantum      .
     NOTE: The database IP address in the file should be reachable by all compute nodes.




17
Configuration: Open vSwitch plugin

     Edit nova.conf on nova-network and nova-manage hosts
     network_manager=nova.network.quantum.manager.QuantumManager
     linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
     linuxnet_ovs_integration_bridge=br-int



     Edit nova.conf on nova-compute hosts
     libvirt_ovs_bridge=br-int
     libvirt_vif_type=ethernet
     libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver



     Start the agent
     $ python ovs_quantum_agent.py ovs_quantum_plugin.ini




18
How does the plugin get loaded?




19
How does the plugin get loaded?




20
How does the plugin get loaded?




21
How does the plugin get loaded?




22
How does the plugin get loaded?




23
How does the plugin get loaded?




24
How does the plugin get loaded?




25
Why is there a agent for the Open vSwitch
     plugin?
     The OVS agent
      • Checks the configuration and mappings consistency of the
        local Open vSwitch environment and the central mysql
        database
      • Polls directly to the local Open vSwitch instance
      • Configures flows to implement the logical data model.




26
Why is there a agent for the Open vSwitch
     plugin?




27
Why is there a agent for the Open vSwitch
     plugin?




28
Why is there a agent for the Open vSwitch
     plugin?




          OVS cli wrappers


29
Resources

     http://github.com/openstack/quantum

     http://wiki.openstack.org/Quantum

     http://docs.openstack.org/api/openstack-network/1.0/content/

     http://docs.openstack.org/trunk/openstack-network/admin/content/index.html

     http://openvswitch.org/openstack/documentation/




30
Deep Dive Into Quantum

Weitere ähnliche Inhalte

Was ist angesagt?

Quantum grizzly summit
Quantum   grizzly summitQuantum   grizzly summit
Quantum grizzly summitDan Wendlandt
 
Mellanox for OpenStack - OpenStack最新情報セミナー 2014年10月
Mellanox for OpenStack  - OpenStack最新情報セミナー 2014年10月Mellanox for OpenStack  - OpenStack最新情報セミナー 2014年10月
Mellanox for OpenStack - OpenStack最新情報セミナー 2014年10月VirtualTech Japan Inc.
 
OpenStack Quantum Network Service
OpenStack Quantum Network ServiceOpenStack Quantum Network Service
OpenStack Quantum Network ServiceLew Tucker
 
Virtual Network Performance Challenge
Virtual Network Performance ChallengeVirtual Network Performance Challenge
Virtual Network Performance ChallengeStephen Hemminger
 
บทที่ 2 Mobile Aplication
บทที่ 2 Mobile Aplicationบทที่ 2 Mobile Aplication
บทที่ 2 Mobile Aplicationrubtumproject.com
 
RunningQuantumOnQuantumAtNicira.pdf
RunningQuantumOnQuantumAtNicira.pdfRunningQuantumOnQuantumAtNicira.pdf
RunningQuantumOnQuantumAtNicira.pdfOpenStack Foundation
 
SDN Controller
SDN ControllerSDN Controller
SDN Controllertcp cloud
 
Quantum Folsom Summit Developer Overview
Quantum Folsom Summit Developer OverviewQuantum Folsom Summit Developer Overview
Quantum Folsom Summit Developer OverviewDan Wendlandt
 
OpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
OpenStack and OpenContrail for FreeBSD platform by Michał DubielOpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
OpenStack and OpenContrail for FreeBSD platform by Michał Dubieleurobsdcon
 
Open contrail slides for BANV meetup
Open contrail slides for BANV meetupOpen contrail slides for BANV meetup
Open contrail slides for BANV meetupScott Edwards
 
OpenStack MeetUp - OpenContrail Presentation
OpenStack MeetUp - OpenContrail PresentationOpenStack MeetUp - OpenContrail Presentation
OpenStack MeetUp - OpenContrail PresentationStacy Véronneau
 
Contrail Deep-dive - Cloud Network Services at Scale
Contrail Deep-dive - Cloud Network Services at ScaleContrail Deep-dive - Cloud Network Services at Scale
Contrail Deep-dive - Cloud Network Services at ScaleMarketingArrowECS_CZ
 
PLNOG 13: Nicolai van der Smagt: SDN
PLNOG 13: Nicolai van der Smagt: SDNPLNOG 13: Nicolai van der Smagt: SDN
PLNOG 13: Nicolai van der Smagt: SDNPROIDEA
 
[OpenStack 스터디] OpenStack With Contrail
[OpenStack 스터디] OpenStack With Contrail[OpenStack 스터디] OpenStack With Contrail
[OpenStack 스터디] OpenStack With ContrailOpenStack Korea Community
 
Erez Cohen & Aviram Bar Haim, Mellanox - Enhancing Your OpenStack Cloud With ...
Erez Cohen & Aviram Bar Haim, Mellanox - Enhancing Your OpenStack Cloud With ...Erez Cohen & Aviram Bar Haim, Mellanox - Enhancing Your OpenStack Cloud With ...
Erez Cohen & Aviram Bar Haim, Mellanox - Enhancing Your OpenStack Cloud With ...Cloud Native Day Tel Aviv
 
Understanding and deploying Network Virtualization
Understanding and deploying Network VirtualizationUnderstanding and deploying Network Virtualization
Understanding and deploying Network VirtualizationSDN Hub
 
Kubernetes networking in AWS
Kubernetes networking in AWSKubernetes networking in AWS
Kubernetes networking in AWSZvika Gazit
 
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/Neutronvivekkonnect
 

Was ist angesagt? (20)

Quantum grizzly summit
Quantum   grizzly summitQuantum   grizzly summit
Quantum grizzly summit
 
Mellanox for OpenStack - OpenStack最新情報セミナー 2014年10月
Mellanox for OpenStack  - OpenStack最新情報セミナー 2014年10月Mellanox for OpenStack  - OpenStack最新情報セミナー 2014年10月
Mellanox for OpenStack - OpenStack最新情報セミナー 2014年10月
 
OpenStack Quantum
OpenStack QuantumOpenStack Quantum
OpenStack Quantum
 
OpenStack Quantum Network Service
OpenStack Quantum Network ServiceOpenStack Quantum Network Service
OpenStack Quantum Network Service
 
Virtual Network Performance Challenge
Virtual Network Performance ChallengeVirtual Network Performance Challenge
Virtual Network Performance Challenge
 
บทที่ 2 Mobile Aplication
บทที่ 2 Mobile Aplicationบทที่ 2 Mobile Aplication
บทที่ 2 Mobile Aplication
 
RunningQuantumOnQuantumAtNicira.pdf
RunningQuantumOnQuantumAtNicira.pdfRunningQuantumOnQuantumAtNicira.pdf
RunningQuantumOnQuantumAtNicira.pdf
 
SDN Controller
SDN ControllerSDN Controller
SDN Controller
 
Contrail Enabler for agile cloud services
Contrail Enabler for agile cloud servicesContrail Enabler for agile cloud services
Contrail Enabler for agile cloud services
 
Quantum Folsom Summit Developer Overview
Quantum Folsom Summit Developer OverviewQuantum Folsom Summit Developer Overview
Quantum Folsom Summit Developer Overview
 
OpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
OpenStack and OpenContrail for FreeBSD platform by Michał DubielOpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
OpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
 
Open contrail slides for BANV meetup
Open contrail slides for BANV meetupOpen contrail slides for BANV meetup
Open contrail slides for BANV meetup
 
OpenStack MeetUp - OpenContrail Presentation
OpenStack MeetUp - OpenContrail PresentationOpenStack MeetUp - OpenContrail Presentation
OpenStack MeetUp - OpenContrail Presentation
 
Contrail Deep-dive - Cloud Network Services at Scale
Contrail Deep-dive - Cloud Network Services at ScaleContrail Deep-dive - Cloud Network Services at Scale
Contrail Deep-dive - Cloud Network Services at Scale
 
PLNOG 13: Nicolai van der Smagt: SDN
PLNOG 13: Nicolai van der Smagt: SDNPLNOG 13: Nicolai van der Smagt: SDN
PLNOG 13: Nicolai van der Smagt: SDN
 
[OpenStack 스터디] OpenStack With Contrail
[OpenStack 스터디] OpenStack With Contrail[OpenStack 스터디] OpenStack With Contrail
[OpenStack 스터디] OpenStack With Contrail
 
Erez Cohen & Aviram Bar Haim, Mellanox - Enhancing Your OpenStack Cloud With ...
Erez Cohen & Aviram Bar Haim, Mellanox - Enhancing Your OpenStack Cloud With ...Erez Cohen & Aviram Bar Haim, Mellanox - Enhancing Your OpenStack Cloud With ...
Erez Cohen & Aviram Bar Haim, Mellanox - Enhancing Your OpenStack Cloud With ...
 
Understanding and deploying Network Virtualization
Understanding and deploying Network VirtualizationUnderstanding and deploying Network Virtualization
Understanding and deploying Network Virtualization
 
Kubernetes networking in AWS
Kubernetes networking in AWSKubernetes networking in AWS
Kubernetes networking in AWS
 
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
 

Andere mochten auch

Power Notes Atomic Structure
Power Notes   Atomic StructurePower Notes   Atomic Structure
Power Notes Atomic Structurejmori1
 
Guess the foods
Guess the foodsGuess the foods
Guess the foodsLes Davy
 
Introduction to Density
Introduction to Density  Introduction to Density
Introduction to Density jmori1
 
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITACANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITALHA Lou
 
Как не испортить праздник
Как не испортить праздникКак не испортить праздник
Как не испортить праздникTOCHKA
 
grandparenting
grandparentinggrandparenting
grandparentingAin Nazri
 
NOTAM Sul/Sudeste - 12/abr/15
NOTAM Sul/Sudeste - 12/abr/15NOTAM Sul/Sudeste - 12/abr/15
NOTAM Sul/Sudeste - 12/abr/15Carlos Carvalho
 
Internal CSR communication sucks
Internal CSR communication sucksInternal CSR communication sucks
Internal CSR communication sucksWayne Dunn
 
市政報告会プレゼン- 2015.02.07 長野市議会議員・小泉一真
市政報告会プレゼン- 2015.02.07 長野市議会議員・小泉一真市政報告会プレゼン- 2015.02.07 長野市議会議員・小泉一真
市政報告会プレゼン- 2015.02.07 長野市議会議員・小泉一真長野市議会議員小泉一真
 
Cloud-based augmentation for mobile devices: Motivation, Taxonomy, and Open C...
Cloud-based augmentation for mobile devices: Motivation, Taxonomy, and Open C...Cloud-based augmentation for mobile devices: Motivation, Taxonomy, and Open C...
Cloud-based augmentation for mobile devices: Motivation, Taxonomy, and Open C...Saeid Abolfazli
 
RESA Commercial DRAFT
RESA Commercial DRAFTRESA Commercial DRAFT
RESA Commercial DRAFTsdr-resa
 
the meaning of my life
the meaning of my lifethe meaning of my life
the meaning of my lifedonshe_26
 

Andere mochten auch (20)

Power Notes Atomic Structure
Power Notes   Atomic StructurePower Notes   Atomic Structure
Power Notes Atomic Structure
 
Ici 119 (1)
Ici 119 (1)Ici 119 (1)
Ici 119 (1)
 
Pt 1
Pt 1Pt 1
Pt 1
 
Guess the foods
Guess the foodsGuess the foods
Guess the foods
 
Arbitros
ArbitrosArbitros
Arbitros
 
Introduction to Density
Introduction to Density  Introduction to Density
Introduction to Density
 
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITACANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
CANASTAS VIVERES 2015 - SUPERMERCADOS LA CASITA
 
Interview1 lyan
Interview1 lyanInterview1 lyan
Interview1 lyan
 
Как не испортить праздник
Как не испортить праздникКак не испортить праздник
Как не испортить праздник
 
grandparenting
grandparentinggrandparenting
grandparenting
 
NOTAM Sul/Sudeste - 12/abr/15
NOTAM Sul/Sudeste - 12/abr/15NOTAM Sul/Sudeste - 12/abr/15
NOTAM Sul/Sudeste - 12/abr/15
 
Internal CSR communication sucks
Internal CSR communication sucksInternal CSR communication sucks
Internal CSR communication sucks
 
Php
PhpPhp
Php
 
市政報告会プレゼン- 2015.02.07 長野市議会議員・小泉一真
市政報告会プレゼン- 2015.02.07 長野市議会議員・小泉一真市政報告会プレゼン- 2015.02.07 長野市議会議員・小泉一真
市政報告会プレゼン- 2015.02.07 長野市議会議員・小泉一真
 
DK03 NL
DK03 NLDK03 NL
DK03 NL
 
Cloud-based augmentation for mobile devices: Motivation, Taxonomy, and Open C...
Cloud-based augmentation for mobile devices: Motivation, Taxonomy, and Open C...Cloud-based augmentation for mobile devices: Motivation, Taxonomy, and Open C...
Cloud-based augmentation for mobile devices: Motivation, Taxonomy, and Open C...
 
VBS 2011
VBS 2011VBS 2011
VBS 2011
 
RESA Commercial DRAFT
RESA Commercial DRAFTRESA Commercial DRAFT
RESA Commercial DRAFT
 
Pda
PdaPda
Pda
 
the meaning of my life
the meaning of my lifethe meaning of my life
the meaning of my life
 

Ähnlich wie Deep Dive Into Quantum

Openstack Quantum yahoo meetup 1 23-13
Openstack Quantum yahoo meetup 1 23-13Openstack Quantum yahoo meetup 1 23-13
Openstack Quantum yahoo meetup 1 23-13Dan Wendlandt
 
Quantum PTL Update - Grizzly Summit.pptx
Quantum PTL Update - Grizzly Summit.pptxQuantum PTL Update - Grizzly Summit.pptx
Quantum PTL Update - Grizzly Summit.pptxOpenStack Foundation
 
Learn OpenStack from trystack.cn ——Folsom in practice
Learn OpenStack from trystack.cn  ——Folsom in practiceLearn OpenStack from trystack.cn  ——Folsom in practice
Learn OpenStack from trystack.cn ——Folsom in practiceOpenCity Community
 
Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1Yongyoon Shin
 
Network virtualization with open stack quantum
Network virtualization with open stack quantumNetwork virtualization with open stack quantum
Network virtualization with open stack quantumMiguel Lavalle
 
OpenStack Quantum Intro (OS Meetup 3-26-12)
OpenStack Quantum Intro (OS Meetup 3-26-12)OpenStack Quantum Intro (OS Meetup 3-26-12)
OpenStack Quantum Intro (OS Meetup 3-26-12)Dan Wendlandt
 
Network and Service Virtualization tutorial at ONUG Spring 2015
Network and Service Virtualization tutorial at ONUG Spring 2015Network and Service Virtualization tutorial at ONUG Spring 2015
Network and Service Virtualization tutorial at ONUG Spring 2015SDN Hub
 
Network Virtualization with quantum
Network Virtualization with quantum Network Virtualization with quantum
Network Virtualization with quantum openstackindia
 
Quantum for Cloud Operators - Folsom Conference
Quantum for Cloud Operators  - Folsom Conference Quantum for Cloud Operators  - Folsom Conference
Quantum for Cloud Operators - Folsom Conference Dan Wendlandt
 
Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2
Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2
Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2Damir Bersinic
 
Quantum (OpenStack Meetup Feb 9th, 2012)
Quantum (OpenStack Meetup Feb 9th, 2012)Quantum (OpenStack Meetup Feb 9th, 2012)
Quantum (OpenStack Meetup Feb 9th, 2012)Dan Wendlandt
 
Odl virtualization-20140520
Odl virtualization-20140520Odl virtualization-20140520
Odl virtualization-20140520NEC Corporation
 
Openstack Networking Internals - first part
Openstack Networking Internals - first partOpenstack Networking Internals - first part
Openstack Networking Internals - first partlilliput12
 
OpenStack 2012 fall summit observation - Quantum/SDN
OpenStack 2012 fall summit observation - Quantum/SDNOpenStack 2012 fall summit observation - Quantum/SDN
OpenStack 2012 fall summit observation - Quantum/SDNTe-Yen Liu
 
OpenStack Networking and Automation
OpenStack Networking and AutomationOpenStack Networking and Automation
OpenStack Networking and AutomationAdam Johnson
 
Understanding network and service virtualization
Understanding network and service virtualizationUnderstanding network and service virtualization
Understanding network and service virtualizationSDN Hub
 
Ryu: network operating system
Ryu: network operating systemRyu: network operating system
Ryu: network operating systemIsaku Yamahata
 
OpenStack Networking
OpenStack NetworkingOpenStack Networking
OpenStack NetworkingIlya Shakhat
 

Ähnlich wie Deep Dive Into Quantum (20)

Openstack Quantum yahoo meetup 1 23-13
Openstack Quantum yahoo meetup 1 23-13Openstack Quantum yahoo meetup 1 23-13
Openstack Quantum yahoo meetup 1 23-13
 
Quantum PTL Update - Grizzly Summit.pptx
Quantum PTL Update - Grizzly Summit.pptxQuantum PTL Update - Grizzly Summit.pptx
Quantum PTL Update - Grizzly Summit.pptx
 
Learn OpenStack from trystack.cn ——Folsom in practice
Learn OpenStack from trystack.cn  ——Folsom in practiceLearn OpenStack from trystack.cn  ——Folsom in practice
Learn OpenStack from trystack.cn ——Folsom in practice
 
Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1
 
Network virtualization with open stack quantum
Network virtualization with open stack quantumNetwork virtualization with open stack quantum
Network virtualization with open stack quantum
 
OpenStack Quantum Intro (OS Meetup 3-26-12)
OpenStack Quantum Intro (OS Meetup 3-26-12)OpenStack Quantum Intro (OS Meetup 3-26-12)
OpenStack Quantum Intro (OS Meetup 3-26-12)
 
Network and Service Virtualization tutorial at ONUG Spring 2015
Network and Service Virtualization tutorial at ONUG Spring 2015Network and Service Virtualization tutorial at ONUG Spring 2015
Network and Service Virtualization tutorial at ONUG Spring 2015
 
Network Virtualization with quantum
Network Virtualization with quantum Network Virtualization with quantum
Network Virtualization with quantum
 
Simplify Networking for Containers
Simplify Networking for ContainersSimplify Networking for Containers
Simplify Networking for Containers
 
Quantum for Cloud Operators - Folsom Conference
Quantum for Cloud Operators  - Folsom Conference Quantum for Cloud Operators  - Folsom Conference
Quantum for Cloud Operators - Folsom Conference
 
Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2
Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2
Prairie DevCon-What's New in Hyper-V in Windows Server "8" Beta - Part 2
 
Quantum (OpenStack Meetup Feb 9th, 2012)
Quantum (OpenStack Meetup Feb 9th, 2012)Quantum (OpenStack Meetup Feb 9th, 2012)
Quantum (OpenStack Meetup Feb 9th, 2012)
 
Odl virtualization-20140520
Odl virtualization-20140520Odl virtualization-20140520
Odl virtualization-20140520
 
Openstack Networking Internals - first part
Openstack Networking Internals - first partOpenstack Networking Internals - first part
Openstack Networking Internals - first part
 
OpenStack 2012 fall summit observation - Quantum/SDN
OpenStack 2012 fall summit observation - Quantum/SDNOpenStack 2012 fall summit observation - Quantum/SDN
OpenStack 2012 fall summit observation - Quantum/SDN
 
OpenStack Networking and Automation
OpenStack Networking and AutomationOpenStack Networking and Automation
OpenStack Networking and Automation
 
Understanding network and service virtualization
Understanding network and service virtualizationUnderstanding network and service virtualization
Understanding network and service virtualization
 
Ryu: network operating system
Ryu: network operating systemRyu: network operating system
Ryu: network operating system
 
OpenStack Networking
OpenStack NetworkingOpenStack Networking
OpenStack Networking
 
Network as a Service, Assaf Muller
Network as a Service, Assaf MullerNetwork as a Service, Assaf Muller
Network as a Service, Assaf Muller
 

Mehr von OpenCity Community

Mehr von OpenCity Community (20)

开源讲义.pdf
开源讲义.pdf开源讲义.pdf
开源讲义.pdf
 
物联网操作系统漫谈-GIAC大会.pdf
物联网操作系统漫谈-GIAC大会.pdf物联网操作系统漫谈-GIAC大会.pdf
物联网操作系统漫谈-GIAC大会.pdf
 
2017开源年会-企业开源那些事儿-更新.pdf
2017开源年会-企业开源那些事儿-更新.pdf2017开源年会-企业开源那些事儿-更新.pdf
2017开源年会-企业开源那些事儿-更新.pdf
 
社会化研发
社会化研发社会化研发
社会化研发
 
Containers & CaaS
Containers & CaaSContainers & CaaS
Containers & CaaS
 
OaaS:Open as a Strategy
OaaS:Open as a StrategyOaaS:Open as a Strategy
OaaS:Open as a Strategy
 
Hello openstack 2014
Hello openstack 2014Hello openstack 2014
Hello openstack 2014
 
Docker openstack-2014
Docker openstack-2014Docker openstack-2014
Docker openstack-2014
 
Learn OpenStack from trystack.cn
Learn OpenStack from trystack.cnLearn OpenStack from trystack.cn
Learn OpenStack from trystack.cn
 
OpenStack系列公开课2 -20130508
OpenStack系列公开课2 -20130508OpenStack系列公开课2 -20130508
OpenStack系列公开课2 -20130508
 
OpenStack ecosystem
OpenStack ecosystemOpenStack ecosystem
OpenStack ecosystem
 
How to master OpenStack in 2 hours
How to master OpenStack in 2 hoursHow to master OpenStack in 2 hours
How to master OpenStack in 2 hours
 
云计算思考
云计算思考云计算思考
云计算思考
 
Openstorage Openstack
Openstorage OpenstackOpenstorage Openstack
Openstorage Openstack
 
Openstack的研究与实践
Openstack的研究与实践Openstack的研究与实践
Openstack的研究与实践
 
Open Stack Cheng Du Swift Alex Yang
Open Stack Cheng Du Swift Alex YangOpen Stack Cheng Du Swift Alex Yang
Open Stack Cheng Du Swift Alex Yang
 
Nova与虚拟机管理
Nova与虚拟机管理Nova与虚拟机管理
Nova与虚拟机管理
 
Look Into Libvirt Osier Yang
Look Into Libvirt Osier YangLook Into Libvirt Osier Yang
Look Into Libvirt Osier Yang
 
Cinder Status Openstack Shanghai
Cinder Status Openstack ShanghaiCinder Status Openstack Shanghai
Cinder Status Openstack Shanghai
 
2012 11 Openstack China
2012 11 Openstack China2012 11 Openstack China
2012 11 Openstack China
 

Deep Dive Into Quantum

  • 1. Deep dive into Quantum 2012/11/10 COSUG Meet up Luo, Zhongyue 1
  • 2. TODO Intro Overview File Structure Components REST APIs Under the hood – Configuration: Open vSwitch plugin – How does the plugin get loaded? – Why is there a agent for the Open vSwitch plugin? Resources 2
  • 3. Intro What is Quantum? Network-Connectivity-as-a-Service for OpenStack Goal • Provides an API to dynamically request and configure virtual networks • Support API and API extensions to provide advanced network capabilities • Integrate virtual networks with other OpenStack services 3
  • 4. Intro VM VM VM VM A1 A2 B1 B2 Tenant View Network A Network B Phy Srv 1 Phy Srv 2 Phy Srv 3 VM VM VM VM A1 B1 A2 B2 Hypervisor Hypervisor Hypervisor Provider View Data Centre Network 4
  • 5. Intro VM1 VM2 virtual server Nova 10.0.0.2 10.0.0.3 virtual interface 3 (VIF) 2 virtual port Quantum Net1 L2 virtual 10.0.0.0/24 network 1 Subnet 5
  • 6. Intro TenantA-VM1 TenantA-VM2 TenantA-VM3 10.0.0.2 10.0.0.3 9.0.0.3 10.0.1.2 TenantA-VM4 Tenant-A Net1 Tenant-A Net2 172.16.0.30 10.0.0.0/24 10.0.1.0/24 Tenant-A Net3 172.16.0.0/24 Not VPN necessarily a VM! Tenant-A On Premise Net Public Net 172.16.0.0/24 88.0.0.0/18 6
  • 7. File Structure extensions choose one start 7
  • 8. File Structure agent extension implementations implementations handler setup api-pate.ini 8
  • 9. Components Plugins • Cloud Operators weigh trade-offs, choose a plugin • Hide backend technology Server • A generic tenant API to create and configure “virtual networks” Agent • Daemon to perform the actual network configuration on each physical host 9
  • 10. Components API Extentions • QoS, SLA, L3 forwarding, Security, Metering, etc. • Enables innovation in virtual networking. • Extensions implemented by many plugins can become “core”. 10
  • 11. Overview RPC 11
  • 12. Overview http://wiki.openstack.org/Quantum?action=AttachFil e&do=get&target=quantum-technical-archicture.ppt Dhcp agent quantum-server get_active_networks get_network_info get_dhcp_port release_dhcp_port release_port_fixed_ip update_lease_expiration Plugin agent Quantum rest api (resource CUD) get_device_details update_device_down network_delete tunnel_update port_update tunnel_sync q-agent-notifier- q-agent-notifier- q-agent-notifier- Exchange: Quantum network-delete_fanout tunnel-update_fanout port-update_fanout topic fanout fanout fanout Queue: q-agent-notifier- q-agent-notifier- q-agent-notifier- q-plugin notifications.info network-delete_fanout tunnel-update_fanout port-update_fanout _{uuid4} _{uuid4} _{uuid4} Comsumer: quantum-server Dhcp agent Plugin agent 12
  • 13. Rest APIs Networks • Represents an L2 network segment • Can associate with a set of subnets and ports http://docs.openstack.org/api/openstack-network/1.0/content/Networks.html quantum/api/v2/attributes.py 13
  • 14. Rest APIs Subnets • Represents a range of IP addresses • Allocated to devices • API request specifications o quantum/api/v2/attributes.py 14
  • 15. Rest APIs Ports • A connection point of a device to attach to a L2 Quantum network • Allocated to devices http://docs.openstack.org/api/openstack-network/1.0/content/Ports.html • API request specifications o quantum/api/v2/attributes.py 15
  • 17. Configuration: Open vSwitch plugin Install KVM, Open vSwitch and configure your environment http://blog.scottlowe.org/2012/08/17/installing-kvm-and-open-vswitch-on-ubuntu/ Edit etc/quantum/plugins.ini core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPlugin Edit etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini mysql://root:nova@127.0.0.1:3306/ovs_quantum . NOTE: The database IP address in the file should be reachable by all compute nodes. 17
  • 18. Configuration: Open vSwitch plugin Edit nova.conf on nova-network and nova-manage hosts network_manager=nova.network.quantum.manager.QuantumManager linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver linuxnet_ovs_integration_bridge=br-int Edit nova.conf on nova-compute hosts libvirt_ovs_bridge=br-int libvirt_vif_type=ethernet libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver Start the agent $ python ovs_quantum_agent.py ovs_quantum_plugin.ini 18
  • 19. How does the plugin get loaded? 19
  • 20. How does the plugin get loaded? 20
  • 21. How does the plugin get loaded? 21
  • 22. How does the plugin get loaded? 22
  • 23. How does the plugin get loaded? 23
  • 24. How does the plugin get loaded? 24
  • 25. How does the plugin get loaded? 25
  • 26. Why is there a agent for the Open vSwitch plugin? The OVS agent • Checks the configuration and mappings consistency of the local Open vSwitch environment and the central mysql database • Polls directly to the local Open vSwitch instance • Configures flows to implement the logical data model. 26
  • 27. Why is there a agent for the Open vSwitch plugin? 27
  • 28. Why is there a agent for the Open vSwitch plugin? 28
  • 29. Why is there a agent for the Open vSwitch plugin? OVS cli wrappers 29
  • 30. Resources http://github.com/openstack/quantum http://wiki.openstack.org/Quantum http://docs.openstack.org/api/openstack-network/1.0/content/ http://docs.openstack.org/trunk/openstack-network/admin/content/index.html http://openvswitch.org/openstack/documentation/ 30