Network target range networking method, device and equipment and storage medium

By generating network intent descriptions and configuration information in the network test range and establishing peer-to-peer communication tunnels using border gateway devices, direct service traffic forwarding between sub-test ranges is realized, solving the problems of long links and high security risks in existing technologies and improving communication efficiency and security.

CN123185017APending Publication Date: 2026-11-27PENG CHENG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611575342.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-12
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing network range networking methods, communication between sub-ranges must be relayed through the main control range, resulting in long links and high security risks.

Method used

By acquiring the networking requirements information of the test range collaborative task, a networking intent description is generated and compliance verification is performed. Network configuration information is generated and distributed to each border gateway device. The border gateway devices establish peer-to-peer communication tunnels between participating test ranges to achieve direct forwarding of service traffic.

Benefits of technology

This solves the problem that communication between sub-ranges must be relayed through the main control range, shortens the communication link, improves service stability, and reduces security risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185017A_ABST
    Figure CN123185017A_ABST
Patent Text Reader

Abstract

The application discloses a network target range networking method and device, equipment and a storage medium, relates to the technical field of network communication, and comprises the following steps: analyzing networking requirement information corresponding to a target range cooperative task, and generating a networking intention description of the target range cooperative task; generating a networking scheme of the target range cooperative task according to the networking intention description, and performing compliance verification on the networking scheme; in the case that the networking scheme is verified, generating networking configuration information according to the networking scheme; and distributing the networking configuration information to each border gateway device, so that each border gateway device establishes a peer-to-peer communication tunnel between corresponding participating target ranges according to the networking configuration information, and the peer-to-peer communication tunnel is used for directly forwarding service traffic between the corresponding participating target ranges. By applying the technical scheme, the technical problem that, in the existing network target range networking method, communication between target ranges must be transferred through a main control target range, resulting in long links and high security risks is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network communication technology, and in particular to network range networking methods, apparatus, equipment and storage media. Background Technology

[0002] Cyber ​​ranges are crucial infrastructure for conducting cyber attack and defense drills, security technology verification, and trials of new network technologies. As the cybersecurity landscape becomes increasingly complex, a single range, limited by resource scale, scenario coverage, and business diversity, struggles to independently support large-scale, cross-domain, multi-entity joint training and collaborative verification tasks. Against this backdrop, federated ranges have emerged. A federated range typically consists of multiple range nodes belonging to different organizations, security domains, or management entities. When conducting joint training, collaborative verification, or attack and defense drills, each range needs to temporarily establish a cross-domain network according to mission requirements, enabling simulation nodes, business systems, attack nodes, detection nodes, and management nodes in different ranges to interconnect according to a predetermined topology. Therefore, how to efficiently and flexibly construct cross-domain interconnection networks between federated ranges has become a key issue for the effective operation of federated ranges.

[0003] Currently, existing federal range networking technologies primarily rely on a Hub-Spoke networking model centered on the main control range. This model establishes Layer 2 tunnels through access gateway devices deployed at the boundaries of each range, and implements Layer 3 forwarding routing via routers deployed at the main control range, thereby meeting the communication needs between different ranges within the same network segment and across network segments. However, under the existing Hub-Spoke networking model, cross-domain communication between sub-ranges must be relayed through the main control range. Data passing through third-party ranges prolongs the interaction link and increases the security risks of interception, tampering, leakage, or retention. Summary of the Invention

[0004] The main purpose of this application is to provide a network range networking method, apparatus, device and storage medium, which aims to solve the technical problem that communication between sub-ranges must be relayed through the main control range in the existing network range networking method, resulting in long links and high security risks.

[0005] To achieve the above objectives, this application proposes a network range networking method, which is applied to a network control device, and the method includes: Obtain the networking requirement information corresponding to the range collaborative task, parse the networking requirement information, and generate a networking intent description for the range collaborative task. A network scheme for the range collaborative task is generated based on the network intent description, and the network scheme is verified for compliance. If the network scheme is verified, network configuration information is generated according to the network scheme. The network configuration information is used to characterize the configuration parameters adapted by the boundary gateway devices corresponding to each participating range as required by the range collaboration task. The network configuration information is distributed to each of the border gateway devices, so that each border gateway device can establish a peer-to-peer communication tunnel between the corresponding participating ranges according to the network configuration information. The peer-to-peer communication tunnel is used for direct forwarding of service traffic between the corresponding participating ranges.

[0006] In one embodiment, the step of parsing the network requirement information to generate a network intent description for the range collaborative task includes: The networking requirement information is parsed to extract the participating ranges required for the range collaboration task, as well as the boundary gateway information and scenario information of each participating range; Based on the network topology and communication direction represented by the network requirements information, determine the nodes and directed edges of the directed topology graph of the network. Add the border gateway information and the scene information to the node attributes of the node; The open time period of the directed edge is determined based on the access restriction information in the network requirements information, and the open time period is added to the edge attribute of the directed edge to generate the network intent description of the range collaborative task.

[0007] In one embodiment, the step of determining the open time period of the directed edge based on the access restriction information in the network requirement information, and adding the open time period to the edge attribute of the directed edge, includes: Analyze the time constraints and access object constraints in the access restriction information of the network requirements information; The open time period corresponding to each directed edge is determined according to the time constraint condition, and the allowed communication object corresponding to each directed edge is determined according to the access object constraint condition. The open time period and the allowed communication object are added as edge attributes to the corresponding directed edge.

[0008] In one embodiment, the step of generating the networking scheme for the range cooperative task based on the networking intent description includes: Based on the network configuration intent description, network configuration address planning is performed to obtain the address planning result; The access policy change nodes and the corresponding change directions of the access policy change nodes are determined based on the edge attributes in the network intent description. Based on the network intent description, the address planning results, the access policy change nodes, and the change direction, a network scheme for the range collaborative task is constructed.

[0009] In one embodiment, the step of performing network configuration address planning based on the network intent description to obtain address planning results includes: Based on the network intent description, detect whether there are address conflicts between the participating ranges required by the range collaboration task; In the event of the address conflict, network configuration address planning is performed on the target nodes corresponding to the participating ranges with the address conflict to obtain the target network address corresponding to the target node; The target network address is assigned to the target node to obtain the address planning result.

[0010] In one embodiment, the step of constructing the network scheme for the range collaborative task based on the network intent description, the address planning result, the access policy change nodes, and the change direction includes: Based on the address planning results, the tunnel interface addresses and logical access network segments between each participating test range are determined; The order in which security policies take effect among the participating ranges is determined based on the access policy change nodes and the direction of change. The network scheme for the range collaborative task is constructed by associating the tunnel interface address, the logical access network segment, and the order in which the security policy takes effect with the network intent description.

[0011] In one embodiment, the step of generating network configuration information according to the network topology scheme includes: The tunnel interface address, logical access network segment and security policy effective order in the networking scheme are converted into the loadable networking configuration of the border gateway device corresponding to each participating test range. Based on the access policy change nodes and change directions in the network topology, construct a scheduled task for the access policy evolution of the directed edges corresponding to the access policy change nodes. The access policy evolution timer task is associated with the loadable network configuration as a trigger condition to generate network configuration information.

[0012] Furthermore, to achieve the above objectives, this application also proposes a network range networking device, the device comprising: The network intent generation module is used to obtain network requirement information corresponding to the range collaborative task, parse the network requirement information, and generate a network intent description for the range collaborative task. The networking scheme generation module is used to generate a networking scheme for the target range collaborative task based on the networking intent description, and to perform compliance verification on the networking scheme. The network configuration generation module is used to generate network configuration information according to the network scheme when the network scheme verification is passed. The network configuration information is used to characterize the configuration parameters adapted by the boundary gateway devices corresponding to each participating range required by the range collaboration task. The network configuration distribution module is used to distribute the network configuration information to each of the border gateway devices, so that each of the border gateway devices can establish a peer-to-peer communication tunnel between the corresponding participating ranges according to the network configuration information. The peer-to-peer communication tunnel is used for direct forwarding of service traffic between the corresponding participating ranges.

[0013] In addition, to achieve the above objectives, this application also proposes a network range networking device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the network range networking method described above.

[0014] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the network range networking method described above.

[0015] This application provides a network range networking method. The method involves obtaining network requirement information corresponding to a range collaborative task, parsing the network requirement information to generate a network intent description for the range collaborative task, generating a network scheme for the range collaborative task based on the network intent description, and verifying the compliance of the network scheme. If the network scheme passes verification, network configuration information is generated based on the network scheme. The network configuration information characterizes the configuration parameters required for the border gateway devices corresponding to each participating range in the range collaborative task. The network configuration information is then distributed to each border gateway device, enabling each border gateway device to establish a peer-to-peer communication tunnel between the corresponding participating ranges based on the network configuration information. The peer-to-peer communication tunnel is used to directly forward service traffic between participating test ranges. Compared with the existing networking method centered on the main control test range, where communication between sub-test ranges must be relayed through the main control test range and routing and security policies are centralized in the main control test range, this application can decouple network control from data forwarding. The control device can uniformly generate network intent descriptions, network schemes, and network configurations and distribute them to each border gateway device. Each border gateway device can then establish peer-to-peer communication tunnels between participating test ranges and directly forward service traffic without relaying through the main control test range. This solves the technical problem in the existing network test range networking method where communication between sub-test ranges must be relayed through the main control test range, resulting in long links and high security risks. Attached Figure Description

[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating an embodiment of the network range networking method of this application. Figure 2 This is a schematic diagram of the cascaded hierarchical communication of the network range in the network range networking method of this application; Figure 3 The system architecture diagram provided for the network range networking method of this application; Figure 4 This is a flowchart illustrating Embodiment 2 of the network range networking method of this application; Figure 5 This is a schematic diagram illustrating the service networking intent of the network range in the network range networking method of this application. Figure 6 This is a flowchart illustrating Embodiment 3 of the network range networking method of this application; Figure 7 This is a schematic diagram of the peer-to-peer communication network configuration and data flow in the network range networking method of this application; Figure 8 This is a schematic diagram of the modular structure of the network range networking device according to an embodiment of this application; Figure 9 This is a schematic diagram of the device structure of the hardware operating environment involved in the network range networking method in this application embodiment.

[0019] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0020] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0021] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0022] The main solution of this application embodiment is as follows: Obtain the networking requirement information corresponding to the range collaboration task, parse the networking requirement information, and generate a networking intent description for the range collaboration task; generate a networking scheme for the range collaboration task based on the networking intent description, and perform compliance verification on the networking scheme; if the networking scheme verification passes, generate networking configuration information based on the networking scheme, the networking configuration information being used to characterize the configuration parameters adapted by the boundary gateway devices corresponding to each participating range as required by the range collaboration task; distribute the networking configuration information to each boundary gateway device, so that each boundary gateway device establishes a peer-to-peer communication tunnel between the corresponding participating ranges based on the networking configuration information, the peer-to-peer communication tunnel being used for direct forwarding of service traffic between the corresponding participating ranges.

[0023] Because in the existing networking method centered on the main control range, communication between sub-ranges must be relayed through the main control range, and routing and security policies are concentrated in the main control range, the communication links between sub-ranges are long, and the data relayed through the main control range poses a security risk of being intercepted, tampered with, leaked or retained.

[0024] This application provides a solution that decouples network control from data forwarding. The control device uniformly generates network intent descriptions, network schemes, and network configurations and distributes them to each border gateway device. Each border gateway device establishes peer-to-peer communication tunnels between participating test ranges and directly forwards service traffic without having to go through the main control test range. This solves the technical problem in existing network test range networking methods where communication between sub-test ranges must go through the main control test range, resulting in long links and high security risks.

[0025] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a server, controller, gateway management device, etc., or an electronic device or network control device capable of performing the above functions. The following description uses a network control device (hereinafter referred to as the device) as an example to illustrate this embodiment and the subsequent embodiments.

[0026] Based on this, embodiments of this application provide a network range networking method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the network range networking method of this application in Implementation Example 1.

[0027] In this embodiment, the network range networking method is applied to a network control device, including steps S10~S40: Step S10: Obtain the networking requirement information corresponding to the range collaborative task, parse the networking requirement information, and generate a networking intent description for the range collaborative task.

[0028] It should be noted that, referring to Figure 2 , Figure 2 This is a schematic diagram of the cascaded hierarchical communication of the network range in the network range networking method of this application. For example... Figure 2 As shown, a federated network range can include range nodes at multiple levels. The first level can include a main range and a first-level main range, where the main range can serve as an external access node for the federated range, and the first-level main range can connect to the main range. The second level can include a regional federated main range S1, a regional federated main range S3, and a sub-range S2, where regional federated main ranges S1 and S3 can connect to the main range, and sub-range S2 can connect to the main range. The third level can include a regional federated sub-range S11, a regional federated sub-range S31, and a regional federated main range S32, where regional federated sub-range S11 can connect to regional federated main range S1, and regional federated sub-ranges S31 and S32 can connect to regional federated main range S3. The nth level can include a (n-1)th level regional federated sub-range, where the (n-1)th level regional federated sub-range can connect to regional federated main range S32. Thus, the federal range can form a multi-level cascaded tree topology.

[0029] also, Figure 2 The communication paths between Level 2 or higher sub-ranges and the main range within a central regional federal range indicate the communication paths between participating ranges and the main range at a level of no less than two within the same regional federal range. The communication paths between a sub-range and its superior sub-range within a regional federal range indicate the communication paths between a participating range and its superior participating range within the same regional federal range. The communication paths between Level 2 or higher sub-ranges within a regional federal range and other sub-ranges within other regional federal ranges indicate the communication paths between participating ranges at a level of no less than two within the same regional federal range and other participating ranges within the same regional federal range. The communication paths between sub-ranges within a regional federal range indicate the communication paths between participating ranges within the same regional federal range.

[0030] Depend on Figure 2 As can be seen, in a tree-cascaded federated network range structure, communication between leaf-end ranges and their sibling nodes, under the existing Hub-Spoke networking mode centered on the master range, requires cascading upwards through the parent range node to the master range, and then downwards again, resulting in prolonged communication links and increased service instability. This application addresses this by establishing peer-to-peer communication tunnels between the boundary gateway devices of each participating range and configuring cascading forwarding and routing rules locally on the boundary gateway devices corresponding to the cascaded nodes. This allows service traffic between leaf-end ranges and their sibling nodes to bypass the master range, thereby shortening communication links and improving service stability.

[0031] It should be noted that network control devices can be deployed in a federal range for unified orchestration and control of cross-domain networking among multiple participating ranges. For example, network control devices can be servers, controllers, or gateway management devices deployed on the federal range management side. In practical applications, network control devices can perform functions such as network requirement parsing, network intent description generation, network scheme generation, compliance verification, network configuration information generation, and network configuration information distribution, but they do not directly participate in the forwarding of service traffic.

[0032] It should also be noted that, referring to Figure 3 , Figure 3 This is a system architecture diagram provided for the network range networking method of this application. (See diagram below.) Figure 3 As shown, the network control device can be functionally divided into a network control plane, which specifically includes a task parsing module, a network scheme generation module, a network scheme verification module, a network configuration generation module, and an SD-WAN gateway controller and configuration distribution module. Specifically, the task parsing module parses the network requirement information; the network scheme generation module generates the network scheme; the network scheme verification module verifies the compliance of the network scheme; the network configuration generation module generates network configuration information; and the SD-WAN gateway controller and configuration distribution module distributes the network configuration information to each border gateway device.

[0033] It should be understood that range collaboration tasks can be tasks that need to be executed collaboratively between multiple ranges belonging to different units, security domains, or management entities. These can include, but are not limited to, joint training tasks, collaborative verification tasks, or attack-defense drills. In practical applications, range collaboration tasks typically require the temporary establishment of cross-domain networks based on task requirements, enabling simulation nodes, business systems, attack nodes, detection nodes, and management nodes in different ranges to interconnect according to a predetermined topology. For example, if a joint training task requires attack nodes in range 1 to access target nodes in range 3 and range 4, then range 1, range 3, and range 4 jointly participate in this joint training task, which is a range collaboration task. In the case of multi-level range cascading, range collaboration tasks can also involve the first-level sub-ranges building their own small federated ranges, forming a multi-level range cascading structure.

[0034] It should also be understood that network requirements information can be information describing the various requirements of the range collaboration task for the network, which may include, but is not limited to, the participating ranges, interconnected nodes, communication paths, communication directions, address planning, access restrictions, etc., required by the range collaboration task. For example, the network requirements information corresponding to a certain joint training task may include: participating ranges are range 1, range 3, and range 4; communication paths are from range 1 to range 3 and range 4 respectively; communication directions are from range 1 to range 3 and range 4; access restrictions are from 9:00 AM to 11:00 AM every day during the task period. In this embodiment, the network requirements information can be input by the task initiator through the management interface, or it can be issued by the task management system to the network control device.

[0035] It should be noted that the network intent description can be device-independent and serves as a unified expression of the networking objectives for range collaboration tasks. In this embodiment, the network intent description does not depend on the device type and address information of specific border gateway devices, but rather describes the participating ranges, interconnected nodes, communication path constraints, and access control constraints based on task requirements. For example, the network intent description can describe the communication relationships between participating ranges in the form of a directed topology graph with attributes. Nodes correspond to participating ranges or interconnected nodes within ranges, directed edges correspond to communication paths with directions determined by the communication direction, node attributes include border gateway information and scenario information, and edge attributes include open time periods and allowed communication objects.

[0036] In practical implementation, the device can receive network requirement information input by the task initiator through a management interface, or receive network requirement information issued by the task management system through a communication interface. After obtaining the network requirement information, the device can parse it to determine the participating ranges, interconnected nodes, communication paths, and access restrictions required for the range collaboration task, and generate a network intent description for the range collaboration task accordingly. Specifically, the device can use the task parsing module to abstract the requirements of the range collaboration task, such as participating ranges, interconnected nodes, communication paths, and access restrictions, into a unified network intent description independent of specific devices.

[0037] Step S20: Generate a networking scheme for the range collaborative task based on the networking intent description, and perform compliance verification on the networking scheme.

[0038] Understandably, a networking scheme can be a plan determined based on the networking intent description, used to guide the border gateway devices corresponding to each participating range to complete on-demand networking. It can include the tunnel relationships, routing relationships, and security policies required to achieve the networking intent description. For example, the networking scheme can specify the need to establish a peer-to-peer communication tunnel between participating range A and participating range B, the planning method for the tunnel interface addresses between participating range A and participating range B, and the effective time of the security policies between participating range A and participating range B.

[0039] It should be understood that compliance verification can be a process of checking the networking scheme to confirm whether there are any conflicts or errors in the networking scheme (e.g., whether it meets the requirements defined in the networking intent description, and whether it can correctly guide the participating range boundary gateway devices to complete the on-demand networking). In this embodiment, compliance verification may include, but is not limited to, topology reachability verification, address conflict verification, security policy consistency verification, or routing relationship verification. Among them, topology reachability verification is used to verify whether there are reachable communication paths between the participating ranges in the networking topology determined by the networking scheme; address conflict verification is used to verify whether there are any conflicts in the address planning of the participating ranges and interconnected nodes involved in the networking scheme; security policy consistency verification is used to verify whether the security policies in the networking scheme are consistent with the access restrictions in the networking intent description; routing relationship verification is used to verify whether the routing relationships in the networking scheme are correct, especially in the case of multi-level range cascading, whether the hierarchical forwarding path between the leaf range and its sibling nodes can be correctly established to avoid routing loops or unreachable routes. For example, compliance checks can examine whether the planned tunnel interface address between participating range A and participating range B conflicts with the existing address of participating range C, or check whether there are routing loops in the networking scheme, and whether there are contradictions between security policies.

[0040] In practical implementation, the network control device can automatically generate a network scheme based on the network intent description through the network scheme generation module. Since the network intent description weakens the hierarchical concept of the main control range and sub-ranges, the network scheme generation module no longer generates a star topology centered on the main control range. Instead, it generates peer-to-peer interconnection relationships based on the actual communication needs between participating ranges. For example, the network scheme generation module can determine, based on the network intent description, that a peer-to-peer communication tunnel needs to be established between participating range A and participating range B, and between participating range B and participating range C, while no peer-to-peer communication tunnel needs to be established between participating range A and participating range C. Subsequently, the network control device can verify the topology reachability, address allocation, security policies, or routing relationships in the network scheme through the network scheme verification module. Specifically, the device can perform a topology reachability verification of the network scheme to confirm whether there are reachable communication paths between the participating ranges in the network topology determined by the network scheme, and whether the established peer-to-peer communication tunnels can cover all interconnected nodes and communication paths required by the network intent description. In addition, the device can perform address conflict verification on the networking scheme to confirm whether there are any conflicts in the address planning of the participating test ranges and interconnected nodes involved in the networking scheme, avoiding cross-domain communication failures due to address overlap. Furthermore, the device can perform security policy consistency verification on the networking scheme to confirm whether the security policies in the networking scheme are consistent with the access restrictions in the networking intent description. Finally, the device can perform routing relationship verification on the networking scheme to confirm whether the routing relationships in the networking scheme are correct, especially in the case of multi-level test range cascading, to ensure that the hierarchical forwarding path between the leaf test range and its sibling nodes can be correctly established. If the verification result indicates that the compliance verification has failed, the networking scheme can be adjusted and the compliance verification can be performed again; if the verification result indicates that the compliance verification has passed, the networking configuration generation stage can proceed.

