A domain name resolution service scenario automatic generation method and system

By obtaining data from the network topology instance library and combining it with the resource library mirror data, the basic configuration of the domain name resolution business scenario is generated, which solves the problems of high manual cost and poor scalability in the existing technology, and realizes the automated generation and testing verification of the domain name resolution business scenario.

CN116506403BActive Publication Date: 2025-11-11GUANGZHOU UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310535887.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-12
Publication Date
2025-11-11
Estimated Expiration
2043-05-12

AI Technical Summary

Technical Problem

Existing technologies lack support for the automated generation of domain name resolution business scenarios, resulting in high manual costs and poor scalability. Furthermore, existing network topology generation technologies fail to effectively consider the automated generation of domain name resolution business layers.

Method used

By obtaining network topology data from a pre-set network topology instance library, processing information and integrating rules, and combining it with mirror data from a pre-set resource library, basic configurations for domain name resolution business scenarios are generated. Client traffic generators and scenario automated verification data are also introduced to achieve automated generation.

Benefits of technology

It reduced labor costs, improved the scalability and automation of domain name resolution business scenarios, reduced data maintenance costs, and enabled the automated construction of domain name resolution business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116506403B_ABST
    Figure CN116506403B_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for automatically generating domain name resolution business scenarios, comprising: obtaining network topology data from a preset network topology instance library based on acquired network scale parameters; processing the network topology data; integrating the processed network topology data according to preset routing protocol rules to generate a network topology configuration; obtaining mirror data from a preset resource library; configuring the network topology configuration to generate a basic configuration for a domain name resolution business scenario; and, based on the basic configuration for the domain name resolution business scenario, introducing a preset client traffic generator and scenario automation verification data to generate a domain name resolution business scenario, thereby achieving automated generation of domain name resolution business scenarios, reducing manual costs, and improving the scalability of domain name resolution business scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronics and information technology, and in particular to a method and system for automatically generating domain name resolution business scenarios. Background Technology

[0002] In existing technologies, domain name resolution services provide professional and accurate domain name resolution services for accessing network resources, enabling users to access host resources with their corresponding IP addresses simply by remembering a domain name. However, it is impractical to conduct test and verification experiments on domain name resolution service scenarios in the live network. Therefore, it is necessary to build domain name resolution service scenarios in a simulation environment. However, the current practice is to manually build domain name resolution service scenarios in a simulation environment. This process is cumbersome, time-consuming, has high labor costs, and lacks scalability.

[0003] Currently, among the published technologies, there is no technology for automatically generating domain name resolution business scenarios. While existing technologies disclose network topology generation, a core technology in this area, they do not automate the generation of the domain name resolution business layer. This means that business scenario setup still requires manual completion, increasing labor costs. Furthermore, these technologies rely on more complex information, such as network device information and fingerprint information, significantly increasing data maintenance costs. Summary of the Invention

[0004] This invention discloses a method and system for automatically generating domain name resolution business scenarios, which realizes the automated generation of domain name resolution business scenarios, reduces manual costs, and improves the scalability of domain name resolution business scenarios.

[0005] To achieve the above objectives, in a first aspect, the present invention discloses a method for automatically generating domain name resolution business scenarios, comprising:

[0006] Based on the obtained network scale parameters, retrieve network topology data from the preset network topology instance library;

[0007] The network topology data is processed, and the processed network topology data is integrated according to preset routing protocol rules to generate a network topology configuration.

[0008] Obtain mirror data from the preset resource library, configure the network topology configuration, and generate the basic configuration for the domain name resolution business scenario;

[0009] Based on the basic configuration of the domain name resolution business scenario, a preset client traffic generator and scenario automated verification data are introduced to generate the domain name resolution business scenario.

[0010] This invention discloses an automated generation method for domain name resolution service scenarios. The method includes obtaining network topology data from a preset network topology instance library based on acquired network scale parameters. The preset network topology instance library stores the network topology data to meet the domain name resolution service needs of users with different network scale parameters, improving the scalability of the generated domain name resolution service scenarios. Simultaneously, the network topology instance library only stores network topology data, reducing data maintenance costs. After obtaining the network topology data from the network instance library, the network topology data undergoes information processing to ensure it meets real-world requirements. Then, a preset routing protocol is used to integrate the processed network topology data according to rules, enabling the... The network topology data is logically connected to generate a logically usable network topology configuration. However, at this point, the network topology configuration is only a logical structure without corresponding resources and cannot be directly put into use. Therefore, by using the mirror data stored in the preset resource library to configure the network topology configuration with resources, the network topology configuration can be equipped with real resources, generating a basic configuration for a usable domain name resolution business scenario. On this basis, by configuring the client traffic generator and the automated verification data for the domain name resolution business scenario test, the domain name resolution business scenario can automatically make domain name resolution requests and automatically test and verify the domain name resolution business scenario, improving the automation of the generated domain name resolution business scenario and reducing manual costs.

