CN110324248B - Bare metal server route updating method and device, electronic equipment and medium - Google Patents

Bare metal server route updating method and device, electronic equipment and medium Download PDF

Info

Publication number
CN110324248B
CN110324248B CN201810296463.5A CN201810296463A CN110324248B CN 110324248 B CN110324248 B CN 110324248B CN 201810296463 A CN201810296463 A CN 201810296463A CN 110324248 B CN110324248 B CN 110324248B
Authority
CN
China
Prior art keywords
bare metal
metal server
address segment
address
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810296463.5A
Other languages
Chinese (zh)
Other versions
CN110324248A (en
Inventor
姚军
鲍方艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810296463.5A priority Critical patent/CN110324248B/en
Publication of CN110324248A publication Critical patent/CN110324248A/en
Application granted granted Critical
Publication of CN110324248B publication Critical patent/CN110324248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a bare metal server route updating method, a bare metal server route updating device, electronic equipment and a medium, wherein the method comprises the following steps: determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and a corresponding second IP address segment stored for each bare metal server, and obtaining tenant information of the target bare metal server; and generating a first routing information table according to the first IP address segment and the tenant information, and sending the first routing information table to the target bare metal server. The IP address fields occupied by the Overlay network and/or the Underlay network on the bare metal server are uniformly stored and managed through the cloud platform, when the network address of the bare metal server changes, the cloud platform automatically generates first routing table information and issues the first routing table information to the target bare metal server for updating, and the problem that a lot of labor is consumed to update the routing of the created bare metal server is solved.

Description

Bare metal server route updating method and device, electronic equipment and medium
Technical Field
The invention relates to the field of cloud computing, in particular to a bare metal server route updating method and device, electronic equipment and a medium.
Background
Common cloud computing is implemented in a virtual machine manner based on physical resource sharing. However, with the development of technology, more and more applications need high-performance computing platforms, and a bare metal server is one of the high-performance computing platforms, wherein when the bare metal server is used as the high-performance computing platform, the bare metal server also has the advantages of low latency, exclusive tenant and the like.
The Overlay network is a novel network which is operated on a traditional network and is completely isolated from an underlying network by adopting a transmission layer packaging technology, such as a virtual extensible local area network VxLAN, a virtual network NVGER packaged by a general routing, a virtual network GENEVE packaged by a general network and the like. The largest characteristic of the Overlay network is that any subnet address can be selected, and different tenants can use the same IP address.
The underlying Underlay underwlay network is a network carrying an Overlay network, i.e. a network based on two-layer switching and three-layer routing forwarding technology in the traditional sense.
In order to meet the requirements of users for accessing different services, a bare metal server needs to be connected with an Underlay network and an Overlay network at the same time. However, the virtual network management component Neutron only implements management of the Overlay network, and for the Underlay network, Neutron is difficult to manage. Therefore, when the bare metal server needs to access services on both the Underlay network and the Overlay network, when the tenant creates a network, it is easy for the input IP address segment to collide with the address of the Underlay network. In addition, for advanced network functions such as load balancing, source address translation SNAT, destination address translation DNAT, etc., a partial IP address field needs to be reserved, which is different from the IP address inside the bare metal server, so as to avoid conflict.
Aiming at the problems that the addresses of the two networks of underwritay and Overlay can not conflict and the routing has no interference, the existing solution is to maintain all IP address segments which can not be used by the tenant virtual network by configuring a white list through a cloud management platform. That is, when an Underlay network and an Overlay network exist in a bare metal server at the same time, in order to avoid IP address or route conflicts, it is necessary to determine in advance an IP address segment occupied by the Underlay network and the Overlay network and a reserved network address segment. Then, the network address segments are shielded on the cloud management platform, so that the user cannot use the network address segments which conflict with the planning when the user creates the tenant network. Finally, after the bare metal server is created, routing information needs to be configured inside the bare metal server manually or in a preset script mode.
Because the cloud management platform does not uniformly manage the IP address segments and the reserved network address segments occupied by the Underlay network and the Overlay network, which are determined in advance, in the bare metal server, when the network address segments are determined in advance or reserved and need to be changed, routing information of the bare metal server needs to be checked and modified one by one to ensure that new routing information can take effect in the bare metal server.
Therefore, in the prior art, when the network address changes, a great deal of energy is needed to perform routing update on the created bare metal server.
Disclosure of Invention
The invention provides a bare metal server route updating method, a bare metal server route updating device, electronic equipment and a bare metal server route updating medium, which are used for solving the problem that in the prior art, when a network address on a bare metal server changes, a great deal of energy is needed to perform route updating on the created bare metal server.
In order to solve the above technical problem, according to an aspect of the present invention, there is provided a bare metal server route updating method applied to a cloud platform, the method including:
determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and a corresponding second IP address segment stored for each bare metal server, wherein the first IP address segment is an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network;
acquiring tenant information of the target bare metal server;
and generating a first routing information table according to the first IP address field and the tenant information, and sending the first routing information table to the target bare metal server.
As can be seen from the above description, in the present invention, the cloud platform uniformly stores and manages the IP address segments occupied by the Overlay network and/or the Underlay network on the bare metal server and the routing table of the bare metal server. Therefore, when the network address on the bare metal server changes, the cloud platform can determine a target bare metal server needing routing change according to the changed IP address field, then automatically generates a first routing information table according to tenant information accessed to the target bare metal server, issues the first routing information table to the target bare metal server, and updates the target bare metal server according to the first routing information table. Therefore, the established bare metal server is not required to be subjected to route updating by a great deal of labor, the workload of manually adjusting the route can be saved, and the work efficiency of route updating of the bare metal server is greatly improved
Specifically, the method further comprises:
and receiving response information sent by the target bare metal server after the target bare metal server finishes updating the routing information table stored in the target bare metal server according to the first routing information table.
By receiving the response information sent by the target bare metal server, the routing update of the target bare metal server can be confirmed, and the cloud platform can store the latest routing information of the target bare metal server conveniently.
Specifically, the determining, according to the obtained changed first IP address segment and the corresponding second IP address segment stored for each bare metal server, a target bare metal server for performing routing update includes:
acquiring an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network, wherein the IP address field change notification carries information of the first IP address field;
and determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, and taking the bare metal server corresponding to the target second IP address segment as a target bare metal server.
Here, after receiving the IP address segment change notification sent by the operation and management platform, the cloud platform can actively confirm the target bare metal server that needs to be subjected to routing update according to the IP address segment change notification, thereby realizing automatic update of routing information of the bare metal server without performing a troubleshooting on a per-station basis.
Specifically, the determining, according to the first IP address segment and the corresponding second IP address segment stored in each bare metal server, a target second IP address segment corresponding to the first IP address segment includes:
judging whether an address field corresponding to the first IP address field is a universal IP address field or not according to the universal IP address field aiming at all bare metal servers in the second IP address field;
if yes, the general IP address field is used as a target second IP address field;
if not, judging a specific IP address segment corresponding to the first IP address segment, and taking the specific IP address segment corresponding to the first IP address segment as a target second IP address segment.
Specifically, the taking the bare metal server corresponding to the target second IP address segment as the target bare metal server includes:
when the general IP address field is used as a target second IP address field, determining that the target bare metal server is all bare metal servers;
and when the specific IP address segment corresponding to the first IP address segment is taken as a target second IP address segment, determining that the target bare metal server is the bare metal server of the corresponding specific IP address segment.
Because the IP address field occupied by the Overlay network and/or the Underlay network comprises the general IP address field and the specific IP address field, the target bare metal server can be judged more conveniently by judging whether the first IP address field corresponds to the general IP address field or the specific IP address field.
Specifically, the determining, according to the obtained changed first IP address segment and the corresponding second IP address segment stored in each bare metal server, a target bare metal server for performing routing update further includes:
receiving a routing update request sent by a first bare metal server;
judging whether an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network is acquired, wherein the IP address field change notification carries information of the first IP address field;
if so, judging whether a corresponding second IP address field stored aiming at the first bare metal server corresponds to the first IP address field;
and if so, determining the first bare metal server as a target bare metal server.
Specifically, the receiving a route update request sent by a first bare metal server includes:
receiving a route updating request sent by the first bare metal server according to a preset period; alternatively, the first and second electrodes may be,
receiving a routing update request sent by the first bare metal server according to a control message protocol ICMP notification, wherein when the cloud platform detects that the first bare metal server sends service traffic to an error gateway, the cloud platform sends the ICMP notification to the first bare metal server.
Here, the cloud platform receives a route update request sent by the bare metal server, and in order to determine whether the bare metal server needs to perform route update, it needs to actively determine whether an IP address segment change notification sent by the cloud management platform is received, and if so, determines the target bare metal server. Therefore, the mode of triggering the routing update of the bare metal server is more intelligent and can be suitable for different cloud environments.
According to another aspect of the present invention, there is also provided a bare metal server route updating method, applied to a bare metal server, the method including:
receiving a first routing information table sent by a cloud platform;
and updating the locally stored routing information table according to the first routing information table.
Because the bare metal server is provided with the routing configuration agent, the bare metal server can automatically update the routing after receiving the first routing information sent by the cloud platform, manual configuration is not needed, and the workload of manually adjusting the routing is saved, so that the automation level is improved, and the cost of synchronizing the routing information is reduced.
Specifically, the method further comprises:
and according to the first routing information table, after the locally stored routing information table is updated, response information of the updated routing information table is sent to the cloud platform.
By sending the response information to the cloud platform, it can be confirmed that the routing information table locally stored by the bare metal server is consistent with the routing information table stored on the bare metal server on the cloud platform, that is, the bare metal server is updated.
Specifically, before receiving the first routing information table sent by the cloud platform, the method further includes:
and sending a route updating request to the cloud platform.
Specifically, the sending the route update request to the cloud platform includes:
a route updating request is sent according to a preset period; alternatively, the first and second electrodes may be,
receiving a control message protocol ICMP notification sent by the cloud platform, wherein the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an error gateway;
and sending a route updating request according to the ICMP notification.
The bare metal server can send a route updating request to the cloud platform, and the route table information stored locally is actively changed, so that automatic updating on the bare metal server is realized, the route updating mode of the bare metal server is triggered more intelligently, and the method is applicable to different cloud environments.
Specifically, the updating the routing information table stored in the first routing information table according to the first routing information table includes at least one of the following:
adding corresponding routing entries to a locally stored routing information table according to the first routing information table;
deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and
and modifying the corresponding routing entry for the locally stored routing information table according to the first routing information table.
Because the changed IP address field can be the deletion, the expansion or the modification of the original IP address field, the routing information table also needs to be changed correspondingly so as to ensure that the accessed tenant network can successfully access the corresponding network and avoid the bare metal server sending the service flow to the wrong gateway.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including: a first processor, a first memory, and a first transceiver;
the first transceiver is used for acquiring the changed first IP address field under the control of the first processor;
the first processor is used for reading the program in the first memory and executing the following processes: determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and a corresponding second IP address segment stored for each bare metal server, wherein the first IP address segment is an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network; acquiring tenant information of the target bare metal server; and generating a first routing information table according to the first IP address field and the tenant information, and controlling the first transceiver to send the first routing information table to the target bare metal server so as to update the stored routing information table.
Specifically, the first processor is further configured to control the first transceiver to receive response information sent by the target bare metal server after the update of the routing information table stored in the target bare metal server is completed according to the first routing information table.
Specifically, the first processor is further configured to, when determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and a corresponding second IP address segment stored for each bare metal server, obtain an IP address segment change notification sent by the cloud management platform for an IP address segment occupied by an Overlay network and/or an Underlay network, where the IP address segment change notification carries information of the first IP address segment; and determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, and taking the bare metal server corresponding to the target second IP address segment as a target bare metal server.
Specifically, the first processor is further configured to, when determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, determine whether an address segment corresponding to the first IP address segment is the general IP address segment according to general IP address segments for all bare metal servers included in the second IP address segment; if yes, the general IP address field is used as a target second IP address field; if not, judging a specific IP address segment corresponding to the first IP address segment, and taking the specific IP address segment corresponding to the first IP address segment as a target second IP address segment.
Specifically, the first processor is further configured to determine that the target bare metal server is all bare metal servers when the bare metal server corresponding to the target second IP address segment is taken as the target bare metal server and the general IP address segment is taken as the target second IP address segment; and when the specific IP address segment corresponding to the first IP address segment is taken as a target second IP address segment, determining that the target bare metal server is the bare metal server of the corresponding specific IP address segment.
Specifically, the first processor is further configured to control the first transceiver to receive a route update request sent by the first bare metal server when determining a target bare metal server for performing route update according to the obtained changed first IP address segment and the corresponding second IP address segment stored for each bare metal server; judging whether an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network is acquired, wherein the IP address field change notification carries information of the first IP address field; if so, judging whether a corresponding second IP address field stored aiming at the first bare metal server corresponds to the first IP address field; and if so, determining the first bare metal server as a target bare metal server.
Specifically, the receiving, by the first transceiver, the route update request sent by the first bare metal server includes:
receiving a route updating request sent by the first bare metal server according to a preset period; alternatively, the first and second electrodes may be,
receiving a routing update request sent by the first bare metal server according to a control message protocol ICMP notification, wherein when the cloud platform detects that the first bare metal server sends service traffic to an error gateway, the cloud platform sends the ICMP notification to the first bare metal server.
There is also provided, in accordance with another aspect of an embodiment of the present invention, an electronic device, including a second processor, a second memory, and a second transceiver;
the second transceiver is configured to receive a first routing information table sent by a cloud platform under the control of the second processor;
the second processor is used for reading the program in the second memory and executing the following processes: and updating the locally stored routing information table according to the first routing information table.
Specifically, the second processor is further configured to control the second transceiver to send response information of completing updating to the cloud platform after the routing information table stored locally is updated according to the first routing information table.
Specifically, the second processor is further configured to control the second transceiver to send a route update request to the cloud platform before receiving the first route information table sent by the cloud platform.
Specifically, the sending, by the second transceiver, the route update request to the cloud platform includes:
a route updating request is sent according to a preset period; alternatively, the first and second electrodes may be,
receiving a control message protocol ICMP notification sent by the cloud platform, wherein the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an error gateway;
and sending a route updating request according to the ICMP notification.
Specifically, the updating, by the second processor, of the routing information table stored in the first routing information table includes at least one of: adding corresponding routing entries to a locally stored routing information table according to the first routing information table; deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and modifying the corresponding routing entry for the locally stored routing information table according to the first routing information table.
According to another aspect of the embodiments of the present invention, there is also provided a bare metal server route updating apparatus, applied to a cloud platform, the apparatus including:
the determining module is used for determining a target bare metal server for performing routing update according to the acquired changed first IP address segment and a corresponding second IP address segment stored for each bare metal server, wherein the first IP address segment is an IP address segment occupied by a covering layer Overlay network and/or a bottom layer Underlay network;
the acquisition module is used for acquiring tenant information of the target bare metal server;
and the generation and sending module is used for generating a first routing information table according to the first IP address field and the tenant information, and sending the first routing information table to the target bare metal server so as to update the stored routing information table.
According to another aspect of the embodiments of the present invention, there is also provided a bare metal server route updating apparatus, applied to a bare metal server, the apparatus including:
the second receiving module is used for receiving the first routing information table sent by the cloud platform;
and the updating module is used for updating the locally stored routing information table according to the first routing information table.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including: the system comprises a third processor, a first communication interface, a third memory and a first communication bus, wherein the third processor, the first communication interface and the third memory complete communication with each other through the first communication bus;
the third memory has stored therein a computer program which, when executed by the third processor, causes the third processor to carry out the steps of the method described above.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including: the fourth processor, the second communication interface and the fourth memory complete communication with each other through the second communication bus;
the fourth memory has stored therein a computer program which, when executed by the fourth processor, causes the fourth processor to carry out the steps of the method described above.
According to another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program executable by an electronic device, the program, when run on the electronic device, causing the electronic device to perform the steps of the above-mentioned method.
According to another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program executable by an electronic device, the program, when run on the electronic device, causing the electronic device to perform the steps of the above-mentioned method.
The invention has the following beneficial effects:
the invention provides a bare metal server route changing method, a bare metal server route changing device, electronic equipment and a bare metal server route changing medium, wherein the method comprises the following steps: determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and a corresponding second IP address segment stored for each bare metal server, wherein the first IP address segment is an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network; acquiring tenant information of the target bare metal server; and generating a first routing information table according to the first IP address field and the tenant information, and sending the first routing information table to the target bare metal server. As can be seen from the above, in the present invention, the cloud platform is added between the cloud management platform and the bare metal server, the cloud platform uniformly stores and manages the IP address fields occupied by the Overlay network and/or the Underlay network on the bare metal server, and the cloud platform generates the routing information table of the bare metal server and stores the routing information table of the bare metal server. When the network address on the bare metal server changes, the cloud platform can determine a target bare metal server needing routing change according to the changed IP address segment and the stored IP address segment occupied by the Overlay network and/or the Underlay network, then automatically generate a first routing information table according to the changed IP address segment and tenant information on the target bare metal server, and issue the first routing information table to the target bare metal server, and the target bare metal server updates according to the first routing information table. Compared with the prior art that the bare metal servers need to be manually checked one by one to determine the bare metal servers needing routing change and the determined routing information on the bare metal servers needs to be manually modified, the method and the device do not need to manually expend a great deal of energy to update the routes of the created bare metal servers, can save the workload of manually adjusting the routes, greatly improve the working efficiency of updating the routes of the bare metal servers, and reduce the cost of updating the routes of the bare metal servers.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a bare metal server route updating method provided in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a bare metal server network connection provided in an embodiment of the invention;
fig. 3 is a schematic diagram illustrating a process of initializing a bare metal server route by a cloud platform according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a process of notifying a target bare metal server of route update by a cloud platform according to an IP address change in an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a process in which a cloud platform notifies a target bare metal server of a route update according to a route update request according to an embodiment of the present invention;
fig. 6 is a second flowchart of a bare metal server route updating method according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the invention;
fig. 8 is a second schematic diagram of an electronic device according to an embodiment of the invention;
fig. 9 is a block diagram of a bare metal server route updating apparatus provided in an embodiment of the present invention;
fig. 10 is a second block diagram of a bare metal server route updating apparatus according to an embodiment of the present invention;
fig. 11 is a third schematic diagram of an electronic apparatus according to an embodiment of the invention;
fig. 12 is a fourth schematic view of an electronic device according to an embodiment of the invention.
Detailed Description
The invention provides a bare metal server route updating method, a bare metal server route updating device, electronic equipment and a medium, and aims to solve the problem that in the prior art, when a network address on a bare metal server changes, a large amount of labor is required to perform route updating on the created bare metal server.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
in the prior art, although the cloud management platform may maintain the Underlay network and the Overlay network on the bare metal server, the cloud management platform does not store and manage the IP address fields occupied by the Underlay network and the Overlay network on the bare metal server in a unified manner. Therefore, in order to realize the uniform storage and management of the IP address fields occupied by the Underlay network and the Overlay network on the bare metal server, the cloud platform is added between the cloud management platform and the bare metal server, and the cloud platform uniformly stores and manages the IP address fields occupied by the Overlay network and/or the Underlay network on the bare metal server and the routing information table of the bare metal server.
Therefore, according to an aspect of the embodiments of the present invention, a bare metal server route changing method is provided, the bare metal server route updating method provided by the embodiments of the present invention is applied to a cloud platform, and is specifically applied to an electronic device installed with the cloud platform, fig. 1 is a flowchart of the bare metal server route changing method in the embodiments of the present invention, and as shown in fig. 1, the method includes the following steps:
step S101, determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and a corresponding second IP address segment stored for each bare metal server, wherein the first IP address segment is an IP address segment occupied by a covering layer Overlay network and/or a bottom layer Underlay network.
In the embodiment of the present invention, as can be seen from fig. 2, the cloud platform is connected to the cloud management platform and the bare metal server, so that the cloud platform can obtain and store the network address plan about the IP address segment occupied by the Overlay network and/or the Underlay network on the bare metal server and issued by the cloud management platform, and can also issue the initialized routing information or the changed routing information to the corresponding bare metal server. Therefore, the IP address fields occupied by the Overlay network and/or the Underlay network are effectively stored and managed through the cloud platform, the problem of IP address or route conflict in the bare metal server is solved, and the complexity of maintaining the Overlay network and/or the Underlay network is reduced.
It should be noted that a plurality of bare metal servers can be accessed on one cloud platform. And for each bare metal server, the IP address field occupied by the corresponding Overlay network and/or the Underlay network is different. Therefore, the cloud platform can determine the bare metal server needing to be subjected to the route change by comparing the changed first IP address segment with the IP address segment occupied by the saved Overlay network and/or the Underlay network, and the cloud platform does not need to manually perform investigation one by one, so that the workload of manually updating the route is saved.
And S102, acquiring tenant information of the target bare metal server.
Generally, when a server accesses a network, two routing methods are adopted: default route and detailed route. By default route, it is meant a route selected when there is no matching route entry between destination addresses in the routing table, with both the destination IP and subnet segments changed to 0.0.0.0 and 0.0.0.0. The detail routing means routing information manually configured by a user or a network administrator, and a destination IP and a subnet segment thereof need to be set. For example, for a certain tenant network, the subnet segment of the corresponding Overlay network is 192.168.1.0/24, and the gateway is 192.168.1.254, the cloud platform automatically issues the route shown in table 1, where the first behavior in table 1 is detailed route and the 2 nd behavior is default route.
TABLE 1
Destination Netmask Nexthop
192.168.1.0 255.255.255.0 192.168.1.254
0.0.0.0 0.0.0.0 192.168.1.254
Therefore, after the cloud platform determines the target bare metal server to be changed, the cloud platform should acquire tenant information of the tenant network accessed to the target bare metal server to generate the first routing information table corresponding to the changed first IP address segment.
Step S103, generating a first routing information table according to the first IP address segment and the tenant information, and sending the first routing information table to the target bare metal server.
The cloud platform automatically generates a first routing information table according to the changed first IP address segment and tenant information of a tenant network accessed to the target bare metal server in a mode of detailed routing in the table 1 and issues the first routing information table to the target bare metal server, wherein the bare metal server is configured with a routing configuration agent, so that after the target bare metal server receives the first routing table issued by the cloud platform, the routing configuration agent automatically updates according to the first routing table, and a worker does not need to perform routing configuration in a manual or script preset mode, so that the process of updating the bare metal server routing is automated, and the workload of manually updating the routing is saved. In addition, compared with a mode that a worker manually or presets a script, the method can avoid errors caused by manual operation in the route configuration process, and greatly improves the efficiency and the accuracy of the route configuration.
Therefore, in the embodiment of the invention, compared with the prior art, a great deal of energy is not needed to be consumed to update the route of the established bare metal server, the workload of manually adjusting the route can be saved, the working efficiency of updating the route of the bare metal server is greatly improved, and the cost of updating the route of the bare metal server is reduced.
It should be noted that, on the cloud platform, the information format of the IP address field occupied by the Overlay network and/or the Underlay network on each bare metal server is shown in table 2. It is understood that, in the embodiment of the present invention, the information format of the IP address segment occupied by the cloud platform for the Overlay network and/or the Underlay network on each bare metal server is not limited to the reference format in table 2.
TABLE 2
Address segment Gateway Use of Type (B)
10.10.0.0/16 * Management network Underlay
10.20.0.0/16 * Storage network Underlay
172.10.0.0/16 * External network Overlay
As can be seen from the reference format given in table 2, the information format of the IP address field occupied by the cloud platform for the Overlay network and/or the Underlay network on each bare metal server mainly includes an address field and gateway information. Since the address field may be an aggregated address and correspond to a plurality of pre-planned gateways, specific gateway information is not given in table 2.
For the application scenario given in table 2 as an example, the IP address segment occupied by the Overlay network and/or the Underlay network stored in the cloud platform mainly includes the following three aspects:
1) the portion of the underwlay network plans or reserves address segments for physical network addresses. Such as a storage network, a management network, etc. in the table.
2) And an Overlay external network, which is used for planning a network for providing services for the bare metal server for the administrator. Such as a CMNET public network or an IP bearer network, and the like, have a corresponding relationship with an actual underlying physical network.
3) The Overlay service network, which is a virtual network (or called tenant network) customized by a user, uses an address field which must be removed from the occupied or planned address field.
In addition, since the address field may be an aggregated address, the address field may correspond to a plurality of pre-planned gateways, and therefore, in the IP address field occupied by the Overlay network and/or the Underlay network, a part of the IP address field is a general IP address field that can be commonly used by all bare metal servers, and another part of the IP address field is a specific IP address field that is specific to a part of bare metal servers and different from other bare metal servers. Wherein the specific IP address field is related to the network location of the part of bare metal server and the application carried on it.
Since in general, the bare metal server is routed to the Overlay network by default and to the Underlay network by explicit routing. Therefore, in the embodiment of the present invention, mainly for the above situation, an initialization process of route configuration on a bare metal server is described, where the initialization process is as shown in fig. 3.
As can be seen from the above, the IP address segments occupied by the Overlay network and/or the Underlay network can be divided into the general IP address segment and the specific IP address segment, so that when performing initialization configuration, the detailed route can be generated according to the general IP address segment in the Underlay network and in the manner in table 1, and then the part of the detailed route can be saved as the general route table, and then the detailed route can be generated according to the specific IP address segment in the Underlay network and in the manner in table 1, and then the part of the detailed route can be saved as the specific route table applicable to the part of the bare metal server. Wherein the generic routing table is shown in table 3 and the specific routing table is shown in table 4.
TABLE 3
Destination Netmask Nexthop
10.10.0.0 255.255.0.0 10.10.1.254
10.20.0.0 255.255.0.0 10.20.1.254
TABLE 4
Bare metal node Destination Netmask Nexthop
BM1 10.10.10.0 255.255.255.0 10.10.10.254
BM2 10.20.10.0 255.255.255.0 10.20.10.254
As can be seen from table 3, the generic routing table does not specifically limit the model of the bare metal server. As can be seen from table 4, the model number of the bare metal server corresponding to each routing entry needs to be marked in the specific routing table to distinguish between different bare metal servers, such as the first row routing entry in table 4 corresponding to BM1 in table 4, and the second row routing entry in table 4 corresponding to BM 2.
It should be understood that, in the embodiment of the present invention, the initialization process of the route configuration on the bare metal server is also applicable to a scenario where the default route goes through an Underlay network, or a scenario where the explicit route goes to an Overlay network, and in the embodiment of the present invention, the comparison is not specifically limited.
For example, tenant a creates a tenant network, the corresponding subnet segments are 192.168.1.0/24, and the gateways are 192.168.1.1, and the network plan of the IP address segments occupied by the Overlay network and/or the Underlay network is shown in table 5.
TABLE 5
Address segment Gateway Use of Type (B)
10.10.0.0/16 * Management network Underlay
172.10.0.0/16 * External network Overlay
The generated default route is as follows:
the address field is 0.0.0.0/0, and the gateway is 192.168.1.1.
The detailed routing on the Underlay network is as follows:
the address field is 10.10.0.0/16, and the gateway is an Underlay network access gateway corresponding to the bare metal server.
The detailed routing on the Overlay network is as follows:
the address field is 172.10.0.0/16, and the gateway is 192.168.1.1.
As can be seen from the above, for the same tenant, the Underlay network and the Overlay network respectively generate detailed routes, where in the detailed routes on the Overlay network, the gateway is the gateway of the tenant, and in the detailed routes on the Underlay network, the gateway is the Underlay network access gateway corresponding to the bare metal server. The routing configuration on the Underlay network is more complicated when the routing configuration is performed, so that errors are more likely to occur when the routing configuration is performed manually. Therefore, in the embodiment of the invention, the cloud platform automatically generates the routing information table according to the stored tenant information and the IP address fields occupied by the Underlay network and the Overlay network, so that the method is more reliable, errors caused by manual operation in the routing configuration process can be avoided, and the efficiency and the accuracy of routing configuration are greatly improved.
In the detailed routing on the Underlay network, the address of the Underlay network access gateway corresponding to the bare metal server is determined according to the network location where the bare metal server is located, for example, the address of the gateway of the bare metal server hung under the Underlay network access switch a is 10.10.1.1, and the address of the gateway of the bare metal server hung under the Underlay network access switch B is 10.10.2.1.
Similarly, in a specific route, the Underlay network access gateway corresponding to the bare metal server is also mainly determined by the location of the bare metal server, the type of the server, the requirements of the service party, the network policy, and the like.
For example, a Hadoop server installed in a harbourine room needs to access a Master node (IP: 100.1.1.1) deployed in an Underlay network, and may correspond to a specific route: the address segment is 100.1.1.1/32, and the gateway is the Underlay network access gateway corresponding to the bare metal server. The gateway is determined by the position of the Master node, the type of the server, the requirement of a service party and the network policy.
Specifically, in the embodiment of the present invention, to determine that the target bare metal server has performed the route update, the method further includes: and receiving response information sent by the target bare metal server after the target bare metal server finishes updating the routing information table stored in the target bare metal server according to the first routing information table.
Therefore, by receiving the response information sent by the target bare metal server, it can be determined that the routing information table on the target bare metal server is synchronized with the routing information table of the target bare metal server stored on the cloud platform, and the cloud platform is prevented from resending the first routing information table to the target bare metal server, so that the computation load of the cloud platform is increased.
Specifically, in the embodiment of the present invention, when determining the target bare metal server for performing the route update, the cloud platform may determine the target bare metal server for performing the route update according to the changed IP address segment after receiving the IP address segment change notification sent by the cloud management platform, or the cloud platform may determine whether the IP address segment change notification sent by the cloud management platform is received after receiving the route update request sent by the bare metal server, and if so, determine the target bare metal server for performing the route update according to the changed IP address segment. Namely, the cloud platform can actively judge whether the change notification of the IP address field sent by the cloud management platform is received according to the route update request sent by the bare metal server, and can also passively and directly receive the change notification of the IP address field sent by the cloud management platform.
The following describes two cases of determining a target bare metal server for performing routing update with reference to specific embodiments.
Example two:
in the embodiment of the present invention, determining, according to the obtained changed first IP address segment and the corresponding second IP address segment stored in each bare metal server, a target bare metal server for performing routing update includes:
acquiring an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network, wherein the IP address field change notification carries information of the first IP address field;
and determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, and taking the bare metal server corresponding to the target second IP address segment as a target bare metal server.
The embodiment of the invention mainly describes that the cloud platform passively and directly receives an IP address field change notification sent by the cloud management platform, and determines a target second IP address field corresponding to a first IP address field from IP address fields occupied by an Overlay network and/or an Underlay network on a plurality of bare metal servers according to information of the first IP address field carried in the IP address field change notification, thereby determining a target bare metal server needing to perform route updating from the plurality of bare metal servers.
This kind of mode is after the cloud platform receives the IP address section update notice that the cloud manages the platform and send, can trigger to the automatic route update that carries out of the naked metal server of target who determines, consequently whenever carries out the network address change, can all realize carrying out the route update to the naked metal server of target is automatic, has promoted route update efficiency to a great extent, need not to go on through the manual work again and investigate one by one, has saved the work load of artifical update route.
As can be seen from the foregoing embodiments, the IP address segments occupied by the Overlay network and/or the Underlay network include a general IP address segment and a specific IP address segment.
Therefore, determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and the corresponding second IP address segment stored for each bare metal server comprises:
judging whether an address field corresponding to the first IP address field is a universal IP address field or not according to the universal IP address field aiming at all bare metal servers in the second IP address field; if yes, the general IP address field is used as a target second IP address field;
if not, judging a specific IP address segment corresponding to the first IP address segment, and taking the specific IP address segment corresponding to the first IP address segment as a target second IP address segment.
When the target second IP address field is a general IP address field corresponding to all bare metal servers, judging that the target bare metal servers are all bare metal servers; and when the target second IP address field is a specific IP address field corresponding to a part of bare metal servers, judging that the target bare metal servers are part of bare metal servers of the corresponding specific IP address field.
Therefore, in the embodiment of the present invention, the IP address segments occupied by the Overlay network and/or the Underlay network are uniformly stored and maintained through the cloud platform, so that when a target bare metal server requiring routing update is determined, whether the first IP address segment that is changed corresponds to the general IP address segment or the specific IP address segment can be preferentially determined, and the target bare metal server can be determined conveniently and quickly. Compared with the method in the prior art, which requires the personnel to check one by one, the method greatly improves the efficiency of route updating and saves the workload of manually adjusting the route.
In the above embodiment, the process of updating the routing of the initialization configuration of the bare metal server is briefly described by taking a scenario in which the bare metal server is routed to the Overlay network by default and is routed to the Underlay network by detail as an example.
As shown in fig. 4, an administrator uses a transportation and management platform as an entrance to update an IP address segment occupied by an Underlay network, a cloud platform receives a changed first IP address segment sent by the transportation and management platform, then the cloud platform determines a target bare metal server needing a routing change according to the changed first IP address segment and the IP address segment occupied by the Underlay network, and then the cloud platform generates a first routing information table according to the changed first IP address segment and tenant information accessed to the target bare metal server, and notifies the target bare metal server of a routing update.
Example three:
in the embodiment of the present invention, determining, according to the obtained changed first IP address segment and the corresponding second IP address segment stored in each bare metal server, a target bare metal server for performing routing update includes:
receiving a routing update request sent by a first bare metal server;
judging whether an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network is acquired, wherein the IP address field change notification carries information of the first IP address field;
if so, judging whether a corresponding second IP address field stored aiming at the first bare metal server corresponds to the first IP address field;
and if so, determining the first bare metal server as a target bare metal server.
As can be seen from the foregoing embodiment, a plurality of bare metal servers may be connected to the cloud platform, and each bare metal server may send a routing update request to the cloud platform in order to ensure that the information of the routing table corresponding to the bare metal server stored on the cloud platform is consistent with the information of the routing table corresponding to the bare metal server stored on the cloud platform, so that the cloud platform may actively determine whether an IP address segment change notification sent by the cloud management platform is received after receiving the routing update request sent by the bare metal server, and if so, determine a target bare metal server that needs to perform routing update, and send a first routing information table generated according to the IP address segment that has changed and tenant information to the target bare metal server. The cloud platform generates a first routing information table according to the routing update request sent by the bare metal server, and notifies the bare metal server of a routing update process as shown in fig. 5.
In the embodiment of the invention, the cloud platform actively updates the route according to the route updating request sent by the bare metal server. Therefore, the mode of triggering the cloud platform to update the routing of the bare metal server can timely update the routing information on the bare metal server with the changed network address, and the intelligent automatic updating of the routing information on the bare metal server is realized.
In addition, it should be noted that, in the embodiment of the present invention, the route update request may be sent by the bare metal server according to a preset period, which can ensure that the cloud platform finds the target bare metal server that needs to perform the route update in time, and performs the route update in time, and is applicable to different cloud environments.
In the embodiment of the present invention, the route update request may also be passively sent to the cloud platform by the bare metal server according to the ICMP notification. The ICMP notification is sent to the bare metal server when the cloud platform detects that the bare metal server sends the service traffic to the wrong gateway. Because the reason why the bare metal server sends the service traffic to the error gateway may be that a locally stored routing information table in the bare metal server is different from a routing information table stored in the cloud platform, in order to determine whether the bare metal server sends the service traffic to the error gateway due to the reason, the bare metal server sends a routing update request to the cloud platform to store that the locally stored routing information table in the bare metal server is synchronized with the routing information table stored in the cloud platform. Although the method for triggering the cloud platform to update the route of the bare metal server is not periodic, the synchronization between the locally stored route information table in the bare metal server and the route information table stored in the cloud platform is ensured to a certain extent.
To sum up, in the bare metal server routing update method provided in the above embodiment, the cloud platform is added between the cloud management platform and the bare metal server, and the cloud platform uniformly stores and manages the IP address segment occupied by the Overlay network and/or the Underlay network on the bare metal server and the routing table of the bare metal server, so that when the routing update is performed, the workload of manually adjusting the routing can be saved, the work efficiency of performing the routing update on the bare metal server is greatly improved, and the cost of performing the routing update on the bare metal server is reduced.
Example four:
on the basis of the foregoing embodiment, according to another aspect of the embodiment of the present invention, an embodiment of the present invention further provides a route update method for a bare metal server, where the route update method for the bare metal server provided by the embodiment of the present invention is applied to the bare metal server, and is specifically applied to an electronic device installed with the bare metal server, as shown in fig. 6, the method includes the following steps:
step S601: receiving a first routing information table sent by a cloud platform;
step S602: and updating the locally stored routing information table according to the first routing information table.
The bare metal server runs a routing configuration agent, which is used for acquiring a routing table of the bare metal server where the bare metal server is located and performing routing configuration on the bare metal server where the bare metal server is located according to the routing table. Therefore, when the target bare metal server is determined to need to perform route updating, the route configuration agent in the target bare metal server needs to automatically acquire the first route information table and perform updating according to the route information in the first route information table.
Therefore, in the embodiment of the invention, the routing configuration agent is introduced into the bare metal server, so that the routing table stored on the bare metal server is automatically updated according to the first routing information table, and the workload of manually adjusting the routing is saved, thereby improving the automation level and reducing the cost of synchronizing routing information.
Wherein, in the embodiment of the present invention, the method further includes:
and according to the first routing information table, after the locally stored routing information table is updated, response information of the updated routing information table is sent to the cloud platform.
By sending the response information to the cloud platform, it can be determined that the routing information table on the target bare metal server is synchronized with the routing information table of the target bare metal server stored on the cloud platform, so that the cloud platform is prevented from sending the first routing information table again, and the operation amount of the cloud platform is increased.
In this embodiment of the present invention, the updating, according to the first routing information table, the routing information table stored in the first routing information table includes at least one of:
1) adding corresponding routing entries to a locally stored routing information table according to the first routing information table;
2) deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table;
3) and modifying the corresponding routing entry for the locally stored routing information table according to the first routing information table.
As can be seen from the above embodiments, the generated routing information table is related to the changed first IP address field, regardless of the default route or the detailed route, where the change of the first IP address field includes the following three cases:
1) deleting an IP address field occupied by an Overlay network and/or an Underlay network;
2) expanding an IP address field occupied by an Overlay network and/or an Underlay network;
3) the segments of the IP address occupied by the Overlay network and/or the Underlay network are modified.
Therefore, for the change of the three IP address fields, the updating of the stored routing information table correspondingly includes: adding corresponding routing entries to the existing routing entries in the routing information table stored therein, or deleting corresponding routing entries to the existing routing entries in the routing information table stored therein, or modifying corresponding routing entries to the existing routing entries in the routing information table stored therein.
When the routing information is updated, the routing information table locally stored on the whole bare metal server does not need to be replaced, and only the changed routing table needs to be updated, so that a large storage space is not occupied, and the updating speed and efficiency are improved.
In this embodiment of the present invention, before receiving the first routing information table sent by the cloud platform, the method further includes:
and sending a route updating request to the cloud platform.
Wherein sending a route update request to the cloud platform comprises:
a route updating request is sent according to a preset period; alternatively, the first and second electrodes may be,
receiving a control message protocol ICMP notification sent by the cloud platform, wherein the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an error gateway;
and sending a route updating request according to the ICMP notification.
In some embodiments, the above-mentioned portions have been described in detail, so that the detailed description thereof is omitted.
Example five:
according to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, as shown in fig. 7, including: a first processor 71, a first memory 72 and a first transceiver 73;
in fig. 7, the bus architecture may include any number of interconnected buses and bridges, with one or more first processors 71, represented by first processor 71, and various circuits of first memory 72, represented by first memory 72, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The first transceiver 73 may be a plurality of elements, i.e. including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium. The first processor 71 is responsible for managing the bus architecture and general processing, and the first memory 72 may store data used by the first processor 71 when performing operations.
Alternatively, the first processor 71 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a CPLD (Complex Programmable Logic Device).
The first transceiver 73, configured to obtain, under the control of the first processor 71, a changed first IP address segment;
the first processor 71 is configured to read the program in the first memory 72, and execute the following processes: determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and a corresponding second IP address segment stored for each bare metal server, wherein the first IP address segment is an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network; acquiring tenant information of the target bare metal server; and generating a first routing information table according to the first IP address segment and the tenant information, and controlling the first transceiver 73 to send the first routing information table to the target bare metal server, so that the target bare metal server updates the stored routing information table.
Specifically, the first processor 71 is further configured to control the first transceiver 73 to receive response information sent by the target bare metal server after the routing information table stored in the target bare metal server is updated according to the first routing information table.
Specifically, the first processor 71 is further configured to, when determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and the corresponding second IP address segment stored in each bare metal server, obtain an IP address segment change notification sent by the cloud management platform for an IP address segment occupied by the Overlay network and/or the Underlay network, where the IP address segment change notification carries information of the first IP address segment; and determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, and taking the bare metal server corresponding to the target second IP address segment as a target bare metal server.
Specifically, the first processor 71 is further configured to, when determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, determine whether an address segment corresponding to the first IP address segment is the general IP address segment according to general IP address segments for all bare metal servers included in the second IP address segment; if yes, the general IP address field is used as a target second IP address field; if not, judging a specific IP address segment corresponding to the first IP address segment, and taking the specific IP address segment corresponding to the first IP address segment as a target second IP address segment.
Specifically, the first processor 71 is further configured to determine, when the bare metal server corresponding to the target second IP address segment is used as the target bare metal server and the general IP address segment is used as the target second IP address segment, that the target bare metal server is all bare metal servers; and when the specific IP address segment corresponding to the first IP address segment is taken as a target second IP address segment, determining that the target bare metal server is the bare metal server of the corresponding specific IP address segment.
Specifically, the first processor 71 is further configured to control the first transceiver 73 to receive a route update request sent by the first bare metal server when determining a target bare metal server for performing route update according to the obtained changed first IP address segment and the corresponding second IP address segment stored for each bare metal server; judging whether an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network is acquired, wherein the IP address field change notification carries information of the first IP address field; if so, judging whether a corresponding second IP address field stored aiming at the first bare metal server corresponds to the first IP address field; and if so, determining the first bare metal server as a target bare metal server.
Specifically, the receiving, by the first transceiver 73, the route update request sent by the first bare metal server includes:
receiving a route updating request sent by the first bare metal server according to a preset period; alternatively, the first and second electrodes may be,
receiving a routing update request sent by the first bare metal server according to a control message protocol ICMP notification, wherein when the cloud platform detects that the first bare metal server sends service traffic to an error gateway, the cloud platform sends the ICMP notification to the first bare metal server.
Example six:
according to another aspect of the embodiments of the present invention, there is also provided an electronic device, as shown in fig. 8, including: a second processor 81, a second memory 82, and a second transceiver 83;
in fig. 8, the bus architecture may include any number of interconnected buses and bridges, with one or more second processors 81, represented by the second processor 81, and various circuits of the second memory 82, represented by the second memory 82, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The second transceiver 83 may be a plurality of elements, i.e., including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium. The second processor 81 is responsible for managing the bus architecture and general processing, and the second memory 82 may store data used by the second processor 81 when performing operations.
Alternatively, the second processor 81 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a CPLD (Complex Programmable Logic Device).
The second transceiver 83 is configured to receive, under the control of the second processor 81, a first routing information table sent by a cloud platform;
the second processor 81 is configured to read the program in the second memory 82, and execute the following processes: and updating the locally stored routing information table according to the first routing information table.
Specifically, the second processor 81 is further configured to control the second transceiver 83 to send response information of the update completion to the cloud platform after the update of the locally stored routing information table is completed according to the first routing information table.
Specifically, the second processor 81 is further configured to control the second transceiver 83 to send a route update request to the cloud platform before receiving the first routing information table sent by the cloud platform.
Specifically, the sending, by the second transceiver 83, the route update request to the cloud platform includes:
a route updating request is sent according to a preset period; alternatively, the first and second electrodes may be,
receiving a control message protocol ICMP notification sent by the cloud platform, wherein the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an error gateway;
and sending a route updating request according to the ICMP notification.
Specifically, the updating, by the second processor 81, of the routing information table stored in the first routing information table includes at least one of: adding corresponding routing entries to a locally stored routing information table according to the first routing information table; deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and modifying the corresponding routing entry for the locally stored routing information table according to the first routing information table.
Example seven:
according to another aspect of the embodiments of the present invention, there is further provided a bare metal server route updating apparatus, which is applied to a cloud platform, fig. 9 is a block diagram of a structure of the bare metal server route updating apparatus provided in the embodiments of the present invention, as shown in fig. 9, where the apparatus 900 includes:
a determining module 901, configured to determine a target bare metal server for performing routing update according to the obtained changed first IP address segment and a corresponding second IP address segment stored in each bare metal server, where the first IP address segment is an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network;
an obtaining module 902, configured to obtain tenant information of the target bare metal server;
a generating and sending module 903, configured to generate a first routing information table according to the first IP address segment and the tenant information, and send the first routing information table to the target bare metal server.
Specifically, as shown in fig. 9, the apparatus 900 further includes:
a first receiving module 904, configured to receive response information sent by the target bare metal server after the target bare metal server completes updating of the routing information table stored in the target bare metal server according to the first routing information table.
Specifically, in this embodiment of the present invention, the determining module 901 includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network, and the IP address field change notification carries information of the first IP address field;
and the first determining unit is used for determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, and taking the bare metal server corresponding to the target second IP address segment as a target bare metal server.
Specifically, in an embodiment of the present invention, the first determination unit includes:
a judging subunit, configured to judge, according to a universal IP address segment for all bare metal servers included in the second IP address segment, whether an address segment corresponding to the first IP address segment is the universal IP address segment; if yes, the general IP address field is used as a target second IP address field;
the judging subunit is used for taking the general IP address field as a target second IP address field if the judging result of the judging subunit is positive; and if the judgment result of the judging subunit is negative, judging a specific IP address segment corresponding to the first IP address segment, and taking the specific IP address segment corresponding to the first IP address segment as a target second IP address segment.
Specifically, in this embodiment of the present invention, the first determining unit further includes:
a determining subunit, configured to determine that the target bare metal server is all bare metal servers when the target second IP address segment is a general IP address segment corresponding to all bare metal servers; and when the target second IP address field is a specific IP address field corresponding to a part of bare metal servers, judging that the target bare metal servers are part of bare metal servers of the corresponding specific IP address field.
Specifically, in this embodiment of the present invention, the determining module 901 further includes:
the receiving unit is used for receiving a routing update request sent by the first bare metal server;
the device comprises a first judging unit, a second judging unit and a third judging unit, wherein the first judging unit is used for judging whether an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network is acquired, and the IP address field change notification carries information of the first IP address field;
a second judging unit, configured to, if the judgment result of the first judging unit is yes, judge whether a corresponding second IP address segment stored for the first bare metal server corresponds to the first IP address segment;
a second determining unit, configured to determine the first bare metal server as a target bare metal server if a determination result of the second determining unit is yes.
Specifically, in the embodiment of the present invention, the receiving unit is specifically configured to receive a route update request sent by the first bare metal server according to a preset period; or; receiving a routing update request sent by the first bare metal server according to a control message protocol ICMP notification, wherein when the cloud platform detects that the first bare metal server sends service traffic to an error gateway, the cloud platform sends the ICMP notification to the first bare metal server.
Example eight
According to another aspect of the embodiment of the present invention, there is further provided a bare metal server route updating apparatus, which is applied to a bare metal server, as shown in fig. 10, the apparatus 1000 includes:
a second receiving module 1001, configured to receive a first routing information table sent by a cloud platform;
an updating module 1002, configured to update the locally stored routing information table according to the first routing information table.
Specifically, in the embodiment of the present invention, the apparatus 1000 further includes:
a response module 1003, configured to send updated response information to the cloud platform after the routing information table stored in the first routing information table is updated according to the first routing information table.
Specifically, in the embodiment of the present invention, the apparatus 1000 further includes:
a request module 1004, configured to send a route update request to the cloud platform.
Specifically, in the embodiment of the present invention, the request module 1004 is specifically configured to send a route update request according to a preset period; or receiving a control message protocol ICMP notification sent by the cloud platform, wherein the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an error gateway; and sending a route updating request according to the ICMP notification.
Specifically, in the embodiment of the present invention, the updating module 902 is specifically configured to add a corresponding routing entry to the locally stored routing information table according to the first routing information table; and/or deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and/or modifying the corresponding routing entry for the locally stored routing information table according to the first routing information table.
Example ten
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, as shown in fig. 11, including: the system comprises a third processor 111, a first communication interface 112, a third memory 113 and a first communication bus 114, wherein the third processor 111, the first communication interface 112 and the third memory 113 complete communication with each other through the first communication bus 114;
the third memory 113 has stored therein a computer program which, when executed by the third processor 111, causes the third processor 111 to perform the steps of:
determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and a corresponding second IP address segment stored for each bare metal server, wherein the first IP address segment is an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network;
acquiring tenant information of the target bare metal server;
and generating a first routing information table according to the first IP address field and the tenant information, and sending the first routing information table to the target bare metal server to update the stored routing information table.
Specifically, response information sent by the target bare metal server after the target bare metal server completes updating of the routing information table stored in the target bare metal server according to the first routing information table is received.
Specifically, the determining, according to the obtained changed first IP address segment and the corresponding second IP address segment stored for each bare metal server, a target bare metal server for performing routing update includes:
acquiring an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network, wherein the IP address field change notification carries information of the first IP address field;
and determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, and taking the bare metal server corresponding to the target second IP address segment as a target bare metal server.
Specifically, the determining, according to the first IP address segment and the corresponding second IP address segment stored in each bare metal server, a target second IP address segment corresponding to the first IP address segment includes:
judging whether an address field corresponding to the first IP address field is a universal IP address field or not according to the universal IP address field aiming at all bare metal servers in the second IP address field; if yes, the general IP address field is used as a target second IP address field;
if not, judging a specific IP address segment corresponding to the first IP address segment, and taking the specific IP address segment corresponding to the first IP address segment as a target second IP address segment.
Specifically, the taking the bare metal server corresponding to the target second IP address segment as the target bare metal server includes:
when the general IP address field is used as a target second IP address field, determining that the target bare metal server is all bare metal servers;
and when the specific IP address segment corresponding to the first IP address segment is taken as a target second IP address segment, determining that the target bare metal server is the bare metal server of the corresponding specific IP address segment.
Specifically, the determining, according to the obtained changed first IP address segment and the corresponding second IP address segment stored in each bare metal server, a target bare metal server for performing routing update further includes:
receiving a routing update request sent by a first bare metal server;
judging whether an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network is acquired, wherein the IP address field change notification carries information of the first IP address field;
if so, judging whether a corresponding second IP address field stored aiming at the first bare metal server corresponds to the first IP address field;
and if so, determining the first bare metal server as a target bare metal server.
Specifically, the receiving a route update request sent by a first bare metal server includes:
receiving a route updating request sent by the first bare metal server according to a preset period; alternatively, the first and second electrodes may be,
receiving a routing update request sent by the first bare metal server according to a control message protocol ICMP notification, wherein when the cloud platform detects that the first bare metal server sends service traffic to an error gateway, the cloud platform sends the ICMP notification to the first bare metal server.
The first communication bus 114 mentioned in the electronic devices in the above embodiments may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The first communication bus 114 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
A first communication interface 112 for communication between the electronic device and other devices.
The third Memory 113 may include a Random Access third Memory 113 (RAM), and may also include a Non-Volatile third Memory 113 (NVM), such as at least one magnetic disk third Memory 113. Optionally, the third memory 113 may also be at least one storage device located remotely from the aforementioned third processor 111.
The third Processor 111 may be a general-purpose third Processor 111, and includes a central third Processor 111, a Network third Processor 111 (NP), and the like; but may also be a Digital Signal third processor 111 (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc.
Example ten
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, as shown in fig. 12, including: the fourth processor 121, the second communication interface 122, the fourth memory 123 and the second communication bus 124, wherein the fourth processor 121, the second communication interface 122 and the fourth memory 123 complete communication with each other through the second communication bus 124;
the fourth memory 123 has stored therein a computer program that, when executed by the fourth processor 121, causes the fourth processor 121 to perform the steps of:
receiving a first routing information table sent by a cloud platform;
and updating the locally stored routing information table according to the first routing information table.
Specifically, according to the first routing information table, after the locally stored routing information table is updated, response information of the updated routing information table is sent to the cloud platform.
Specifically, before receiving the first routing information table sent by the cloud platform, the cloud platform sends a routing update request to the cloud platform.
Specifically, the sending the route update request to the cloud platform includes:
a route updating request is sent according to a preset period; alternatively, the first and second electrodes may be,
receiving a control message protocol ICMP notification sent by the cloud platform, wherein the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an error gateway;
and sending a route updating request according to the ICMP notification.
Specifically, the updating the routing information table stored in the first routing information table according to the first routing information table includes at least one of the following:
adding corresponding routing entries to a locally stored routing information table according to the first routing information table;
deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and
and modifying the corresponding routing entry for the locally stored routing information table according to the first routing information table.
The second communication bus 124 mentioned in the electronic devices in the above embodiments may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The second communication bus 124 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
And a second communication interface 122 for communication between the electronic device and other devices.
The fourth Memory 123 may include a Random Access fourth Memory 123 (RAM), and may also include a Non-Volatile fourth Memory 123 (NVM), such as at least one disk fourth Memory 123. Optionally, the fourth memory 123 may also be at least one storage device located remotely from the fourth processor 121.
The fourth Processor 121 may be a general-purpose fourth Processor 121, including a central fourth Processor 121, a Network fourth Processor 121 (NP), and the like; but may also be a Digital Signal fourth processor 121 (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc.
Example ten
According to another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program executable by an electronic device, the program, when run on the electronic device, causing the electronic device to perform the steps of:
determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and a corresponding second IP address segment stored for each bare metal server, wherein the first IP address segment is an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network;
acquiring tenant information of the target bare metal server;
and generating a first routing information table according to the first IP address field and the tenant information, and sending the first routing information table to the target bare metal server to update the stored routing information table.
Specifically, the electronic device further performs:
and receiving response information sent by the target bare metal server after the target bare metal server finishes updating the routing information table stored in the target bare metal server according to the first routing information table.
Specifically, the determining, according to the obtained changed first IP address segment and the corresponding second IP address segment stored for each bare metal server, a target bare metal server for performing routing update includes:
acquiring an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network, wherein the IP address field change notification carries information of the first IP address field;
and determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, and taking the bare metal server corresponding to the target second IP address segment as a target bare metal server.
Specifically, the determining, according to the first IP address segment and the corresponding second IP address segment stored in each bare metal server, a target second IP address segment corresponding to the first IP address segment includes:
judging whether an address field corresponding to the first IP address field is a universal IP address field or not according to the universal IP address field aiming at all bare metal servers in the second IP address field;
if yes, the general IP address field is used as a target second IP address field;
if not, judging a specific IP address segment corresponding to the first IP address segment, and taking the specific IP address segment corresponding to the first IP address segment as a target second IP address segment.
Specifically, the taking the bare metal server corresponding to the target second IP address segment as the target bare metal server includes:
when the general IP address field is used as a target second IP address field, determining that the target bare metal server is all bare metal servers;
and when the specific IP address segment corresponding to the first IP address segment is taken as a target second IP address segment, determining that the target bare metal server is the bare metal server of the corresponding specific IP address segment.
Specifically, the determining, according to the obtained changed first IP address segment and the corresponding second IP address segment stored in each bare metal server, a target bare metal server for performing routing update further includes:
receiving a routing update request sent by a first bare metal server;
judging whether an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network is acquired, wherein the IP address field change notification carries information of the first IP address field;
if so, judging whether a corresponding second IP address field stored aiming at the first bare metal server corresponds to the first IP address field;
and if so, determining the first bare metal server as a target bare metal server.
Specifically, the receiving a route update request sent by a first bare metal server includes:
receiving a route updating request sent by the first bare metal server according to a preset period; alternatively, the first and second electrodes may be,
receiving a routing update request sent by the first bare metal server according to a control message protocol ICMP notification, wherein when the cloud platform detects that the first bare metal server sends service traffic to an error gateway, the cloud platform sends the ICMP notification to the first bare metal server.
The computer readable storage medium in the above embodiments may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
EXAMPLE eleven
According to another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program executable by an electronic device, the program, when run on the electronic device, causing the electronic device to perform the steps of:
receiving a first routing information table sent by a cloud platform;
and updating the locally stored routing information table according to the first routing information table.
Specifically, the electronic device further performs:
and according to the first routing information table, after the locally stored routing information table is updated, response information of the updated routing information table is sent to the cloud platform.
Specifically, before receiving the first routing information table sent by the cloud platform, the electronic device further performs:
and sending a route updating request to the cloud platform.
Specifically, the sending the route update request to the cloud platform includes:
a route updating request is sent according to a preset period; alternatively, the first and second electrodes may be,
receiving a control message protocol ICMP notification sent by the cloud platform, wherein the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an error gateway;
and sending a route updating request according to the ICMP notification.
Specifically, the updating the routing information table stored in the first routing information table according to the first routing information table includes at least one of the following:
adding corresponding routing entries to a locally stored routing information table according to the first routing information table;
deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and
and modifying the corresponding routing entry for the locally stored routing information table according to the first routing information table.
The computer readable storage medium in the above embodiments may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It is to be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any actual such relationship or order between such entities or operations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely application embodiment, or an embodiment combining application and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (30)

1. A bare metal server routing updating method is applied to a cloud platform, and is characterized by comprising the following steps:
determining a target bare metal server for performing routing update according to a first changed IP address segment carried in an IP address segment change notification sent by the cloud management platform aiming at an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network and a second corresponding IP address segment stored by each bare metal server, wherein the first IP address segment is the IP address segment occupied by the Overlay network and/or the bottom-layer Underlay network;
acquiring tenant information of the target bare metal server;
and generating a first routing information table according to the first IP address field and the tenant information, and sending the first routing information table to the target bare metal server to update the stored routing information table.
2. The method of claim 1, wherein the method further comprises:
and receiving response information sent by the target bare metal server after the target bare metal server finishes updating the routing information table stored in the target bare metal server according to the first routing information table.
3. The method as claimed in claim 1, wherein the determining, according to the obtained first IP address segment carried in the change notification of the IP address segment sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the underlying Underlay underway network, and the corresponding second IP address segment stored by each bare metal server, the target bare metal server for performing the routing update includes:
and determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, and taking the bare metal server corresponding to the target second IP address segment as a target bare metal server.
4. The method as claimed in claim 3, wherein the determining, according to the obtained first IP address segment that is carried in the change notification of the IP address segment sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the underlying Underlay underway network, and the corresponding second IP address segment stored by each bare metal server, the target second IP address segment corresponding to the first IP address segment includes:
judging whether an address field corresponding to the first IP address field is a universal IP address field or not according to the universal IP address field aiming at all bare metal servers in the second IP address field;
if yes, the general IP address field is used as a target second IP address field;
if not, judging a specific IP address segment corresponding to the first IP address segment, and taking the specific IP address segment corresponding to the first IP address segment as a target second IP address segment.
5. The method of claim 4, wherein the taking the bare metal server corresponding to the target second IP address segment as a target bare metal server comprises:
when the general IP address field is used as a target second IP address field, determining that the target bare metal server is all bare metal servers;
and when the specific IP address segment corresponding to the first IP address segment is taken as a target second IP address segment, determining that the target bare metal server is the bare metal server of the corresponding specific IP address segment.
6. The method as claimed in claim 1, wherein the determining, according to the obtained first IP address segment carried in the change notification of the IP address segment sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the underlying Underlay underway network, and the corresponding second IP address segment stored by each bare metal server, the target bare metal server for performing the routing update further includes:
receiving a routing update request sent by a first bare metal server;
judging whether an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network is acquired, wherein the IP address field change notification carries information of the first IP address field;
if so, judging whether a corresponding second IP address field stored aiming at the first bare metal server corresponds to the first IP address field;
and if so, determining the first bare metal server as a target bare metal server.
7. The method of claim 6, wherein the receiving the route update request sent by the first bare metal server comprises:
receiving a route updating request sent by the first bare metal server according to a preset period; alternatively, the first and second electrodes may be,
receiving a routing update request sent by the first bare metal server according to a control message protocol ICMP notification, wherein when the cloud platform detects that the first bare metal server sends service traffic to an error gateway, the cloud platform sends the ICMP notification to the first bare metal server.
8. A bare metal server route updating method is applied to a bare metal server, and is characterized by comprising the following steps:
receiving a first routing information table sent by a cloud platform, wherein the first routing information table is obtained by the cloud platform according to a first changed IP address segment carried in an IP address segment change notification sent by the cloud management platform for an IP address segment occupied by an Overlay network and/or a bottom-layer Underay network and a corresponding second IP address segment stored for each bare metal server, determining a target bare metal server for performing routing update, wherein the first IP address segment is the IP address segment occupied by the Overlay network and/or the bottom-layer Underay network, acquiring tenant information of the target bare metal server, and generating according to the first IP address segment and the tenant information;
and updating the locally stored routing information table according to the first routing information table.
9. The method of claim 8, wherein the method further comprises:
and according to the first routing information table, after the locally stored routing information table is updated, response information of the updated routing information table is sent to the cloud platform.
10. The method of claim 8, wherein before the receiving the first routing information table sent by the cloud platform, the method further comprises:
and sending a route updating request to the cloud platform.
11. The method of claim 10, wherein the sending a route update request to the cloud platform comprises:
a route updating request is sent according to a preset period; alternatively, the first and second electrodes may be,
receiving a control message protocol ICMP notification sent by the cloud platform, wherein the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an error gateway;
and sending a route updating request according to the ICMP notification.
12. The method according to claim 8, wherein said updating the routing information table stored therein according to the first routing information table comprises at least one of:
adding corresponding routing entries to a locally stored routing information table according to the first routing information table;
deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and
and modifying the corresponding routing entry for the locally stored routing information table according to the first routing information table.
13. An electronic device, characterized in that the electronic device comprises: a first processor, a first memory, and a first transceiver;
the first transceiver is used for acquiring the changed first IP address field under the control of the first processor;
the first processor is used for reading the program in the first memory and executing the following processes: determining a target bare metal server for performing routing update according to a first changed IP address segment carried in an IP address segment change notification sent by the cloud management platform aiming at an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network and a second corresponding IP address segment stored by each bare metal server, wherein the first IP address segment is the IP address segment occupied by the Overlay network and/or the bottom-layer Underlay network; acquiring tenant information of the target bare metal server; and generating a first routing information table according to the first IP address field and the tenant information, and controlling the first transceiver to send the first routing information table to the target bare metal server so as to update the stored routing information table.
14. The electronic device of claim 13, wherein the first processor is further configured to control the first transceiver to receive response information sent by the target bare metal server after updating the routing information table stored in the target bare metal server according to the first routing information table.
15. The electronic device of claim 13, wherein the first processor is further configured to, when determining a target bare metal server for performing routing update according to the obtained changed first IP address segment and the corresponding second IP address segment stored in each bare metal server, determine a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and the corresponding second IP address segment stored in each bare metal server, and use the bare metal server corresponding to the target second IP address segment as the target bare metal server.
16. The electronic device of claim 15, wherein the first processor is further configured to, when determining a target second IP address segment corresponding to the first IP address segment according to the first IP address segment and a corresponding second IP address segment stored for each bare metal server, determine whether an address segment corresponding to the first IP address segment is the general IP address segment according to a general IP address segment for all bare metal servers included in the second IP address segment; if yes, the general IP address field is used as a target second IP address field; if not, judging a specific IP address segment corresponding to the first IP address segment, and taking the specific IP address segment corresponding to the first IP address segment as a target second IP address segment.
17. The electronic device of claim 16, wherein the first processor is further configured to determine that the target bare metal server is a full bare metal server when the universal IP address segment is used as the target second IP address segment when the bare metal server corresponding to the target second IP address segment is used as the target bare metal server; and when the specific IP address segment corresponding to the first IP address segment is taken as a target second IP address segment, determining that the target bare metal server is the bare metal server of the corresponding specific IP address segment.
18. The electronic device of claim 13, wherein the first processor is further configured to control the first transceiver to receive a route update request sent by the first bare metal server when determining a target bare metal server for performing route update according to the obtained changed first IP address segment and a corresponding second IP address segment stored in each bare metal server; judging whether an IP address field change notification sent by a cloud management platform aiming at an IP address field occupied by an Overlay network and/or an Underlay network is acquired, wherein the IP address field change notification carries information of the first IP address field; if so, judging whether a corresponding second IP address field stored aiming at the first bare metal server corresponds to the first IP address field; and if so, determining the first bare metal server as a target bare metal server.
19. The electronic device of claim 18, wherein the first transceiver receiving a route update request sent by a first bare metal server comprises:
receiving a route updating request sent by the first bare metal server according to a preset period; alternatively, the first and second electrodes may be,
and receiving a routing update request sent by the first bare metal server according to a control message protocol ICMP notification, wherein when the cloud platform detects that the first bare metal server sends service traffic to an error gateway, the cloud platform sends the ICMP notification to the first bare metal server.
20. An electronic device, comprising a second processor, a second memory, and a second transceiver;
the second transceiver is configured to receive a first routing information table sent by a cloud platform under the control of the second processor, where the first routing information table is a first IP address segment that is carried in an IP address segment change notification sent by the cloud platform for an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network and is changed and a target bare metal server that determines to perform routing update for a second IP address segment corresponding to each bare metal server and is stored in each bare metal server, where the first IP address segment is an IP address segment occupied by the Overlay network and/or the bottom-layer Underlay network, obtains tenant information of the target bare metal server, and is generated according to the first IP address segment and the tenant information;
the second processor is used for reading the program in the second memory and executing the following processes: and updating the locally stored routing information table according to the first routing information table.
21. The electronic device of claim 20, wherein the second processor is further configured to control the second transceiver to send response information of update completion to the cloud platform after the update of the locally stored routing information table is completed according to the first routing information table.
22. The electronic device of claim 20, wherein the second processor is further configured to control the second transceiver to send a route update request to a cloud platform prior to receiving the first routing information table sent by the cloud platform.
23. The electronic device of claim 22, wherein the second transceiver to send a route update request to the cloud platform comprises:
a route updating request is sent according to a preset period; alternatively, the first and second electrodes may be,
receiving a control message protocol ICMP notification sent by the cloud platform, wherein the ICMP notification is sent when the cloud platform detects that a metal server sends service traffic to an error gateway;
and sending a route updating request according to the ICMP notification.
24. The electronic device of claim 20, wherein the second processor updates its stored routing information table based on the first routing information table by at least one of: adding corresponding routing entries to a locally stored routing information table according to the first routing information table; deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and modifying the corresponding routing entry for the locally stored routing information table according to the first routing information table.
25. A bare metal server routing updating device is applied to a cloud platform, and is characterized by comprising:
the determining module is used for determining a target bare metal server for performing routing update according to a first changed IP address segment carried in an IP address segment change notification sent by the acquired cloud management platform for an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network and a second corresponding IP address segment stored by each bare metal server, wherein the first IP address segment is the IP address segment occupied by the Overlay network and/or the bottom-layer Underlay network;
the acquisition module is used for acquiring tenant information of the target bare metal server;
and the generation and sending module is used for generating a first routing information table according to the first IP address field and the tenant information, and sending the first routing information table to the target bare metal server so as to update the stored routing information table.
26. A bare metal server route updating device is applied to a bare metal server, and is characterized by comprising:
the second receiving module is used for receiving a first routing information table sent by a cloud platform, wherein the first routing information table is a first IP address segment which is carried by the cloud platform and changes in an IP address segment change notification sent by the cloud platform aiming at an IP address segment occupied by an Overlay network and/or a bottom-layer Underlay network, and a target bare metal server for performing routing update is determined aiming at a corresponding second IP address segment stored by each bare metal server, the first IP address segment is the IP address segment occupied by the Overlay network and/or the bottom-layer Underlay network, tenant information of the target bare metal server is obtained, and the first routing information table is generated according to the first IP address segment and the tenant information;
and the updating module is used for updating the locally stored routing information table according to the first routing information table.
27. An electronic device, characterized in that the electronic device comprises: the system comprises a third processor, a first communication interface, a third memory and a first communication bus, wherein the third processor, the first communication interface and the third memory complete communication with each other through the first communication bus;
the third memory has stored therein a computer program which, when executed by the third processor, causes the third processor to carry out the steps of the method according to any one of claims 1 to 7.
28. An electronic device, characterized in that the electronic device comprises: the fourth processor, the second communication interface and the fourth memory complete communication with each other through the second communication bus;
the fourth memory has stored therein a computer program which, when executed by the fourth processor, causes the fourth processor to carry out the steps of the method according to any one of claims 8-12.
29. A computer-readable storage medium, characterized in that it stores a computer program executable by an electronic device, which program, when run on the electronic device, causes the electronic device to carry out the steps of the method according to any one of claims 1-7.
30. A computer-readable storage medium, characterized in that it stores a computer program executable by an electronic device, which program, when run on the electronic device, causes the electronic device to carry out the steps of the method according to any one of claims 8-12.
CN201810296463.5A 2018-03-30 2018-03-30 Bare metal server route updating method and device, electronic equipment and medium Active CN110324248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810296463.5A CN110324248B (en) 2018-03-30 2018-03-30 Bare metal server route updating method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810296463.5A CN110324248B (en) 2018-03-30 2018-03-30 Bare metal server route updating method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN110324248A CN110324248A (en) 2019-10-11
CN110324248B true CN110324248B (en) 2021-07-30

Family

ID=68112472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810296463.5A Active CN110324248B (en) 2018-03-30 2018-03-30 Bare metal server route updating method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110324248B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112036828B (en) * 2020-08-28 2022-06-07 北京浪潮数据技术有限公司 Bare metal management method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363170A (en) * 2014-11-25 2015-02-18 杭州华三通信技术有限公司 Data flow forwarding method and device in software defined network (SDN)
CN104813614A (en) * 2012-12-03 2015-07-29 惠普发展公司,有限责任合伙企业 Asynchronous Framework For Management Of IAAS
WO2016199005A1 (en) * 2015-06-12 2016-12-15 Telefonaktiebolaget Lm Ericsson (Publ) Multipath forwarding in an overlay network
CN106803796A (en) * 2017-03-05 2017-06-06 北京工业大学 Multi-tenant network topology reconstructing method based on cloud platform
CN107135134A (en) * 2017-03-29 2017-09-05 广东网金控股股份有限公司 Private network cut-in method and system based on virtual switch and SDN technologies
CN107615716A (en) * 2015-05-22 2018-01-19 国际商业机器公司 Multi-tenant for cloud networking perceives DHCP(DHCP)Mechanism

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282241B (en) * 2008-05-04 2011-04-13 中国科学院计算技术研究所 System for real time processing network route topological in autonomy system
US8526331B2 (en) * 2008-05-23 2013-09-03 Telefonaktiebolaget L M Ericsson (Publ) Maintaining distributed hash tables in an overlay network
CN103384217B (en) * 2012-05-02 2016-09-07 华为技术有限公司 A kind of state switching method and routing bridge
CN103428090B (en) * 2012-05-15 2017-10-31 深圳中兴力维技术有限公司 A kind of dynamic routing method, routing server and system for heterogeneous network
CN103326941B (en) * 2013-05-24 2016-07-06 武汉烽火网络有限责任公司 The router fast forwarding method to IP message
US9471356B2 (en) * 2013-06-12 2016-10-18 Dell Products L.P. Systems and methods for providing VLAN-independent gateways in a network virtualization overlay implementation
US9438506B2 (en) * 2013-12-11 2016-09-06 Amazon Technologies, Inc. Identity and access management-based access control in virtual networks
US9590902B2 (en) * 2014-11-10 2017-03-07 Juniper Networks, Inc. Signaling aliasing capability in data centers
CN104767649B (en) * 2015-04-30 2018-06-15 新华三技术有限公司 Dispose the method and device of bare metal server
US9800497B2 (en) * 2015-05-27 2017-10-24 Cisco Technology, Inc. Operations, administration and management (OAM) in overlay data center environments
CN105897465B (en) * 2016-03-30 2019-04-05 新华三技术有限公司 Equipment configuration method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104813614A (en) * 2012-12-03 2015-07-29 惠普发展公司,有限责任合伙企业 Asynchronous Framework For Management Of IAAS
CN104363170A (en) * 2014-11-25 2015-02-18 杭州华三通信技术有限公司 Data flow forwarding method and device in software defined network (SDN)
CN107615716A (en) * 2015-05-22 2018-01-19 国际商业机器公司 Multi-tenant for cloud networking perceives DHCP(DHCP)Mechanism
WO2016199005A1 (en) * 2015-06-12 2016-12-15 Telefonaktiebolaget Lm Ericsson (Publ) Multipath forwarding in an overlay network
CN106803796A (en) * 2017-03-05 2017-06-06 北京工业大学 Multi-tenant network topology reconstructing method based on cloud platform
CN107135134A (en) * 2017-03-29 2017-09-05 广东网金控股股份有限公司 Private network cut-in method and system based on virtual switch and SDN technologies

Also Published As

Publication number Publication date
CN110324248A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
US11258667B2 (en) Network management method and related device
US20220377045A1 (en) Network virtualization of containers in computing systems
CN107809367B (en) Device online method of SDN (software defined network), SDN controller and network device
CN105099789A (en) Network element uploading method and equipment
CN109981493B (en) Method and device for configuring virtual machine network
CN103607430A (en) Network processing method and system, and network control center
CN106031116A (en) Method, apparatus and system for associating NS with VNF
CN109995639B (en) Data transmission method, device, switch and storage medium
CN110633175B (en) Multi-computer-room data processing method based on micro-service, electronic equipment and storage medium
CN110808857B (en) Network intercommunication method, device, equipment and storage medium for realizing Kubernetes cluster
US9674076B2 (en) Set up of direct mapped routers located across independently managed compute and storage networks
CN114095430B (en) Access message processing method, system and working node
US10439882B2 (en) Virtualized networking application and infrastructure
EP3310011A1 (en) Load sharing method and related apparatus
CN112035216A (en) Communication method for Kubernetes cluster network and OpenStack network
US11799753B2 (en) Dynamic discovery of service nodes in a network
CN110661641A (en) Virtual network function VNF deployment method and device
CN111556110A (en) Automatic adaptation method for different physical service networks of private cloud system
CN111147312B (en) Resource allocation management method and device, resource allocation cache management method and device, and allocation management system
CN110324248B (en) Bare metal server route updating method and device, electronic equipment and medium
US10243920B1 (en) Internet protocol address reassignment between virtual machine instances
CN110391987A (en) Method, equipment and the computer-readable medium of specified transponder are selected from provider edge equipment set
US11228500B2 (en) Tool for network performance design and configuration
CN115225634B (en) Data forwarding method, device and computer program product under virtual network
JP6243015B2 (en) System and method for virtual network entity (VNE) based on network operation support system (NOSS)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant