CN111431982B - gRPC-based system operation and maintenance method, equipment, storage medium and device - Google Patents

gRPC-based system operation and maintenance method, equipment, storage medium and device Download PDF

Info

Publication number
CN111431982B
CN111431982B CN202010189753.7A CN202010189753A CN111431982B CN 111431982 B CN111431982 B CN 111431982B CN 202010189753 A CN202010189753 A CN 202010189753A CN 111431982 B CN111431982 B CN 111431982B
Authority
CN
China
Prior art keywords
maintenance
target
grpc
network control
control system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010189753.7A
Other languages
Chinese (zh)
Other versions
CN111431982A (en
Inventor
王立坤
闵乾祺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202010189753.7A priority Critical patent/CN111431982B/en
Publication of CN111431982A publication Critical patent/CN111431982A/en
Application granted granted Critical
Publication of CN111431982B publication Critical patent/CN111431982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a gRPC-based system operation and maintenance method, equipment, a storage medium and a device, wherein the method comprises the following steps: acquiring an operation and maintenance request, carrying out format conversion on the operation and maintenance request according to a preset Protobuf protocol standard, acquiring a target operation and maintenance request, sending the target operation and maintenance request to a target network control system through a preset gRPC communication frame, searching and feeding back target data according to the target operation and maintenance request by the target network control system, acquiring the target data through the preset gRPC communication frame, and carrying out operation and maintenance on the target network control system according to the target data; according to the invention, gRPC is used as a communication frame of the operation and maintenance system and the control system, and the communication data format is defined through protobuf, so that the operation and maintenance system and the control system can be decoupled as much as possible, the operation and maintenance are convenient to independently upgrade and maintain, the operation and maintenance cost is saved, and the operation and maintenance efficiency is improved.

Description

gRPC-based system operation and maintenance method, equipment, storage medium and device
Technical Field
The present invention relates to the field of system maintenance technologies, and in particular, to a gppc-based system operation and maintenance method, apparatus, storage medium, and storage device.
Background
Currently, large data centers usually require a plurality of network controller systems to work cooperatively, and controllers with different functions are usually complex in module and high in integration level, and a large amount of resources are required to be input for maintenance. In order to ensure the stability and reliability of the system, the operation and maintenance system which is highly coupled with the system in a large data center is usually used for assisting operation and maintenance personnel in monitoring the state of the system and checking the problems of the system.
With the development of cloud computing becoming mature, the operation and maintenance system of the large-scale data center bears more and more important functions, and reasonable design and functional decoupling and cost reduction become the design requirement of the operation and maintenance system. The traditional operation and maintenance system is usually highly coupled with a network controller, and information sharing cannot be achieved among different controllers, so that the operation and maintenance of the whole data center are difficult, and the operation and maintenance system is mainly characterized in that: 1. the data standards are not uniform and cannot exert value: the data of different network controllers have no unified standard specification, and the data consistency is poor, so that the data collected by an operation and maintenance system is difficult to process; 2. the systems are highly coupled and mutually restricted: the operation and maintenance system is unreasonable in design, high in coupling degree with the controller system, troublesome for upgrading and reconstruction of the respective system is caused, iterative updating of the system is not facilitated, and system development and maintenance cost is increased; 3. distributed management is difficult: for large-scale data centers, network controllers are generally distributed on network nodes in different physical positions, and highly-coupled operation and maintenance systems cannot realize data sharing in a distributed environment, so that operation and maintenance efficiency is seriously reduced, and operation and maintenance cost is increased. Therefore, how to design a more general centralized operation and maintenance method for a large network control system is a technical problem to be solved.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a gRPC-based system operation and maintenance method, gRPC-based system operation and maintenance equipment, a gRPC-based system operation and maintenance storage medium and gRPC-based system operation and maintenance device, and aims to solve the technical problem of designing a more general centralized operation and maintenance method for a large-scale network control system in the prior art.
In order to achieve the above object, the present invention provides a gppc-based system operation and maintenance method, which includes the following steps:
acquiring an operation and maintenance request, and performing format conversion on the operation and maintenance request according to a preset Protobuf protocol standard to acquire a target operation and maintenance request;
the target operation and maintenance request is sent to a target network control system through a preset gRPC communication framework, and target data is searched and fed back by the target network control system according to the target operation and maintenance request;
and acquiring the target data through the preset gRPC communication framework, and operating and maintaining the target network control system according to the target data.
Preferably, the method for operating and maintaining a system based on gRPC further includes, before the target network control system searches and feeds back the target data according to the target operation and maintenance request by sending the target operation and maintenance request to the target network control system through a preset gRPC communication frame:
analyzing the target operation and maintenance request to obtain address information, and judging whether the target network control system is a plurality of target network control systems according to the address information;
when the target network control systems are multiple, judging whether the target network control systems are deployed on the same equipment according to the address information, and obtaining a judging result;
determining a target data transmission strategy according to the judging result;
correspondingly, the step of sending the target operation and maintenance request to a target network control system through a preset gRPC communication frame, and searching and feeding back target data by the target network control system according to the target operation and maintenance request specifically comprises the following steps:
and sending the target operation and maintenance request to a target network control system through a preset gRPC communication frame according to the target data transmission strategy, and searching and feeding back target data by the target network control system according to the target operation and maintenance request.
Preferably, the determining the target data transmission policy according to the determination result includes:
when the judging result is that the target network control system is deployed on the same equipment, selecting a target RPC port matched with the target network control system from a preset RPC port library;
and taking the data transmission through the target RPC port as a target data transmission strategy.
Preferably, the acquiring the target data through the preset gRPC communication frame, and operating the target network control system according to the target data, includes:
acquiring the target data through the preset gRPC communication frame, and determining a fault troubleshooting request according to the target data;
the fault investigation request is sent to the target network control system through a preset gRPC communication frame, and the target network control system modifies the configuration of the target network control system according to the fault investigation request to obtain a modification result;
and acquiring the modification result through the preset gRPC communication framework, and operating and maintaining the target network control system according to the modification result.
Preferably, the obtaining the modification result through the preset gRPC communication frame, and operating the target network control system according to the modification result, includes:
acquiring the modification result through the preset gRPC communication framework, and determining the fault position of the target network control system according to the modification result;
and generating an operation and maintenance strategy according to the fault position, and operating and maintaining the target network control system according to the operation and maintenance strategy.
Preferably, generating an operation and maintenance policy according to the fault location, and operating and maintaining the target network control system according to the operation and maintenance policy, including:
and searching an operation and maintenance strategy corresponding to the fault position in a preset mapping relation table, and operating and maintaining the target network control system according to the operation and maintenance strategy, wherein the preset mapping relation table comprises a corresponding relation between the fault position and the operation and maintenance strategy.
Preferably, the sending the target operation and maintenance request to the network control system through the preset gRPC communication framework includes:
and sending the target operation and maintenance request to a gRPC server through a preset gRPC communication frame, performing authority verification on the target operation and maintenance request by the gRPC server, and sending the target operation and maintenance request to a network control system through the preset gRPC communication frame by the gRPC server when the target operation and maintenance request passes the authority verification.
In addition, in order to achieve the above objective, the present invention further proposes a gRPC-based system operation and maintenance device, where the gRPC-based system operation and maintenance device includes a memory, a processor, and a gRPC-based system operation and maintenance program stored on the memory and capable of running on the processor, where the gRPC-based system operation and maintenance program is configured to implement the steps of the gRPC-based system operation and maintenance method as described above.
In addition, in order to achieve the above object, the present invention further proposes a storage medium, on which a gRPC-based system operation and maintenance program is stored, which when executed by a processor, implements the steps of the gRPC-based system operation and maintenance method as described above.
In addition, in order to achieve the above object, the present invention further provides a gRPC-based system operation and maintenance device, where the gRPC-based system operation and maintenance device includes: the system comprises a format conversion module, a sending module and an operation and maintenance module;
the format conversion module is used for obtaining the operation and maintenance request, and converting the format of the operation and maintenance request according to a preset Protobuf protocol standard to obtain a target operation and maintenance request
The sending module is used for sending the target operation and maintenance request to a target network control system through a preset gRPC communication frame, and the target network control system searches and feeds back target data according to the target operation and maintenance request;
the operation and maintenance module is used for acquiring the target data through the preset gRPC communication frame and carrying out operation and maintenance on the target network control system according to the target data.
In the invention, an operation and maintenance request is acquired, format conversion is carried out on the operation and maintenance request according to a preset Protobuf protocol standard, a target operation and maintenance request is acquired, the target operation and maintenance request is sent to a target network control system through a preset gRPC communication frame, target data is searched and fed back according to the target operation and maintenance request by the target network control system, the target data is acquired through the preset gRPC communication frame, and operation and maintenance are carried out on the target network control system according to the target data; according to the invention, gRPC is used as a communication frame of the operation and maintenance system and the control system, and the communication data format is defined through protobuf, so that the operation and maintenance system and the control system can be decoupled as much as possible, the operation and maintenance are convenient to independently upgrade and maintain, the operation and maintenance cost is saved, and the operation and maintenance efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of the architecture of gRPC-based system operation and maintenance equipment of a hardware operation environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the gRPC-based system operation and maintenance method of the present invention;
FIG. 3 is a flow chart of a second embodiment of the gRPC-based system operation and maintenance method of the present invention;
FIG. 4 is a flow chart of a third embodiment of the gRPC-based system operation and maintenance method of the present invention;
fig. 5 is a block diagram of a first embodiment of the gRPC-based system operation and maintenance device of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a gppc-based system operation and maintenance device in a hardware operation environment according to an embodiment of the present invention.
As shown in fig. 1, the gRPC-based system operation and maintenance device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), and the optional user interface 1003 may also include a standard wired interface, a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 does not constitute a limitation of the gRPC-based system operation and maintenance device, and may include more or fewer components than shown, or certain components in combination, or a different arrangement of components.
As shown in FIG. 1, an operating system, a network communication module, a user interface module, and gRPC-based system operation and maintenance programs may be included in a memory 1005, which is considered a type of computer storage medium.
In the gRPC-based system operation and maintenance device shown in FIG. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting user equipment; the gRPC-based system operation and maintenance device invokes the gRPC-based system operation and maintenance program stored in the memory 1005 through the processor 1001, and executes the gRPC-based system operation and maintenance method provided by the embodiment of the invention.
Based on the above hardware structure, the embodiment of the gRPC-based system operation and maintenance method is provided.
Referring to fig. 2, fig. 2 is a flow chart of a first embodiment of a gRPC-based system operation and maintenance method according to the present invention.
In a first embodiment, the gRPC-based system operation and maintenance method includes the steps of:
step S10: and acquiring an operation and maintenance request, and performing format conversion on the operation and maintenance request according to a preset Protobuf protocol standard to acquire a target operation and maintenance request.
It should be understood that the execution body of the embodiment is the gRPC-based system operation and maintenance device, where the gRPC-based system operation and maintenance device may be an electronic device with a network communication function, such as a personal computer or a server.
It should be noted that, the gRPC-based system operation and maintenance device obtains an operation and maintenance request, and performs format conversion on the operation and maintenance request according to a preset Protobuf protocol standard, where the obtaining target operation and maintenance request may be that the network control system defines acceptable and processed message data through the preset Protobuf protocol standard, and then the gRPC-based system operation and maintenance device performs format conversion on the operation and maintenance request according to acceptable and processed message data defined by the network control system.
Step S20: and sending the target operation and maintenance request to a target network control system through a preset gRPC communication framework, and searching and feeding back target data by the target network control system according to the target operation and maintenance request.
It is appreciated that gRPC world Wide name gRPC remote procedure calls, a high performance open source remote procedure call (Remote Procedure Call, RPC) framework that can run on any system, uses Protobuf as the communication protocol; the RPC framework can refer to a function interface transparent to programmers and capable of calling the same naming standard which is not local in the software engineering project; protobuf communication protocol refers to a platform-independent, language-independent, extensible, lightweight and efficient protocol of serializing data structures, which can be used for network communication and data storage.
It should be noted that, the gRPC-based system operation and maintenance device may send the target operation and maintenance request to the target network control system through the preset gRPC communication frame, where the gRPC server extracts the message header and the message identification information of the target operation and maintenance request after receiving the message, and then routes the message according to the message header and the message identification information, and sends the target operation and maintenance request to the target network control system.
It should be noted that, the target network control system searches and feeds back the target data according to the target operation and maintenance request, which may be the request type of the target operation and maintenance request firstly, if the target operation and maintenance request is the database state of the query system, the target network control system obtains the system database through an internal method; if the target operation and maintenance request is other configuration states of the query system, the target network control system obtains the real-time configuration of the system through an internal method.
Step S30: and acquiring the target data through the preset gRPC communication framework, and operating and maintaining the target network control system according to the target data.
It should be noted that, the acquiring, by the gRPC-based system operation and maintenance device, the target data through the preset gRPC communication frame may be that the target network control system returns a processing result to the gRPC server, the gRPC server encapsulates the returned result after receiving the response message, and then the gRPC-based system operation and maintenance device acquires the target data through the preset gRPC communication frame.
In a first embodiment, an operation and maintenance request is obtained, format conversion is performed on the operation and maintenance request according to a preset Protobuf protocol standard, a target operation and maintenance request is obtained, the target operation and maintenance request is sent to a target network control system through a preset gRPC communication frame, target data is searched and fed back according to the target operation and maintenance request by the target network control system, the target data is obtained through the preset gRPC communication frame, and operation and maintenance are performed on the target network control system according to the target data; according to the embodiment, gRPC is used as a communication frame of the operation and maintenance system and the control system, and the communication data format is defined through protobuf, so that the operation and maintenance system and the control system can be decoupled as much as possible, independent upgrading and maintenance are convenient, operation and maintenance cost is saved, and operation and maintenance efficiency is improved.
Referring to fig. 3, fig. 3 is a flow chart of a second embodiment of the gRPC-based system operation and maintenance method according to the present invention, and the second embodiment of the gRPC-based system operation and maintenance method according to the present invention is proposed based on the first embodiment shown in fig. 2.
In a second embodiment, before the step S20, the method further includes:
step S101: and analyzing the target operation and maintenance request to obtain address information, and judging whether the target network control system is a plurality of target network control systems or not according to the address information.
It should be noted that, the number of the target network control systems may be plural, when the target operation and maintenance request needs to be sent to the plural target network control systems, it needs to be determined that the target network control systems are all disposed on the same physical device, and address information of the target network control systems may be obtained by analyzing the target operation and maintenance request.
Step S102: when the target network control systems are multiple, judging whether the target network control systems are deployed on the same equipment according to the address information, and obtaining a judging result.
It should be noted that, the determining, by the gRPC-based system operation and maintenance device, whether the target network control system is deployed on the same device according to the address information may be determining whether the address information is the same.
Step S103: and determining a target data transmission strategy according to the judging result.
When the address information is different, the target network control system is deployed on different physical devices, and the binding communication of the multiple control nodes can be realized through IP; when the address information is the same, it means that the target network control system is deployed on the same physical device, and binding communication can be achieved by opening different ports.
Accordingly, the step S20 includes:
step S20': and sending the target operation and maintenance request to a target network control system through a preset gRPC communication frame according to the target data transmission strategy, and searching and feeding back target data by the target network control system according to the target operation and maintenance request.
In a second embodiment, the step S30 includes:
step S301: and acquiring the target data through the preset gRPC communication framework, and determining a fault troubleshooting request according to the target data.
It should be noted that, the determining, by the gRPC-based system operation and maintenance device, the troubleshooting request according to the target data may be that the target data is sent to the client, and the troubleshooting request is determined by an operator of the client according to the target data, or may be that the troubleshooting request corresponding to the target data is searched in a database.
Step S302: and sending the fault checking request to the target network control system through a preset gRPC communication framework, and modifying the configuration of the target network control system by the target network control system according to the fault checking request to obtain a modification result.
It should be noted that, the gRPC-based system operation and maintenance device may only have status read authority for the network control system under normal conditions, and when the system encounters a fault and needs to be checked, the gRPC-based system operation and maintenance device may acquire write authority for the network control system through authority application, so as to realize behavior control for the network control system, and assist system operation and maintenance personnel in analyzing and positioning problems.
Step S303: and acquiring the modification result through the preset gRPC communication framework, and operating and maintaining the target network control system according to the modification result.
It may be understood that the system operation and maintenance device based on the gRPC may acquire the modification result through the preset gRPC communication frame, and perform operation and maintenance on the target network control system according to the modification result, or acquire the modification result through the preset gRPC communication frame, determine a fault location of the target network control system according to the modification result, generate an operation and maintenance policy according to the fault location, and perform operation and maintenance on the target network control system according to the operation and maintenance policy.
In a second embodiment, the target operation and maintenance request is parsed to obtain address information, whether a plurality of target network control systems are provided is judged according to the address information, when the plurality of target network control systems are provided, whether the plurality of target network control systems are deployed on the same equipment is judged according to the address information, a judgment result is obtained, a target data transmission strategy is determined according to the judgment result, the target operation and maintenance request is sent to the target network control system through a preset gRPC communication frame according to the target data transmission strategy, target data is searched and fed back according to the target operation and maintenance request by the target network control system, the target data is obtained through the preset gRPC communication frame, a fault investigation request is determined according to the target data, the fault investigation request is sent to the target network control system through the preset gRPC communication frame, a modification result is obtained by the target network control system according to the fault investigation request, and the modification result is obtained according to the target network control system; the embodiment realizes the many-to-many communication between the operation and maintenance system and the network control system through the IP and port binding, thereby realizing the operation and maintenance management of the centralized network control system and the distributed network control system.
Referring to fig. 4, fig. 4 is a flow chart of a third embodiment of the gRPC-based system operation and maintenance method according to the present invention, and based on the first embodiment shown in fig. 2, the third embodiment of the gRPC-based system operation and maintenance method according to the present invention is proposed.
In a third embodiment, the step S303 includes:
step S3031: and acquiring the modification result through the preset gRPC communication framework, and determining the fault position of the target network control system according to the modification result.
It should be noted that, the acquiring, by the gRPC-based system operation and maintenance device, the modification result by using the preset gRPC communication frame may be that after the target network control system writes the system configuration successfully, the processing result is synchronously returned to the gRPC server, after the gRPC server receives the response message, the returned result is encapsulated, and then the gRPC-based system operation and maintenance device acquires, by using the preset gRPC communication frame, the modification result.
It should be understood that, the determining, by the gRPC-based system operation and maintenance device according to the modification result, the fault location of the network control system may be that when the modification result is that the configuration fails, location information corresponding to the troubleshooting request is used as the fault location.
Step S3032: and generating an operation and maintenance strategy according to the fault position, and operating and maintaining the target network control system according to the operation and maintenance strategy.
It should be noted that, the generating, by the gRPC-based system operation and maintenance device, an operation and maintenance policy according to the fault location may be that the fault location is sent to the client, so that an operator of the client selects a corresponding operation and maintenance policy according to the fault location, or may be that the gRPC-based system operation and maintenance device automatically generates according to the fault location.
Further, the step S3032 further includes:
and searching an operation and maintenance strategy corresponding to the fault position in a preset mapping relation table, and operating and maintaining the target network control system according to the operation and maintenance strategy, wherein the preset mapping relation table comprises a corresponding relation between the fault position and the operation and maintenance strategy.
It should be understood that the preset mapping relation table may be set by an operator of the gRPC-based system operation and maintenance device according to an actual situation, or may be set by a manufacturer of the gRPC-based system operation and maintenance device according to an experimental result when leaving a factory.
In a third embodiment, the step S20 includes:
step S201: and sending the target operation and maintenance request to a gRPC server through a preset gRPC communication frame, performing authority verification on the target operation and maintenance request by the gRPC server, and sending the target operation and maintenance request to a network control system through the preset gRPC communication frame by the gRPC server when the target operation and maintenance request passes the authority verification.
It should be noted that, performing authority verification on the target operation and maintenance request by the gRPC server may be extracting a message header and message identification information of the target operation and maintenance request, and then performing authority verification on the target operation and maintenance request according to the message header and the message identification information.
In a third embodiment, an operation and maintenance request is obtained, format conversion is performed on the operation and maintenance request according to a preset Protobuf protocol standard, a target operation and maintenance request is obtained, the target operation and maintenance request is sent to a gRPC server through a preset gRPC communication frame, authority verification is performed on the target operation and maintenance request by the gRPC server, when the target operation and maintenance request passes the authority verification, the target operation and maintenance request is sent to a network control system through the preset gRPC communication frame by the gRPC server, the target data is obtained through the preset gRPC communication frame, a fault troubleshooting request is determined according to the target data, the fault troubleshooting request is sent to the target network control system through the preset gRPC communication frame, the configuration of the target network control system is modified according to the fault troubleshooting request by the target network control system, a modification result is obtained by the gRPC communication frame, the fault position of the target network control system is determined according to the modification result, the fault position of the target network control system is generated according to the fault position of the target network control system, and the operation and maintenance strategy is performed on the target network control system according to the fault position; according to the embodiment, the gRPC server is used for verifying the authority of the target operation and maintenance request, so that the system is prevented from being maliciously invaded by other people, and the safety of the system is improved.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a gRPC-based system operation and maintenance program, and the gRPC-based system operation and maintenance program realizes the steps of the gRPC-based system operation and maintenance method when being executed by a processor.
In addition, referring to fig. 5, an embodiment of the present invention further provides a gRPC-based system operation and maintenance device, where the gRPC-based system operation and maintenance device includes: a format conversion module 10, a transmission module 20 and an operation and maintenance module 30;
the format conversion module 10 is configured to obtain an operation and maintenance request, and perform format conversion on the operation and maintenance request according to a preset Protobuf protocol standard, so as to obtain a target operation and maintenance request.
It should be understood that the execution body of the embodiment is the gRPC-based system operation and maintenance device, where the gRPC-based system operation and maintenance device may be an electronic device with a network communication function, such as a personal computer or a server.
It should be noted that, the gRPC-based system operation and maintenance device obtains an operation and maintenance request, and performs format conversion on the operation and maintenance request according to a preset Protobuf protocol standard, where the obtaining target operation and maintenance request may be that the network control system defines acceptable and processed message data through the preset Protobuf protocol standard, and then the gRPC-based system operation and maintenance device performs format conversion on the operation and maintenance request according to acceptable and processed message data defined by the network control system.
The sending module 20 is configured to send the target operation and maintenance request to a target network control system through a preset gRPC communication frame, and the target network control system searches and feeds back target data according to the target operation and maintenance request.
It is appreciated that gRPC world Wide name gRPC remote procedure calls, a high performance open source remote procedure call (Remote Procedure Call, RPC) framework that can run on any system, uses Protobuf as the communication protocol; the RPC framework can refer to a function interface transparent to programmers and capable of calling the same naming standard which is not local in the software engineering project; protobuf communication protocol refers to a platform-independent, language-independent, extensible, lightweight and efficient protocol of serializing data structures, which can be used for network communication and data storage.
It should be noted that, the gRPC-based system operation and maintenance device may send the target operation and maintenance request to the target network control system through the preset gRPC communication frame, where the gRPC server extracts the message header and the message identification information of the target operation and maintenance request after receiving the message, and then routes the message according to the message header and the message identification information, and sends the target operation and maintenance request to the target network control system.
It should be noted that, the target network control system searches and feeds back the target data according to the target operation and maintenance request, which may be the request type of the target operation and maintenance request firstly, if the target operation and maintenance request is the database state of the query system, the target network control system obtains the system database through an internal method; if the target operation and maintenance request is other configuration states of the query system, the target network control system obtains the real-time configuration of the system through an internal method.
The operation and maintenance module 30 is configured to obtain the target data through the preset gRPC communication frame, and perform operation and maintenance on the target network control system according to the target data.
It should be noted that, the acquiring, by the gRPC-based system operation and maintenance device, the target data through the preset gRPC communication frame may be that the target network control system returns a processing result to the gRPC server, the gRPC server encapsulates the returned result after receiving the response message, and then the gRPC-based system operation and maintenance device acquires the target data through the preset gRPC communication frame.
In this embodiment, an operation and maintenance request is obtained, format conversion is performed on the operation and maintenance request according to a preset Protobuf protocol standard, a target operation and maintenance request is obtained, the target operation and maintenance request is sent to a target network control system through a preset gRPC communication frame, target data is searched and fed back according to the target operation and maintenance request by the target network control system, the target data is obtained through the preset gRPC communication frame, and operation and maintenance are performed on the target network control system according to the target data; according to the embodiment, gRPC is used as a communication frame of the operation and maintenance system and the control system, and the communication data format is defined through protobuf, so that the operation and maintenance system and the control system can be decoupled as much as possible, independent upgrading and maintenance are convenient, operation and maintenance cost is saved, and operation and maintenance efficiency is improved.
In an embodiment, the gRPC-based system operation and maintenance device further includes: and an analysis module:
the analysis module is used for analyzing the target operation and maintenance request to obtain address information, judging whether the target network control systems are multiple according to the address information, judging whether the target network control systems are deployed on the same equipment according to the address information when the target network control systems are multiple, obtaining a judging result, and determining a target data transmission strategy according to the judging result;
in an embodiment, the parsing module is further configured to select, from a preset RPC port library, a target RPC port that is matched with the target network control system, and use data transmission through the target RPC port as a target data transmission policy when the determination result indicates that the target network control system is deployed on the same device;
in an embodiment, the operation and maintenance module is further configured to obtain the target data through the preset gRPC communication frame, determine a fault troubleshooting request according to the target data, send the fault troubleshooting request to the target network control system through the preset gRPC communication frame, modify the configuration of the target network control system according to the fault troubleshooting request by the target network control system to obtain a modification result, obtain the modification result through the preset gRPC communication frame, and operate and maintain the target network control system according to the modification result;
in an embodiment, the operation and maintenance module is further configured to obtain the modification result through the preset gRPC communication frame, determine a fault location of the target network control system according to the modification result, generate an operation and maintenance policy according to the fault location, and perform operation and maintenance on the target network control system according to the operation and maintenance policy;
in an embodiment, the operation and maintenance module is further configured to search an operation and maintenance policy corresponding to the fault location in a preset mapping relationship table, and perform operation and maintenance on the target network control system according to the operation and maintenance policy, where the preset mapping relationship table includes a correspondence between the fault location and the operation and maintenance policy;
in an embodiment, the sending module is further configured to send the target operation and maintenance request to a gRPC server through a preset gRPC communication frame, perform permission verification on the target operation and maintenance request by the gRPC server, and send the target operation and maintenance request to a network control system through the preset gRPC communication frame when the target operation and maintenance request passes the permission verification by the gRPC server.
Other embodiments or specific implementation manners of the gRPC-based system operation and maintenance device of the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the terms first, second, third, etc. do not denote any order, but rather the terms first, second, third, etc. are used to interpret the terms as names.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read only memory mirror (Read Only Memory image, ROM)/random access memory (Random Access Memory, RAM), magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (9)