[0011] As a preferred example, the step of obtaining network topology data from a preset network topology instance library based on the acquired network size parameters specifically includes:

[0012] Obtain the network size parameter, and retrieve the network topology data from a preset network topology instance library based on the network size parameter; the network topology data includes network routing node data and edge data.

[0013] This invention obtains network scale parameters provided by the user and retrieves network node and edge data from a network topology instance library based on these parameters. This satisfies the domain name resolution service needs of users with different network scale parameters, improves the scalability of the system, and the network instance library only stores the most basic "point" and "edge" data for building the network topology, without any other redundant information, which greatly reduces the cost of maintaining data.

[0014] As a preferred example, the information processing of the network topology data specifically includes:

[0015] Assign IP address information to the network routing node data;

[0016] The edge data is divided into network segments to generate several network segments. A client and server host are generated for each of the network segments, and IP address information is assigned to the client and server host of each network segment.

[0017] This invention assigns IP address information to the obtained network routing nodes and edge data and generates several client and server hosts, so that the network topology data conforms to the requirements of real domain names, making it easier to generate network topology configurations based on this.

[0018] As a preferred example, the step of integrating the network topology data after information processing according to preset routing protocol rules to generate a network topology configuration specifically includes:

[0019] Based on the IP address information of the network routing node data, it is matched with the several network segments respectively, and the client or server host in the network segment that matches the IP address information is added to the network routing node data to obtain network routing node configuration data;

[0020] According to preset routing protocol rules, the IP address information, internal and external network segment division information, and neighboring autonomous system information of the network routing node data are integrated to generate the network routing protocol configuration data.

[0021] The network topology configuration is generated by integrating the network routing node configuration data and the network routing protocol configuration data.

[0022] This invention integrates the network routing node data and the edge data according to rules to generate network routing node configuration data and network routing protocol configuration data, enabling the routing nodes to have the business capability of domain name resolution. At the same time, the generation of the network routing protocol configuration data enables the network topology configuration to have a communication foundation. Based on this, a complete set of network topology configuration data is automatically generated without manual construction, thus improving the efficiency of domain name resolution construction.

[0023] As a preferred example, the process of obtaining mirror data from a preset resource library and configuring resources for the network topology configuration specifically includes:

[0024] Obtain the mirror resources in the resource library and the network topology structure of the network topology configuration, and allocate corresponding mirror resources to each client and server host in the network topology configuration according to the network topology structure;

[0025] Read the client IPs and server host IPs from the network topology configuration, categorize them, and generate several sets named after the IPs;

[0026] Obtain the domain name resolution business scenario image configuration data and domain name resolution business scenario initialization data from the resource library, and load the domain name resolution business scenario image configuration data and domain name resolution business scenario initialization data into each of the plurality of sets respectively to generate the basic configuration of the domain name resolution business scenario.

[0027] This invention generates the basic configuration for the domain name resolution business scenario by matching the mirrored resources preset in the resource library with the network topology structure configured in the network topology configuration, thereby realizing the automated generation of the domain name resolution business scenario.

[0028] Secondly, the present invention discloses an automated generation system for domain name resolution business scenarios, including a data acquisition module, an information processing module, a resource configuration module, and a scenario generation module;

[0029] The data acquisition module is used to acquire network topology data from a preset network topology instance library based on the acquired network scale parameters;

[0030] The information processing module is used to process the network topology data and integrate the processed network topology data according to preset routing protocol rules to generate a network topology configuration.

[0031] The resource configuration module is used to obtain mirror data from a preset resource library, configure the network topology configuration, and generate basic configuration for the domain name resolution business scenario.

[0032] The scenario generation module is used to generate a domain name resolution business scenario by introducing a preset client traffic generator and scenario automated verification data based on the basic configuration of the domain name resolution business scenario.

