Verification method and device of network architecture, equipment and storage medium

By detecting current and initial architecture information in the server cluster and verifying the software system deployment architecture, the problem that users cannot verify the actual deployment architecture is solved, and the reliability of the system network architecture is improved.

CN119396640APending Publication Date: 2025-02-07PICC INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411670233.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

During the software system deployment process, users cannot effectively verify whether the actual deployment architecture complies with the design drawings, resulting in low reliability of the system network architecture.

Method used

Provide a network architecture verification method, by detecting current architecture information and initial architecture information in a server cluster, determine the verification results of the target network architecture, and when the results are inconsistent, determine the architecture difference information and feed it back to the architecture management device.

Benefits of technology

It realizes effective verification of the network architecture, improves the reliability of the system network architecture, and ensures that the deployment architecture is consistent with the design drawings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396640A_ABST
    Figure CN119396640A_ABST
Patent Text Reader

Abstract

The invention provides a network architecture verification method and device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: determining a target network architecture to be verified; performing detection processing on the target network architecture in the server cluster to obtain current architecture information corresponding to the target network architecture; acquiring initial architecture information corresponding to the target network architecture, wherein the initial architecture information comprises component information of at least one initial component and a connection relationship between the at least one initial component; according to the current architecture information and the initial architecture information, a verification result of the target network architecture is determined, and the verification result is architecture consistency or architecture inconsistency; and when the verification result is that the architectures are inconsistent, determining architecture difference information between the current architecture information and the initial architecture information, and sending the architecture difference information to the architecture management equipment. And the reliability of the network architecture is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a verification method, device, equipment and storage medium for a network architecture. Background Art

[0002] In some scenarios, the system needs to be deployed according to the architecture design drawings. For example, in the software system deployment scenario, the network architecture of the software system needs to be designed first, and then deployed according to the designed deployment architecture diagram in the actual deployment phase.

[0003] In related technologies, users can first design the network architecture through the architecture management platform on the local architecture management device, and then generate network architecture design drawings according to the network architecture design. During the project deployment phase, the staff will deploy the software system on the server according to the network architecture design drawings.

[0004] However, in the actual deployment process, the deployment may not be carried out according to the network architecture design drawings, and the user has no way to verify the actual deployment architecture, resulting in low reliability of the system network architecture. Summary of the invention

[0005] The present application provides a network architecture verification method, device, equipment and storage medium to solve the problem that verification cannot be performed after the network architecture is changed.

[0006] In a first aspect, the present application provides a method for verifying a network architecture, comprising:

[0007] Determine the target network architecture to be verified;

[0008] Performing detection processing on the target network architecture in a server cluster to obtain current architecture information corresponding to the target network architecture, wherein the current architecture information includes component information of at least one current component and a connection relationship between the at least one current component;

[0009] Acquire initial architecture information corresponding to the target network architecture, wherein the initial architecture information includes component information of at least one initial component and a connection relationship between the at least one initial component;

[0010] Determine, according to the current architecture information and the initial architecture information, a verification result of the target network architecture, wherein the verification result is that the architecture is consistent or inconsistent;

[0011] When the verification result is that the architecture is inconsistent, architecture difference information between the current architecture information and the initial architecture information is determined, and the architecture difference information is sent to an architecture management device.

[0012] In a possible design, the target network architecture is detected and processed in a server cluster to obtain current architecture information corresponding to the target network architecture, including:

[0013] Determining at least one component type to be detected, the at least one component type comprising at least one of an application, middleware, or a database;

[0014] Determining a plurality of components to be detected in the server cluster according to the at least one component type;

[0015] Determine a target architecture identifier corresponding to the target network architecture;

[0016] According to the target architecture identifier, the multiple components to be detected are detected and processed to obtain the current architecture information.

[0017] In a possible design, performing detection processing on the multiple components to be detected according to the target architecture identifier to obtain the current architecture information includes:

[0018] Acquire configuration information of each component to be detected, wherein the configuration information includes an architecture identifier corresponding to the component to be detected, component information of the component to be detected, and a connection relationship between the component to be detected and other components;

[0019] Determine, according to the configuration information of each component to be detected, the at least one current component among the multiple components to be detected, the architecture identifier of the current component being the target architecture identifier;

[0020] Determining a connection relationship between the at least one current component according to the configuration information of each current component;

[0021] Component information of the current component is obtained from the configuration information of the current component, and it is determined that the current architecture information includes component information of at least one current component and a connection relationship between the at least one current component.

[0022] In one possible design, determining a verification result of the target network architecture according to the current architecture information and the initial architecture information includes:

[0023] Determining whether the at least one current component and the at least one initial component are the same;

[0024] If so, determining a correspondence between the at least one current component and the at least one initial component, and determining a verification result of the target network architecture based on the correspondence, the current architecture information, and the initial architecture information;

