[DOCS] Edits to appendix E
Change-Id: Ibae78d3ec7eb0730579860147dd33eb814ae4a95 Partial-bug: 1629798
This commit is contained in:
parent
a63b66f0fb
commit
de1a61749a
@ -4,17 +4,12 @@
|
|||||||
Appendix E: Container networking
|
Appendix E: Container networking
|
||||||
================================
|
================================
|
||||||
|
|
||||||
OpenStack-Ansible deploys LXC machine containers and uses linux bridging
|
OpenStack-Ansible deploys Linux containers (LXC) and uses Linux
|
||||||
between the container interfaces and the host interfaces to ensure that
|
bridging between the container and the host interfaces to ensure that
|
||||||
all traffic from containers flow over multiple host interfaces. This is
|
all traffic from containers flows over multiple host interfaces. This appendix
|
||||||
to avoid traffic flowing through the default LXC bridge which is a single
|
describes how the interfaces are connected and how traffic flows.
|
||||||
host interface (and therefore could become a bottleneck), and which is
|
|
||||||
interfered with by iptables.
|
|
||||||
|
|
||||||
This appendix intends to describe how the interfaces are connected and
|
For more information about how the OpenStack Networking service (neutron) uses
|
||||||
how traffic flows.
|
|
||||||
|
|
||||||
For more details about how the OpenStack Networking service (neutron) uses
|
|
||||||
the interfaces for instance traffic, please see the
|
the interfaces for instance traffic, please see the
|
||||||
`OpenStack Networking Guide`_.
|
`OpenStack Networking Guide`_.
|
||||||
|
|
||||||
@ -23,66 +18,67 @@ the interfaces for instance traffic, please see the
|
|||||||
Bonded network interfaces
|
Bonded network interfaces
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
A typical production environment uses multiple physical network interfaces
|
In a typical production environment, physical network interfaces are combined
|
||||||
in a bonded pair for better redundancy and throughput. We recommend avoiding
|
in bonded pairs for better redundancy and throughput. Avoid using two ports on
|
||||||
the use of two ports on the same multi-port network card for the same bonded
|
the same multiport network card for the same bonded interface, because a
|
||||||
interface. This is because a network card failure affects both physical
|
network card failure affects both of the physical network interfaces used by
|
||||||
network interfaces used by the bond.
|
the bond.
|
||||||
|
|
||||||
Linux bridges
|
Linux bridges
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
The combination of containers and flexible deployment options require
|
The combination of containers and flexible deployment options requires
|
||||||
implementation of advanced Linux networking features, such as bridges and
|
implementation of advanced Linux networking features, such as bridges and
|
||||||
namespaces.
|
namespaces.
|
||||||
|
|
||||||
Bridges provide layer 2 connectivity (similar to switches) among
|
* Bridges provide layer 2 connectivity (similar to switches) among
|
||||||
physical, logical, and virtual network interfaces within a host. After
|
physical, logical, and virtual network interfaces within a host. After
|
||||||
creating a bridge, the network interfaces are virtually plugged in to
|
a bridge is created, the network interfaces are virtually plugged in to
|
||||||
it.
|
it.
|
||||||
|
|
||||||
OpenStack-Ansible uses bridges to connect physical and logical network
|
OpenStack-Ansible uses bridges to connect physical and logical network
|
||||||
interfaces on the host to virtual network interfaces within containers.
|
interfaces on the host to virtual network interfaces within containers.
|
||||||
|
|
||||||
Namespaces provide logically separate layer 3 environments (similar to
|
* Namespaces provide logically separate layer 3 environments (similar to
|
||||||
routers) within a host. Namespaces use virtual interfaces to connect
|
routers) within a host. Namespaces use virtual interfaces to connect
|
||||||
with other namespaces, including the host namespace. These interfaces,
|
with other namespaces, including the host namespace. These interfaces,
|
||||||
often called ``veth`` pairs, are virtually plugged in between
|
often called ``veth`` pairs, are virtually plugged in between
|
||||||
namespaces similar to patch cables connecting physical devices such as
|
namespaces similar to patch cables connecting physical devices such as
|
||||||
switches and routers.
|
switches and routers.
|
||||||
|
|
||||||
Each container has a namespace that connects to the host namespace with
|
Each container has a namespace that connects to the host namespace with
|
||||||
one or more ``veth`` pairs. Unless specified, the system generates
|
one or more ``veth`` pairs. Unless specified, the system generates
|
||||||
random names for ``veth`` pairs.
|
random names for ``veth`` pairs.
|
||||||
|
|
||||||
The following image demonstrates how the container network interfaces are
|
The following image demonstrates how the container network interfaces are
|
||||||
connected to the host's bridges and to the host's physical network interfaces:
|
connected to the host's bridges and physical network interfaces:
|
||||||
|
|
||||||
.. image:: figures/networkcomponents.png
|
.. image:: figures/networkcomponents.png
|
||||||
|
|
||||||
Network diagrams
|
Network diagrams
|
||||||
~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The following image shows how all of the interfaces and bridges interconnect
|
The following diagram shows how all of the interfaces and bridges interconnect
|
||||||
to provide network connectivity to the OpenStack deployment:
|
to provide network connectivity to the OpenStack deployment:
|
||||||
|
|
||||||
.. image:: figures/networkarch-container-external.png
|
.. image:: figures/networkarch-container-external.png
|
||||||
|
|
||||||
OpenStack-Ansible deploys the Compute service on the physical host rather than
|
OpenStack-Ansible deploys the Compute service on the physical host rather than
|
||||||
in a container. The following image shows how to use bridges for
|
in a container. The following diagram shows how to use bridges for
|
||||||
network connectivity:
|
network connectivity:
|
||||||
|
|
||||||
.. image:: figures/networkarch-bare-external.png
|
.. image:: figures/networkarch-bare-external.png
|
||||||
|
|
||||||
The following image shows how the neutron agents work with the bridges
|
The following diagram shows how the Networking service (neutron) agents
|
||||||
``br-vlan`` and ``br-vxlan``. Neutron is configured to use a DHCP agent, L3
|
work with the ``br-vlan`` and ``br-vxlan`` bridges. Neutron is configured to
|
||||||
agent, and Linux Bridge agent within a ``networking-agents`` container. The
|
use a DHCP agent, an L3 agent, and a Linux Bridge agent within a
|
||||||
image shows how DHCP agents provide information (IP addresses and DNS servers)
|
networking-agents container. The diagram shows how DHCP agents provide
|
||||||
to the instances, and how routing works on the image:
|
information (IP addresses and DNS servers) to the instances, and how routing
|
||||||
|
works on the image.
|
||||||
|
|
||||||
.. image:: figures/networking-neutronagents.png
|
.. image:: figures/networking-neutronagents.png
|
||||||
|
|
||||||
The following image shows how virtual machines connect to the ``br-vlan`` and
|
The following diagram shows how virtual machines connect to the ``br-vlan`` and
|
||||||
``br-vxlan`` bridges and send traffic to the network outside the host:
|
``br-vxlan`` bridges and send traffic to the network outside the host:
|
||||||
|
|
||||||
.. image:: figures/networking-compute.png
|
.. image:: figures/networking-compute.png
|
||||||
|
Loading…
x
Reference in New Issue
Block a user