In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1 description
In the traditional centralized routing environment of openstack, the north-south traffic and the east-west traffic across the network all pass through the network node. When the scale of the computing node becomes larger and larger, the network node will soon become the bottleneck of the whole system. The concept of Distribute Virtual Router (DVR) is introduced to solve this problem.
DVR distributes routes to computing nodes, and north-south traffic and east-west traffic across network segments are routed by virtual routes on the computing node where the virtual machine is located.
2 DVR structure diagram
3 DVR configuration
The network scheme adopted in this paper is openvswitch vxlan.
3.1 Control Node configuration
/ etc/neutron/neutron.conf add the following configuration
[DEFAULT]
Router_distributed = True
Restart neutron-server
Systemc restart neutron-server.service
3.2 Network node configuration
Add the following configuration to / etc/neutron/plugins/ml2/ml2_conf.ini
[agent]
L2_population = True
Enable_distributed_routing = True
Apr_responder = True
Add the following configuration to / etc/neutron/plugins/ml2/openvswitch_agent.ini
[default]
Enable_distributed_routing = True
Restart neutron-openvswitch-agent,neutron-l3-agent
Systemctl restart neutron-openvswitch-agent neutron-l3-agent
3.3 Compute node configuration
The following software openstack-neutron,openstack-neutron-ml2 is installed in the compute node
Yum install-y openstack-neutron openstack-neutron-ml2
Add the following configuration to / etc/neutron/l3_agent.ini
[default]
Agent_mode = dvr_snat
Add the following configuration to / etc/neutron/plugins/ml2/ml2_conf.ini
[agent]
L2_population = True
Enable_distributed_routing = True
Add the following configuration to / etc/neutron/plugins/ml2/openvswitch_agent.ini
[default]
Enable_distributed_routing = True
Apr_responder = True
Restart neutron-openvswitch-agent,neutron-l3-agent
Systemctl restart neutron-openvswitch-agent neutron-l3-agent
View the installed network agent
[root@network ~] # openstack network agent list
+- -+
| | ID | Agent Type | Host | Availability Zone | Alive | State | Binary | |
+- -+
| | 77717425-5a8f-494d-a144-8d1831e7d5de | Metadata agent | network | None |: -) | UP | neutron-metadata-agent |
| | 903d9a68-b050-4948-8c4b-ecc329189fff | Open vSwitch agent | compute | None |: -) | UP | neutron-openvswitch-agent |
| | bb1cdef8-e8bf-4353-8b89-2b33464392a5 | L3 agent | network | nova |: -) | UP | neutron-l3-agent |
| | c59b2915-184d-4e38-9d8a-e5c593001db0 | Open vSwitch agent | network | None |: -) | UP | neutron-openvswitch-agent |
| | ce266daa-dee1-45a9-93e4-bb0b1edb5b8b | DHCP agent | network | nova |: -) | UP | neutron-dhcp-agent |
| | d0173090-50a6-4d02-8af8-cf73204a05c7 | L3 agent | compute | nova |: -) | UP | neutron-l3-agent |
| | f2ce576c-01e8-488b-b718-68aa9117c2ac | Metadata agent | compute | None |: -) | UP | neutron-metadata-agent |
+- -+
Create a network and DVR
#! / bin/bash
Neutron net-create-shared-router:external=True-provider:network_type flat-provider:physical_network provider public
Neutron subnet-create public 192.168.100.0 neutron subnet-create public 24-name public-sub-allocation-pool start=192.168.100.181,end=192.168.100.190-dns-nameserver 8.8.8.8-gateway 192.168.100.1-enable_dhcp=False
Neutron net-create private-provider:network_type vxlan-router:external False-shared
Neutron subnet-create private--name private-sub-- gateway 172.17.0.1 172.17.0.1-- dns-nameserver 8.8.8.8
Neutron router-create dvr-router-distributed true
Neutron router-interface-add dvr-router private-sub
Neutron router-gateway-set dvr-router public
Create a virtual machine to bind a floating IP, which can be operated on dashboard
The qrouter of the computing node
[root@compute ~] # ip netns
Fip-51e0cb5e-1058-4a97-b205-a57d245a6726
Qrouter-a3cc1dbb-73cb-431d-97e5-23be9aa7be20
Qrouter of network node
[root@network ~] # ip netns
Snat-a3cc1dbb-73cb-431d-97e5-23be9aa7be20
Fip-51e0cb5e-1058-4a97-b205-a57d245a6726
Qrouter-a3cc1dbb-73cb-431d-97e5-23be9aa7be20
Qdhcp-53896585-6380-48f1-aed9-db340c5facf9
Topological graph
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.