WO2024032100A1 - Micro service-based test system and method for industrial wireless network device accessing ipv6 - Google Patents

Micro service-based test system and method for industrial wireless network device accessing ipv6 Download PDF

Info

Publication number
WO2024032100A1
WO2024032100A1 PCT/CN2023/096985 CN2023096985W WO2024032100A1 WO 2024032100 A1 WO2024032100 A1 WO 2024032100A1 CN 2023096985 W CN2023096985 W CN 2023096985W WO 2024032100 A1 WO2024032100 A1 WO 2024032100A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
bird
nest
population
test case
Prior art date
Application number
PCT/CN2023/096985
Other languages
French (fr)
Chinese (zh)
Inventor
魏旻
方堃
杨帆
洪承镐
Original Assignee
重庆邮电大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 重庆邮电大学 filed Critical 重庆邮电大学
Publication of WO2024032100A1 publication Critical patent/WO2024032100A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/044Network management architectures or arrangements comprising hierarchical management structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/16Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using machine learning or artificial intelligence
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the invention belongs to the field of network equipment testing, and relates to a microservice-based industrial wireless network equipment access IPv6 testing system and method.
  • IPv6 provides solutions to the above problems.
  • IPv6 provides necessary technical support and broad address resources for the seamless connection of IP networks and industrial networks.
  • Applying IPv6 technology innovation to the field of industrial wireless networks can effectively solve the problem of massive terminal access, provide huge network space and data transmission channels for networked intelligent transformation and upgrading, and promote interconnection between heterogeneous networks.
  • the purpose of the present invention is to provide a microservice-based industrial wireless network device access IPv6 test system and method.
  • the present invention provides a microservice-based industrial wireless network device access IPv6 test system, including a test management system, a test agent, and a test environment based on a microservice architecture;
  • test management system based on microservice architecture includes interaction layer, forwarding layer, service layer, data layer and governance layer:
  • Interaction layer Web-based interactive interface, providing users with a human-computer interaction interface
  • Forwarding layer the service gateway, which is responsible for filtering and forwarding requests from the interaction layer, calling services of the service layer, and performing load balancing functions;
  • Service layer Contains independent microservices divided into functional modules, including: test resource management service module, test implementation management service module, test project management service module, user management service module, and log management service module;
  • Data layer saves all data required for the normal operation of the system
  • governance layer Improve the reliability and fault tolerance of the microservice system, including: service registration and discovery module, which provides the function of managing each microservice instance; service circuit breaker module, which prevents fault spread through failover and system isolation; service chain Route tracking and monitoring collects performance data on microservice call links; the service configuration center centrally manages all configuration attribute files;
  • the test agent is used to analyze test instructions from the test management system based on microservice architecture, send data streams to the corresponding test environment, receive data streams from the test environment, process the data streams, and interact with the test environment
  • the data flow processing results are uploaded to the test management system based on microservice architecture;
  • the test environment includes a gateway test environment, a router test environment, and a terminal test environment, which are respectively test environments built for gateways, routers, and terminals that want to access the IPv6 network; the test environment includes standard wireless routers, wireless terminals, and IPv6 wireless The border gateway, as well as the wireless router under test, the wireless terminal under test, and the IPv6 wireless border gateway under test provided by the user.
  • test agents include:
  • Communication interface Provides communication functions with the test management system based on microservice architecture
  • Protocol standard Embedded with the same protocol module as the industrial wireless network under test, it can conduct protocol consistency testing with the industrial wireless network under test;
  • Test agent description Contains useful information related to testing, including test agent definition information, driver test control information, and related parameter information;
  • Test driver Responsible for the interactive test flow with industrial wireless network equipment connected to the IPv6 test environment.
  • each microservice in the service layer specifically includes:
  • the test resource management service module includes test case management and test data management, and is used to manage IPv6 test cases for wireless network devices with different protocols, as well as test required data and test result data;
  • the test implementation management service module includes wireless access test management, test report management, and test case implementation management; the wireless access test management provides IPv6 test services for wireless network equipment access to various protocols; the test report management includes Add, delete and check operation functions for test reports; the test case implementation management includes test case set optimization and test case execution functions;
  • the test project management service module includes the functions of creating, deleting, viewing, and status maintenance of test projects
  • the user management service module includes viewing, adding, deleting and assigning permissions to user information
  • the log management service module includes recording system operation logs and test case execution logs.
  • the present invention provides a microservice-based industrial wireless network equipment access IPv6 testing method, which includes the following steps:
  • S1 The user logs in to the test management system based on microservice architecture, creates a test project, fills out the PICS form, and provides the tested device to the tester;
  • S2 The tester connects the device under test to the network environment under test according to the details in the test project;
  • test management system based on the microservice architecture calls the corresponding internal resources according to the test projects created by the user, calls the wireless access test service, generates a test case set, and calls the test case set optimization algorithm to analyze the test cases in the test case set. Prioritize;
  • test management system based on microservice architecture executes test cases one by one based on the test case set and sends test instructions to the test agent;
  • test agent sends a test stream to the IPv6 test environment where the industrial wireless network device accesses the device according to the operation instructions;
  • S6 The industrial wireless network equipment is connected to the network equipment in the IPv6 test environment to forward and respond to the test flow, and finally responds to the test flow to the test agent;
  • test agent simply processes the response test stream and uploads the results to the test management system based on microservice architecture
  • test management system After executing all test cases, the test management system based on microservice architecture analyzes the test results and generates a test report.
  • test case set is first obtained, it is based on some entries of the PICS table filled in by the user, including
  • device_type_id field protocol_type_id field, requirement_information field information
  • test case binding device_type_id field protocol_type_id field, requirement_information field information
  • the access test service will send the test case historical execution record of the test project to the test case management service.
  • the test case management service will retrieve the test case base from the database based on the test_case_id field information of the test case historical execution record. .
  • test cases are renumbered to obtain the test case number sequence
  • test case set optimization algorithm includes the following steps:
  • S33 Determine whether it exists If it does not exist, use the ordinary sorting algorithm according to The optimized test case number sequence is obtained by sorting the size in descending order. If it exists, the improved multi-objective cuckoo search algorithm is called to obtain the optimized test case number sequence.
  • the improved multi-objective cuckoo search algorithm includes the following steps:
  • A1 Define population size, discovery probability, and end conditions
  • a bird's nest represents the number sequence of all test cases in a test case set, representing a possible solution.
  • the bird's nest is defined as:
  • n represents the number of all bird's nests, that is, the population size
  • m represents the number of test cases in a test case set, that is, the number of test case numbers
  • tMax represents the maximum number of iterations
  • x ij represents the j-th test of the i-th bird's nest.
  • Use case number Represents the i-th bird's nest after t iterations
  • a population is defined as:
  • part of the bird's nest is abandoned with a certain probability.
  • the probability that the host of the bird's nest discovers the cuckoo egg is pa.
  • the end condition is defined as whether the current number of iterations is the maximum number of iterations tMax;
  • A2 Initialize the population and determine the fitness function
  • A3 Determine whether the end condition is met, that is, whether the maximum number of iterations tMax is reached. If it is met, the optimal bird's nest is output, otherwise the following loop steps are executed;
  • A4 Generate new bird nests and update the population through Levi’s flight mechanism
  • A5 Generate new bird nests and update the population through the random walk mechanism
  • A6 Determine whether the mutation decision-making condition is met. If it is met, update the number of iterations and return to step A4; if not, first use the mutation mechanism to generate a new bird's nest and update the population, then update the number of iterations and return to step A4.
  • the mutation decision condition is:
  • represents the threshold of the mutation mechanism
  • u represents the number of generations to be traced
  • the mutation mechanism is triggered and the population is updated with the current random walk mechanism. Treat it as the t+1 generation population for decision-making;
  • the mutation mechanism generates a new bird's nest formula as follows:
  • test case number of the new bird's nest is repaired by the asexual genetic mechanism; the population is calculated bird's nests fitness value non-dominated solution set Compare and Dominance relationship between solutions, update the non-dominated solution set to obtain
  • the bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
  • step A2 specifically includes the following steps:
  • randomPermutation(m) is the random permutation function of size m generated by the i-th initial bird nest, and the initial population is
  • the ranking objectives are to maximize test requirement coverage and maximize historical execution failure rate. Maximizing test requirement coverage means that test cases cover more test requirements as quickly as possible, and maximizing historical execution failure rate means that during the historical execution process , test cases that have discovered defects should have higher priority;
  • the objective function to maximize test requirement coverage is:
  • m represents the number of test cases in a test case set
  • x ij represents the j-th test case number of the i-th bird's nest
  • RCS indicates the number of test requirements covered by all test cases
  • the objective function to maximize the historical execution failure rate is:
  • the non-dominated solution set NDS (0) of the initial population is obtained by the following formula:
  • x a and x b are two different bird's nests.
  • step A5 specifically includes the following steps:
  • the initial update formula is:
  • represents the step control amount
  • Levy( ⁇ ) represents a random search path, obeying Levy distribution;
  • the improved Levi flight update formula is:
  • step A5 specifically includes the following steps:
  • the random walk mechanism is a process that simulates a bird's nest where the host may abandon the nest and generate a new bird's nest elsewhere after discovering a cuckoo egg with a certain probability.
  • the random walk mechanism produces new bird's nests. The expression is as follows:
  • the bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
  • the beneficial effects of the present invention are that: the present invention effectively solves the integration and expansion needs of various industrial wireless network access IPv6 test services through an IPv6 test system based on microservices.
  • Each microservice only focuses on one task and can easily To complete the task well, each microservice can be deployed independently, the microservices are loosely coupled, and the services coordinate and cooperate with each other.
  • the microservice architecture can provide great help for the deployment of test systems for industrial wireless network equipment to access IPv6.
  • Figure 1 is a test topology diagram of IPv6 access to industrial wireless network equipment based on microservices
  • Figure 2 shows the test framework diagram of microservice-based industrial wireless network equipment access to IPv6;
  • Figure 3 is the overall test workflow diagram
  • Figure 4 is an organization chart of functional requirements of the test management system based on microservice architecture
  • Figure 5 is the flow chart of test case acquisition
  • Figure 6 is a flow chart of the test case set optimization service program
  • Figure 7 is a flow chart based on the improved multi-objective cuckoo search algorithm
  • Figure 8 is the target space diagram
  • Figure 9 is a schematic diagram of the repair process of the asexual genetic mechanism
  • Figure 10 is the test case execution flow chart.
  • Figure 1 is a test topology diagram for IPv6 access to industrial wireless network equipment based on microservices.
  • the test topology for IPv6 access to industrial wireless network equipment based on microservices mainly consists of two parts: the test service layer and the network layer under test. .
  • test service layer consists of users and browsers, Internet routers, and test management systems based on microservice architecture:
  • test management system based on microservice architecture through a browser, and the browser will display the user’s human-computer interaction Interface. Users can register, log in, select test services, query test results and other operations according to the human-computer interaction interface;
  • the Internet router provides an Internet path between the user's browser device, the test management system based on microservice architecture and the network layer under test to achieve information interaction;
  • the test management system based on microservice architecture deployed on the cloud server can call the internal database according to the test service submitted by the user, send test instructions to the network layer under test, and can analyze the test data and respond to the browser with the test results. device.
  • the network layer under test consists of test agent, gateway test environment, router test environment, terminal test environment, etc.:
  • the test agent can analyze test instructions from the test management system based on microservice architecture, send data streams to the corresponding test environment, receive data streams from the test environment, and perform simple processing on the data streams.
  • the test agent will upload the data flow processing results interacting with the test environment to the test management system based on microservice architecture;
  • the gateway test environment, router test environment, and terminal test environment are test environments respectively built for gateways, routers, and terminals that want to access the IPv6 network.
  • the test environment includes standard wireless routers, wireless terminals, IPv6 wireless border gateways and other equipment, as well as user-provided wireless routers under test, wireless terminals under test, IPv6 wireless border gateways under test and other equipment.
  • Figure 2 shows the test framework diagram of IPv6 access for industrial wireless network equipment based on microservices.
  • the test management system based on microservices architecture includes interaction layer, forwarding layer, service layer, data layer and governance layer:
  • the interaction layer is a Web-based interactive interface that provides users with a human-computer interaction interface
  • the forwarding layer that is, the service gateway, is mainly responsible for filtering and forwarding requests from the interaction layer, calling services of the service layer, and performing load balancing and other functions;
  • the service layer includes independent microservices divided into functional modules, including: test resource management service, test implementation management service, test project management service, user management service, and log management service modules;
  • the data layer stores all data required for the normal operation of the system
  • the governance layer mainly improves the reliability and fault tolerance of the microservice system, including: service registration and discovery module, which provides the function of managing each microservice instance; service circuit breaker module, which prevents avalanches caused by fault spread through failover, system isolation and other means. Effect; service link tracking and monitoring collects performance data on microservice call links; the service configuration center can centrally manage all configuration attribute files.
  • the test agent is a bridge between the test management system based on microservice architecture and the access of industrial wireless network equipment to the IPv6 test environment. It mainly includes:
  • Communication interface providing communication functions with the test management system based on microservice architecture
  • Protocol standard embedded with the same protocol module as the industrial wireless network under test, can communicate with the industrial wireless network under test Protocol conformance testing;
  • Test agent description including some useful information related to testing, such as test agent definition information, driver test control information, and related parameter information;
  • the test driver is mainly responsible for interacting with the IPv6 test environment by connecting industrial wireless network equipment to the test flow.
  • the user needs to provide the device under test to the tester. After the user creates the test project, the tester will connect the device under test to the network environment under test according to the details in the test project;
  • PICS Protocol Implementation Conformance Statement
  • test management system based on the microservice architecture calls the corresponding internal resources according to the test projects created by the user, calls the wireless access test service, generates a test case set, and calls the test case set optimization algorithm to perform centralized testing of the test cases Prioritize use cases;
  • test management system based on microservice architecture executes test cases one by one based on the test case set and sends test instructions to the test agent;
  • test agent sends test streams to the IPv6 test environment where the industrial wireless network equipment accesses according to the operation instructions;
  • test agent simply processes the response test stream and uploads the results to the test management system based on microservice architecture
  • test management system based on microservice architecture will analyze the test results and generate testing report.
  • test management system In order to facilitate the management of wireless network devices with different protocols accessing IPv6 test cases, as well as test required data and test result data, the test management system based on microservice architecture needs to have a test resource management function so that testers can increase the resources required for testing. Delete, modify and check.
  • test management system of the service architecture should have test implementation management functions.
  • Test implementation management functions include: wireless access test management, which includes wireless network device access IPv6 test services for various protocols, such as Wireless HART access test, WIA-PA access test, 6LoWPAN access test, etc.; test report Management includes operation functions such as adding, deleting and checking test reports; test case implementation management includes test case set optimization, test case execution and other functions.
  • Test project management functions include test project creation, deletion, viewing, status maintenance and other functions.
  • test management system based on microservice architecture should have a log management function to record in detail the system users' operations and operation results, record the execution process of test cases, etc., to facilitate problem finding and accountability, and to solve problems in a timely manner.
  • the process of obtaining test cases is shown in Figure 5.
  • the access test service calls test cases from the database by calling the test case management service to obtain the test case set. Access the test service and call the test case optimization service, through the optimization algorithm Prioritize the test case set, and then return the optimized test case set to the access test service.
  • test case set When the test case set is first obtained, it is based on some entries in the PICS table filled in by the user, including the device_type_id field, protocol_type_id field, and requirement_information field information.
  • the device_type_id field, protocol_type_id field, and requirement_information field information When the test case is designed, the device_type_id field, protocol_type_id field, and requirement_information field information will be bound.
  • Table 3 The test case structure is shown in Table 3.
  • test case historical execution record structure is shown in Table 4.
  • the test case management service retrieves test cases from the database based on the test_case_id field information in the test case history execution record.
  • the test management system based on the microservice architecture retrieves the test case set from the database and renumbers the test cases in it. Renumbering means that if the test case set has m test cases, then renumber each test case from 1 to m to obtain the test case number sequence.
  • the input of the test case set optimization service program is the test case number x ij and the test requirement coverage number of the corresponding test case Number of historical execution failures of test cases As shown in Table 5.
  • the output is the optimized test case number sequence.
  • test case set optimization service program process is shown in Figure 6.
  • the program will first determine whether the test project exists If it does not exist, use the ordinary sorting algorithm according to The optimized test case number sequence is obtained by sorting the size in descending order. If it exists, the improved multi-objective cuckoo search algorithm is called to obtain the optimized test case number sequence.
  • Step 1 Define the population size, discovery probability, end conditions, etc.
  • a bird's nest represents the number sequence of all test cases in a test case set, representing a possible solution.
  • the bird's nest is defined as:
  • n the number of all bird nests, that is, the population size
  • a population is defined as:
  • the algorithm abandons part of the bird's nest with a certain probability when executing the random walk mechanism.
  • the probability that the host of the bird's nest discovers the cuckoo egg is pa. Define the end condition as whether the current number of iterations is the maximum number of iterations tMax.
  • Step 2 Initialize the population and determine the fitness function
  • randomPermutation(m) is a random arrangement function that generates a size m for the i-th initial bird's nest, then the initial population is
  • This algorithm is based on the ranking objectives of maximizing test requirement coverage and maximizing historical execution failure rate. Maximizing test requirement coverage means that test cases cover more test requirements as quickly as possible, and maximizing the historical execution failure rate means that test cases that have discovered defects during the historical execution process should have a higher priority.
  • m represents the number of test cases in a test case set
  • x ij represents the j-th test case number of the i-th bird's nest.
  • RCS indicates the number of test requirements covered by all test cases.
  • test cases with higher historical execution failure rates should be ranked higher.
  • the objective function that maximizes the historical execution failure rate is shown in Expression 5.
  • m - represents the number of test cases in a test case set
  • x ij represents the j-th test case number of the i-th bird's nest
  • FCS indicates the number of historical execution failures of all test cases.
  • Pareto optimal solution If there is no solution that can dominate x in the solution space, that is, all bird's nests, then x is said to be non-dominated, and such a solution is called a Pareto optimal solution.
  • the solution of multi-objective optimization is usually not the only solution, but a set containing multiple Pareto optimal solutions, and this set is called the Pareto front. Since the objective functions of this test case set optimization algorithm are two, the Pareto front can be represented by two-dimensional coordinates, as shown in Figure 8.
  • This algorithm uses the objective function as the fitness function, and the value of the objective function is the fitness value.
  • the non-dominated solution set NDS (0) of the initial population is obtained.
  • Step 3 Whether the ending conditions are met
  • This test case set optimization algorithm must judge whether the end condition is met after each iteration, and the end condition is the maximum number of iterations tMax. If the current iteration number t reaches tMax, then jump out of the loop and output the optimal bird's nest. If t is less than tMax, then Execute loop content.
  • Step 4 Levi’s flight mechanism generates new nests and updates the population
  • represents the step control amount
  • Levy( ⁇ ) represents a random search path, obeying Levy distribution.
  • Levi's flight mechanism is a form of locomotion that alternates short-distance exploration with occasional longer-distance walking. Using Levi's flight mechanism can expand the search range, increase the diversity of the bird's nest, and make it easier to jump out of the local optimum. To facilitate calculation, expression 9 is used to generate Levy random numbers:
  • step control amount ⁇ in Expression 11 should be chosen carefully because it controls the global search. If the value of ⁇ is too small, then the possible solution will be close to the current optimal solution and will fall into the local optimal solution. If the value of ⁇ is too large, the result may be out of bounds. Improving ⁇ to a dynamic adaptive step size will expand the initial search range and reduce the step size of later iterations, thereby improving convergence efficiency. adaptive step size As shown in expression 12
  • the bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
  • Step 5 Random walk mechanism generates new nests and updates the population
  • the random walk mechanism of the cuckoo algorithm simulates the process in which the host of a bird's nest may abandon the nest and generate a new bird's nest elsewhere after discovering a cuckoo egg with a certain probability. Random walk mechanism production line new bird's nest The expression of is shown in Expression 14:
  • test case numbers of the new bird's nest need to be processed.
  • the processing process is similar to step (2) in step 4. Obtained after all bird's nests are repaired population
  • the bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
  • Step 6 Determine whether the mutation decision-making conditions are met.
  • represents the threshold of the mutation mechanism
  • u represents the number of generations to be traced.
  • the mutation mechanism When the fitness value of the i-th bird's nest in consecutive u generations remains within a small range, the mutation mechanism will be triggered. Note the population updated with the current random walk mechanism Treat it as the t+1 generation population for decision-making.
  • Step 7 The mutation mechanism generates new nests and updates the population
  • the mutation mechanism produces a new bird's nest formula as shown in Expression 16.
  • x ⁇ represents the random mutation parameter
  • step (2) in step 4 of the processing process is similar. After all bird nests are repaired, the population will be obtained
  • the bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
  • Step 8 Update the number of iterations
  • the population in step five As the population P (t+1) that has been iterated t+1 times
  • the population in step seven As the population P (t+1) that has been iterated t+1 times.
  • Step 9 Output the optimal bird's nest
  • each test case After accessing the test service to obtain the optimized test case set, each test case begins to be executed.
  • the process is shown in Figure 10.
  • the access test service parses the test cases in the test case set to obtain several test instructions, and forwards the test instructions to the test agent through the service gateway; after receiving the test instructions, the test agent sends a test stream to the industrial wireless network device access IPv6 test environment; test The stream is forwarded and processed by the device in the IPv6 test environment connected to the industrial wireless network device.
  • the final response test stream will be received by the test agent; the test agent simply processes the response test stream and uploads the test instruction execution results to the access test through the service gateway. Serve.
  • test case After all the test instructions of the current test case are executed, the next test case is parsed and executed until all test cases in the test case set are executed. Then access the test service to call the test report management service to generate a test report, and the test report will be saved to the database.

