Communication method and device
By introducing identification information into the messages of the cloud platform system, we can distinguish messages from different cloud platform systems and update the static routing table, and solve the IP address conflicts and packet forwarding problems caused by network configuration errors in the cloud platform system, and realize normal communication and correct data forwarding of nodes in the same cloud platform system.
Patent Information
- Application Number
- CN202311602762.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2025-05-27
AI Technical Summary
In cloud platform systems based on network function virtualization (NFV) technology, due to network configuration errors, data transmission between different cloud platform systems may lead to IP address conflicts and packet forwarding problems.
By introducing identification information into the packets to distinguish messages from different cloud platform systems, we ensure that the messages can be forwarded normally between cloud platform nodes within the same cloud platform system. The specific method includes including the identification information of the cloud platform system in the message and updating the static routing table based on the identification information to prioritize the routing information within the same cloud platform system.
It effectively avoids data error forwarding and business interruption between different cloud platform systems, ensuring that nodes within the same cloud platform system can communicate normally, even if different cloud platform systems communicate with each other and network address conflicts occur.
Smart Images

Figure CN120050231A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a communication method and apparatus. Background Art
[0002] Based on the network function virtualization (NFV) technology, multiple cloud platform systems can be constructed. Each cloud platform system can include one or more cloud platform nodes, and there is data isolation between different cloud platform systems (for example, cloud platform nodes in different cloud platform systems do not exchange data with each other). Therefore, when configuring Internet protocol (IP) addresses for cloud platform nodes within different cloud platform systems, the same IP address may be configured for different cloud platform nodes belonging to different cloud platform systems. For example, assume there is a first cloud platform system (including a first cloud platform node) and a second cloud platform system (including a second cloud platform node), and assume that the IP addresses of the first cloud platform node and the second cloud platform node are the same. If data can be exchanged between different cloud platform systems due to network configuration errors, then two cloud platform nodes with the same IP address (such as the first cloud platform node and the second cloud platform node) may transmit data simultaneously, resulting in abnormal packet forwarding between different cloud platform systems. Summary of the Invention
[0003] This application provides a communication method and apparatus. The method differentiates packets from different cloud platform systems through different identification information, enabling normal packet forwarding between cloud platform nodes within the same cloud platform system and avoiding abnormal packet forwarding between different cloud platform systems.
[0004] In a first aspect, this application provides a communication method. The method is executed by a second node, or by a component of the second node (such as a processor, a chip, or a chip system, etc.), or can also be executed by a logic module that can implement all or part of the functions of the second node. For example, the second node can be a cloud platform node, and a cloud platform node refers to a network device or server of a cloud computing network infrastructure. Among them, the second node receives a first packet from a first node. The first packet includes the routing information of the first node and the first identification information of the first node; the first identification information indicates that the first node belongs to a first cloud platform system. If the first identification information is the same as the second identification information of the second node, the second node updates its static routing table according to the routing information of the first node.
[0005] In this method, identification information is introduced to distinguish packets from different cloud platform systems. For example, the first identification information is the identification information for identifying the first cloud platform system, and each cloud platform node in the first cloud platform system includes the first identification information (so the packets sent by each cloud platform node also include the first identification information), so as to distinguish which cloud platform system the node sending the packet belongs to through the identification information in the packet. If the node sending the packet and the node receiving the packet are cloud platform nodes of the same cloud platform system, the packets can be normally forwarded between them. Moreover, the neighbor table entries used for normal communication between nodes within the cloud platform system can be configured as static routing tables, and the static routing tables contain routing information between different cloud platform nodes in the same cloud platform system. Therefore, even when different cloud platform systems are interconnected and network address conflicts occur, the nodes within the same cloud platform system can still communicate normally based on the static routing table, avoiding problems such as incorrect data forwarding and service interruption between different cloud platform systems.
[0006] In a possible implementation, after the second node receives the first packet from the first node, if the first identification information is different from the second identification information of the second node, the second node determines that the first node and the second node belong to different cloud platform systems.
[0007] In this method, the second node determines that the first node and the second node belong to different cloud platform systems through the identification information carried in the first packet. Optionally, the second node does not update the static routing table of the second node. For example, the routing information of the first node will not be added to the static routing table of the second node, thus avoiding incorrect data forwarding.
[0008] In a possible implementation, if the second node determines that the first node and the second node belong to different cloud platform systems, the second node sends the first indication information to the first node, and the first indication information indicates that the first node and the second node belong to different cloud platform systems.
[0009] In this method, the first indication information is introduced to feedback to the node sending the packet whether the node sending the packet and the node receiving the packet belong to the same cloud platform system. For example, when the first node receives the first indication information sent by the second node, it can determine that the first node and the second node belong to different cloud platform systems.
[0010] In a possible implementation, the second node receives the second packet from the third node, and the second packet does not include identification information. The second node discards the second packet.
[0011] In this method, for a second message received by a second node from other nodes (such as a third node in a second cloud platform system), if the message does not carry the identification information of the cloud platform system, the second node discards the message, and the static routing table of the second node is not updated, thus avoiding incorrect data forwarding.
[0012] In a possible implementation, the routing information of the first node includes the Internet protocol (IP) address of the first node and the media access control (MAC) address of the first node.
[0013] In a possible implementation, the first identification information or the second identification information is at least one of identity information, certificate password, or key.
[0014] In a possible implementation, the priority of the routing information in the static routing table of the second node is higher than the priority of the routing information of the third message, and the routing information of the third message is configured based on the Address Resolution Protocol or the Neighbor Discovery Protocol.
[0015] In this method, the priority of the routing information in the static routing table is higher than the priority of the routing information configured based on the Address Resolution Protocol or the Neighbor Discovery Protocol. Therefore, the cloud platform node cannot update the static routing table according to the routing information configured based on the Address Resolution Protocol or the Neighbor Discovery Protocol. For example, assuming that the routing information of the third message is configured based on the Address Resolution Protocol or the Neighbor Discovery Protocol, after the second node receives the third message, the second node does not update the static routing table of the second node based on the routing information of the third message, thus avoiding incorrect data forwarding.
[0016] In a second aspect, the present application provides a communication method. This method is executed by the first node, or by a component of the first node (such as a processor, a chip, or a chip system, etc.), and can also be executed by a logic module that can implement all or part of the functions of the first node. For example, the first node can be a cloud platform node, and a cloud platform node refers to a network device or a server of a cloud computing network infrastructure. Among them, the first node generates a first message, and the first message includes the routing information of the first node and the first identification information of the first node; the first identification information indicates that the first node belongs to the first cloud platform system. The first node sends the first message.
[0017] In this method, identification information is introduced to distinguish packets from different cloud platform systems. For example, the first identification information is the identification information identifying the first cloud platform system, and each cloud platform node in the first cloud platform system includes the first identification information (therefore, the packets sent by each cloud platform node also include the first identification information), so as to distinguish which cloud platform system the node sending the packet belongs to through the identification information in the packet. If the node sending the packet and the node receiving the packet are cloud platform nodes of the same cloud platform system, the packet can be normally forwarded between them, thus avoiding the problems of incorrect data forwarding and service interruption between different cloud platform systems.
[0018] In a possible implementation manner, the routing information of the first node includes the IP address of the first node and the MAC address of the first node.
[0019] In a possible implementation manner, the first identification information is at least one of identity information, certificate password, or key.
[0020] In a third aspect, a system method provided by the present application is implemented through the interaction between a first node and a second node. Among them, the second node can be called the first communication device, and the first node can be called the second communication device. For example, the first node can be a virtual machine, and the second node can be a server. The communication method includes the following steps: the first node sends a first packet, and the first packet includes the routing information of the first node and the first identification information of the first node; the first identification information indicates that the first node belongs to the first cloud platform system; correspondingly, the second node receives the first packet. If the first identification information is the same as the second identification information of the second node, the second node updates the static routing table of the second node according to the routing information of the first node.
[0021] In this method, identification information is introduced to distinguish packets from different cloud platform systems. For example, the first identification information is the identification information identifying the first cloud platform system, and each cloud platform node in the first cloud platform system includes the first identification information (therefore, the packets sent by each cloud platform node also include the first identification information), so as to distinguish which cloud platform system the node sending the packet belongs to through the identification information in the packet. If the node sending the packet and the node receiving the packet are cloud platform nodes of the same cloud platform system, the packet can be normally forwarded between them. Moreover, the neighbor table entries used for normal communication between nodes within the cloud platform system can be configured as a static routing table, and the static routing table only contains the routing information between different cloud platform nodes within the same cloud platform system. Therefore, even when different cloud platform systems are interconnected and a network address conflict occurs, the nodes within the same cloud platform system can still communicate normally based on the static routing table, avoiding the problems of incorrect data forwarding and service interruption between different cloud platform systems.
[0022] Optionally, other implementation manners in this communication method may refer to the corresponding descriptions in the first aspect and the second aspect, which will not be elaborated herein.
[0023] In a fourth aspect, this application provides a communication device. The communication device may be a device such as a server, a virtual machine, or a controller designed based on virtualization technology, or a device of the above-mentioned devices, or a device that can be used in combination with the above-mentioned devices. In a possible implementation manner, the communication device may include functional modules, and the functional modules may be hardware circuits, software, or a combination of hardware circuits and software.
[0024] In a possible implementation manner, the communication device includes a communication unit and a processing unit. Among them, the communication unit is used to receive a first message from a first node, and the first message includes routing information of the first node and first identification information of the first node; the first identification information indicates that the first node belongs to a first cloud platform system. If the first identification information is the same as the second identification information of the second node, the processing unit is used to update the static routing table of the second node according to the routing information of the first node.
[0025] In a possible implementation manner, the processing unit is further used to determine that the first node and the second node belong to different cloud platform systems if the first identification information is different from the second identification information of the second node.
[0026] In a possible implementation manner, the communication unit is further used to send first indication information to the first node, and the first indication information indicates that the first node and the second node belong to different cloud platform systems.
[0027] In a possible implementation manner, the communication unit is further used to receive a second message from a third node, and the second message does not include identification information. The communication unit is further used to discard the second message.
[0028] In a possible implementation manner, the routing information of the first node includes the IP address of the first node and the MAC address of the first node.
[0029] In a possible implementation manner, the first identification information or the second identification information is at least one of identity information, a certificate password, or a key.
[0030] In a possible implementation manner, the priority of the routing information in the static routing table of the second node is higher than the priority of the routing information of a third message, and the routing information of the third message is configured based on the Address Resolution Protocol or the Neighbor Discovery Protocol.
[0031] In a fifth aspect, the present application provides a communication device. The communication device may be a device such as a server, virtual machine, or controller designed based on virtualization technology, or a device of the above-mentioned devices, or a device that can be used in combination with the above-mentioned devices. In a possible implementation, the communication device may include functional modules, which may be hardware circuits, software, or a combination of hardware circuits and software.
[0032] In a possible implementation, the communication device includes a communication unit and a processing unit. The processing unit is configured to generate a first message, where the first message includes routing information of a first node and first identification information of the first node; the first identification information indicates that the first node belongs to a first cloud platform system. The communication unit is configured to send the first message.
[0033] In a possible implementation, the routing information of the first node includes the IP address of the first node and the MAC address of the first node.
[0034] In a possible implementation, the first identification information is at least one of identity information, certificate password, or key.
[0035] For the fourth and fifth aspects, as an example, the processing unit may be a processor, and the communication unit may be a transceiver unit, transceiver, or communication interface. It can be understood that when the communication device is a communication device (such as a terminal or network device), the communication unit may be a transceiver in the communication device (for example, the transceiver includes a transmitter and a receiver), and is implemented through, for example, an antenna, feeder, and codec in the communication device. Or, if the communication device is a chip provided in a device, the processing unit may be a processing circuit, logic circuit, etc. of the chip, and the communication unit may be an input / output interface of the chip, such as an input / output circuit, pin, etc.
[0036] In a sixth aspect, the present application provides a communication device, including: a processor configured to execute instructions; optionally, the communication device further includes a memory for storing the instructions, and when the instructions are executed by the processor, the communication device is caused to implement at least one of the following: the methods in the first aspect and any possible implementation of the first aspect, and the methods in the second aspect and any possible implementation of the second aspect. Optionally, the processor and the memory are coupled.
[0037] In a seventh aspect, the present application provides a computer-readable storage medium, on which instructions are stored, and when the instructions run on a computer, the computer is caused to execute at least one of the following: the methods in the first aspect and any possible implementation of the first aspect, and the methods in the second aspect and any possible implementation of the second aspect.
[0038] In an eighth aspect, the present application provides a chip system. The chip system includes a processor and an interface. Optionally, it may further include a memory for implementing at least one of the following: the methods in the first aspect and any possible implementation manners of the first aspect, and the methods in the second aspect and any possible implementation manners of the second aspect. The chip system may be composed of chips or may include chips and other discrete devices.
[0039] In a ninth aspect, the present application provides a computer program product including instructions that, when run on a computer, cause the computer to execute at least one of the following: the methods in the first aspect and any possible implementation manners of the first aspect, and the methods in the second aspect and any possible implementation manners of the second aspect.
[0040] In a tenth aspect, the present application provides a communication system including at least one of the devices or apparatuses in the fourth aspect to the sixth aspect above, such that the at least one device or apparatus executes at least one of the following: the methods in the first aspect and any possible implementation manners of the first aspect, and the methods in the second aspect and any possible implementation manners of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic diagram of a communication system provided by the present application;
[0042] Figure 2 It is a schematic flowchart of a communication method provided by the present application;
[0043] Figure 3 It is a schematic flowchart of another communication method provided by the present application;
[0044] Figure 4 It is a schematic diagram of a communication device provided by the present application;
[0045] Figure 5 It is a schematic diagram of another communication device provided by the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0046] In the embodiments of the present application, "the present" may indicate that the related objects before and after are in an "or" relationship. For example, A / B may represent A or B; "and / or" can be used to describe three relationships of related objects. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. Here, A and B can be singular or plural. To facilitate the description of the technical solutions in the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" may be used to distinguish technical features with the same or similar functions. These terms such as "first" and "second" do not limit the quantity and execution order, and these terms such as "first" and "second" do not necessarily limit to be different. In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" should not be interpreted as being more preferred or having more advantages than other embodiments or design solutions. Using words such as "exemplary" or "for example" aims to present relevant concepts in a specific way for easy understanding.
[0047] Next, the technical solutions in the embodiments of the present application will be described with reference to the accompanying drawings in the embodiments of the present application.
[0048] I. For ease of understanding, the definitions of related terms involved in the present application are introduced in detail below:
[0049] 1. Network Function Virtualization (NFV) technology: Migrate the functions of each network element used in a telecommunications network from the current dedicated hardware platform to a general connection-oriented transfer service (COTS) server. By using NFV technology, each network element used in a telecommunications network is transformed into an independent application, which can be flexibly deployed on a unified infrastructure platform built on other devices such as standard servers, storage, and switches. Among them, the basis of NFV technology includes cloud computing technology and virtualization technology. General COTS computing / storage / network and other hardware devices can be decomposed into various virtual resources through virtualization technology for various upper-layer applications to use. Through virtualization technology, the decoupling between applications and hardware is achieved, greatly increasing the supply speed of virtual resources. Through cloud computing technology, the elastic scaling of applications can be realized, making the virtual resources match the service load, not only improving the utilization efficiency of virtual resources, but also improving the response rate of the system.
[0050] 2. Cloud platform node: It refers to the network devices or servers of the cloud computing network infrastructure. The types of cloud platform nodes include cloud platform management devices and cloud platform network devices. For example, cloud platform management devices can include servers and controllers, etc.; cloud platform network devices can include servers and virtual machines, etc.
[0051] Optionally, the network connecting the cloud platform management device and the cloud platform network device is called the cloud platform management plane network. The cloud platform management plane network can implement cloud platform management operations and is mainly used to manage various operations and resources of the cloud platform. The cloud platform management plane network is usually a layer 2 network, and the management network protocol (Internet protocol, IP) address generally uses the default planned private IP address.
[0052] 3. Cloud platform system: Each cloud platform system can include one or more cloud platform nodes, and there is data isolation between different cloud platform systems. Nodes in different cloud platform systems will not transmit data to each other. For example, assume that the first cloud platform system includes the first node and the second cloud platform system includes the second node. When the two cloud platform systems are transmitting data normally, data interaction cannot occur between the first cloud platform system and the second cloud platform system, that is, data cannot be transmitted between the first node and the second node. Cloud platform nodes generally use the default planned private IP address. Optionally, different cloud platform nodes belonging to different cloud platforms may be configured with the same IP address.
[0053] 4. Static routing table: A fixed routing table is set in advance by the system administrator, generally preset according to the network configuration during system installation, and it will not change with the change of the network structure. The static routing table is mainly used to record the IP address of a device and the corresponding media access control (MAC) address. For example, the static routing table of the second node contains the routing information of the first node in the second cloud platform system, so that the second node can communicate with the first node based on the routing information of the first node in the static routing table. The static routing table in this application is obtained by the cloud platform nodes in the cloud platform system through the method of this application, and the priority of the static routing table is higher than that of the dynamic routing table.
[0054] 5. Dynamic routing table: A routing table generated based on standard network protocols such as the address resolution protocol (ARP) and the neighbor discovery protocol (ND) is called a dynamic routing table.
[0055] Among them, the ARP protocol is a protocol used to convert an IP address to a MAC address in Internet protocol version 4 (IPv4). It is mainly used to provide the correspondence between the IP address and the MAC address of devices in a local area network. The ARP protocol enables different devices to obtain the corresponding MAC address according to the IP address of the peer device during network communication, so as to ensure that data packets can be accurately transmitted to the peer device. Among them, the ND protocol is a neighbor discovery protocol that provides the correspondence between IPv6 addresses and MAC addresses in Internet protocol version 6 (IPv6). It is mainly used for neighbor discovery, address resolution, router discovery, redirection, etc. The ND protocol can also be used to provide the correspondence between the IPv6 address and the MAC address of devices in a local area network, so that different devices can obtain the corresponding MAC address according to the IPv6 address of the peer device during network communication, so as to ensure that data packets can be accurately transmitted to the peer device.
[0056] II. For the convenience of understanding the embodiments of the present application, the communication method provided by the embodiments of the present application will be described below.
[0057] 1. Communication system:
[0058] Figure 1 FIG. is a schematic diagram of a communication system provided by the present application. The communication system includes a cloud platform system 11 and a cloud platform system 12 composed of one or more cloud platform nodes. It can be understood that in this communication system, the present application does not limit the number of cloud platform nodes. As Figure 1 shown, the cloud platform system 11 may specifically include nodes 11a, 11b, 11c, and 11d. The cloud platform system 12 may specifically include nodes 12a, 12b, 12c, and 12d. Among them, the node 11a and the node 12a are respectively the cloud platform management devices in the cloud platform system 11 and the cloud platform system 12, and the cloud platform management device is connected to each cloud platform network device in the cloud platform system. The nodes 11b, 11c, and 11d are the cloud platform network devices of the cloud platform system 11, and the nodes 12b, 12c, and 12d are the cloud platform network devices of the cloud platform system 12. Among them, the cloud platform management device and the cloud platform network device are collectively referred to as cloud platform nodes.
[0059] Optionally, the cloud platform management plane network refers to the network used to connect the cloud platform management device and the cloud platform network device within the same cloud platform system; for example, the cloud platform management plane network 11e is the cloud platform management plane network of the cloud platform system 11, and the cloud platform management plane network 12e is the cloud platform management plane network of the cloud platform system 12.
[0060] Among them, data cannot be exchanged between cloud platform nodes of different cloud platform systems. For example, in cloud platform system 11, any two cloud platform nodes among nodes 11a, 11b, 11c, and 11d can achieve point-to-point communication through network connection. Specifically, point-to-point communication can be carried out through a wired communication link or a wireless communication link. However, the nodes within cloud platform system 11 cannot communicate with other nodes outside cloud platform system 11 (for example, nodes 12a, 12b, 12c, or 12d in cloud platform system 12 as shown in Figure 1 .
[0061] It should be noted that Figure 1 nodes 11a, 11b, 11c, and 11d in cloud platform system 11 shown in
[0062] and nodes 12a, 12b, 12c, and 12d in cloud platform system 12 can all be independent physical servers, virtual machines, or controllers, and can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (CDN), and big data.
[0062] In Figure 1 the communication system shown in nodes 11d and 12b belong to cloud platform system 11 and cloud platform system 12 respectively; assume that the IP addresses of nodes 11d and 12b are the same. Due to a network configuration error, data can be transmitted between cloud platform system 11 and cloud platform system 12. Then, for nodes 11d and 12b with the same IP address, node 11d may receive data sent to node 12b, resulting in node 12b not receiving the data, thus causing problems such as incorrect data forwarding. Therefore, the present application provides a communication method that can enable nodes within the same cloud platform system to still communicate normally based on a static routing table even when different cloud platform systems are interconnected and a network address conflict occurs, avoiding problems such as incorrect data forwarding and service interruption between different cloud platform systems.
[0063] 2. The communication method provided by the present application:
[0064] Figure 2 is a schematic flowchart of a communication method provided by the present application. This method can be implemented through the interaction between a first node and a second node. For example, the first node or the second node is a cloud platform network device in a cloud platform system (such as a server or a virtual machine). Another example is that the first node is a cloud platform management device in a cloud platform system, and the second node is a cloud platform network device in a cloud platform system. This method includes but is not limited to the following steps:
[0065] S201, the first node sends a first message; correspondingly, the second node receives the first message.
[0066] Wherein, the first message includes the routing information of the first node and the first identification information of the first node; the first identification information indicates that the first node belongs to the first cloud platform system.
[0067] Wherein, the routing information of the first node includes the IP address of the first node and the MAC address of the first node, so as to indicate the source IP address and source MAC address of the first message. For example, the routing information of the first node includes the IP address a of the first node and the MAC address b of the first node, so as to indicate that the source IP address and source MAC address of the first message are the IP address a and the MAC address b respectively.
[0068] Wherein, the first identification information of the first node is the identification information generated by the first cloud platform system for uniquely identifying the first cloud platform system, and each node in the first cloud platform system carries the first identification information (wherein, the first node belongs to the first cloud platform system). For example, the first cloud platform system generates the first identification information, and each node (including the first node) in the first cloud platform system carries the first identification information. That is, the cloud platform nodes belonging to the same cloud platform system carry the same identification information.
[0069] Optionally, the cloud platform nodes belonging to different cloud platform systems may carry different identification information. For example, assuming that the first node carries the first identification information and the second node carries the second identification information, it means that the first node and the second node belong to different cloud platform systems. Optionally, the above first identification information or second identification information is at least one of identity information, certificate password, or key.
[0070] S202, if the first identification information is the same as the second identification information of the second node, the second node updates its static routing table according to the routing information of the first node.
[0071] Among them, similar to the definition of the first identification information, the second identification information of the second node is the identification information generated by the second cloud platform system for uniquely identifying the second cloud platform system, and each node in the second cloud platform system carries this second identification information (where the second node belongs to the second cloud platform system). For example, the second cloud platform system generates the second identification information, and each node (including the second node) in the second cloud platform system carries the second identification information. Assume that the first node carries the first identification information, and assume that the first node belongs to the second cloud platform system, then the first identification information and the second identification information are the same identification information. The second node receives the first message sent by the first node, parses the first message to obtain the first identification information, so as to determine that the first identification information carried by the first node is the same as the second identification information of the second node, that is, the first node and the second node belong to the same cloud platform system and can perform data transmission.
[0072] Among them, the static routing table of the second node contains the routing information between different cloud platform nodes in the second cloud platform system, and the second node cannot update the static routing table of the second node according to the routing information configured based on the ARP protocol or ND protocol. For example, based on the above assumed information, the second node determines that the first identification information carried by the first node is the same as the second identification information of the second node, so as to determine that the first node and the second node belong to the same cloud platform system. The second node can update the static routing table of the second node based on the routing information of the first node (for example, add the routing information of the first node to the static routing table of the second node), so that the second node can communicate with the first node based on the static routing table.
[0073] Optionally, assume that the routing information carried in the first message is configured based on the APR protocol or ND protocol, and the priority of this routing information is lower than the priority of the routing information in the static routing table of the second node. Therefore, the second node cannot update the static routing table of the second node based on the routing information in the first message. Optionally, the second node discards the first message. For example, based on the routing information in the first message, the second node can determine that the routing information in the first message is configured based on the APR protocol or ND protocol. Since the priority of the routing information configured based on the APR protocol or ND protocol is lower than the priority of the routing information in the static routing table of the second node, the second node determines that it cannot update the static routing table of the second node based on the routing information in the first message (such as not adding the routing information of the first node to the static routing table of the second node), and the second node discards the first message.
[0074] Optionally, if the first identification information is different from the second identification information of the second node, the specific implementation of S202 can be the following process:
[0075] If the first identification information is different from the second identification information of the second node, the second node determines that the first node and the second node belong to different cloud platform systems.
[0076] For example, assume that the first node belongs to the first cloud platform system and carries the first identification information; the second node belongs to the second cloud platform system and carries the second identification information. Assume that due to a network configuration error, data interaction occurs between the first cloud platform system and the second cloud platform system. The second node receives the first message sent by the first node and parses the first message to obtain the first identification information. The second node determines that the first identification information carried by the first node is different from the second identification information of the second node, so that the second node can determine that the first node and the second node belong to different cloud platform systems. Optionally, the second node discards the first message. For example, when the second node determines that the first node and the second node belong to different cloud platform systems, the second node discards the first message sent by the first node.
[0077] Optionally, if the first identification information is different from the second identification information of the second node, the interaction process between the first node and the second node further includes the following operations:
[0078] The second node sends the first indication information to the first node. Correspondingly, the first node receives the first indication information.
[0079] Wherein, the first indication information is used to indicate that the first node and the second node belong to different cloud platform systems.
[0080] For example, assume that the first node belongs to the first cloud platform system and the second node belongs to the second cloud platform system. Assume that due to a network configuration error, data interaction occurs between the first cloud platform system and the second cloud platform system. The second node receives the first message sent by the first node. When the second node determines that the first node and the second node belong to different cloud platform systems, the second node sends the first indication information to the first node. Correspondingly, the first node receives the first indication information sent by the second node. The first node can determine that the first node and the second node belong to different cloud platform systems based on the first indication information, thus preventing the first node from forwarding data to the second node incorrectly again.
[0081] In this embodiment, identification information is introduced to distinguish packets from different cloud platform systems. For example, the first identification information is the identification information for identifying the first cloud platform system, and each cloud platform node in the first cloud platform system includes the first identification information (therefore, the packets sent by each cloud platform node also include the first identification information), so as to distinguish which cloud platform system the node sending the packet belongs to through the identification information in the packet. If the node sending the packet and the node receiving the packet are cloud platform nodes of the same cloud platform system, the packet can be normally forwarded between them. Moreover, the neighbor table entries used for normal communication between nodes in the cloud platform system can be configured as static routing tables, and the static routing tables contain routing information between different cloud platform nodes in the same cloud platform system. Therefore, even when different cloud platform systems are interconnected and network address conflicts occur, the nodes within the same cloud platform system can still communicate normally based on the static routing tables, avoiding problems such as incorrect data forwarding and service interruption between different cloud platform systems.
[0082] Figure 3 FIG. is a schematic flowchart of another communication method provided by this application, and this method can be implemented through the interaction among the first node, the second node, the third node, and the fourth node. For example, the first node, the second node, the third node, or the fourth node is a cloud platform network device in the cloud platform system (such as a server or a virtual machine). This method includes but is not limited to the following steps:
[0083] S301a, the first node determines the first identification information.
[0084] For example, the first node receives the first identification information from the cloud platform management device in the first cloud platform system, so as to determine the first identification information.
[0085] S301b, the second node determines the second identification information.
[0086] For example, the second node receives the second identification information from the cloud platform management device in the second cloud platform system, so as to determine the second identification information.
[0087] S302, the first node sends the first packet; correspondingly, the second node receives the first packet.
[0088] For the specific implementation manner of S302, reference can be made to the relevant description of S201 in the foregoing embodiment, which will not be elaborated here.
[0089] Optionally, after S302, the interaction between the first node and the second node further includes the following situations:
[0090] Situation 1: If the first identification information is the same as the second identification information of the second node, the operations performed by the second node include:
[0091] S303a. If the first identification information is the same as the second identification information of the second node, the second node updates its static routing table according to the routing information of the first node.
[0092] For the specific implementation of S303a, reference can be made to the relevant description of S202 in the foregoing embodiments, which will not be elaborated here.
[0093] Case 2: If the first identification information is different from the second identification information of the second node, the operations performed by the second node include:
[0094] S303b. If the first identification information is different from the second identification information of the second node, the second node determines that the first node and the second node belong to different cloud platform systems.
[0095] For the specific implementation of S303b, reference can be made to the relevant description of the specific implementation process when the first identification information is different from the second identification information of the second node in the foregoing embodiments, which will not be elaborated here.
[0096] S304b. The second node sends first indication information to the first node.
[0097] S305b. The first node determines that the first node and the second node belong to different cloud platform systems.
[0098] For the specific implementation of S304b and S305b, reference can be made to the relevant description of the interaction process between the first node and the second node when the first identification information is different from the second identification information of the second node in the foregoing embodiments, which will not be elaborated here.
[0099] Optionally, a third node is further introduced in this embodiment. The third node can be a cloud platform network device (such as a server or a virtual machine) in the cloud platform system, or a node in an external network system. The interaction between the second node and the third node includes:
[0100] S306a. The third node sends a second message to the second node, and the second message does not include identification information;
[0101] S307a. The second node discards the second message.
[0102] Among them, the second message does not include identification information, which means that the second message does not include the identification information of any cloud platform system. Therefore, when the second node receives a message without identification information, it cannot determine which cloud platform system the second message comes from. For example, assume that the second node belongs to the second cloud platform system, the third node belongs to the third cloud platform system, and the identification information generated by the third cloud platform system to uniquely identify the third cloud platform system is the third identification information. Assume that due to a network configuration error, data interaction occurs between the second cloud platform system and the third cloud platform system. The second node receives the second message sent by the third node, and the second message does not carry the third identification information of the third cloud platform system. Therefore, when the second node receives the second message sent by the third node, the second node cannot determine which cloud platform system the second message comes from based on the identification information and can choose to discard the second message. Optionally, the above third identification information is at least one of identity information, certificate password, or key. Optionally, the third node can also be a node in an external network system (for example, not a node in a cloud platform system, but sending a message to the second node based on the IP address and MAC address of the second node).
[0103] Optionally, a fourth node is further introduced in this embodiment. Among them, the fourth node is a node in the cloud platform system. The operations performed by the fourth node include:
[0104] S306b. The fourth node sends a fourth message to the second node. The fourth message includes the routing information of the fourth node and the fourth identification information of the fourth node; the fourth identification information indicates that the fourth node belongs to the fourth cloud platform system.
[0105] Among them, the routing information of the fourth node includes the IP address of the fourth node and the MAC address of the fourth node, so as to indicate the source IP address and source MAC address of the fourth message. For example, the routing information of the fourth node includes the IP address m of the fourth node and the MAC address n of the fourth node, so as to indicate that the source IP address and source MAC address of the fourth message are the IP address m and the MAC address n respectively.
[0106] Among them, similar to the definition of the first identification information, the fourth identification information of the fourth node is the identification information generated by the fourth cloud platform system to uniquely identify the fourth cloud platform system, and each node in the fourth cloud platform system carries the fourth identification information (wherein, the fourth node belongs to the fourth cloud platform system). For example, the fourth cloud platform system generates the fourth identification information, and each node (including the fourth node) in the fourth cloud platform system carries the fourth identification information.
[0107] Optionally, after S306b, the interaction between the fourth node and the second node further includes the following situations:
[0108] Case 3: If the fourth identification information is the same as the second identification information of the second node, the operations performed by the second node include:
[0109] S308a, if the fourth identification information is the same as the second identification information of the second node, and the routing information of the fourth node is configured based on the Address Resolution Protocol or the Neighbor Discovery Protocol, the second node does not update the static routing table of the second node.
[0110] Among them, the routing information of the fourth node is configured based on the ARP protocol or the ND protocol, and the priority of this routing information is lower than the priority of the routing information in the static routing table of the second node. Therefore, the second node cannot update the static routing table of the second node based on the routing information of the fourth node, and the second node discards the fourth message. For example, assume that the fourth node carries the fourth identification information, and assume that the fourth node belongs to the second cloud platform system. Then the fourth identification information and the second identification information are the same identification information. The second node receives the fourth message sent by the fourth node and parses the fourth message to obtain the fourth identification information. The second node determines that the fourth identification information carried by the fourth node is the same as the second identification information of the second node, that is, the fourth node and the second node belong to the same cloud platform system. Based on the routing information in the fourth message, the second node can determine that the routing information in the fourth message is configured based on the ARP protocol or the ND protocol. Then the second node cannot update the static routing table of the second node based on the routing information in the fourth message (such as not adding the routing information of the fourth node to the static routing table of the second node), and the second node discards the fourth message. Optionally, the above fourth identification information is at least one of identity information, certificate password, or key.
[0111] Case 4: If the fourth identification information is different from the second identification information of the second node, the operations performed by the second node include:
[0112] S308b, if the fourth identification information is different from the second identification information of the second node, the second node determines that the fourth node and the second node belong to different cloud platform systems, and the second node discards the fourth message.
[0113] For example, assume that due to a network configuration error, data interaction occurs between the fourth cloud platform system and the second cloud platform system. The second node receives the fourth message sent by the fourth node and parses the fourth message to obtain the fourth identification information. The second node determines that the fourth identification information carried by the fourth node is different from the second identification information of the second node, so the second node can determine that the second node and the fourth node belong to different cloud platform systems, and the second node discards the fourth message.
[0114] Figure 4 It is a schematic diagram of a communication device provided by this application. The device may include performing as Figure 2 and Figure 3A module corresponding to each of the methods / operations / steps / actions described in any of the embodiments shown. The module may be a hardware circuit, software, or a combination of a hardware circuit and software.
[0115] The device 400 includes a communication unit 401 and a processing unit 402, which are used to implement the methods executed by each device in the foregoing embodiments. Among them, the communication unit 401 is also called a transceiver unit. The transceiver unit includes a sending unit and a receiving unit. The sending unit is used to send signals, and the receiving unit is used to receive signals.
[0116] In a possible implementation manner, the device may be a server or a virtual machine or a controller, etc. designed based on virtualization technology, or a device for the above-mentioned devices, or a device that can be used in matching with the above-mentioned devices. Specifically, the communication unit 401 is used to receive a first message from a first node. The first message includes routing information of the first node and first identification information of the first node; the first identification information indicates that the first node belongs to a first cloud platform system. If the first identification information is the same as the second identification information of the second node, the processing unit 402 is used to update the static routing table of the second node according to the routing information of the first node.
[0117] Optionally, the processing unit 402 is used to process the information sent or received by the communication unit 401. For example, the processing unit 402 is used to process the first message received by the communication unit 401; if the first identification information is different from the second identification information of the second node, it is determined that the first node and the second node belong to different cloud platform systems.
[0118] In this implementation manner, the specific execution processes of the communication unit 401 and the processing unit 402 may refer to the step descriptions executed by the second node in the foregoing method embodiments and related descriptions, which will not be elaborated here. This method introduces identification information to distinguish messages from different cloud platform systems: for example, the first identification information is the identification information of the first cloud platform system, and each cloud platform node in the first cloud platform system includes the first identification information (therefore, each message sent by each cloud platform node also includes the first identification information), so as to distinguish which cloud platform system the node sending the message belongs to through the identification information in the message. If the node sending the message and the node receiving the message are cloud platform nodes of the same cloud platform system, the message can be normally forwarded between them. Moreover, the neighbor table entries used for normal communication between nodes within the cloud platform system can be configured as a static routing table, and the static routing table contains routing information between different cloud platform nodes in the same cloud platform system. Therefore, even when different cloud platform systems are interconnected and a network address conflict occurs, the nodes within the same cloud platform system can still communicate normally based on the static routing table, avoiding problems such as incorrect data forwarding and service interruption between different cloud platform systems.
[0119] In a possible implementation, the device may be a server, virtual machine, controller, or other device designed based on virtualization technology, or a device of the above-mentioned devices, or a device that can be used in combination with the above-mentioned devices. Specifically, the processing unit 402 is used to generate a first message, and the first message includes the routing information of the first node and the first identification information of the first node; the first identification information indicates that the first node belongs to the first cloud platform system. The communication unit 401 is used to send the first message.
[0120] In this implementation, the specific execution processes of the communication unit 401 and the processing unit 402 may refer to the steps described in the previous method embodiment executed by the first node and the related descriptions, and will not be elaborated here. This method introduces identification information to distinguish messages from different cloud platform systems: for example, the first identification information is the identification information identifying the first cloud platform system, and each cloud platform node in the first cloud platform system includes the first identification information (therefore, the messages sent by each cloud platform node also include the first identification information), so as to distinguish which cloud platform system the node sending the message belongs to through the identification information in the message. If the node sending the message and the node receiving the message are cloud platform nodes of the same cloud platform system, the message can be normally forwarded between the two, thus avoiding the problems of incorrect data forwarding and service interruption between different cloud platform systems.
[0121] In a possible implementation, when the above communication device is a chip, the chip includes a transceiver unit and a processing unit. Among them, the transceiver unit may be an input / output circuit or a communication interface; the processing unit is a processor, microprocessor, integrated circuit, or logic circuit integrated on the chip.
[0122] Figure 5 It is a schematic diagram of another communication device provided by this application. The communication device can be used to execute the steps executed by the first node or the second node in the previous method embodiment, and can refer to the relevant descriptions in the above method embodiment.
[0123] The communication device includes a processor 501. Optionally, the communication device further includes a memory 502 and a transceiver 503.
[0124] In a possible implementation manner, the processor 501, the memory 502, and the transceiver 503 are respectively connected by a bus, and computer instructions are stored in the memory.
[0125] Optionally, the processing unit 402 in the foregoing embodiment may specifically be the processor 501 in this embodiment, so the specific implementation of the processor 501 will not be elaborated here. The communication unit 401 in the foregoing embodiment may specifically be the transceiver 503 in this embodiment, so the specific implementation of the transceiver 503 will not be elaborated here.
[0126] In this application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps, and logic block diagrams disclosed in this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with this application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0127] In this application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., and may also be a volatile memory, such as a random-access memory (RAM). The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in this application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data.
[0128] This application provides another communication device, and this device includes a processor and an interface. Optionally, it further includes a memory. The processor is coupled to the memory, and the processor is used to read and execute computer instructions stored in the memory to implement the communication method in the embodiments as Figure 2 and Figure 3 shown.
[0129] This application provides a computer-readable storage medium. The computer-readable storage medium stores programs or instructions. When the programs or instructions run on a computer, the computer is caused to execute the communication method in the embodiments as Figure 2 and Figure 3 shown.
[0130] This application provides a chip or a chip system. The chip or the chip system includes at least one processor and an interface. The interface and the at least one processor are interconnected by a line. The at least one processor is used to run a computer program or instruction to execute the communication method in the embodiments as Figure 2 and Figure 3 shown.
[0131] Among them, the interface in the chip may be an input / output interface, a pin, a circuit, etc.
[0132] The above chip system can be a system on chip (SOC), or a baseband chip, etc. The baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, an interface module, etc.
[0133] In one implementation, the chip or chip system described above in the present application further includes at least one memory, and instructions are stored in the at least one memory. The memory can be an internal storage unit of the chip, for example, a register, a cache, etc., or a storage unit of the chip (for example, a read-only memory, a random access memory, etc.).
[0134] A computer program product is provided in the present application. The computer program product includes instructions. When the instructions run on a computer, the computer is caused to execute the communication method in the embodiments as Figure 2 and Figure 3 shown in the embodiments.
[0135] An embodiment of the present application further provides a communication system, which includes a first communication device and a second communication device. The first communication device is configured to execute all or part of the steps executed by the second node in the foregoing embodiments. The second communication device is configured to execute all or part of the steps executed by the first node in the foregoing embodiments.
[0136] The technical solution provided by the present application can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a terminal, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a server, or a data center to another website, a computer, a server, or a data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or a wireless manner (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. that includes one or more available media integrated. The available media can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital video disc (DVD)), or a semiconductor medium, etc.
[0137] In this application, on the premise of no logical contradiction, the embodiments can refer to each other. For example, the methods and / or terms between method embodiments can refer to each other, for example, the functions and / or terms between apparatus embodiments can refer to each other, for example, the functions and / or terms between apparatus embodiments and method embodiments can refer to each other.
[0138] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these changes and modifications.
Claims
1. A communication method, characterized in that, comprising: receiving a first message from a first node, the first message including routing information of the first node and first identification information of the first node; the first identification information indicating that the first node belongs to a first cloud platform system; if the first identification information is the same as second identification information of a second node, updating a static routing table of the second node according to the routing information of the first node.
2. The method according to claim 1, characterized in that, after receiving the first message from the first node, the method further comprises: if the first identification information is not the same as the second identification information of the second node, determining that the first node and the second node belong to different cloud platform systems.
3. The method according to claim 2, characterized in that, the method further comprises: sending first indication information to the first node, the first indication information indicating that the first node and the second node belong to different cloud platform systems.
4. The method according to any one of claims 1 to 3, characterized in that, the method further comprises: receiving a second message from a third node, the second message not including identification information; discarding the second message.
5. The method according to claim 1, characterized in that, the routing information of the first node includes an Internet Protocol (IP) address of the first node and a Media Access Control (MAC) address of the first node.
6. The method according to claim 1 or 2, characterized in that, the first identification information or the second identification information is at least one of identity information, a certificate password, or a key.
7. The method according to claim 1, characterized in that, the priority of the routing information in the static routing table of the second node is greater than the priority of the routing information of a third message, and the routing information of the third message is configured based on an Address Resolution Protocol (ARP) or a Neighbor Discovery Protocol (NDP).
8. A communication method, characterized in that, comprising: generating a first message, the first message including routing information of a first node and first identification information of the first node; the first identification information indicating that the first node belongs to a first cloud platform system; sending the first message.
9. The method according to claim 8, characterized in that, the routing information of the first node includes an IP address of the first node and a MAC address of the first node.
10. The method according to claim 8, characterized in that, the first identification information is at least one of identity information, a certificate password, or a key.
11. A communication method, characterized in that, comprising: a first communication device executing the method according to any one of claims 1 to 7; a second communication device executing the method according to any one of claims 8 to 10.
12. A communication device, characterized in that, comprising a communication unit and a processing unit, the communication unit and the processing unit being configured to execute the method according to any one of claims 1 to 7 or 8 to 10.
13. A communication device, characterized in that, comprising: A processor, configured to cause the communication device to execute the method according to any one of claims 1 to 7 or 8 to 10 through logic circuits and / or by executing instructions.
14. The apparatus according to claim 13, wherein, it further comprises a memory for storing the instructions.
15. A computer-readable storage medium, wherein, instructions are stored on the computer-readable storage medium, and when the instructions are run on a computer, the computer is caused to execute the method according to any one of claims 1 to 7 or 8 to 10.
16. A chip system, wherein, the chip system comprises a processor and an interface, and the processor is configured to execute a computer program to cause the chip system to implement the method according to any one of claims 1 to 7 or 8 to 10.
17. A computer program product, wherein, it comprises instructions, and when the instructions are run on a computer, the computer is caused to execute the method according to any one of claims 1 to 7 or 8 to 10.
18. A communication system, wherein, the communication system comprises an apparatus for executing the method according to any one of claims 1 to 7, and an apparatus for executing the method according to any one of claims 8 to 10.
Citation Information
Cited By
Communication method, and apparatus
EP4808072A1
Communication method, and apparatus
WO2025113091A1