Method, device, medium and equipment for realizing roundtrip plane consistency of multi-plane IP (Internet Protocol) network

By dividing planes in the multi-plane IP network, assigning identifiers and using symmetric hashing algorithms to design routing rules, the problems of load imbalance, fault diffusion and unstable delay in the network are solved, and round-trip planes of the multi-plane IP network are realized. Consistency improves network performance and user experience.

CN118540260APending Publication Date: 2024-08-23CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410730072.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing multi-plane IP network, the inability to synchronize data or status information between different planes in a timely and accurate manner leads to load imbalance, fault diffusion and unstable latency. It is impossible to achieve round-trip plane consistency, which affects network performance and user experience.

Method used

By dividing the network into different planes, assigning unique identifiers, and using symmetric hashing algorithms to design routing rules to ensure outbound and return routing consistency for target data packets, multi-plane IP network round-trip plane consistency is achieved.

Benefits of technology

It achieves load balancing of multi-plane networks, improves fault tolerance and network reliability, reduces data packet transmission delays, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540260A
    Figure CN118540260A
Patent Text Reader

Abstract

The invention discloses a method, a device, a medium and equipment for realizing roundtrip plane consistency of a multi-plane IP (Internet Protocol) network, and the method comprises the following steps: firstly, dividing the network into different planes to obtain a plurality of network planes; distributing a unique identifier for each network plane to obtain a network plane identifier; then determining a target Hash algorithm, and uniformly configuring the target Hash algorithm for the network equipment; the target Hash algorithm is a symmetric Hash algorithm; then designing a routing rule based on the network plane identifier and a target hash algorithm; the routing rule is used for keeping routing of an outbound route and a return route of a target data packet consistent; and finally, based on a routing rule, guiding the target data packet to a target plane so as to realize multi-plane IP network round-trip plane consistency. According to the method, the round-trip messages of the same session can be conveniently and extendibly selected to the same one of a plurality of network planes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication network technology, and in particular to a method, device, medium and equipment for achieving round-trip plane consistency of a multi-plane IP network. Background Art

[0002] In a multi-plane IP network, because different planes cannot synchronize data or status information in a timely and accurate manner, transmitting data in a multi-plane IP network may cause the following disadvantages:

[0003] (1) Load imbalance: Some paths may be overloaded, resulting in some network resources being overused while other resources are idle, affecting the overall network performance and resource utilization.

[0004] (2) Fault spread: A fault on a path may cause the fault to spread, affecting the normal operation of the entire network.

[0005] (3) Unstable latency: When the quality and performance of different paths vary greatly, the transmission latency of data packets will fluctuate, affecting the user experience, especially for applications that require high network stability.

[0006] The hashing technology used by existing network devices may not have any symmetry, which means that even if the network topologies at both ends are completely similar, the round-trip messages cannot be guaranteed to go on the same plane. Such round-trip inconsistency / asymmetry is Figure 2 As shown;

[0007] Even if the hashing technology used is symmetrical, there is a prerequisite for getting the same result after swapping the source / destination IP information: the number of equivalent routes must be the same. Since the scale and flow direction of each end network are different, the interconnection bandwidth and number of links with the network plane cannot be the same. Figure 3 In the scenario where the total number of connections at both ends and their distribution between planes are inconsistent, the number of equivalent routes seen by the two end networks may be completely different. Therefore, it is still impossible to achieve the same hash result, and it is impossible to achieve round-trip on the same plane.

[0008] There is also an outbound source address NAT method. Although this method can better ensure plane symmetry, the many-to-one NAT technology is a typical stateful operation with high overhead, which is not suitable for the multi-plane architecture commonly used in backbone networks.

[0009] In the prior art, there is no technology that can achieve round-trip plane consistency of a multi-plane IP network in a convenient and scalable manner. Summary of the invention

[0010] The technical problem to be solved by the present invention is to address the above-mentioned deficiencies in the prior art and propose a method, device, medium and equipment for achieving round-trip plane consistency of a multi-plane IP network. The method can conveniently and scalably achieve round-trip plane consistency of a multi-plane network.

[0011] In a first aspect, the present invention provides a method for achieving round-trip plane consistency of a multi-plane IP network, the method comprising the following steps:

[0012] Step S1: Divide the network into different planes to obtain multiple network planes; and assign a unique identifier to each network plane to obtain a network plane identifier;

[0013] Step S2: determining a target hash algorithm, and uniformly configuring the target hash algorithm for network devices;

[0014] Wherein, the target hash algorithm is a symmetric hash algorithm;

[0015] Step S3: Designing routing rules based on the network plane identifier and the target hash algorithm; the routing rules are used to keep the outbound and return routes of the target data packet consistent;

[0016] Step S4: Based on the routing rules, the target data packet is directed to the target plane to achieve round-trip plane consistency of the multi-plane IP network.

[0017] Furthermore, in step S1, the network is divided into different planes to obtain multiple network planes, which specifically includes the following steps:

[0018] Step S11: Determine the division criteria; the division criteria are divided according to different requirements, specifically including functional division criteria, security requirement division criteria, and performance requirement division criteria;

[0019] Step S12: Divide the network into different planes according to the division standard to obtain multiple network planes;

[0020] The step S12 specifically includes:

[0021] Divide the network into core plane, edge plane, and storage plane according to the functional division standard; or,

[0022] Divide the network into public plane, DMZ plane, and internal plane according to security requirements; or,

[0023] According to the performance requirements, the network is divided into high-performance computing plane and data transmission plane.

[0024] Furthermore, in step S2, determining the target hash algorithm specifically includes the following steps:

[0025] Step S21: Obtain target data packet;

[0026] Step S22: extracting and identifying characteristic data required for calculating the hash value from the target data packet to obtain the characteristics of the target data packet;

[0027] Step S23: Selecting a hash algorithm that matches the target data packet characteristics and the target data packet routing requirements as the target hash algorithm;

[0028] Among them, the data packet characteristics specifically include data packet size, data packet structure, and data packet transmission rules; the target data packet routing requirements specifically include load balancing requirements, routing stability requirements, and routing efficiency requirements.

[0029] Furthermore, in step S3, based on the network plane identifier and the target hash algorithm, a routing rule is designed, which specifically includes the following steps:

[0030] Calculate the hash value of the target data packet according to the target hash algorithm to obtain the hash value of the target data packet;

[0031] Establishing a mapping relationship between a target data packet hash value and a network plane identifier;

[0032] Build routing strategies based on mapping relationships;

[0033] Based on the routing strategy, a hash distribution strategy is formulated so that data packets can be accurately guided to the target network plane according to the hash value, thereby designing routing rules.

[0034] In a second aspect, the present invention provides a device for realizing round-trip plane consistency of a multi-plane IP network, the device comprising:

[0035] The first processing unit is used to divide the network into different planes to obtain multiple network planes, and to assign a unique identifier to each network plane to obtain a network plane identifier.

[0036] a second processing unit, connected to the first processing unit, for determining a target hash algorithm and for uniformly configuring the target hash algorithm for network devices;

[0037] Wherein, the target hash algorithm is a symmetric hash algorithm;

[0038] A design unit, connected to the second processing unit, for designing a routing rule based on a network plane identifier and a target hash algorithm; the routing rule is used to keep the outbound and return routes of the target data packet consistent;

[0039] The guiding unit is connected to the design unit and is used to guide the target data packet to the target plane based on the routing rules to achieve the round-trip plane consistency of the multi-plane IP network.

[0040] Furthermore, the first processing unit includes:

[0041] The first determination module is used to determine the division standard; the division standard is divided according to different requirements, specifically including the function division standard, the security requirement division standard, and the performance requirement division standard;

[0042] Divide modules;

[0043] The division module includes a first division submodule, a second division submodule and a third division submodule;

[0044] The first division submodule is connected to the first determination module and is used to divide the network into a core plane, an edge plane, and a storage plane according to a functional division standard;

[0045] The second division submodule is connected to the first determination module and is used to divide the network into a public plane, a DMZ plane, and an internal plane according to the security requirement division standard;

[0046] The third division submodule is connected to the first determination module, and is used to divide the network into a high-performance computing plane and a data transmission plane according to a performance requirement division standard.

[0047] Further, the second processing unit includes a second determination module, and the second determination module is used to determine a target hash algorithm;

[0048] The second determining module comprises:

[0049] The acquisition submodule is used to acquire the target data packet;

[0050] A processing submodule, connected to the acquisition submodule, for extracting and identifying characteristic data required for calculating the hash value from the target data packet, and obtaining the characteristics of the target data packet;

[0051] A selection submodule, connected to the processing submodule, for selecting a hash algorithm that matches the target data packet characteristics and the target data packet routing requirements as a target hash algorithm;

[0052] Among them, the data packet characteristics specifically include data packet size, data packet structure, and data packet transmission rules; the target data packet routing requirements specifically include load balancing requirements, routing stability requirements, and routing efficiency requirements.

[0053] Furthermore, the design unit includes:

[0054] A calculation module, used to calculate the hash value of the target data packet according to the target hash algorithm to obtain the hash value of the target data packet;

[0055] A mapping module, connected to the calculation module, for establishing a mapping relationship between a target data packet hash value and a network plane identifier;

[0056] A construction module, connected to the mapping module, for constructing a routing strategy based on the mapping relationship;

[0057] The formulation module is connected to the construction module and is used to formulate a hash distribution strategy based on the routing strategy so that the data packet can be accurately guided to the target network plane according to the hash value, thereby designing the routing rules.

[0058] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the method for achieving round-trip plane consistency of a multi-plane IP network according to the first aspect.