[0033] This invention discloses an automated generation system for domain name resolution service scenarios. The system includes: acquiring network topology data from a preset network topology instance library based on obtained network scale parameters; storing network topology data in the preset network topology instance library to meet user domain name resolution service needs with different network scale parameters, thereby improving the scalability of domain name resolution service scenario generation; and reducing data maintenance costs by storing only network topology data in the network topology instance library. After acquiring the network topology data from the network instance library, the system processes the network topology data to ensure it meets real-world requirements. Then, it uses a preset routing protocol to integrate the processed network topology data according to rules, thereby enabling the system to... The network topology data is logically connected to generate a logically usable network topology configuration. However, at this point, the network topology configuration is only a logical structure without corresponding resources and cannot be directly put into use. Therefore, by using the mirror data stored in the preset resource library to configure the network topology configuration with resources, the network topology configuration can be equipped with real resources, generating a basic configuration for a usable domain name resolution business scenario. On this basis, by configuring the client traffic generator and the automated verification data for the domain name resolution business scenario test, the domain name resolution business scenario can automatically make domain name resolution requests and automatically test and verify the domain name resolution business scenario, improving the automation of the generated domain name resolution business scenario and reducing manual costs.

[0034] As a preferred example, the information processing module includes a node processing unit and an edge processing unit;

[0035] The node processing unit is used to assign IP address information to the network routing node data in the network topology data;

[0036] The edge processing unit is used to divide the edge data in the network topology data into network segments, generate several network segments, generate several client and server hosts for each of the several network segments, and assign IP address information to the client and server hosts of each network segment.

[0037] This invention generates several client and server hosts from the obtained network routing node and edge data, so that the network topology data conforms to the requirements of real domain names, making it easier to generate network topology configurations based on this.

[0038] As a preferred example, the information processing module further includes a data configuration unit and an integration unit;

[0039] The data configuration unit is used to match the IP address information of the network routing node data with the plurality of network segments respectively, and add the client or server host in the network segment that matches the IP address information to the network routing node data to obtain network routing node configuration data; and to integrate the IP address information, internal and external network segment division information and neighboring autonomous system information of the network routing node data according to preset routing protocol rules to generate the network routing protocol configuration data.

[0040] The integration unit is used to integrate the network routing node configuration data and the network routing protocol configuration data to generate the network topology configuration.

[0041] This invention integrates the network routing node data and the edge data according to rules to generate network routing node configuration data and network routing protocol configuration data, enabling the routing nodes to have the business capability of domain name resolution. At the same time, the generation of the network routing protocol configuration data enables the network topology configuration to have a communication foundation. Based on this, a complete set of network topology configuration data is automatically generated without manual construction, thus improving the efficiency of domain name resolution construction.

[0042] As a preferred example, the resource configuration module includes a client and server host configuration unit and a node configuration unit;

[0043] The client and server host configuration unit is used to obtain the mirror resources in the resource library and the network topology structure of the network topology configuration, and allocate corresponding mirror resources to each client and server host in the network topology configuration according to the network topology structure.

[0044] The node configuration unit is used to read the client IP and server host IP of the network topology configuration and classify them to generate several sets named by IP; obtain the domain name resolution business scenario mirror configuration data and domain name resolution business scenario initialization data from the resource library, and load the domain name resolution business scenario mirror configuration data and domain name resolution business scenario initialization data into each of the several sets respectively to generate the basic configuration of the domain name resolution business scenario.

[0045] This invention generates the basic configuration for the domain name resolution business scenario by matching the mirrored resources preset in the resource library with the network topology structure configured in the network topology configuration, thereby realizing the automated generation of the domain name resolution business scenario.

[0046] Thirdly, the present invention discloses a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, it implements an automated generation method for domain name resolution business scenarios as described in the first aspect. Attached Figure Description

[0047] Figure 1 This is a flowchart illustrating an automated generation method for domain name resolution business scenarios provided in an embodiment of the present invention.

[0048] Figure 2 : A schematic diagram of the structure of an automated generation system for domain name resolution business scenarios provided in an embodiment of the present invention;

[0049] Figure 3 : A flowchart illustrating an automated generation method for domain name resolution business scenarios provided in another embodiment of the present invention;

[0050] Figure 4 This is a diagram illustrating the network topology configuration and deployment effect provided in an embodiment of the present invention. Detailed Implementation

