











技术领域technical field
本发明涉及云计算领域,尤其涉及一种裸金属服务器路由更新方法、装置、电子设备及介质。The present invention relates to the field of cloud computing, and in particular, to a method, device, electronic device and medium for updating a route of a bare metal server.
背景技术Background technique
常见的云计算是基于物理资源共享的虚拟机方式实现的。但是随着技术的发展,越来越多的应用需要高性能计算平台,裸金属服务器就是其中的一种,其中,当裸金属服务器作为高性能计算平台时,还具备低延时、租户独占等优点。Common cloud computing is based on virtual machines that share physical resources. However, with the development of technology, more and more applications require high-performance computing platforms, and bare metal servers are one of them. Among them, when bare metal servers are used as high-performance computing platforms, they also have low latency and tenant exclusiveness. advantage.
覆盖层Overlay网络,为运行于传统网络之上,采用传输层封装技术完全隔离于底层网络的一种新型网络,例如虚拟可扩展局域网VxLAN,通用路由封装的虚拟化网络NVGER,通用网络封装的虚拟化网络GENEVE等网络。其中,Overlay网络最大的特征是可以选择任意的子网地址,不同的租户可以使用相同的IP地址。The overlay network is a new type of network that runs on the traditional network and uses the transport layer encapsulation technology to completely isolate the underlying network, such as virtual scalable local area network VxLAN, virtualized network NVGER encapsulated by general routing, and virtual Networks such as the GENEVE network. Among them, the biggest feature of the overlay network is that any subnet address can be selected, and different tenants can use the same IP address.
底层Underlay网络,为承载Overlay网络的网络,即传统意义上基于二层交换,三层路由转发技术的网络。The underlying Underlay network is the network that carries the Overlay network, that is, the network based on Layer 2 switching and Layer 3 routing and forwarding technology in the traditional sense.
其中,为满足用户访问不同业务的需求,因此需要裸金属服务器同时连接Underlay网络与Overlay网络。然而虚拟网络管理组件Neutron仅实现了对Overlay网络的管理,对于Underlay网络,Neutron很难进行管理。因此当裸金属服务器需要同时访问Underlay网络与Overlay网络上的服务时,当租户创建网络时,容易出现输入的IP地址段与Underlay网络的地址冲突。除此之外,对于高级网络功能如负载均衡、源地址转换SNAT、目的地址转换DNAT等,需要预留部分IP地址段,区别于裸金属服务器内部的IP地址,以免冲突。Among them, in order to meet the needs of users to access different services, the bare metal server needs to be connected to the Underlay network and the Overlay network at the same time. However, the virtual network management component Neutron only manages the overlay network, and it is difficult for Neutron to manage the underlay network. Therefore, when the bare metal server needs to access the services on the Underlay network and the Overlay network at the same time, when the tenant creates the network, the input IP address segment is prone to conflict 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., it is necessary to reserve some IP address segments, which are different from the IP addresses inside the bare metal server to avoid conflicts.
针对上述Underlay与Overlay两类网络的地址不能冲突,且路由没有干扰的问题,现有的解决方法是通过云管平台配置白名单的方式来维护所有不能被租户虚拟网络使用的IP地址段。即在裸金属服务器内部同时存在Underlay网络和Overlay网络的情况下,为了避免IP地址或路由冲突,需要提前确定Underlay网络和Overlay网络所占用的IP地址段及预留网络地址段。然后,在云管平台上屏蔽这些网络地址段,让用户在创建租户网络时无法使用与上述规划相冲突的网络地址段。最后,当裸金属服务器创建完毕后,需要在其内部通过手动或预置脚本的方式配置路由信息。Aiming at the problem that the addresses of the above-mentioned Underlay and Overlay networks cannot conflict and the routes do not interfere, the existing solution is to configure a whitelist on the cloud management platform to maintain all IP address segments that cannot be used by the tenant virtual network. That is, when both the Underlay network and the Overlay network exist in the bare metal server, to avoid IP address or route conflicts, it is necessary to determine the IP address segment and the reserved network address segment occupied by the Underlay network and the Overlay network in advance. Then, shield these network address segments on the cloud management platform, so that users cannot use network address segments that conflict with the above plan when creating a tenant network. Finally, after the bare metal server is created, routing information needs to be configured in it manually or by pre-configured scripts.
由于云管平台并未对裸金属服务器内部已经提前确定的Underlay网络和Overlay网络所占用的IP地址段及预留网络地址段进行统一管理,因此当提前确定或预留网络地址段需要变更时,则对于已经创建好的裸金属服务器,需要逐台排查并修改其路由信息,以确保新的路由信息能够在其内部生效。Since the cloud management platform does not uniformly manage the IP address segments and reserved network address segments occupied by the Underlay network and Overlay network that have been determined in advance within the bare metal server, when the network address segment determined or reserved in advance needs to be changed, For the already created BMS, you need to check and modify the routing information one by one to ensure that the new routing information can take effect inside it.
因此,现有技术中存在当网络地址发生变动时,需要耗费大量的精力对已经创建好的裸金属服务器进行路由更新的问题。Therefore, in the prior art, when the network address changes, it takes a lot of energy to update the route of the already created bare metal server.
发明内容SUMMARY OF THE INVENTION
本发明提供了一种裸金属服务器路由更新方法、装置、电子设备及介质,用以解决现有技术在存在的当裸金属服务器上的网络地址变动时,需要耗费大量的精力对已经创建好的裸金属服务器进行路由更新的问题。The present invention provides a method, device, electronic device and medium for updating the route of a bare metal server, so as to solve the problem that when the network address on the bare metal server changes in the prior art, it needs to spend a lot of energy to update the created The problem of routing updates on bare metal servers.
为解决上述技术问题,依据本发明的一个方面,提供了一种裸金属服务器路由更新方法,应用于云平台,所述方法包括:In order to solve the above-mentioned technical problems, according to one aspect of the present invention, a method for updating a route of a bare metal server is provided, which is applied to a cloud platform, and the method includes:
根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器,其中所述第一IP地址段为覆盖层Overlay网络和/或底层Underlay网络所占用的IP地址段;According to the obtained first IP address segment that has changed, and the corresponding second IP address segment saved for each bare metal server, determine the target bare metal server for routing update, wherein the first IP address segment is an overlay The IP address segment occupied by the layer Overlay network and/or the underlying Underlay network;
获取所述目标裸金属服务器的租户信息;Obtain the tenant information of the target bare metal server;
根据所述第一IP地址段及所述租户信息,生成第一路由信息表,并将所述第一路由信息表发送给所述目标裸金属服务器。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.
通过上述描述可知,在本发明中,由云平台对裸金属服务器上的Overlay网络和/或Underlay网络所占用的IP地址段以及该裸金属服务器的路由表进行统一保存和管理。因此当裸金属服务器上的网络地址发生变化时,云平台根据发生变化的IP地址段即可确定出需要进行路由变更的目标裸金属服务器,然后根据接入目标裸金属服务器的租户信息,自动生成第一路由信息表,并将第一路由信息表下发给目标裸金属服务器,由目标裸金属服务器根据第一路由信息表进行更新。因此,无需人工耗费大量的精力对已经创建好的裸金属服务器进行路由更新,可节省人工调整路由的工作量,大大提升对裸金属服务器进行路由更新的工作效率As can be seen from the above description, in the present invention, the cloud platform uniformly saves 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. Therefore, when the network address on the bare metal server changes, the cloud platform can determine the target bare metal server that needs to be routed according to the changed IP address segment, and then automatically generate the target bare metal server according to the tenant information accessing the target bare metal server. The first routing information table is delivered to the target bare metal server, and the target bare metal server updates according to the first routing information table. Therefore, there is no need to manually spend a lot of energy to update the route of the already created bare metal server, which can save the workload of manually adjusting the route and greatly improve the work efficiency of the route update of the bare metal server.
具体地,所述方法还包括:Specifically, the method further includes:
接收所述目标裸金属服务器在根据所述第一路由信息表,对所述目标裸金属服务器保存的路由信息表更新完成后发送的响应信息。Receive response information sent by the target bare metal server after updating the routing information table saved by the target bare metal server according to the first routing information table.
通过接收目标裸金属服务器发送的响应信息,因此可确认目标裸金属服务器已进行路由更新,便于云平台对目标裸金属服务器的最新路由信息进行保存。By receiving the response information sent by the target bare metal server, it can be confirmed that the target bare metal server has updated the route, which is convenient for the cloud platform to save the latest route information of the target bare metal server.
具体地,所述根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器包括:Specifically, according to the obtained changed first IP address segment and the corresponding second IP address segment saved for each bare metal server, determining the target bare metal server for routing update includes:
获取云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;Obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the information of the first IP address segment;
根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段,将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器。According to the first IP address segment and the corresponding second IP address segment stored for each bare metal server, determine a target second IP address segment corresponding to the first IP address segment, and assign the target second IP address segment to the target second IP address segment. The bare metal server corresponding to the second IP address segment is used as the target bare metal server.
此处,云平台接收到运管平台发送的IP地址段变更通知后,即可根据IP地址段变更通知主动确认需要进行路由更新的目标裸金属服务器,实现了对裸金属服务器路由信息的自动更新,无需在进行逐台排查。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 updated according to the IP address segment change notification, thus realizing the automatic update of the routing information of the bare metal server. , there is no need to check each device.
具体地,所述根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段包括:Specifically, determining the 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 includes the following steps: :
根据所述第二IP地址段中包括的针对全部裸金属服务器的通用IP地址段,判断与所述第一IP地址段对应的地址段是否为所述通用IP地址段;According to the general IP address segment for all bare metal servers included in the second IP address segment, determine whether the address segment corresponding to the first IP address segment is the general IP address segment;
如果是,将所述通用IP地址段作为目标第二IP地址段;If yes, use the general IP address segment as the target second IP address segment;
如果否,判断出与所述第一IP地址段对应的特定IP地址段,并将所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段。If not, determine the specific IP address segment corresponding to the first IP address segment, and use the specific IP address segment corresponding to the first IP address segment as the target second IP address segment.
具体地,所述将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器包括:Specifically, using the bare metal server corresponding to the target second IP address segment as the target bare metal server includes:
当将所述通用IP地址段作为目标第二IP地址段时,确定所述目标裸金属服务器为全部裸金属服务器;When the general IP address segment is used as the target second IP address segment, it is determined that the target bare metal server is all bare metal servers;
当将与所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段时,确定所述目标裸金属服务器为该对应的特定IP地址段的裸金属服务器。When the specific IP address segment corresponding to the first IP address segment is used as the target second IP address segment, it is determined that the target bare metal server is the bare metal server of the corresponding specific IP address segment.
由于Overlay网络和/或Underlay网络所占用的IP地址段中包括通用IP地址段和特定IP地址段,通过判断与第一IP地址段对应的是通用IP地址段还是特定IP地址段,可较为便捷地判断出目标裸金属服务器。Since the IP address segment occupied by the Overlay network and/or the Underlay network includes a general IP address segment and a specific IP address segment, it is more convenient to determine whether the first IP address segment corresponds to the general IP address segment or the specific IP address segment. to determine the target bare metal server.
具体地,所述根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器还包括:Specifically, according to the obtained changed first IP address segment and the corresponding second IP address segment saved for each bare metal server, determining the target bare metal server for routing update further includes:
接收第一裸金属服务器发送的路由更新请求;receiving a routing update request sent by the first bare metal server;
判断是否获取到云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;Determine whether to obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the information of the first IP address segment;
如果是,判断针对所述第一裸金属服务器保存的其对应的第二IP地址段,是否与所述第一IP地址段相对应;If so, determine whether the corresponding second IP address segment stored for the first bare metal server corresponds to the first IP address segment;
如果是,将所述第一裸金属服务器确定为目标裸金属服务器。If yes, determine the first bare metal server as the target bare metal server.
具体地,所述接收第一裸金属服务器发送的路由更新请求包括:Specifically, the receiving the routing update request sent by the first bare metal server includes:
接收所述第一裸金属服务器根据预设周期发送的路由更新请求;或者,receiving a routing update request sent by the first bare metal server according to a preset period; or,
接收所述第一裸金属服务器根据控制报文协议ICMP通知发送的路由更新请求,其中,当所述云平台检测到所述第一裸金属服务器将业务流量发送到错误网关时,所述云平台向所述第一裸金属服务器发送所述ICMP通知。Receive 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 incorrect gateway, the cloud platform Send the ICMP notification to the first bare metal server.
此处,云平台接收裸金属服务器发送的路由更新请求,为确定裸金属服务器是否需要进行路由更新,因此需要主动判断是否接收到云管平台发送的IP地址段变更通知,如果是,则确定出目标裸金属服务器。因此该种触发裸金属服务器路由更新的方式更加智能,并且可以适用于不同云环境。Here, the cloud platform receives the routing update request sent by the bare metal server. In order to determine whether the bare metal server needs to perform routing update, it needs to actively determine whether it has received the IP address segment change notification sent by the cloud management platform. Target bare metal server. Therefore, this method of triggering the routing update of the bare metal server is more intelligent, and can be applied to different cloud environments.
依据本发明的另一个方面,还提供了一种裸金属服务器路由更新方法,应用于裸金属服务器,所述方法包括:According to another aspect of the present invention, a method for updating a route of a bare metal server is also provided, which is applied to a bare metal server, and the method includes:
接收云平台发送的第一路由信息表;receiving the first routing information table sent by the cloud platform;
根据所述第一路由信息表,对本地保存的路由信息表进行更新。According to the first routing information table, the locally stored routing information table is updated.
由于裸金属服务器上配置有路由配置agent,因此裸金属服务器在接收到云平台发送的第一路由信息以后,可自动进行路由更新,无需人工配置,节省了人工调整路由的工作量,从而提升了自动化水平,降低了同步路由信息的代价。Since a routing configuration agent is configured on the bare metal server, after receiving the first routing information sent by the cloud platform, the bare metal server can automatically update the routing without manual configuration, which saves the workload of manual routing adjustment, thereby improving the The level of automation reduces the cost of synchronizing routing information.
具体地,所述方法还包括:Specifically, the method further includes:
根据所述第一路由信息表,对本地保存的路由信息表更新完成后,向所述云平台发送更新完成的响应信息。According to the first routing information table, after the locally stored routing information table is updated, the response information of the update completion is sent to the cloud platform.
通过向云平台发送响应信息,可确认该裸金属服务器本地保存的路由信息表已经与云平台上保存的该裸金属服务器上的路由信息表保持一致,即裸金属服务器已更新完毕。By sending the response information to the cloud platform, it can be confirmed that the routing information table saved locally on the bare metal server is consistent with the routing information table on the bare metal server saved on the cloud platform, that is, the bare metal server has been updated.
具体地,所述接收云平台发送的第一路由信息表之前,所述方法还包括:Specifically, before receiving the first routing information table sent by the cloud platform, the method further includes:
向所述云平台发送路由更新请求。Send a routing update request to the cloud platform.
具体地,所述向所述云平台发送路由更新请求包括:Specifically, the sending a routing update request to the cloud platform includes:
根据预设周期发送的路由更新请求;或者,A route update request sent according to a preset period; or,
接收所述云平台发送的控制报文协议ICMP通知,其中所述ICMP通知为所述云平台检测到所述金属服务器将业务流量发送到错误网关时发送的;receiving a control message protocol ICMP notification sent by the cloud platform, where the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an incorrect gateway;
根据所述ICMP通知发送路由更新请求。The route update request is sent according to the ICMP notification.
即裸金属服务器可向云平台发送路由更新请求,对其本地保存的路由表信息进行主动变更,实现了裸金属服务器上的自动化更新,使得触发裸金属服务器路由更新的方式更加智能,并且可以适用于不同云环境。That is, the bare metal server can send a routing update request to the cloud platform, and actively change the routing table information stored locally, which realizes the automatic update on the bare metal server, and makes the method of triggering the routing update of the bare metal server more intelligent and applicable. in different cloud environments.
具体地,所述根据所述第一路由信息表,对其保存的路由信息表进行更新包括以下至少一种:Specifically, updating the stored routing information table according to the first routing information table includes at least one of the following:
根据所述第一路由信息表,对本地保存的路由信息表新增相应的路由条目;According to the first routing information table, a corresponding routing entry is added to the locally stored routing information table;
根据所述第一路由信息表,对本地保存的路由信息表删除相应的路由条目;和deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and
根据所述第一路由信息表,对本地保存的路由信息表修改相应的路由条目。According to the first routing information table, the corresponding routing entry is modified in the locally stored routing information table.
由于发生变更的IP地址段可以是对原IP地址段的删除、扩大或者修改,因此,路由信息表也需进行相应的变更,以保证和接入的租户网络能够成功的访问相应的网络,避免了裸金属服务器将业务流量发送到错误网关。Since the changed IP address segment can be the deletion, expansion or modification of the original IP address segment, the routing information table also needs to be changed accordingly to ensure that the connected tenant network can successfully access the corresponding network and avoid A bare metal server sends traffic to the wrong gateway.
依据本发明实施例的另一个方面,还提供了一种电子设备,所述电子设备包括:第一处理器、第一存储器和第一收发机;According to another aspect of the embodiments of the present invention, there is also provided an electronic device, the electronic device includes: a first processor, a first memory, and a first transceiver;
所述第一收发机,用于在所述第一处理器的控制下,获取发生变化的第一IP地址段;the first transceiver, configured to acquire the changed first IP address segment under the control of the first processor;
所述第一处理器,用于读取所述第一存储器中的程序,执行下列过程:根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器,其中所述第一IP地址段为覆盖层Overlay网络和/或底层Underlay网络所占用的IP地址段;获取所述目标裸金属服务器的租户信息;根据所述第一IP地址段及所述租户信息,生成第一路由信息表,并控制所述第一收发机将所述第一路由信息表发送给所述目标裸金属服务器,使其对保存的路由信息表进行更新。The first processor is configured to read the program in the first memory, and perform the following process: according to the acquired first IP address segment that has changed, and the corresponding second IP address segment saved for each bare metal server. IP address segment to determine the target bare metal server for routing update, wherein the first IP address segment is the IP address segment occupied by the overlay overlay network and/or the underlying Underlay network; obtain the tenant information of the target bare metal server ; According to the first IP address segment and the tenant information, generate a first routing information table, and control the first transceiver to send the first routing information table to the target bare metal server, so that the The saved routing information table is updated.
具体地,所述第一处理器,还用于控制所述第一收发机接收所述目标裸金属服务器在根据所述第一路由信息表,对所述目标裸金属服务器保存的路由信息表更新完成后发送的响应信息。Specifically, the first processor is further configured to control the first transceiver to receive, according to the first routing information table, the target bare metal server updating the routing information table saved by the target bare metal server Response message sent after completion.
具体地,所述第一处理器,还用于根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器时,获取云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段,将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器。Specifically, the first processor is further configured to determine, according to the acquired first IP address segment that has changed, and the corresponding second IP address segment stored for each bare metal server, the target bare metal server for routing update. When the metal server is used, obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the information of 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, determine a target second IP address segment corresponding to the first IP address segment, and assign the target second IP address segment to the target second IP address segment. The bare metal server corresponding to the second IP address segment is used as the target bare metal server.
具体地,所述第一处理器,还用于根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段时,根据所述第二IP地址段中包括的针对全部裸金属服务器的通用IP地址段,判断与所述第一IP地址段对应的地址段是否为所述通用IP地址段;如果是,将所述通用IP地址段作为目标第二IP地址段;如果否,判断出与所述第一IP地址段对应的特定IP地址段,并将所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段。Specifically, the first processor is further configured to determine, according to the first IP address segment and the corresponding second IP address segment saved for each bare metal server, the segment corresponding to the first IP address segment When the target second IP address segment is the target second IP address segment, according to the general IP address segment for all bare metal servers included in the second IP address segment, determine whether the address segment corresponding to the first IP address segment is the general IP address segment address segment; if yes, use the general IP address segment as the target second IP address segment; if not, determine the specific IP address segment corresponding to the first IP address segment, and use the first IP address segment The corresponding specific IP address segment is used as the target second IP address segment.
具体地,所述第一处理器,还用于将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器时,当将所述通用IP地址段作为目标第二IP地址段时,确定所述目标裸金属服务器为全部裸金属服务器;当将与所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段时,确定所述目标裸金属服务器为该对应的特定IP地址段的裸金属服务器。Specifically, the first processor is further configured to use the bare metal server corresponding to the target second IP address segment as the target bare metal server, and when using the general IP address segment as the target second IP address segment , determine that the target bare metal server is all bare metal servers; when the specific IP address segment corresponding to the first IP address segment is used as the target second IP address segment, determine that the target bare metal server is the corresponding Bare metal servers for a specific IP address range.
具体地,所述第一处理器,还用于根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器时,控制所述第一收发机接收第一裸金属服务器发送的路由更新请求;判断是否获取到云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;如果是,判断针对所述第一裸金属服务器保存的其对应的第二IP地址段,是否与所述第一IP地址段相对应;如果是,将所述第一裸金属服务器确定为目标裸金属服务器。Specifically, the first processor is further configured to determine, according to the acquired first IP address segment that has changed, and the corresponding second IP address segment stored for each bare metal server, the target bare metal server for routing update. When the metal server is used, control the first transceiver to receive the routing update request sent by the first bare metal server; determine whether to obtain the IP address segment change sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network notification, wherein the IP address segment change notification carries the information of the first IP address segment; if so, determine whether the corresponding second IP address segment saved for the first bare metal server is the same as the first IP address segment. corresponding to an IP address segment; if yes, determine the first bare metal server as the target bare metal server.
具体地,所述第一收发机接收第一裸金属服务器发送的路由更新请求包括:Specifically, the first transceiver receiving the route update request sent by the first bare metal server includes:
接收所述第一裸金属服务器根据预设周期发送的路由更新请求;或者,receiving a routing update request sent by the first bare metal server according to a preset period; or,
接收所述第一裸金属服务器根据控制报文协议ICMP通知发送的路由更新请求,其中,当所述云平台检测到所述第一裸金属服务器将业务流量发送到错误网关时,所述云平台向所述第一裸金属服务器发送所述ICMP通知。Receive 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 incorrect gateway, the cloud platform Send the ICMP notification to the first bare metal server.
依据本发明实施例的另一个方面,还提供了一种电子设备,所述电子设备包括第二处理器、第二存储器和第二收发机;According to another aspect of the embodiments of the present invention, there is also provided an electronic device, the electronic device includes a second processor, a second memory and a second transceiver;
所述第二收发机,用于在所述第二处理器的控制下,接收云平台发送的第一路由信息表;the second transceiver, configured to receive the first routing information table sent by the cloud platform under the control of the second processor;
所述第二处理器,用于读取所述第二存储器中的程序,执行以下过程:根据所述第一路由信息表,对本地保存的路由信息表进行更新。The second processor is configured to read the program in the second memory, and perform the following process: according to the first routing information table, update the locally stored routing information table.
具体地,所述第二处理器,还用于根据所述第一路由信息表,对本地保存的路由信息表更新完成后,控制所述第二收发机向所述云平台发送更新完成的响应信息。Specifically, the second processor is further configured to, according to the first routing information table, control the second transceiver to send an update completion response to the cloud platform after the locally saved routing information table is updated. information.
具体地,所述第二处理器,还用于在接收云平台发送的第一路由信息表之前,控制所述第二收发机向所述云平台发送路由更新请求。Specifically, the second processor is further configured to control the second transceiver to send a routing update request to the cloud platform before receiving the first routing information table sent by the cloud platform.
具体地,所述第二收发机向所述云平台发送路由更新请求包括:Specifically, the routing update request sent by the second transceiver to the cloud platform includes:
根据预设周期发送的路由更新请求;或者,A route update request sent according to a preset period; or,
接收所述云平台发送的控制报文协议ICMP通知,其中所述ICMP通知为所述云平台检测到所述金属服务器将业务流量发送到错误网关时发送的;receiving a control message protocol ICMP notification sent by the cloud platform, where the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an incorrect gateway;
根据所述ICMP通知发送路由更新请求。The route update request is sent according to the ICMP notification.
具体地,所述第二处理器根据所述第一路由信息表,对其保存的路由信息表进行更新包括以下至少一种:根据所述第一路由信息表,对本地保存的路由信息表新增相应的路由条目;根据所述第一路由信息表,对本地保存的路由信息表删除相应的路由条目;和根据所述第一路由信息表,对本地保存的路由信息表修改相应的路由条目。Specifically, updating the routing information table stored in the second processor according to the first routing information table includes at least one of the following: updating the routing information table stored locally according to the first routing information table. adding a corresponding routing entry; according to the first routing information table, deleting the corresponding routing entry in the locally stored routing information table; and modifying the corresponding routing entry in the locally stored routing information table according to the first routing information table .
依据本发明实施例的另一个方面,还提供了一种裸金属服务器路由更新装置,应用于云平台,所述装置包括:According to another aspect of the embodiments of the present invention, a bare metal server routing update device is also provided, which is applied to a cloud platform, and the device includes:
确定模块,用于根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器,其中所述第一IP地址段为覆盖层Overlay网络和/或底层Underlay网络所占用的IP地址段;The determining module is configured to determine the target bare metal server for routing update according to the obtained first IP address segment that has changed and the corresponding second IP address segment saved for each bare metal server, wherein the first The IP address segment is the IP address segment occupied by the overlay network and/or the underlying Underlay network;
获取模块,用于获取所述目标裸金属服务器的租户信息;an obtaining module, used to obtain the tenant information of the target bare metal server;
生成发送模块,用于根据所述第一IP地址段及所述租户信息,生成第一路由信息表,并将所述第一路由信息表发送给所述目标裸金属服务器,使其对保存的路由信息表进行更新。A generating and sending module is 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, so that the stored The routing information table is updated.
依据本发明实施例的另一个方面,还提供了一种裸金属服务器路由更新装置,应用于裸金属服务器,所述装置包括:According to another aspect of the embodiments of the present invention, there is also provided an apparatus for updating a route for a bare metal server, which is applied to a bare metal server, and the apparatus includes:
第二接收模块,用于接收云平台发送的第一路由信息表;The second receiving module is configured to receive the first routing information table sent by the cloud platform;
更新模块,用于根据所述第一路由信息表,对本地保存的路由信息表进行更新。The updating module is configured to update the locally stored routing information table according to the first routing information table.
依据本发明实施例的另一个方面,还提供了一种电子设备,所述电子设备包括:第三处理器、第一通信接口、第三存储器和第一通信总线,其中,第三处理器、第一通信接口、第三存储器通过第一通信总线完成互相间的通信;According to another aspect of the embodiments of the present invention, an electronic device is also provided, the electronic device includes: 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 the communication with each other through the first communication bus;
所述第三存储器中存储有计算机程序,当所述程序被所述第三处理器执行时,使得所述第三处理器执行上述方法的步骤。A computer program is stored in the third memory, and when the program is executed by the third processor, the third processor causes the third processor to perform the steps of the above method.
依据本发明实施例的另一个方面,还提供了一种电子设备,所述电子设备包括:第四处理器、第二通信接口、第四存储器和第二通信总线,其中,第四处理器、第二通信接口、第四存储器通过第二通信总线完成互相间的通信;According to another aspect of the embodiments of the present invention, there is also provided an electronic device, the electronic device includes: a fourth processor, a second communication interface, a fourth memory and a second communication bus, wherein the fourth processor, The second communication interface and the fourth memory complete the communication with each other through the second communication bus;
所述第四存储器中存储有计算机程序,当所述程序被所述第四处理器执行时,使得所述第四处理器执行上述方法的步骤。A computer program is stored in the fourth memory, and when the program is executed by the fourth processor, the fourth processor causes the fourth processor to execute the steps of the above method.
依据本发明实施例的另一个方面,还提供了一种计算机可读存储介质,其存储有可由电子设备执行的计算机程序,当所述程序在所述电子设备上运行时,使得所述电子设备执行上述方法的步骤。According to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, causes the electronic device to Perform the steps of the above method.
依据本发明实施例的另一个方面,还提供了一种计算机可读存储介质,其存储有可由电子设备执行的计算机程序,当所述程序在所述电子设备上运行时,使得所述电子设备执行上述方法的步骤。According to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, causes the electronic device to Perform the steps of the above method.
本发明的有益效果如下:The beneficial effects of the present invention are as follows:
在本发明中,提供了一种裸金属服务器路由变更方法、装置、电子设备及介质,其中,该方法包括:根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器,其中所述第一IP地址段为覆盖层Overlay网络和/或底层Underlay网络所占用的IP地址段;获取所述目标裸金属服务器的租户信息;根据所述第一IP地址段及所述租户信息,生成第一路由信息表,并将所述第一路由信息表发送给所述目标裸金属服务器。由上述可知,在本发明中,在云管平台与裸金属服务器之间增加了云平台,由云平台对裸金属服务器上的Overlay网络和/或Underlay网络所占用的IP地址段进行统一保存和管理,且由云平台生成裸金属服务器的路由信息表,并对裸金属服务器的路由信息表进行保存。当裸金属服务器上的网络地址变动时,云平台根据发生变化的IP地址段以及保存的Overlay网络和/或Underlay网络所占用的IP地址段,即可确定出需要进行路由变更的目标裸金属服务器,然后根据发生变化的IP地址段以及目标裸金属服务器上的租户信息,自动生成第一路由信息表,下发给目标裸金属服务器,由目标裸金属服务器根据第一路由信息表进行更新。与现有技术中需要通过人工对裸金属服务器进行逐台排查确定需要进行路由变更的裸金属服务器,并需要对确定出的裸金属服务器上的路由信息进行手工修改的方法相比,本发明无需人工耗费大量的精力对已经创建好的裸金属服务器进行路由更新,可节省人工调整路由的工作量,大大提升对裸金属服务器进行路由更新的工作效率,降低对裸金属服务器进行路由更新的代价。In the present invention, a method, device, electronic device and medium for changing a route of a bare metal server are provided, wherein the method includes: according to the obtained first IP address segment that has changed, and a stored IP address for each bare metal server Its corresponding second IP address segment determines the target bare metal server for routing update, wherein the first IP address segment is the IP address segment occupied by the overlay overlay network and/or the underlying Underlay network; obtain the target bare metal server; Tenant information of the metal server; 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. As can be seen from the above, in the present invention, a cloud platform is added between the cloud management platform and the bare metal server, and the cloud platform uniformly saves and stores the IP address segments occupied by the Overlay network and/or the Underlay network on the bare metal server. management, and the cloud platform generates the routing information table of the bare metal server, and saves the routing information table of the bare metal server. When the network address on the bare metal server changes, the cloud platform can determine the target bare metal server that needs to be routed according to the changed IP address segment and the saved IP address segment occupied by the overlay network and/or the underlay network. , and then automatically generate a first routing information table according to the changed IP address segment and the tenant information on the target bare metal server, and deliver it to the target bare metal server, and the target bare metal server updates according to the first routing information table. Compared with the method in the prior art, which needs to manually check the bare metal servers one by one to determine the bare metal servers that need to be changed in routing, and needs to manually modify the routing information on the determined bare metal servers, the present invention does not require Manually spends a lot of energy to update the route of the already created bare metal server, which saves the workload of manually adjusting the route, greatly improves the work efficiency of the route update for the bare metal server, and reduces the cost of the route update for the bare metal server.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明实施例中提供的裸金属服务器路由更新方法的流程图之一;1 is one of the flowcharts of a method for updating a route of a bare metal server provided in an embodiment of the present invention;
图2为本发明实施例中提供的裸金属服务器网络连接的示意图;2 is a schematic diagram of a network connection of a bare metal server provided in an embodiment of the present invention;
图3为本发明实施例中云平台对裸金属服务器路由初始化的过程示意图;3 is a schematic diagram of a process of routing initialization of a bare metal server by a cloud platform in an embodiment of the present invention;
图4为本发明实施例中云平台根据IP地址变更通知目标裸金属服务器路由更新的过程示意图;4 is a schematic diagram of a process in which a cloud platform notifies a target bare metal server of route update according to an IP address change in an embodiment of the present invention;
图5为本发明实施例中云平台根据路由跟新请求通知目标裸金属服务器路由更新的过程示意图;5 is a schematic diagram of a process in which a cloud platform notifies a target bare metal server of route update according to a route update request in an embodiment of the present invention;
图6为本发明实施例中提供的裸金属服务器路由更新方法的流程图之二;FIG. 6 is the second flowchart of the method for updating the route of the bare metal server provided in the embodiment of the present invention;
图7为本发明实施例提供的一种电子设备的示意图之一;7 is one of the schematic diagrams of an electronic device provided by an embodiment of the present invention;
图8为本发明实施例提供的一种电子设备的示意图之二;8 is the second schematic diagram of an electronic device provided by an embodiment of the present invention;
图9为本发明实施例中提供的裸金属服务器路由更新装置的结构框图之一;FIG. 9 is one of the structural block diagrams of a bare metal server routing update apparatus provided in an embodiment of the present invention;
图10为本发明实施例中提供的裸金属服务器路由更新装置的结构框图之二;FIG. 10 is the second structural block diagram of the bare metal server routing update apparatus provided in the embodiment of the present invention;
图11为本发明实施例提供的一种电子设备的示意图之三;11 is a third schematic diagram of an electronic device provided by an embodiment of the present invention;
图12为本发明实施例提供的一种电子设备的示意图之四。FIG. 12 is a fourth schematic diagram of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
为了克服现有技术中存在的当裸金属服务器上的网络地址变动时,需要人工耗费大量的精力对已经创建好的裸金属服务器进行路由更新的问题,本发明提供了一种裸金属服务器路由更新方法、装置、电子设备及介质。In order to overcome the problem existing in the prior art that when the network address on the bare metal server changes, it is necessary to manually spend a lot of energy to update the route of the already created bare metal server, the present invention provides a route update of the bare metal server. Methods, apparatus, electronic devices and media.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
实施例一:Example 1:
现有技术中,虽然云管平台可对裸金属服务器上的Underlay网络与Overlay网络进行维护,但是,云管平台并未对裸金属服务器上的Underlay网络与Overlay网络所占用的IP地址段进行统一保存和管理。因此为实现对裸金属服务器上的Underlay网络与Overlay网络所占用的IP地址段进行统一的保存和管理,本发明实施例在云管平台与裸金属服务器之间增加了云平台,由云平台对裸金属服务器上的Overlay网络和/或Underlay网络所占用的IP地址段以及裸金属服务器的路由信息表进行统一保存和管理。In the prior art, although the cloud management platform can maintain the Underlay network and the overlay network on the bare metal server, the cloud management platform does not unify the IP address segments occupied by the Underlay network and the overlay network on the bare metal server. Save and manage. Therefore, in order to achieve unified storage and management of the IP address segments occupied by the Underlay network and the Overlay network on the bare metal server, in this embodiment of the present invention, a cloud platform is added between the cloud management platform and the bare metal server, and the cloud platform controls the The IP address segment 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 are uniformly stored and managed.
因此,依据本发明实施例的一个方面,提供了一种裸金属服务器路由变更方法,本发明实施例提供的裸金属服务器路由更新方法应用于云平台,具体应用于安装有云平台的电子设备上,图1为本发明实施例中裸金属服务器路由变更方法的流程图,如图1所示,该方法包括以下步骤:Therefore, according to an aspect of an embodiment of the present invention, a method for changing a route of a bare metal server is provided. The method for updating a route of a bare metal server provided by the embodiment of the present invention is applied to a cloud platform, and is specifically applied to an electronic device installed with a cloud platform. 1 is a flowchart of a method for changing a route of a bare metal server in an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
步骤S101、根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器,其中所述第一IP地址段为覆盖层Overlay网络和/或底层Underlay网络所占用的IP地址段。Step S101, according to the obtained first IP address segment that has changed, and the corresponding second IP address segment saved for each bare metal server, determine the target bare metal server for routing update, wherein the first IP address The segment is the IP address segment occupied by the overlay network and/or the underlying Underlay network.
在本发明实施例中,由图2可知,云平台分别与云管平台以及裸金属服务器连接,所以云平台可获取到云管平台下发的关于对裸金属服务器上Overlay网络和/或Underlay网络所占用的IP地址段的网络地址规划,并对其进行保存,还可以将初始化的路由信息或者变更的路由信息下发到相应的裸金属服务器上。因此通过云平台对Overlay网络和/或Underlay网络所占用的IP地址段进行有效保存和管理,不但解决了裸金属服务器内的IP地址或路由冲突问题,而且还降低了维护Overlay网络和/或Underlay网络的复杂程度。In the embodiment of the present invention, it can be seen from FIG. 2 that the cloud platform is connected to the cloud management platform and the bare metal server respectively, so the cloud platform can obtain information about the Overlay network and/or the Underlay network on the bare metal server issued by the cloud management platform The network address planning of the occupied IP address segment is stored and the initialized routing information or the changed routing information can be delivered to the corresponding bare metal server. Therefore, the effective storage and management of the IP address segment occupied by the Overlay network and/or the Underlay network through the cloud platform not only solves the problem of IP address or routing conflicts in the bare metal server, but also reduces the maintenance of the Overlay network and/or the Underlay network. The complexity of the network.
其中,需要说明的是,一个云平台上,可接入多个裸金属服务器。而针对每个裸金属服务器,其对应的Overlay网络和/或Underlay网络所占用的IP地址段不同。因此,云平台通过将发生变化的第一IP地址段与保存的Overlay网络和/或Underlay网络所占用的IP地址段进行对比,便可确定出需要进行路由变更的裸金属服务器,无需再通过人工进行逐个排查,节省了人工更新路由的工作量。Among them, it should be noted that on one cloud platform, multiple bare metal servers can be connected. For each bare metal server, the corresponding IP address segment occupied by the Overlay network and/or the Underlay network is different. Therefore, by comparing the changed first IP address segment with the IP address segment occupied by the saved Overlay network and/or the Underlay network, the cloud platform can determine the bare metal server that needs to be routed, without the need for manual Checking one by one saves the workload of manually updating routes.
步骤S102、获取所述目标裸金属服务器的租户信息。Step S102: Obtain tenant information of the target bare metal server.
一般情况下,服务器访问网络时,采用的路由方式包括两种:默认路由和明细路由。所谓默认路由,指的是当路由表中的目的地址之间没有匹配的路由条目时选择的路由,其目的地IP和子网网段均改成0.0.0.0和0.0.0.0。所谓明细路由,指的是由用户或网络管理员手工配置的路由信息,需对其目的地IP和子网网段进行设置。例如,某一个租户网络,对应的Overlay网络的子网网段是192.168.1.0/24,网关是192.168.1.254,则云平台自动下发如表1中的路由,其中,表1中的第一行为明细路由,第2行为默认路由。Generally, when the server accesses the network, there are two routing methods: default routing and detailed routing. The so-called default route refers to the route selected when there is no matching route entry between the destination addresses in the routing table, and its destination IP and subnet segment are changed to 0.0.0.0 and 0.0.0.0. The so-called detailed routing refers to the routing information manually configured by the user or the network administrator, and the destination IP and subnet segment need to be set. For example, if a certain tenant network corresponds to the subnet segment of the overlay network is 192.168.1.0/24 and the gateway is 192.168.1.254, the cloud platform will automatically issue the routes shown in Table 1. The behavior is detailed routing, and the second behavior is the default routing.
表1Table 1
由上述可知,云平台生成的路由信息表与接入租户的网关相关,因此当云平台在确定出需要变更的目标裸金属服务器后,还应获取接入该目标裸金属服务器的租户网络的租户信息,以生成与发生变化的第一IP地址段对应的第一路由信息表。It can be seen from the above that the routing information table generated by the cloud platform is related to the gateway of the access tenant. Therefore, after the cloud platform determines the target bare metal server that needs to be changed, it should also obtain the tenant of the tenant network accessing the target bare metal server. information to generate a first routing information table corresponding to the changed first IP address segment.
步骤S103、根据所述第一IP地址段及所述租户信息,生成第一路由信息表,并将所述第一路由信息表发送给所述目标裸金属服务器。Step S103: 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.
云平台根据发生变化的第一IP地址段以及接入该目标裸金属服务器的租户网络的租户信息,按上述表1中明细路由的方式自动生成第一路由信息表,并下发给目标裸金属服务器,其中,由于裸金属服务器中配置有路由配置代理agent,因此,当目标裸金属服务器接收到云平台下发的第一路由表后,由路由配置agent根据第一路由表进行自动更新,因此无需工作人员通过手动或预置脚本的方式进行路由配置,使得裸金属服务器路有更新的过程实现了自动化,节省了人工更新路由的工作量。另外与工作人员通过手动或预置脚本的方式相比,可规避人工在路由配置过程中出现的错误,极大的提升了路由配置的效率和精确度。The cloud platform automatically generates the first routing information table according to the changed first IP address segment and the tenant information of the tenant network that accesses the target bare metal server, and sends it to the target bare metal server according to the detailed routing method in Table 1 above. The server, wherein, since the bare metal server is configured with a routing configuration agent, when the target bare metal server receives the first routing table issued by the cloud platform, the routing configuration agent will automatically update it according to the first routing table, so There is no need for staff to configure routing manually or through preset scripts, which automates the process of updating bare metal server routes and saves the workload of manually updating routing. In addition, compared with the way of manual or preset scripts, it can avoid manual errors in the routing configuration process, which greatly improves the efficiency and accuracy of routing configuration.
因此,在本发明实施例中,与现有技术相比,无需耗费大量的精力对已经创建好的裸金属服务器进行路由更新,可节省人工调整路由的工作量,大大提升对裸金属服务器进行路由更新的工作效率,降低了对裸金属服务器进行路由更新的代价。Therefore, in the embodiment of the present invention, compared with the prior art, it is not necessary to spend a lot of energy to update the route of the already created bare metal server, which can save the workload of manually adjusting the route, and greatly improve the routing of the bare metal server. The update work efficiency reduces the cost of routing updates to the bare metal server.
其中,需要说明的是,在云平台上,每一个裸金属服务器上的Overlay网络和/或Underlay网络所占用的IP地址段的信息格式如表2所示。当然可以理解的是,在本发明实施例中,云平台对每一个裸金属服务器上的Overlay网络和/或Underlay网络所占用的IP地址段的信息格式并不仅仅限定为表2中的参考格式。It should be noted that, on the cloud platform, the information format of the IP address segment occupied by the Overlay network and/or the Underlay network on each bare metal server is shown in Table 2. Of course, it can be understood that, in this 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. .
表2Table 2
其中,由表2给出的参考格式可知,云平台对每一个裸金属服务器上的Overlay网络和/或Underlay网络所占用的IP地址段的信息格式主要包含地址段和网关信息。其中,由于地址段可以为聚合后的地址,并对应多个预先规划好的网关,因此,在表2中,并未给出具体的网关信息。Among them, from the reference format given in Table 2, it can be known that 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 mainly includes address segment and gateway information. Among them, since the address segment may be an aggregated address and correspond to multiple pre-planned gateways, therefore, in Table 2, no specific gateway information is given.
其中,针对表2中给出的应用场景为例,云平台保存的Overlay网络和/或Underlay网络所占用的IP地址段主要包含以下三个方面:Among them, taking the application scenarios given in Table 2 as an example, the IP address segment occupied by the Overlay network and/or the Underlay network saved by the cloud platform mainly includes the following three aspects:
1)Underlay网络,该部分为物理网络地址规划或者预留地址段。如表中的存储网、管理网等。1) Underlay network, this part is the physical network address planning or reserved address segment. Such as the storage network and management network in the table.
2)Overlay外部网络,该部分为管理员规划用于裸金属服务器对外提供服务的网络。如CMNET公网或IP承载网等,与实际底层物理网络存在对应关系。2) Overlay external network, this part is for the administrator to plan the network for the bare metal server to provide external services. For example, the CMNET public network or the IP bearer network has a corresponding relationship with the actual underlying physical network.
3)Overlay业务网,该部分为用户自定义的虚拟网络(或者叫租户网络),它使用的地址段必须除去以上两部分已经占用或规划的。3) Overlay service network, this part is a user-defined virtual network (or called a tenant network), and the address segment used by it must be occupied or planned by the above two parts.
另外,由于上述的地址段可以为聚合后的地址,因此可对应多个预先规划好的网关,因此在Overlay网络和/或Underlay网络所占用的IP地址段中,有一部分IP地址段是全部裸金属服务器可以通用的通用IP地址段,另一部分为针对部分裸金属服务器区别于其他裸金属服务器特定的特定IP地址段。其中,特定IP地址段与该部分裸金属服务器的网络位置和它上面承载的应用有关。In addition, since the above address segments can be aggregated addresses, they can correspond to multiple pre-planned gateways. Therefore, in the IP address segments occupied by the Overlay network and/or the Underlay network, some IP address segments are completely naked. The metal server can be a general IP address segment, and the other part is a specific IP address segment that is specific to some bare metal servers that are different from other bare metal servers. The specific IP address segment is related to the network location of the part of the bare metal server and the application hosted on it.
由于在一般情况下,裸金属服务器通过默认路由到Overlay网络,通过明细路由到Underlay网络。因此在本发明实施例中,主要针对上述情况,说明裸金属服务器上路由配置的初始化过程,其中,该初始化的过程如图3所示。In general, the bare metal server is routed to the Overlay network by default, and routed to the Underlay network by detail. Therefore, in the embodiment of the present invention, mainly aiming at the above situation, the initialization process of the routing configuration on the bare metal server is described, wherein the initialization process is shown in FIG. 3 .
由上述可知,Overlay网络和/或Underlay网络所占用的IP地址段可分为通用IP地址段和特定IP地址段,因此在进行初始化配置时,可先根据Underlay网络中的通用IP地址段,按上述表1中的方式生成明细路由,则该部分明细路由即可保存为通用路由表,然后再根据Underlay网络中的特定IP地址段,按上述表1中的方式生成明细路由,则该部分明细路由即可保存为针对部分裸金属服务器适用的特定路由表。其中通用路由表如表3所示,特定路由表如表4所示。It can be seen from the above that the IP address segment occupied by the Overlay network and/or the Underlay network can be divided into a general IP address segment and a specific IP address segment. If the detailed route is generated by the method in the above table 1, the detailed route can be saved as a general routing table, and then according to the specific IP address segment in the Underlay network, the detailed route is generated according to the method in the above table 1, then this part of the detailed route is generated. Routes can then be saved as specific routing tables for some bare metal servers. The general routing table is shown in Table 3, and the specific routing table is shown in Table 4.
表3table 3
表4Table 4
其中,由表3可知,通用路由表对裸金属服务器的型号并不进行具体限定。由表4可知,特定路由表中需标注出每一个路由条目对应的裸金属服务器的型号,以针对不同的裸金属服务器进行区分,如表4中的BM1对应的表4中的第一行路由条目,而BM2对应的表4中的第二行路由条目。Among them, it can be seen from Table 3 that the general routing table does not specifically limit the model of the bare metal server. It can be seen from Table 4 that the model of the BMS corresponding to each routing entry needs to be marked in the specific routing table to distinguish different BMSs. For example, BM1 in Table 4 corresponds to the first row of routing in Table 4. entry, and BM2 corresponds to the second row of routing entries in Table 4.
需要理解的是,在本发明实施例中,上述裸金属服务器上路由配置的初始化过程同样适用于默认路由走Underlay网络场景,或者明细路由到Overlay网络的场景,在本发明实施例中,对比并不进行具体限定。It should be understood that, in the embodiment of the present invention, the above-mentioned initialization process of the routing configuration on the bare metal server is also applicable to the scenario where the default route is routed to the Underlay network, or the scenario where the detailed route is routed to the Overlay network. No specific limitation is made.
例如,租户A创建了一个租户网络,对应的子网网段为192.168.1.0/24,网关192.168.1.1,而Overlay网络和/或Underlay网络所占用的IP地址段的网络规划如表5所示。For example, tenant A creates a tenant network, the corresponding subnet segment is 192.168.1.0/24, the gateway is 192.168.1.1, and the network planning of the IP address segment occupied by the overlay network and/or the underlay network is shown in Table 5. .
表5table 5
其中,生成的默认路由为:Among them, the generated default route is:
地址段为0.0.0.0/0,网关为192.168.1.1。The address segment is 0.0.0.0/0, and the gateway is 192.168.1.1.
其中,Underlay网络上的明细路由为:Among them, the detailed routing on the Underlay network is:
地址段为10.10.0.0/16,网关为与裸金属服务器对应的Underlay网络接入网关。The address segment is 10.10.0.0/16, and the gateway is the Underlay network access gateway corresponding to the bare metal server.
Overlay网络上的明细路由为:The detailed route on the overlay network is:
地址段为172.10.0.0/16,网关为192.168.1.1。The address segment is 172.10.0.0/16 and the gateway is 192.168.1.1.
由上述可知,针对同一租户,Underlay网络和Overlay网络分别生成明细路由中,Overlay网络上的明细路由中,网关即为租户的网关,而Underlay网络上的明细路由中,网关为与裸金属服务器对应的Underlay网络接入网关。所以在进行路由配置时,Underlay网络上的路由配置更为复杂,所以人工配置时更容易出现错误。因此,本发明实施例中,通云平台根据保存的租户信息以及Underlay网络和Overlay网络所占用的IP地址段自动生成路由信息表的方式,更加可靠,可规避人工在路由配置过程中出现的错误,极大的提升了路由配置的效率和精确度。It can be seen from the above that for the same tenant, the Underlay network and the Overlay network generate detailed routes respectively. In the detailed routes on the Overlay network, the gateway is the tenant's gateway, and in the detailed routes on the Underlay network, the gateway corresponds to the bare metal server. Underlay network access gateway. Therefore, during routing configuration, the routing configuration on the Underlay network is more complicated, so errors are more likely to occur during manual configuration. Therefore, in the embodiment of the present invention, the way that the Tongyun platform automatically generates the routing information table according to the saved tenant information and the IP address segments occupied by the Underlay network and the Overlay network is more reliable and can avoid manual errors in the routing configuration process. , which greatly improves the efficiency and accuracy of routing configuration.
其中,上述Underlay网络上的明细路由中,与裸金属服务器对应的Underlay网络接入网关,其对应的地址是根据裸金属服务器所处的网络位置决定的,例如挂在Underlay网络接入交换机A下面的裸金属服务器,网关地址为10.10.1.1,而挂在Underlay网络接入交换机B下面的裸金属服务器,其网关地址为10.10.2.1。Among them, in the detailed route on the above-mentioned Underlay network, the corresponding 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, it is hung under the Underlay network access switch A The gateway address of the bare metal server is 10.10.1.1, and the gateway address of the bare metal server hanging under the access switch B of the Underlay network is 10.10.2.1.
同样的,在特定路由中,与裸金属服务器对应的Underlay网络接入网关也主要由裸金属服务器所处的位置、服务器类型、业务方需求、网络策略等决定的。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, server type, business requirements, and network policies.
例如,安装在哈尔滨机房的一台Hadoop服务器需要访问部署在Underlay网络中的Master node(IP:100.1.1.1),则可能对应一条特定路由为:地址段为100.1.1.1/32,网关为裸金属服务器对应的Underlay网络接入网关。其中,该网关是由Master node所处的位置、服务器类型、业务方需求、网络策略所决定。For example, if a Hadoop server installed in the Harbin computer room needs to access the Master node (IP: 100.1.1.1) deployed in the Underlay network, it may correspond to a specific route: the address segment is 100.1.1.1/32, and the gateway is bare metal Underlay network access gateway corresponding to the server. Among them, the gateway is determined by the location of the Master node, the type of the server, the requirements of the business side, and the network policy.
具体地,在本发明实施例中,为确定目标裸金属服务器已进行路由更新,因此该方法还包括:接收所述目标裸金属服务器在根据所述第一路由信息表,对所述目标裸金属服务器保存的路由信息表更新完成后发送的响应信息。Specifically, in this embodiment of the present invention, in order to determine that the target bare metal server has performed a route update, the method further includes: receiving, according to the first routing information table, when the target bare metal server performs a routing update on the target bare metal server. The response information sent after the routing information table saved by the server is updated.
因此,通过接收目标裸金属服务器发送的响应信息,即可确定目标裸金属服务器上的路由信息表已经与云平上保存的该目标裸金属服务器的路由信息表同步,避免云平台再向目标裸金属服务器进行重新发送第一路由信息表,增加云平台的运算量。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 has been synchronized with the routing information table of the target bare metal server saved on the cloud platform, so as to avoid the cloud platform to the target bare metal server again. The metal server resends the first routing information table to increase the computational load of the cloud platform.
具体地,在本发明实施例中,确定进行路由更新的目标裸金属服务器时,云平台可在收到云管平台发送的IP地址段变更通知后,根据发生变更的IP地址段,确定进行路由更新的目标裸金属服务器,或者云平台可在接收裸金属服务器发送的路由更新请求后,再判断是否接收到云管平台发送的IP地址段变更通知,如果是,则根据发生变更的IP地址段,确定进行路由更新的目标裸金属服务器。即云平台可以根据裸金属服务器发送的路由更新请求,主动判断是否接收到云管平台发送的IP地址段变更通知,也可被动的直接接收云管平台发送的IP地址段变更通知。Specifically, in the embodiment of the present invention, when determining the target bare metal server for routing update, the cloud platform may determine to perform routing according to the changed IP address segment after receiving the IP address segment change notification sent by the cloud management platform. The updated target bare metal server, or the cloud platform can judge whether it has received the IP address segment change notification sent by the cloud management platform after receiving the route update request sent by the bare metal server. If so, according to the changed IP address segment , to determine the target bare metal server for routing update. That is, the cloud platform can actively determine whether to receive the IP address segment change notification sent by the cloud management platform according to the routing update request sent by the bare metal server, or passively directly receive the IP address segment change notification sent by the cloud management platform.
下面分别结合具体实施例对上述两种确定进行路由更新的目标裸金属服务器情况进行具体说明。In the following, specific descriptions are given for the above two situations of determining the target bare metal server for routing update with reference to specific embodiments.
实施例二:Embodiment 2:
在本发明实施例中,根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器包括:In the embodiment of the present invention, according to the obtained first IP address segment that has changed, and the corresponding second IP address segment saved for each bare metal server, it is determined that the target bare metal server for routing update includes:
获取云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;Obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the information of the first IP address segment;
根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段,将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器。According to the first IP address segment and the corresponding second IP address segment stored for each bare metal server, determine a target second IP address segment corresponding to the first IP address segment, and assign the target second IP address segment to the target second IP address segment. The bare metal server corresponding to the second IP address segment is used as the target bare metal server.
本发明实施例主要说明的就是云平台被动的直接接收云管平台发送的IP地址段变更通知,根据IP地址段变更通知中携带所述第一IP地址段的信息,从多个裸金属服务器上的Overlay网络和/或Underlay网络所占用的IP地址段中,确定出与第一IP地址段对应的目标第二IP地址段,进而从多个裸金属服务器中,确定出需要进行路由更新的目标裸金属服务器。The embodiment of the present invention mainly describes that the cloud platform passively directly receives the IP address segment change notification sent by the cloud management platform, and according to the information of the first IP address segment carried in the IP address segment change notification, from multiple bare metal servers In the IP address segment occupied by the Overlay network and/or the Underlay network, determine the target second IP address segment corresponding to the first IP address segment, and then determine the target that needs to be updated from the multiple bare metal servers. Bare Metal Servers.
该种方式在云平台接收到云管平台发送的IP地址段更新通知后,即可触发对确定出的目标裸金属服务器自动进行路由更新,因此无论什么时候进行网络地址变更,都可实现对目标裸金属服务器自动进行路由更新,极大程度上地提升了路由更新效率,无需再通过人工进行逐个排查,节省了人工更新路由的工作量。In this way, after the cloud platform receives the IP address segment update notification sent by the cloud management platform, it can trigger automatic routing update to the determined target bare metal server. Therefore, whenever the network address is changed, the target can be updated. The bare metal server automatically updates the route, which greatly improves the efficiency of route update. It no longer needs to manually check one by one, which saves the workload of manually updating the route.
其中,由上述实施例可知,在Overlay网络和/或Underlay网络所占用的IP地址段中,包括通用IP地址段和特定IP地址段。Wherein, it can be known from the above embodiments that the IP address segment occupied by the Overlay network and/or the Underlay network includes a general IP address segment and a specific IP address segment.
因此根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段包括:Therefore, according to the first IP address segment and the corresponding second IP address segment stored for each bare metal server, determining the target second IP address segment corresponding to the first IP address segment includes:
根据所述第二IP地址段中包括的针对全部裸金属服务器的通用IP地址段,判断与所述第一IP地址段对应的地址段是否为所述通用IP地址段;如果是,将所述通用IP地址段作为目标第二IP地址段;According to the general IP address segment for all bare metal servers included in the second IP address segment, determine whether the address segment corresponding to the first IP address segment is the general IP address segment; The general IP address segment is used as the target second IP address segment;
如果否,判断出与所述第一IP地址段对应的特定IP地址段,并将所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段。If not, determine the specific IP address segment corresponding to the first IP address segment, and use the specific IP address segment corresponding to the first IP address segment as the target second IP address segment.
当所述目标第二IP地址段为与全部裸金属服务器对应的通用IP地址段时,判定所述目标裸金属服务器为全部裸金属服务器;当所述目标第二IP地址段为与部分裸金属服务器对应的特定IP地址段时,判定所述目标裸金属服务器为对应的所述特定IP地址段的部分裸金属服务器。When the target second IP address segment is a general IP address segment corresponding to all bare metal servers, it is determined that the target bare metal server is all bare metal servers; when the target second IP address segment is the same as part of the bare metal servers When the server corresponds to a specific IP address segment, it is determined that the target bare metal server is a part of the bare metal server corresponding to the specific IP address segment.
因此在本发明实施例中,通过云平台对Overlay网络和/或Underlay网络所占用的IP地址段进行统一的保存和维护,因此在确定需要进行路由更新的目标裸金属服务器时,可优先判断与发生变更的第一IP地址段对应的是通用IP地址段还是特定IP地址段,即可便捷快速地确定出目标裸金属服务器。与现有技术中,工作人员需要逐台排查的方法相比,大大提高了路由更新的效率,节省了人工调整路由的工作量。Therefore, in the embodiment of the present invention, the IP address segment occupied by the Overlay network and/or the Underlay network is uniformly stored and maintained through the cloud platform. If the changed first IP address segment corresponds to a general IP address segment or a specific IP address segment, the target bare metal server can be easily and quickly determined. Compared with the method in the prior art, in which the staff needs to check one by one, the efficiency of routing update is greatly improved, and the workload of manually adjusting the routing is saved.
其中,以上述实施例中,裸金属服务器通过默认路由到Overlay网络,通过明细路由到Underlay网络的场景为例,简要说明对裸金属服务器的初始化配置进行路由更新的过程。In the above embodiment, the bare metal server is routed to the Overlay network by default and routed to the Underlay network by details as an example to briefly describe the process of updating the route for the initial configuration of the bare metal server.
如图4所示,管理员以运管平台为入口,更新Underlay网络所占用的IP地址段,云平台接收运管平台发送的发生变更的第一IP地址段,然后云平台根据发生变更的第一IP地址段以及Underlay网络所占用的IP地址段,确定需要发生路由变更的目标裸金属服务器,然后云平台根据发生变更的第一IP地址段以及接入目标裸金属服务器的租户信息,生成第一路由信息表,并通知目标裸金属服务器路由更新。As shown in Figure 4, the administrator takes the operation and management platform as the entrance to update the IP address segment occupied by the Underlay network, the cloud platform receives the changed first IP address segment sent by the operation and management platform, and then the cloud platform changes the first IP address segment according to the changed An IP address segment and the IP address segment occupied by the Underlay network are used to determine the target bare metal server that needs to be routed. a routing information table, and notify the target bare metal server of routing update.
实施例三:Embodiment three:
在本发明实施例中,根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器包括:In the embodiment of the present invention, according to the obtained first IP address segment that has changed, and the corresponding second IP address segment saved for each bare metal server, it is determined that the target bare metal server for routing update includes:
接收第一裸金属服务器发送的路由更新请求;receiving a routing update request sent by the first bare metal server;
判断是否获取到云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;Determine whether to obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the information of the first IP address segment;
如果是,判断针对所述第一裸金属服务器保存的其对应的第二IP地址段,是否与所述第一IP地址段相对应;If so, determine whether the corresponding second IP address segment stored for the first bare metal server corresponds to the first IP address segment;
如果是,将所述第一裸金属服务器确定为目标裸金属服务器。If yes, determine the first bare metal server as the target bare metal server.
由上述实施例可知,云平台上可接入多个裸金属服务器,每个裸金属服务器为保证与云平台上的保存的与之对应的路由表信息保持一致,可向云平台发送路由更新请求,因此云平台在接收裸金属服务器发送的路由更新请求后,可主动的判断是否接收到云管平台发送的IP地址段变更通知,如果是,则确定的需要进行路由更新的目标裸金属服务器,并向目标裸金属服务器发送根据发生变更的IP地址段与租户信息生成的第一路由信息表。其中,上述云平台根据裸金属服务器发送的路由更新请求,生成第一路由信息表,通知裸金属服务器路由更新的过程如图5所示。It can be seen from the above embodiment that multiple bare metal servers can be connected to the cloud platform, and each bare metal server can send a routing update request to the cloud platform to ensure consistency with the corresponding routing table information saved on the cloud platform. Therefore, after receiving the routing update request sent by the bare metal server, the cloud platform can actively determine whether it has received the IP address segment change notification sent by the cloud management platform. and send the first routing information table generated according to the changed IP address segment and tenant information to the target bare metal server. The above-mentioned cloud platform generates the first routing information table according to the routing update request sent by the bare metal server, and the process of notifying the bare metal server of routing update is shown in FIG. 5 .
其中,在本发明实施例中,云平台根据裸金属服务器发送的路由更新请求主动进行路由更新的。因此这种触发云平台对裸金属服务器进行路由更新的方式可对发生网络地址变化的裸金属服务器上的路由信息进行及时路由更新,实现了对裸金属服务器上的路由信息的智能自动化更新。Wherein, in the embodiment of the present invention, the cloud platform actively updates the route according to the route update request sent by the bare metal server. Therefore, this method 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 where the network address changes, and realize the intelligent automatic update of the routing information on the bare metal server.
另外,需要说明的是,在本发明实施例中,路由更新请求可以是裸金属服务器根据预设周期发送的,可确保云平台及时发现需要进行路由更新的目标裸金属服务器,并进行及时路由更新,可适用于不同的云环境中。In addition, it should be noted that, in this 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 timely discovers the target bare metal server that needs to perform route update, and performs timely route update. , which can be applied to different cloud environments.
在本发明实施例中,路由更新请求也可以是裸金属服务器根据ICMP通知向云平台被动发送的。其中ICMP通知为云平台检测到裸金属服务器将业务流量发送到错误网关时,发送给裸金属服务器的。由于裸金属服务器将业务流量发送到错误网关的原因可能为裸金属服务器中本地保存路由信息表与云平台中保存的路由信息表不同,因此,为确认是否由上述原因引起裸金属服务器将业务流量发送到错误网关,裸金属服务器会向云平台发送路由更新请求,以保存裸金属服务器中本地保存路由信息表与云平台中保存的路由信息表同步。虽然这种触发云平台对裸金属服务器路由进行更新的方式不是周期性的,但是却在一定程度上保证了裸金属服务器中本地保存路由信息表与云平台中保存的路由信息表的同步性。In this embodiment of the present invention, the route update request may also be passively sent by the bare metal server to the cloud platform 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 service traffic to the wrong gateway. The reason why the bare metal server sends the service traffic to the wrong gateway may be that the routing information table saved locally in the bare metal server is different from the routing information table saved in the cloud platform. If it is sent to the wrong gateway, the bare metal server will send a routing update request to the cloud platform to save the locally saved routing information table in the bare metal server and synchronize with the routing information table saved in the cloud platform. Although this method of triggering the cloud platform to update the route of the bare metal server is not periodic, it ensures the synchronization of the routing information table stored locally in the bare metal server and the routing information table stored in the cloud platform to a certain extent.
综上可知,上述实施例提供的裸金属服务器路由更新方法,通过在云管平台与裸金属服务器之间增加了云平台,并由云平台对裸金属服务器上的Overlay网络和/或Underlay网络所占用的IP地址段以及该裸金属服务器的路由表进行统一的保存和管理,在进行路由更新时,可节省人工调整路由的工作量,大大提升对裸金属服务器进行路由更新的工作效率,降低了对裸金属服务器进行路由更新的代价。To sum up, in the method for updating the route of the bare metal server provided by the above-mentioned embodiments, a cloud platform is added between the cloud management platform and the bare metal server, and the cloud platform can update the Overlay network and/or the Underlay network on the bare metal server by the cloud platform. The occupied IP address segment and the routing table of the bare metal server are stored and managed in a unified manner, which can save the workload of manual routing adjustment during routing update, greatly improve the work efficiency of routing update to the bare metal server, and reduce the The cost of routing updates to the bare metal server.
实施例四:Embodiment 4:
在上述实施例的基础上,依据本发明实施例的另一个方面,本发明的实施例还提供了一种路金属服务器路由更新方法,本发明实施例提供的裸金属服务器路由更新方法应用于裸金属服务器上,具体应用于安装有裸金属服务器的电子设备上,如图6所示,该方法以下步骤:On the basis of the above embodiments, according to another aspect of the embodiments of the present invention, the embodiments of the present invention further provide a route update method for a metal server, and the method for updating a route for a bare metal server provided by the embodiments of the present invention is applied to bare metal On the metal server, it is specifically applied to the electronic device installed with the bare metal server. As shown in Figure 6, the method has the following steps:
步骤S601:接收云平台发送的第一路由信息表;Step S601: Receive the first routing information table sent by the cloud platform;
步骤S602:根据所述第一路由信息表,对本地保存的路由信息表进行更新。Step S602: Update the locally stored routing information table according to the first routing information table.
其中,在裸金属服务器运行有路由配置代理agent,用于负责对其所在的裸金属服务器的路由表的获取,并根据路由表对其所在的裸金属服务器进行路由配置。所以,当被确定为需要进行路由更新的目标裸金属服务器时,需要目标裸金属服务器中的路由配置agent自动获取第一路由信息表,并根据第一路由信息表中的路由信息进行更新。Wherein, a routing configuration agent agent runs on the bare metal server, which is responsible for acquiring the routing table of the bare metal server where it is located, and performs routing configuration on the bare metal server where it is located according to the routing table. Therefore, when it is determined as the target bare metal server that needs to be updated, the routing configuration agent in the target bare metal server needs to automatically obtain the first routing information table, and update it according to the routing information in the first routing information table.
因此,在本发明实施例中,通过在裸金属服务器内部引入路由配置agent,实现了根据第一路由信息表对裸金属服务器上保存的路由表进行自动化更新,节省了人工调整路由的工作量,从而提升了自动化水平,降低了同步路由信息的代价。Therefore, in the embodiment of the present invention, by introducing a routing configuration agent into the bare metal server, automatic updating of the routing table saved on the bare metal server according to the first routing information table is realized, which saves the workload of manual routing adjustment. As a result, the level of automation is improved and the cost of synchronizing routing information is reduced.
其中,在本发明实施例中,所述方法还包括:Wherein, in the embodiment of the present invention, the method further includes:
根据所述第一路由信息表,对本地保存的路由信息表更新完成后,向所述云平台发送更新完成的响应信息。According to the first routing information table, after the locally stored routing information table is updated, the response information of the update completion 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 has been synchronized with the routing information table of the target bare metal server saved on the cloud platform, so as to avoid the cloud platform from sending the first routing information table again. The computing volume of the cloud platform.
其中,在本发明实施例中,所述根据所述第一路由信息表,对其保存的路由信息表进行更新包括以下至少一种:Wherein, in this embodiment of the present invention, updating the stored routing information table according to the first routing information table includes at least one of the following:
1)根据所述第一路由信息表,对本地保存的路由信息表新增相应的路由条目;1) according to the first routing information table, add a corresponding routing entry to the locally stored routing information table;
2)根据所述第一路由信息表,对本地保存的路由信息表删除相应的路由条目;2) according to the first routing information table, delete the corresponding routing entry to the routing information table saved locally;
3)根据所述第一路由信息表,对本地保存的路由信息表修改相应的路由条目。3) According to the first routing information table, modify the corresponding routing entry in the routing information table stored locally.
由上述实施例可知,不管是默认路由还是明细路由,生成的路由信息表均与发生变更的第一IP地址段有关,其中,第一IP地址段的变更包括以下三种情况:It can be known from the above embodiment that, no matter it is a default route or a detailed route, the generated routing information table is all related to the changed first IP address segment, wherein the change of the first IP address segment includes the following three situations:
1)删除Overlay网络和/或Underlay网络所占用的IP地址段;1) Delete the IP address segment occupied by the Overlay network and/or the Underlay network;
2)扩大Overlay网络和/或Underlay网络所占用的IP地址段;2) Expand the IP address segment occupied by the Overlay network and/or the Underlay network;
3)修改Overlay网络和/或Underlay网络所占用的IP地址段。3) Modify the IP address segment occupied by the Overlay network and/or the Underlay network.
因此,针对上述三种IP地址段的变更情况,对保存的路由信息表进行更新也就相应的包括:对其保存的路由信息表中的现有路由条目新增相应的路由条目,或者对其保存的路由信息表中的现有路由条目删除相应的路由条目,或者对其保存的路由信息表中的现有路由条目修改相应的路由条目。Therefore, according to the changes of the above three IP address segments, updating the stored routing information table also includes: adding a corresponding routing entry to the existing routing entry in the stored routing information table, or adding a corresponding routing entry to the existing routing information table. The corresponding routing entry is deleted from the existing routing entry in the stored routing information table, or the corresponding routing entry is modified in the existing routing entry in the stored routing information table.
由于在进行路由信息的更新时,无需替换整个裸金属服务器上本地保存的路由信息表,只需要对发生变更的路由表进行更新即可,因此,不会占用较大存储空间,并提高更新速度和效率。When updating the routing information, it is not necessary to replace the routing information table stored locally on the entire bare metal server, and only the routing table that has changed needs to be updated. Therefore, it does not occupy a large storage space and improves the update speed. and efficiency.
其中,在本发明实施例中,接收云平台发送的第一路由信息表之前,所述方法还包括:Wherein, in the embodiment of the present invention, before receiving the first routing information table sent by the cloud platform, the method further includes:
向所述云平台发送路由更新请求。Send a routing update request to the cloud platform.
其中,向所述云平台发送路由更新请求包括:Wherein, sending a route update request to the cloud platform includes:
根据预设周期发送的路由更新请求;或者,A route update request sent according to a preset period; or,
接收所述云平台发送的控制报文协议ICMP通知,其中所述ICMP通知为所述云平台检测到所述金属服务器将业务流量发送到错误网关时发送的;receiving a control message protocol ICMP notification sent by the cloud platform, where the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an incorrect gateway;
根据所述ICMP通知发送路由更新请求。The route update request is sent according to the ICMP notification.
其中,有上述实施例中已对该部分进行详细描述,故在此不再重述赘述。Among them, the part has been described in detail in the above-mentioned embodiments, so it will not be repeated here.
实施例五:Embodiment 5:
依据本发明实施例的另一个方面,还提供了一种电子设备,如图7所示,所述电子设备包括:第一处理器71、第一存储器72和第一收发机73;According to another aspect of the embodiments of the present invention, an electronic device is also provided. As shown in FIG. 7 , the electronic device includes: a
在图7中,总线架构可以包括任意数量的互联的总线和桥,具体由第一处理器71代表的一个或多个第一处理器71和第一存储器72代表的第一存储器72的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。第一收发机73可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。第一处理器71负责管理总线架构和通常的处理,第一存储器72可以存储第一处理器71在执行操作时所使用的数据。In FIG. 7 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more
可选的,第一处理器71可以是CPU(中央处埋器)、ASIC(Application SpecificIntegrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或CPLD(Complex Programmable Logic Device,复杂可编程逻辑器件)。Optionally, the
所述第一收发机73,用于在所述第一处理器71的控制下,获取发生变化的第一IP地址段;The
所述第一处理器71,用于读取所述第一存储器72中的程序,执行下列过程:根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器,其中所述第一IP地址段为覆盖层Overlay网络和/或底层Underlay网络所占用的IP地址段;获取所述目标裸金属服务器的租户信息;根据所述第一IP地址段及所述租户信息,生成第一路由信息表,并控制所述第一收发机73将所述第一路由信息表发送给所述目标裸金属服务器,使其对保存的路由信息表进行更新。The
具体地,所述第一处理器71,还用于控制所述第一收发机73接收所述目标裸金属服务器在根据所述第一路由信息表,对所述目标裸金属服务器保存的路由信息表更新完成后发送的响应信息。Specifically, the
具体地,所述第一处理器71,还用于根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器时,获取云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段,将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器。Specifically, the
具体地,所述第一处理器71,还用于根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段时,根据所述第二IP地址段中包括的针对全部裸金属服务器的通用IP地址段,判断与所述第一IP地址段对应的地址段是否为所述通用IP地址段;如果是,将所述通用IP地址段作为目标第二IP地址段;如果否,判断出与所述第一IP地址段对应的特定IP地址段,并将所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段。Specifically, the
具体地,所述第一处理器71,还用于将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器时,当将所述通用IP地址段作为目标第二IP地址段时,确定所述目标裸金属服务器为全部裸金属服务器;当将与所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段时,确定所述目标裸金属服务器为该对应的特定IP地址段的裸金属服务器。Specifically, the
具体地,所述第一处理器71,还用于根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器时,控制所述第一收发机73接收第一裸金属服务器发送的路由更新请求;判断是否获取到云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;如果是,判断针对所述第一裸金属服务器保存的其对应的第二IP地址段,是否与所述第一IP地址段相对应;如果是,将所述第一裸金属服务器确定为目标裸金属服务器。Specifically, the
具体地,所述第一收发机73接收第一裸金属服务器发送的路由更新请求包括:Specifically, the routing update request sent by the
接收所述第一裸金属服务器根据预设周期发送的路由更新请求;或者,receiving a routing update request sent by the first bare metal server according to a preset period; or,
接收所述第一裸金属服务器根据控制报文协议ICMP通知发送的路由更新请求,其中,当所述云平台检测到所述第一裸金属服务器将业务流量发送到错误网关时,所述云平台向所述第一裸金属服务器发送所述ICMP通知。Receive 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 incorrect gateway, the cloud platform Send the ICMP notification to the first bare metal server.
实施例六:Embodiment 6:
依据本发明实施例的另一个方面,还提供了一种电子设备,如图8所示,所述电子设备包括:第二处理器81、第二存储器82和第二收发机83;According to another aspect of the embodiment of the present invention, an electronic device is also provided. As shown in FIG. 8 , the electronic device includes: a
在图8中,总线架构可以包括任意数量的互联的总线和桥,具体由第二处理器81代表的一个或多个第二处理器81和第二存储器82代表的第二存储器82的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。第二收发机83可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。第二处理器81负责管理总线架构和通常的处理,第二存储器82可以存储第二处理器81在执行操作时所使用的数据。In FIG. 8 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more
可选的,第二处理器81可以是CPU(中央处埋器)、ASIC(Application SpecificIntegrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或CPLD(Complex Programmable Logic Device,复杂可编程逻辑器件)。Optionally, the
所述第二收发机83,用于在所述第二处理器81的控制下,接收云平台发送的第一路由信息表;The
所述第二处理器81,用于读取所述第二存储器82中的程序,执行以下过程:根据所述第一路由信息表,对本地保存的路由信息表进行更新。The
具体地,所述第二处理器81,还用于根据所述第一路由信息表,对本地保存的路由信息表更新完成后,控制所述第二收发机83向所述云平台发送更新完成的响应信息。Specifically, the
具体地,所述第二处理器81,还用于在接收云平台发送的第一路由信息表之前,控制所述第二收发机83向所述云平台发送路由更新请求。Specifically, the
具体地,所述第二收发机83向所述云平台发送路由更新请求包括:Specifically, the routing update request sent by the
根据预设周期发送的路由更新请求;或者,A route update request sent according to a preset period; or,
接收所述云平台发送的控制报文协议ICMP通知,其中所述ICMP通知为所述云平台检测到所述金属服务器将业务流量发送到错误网关时发送的;receiving a control message protocol ICMP notification sent by the cloud platform, where the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an incorrect gateway;
根据所述ICMP通知发送路由更新请求。The route update request is sent according to the ICMP notification.
具体地,所述第二处理器81根据所述第一路由信息表,对其保存的路由信息表进行更新包括以下至少一种:根据所述第一路由信息表,对本地保存的路由信息表新增相应的路由条目;根据所述第一路由信息表,对本地保存的路由信息表删除相应的路由条目;和根据所述第一路由信息表,对本地保存的路由信息表修改相应的路由条目。Specifically, the
实施例七:Embodiment 7:
依据本发明实施例的另一方面,还提供了一种裸金属服务器路由更新装置,应用于云平台,图9为本发明实施例提供的裸金属服务器路由更新装置的结构框图,如图9所示,所述装置900包括:According to another aspect of the embodiment of the present invention, a bare metal server routing update device is also provided, which is applied to a cloud platform. FIG. 9 is a structural block diagram of the bare metal server routing update device provided by the embodiment of the present invention, as shown in FIG. 9 . As shown, the
确定模块901,用于根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器,其中所述第一IP地址段为覆盖层Overlay网络和/或底层Underlay网络所占用的IP地址段;The determining
获取模块902,用于获取所述目标裸金属服务器的租户信息;an obtaining
生成发送模块903,用于根据所述第一IP地址段及所述租户信息,生成第一路由信息表,并将所述第一路由信息表发送给所述目标裸金属服务器。The generating and sending
具体地,如图9所示,该装置900还包括:Specifically, as shown in FIG. 9 , the
第一接收模块904,用于接收所述目标裸金属服务器在根据所述第一路由信息表,对所述目标裸金属服务器保存的路由信息表更新完成后发送的响应信息。The
具体地,在本发明实施例中,确定模块901包括:Specifically, in this embodiment of the present invention, the determining
获取单元,用于获取云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;The obtaining unit is used to obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the information of the first IP address segment ;
第一确定单元,用于根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段,将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器。a first determining unit, configured to determine a target second IP address 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 segment, the bare metal server corresponding to the target second IP address segment is used as the target bare metal server.
具体地,在本发明实施例中,第一确定单元包括:Specifically, in this embodiment of the present invention, the first determining unit includes:
判断子单元,用于根据所述第二IP地址段中包括的针对全部裸金属服务器的通用IP地址段,判断与所述第一IP地址段对应的地址段是否为所述通用IP地址段;如果是,将所述通用IP地址段作为目标第二IP地址段;A judging subunit, configured to judge whether the address segment corresponding to the first IP address segment is the general IP address segment according to the general IP address segment for all bare metal servers included in the second IP address segment; If yes, use the general IP address segment as the target second IP address segment;
判定子单元,用于如果判断子单元的判断结果为是,将所述通用IP地址段作为目标第二IP地址段;如果判断子单元的判断结果为否,判断出与所述第一IP地址段对应的特定IP地址段,并将所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段。Judging subunit, for if the judgment result of the judging subunit is yes, the general IP address segment is used as the target second IP address segment; the specific IP address segment corresponding to the segment, and the specific IP address segment corresponding to the first IP address segment is used as the target second IP address segment.
具体地,在本发明实施例中,所述第一确定单元还包括:Specifically, in this embodiment of the present invention, the first determining unit further includes:
确定子单元,用于当所述目标第二IP地址段为与全部裸金属服务器对应的通用IP地址段时,判定所述目标裸金属服务器为全部裸金属服务器;当所述目标第二IP地址段为与部分裸金属服务器对应的特定IP地址段时,判定所述目标裸金属服务器为对应的所述特定IP地址段的部分裸金属服务器。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; when the target second IP address segment is a general IP address segment corresponding to all bare metal servers; When the segment is a specific IP address segment corresponding to a part of the bare metal server, it is determined that the target bare metal server is a part of the bare metal server corresponding to the specific IP address segment.
具体地,在本发明实施例中,所述确定模块901还包括:Specifically, in this embodiment of the present invention, the determining
接收单元,用于接收第一裸金属服务器发送的路由更新请求;a receiving unit, configured to receive a routing update request sent by the first bare metal server;
第一判断单元,用于判断是否获取到云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;The first judgment unit is used to judge whether to obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the first IP address segment information;
第二判断单元,用于如果所述第一判断单元的判断结果为是,判断针对所述第一裸金属服务器保存的其对应的第二IP地址段,是否与所述第一IP地址段相对应;a second judging unit, configured to judge whether the corresponding second IP address segment saved for the first bare metal server is the same as the first IP address segment if the judgment result of the first judging unit is yes correspond;
第二确定单元,用于如果所述第二判断单元的判断结果为是,将所述第一裸金属服务器确定为目标裸金属服务器。A second determination unit, configured to determine the first bare metal server as a target bare metal server if the determination result of the second determination unit is yes.
具体地,在本发明实施例中,所述接收单元具体用于接收所述第一裸金属服务器根据预设周期发送的路由更新请求;或者;接收所述第一裸金属服务器根据控制报文协议ICMP通知发送的路由更新请求,其中,当所述云平台检测到所述第一裸金属服务器将业务流量发送到错误网关时,所述云平台向所述第一裸金属服务器发送所述ICMP通知。Specifically, in this 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; receive the first bare metal server according to a control message protocol The route update request sent by the ICMP notification, wherein when the cloud platform detects that the first bare metal server sends service traffic to an incorrect gateway, the cloud platform sends the ICMP notification to the first bare metal server .
实施例八Embodiment 8
依据本发明实施例的另一个方面,还包括一种裸金属服务器路由更新装置,应用于裸金属服务器,如图10所示,该装置1000包括:According to another aspect of the embodiment of the present invention, it further includes a bare metal server routing update apparatus, which is applied to a bare metal server. As shown in FIG. 10 , the
第二接收模块1001,用于接收云平台发送的第一路由信息表;The
更新模块1002,用于根据所述第一路由信息表,对本地保存的路由信息表进行更新。The
具体地,在本发明实施例中,该装置1000还包括:Specifically, in this embodiment of the present invention, the
响应模块1003,用于在根据所述第一路由信息表,对其保存的路由信息表更新完成后,向所述云平台发送更新完成的响应信息。The response module 1003 is configured to send the 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.
具体地,在本发明实施例中,该装置1000还包括:Specifically, in this embodiment of the present invention, the
请求模块1004,用于向所述云平台发送路由更新请求。The requesting
具体地,在本发明实施例中,所述请求模块1004具体用于根据预设周期发送的路由更新请求;或者接收所述云平台发送的控制报文协议ICMP通知,其中所述ICMP通知为所述云平台检测到所述金属服务器将业务流量发送到错误网关时发送的;根据所述ICMP通知发送路由更新请求。Specifically, in this embodiment of the present invention, the requesting
具体地,在本发明实施例中,更新模块902具体用于根据所述第一路由信息表,对本地保存的路由信息表新增相应的路由条目;和/或根据所述第一路由信息表,对本地保存的路由信息表删除相应的路由条目;和/或根据所述第一路由信息表,对本地保存的路由信息表修改相应的路由条目。Specifically, in this embodiment of the present invention, the updating
实施例十Embodiment ten
依据本发明实施例的另一个方面,还提供了一种电子设备,如图11所示,所述电子设备包括:第三处理器111、第一通信接口112、第三存储器113和第一通信总线114,其中,第三处理器111、第一通信接口112、第三存储器113通过第一通信总线114完成互相间的通信;According to another aspect of the embodiments of the present invention, an electronic device is also provided. As shown in FIG. 11 , the electronic device includes: a
所述第三存储器113中存储有计算机程序,当所述程序被所述第三处理器111执行时,使得所述第三处理器111执行以下步骤:A computer program is stored in the
根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器,其中所述第一IP地址段为覆盖层Overlay网络和/或底层Underlay网络所占用的IP地址段;According to the obtained first IP address segment that has changed, and the corresponding second IP address segment saved for each bare metal server, determine the target bare metal server for routing update, wherein the first IP address segment is an overlay The IP address segment occupied by the layer Overlay network and/or the underlying Underlay network;
获取所述目标裸金属服务器的租户信息;Obtain the tenant information of the target bare metal server;
根据所述第一IP地址段及所述租户信息,生成第一路由信息表,并将所述第一路由信息表发送给所述目标裸金属服务器,使其对保存的路由信息表进行更新。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, so that the stored routing information table is updated.
具体地,接收所述目标裸金属服务器在根据所述第一路由信息表,对所述目标裸金属服务器保存的路由信息表更新完成后发送的响应信息。Specifically, the response information sent by the target bare metal server after updating the routing information table saved by the target bare metal server according to the first routing information table is received is received.
具体地,所述根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器包括:Specifically, according to the obtained changed first IP address segment and the corresponding second IP address segment saved for each bare metal server, determining the target bare metal server for routing update includes:
获取云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;Obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the information of the first IP address segment;
根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段,将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器。According to the first IP address segment and the corresponding second IP address segment stored for each bare metal server, determine a target second IP address segment corresponding to the first IP address segment, and assign the target second IP address segment to the target second IP address segment. The bare metal server corresponding to the second IP address segment is used as the target bare metal server.
具体地,所述根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段包括:Specifically, determining the 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 includes the following steps: :
根据所述第二IP地址段中包括的针对全部裸金属服务器的通用IP地址段,判断与所述第一IP地址段对应的地址段是否为所述通用IP地址段;如果是,将所述通用IP地址段作为目标第二IP地址段;According to the general IP address segment for all bare metal servers included in the second IP address segment, determine whether the address segment corresponding to the first IP address segment is the general IP address segment; The general IP address segment is used as the target second IP address segment;
如果否,判断出与所述第一IP地址段对应的特定IP地址段,并将所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段。If not, determine the specific IP address segment corresponding to the first IP address segment, and use the specific IP address segment corresponding to the first IP address segment as the target second IP address segment.
具体地,所述将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器包括:Specifically, using the bare metal server corresponding to the target second IP address segment as the target bare metal server includes:
当将所述通用IP地址段作为目标第二IP地址段时,确定所述目标裸金属服务器为全部裸金属服务器;When the general IP address segment is used as the target second IP address segment, it is determined that the target bare metal server is all bare metal servers;
当将与所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段时,确定所述目标裸金属服务器为该对应的特定IP地址段的裸金属服务器。When the specific IP address segment corresponding to the first IP address segment is used as the target second IP address segment, it is determined that the target bare metal server is the bare metal server of the corresponding specific IP address segment.
具体地,所述根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器还包括:Specifically, according to the obtained changed first IP address segment and the corresponding second IP address segment saved for each bare metal server, determining the target bare metal server for routing update further includes:
接收第一裸金属服务器发送的路由更新请求;receiving a routing update request sent by the first bare metal server;
判断是否获取到云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;Determine whether to obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the information of the first IP address segment;
如果是,判断针对所述第一裸金属服务器保存的其对应的第二IP地址段,是否与所述第一IP地址段相对应;If so, determine whether the corresponding second IP address segment stored for the first bare metal server corresponds to the first IP address segment;
如果是,将所述第一裸金属服务器确定为目标裸金属服务器。If yes, determine the first bare metal server as the target bare metal server.
具体地,所述接收第一裸金属服务器发送的路由更新请求包括:Specifically, the receiving the routing update request sent by the first bare metal server includes:
接收所述第一裸金属服务器根据预设周期发送的路由更新请求;或者,receiving a routing update request sent by the first bare metal server according to a preset period; or,
接收所述第一裸金属服务器根据控制报文协议ICMP通知发送的路由更新请求,其中,当所述云平台检测到所述第一裸金属服务器将业务流量发送到错误网关时,所述云平台向所述第一裸金属服务器发送所述ICMP通知。Receive 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 incorrect gateway, the cloud platform Send the ICMP notification to the first bare metal server.
上述各实施例中的电子设备提到的第一通信总线114可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(ExtendedIndustry Standard Architecture,EISA)总线等。该第一通信总线114可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
第一通信接口112,用于上述电子设备与其他设备之间的通信。The
第三存储器113可以包括随机存取第三存储器113(Random Access Memory,RAM),也可以包括非易失性第三存储器113(Non-Volatile Memory,NVM),例如至少一个磁盘第三存储器113。可选地,第三存储器113还可以是至少一个位于远离前述第三处理器111的存储装置。The
上述第三处理器111可以是通用第三处理器111,包括中央第三处理器111、网络第三处理器111(Network Processor,NP)等;还可以是数字信号第三处理器111(DigitalSignal Processing,DSP)、专用集成电路、现场可编程门陈列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。The above-mentioned
实施例十Embodiment ten
依据本发明实施例的另一个方面,还提供了一种电子设备,如图12所示,所述电子设备包括:第四处理器121、第二通信接口122、第四存储器123和第二通信总线124,其中,第四处理器121、第二通信接口122、第四存储器123通过第二通信总线124完成互相间的通信;According to another aspect of the embodiments of the present invention, an electronic device is also provided. As shown in FIG. 12 , the electronic device includes: a
所述第四存储器123中存储有计算机程序,当所述程序被所述第四处理器121执行时,使得所述第四处理器121执行以下步骤:A computer program is stored in the
接收云平台发送的第一路由信息表;receiving the first routing information table sent by the cloud platform;
根据所述第一路由信息表,对本地保存的路由信息表进行更新。According to the first routing information table, the locally stored routing information table is updated.
具体地,根据所述第一路由信息表,对本地保存的路由信息表更新完成后,向所述云平台发送更新完成的响应信息。Specifically, according to the first routing information table, after the locally stored routing information table is updated, the response information of the update completion is sent to the cloud platform.
具体地,所述接收云平台发送的第一路由信息表之前,向所述云平台发送路由更新请求。Specifically, before receiving the first routing information table sent by the cloud platform, a routing update request is sent to the cloud platform.
具体地,所述向所述云平台发送路由更新请求包括:Specifically, the sending a routing update request to the cloud platform includes:
根据预设周期发送的路由更新请求;或者,A route update request sent according to a preset period; or,
接收所述云平台发送的控制报文协议ICMP通知,其中所述ICMP通知为所述云平台检测到所述金属服务器将业务流量发送到错误网关时发送的;receiving a control message protocol ICMP notification sent by the cloud platform, where the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an incorrect gateway;
根据所述ICMP通知发送路由更新请求。The route update request is sent according to the ICMP notification.
具体地,所述根据所述第一路由信息表,对其保存的路由信息表进行更新包括以下至少一种:Specifically, updating the stored routing information table according to the first routing information table includes at least one of the following:
根据所述第一路由信息表,对本地保存的路由信息表新增相应的路由条目;According to the first routing information table, a corresponding routing entry is added to the locally stored routing information table;
根据所述第一路由信息表,对本地保存的路由信息表删除相应的路由条目;和deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and
根据所述第一路由信息表,对本地保存的路由信息表修改相应的路由条目。According to the first routing information table, the corresponding routing entry is modified in the locally stored routing information table.
上述各实施例中的电子设备提到的第二通信总线124可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(ExtendedIndustry Standard Architecture,EISA)总线等。该第二通信总线124可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
第二通信接口122,用于上述电子设备与其他设备之间的通信。The
第四存储器123可以包括随机存取第四存储器123(Random Access Memory,RAM),也可以包括非易失性第四存储器123(Non-Volatile Memory,NVM),例如至少一个磁盘第四存储器123。可选地,第四存储器123还可以是至少一个位于远离前述第四处理器121的存储装置。The
上述第四处理器121可以是通用第四处理器121,包括中央第四处理器121、网络第四处理器121(Network Processor,NP)等;还可以是数字信号第四处理器121(DigitalSignal Processing,DSP)、专用集成电路、现场可编程门陈列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。The above-mentioned
实施例十Embodiment ten
依据本发明实施例的另一个方面,还提供了一种计算机可读存储介质,其存储有可由电子设备执行的计算机程序,当所述程序在所述电子设备上运行时,使得所述电子设备执行以下步骤:According to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, causes the electronic device to Perform the following steps:
根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器,其中所述第一IP地址段为覆盖层Overlay网络和/或底层Underlay网络所占用的IP地址段;According to the obtained first IP address segment that has changed, and the corresponding second IP address segment saved for each bare metal server, determine the target bare metal server for routing update, wherein the first IP address segment is an overlay The IP address segment occupied by the layer Overlay network and/or the underlying Underlay network;
获取所述目标裸金属服务器的租户信息;Obtain the tenant information of the target bare metal server;
根据所述第一IP地址段及所述租户信息,生成第一路由信息表,并将所述第一路由信息表发送给所述目标裸金属服务器,使其对保存的路由信息表进行更新。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, so that the stored routing information table is updated.
具体地,所述电子设备还执行:Specifically, the electronic device also executes:
接收所述目标裸金属服务器在根据所述第一路由信息表,对所述目标裸金属服务器保存的路由信息表更新完成后发送的响应信息。Receive response information sent by the target bare metal server after updating the routing information table saved by the target bare metal server according to the first routing information table.
具体地,所述根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器包括:Specifically, according to the obtained changed first IP address segment and the corresponding second IP address segment saved for each bare metal server, determining the target bare metal server for routing update includes:
获取云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;Obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the information of the first IP address segment;
根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段,将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器。According to the first IP address segment and the corresponding second IP address segment stored for each bare metal server, determine the target second IP address segment corresponding to the first IP address segment, and assign the target first IP address segment to the target second IP address segment. The bare metal server corresponding to the second IP address segment is used as the target bare metal server.
具体地,所述根据所述第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定与所述第一IP地址段对应的目标第二IP地址段包括:Specifically, determining the 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 includes the following steps: :
根据所述第二IP地址段中包括的针对全部裸金属服务器的通用IP地址段,判断与所述第一IP地址段对应的地址段是否为所述通用IP地址段;According to the general IP address segment for all bare metal servers included in the second IP address segment, determine whether the address segment corresponding to the first IP address segment is the general IP address segment;
如果是,将所述通用IP地址段作为目标第二IP地址段;If yes, use the general IP address segment as the target second IP address segment;
如果否,判断出与所述第一IP地址段对应的特定IP地址段,并将所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段。If not, determine the specific IP address segment corresponding to the first IP address segment, and use the specific IP address segment corresponding to the first IP address segment as the target second IP address segment.
具体地,所述将所述目标第二IP地址段对应的裸金属服务器作为目标裸金属服务器包括:Specifically, using the bare metal server corresponding to the target second IP address segment as the target bare metal server includes:
当将所述通用IP地址段作为目标第二IP地址段时,确定所述目标裸金属服务器为全部裸金属服务器;When the general IP address segment is used as the target second IP address segment, it is determined that the target bare metal server is all bare metal servers;
当将与所述第一IP地址段对应的特定IP地址段作为目标第二IP地址段时,确定所述目标裸金属服务器为该对应的特定IP地址段的裸金属服务器。When the specific IP address segment corresponding to the first IP address segment is used as the target second IP address segment, it is determined that the target bare metal server is the bare metal server of the corresponding specific IP address segment.
具体地,所述根据获取的发生变化的第一IP地址段,及针对每个裸金属服务器保存的其对应的第二IP地址段,确定进行路由更新的目标裸金属服务器还包括:Specifically, according to the obtained changed first IP address segment and the corresponding second IP address segment saved for each bare metal server, determining the target bare metal server for routing update further includes:
接收第一裸金属服务器发送的路由更新请求;receiving a routing update request sent by the first bare metal server;
判断是否获取到云管平台针对Overlay网络和/或Underlay网络所占用的IP地址段发送的IP地址段变更通知,其中所述IP地址段变更通知中携带所述第一IP地址段的信息;Determine whether to obtain the IP address segment change notification sent by the cloud management platform for the IP address segment occupied by the Overlay network and/or the Underlay network, wherein the IP address segment change notification carries the information of the first IP address segment;
如果是,判断针对所述第一裸金属服务器保存的其对应的第二IP地址段,是否与所述第一IP地址段相对应;If so, determine whether the corresponding second IP address segment stored for the first bare metal server corresponds to the first IP address segment;
如果是,将所述第一裸金属服务器确定为目标裸金属服务器。If yes, determine the first bare metal server as the target bare metal server.
具体地,所述接收第一裸金属服务器发送的路由更新请求包括:Specifically, the receiving the routing update request sent by the first bare metal server includes:
接收所述第一裸金属服务器根据预设周期发送的路由更新请求;或者,receiving a routing update request sent by the first bare metal server according to a preset period; or,
接收所述第一裸金属服务器根据控制报文协议ICMP通知发送的路由更新请求,其中,当所述云平台检测到所述第一裸金属服务器将业务流量发送到错误网关时,所述云平台向所述第一裸金属服务器发送所述ICMP通知。Receive 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 incorrect gateway, the cloud platform Send the ICMP notification to the first bare metal server.
上述实施例中的计算机可读存储介质可以是电子设备中的处理器能够存取的任何可用介质或数据存储设备,包括但不限于磁性存储器如软盘、硬盘、磁带、磁光盘(MO)等、光学存储器如CD、DVD、BD、HVD等、以及半导体存储器如ROM、EPROM、EEPROM、非易失性存储器(NAND FLASH)、固态硬盘(SSD)等。The computer-readable storage medium in the above-described 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 storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MOs), etc., Optical memory such as CD, DVD, BD, HVD, etc., and semiconductor memory such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state disk (SSD), and the like.
实施例十一Embodiment 11
依据本发明实施例的另一个方面,还提供了一种计算机可读存储介质,其存储有可由电子设备执行的计算机程序,当所述程序在所述电子设备上运行时,使得所述电子设备执行以下步骤:According to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, causes the electronic device to Perform the following steps:
接收云平台发送的第一路由信息表;receiving the first routing information table sent by the cloud platform;
根据所述第一路由信息表,对本地保存的路由信息表进行更新。According to the first routing information table, the locally stored routing information table is updated.
具体地,所述电子设备还执行:Specifically, the electronic device also executes:
根据所述第一路由信息表,对本地保存的路由信息表更新完成后,向所述云平台发送更新完成的响应信息。According to the first routing information table, after the locally stored routing information table is updated, the response information of the update completion is sent to the cloud platform.
具体地,所述接收云平台发送的第一路由信息表之前,所述电子设备还执行:Specifically, before receiving the first routing information table sent by the cloud platform, the electronic device further executes:
向所述云平台发送路由更新请求。Send a routing update request to the cloud platform.
具体地,所述向所述云平台发送路由更新请求包括:Specifically, the sending a routing update request to the cloud platform includes:
根据预设周期发送的路由更新请求;或者,A route update request sent according to a preset period; or,
接收所述云平台发送的控制报文协议ICMP通知,其中所述ICMP通知为所述云平台检测到所述金属服务器将业务流量发送到错误网关时发送的;receiving a control message protocol ICMP notification sent by the cloud platform, where the ICMP notification is sent when the cloud platform detects that the metal server sends service traffic to an incorrect gateway;
根据所述ICMP通知发送路由更新请求。The route update request is sent according to the ICMP notification.
具体地,所述根据所述第一路由信息表,对其保存的路由信息表进行更新包括以下至少一种:Specifically, updating the stored routing information table according to the first routing information table includes at least one of the following:
根据所述第一路由信息表,对本地保存的路由信息表新增相应的路由条目;According to the first routing information table, a corresponding routing entry is added to the locally stored routing information table;
根据所述第一路由信息表,对本地保存的路由信息表删除相应的路由条目;和deleting the corresponding routing entry from the locally stored routing information table according to the first routing information table; and
根据所述第一路由信息表,对本地保存的路由信息表修改相应的路由条目。According to the first routing information table, the corresponding routing entry is modified in the locally stored routing information table.
上述实施例中的计算机可读存储介质可以是电子设备中的处理器能够存取的任何可用介质或数据存储设备,包括但不限于磁性存储器如软盘、硬盘、磁带、磁光盘(MO)等、光学存储器如CD、DVD、BD、HVD等、以及半导体存储器如ROM、EPROM、EEPROM、非易失性存储器(NAND FLASH)、固态硬盘(SSD)等。The computer-readable storage medium in the above-described 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 storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MOs), etc., Optical memory such as CD, DVD, BD, HVD, etc., and semiconductor memory such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state disk (SSD), and the like.
对于系统/装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the system/apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the partial description of the method embodiment.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者一个操作与另一个实体或者另一个操作区分开来,而不一定要求或者暗示这些实体或者操作之间存在任何这种实际的关系或者顺序。It should be noted that, in this document, relational terms such as first and second, etc. are only used to distinguish one entity or one operation from another entity or another operation, and do not necessarily require or imply these entities Or there is any such actual relationship or order between operations.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全应用实施例、或结合应用和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a 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, etc.) 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 present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiments of the present application have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of this application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these 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 also intended to include these modifications and variations.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810296463.5ACN110324248B (en) | 2018-03-30 | 2018-03-30 | A method, device, electronic device and medium for routing update of bare metal server |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810296463.5ACN110324248B (en) | 2018-03-30 | 2018-03-30 | A method, device, electronic device and medium for routing update of bare metal server |
| Publication Number | Publication Date |
|---|---|
| CN110324248A CN110324248A (en) | 2019-10-11 |
| CN110324248Btrue CN110324248B (en) | 2021-07-30 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810296463.5AActiveCN110324248B (en) | 2018-03-30 | 2018-03-30 | A method, device, electronic device and medium for routing update of bare metal server |
| Country | Link |
|---|---|
| CN (1) | CN110324248B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112036828B (en)* | 2020-08-28 | 2022-06-07 | 北京浪潮数据技术有限公司 | Bare metal management method, device, equipment and medium |
| CN112486755B (en)* | 2020-12-11 | 2024-07-02 | 北京金山云网络技术有限公司 | Server detection method, detection device, electronic equipment and storage medium |
| CN113886322A (en)* | 2021-09-29 | 2022-01-04 | 中国建设银行股份有限公司 | Data processing method and device |
| CN116208483B (en)* | 2022-11-17 | 2024-09-06 | 中国建设银行股份有限公司 | Method for realizing high-availability bare metal service, related device and storage medium |
| CN117834494B (en)* | 2023-12-13 | 2025-06-27 | 天翼云科技有限公司 | A method for BMGW-VIP cluster to actively detect BM |
| 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 | 国际商业机器公司 | Multitenant-aware Dynamic Host Configuration Protocol (DHCP) mechanism for cloud networking |
| 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 |
| EP2289217B1 (en)* | 2008-05-23 | 2017-01-04 | Telefonaktiebolaget LM 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 |
| 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 | 国际商业机器公司 | Multitenant-aware Dynamic Host Configuration Protocol (DHCP) mechanism for cloud networking |
| 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 |
| Publication number | Publication date |
|---|---|
| CN110324248A (en) | 2019-10-11 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110324248B (en) | A method, device, electronic device and medium for routing update of bare metal server | |
| JP7516538B2 (en) | SD-WAN Hub and Spoke Auto Provisioning | |
| US11695730B2 (en) | Providing services for logical networks | |
| US20220377045A1 (en) | Network virtualization of containers in computing systems | |
| US11088944B2 (en) | Serverless packet processing service with isolated virtual network integration | |
| CN105099789B (en) | A kind of network element updating method and apparatus | |
| US11895081B2 (en) | Distributed network address translation over network environments | |
| CN105657081B (en) | The method, apparatus and system of DHCP service are provided | |
| US9628290B2 (en) | Traffic migration acceleration for overlay virtual environments | |
| RU2595540C2 (en) | Basic controllers for conversion of universal streams | |
| WO2020135800A1 (en) | Domain name server allocation method and device | |
| EP3104662A1 (en) | Service allocation method and related device | |
| CN109981493B (en) | Method and device for configuring virtual machine network | |
| US11095716B2 (en) | Data replication for a virtual networking system | |
| CN109995639B (en) | Data transmission method, device, switch and storage medium | |
| US9894144B2 (en) | Application level mirroring in distributed overlay virtual networks | |
| US11296981B2 (en) | Serverless packet processing service with configurable exception paths | |
| CN110855488B (en) | Virtual machine access method and device | |
| CN117941324A (en) | Multicast within a shared subnet | |
| CN114553771B (en) | Method for virtual router loading and related equipment | |
| CN105450526A (en) | Message processing method and equipment | |
| CN105284090A (en) | Method and system for virtualized network entity (VNE) based network operations support systems (NOSS) | |
| US20250081157A1 (en) | Emergency response (er) system for hybrid work softphone mobile devices in sda/sdn fabric networks | |
| US20250080474A1 (en) | Resource depletion detection and notification in an enterprise fabric network | |
| CN118158222A (en) | Load balancer deployment method, device, electronic device, storage medium and product |
| 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 |