[0041] Step S30: If the network scheme verification is successful, generate network configuration information according to the network scheme. The network configuration information is used to characterize the configuration parameters adapted by the boundary gateway devices corresponding to each participating range as required by the range collaboration task.

[0042] It should be noted that the network configuration information can be configuration information loaded and executed by the border gateway devices corresponding to each participating range. In this embodiment, the network configuration information can characterize the configuration parameters adapted by the border gateway devices corresponding to each participating range as required by the range collaboration task, such as tunnel configuration information, routing configuration information, and security policy configuration information. In practical applications, since the border gateway devices of different participating ranges may differ in device model, interface type, or address planning, for example, the network configuration information may include the tunnel configuration that the border gateway device of participating range A needs to load, the routing configuration that the border gateway device of participating range B needs to load, and the security policy configuration that the border gateway device of participating range C needs to load. In this case, the network configuration information can be adapted separately for each participating range.

[0043] It should also be noted that the border gateway device can be a device deployed at the boundary of each participating range for establishing cross-domain connections and forwarding data with other participating ranges. For example, the border gateway device can be an access gateway device, router, or gateway device with tunnel establishment and routing forwarding functions deployed at the boundary of the participating ranges. This embodiment does not limit this. In practical applications, the border gateway device can receive network configuration information distributed by the network control device and establish peer-to-peer communication tunnels and configure forwarding and routing rules according to the network configuration information. In this embodiment, refer to... Figure 3 Border gateway devices can be functionally divided into data forwarding carriers, which can specifically include an AGENT and configuration parsing module, a secure tunnel module, a routing module, and a high-performance acceleration module. Specifically, the AGENT and configuration parsing module is used to parse network configuration information; the secure tunnel module is used to establish peer-to-peer communication tunnels; the routing module is used to configure routing and forwarding rules; and the high-performance acceleration module is used to accelerate service traffic processing.

[0044] In practical implementation, once the network topology scheme passes verification, the device can generate network configuration information based on the network topology scheme through the network configuration generation module in the network control plane. When generating the network configuration information, the device can encapsulate the portions of the configuration parameters corresponding to each participating test range according to the participating test ranges defined in the network topology scheme. This ensures that the portion of the network configuration information corresponding to each participating test range only contains the configuration parameters required by the border gateway device of that participating test range. Furthermore, since the border gateway devices in different participating test ranges may differ in device model, interface type, or address planning, the device can generate adapted network configuration information separately for each participating test range.

[0045] Step S40: Distribute the network configuration information to each of the border gateway devices, so that each of the border gateway devices can establish a peer-to-peer communication tunnel between the corresponding participating ranges according to the network configuration information. The peer-to-peer communication tunnel is used for direct forwarding of service traffic between the corresponding participating ranges.

[0046] It should be understood that a peer-to-peer communication tunnel can be a communication channel directly established between border gateway devices of two participating ranges to carry service traffic. In practical applications, a peer-to-peer communication tunnel allows service traffic between corresponding participating ranges to be forwarded directly without going through other ranges, thereby shortening cross-domain communication links and reducing the security risks of data interception, tampering, leakage, or retention. For example, after a peer-to-peer communication tunnel is established between the border gateway device of participating range A and the border gateway device of participating range B, service traffic between participating range A and participating range B can be forwarded directly through the peer-to-peer communication tunnel without going through the master range for data relay.

[0047] It should also be understood that service traffic can refer to the data traffic that needs to be exchanged between participating ranges during the collaborative mission. This can include interactive data between simulation nodes, call data between business systems, attack and defense data between attack nodes and targets, detection data collected by detection nodes, and management data between management nodes. For example, the data traffic generated when an attack node in participating range A launches an attack on a target in participating range B is service traffic. In practical applications, service traffic can be directly forwarded between participating ranges via the established peer-to-peer communication tunnels according to the direction defined by the networking scheme, without needing to be relayed through the master control range.

[0048] In practical implementation, the device can distribute network configuration information to each border gateway device through the SD-WAN gateway controller and configuration distribution module in the network control plane. Specifically, the device can send the portion of the network configuration information corresponding to each participating target range to the corresponding border gateway device of the participating target range according to the participating target range defined by the network scheme. The AGENT and configuration parsing modules of each border gateway device can receive and parse the network configuration information to obtain tunnel establishment parameters and peer identifiers, and establish peer communication tunnels between the corresponding participating target ranges based on the tunnel establishment parameters and peer identifiers. Subsequently, the routing module of each border gateway device can configure routing forwarding rules, address translation rules, and access control rules locally according to the routing relationships and security policies in the network configuration information. In the case of multi-level cascading of participating target ranges, the border gateway device corresponding to the cascading node can configure hierarchical forwarding and routing rules locally, so that the service traffic between the leaf target range and the sibling node does not pass through the master target range. Subsequently, service traffic between participating test ranges can be directly forwarded via the established peer-to-peer communication tunnels in the direction defined by the networking scheme, without needing to be relayed through the main control test range. Furthermore, the high-performance acceleration modules of each border gateway device can accelerate the service traffic forwarded via the peer-to-peer communication tunnels to improve the forwarding efficiency of service traffic.

[0049] This embodiment provides a network range networking method. The method discloses obtaining network requirement information corresponding to a range collaborative task, parsing the network requirement information to generate a network intent description for the range collaborative task; generating a network scheme for the range collaborative task based on the network intent description, and performing compliance verification on the network scheme; if the network scheme verification passes, generating network configuration information based on the network scheme, which characterizes the configuration parameters adapted by the boundary gateway devices corresponding to each participating range as required by the range collaborative task; and distributing the network configuration information to each boundary gateway device so that each boundary gateway device can establish a peer-to-peer communication tunnel between the corresponding participating ranges according to the network configuration information. The peer-to-peer communication tunnel is used to directly forward service traffic between participating ranges. Compared to the existing networking method centered on the main control range, where communication between sub-ranges must be relayed through the main control range and routing and security policies are centralized in the main control range, this embodiment decouples network control from data forwarding. The control device uniformly generates network intent descriptions, network schemes, and network configurations and distributes them to each border gateway device. Each border gateway device establishes peer-to-peer communication tunnels between participating ranges and directly forwards service traffic without relaying through the main control range. This solves the technical problem in the existing network range networking method where communication between sub-ranges must be relayed through the main control range, resulting in long links and high security risks.

[0050] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 4 , Figure 4 This is a flowchart illustrating Embodiment 2 of the network range networking method of this application.

[0051] In this embodiment, the step of parsing the network requirement information and generating a network intent description for the range collaborative task includes steps S11 to S14: Step S11: Parse the network requirement information and extract the participating ranges required for the range collaboration task, as well as the boundary gateway information and scenario information of each participating range.

[0052] Understandably, participating ranges can be range nodes required by range collaboration missions to participate in joint training, collaborative verification, or attack-defense drills. These participating ranges can belong to different units, different security domains, or different management entities. For example, participating ranges could be... Figure 1 The main target range, regional federation main target range S1, regional federation main target range S3, sub-target range S2, regional federation sub-target range S11, regional federation sub-target range S31, regional federation main target range S32, etc.

[0053] It should be understood that border gateway information can be related information of border gateway devices used to establish cross-domain connections at the boundaries of participating test ranges. This information may include border gateway device identifiers, interface information, address information, and management domain identifiers. Specifically, the border gateway device identifier uniquely identifies a border gateway device, such as a device serial number, device name, or device number; the interface information characterizes the physical or logical interface used by the border gateway device to establish peer-to-peer communication tunnels, such as the interface number, interface type, or interface speed; the address information characterizes the address used by the border gateway device in cross-domain networking, such as a management address, tunnel interface address, or service address; and the management domain identifier characterizes the management domain to which the border gateway device belongs, such as a security domain identifier, management entity identifier, or test range level identifier. For example, the border gateway information for a participating test range may include: a border gateway device identifier of GW-S1, interface information of GE0 / 0 / 1, address information of 192.168.1.254, and a management domain identifier of security domain A.

[0054] It should also be understood that scenario information can be information related to the scenario in which the participating range is located during the range collaboration task, and it can be used to characterize the participating range's affiliation, security level, and hierarchical position. In this embodiment, scenario information may include the participating range's range identifier, security domain level, hierarchical position, and affiliated management entity. Specifically, the range identifier is used to uniquely identify a participating range, such as the range name, range number, or range code; the security domain level characterizes the security domain and its security level where the participating range is located, such as high security level, medium security level, or low security level; the hierarchical position characterizes the level of the participating range in the tree-like cascade structure, such as first level, second level, or nth level; and the affiliated management entity characterizes the management affiliation of the participating range, such as belonging to a certain unit, department, or management entity. For example, the scenario information of a participating range may include: range identifier as range S1, security domain level as high security level, hierarchical position as first-level sub-range, and affiliated management entity as unit A.

[0055] Step S12: Determine the nodes and directed edges of the directed topology graph of the network based on the network topology and communication direction represented by the network requirements information.

[0056] Understandably, network topology can be the connection relationships between participating ranges required by a range collaboration task, and it can be used to describe the hierarchical and connection relationships between participating ranges. For example, the network topology required for a certain joint training task is: the main range is interconnected with range 1, range 3, and range 4 respectively; range 1 is interconnected with its sub-ranges; and range 3 is interconnected with its sub-ranges and range 4 respectively. In this embodiment, network topology includes, for example, star topology, tree topology, ring topology, and mesh topology. In a federated network range, such as... Figure 2 As shown, the network topology is usually presented as a tree-like cascaded structure, with the main control range as the root node, the first-level sub-ranges as intermediate nodes, and the second-level and lower-level sub-ranges as leaf nodes.

[0057] It is also understood that the communication direction can be the direction of traffic flow between participating ranges required by the range collaboration task. In this embodiment, the communication direction can include one-way communication and two-way communication. One-way communication means that traffic flows only from one participating range to another, for example, from the range where the attack node is located to the range where the target node is located. Two-way communication means that traffic is transmitted bidirectionally between two participating ranges, for example, data calls between business systems. For example, if a joint training task requires the attack node in range 1 to access the target node in range 3, then the communication direction between range 1 and range 3 is from range 1 to range 3.