Abstract

The present invention belongs to the field of network device testing, and relates to a micro service-based test system and method for an industrial wireless network device accessing IPv6. The method comprises: a user logging in to a test management system, creating a test item, filling in a PICS form, and providing a device under test to a tester; the tester making the device under test access a network environment under test; the test management system generating a set of test cases, and performing priority ranking on the test cases in the set of test cases; the test management system executing the test cases one by one, and sending a test instruction to a test agent; the test agent sending, according to an operation instruction, a test flow to an environment for testing an industrial wireless network device accessing IPv6; a network device in the environment for testing the industrial wireless network device accessing IPv6 forwarding the test flow, and responding to the test agent; the test agent uploading a result to the test management system based on a micro-service architecture; and after all test cases are executed, the test management system analyzing the test result to generate a test report.

Description

基于微服务的工业无线网络设备接入IPv6测试系统及方法Microservice-based industrial wireless network equipment access IPv6 test system and method 技术领域Technical field
本发明属于网络设备测试领域,涉及一种基于微服务的工业无线网络设备接入IPv6测试系统及方法。The invention belongs to the field of network equipment testing, and relates to a microservice-based industrial wireless network equipment access IPv6 testing system and method.
背景技术Background technique
在工业数据采集领域,各种工业无线网络协议种类繁多。当前存在WIA-PA、WirelessHART、6LoWPAN等多种工业无线协议标准,各个自动化设备生产及集成商还会自己开发各种私有的工业协议,各种协议标准不统一、互不兼容。In the field of industrial data collection, there are many types of industrial wireless network protocols. Currently, there are various industrial wireless protocol standards such as WIA-PA, WirelessHART, and 6LoWPAN. Each automation equipment manufacturer and integrator will also develop various private industrial protocols. The various protocol standards are not unified and incompatible with each other.
IPv6的出现为上述问题提供了解决方案。IPv6作为下一代IP协议,为IP网络与工业网络的无缝连接提供了必要的技术支持和广阔的地址资源。将IPv6技术创新应用于工业无线网络领域,可有效的解决海量终端接入问题,为网络化智能化转型升级提供庞大网络空间与数据传输通道,促进异构网络间的互联互通。The emergence of IPv6 provides solutions to the above problems. As the next generation IP protocol, IPv6 provides necessary technical support and broad address resources for the seamless connection of IP networks and industrial networks. Applying IPv6 technology innovation to the field of industrial wireless networks can effectively solve the problem of massive terminal access, provide huge network space and data transmission channels for networked intelligent transformation and upgrading, and promote interconnection between heterogeneous networks.
在工业无线网络设备接入IPv6之前,应对该设备进行相关测试,但如今有关业无线网络设备接入IPv6网络的测试研究较少,并且针对各种网络协议的测试方法多样,传统的单体软件架构测试方法难以满足各种工业无线网络接入IPv6测试服务的融合和扩展需求。Before industrial wireless network equipment is connected to IPv6, relevant tests should be carried out on the equipment. However, there are few research studies on the testing of industrial wireless network equipment connected to IPv6 networks, and there are various testing methods for various network protocols. Traditional single software Architectural testing methods are difficult to meet the integration and expansion needs of various industrial wireless network access IPv6 test services.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种基于微服务的工业无线网络设备接入IPv6测试系统及方法。In view of this, the purpose of the present invention is to provide a microservice-based industrial wireless network device access IPv6 test system and method.
为达到上述目的,本发明提供如下技术方案:In order to achieve the above objects, the present invention provides the following technical solutions:
一方面,本发明提供一种基于微服务的工业无线网络设备接入IPv6测试系统,包括基于微服务架构的测试管理系统、测试代理、测试环境;On the one hand, the present invention provides a microservice-based industrial wireless network device access IPv6 test system, including a test management system, a test agent, and a test environment based on a microservice architecture;
所述基于微服务架构的测试管理系统包括交互层、转发层、服务层、数据层以及治理层:The test management system based on microservice architecture includes interaction layer, forwarding layer, service layer, data layer and governance layer:
交互层:基于Web的交互界面,向用户提供人机交互界面;Interaction layer: Web-based interactive interface, providing users with a human-computer interaction interface;
转发层:即服务网关,负责过滤和转发交互层的请求、调用服务层的服务、进行负载均衡功能;Forwarding layer: the service gateway, which is responsible for filtering and forwarding requests from the interaction layer, calling services of the service layer, and performing load balancing functions;
服务层:包含各功能模块划分而成的独立微服务,包括:测试资源管理服务模块、测试实施管理服务模块、测试项目管理服务模块、用户管理服务模块、日志管理服务模块;Service layer: Contains independent microservices divided into functional modules, including: test resource management service module, test implementation management service module, test project management service module, user management service module, and log management service module;
数据层:保存系统正常运行所需要的一切数据; Data layer: saves all data required for the normal operation of the system;
治理层:提高微服务系统的可靠性和容错性,包括:服务注册与发现模块,提供对各个微服务实例进行管理的功能;服务熔断模块,通过故障转移、系统隔离手段防止故障蔓延;服务链路追踪与监控,对微服务调用链路上的性能数据进行采集;服务配置中心,集中管理所有配置属性文件;Governance layer: Improve the reliability and fault tolerance of the microservice system, including: service registration and discovery module, which provides the function of managing each microservice instance; service circuit breaker module, which prevents fault spread through failover and system isolation; service chain Route tracking and monitoring collects performance data on microservice call links; the service configuration center centrally manages all configuration attribute files;
所述测试代理用于分析来自基于微服务架构的测试管理系统的测试指令,向相应的测试环境发送数据流,以及接收来自测试环境的数据流,并且对数据流进行处理,将与测试环境交互的数据流处理结果上传给基于微服务架构的测试管理系统;The test agent is used to analyze test instructions from the test management system based on microservice architecture, send data streams to the corresponding test environment, receive data streams from the test environment, process the data streams, and interact with the test environment The data flow processing results are uploaded to the test management system based on microservice architecture;
所述测试环境包括网关测试环境、路由器测试环境、终端测试环境,分别为要接入IPv6网络的网关、路由器、终端所搭建的测试环境;测试环境中包含标准的无线路由器、无线终端、IPv6无线边界网关,以及用户提供的被测无线路由器、被测无线终端、被测IPv6无线边界网关。The test environment includes a gateway test environment, a router test environment, and a terminal test environment, which are respectively test environments built for gateways, routers, and terminals that want to access the IPv6 network; the test environment includes standard wireless routers, wireless terminals, and IPv6 wireless The border gateway, as well as the wireless router under test, the wireless terminal under test, and the IPv6 wireless border gateway under test provided by the user.
进一步,所述测试代理包括:Further, the test agents include:
通信接口:提供与基于微服务架构的测试管理系统的通信功能;Communication interface: Provides communication functions with the test management system based on microservice architecture;
协议标准:内嵌与被测工业无线网络相同的协议模块,能与被测工业无线网络进行协议一致性测试;Protocol standard: Embedded with the same protocol module as the industrial wireless network under test, it can conduct protocol consistency testing with the industrial wireless network under test;
测试代理描述:包含与测试相关的有用信息,包括测试代理的定义信息、驱动测试控制信息,以及相关参数信息;Test agent description: Contains useful information related to testing, including test agent definition information, driver test control information, and related parameter information;
测试驱动:负责与工业无线网络设备接入IPv6测试环境交互测试流。Test driver: Responsible for the interactive test flow with industrial wireless network equipment connected to the IPv6 test environment.
进一步,所述服务层中的各微服务具体包括:Further, each microservice in the service layer specifically includes:
所述测试资源管理服务模块包括测试用例管理和测试数据管理,用于对不同协议的无线网络设备接入IPv6测试用例、以及测试所需数据、测试结果数据进行管理;The test resource management service module includes test case management and test data management, and is used to manage IPv6 test cases for wireless network devices with different protocols, as well as test required data and test result data;
所述测试实施管理服务模块包括无线接入测试管理、测试报告管理、测试用例实施管理;所述无线接入测试管理针对各种协议的无线网络设备接入IPv6测试服务;所述测试报告管理包含针对测试报告的增删查操作功能;所述测试用例实施管理包括测试用例集优化、测试用例执行功能;The test implementation management service module includes wireless access test management, test report management, and test case implementation management; the wireless access test management provides IPv6 test services for wireless network equipment access to various protocols; the test report management includes Add, delete and check operation functions for test reports; the test case implementation management includes test case set optimization and test case execution functions;
所述测试项目管理服务模块包括对测试项目进行创建、删除、查看、状态维护功能;The test project management service module includes the functions of creating, deleting, viewing, and status maintenance of test projects;
所述用户管理服务模块包括对用户信息进行查看、增加、删除和权限分配;The user management service module includes viewing, adding, deleting and assigning permissions to user information;
所述日志管理服务模块包括记录系统的操作日志和测试用例执行日志。The log management service module includes recording system operation logs and test case execution logs.
另一方面,本发明提供一种基于微服务的工业无线网络设备接入IPv6测试方法,包括以下步骤: On the other hand, the present invention provides a microservice-based industrial wireless network equipment access IPv6 testing method, which includes the following steps:
S1:用户登录基于微服务架构的测试管理系统,创建测试项目,填写PICS表单,向测试人员提供被测设备;S1: The user logs in to the test management system based on microservice architecture, creates a test project, fills out the PICS form, and provides the tested device to the tester;
S2:测试人员根据测试项目中的明细将被测设备接入被测网络环境;S2: The tester connects the device under test to the network environment under test according to the details in the test project;
S3:基于微服务架构的测试管理系统根据用户创建的测试项目,调用相应的内部资源,调用无线接入测试服务,生成测试用例集,并且调用测试用例集优化算法,对测试用例集中的测试用例进行优先级排序;S3: The test management system based on the microservice architecture calls the corresponding internal resources according to the test projects created by the user, calls the wireless access test service, generates a test case set, and calls the test case set optimization algorithm to analyze the test cases in the test case set. Prioritize;
S4:基于微服务架构的测试管理系统根据测试用例集,逐条执行测试用例,向测试代理发送测试指令;S4: The test management system based on microservice architecture executes test cases one by one based on the test case set and sends test instructions to the test agent;
S5:测试代理根据操作指令,向工业无线网络设备接入IPv6测试环境发送测试流;S5: The test agent sends a test stream to the IPv6 test environment where the industrial wireless network device accesses the device according to the operation instructions;
S6:工业无线网络设备接入IPv6测试环境中的网络设备对测试流进行转发和响应,最终将测试流响应给测试代理;S6: The industrial wireless network equipment is connected to the network equipment in the IPv6 test environment to forward and respond to the test flow, and finally responds to the test flow to the test agent;
S7:测试代理对响应的测试流简单处理,并将结果上传给基于微服务架构的测试管理系统;S7: The test agent simply processes the response test stream and uploads the results to the test management system based on microservice architecture;
S8:在执行完所有的测试用例后,基于微服务架构的测试管理系统分析测试结果生成测试报告。S8: After executing all test cases, the test management system based on microservice architecture analyzes the test results and generates a test report.
进一步,测试用例集首次获取时的依据是由用户填写的PICS表部分条目,包括Furthermore, when the test case set is first obtained, it is based on some entries of the PICS table filled in by the user, including
device_type_id字段、protocol_type_id字段、requirement_information字段信息;测试用例绑定device_type_id字段、protocol_type_id字段、requirement_information字段信息;device_type_id field, protocol_type_id field, requirement_information field information; test case binding device_type_id field, protocol_type_id field, requirement_information field information;
测试项目非首次执行,则接入测试服务将该测试项目的测试用例历史执行记录发送给测试用例管理服务,测试用例管理服务根据测试用例历史执行记录的test_case_id字段信息从数据库中调取测试用例基。If the test project is not executed for the first time, the access test service will send the test case historical execution record of the test project to the test case management service. The test case management service will retrieve the test case base from the database based on the test_case_id field information of the test case historical execution record. .
进一步,对测试用例集进行优化前,对测试用例进行再编号,得到测试用例编号序列;Furthermore, before optimizing the test case set, the test cases are renumbered to obtain the test case number sequence;
测试用例集优化算法的输入是测试用例编号xij,以及对应的测试用例的测试需求覆盖数测试用例历史执行失败数输出是优化后的测试用例编号序列;测试用例集优化算法包括以下步骤:The input of the test case set optimization algorithm is the test case number x ij and the test requirement coverage number of the corresponding test case Number of historical execution failures of test cases The output is the optimized test case number sequence; the test case set optimization algorithm includes the following steps:
S31:定义测试用例的测试需求覆盖数、历史失败数;S31: Define the test requirement coverage number and historical failure number of test cases;
S32:初始化测试用例的测试需求覆盖数、历史失败数;S32: The number of test requirements coverage and the number of historical failures of initialization test cases;
S33:判断是否存在若不存在,则利用普通排序算法根据大小进行降序排序得到优化的测试用例编号序列,若存在,则调用基于改进的多目标布谷鸟搜索算法获取优化的测试用例编号序列。 S33: Determine whether it exists If it does not exist, use the ordinary sorting algorithm according to The optimized test case number sequence is obtained by sorting the size in descending order. If it exists, the improved multi-objective cuckoo search algorithm is called to obtain the optimized test case number sequence.
进一步,所述基于改进的多目标布谷鸟搜索算法包括以下步骤:Further, the improved multi-objective cuckoo search algorithm includes the following steps:
A1:定义种群规模、发现概率、结束条件;A1: Define population size, discovery probability, and end conditions;
一个鸟巢代表一个测试用例集所有测试用例的编号序列,代表一个可能解,鸟巢的定义为:
A bird's nest represents the number sequence of all test cases in a test case set, representing a possible solution. The bird's nest is defined as:
式中,n表示所有鸟巢的数量,即种群大小;m表示一个测试用例集的测试用例数量,即测试用例编号的数量;tMax表示最大迭代次数;xij表示第i个鸟巢的第j个测试用例编号;表示第i个经过t次迭代的鸟巢;In the formula, n represents the number of all bird's nests, that is, the population size; m represents the number of test cases in a test case set, that is, the number of test case numbers; tMax represents the maximum number of iterations; x ij represents the j-th test of the i-th bird's nest. Use case number; Represents the i-th bird's nest after t iterations;
一个种群定义为:
A population is defined as:
在执行随机漫步机制时以一定的概率抛弃部分鸟巢,鸟巢的宿主发现布谷鸟蛋的概率为pa,定义结束条件为当前迭代次数是否为最大迭代次数tMax;When executing the random walk mechanism, part of the bird's nest is abandoned with a certain probability. The probability that the host of the bird's nest discovers the cuckoo egg is pa. The end condition is defined as whether the current number of iterations is the maximum number of iterations tMax;
A2:初始化种群,确定适应度函数;A2: Initialize the population and determine the fitness function;
A3:判断是否满足结束条件,即是否达到最大迭代次数tMax,若满足,则输出最优鸟巢,否则执行以下循环步骤;A3: Determine whether the end condition is met, that is, whether the maximum number of iterations tMax is reached. If it is met, the optimal bird's nest is output, otherwise the following loop steps are executed;
A4:通过莱维飞行机制生成新的鸟巢并更新种群;A4: Generate new bird nests and update the population through Levi’s flight mechanism;
A5:通过随机漫步机制生成新鸟巢并更新种群;A5: Generate new bird nests and update the population through the random walk mechanism;
A6:判断是否满足突变决策条件,若满足,则更新迭代次数,返回步骤A4;不满足,则先过突变机制生成新的鸟巢并更新种群,再更新迭代次数,返回步骤A4。A6: Determine whether the mutation decision-making condition is met. If it is met, update the number of iterations and return to step A4; if not, first use the mutation mechanism to generate a new bird's nest and update the population, then update the number of iterations and return to step A4.
突变决策条件为:
The mutation decision condition is:
其中,γ表示突变机制的阈值;u表示要追溯的代数;Among them, γ represents the threshold of the mutation mechanism; u represents the number of generations to be traced;
当第i个鸟巢连续u代的适应度值保持在一个小范围内变化时,触发突变机制,以当前随机漫步机制更新的种群当作t+1代种群来进行决策;When the fitness value of the i-th bird's nest for consecutive u generations remains within a small range, the mutation mechanism is triggered and the population is updated with the current random walk mechanism. Treat it as the t+1 generation population for decision-making;
突变机制产生新的鸟巢公式如下:
The mutation mechanism generates a new bird's nest formula as follows:
式中,表示处理得到的鸟巢;xθ表示随机突变参数;In the formula, represents the processed bird's nest; xθ represents the random mutation parameter;
新鸟巢的测试用例编号进行无性遗传机制修复处理;计算种群的各鸟巢适应度值非支配解集合比较中解的支配关系,更新非支配解集合得 The test case number of the new bird's nest is repaired by the asexual genetic mechanism; the population is calculated bird's nests fitness value non-dominated solution set Compare and Dominance relationship between solutions, update the non-dominated solution set to obtain
在目标空间中,根据找到基准点逐对比较与基准点距离和与基准点的距离;保留距离较小的那个鸟巢,得到新的种群 In the target space, according to find datum point pairwise comparison with reference point distance and with reference point distance; keep the nest with a smaller distance and get a new population
经过比较和保留操作后的鸟巢记为更新最优鸟巢及其适应度值更新最优鸟巢及其适应度值 The bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
进一步,步骤A2具体包括以下步骤:Further, step A2 specifically includes the following steps:
将种群中的每个鸟巢进行初始化处理:
Initialize each bird's nest in the population:
式中,randomPermutation(m)为第i个初始鸟巢生成大小为m的随机排列函数,初始种群为 In the formula, randomPermutation(m) is the random permutation function of size m generated by the i-th initial bird nest, and the initial population is
以最大化测试需求覆盖率和最大化历史执行失败率为排序目标,所述最大化测试需求覆盖率是指测试用例尽快覆盖更多测试需求,所述化历史执行失败率指在历史执行过程中,发现过缺陷的测试用例应具有更高的优先级;The ranking objectives are to maximize test requirement coverage and maximize historical execution failure rate. Maximizing test requirement coverage means that test cases cover more test requirements as quickly as possible, and maximizing historical execution failure rate means that during the historical execution process , test cases that have discovered defects should have higher priority;
所述最大化测试需求覆盖率的目标函数为:
The objective function to maximize test requirement coverage is:
式中,m表示一个测试用例集的测试用例数量;xij表示第i个鸟巢的第j个测试用例编号;表示一个测试用例覆盖的测试需求数;RCS表示所有测试用例覆盖的测试需求数;In the formula, m represents the number of test cases in a test case set; x ij represents the j-th test case number of the i-th bird's nest; Indicates the number of test requirements covered by a test case; RCS indicates the number of test requirements covered by all test cases;
所述最大化历史执行失败率的目标函数为:
The objective function to maximize the historical execution failure rate is:
式中,表示一个测试用例的历史执行失败数,FCS表示所有测试用例的历史执行失败数;In the formula, Indicates the number of historical execution failures of a test case, and FCS indicates the number of historical execution failures of all test cases;
综合最大化测试需求覆盖率和最大化历史执行失败率为排序目标的鸟巢目标函数f(xi)表示为:
f(xi)=[f1(xi),f2(xi)]
The Bird's Nest objective function f( xi ) that comprehensively maximizes test requirement coverage and maximizes historical execution failure rate is expressed as:
f(x i )=[f 1 (x i ), f 2 (x i )]
以目标函数作为适应度函数,目标函数的值为适应度值,通过下式得到初始种群的非支配解集合NDS(0)
Taking the objective function as the fitness function and the value of the objective function as the fitness value, the non-dominated solution set NDS (0) of the initial population is obtained by the following formula:
其中xa和xb是不同的两个鸟巢,找到NDS(0)中的基准点(Max(f1),Max(f2)),记为RP(0), 计算距离基准点最近的非支配解,作为初始种群P(0)最优解其适应度值计算距离基准点最远的解,作为初始种群P(0)最差解其适应度值 Among them, x a and x b are two different bird's nests. Find the reference point (Max(f 1 ), Max(f 2 )) in NDS (0) , which is recorded as RP (0) . Calculate the non-dominated solution closest to the reference point as the optimal solution of the initial population P (0) its fitness value Calculate the solution farthest from the reference point as the worst solution of the initial population P (0) its fitness value
进一步,所述步骤A5具体包括以下步骤:Further, the step A5 specifically includes the following steps:
利用莱维飞行机制对除最优鸟巢以外的其他鸟巢的位置和状态进行更新,初始更新公式为:
Using Levi's flight mechanism to remove the optimal bird's nest The location and status of other bird's nests are updated. The initial update formula is:
式中,α表示步长控制量;表示第i个经过t次迭代的鸟巢;表示在经过莱维飞行机制生成新的鸟巢,是临时更新版本的鸟巢,并非t+1代鸟巢;表示点对点乘法;Levy(β)表示随机搜索路径,服从Levy分布;In the formula, α represents the step control amount; Represents the i-th bird's nest after t iterations; expressed in The new bird's nest generated through Levi's flight mechanism is a temporarily updated version of the bird's nest, not the t+1 generation bird's nest; Represents point-to-point multiplication; Levy(β) represents a random search path, obeying Levy distribution;
使用下式产生Levy随机数:
Use the following formula to generate Levy random numbers:
式中,μ,ν服从标准正太分布;
In the formula, μ, ν obey the standard normal distribution;
适应步长为:
Adaptation step size for:
式中,表示经过t次迭代种群中,第i个鸟巢的步长;表示是经过t次迭代种群中,第i个鸟巢的适应度值;表示经过t次迭代种群中,最优鸟巢适应度值;表示经过t次迭代种群中,最差鸟巢适应度值;In the formula, Represents the step size of the i-th bird's nest in the population after t iterations; It represents the fitness value of the i-th bird's nest in the population after t iterations; Indicates the optimal bird's nest fitness value in the population after t iterations; Represents the worst nest fitness value in the population after t iterations;
改进的莱维飞行更新公式为:
The improved Levi flight update formula is:
对新鸟巢的测试用例编号进行四舍五入,将越界的测试用例编号和重复的编号替换成无关值,记为*;然后新鸟巢中的无关值从旧鸟巢中获取,按照旧鸟巢的值顺序填充新鸟巢的无关值*;通过无性遗传机制修复新的鸟巢最终得到鸟巢 Round off the test case numbers of the new Bird's Nest, replace out-of-bounds test case numbers and duplicate numbers with irrelevant values, recorded as *; then the irrelevant values in the new Bird's Nest are removed from the old Bird's Nest Get in, follow the old bird's nest The values sequentially fill in the irrelevant values * of the new bird's nest; repair the new bird's nest through the asexual genetic mechanism and finally obtain the bird's nest.
计算修复后鸟巢的适应度值得到非支配解集合比较和NDS(t)中解的支配关系,更新非支配解集合得在目标空间中,根据 找到基准点逐对比较与基准点距离和与基准点的距离;保留距离较小的那个鸟巢,得到新的种群经过比较和保留操作后的鸟巢记为更新最优鸟巢及其适应度值更新最优鸟巢及其适应度值 Calculate the restored bird's nest fitness value Get the non-dominated solution set Compare and the dominance relationship of solutions in NDS (t) , update the non-dominated solution set to obtain In the target space, according to find datum point pairwise comparison with reference point distance and with reference point distance; keep the nest with a smaller distance and get a new population The bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
进一步,步骤A5具体包括以下步骤:Further, step A5 specifically includes the following steps:
所述随机漫步机制,是模拟鸟巢的宿主一定几率发现布谷鸟蛋后可能放弃鸟巢,在别处生成一个新鸟巢的过程,随机漫步机制产线新鸟巢的表达式如下:
The random walk mechanism is a process that simulates a bird's nest where the host may abandon the nest and generate a new bird's nest elsewhere after discovering a cuckoo egg with a certain probability. The random walk mechanism produces new bird's nests. The expression is as follows:
其中,表示种群中任意不同的3个鸟巢;ε表示属于[0,1]中的随机数;pa表示是发现概率;H(ε-pa)赫维赛德函数,当(ε-pa)≥0时,该函数值为1,否则该函数值为0;in, represents a population 3 different bird's nests in arbitrarily; ε represents a random number belonging to [0,1]; pa represents the discovery probability; H (ε-pa) Heaviside function, when (ε-pa) ≥ 0, the The function value is 1, otherwise the function value is 0;
对新鸟巢的测试用例编号进行无性遗传机制修复处理,得到种群 Perform asexual genetic mechanism repair on the test case number of the new bird's nest to obtain the population
计算种群的各鸟巢适应度值非支配解集合比较中解的支配关系,更新非支配解集合得 Calculate the population bird's nests fitness value non-dominated solution set Compare and Dominance relationship between solutions, update the non-dominated solution set to obtain
在目标空间中,根据找到基准点逐对比较与基准点距离和与基准点的距离;保留距离较小的那个鸟巢,得到新的种群 In the target space, according to find datum point pairwise comparison with reference point distance and with reference point distance; keep the nest with a smaller distance and get a new population
经过比较和保留操作后的鸟巢记为更新最优鸟巢及其适应度值更新最优鸟巢及其适应度值 The bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
本发明的有益效果在于:本发明通过基于微服务的IPv6测试系统,有效解决了各种工业无线网络接入IPv6测试服务的融合和扩展需求,每个微服务仅关注一件任务,并且能很好地完成任务,各微服务可以独立部署,微服务之间是松耦合的,各服务之间相互协调、配合。微服务架构可为工业无线网络设备接入IPv6的测试系统的部署提供巨大帮助。The beneficial effects of the present invention are that: the present invention effectively solves the integration and expansion needs of various industrial wireless network access IPv6 test services through an IPv6 test system based on microservices. Each microservice only focuses on one task and can easily To complete the task well, each microservice can be deployed independently, the microservices are loosely coupled, and the services coordinate and cooperate with each other. The microservice architecture can provide great help for the deployment of test systems for industrial wireless network equipment to access IPv6.
本发明的其他优点、目标和特征在某种程度上将在随后的说明书中进行阐述,并且在某种程度上,基于对下文的考察研究对本领域技术人员而言将是显而易见的,或者可以从本发明的实践中得到教导。本发明的目标和其他优点可以通过下面的说明书来实现和获得。Other advantages, objects, and features of the present invention will, to the extent that they are set forth in the description that follows, and to the extent that they will become apparent to those skilled in the art upon examination of the following, or may be derived from This invention is taught by practicing it. The objects and other advantages of the invention may be realized and obtained by the following description.
附图说明Description of drawings
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作优选的详细描述,其中: In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings, in which:
图1为基于微服务的工业无线网络设备接入IPv6测试拓扑图;Figure 1 is a test topology diagram of IPv6 access to industrial wireless network equipment based on microservices;
图2为基于微服务的工业无线网络设备接入IPv6测试框架图;Figure 2 shows the test framework diagram of microservice-based industrial wireless network equipment access to IPv6;
图3为整体测试工作流程图;Figure 3 is the overall test workflow diagram;
图4为基于微服务架构的测试管理系统功能需求组织结构图;Figure 4 is an organization chart of functional requirements of the test management system based on microservice architecture;
图5为测试用例获取的流程图;Figure 5 is the flow chart of test case acquisition;
图6为测试用例集优化服务程序流程图;Figure 6 is a flow chart of the test case set optimization service program;
图7为基于改进的多目标布谷鸟搜索算法的流程图;Figure 7 is a flow chart based on the improved multi-objective cuckoo search algorithm;
图8为目标空间图;Figure 8 is the target space diagram;
图9为无性遗传机制修复过程示意图;Figure 9 is a schematic diagram of the repair process of the asexual genetic mechanism;
图10为测试用例执行流程图。Figure 10 is the test case execution flow chart.
具体实施方式Detailed ways
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。The following describes the embodiments of the present invention through specific examples. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. Various details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner. The following embodiments and the features in the embodiments can be combined with each other as long as there is no conflict.
其中,附图仅用于示例性说明,表示的仅是示意图,而非实物图,不能理解为对本发明的限制;为了更好地说明本发明的实施例,附图某些部件会有省略、放大或缩小,并不代表实际产品的尺寸;对本领域技术人员来说,附图中某些公知结构及其说明可能省略是可以理解的。The drawings are only for illustrative purposes, and represent only schematic diagrams rather than actual drawings, which cannot be understood as limitations of the present invention. In order to better illustrate the embodiments of the present invention, some components of the drawings will be omitted. The enlargement or reduction does not represent the size of the actual product; it is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
本发明实施例的附图中相同或相似的标号对应相同或相似的部件;在本发明的描述中,需要理解的是,若有术语“上”、“下”、“左”、“右”、“前”、“后”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此附图中描述位置关系的用语仅用于示例性说明,不能理解为对本发明的限制,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语的具体含义。In the drawings of the embodiments of the present invention, the same or similar numbers correspond to the same or similar components; in the description of the present invention, it should be understood that if there are terms "upper", "lower", "left" and "right" The orientation or positional relationship indicated by "front", "rear", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must be It has a specific orientation and is constructed and operated in a specific orientation. Therefore, the terms describing the positional relationships in the drawings are only for illustrative purposes and cannot be understood as limitations of the present invention. For those of ordinary skill in the art, they can determine the specific position according to the specific orientation. Understand the specific meaning of the above terms.
图1为基于微服务的工业无线网络设备接入IPv6测试拓扑图,如图所示,基于微服务的工业无线网络设备接入IPv6测试拓扑主要包含两个部分:测试服务层和被测网络层。Figure 1 is a test topology diagram for IPv6 access to industrial wireless network equipment based on microservices. As shown in the figure, the test topology for IPv6 access to industrial wireless network equipment based on microservices mainly consists of two parts: the test service layer and the network layer under test. .
测试服务层由用户及浏览器、互联网路由器、基于微服务架构的测试管理系统等组成:The test service layer consists of users and browsers, Internet routers, and test management systems based on microservice architecture:
(1)用户通过浏览器访问基于微服务架构的测试管理系统,浏览器会显示用户的人机交 互界面。用户根据人机交互界面可以进行注册、登录、选择测试服务、查询测试结果等操作;(1) Users access the test management system based on microservice architecture through a browser, and the browser will display the user’s human-computer interaction Interface. Users can register, log in, select test services, query test results and other operations according to the human-computer interaction interface;
(2)互联网路由器为用户的浏览器设备、基于微服务架构的测试管理系统与被测网络层之间提供互联网路径,实现信息交互;(2) The Internet router provides an Internet path between the user's browser device, the test management system based on microservice architecture and the network layer under test to achieve information interaction;
(3)部署在云服务器的基于微服务架构的测试管理系统能够根据用户提交的测试服务,调用内部的数据库,向被测网络层发送测试指令,并且能够分析测试数据,将测试结果响应给浏览器。(3) The test management system based on microservice architecture deployed on the cloud server can call the internal database according to the test service submitted by the user, send test instructions to the network layer under test, and can analyze the test data and respond to the browser with the test results. device.
被测网络层由测试代理、网关测试环境、路由器测试环境、终端测试环境等组成:The network layer under test consists of test agent, gateway test environment, router test environment, terminal test environment, etc.:
(1)测试代理能够分析来自基于微服务架构的测试管理系统的测试指令,向相应的测试环境发送数据流,以及接收来自测试环境的数据流,并且对数据流进行简单的处理。测试代理会将和测试环境交互的数据流处理结果上传给基于微服务架构的测试管理系统;(1) The test agent can analyze test instructions from the test management system based on microservice architecture, send data streams to the corresponding test environment, receive data streams from the test environment, and perform simple processing on the data streams. The test agent will upload the data flow processing results interacting with the test environment to the test management system based on microservice architecture;
(2)网关测试环境、路由器测试环境、终端测试环境是分别为要接入IPv6网络的网关、路由器、终端所搭建的测试环境。测试环境中包含标准的无线路由器、无线终端、IPv6无线边界网关等设备,以及用户提供的被测无线路由器、被测无线终端、被测IPv6无线边界网关等设备。(2) The gateway test environment, router test environment, and terminal test environment are test environments respectively built for gateways, routers, and terminals that want to access the IPv6 network. The test environment includes standard wireless routers, wireless terminals, IPv6 wireless border gateways and other equipment, as well as user-provided wireless routers under test, wireless terminals under test, IPv6 wireless border gateways under test and other equipment.
如图2所示为基于微服务的工业无线网络设备接入IPv6测试框架图,基于微服务架构的测试管理系统包括交互层、转发层、服务层、数据层以及治理层:Figure 2 shows the test framework diagram of IPv6 access for industrial wireless network equipment based on microservices. The test management system based on microservices architecture includes interaction layer, forwarding layer, service layer, data layer and governance layer:
(1)交互层是基于Web的交互界面,向用户提供人机交互界面;(1) The interaction layer is a Web-based interactive interface that provides users with a human-computer interaction interface;
(2)转发层,即服务网关,主要负责过滤和转发交互层的请求、调用服务层的服务、进行负载均衡等功能;(2) The forwarding layer, that is, the service gateway, is mainly responsible for filtering and forwarding requests from the interaction layer, calling services of the service layer, and performing load balancing and other functions;
(3)服务层包含各功能模块划分而成的独立微服务,包括:测试资源管理服务、测试实施管理服务、测试项目管理服务、用户管理服务、日志管理服务模块;(3) The service layer includes independent microservices divided into functional modules, including: test resource management service, test implementation management service, test project management service, user management service, and log management service modules;
(4)数据层保存系统正常运行所需要的一切数据;(4) The data layer stores all data required for the normal operation of the system;
治理层主要提高微服务系统的可靠性和容错性,包括:服务注册与发现模块,提供对各个微服务实例进行管理的功能;服务熔断模块,通过故障转移、系统隔离等手段防止故障蔓延造成雪崩效应;服务链路追踪与监控对微服务调用链路上的性能数据进行采集;服务配置中心能够集中的管理所有配置属性文件。The governance layer mainly improves the reliability and fault tolerance of the microservice system, including: service registration and discovery module, which provides the function of managing each microservice instance; service circuit breaker module, which prevents avalanches caused by fault spread through failover, system isolation and other means. Effect; service link tracking and monitoring collects performance data on microservice call links; the service configuration center can centrally manage all configuration attribute files.
测试代理是基于微服务架构的测试管理系统与工业无线网络设备接入IPv6测试环境之间的桥梁,主要包括:The test agent is a bridge between the test management system based on microservice architecture and the access of industrial wireless network equipment to the IPv6 test environment. It mainly includes:
(1)通信接口,提供与基于微服务架构的测试管理系统的通信功能;(1) Communication interface, providing communication functions with the test management system based on microservice architecture;
(2)协议标准,内嵌与被测工业无线网络相同的协议模块,能与被测工业无线网络进行 协议一致性测试;(2) Protocol standard, embedded with the same protocol module as the industrial wireless network under test, can communicate with the industrial wireless network under test Protocol conformance testing;
(3)测试代理描述,包含与测试相关的一些有用信息,如测试代理的定义信息、驱动测试控制信息,以及相关参数信息;(3) Test agent description, including some useful information related to testing, such as test agent definition information, driver test control information, and related parameter information;
测试驱动,主要负责与工业无线网络设备接入IPv6测试环境交互测试流。The test driver is mainly responsible for interacting with the IPv6 test environment by connecting industrial wireless network equipment to the test flow.
整体测试工作流程如图3所示。The overall testing workflow is shown in Figure 3.
(1)用户需要向测试人员提供被测设备,当用户创建好测试项目后,测试人员根据测试项目中的明细将被测设备接入被测网络环境;(1) The user needs to provide the device under test to the tester. After the user creates the test project, the tester will connect the device under test to the network environment under test according to the details in the test project;
(2)用户在浏览器上填写协议一致性声明(Protocol Implementation Conformance Statement,PICS)表,根据被测无线网络设备的实际测试需求,选则要测试的设备类型、协议类型、测试需求等。PICS表结构如表1所示,测试需求表结构如表2所示。(2) The user fills in the Protocol Implementation Conformance Statement (PICS) form on the browser and selects the device type, protocol type, test requirements, etc. to be tested based on the actual testing requirements of the wireless network device under test. The PICS table structure is shown in Table 1, and the test requirements table structure is shown in Table 2.
表1
Table 1
表2
Table 2
(3)基于微服务架构的测试管理系统根据用户创建的测试项目,调用相应的内部资源,调用无线接入测试服务,生成测试用例集,并且调用测试用例集优化算法,对测试用例集中的测试用例进行优先级排序;(3) The test management system based on the microservice architecture calls the corresponding internal resources according to the test projects created by the user, calls the wireless access test service, generates a test case set, and calls the test case set optimization algorithm to perform centralized testing of the test cases Prioritize use cases;
(4)基于微服务架构的测试管理系统根据测试用例集,逐条执行测试用例,向测试代理发送测试指令;(4) The test management system based on microservice architecture executes test cases one by one based on the test case set and sends test instructions to the test agent;
(5)测试代理根据操作指令,向工业无线网络设备接入IPv6测试环境发送测试流;(5) The test agent sends test streams to the IPv6 test environment where the industrial wireless network equipment accesses according to the operation instructions;
(6)工业无线网络设备接入IPv6测试环境中的网络设备对测试流进行转发和响应,最终会将测试流响应给测试代理;(6) The industrial wireless network equipment connected to the network equipment in the IPv6 test environment forwards and responds to the test flow, and ultimately responds to the test flow to the test agent;
(7)测试代理对响应的测试流简单处理,并将结果上传给基于微服务架构的测试管理系统;(7) The test agent simply processes the response test stream and uploads the results to the test management system based on microservice architecture;
(8)在执行完所有的测试用例后,基于微服务架构的测试管理系统会分析测试结果生成 测试报告。(8) After executing all test cases, the test management system based on microservice architecture will analyze the test results and generate testing report.
基于微服务架构的测试管理系统功能需求组织结构如图4所示,包括:The functional requirements organization structure of the test management system based on microservice architecture is shown in Figure 4, including:
(1)测试资源管理功能(1) Test resource management function
为了方便管理不同协议的无线网络设备接入IPv6测试用例、以及测试所需数据、测试结果数据,基于微服务架构的测试管理系统需要具备测试资源管理功能,以便测试人员对测试所需资源进行增删改查。In order to facilitate the management of wireless network devices with different protocols accessing IPv6 test cases, as well as test required data and test result data, the test management system based on microservice architecture needs to have a test resource management function so that testers can increase the resources required for testing. Delete, modify and check.
(2)测试实施管理功能(2) Test implementation management function
由于各无线网络协议较多,不同协议的无线网络设备接入IPv6测试有不同的特点以及不同实施过程,并且测试用例相关的实施操作在整个测试中是极其重要且繁琐的一环,因此基于微服务架构的测试管理系统应当具有测试实施管理功能。Since there are many wireless network protocols, the IPv6 test of wireless network devices with different protocols has different characteristics and different implementation processes, and the implementation operations related to test cases are an extremely important and cumbersome part of the entire test. Therefore, based on micro The test management system of the service architecture should have test implementation management functions.
测试实施管理功能包括:无线接入测试管理,其包括针对各种协议的无线网络设备接入IPv6测试服务,例如Wireless HART接入测试、WIA-PA接入测试、6LoWPAN接入测试等;测试报告管理包含针对测试报告的增删查等操作功能;测试用例实施管理有测试用例集优化、测试用例执行等功能。Test implementation management functions include: wireless access test management, which includes wireless network device access IPv6 test services for various protocols, such as Wireless HART access test, WIA-PA access test, 6LoWPAN access test, etc.; test report Management includes operation functions such as adding, deleting and checking test reports; test case implementation management includes test case set optimization, test case execution and other functions.
(3)测试项目管理功能(3) Test project management function
用户选择测试服务是通过创建测试项目来完成的,当测试服务执行时,用户也需要从测试项目中去查看测试状态,同时测试完成时生成的测试报告需要从测试项目中获取。因此基于微服务架构的测试管理系统需要测试项目管理功能。测试项目管理功能包括测试项目创建、删除、查看、状态维护等功能。The user selects the test service by creating a test project. When the test service is executed, the user also needs to check the test status from the test project. At the same time, the test report generated when the test is completed needs to be obtained from the test project. Therefore, a test management system based on microservice architecture requires test project management functions. Test project management functions include test project creation, deletion, viewing, status maintenance and other functions.
(4)用户管理功能(4)User management function
针对实际测试环境中,具有基于微服务架构的测试管理系统使用权限的人员比较多,而且人员复杂,需要设计登录功能,对用户分配的账户和密码进行身份验证,避免无关人员或权限不匹配人员进入系统。通过对用户的账户进行分类和分级进行用户的权限分配,避免普通用户的误操作,在一定程度上保障系统的安全性。用户管理功能包括用户信息查看、用户增加删除、用户权限分配等功能。In the actual test environment, there are many people with permission to use the test management system based on microservice architecture, and the personnel are complex. It is necessary to design a login function to authenticate the accounts and passwords assigned to users to avoid irrelevant personnel or people with mismatched permissions. enter the system. By categorizing and grading user accounts, user permissions are assigned to avoid misoperation by ordinary users and ensure the security of the system to a certain extent. User management functions include viewing user information, adding and deleting users, and assigning user rights.
(5)日志管理功能(5)Log management function
基于微服务架构的测试管理系统应具备日志管理功能,详细记录系统使用者对系统的操作及操作结果,记录测试用例的执行过程等,便于问题的查找和追责,并且及时解决问题。A test management system based on microservice architecture should have a log management function to record in detail the system users' operations and operation results, record the execution process of test cases, etc., to facilitate problem finding and accountability, and to solve problems in a timely manner.
测试用例获取的流程如图5所示,接入测试服务通过调用测试用例管理服务从数据库中调用测试用例,从而获取测试用例集。接入测试服务调用测试用例优化服务,通过优化算法 对测试用例集进行优先级排序,然后将优化后的测试用例集返回给接入测试服务。The process of obtaining test cases is shown in Figure 5. The access test service calls test cases from the database by calling the test case management service to obtain the test case set. Access the test service and call the test case optimization service, through the optimization algorithm Prioritize the test case set, and then return the optimized test case set to the access test service.
测试用例集首次获取时的依据是由用户填写的PICS表部分条目,包括device_type_id字段、protocol_type_id字段、requirement_information字段信息。测试用例在设计时就会绑定device_type_id字段、protocol_type_id字段、requirement_information字段信息。测试用例结构如表3所示。When the test case set is first obtained, it is based on some entries in the PICS table filled in by the user, including the device_type_id field, protocol_type_id field, and requirement_information field information. When the test case is designed, the device_type_id field, protocol_type_id field, and requirement_information field information will be bound. The test case structure is shown in Table 3.
表3
table 3
若该测试项目并非首次执行,则接入测试服务会将该测试项目的测试用例历史执行记录发送给测试用例管理服务。测试用例历史执行记录结构如表4所示。If the test project is not executed for the first time, the access test service will send the test case historical execution record of the test project to the test case management service. The test case historical execution record structure is shown in Table 4.
测试用例管理服务根据测试用例历史执行记录的test_case_id字段信息从数据库中调取测试用例。The test case management service retrieves test cases from the database based on the test_case_id field information in the test case history execution record.
表4
Table 4
测试用例集优化服务程序在执行之前,基于微服务架构的测试管理系统从数据库中调取的测试用例集,将其中的测试用例进行再编号。再编号即若测试用例集有m个测试用例,则给每个测试用例从1到m进行再编号得到测试用例编号序列。Before the test case set optimization service program is executed, the test management system based on the microservice architecture retrieves the test case set from the database and renumbers the test cases in it. Renumbering means that if the test case set has m test cases, then renumber each test case from 1 to m to obtain the test case number sequence.
测试用例集优化服务程序的输入是测试用例编号xij,以及对应的测试用例的测试需求覆盖数测试用例历史执行失败数如表5所示。输出则是优化后的测试用例编号序列。The input of the test case set optimization service program is the test case number x ij and the test requirement coverage number of the corresponding test case Number of historical execution failures of test cases As shown in Table 5. The output is the optimized test case number sequence.
表5