[0025] If not, it is determined that the verification result is that the architecture is inconsistent.

[0026] In one possible design, determining a verification result of the target network architecture according to the corresponding relationship, the current architecture information, and the initial architecture information includes:

[0027] According to the corresponding relationship, determining at least one component pair among the at least one current component and the at least one initial component, wherein the component pair includes one current component and one initial component;

[0028] For any component pair, according to the component information of each component in the component pair and the connection relationship between the component and other components, a sub-verification result of the component pair is determined, and the sub-verification result is that the components are consistent or inconsistent;

[0029] If the sub-verification results of each component pair are respectively component consistent, then determining that the verification result is architecture consistent;

[0030] If a sub-verification result of a component pair in the at least one component pair is component inconsistency, the verification result is determined to be architecture inconsistency.

[0031] In a possible design, determining a sub-verification result of the component pair according to the component information of each component in the component pair and a connection relationship between the component and other components includes:

[0032] Determining a first initial component and a first current component included in the component pair;

[0033] If the component information of the first initial component is the same as the component information of the first current component, and the connection relationship of the first initial component is the same as the connection relationship of the first current component, determining that the sub-verification result is component consistency;

[0034] If the component information of the first initial component is different from the component information of the first current component, or the connection relationship of the first initial component is different from the connection relationship of the first current component, it is determined that the sub-verification result is component inconsistency.

[0035] In one possible design, the method further includes:

[0036] Obtaining a deployment request, wherein the deployment request includes architecture information, wherein the architecture information includes component information of at least one component to be deployed and an association relationship between the at least one component to be deployed;

[0037] Determine the network resources corresponding to each component to be deployed in the server cluster according to the architecture information;

[0038] The at least one component to be deployed is deployed in the network resources of the server cluster.

[0039] In a second aspect, the present application provides a network architecture verification device, including: a first determination module, a detection processing module, a first acquisition module, a second determination module, and a third determination module, wherein:

[0040] The first determination module is used to determine a target network architecture to be verified;

[0041] The detection processing module is used to perform detection processing on the target network architecture in the server cluster to obtain current architecture information corresponding to the target network architecture, wherein the current architecture information includes component information of at least one current component and a connection relationship between the at least one current component;

[0042] The first acquisition module is used to acquire initial architecture information corresponding to the target network architecture, wherein the initial architecture information includes component information of at least one initial component and a connection relationship between the at least one initial component;

[0043] The second determination module is used to determine a verification result of the target network architecture according to the current architecture information and the initial architecture information, wherein the verification result is that the architecture is consistent or inconsistent;

[0044] The third determination module is used to determine the architecture difference information between the current architecture information and the initial architecture information when the verification result is that the architecture is inconsistent, and send the architecture difference information to the architecture management device.

[0045] In a possible design, the detection processing module is specifically used for:

[0046] Determining at least one component type to be detected, the at least one component type comprising at least one of an application, middleware, or a database;

[0047] Determining a plurality of components to be detected in the server cluster according to the at least one component type;

[0048] Determine a target architecture identifier corresponding to the target network architecture;

[0049] According to the target architecture identifier, the multiple components to be detected are detected and processed to obtain the current architecture information.

[0050] In a possible design, the detection processing module is specifically used for:

[0051] Acquire configuration information of each component to be detected, wherein the configuration information includes an architecture identifier corresponding to the component to be detected, component information of the component to be detected, and a connection relationship between the component to be detected and other components;

[0052] Determine, according to the configuration information of each component to be detected, the at least one current component among the multiple components to be detected, the architecture identifier of the current component being the target architecture identifier;

[0053] Determining a connection relationship between the at least one current component according to the configuration information of each current component;

[0054] Component information of the current component is obtained from the configuration information of the current component, and it is determined that the current architecture information includes component information of at least one current component and a connection relationship between the at least one current component.

[0055] In a possible design, the second determining module is specifically used to:

[0056] Determining whether the at least one current component and the at least one initial component are the same;

[0057] If so, determining a correspondence between the at least one current component and the at least one initial component, and determining a verification result of the target network architecture based on the correspondence, the current architecture information, and the initial architecture information;

[0058] If not, it is determined that the verification result is that the architecture is inconsistent.

[0059] In a possible design, the second determining module is specifically used to:

[0060] According to the corresponding relationship, determining at least one component pair among the at least one current component and the at least one initial component, wherein the component pair includes one current component and one initial component;

[0061] For any component pair, according to the component information of each component in the component pair and the connection relationship between the component and other components, a sub-verification result of the component pair is determined, and the sub-verification result is that the components are consistent or inconsistent;

[0062] If the sub-verification results of each component pair are respectively component consistent, then determining that the verification result is architecture consistent;

[0063] If a sub-verification result of a component pair in the at least one component pair is component inconsistency, the verification result is determined to be architecture inconsistency.

[0064] In a possible design, the second determining module is specifically used to:

[0065] Determining a first initial component and a first current component included in the component pair;

[0066] If the component information of the first initial component is the same as the component information of the first current component, and the connection relationship of the first initial component is the same as the connection relationship of the first current component, determining that the sub-verification result is component consistency;

[0067] If the component information of the first initial component is different from the component information of the first current component, or the connection relationship of the first initial component is different from the connection relationship of the first current component, it is determined that the sub-verification result is component inconsistency.

[0068] In a possible design, the network architecture verification device further includes: a second acquisition module, a fourth determination module and a deployment module, wherein:

[0069] The second acquisition module is used to acquire a deployment request, wherein the deployment request includes architecture information, and the architecture information includes component information of at least one component to be deployed and an association relationship between the at least one component to be deployed;

[0070] The fourth determination module is used to determine the network resources corresponding to each component to be deployed in the server cluster according to the architecture information;

[0071] The deployment module is used to deploy the at least one component to be deployed in the network resources of the server cluster.

[0072] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor and a memory; the memory stores computer execution instructions; at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the verification method of the network architecture as described in the first aspect and various possible designs of the first aspect.

[0073] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, a verification method for a network architecture as described in the first aspect and various possible designs of the first aspect is implemented.

[0074] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the verification method of the network architecture as described in the first aspect and various possible designs of the first aspect.

[0075] The network architecture verification method, device, equipment and storage medium provided in the present application can obtain the currently deployed network architecture information and the initially designed network architecture information when the network architecture needs to be verified, and compare and verify the current architecture information and the initial architecture information. If the verified architectures are inconsistent, the architecture difference information is further determined and fed back to the architecture management device. Through the above method, the differentiated information of the currently deployed architecture and the previously designed architecture can be verified, thereby improving the reliability of the network architecture. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0077] Figure 1 A schematic diagram of the system architecture provided for an embodiment of the present application;

[0078] Figure 2 A flowchart of a network architecture verification method provided in an embodiment of the present application;

[0079] Figure 3 A schematic diagram of a target network architecture provided by an embodiment of the present application;

[0080] Figure 4 A schematic diagram of the deployment architecture diagram provided in the embodiment of the present application;

[0081] Figure 5 A schematic diagram of an architecture management interface of an architecture management device provided in an embodiment of the present application;

[0082] Figure 6 A process diagram of a method for determining a target network architecture verification result provided in an embodiment of the present application;

[0083] Figure 7 A schematic diagram of the process of deploying components in a server cluster provided in an embodiment of the present application;

[0084] Figure 8 A schematic diagram of a verification method for a network architecture provided in an embodiment of the present application;

[0085] Fig. 9 A schematic diagram of the structure of a verification device for a network architecture provided in an embodiment of the present application;

[0086] Fig.10 A schematic diagram of the structure of another network architecture verification device provided in an embodiment of the present application;

[0087] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0088] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0089] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0090] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.

[0091] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0092] For ease of understanding, the following Figure 1 , the system architecture applicable to the embodiments of the present application is described.

[0093] Figure 1 This is a schematic diagram of the system architecture provided by the embodiment of this application. Figure 1 , including an architecture management device 101 and a server cluster 102. The architecture management device 101 can be a local device of the user. The server cluster 102 can include a large number of server resources, such as computing resources, storage resources, network resources, etc. A cloud platform can be set in the server cluster 102. The user can design the network architecture of the cloud platform in the architecture management device 101 and deploy it to the server cluster 102. The architecture management device 101 can be provided with an architecture management software tool, and the staff can obtain the network architecture difference information of the cloud platform in the server cluster 102 through the software tool.

[0094] In related technologies, users can first design the network architecture through the architecture management platform on the local architecture management device, and then generate network architecture design drawings according to the network architecture design. During the project deployment phase, the staff will deploy the software system on the server according to the network architecture design drawings. However, in the actual deployment process, the deployment may not be carried out according to the network architecture design drawings, and the user has no way to verify the actual deployment architecture, resulting in low reliability of the system network architecture.

[0095] In response to the above technical problems, in an embodiment of the present application, when it is necessary to verify the network architecture, the currently deployed network architecture information and the initially designed network architecture information can be obtained, and the current architecture information and the initial architecture information can be compared and verified. If the verified architectures are inconsistent, the architecture difference information is further determined and fed back to the architecture management device. Through the above method, the differentiated information of the currently deployed architecture and the previously designed architecture can be verified, thereby improving the reliability of the network architecture.

[0096] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0097] Figure 2 A flowchart of a network architecture verification method provided in an embodiment of the present application. Figure 2 As shown, the method may include the following steps:

[0098] S201. Determine the target network architecture to be verified.

[0099] The execution subject of the embodiment of the present application can be a target server in a server cluster, or a verification device of a network architecture set in a server. The verification device of the network architecture can be implemented by software, or by a combination of software and hardware.