1. The gRPC-based system operation and maintenance method is characterized by comprising the following steps of:
acquiring an operation and maintenance request, and performing format conversion on the operation and maintenance request according to a preset Protobuf protocol standard to acquire a target operation and maintenance request;
the target operation and maintenance request is sent to a target network control system through a preset gRPC communication framework, and target data is searched and fed back by the target network control system according to the target operation and maintenance request;
acquiring the target data through the preset gRPC communication frame, and operating and maintaining the target network control system according to the target data;
the gRPC-based system operation and maintenance method further comprises the following steps of:
analyzing the target operation and maintenance request to obtain address information, and judging whether the target network control system is a plurality of target network control systems according to the address information;
when the target network control systems are multiple, judging whether the target network control systems are deployed on the same equipment according to the address information, and obtaining a judging result;
determining a target data transmission strategy according to the judging result;
correspondingly, the step of sending the target operation and maintenance request to a target network control system through a preset gRPC communication frame, and searching and feeding back target data by the target network control system according to the target operation and maintenance request specifically comprises the following steps:
and sending the target operation and maintenance request to a target network control system through a preset gRPC communication frame according to the target data transmission strategy, and searching and feeding back target data by the target network control system according to the target operation and maintenance request.
2. The gRPC-based system operation and maintenance method according to claim 1, wherein said determining a target data transmission policy according to said determination result comprises:
when the judging result is that the target network control system is deployed on the same equipment, selecting a target RPC port matched with the target network control system from a preset RPC port library;
and taking the data transmission through the target RPC port as a target data transmission strategy.
3. The gRPC-based system operation and maintenance method according to claim 1, wherein said step of obtaining said target data through said preset gRPC communication frame and operating and maintaining said target network control system according to said target data comprises:
acquiring the target data through the preset gRPC communication frame, and determining a fault troubleshooting request according to the target data;
the fault investigation request is sent to the target network control system through a preset gRPC communication frame, and the target network control system modifies the configuration of the target network control system according to the fault investigation request to obtain a modification result;
and acquiring the modification result through the preset gRPC communication framework, and operating and maintaining the target network control system according to the modification result.
4. The gRPC-based system operation and maintenance method according to claim 3, wherein said step of obtaining said modification result through said preset gRPC communication frame and operating and maintaining said target network control system according to said modification result comprises:
acquiring the modification result through the preset gRPC communication framework, and determining the fault position of the target network control system according to the modification result;
and generating an operation and maintenance strategy according to the fault position, and operating and maintaining the target network control system according to the operation and maintenance strategy.
5. The gRPC-based system operation and maintenance method according to claim 4, wherein said step of generating an operation and maintenance policy according to said fault location and operating and maintaining said target network control system according to said operation and maintenance policy comprises:
and searching an operation and maintenance strategy corresponding to the fault position in a preset mapping relation table, and operating and maintaining the target network control system according to the operation and maintenance strategy, wherein the preset mapping relation table comprises a corresponding relation between the fault position and the operation and maintenance strategy.
6. The gRPC-based system operation and maintenance method of any one of claims 1 to 5, wherein the step of sending the target operation and maintenance request to a network control system through a preset gRPC communication framework specifically includes:
and sending the target operation and maintenance request to a gRPC server through a preset gRPC communication frame, performing authority verification on the target operation and maintenance request by the gRPC server, and sending the target operation and maintenance request to a network control system through the preset gRPC communication frame by the gRPC server when the target operation and maintenance request passes the authority verification.
7. A gRPC-based system operation and maintenance device, characterized in that the gRPC-based system operation and maintenance device comprises: memory, a processor and a gRPC-based system operation and maintenance program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the gRPC-based system operation and maintenance method as claimed in any one of claims 1 to 6.
8. A storage medium, wherein a gRPC-based system operation and maintenance program is stored on the storage medium, and the gRPC-based system operation and maintenance program, when executed by a processor, implements the steps of the gRPC-based system operation and maintenance method according to any one of claims 1 to 6.
9. The utility model provides a system operation and maintenance device based on gRPC which characterized in that, system operation and maintenance device based on gRPC includes: the system comprises a format conversion module, a sending module and an operation and maintenance module;
the format conversion module is used for obtaining the operation and maintenance request, and converting the format of the operation and maintenance request according to a preset Protobuf protocol standard to obtain a target operation and maintenance request
The sending module is used for sending the target operation and maintenance request to a target network control system through a preset gRPC communication frame, and the target network control system searches and feeds back target data according to the target operation and maintenance request;
the operation and maintenance module is used for acquiring the target data through the preset gRPC communication frame and carrying out operation and maintenance on the target network control system according to the target data;
wherein, the system operation and maintenance device based on gRPC further comprises: and an analysis module:
the analysis module is used for analyzing the target operation and maintenance request to obtain address information, judging whether the target network control systems are multiple according to the address information, judging whether the target network control systems are deployed on the same equipment according to the address information when the target network control systems are multiple, obtaining a judging result, and determining a target data transmission strategy according to the judging result;
correspondingly, the sending module is further configured to send the target operation and maintenance request to a target network control system through a preset gRPC communication frame according to the target data transmission policy, and the target network control system searches and feeds back target data according to the target operation and maintenance request.
CN202010189753.7A 2020-03-17 2020-03-17 gRPC-based system operation and maintenance method, equipment, storage medium and device Active CN111431982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010189753.7A CN111431982B (en) 2020-03-17 2020-03-17 gRPC-based system operation and maintenance method, equipment, storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010189753.7A CN111431982B (en) 2020-03-17 2020-03-17 gRPC-based system operation and maintenance method, equipment, storage medium and device