[0059] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for achieving round-trip plane consistency of a multi-plane IP network as described in the first aspect is implemented.

[0060] Beneficial effects of the present invention:

[0061] 1. The present invention is not only convenient and concise, but also scalable to achieve consistency of multi-plane network round-trip planes.

[0062] 2. The present invention can better share traffic and improve the overall performance of the network.

[0063] 3. The present invention improves the fault tolerance capability, that is, when a certain path fails, it can quickly switch to other paths, thereby improving the reliability of the network.

[0064] 4. The present invention can reduce the transmission delay of data packets and improve user experience by selecting the best planar path. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 A schematic diagram of a method for round-trip plane consistency of a multi-plane IP network in an embodiment of the present invention;

[0066] Figure 2 It is a schematic diagram of the flow going back and forth through different planes in the background technology of the present invention;

[0067] Figure 3 A schematic diagram of a multi-plane network architecture in the background technology of the present invention;

[0068] Figure 4 A schematic diagram of a network plane in an embodiment of the present invention;

[0069] Figure 5 A schematic diagram of achieving round-trip plane consistency in an embodiment of the present invention;

[0070] Figure 6 A schematic diagram of a device for round-trip plane consistency of a multi-plane IP network according to an embodiment of the present invention;

[0071] Among them, the figure numerals are: 10, first processing unit, 20, second processing unit, 30, design unit, 40, guiding unit. DETAILED DESCRIPTION

[0072] In order to enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0073] It should be understood that the specific embodiments and drawings described herein are only used to explain the present invention rather than to limit the present invention.

[0074] It can be understood that, in the absence of conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other.

[0075] It can be understood that, for the convenience of description, the drawings of the present invention only show the parts related to the present invention, while the parts irrelevant to the present invention are not shown in the drawings.

[0076] It can be understood that each unit and module involved in the embodiments of the present invention may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.

[0077] It can be understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.

[0078] It is understood that the flowcharts and block diagrams of the present invention illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present invention. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.

[0079] It can be understood that the units and modules involved in the embodiments of the present invention can be implemented by software or hardware. For example, the units and modules can be located in a processor.

[0080] Embodiment 1:

[0081] like Figure 1 As shown, this embodiment provides a method for achieving round-trip plane consistency of a multi-plane IP network, the method comprising the following steps:

[0082] Step S1: Divide the network into different planes to obtain multiple network planes; and assign a unique identifier to each network plane to obtain a network plane identifier.

[0083] As a specific implementation, in step S1, dividing the network into different planes to obtain multiple network planes specifically includes the following steps:

[0084] Step S11: Determine the division criteria; the division criteria include function division criteria, security requirement division criteria, and performance requirement division criteria;

[0085] Step S12: Divide the network into different planes according to the division standard to obtain multiple network planes;

[0086] The step S12 specifically includes:

[0087] Divide the network into core plane, edge plane, and storage plane according to the functional division standard; or,

[0088] Divide the network into public plane, DMZ plane, and internal plane according to security requirements; or,

[0089] According to the performance requirements, the network is divided into high-performance computing plane and data transmission plane.

[0090] (1) According to the functional division standard, the network is divided into the core plane, edge plane, and storage plane. The specific description and implementation are as follows:

[0091] Core Plane:

[0092] Function: The core plane is the backbone of the network, responsible for carrying large amounts of data traffic to transmit data quickly. This layer usually involves high-speed, high-capacity routers and switches to connect different edge devices, data centers, servers, etc.

[0093] Features: The core plane is designed for high capacity, high reliability, and high performance. It is mainly used for large-capacity data transmission and hopes to maintain smooth data transmission speed.

[0094] Edge Plane:

[0095] Function: The edge plane connects user devices (such as computers, mobile phones, sensors, etc.) to the network and is responsible for processing access requests and forwarding user data. The edge plane is usually located at the edge of the network and is directly connected to the terminal device.

[0096] Features: The edge plane needs to take into account user experience, security, and data processing capabilities, and also needs to have a certain level of intelligence to handle requests from user devices.

[0097] Storage Plane:

[0098] Function: The storage plane is used to store data or provide storage services, including file storage, database storage, etc. The storage plane can be a dedicated storage device or storage system, or it can be a storage function integrated in a network device.

[0099] Features: The storage plane needs to consider the security, reliability, and performance of data to ensure that the stored data can be efficiently accessed and managed.

[0100] Dividing the network into the core plane, edge plane, and storage plane usually requires considering the overall network architecture, functional requirements, and device deployment locations. This implementation provides a method as follows:

[0101] Core Plane Division:

[0102] Determine the backbone paths of the network: First, you need to determine the backbone paths in the network that carry a large amount of data transmission. These paths usually connect different departments, office areas or data centers.

[0103] Deploy high-capacity and high-speed equipment: Deploy high-capacity and high-speed routers and switches on these backbone paths to quickly transmit data packets and handle large amounts of data traffic.