[0100] The target network architecture may refer to a network architecture corresponding to a cloud platform deployed on a server. The target network architecture may include component information of at least one component and a connection relationship between at least one component.

[0101] Components may refer to various hardware and software units that constitute the network architecture. For example, components may refer to middleware, applications, databases, storage devices, etc. Component information may refer to specific description information or configuration parameters of a component. For example, if a component is a storage device, component information may refer to the storage capacity of the storage device. The connection relationship between components may refer to the topological structure of the network architecture and the path of data flow. The connection relationship may include physical connection, logical connection, protocol standard, security policy, etc. For example, the master server and slave server in the database use a master-slave connection to transmit data.

[0102] Next, combine Figure 3 ,The target network architecture is explained through specific examples.

[0103] Figure 3 For a schematic diagram of the target network architecture provided in the embodiment of the present application, please refer to Figure 3 , including microservice gateway, investment control service, investment control database and investment control service cache. The data flow flows from the microservice gateway to the investment control service, and then from the investment control service to the investment control service cache and investment control database.

[0104] S202: Detect and process the target network architecture in the server cluster to obtain current architecture information corresponding to the target network architecture.

[0105] The current architecture information includes component information of at least one current component and a connection relationship between at least one current component.

[0106] The current architecture information can be determined in the following manner: determine at least one component type to be detected, the at least one component type including at least one of an application, a middleware, or a database; based on the at least one component type, determine multiple components to be detected in a server cluster; determine a target architecture identifier corresponding to the target network architecture; and based on the target architecture identifier, perform detection processing on the multiple components to be detected to obtain the current architecture information.

[0107] Among them, component types may include applications, middleware and databases. For example, if the component type is application, the corresponding components may include desktop applications, mobile applications, microservices, etc.; if the component type is middleware, the corresponding components may include message queues, application servers, cache systems, etc.; if the component type is database, the corresponding components may include relational database management systems, data warehouses, graph databases, etc.

[0108] The target architecture identifier may be used to indicate the target network architecture to be verified, that is, the server cluster may have multiple components, and the target network architecture may be composed of components having the target architecture identifier.

[0109] The detection process may refer to detecting component information of components and connection relationships between components.

[0110] The detection process can be performed in the following manner: obtaining configuration information of each component to be detected; determining at least one current component among multiple components to be detected based on the configuration information of each component to be detected, and the architecture identifier of the current component is the target architecture identifier; determining a connection relationship between at least one current component based on the configuration information of each current component; obtaining component information of the current component in the configuration information of the current component, and determining that the current architecture information includes component information of at least one current component and a connection relationship between at least one current component.

[0111] The configuration information may include an architecture identifier corresponding to the component to be detected, component information of the component to be detected, and a connection relationship between the component to be detected and other components;

[0112] S203: Obtain initial architecture information corresponding to the target network architecture.

[0113] The initial architecture information includes component information of at least one initial component and a connection relationship between at least one initial component.

[0114] The initial architecture information can be determined in the following manner: obtain a deployment architecture diagram drawn by a user in an architecture management device, detect the review status of the deployment architecture diagram, and in response to the review status being passed, structure the deployment architecture diagram to obtain the initial architecture information and target architecture identifier corresponding to the deployment architecture diagram, and send the initial architecture information and target architecture identifier to the target server; the target server stores the initial architecture information and target architecture identifier in a database corresponding to the server cluster, and the target server can obtain the initial architecture information based on the target architecture identifier.

[0115] Next, combine Figure 4 , through specific examples, the deployment architecture diagram drawn by the user in the architecture management device is explained.

[0116] Figure 4 For a schematic diagram of the deployment architecture diagram provided in the embodiment of the present application, please refer to Figure 4, including an architecture diagram designer. The architecture diagram designer can be a software tool in the architecture management device, which can be used to draw deployment architecture diagrams. The architecture diagram designer includes three parts: the component bar, the architecture design area, and the component information. The component bar includes application controls, middleware controls, and database controls. Users can click the component bar to select the required components, and can drag the required components to the architecture design area by dragging. The architecture design area includes the architecture diagram designed by the user, and the architecture diagram includes the connection methods between components. By clicking on the component in the architecture design area, the user can display the component information. The component information can include component information such as cluster name, deployment method, data center, environment type, host specification, deployment area, number of nodes, etc. The user can configure the component information in the component information area.

[0117] Next, combine Figure 5 , the architecture management interface in the architecture management device is explained through specific examples.

[0118] Figure 5 For a schematic diagram of the architecture management interface of the architecture management device provided in the embodiment of the present application, see Figure 5 , including the architecture management interface, which includes the identification number, version number, status, application, deployment status, and operation of the deployment architecture diagram. Users can browse the historically drawn deployment architecture diagrams in the architecture management interface in the architecture management device, design and delete the historically drawn deployment architecture diagrams, and click the "Add" control in the architecture management interface to add a new deployment architecture diagram.