[0051] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0052] Example 1

[0053] This invention provides an automated generation method for domain name resolution business scenarios. For the specific implementation process of this method, please refer to... Figure 1 The process mainly includes steps 101 to 104, which mainly include:

[0054] Step 101: Obtain network topology data from the preset network topology instance library based on the obtained network scale parameters.

[0055] In this embodiment, the step specifically includes: obtaining the network scale parameter, and obtaining the network topology data from a preset network topology instance library according to the network scale parameter; the network topology data includes network routing node data and edge data.

[0056] This invention obtains network scale parameters provided by the user and retrieves network node and edge data from a network topology instance library based on these parameters. This satisfies the domain name resolution service needs of users with different network scale parameters, improves the scalability of the system, and the network instance library only stores the most basic "point" and "edge" data for building the network topology, without any other redundant information, which greatly reduces the cost of maintaining data.

[0057] Step 102: Process the network topology data and integrate the processed network topology data according to preset routing protocol rules to generate a network topology configuration.

[0058] In this embodiment, the step specifically includes: assigning IP address information to the network routing node data; dividing the edge data into network segments to generate several network segments, and assigning IP address information to each client and server host in each of the several network segments. Based on the IP address information of the network routing node data, matching it with the several network segments, and adding the client or server host in the network segment matching the IP address information to the network routing node data to obtain network routing node configuration data; integrating the IP address information, internal / external network segment division information, and neighboring autonomous system information of the network routing node data according to preset routing protocol rules to generate the network routing protocol configuration data; and integrating the network routing node configuration data and the network routing protocol configuration data to generate the network topology configuration.

[0059] This invention assigns IP address information to the obtained network routing nodes and edge data and generates client and server hosts, so that the network topology data conforms to the requirements of real domain names, making it easier to generate network topology configurations based on this.

[0060] Step 103: Obtain mirror data from the preset resource library, configure the network topology configuration, and generate the basic configuration for the domain name resolution service scenario.

[0061] In this embodiment, the step specifically includes: obtaining the mirror resources in the resource library and the network topology structure of the network topology configuration, and allocating corresponding mirror resources to each client and server host in the network topology configuration according to the network topology structure; reading the client IP and server host IP of the network topology configuration and classifying them to generate several sets named by IP; obtaining the domain name resolution service scenario mirror configuration data and domain name resolution service scenario initialization data from the resource library, and loading the domain name resolution service scenario mirror configuration data and domain name resolution service scenario initialization data into each of the several sets respectively to generate the basic configuration of the domain name resolution service scenario.

[0062] This invention integrates the network routing node data and the edge data according to rules to generate network routing node configuration data and network routing protocol configuration data, enabling the routing nodes to have the business capability of domain name resolution. At the same time, the generation of the network routing protocol configuration data enables the network topology configuration to have a communication foundation. Based on this, a complete set of network topology configuration data is automatically generated without manual construction, thus improving the efficiency of domain name resolution construction.

[0063] Step 104: Based on the basic configuration of the domain name resolution business scenario, introduce the preset client traffic generator and scenario automated verification data to generate the domain name resolution business scenario.

[0064] This invention generates the basic configuration for the domain name resolution business scenario by matching the mirrored resources preset in the resource library with the network topology structure configured in the network topology configuration, thereby realizing the automated generation of the domain name resolution business scenario.

[0065] On the other hand, embodiments of the present invention also provide an automated generation system for domain name resolution business scenarios, including a data acquisition module 201, an information processing module 202, a resource configuration module 203, and a scenario generation module 204.

[0066] The data acquisition module 201 is used to acquire network topology data from a preset network topology instance library based on the acquired network scale parameters.

[0067] The information processing module 202 is used to process the network topology data and integrate the processed network topology data according to preset routing protocol rules to generate a network topology configuration.

[0068] The resource configuration module 203 is used to obtain mirror data from a preset resource library, configure the network topology configuration, and generate basic configuration for the domain name resolution business scenario.

[0069] The scenario generation module 204 is used to generate a domain name resolution business scenario by introducing a preset client traffic generator and scenario automation verification data based on the basic configuration of the domain name resolution business scenario.

[0070] In this embodiment, the information processing module 202 includes a node processing unit and an edge processing unit.