[0058] It should be noted that the network directed topology graph can be a directed graph used to describe the communication relationships between participating ranges required for range collaboration tasks. It can include nodes and directed edges, where nodes represent participating ranges or interconnected nodes within participating ranges; directed edges represent the communication directions between participating ranges. In this embodiment, the network directed topology graph is a graphical representation of the network intent, used to characterize the participating ranges, interconnected nodes, communication paths, and access restrictions required for range collaboration tasks in a unified form. For example, the network directed topology graph corresponding to a certain joint training task may include: nodes representing range 1, range 3, and range 4; and directed edges pointing from range 1 to range 3 and from range 1 to range 4.

[0059] In practical implementation, the device can determine the nodes in the directed topology graph based on the network topology represented by the network requirements information. Nodes represent participating target ranges, and directed edges between nodes are determined based on the communication direction represented by the network requirements information. The direction of the directed edges represents the forwarding direction of service traffic between the corresponding two participating target ranges. For example, if a joint training task requires that attack nodes in regional federated main target range S1 can access target nodes in regional federated main target range S3, then the nodes in the directed topology graph include regional federated main target range S1 and regional federated main target range S3, and the directed edges point from regional federated main target range S1 to regional federated main target range S3.

[0060] Step S13: Add the boundary gateway information and the scene information to the node attributes of the node.

[0061] It should be understood that node attributes can be attribute information possessed by nodes in a directed network topology graph. These attributes can be used to characterize relevant information about the participating ranges or interconnected nodes corresponding to the node, specifically including border gateway information and scenario information. In this embodiment, node attributes are independent of specific devices; that is, node attributes do not limit the specific model and address planning of the border gateway device, but only characterize the roles and relationships of participating ranges and interconnected nodes in the network. For example, the node attributes of a certain node may include: border gateway device identifier GW-S1, interface information GE0 / 0 / 1, address information 192.168.1.254, management domain identifier security domain A, range identifier range S1, security domain level high security level, hierarchical position first-level sub-range, and affiliated management entity unit A.

[0062] In practical applications, the device can add the gateway identifier, interface information, address information, and management domain identifier from the border gateway information, as well as the range identifier, security domain level, hierarchical location, and affiliated management entity from the scenario information to the node attributes. For example, the device can add the gateway identifier, interface information, address information, and management domain identifier of the border gateway device of the regional federated sub-range S11 to the node attributes of the corresponding node of the regional federated sub-range S11, and add the range identifier, security domain level, hierarchical location, and affiliated management entity of the regional federated sub-range S11 to the node attributes of the corresponding node of the regional federated sub-range S11.

[0063] Step S14: Determine the open time period of the directed edge based on the access restriction information in the network requirement information, and add the open time period to the edge attribute of the directed edge to generate the network intent description of the range collaborative task.

[0064] It should be noted that access restriction information can be the restrictions imposed by the collaborative training mission on the access of business traffic between participating ranges. These restrictions can include time constraints and access object constraints. Time constraints limit the permitted time range for business traffic transmission, such as 9:00 AM to 11:00 AM or 2:00 PM to 5:00 PM daily during the mission. Access object constraints limit the objects that business traffic is allowed to access, such as target nodes, business systems, and detection nodes. For example, the access restriction information for a joint training mission might include: a time constraint of 9:00 AM to 11:00 AM daily during the mission, and an access object constraint allowing attack nodes in range 1 to access target nodes in range 3.

[0065] It should also be noted that the open period can be the time period during which the communication relationship represented by the directed edge is allowed to be open, that is, the time period during which the service traffic corresponding to the directed edge is allowed to be transmitted. It can be a single period or multiple periods. For example, the open period can be from 9:00 to 11:00 AM, or it can be two periods: from 9:00 to 11:00 AM and from 2:00 to 4:00 PM.

[0066] In practical applications, open periods can include three scenarios: no open periods, a single open period, and multiple open periods. No open periods mean the access is open by default throughout the task period; a single open period means the access is only open during that period; multiple open periods mean the access policy needs to be changed multiple times. In this embodiment, the open period is a component of the edge attribute, used to determine the nodes and directions of access policy changes. For example, if the open period for a directed edge is from 9:00 AM to 11:00 AM daily, then the service traffic corresponding to that directed edge is only allowed to be transmitted during that period.

[0067] Understandably, edge attributes can be attribute information possessed by directed edges in a network directed topology graph. These attributes can be used to characterize the relevant constraint information of the communication path corresponding to the directed edge, specifically including open time periods and permitted communication objects. In this embodiment, edge attributes are independent of specific devices; that is, edge attributes do not limit the specific model and address planning of the border gateway device, but only characterize the constraint relationship of the communication path in the time and object dimensions. For example, the edge attributes of a certain directed edge may include: open time periods are from 9:00 AM to 11:00 AM daily, and permitted communication objects are attack nodes in range 1 and target nodes in range 3.

[0068] In its implementation, the device can parse the time constraints and access object constraints in the access restriction information, determine the open time period for each directed edge based on the time constraints, and determine the allowed communication objects for each directed edge based on the access object constraints. Then, the open time period and allowed communication objects are added as edge attributes to the corresponding directed edges. For example, the device can determine that the open time period for the directed edge from regional federated sub-range S11 to regional federated sub-range S31 is from 9:00 AM to 11:00 AM, and the allowed communication objects are the targets in regional federated sub-range S31, based on the access restriction information. Then, the device adds the 9:00 AM to 11:00 AM time period and the targets in regional federated sub-range S31 to the edge attributes of the directed edge from regional federated sub-range S11 to regional federated sub-range S31. Thus, the device generates a network intent description for the range collaborative task.

[0069] In practical applications, the device can acquire the networking requirements information corresponding to the range collaborative task, parse the networking requirements information, and generate a networking intent description for the range collaborative task. (Refer to...) Figure 5 , Figure 5 This is a schematic diagram illustrating the service networking intent of the network range in the network range networking method of this application. For example... Figure 5 As shown, the network intent description can be presented in the form of a directed-band attribute graph, which includes nodes and directed edges. Nodes represent participating ranges, and directed edges represent the communication directions between participating ranges. For example... Figure 5 The network intention shown contains multiple nodes, including nodes 1 to 5, where node 1 corresponds to target range 1, node 2 corresponds to target range 1, node 3 corresponds to target range 3, node 4 corresponds to target range 4, and node 5 corresponds to target range 5.

[0070] like Figure 5As shown, the target range to which node 1 belongs is target range 1, the border gateway device identifier is 430DEC96-1F1E-448F-9CA6-17141CAD08BC, the type is attacker, the node ingress is 192.168.1.1 / 24, the node route is 192.168.1.254 / 24, and the corresponding open time period is 2026 / 08 / 27 08:00-10:00. Node 2 belongs to Target Range 1. Its border gateway device identifier is D3F7EAAC-C401-4C66-93F4-E42E69B19355. Its type is Scenario Instance. Its node ingress is 171.16.10.1 / 24, its node route is 171.16.10.254 / 24, and its idle IP1 is 171.16.10.200 / 24. Its node ingress 2 is 173.20.30.1 / 24, its node route 2 is 173.20.30.254 / 24, and its idle IP2 is 173.20.30.200 / 24. Its corresponding open time period is 08:00-10:00 on August 27, 2026. Node 3 belongs to Target Range 3, its border gateway device identifier is 4E3E8B58-791B-44CA-8C29-86782C2F8F2, its type is Scenario Instance, its node ingress is 171.16.10.1 / 24, its node route is 171.16.10.254 / 24, its idle IP1 is 171.16.10.200 / 24, and its corresponding open time period is 08:00-10:00. Node 4 belongs to Target Range 2, and its corresponding open time period is 08:00-10:00. Node 5 belongs to Target Range 5. In addition, the network intent description may also include WAN port information. For example, the WAN port identifier is pci:0000:02:00.00, the WAN port IP is 10.10.15.27 / 24, and the WAN port external information is 183.238.250.146. In practical applications, after parsing the network requirements information, the device can also add the WAN port information as part of the border gateway information to the node attributes of the corresponding node.

[0071] Further, the step of determining the open time period of the directed edge based on the access restriction information in the network requirement information, and adding the open time period to the edge attribute of the directed edge, includes: Step S141: Parse the time constraints and access object constraints in the access restriction information of the network requirement information.

[0072] It should be noted that time constraints can be conditions in access restriction information used to limit the time range within which business traffic is allowed to transmit. These can include the entire time period within the task period, a single continuous time period within the task period, or multiple discrete time periods within the task period. The task period can refer to the time range from the start to the end of a collaborative training task, such as the task period of a joint training task being from 8:00 AM to 6:00 PM on a certain day. A single continuous time period can refer to a continuous time interval within the task period, such as 9:00 AM to 11:00 AM each day during the task period. Multiple discrete time periods can refer to multiple non-contiguous time intervals within the task period, such as 9:00 AM to 11:00 AM and 2:00 PM to 5:00 PM each day during the task period. In practical applications, time constraints can be used to determine the open time periods corresponding to directed edges. For example, if the time constraint in the access restriction information corresponding to a joint training task is 9:00 AM to 11:00 AM each day during the task period, the device can determine that the open time periods corresponding to directed edges are from 9:00 AM to 11:00 AM each day.

[0073] It should also be noted that the access object constraints can be conditions in the access restriction information used to limit the objects that business traffic is allowed to access. These access objects can include simulation nodes, business systems, attack nodes, detection nodes, management nodes, and target nodes, etc. In this embodiment, the access object constraints can include information such as the allowed access object identifier, the allowed access object address range, and the target range to which the allowed access object belongs. The object identifier is used to uniquely identify an access object, such as a node name, node number, or node type. The object address range is used to characterize the network segment where the allowed access object is located, such as a source address range or a destination address range. The target range to which the object belongs is used to characterize the participating target range to which the allowed access object belongs, such as allowing access to target nodes in target range 3. In practical applications, access object constraints can be used to determine the allowed communication objects corresponding to directed edges. For example, if the access object constraints in the access restriction information corresponding to a certain joint training task allow attack nodes in target range 1 to access target nodes in target range 3, then the device can determine that the allowed communication objects corresponding to the directed edge are the attack nodes in target range 1 and the target nodes in target range 3.

[0074] Step S142: Determine the open time period corresponding to each directed edge according to the time constraint, and determine the allowed communication object corresponding to each directed edge according to the access object constraint.

[0075] Understandably, allowed communication objects can be those permitted to participate in communication during the period when the communication relationship represented by the directed edge is open. These objects can be one or more nodes, network segments, or services on the terminal side of the directed edge. For example, allowed communication objects can be targets in the regional federated sub-range S31, or all nodes belonging to a certain network segment in the regional federated sub-range S31.

