Function test method and device for satellite edge computing node
By sending target rules and status update requests to satellite edge computing nodes, combining query rules for existence and status, determining whether the target function passes functional testing, it solves the problem that it is difficult to effectively test the functions of satellite edge computing nodes in the prior art, and improves the effectiveness and accuracy of the test.
Patent Information
- Application Number
- CN202311451134.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2025-05-06
AI Technical Summary
The prior art is difficult to effectively test the functions of satellite edge computing nodes and cannot meet the testing needs of satellite Internet edge computing applications.
A functional testing method for satellite edge computing nodes is proposed. By sending target rules to nodes, querying the existence of rules, sending status update requests and querying the rules status, it determines whether the target function passes functional testing.
It improves the effectiveness and accuracy of service function testing of satellite edge computing nodes, can effectively test the functions of nodes, and meets the needs of satellite Internet edge computing applications.
Smart Images

Figure CN119945513A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of satellite edge computing testing technology, and in particular to a method and device for functional testing of satellite edge computing nodes. Background Art
[0002] At present, satellite Internet networks can provide services to remote areas, disaster areas, or users in the air and at sea, providing global users with a powerful solution of broadband, ubiquitous and reliable coverage. Satellite edge computing technology is a computing power sinking based on satellite Internet access. By deploying edge computing systems at network locations or physical locations close to terminals in the network, local computing and storage can be achieved, network transmission delays and loads can be reduced, terminal energy consumption and computing resources can be saved, and user service experience can be improved.
[0003] In order to improve the user service experience, it is necessary to test the functions of satellite edge computing nodes according to the specific demand scenarios of satellite Internet to verify whether the service capabilities of the satellite edge computing nodes meet the requirements of satellite Internet edge computing applications. Therefore, how to perform functional testing on satellite edge computing nodes has become an urgent problem to be solved. Summary of the invention
[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.
[0005] To this end, the first purpose of the present invention is to propose a functional testing method for a satellite edge computing node, which performs a first target function test on the satellite edge computing node through multiple test steps, and jointly determines whether the first target function of the satellite edge computing node passes the functional test based on the test results of the satellite edge computing node in the multiple test steps, thereby improving the effectiveness and accuracy of the service function test of the satellite edge computing node.
[0006] The second objective of the present disclosure is to provide a functional testing device for a satellite edge computing node.
[0007] A third objective of the present disclosure is to provide an electronic device.
[0008] A fourth objective of the present disclosure is to provide a computer-readable storage medium.
[0009] A fifth object of the present disclosure is to provide a computer program product.
[0010] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present disclosure proposes a functional testing method for a satellite edge computing node, which is applied to a test node, including: sending a target rule to a satellite edge computing node, wherein the target rule is a service rule of a designated edge application corresponding to the satellite edge computing node in the test node; querying whether the target rule exists in the satellite edge computing node to obtain a first query result; when the first query result indicates that the target rule exists, based on the first state of the target rule in the satellite edge computing node, sending a status update request to the satellite edge computing node; wherein the status update request is used to instruct the satellite edge computing node to switch the target rule from the first state to the second state; querying the third state of the target rule in the satellite edge computing node; and determining whether the first target function passes the functional test based on the third state and the second state.
[0011] The functional testing method of the satellite edge computing node of the embodiment of the present disclosure is applied to the test node, by sending a target rule to the satellite edge computing node, wherein the target rule is a service rule of a designated edge application corresponding to the satellite edge computing node in the test node; querying whether the target rule exists in the satellite edge computing node to obtain a first query result; when the first query result indicates that the target rule exists, based on the first state of the target rule in the satellite edge computing node, sending a state update request to the satellite edge computing node; wherein the state update request is used to instruct the satellite edge computing node to switch the target rule from the first state to the second state; querying the third state of the target rule in the satellite edge computing node; and determining whether the first target function passes the functional test according to the third state and the second state. Thus, the test node performs a first target function test on the satellite edge computing node through multiple test steps, and jointly determines whether the first target function of the satellite edge computing node passes the functional test according to the test results of the satellite edge computing node in multiple test steps, thereby improving the effectiveness and accuracy of the service function test of the satellite edge computing node.
[0012] To achieve the above-mentioned purpose, the second aspect embodiment of the present disclosure proposes a functional testing device for a satellite edge computing node, which is applied to a test node and includes: a first sending module, used to send a target rule to the satellite edge computing node, wherein the target rule is a service rule of a specified edge application in the test node and located on the satellite edge computing node; a first query module, used to query whether the target rule exists in the satellite edge computing node to obtain a first query result; a second sending module, used to send a status update request to the satellite edge computing node based on the first state of the target rule in the satellite edge computing node when the first query result indicates the existence of the target rule; wherein the status update request is used to instruct the satellite edge computing node to switch the target rule from the first state to the second state; a second query module, used to query the third state of the target rule in the satellite edge computing node; a determination module, used to determine whether the first target function passes the functional test based on the third state and the second state.
[0013] To achieve the above-mentioned purpose, the third aspect embodiment of the present disclosure proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the functional testing method of the satellite edge computing node as described in the first aspect embodiment of the present disclosure.
[0014] In order to achieve the above-mentioned objectives, the fourth aspect embodiment of the present disclosure proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the functional testing method of the satellite edge computing node as described in the first aspect embodiment of the present disclosure is implemented.
[0015] In order to achieve the above-mentioned objectives, the fifth aspect embodiment of the present disclosure proposes a computer program product, which, when the instruction processor in the computer program product is executed, implements the functional testing method of the satellite edge computing node as described in the first aspect embodiment of the present disclosure.
[0016] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0018] Figure 1 A schematic diagram of a flow chart of a function testing method for a satellite edge computing node provided in an embodiment of the present disclosure;
[0019] Figure 2A schematic diagram of the interaction between the test node and the satellite edge computing node provided in the embodiment of the present disclosure;
[0020] Figure 3 A flowchart of another method for testing the function of a satellite edge computing node provided by an embodiment of the present disclosure;
[0021] Figure 4 A flowchart of another method for testing the function of a satellite edge computing node provided by an embodiment of the present disclosure;
[0022] Figure 5 A flowchart of another method for testing the function of a satellite edge computing node provided by an embodiment of the present disclosure;
[0023] Figure 6 A flowchart of another method for testing the function of a satellite edge computing node provided by an embodiment of the present disclosure;
[0024] Figure 7 A flowchart of another method for testing the function of a satellite edge computing node provided by an embodiment of the present disclosure;
[0025] Figure 8 A flowchart of another method for testing the function of a satellite edge computing node provided by an embodiment of the present disclosure;
[0026] Fig. 9 A schematic diagram of the structure of a functional testing device for a satellite edge computing node provided by an embodiment of the present disclosure;
[0027] Fig.10 A schematic diagram of the structure of another functional testing device for a satellite edge computing node provided by an embodiment of the present disclosure;
[0028] Fig.11 It is a block diagram of an electronic device for functional testing of a satellite edge computing node according to an exemplary embodiment. DETAILED DESCRIPTION
[0029] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0030] Since the satellite Internet edge computing system is designed based on the satellite Internet edge computing requirements and has multiple edge-side functions, the edge infrastructure and platform requirements in terms of capabilities, forms, and deployment are different from those of traditional cloud computing. When satellite Internet edge computing is applied to IoT sensing, precise positioning, and other application scenarios, satellite edge computing nodes are required to have continuous service capabilities and open network and platform service capabilities. However, the relevant test methods cannot meet the test requirements of satellite edge computing nodes.
[0031] Therefore, in view of the above problems, the present disclosure proposes a method and device for functional testing of satellite edge computing nodes. It should be noted that the functional testing method of the satellite edge computing node of the embodiment of the present disclosure can be applied to the test node, which can be deployed in ground equipment (such as a server on the ground).
[0032] The following describes the functional testing method and device of the satellite edge computing node of the embodiment of the present disclosure with reference to the accompanying drawings.
[0033] Figure 1 A flowchart of a method for functional testing of a satellite edge computing node provided in an embodiment of the present disclosure.
[0034] like Figure 1 As shown, the functional testing method of the satellite edge computing node may include the following steps:
[0035] Step 101, sending target rules to the satellite edge computing node.
[0036] Among them, the target rule can be a service rule of a specified edge application located on a satellite edge computing node in the test node.
[0037] In the embodiments of the present disclosure, Figure 2 As shown, the test node may include an edge application and a controller, wherein the edge application may be an application deployed on the satellite edge computing node, the controller may be used to issue orchestration management instructions, and the controller may be a management and orchestration controller. The edge application may interact with the satellite edge computing node through interface 1, and the controller may interact with the satellite edge computing node through interface 2.
[0038] In the embodiment of the present disclosure, before the satellite edge computing node is functionally tested, all configurations on the satellite edge computing node can be cleared. If there is no configuration, it can be cleared; if there is a configuration, the present disclosure does not specifically limit the method of clearing the configuration, and then, configure the management interface on the satellite edge computing node, and interact with the controller (management and orchestration controller) through the management interface to execute the request issued by the management and orchestration controller; then, deploy the edge computing application on the satellite edge computing node so that the edge computing application can be controlled by the edge computing node and the controller. The edge computing application should be able to provide services to the outside and have an open service interface that can be called; finally, the satellite edge computing node communicates with the edge computing application client / terminal through the network. The application client should be deployed separately on an independent physical terminal device, and no further provisions are made for the physical device and its network card. The communication access network of the terminal device should be a satellite communication network that adopts the service-based architecture (SBA) core network architecture, and the space-based base station accesses the space-based data plane forwarding unit device, rather than other access methods, such as broadband or indoor distributed systems.
[0039] It should be noted that when the controller is a management and orchestration controller, one management and orchestration controller can be interconnected with multiple satellite Internet edge computing nodes, so that all satellite edge computing nodes are controlled by the management and orchestration controller. Multiple edge computing applications (satellite Internet edge computing applications) can be deployed on the satellite edge computing node, and the satellite edge computing node communicates with the client where the multiple edge computing applications are located through the network, and the client can access the edge computing application service. The number of multiple satellite edge computing nodes can be at least 2, and there is at least 1 edge computing application on each satellite edge computing node.
[0040] As an example, the test node may send a target rule to the satellite edge computing node. The target rule is a service rule of a specified edge application located on the satellite edge computing node in the test node. For example, the target rule may be a Domain Name System (DNS) rule of a specified edge application, or the target rule may be a flow control rule of a specified edge application.
[0041] Step 102, query whether there is a target rule in the satellite edge computing node to obtain a first query result.
[0042] Further, after sending the target rule to the satellite edge computing node, it is possible to query whether the target rule exists in the satellite edge computing node to obtain a first query result.
[0043] Step 103, when the first query result indicates that there is a target rule, based on the first state of the target rule in the satellite edge computing node, send a state update request to the satellite edge computing node.
[0044] The state update request is used to instruct the satellite edge computing node to switch the target rule from the first state to the second state.
[0045] Furthermore, when the target rule exists in the satellite edge computing node, the current first state of the target rule in the satellite edge computing node can be obtained, and a state update request can be sent to the satellite edge computing node, wherein the state update request can be used for the satellite edge computing node to switch the target rule from the first state to the second state.
[0046] Step 104, query the satellite edge computing node for the third state of the target rule.
[0047] Further, the third state of the target rule in the satellite edge computing node is queried to determine whether the target rule is switched from the first state to the second state.
[0048] Step 105: Determine whether the first target function passes the function test according to the third state and the second state.
[0049] As an example, whether the first target function passes the function test may be determined based on a comparison result between the third state and the second state.
[0050] As another example, whether the first target function passes the function test may be determined based on a comparison result between the third state and the second state and other information.
[0051] In summary, by sending a target rule to a satellite edge computing node, wherein the target rule is a service rule of a specified edge application located on the satellite edge computing node in a test node; querying whether the target rule exists in the satellite edge computing node to obtain a first query result; when the first query result indicates that the target rule exists, based on the first state of the target rule in the satellite edge computing node, sending a state update request to the satellite edge computing node; wherein the state update request is used to instruct the satellite edge computing node to switch the target rule from the first state to the second state; querying the third state of the target rule in the satellite edge computing node; determining whether the first target function passes the functional test based on the third state and the second state, thereby the test node performs a first target function test on the satellite edge computing node through multiple test steps, and jointly determines whether the first target function of the satellite edge computing node passes the functional test based on the test results of the satellite edge computing node in multiple test steps, thereby improving the effectiveness and accuracy of the first target function test on the satellite edge computing node.
[0052] As an example, the first target function is a domain name system DNS service function, and the target rule is a DNS rule for specifying an edge application. In the embodiment of the present disclosure, Figure 3 As shown, the method for testing the traffic rule control service function in the satellite edge node may include the following steps:
[0053] Step 301, sending target rules to the satellite edge computing node.
[0054] Among them, the target rule is the service rule of the specified edge application located on the satellite edge computing node in the test node.
[0055] Step 302, query whether there is a target rule in the satellite edge computing node to obtain a first query result.
[0056] Step 303: When the first query result indicates that a DNS rule exists, in response to the DNS rule being in a deactivated state, a first status update request is sent to the edge computing node.
[0057] As an example, the first target function is the DNS service function, the target rule is the DNS rule of the specified edge application, and when the DNS rule is in a deactivated state, a first status update request is sent to the edge computing node, wherein the first status update request is used to instruct the satellite edge computing node to switch the DNS rule from a deactivated state to an activated state.
[0058] As another example, the first target function is a DNS service function, the target rule is a DNS rule for a specified edge application, the status update request also includes a second status update request, and when the DNS rule is in a deactivated state, a first status update request is sent to the edge computing node, wherein the first status update request is used to instruct the satellite edge computing node to switch the DNS rule from a deactivated state to an activated state; in response to the DNS rule switching from a deactivated state to an activated state, a second status update request is sent to the edge computing node; wherein the second status update request is used to instruct the satellite edge computing node to switch the DNS rule from an activated state to a deactivated state.
[0059] In response to the DNS rule switching from a deactivated state to an activated state, a DNS resolution request is sent to the satellite edge computing node to obtain a first DNS resolution state of the satellite edge computing node, wherein the DNS resolution request is used for DNS resolution.
[0060] In response to the DNS rule switching from an activated state to a deactivated state, a DNS resolution request is sent to the satellite edge computing node to obtain a second DNS resolution state of the satellite edge computing node.
[0061] Step 304, query the satellite edge computing node for the third state of the target rule.
[0062] As an example, when the status update request includes a first status update request, that is, instructing the satellite edge computing node to switch the DNS rule from a deactivated state to an activated state, the third state of the target rule in the satellite edge computing node can be queried.
[0063] In an embodiment of the present disclosure, in response to the DNS rule switching from a deactivated state to an activated state, a DNS resolution request is sent to the satellite edge computing node to obtain a first DNS resolution state of the satellite edge computing node, wherein the DNS resolution request is used for DNS resolution.
[0064] As another example, when the status update request also includes a second status update request, that is, when instructing the satellite edge computing node to switch the DNS rule from an activated state to a deactivated state, the third state of the target rule in the satellite edge computing node can be queried.
[0065] In an embodiment of the present disclosure, in response to the DNS rule switching from an activated state to a deactivated state, a DNS resolution request is sent to the satellite edge computing node to obtain a second DNS resolution state of the satellite edge computing node.
[0066] Step 305: Determine whether the first target function passes the function test according to the third state and the second state.
[0067] In the embodiment of the present disclosure, when the first condition is met, it is determined that the DNS service function has passed the functional test; when the first condition is not met, or the first query result indicates that there is no DNS rule, it is determined that the DNS service function has not passed the functional test.
[0068] Among them, the first condition includes: when the status update request includes a first status update request, the second state is an activated state, the third state of the DNS rule is an activated state, and the first DNS resolution state is a successful resolution; when the status update request also includes a second status update request, the second state is a deactivated state, the third state of the DNS rule is a deactivated state, and the second DNS resolution state is a failed resolution; the second query result indicates that there is no DNS rule in the satellite edge computing node, and the third DNS resolution state is a failed resolution.
[0069] In summary, the test node performs DNS service function test on the satellite edge computing node through multiple test steps, and jointly determines whether the first target function of the satellite edge computing node passes the DNS service function test according to the test results of the satellite edge computing node in multiple test steps, thereby improving the effectiveness and accuracy of the DNS service function test on the satellite edge computing node. At the same time, the test method can also perform DNS service function test without being restricted by the internal structure of the satellite edge computing node under test, and can standardize the DNS service function test in the satellite edge computing node, and effectively deal with the problems of functional fragmentation and lack of key capabilities faced in related tests.
[0070] In the embodiment of the present disclosure, when the first target function is a DNS service function, the DNS service function test of the satellite edge computing node can be implemented based on the following steps:
[0071] Step 1: The test node sends the DNS rules of the specified application to the satellite Internet edge computing platform through interface 1, and the test node activates the DNS rules through interface 1;
[0072] Step 2: The test node obtains the DNS rules of the specified application through interface 1. The test node obtains all DNS rules through interface 1.
[0073] Step 3: The test node obtains the DNS rules of the specified application through interface 2;
[0074] Step 4: The test node updates the status of the DNS rule of the specified application to activated through interface 2, and simulates the edge application to apply for DNS resolution;
[0075] Step 5: The test node updates the status of the DNS rule of the specified application to deactivated through interface 2, and simulates the edge application to apply for DNS resolution;
[0076] Step 6: The test node deletes the DNS rules of the specified edge application through interface 1, obtains the DNS rules of the specified application through interface 1, and simulates the edge application to apply for DNS resolution;
[0077] After executing this test, the expected results are as follows:
[0078] For step 1, the expected result is that the test node successfully sends the DNS rule of the specified edge application, and the status of the specified DNS rule is set to deactivated;
[0079] For step 2, the expected result is that the test node obtains the detailed content of the DNS rules of the specified edge application through interface 1, and the status is deactivated; and obtains the detailed content of all DNS rules through interface 1, and the status is deactivated;
[0080] For step 3, the expected result is that the test node obtains the detailed content of the DNS rule of the specified edge application through interface 2, and the status is deactivated;
[0081] For step 4, the expected result is that the test node obtains the DNS rule status of the specified edge application through interface 2, which is activated and the DNS resolution is normal;
[0082] For step 5, the expected result is that the test node obtains through interface 2 that the DNS rule status of the specified edge application is deactivated, and the DNS resolution fails;
[0083] For step 6, the expected result is that the test node deletes the DNS rule details of the specified edge application through interface 1, the test device cannot obtain the specified DNS rule details through interface 1, and the DNS resolution fails.
[0084] The test results are consistent with the expected results, confirming that the DNS service function of the satellite edge computing node has passed the functional test, otherwise the DNS service function of the satellite edge computing node has failed the functional test.
[0085] As an example, the first target function is a traffic rule control service function, and the target rule is a traffic control rule for a specified edge application. In the embodiment of the present disclosure, Figure 4 As shown, the method for testing the traffic rule control service function in the satellite edge node may include the following steps:
[0086] Step 401, sending target rules to the satellite edge computing node.
[0087] Among them, the target rule is the service rule of the specified edge application located on the satellite edge computing node in the test node.
[0088] In an embodiment of the present disclosure, when the first target function is a traffic rule control service function, the target rule may be a traffic control rule for a specified edge application.
[0089] In order to determine whether the satellite edge computing node has the ability to receive a list of traffic control rules for a specified edge application, in an embodiment of the present disclosure, a list of traffic control rules for a specified edge application is sent to the satellite edge computing node, and a query is made as to whether the list of traffic control rules for the specified edge application exists in the satellite edge computing node to obtain a third query result. When the third query result indicates that the list of traffic control rules for the specified edge application exists in the satellite edge computing node, the traffic control rules are sent to the satellite edge computing node.
[0090] Step 402, query whether there is a target rule in the satellite edge computing node to obtain a first query result.
[0091] Step 403: When the first query result indicates that there is a flow control rule, send a third status update request to the satellite edge computing node.
[0092] Among them, the third status update request is used to instruct the satellite edge computing node to switch the traffic control rule from a deactivated state to an activated state.
[0093] As an example, when the first query result indicates that there is a flow control rule, a third status update request is sent to the satellite edge computing node, wherein the third status update request is used to instruct the satellite edge computing node to switch the flow control rule from a deactivated state to an activated state.
[0094] As another example, when the first query result indicates that there is a traffic control rule, it is determined that the traffic rule control service function fails the function test.
[0095] In an embodiment of the present disclosure, when the status update request also includes a fourth status update request, in response to the flow control rule switching from a deactivated state to an activated state, a fourth status update request is sent to the edge computing node; wherein the fourth status update request is used to instruct the satellite edge computing node to switch the flow control rule from an activated state to a deactivated state.
[0096] Step 404, query the satellite edge computing node for the third state of the target rule.
[0097] As an example, after sending a third state update request to the edge computing node, that is, instructing the satellite edge computing node to switch the traffic control rule from a deactivated state to an activated state, the third state of the target rule in the satellite edge computing node can be queried.
[0098] As another example, in response to the traffic control rule switching from a deactivated state to an activated state, after sending a fourth state update request to the satellite edge computing node, the third state of the target rule in the satellite edge computing node can be queried.
[0099] Step 405: If the second condition is met, determine that the flow rule control service function passes the function test. The second condition includes: when the state update request includes a third state update request, the second state is an activated state, and the third state of the flow control rule is an activated state; when the state update request also includes a fourth state update request, the second state is a deactivated state, and the third state of the flow control rule is a deactivated state.
[0100] In the embodiment of the present disclosure, when multiple conditions in the second condition are met at the same time, it is determined that the traffic rule control service function passes the function test.
[0101] Step 406: When the second condition is not satisfied, or when the first query result indicates that no traffic control rule exists, determine that the traffic rule control service function has failed the function test.
[0102] In the embodiment of the present disclosure, when any of the second conditions is not met, or when the first query result indicates that there is no traffic control rule, it is determined that the traffic rule control service function has failed the function test.
[0103] In summary, the traffic rule control service function of the satellite edge computing node is tested through multiple test steps by the test node. According to the test results of the satellite edge computing node in multiple test steps, it is jointly determined whether the first target function of the satellite edge computing node passes the traffic rule control service function test. The traffic rule control service function of the satellite edge computing node can be tested accurately and effectively. At the same time, the test method can perform the traffic rule control service function test without being restricted by the internal structure of the satellite edge computing node under test, and can standardize the test of the traffic rule control service function in the satellite edge computing node, and effectively deal with the problems of functional fragmentation and lack of key capabilities faced in related tests.
[0104] In the embodiment of the present disclosure, when the first target function is the traffic rule control service function, the traffic rule control service function test of the satellite edge computing node can be implemented based on the following steps:
[0105] Step 1: The test node sends the traffic control rule list of the specified edge application to the edge computing platform through interface 1, and queries the traffic control rule list of the specified edge application through interface 2;
[0106] Step 2: The test node sends the flow control rules of the specified edge application to the satellite edge computing node, and the test device queries the specified flow control rules of the specified edge application through interface 2;
[0107] Step 3: The test node updates the status of the flow control rule of the specified edge application to activation through interface 2;
[0108] Step 4: The test node updates the status of the traffic control rule of the specified edge application to deactivated through interface 2.
[0109] After executing this test, the expected results are as follows:
[0110] For step 1, the expected result is that the test node successfully sends the flow control rule list of the specified application, and the test device queries and obtains the flow control rule list of the specified application;
[0111] For step 2, the expected result is that the test node successfully sends the specified flow control rule, and the test device queries and obtains the specified flow control rule;
[0112] For step 3, the expected result is that the test node queries and obtains that the state of the specified traffic control rule of the specified application is activated;
[0113] For step 4, the expected result is that the test node queries and obtains that the state of the specified traffic control rule of the specified application is deactivated.
[0114] If the test result is consistent with the expected result, it is determined that the traffic rule control service function of the edge computing node has passed the functional test; otherwise, it is determined that the traffic rule control service function of the edge computing node has failed the functional test.
[0115] In the embodiment of the present disclosure, the edge application termination notification subscription / unsubscription service function in the satellite edge computing node can also be functionally tested. Figure 5 The embodiments are described in detail.
[0116] Figure 5 A flowchart of another method for functional testing of a satellite edge computing node provided in an embodiment of the present disclosure.
[0117] like Figure 5 As shown, the functional testing method of the satellite edge computing node may include the following steps:
[0118] Step 501, sending a subscription request to a satellite edge computing node, and receiving a subscription response from the satellite edge computing node.
[0119] The subscription request is used to subscribe to the termination notification of the specified edge application.
[0120] In an embodiment of the present disclosure, the test node may send a subscription request to the satellite edge computing node, and receive a subscription response sent by the satellite edge computing node in response to the subscription request, wherein the subscription request is used to subscribe to the termination notification of the specified edge application.
[0121] Step 502, when the subscription response indicates that the termination notification of the specified edge application is successfully subscribed, a first subscription information query request is sent to the satellite edge computing node to obtain a first subscription query result.
[0122] The first subscription information query request is used to query first subscription information for subscribing to a termination notification of a specified edge application.
[0123] Further, when the subscription response indicates a successful subscription to the termination notification of the specified edge application, that is, when the specified edge application is terminated, the termination notification of the specified edge application sent by the satellite edge computing node can be received, and a first subscription information query request can be sent to the satellite edge computing node to obtain a first subscription query result, wherein the first subscription information query request is used to query the first subscription information of the termination notification of the specified edge application.
[0124] Step 503, when the first subscription query result indicates that the first subscription information is obtained by querying, a second subscription information query request is sent to the satellite edge computing node to obtain a second subscription query result.
[0125] The second subscription information query request includes the first subscription identification information, and the second subscription information query request is used to query the second subscription information matching the first subscription identification information in the first subscription information.
[0126] Further, when the first subscription query result indicates that the first subscription information is obtained by query, that is, when all subscription information of which nodes have subscribed to the termination notification of the specified edge application is obtained by query, a second subscription information query request is sent to the satellite edge computing node to obtain a second subscription query result, wherein the second subscription information query request includes the first subscription identification information, that is, the second subscription information matching the first subscription identification information is queried in all subscription information.
[0127] Step 504, when the second subscription query result indicates that the second subscription information is obtained by querying, a subscription information deletion request is sent to the satellite edge computing node, and a third subscription information query request is sent to the satellite edge computing node to obtain a third subscription query result.
[0128] The subscription information deletion request and the third subscription information query request may include the second subscription identification information.
[0129] In an embodiment of the present disclosure, when the second subscription query result indicates that the second subscription information is obtained by querying, a subscription information deletion request may be sent to the satellite edge computing node, wherein the subscription information deletion request is used to delete the second subscription information. For example, the subscription information deletion request may include the second subscription identification information, so that the satellite edge computing node deletes the second subscription information matching the second subscription identification information.
[0130] Further, a third subscription information query request is sent to the satellite edge computing node to obtain a third subscription query result, wherein the third subscription query result includes the second subscription identification information.
[0131] Step 505: When the third subscription query result indicates that the query does not obtain the second subscription information, it is determined that the edge application termination notification subscription / unsubscription service function of the edge computing node passes the functional test.
[0132] As an example, when the third subscription query result indicates that the query did not obtain the second subscription information that matches the second subscription identification information in the first subscription information, it is determined that the edge application termination notification subscription / unsubscription service function of the edge computing node has passed the functional test.
[0133] As another example, when at least one of the following is met, it is determined that the edge application termination notification subscription / unsubscription service function fails the functional test:
[0134] The subscription response indicates that the termination notification of the specified edge application was not successfully subscribed;
[0135] The first subscription query result indicates that the query did not obtain the first subscription information;
[0136] The second subscription query result indicates that the query did not obtain the second subscription information;
[0137] The third subscription query result indicates that the second subscription information is obtained by querying.
[0138] In summary, by sending a subscription request to a satellite edge computing node and receiving a subscription response from the satellite edge computing node; when the subscription response indicates that the termination notification of the specified edge application is successfully subscribed, sending a first subscription information query request to the satellite edge computing node to obtain a first subscription query result; when the first subscription query result indicates that the first subscription information is obtained by querying, sending a second subscription information query request to the satellite edge computing node to obtain a second subscription query result; when the second subscription query result indicates that the second subscription information is obtained by querying, sending a subscription information deletion request to the satellite edge computing node, and sending a third subscription information query request to the satellite edge computing node to obtain a third subscription query result; when the third subscription query result indicates that the second subscription information is not obtained by querying, determining that the edge application termination notification subscription / unsubscription service function of the edge computing node passes the functional test, thereby, the test node tests the edge application termination notification subscription / unsubscription service function of the satellite edge computing node through multiple test steps, and jointly determines whether the edge application termination notification subscription / unsubscription service function of the satellite edge computing node passes the functional test according to the test results of the satellite edge computing node in multiple test steps, thereby improving the effectiveness and accuracy of the edge application termination notification subscription / unsubscription service function test of the satellite edge computing node.
[0139] In the embodiment of the present disclosure, the functional test of the edge application termination notification subscription / unsubscription service function of the satellite edge computing node can also be implemented based on the following steps:
[0140] Step 1: The test node subscribes to the termination notification of the specified application to the edge computing node;
[0141] Step 2: The test node sends a subscription information query request for the specified application termination notification to the edge computing node through interface 2;
[0142] Step 3: The test node queries the subscription information of the specified application termination notification based on the subscription ID through interface 2;
[0143] Step 4: The test node deletes the subscription information of the specified application termination notification based on the subscription ID through interface 2, and queries the subscription information of the specified application termination notification based on the subscription ID.
[0144] After executing this test, the expected results are as follows:
[0145] For step 1, the expected result is that the subscriber successfully subscribes to the termination notification of the specified application; once the specified application is terminated, the subscriber receives the relevant termination notification;
[0146] For step 2, the expected result is to query all subscription entries for the termination notification of the specified application and check which applications have subscribed to the termination notification of the edge computing platform;
[0147] For step 3, the expected result is to query and obtain the specified subscription information of the termination notification of the specified application;
[0148] For step 4, the expected result is that the specified subscription information is deleted successfully, and the specified subscription information of the termination notification of the specified application cannot be found.
[0149] The test results should be consistent with the expected results, determining that the edge application termination notification subscription / unsubscription service function of the edge computing node has passed the functional test, otherwise it is determined that the edge application termination notification subscription / unsubscription service function of the edge computing node has failed the functional test.
[0150] In the embodiment of the present disclosure, the application termination service function in the satellite edge computing node can also be functionally tested. Figure 6 The embodiments are described in detail.
[0151] Figure 6 A flowchart of another method for functional testing of a satellite edge computing node provided in an embodiment of the present disclosure.
[0152] like Figure 6 As shown, the functional testing method of the satellite edge computing node may include the following steps:
[0153] Step 601, sending an application termination request to a satellite edge computing node, and receiving an application termination response from the satellite edge computing node.
[0154] The application termination request is used to terminate a specified edge application.
[0155] In an embodiment of the present disclosure, the test node may send an application termination request to the satellite edge computing node through an application termination interface, wherein the application termination request is used to terminate a specified edge application, and receive an application termination response sent by the satellite edge computing node in response to the application termination request.
[0156] Step 602, when the application termination response indicates that the specified edge application is in an application termination state, an application query request is sent to the satellite edge computing node to obtain an application query result.
[0157] The application query request is used to query the application instance information, application traffic rules, and DNS rule status information of the specified edge application.
[0158] Furthermore, when the application termination response indicates that the specified edge application is in an application termination state, an application query request may be sent to the satellite edge computing node to query the application instance information, application traffic rules, and DNS rule status information of the specified edge application.
[0159] Step 603, when the application query result indicates that the application instance information, application traffic rules and DNS rules of the specified edge application are all in an unavailable state, it is determined that the application termination service function of the satellite edge computing node has passed the functional test.
[0160] As an example, when the application query result indicates that the application instance information, application traffic rules and DNS rules of the specified edge application are all in an unavailable state, it is determined that the application termination service function of the satellite edge computing node has passed the functional test.
[0161] As another example, when at least one of the following conditions is met, it is determined that the application termination service function fails the function test:
[0162] The application termination response indicates that the specified edge application is not in an application termination state;
[0163] The application query result indicates that the application instance information of the specified edge application is in an available state;
[0164] The application query result indicates that the application traffic rule of the specified edge application is in an available state;
[0165] The application query result indicates that the DNS rule of the specified edge application is available.
[0166] In summary, an application termination request is sent to a satellite edge computing node, and an application termination response is received from the satellite edge computing node; when the application termination response indicates that the specified edge application is in an application termination state, an application query request is sent to the satellite edge computing node to obtain an application query result; when the application query result indicates that the application instance information, application traffic rules and DNS rules of the specified edge application are all in an unavailable state, it is determined that the application termination service function of the satellite edge computing node has passed the functional test. As a result, the test node performs a functional test on the application termination service function of the satellite edge computing node through multiple test dimensions, and jointly determines whether the application termination service function of the satellite edge computing node has passed the functional test based on the test results of the satellite edge computing node in multiple test dimensions, thereby improving the functional test accuracy of the service function of the satellite edge computing node.
[0167] In the embodiment of the present disclosure, the functional test of the application termination service function of the satellite edge computing node can also be implemented based on the following steps:
[0168] Step 1: The test device initiates an application termination request to an edge computing application in the edge computing platform through the termination application interface of interface 2;
[0169] Step 2: The edge computing platform responds to the query instruction (application query request) to query the application instance information, application traffic rules, and DNS rules.
[0170] After executing this test, the expected results are as follows:
[0171] For step 1, the expected result is that the interface call is successful and the application is terminated;
[0172] For step 2, the expected result is that the application instance information, application traffic rules, and DNS rules are all unavailable.
[0173] The test results should be consistent with the expected results, confirming that the application termination service function of the edge computing node has passed the functional test, otherwise it is determined that the application termination service function of the edge computing node has failed the functional test.
[0174] In the embodiment of the present disclosure, the location service function in the satellite edge computing node can also be tested. Figure 7 The embodiments are described in detail.
[0175] Figure 7 A flowchart of another method for functional testing of a satellite edge computing node provided in an embodiment of the present disclosure.
[0176] like Figure 7 As shown, the functional testing method of the satellite edge computing node may include the following steps:
[0177] Step 701, sending a location query request to a satellite edge computing node, and receiving a location query response from the satellite edge computing node.
[0178] The location query request includes an International Mobile Subscriber Identity (IMSI for short), and the location query request is used to query the location information of a target terminal that matches the IMSI.
[0179] In an embodiment of the present disclosure, the test node may send a location query request to a satellite edge computing node, wherein the location query request includes IMSI, and the location query request is used to query the location information of a target terminal matching the IMSI, and then receive a location query response sent by the satellite edge computing node in response to the location query request.
[0180] Step 702: When the location query response indicates that the location information of the target terminal is obtained by querying, a subscription terminal location request is sent to the satellite edge computing node, and a subscription terminal location response is received from the satellite edge computing node.
[0181] The terminal location subscription request includes the IMSI, and the terminal location subscription request is used to periodically subscribe to the location information of the target terminal matching the IMSI.
[0182] As an example, when the location query response indicates that the location information of the target terminal is obtained by querying, a subscription terminal location request can be sent to the satellite edge computing node, and the subscription terminal location request includes IMSI. The subscription terminal location request is used to periodically subscribe to the location information of the target terminal matching the IMSI, and then, the satellite edge computing node can receive the response sent by the subscription terminal location request.
[0183] As another example, when the location query response indicates that the query fails to obtain the location information of the target terminal, it is determined that the location service function fails the function test.
[0184] Step 703: When the subscription terminal location response indicates successful periodic subscription to the location information of the target terminal, a terminal location unsubscription request is sent to the satellite edge computing node, and a terminal location unsubscription response is received from the satellite edge computing node.
[0185] The terminal location unsubscription request includes third subscription identification information, and the third subscription identification information is used to indicate the cancellation of subscription information for periodically subscribing to the location information of the target terminal.
[0186] As an example, when the subscription terminal location response indicates that the location information of the periodically positioned target terminal has been received, a cancellation terminal location request is sent to the satellite edge computing node, and a cancellation terminal location response is received from the satellite edge computing node in response to the cancellation terminal location request.
[0187] Step 704, when the unsubscribe terminal location response indicates successful unsubscription of the target terminal's location information, it is determined that the location service function of the satellite edge computing node passes the functional test.
[0188] As an example, when the unsubscribe terminal location response indicates successful unsubscription of the location information of the target terminal, it is determined that the location service function of the satellite edge computing node passes the functional test.
[0189] As another example, it is determined that the location service function has not passed the functional test when at least one of the following is met: the location query response indicates that the location information of the target terminal has not been queried, the subscription terminal location response indicates that the periodic subscription to the location information of the target terminal has not been successfully completed, and the cancellation of the subscription terminal location indicates that the periodic subscription to the location information of the target terminal has not been successfully completed.
[0190] In summary, a location query request is sent to a satellite edge computing node, and a location query response is received from the satellite edge computing node; when the location query response indicates that the location information of the target terminal is obtained by querying, a subscription terminal location request is sent to the satellite edge computing node, and a subscription terminal location response is received from the satellite edge computing node; when the subscription terminal location response indicates that the location information of the periodically positioned target terminal is received, a cancellation terminal location request is sent to the satellite edge computing node, and a cancellation terminal location response is received from the satellite edge computing node; when the cancellation terminal location response indicates that the periodic subscription to the location information of the target terminal is successfully cancelled, it is determined that the location service function of the satellite edge computing node has passed the functional test. Thus, the test node performs a functional test on the location service function of the satellite edge computing node through multiple test dimensions, and jointly determines whether the location service function of the satellite edge computing node has passed the functional test based on the test results of the satellite edge computing node in multiple test dimensions, thereby improving the functional test accuracy of the location service function of the satellite edge computing node.
[0191] In the embodiment of the present disclosure, the functional test of the location service function of the satellite edge computing node can also be implemented based on the following steps:
[0192] Step 1: The test node calls the location service application programming interface (API) of the edge computing node through interface 1 to query the current location information of the specified terminal based on the IMSI;
[0193] Step 2: The test node calls the location service API of the edge computing node, and the test device sends a periodic subscription user location request message based on the IMSI;
[0194] Step 3: Call the edge computing platform location service API and send a request message to cancel the user location subscription with the subscription ID.
[0195] After executing this test, the expected results are as follows:
[0196] For step 1, the expected result is that the test node receives the location service API response returned by the satellite edge computing node, which carries the location information of the specified terminal;
[0197] For step 2, the expected result is to receive a periodic subscription response message returned by the satellite edge computing node, which carries the subscription ID, and then receive a periodic positioning result notification message returned by the edge computing platform, which carries the terminal location information;
[0198] For step 3, the expected result is that the periodic subscription cancellation response message returned by the satellite edge computing node is received, and the edge computing platform no longer returns the periodic positioning result notification message.
[0199] In the disclosed embodiment, the reliability of the satellite edge computing node against single event upset can also be tested. Figure 8 The embodiments are described in detail.
[0200] Figure 8 A flowchart of another method for functional testing of a satellite edge computing node provided in an embodiment of the present disclosure.
[0201] like Figure 8 As shown, the functional testing method of the satellite edge computing node may include the following steps:
[0202] Step 801, sending data bit flip fault data to the satellite edge computing node, so that the satellite edge computing node runs the data bit flip fault data to obtain an operation result.
[0203] In an embodiment of the present disclosure, data bit flip fault data is sent to a satellite edge computing node, so that the satellite edge computing node runs the data bit flip fault data, and the running result when the edge computing node runs the data bit flip fault data is recorded.
[0204] Step 802, based on the difference between the operating result and the expected result, determine whether the single-particle upset reliability of the satellite edge computing node passes the functional test.
[0205] As an example, when the difference between the running result and the expected result is less than the set threshold, it is determined that the single-particle upset reliability of the satellite edge computing node has passed the functional test.
[0206] As another example, if the difference between the running result and the expected result is greater than or equal to the set threshold, it is determined that the anti-single-event upset reliability of the satellite edge computing node has failed the functional test.
[0207] In summary, by sending data bit flip fault data to the satellite edge computing node, the satellite edge computing node is made to run the data bit flip fault data to obtain the running result; according to the difference between the running result and the expected result, it is determined whether the anti-single particle flip reliability of the satellite edge computing node passes the functional test, thereby effectively testing the anti-single particle flip reliability in the satellite edge computing node.
[0208] In the disclosed embodiment, the single event upset reliability test of the satellite edge computing node can also be implemented based on the following steps:
[0209] Step 1: The test node injects data bit flip fault into the key data of the satellite edge computing node;
[0210] Step 2: Test the functions and performance of the satellite edge computing nodes, and record the impact data on the functions and performance of the satellite edge computing nodes when the data bits are flipped;
[0211] Step 3: Analyze the influencing data such as functions and performance according to the preset evaluation criteria to obtain the single-particle upset reliability evaluation results of the satellite edge computing node.
[0212] In order to implement the above embodiment, the present disclosure also proposes a functional testing device for a satellite edge computing node. It should be noted that the functional testing device for a satellite edge computing node in the embodiment of the present disclosure can be applied to a test node.
[0213] Fig. 9 A schematic diagram of the structure of a functional testing device for a satellite edge computing node provided in an embodiment of the present disclosure.
[0214] like Fig. 9 As shown, the functional testing device 900 of the satellite edge computing node includes: a first sending module 910, a first query module 920, a second sending module 930, a second query module 940 and a determination module 950.
[0215] Among them, the first sending module 910 is used to send the target rule to the satellite edge computing node, wherein the target rule is the service rule of the specified edge application located on the satellite edge computing node in the test node; the first query module 920 is used to query whether the target rule exists in the satellite edge computing node to obtain a first query result; the second sending module 930 is used to send a status update request to the satellite edge computing node based on the first state of the target rule in the satellite edge computing node when the first query result indicates the existence of the target rule; wherein the status update request is used to instruct the satellite edge computing node to switch the target rule from the first state to the second state; the second query module 940 is used to query the third state of the target rule in the satellite edge computing node; the determination module 950 is used to determine whether the first target function passes the functional test based on the third state and the second state.
[0216] As a possible implementation method of an embodiment of the present disclosure, the first target function is a domain name system DNS service function, the target rule is the DNS rule of the specified edge application, the status update request includes a first status update request, and the second sending module 930 is used to send a first status update request to the edge computing node in response to the DNS rule being in a deactivated state when the first query result indicates the existence of the DNS rule; wherein the first status update request is used to instruct the satellite edge computing node to switch the DNS rule from a deactivated state to an activated state.
[0217] As a possible implementation method of an embodiment of the present disclosure, the status update request also includes a second status update request, and the second sending module 930 is also used to send a second status update request to the edge computing node in response to the DNS rule switching from a deactivated state to an activated state; wherein the second status update request is used to instruct the satellite edge computing node to switch the DNS rule from an activated state to a deactivated state.
[0218] As a possible implementation manner of the embodiment of the present disclosure, the functional testing device 900 of the satellite edge computing node also includes: a third sending module.
[0219] Among them, the third sending module is used to send a DNS resolution request to the satellite edge computing node in response to the DNS rule switching from a deactivated state to an activated state to obtain a first DNS resolution state of the satellite edge computing node, wherein the DNS resolution request is used for DNS resolution.
[0220] As a possible implementation manner of the embodiment of the present disclosure, the functional testing device 900 of the satellite edge computing node also includes: a fourth sending module.
[0221] Among them, the fourth sending module is used to send a DNS resolution request to the satellite edge computing node in response to the DNS rule switching from an activated state to a deactivated state to obtain a second DNS resolution state of the satellite edge computing node; send a rule deletion request to the satellite edge computing node; wherein the rule deletion request is used to instruct the satellite edge computing node to delete the DNS rule; in response to receiving a rule deletion response from the satellite edge computing node, query whether the DNS rule exists in the satellite edge computing node to obtain a second query result; send a DNS resolution request to the satellite edge computing node to obtain a third DNS resolution state of the satellite edge computing node, wherein the DNS resolution request is used for DNS resolution.
[0222] As a possible implementation method of an embodiment of the present disclosure, a determination module 950 is used to determine that the DNS service function has passed the functional test when a first condition is met; and to determine that the DNS service function has not passed the functional test when the first condition is not met, or the first query result indicates that there is no DNS rule; wherein the first condition includes: when the status update request includes a first status update request, the second state is an activated state, the third state of the DNS rule is an activated state, and the first DNS resolution state is a successful resolution; when the status update request also includes a second status update request, the second state is a deactivated state, the third state of the DNS rule is a deactivated state, and the second DNS resolution state is a failed resolution; the second query result indicates that there is no DNS rule in the satellite edge computing node, and the third DNS resolution state is a failed resolution.
[0223] As a possible implementation method of an embodiment of the present disclosure, the first target function is a traffic rule control service function, the target rule is a traffic control rule for a specified edge application, the status update request includes a third status update request, and the second sending module 930 is used to send a third status update request to the edge computing node when the first query result indicates the existence of a traffic control rule; wherein the third status update request is used to instruct the satellite edge computing node to switch the traffic control rule from a deactivated state to an activated state.
[0224] As a possible implementation manner of the embodiment of the present disclosure, the status update request also includes a fourth status update request, and the functional testing device 900 of the satellite edge computing node also includes: a fourth sending module.
[0225] Among them, the fourth sending module is used to send a fourth state update request to the satellite edge computing node in response to the flow control rule switching from a deactivated state to an activated state; wherein the fourth state update request is used to instruct the satellite edge computing node to switch the flow control rule from an activated state to a deactivated state.
[0226] As a possible implementation method of an embodiment of the present disclosure, the first sending module 910 is used to send the list of traffic control rules of the specified edge application to the satellite edge computing node; query whether the list of traffic control rules of the specified edge application exists in the satellite edge computing node to obtain a third query result; when the third query result indicates that the list of traffic control rules of the specified edge application exists in the satellite edge computing node, send the traffic control rules to the satellite edge computing node.
[0227] As a possible implementation method of the embodiment of the present disclosure, the determination module 950 is used to determine that the flow rule control service function has passed the functional test when the second condition is met; when the second condition is not met, or when the first query result indicates that the flow control rule does not exist, determine that the flow rule control service function has not passed the functional test; wherein the second condition includes: when the status update request includes the third status update request, the second state is the activated state, and the third state of the flow control rule is the activated state; when the status update request also includes the fourth status update request, the second state is the deactivated state, and the third state of the flow control rule is the deactivated state.
[0228] As a possible implementation manner of the embodiment of the present disclosure, the functional testing device 900 of the satellite edge computing node also includes: a fifth sending module.
[0229] Among them, the fifth sending module is used to send a subscription request to the satellite edge computing node and receive a subscription response from the satellite edge computing node; wherein the subscription request is used to subscribe to the termination notification of the specified edge application; when the subscription response indicates that the termination notification of the specified edge application is successfully subscribed, a first subscription information query request is sent to the satellite edge computing node to obtain a first subscription query result; wherein the first subscription information query request is used to query the first subscription information for subscribing to the termination notification of the specified edge application; when the first subscription query result indicates that the first subscription information is obtained by querying, a second subscription information query request is sent to the satellite edge computing node to obtain a second subscription query result, wherein the second subscription information query request includes the first subscription identification information, and the second subscription information query request is used to query the second subscription information matching the first subscription identification information in the first subscription information; when the second subscription query result indicates that the second subscription information is obtained by querying, a subscription information deletion request is sent to the satellite edge computing node, and a third subscription information query request is sent to the satellite edge computing node to obtain a third subscription query result, wherein the subscription information deletion request is used to delete the second subscription information.
[0230] As a possible implementation method of an embodiment of the present disclosure, the determination module 950 is also used to determine whether the edge application termination notification subscription / unsubscription service function of the edge computing node has passed the functional test when the third subscription query result indicates that the query did not obtain the second subscription information.
[0231] As a possible implementation method of an embodiment of the present disclosure, the determination module 950 is also used to determine that the edge application termination notification subscription / unsubscription service function has not passed the functional test when at least one of the following items is met: the subscription response indicates that the termination notification of the specified edge application has not been successfully subscribed; the first subscription query result indicates that the query did not obtain the first subscription information; the second subscription query result indicates that the query did not obtain the second subscription information; the third subscription query result indicates that the query obtained the second subscription information.
[0232] As a possible implementation manner of the embodiment of the present disclosure, the functional testing device 900 of the satellite edge computing node also includes: a sixth sending module.
[0233] Among them, the sixth sending module is used to send an application termination request to the satellite edge computing node and receive an application termination response from the satellite edge computing node, wherein the application termination request is used to terminate the specified edge application; when the application termination response indicates that the specified edge application is in an application termination state, an application query request is sent to the satellite edge computing node to obtain an application query result, wherein the application query request is used to query the application instance information, application traffic rules and DNS rule status information of the specified edge application.
[0234] As a possible implementation method of the embodiment of the present disclosure, the determination module 950 is also used to: when the application query result indicates that the application instance information, application traffic rules and DNS rules of the specified edge application are all in an unavailable state, determine that the application termination service function of the satellite edge computing node has passed the functional test.
[0235] As a possible implementation method of the embodiment of the present disclosure, the determination module 950 is also used to: determine that the application termination service function fails the functional test when at least one of the following items is met; the application termination response indicates that the specified edge application is not in the application termination state; the application query result indicates that the application instance information of the specified edge application is in an available state; the application query result indicates that the application traffic rule of the specified edge application is in an available state; the application query result indicates that the DNS rule of the specified edge application is in an available state.
[0236] As a possible implementation manner of the embodiment of the present disclosure, the functional testing device 900 of the satellite edge computing node also includes: a seventh sending module.
[0237] Among them, the seventh sending module is used to send a location query request to the satellite edge computing node and receive a location query response from the satellite edge computing node, wherein the location query request includes the international mobile user identity code IMSI, and the location query request is used to query the location information of the target terminal matching the IMSI; when the location query response indicates that the location information of the target terminal is obtained by querying, a subscription terminal location request is sent to the satellite edge computing node, and a subscription terminal location response is received from the satellite edge computing node; wherein the subscription terminal location request includes IMSI, and the subscription terminal location request is used to periodically subscribe to the location information of the target terminal matching the IMSI; when the subscription terminal location response indicates that the location information of the target terminal is successfully periodically subscribed, a cancellation terminal location request is sent to the satellite edge computing node, and a cancellation terminal location response is received from the satellite edge computing node; wherein the cancellation terminal location request includes third subscription identification information, and the third subscription identification information is used to indicate the cancellation of periodic subscription to the location information of the target terminal.
[0238] As a possible implementation method of the embodiment of the present disclosure, the determination module 950 is also used to: when the unsubscribe terminal location response indicates successful cancellation of the periodic subscription to the location information of the target terminal, determine that the location service function of the satellite edge computing node has passed the functional test.
[0239] As a possible implementation method of the embodiment of the present disclosure, the determination module 950 is also used to: determine that the location service function has not passed the functional test when at least one of the following items is met; the location query response indicates that the location information of the target terminal has not been queried; the subscription terminal location response indicates that the periodic subscription to the location information of the target terminal has not been successfully completed; and the cancellation of the subscription terminal location indicates that the periodic subscription to the location information of the target terminal has not been successfully completed.
[0240] As a possible implementation manner of the embodiment of the present disclosure, the functional testing device 900 of the satellite edge computing node also includes: an eighth sending module.
[0241] Among them, the eighth sending module is used to send data bit flip fault data to the satellite edge computing node, so that the satellite edge computing node runs the data bit flip fault data to obtain the running result; the determination module 950 is also used to: determine whether the anti-single-particle flip reliability of the satellite edge computing node passes the functional test based on the difference between the running result and the expected result.
[0242] The functional testing device of the satellite edge computing node of the disclosed embodiment is applied to the test node, by sending a target rule to the satellite edge computing node, wherein the target rule is a service rule of a designated edge application corresponding to the satellite edge computing node in the test node; querying whether the target rule exists in the satellite edge computing node to obtain a first query result; when the first query result indicates that the target rule exists, based on the first state of the target rule in the satellite edge computing node, sending a state update request to the satellite edge computing node; wherein the state update request is used to instruct the satellite edge computing node to switch the target rule from the first state to the second state; querying the third state of the target rule in the satellite edge computing node; and determining whether the first target function passes the functional test based on the third state and the second state. Thus, the test node performs a first target function test on the satellite edge computing node through multiple test steps, and jointly determines whether the first target function of the satellite edge computing node passes the functional test based on the test results of the satellite edge computing node in multiple test steps, thereby improving the effectiveness and accuracy of the service function test of the satellite edge computing node.
[0243] It should be noted that the aforementioned explanation of the embodiment of the functional testing method for satellite edge computing nodes is also applicable to the functional testing device for the satellite edge computing nodes of this embodiment, and will not be repeated here.
[0244] It should be noted that the modules in the above-mentioned test device are divided according to the execution actions. In any embodiment of the present disclosure, the test device can also be divided according to the test function. For example, Fig.10 As shown, the functional testing device 1000 of the satellite edge computing node may include: an instruction unit 1010, a monitoring unit 1020 and a logic unit 1030.
[0245] Among them, the instruction unit 1010 is used to send test data and instructions. When the test device replaces other test unit modules, the instruction unit must have the ability to issue orchestration management instructions, client request instructions, edge computing application requests and responses to simulate other test modules. The instruction unit also has the ability to edit test instructions and data into test template data. According to different embodiments, different test instructions and data sets are automatically issued on time; the monitoring unit 1020 is a module for collecting the status, response, and request information of the satellite edge computing node, and monitoring the pre-set observation points during the test process. The monitoring unit can collect and monitor the behavior of the satellite Internet edge computing platform under test; monitor the pre-set test behavior, including timing and looping; the logic unit 1030 is used for test process logic control. The module that judges various branches and loops in the test process, processes and judges the behavior in the test process, and arranges and controls the test cases and test steps to realize the automation of the test process.
[0246] In order to implement the above embodiments, the present application also proposes an electronic device, such as Fig.11 As shown, Fig.11 It is a block diagram of an electronic device for functional testing of a satellite edge computing node according to an exemplary embodiment.
[0247] like Fig.11 As shown, the electronic device 1100 includes:
[0248] The memory 1110 and the processor 1120, a bus 1130 connecting different components (including the memory 1110 and the processor 1120), the memory 1110 stores a computer program, and when the processor 1120 executes the program, the functional testing method of the satellite edge computing node described in the embodiment of the present disclosure is implemented.
[0249] Bus 1130 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0250] The electronic device 1100 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 1100, including volatile and non-volatile media, removable and non-removable media.
[0251] The memory 1110 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 1140 and / or cache memory 1150. The electronic device 1100 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 1060 may be used to read and write non-removable, non-volatile magnetic media ( Fig.11 not shown, usually called a "hard drive"). Although Fig.11 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 1130 via one or more data medium interfaces. The memory 1110 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.
[0252] A program / utility 1180 having a set (at least one) of program modules 1170 may be stored, for example, in the memory 1110, such program modules 1170 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 1170 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0253] The electronic device 1100 may also communicate with one or more external devices 1190 (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device 1100, and / or any device that enables the electronic device 1100 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 1192. Furthermore, the electronic device 1100 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 1193. Fig.11 As shown, the network adapter 1193 communicates with other modules of the electronic device 1100 via the bus 1130. It should be understood that although Fig.11 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0254] The processor 1120 executes various functional applications and data processing by running the programs stored in the memory 1110 .
[0255] It should be noted that the implementation process and technical principles of the electronic device of this embodiment refer to the aforementioned explanation of the functional test of the satellite edge computing node of the embodiment of the present disclosure, and will not be repeated here.
[0256] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the functional testing method of the satellite edge computing node described in the above embodiments is implemented.
[0257] In order to implement the above embodiments, the present disclosure also provides a computer program product, which, when an instruction processor in the computer program product is executed, executes the functional testing method of the satellite edge computing node described in the above embodiments.
[0258] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0259] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0260] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A functional testing method for a satellite edge computing node, characterized in that: Applied to test nodes, including: Sending a target rule to a satellite edge computing node, wherein the target rule is a service rule of a designated edge application in the test node located on the satellite edge computing node; Querying whether the target rule exists in the satellite edge computing node to obtain a first query result; In a case where the first query result indicates that the target rule exists, based on the first state of the target rule in the satellite edge computing node, sending a state update request to the satellite edge computing node; wherein the state update request is used to instruct the satellite edge computing node to switch the target rule from the first state to the second state; Querying the satellite edge computing node for a third state of the target rule; According to the third state and the second state, it is determined whether the first target function passes the function test.
2. The method according to claim 1, characterized in that The first target function is a domain name system DNS service function, the target rule is a DNS rule of the specified edge application, the status update request includes a first status update request, When the first query result indicates that the target rule exists, based on the first state of the target rule in the satellite edge computing node, sending a state update request to the satellite edge computing node includes: In a case where the first query result indicates that the DNS rule exists, in response to the DNS rule being in a deactivated state, sending a first status update request to the edge computing node; The first status update request is used to instruct the satellite edge computing node to switch the DNS rule from a deactivated state to an activated state.
3. The method according to claim 2, characterized in that The status update request further includes a second status update request, and the method further includes: In response to the DNS rule being switched from a deactivated state to an activated state, sending a second state update request to the edge computing node; The second status update request is used to instruct the satellite edge computing node to switch the DNS rule from an activated state to a deactivated state.
4. The method according to claim 3, characterized in that: Before sending the second status update request to the edge computing node, the method further includes: In response to the DNS rule switching from a deactivated state to an activated state, a DNS resolution request is sent to the satellite edge computing node to obtain a first DNS resolution state of the satellite edge computing node, wherein the DNS resolution request is used for DNS resolution.
5. The method according to claim 3, characterized in that: After sending the second status update request to the edge computing node, the method further includes: In response to the DNS rule being switched from an activated state to a deactivated state, sending a DNS resolution request to the satellite edge computing node to obtain a second DNS resolution state of the satellite edge computing node; Sending a rule deletion request to the satellite edge computing node; wherein the rule deletion request is used to instruct the satellite edge computing node to delete the DNS rule; In response to receiving a rule deletion response from the satellite edge computing node, querying the satellite edge computing node whether the DNS rule exists to obtain a second query result; A DNS resolution request is sent to the satellite edge computing node to obtain a third DNS resolution state of the satellite edge computing node, wherein the DNS resolution request is used for DNS resolution.
6. The method according to claim 5, characterized in that The determining, according to the third state and the second state, whether the first target function passes the function test includes: If the first condition is met, determining that the DNS service function passes the function test; If the first condition is not met, or the first query result indicates that the DNS rule does not exist, determining that the DNS service function fails the function test; The first condition includes: When the status update request includes a first status update request, the second status is an activated status, the third status of the DNS rule is an activated status, and the first DNS resolution status is a successful resolution; When the status update request further includes a second status update request, the second status is a deactivated status, the third status of the DNS rule is a deactivated status, and the second DNS resolution status is resolution failure; The second query result indicates that the DNS rule does not exist in the satellite edge computing node, and the third DNS resolution status is resolution failure.
7. The method according to claim 1, characterized in that The first target function is a traffic rule control service function, the target rule is a traffic control rule of the specified edge application, the status update request includes a third status update request, When the first query result indicates that the target rule exists, based on the first state of the target rule in the satellite edge computing node, sending a state update request to the edge computing node includes: When the first query result indicates that the traffic control rule exists, sending a third status update request to the edge computing node; The third status update request is used to instruct the satellite edge computing node to switch the traffic control rule from a deactivated state to an activated state.
8. The method according to claim 7, characterized in that The status update request further includes a fourth status update request, and the method further includes: In response to the flow control rule being switched from a deactivated state to an activated state, sending a fourth state update request to the satellite edge computing node; The fourth status update request is used to instruct the satellite edge computing node to switch the traffic control rule from an activated state to a deactivated state.
9. The method according to claim 7, characterized in that: The sending of the target rule to the satellite edge computing node includes: Sending a flow control rule list of the specified edge application to the satellite edge computing node; Querying whether there is a traffic control rule list of the specified edge application in the satellite edge computing node to obtain a third query result; When the third query result indicates that the satellite edge computing node has a traffic control rule list for the specified edge application, the traffic control rule is sent to the satellite edge computing node.
10. The method according to claim 9, characterized in that The determining, according to the third state and the second state, whether the first target function passes the function test includes: In the case where the second condition is met, determining that the flow rule control service function passes the function test; In the case where the second condition is not satisfied, or the first query result indicates that the flow control rule does not exist, determining that the flow rule control service function fails the function test; The second condition includes: When the state update request includes the third state update request, the second state is an activated state, and the third state of the flow control rule is an activated state; When the state update request further includes the fourth state update request, the second state is a deactivated state, and the third state of the flow control rule is a deactivated state.
11. The method according to any one of claims 1 to 10, characterized in that The method further comprises: Sending a subscription request to the satellite edge computing node, and receiving a subscription response from the satellite edge computing node; wherein the subscription request is used to subscribe to a termination notification of the specified edge application; In the case where the subscription response indicates that the termination notification of the specified edge application is successfully subscribed, a first subscription information query request is sent to the satellite edge computing node to obtain a first subscription query result; wherein the first subscription information query request is used to query the first subscription information for subscribing to the termination notification of the specified edge application; In the case where the first subscription query result indicates that the first subscription information is obtained by querying, sending a second subscription information query request to the satellite edge computing node to obtain a second subscription query result, wherein the second subscription information query request includes the first subscription identification information, and the second subscription information query request is used to query the first subscription information for second subscription information that matches the first subscription identification information; In the case where the second subscription query result indicates that the second subscription information is obtained by querying, a subscription information deletion request is sent to the satellite edge computing node, and a third subscription information query request is sent to the satellite edge computing node to obtain a third subscription query result, wherein the subscription information deletion request is used to delete the second subscription information.
12. The method according to claim 11, characterized in that The method further comprises: When the third subscription query result indicates that the second subscription information is not obtained by the query, it is determined that the edge application termination notification subscription / unsubscription service function of the edge computing node passes the functional test.
13. The method according to claim 12, characterized in that The method further comprises: If at least one of the following conditions is met, it is determined that the edge application termination notification subscription / unsubscription service function fails the function test: The subscription response indicates that the termination notification of the specified edge application was not successfully subscribed; The first subscription query result indicates that the query did not obtain the first subscription information; The second subscription query result indicates that the query did not obtain the second subscription information; The third subscription query result indicates that the second subscription information is obtained by querying.
14. The method according to any one of claims 1 to 10, characterized in that The method further comprises: Sending an application termination request to the satellite edge computing node, and receiving an application termination response from the satellite edge computing node, wherein the application termination request is used to terminate a specified edge application; When the application termination response indicates that the specified edge application is in an application termination state, an application query request is sent to the satellite edge computing node to obtain an application query result, wherein the application query request is used to query the application instance information, application traffic rules and DNS rule status information of the specified edge application.
15. The method according to claim 14, characterized in that The method further comprises: When the application query result indicates that the application instance information, application traffic rules and DNS rules of the specified edge application are all in an unavailable state, it is determined that the application termination service function of the satellite edge computing node passes the functional test.
16. The method according to claim 15, characterized in that The method further comprises: When at least one of the following conditions is met, it is determined that the application termination service function fails the function test: The application termination response indicates that the specified edge application is not in an application termination state; The application query result indicates that the application instance information of the specified edge application is in an available state; The application query result indicates that the application traffic rule of the specified edge application is in an available state; The application query result indicates that the DNS rule of the specified edge application is in an available state.
17. The method according to any one of claims 1 to 10, characterized in that The method further comprises: Sending a location query request to the satellite edge computing node, and receiving a location query response from the satellite edge computing node, wherein the location query request includes an international mobile subscriber identity IMSI, and the location query request is used to query the location information of a target terminal matching the IMSI; When the location query response indicates that the location information of the target terminal is obtained by querying, a subscription terminal location request is sent to the satellite edge computing node, and a subscription terminal location response is received from the satellite edge computing node; wherein the subscription terminal location request includes the IMSI, and the subscription terminal location request is used to periodically subscribe to the location information of the target terminal matching the IMSI. When the subscription terminal location response indicates successful periodic subscription to the location information of the target terminal, a terminal location cancellation request is sent to the satellite edge computing node, and a terminal location cancellation response is received from the satellite edge computing node; wherein the terminal location cancellation request includes third subscription identification information, and the third subscription identification information is used to indicate cancellation of periodic subscription to the location information of the target terminal.
18. The method according to claim 17, characterized in that The method further comprises: In a case where the unsubscribe terminal location response indicates successful unsubscription of the periodic subscription to the location information of the target terminal, it is determined that the location service function of the satellite edge computing node passes the functional test.
19. The method according to claim 18, characterized in that The method further comprises: If at least one of the following conditions is met, it is determined that the location service function fails the function test: The location query response indicates that the location information of the target terminal has not been queried; The subscription terminal location response indicates that the periodic subscription to the location information of the target terminal is unsuccessful; The unsubscribe terminal location indication fails to successfully unsubscribe from the periodic subscription to the location information of the target terminal.
20. The method according to any one of claims 1 to 10, characterized in that The method further comprises: Sending data bit flip fault data to the satellite edge computing node, so that the satellite edge computing node runs the data bit flip fault data to obtain an operation result; Based on the difference between the operating result and the expected result, determine whether the single-particle upset reliability of the satellite edge computing node passes the functional test.
21. A functional testing device for a satellite edge computing node, characterized in that: Applied to test nodes, including: A first sending module is used to send a target rule to a satellite edge computing node, wherein the target rule is a service rule of a designated edge application in the test node located on the satellite edge computing node; A first query module, used to query whether the target rule exists in the satellite edge computing node to obtain a first query result; A second sending module is used to send a state update request to the satellite edge computing node based on the first state of the target rule in the satellite edge computing node when the first query result indicates that the target rule exists; wherein the state update request is used to instruct the satellite edge computing node to switch the target rule from the first state to the second state; A second query module is used to query the third state of the target rule in the satellite edge computing node; A determination module is used to determine whether the first target function passes the function test according to the third state and the second state.
22. An electronic device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements a functional testing method for a satellite edge computing node as described in any one of claims 1 to 20.
23. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the functional testing method of the satellite edge computing node as described in any one of claims 1-20.