[0104] Consider redundancy and resilience: To improve network reliability, the core plane usually considers building redundant links and backup paths to cope with device failures or changes in network topology.

[0105] Edge Plane Division:

[0106] Identify user connection points: determine the key access points that connect user terminal devices, such as switches, wireless access points, etc.

[0107] Deploy edge routers or switches: Deploy edge routers or switches at these access points to process requests from user devices, connect to external networks, and perform policy control.

[0108] Consider security and QoS requirements: The edge plane needs to consider factors such as network security, quality of service (QoS), and user experience to ensure the security and performance of user connections.

[0109] Storage Plane Division:

[0110] Determine the location of storage resources: Identify the location of storage resources in the network, including storage devices such as file servers and database servers.

[0111] Deploy storage devices: Deploy storage servers, storage arrays and other devices at storage resource locations to store and manage data.

[0112] Consider backup and disaster recovery: The storage plane usually needs to consider aspects such as data backup and disaster recovery to ensure data security and reliability.

[0113] (2) According to the security requirements classification standard, the network is divided into the public plane, DMZ plane, and internal plane. The specific description and implementation are as follows:

[0114] Public Plane:

[0115] Function: The public plane is the part exposed to the public Internet and used to provide services or access to the outside world.

[0116] Features: The public plane usually includes external servers, public websites, portals, etc., needs to communicate with external networks, and faces various security risks and attacks from the Internet.

[0117] DMZ plane (Demilitarized Zone Plane):

[0118] Function: The DMZ plane is a buffer area between the internal network and the public network, used to deploy publicly accessible services while isolating the internal network.

[0119] Features: Deploy devices such as Web servers and mail servers that can provide external services in the DMZ plane, and limit direct access to the internal network through security devices such as firewalls to improve network security.

[0120] Internal Plane:

[0121] Function: The internal plane is the core part of the network, including internal business traffic such as internal employee and inter-department communications.

[0122] Features: The internal plane contains various internal resources and data, which need to protect confidentiality and integrity and guard against various internal and external security threats.

[0123] Dividing the network into public plane, DMZ plane and internal plane involves in-depth analysis and planning of network architecture and security requirements. This implementation provides a method as follows:

[0124] Public Plane Division:

[0125] Determine external service requirements: First, you need to clarify which services or resources in the network need to be open to the public Internet.

[0126] Identify public service nodes: Identify nodes or devices that carry external services, such as Web servers, public DNS servers, etc.

[0127] Deploy security control measures: Deploy firewalls, intrusion detection systems (IDS), anti-virus software and other security control measures in the public plane to protect public service nodes from unauthorized access and attacks. DMZ plane (Demilitarized Zone Plane) division:

[0128] Determine the location of the buffer area: Determine the location of the buffer area between the internal network and the public network, usually a separate subnet.

[0129] Deploy public service equipment: Deploy equipment that carries external services, such as Web servers and mail servers, in the DMZ plane.

[0130] Configure security policies: By configuring firewall rules, access control lists and other security policies, limit access from the DMZ to the internal network to ensure security protection. Internal Plane Division:

[0131] Identify the scope of the internal network: Determine the scope of the internal network, including employee devices, internal applications, database servers, etc.

[0132] Access control settings: Configure access control lists (ACLs), VPN connections, and other measures to limit communication between the internal network and the DMZ and public plane to protect internal network security.

[0133] Strengthen security protection: Deploy firewalls, intrusion detection systems, encrypted communications and other security measures on the internal network to ensure the security and confidentiality of internal systems and data.

[0134] (3) According to the performance requirement classification standard, the network is divided into a high-performance computing plane and a data transmission plane. The specific description and implementation are as follows:

[0135] High-Performance Computing Plane:

[0136] Function: The high-performance computing plane is mainly used to carry out tasks that require a large amount of computing resources and high-performance processing, such as scientific computing, simulation analysis, etc.

[0137] Features: In the high-performance computing plane, dedicated high-performance computing clusters, supercomputers or other computing resources are usually deployed to meet the requirements for computing speed and performance.

[0138] Data Transfer Plane:

[0139] Function: The data transmission plane is mainly used to support data transmission, storage, backup and other needs, ensuring efficient data transmission between different systems and locations.

[0140] Features: In the data transmission plane, network devices with high bandwidth and low latency characteristics may be deployed to support large-scale data transmission and storage and ensure data reliability and integrity.

[0141] Dividing the network into a high-performance computing plane and a data transmission plane requires considering the functional requirements, performance requirements, and data flow methods of different parts of the network. This implementation provides a method as follows:

[0142] High performance computing plane partitioning method:

[0143] Identify high-performance computing needs: First, determine whether there are tasks or applications in the network that require a large amount of computing resources and high-performance computing, such as scientific computing, simulation, etc.

[0144] Identify high-performance computing nodes: Identify nodes or clusters that host high-performance computing tasks, which may require high-speed processors, large memories, and high-speed interconnection networks.

[0145] Create a dedicated computing network: Configure a dedicated computing network to connect high-performance computing nodes and ensure low-latency, high-bandwidth communication to improve computing efficiency.

[0146] Data transmission plane division method:

[0147] Determine data transmission requirements: Analyze the flow and transmission requirements of data in the network, including data storage, backup, and transmission between data centers.

[0148] Identify data transmission nodes: Identify key nodes for data transmission, such as storage devices, data center servers, and other devices that require data transmission and sharing.

[0149] Configure a high-speed data transmission network: Deploy high-bandwidth, low-latency network devices and connections to support large-scale data transmission, backup, and storage requirements, and ensure fast and secure data transmission.

[0150] After dividing according to the performance requirements, performance optimization and management are also required.

[0151] Performance optimization and management include:

[0152] Optimize network topology: Optimize network topology according to the needs of high-performance computing and data transmission, reduce network congestion and latency, and improve network performance;

[0153] Implement load balancing: Perform load balancing configuration on high-performance computing and data transmission planes to ensure balanced utilization of resources and improve overall network efficiency;

[0154] Monitoring and tuning: Regularly monitor the performance indicators of high-performance computing and data transmission planes, and timely tune network configuration and resource allocation to meet changing needs.

[0155] Step S2: Determine a target hash algorithm, and uniformly configure the target hash algorithm for network devices, wherein the target hash algorithm is a symmetric hash algorithm.

[0156] As a specific implementation, in step S2, determining the target hash algorithm specifically includes the following steps:

[0157] Step S21: Obtain target data packet;

[0158] Step S22: extracting and identifying characteristic data required for calculating the hash value from the target data packet to obtain the characteristics of the target data packet;

[0159] Step S23: Selecting a hash algorithm that matches the target data packet characteristics and the target data packet routing requirements as the target hash algorithm;

[0160] Among them, the data packet characteristics specifically include data packet size, data packet structure, and data packet transmission rules; the target data packet routing requirements specifically include load balancing requirements, routing stability requirements, and routing efficiency requirements.

[0161] Step S3: Design routing rules based on the network plane identifier and the target hash algorithm; the routing rules are used to keep the outbound and return routes of the target data packet consistent.

[0162] As a specific implementation, in step S3, based on the network plane identifier and the target hash algorithm, a routing rule is designed, which specifically includes the following steps:

[0163] Calculate the hash value of the target data packet according to the target hash algorithm to obtain the hash value of the target data packet;

[0164] Establishing a mapping relationship between a target data packet hash value and a network plane identifier;

[0165] Build routing strategies based on mapping relationships;

[0166] Based on the routing strategy, a hash distribution strategy is formulated so that data packets can be accurately guided to the target network plane according to the hash value, thereby designing routing rules.

[0167] The routing strategy is constructed based on the mapping relationship between the target data packet hash value and the network plane identifier, so that the data packet can be mapped to a specific network plane according to the hash value of the data packet when routing. The steps provided in this embodiment are as follows:

[0168] Determine the mapping relationship:

[0169] First, it is necessary to clarify the mapping relationship between the hash value of the target data packet and the network plane identifier, that is, which hash values ​​correspond to which specific network plane;

[0170] Configure routing policy:

[0171] Configure routing policies on routers or switches to route target data packets to corresponding network planes based on their hash values.

[0172] This can be accomplished by configuring routing tables, access control lists (ACLs), or other routing policies.

[0173] Implementing packet routing:

[0174] When a data packet arrives at the router, the corresponding routing policy is matched according to the hash value of the data packet and it is routed to the corresponding network plane.

[0175] A hash algorithm can be used to calculate the hash value of a data packet and route it according to a pre-set mapping relationship.

[0176] Optimize routing strategy:

[0177] Regularly check and optimize routing strategies, and adjust mapping relationships based on actual network traffic and performance requirements to ensure the efficiency and stability of network routing.

[0178] It is very important to formulate a hash distribution strategy to ensure that packets can be accurately directed to the target network plane according to the hash value. This implementation provides the following steps:

[0179] Determine the hash distribution strategy: First, determine the specific algorithm and method of the hash distribution strategy, such as CRC32 hash, MD5 hash, etc., which is used to calculate the hash value of the data packet.

[0180] Formulate routing rules: Design routing rules to direct packets to the target network plane based on their hash values. This can be achieved by configuring routing rules on routers, switches, or load balancers. In routing rules, hash values ​​are mapped to specific network planes to ensure that packets are routed according to the pre-set mapping relationship.

[0181] Implement routing rules: Implement the established routing rules on network devices to ensure that data packets are correctly directed to the target network plane based on the hash value. For specific needs such as load balancing or high-performance computing planes, the corresponding routing strategies can be customized according to different hash algorithms and mapping rules.