[0076] Step S143: Add the open time period and the allowed communication object as edge attributes to the corresponding directed edge.

[0077] In this embodiment, by parsing the time constraints and access object constraints in the access restriction information, the open time period corresponding to each directed edge is determined according to the time constraints, and the allowed communication object corresponding to each directed edge is determined according to the access object constraints. Then, the open time period and allowed communication object are added as edge attributes to the corresponding directed edges, so that the network intention description can simultaneously express the communication direction, communication open time period, and allowed communication object between participating ranges. This ensures that the network intention description fully expresses the access restriction information, providing a basis for the construction of subsequent access policy evolution timed tasks and the automatic opening or restriction of communication by time period, thereby improving the efficiency and accuracy of cross-domain network configuration.

[0078] In practical implementation, the device can extract time-related constraints and access object-related constraints from the access restriction information to obtain time constraints and access object constraints. Next, based on the time period, cycle, or start and end times given in the time constraints, the device can determine the open time period corresponding to each directed edge. Simultaneously, based on the access object's identity, address, role, or network segment given in the access object constraints, the device can determine the allowed communication objects corresponding to each directed edge. Then, the device can associate the determined open time periods and allowed communication objects with the corresponding directed edges and save them as edge attributes in the network intent description. Therefore, the directed edges in the network intent description not only represent the communication direction between participating ranges but also the open time of the communication relationship and the allowed access objects.

[0079] In this embodiment, by parsing the network requirement information, the participating ranges and their boundary gateway and scenario information required for the range collaboration task are extracted. Based on the network topology and communication direction represented by the network requirement information, the nodes and directed edges of the directed topology graph are determined. The boundary gateway and scenario information are then added to the node attributes. Finally, the open periods for directed edges are determined based on the access restriction information in the network requirement information, and these open periods are added to the edge attributes. This achieves automated generation of the network intent description. Since the network intent description uniformly expresses the participating ranges, communication directions, and access restrictions in the form of a directed topology graph, and is independent of the device type and address information of specific boundary gateway devices, the network intent description can adapt to the differentiated requirements of different joint tasks regarding communication direction, address planning, routing relationships, and security policies, without requiring manual analysis and writing for specific devices. This improves the efficiency of cross-domain network topology construction, thereby enhancing the efficiency of network range networking.

[0080] Based on the first and / or second embodiments of this application, in the third embodiment of this application, the content that is the same as or similar to the above embodiments can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 6 , Figure 6 This is a flowchart illustrating Embodiment 3 of the network range networking method of this application.

[0081] In this embodiment, the step of generating the networking scheme for the range cooperative task based on the networking intent description includes steps S21 to S23: Step S21: Perform network configuration address planning based on the network intent description to obtain the address planning result.

[0082] It should be noted that network configuration address planning can be a process of planning the network addresses required for communication relationships between participating ranges based on the network intent description. Its purpose is to allocate non-conflicting network addresses for cross-domain communication between participating ranges while keeping the network segments of each participating range unchanged, thereby avoiding cross-domain communication failures due to address overlap. In this embodiment, network configuration address planning may include tunnel interface IP planning and logical access network segment planning. Tunnel interface IP planning is used to allocate tunnel interface IPs for peer-to-peer communication tunnels established between the boundary gateway devices of each participating range; logical access network segment planning is used to allocate logical access network segments for nodes corresponding to the same IP in scenarios where address conflicts exist. For example, network configuration address planning may include: selecting a network segment different from the node's own network segment, planning the tunnel interface IP corresponding to the peer-to-peer communication tunnel between nodes, and checking whether there is a scenario in the network intent description where the same node has directed access to two identical IPs. If so, a network segment different from both the node's own network segment and the network segment used by the tunnel interface IP is selected, and a logical access network segment is planned for the node corresponding to the same IP.

[0083] It should also be noted that the address planning result can be the address allocation information obtained after the network configuration address planning is completed, which is used to guide the subsequent network configuration generation. This can include the tunnel interface IP addresses between each participating range, the logical access network segments of each participating range, and the address translation relationship, etc. Among them, the tunnel interface address is used by the boundary gateway devices of each participating range to establish peer-to-peer communication tunnels; the logical access network segment is used by the nodes in the scenario instance where there is an address conflict to perform logical access; and the address translation relationship is used by the boundary gateway device to configure address translation rules locally.

[0084] In this embodiment, the address planning result is a component of the networking scheme, used to convert it into configuration parameters that can be loaded by the border gateway device when generating subsequent networking configuration information. For example, the address planning result corresponding to a certain joint training task may include: the tunnel interface addresses between the border gateway device of range 1 and the border gateway device of range 3 are 10.10.1.1 / 24 and 10.10.1.2 / 24; the logical access network segment allocated to node entry 1 in range 3 and node entry 1 in range 2 due to the same network segment is 10.20.1.0 / 24.

[0085] Further, the step of performing network configuration address planning based on the network intent description to obtain the address planning result includes: detecting whether there is an address conflict between the participating ranges required by the range collaboration task based on the network intent description; if there is an address conflict, performing network configuration address planning on the target nodes corresponding to the participating ranges with the address conflict to obtain the target network address corresponding to the target node; and allocating the target network address to the target node to obtain the address planning result.

[0086] Understandably, address conflicts can be situations where participating ranges contradict or overlap in their address planning as required by the range collaboration mission. These conflicts can include situations where nodes from different participating ranges have the same ingress network segment, nodes from different participating ranges have the same routing network segment, or different participating ranges have the same spatial IP network segment. For example, ... Figure 5 As shown, the network segment of node entry 1 corresponding to target range 3 is 171.16.10.1 / 24, and the network segment of node entry 1 corresponding to target range 2 is also 171.16.10.1 / 24. Therefore, there is an address conflict between target range 2 and target range 3. In practical applications, address conflicts can lead to the inability to correctly distinguish the source and destination of service traffic during cross-domain communication, resulting in cross-domain communication failure. Therefore, this embodiment needs to detect the existence of address conflicts. In this embodiment, the device can determine whether there is an address conflict between the participating target ranges by checking the node entry, node routing, spatial IP, and other information contained in the node attributes in the network intent description.

[0087] It should be understood that the target node can be a node in the participating test range that requires network configuration address planning due to address conflicts. Specifically, it can be a node corresponding to the participating test range with address conflicts, a node corresponding to the entry point of a node with address conflicts, a node corresponding to the route of a node with address conflicts, etc. For example, if Figure 5If there is an address conflict between node entry 1 of target range 2 and node entry 1 of target range 3, then the node corresponding to node entry 1 in both target range 2 and target range 3 can be used as the target node. In practical applications, the device can determine the node corresponding to the lower-priority participating target range among the participating target ranges with address conflicts as the target node to avoid affecting the address planning of the higher-priority participating target ranges.

[0088] It should also be understood that the target network address can be a network address that has been replanned and allocated for the target node. It can be used to replace the original conflicting network address of the target node, so that the address planning of each participating test range does not conflict with each other. In this embodiment, the target network address may include the logical access network segment corresponding to the target node, the tunnel interface address corresponding to the target node, the address translation relationship corresponding to the target node, etc. For example, if the original network segment of node entry 1 of test range 2 is 171.16.10.1 / 24, which conflicts with the network segment of node entry 1 of test range 3, the device can select the network segment 10.20.1.0 / 24, which is different from the network segment of test range 2 itself and the network segment used by the tunnel interface IP, as the target network address, and assign the target network address 10.20.1.0 / 24 to the target node in test range 2 corresponding to node entry 1.

[0089] In its implementation, the device can iterate through the node attributes of each participating test range in the network intent description, extracting information such as node network segments, node ingress addresses, node routing addresses, and spatial IP addresses for each participating test range. It then compares these information to determine if different participating test ranges use the same network segment, different nodes use the same IP address, tunnel interface addresses overlap with node network segments, or logical access network segments overlap with node network segments. If at least one of these conditions exists, an address conflict is identified among the participating test ranges. In the case of an address conflict, the device identifies the node in the participating test range with the conflict that requires address replanning as the target node. It then selects a network segment whose node network segment and tunnel interface address belong to a different network than those of the other participating test ranges with the conflict, and plans a target network address for the target node. Finally, the device assigns the planned target network address to the corresponding target node and records the correspondence between the target network address and the target node in the address planning results.

[0090] In this embodiment, address conflicts between participating ranges are detected based on the network intent description. If address conflicts exist, network configuration address planning is performed on the target nodes corresponding to the participating ranges with address conflicts to obtain the target network address corresponding to the target node. Then, the target network address is assigned to the target node, so that the address planning between participating ranges does not conflict with each other, avoiding cross-domain communication failure due to address overlap, thereby improving the feasibility and reliability of the network scheme at the address level.

[0091] Step S22: Determine the access policy change nodes and the corresponding change directions of the access policy change nodes based on the edge attributes in the network intent description.

[0092] It should be understood that the access policy change node can be a node associated with a directed edge in the network intent description where the access policy needs to change over time. It can be a sending node (i.e., the source node) or a receiving node (i.e., the destination node). In this embodiment, the access policy change node is the target of the access policy evolution timed task. When a directed edge has a single open period in its edge attributes, the access policy changes at the start and end times of that single open period, and the corresponding source and destination nodes are the access policy change nodes. When a directed edge has multiple open periods in its edge attributes, the access policy changes at the start and end times of each of the multiple open periods, and the corresponding source and destination nodes are the access policy change nodes. For example, if the open period in the edge attribute of the directed edge from range 1 to range 3 is 2026 / 08 / 27 08:00-10:00, then the access policy change nodes include the node corresponding to range 1 and the node corresponding to range 3.

[0093] It should also be understood that the direction of change can be the direction of change of the access relationship represented by the directed edge corresponding to the access policy change node before and after the open period. This can include changing from closed to open and from open to closed. Specifically, changing from closed to open means that at the beginning of the open period, the access policy changes from disallowing business traffic to allowing business traffic; changing from open to closed means that at the end of the open period, the access policy changes from allowing business traffic to disallowing business traffic. For example, for a directed edge with an open period of 08:00-10:00 on 2026 / 08 / 27, the direction of change of the access policy is from closed to open at 08:00 on 2026 / 08 / 27; and from open to closed at 10:00 on 2026 / 08 / 27. In practical applications, the direction of change corresponding to the access policy change node can be used to determine the order in which security policies take effect and to construct a scheduled task for access policy evolution.

[0094] Step S23: Based on the network intention description, the address planning results, the access policy change nodes, and the change direction, construct the network scheme for the range collaborative task.

[0095] In practical implementation, the device can plan tunnel interface IP addresses for peer-to-peer communication tunnels between participating ranges based on the communication relationships between them as described in the network intent description. The network segment of the tunnel interface IP address must be different from the network segment of each node in the participating range to avoid address conflicts. Furthermore, the device can check if there are any scenarios in the network intent description where the same node is directed to access two identical IP addresses. If such scenarios exist, the device can select a network segment that is different from both the node network segment and the network segment of the tunnel interface IP address to plan a logical access network segment for the node corresponding to the same IP address, thus obtaining the address planning result. For example, if regional federated sub-field S11 needs to access IP address 171.16.10.1 in regional federated sub-field S31, and also needs to access IP address 171.16.10.1 in regional federated sub-field S32, where IP address 171.16.10.1 in regional federated sub-field S31 is the same as IP address 171.16.10.1 in regional federated sub-field S32, the device can choose a network segment that is different from the node network segment of regional federated sub-field S31, the node network segment of regional federated sub-field S32, and the network segment to which the tunnel interface IP address belongs. This allows the device to plan a logical access network segment for IP address 171.16.10.1 in regional federated sub-field S31, and another logical access network segment for IP address 171.16.10.1 in regional federated sub-field S32. Next, the device can traverse the directed edges in the network configuration description and determine whether there are open periods based on the edge attributes. When open periods exist, the device can identify the nodes associated with the directed edges corresponding to the open periods as access policy change nodes, and determine the change direction based on the start and end times of the open periods. Finally, the device can associate the tunnel interface IP addresses in the address planning results with the logical access network segments, access policy change nodes, and change directions with the network intent description to construct a network scheme for the range collaborative task.

[0096] Furthermore, the step of constructing the networking scheme for the range collaborative task based on the network intent description, the address planning result, the access policy change nodes, and the change direction includes: Step S231: Based on the address planning results, determine the tunnel interface addresses and logical access network segments between each participating test range.

[0097] It should be noted that the tunnel interface address can be an IP address assigned to the tunnel interface corresponding to the peer-to-peer communication tunnel when establishing a peer-to-peer communication tunnel between the border gateway devices of each participating range. It can be used to identify the two ends of the tunnel when establishing Layer 2 and / or Layer 3 tunnels between participating ranges. In this embodiment, the tunnel interface address is planned from a network segment different from the node's own network segment. The network segment it belongs to is different from the node's network segment in each participating range, to avoid conflicts between the tunnel interface address and the participating range's own network segment. For example, when establishing a peer-to-peer communication tunnel between the border gateway device of range 1 and the border gateway device of range 3, the tunnel interface address on the range 1 side can be 10.10.1.1 / 24, and the tunnel interface address on the range 3 side can be 10.10.1.2 / 24.

[0098] It should also be noted that the logical access network segment can be a network segment planned for nodes with the same IP access scenario, used to replace the original node address in cross-domain access, that is, a network segment used for logical access by target nodes with address conflicts. In this embodiment, the logical access network segment is planned from a network segment that is different from the target node's own network segment and the network segment used by the allocated tunnel interface address when address conflicts exist. It can be used to replace the original conflicting network address of the target node, so that the address planning of each participating test range does not conflict with each other. For example, if the original network segment of node entry 1 in test range 2 is 171.16.10.1 / 24, which conflicts with the network segment of node entry 1 in test range 3, then the logical access network segment planned by the device for the target node in test range 2 corresponding to node entry 1 can be 10.20.1.0 / 24. In practical applications, the logical access network segment can be converted into the logical access network segment by configuring address translation rules locally on the border gateway device, thereby realizing cross-domain communication.

[0099] Step S232: Determine the order in which the security policies take effect among the participating ranges based on the access policy change nodes and the direction of change.

[0100] Understandably, the order in which security policies take effect can be the temporal sequence of the security policies among the participating ranges. This can be determined based on the access policy change nodes and the direction of change, indicating whether an allowable access policy is executed before the start of an open period, and a restricted access policy is executed after the end of the open period, or, in the case of multiple open periods, the allowable and restricted access policies are executed sequentially according to the multiple open periods. For example, for a directed edge with an open period of 08:00-10:00 on 2026 / 08 / 27, the order in which security policies take effect could be that an allowable access policy takes effect before 08:00, and a restricted access policy takes effect after 10:00.

[0101] Step S233: Associate the tunnel interface address, the logical access network segment, and the order in which the security policy takes effect with the network intent description to construct the network scheme for the range collaborative task.

[0102] In practical implementation, the device can extract the tunnel interface addresses corresponding to the peer-to-peer communication tunnels between participating test ranges from the address planning results, and extract the logical access network segments corresponding to nodes with the same IP access scenario. Next, the device can determine the participating test ranges that need policy changes based on the access policy change nodes, and determine the order in which access policies take effect between the participating test ranges based on the direction of change: from restricted access to allowed access before the start of the open period, and from allowed access to restricted access after the end of the open period. For example, if the network control device determines that regional federated sub-test ranges S11 and S31 are access policy change nodes, with the change direction being from restricted access to allowed access before the start of the open period, and from allowed access to restricted access after the end of the open period, the device can determine the order in which the security policies take effect between regional federated sub-test ranges S11 and S31 as follows: allowed access policy takes effect before the start of the open period, and restricted access policy takes effect after the end of the open period. Furthermore, if there are multiple open periods, the device can determine the order in which security policies take effect separately for each open period, ensuring that allowed access policy takes effect before the start of each open period, and restricted access policy takes effect after the end of each open period. Finally, the device can associate the tunnel interface address, logical access network segment, and security policy activation order with the nodes, directed edges, and edge attributes in the network intent description to construct a network scheme for range collaborative tasks.

[0103] In this embodiment, the tunnel interface addresses and logical access network segments between participating test ranges are determined based on the address planning results. The order in which security policies take effect between participating test ranges is determined based on the access policy change nodes and change directions. Then, the tunnel interface addresses, logical access network segments, and the order in which security policies take effect are associated with the network intent description. This allows the constructed network scheme to guide the boundary gateway devices of each participating test range to complete the establishment of peer-to-peer communication tunnels and the configuration of address translation rules. It also guides the boundary gateway devices to automatically execute the opening and closing of security policies in chronological order. This provides a reliable basis for generating network configuration information and directly forwarding service traffic between participating test ranges.

[0104] Further, the step of generating network configuration information according to the network topology scheme includes: Step S31: Convert the tunnel interface address, logical access network segment, and security policy activation order in the networking scheme into a loadable networking configuration for the border gateway device corresponding to each participating test range.

[0105] It should be noted that the loadable network configuration can be configuration content that the border gateway devices corresponding to each participating test range can directly parse, load, and execute. This can include tunnel establishment parameters, routing configuration parameters, address translation parameters, access control parameters, and security policy parameters. Specifically, tunnel establishment parameters are used by border gateway devices to establish peer-to-peer communication tunnels, such as tunnel interface address, peer identifier, tunnel type, and tunnel protocol; routing configuration parameters are used by border gateway devices to configure routing forwarding rules, such as destination network segment, next-hop address, and outgoing interface; address translation parameters are used by border gateway devices to configure address translation rules, such as source address translation parameters and destination address translation parameters; access control parameters are used by border gateway devices to configure access control rules, such as source address, destination address, protocol type, and port range; and security policy parameters are used by border gateway devices to configure security policies, such as enabling and disabling security policies. For example, the device converts the tunnel interface addresses 10.10.1.1 / 24 and 10.10.1.2 / 24 between the border gateway devices of target range 1 and target range 3, the logical access network segment 10.20.1.0 / 24 of the target node in target range 2, and the order in which security policies take effect, into a loadable network configuration in the form of a command-line script that can be recognized and loaded by the corresponding border gateway devices of target range 1, target range 2, and target range 3. In practical applications, the loadable network configuration can be provided in the form of command-line scripts, configuration files, structured data forms, etc.

[0106] Step S32: Construct a scheduled task for the evolution of access policies of the directed edges corresponding to the access policy change nodes in the network topology based on the access policy change nodes and change directions in the network topology.

[0107] It should be noted that the access policy evolution scheduled task can be a task pre-configured in the loadable network topology, used to trigger the border gateway device to switch access policies at a specific time. It can include information such as the scheduled trigger time, the affected node, the direction of change, and the execution action. Specifically, the scheduled trigger time represents the point in time when the access policy changes, such as the start and end times of an open period; the affected node represents the node affected by the access policy change, such as the source and destination nodes corresponding to the node where the access policy changes; the direction of change represents the direction of the access policy change, such as from closed to open or from open to closed; and the execution action represents the specific action performed on the affected node at the scheduled trigger time, such as opening or closing the access policy. For example, for a directed edge with an open period of 08:00-10:00 on August 27, 2026, the access policy evolution scheduled task constructed by the device can be: at 08:00 on August 27, 2026, execute the action of opening the access policy for the node corresponding to target range 1 and the node corresponding to target range 3; at 10:00 on August 27, 2026, execute the action of closing the access policy for the node corresponding to target range 1 and the node corresponding to target range 3. Furthermore, when the edge attribute of a directed edge contains multiple open periods, the device can construct corresponding access policy evolution scheduled tasks for each open period, thereby supporting multiple changes to the access policy.

[0108] Step S33: Associate the access policy evolution timer task as the trigger condition for the loadable network configuration to generate network configuration information.

[0109] In this embodiment, the tunnel interface address, logical access network segment, and security policy activation order in the networking scheme are transformed into loadable networking configurations for the border gateway devices corresponding to each participating test range. A scheduled task for the evolution of access policies is constructed based on the access policy change nodes and their directions in the networking scheme, corresponding to the directed edges of the access policy change nodes. This scheduled task is then associated with the loadable networking configuration as a trigger condition to generate networking configuration information. This enables the border gateway devices to not only establish peer-to-peer communication tunnels and configure forwarding and routing rules based on the networking configuration information, but also to automatically execute access policies that change over time in chronological order. This supports multiple changes in access policies in scenarios with multiple open periods, avoiding manual configuration and adjustment of the border gateway devices, thereby improving the efficiency and accuracy of cross-domain networking configuration.

[0110] In its implementation, the device can convert tunnel interface addresses into tunnel configurations, logical access network segments into routing configurations, and security policy activation order into security policy configurations based on the device type and interface type of the border gateway devices corresponding to each participating test range. Specifically, the device can perform these conversions separately for each participating test range, ensuring that each border gateway device for that range receives its own adaptable loadable network configuration. Next, the device can determine the participating test ranges requiring policy changes based on the access policy change nodes, and determine whether access changes from restricted to allowed before the start of the open period or from allowed to restricted after the open period ends, thus constructing a scheduled task for the access policy evolution for the directed edges corresponding to the access policy change nodes. Finally, the device can associate the scheduled task with the corresponding security policy configuration in the loadable network configuration, enabling the loadable network configuration to perform the corresponding policy switch and generate network configuration information when the scheduled task is triggered.