[0071] The node processing unit is used to assign IP address information to the network routing node data in the network topology data.

[0072] The edge processing unit is used to divide the edge data in the network topology data into network segments, generate several network segments, generate several client and server hosts for each of the several network segments, and assign IP address information to the client and server hosts of each network segment.

[0073] In this embodiment, the information processing module 202 further includes a data configuration unit and an integration unit.

[0074] The data configuration unit is used to match the IP address information of the network routing node data with the plurality of network segments respectively, and add the client or server host in the network segment that matches the IP address information to the network routing node data to obtain network routing node configuration data; and to integrate the IP address information, internal and external network segment division information and neighboring autonomous system information of the network routing node data according to preset routing protocol rules to generate the network routing protocol configuration data.

[0075] The integration unit is used to integrate the network routing node configuration data and the network routing protocol configuration data to generate the network topology configuration.

[0076] In this embodiment, the resource configuration module 203 includes a client and server host configuration unit and a node configuration unit.

[0077] The client and server host configuration unit is used to obtain the mirror resources in the resource library and the network topology structure of the network topology configuration, and allocate corresponding mirror resources to each client and server host in the network topology configuration according to the network topology structure.

[0078] The node configuration unit is used to read the client IP and server host IP of the network topology configuration and classify them to generate several sets named by IP; obtain the domain name resolution business scenario mirror configuration data and domain name resolution business scenario initialization data from the resource library, and load the domain name resolution business scenario mirror configuration data and domain name resolution business scenario initialization data into each of the several sets respectively to generate the basic configuration of the domain name resolution business scenario.

[0079] In addition to the methods and systems described above, embodiments of the present invention also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements an automated generation method for domain name resolution business scenarios as described in the embodiments of the present invention.

[0080] This invention discloses an automated method and system for generating domain name resolution service scenarios. The method includes: obtaining network topology data from a preset network topology instance library based on acquired network scale parameters; storing the network topology data in the preset network topology instance library to meet user domain name resolution service needs with different network scale parameters, thereby improving the scalability of domain name resolution service scenario generation; and reducing data maintenance costs by storing only network topology data in the network topology instance library. After obtaining the network topology data from the network instance library, the method processes the network topology data to ensure it meets real-world requirements. Then, a preset routing protocol is used to integrate the processed network topology data according to rules, thereby enabling... The network topology data is logically connected to generate a logically usable network topology configuration. However, at this point, the network topology configuration is only a logical structure without corresponding resources and cannot be directly put into use. Therefore, by using the mirror data stored in the preset resource library to configure the network topology configuration with resources, the network topology configuration can be equipped with real resources, generating a basic configuration for a usable domain name resolution business scenario. On this basis, by configuring the client traffic generator and the automated verification data for the domain name resolution business scenario test, the domain name resolution business scenario can automatically make domain name resolution requests and automatically test and verify the domain name resolution business scenario, improving the automation of the generated domain name resolution business scenario and reducing manual costs.

[0081] Example 2

[0082] This invention provides another method for automatically generating domain name resolution business scenarios. For the specific implementation process of this method, please refer to... Figure 3 The process mainly includes steps 301 to 302, which mainly include:

[0083] Step 301: Obtain network topology data from a preset network topology instance library based on the acquired network scale parameters, process the network topology data, and integrate the processed network topology data according to preset routing protocol rules to generate a network topology configuration.

[0084] In this embodiment, the specific steps are as follows: First, obtain network scale parameters provided by the user. Then, based on these parameters, retrieve network topology data from a preset network topology instance library. This network topology data includes network routing nodes and edge data, thus providing more services to the user and improving system scalability. Next, assign IP address information to the network routing node data obtained from the network topology instance library. Then, divide the network into segments using the edge data obtained from the network topology instance library. Finally, generate a certain number of client and server hosts (including IP addresses) for each segment in the network topology. Finally, process the network routing nodes processed in the previous step... The point data and network segmentation data are integrated according to rules. This includes matching the IP address information of the network routing node data with several network segments, that is, matching the corresponding network segment based on the IP data of the routing node, and adding the client and server hosts belonging to that network segment. For example, if a routing node port IP contains 202.118.0.10, then its corresponding network segment data is 202.118.0.0 / 24, and the client and server hosts under its network segment are 202.118.0.11, 202.118.0.12, 202.118.0.13, etc., generating network routing node configuration data. In addition, to leverage the functionality of routing nodes, routing protocol support is required. Routing protocol configuration data needs to be matched one-to-one with each routing node. Therefore, the first step is to record the internal network exit IP address data of the routing node. Following this, routing protocol configuration data is generated. This process primarily involves generating routing protocol configurations based on the OSPF (Open Shortest Path First) protocol rules, using the routing node's external network entry segment information and internal network exit segment information. For routing nodes acting as autonomous system (AS) entry / exit points, this is further supplemented by generating routing protocol configurations based on the BGP (Border Gateway Protocol) rules, including the AS number to which the routing node belongs, the IP address of the AS's entry routing node, the IP addresses of the exit routing nodes of neighboring ASs, and the numbers of the neighboring ASs. The generation of routing configurations provides the communication foundation for the network. Through these three steps, the final network topology configuration is generated.

[0085] In this embodiment, the formal expression of the generated network topology configuration can be:

[0086] f(n) = H(v,e,x)

[0087] n: Network size;

[0088] f(n): A function to obtain network topology instances based on network size;

[0089] H(v,e,x): The result set of f(n), which includes routing node information v (node ​​data), intra-autonomous system network segment e (edge ​​data), and inter-autonomous system network segment x (edge ​​data).

[0090] G(H)=F

[0091] G(H): A function that generates a network topology configuration based on network routing nodes, edge set data, and routing node configuration data;

[0092] F: The final result of G(H) is the network topology configuration.

[0093] Meanwhile, in this embodiment, the network topology instance library is actually obtained from the source data of the existing network parameters from a third-party open-source database. This source data contains a lot of redundant information and cannot be used directly. Therefore, it is necessary to preprocess the source data, remove the redundant information, and format the data to finally generate a network topology instance library dataset that meets the system requirements. This dataset includes a routing node dataset, an autonomous system network segment dataset, and an inter-domain network segment dataset. The network routing node data is stored in the format of [node number, autonomous system number], indicating that the node belongs to the autonomous system. This dataset provides network node data for the "network topology generation" module. The dataset consists of two parts: "point" data and "edge" data. The intra-autonomous system (AAS) network segment dataset is named after the AAS number and stored in the format [node number, node number]. This indicates a direct connection between a pair of nodes. This dataset provides the "network topology generation" module with data on the relationships between network nodes. The inter-AAS network segment dataset is stored in the format [AAS number, AAS number, 0 / -1]. If the last bit of this tuple is 0, it indicates a connection between the two AAS; if it is -1, it indicates no connection. This dataset provides the "network topology generation" module with data on the relationships between network AAS, also known as "edge" data.

[0094] The routing node dataset provides the "point" data for generating the network topology, while the autonomous system network segment dataset and inter-domain network segment dataset provide the "edge" data. Next, the "point" data for generating the network topology is assigned actual IP addresses. Network segments are then divided using the "edge" data obtained from the network topology instance library, and a certain number of client and server hosts (including IP addresses) are generated for each network segment in the network topology. Finally, the "points" are logically connected through the "edge" data to generate a usable network topology configuration. In this embodiment, the deployment effect of the generated network topology configuration is as follows: Figure 4 .

[0095] Step 302: Configure resources for the network topology configuration to generate basic configuration for the domain name resolution service scenario.

[0096] In this embodiment, the specific steps are as follows: obtaining the mirror resources in the resource library and the network topology structure of the network topology configuration, and allocating corresponding mirror resources to each client and server host in the network topology configuration according to the network topology structure, so that the network topology configuration is specific and can be directly put into use. Then, reading the client IP and server host IP of the network topology configuration and classifying them, that is, reading the client IP and server host IP data from the network topology configuration, classifying them, generating multiple sets named by IP, and loading the generated domain name resolution business scenario mirror configuration and domain name resolution business scenario initialization data into each set, thus completing the generation of the basic configuration of the domain name resolution business scenario.