table 5

测试用例集优化服务程序流程如图6所示,程序首先会判断该测试项目是否存在若不存在,则利用普通排序算法根据大小进行降序排序得到优化的测试用例编号序列,若存在,则调用基于改进的多目标布谷鸟搜索算法获取优化的测试用例编号序列。The test case set optimization service program process is shown in Figure 6. The program will first determine whether the test project exists If it does not exist, use the ordinary sorting algorithm according to The optimized test case number sequence is obtained by sorting the size in descending order. If it exists, the improved multi-objective cuckoo search algorithm is called to obtain the optimized test case number sequence.
基于改进的多目标布谷鸟搜索算法的流程如图7所示,该算法是以最大化测试需求覆盖率和最大化历史执行失败率为排序目标。首先需要构建测试用例与测试目标之间的关系构建适应度函数,并且通过莱维飞行机制全局搜索、随机漫步机制局部搜索、突变机制防止陷入局部最优等手段保障优化结果的质量。具体步骤如下:The process based on the improved multi-objective cuckoo search algorithm is shown in Figure 7. This algorithm is based on the ranking objectives of maximizing test requirement coverage and maximizing historical execution failure rate. First of all, it is necessary to construct the relationship between the test case and the test target to construct the fitness function, and ensure the quality of the optimization results through means such as Levi's flight mechanism global search, random walk mechanism local search, and mutation mechanism to prevent falling into local optimality. Specific steps are as follows:
步骤一:定义种群规模、发现概率、结束条件等。Step 1: Define the population size, discovery probability, end conditions, etc.
一个鸟巢代表一个测试用例集所有测试用例的编号序列,代表一个可能解,鸟巢的定义为:
A bird's nest represents the number sequence of all test cases in a test case set, representing a possible solution. The bird's nest is defined as:
式中,n表示所有鸟巢的数量,即种群大小;In the formula, n represents the number of all bird nests, that is, the population size;
m表示一个测试用例集的测试用例数量,即测试用例编号的数量;tMax表示最大迭代次数;xij表示第i个鸟巢的第j个测试用例编号;表示第i个经过t次迭代的鸟巢;m represents the number of test cases in a test case set, that is, the number of test case numbers; tMax represents the maximum number of iterations; x ij represents the j-th test case number of the i-th nest; Represents the i-th bird's nest after t iterations;
一个种群定义为:
A population is defined as:
算法在执行随机漫步机制时以一定的概率抛弃部分鸟巢,鸟巢的宿主发现布谷鸟蛋的概率为pa。定义结束条件为当前迭代次数是否为最大迭代次数tMax。The algorithm abandons part of the bird's nest with a certain probability when executing the random walk mechanism. The probability that the host of the bird's nest discovers the cuckoo egg is pa. Define the end condition as whether the current number of iterations is the maximum number of iterations tMax.
步骤二:初始化种群、确定适应度函数Step 2: Initialize the population and determine the fitness function
将种群中的每个鸟巢进行初始化处理。
Initialize each bird's nest in the population.
式中,randomPermutation(m)是为第i个初始鸟巢生成大小为m的随机排列函数,那么初始种群即为 In the formula, randomPermutation(m) is a random arrangement function that generates a size m for the i-th initial bird's nest, then the initial population is
本算法是以最大化测试需求覆盖率和最大化历史执行失败率为排序目标。最大化测试需求覆盖率是指测试用例尽快覆盖更多测试需求,最大化历史执行失败率指在历史执行过程中,发现过缺陷的测试用例应具有更高的优先级。This algorithm is based on the ranking objectives of maximizing test requirement coverage and maximizing historical execution failure rate. Maximizing test requirement coverage means that test cases cover more test requirements as quickly as possible, and maximizing the historical execution failure rate means that test cases that have discovered defects during the historical execution process should have a higher priority.
(1)最大化测试需求覆盖率(1) Maximize test requirement coverage
在测试用例集中,一个测试用例的测试需求覆盖的数量越大,其越应排在靠前的位置。最大化测试需求覆盖率的目标函数如表达式4所示。
In the test case set, the greater the number of test requirements covered by a test case, the higher it should be ranked. The objective function to maximize test requirement coverage is shown in Expression 4.
式中,m表示一个测试用例集的测试用例数量;xij表示第i个鸟巢的第j个测试用例编号表示一个测试用例覆盖的测试需求数;RCS表示所有测试用例覆盖的测试需求数。In the formula, m represents the number of test cases in a test case set; x ij represents the j-th test case number of the i-th bird's nest. Indicates the number of test requirements covered by a test case; RCS indicates the number of test requirements covered by all test cases.
在表达式4中,将测试用例的覆盖需求数乘以该测试用例所处位置的权重,这样可以使测试用例覆盖需求数较大且其位置在序列中较靠前的鸟巢更容易被保留下来。In Expression 4, the number of coverage requirements of the test case is multiplied by the weight of the position of the test case, so that the nest with a larger number of test case coverage requirements and its position earlier in the sequence is more likely to be retained. .
(2)最大化历史执行失败率(2) Maximize the historical execution failure rate
历史执行失败率越大,代表测试用例在执行历史中,失败的次数越多。一般认为,在历史执行中失败过越多次的测试用例,在新的版本设备中执行时,有更大机会检测到缺陷,因此历史执行失败率越高的测试用例越应排在靠前位置。最大化历史执行失败率的目标函数如表达式5所示。
The greater the historical execution failure rate, the more times the test case failed in the execution history. It is generally believed that test cases that have failed many times in historical execution have a greater chance of detecting defects when executed on new version devices. Therefore, test cases with higher historical execution failure rates should be ranked higher. . The objective function that maximizes the historical execution failure rate is shown in Expression 5.
式中,m——表示一个测试用例集的测试用例数量;xij表示第i个鸟巢的第j个测试用例编号;表示一个测试用例的历史执行失败数;FCS表示所有测试用例的历史执行失败数。In the formula, m - represents the number of test cases in a test case set; x ij represents the j-th test case number of the i-th bird's nest; Indicates the number of historical execution failures of a test case; FCS indicates the number of historical execution failures of all test cases.
综合最大化测试需求覆盖率和最大化历史执行失败率为排序目标的鸟巢目标函数表示为f(xi)。
f(xi)=[f1(xi),f2(xi)]    (6)
The Bird's Nest objective function that comprehensively maximizes the test requirement coverage and maximizes the historical execution failure rate is expressed as f(xi ) .
f(x i )=[f 1 (x i ), f 2 (x i )] (6)
(3)Pareto最优概念(3) Pareto optimal concept
在此引入Pareto最优的概念。两个不同鸟巢xa和xb,如果满足表达式7,则称xa支配xb
The concept of Pareto optimality is introduced here. If two different bird's nests x a and x b satisfy expression 7, then x a is said to dominate x b .
如果解空间,即所有的鸟巢中不存在能够支配x的解,则称为x是非支配的,这样的解叫做Pareto最优解。多目标优化的解通常并不是唯一解,而是包含多个Pareto最优解的集合,而这个集合称为Pareto前沿。由于本测试用例集优化算法的目标函数是两个,因此可以用二维坐标来表示Pareto前沿,如图8所示。If there is no solution that can dominate x in the solution space, that is, all bird's nests, then x is said to be non-dominated, and such a solution is called a Pareto optimal solution. The solution of multi-objective optimization is usually not the only solution, but a set containing multiple Pareto optimal solutions, and this set is called the Pareto front. Since the objective functions of this test case set optimization algorithm are two, the Pareto front can be represented by two-dimensional coordinates, as shown in Figure 8.
本算法以目标函数作为适应度函数,目标函数的值为适应度值。根据表达式7得到初始种群的非支配解集合NDS(0)。找到NDS(0)中的基准点(Max(f1),Max(f2)),记为RP(0)。计算距离基准点最近的非支配解,作为初始种群P(0)最优解其适应度值计算距离基准点最远的解,作为初始种群P(0)最差解其适应度值 This algorithm uses the objective function as the fitness function, and the value of the objective function is the fitness value. According to Expression 7, the non-dominated solution set NDS (0) of the initial population is obtained. Find the reference point (Max(f 1 ), Max(f 2 )) in NDS (0) and record it as RP (0) . Calculate the non-dominated solution closest to the reference point as the optimal solution of the initial population P (0) its fitness value Calculate the solution farthest from the reference point as the worst solution of the initial population P (0) its fitness value
步骤三:是否满足结束条件 Step 3: Whether the ending conditions are met
本测试用例集优化算法每经过一次迭代就要进行判断是否满足结束条件,而结束条件就是最大迭代次数tMax,如果当前迭代次数t达到tMax,那么跳出循环输出最优鸟巢,如果t小于tMax,那么执行循环内容。This test case set optimization algorithm must judge whether the end condition is met after each iteration, and the end condition is the maximum number of iterations tMax. If the current iteration number t reaches tMax, then jump out of the loop and output the optimal bird's nest. If t is less than tMax, then Execute loop content.
步骤四:莱维飞行机制生成新的鸟巢并更新种群Step 4: Levi’s flight mechanism generates new nests and updates the population
(1)莱维飞行机制生成新鸟巢(1) Levi’s flight mechanism generates a new bird’s nest
利用莱维飞行机制对除最优鸟巢以外的其他鸟巢的位置和状态进行更新,算法的初始更新公式如表达式8所示。
Using Levi's flight mechanism to remove the optimal bird's nest The position and status of other bird's nests are updated. The initial update formula of the algorithm is shown in Expression 8.
式中,α表示步长控制量;表示第i个经过t次迭代的鸟巢;表示在经过莱维飞行机制生成新的鸟巢,是临时更新版本的鸟巢,并非t+1代鸟巢;表示点对点乘法;Levy(β)表示随机搜索路径,服从Levy分布。In the formula, α represents the step control amount; Represents the i-th bird's nest after t iterations; expressed in The new bird's nest generated through Levi's flight mechanism is a temporarily updated version of the bird's nest, not the t+1 generation bird's nest; Represents point-to-point multiplication; Levy(β) represents a random search path, obeying Levy distribution.
莱维飞行机制是一种短距离的探索与偶尔较长距离的行走相间的运动形式。利用莱维飞行机制能扩大搜索范围,增加鸟巢的多样性,更容易跳出局部最优点。为方便计算,使用表达式9产生Levy随机数:
Levi's flight mechanism is a form of locomotion that alternates short-distance exploration with occasional longer-distance walking. Using Levi's flight mechanism can expand the search range, increase the diversity of the bird's nest, and make it easier to jump out of the local optimum. To facilitate calculation, expression 9 is used to generate Levy random numbers:
式中,μ,ν表示服从标准正太分布
In the formula, μ, ν represent that they obey the standard normal distribution.
为了将可能解,即各鸟巢朝向当前最优解鸟巢的方向趋近,将表达式8改进为:
In order to move the possible solutions, that is, each bird's nest towards the current optimal solution The direction of the bird's nest is approaching, and expression 8 is improved to:
表达式11中的步长控制量α的取值应慎重选择,因为其控制全局搜索。如果α取值太小,那么可能解将接近当前最优解,会陷于局部最优解。如果α取值太大,结果可能会越界。将α改进为动态的自适应步长,将会扩大最初的搜索范围,并且减小后期迭代的步长,从而提高收敛效率。自适应步长如表达式12所示
The value of the step control amount α in Expression 11 should be chosen carefully because it controls the global search. If the value of α is too small, then the possible solution will be close to the current optimal solution and will fall into the local optimal solution. If the value of α is too large, the result may be out of bounds. Improving α to a dynamic adaptive step size will expand the initial search range and reduce the step size of later iterations, thereby improving convergence efficiency. adaptive step size As shown in expression 12
式中,表示经过t次迭代种群中,第i个鸟巢的步长;表示经过t次迭代种群中,第i个鸟巢的适应度值;表示经过t次迭代种群中,最优鸟巢适应度值; 表示经过t次迭代种群中,最差鸟巢适应度值。In the formula, Represents the step size of the i-th bird's nest in the population after t iterations; Represents the fitness value of the i-th bird's nest in the population after t iterations; Indicates the optimal bird's nest fitness value in the population after t iterations; Indicates the worst nest fitness value in the population after t iterations.
因此改进的莱维飞行更新公式为表达式13。
Therefore, the improved Levy flight update formula is expression 13.
(2)无性遗传机制修复新的鸟巢(2) Asexual genetic mechanism repairs new bird nests
由于莱维飞行机制生成的新鸟巢会产生无效的或越界的测试用例编号,因此需要对新鸟巢的测试用例编号进行处理。New nests generated due to Levi's flight mechanism Invalid or out-of-bounds test case numbers will be generated, so the test case numbers of the new Bird's Nest need to be processed.
首先对新鸟巢的测试用例编号进行四舍五入,将越界的测试用例编号和重复的编号替换成无关值,记为*。然后新鸟巢中的无关值从旧鸟巢中获取,按照旧鸟巢的值顺序填充新鸟巢的无关值*。无性遗传机制修复新的鸟巢最终得到鸟巢修复过程示意图如图9所示。First, round the test case numbers of the new Bird's Nest, and replace the out-of-bounds test case numbers and duplicate numbers with irrelevant values, recorded as *. Then the irrelevant values in the new nest are removed from the old nest Get in, follow the old bird's nest The value order fills the new nest with irrelevant values*. Asexual genetic mechanism repairs new bird's nest and finally gets bird's nest The schematic diagram of the repair process is shown in Figure 9.
(3)计算新鸟巢的适应度值、更新种群(3) Calculate the fitness value of the new nest and update the population
计算修复后鸟巢的适应度值得到非支配解集合比较和NDS(t)中解的支配关系,更新非支配解集合得 Calculate the repaired bird's nest fitness value Get the non-dominated solution set Compare and the dominance relationship of solutions in NDS (t) , update the non-dominated solution set to obtain
在目标空间中,根据找到基准点逐对比较与基准点距离和与基准点的距离。保留距离较小的那个鸟巢,即可得到新的种群 In the target space, according to find datum point pairwise comparison with reference point distance and with reference point distance. Keep the nest with a smaller distance to get a new population
经过比较和保留操作后的鸟巢记为更新最优鸟巢及其适应度值更新最优鸟巢及其适应度值 The bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
步骤五:随机漫步机制生成新鸟巢并更新种群Step 5: Random walk mechanism generates new nests and updates the population
(1)随机漫步机制生成新鸟巢(1) Random walk mechanism generates new bird's nest
布谷鸟算法的随机漫步机制,是模拟鸟巢的宿主一定几率发现布谷鸟蛋后可能放弃鸟巢,在别处生成一个新鸟巢的过程。随机漫步机制产线新鸟巢的表达式如表达式14所示:
The random walk mechanism of the cuckoo algorithm simulates the process in which the host of a bird's nest may abandon the nest and generate a new bird's nest elsewhere after discovering a cuckoo egg with a certain probability. Random walk mechanism production line new bird's nest The expression of is shown in Expression 14:
其中,表示种群中任意不同的3个鸟巢;ε表示属于[0,1]中的随机数;pa表示发现概率;H(ε-pa)表示维赛德函数,当(ε-pa)≥0时,该函数值为1,否则该函数值为0。in, represents a population 3 arbitrary different bird's nests in The value is 1, otherwise the function value is 0.
(2)无性遗传机制修复新的鸟巢(2) Asexual genetic mechanism repairs new bird nests
由于随机漫步机制生成的新鸟巢会产生无效的或越界的测试用例编号,因此需要对新鸟巢的测试用例编号进行处理。处理过程与步骤四中第(2)步过程类似。所有鸟巢修复后得到 种群 Since the new bird's nest generated by the random walk mechanism will generate invalid or out-of-bounds test case numbers, the test case numbers of the new bird's nest need to be processed. The processing process is similar to step (2) in step 4. Obtained after all bird's nests are repaired population
(3)计算新鸟巢的适应度值、更新种群(3) Calculate the fitness value of the new nest and update the population
计算种群的各鸟巢适应度值非支配解集合比较中解的支配关系,更新非支配解集合得 Calculate the population bird's nests fitness value non-dominated solution set Compare and Dominance relationship between solutions, update the non-dominated solution set to obtain
在目标空间中,根据找到基准点逐对比较与基准点距离和与基准点的距离。保留距离较小的那个鸟巢,即可得到新的种群 In the target space, according to find datum point pairwise comparison with reference point distance and with reference point distance. Keep the nest with a smaller distance to get a new population
经过比较和保留操作后的鸟巢记为更新最优鸟巢及其适应度值更新最优鸟巢及其适应度值 The bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
步骤六:判断是否满足突变决策条件。Step 6: Determine whether the mutation decision-making conditions are met.
当算法进入后期阶段时,莱维飞行机制和随机漫步机制产生的鸟巢会与旧鸟巢接近,随着迭代次数的增加,所有鸟巢都会彼此接近,那么鸟巢的适应度平均差异并没有太大变化,表明解陷入了局部最优。此方案利用突变机制解决后期阶段的局部最优问题。When the algorithm enters the later stage, the bird's nests generated by Levi's flight mechanism and random walk mechanism will be close to the old bird's nest. As the number of iterations increases, all bird's nests will be close to each other, and then the average fitness difference of the bird's nest will not change much. Indicates that the solution falls into a local optimum. This scheme uses the mutation mechanism to solve the local optimal problem in the later stages.
为了防止突变机制生成与旧鸟巢相去甚远的新鸟巢,导致错过高质量的鸟巢。因此增设突变决策条件。
In order to prevent the mutation mechanism from generating new nests that are far from the old nests, resulting in missing high-quality nests. Therefore, mutation decision conditions are added.
其中,γ表示突变机制的阈值;u表示要追溯的代数。Among them, γ represents the threshold of the mutation mechanism; u represents the number of generations to be traced.
当第i个鸟巢连续u代的适应度值保持在一个小范围内变化时,就会触发突变机制。注意以当前随机漫步机制更新的种群当作t+1代种群来进行决策。When the fitness value of the i-th bird's nest in consecutive u generations remains within a small range, the mutation mechanism will be triggered. Note the population updated with the current random walk mechanism Treat it as the t+1 generation population for decision-making.
步骤七:突变机制生成新的鸟巢并更新种群Step 7: The mutation mechanism generates new nests and updates the population
(1)突变机制生成新的鸟巢(1) The mutation mechanism generates a new bird's nest
突变机制产生新的鸟巢公式如表达式16所示。
The mutation mechanism produces a new bird's nest formula as shown in Expression 16.
式中,为步骤五中处理得到的鸟巢;xθ表示随机突变参数。In the formula, is the bird's nest processed in step five; xθ represents the random mutation parameter.
(2)无性遗传机制修复新的鸟巢(2) Asexual genetic mechanism repairs new bird nests
由于突变机制生成的新鸟巢会产生无效的或越界的测试用例编号,因此需要对新鸟巢的测试用例编号进行处理。处理过程步骤四中第(2)步过程类似。所有鸟巢修复后得到种群 Since the new nest generated by the mutation mechanism will produce invalid or out-of-bounds test case numbers, the test case numbers of the new nest need to be processed. The process of step (2) in step 4 of the processing process is similar. After all bird nests are repaired, the population will be obtained
(3)计算新鸟巢的适应度值、更新种群(3) Calculate the fitness value of the new nest and update the population
计算种群的各鸟巢适应度值非支配解集合比较 中解的支配关系,更新非支配解集合得 Calculate the population bird's nests fitness value non-dominated solution set Compare and Dominance relationship between solutions, update the non-dominated solution set to obtain
在目标空间中,根据找到基准点逐对比较与基准点距离和与基准点的距离。保留距离较小的那个鸟巢,即可得到新的种群 In the target space, according to find datum point pairwise comparison with reference point distance and with reference point distance. Keep the nest with a smaller distance to get a new population
经过比较和保留操作后的鸟巢记为更新最优鸟巢及其适应度值更新最优鸟巢及其适应度值 The bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
步骤八:更新迭代次数Step 8: Update the number of iterations
如果没有满足突变决策条件,则步骤五中的种群作为迭代了t+1次的种群P(t+1),如果满足突变决策条件,则步骤七中的种群作为迭代了t+1次的种群P(t+1)If the mutation decision conditions are not met, the population in step five As the population P (t+1) that has been iterated t+1 times, if the mutation decision conditions are met, the population in step seven As the population P (t+1) that has been iterated t+1 times.
步骤九:输出最优鸟巢Step 9: Output the optimal bird's nest
当迭代次数达到tMax时,输出最优鸟巢基于改进的多目标布谷鸟搜索算法算法结束。When the number of iterations reaches tMax, the optimal bird's nest is output. The algorithm based on the improved multi-objective cuckoo search algorithm is over.
接入测试服务获取优化后的测试用例集后,便开始执行各条测试用例,其流程如图10所示。接入测试服务解析测试用例集中的测试用例得到数条测试指令,并且将测试指令通过服务网关转发给测试代理;测试代理接收测试指令后向工业无线网络设备接入IPv6测试环境发送测试流;测试流被工业无线网络设备接入IPv6测试环境中的设备转发和处理,最终响应测试流会被测试代理接收;测试代理对响应测试流简单处理,将测试指令执行结果通过服务网关上传给接入测试服务。当前测试用例的测试指令都执行完成后,开始解析下一条测试用例并开始执行,直到测试用例集中的所有测试用例执行完成。然后接入测试服务调用测试报告管理服务生成测试报告,并且测试报告会保存到数据库。After accessing the test service to obtain the optimized test case set, each test case begins to be executed. The process is shown in Figure 10. The access test service parses the test cases in the test case set to obtain several test instructions, and forwards the test instructions to the test agent through the service gateway; after receiving the test instructions, the test agent sends a test stream to the industrial wireless network device access IPv6 test environment; test The stream is forwarded and processed by the device in the IPv6 test environment connected to the industrial wireless network device. The final response test stream will be received by the test agent; the test agent simply processes the response test stream and uploads the test instruction execution results to the access test through the service gateway. Serve. After all the test instructions of the current test case are executed, the next test case is parsed and executed until all test cases in the test case set are executed. Then access the test service to call the test report management service to generate a test report, and the test report will be saved to the database.
最后说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本技术方案的宗旨和范围,其均应涵盖在本发明的权利要求范围当中。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified. Modifications or equivalent substitutions without departing from the purpose and scope of the technical solution shall be included in the scope of the claims of the present invention.

Claims (10)

  1. 一种基于微服务的工业无线网络设备接入IPv6测试系统,其特征在于:包括基于微服务架构的测试管理系统、测试代理、测试环境;A microservice-based industrial wireless network equipment access IPv6 test system, which is characterized by: including a test management system, a test agent, and a test environment based on a microservice architecture;
    所述基于微服务架构的测试管理系统包括交互层、转发层、服务层、数据层以及治理层:The test management system based on microservice architecture includes interaction layer, forwarding layer, service layer, data layer and governance layer:
    交互层:基于Web的交互界面,向用户提供人机交互界面;Interaction layer: Web-based interactive interface, providing users with a human-computer interaction interface;
    转发层:即服务网关,负责过滤和转发交互层的请求、调用服务层的服务、进行负载均衡功能;Forwarding layer: the service gateway, which is responsible for filtering and forwarding requests from the interaction layer, calling services of the service layer, and performing load balancing functions;
    服务层:包含各功能模块划分而成的独立微服务,包括:测试资源管理服务模块、测试实施管理服务模块、测试项目管理服务模块、用户管理服务模块、日志管理服务模块;Service layer: Contains independent microservices divided into functional modules, including: test resource management service module, test implementation management service module, test project management service module, user management service module, and log management service module;
    数据层:保存系统正常运行所需要的一切数据;Data layer: saves all data required for the normal operation of the system;
    治理层:提高微服务系统的可靠性和容错性,包括:服务注册与发现模块,提供对各个微服务实例进行管理的功能;服务熔断模块,通过故障转移、系统隔离手段防止故障蔓延;服务链路追踪与监控,对微服务调用链路上的性能数据进行采集;服务配置中心,集中管理所有配置属性文件;Governance layer: Improve the reliability and fault tolerance of the microservice system, including: service registration and discovery module, which provides the function of managing each microservice instance; service circuit breaker module, which prevents fault spread through failover and system isolation; service chain Route tracking and monitoring collects performance data on microservice call links; the service configuration center centrally manages all configuration attribute files;
    所述测试代理用于分析来自基于微服务架构的测试管理系统的测试指令,向相应的测试环境发送数据流,以及接收来自测试环境的数据流,并且对数据流进行处理,将与测试环境交互的数据流处理结果上传给基于微服务架构的测试管理系统;The test agent is used to analyze test instructions from the test management system based on microservice architecture, send data streams to the corresponding test environment, receive data streams from the test environment, process the data streams, and interact with the test environment The data flow processing results are uploaded to the test management system based on microservice architecture;
    所述测试环境包括网关测试环境、路由器测试环境、终端测试环境,分别为要接入IPv6网络的网关、路由器、终端所搭建的测试环境;测试环境中包含标准的无线路由器、无线终端、IPv6无线边界网关,以及用户提供的被测无线路由器、被测无线终端、被测IPv6无线边界网关。The test environment includes a gateway test environment, a router test environment, and a terminal test environment, which are respectively test environments built for gateways, routers, and terminals that want to access the IPv6 network; the test environment includes standard wireless routers, wireless terminals, and IPv6 wireless The border gateway, as well as the wireless router under test, the wireless terminal under test, and the IPv6 wireless border gateway under test provided by the user.
  2. 根据权利要求1所述的基于微服务的工业无线网络设备接入IPv6测试系统,其特征在于:所述测试代理包括:The microservice-based industrial wireless network equipment access IPv6 test system according to claim 1, characterized in that: the test agent includes:
    通信接口:提供与基于微服务架构的测试管理系统的通信功能;Communication interface: Provides communication functions with the test management system based on microservice architecture;
    协议标准:内嵌与被测工业无线网络相同的协议模块,能与被测工业无线网络进行协议一致性测试;Protocol standard: Embedded with the same protocol module as the industrial wireless network under test, it can conduct protocol consistency testing with the industrial wireless network under test;
    测试代理描述:包含与测试相关的有用信息,包括测试代理的定义信息、驱动测试控制信息,以及相关参数信息;Test agent description: Contains useful information related to testing, including test agent definition information, driver test control information, and related parameter information;
    测试驱动:负责与工业无线网络设备接入IPv6测试环境交互测试流。Test driver: Responsible for the interactive test flow with industrial wireless network equipment connected to the IPv6 test environment.
  3. 根据权利要求1所述的基于微服务的工业无线网络设备接入IPv6测试系统,其特征在于:所述服务层中的各微服务具体包括: The microservice-based industrial wireless network equipment access IPv6 test system according to claim 1, characterized in that: each microservice in the service layer specifically includes:
    所述测试资源管理服务模块包括测试用例管理和测试数据管理,用于对不同协议的无线网络设备接入IPv6测试用例、以及测试所需数据、测试结果数据进行管理;The test resource management service module includes test case management and test data management, and is used to manage IPv6 test cases for wireless network devices with different protocols, as well as test required data and test result data;
    所述测试实施管理服务模块包括无线接入测试管理、测试报告管理、测试用例实施管理;所述无线接入测试管理针对各种协议的无线网络设备接入IPv6测试服务;所述测试报告管理包含针对测试报告的增删查操作功能;所述测试用例实施管理包括测试用例集优化、测试用例执行功能;The test implementation management service module includes wireless access test management, test report management, and test case implementation management; the wireless access test management provides IPv6 test services for wireless network equipment access to various protocols; the test report management includes Add, delete and check operation functions for test reports; the test case implementation management includes test case set optimization and test case execution functions;
    所述测试项目管理服务模块包括对测试项目进行创建、删除、查看、状态维护功能;The test project management service module includes the functions of creating, deleting, viewing, and status maintenance of test projects;
    所述用户管理服务模块包括对用户信息进行查看、增加、删除和权限分配;The user management service module includes viewing, adding, deleting and assigning permissions to user information;
    所述日志管理服务模块包括记录系统的操作日志和测试用例执行日志。The log management service module includes recording system operation logs and test case execution logs.
  4. 一种基于微服务的工业无线网络设备接入IPv6测试方法,其特征在于:包括以下步骤:A microservice-based industrial wireless network equipment access IPv6 test method, which is characterized by: including the following steps:
    S1:用户登录基于微服务架构的测试管理系统,创建测试项目,填写PICS表单,向测试人员提供被测设备;S1: The user logs in to the test management system based on microservice architecture, creates a test project, fills out the PICS form, and provides the tested device to the tester;
    S2:测试人员根据测试项目中的明细将被测设备接入被测网络环境;S2: The tester connects the device under test to the network environment under test according to the details in the test project;
    S3:基于微服务架构的测试管理系统根据用户创建的测试项目,调用相应的内部资源,调用无线接入测试服务,生成测试用例集,并且调用测试用例集优化算法,对测试用例集中的测试用例进行优先级排序;S3: The test management system based on the microservice architecture calls the corresponding internal resources according to the test projects created by the user, calls the wireless access test service, generates a test case set, and calls the test case set optimization algorithm to analyze the test cases in the test case set. Prioritize;
    S4:基于微服务架构的测试管理系统根据测试用例集,逐条执行测试用例,向测试代理发送测试指令;S4: The test management system based on microservice architecture executes test cases one by one based on the test case set and sends test instructions to the test agent;
    S5:测试代理根据操作指令,向工业无线网络设备接入IPv6测试环境发送测试流;S5: The test agent sends a test stream to the IPv6 test environment where the industrial wireless network device accesses the device according to the operation instructions;
    S6:工业无线网络设备接入IPv6测试环境中的网络设备对测试流进行转发和响应,最终将测试流响应给测试代理;S6: The industrial wireless network equipment is connected to the network equipment in the IPv6 test environment to forward and respond to the test flow, and finally responds to the test flow to the test agent;
    S7:测试代理对响应的测试流简单处理,并将结果上传给基于微服务架构的测试管理系统;S7: The test agent simply processes the response test stream and uploads the results to the test management system based on microservice architecture;
    S8:在执行完所有的测试用例后,基于微服务架构的测试管理系统分析测试结果生成测试报告。S8: After executing all test cases, the test management system based on microservice architecture analyzes the test results and generates a test report.
  5. 根据权利要求4所述的基于微服务的工业无线网络设备接入IPv6测试方法,其特征在于:测试用例集首次获取时的依据是由用户填写的PICS表部分条目,包括device_type_id字段、protocol_type_id字段、requirement_information字段信息;测试用例绑定device_type_id字段、protocol_type_id字段、requirement_information字段信息;The microservice-based industrial wireless network equipment access IPv6 test method according to claim 4, characterized in that: when the test case set is first obtained, the basis is the partial entries of the PICS table filled in by the user, including the device_type_id field, the protocol_type_id field, requirement_information field information; test case binding device_type_id field, protocol_type_id field, requirement_information field information;
    测试项目非首次执行,则接入测试服务将该测试项目的测试用例历史执行记录发送给测 试用例管理服务,测试用例管理服务根据测试用例历史执行记录的test_case_id字段信息从数据库中调取测试用例基。If the test project is not executed for the first time, the access test service will send the test case historical execution record of the test project to the tester. The test case management service retrieves the test case base from the database based on the test_case_id field information of the test case historical execution record.
  6. 根据权利要求4所述的基于微服务的工业无线网络设备接入IPv6测试方法,其特征在于:对测试用例集进行优化前,对测试用例进行再编号,得到测试用例编号序列;The microservice-based industrial wireless network equipment access IPv6 testing method according to claim 4, characterized in that: before optimizing the test case set, the test cases are renumbered to obtain the test case number sequence;
    测试用例集优化算法的输入是测试用例编号xij,以及对应的测试用例的测试需求覆盖数测试用例历史执行失败数输出是优化后的测试用例编号序列;测试用例集优化算法包括以下步骤:The input of the test case set optimization algorithm is the test case number x ij and the test requirement coverage number of the corresponding test case Number of historical execution failures of test cases The output is the optimized test case number sequence; the test case set optimization algorithm includes the following steps:
    S31:定义测试用例的测试需求覆盖数、历史失败数;S31: Define the test requirement coverage number and historical failure number of test cases;
    S32:初始化测试用例的测试需求覆盖数、历史失败数;S32: The number of test requirements coverage and the number of historical failures of initialization test cases;
    S33:判断是否存在若不存在,则利用普通排序算法根据大小进行降序排序得到优化的测试用例编号序列,若存在,则调用基于改进的多目标布谷鸟搜索算法获取优化的测试用例编号序列。S33: Determine whether it exists If it does not exist, use the ordinary sorting algorithm according to The optimized test case number sequence is obtained by sorting the size in descending order. If it exists, the improved multi-objective cuckoo search algorithm is called to obtain the optimized test case number sequence.
  7. 根据权利要求6所述的基于微服务的工业无线网络设备接入IPv6测试方法,其特征在于:所述基于改进的多目标布谷鸟搜索算法包括以下步骤:The microservice-based industrial wireless network equipment access IPv6 testing method according to claim 6, characterized in that: the improved multi-objective cuckoo search algorithm includes the following steps:
    A1:定义种群规模、发现概率、结束条件;A1: Define population size, discovery probability, and end conditions;
    一个鸟巢代表一个测试用例集所有测试用例的编号序列,代表一个可能解,鸟巢的定义为:
    A bird's nest represents the number sequence of all test cases in a test case set, representing a possible solution. The bird's nest is defined as:
    式中,n表示所有鸟巢的数量,即种群大小;m表示一个测试用例集的测试用例数量,即测试用例编号的数量;tMax表示最大迭代次数;xij表示第i个鸟巢的第j个测试用例编号;表示第i个经过t次迭代的鸟巢;In the formula, n represents the number of all bird's nests, that is, the population size; m represents the number of test cases in a test case set, that is, the number of test case numbers; tMax represents the maximum number of iterations; x ij represents the j-th test of the i-th bird's nest. Use case number; Represents the i-th bird's nest after t iterations;
    一个种群定义为:
    A population is defined as:
    在执行随机漫步机制时以一定的概率抛弃部分鸟巢,鸟巢的宿主发现布谷鸟蛋的概率为pa,定义结束条件为当前迭代次数是否为最大迭代次数tMax;When executing the random walk mechanism, part of the bird's nest is abandoned with a certain probability. The probability that the host of the bird's nest discovers the cuckoo egg is pa. The end condition is defined as whether the current number of iterations is the maximum number of iterations tMax;
    A2:初始化种群,确定适应度函数;A2: Initialize the population and determine the fitness function;
    A3:判断是否满足结束条件,即是否达到最大迭代次数tMax,若满足,则输出最优鸟巢,否则执行以下循环步骤;A3: Determine whether the end condition is met, that is, whether the maximum number of iterations tMax is reached. If it is met, the optimal bird's nest is output, otherwise the following loop steps are executed;
    A4:通过莱维飞行机制生成新的鸟巢并更新种群;A4: Generate new bird nests and update the population through Levi’s flight mechanism;
    A5:通过随机漫步机制生成新鸟巢并更新种群; A5: Generate new bird nests and update the population through the random walk mechanism;
    A6:判断是否满足突变决策条件,若满足,则更新迭代次数,返回步骤A4;不满足,则先过突变机制生成新的鸟巢并更新种群,再更新迭代次数,返回步骤A4。A6: Determine whether the mutation decision-making condition is met. If it is met, update the number of iterations and return to step A4; if not, first use the mutation mechanism to generate a new bird's nest and update the population, then update the number of iterations and return to step A4.
    突变决策条件为:
    The mutation decision condition is:
    其中,γ表示突变机制的阈值;u表示要追溯的代数;Among them, γ represents the threshold of the mutation mechanism; u represents the number of generations to be traced;
    当第i个鸟巢连续u代的适应度值保持在一个小范围内变化时,触发突变机制,以当前随机漫步机制更新的种群当作t+1代种群来进行决策;When the fitness value of the i-th bird's nest for consecutive u generations remains within a small range, the mutation mechanism is triggered and the population is updated with the current random walk mechanism. Treat it as the t+1 generation population for decision-making;
    突变机制产生新的鸟巢公式如下:
    The mutation mechanism generates a new bird's nest formula as follows:
    式中,表示处理得到的鸟巢;xθ表示随机突变参数;In the formula, represents the processed bird's nest; xθ represents the random mutation parameter;
    新鸟巢的测试用例编号进行无性遗传机制修复处理;计算种群的各鸟巢适应度值非支配解集合比较中解的支配关系,更新非支配解集合得 The test case number of the new bird's nest is repaired by the asexual genetic mechanism; the population is calculated bird's nests fitness value non-dominated solution set Compare and Dominance relationship between solutions, update the non-dominated solution set to obtain
    在目标空间中,根据找到基准点逐对比较与基准点距离和与基准点的距离;保留距离较小的那个鸟巢,得到新的种群 In the target space, according to find datum point pairwise comparison with reference point distance and with reference point distance; keep the nest with a smaller distance and get a new population
    经过比较和保留操作后的鸟巢记为更新最优鸟巢及其适应度值更新最优鸟巢及其适应度值 The bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
  8. 根据权利要求7所述的基于微服务的工业无线网络设备接入IPv6测试方法,其特征在于:步骤A2具体包括以下步骤:The microservice-based industrial wireless network equipment access IPv6 testing method according to claim 7, characterized in that step A2 specifically includes the following steps:
    将种群中的每个鸟巢进行初始化处理:
    Initialize each bird's nest in the population:
    式中,randomPermutation(m)为第i个初始鸟巢生成大小为m的随机排列函数,初始种群为 In the formula, randomPermutation(m) is the random permutation function of size m generated by the i-th initial bird nest, and the initial population is
    以最大化测试需求覆盖率和最大化历史执行失败率为排序目标,所述最大化测试需求覆盖率是指测试用例尽快覆盖更多测试需求,所述化历史执行失败率指在历史执行过程中,发现过缺陷的测试用例应具有更高的优先级;The ranking objectives are to maximize test requirement coverage and maximize historical execution failure rate. Maximizing test requirement coverage means that test cases cover more test requirements as quickly as possible, and maximizing historical execution failure rate means that during the historical execution process , test cases that have discovered defects should have higher priority;
    所述最大化测试需求覆盖率的目标函数为:
    The objective function to maximize test requirement coverage is:
    式中,m表示一个测试用例集的测试用例数量;xij表示第i个鸟巢的第j个测试用例编号;表示一个测试用例覆盖的测试需求数;RCS表示所有测试用例覆盖的测试需求数;In the formula, m represents the number of test cases in a test case set; x ij represents the j-th test case number of the i-th bird's nest; Indicates the number of test requirements covered by a test case; RCS indicates the number of test requirements covered by all test cases;
    所述最大化历史执行失败率的目标函数为:
    The objective function to maximize the historical execution failure rate is:
    式中,表示一个测试用例的历史执行失败数,FCS表示所有测试用例的历史执行失败数;In the formula, Indicates the number of historical execution failures of a test case, and FCS indicates the number of historical execution failures of all test cases;
    综合最大化测试需求覆盖率和最大化历史执行失败率为排序目标的鸟巢目标函数f(xi)表示为:
    f(xi)=[f1(xi),f2(xi)]
    The Bird's Nest objective function f( xi ) that comprehensively maximizes test requirement coverage and maximizes historical execution failure rate is expressed as:
    f(x i )=[f 1 (x i ), f 2 (x i )]
    以目标函数作为适应度函数,目标函数的值为适应度值,通过下式得到初始种群的非支配解集合NDS(0)
    Taking the objective function as the fitness function and the value of the objective function as the fitness value, the non-dominated solution set NDS (0) of the initial population is obtained by the following formula:
    其中xa和xb是不同的两个鸟巢,找到NDS(0)中的基准点(Max(f1),Max(f2)),记为RP(0),计算距离基准点最近的非支配解,作为初始种群P(0)最优解其适应度值计算距离基准点最远的解,作为初始种群P(0)最差解其适应度值 Among them, x a and x b are two different bird's nests. Find the reference point (Max(f 1 ), Max(f 2 )) in NDS (0) , record it as RP (0) , and calculate the non-linear point closest to the reference point. Dominant solution, as the optimal solution of the initial population P (0) its fitness value Calculate the solution farthest from the reference point as the worst solution of the initial population P (0) its fitness value
  9. 根据权利要求8所述的基于微服务的工业无线网络设备接入IPv6测试方法,其特征在于:所述步骤A4具体包括以下步骤:The microservice-based industrial wireless network equipment access IPv6 testing method according to claim 8, characterized in that step A4 specifically includes the following steps:
    利用莱维飞行机制对除最优鸟巢以外的其他鸟巢的位置和状态进行更新,初始更新公式为:
    Using Levi's flight mechanism to remove the optimal bird's nest The location and status of other bird's nests are updated. The initial update formula is:
    式中,α表示步长控制量;表示第i个经过t次迭代的鸟巢;表示在经过莱维飞行机制生成新的鸟巢,是临时更新版本的鸟巢,并非t+1代鸟巢;表示点对点乘法;Levy(β)表示随机搜索路径,服从Levy分布;In the formula, α represents the step control amount; Represents the i-th bird's nest after t iterations; expressed in The new bird's nest generated through Levi's flight mechanism is a temporarily updated version of the bird's nest, not the t+1 generation bird's nest; Represents point-to-point multiplication; Levy(β) represents a random search path, obeying Levy distribution;
    使用下式产生Levy随机数:
    Use the following formula to generate Levy random numbers:
    式中,μ,v服从标准正太分布;
    In the formula, μ, v obey the standard normal distribution;
    适应步长为:
    Adaptation step size for:
    式中,表示经过t次迭代种群中,第i个鸟巢的步长;表示是经过t次迭代种群中,第i个鸟巢的适应度值;表示经过t次迭代种群中,最优鸟巢适应度值;表示经过t次迭代种群中,最差鸟巢适应度值;In the formula, Represents the step size of the i-th bird's nest in the population after t iterations; It represents the fitness value of the i-th bird's nest in the population after t iterations; Indicates the optimal bird's nest fitness value in the population after t iterations; Represents the worst nest fitness value in the population after t iterations;
    改进的莱维飞行更新公式为:
    The improved Levi flight update formula is:
    对新鸟巢的测试用例编号进行四舍五入,将越界的测试用例编号和重复的编号替换成无关值,记为*;然后新鸟巢中的无关值从旧鸟巢中获取,按照旧鸟巢的值顺序填充新鸟巢的无关值*;通过无性遗传机制修复新的鸟巢最终得到鸟巢 Round off the test case numbers of the new Bird's Nest, replace out-of-bounds test case numbers and duplicate numbers with irrelevant values, recorded as *; then the irrelevant values in the new Bird's Nest are removed from the old Bird's Nest Get in, follow the old bird's nest The values sequentially fill in the irrelevant values * of the new bird's nest; repair the new bird's nest through the asexual genetic mechanism and finally obtain the bird's nest.
    计算修复后鸟巢的适应度值得到非支配解集合比较和NDS(t)中解的支配关系,更新非支配解集合得在目标空间中,根据找到基准点逐对比较与基准点距离和与基准点的距离;保留距离较小的那个鸟巢,得到新的种群经过比较和保留操作后的鸟巢记为更新最优鸟巢及其适应度值更新最优鸟巢及其适应度值 Calculate the repaired bird's nest fitness value Get the non-dominated solution set Compare and the dominance relationship of solutions in NDS (t) , update the non-dominated solution set to obtain In the target space, according to find datum point pairwise comparison with reference point distance and with reference point distance; keep the nest with a smaller distance and get a new population The bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
  10. 根据权利要求9所述的基于微服务的工业无线网络设备接入IPv6测试方法,其特征在于:所述步骤A5具体包括以下步骤:The microservice-based industrial wireless network equipment access IPv6 testing method according to claim 9, characterized in that step A5 specifically includes the following steps:
    所述随机漫步机制,是模拟鸟巢的宿主一定几率发现布谷鸟蛋后可能放弃鸟巢,在别处生成一个新鸟巢的过程,随机漫步机制产线新鸟巢的表达式如下:
    The random walk mechanism is a process that simulates a bird's nest where the host may abandon the nest and generate a new bird's nest elsewhere after discovering a cuckoo egg with a certain probability. The random walk mechanism produces new bird's nests. The expression is as follows:
    其中,表示种群中任意不同的3个鸟巢;ε表示属于[0,1]中的随机数;pa表示是发现概率;H(ε-pa)赫维赛德函数,当(ε-pa)≥0时,该函数值为1,否则该函数值为0; in, represents a population 3 different bird's nests in arbitrarily; ε represents a random number belonging to [0,1]; pa represents the discovery probability; H (ε-pa) Heaviside function, when (ε-pa) ≥ 0, the The function value is 1, otherwise the function value is 0;
    对新鸟巢的测试用例编号进行无性遗传机制修复处理,得到种群 Perform asexual genetic mechanism repair on the test case number of the new bird's nest to obtain the population
    计算种群的各鸟巢适应度值非支配解集合比较中解的支配关系,更新非支配解集合得 Calculate the population bird's nests fitness value non-dominated solution set Compare and Dominance relationship between solutions, update the non-dominated solution set to obtain
    在目标空间中,根据找到基准点逐对比较与基准点距离和与基准点的距离;保留距离较小的那个鸟巢,得到新的种群 In the target space, according to find datum point pairwise comparison with reference point distance and with reference point distance; keep the nest with a smaller distance and get a new population
    经过比较和保留操作后的鸟巢记为更新最优鸟巢及其适应度值更新最优鸟巢及其适应度值 The bird's nest after comparison and retention operations is recorded as Update the best bird's nest and its fitness value Update the best bird's nest and its fitness value