[0119] S204. Determine a verification result of the target network architecture according to the current architecture information and the initial architecture information.

[0120] Among them, the verification result of the target network architecture is architecture consistency or architecture inconsistency.

[0121] The verification result of the target network architecture can be determined in the following manner: determine whether at least one current component and at least one initial component are the same; if so, determine the correspondence between at least one current component and at least one initial component, and determine the verification result of the target network architecture based on the correspondence, current architecture information and initial architecture information; if not, determine that the verification result is architecture inconsistency.

[0122] The corresponding relationship may mean that the current component is identical to at least one initial component. According to the corresponding relationship, the current component and the identical initial component may be determined as a component pair, wherein the component pair includes a current component and an initial component.

[0123] S205: When the verification result is that the architecture is inconsistent, determine the architecture difference information between the current architecture information and the initial architecture information, and send the architecture difference information to the architecture management device.

[0124] The architecture difference information may refer to the difference between the current architecture information and the initial architecture information, and the architecture difference information may include first difference information between the component information of the first initial component and the component information of the first current component in the component pair, and second difference information between the connection relationship of the first initial component and the connection relationship of the first current component, wherein the component pair includes the first initial component and the first current component.

[0125] Optionally, the architecture management device can obtain a deployment architecture diagram from a database, determine a first initial component that is different from the first current component based on the architecture difference information, and mark the first initial component on the deployment architecture diagram. The marking method can be: highlighting the first initial component.

[0126] For example, assuming that the first initial component and the first current component in the component pair are databases, the component information of the first initial component is: the database capacity is 1T, and the component information of the first current component is: the database capacity is 10T, then the first difference information can be that the capacity of the database is expanded from 1T to 10T; the connection mode of the first initial component is: the data flow flows from the service component to the database, and the connection mode of the first current component is: the data flow flows from the gateway component to the database, then, the second difference information can be that the data flow source of the database is updated from the service component to the gateway component.

[0127] In an embodiment of the present application, when it is necessary to verify the network architecture, the target network architecture to be verified can be determined first, and the target network architecture can be detected and processed in the server cluster to determine the current architecture information corresponding to the target network architecture, and the initial architecture information corresponding to the target network architecture can be obtained from the database. The verification result of the target network architecture is determined based on the current architecture information and the target architecture information. If the verification result is that the architecture is inconsistent, the architecture difference information between the current architecture information and the target architecture information is determined, and the architecture difference information is sent to the architecture management device. Through the above method, the difference information of the network architecture can be verified, thereby improving the reliability of the network architecture.

[0128] Based on any of the above embodiments, Figure 6 , the method for determining the verification results of the target network architecture is explained in detail.

[0129] Figure 6 A process diagram of a method for determining a target network architecture verification result provided in an embodiment of the present application. Figure 6 , the method may include:

[0130] S601. Obtain current architecture information and initial architecture information.

[0131] It should be noted that the execution process of the above S601 can refer to S202-S203, which will not be repeated here.

[0132] S602: Determine whether at least one current component is the same as at least one initial component.

[0133] According to the current architecture information, at least one current component is determined. According to the initial architecture information, at least one initial component is determined. For any current component, the current component and at least one initial component are compared in turn to see if they are the same.

[0134] For example, assuming that the current component is a microservice gateway and the initial component is also a microservice gateway, it is determined that the current component is the same as the initial component.

[0135] If yes, execute S603.

[0136] If not, execute S608.

[0137] S603: Determine a correspondence between at least one current component and at least one initial component, and determine at least one component pair in the at least one current component and the at least one initial component according to the correspondence.

[0138] The component pair includes a current component and an initial component.

[0139] The component pair can be determined in the following manner: if it is determined that the current component is the same as the initial component, a corresponding relationship is determined between the current component and the initial component. For example, assuming that the current architecture information includes the first investment control database and the second investment control database, and the initial architecture information includes the third investment control database, two component pairs can be determined, namely the first component pair and the second component pair, wherein the first component pair includes the first investment control database and the third investment control database, and the second component pair includes the second investment control database and the third investment control database.

[0140] S604: For any component pair, determine a first initial component and a first current component included in the component pair.

[0141] The first initial component is a component in the initial architecture information, and the first current component is a component in the current architecture information.

[0142] S605: Determine whether the component information of the first initial component and the first current component are the same.

[0143] If yes, execute S606

[0144] If not, execute S608.

[0145] S606: Determine whether the connection relationship between the first initial component and the first current component is the same.

[0146] If yes, the sub-verification result is that the components are consistent, and S607 is executed.

[0147] If not, the sub-verification result is that the components are inconsistent, and S608 is executed.

[0148] S607: If the sub-verification results of each component pair are respectively component consistent, then the verification result of the target network architecture is determined to be architecture consistent.