Publications (2)

Publication Number Publication Date
CN111431982A CN111431982A (en) 2020-07-17
CN111431982B true CN111431982B (en) 2023-05-12

Family

ID=71549521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010189753.7A Active CN111431982B (en) 2020-03-17 2020-03-17 gRPC-based system operation and maintenance method, equipment, storage medium and device

Country Status (1)

Country Link
CN (1) CN111431982B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112085229B (en) * 2020-09-09 2024-04-02 北京华胜天成科技股份有限公司 Operation and maintenance method, device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023705A (en) * 2012-12-27 2013-04-03 莱得圣智能科技(上海)有限公司 Intelligent digital network system and maintenance method for same
US8792374B1 (en) * 2011-12-07 2014-07-29 Google Inc. Managing network routes from a central server
CN108337236A (en) * 2017-12-28 2018-07-27 杭州马猴烧韭科技有限公司 A kind of gRPC call methods and device based on Protobuf and HTTP/1.1
CN109474487A (en) * 2018-10-17 2019-03-15 Ut斯达康通讯有限公司 Network performance monitoring method, the network equipment and network performance monitoring system
CN110113188A (en) * 2019-04-22 2019-08-09 腾讯科技(深圳)有限公司 Across subdomain communication O&M method, total O&M server and medium
CN110138748A (en) * 2019-04-23 2019-08-16 北京交通大学 A kind of network integration communication means, gateway and system
CN110532322A (en) * 2019-08-20 2019-12-03 腾讯云计算(北京)有限责任公司 O&M exchange method, system, computer readable storage medium and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8792374B1 (en) * 2011-12-07 2014-07-29 Google Inc. Managing network routes from a central server
CN103023705A (en) * 2012-12-27 2013-04-03 莱得圣智能科技(上海)有限公司 Intelligent digital network system and maintenance method for same
CN108337236A (en) * 2017-12-28 2018-07-27 杭州马猴烧韭科技有限公司 A kind of gRPC call methods and device based on Protobuf and HTTP/1.1
CN109474487A (en) * 2018-10-17 2019-03-15 Ut斯达康通讯有限公司 Network performance monitoring method, the network equipment and network performance monitoring system
CN110113188A (en) * 2019-04-22 2019-08-09 腾讯科技(深圳)有限公司 Across subdomain communication O&M method, total O&M server and medium
CN110138748A (en) * 2019-04-23 2019-08-16 北京交通大学 A kind of network integration communication means, gateway and system
CN110532322A (en) * 2019-08-20 2019-12-03 腾讯云计算(北京)有限责任公司 O&M exchange method, system, computer readable storage medium and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RPCI:面向互联网的RPC框架;王伟等;《计算机工程与应用》;20131101(第21期);全文 *