[0097] In this embodiment, the resource library includes a domain name resolution resource mirror library and domain name resolution business scenario initialization data. The domain name resolution resource mirror library contains mirror data of the resources required for the entire domain name resolution business scenario. Each mirror contains a domain name resolution service program installed. The difference lies in the customization of the domain name resolution service program in each type of resource, allowing it to focus on its own functional implementation. For example, a recursive server only provides domain name resolution results to the client and sends domain name resolution requests to other level servers, without providing domain name resolution functionality itself. The domain name resolution business scenario initialization data includes the initialization configuration data of each terminal in the domain name resolution business scenario. The configuration data of each terminal is different, mainly divided into client... The configuration sets are divided into client configuration sets, recursive server configuration sets, root server configuration sets, and authoritative server configuration sets. The client configuration set includes client mirror information, the recursive server specified for its service, and triggers. The recursive server configuration set includes recursive server mirror information, the root server specified for its service, and triggers. The root server configuration set includes root server mirror information, top-level domain name resolution data, and triggers. The authoritative server configuration sets are mainly divided into top-level server configuration sets and second-level server configuration sets. The top-level server configuration set includes authoritative server mirror information, second-level domain name resolution data, and triggers. The second-level server configuration set includes authoritative server mirror information, final domain name resolution data, and triggers.

[0098] Step 303: Generate automated verification data for the client traffic generator and domain name resolution business test scenario, and integrate it with the basic configuration of the domain name resolution business scenario to generate the domain name resolution business scenario.

[0099] In this embodiment, the step specifically involves generating automated verification data for the client traffic generator and domain name resolution service test scenario. The data generated in this process is integrated with the data set generated in the previous process to form the final configuration, namely the domain name resolution service scenario configuration, thereby generating the domain name resolution service scenario.

[0100] In this embodiment, after deploying the basic domain name resolution service scenario, we still need to manually initiate domain name resolution requests on the client side. This process is time-consuming and laborious, and does not reflect the automation level of the system. Therefore, a client traffic generator is introduced to solve the drawbacks of manually initiating domain name resolution requests. The client traffic generator can be started with one click on the client side and initiates domain name resolution requests from the client side at regular intervals. The domain name to be resolved and the time interval for sending resolution requests can be modified in real time according to user needs. This greatly improves the scalability of the system. At the same time, automated verification data generation for domain name resolution service test scenarios is introduced. The automated verification data generation for domain name resolution service test scenarios mainly automates the testing and verification of domain name resolution service scenarios, such as the "four risks" test scenario in domain name resolution service. The "four risks" include "blinding risk", "disappearance risk", "hijacking risk" and "isolation risk". Specifically, "blinding risk" and "disappearance risk" indicate the risk that the root server will no longer provide domain name resolution services to terminals in a specific autonomous system segment. "Hijacking risk" indicates the risk that domain name resolution data will be hijacked and stolen by a third party. "Isolation risk" indicates the risk that the entire autonomous system segment will be isolated in the entire network. Because the testing and verification process for these four risks is complex and extremely costly in real life, but these four risks have huge potential dangers, in order to reduce the complexity and testing and verification costs of the "four risks" testing scenario, the automated verification data generation for the domain name resolution business testing scenario has been implemented to generate test verification data for this testing scenario.

[0101] This embodiment provides an automated generation method for domain name resolution service scenarios. Based on the goal of quickly and accurately generating automated data for building domain name resolution service scenarios in practical application scenarios, it achieves automated network topology configuration generation technology. This method obtains node and edge data from a network instance library according to the user's network scale requirements, and integrates the "point" and "edge" data by assigning IPs to nodes and dividing network segments to generate a network topology configuration. Since the network instance library only stores the most basic "point" and "edge" data for building the network topology, without other redundant information, this greatly reduces the cost of maintaining data. It also achieves automated generation technology for domain name resolution service scenario configuration. This technology, based on the network topology configuration generated in the previous step, quickly generates multiple core configuration and verification data sets, such as domain name resolution service scenario initialization data, traffic generator, and automated verification data for domain name resolution service test scenarios, by obtaining mirror data from a mirror library. These data sets can achieve the effect of automatically building a complete domain name resolution service scenario. It also has high scalability to meet the needs of users with changing network scales.

[0102] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. A method for automatically generating domain name resolution business scenarios, characterized in that, include: Based on the obtained network scale parameters, retrieve network topology data from the preset network topology instance library; The network topology data is processed, and the processed network topology data is integrated according to preset routing protocol rules to generate a network topology configuration. The process involves: retrieving mirror data from a pre-defined resource library and configuring resources for the network topology configuration to generate a basic configuration for the domain name resolution service scenario; acquiring mirror resources from the resource library and the network topology structure of the network topology configuration, and allocating corresponding mirror resources to each client and server host in the network topology configuration according to the network topology structure; reading and classifying the client IPs and server host IPs of the network topology configuration to generate several sets named by IPs; retrieving mirror configuration data and initialization data for the domain name resolution service scenario from the resource library, and loading the mirror configuration data and initialization data into each of the several sets to generate the basic configuration for the domain name resolution service scenario. Based on the basic configuration of the domain name resolution business scenario, a preset client traffic generator and scenario automated verification data are introduced to generate the domain name resolution business scenario.

2. The method for automatically generating domain name resolution business scenarios as described in claim 1, characterized in that, The step of obtaining network topology data from a preset network topology instance library based on the acquired network scale parameters specifically includes: Obtain the network size parameter, and retrieve the network topology data from a preset network topology instance library based on the network size parameter; the network topology data includes network routing node data and edge data.

3. The method for automatically generating domain name resolution business scenarios as described in claim 2, characterized in that, The information processing of the network topology data specifically includes: Assign IP address information to the network routing node data; The edge data is divided into network segments to generate several network segments. Several client and server hosts are generated for each of the network segments, and IP address information is assigned to the client and server hosts of each network segment.

4. The method for automatically generating domain name resolution business scenarios as described in claim 3, characterized in that, The step of integrating the processed network topology data according to preset routing protocol rules to generate a network topology configuration specifically includes: Based on the IP address information of the network routing node data, it is matched with the several network segments respectively, and the client or server host in the network segment that matches the IP address information is added to the network routing node data to obtain network routing node configuration data; According to preset routing protocol rules, the IP address information, internal and external network segment division information, and neighboring autonomous system information of the network routing node data are integrated to generate network routing protocol configuration data. The network topology configuration is generated by integrating the network routing node configuration data and the network routing protocol configuration data.

5. A system for automatically generating domain name resolution business scenarios, characterized in that, It includes a data acquisition module, an information processing module, a resource allocation module, and a scene generation module; The data acquisition module is used to acquire network topology data from a preset network topology instance library based on the acquired network scale parameters; The information processing module is used to process the network topology data and integrate the processed network topology data according to preset routing protocol rules to generate a network topology configuration. The resource configuration module is used to obtain mirror data from a preset resource library and perform resource configuration on the network topology configuration to generate a basic configuration for the domain name resolution service scenario. The resource configuration module includes a client and server host configuration unit and a node configuration unit. The client and server host configuration unit is used to obtain mirror resources from the resource library and the network topology structure of the network topology configuration, and allocate corresponding mirror resources to each client and server host in the network topology configuration according to the network topology structure. The node configuration unit is used to read the client IP and server host IP of the network topology configuration and classify them to generate several sets named by IP. It obtains the domain name resolution service scenario mirror configuration data and domain name resolution service scenario initialization data from the resource library, and loads the domain name resolution service scenario mirror configuration data and domain name resolution service scenario initialization data into each of the several sets to generate the basic configuration for the domain name resolution service scenario. The scenario generation module is used to generate a domain name resolution business scenario by introducing a preset client traffic generator and scenario automated verification data based on the basic configuration of the domain name resolution business scenario.

6. The domain name resolution business scenario automated generation system as described in claim 5, characterized in that, The information processing module includes a node processing unit and an edge processing unit; The node processing unit is used to assign IP address information to the network routing node data in the network topology data; The edge processing unit is used to divide the edge data in the network topology data into network segments, generate several network segments, generate several client and server hosts for each of the several network segments, and assign IP address information to the client and server hosts of each network segment.

7. The domain name resolution business scenario automated generation system as described in claim 6, characterized in that, The information processing module also includes a data configuration unit and an integration unit; The data configuration unit is used to match the IP address information of the network routing node data with the plurality of network segments respectively, and add the client or server host in the network segment that matches the IP address information to the network routing node data to obtain network routing node configuration data. According to preset routing protocol rules, the IP address information, internal and external network segment division information, and neighboring autonomous system information of the network routing node data are integrated to generate network routing protocol configuration data. The integration unit is used to integrate the network routing node configuration data and the network routing protocol configuration data to generate the network topology configuration.

8. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by a processor, implements an automated generation method for domain name resolution business scenarios as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Protocol testing method of satellite communication simulation platform based on network virtualization

    CN114422010A

  • Network deployment method and apparatus

    WO2020010887A1