[0149] S608: Determine that the verification result of the target network architecture is that the architecture is inconsistent.

[0150] In an embodiment of the present application, when it is necessary to verify the network architecture, the current architecture information and the initial architecture information can be obtained first, and it can be determined whether at least one current component and at least one initial component are the same based on the current architecture information and the initial architecture information. If so, the correspondence between at least one current component and at least one initial component is determined, and at least one component pair is determined in at least one current component and at least one initial component based on the correspondence; for any component pair, it is determined whether the component information of the first initial component and the first current component in the component pair is the same, if the same, it is determined whether the connection relationship between the first initial component and the first current component is the same, if the sub-verification results of each component pair are component consistency, then the verification result of the target network architecture is determined to be architecture consistency; if the component information of the first initial component is different from the component information of the first current component, or the connection relationship of the first initial component is different from the connection relationship of the first current component, then the sub-verification result is determined to be component inconsistency, and if there is a component pair in at least one component pair whose sub-verification result is component inconsistency, then the verification result is determined to be architecture inconsistency, thereby improving the reliability of the network architecture.

[0151] Based on any of the above embodiments, Figure 7 , which provides detailed instructions on how to deploy components within a server cluster.

[0152] Figure 7 A schematic diagram of the process of deploying components in a server cluster provided in an embodiment of the present application. Figure 7 , the method may include:

[0153] S701: Get a deployment request.

[0154] The deployment request may include architecture information, and the architecture information includes component information of at least one component to be deployed and an association relationship between at least one component to be deployed.

[0155] The architecture information can be determined in the following manner: obtaining a deployment architecture diagram drawn by a user in an architecture management device, detecting a review status of the deployment architecture diagram, and in response to the review status being passed, structuring the deployment structure diagram to obtain architecture information.

[0156] For example, the architecture information may be: the component to be deployed is a service cache, the component information of the component to be deployed is that the cache size is 256MB, and the association between the components to be deployed is: receiving the data stream of the application server component and synchronizing the data stream to the database component.

[0157] S702: Determine the network resources corresponding to each component to be deployed in the server cluster according to the deployment request.

[0158] The network resources can be determined in the following ways: based on the deployment request, the architecture information can be determined; based on the architecture information, a work order application list can be generated, and the work order application list can include at least one work order application, and the work order application is used to apply for network resources of the components to be deployed in the server cluster; the server cluster obtains the work order application list, and determines the component information of the components to be deployed based on any work order application; based on the component information of the components to be deployed, the corresponding network resources are determined in the server cluster, the status of the work order application is changed to a completed status, and a target architecture identifier is added to the network resource.

[0159] S703: Deploy at least one component to be deployed in the network resources of the server cluster.

[0160] In response to the status of any work order application in the work order application list being in a completed state, the components to be deployed are deployed according to the association relationship between the components to be deployed according to the architecture information.

[0161] In an embodiment of the present application, before verifying the network architecture, it is necessary to first deploy components in the server cluster. A deployment request can be obtained first. The deployment request may include architecture information. The architecture information may include component information of at least one component to be deployed, and an association relationship between at least one component to be deployed. Based on the architecture information, a work order application list can be generated. Based on the work order application list, the network resources corresponding to each component to be deployed can be determined in the server cluster. In response to the status of any work order application in the work order application list being completed, at least one component to be deployed is deployed in the network resources of the server cluster, thereby improving the reliability of the network architecture.

[0162] Next, combine Figure 8 , through specific examples, the verification method of the network architecture of the embodiment of the present application is explained.

[0163] Figure 8 For a schematic diagram of a verification method for a network architecture provided in an embodiment of the present application, see Figure 8, including a network architecture verification method in three stages of an architecture management device and a server cluster, the three stages including a design stage, a review stage, and an implementation stage. In the design stage, a user can draw an architecture diagram in an architecture management device, and review the architecture diagram in the review stage. In response to the architecture diagram passing the review, the architecture diagram is released in the implementation stage, and the architecture diagram is synchronized with the server cluster. The server cluster can be automatically deployed according to the architecture diagram. When a change in the network architecture is detected, an architecture change prompt can be sent to the architecture management device, and the architecture management device can modify the architecture diagram according to the architecture change prompt.

[0164] Fig. 9 A schematic diagram of a network architecture verification device provided in an embodiment of the present application. Fig. 9 The network architecture verification device 10 includes: a first determination module 11, a detection processing module 12, a first acquisition module 13, a second determination module 14, and a third determination module 15, wherein:

[0165] The first determination module 11 is used to determine the target network architecture to be verified;

[0166] The detection processing module 12 is used to perform detection processing on the target network architecture in the server cluster to obtain current architecture information corresponding to the target network architecture, wherein the current architecture information includes component information of at least one current component and a connection relationship between the at least one current component;

[0167] The first acquisition module 13 is used to acquire initial architecture information corresponding to the target network architecture, wherein the initial architecture information includes component information of at least one initial component and a connection relationship between the at least one initial component;

[0168] The second determination module 14 is used to determine the verification result of the target network architecture according to the current architecture information and the initial architecture information, wherein the verification result is that the architecture is consistent or inconsistent;

[0169] The third determination module 15 is used to determine the architecture difference information between the current architecture information and the initial architecture information when the verification result is that the architecture is inconsistent, and send the architecture difference information to the architecture management device.

[0170] A network architecture verification device provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0171] In a possible design, the detection processing module 12 is specifically used for:

[0172] Determining at least one component type to be detected, the at least one component type comprising at least one of an application, middleware, or a database;

[0173] Determining a plurality of components to be detected in the server cluster according to the at least one component type;

[0174] Determine a target architecture identifier corresponding to the target network architecture;

[0175] According to the target architecture identifier, the multiple components to be detected are detected and processed to obtain the current architecture information.

[0176] In a possible design, the detection processing module 12 is specifically used for:

[0177] Acquire configuration information of each component to be detected, wherein the configuration information includes an architecture identifier corresponding to the component to be detected, component information of the component to be detected, and a connection relationship between the component to be detected and other components;

[0178] Determine, according to the configuration information of each component to be detected, the at least one current component among the multiple components to be detected, the architecture identifier of the current component being the target architecture identifier;

[0179] Determining a connection relationship between the at least one current component according to the configuration information of each current component;

[0180] Component information of the current component is obtained from the configuration information of the current component, and it is determined that the current architecture information includes component information of at least one current component and a connection relationship between the at least one current component.

[0181] In a possible design, the second determining module 14 is specifically configured to:

[0182] Determining whether the at least one current component and the at least one initial component are the same;

[0183] If so, determining a correspondence between the at least one current component and the at least one initial component, and determining a verification result of the target network architecture based on the correspondence, the current architecture information, and the initial architecture information;

[0184] If not, it is determined that the verification result is that the architecture is inconsistent.

[0185] In a possible design, the second determining module 14 is specifically configured to:

[0186] According to the corresponding relationship, determining at least one component pair among the at least one current component and the at least one initial component, wherein the component pair includes one current component and one initial component;

[0187] For any component pair, according to the component information of each component in the component pair and the connection relationship between the component and other components, a sub-verification result of the component pair is determined, and the sub-verification result is that the components are consistent or inconsistent;

[0188] If the sub-verification results of each component pair are respectively component consistent, then determining that the verification result is architecture consistent;

[0189] If a sub-verification result of a component pair in the at least one component pair is component inconsistency, the verification result is determined to be architecture inconsistency.

[0190] In a possible design, the second determining module 14 is specifically configured to:

[0191] Determining a first initial component and a first current component included in the component pair;

[0192] If the component information of the first initial component is the same as the component information of the first current component, and the connection relationship of the first initial component is the same as the connection relationship of the first current component, determining that the sub-verification result is component consistency;

[0193] If the component information of the first initial component is different from the component information of the first current component, or the connection relationship of the first initial component is different from the connection relationship of the first current component, it is determined that the sub-verification result is component inconsistency.

[0194] Fig.10 A schematic diagram of the structure of another network architecture verification device provided in an embodiment of the present application. Fig. 9 Based on the examples shown, see Fig.10 The network architecture verification device 10 further includes: a second acquisition module 16, a fourth determination module 17 and a deployment module 18, wherein:

[0195] The second acquisition module 16 is used to acquire a deployment request, wherein the deployment request includes architecture information, and the architecture information includes component information of at least one component to be deployed and an association relationship between the at least one component to be deployed;

[0196] The fourth determination module 17 is used to determine the network resources corresponding to each to-be-deployed component in the server cluster according to the architecture information;

[0197] The deployment module 18 is used to deploy the at least one component to be deployed in the network resources of the server cluster.

[0198] A network architecture verification device provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0199] Fig.11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.11 As shown, the electronic device 20 may include: a transceiver 21 , a processor 22 , and a memory 23 .

[0200] The processor 22 executes the computer execution instructions stored in the memory, so that the processor 22 executes the scheme in the above embodiment. The processor 22 can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0201] The memory 23 is connected to the processor 22 via a system bus and completes communication between them. The memory 23 is used to store computer program instructions.

[0202] The transceiver 21 can be used to obtain tasks to be run and configuration information of tasks to be run. The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.

[0203] The electronic device provided in the embodiment of the present application may be the terminal device of the above embodiment.

[0204] An embodiment of the present application also provides a chip for running instructions, which is used to execute the technical solution of the network architecture verification method in the above embodiment.

[0205] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the network architecture verification method in the above embodiment.

[0206] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, it can implement the technical solution of the network architecture verification method in the above embodiment.

[0207] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0208] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.

[0209] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0210] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.

[0211] It should be understood that the above processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.