Also Published As

Publication number Publication date
CN111431982A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
EP3389219B1 (en) Access request conversion method and device
CN108804618B (en) Database configuration method, device, computer equipment and storage medium
US7587221B2 (en) Sensor network management system
JP3403335B2 (en) Virtual geospatial object generation system and recording medium
CN111431740A (en) Data transmission method, device, equipment and computer readable storage medium
JP2005516276A (en) Object-oriented framework architecture for detection and / or control environments
CN111897638A (en) Distributed task scheduling method and system
CN106919485A (en) A kind of system based on configuration hardware testing instrument on server
WO2019085290A1 (en) Test preparation method and apparatus, terminal device, and storage medium
CN111310230B (en) Spatial data processing method, device, equipment and medium
CN113467972A (en) Communication interface construction method, communication interface construction device, computer equipment and storage medium
CN111178849A (en) Linear process engine implementation method, device, equipment and storage medium
CN113037891A (en) Access method and device for stateful application in edge computing system and electronic equipment
CN111431982B (en) gRPC-based system operation and maintenance method, equipment, storage medium and device
CN117389830A (en) Cluster log acquisition method and device, computer equipment and storage medium
CN110069406A (en) The TPC-DS test method and system of automatic trigger
US20030061334A1 (en) Method, apparatus, system, computer program and computer program product of network management
CN116450301B (en) Container-based monitoring method, system, equipment and medium
KR102124954B1 (en) IoT PLATFORM SYSTEM FOR SUPPORTING HETEROGENEOUS DATABASE MANAGEMENT SYSTEM SIMULTANEOUSLY AND OPERATING METHOD THEREOF
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN116132344A (en) Container service debugging method and device based on K8s cluster and electronic equipment
CN114154825A (en) Two-dimensional power grid distributed cache service system
KR20140123126A (en) System and method for generating database based on SCL
CN107347024A (en) A kind of method and apparatus for storing Operation Log
CN113326052A (en) Method and device for upgrading service component, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant