Object structure verification method, device, computer equipment and storage medium
Through the automated object structure verification method, verification results are generated according to the design requirements of the PSR model, solving the problem of inefficient manual review in the existing technology, and achieving efficient automatic review of network topology design.
Patent Information
- Application Number
- CN202310945507.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2043-07-28
AI Technical Summary
Under the PSR model, the existing technology requires manual review of the network topology design submitted by users, resulting in inefficiency and lack of automated verification methods.
Provide a verification method for object structure. By obtaining the object structure of the object to be verified, the verification results are generated, including problem description and problem level, based on the target design requirements, the connection relationship between nodes and the service design structure layer.
It realizes automatic verification of user-submitted network topology design, improves audit efficiency, and can automatically determine whether the object structure meets the design requirements of the PSR model.
Smart Images

Figure CN118708467B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a method, device, computer equipment and storage medium for verifying an object structure. Background Art
[0002] The PSR model (Product-Service-Resource) is a model designed for communication products. Its design concept is to decouple resources, services, and products in layers, assemble and design them based on the underlying cloud network capabilities, form services, and provide communication services / products to the outside world.
[0003] Currently, when reviewing a network topology design built based on a PSR model, manual review is usually required, resulting in low efficiency. Therefore, it is currently necessary to provide a method that can automatically review a network topology design submitted by a user. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for verifying the structure of an object in order to solve the above technical problems.
[0005] In a first aspect, the present application provides a method for verifying an object structure. The method comprises:
[0006] Acquire an object structure of an object to be verified, wherein the object structure is composed of multiple nodes;
[0007] Based on the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, a verification result for the object structure is generated, and the verification result includes a problem description and a problem level.
[0008] In one embodiment, the problem level includes a first-level problem level, a second-level problem level and a third-level problem level, wherein the priority of the first-level problem level representation is higher than the priority of the second-level problem level representation, and the priority of the second-level problem level representation is higher than the priority of the third-level problem level representation.
[0009] In one embodiment, generating a verification result for the object structure according to the target design rule, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node includes:
[0010] For any of the nodes, determining a level difference between a level of the service design structure layer corresponding to the node and a level of the service design structure layer corresponding to the object to be verified;
[0011] The object structure is verified based on the level difference corresponding to each of the nodes, and when any of the level differences is greater than or equal to 2 levels, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0012] In one embodiment, generating a verification result for the object structure according to the target design rule, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, further includes:
[0013] Respectively obtain each child node corresponding to each of the nodes;
[0014] The object structure is verified based on the child nodes corresponding to the nodes. For any node, if there are at least two identical child nodes in the child nodes of the node, the problem level is determined to be a third-level problem level, and a verification result for the object structure is generated based on the third-level problem level.
[0015] In one of the embodiments, the levels of the service design structure layer are, from top to bottom, a business service layer or service layer, a network service layer or sub-service layer, and a resource layer.
[0016] In one of the embodiments, the service design structure layer further includes a product layer, and the level of the product layer is located above the level of the business service layer or the service layer.
[0017] In one of the embodiments, when the target service design structure layer is the network service layer or the sub-service layer, generating a verification result for the object structure according to the target design rule, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, further includes:
[0018] The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is higher than the level of the service design structure layer corresponding to the node, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0019] In one of the embodiments, when the target service design structure layer is the network service layer or the sub-service layer, generating a verification result for the object structure according to the target design rule, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, further includes:
[0020] For any network element node belonging to a network element, determining a network domain to which the network element node belongs;
[0021] Based on the network domain to which each of the network element nodes belongs, the object structure is verified, and when it is detected that the network domain to which each of the network element nodes belongs is not the same network domain, the problem level is determined as a secondary problem level, and a verification result for the object structure is generated based on the secondary problem level.
[0022] In one of the embodiments, when the target service design structure layer is the business service layer or the service layer, generating a verification result for the object structure according to the target design rule, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, further includes:
[0023] The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is equal to the level of the service design structure layer corresponding to the node, the problem level is determined to be a third-level problem level, and a verification result for the object structure is generated based on the third-level problem level.
[0024] In one of the embodiments, when the target service design structure layer is the business service layer or the service layer, generating a verification result for the object structure according to the target design rule, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, further includes:
[0025] The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is not equal to the level of the service design structure layer corresponding to the node, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0026] In one of the embodiments, the service design structure layer corresponding to each of the nodes is the network service layer or the sub-service layer.
[0027] In one of the embodiments, when the target service design structure layer is the business service layer or the service layer, the method further includes:
[0028] For any of the nodes, when the node is in an offline state, an object structure check is performed on the node.
[0029] In a second aspect, the present application also provides a device for verifying an object structure. The device comprises:
[0030] An acquisition module, used to acquire an object structure of an object to be verified, wherein the object structure is composed of a plurality of nodes;
[0031] A generation module is used to generate a verification result for the object structure according to the target design requirements corresponding to the object to be verified, the connection relationship between each node in the object structure, and the service design structure layer corresponding to each node, wherein the verification result includes a problem description and a problem level.
[0032] In one embodiment, the problem level includes a first-level problem level, a second-level problem level and a third-level problem level, wherein the priority of the first-level problem level representation is higher than the priority of the second-level problem level representation, and the priority of the second-level problem level representation is higher than the priority of the third-level problem level representation.
[0033] In one embodiment, the generating module is further used for:
[0034] For any of the nodes, determining a level difference between a level of the service design structure layer corresponding to the node and a level of the service design structure layer corresponding to the object to be verified;
[0035] The object structure is verified based on the level difference corresponding to each of the nodes, and when any of the level differences is greater than or equal to 2 levels, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0036] In one embodiment, the generating module is further used for:
[0037] Respectively obtain each child node corresponding to each of the nodes;
[0038] The object structure is verified based on the child nodes corresponding to the nodes. For any node, if there are at least two identical child nodes in the child nodes of the node, the problem level is determined to be a third-level problem level, and a verification result for the object structure is generated based on the third-level problem level.
[0039] In one of the embodiments, the levels of the service design structure layer are, from top to bottom, a business service layer or service layer, a network service layer or sub-service layer, and a resource layer.
[0040] In one of the embodiments, the service design structure layer further includes a product layer, and the level of the product layer is located above the level of the business service layer or the service layer.
[0041] In one of the embodiments, when the target service design structure layer is the network service layer or the sub-service layer, the generating module is further used to:
[0042] The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is higher than the level of the service design structure layer corresponding to the node, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0043] In one of the embodiments, when the target service design structure layer is the network service layer or the sub-service layer, the generating module is further used to:
[0044] For any network element node belonging to a network element, determining a network domain to which the network element node belongs;
[0045] Based on the network domain to which each of the network element nodes belongs, the object structure is verified, and when it is detected that the network domain to which each of the network element nodes belongs is not the same network domain, the problem level is determined as a secondary problem level, and a verification result for the object structure is generated based on the secondary problem level.
[0046] In one of the embodiments, when the target service design structure layer is the business service layer or the service layer, the generating module is further used to:
[0047] The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is equal to the level of the service design structure layer corresponding to the node, the problem level is determined to be a third-level problem level, and a verification result for the object structure is generated based on the third-level problem level.
[0048] In one of the embodiments, when the target service design structure layer is the business service layer or the service layer, the generating module is further used to:
[0049] The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is not equal to the level of the service design structure layer corresponding to the node, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0050] In one of the embodiments, the service design structure layer corresponding to each of the nodes is the network service layer or the sub-service layer.
[0051] In one of the embodiments, when the target service design structure layer is the business service layer or the service layer, the apparatus further comprises:
[0052] The verification module is used to perform object structure verification on any of the nodes when the node is in an offline state.
[0053] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, any one of the above methods is implemented.
[0054] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, any of the above methods is implemented.
[0055] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, any of the above methods is implemented.
[0056] The object structure verification method, device, computer equipment and storage medium described above determine the final verification result of the object structure based on the design requirements of the object to be verified, the connection relationship between the nodes and the service design structure layer corresponding to each node. The embodiment of the present application can automatically determine whether the object structure meets the design requirements of the PSR model and improve the audit efficiency of the object structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A schematic diagram of a flow chart of a method for verifying an object structure in one embodiment;
[0058] Figure 2 A schematic diagram of each service design structure layer and each object to be verified in an embodiment;
[0059] Figure 3 is a flow chart of step 104 in one embodiment;
[0060] Figure 4 is a flow chart of step 104 in one embodiment;
[0061] Figure 5 A schematic diagram of a configuration method of the same node in an embodiment;
[0062] Figure 6A schematic diagram of the structural layers of each service design in an embodiment;
[0063] Figure 7 A schematic diagram of the structural layers of each service design in an embodiment;
[0064] Figure 8 is a flow chart of step 104 in one embodiment;
[0065] Fig. 9 is a structural block diagram of a device for verifying an object structure in one embodiment;
[0066] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0068] In one embodiment, Figure 1 As shown, a method for verifying an object structure is provided. This embodiment is described by applying the method to a server, and includes the following steps:
[0069] Step 102: Obtain the object structure of the object to be verified, where the object structure consists of multiple nodes.
[0070] In the embodiments of the present application, the object to be verified is data submitted by the user to the server for review. The object structure refers to the specific network topology contained in the object to be verified. The nodes are the components that make up the object structure, such as ports, devices, network elements, network segments, etc. The object to be verified can exist as a root node in the object structure. In this case, there should be a direct or indirect connection relationship between the node and the object to be verified (indirect connection means that the node is connected to the object to be verified through other nodes). If the server detects that there is an isolated node that has no connection relationship with the object to be verified, it can directly determine that the verification result of the object structure is failed. Refer to Figure 2 As shown, taking the service design structure layer as the resource layer, the service layer and the product layer, and the resource layer is located below the service layer, and the service layer is located below the product layer as an example, if the current object A to be verified is located in the product layer, then the node can be node B located in the service layer and directly connected to the object A to be verified, or it can be node C located in the resource layer and connected to node B (that is, equivalent to being connected to the object A to be verified through node B).
[0071] After the user submits the object to be verified to the server, the user can initiate a request to the server to verify the object to be verified. The server can then obtain the object structure contained in the object to be verified and each specific node in the object structure, and then start to verify the network topology data to be verified based on the above information.
[0072] Step 104, based on the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, a verification result for the object structure is generated, and the verification result includes a problem description and a problem level.
[0073] In the embodiment of the present application, the target design requirements corresponding to the object to be verified refer to the design requirements of the PSR model for the network topology. The PSR model may have different design requirements for its different service design structure layers (the service design structure layer is a hierarchical structure specified in the PSR model, such as the resource layer, service layer, and product layer, etc.), so when the design requirements for different service design structure layers are different, the service design structure layer where the object to be verified is located can be obtained, and the design requirements corresponding to the service design structure layer can be used as the target design requirements.
[0074] In order to ensure the simplicity and reusability of the network topology, the design requirements of the PSR model are generally related to the connection relationship between the nodes in the object structure and the service design structure layer where each node is located. The design requirements can be predetermined by those skilled in the art. For example, if the design requirement of the PSR model is that the nodes located in the resource layer can only be network elements, then by checking whether all the nodes located in the resource layer in the object structure are network elements, it can be determined whether the object structure meets the design requirements of the PSR model.
[0075] The verification result may include a problem description and a problem level. The problem description is used to characterize which specific parts of the object structure have not passed the verification, while the problem level is used to characterize the severity of the problem in the verification result. The problem level can be displayed by multiple labels that represent different levels of problem severity. For example, each label may include a first result label that represents a more serious problem, a second result label that the problem is controllable (the problem is controllable, which means that the object structure violates the design requirements of the PSR model, but the degree of violation is relatively minor, such as only violating the recommended design requirements of the PSR model, etc.), a third result label that the problem is minor, etc. The above result labels can have different colors, for example, the first result label can be set to red, the second result label can be set to yellow, and the third result label can be set to green, so that the user can more intuitively see whether the verification result is qualified.
[0076] There may be multiple target design requirements. A total verification result can be determined based on the verification results of each node in the object structure for each target design requirement. For example, when each node in the object structure satisfies each target design requirement at the same time, the total verification result is determined to be qualified. When each node in the object structure does not meet any target design requirement, the total verification result is determined to be unqualified. The verification result includes the verification results of each node for each target design requirement, and the target design requirements corresponding to the unqualified verification results and the specific basis for determining that the verification result is unqualified are displayed as a problem description, so that the user can make targeted modifications to the unqualified parts of the object structure. The embodiments of the present application do not specifically limit this.
[0077] The object structure verification method provided in the embodiment of the present application determines the final verification result of the object structure based on the design requirements of the object to be verified, the connection relationship between each node and the service design structure layer corresponding to each node. The embodiment of the present application can automatically determine whether the object structure meets the design requirements of the PSR model, thereby improving the audit efficiency of the object structure.
[0078] In one embodiment, the problem levels include a primary problem level, a secondary problem level, and a tertiary problem level, wherein the priority of the primary problem level representation is higher than that of the secondary problem level representation, and the priority of the secondary problem level representation is higher than that of the tertiary problem level representation.
[0079] In an embodiment of the present application, the first-level problem level, the second-level problem level, and the third-level problem level are used to distinguish the severity of the unqualified object structure. The severity of unqualified represented by the first-level problem level is higher than the severity of unqualified represented by the second-level problem level. Each problem level can be represented by a result label, for example, the first problem level can correspond to the first result label, the second problem level can correspond to the second result label, and the third problem level can correspond to the third result label. And each result label can correspond to a different color, for example, the first result label corresponds to red, the second result label corresponds to yellow, and the third result label corresponds to green, so that problems of each level are more intuitive.
[0080] The object structure verification method provided in the embodiment of the present application divides the problem levels into a first problem level, a second problem level and a third problem level. Different levels represent different levels of failure of the object to be verified, allowing users to more intuitively see the severity of the failure of the object structure.
[0081] In one embodiment, Figure 3 As shown, in step 104, according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, a verification result for the object structure is generated, including:
[0082] Step 302: for any node, determine the level difference between the level of the service design structure layer corresponding to the node and the level of the service design structure layer corresponding to the object to be verified.
[0083] Step 304, based on the level difference corresponding to each node, the object structure is verified, and when any level difference is greater than or equal to 2 levels, the problem level is determined to be the first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0084] In the embodiment of the present application, the object to be verified has a service design structure layer, and the service design structure layer of each node should be below the service design structure layer of the object to be verified. To ensure the reusability of the object structure, the node can only be located in the next layer of the service design structure layer of the object to be verified. For example, if the service design structure layer is the product layer, service layer, and resource layer from top to bottom, and the object to be verified is located in the service layer, then all nodes should be located in the resource layer; if the object to be verified is located in the product layer, then all nodes should be located in the service layer.
[0085] Since there are hierarchical differences between each service design structure layer, it is possible to determine whether all nodes are located in the next layer of the service design structure layer of the object to be verified by calculating the hierarchical difference between the service design structure layer of the node and the service design structure layer of the object to be verified. The hierarchical difference between two service design structure layers can be calculated by assigning a hierarchical value to the service design structure layer, for example, assigning continuous integers as hierarchical values to each service design structure layer from top to bottom, so that the difference between the hierarchical values of the next service design structure layer and the previous service design structure layer is 1. For example, when the service design structure layer is the product layer, the service layer and the resource layer from top to bottom, the product layer is assigned a hierarchical value of 1, the service layer is assigned a hierarchical value of 2, and the resource layer is assigned a hierarchical value of 3. For each node, the difference between the hierarchical value of the service design structure layer where the node is located and the hierarchical value of the service design structure layer where the object to be verified is located is calculated as the hierarchical difference. For example, if the object to be verified is located in the product layer, then when the node is located in the product layer, the hierarchical difference is 1, and when the node is located in the resource layer, the hierarchical difference is 2. When the level difference of any node is greater than or equal to 2, it is determined that the node is not at the next level of the level of the object to be verified, and the problem level is determined to be a first-level problem level. The fact that the nodes in the object structure span multiple layers is recorded in the problem description to remind the user that modifications need to be made for this situation.
[0086] The object structure verification method provided by the embodiment of the present application determines the problem level of the object to be verified as the first-level problem level when the level difference between the service design structure layer of the node and the service design structure layer of the object to be verified is at least 2. Therefore, it is possible to automatically detect such situations that affect the reusability of the object structure, and remind the user to make modifications to such situations, which can improve the audit efficiency of the object structure.
[0087] In one embodiment, Figure 4 As shown, in step 104, according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, a verification result for the object structure is generated, which also includes:
[0088] Step 402, respectively obtain each child node corresponding to each node.
[0089] Step 404, based on each child node corresponding to each node, the object structure is verified. For any node, if there are at least two identical child nodes in each of the child nodes of the node, the problem level is determined to be a three-level problem level, and a verification result for the object structure is generated based on the three-level problem level.
[0090] In the embodiment of the present application, a child node refers to other nodes that have a connection relationship with the node other than the object to be verified. To ensure the reusability of the object structure, for each node, there should be only one identical child node. Figure 5 As shown, if the node is network segment A, and the child nodes are network element A, network element B, and network element C, then when it is necessary to indicate that network element A and network element B are connected, and network element C and network element B are connected, it is only necessary to set one network element A, one network element B, and one network element C respectively, and set network element A and network element B to have a connection relationship, and network element C and network element B to have a connection relationship, without setting two network elements B, so that there is a connection relationship between network element A and one network element B, and there is a connection relationship between network element C and another network element B. In addition, because nodes can be reused in other object structures, if multiple identical child nodes are set, the node will not be applied to other object structures with a number of child nodes that is less than the number of child nodes of this node. However, since this situation does not constitute a serious violation of the PSR model design standard, when this situation occurs, the problem level can be set to the third level of the problem level to remind the user that the object structure can pass the verification, but it is best to modify it.
[0091] The object structure verification method provided by the embodiment of the present application sets the problem level of the object structure to the third level when there are at least two identical sub-nodes in the sub-nodes of any node. Therefore, it is possible to automatically detect such situations that affect the simplicity and reusability of the object structure, and remind the user to modify such situations, thereby improving the audit efficiency of the object structure to be verified.
[0092] In one embodiment, the levels of the service design structure layer are, from top to bottom, a business service layer or service layer, a network service layer or sub-service layer, and a resource layer.
[0093] In the embodiment of the present application, each service design structure layer can be a business service layer (Customer-Facing Service) or a service layer (Service), a network service layer (Resource-Facing Service) or a sub-service layer (Sub-Service) and a resource layer (Resource). Among them, each node (resource) in the resource layer can be a network element, a device, a port, etc., and the network element has a network domain to which it belongs (the network domain refers to different network structures in the 5G system, such as the bearer network, the wireless access network, the core network, etc.); each node (network service) in the network service layer / sub-service layer can be a network segment composed of network elements that provides services in a single network domain; each node (business service) in the business service layer / service layer can be a customer-oriented network service composed of multiple network segments that can provide services across network domains. Business services should consist of at least one network service, and network services should consist of at least two resources.
[0094] The object structure verification method provided in the embodiment of the present application divides the service design structure layer from top to bottom into a business service layer, a network service layer and a resource layer. It can make a more detailed division of the service layer in the traditional PSR model, so that the network segment can also become an independent node, thereby improving the reusability of the node.
[0095] In one embodiment, the service design structure layer further includes a product layer, which is located above the business service layer or the service layer.
[0096] In the embodiment of the present application, the service design structure layer also includes a product layer (Product), which is the highest service design structure layer. The nodes (products) in the product layer can be complete products composed of multiple network services and at least one business service. Figure 6 , Figure 7 The figure shows a schematic diagram of the service design structure layers including the product layer.
[0097] The object structure verification method provided in the embodiment of the present application sets a product layer located above the business service layer, which can allow the user to submit the complete product object structure to the server for verification, avoiding the need for the user to submit the object structures of multiple business service layers separately for verification, thereby improving the efficiency of verification.
[0098] In one embodiment, when the object to be verified belongs to the network service layer or the sub-service layer, in step 104, according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, a verification result for the object structure is generated, which also includes:
[0099] The object structure is verified based on each node and the sub-node corresponding to each node, and when the level of the service design structure layer corresponding to the sub-node of any node is higher than the level of the service design structure layer corresponding to the node, the problem level is determined as a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0100] In the embodiment of the present application, when the object to be verified is in the network service layer / sub-service layer, each node of the object to be verified is in the resource layer. Therefore, the sub-nodes of each node should not be higher than the resource layer, so as to avoid the situation where the service design structure layer where the node is located is higher than the service design structure layer where the object to be verified is located.
[0101] For any node, by obtaining each node connected to the node except the object to be verified, each child node corresponding to the node can be obtained. By determining the level of the service design structure layer corresponding to the node and the level of the service design structure layer corresponding to each child node, it can be determined whether there is a child node whose corresponding service design structure layer is higher than the service design structure layer corresponding to the node. If such a child node exists, the verification of the object structure can be terminated, and the verification result for the object structure is generated based on the first-level problem level, and the object structure error is recorded in the problem description. The service design structure layer level of the child node is higher than the service design structure layer level of the node, and the user is reminded to modify the object structure before performing the remaining detection. Alternatively, the detection of the remaining target design requirements can be continued, and all the verification results will be output together after the detection is completed. The embodiment of the present application does not make specific limitations on this.
[0102] The object structure verification method provided by the embodiment of the present application determines the problem level of the object to be verified as the first-level problem level when there is a subnode whose service design structure level is higher than the service design structure level of the node. Therefore, it can automatically detect such situations that affect the reusability of the network topology structure, and remind the user to make modifications to such situations, which can improve the audit efficiency of the object structure.
[0103] In one embodiment, Figure 8 As shown, in the case where the object to be verified belongs to the network service layer or the sub-service layer, in step 104, according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, a verification result for the object structure is generated, which also includes:
[0104] Step 802: for any network element node belonging to a network element, determine the network domain to which the network element node belongs.
[0105] Step 804, based on the network domain to which each network element node belongs, the object structure is verified, and when it is detected that the network domain to which each network element node belongs is not the same network domain, the problem level is determined as the secondary problem level, and a verification result for the object structure is generated based on the secondary problem level.
[0106] In the embodiment of the present application, the network element node is a node belonging to the network element among the nodes. The network element nodes all have their own network domains. In order to ensure the reusability of the object structure, the object structure in the network service layer / subservice layer cannot cross network domains, so it is required that the corresponding network element nodes all belong to the same network domain. If there are network element nodes that do not belong to the same network domain, the problem level of the object structure can be determined as the secondary problem level to indicate that there is a problem with the object structure, but the problem is controllable.
[0107] Each node has attribute data, which records the node's name, device type, network domain, and other information. Whether a node is a network element node can be determined based on its attribute data, and the network domain to which it belongs can be obtained if the node is a network element node. If the network domains to which the network element nodes belong are the same network domain, it is determined that the object structure passes this verification; or if there are any two network element nodes that do not belong to the same network domain, it is determined that the object structure does not pass this verification, the problem level is set to the secondary problem level, and it is recorded in the problem description that the network domains of the network element nodes are not the same network domain.
[0108] In the object structure verification method provided by the embodiment of the present application, if any two network element nodes of the object structure do not belong to the same network domain, the problem level of the object to be verified is determined to be a secondary problem level. Therefore, it is possible to automatically detect such situations that affect the reusability of the network topology structure, and remind the user to make modifications based on such situations, thereby improving the audit efficiency of the network topology structure to be verified.
[0109] In one embodiment, when the object to be verified belongs to the business service layer or the service layer, in step 104, according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, a verification result for the object structure is generated, which also includes:
[0110] The object structure is verified based on each node and the sub-node corresponding to each node, and when the level of the service design structure layer corresponding to the sub-node of any node is equal to the level of the service design structure layer corresponding to the node, the problem level is determined as the third-level problem level, and a verification result for the object structure is generated based on the third-level problem level.
[0111] In the embodiment of the present application, when the object to be verified is in the business service layer / service layer, each node of the object to be verified is in the network service layer / sub-service layer. The nodes in the network service layer / sub-service layer can indicate that they are interconnected by connecting to the object to be verified, so the nodes in this layer should not be connected to each other, and each node should not have child nodes in theory. However, since this problem is only a formal problem of object structure drawing, it can be treated as a relatively minor error.
[0112] When the object to be verified is in the business service layer / sub-service layer, for any node, by obtaining each node connected to the node except the object to be verified, each sub-node corresponding to the node can be obtained. By determining the level of the service design structure layer corresponding to the node and the level of the service design structure layer corresponding to each sub-node, it can be determined whether there is a sub-node whose corresponding service design structure layer is equal to the service design structure layer corresponding to the node. If such a sub-node exists, the verification of the object structure can be terminated, and the verification result for the object structure is generated based on the three-level problem level, and the object structure error is recorded in the problem description. The service design structure layer level of the sub-node is equal to the service design structure layer level of the node, and the user is reminded to modify the object structure before performing the remaining detection. Alternatively, the detection of the remaining target design requirements can be continued, and all the verification results will be output together after the detection is completed. The embodiment of the present application does not make specific limitations on this.
[0113] The object structure verification method provided by the embodiment of the present application determines the problem level of the object to be verified as the third-level problem level when there is a child node of the service design structure layer equal to the service design structure layer of the node. Therefore, it can automatically detect such situations that affect the reusability of the network topology structure, and remind the user to modify it according to such situations, which can improve the audit efficiency of the object structure.
[0114] In one embodiment, when the object to be verified belongs to the business service layer or the service layer, in step 104, according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, a verification result for the object structure is generated, which also includes:
[0115] The object structure is verified based on each node and the sub-node corresponding to each node, and when the level of the service design structure layer corresponding to the sub-node of any node is not equal to the level of the service design structure layer corresponding to the node, the problem level is determined as the first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0116] In the embodiment of the present application, since each node of the object to be verified should be in the network service layer / sub-service layer, if a node has a sub-node, and the service design structure layer to which the sub-node belongs is not equal to the service design structure layer of the node (that is, the sub-node is not in the network service layer / sub-service layer), it indicates that the object structure is drawn incorrectly. At this time, the problem level can be determined to be a first-level problem level, and a problem description of the object structure drawing error is generated to remind the user to modify this situation.
[0117] The object structure verification method provided by the embodiment of the present application determines the problem level of the object to be verified as the first-level problem level when there is a sub-node whose service design structure level is not equal to the service design structure level of the node. Therefore, it can automatically detect such situations that affect the reusability of the network topology structure, and remind the user to make modifications to such situations, which can improve the audit efficiency of the object structure.
[0118] In one embodiment, the service design structure layer corresponding to each node is a network service layer or a sub-service layer.
[0119] In an embodiment of the present application, if the object to be verified belongs to the business service layer or service layer, then in order to ensure the simplicity of the topological structure, all nodes of the object structure should be located in the next layer of the object to be verified, that is, the network service layer or sub-service layer.
[0120] The object structure verification method provided in the embodiment of the present application makes the node belong to the network service layer or the sub-service layer when the object to be verified belongs to the business service layer or the service layer, thereby maintaining the simplicity of the object structure.
[0121] In one embodiment, when the object to be verified belongs to the business service layer or the service layer, the method further includes:
[0122] For any node, when the node is in an offline state, an object structure check is performed on the node.
[0123] In an embodiment of the present application, when the object to be verified belongs to the business service layer or service layer, the node, as a node in the network service layer / sub-service layer, itself also belongs to an object with a topological structure, and each node in the topological structure is located in the resource layer. Therefore, the node can also be verified as an object to be verified. Since each node needs to perform object structure verification before going online, when the node is online, it indicates that the node has passed the verification and is compliant, and there is no need to verify the node in the online state. For nodes that are not online, the nodes can also be verified according to the steps in the aforementioned embodiment, and the verification results of the nodes can be displayed to the user separately.
[0124] The object structure verification method provided in the embodiment of the present application automatically performs object structure verification on offline nodes when the object to be verified belongs to the business service layer or the service layer. This can save the user from having to submit the offline nodes to the server for verification again, thereby improving the verification efficiency of the object structure.
[0125] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0126] Based on the same inventive concept, the embodiment of the present application also provides an object structure verification device for implementing the object structure verification method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the verification device for one or more object structures provided below can refer to the limitations of the object structure verification method above, and will not be repeated here.
[0127] In one embodiment, Fig. 9 As shown, a device 900 for verifying an object structure is provided, comprising: an acquisition module 902 and a generation module 904, wherein:
[0128] An acquisition module 902 is used to acquire an object structure of an object to be verified, wherein the object structure is composed of multiple nodes;
[0129] Generation module 904 is used to generate a verification result for the object structure according to the target design requirements corresponding to the object to be verified, the connection relationship between each node in the object structure, and the service design structure layer corresponding to each node, and the verification result includes a problem description and a problem level.
[0130] The object structure verification device provided by the embodiment of the present application determines the final verification result of the object structure based on the design requirements of the object to be verified, the connection relationship between each node and the service design structure layer corresponding to each node. The embodiment of the present application can automatically determine whether the object structure meets the design requirements of the PSR model, thereby improving the audit efficiency of the object structure.
[0131] In one embodiment, the problem level includes a first-level problem level, a second-level problem level and a third-level problem level, wherein the priority of the first-level problem level representation is higher than the priority of the second-level problem level representation, and the priority of the second-level problem level representation is higher than the priority of the third-level problem level representation.
[0132] In one embodiment, the generating module 904 is further configured to:
[0133] For any of the nodes, determining a level difference between a level of the service design structure layer corresponding to the node and a level of the service design structure layer corresponding to the object to be verified;
[0134] The object structure is verified based on the level difference corresponding to each of the nodes, and when any of the level differences is greater than or equal to 2 levels, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0135] In one embodiment, the generating module 904 is further configured to:
[0136] Respectively obtain each child node corresponding to each of the nodes;
[0137] The object structure is verified based on the child nodes corresponding to the nodes. For any node, if there are at least two identical child nodes in the child nodes of the node, the problem level is determined to be a third-level problem level, and a verification result for the object structure is generated based on the third-level problem level.
[0138] In one of the embodiments, the levels of the service design structure layer are, from top to bottom, a business service layer or service layer, a network service layer or sub-service layer, and a resource layer.
[0139] In one of the embodiments, the service design structure layer further includes a product layer, and the level of the product layer is located above the level of the business service layer or the service layer.
[0140] In one embodiment, when the target service design structure layer is the network service layer or the sub-service layer, the generating module 904 is further configured to:
[0141] The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is higher than the level of the service design structure layer corresponding to the node, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0142] In one embodiment, when the target service design structure layer is the network service layer or the sub-service layer, the generating module 904 is further configured to:
[0143] For any network element node belonging to a network element, determining a network domain to which the network element node belongs;
[0144] Based on the network domain to which each of the network element nodes belongs, the object structure is verified, and when it is detected that the network domain to which each of the network element nodes belongs is not the same network domain, the problem level is determined as a secondary problem level, and a verification result for the object structure is generated based on the secondary problem level.
[0145] In one embodiment, when the target service design structure layer is the business service layer or the service layer, the generating module 904 is further configured to:
[0146] The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is equal to the level of the service design structure layer corresponding to the node, the problem level is determined to be a third-level problem level, and a verification result for the object structure is generated based on the third-level problem level.
[0147] In one embodiment, when the target service design structure layer is the business service layer or the service layer, the generating module 904 is further configured to:
[0148] The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is not equal to the level of the service design structure layer corresponding to the node, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
[0149] In one of the embodiments, the service design structure layer corresponding to each of the nodes is the network service layer or the sub-service layer.
[0150] In one of the embodiments, when the target service design structure layer is the business service layer or the service layer, the apparatus further comprises:
[0151] The verification module is used to perform object structure verification on any of the nodes when the node is in an offline state.
[0152] Each module in the above object structure verification device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0153] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for verifying an object structure is implemented.
[0154] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0155] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0156] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0157] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0158] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0159] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0160] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for verifying an object structure, characterized in that: The method comprises: Acquire an object structure of an object to be verified, wherein the object structure is composed of multiple nodes; Generate a verification result for the object structure according to the target design requirements corresponding to the object to be verified, the connection relationship between each node in the object structure, and the service design structure layer corresponding to each node, wherein the verification result includes a problem description and a problem level; wherein each service design structure layer has a corresponding design requirement; the problem level includes a first-level problem level, a second-level problem level, and a third-level problem level, wherein the priority of the first-level problem level representation is higher than the priority of the second-level problem level representation, and the priority of the second-level problem level representation is higher than the priority of the third-level problem level representation; Wherein, generating a verification result for the object structure according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node includes: For any of the nodes, determining a level difference between a level of the service design structure layer corresponding to the node and a level of the service design structure layer corresponding to the object to be verified; The object structure is verified based on the level difference corresponding to each of the nodes, and when any of the level differences is greater than or equal to 2 levels, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
2. The method according to claim 1, characterized in that: The generating a verification result for the object structure according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, further includes: Respectively obtain each child node corresponding to each of the nodes; The object structure is verified based on the child nodes corresponding to the nodes. For any node, if there are at least two identical child nodes in the child nodes of the node, the problem level is determined to be a third-level problem level, and a verification result for the object structure is generated based on the third-level problem level.
3. The method according to claim 1, characterized in that The levels of the service design structure layer are, from top to bottom, a business service layer or service layer, a network service layer or sub-service layer, and a resource layer.
4. The method according to claim 3, characterized in that: The service design structure layer also includes a product layer, and the level of the product layer is located above the level of the business service layer or the service layer.
5. The method according to claim 3 or 4, characterized in that: In the case where the object to be verified belongs to the network service layer or the sub-service layer, generating a verification result for the object structure according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, further includes: The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is higher than the level of the service design structure layer corresponding to the node, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
6. The method according to claim 3 or 4, characterized in that: In the case where the object to be verified belongs to the network service layer or the sub-service layer, generating a verification result for the object structure according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, further includes: For any network element node belonging to a network element, determining a network domain to which the network element node belongs; Based on the network domain to which each of the network element nodes belongs, the object structure is verified, and when it is detected that the network domain to which each of the network element nodes belongs is not the same network domain, the problem level is determined as a secondary problem level, and a verification result for the object structure is generated based on the secondary problem level.
7. The method according to claim 3 or 4, characterized in that: In the case where the object to be verified belongs to the business service layer or the service layer, generating a verification result for the object structure according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, further includes: The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is equal to the level of the service design structure layer corresponding to the node, the problem level is determined to be a third-level problem level, and a verification result for the object structure is generated based on the third-level problem level.
8. The method according to claim 3 or 4, characterized in that: In the case where the object to be verified belongs to the business service layer or the service layer, generating a verification result for the object structure according to the target design requirements corresponding to the object to be verified, the connection relationship between the nodes in the object structure, and the service design structure layer corresponding to each node, further includes: The object structure is verified based on each of the nodes and the child nodes corresponding to each of the nodes, and when the level of the service design structure layer corresponding to the child node of any of the nodes is not equal to the level of the service design structure layer corresponding to the node, the problem level is determined to be a first-level problem level, and a verification result for the object structure is generated based on the first-level problem level.
9. The method according to claim 8, characterized in that The service design structure layer corresponding to each of the nodes is the network service layer or the sub-service layer.
10. The method according to claim 3 or 4, characterized in that: In the case where the object to be verified belongs to the business service layer or the service layer, the method further includes: For any of the nodes, when the node is in an offline state, an object structure check is performed on the node.
11. A device for verifying an object structure, characterized in that: The device comprises: An acquisition module, used to acquire an object structure of an object to be verified, wherein the object structure is composed of a plurality of nodes; A generation module, for generating a verification result for the object structure according to the target design requirements corresponding to the object to be verified, the connection relationship between each of the nodes in the object structure, and the service design structure layer corresponding to each of the nodes, wherein the verification result includes a problem description and a problem level; wherein each of the service design structure layers has a corresponding design requirement; wherein the problem level includes a first-level problem level, a second-level problem level, and a third-level problem level, wherein the priority of the first-level problem level representation is higher than the priority of the second-level problem level representation, and the priority of the second-level problem level representation is higher than the priority of the third-level problem level representation; The generation module is also used to determine, for any of the nodes, the level difference between the level of the service design structure layer corresponding to the node and the level of the service design structure layer corresponding to the object to be verified; based on the level difference corresponding to each of the nodes, verify the object structure, and when any of the level differences is greater than or equal to 2 levels, determine the problem level as a first-level problem level, and generate a verification result for the object structure based on the first-level problem level.
12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Complex network topology editing and visualizing system based on Web
CN110929201A