[0182] Testing and optimization: Test the established routing rules in the actual network environment to verify whether the data packets can be directed to the target network plane as expected. Optimize the hash distribution strategy and routing rules according to the actual situation to continuously improve network performance and efficiency.

[0183] Monitoring and maintenance: Regularly monitor the operation of network equipment and routing rules, identify problems in a timely manner, and perform maintenance and adjustments. Adjust routing rules and hash distribution strategies in response to changes in network traffic and performance to adapt to changing network needs.

[0184] Step S4: Based on the routing rules, the target data packet is directed to the target plane to achieve round-trip plane consistency of the multi-plane IP network.

[0185] In this embodiment:

[0186] 1. Global independent identification of each network plane. You can but do not have to use simple numbers: 1, 2, 3, ... Strictly speaking, such identification does not need to be globally unified, that is, for the same network plane, device 1 can be called "1" and device 2 can be called "A". But for the sake of clarity, a globally unified identification should be used.

[0187] 2. (Through configuration) make the network device aware of the network plane identifier to which its network interface is connected. In this way, each of the equal-cost multipaths can be associated with the network plane.

[0188] 3. Add a hash step. Before the regular multi-path selection hash, add a multi-plane selection hash, and based on the result of this step, set the parameters of the next hash step - so that it only considers the multi-paths within the selected plane.

[0189] 4. (Any) symmetric hashing technology. That is, when the number of buckets / slots in the hash result is the same, the hash value is the same after the source / destination IP address / port number information is swapped.