PCT/CN2023/096985 2022-08-11 2023-05-30 Micro service-based test system and method for industrial wireless network device accessing ipv6 WO2024032100A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210961111.3A CN115396335B (en) 2022-08-11 2022-08-11 Industrial wireless network equipment access IPv6 test system and method based on micro-service
CN202210961111.3 2022-08-11

Publications (1)

Publication Number Publication Date
WO2024032100A1 true WO2024032100A1 (en) 2024-02-15

Family

ID=84119553

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/096985 WO2024032100A1 (en) 2022-08-11 2023-05-30 Micro service-based test system and method for industrial wireless network device accessing ipv6

Country Status (2)

Country Link
CN (1) CN115396335B (en)
WO (1) WO2024032100A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396335B (en) * 2022-08-11 2023-05-16 重庆邮电大学 Industrial wireless network equipment access IPv6 test system and method based on micro-service

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808355A (en) * 2009-12-28 2010-08-18 重庆邮电大学 System and method for testing consistency of industrial wireless network protocol
CN103746879A (en) * 2013-12-28 2014-04-23 国家电网公司 Testing system and method for consistency of IPv6 (Internet Protocol Version 6) protocol
US20150261657A1 (en) * 2014-03-13 2015-09-17 Infosys Limited Methods for generating test suites and devices thereof
US20210064515A1 (en) * 2019-08-27 2021-03-04 Nec Laboratories America, Inc. Deep q-network reinforcement learning for testing case selection and prioritization
CN114401211A (en) * 2022-01-17 2022-04-26 重庆邮电大学 Test system and test method for accessing industrial wireless network equipment to IPv6 network
CN115396335A (en) * 2022-08-11 2022-11-25 重庆邮电大学 Industrial wireless network equipment access IPv6 testing system and method based on micro-service

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925431A (en) * 2005-08-31 2007-03-07 华为技术有限公司 Method for file host-host protocol service significance testing
CN101945043B (en) * 2010-09-06 2012-03-28 华南理工大学 Topology discovery system of next generation Internet based on IPv6 (Internet Protocol Version 6) and realizing method thereof
CN104539483A (en) * 2014-12-31 2015-04-22 中国电子科技集团公司第五十研究所 Network testing system
CN104837150B (en) * 2015-06-03 2018-01-05 重庆邮电大学 IPv6 wireless sense network safety test systems
CN110071822B (en) * 2019-03-14 2022-03-08 北京天地互连信息技术有限公司 Testing device and testing method for 5G core network infrastructure
CN113612658B (en) * 2021-08-02 2023-06-06 四川九州电子科技股份有限公司 Broadband network equipment testing system and testing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808355A (en) * 2009-12-28 2010-08-18 重庆邮电大学 System and method for testing consistency of industrial wireless network protocol
CN103746879A (en) * 2013-12-28 2014-04-23 国家电网公司 Testing system and method for consistency of IPv6 (Internet Protocol Version 6) protocol
US20150261657A1 (en) * 2014-03-13 2015-09-17 Infosys Limited Methods for generating test suites and devices thereof
US20210064515A1 (en) * 2019-08-27 2021-03-04 Nec Laboratories America, Inc. Deep q-network reinforcement learning for testing case selection and prioritization
CN114401211A (en) * 2022-01-17 2022-04-26 重庆邮电大学 Test system and test method for accessing industrial wireless network equipment to IPv6 network
CN115396335A (en) * 2022-08-11 2022-11-25 重庆邮电大学 Industrial wireless network equipment access IPv6 testing system and method based on micro-service