[0111] It should be noted that, as Figure 5 As shown, it is assumed that the basic network configuration of each border gateway device in the topology corresponding to the network intention description meets the basic conditions for network construction. (Refer to...) Figure 7 , Figure 7 This diagram illustrates the peer-to-peer communication network configuration and data flow in the network range networking method of this application. According to... Figure 7 As illustrated, the network control device executes the following steps to enable Node 1 to access the network configuration of Nodes 2 and 3. Nodes 2 and 3 share the same IP address, requiring differentiation in access settings. Node 1 represents the attack type. Based on Node 1's information, the attacking machine is configured with the IP address 192.168.1.1 / 24 and the next hop 192.168.1.254, ensuring a reachable link with the corresponding border gateway device. Node 2 represents the scenario instance type, also having a reachable link with the corresponding border gateway device. Its entry points include 171.16.10.1 / 24 and 173.20.30.1 / 24. Additionally, the corresponding free IP addresses within the entry network segments, 171.16.10.200 / 24 ​​and 173.20.30.200 / 24, are provided as the source IPs after SNAT translation. Node 3 is a scenario instance type, with a reachable link to the corresponding border gateway device. Its ingress is 171.16.10.1 / 24, and it provides the idle IP corresponding to the ingress network segment, namely 171.16.10.200 / 24, as the source IP after SNAT translation.

[0112] In practical applications, the network configuration of the border gateway device corresponding to Node 1 includes: Step 1.1: Create a Virtual Router (VRF); Step 1.2: Create a Layer 2 broadcast domain (BridgeDomain 10); Step 1.3: Create a Layer 2 TRUNK sub-interface, bind the Layer 2 broadcast domain 10 and VLAN 10 created in Step 1.2, and identify data streams carrying VLAN 10; Step 1.4: Create a bridge virtual interface (BVI1) corresponding to the attacker's machine on Node 1, configure the IP as 192.168.1.254 / 24, bind the Layer 2 broadcast domain 10 created in Step 1.2, and bind the Virtual Router (VRF) created in Step 1.1; Step 1.5: Create a WireGuard tunnel ingress / egress wg0, with an IP of 10.10.50.1 / 30, the IP of the peer node 2 is 10.10.50.2 / 30, and the peer public network ingress IP is 183.238.250.146; Step 1.6: Create a Layer 2 broadcast domain (BridgeDomain). 30; Step 1.7: Create a loopback interface loop0 with IP 1.1.1.1 / 30; Step 1.8: Create a VXLAN interface, bind it to the Layer 2 broadcast domain 30 created in Step 1.6, bind the source IP to the loopback interface in Step 1.7, and set the destination IP of peer node 2 to 1.1.2.1 / 30; Step 1.9: Create a bridge virtual interface BVI2 corresponding to node 2, configure it with IP 172.16.10.254 / 24, bind it to the Layer 2 broadcast domain 30 created in Step 1.6, and bind it to the virtual router VRF created in Step 1.1; Step 1.10: Create a corresponding SNAT translation policy, and at the exit BVI2, convert the source IP... 192.168.1.1 / 24 is converted to a BVI2 interface IP; Step 1.11: Create a WireGuard tunnel entry / exit wg1 with IP 10.10.50.5 / 30, peer node 3 with IP 10.10.50.6 / 30, and peer public network entry IP 183.238.250.199; Step 1.12: Create a Layer 2 broadcast domain BridgeDomain 20; Step 1.13: Create a loopback interface loop1 with IP address 1.1.1.5 / 30; Step 1.14: Create a VXLAN interface, bind it to the Layer 2 broadcast domain 20 created in Step 1.12, bind the source IP address to the loopback interface in Step 1.13, and set the destination IP address of peer node 3 to 1.1.3.1 / 30; Step 1.15: Create a bridge virtual interface BVI3 corresponding to node 3, configure it with IP address 10.10.1.1 / 24, bind it to the Layer 2 broadcast domain 20 created in Step 1.12, and bind it to the virtual router VRF created in Step 1.1.

[0113] The network configuration of the border gateway device corresponding to Node 2 includes: Step 2.1: Create a Layer 2 broadcast domain BridgeDomain 10; Step 2.2: Create a Layer 2 TRUNK sub-interface, bind the Layer 2 broadcast domain 10 and VLAN 10 created in Step 2.1, and identify the data flow carrying VLAN 10; Step 2.3: Create a WireGuard tunnel ingress / egress wg0, with IP address 10.10.50.2 / 30, and the IP address of the peer node 1 is 10.10.50.1 / 30. The peer public network ingress can be randomly configured. After Node 1 actively requests to establish a link, it performs IP auto-adaptation to obtain the correct outgoing public network IP address of Node 1; Step 2.4: Create a loopback interface loop0, with IP address 1.1.2.1 / 30; Step 2.5: Create a VXLAN interface, bind the Layer 2 broadcast domain 30 created in Step 2.1, bind the source IP address to the loopback interface in Step 2.4, and the destination IP address of the peer node 1 is 1.1.1.1 / 30.

[0114] The network configuration of the border gateway device corresponding to Node 3 includes: Step 3.1: Create a Virtual Router (VRF); Step 3.2: Create a Layer 2 broadcast domain (BridgeDomain 10); Step 3.3: Create a Layer 2 TRUNK sub-interface, bind the Layer 2 broadcast domain 10 and VLAN 10 created in Step 3.2, and identify data streams carrying VLAN 10; Step 3.4: Create a bridge virtual interface (BVI3) corresponding to one side of the Node 3 scenario, configure the IP as 172.16.10.254 / 24, bind the Layer 2 broadcast domain 10 created in Step 3.2, and bind the Virtual Router (VRF) created in Step 3.1; Step 3.5: Create a WireGuard tunnel ingress / egress wg0, with an IP of 10.10.50.6 / 30, and the IP of the peer node 1 as 10.10.50.5 / 30. The peer public network ingress can be randomly configured. After Node 1 actively requests to establish a link, it performs IP auto-adaptation to obtain the correct outgoing public network IP of Node 1; Step 3.6: Create a Layer 2 broadcast domain (BridgeDomain). 20; Step 3.7: Create a loopback interface loop0 with IP 1.1.3.1 / 30; Step 3.8: Create a VXLAN interface, bind it to the Layer 2 broadcast domain 20 created in Step 3.6, bind the source IP to the loopback interface in Step 3.7, and the destination IP of peer node 1 is 1.1.1.5 / 30; Step 3.9: Create a bridge virtual interface BVI1 for the corresponding network segment after DNAT, configure it with IP 10.10.1.2 / 24, bind it to the Layer 2 broadcast domain 20 created in Step 3.6, and bind it to the virtual route VRF created in Step 3.1; Step 3.10: Create a corresponding DNAT translation policy, at the ingress BVI1, translate the destination IP 10.10.1.2 / 24 to the actual ingress IP 171.16.10.1 / 24 of node 3; Step 3.11: Create a corresponding SNAT translation policy, at the egress BVI3, translate the source IP 192.168.1.1 / 24 to the BVI3 interface IP.

[0115] In one embodiment, such as Figure 7As shown, the data packet forwarding path for node 1 to access node 2 can be as follows: Step 4.1: The attacking machine 192.168.1.1 / 24 sends a cross-network segment original attack packet with a target IP of 171.16.10.1 / 24, and the traffic enters the corresponding border gateway device A of node 1 according to the next hop setting; Step 4.2: After the traffic enters device A, VLAN tag identification is completed, and it enters the corresponding TRUNK sub-interface; Step 4.3: The traffic enters the VRF of device A and finds the next hop address BVI1; Step 4.4: Device A performs the first Cross-segment routing lookup: The target IP is 171.16.10.1 / 24, which is forwarded at Layer 3 via BVI2; Step 4.5: Device A detects SNAT configuration on BVI2, and after routing, performs source IP address translation, replacing the original attacking source IP 192.168.1.1 / 24 with 171.16.10.200 / 24, and creates a 5-tuple mapping session table; Step 4.6: Traffic enters the VXLAN tunnel in the same Layer 2 broadcast domain through the device BVI2 interface; Step 4.7: Device A encapsulates the packet with VXLAN. Step 4.8: Device A performs a second cross-network segment route lookup, forcing traffic into the WireGuard tunnel interface wg0; Step 4.9: Device A performs WireGuard tunnel encapsulation, changing the outer source IP to the physical egress IP and the destination IP to the public IP of the peer device B, 183.238.250.146; Step 4.10: The traffic enters the border gateway device B corresponding to Node 2 via the Internet, performs WireGuard tunnel decapsulation, extracts the internal VXLAN packet, restores the source IP to 1.1.1.1 / 30, and restores the destination IP to 1.1.2.1 / 30; Step 4.11: Device B performs the first cross-network segment route lookup, the traffic enters the Layer 2 VXLAN tunnel for decapsulation, strips the VXLAN encapsulation, and restores the original IP packet after SNAT, source IP... 171.16.10.200 / 24, destination IP 171.16.10.1 / 24; Step 4.12: Device B sends traffic from the TRUNK sub-interface of the Layer 2 broadcast domain; Step 4.13: The final traffic arrives at the ingress of node 2.