[0212] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0213] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0214] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0215] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic control unit or a main control device.

[0216] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0217] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for verifying a network architecture, characterized in that: include: Determine the target network architecture to be verified; Performing detection processing on the target network architecture in a server cluster to obtain current architecture information corresponding to the target network architecture, wherein the current architecture information includes component information of at least one current component and a connection relationship between the at least one current component; Acquire initial architecture information corresponding to the target network architecture, wherein the initial architecture information includes component information of at least one initial component and a connection relationship between the at least one initial component; Determine, according to the current architecture information and the initial architecture information, a verification result of the target network architecture, wherein the verification result is that the architecture is consistent or inconsistent; When the verification result is that the architecture is inconsistent, architecture difference information between the current architecture information and the initial architecture information is determined, and the architecture difference information is sent to an architecture management device.

2. The method according to claim 1, characterized in that Detecting and processing the target network architecture in the server cluster to obtain current architecture information corresponding to the target network architecture includes: Determining at least one component type to be detected, the at least one component type comprising at least one of an application, middleware, or a database; Determining a plurality of components to be detected in the server cluster according to the at least one component type; Determine a target architecture identifier corresponding to the target network architecture; According to the target architecture identifier, the multiple components to be detected are detected and processed to obtain the current architecture information.

3. The method according to claim 2, characterized in that According to the target architecture identifier, the multiple components to be detected are detected and processed to obtain the current architecture information, including: Acquire configuration information of each component to be detected, wherein the configuration information includes an architecture identifier corresponding to the component to be detected, component information of the component to be detected, and a connection relationship between the component to be detected and other components; Determine, according to the configuration information of each component to be detected, the at least one current component among the multiple components to be detected, the architecture identifier of the current component being the target architecture identifier; Determining a connection relationship between the at least one current component according to the configuration information of each current component; Component information of the current component is obtained from the configuration information of the current component, and it is determined that the current architecture information includes component information of at least one current component and a connection relationship between the at least one current component.

4. The method according to any one of claims 1 to 3, characterized in that: Determining a verification result of the target network architecture according to the current architecture information and the initial architecture information includes: Determining whether the at least one current component and the at least one initial component are the same; If so, determining a correspondence between the at least one current component and the at least one initial component, and determining a verification result of the target network architecture based on the correspondence, the current architecture information, and the initial architecture information; If not, it is determined that the verification result is that the architecture is inconsistent.

5. The method according to claim 4, characterized in that Determining a verification result of the target network architecture according to the corresponding relationship, the current architecture information, and the initial architecture information includes: According to the corresponding relationship, determining at least one component pair among the at least one current component and the at least one initial component, wherein the component pair includes one current component and one initial component; For any component pair, according to the component information of each component in the component pair and the connection relationship between the component and other components, a sub-verification result of the component pair is determined, and the sub-verification result is that the components are consistent or inconsistent; If the sub-verification results of each component pair are respectively component consistent, then determining that the verification result is architecture consistent; If a sub-verification result of a component pair in the at least one component pair is component inconsistency, the verification result is determined to be architecture inconsistency.

6. The method according to claim 5, characterized in that Determining a sub-verification result of the component pair according to the component information of each component in the component pair and the connection relationship between the component and other components includes: Determining a first initial component and a first current component included in the component pair; If the component information of the first initial component is the same as the component information of the first current component, and the connection relationship of the first initial component is the same as the connection relationship of the first current component, determining that the sub-verification result is component consistency; If the component information of the first initial component is different from the component information of the first current component, or the connection relationship of the first initial component is different from the connection relationship of the first current component, it is determined that the sub-verification result is component inconsistency.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Obtaining a deployment request, wherein the deployment request includes architecture information, wherein the architecture information includes component information of at least one component to be deployed and an association relationship between the at least one component to be deployed; Determine the network resources corresponding to each component to be deployed in the server cluster according to the architecture information; The at least one component to be deployed is deployed in the network resources of the server cluster.

8. A network architecture verification device, characterized in that: include: A first determination module, a detection processing module, a first acquisition module, a second determination module, and a third determination module, wherein: The first determination module is used to determine a target network architecture to be verified; The detection processing module is used to perform detection processing on the target network architecture in the server cluster to obtain current architecture information corresponding to the target network architecture, wherein the current architecture information includes component information of at least one current component and a connection relationship between the at least one current component; The first acquisition module is used to acquire initial architecture information corresponding to the target network architecture, wherein the initial architecture information includes component information of at least one initial component and a connection relationship between the at least one initial component; The second determination module is used to determine a verification result of the target network architecture according to the current architecture information and the initial architecture information, wherein the verification result is that the architecture is consistent or inconsistent; The third determination module is used to determine the architecture difference information between the current architecture information and the initial architecture information when the verification result is that the architecture is inconsistent, and send the architecture difference information to the architecture management device.

9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.