Also Published As

Publication number Publication date
CN115396335A (en) 2022-11-25
CN115396335B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
CN104035392B (en) Big data in Process Control System
Medved et al. Opendaylight: Towards a model-driven sdn controller architecture
CN109644143A (en) Method and apparatus for network slice
CN107005480A (en) The system and method cooperated for SDT and NFV and SDN
CN112600891B (en) Information physical fusion-based edge cloud cooperative system and working method
WO2020168761A1 (en) Model training method and apparatus
CN112600717B (en) Satellite network management and control protocol semi-physical test device based on SDN
CN106533886B (en) Full-interconnection manufacturing network architecture based on IPv6 protocol and management method
WO2024032100A1 (en) Micro service-based test system and method for industrial wireless network device accessing ipv6
US11909744B2 (en) Network verification method and apparatus
CN109639484B (en) Industrial fusion network management method based on software definition and network manager thereof
CN112925646A (en) Electric power data edge calculation system and calculation method
CN108449350A (en) A kind of multi-protocols method of combination and device
CN108270818A (en) A kind of micro services architecture system and its access method
JP2020043565A (en) System and method enabling intelligent network services through cognitive detection, analysis, determination, and response framework
CN110390020A (en) The modeling method of semantic gateway and semantic gateway
CN115576289A (en) Reconfigurable high-fidelity large-scale industrial internet simulation platform based on virtualization technology
CN110086640A (en) The enabled method and apparatus of business
CN102882979B (en) Data acquisition based on cloud computing system and the system and method collecting shunting
TW202013304A (en) A system of virtual and physical integrated network service fulfillment and monitor based on artificial intelligence
TWI651667B (en) Interface system of virtual and physical integrated network with resources topology
WO2022166715A1 (en) Intelligent pipeline processing method and apparatus, and storage medium and electronic apparatus
WO2022111356A1 (en) Data migration method and system, and server and storage medium
US11558263B2 (en) Network device association with network management system
KR101711599B1 (en) Apparatus and method for inter-sdn network domain federation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23851328

Country of ref document: EP

Kind code of ref document: A1