[0116] In one embodiment, Node 2 and Node 3 have duplicate IPs. A DNAT mechanism is used to assign Node 3 a different IP, such as 10.10.1.2 / 24. The data packet forwarding path for Node 1 to access Node 3 can be as follows: Step 5.1: The attacking machine 192.168.1.1 / 24 sends a cross-segment original attack packet with a target IP of 10.10.1.2 / 24. Based on the next-hop settings, the traffic enters the border gateway device A corresponding to Node 1; Step 5.2: After entering device A, the traffic completes VLAN tag identification and enters the corresponding TRUNK sub-interface; Step 5.3: The traffic enters the VRF of device A and finds the next-hop address BVI1; Step 5.4: Device A performs the first cross-segment routing lookup. The target IP of 10.10.1.2 / 24 is forwarded at Layer 3 via BVI3; Step 5.5: The traffic enters the VXLAN tunnel within the same Layer 2 broadcast domain via the device BVI3 interface; Step 5.6: Device A encapsulates the packet with VXLAN. Step 5.7: Device A performs a second cross-network segment route lookup, forcing traffic into the WireGuard tunnel interface wg1; Step 5.8: Device A performs WireGuard tunnel encapsulation, changing the outer source IP to the physical egress IP and the destination IP to the public IP of the peer device C, 183.238.250.199; Step 5.9: The traffic enters the border gateway device C corresponding to node 3 via the Internet, performs WireGuard tunnel decapsulation, extracts the internal VXLAN packet, restores the source IP to 1.1.1.5 / 30, and restores the destination IP to 1.1.3.1 / 30; Step 5.10: Device C performs the first cross-network segment route lookup, the traffic enters the Layer 2 VXLAN tunnel for decapsulation, strips the VXLAN encapsulation, restores the original IP packet, source IP 192.168.1.1 / 24, destination IP... 10.10.1.2 / 24; Step 5.11: Traffic enters BVI1 interface of device C; Step 5.12: Device C queries the DNAT policy, performs destination IP address translation, replaces the original attacking side's destination IP 10.10.1.2 / 24 with 171.16.10.1 / 24, and creates a 5-tuple mapping session table; Step 5.13: Device C performs a second cross-segment routing table lookup, and traffic enters interface BVI3; Step 5.14: Device C queries the SNAT policy, performs source IP address translation, replaces the original attacking side's source IP 192.168.1.1 / 24 with 171.16.10.200 / 24, and creates a 5-tuple mapping session table; Step 5.15: Traffic enters the Layer 2 broadcast domain corresponding to interface BVI3 of device C, and traffic is sent out from the TRUNK sub-interface; Step 5.16: Finally, the traffic reaches the entry point of node 3.

[0117] As can be seen from the above process, the service traffic from Node 1 to Nodes 2 and 3 is directly forwarded through the peer-to-peer communication tunnels established between Node 1's corresponding border gateway device A and Node 2's corresponding border gateway device B and Node 3's corresponding border gateway device C, respectively, without needing to go through the main control range for data relay. For scenarios where Nodes 2 and 3 share the same IP address, access is differentiated using SNAT and DNAT mechanisms, enabling Node 1 to access Nodes 2 and 3 separately. Therefore, this application achieves on-demand, free networking between test ranges without going through a third-party relay test range, thereby shortening cross-domain communication links, reducing the security risks of data interception, tampering, leakage, or retention, and improving the stability of service interactions.

[0118] In this embodiment, address planning results are obtained by performing network configuration address planning based on the network intent description. Then, access policy change nodes and their corresponding change directions are determined based on the edge attributes in the network intent description. Finally, a network scheme for the range collaboration task is constructed based on the network intent description, address planning results, access policy change nodes, and change directions. This solves the problem of logical access network segments in scenarios where tunnel interface addresses and the same IP are accessed between participating ranges. Furthermore, the access policy change nodes and change directions clearly define the location and trend of access policy changes over time. This ensures that the network scheme not only includes tunnel relationships, routing relationships, and security policies, but also includes the basis for supporting the evolution of access policies over time. As a result, it can support the on-demand changes in communication direction, address planning, routing relationships, and security policies required by the range collaboration task, thereby improving the efficiency and accuracy of network scheme generation.

[0119] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the network range networking method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0120] This application also provides a network range networking device; please refer to... Figure 8 The network range networking device includes: The network intent generation module 10 is used to obtain the network requirement information corresponding to the range collaborative task, and parse the network requirement information to generate a network intent description of the range collaborative task. The networking scheme generation module 20 is used to generate a networking scheme for the target range collaborative task based on the networking intent description, and to perform compliance verification on the networking scheme. The network configuration generation module 30 is used to generate network configuration information according to the network scheme when the network scheme verification is passed. The network configuration information is used to characterize the configuration parameters adapted by the boundary gateway devices corresponding to each participating range required by the range collaboration task. The network configuration distribution module 40 is used to distribute the network configuration information to each of the border gateway devices, so that each of the border gateway devices can establish a peer-to-peer communication tunnel between the corresponding participating ranges according to the network configuration information. The peer-to-peer communication tunnel is used for direct forwarding of service traffic between the corresponding participating ranges.

[0121] The network range networking device provided in this application, employing the network range networking method described in the above embodiments, can solve the technical problem in existing network range networking methods where communication between sub-ranges must be relayed through the main control range, resulting in long links and high security risks. Compared with the prior art, the beneficial effects of the network range networking device provided in this application are the same as those of the network range networking method provided in the above embodiments, and other technical features in the network range networking device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0122] This application provides a network range networking device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the network range networking method in Embodiment 1 above.

[0123] The following is for reference. Figure 9 The diagram illustrates a structural schematic of a network range networking device suitable for implementing embodiments of this application. The network range networking device in this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 9 The network range networking device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0124] like Figure 9As shown, the network range networking equipment may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the network range networking equipment. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the network range networking equipment to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows network range networking equipment with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0125] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0126] The network range networking device provided in this application, employing the network range networking method described in the above embodiments, can solve the technical problems of network range networking. Compared with the prior art, the beneficial effects of the network range networking device provided in this application are the same as those of the network range networking method described in the above embodiments, and other technical features of this network range networking device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0127] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0128] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0129] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the network range networking method described in the above embodiments.

[0130] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.

[0131] The aforementioned computer-readable storage medium may be included in the network range networking equipment; or it may exist independently and not be assembled into the network range networking equipment.

[0132] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by the network range networking device, the network range networking device performs the following actions: obtains networking requirement information corresponding to the range collaborative task, parses the networking requirement information, and generates a networking intent description for the range collaborative task; generates a networking scheme for the range collaborative task based on the networking intent description, and performs compliance verification on the networking scheme; if the networking scheme verification passes, generates networking configuration information based on the networking scheme, the networking configuration information being used to characterize the configuration parameters adapted by the boundary gateway devices corresponding to each participating range as required by the range collaborative task; and distributes the networking configuration information to each boundary gateway device, so that each boundary gateway device establishes a peer-to-peer communication tunnel between the corresponding participating ranges based on the networking configuration information, the peer-to-peer communication tunnel being used for direct forwarding of service traffic between the corresponding participating ranges.

[0133] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0134] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0135] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0136] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described network range networking method. This solves the technical problem in existing network range networking methods where communication between sub-ranges must be relayed through the main control range, resulting in long links and high security risks. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the network range networking method provided in the above embodiments, and will not be repeated here.

[0137] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A network range networking method, characterized in that, The method is applied to a network control device, and the method includes: Obtain the networking requirement information corresponding to the range collaborative task, parse the networking requirement information, and generate a networking intent description for the range collaborative task. A network scheme for the range collaborative task is generated based on the network intent description, and the network scheme is verified for compliance. If the network scheme is verified, network configuration information is generated according to the network scheme. The network configuration information is used to characterize the configuration parameters adapted by the boundary gateway devices corresponding to each participating range as required by the range collaboration task. The network configuration information is distributed to each of the border gateway devices, so that each of the border gateway devices can establish a peer-to-peer communication tunnel between the corresponding participating ranges according to the network configuration information. The peer-to-peer communication tunnel is used for direct forwarding of service traffic between the corresponding participating ranges.

2. The method as described in claim 1, characterized in that, The step of parsing the network requirement information to generate a network intent description for the range collaborative task includes: The networking requirement information is parsed to extract the participating ranges required for the range collaboration task, as well as the boundary gateway information and scenario information of each participating range; Based on the network topology and communication direction represented by the network requirements information, determine the nodes and directed edges of the directed topology graph of the network. Add the border gateway information and the scene information to the node attributes of the node; The open time period of the directed edge is determined based on the access restriction information in the network requirements information, and the open time period is added to the edge attribute of the directed edge to generate the network intent description of the range collaborative task.

3. The method as described in claim 2, characterized in that, The step of determining the open time period of the directed edge based on the access restriction information in the network requirement information, and adding the open time period to the edge attribute of the directed edge, includes: Analyze the time constraints and access object constraints in the access restriction information of the network requirements information; The open time period corresponding to each directed edge is determined according to the time constraint condition, and the allowed communication object corresponding to each directed edge is determined according to the access object constraint condition. The open time period and the allowed communication object are added as edge attributes to the corresponding directed edge.

4. The method as described in claim 1, characterized in that, The step of generating the networking scheme for the range cooperative task based on the networking intent description includes: Based on the network configuration intent description, network configuration address planning is performed to obtain the address planning result; The access policy change nodes and the corresponding change directions of the access policy change nodes are determined based on the edge attributes in the network intent description. Based on the network intent description, the address planning results, the access policy change nodes, and the change direction, a network scheme for the range collaborative task is constructed.

5. The method as described in claim 4, characterized in that, The step of performing network configuration address planning based on the network intent description and obtaining the address planning result includes: Based on the network intent description, detect whether there are address conflicts between the participating ranges required by the range collaboration task; In the event of the address conflict, network configuration address planning is performed on the target nodes corresponding to the participating ranges with the address conflict to obtain the target network address corresponding to the target node. The target network address is assigned to the target node to obtain the address planning result.

6. The method as described in claim 4, characterized in that, The step of constructing the network scheme for the range collaborative task based on the network intent description, the address planning results, the access policy change nodes, and the change direction includes: Based on the address planning results, the tunnel interface addresses and logical access network segments between each participating test range are determined; The order in which security policies take effect among the participating ranges is determined based on the access policy change nodes and the direction of change. The network scheme for the range collaborative task is constructed by associating the tunnel interface address, the logical access network segment, and the order in which the security policy takes effect with the network intent description.

7. The method as described in claim 4, characterized in that, The step of generating network configuration information according to the network topology scheme includes: The tunnel interface address, logical access network segment and security policy effective order in the networking scheme are converted into the loadable networking configuration of the border gateway device corresponding to each participating test range. Based on the access policy change nodes and change directions in the network topology, construct a scheduled task for the access policy evolution of the directed edges corresponding to the access policy change nodes. The access policy evolution timer task is associated with the loadable network configuration as a trigger condition to generate network configuration information.

8. A network range networking device, characterized in that, The device includes: The network intent generation module is used to obtain network requirement information corresponding to the range collaborative task, parse the network requirement information, and generate a network intent description for the range collaborative task. The networking scheme generation module is used to generate a networking scheme for the target range collaborative task based on the networking intent description, and to perform compliance verification on the networking scheme. The network configuration generation module is used to generate network configuration information according to the network scheme when the network scheme verification is passed. The network configuration information is used to characterize the configuration parameters adapted by the boundary gateway devices corresponding to each participating range required by the range collaboration task. The network configuration distribution module is used to distribute the network configuration information to each of the border gateway devices, so that each of the border gateway devices can establish a peer-to-peer communication tunnel between the corresponding participating ranges according to the network configuration information. The peer-to-peer communication tunnel is used for direct forwarding of service traffic between the corresponding participating ranges.

9. A network range networking device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the network range networking method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the network range networking method as described in any one of claims 1 to 7.