[0190] The behavior described in this embodiment only requires the edge devices ( Figure 4 The planning / configuration involved in this implementation is as follows:

[0191] 1. First, plan a unique and unified identifier for each network plane: 1, 2, ... (or a, b, ...). 0 is reserved as the default plane.

[0192] 2. On the edge devices of all end network connection planes, use the above identifiers to set the network interfaces connected to the network planes, for example:

[0193] Interface 1: Network plane 1

[0194] Interface 2: Network plane 1

[0195] Interface 3: Network plane 2

[0196] Interface 4: Network plane 1 ......

[0198] Unconfigured interfaces are assumed to be in the default network plane (i.e., plane 0).

[0199] An example of a setup is shown in Figure 4 .

[0200] After the above configuration, the route can be associated with the network plane. For example, to network segment Z, there are multiple equal-cost routes:

[0201] (Route 1) directly connected to next hop NH1, outbound interface 2 --> network plane 1

[0202] (Route 2) directly connected to next hop NH2, outbound interface 3 --> network plane 2

[0203] (Route 3) directly connected to next hop NH3, outbound interface 4 --> network plane 1

[0204] (Route 4) directly connected to next hop NH4, outbound interface 1 --> network plane 1

[0205] Another way to look at it is:

[0206] Network plane 1:

[0207] Outgoing interface 2, next hop NH1

[0208] Outgoing interface 4, next hop NH3

[0209] Outgoing interface 1, next hop NH4

[0210] Network plane 2:

[0211] Outgoing interface 3, next hop NH2

[0212] When a message destined for network segment Z is received, the route lookup finds that the equivalent route involves two planes, so the message quintuple - source IP address, source port number, protocol, destination IP address, destination port number - and "2" (as the number of hash buckets) are provided as input to the plane hash function, and the result is 0 or 1, which means plane 1 or 2. The plane hash algorithm needs to be symmetric and can be based on any symmetric hash algorithm, including but not limited to the pre-processing method of sorting the source / destination information as the input of the hash function. The hash function / algorithm in this embodiment adopts the hash function / algorithm in the prior art.

[0213] If the hash result is 0, it means network plane 1. Since there are 3 paths in network plane 1, the message quintuple and 3 (as the number of hash buckets) are provided as input to the path hash function, and the result is 0, 1 or 2, corresponding to interface 2, 4 or 1 in the example. Because this embodiment focuses on plane symmetry, the hash function does not have to be symmetric.

[0214] When the return message reaches the edge device of the remote end network (such as Z in the figure), it will be processed similarly. Since both sides are connected to the same plane and the plane hash algorithm is symmetrical, the return message will be routed to the same plane.

[0215] Finally, it achieved Figure 4 The outbound trip shown passes through plane 1, and the return trip also passes through plane 1. Of course, this is one possibility. It is also possible that the outbound trip passes through plane 2, but the return trip also passes through plane 2.

[0216] The implementation method is independent of the number of planes and is the same regardless of the number of planes. When adding new planes, since the algorithm is automatically adapted, it is only necessary to assign the same identifier to the new plane and correctly associate the interface to the new plane (through the new plane identifier).

[0217] The application scenarios of this embodiment include but are not limited to:

[0218] (1) Data Center Network: In a data center network, there are often multiple paths connecting different devices or servers. It is very important to ensure that data packets arrive in the correct order when traveling back and forth on these paths to ensure data integrity and stability.

[0219] (2) Load balancing: In a load balancing environment, how to achieve load balancing among multiple servers so that data packets can choose different paths for round-trip transmission based on the load conditions, and also ensure the consistency of the round-trip plane.

[0220] (3) Cloud computing platform: In a cloud computing environment, network communications involve interactions between multiple virtual machines, containers, or services. It is necessary to ensure that data packets can arrive in the correct order in the virtualized environment.

[0221] The above scenarios require appropriate path control technology to achieve round-trip plane consistency in multi-plane IP networks to improve network performance, stability and reliability.

[0222] Embodiment 2:

[0223] like Figure 6 As shown, this embodiment provides a device for implementing round-trip plane consistency of a multi-plane IP network, the device comprising:

[0224] The first processing unit 10 is used to divide the network into different planes to obtain multiple network planes, and to assign a unique identifier to each network plane to obtain a network plane identifier.

[0225] The second processing unit 20 is connected to the first processing unit 10 and is used to determine a target hash algorithm and to uniformly configure the target hash algorithm for the network devices;

[0226] Wherein, the target hash algorithm is a symmetric hash algorithm;

[0227] The design unit 30 is connected to the second processing unit 20 and is used to design a routing rule based on the network plane identifier and the target hash algorithm; the routing rule is used to keep the outbound and return routes of the target data packet consistent;

[0228] The guiding unit 40 is connected to the designing unit 30 and is used to guide the target data packet to the target plane based on the routing rule to achieve round-trip plane consistency of the multi-plane IP network.

[0229] As a specific implementation, the first processing unit 10 includes:

[0230] A first determination module is used to determine the division criteria; the division criteria include function division criteria, security requirement division criteria, and performance requirement division criteria;

[0231] Divide modules;

[0232] The division module includes a first division submodule, a second division submodule and a third division submodule;

[0233] The first division submodule is connected to the first determination module and is used to divide the network into a core plane, an edge plane, and a storage plane according to a functional division standard;

[0234] The second division submodule is connected to the first determination module and is used to divide the network into a public plane, a DMZ plane, and an internal plane according to the security requirement division standard;

[0235] The third division submodule is connected to the first determination module, and is used to divide the network into a high-performance computing plane and a data transmission plane according to a performance requirement division standard.

[0236] As a specific implementation, the second processing unit 20 includes a second determination module, and the second determination module is used to determine a target hash algorithm;

[0237] The second determining module comprises:

[0238] The acquisition submodule is used to acquire the target data packet;

[0239] A processing submodule, connected to the acquisition submodule, for extracting and identifying characteristic data required for calculating the hash value from the target data packet, and obtaining the characteristics of the target data packet;

[0240] A selection submodule, connected to the processing submodule, for selecting a hash algorithm that matches the target data packet characteristics and the target data packet routing requirements as a target hash algorithm;

[0241] Among them, the data packet characteristics specifically include data packet size, data packet structure, and data packet transmission rules; the target data packet routing requirements specifically include load balancing requirements, routing stability requirements, and routing efficiency requirements.

[0242] As a specific implementation, the design unit 30 includes:

[0243] A calculation module, used to calculate the hash value of the target data packet according to the target hash algorithm to obtain the hash value of the target data packet;

[0244] A mapping module, connected to the calculation module, for establishing a mapping relationship between a target data packet hash value and a network plane identifier;

[0245] A construction module, connected to the mapping module, for constructing a routing strategy based on the mapping relationship;

[0246] The formulation module is connected to the construction module and is used to formulate a hash distribution strategy based on the routing strategy so that the data packet can be accurately guided to the target network plane according to the hash value, thereby designing the routing rules.

[0247] Embodiment 3:

[0248] This embodiment provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the method for achieving round-trip plane consistency of a multi-plane IP network according to Embodiment 1.

[0249] Embodiment 4:

[0250] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for achieving round-trip plane consistency of a multi-plane IP network as described in Embodiment 1 is implemented.

[0251] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.

Claims

1. A method for achieving round-trip plane consistency of a multi-plane IP network, characterized in that: The method comprises the following steps: Step S1: Divide the network into different planes to obtain multiple network planes; and assign a unique identifier to each network plane to obtain a network plane identifier; Step S2: Determine the target hash algorithm, and uniformly configure the target hash algorithm for the network devices; Wherein, the target hash algorithm is a symmetric hash algorithm; Step S3: Designing routing rules based on the network plane identifier and the target hash algorithm; the routing rules are used to keep the outbound and return routes of the target data packet consistent; Step S4: Based on the routing rules, the target data packet is directed to the target plane to achieve round-trip plane consistency of the multi-plane IP network.

2. The method for achieving round-trip plane consistency of a multi-plane IP network according to claim 1, characterized in that: In step S1, the network is divided into different planes to obtain multiple network planes, which specifically includes the following steps: Step S11: Determine the division criteria; the division criteria are divided according to different requirements, specifically including functional division criteria, security requirement division criteria, and performance requirement division criteria; Step S12: Divide the network into different planes according to the division standard to obtain multiple network planes; The step S12 specifically includes: Divide the network into core plane, edge plane, and storage plane according to the functional division standard; or, Divide the network into public plane, DMZ plane, and internal plane according to security requirements; or, According to the performance requirements, the network is divided into high-performance computing plane and data transmission plane.

3. The method for achieving round-trip plane consistency of a multi-plane IP network according to claim 1, characterized in that: In step S2, determining the target hash algorithm specifically includes the following steps: Step S21: Obtain target data packet; Step S22: extracting and identifying characteristic data required for calculating the hash value from the target data packet to obtain the characteristics of the target data packet; Step S23: Selecting a hash algorithm that matches the target data packet characteristics and the target data packet routing requirements as the target hash algorithm; Among them, the data packet characteristics specifically include data packet size, data packet structure, and data packet transmission rules; the target data packet routing requirements specifically include load balancing requirements, routing stability requirements, and routing efficiency requirements.

4. The method for achieving round-trip plane consistency of a multi-plane IP network according to any one of claims 1 to 3, characterized in that: In step S3, based on the network plane identifier and the target hash algorithm, a routing rule is designed, which specifically includes the following steps: Calculate the hash value of the target data packet according to the target hash algorithm to obtain the hash value of the target data packet; Establishing a mapping relationship between a target data packet hash value and a network plane identifier; Build routing strategies based on the mapping relationship; Based on the routing strategy, a hash distribution strategy is formulated so that data packets can be accurately guided to the target network plane according to the hash value, thereby designing routing rules.

5. A device for achieving round-trip plane consistency of a multi-plane IP network, characterized in that: The device comprises: The first processing unit is used to divide the network into different planes to obtain multiple network planes, and to assign a unique identifier to each network plane to obtain a network plane identifier. a second processing unit, connected to the first processing unit, for determining a target hash algorithm and for uniformly configuring the target hash algorithm for network devices; Wherein, the target hash algorithm is a symmetric hash algorithm; A design unit, connected to the second processing unit, for designing a routing rule based on a network plane identifier and a target hash algorithm; the routing rule is used to keep the outbound and return routes of the target data packet consistent; The guiding unit is connected to the design unit and is used to guide the target data packet to the target plane based on the routing rules to achieve the round-trip plane consistency of the multi-plane IP network.

6. The device for achieving round-trip plane consistency of a multi-plane IP network according to claim 5, characterized in that: The first processing unit comprises: The first determination module is used to determine the division standard; the division standard is divided according to different requirements, specifically including the function division standard, the security requirement division standard, and the performance requirement division standard; Divide modules; The division module includes a first division submodule, a second division submodule and a third division submodule; The first division submodule is connected to the first determination module and is used to divide the network into a core plane, an edge plane, and a storage plane according to a functional division standard; The second division submodule is connected to the first determination module and is used to divide the network into a public plane, a DMZ plane, and an internal plane according to the security requirement division standard; The third division submodule is connected to the first determination module, and is used to divide the network into a high-performance computing plane and a data transmission plane according to a performance requirement division standard.

7. The device for achieving round-trip plane consistency of a multi-plane IP network according to claim 5, characterized in that: The second processing unit includes a second determination module, and the second determination module is used to determine a target hash algorithm; The second determining module comprises: The acquisition submodule is used to acquire the target data packet; A processing submodule, connected to the acquisition submodule, for extracting and identifying characteristic data required for calculating the hash value from the target data packet, and obtaining the characteristics of the target data packet; A selection submodule, connected to the processing submodule, for selecting a hash algorithm that matches the target data packet characteristics and the target data packet routing requirements as a target hash algorithm; Among them, the data packet characteristics specifically include data packet size, data packet structure, and data packet transmission rules; the target data packet routing requirements specifically include load balancing requirements, routing stability requirements, and routing efficiency requirements.

8. The device for realizing round-trip plane consistency of a multi-plane IP network according to any one of claims 5 to 7, characterized in that: The design unit comprises: A calculation module, used to calculate the hash value of the target data packet according to the target hash algorithm to obtain the hash value of the target data packet; A mapping module, connected to the calculation module, for establishing a mapping relationship between a target data packet hash value and a network plane identifier; A construction module, connected to the mapping module, for constructing a routing strategy based on the mapping relationship; The formulation module is connected to the construction module and is used to formulate a hash distribution strategy based on the routing strategy so that the data packet can be accurately guided to the target network plane according to the hash value, thereby designing the routing rules.

9. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor runs the computer program stored in the memory, the processor executes the method for realizing round-trip plane consistency of a multi-plane IP network according to any one of claims 1 to 4.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for achieving round-trip plane consistency of a multi-plane IP network according to any one of claims 1 to 4 is implemented.