Power grid intelligent operation and detection platform based on micro-service
Technical Field
The invention relates to the field of power transmission and transformation power grid operation and detection, in particular to a micro-service-based power grid intelligent platform.
Background
At present, a new round of technological revolution and industrial change are deeply fused and vigorously developed, and especially, a new generation of information technology represented by artificial intelligence, the internet of things and big data is used for accelerating breakthrough and application, so that a solution is provided for large-scale and low-cost data open sharing and application, and the development of energy, electricity and economic society is deeply changed. The national grid, the south grid, the local grid and the like highly attach importance to the digital, networked and intelligent development, fully apply advanced technologies and means such as a 'cloud thing moving intelligent chain', promote the deep integration of energy transformation and information technology, the digital transformation conditions of the power grid enterprise are mature, and the power system is evolved from a single industry to complex multi-level ecological construction.
The power grid operation and inspection covers a plurality of power specialties such as power transmission and transformation, and relates to the field of numerous branch services, in the past, the construction of various service information systems usually only focuses on the functional requirements of the system, and the system is constructed in a monomer framework system form, so that the system is highly cohesive, data can only be internally circulated, transverse communication cannot be realized, and a vertical service and data system is formed. The development mode of the chimney type causes the islanding of application, resources and data, and information assets are difficult to share and reuse.
Under the new situation of the power internet of things, all things interconnection and man-machine interaction of all links are mainly realized, an intelligent service system with the characteristics of comprehensive state perception, efficient information processing and convenient and flexible application is formed, the mode is changed from a vertical closed mode to a horizontal open mode, technicians try to implant operation and inspection application of a power grid on the existing internet of things platform, although the information data can be obtained and analyzed in different application scenes, under the condition of not changing the architecture of each layer of the internet of things, complex access storage of power system data, compatibility of different development frameworks and computer languages are difficult to meet, the complexity of large-scale application is reduced, repeated development of common requirements is avoided, independent development of different power professional teams is realized, operation and inspection application meeting the different requirements of multi-level multi-professional users is constructed, And the method fully excavates the associated data value and is convenient for iterative upgrade, maintenance and expansion and other requirements. Therefore, how to reconstruct the system architecture and upgrade the development mode, unify the application portals, unify the data calling and service interface standards, realize the layering and horizontal decoupling of data, reduce the inter-system data cooperation cost, and precipitate the public data capability becomes the subject of urgent research in the current power grid resource sharing field.
Disclosure of Invention
In order to solve the problems in the background art, the invention provides a micro-service-based power grid intelligent operation and inspection platform I, which has the following specific technical scheme:
a micro-service-based intelligent operation and detection platform for a power grid comprises a sensing layer, an infrastructure layer, a convergence layer, a service layer and an application layer;
the sensing layer comprises a plurality of types of information acquisition devices and is connected with the infrastructure layer through a data channel;
the infrastructure layer comprises a plurality of groups of servers and network resources which are provided with data processing software and is connected with the convergence layer through a data channel;
the convergence layer comprises a plurality of servers, gateways, software and data channels, can realize interconnection at the same layer and is connected with the infrastructure layer and the service layer through the data channels;
the service layer comprises a plurality of servers, software and data channels, the servers comprise data storage modules, calculation modules and communication modules, and can realize same-layer interconnection and be respectively connected with the convergence layer and the application layer through the data channels;
the application layer comprises a plurality of professional business application modules, the business application modules are decoupled into micro application modules according to different business scenes and functions, and the micro application modules are connected with the service layer through data interfaces;
the convergence layer further comprises a load balancing module provided with LVS software, a message middleware and a data processing module, the gateway adopts a Netty framework, and the data processing module comprises real-time calculation, data import and data forwarding sub-modules, so that original data analysis, data storage and data forwarding can be realized.
Preferably, the service layer adopts a Spring Cloud micro-service architecture, and the data storage module comprises a Cloud server, a Cloud database and a data management component; the data storage module can decouple the platform database into a common base table and a professional base table and manage the data.
Preferably, the service application module adopts a micro front end framework and comprises a main application module and a micro application module, the main application module comprises a 3D GIS, a platform logo, a navigation item and an auxiliary menu, the micro application module comprises a service panoramic module, a power transmission service module, a power transformation service module and an asset management module, the main application module and the micro application module are in communication connection in a mode of changing the global state attribute of the micro front end to trigger an event, and the main application module can load/unload each micro application module.
Further, the service panoramic module includes the following various types of micro applications: the method comprises the following steps of power transmission line scale statistics, substation scale statistics, monitoring equipment online condition statistics, fault early warning information display and defect hidden danger information display.
The power transmission service module comprises the following various micro applications: the method comprises the steps of transmission service overview, line details, tower details, equipment overview, line account, tower account, distributed fault diagnosis, visual monitoring defect analysis, unmanned aerial vehicle inspection image analysis, personnel inspection, line trip record, lightning inquiry and weather inquiry information display.
The power transformation service module comprises the following various micro applications: the method comprises the steps of power transformation service overview, station management, substation equipment management, equipment details, sensor details, monitoring and early warning, inspection management, power transformation equipment state evaluation and live detection.
The asset management module comprises the following various micro-applications: the method comprises the following steps of asset profile, asset list, asset classification summary, department asset summary, classification use condition statistics and asset classification increase and decrease statistics.
The intelligent operation and inspection platform for the power grid has the following beneficial effects:
1. in the technical scheme of the invention, the convergence layer is provided with a load balancing module, a message middleware and a data processing module of LVS software, and the load balancing module, the message middleware and the data processing module are matched with a gateway adopting a Netty framework to realize uniform convergence access, analysis, storage and forwarding of collected data and process based on events, so that the problem that a single internet of things gateway/front-end processor cannot simultaneously meet multiple requirements of high concurrent data access, high throughput load balancing, data access control, data forwarding, specified data table encryption and decryption warehousing, protocol analysis and expansion and the like is solved, and conditions are provided for realizing uniform warehousing of multi-source data and sharing and fusion application of multi-service data.
2. In the technical scheme of the invention, the infrastructure layer can adopt a deployment mode of combining a physical entity server and a cloud computing server to construct a uniform resource pool, realize the demand-based distribution and the elastic capacity expansion of resources such as a CPU (Central processing Unit), a memory, a storage and the like, carry out the uniform resource allocation and the flexible management by configuring units such as an ECS (electronic communications system), an application example, a service container and the like, meet the demand-based use in the actual production environment, reduce the comprehensive cost of the resource use and improve the resource use efficiency. The physical server can be used for storing three-dimensional laser point cloud data of the power transmission line and three-dimensional model data of the transformer substation, and is convenient to call in real time.
3. In the technical scheme of the invention, the service layer realizes the centralized storage, the unified storage, the flexible database establishment and the table establishment of the database, the fusion of the sharing and the full life cycle management of the data assets, and the data in the database table is treated and cleaned by the data treatment component, so that the dirty data is reduced, and the data quality is improved. The service layer constructs a unified service registration center through the micro-service management component, realizes unified registration release, configuration management and operation monitoring of cross-professional business services, extracts and forms multi-professional shareable common basic services, and provides a basic platform environment for various businesses to realize function decoupling and sharing multiplexing according to a micro-service architecture.
4. In the technical scheme of the invention, the application layer realizes free combination and flexible construction of the micro application front-end display interface by applying the micro front-end framework under the condition of unifying the front-end application style and framework, meets the interface fusion requirement of each professional SPA (single-page application) function, can meet the independent development, deployment and operation of multiple development teams across the professions, and supports the rapid construction of platform-level application.
5. Because the power grid service panorama, the power transmission service and the power transformation service module need 3D GIS display, the resource consumption is large when the 3D GIS resource is generated, the time is long, the current search point can be cleared and initialized, and the 3D GIS is extracted and fused to the main application, so that the problem that the 3D GIS is frequently generated and released when the service panorama, the power transmission service and the power transformation service module are switched is solved, the user experience is greatly improved, the problem that development teams of different specialties repeatedly develop GIS application and the type selection is not unified is solved.
6. Through data sharing and the construction of a unified application portal, the intelligent operation, inspection, operation and maintenance management entries of the power grid are unified, the application requirements of various management levels and different professional users are met, the users do not need to log in different subsystems to know various monitoring operation conditions, meanwhile, the associated data value can be better mined, and more accurate operation, maintenance and maintenance decisions are made through multi-dimensional resume information and real-time monitoring data of power grid resource equipment.
Drawings
FIG. 1 is a schematic diagram of a micro-service-based power grid intelligent operation inspection base platform architecture in an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application layer micro front end design in an embodiment of the invention;
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described with reference to the accompanying drawings 1-2 and specific embodiments. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from this embodiment without making any creative effort, shall fall within the protection scope of the present invention.
The invention firstly carries out system design and plans a perception layer, an infrastructure layer, a convergence layer, a service layer and an application layer from bottom to top.
The sensing layer is provided with various professional equipment monitoring types, environment monitoring types, video acquisition types and operation acquisition terminals and devices for power transmission and transformation, and realizes wide interconnection and state depth sensing of equipment.
The infrastructure layer adopts a mode of combining the entity server and the public cloud. A unified resource pool is constructed based on public cloud, and the on-demand distribution and the elastic capacity expansion of resources such as CPU, memory, storage and the like are realized. The resources are uniformly allocated and flexibly managed by configuring the units such as the ECS, the application example, the service container and the like, the demand use and the flexible charge according to the flow under the actual production environment are met, the comprehensive cost of the resource use is reduced, and the resource use efficiency is improved. And the physical server is used for storing three-dimensional laser point cloud data of the power transmission line and three-dimensional model data of the transformer substation, and is convenient to call in real time.
The convergence layer internet of things data acquisition access component mainly comprises modules such as a load balancing module, an access gateway, a message middleware, a real-time calculation module, a data import module, a data service module and the like, wherein the internet of things terminal establishes long communication connection with the access gateway through an LVS load balancing module, the access gateway adopts a Netty framework, and after decoding data messages in various different protocol formats, the data messages are packaged into a universal data format and written into a Kafka distributed message middleware; the real-time computing module analyzes data by subscribing the original message data theme in the message bus by adopting stream frames of Strom, Flink and the like and writes the data into the message bus again; the data import module subscribes the original data of the terminal or the analyzed data from the message bus to finish data storage or off-line analysis; the data forwarding module subscribes data and forwards the data to the service layer; this layer has the following functions:
1) the terminal data access function is based on the high concurrent data access realized by a load balancing technology and an access gateway, and can be flexibly configured according to communication protocol rules of different sensing devices, so that the diverse device end data acquisition capacity is realized;
2) the terminal data analysis function is used for realizing the real-time analysis of the collected data based on a real-time data stream processing framework;
3) the data storage and exchange function is used for realizing the import of the terminal and the analysis data and forwarding the data to the database;
4) and the terminal data management function provides unified terminal basic data management service for various terminals, gateways and application systems.
The method comprises the steps that a service layer adopts a micro-service architecture mode, a Spring Cloud micro-service management assembly is uniformly adopted for development, RESTful protocol is adopted for realizing service interface calling, Spring oauth2 is adopted for user authority management, a uniform service registration center, a configuration center and a service gateway are built by the service layer, micro-services are registered and configured for management, service calling is realized, and services are called through the gateway.
The service layer provides data storage service, user management service, basic commonality service and business data service.
The data storage service design is constructed by adopting a cloud ECS (cloud server), a cloud MySQL database and a data management component, and unified storage, fusion sharing and whole-life management of data assets are realized. Dividing the database into a common base table and a professional base table, wherein the professional base table comprises a power transmission professional base and a power transformation professional base, and storing professional data of power transmission and transformation; and common data such as the standing book, the assets and the like are stored in the common base table. The data management component can be used for managing and cleaning data in the base table, reducing dirty data and improving data quality.
The user management service comprises micro services such as login and logout, user authentication, a user list, a newly added user, an edited user, a deleted user, password modification, a newly added role, a role editing, a role enabling/disabling, role function binding, role user binding, user list inquiry, function management, organization management and the like.
The basic common service mainly comprises micro services such as search service, cache service, message service, short message service and the like; the business sharing service comprises asset query, image identification and other micro services;
the service data service comprises micro services such as monitoring device statistics, equipment overview statistics, line account list acquisition, distributed fault list and detail acquisition, power frequency fault information acquisition, lightning monitoring query, layer service, meteorological environment acquisition, visual monitoring list and detail acquisition, historical trip list and detail acquisition, unmanned aerial vehicle inspection image list acquisition, unmanned aerial vehicle inspection defect list acquisition, substation information acquisition, equipment account information acquisition, equipment scale information acquisition, early warning information acquisition, sensor operation state information acquisition, historical data information acquisition, equipment state evaluation, live detection management, evaluation report acquisition, detection report acquisition, monitoring operation curve acquisition, monitoring data acquisition, threshold management query and the like.
The application layer is constructed by adopting a micro front end framework and is divided into 4 modules according to business logic: service panorama, power transmission service, power transformation service and asset management. The front-end display is divided into a main application and a micro application, the 3D GIS, the platform logo, the primary navigation item and the auxiliary menu (user, setting, notification and the like) are partially extracted and integrated into the main application, the main application is used as a container to load/unload the micro application, and the micro application is responsible for displaying all business modules. Because the service panorama, the power transmission service and the power transformation service module need to display the 3D GIS, and the 3D GIS resources are generated with large resource consumption and long time, in order to avoid the influence of frequent generation and release of the 3D GIS on user experience when the service panorama, the power transmission service and the power transformation service module are switched, the 3D GIS is placed in the main application, and the main application is distributed to various micro-applications after completing the loading of the 3D GIS, thereby avoiding the repeated development of the 3D GIS applications by development teams in different professions.
The service panoramic module comprises micro applications such as power transmission line scale statistics, transformer substation scale statistics, monitoring equipment online condition statistics, fault early warning information display, defect hidden danger information display and the like.
The power transmission service module comprises micro applications such as power transmission service overview, line details, tower details, equipment overview, line accounts, tower accounts, distributed fault diagnosis, visual monitoring defect analysis, unmanned aerial vehicle inspection image analysis, personnel inspection record details, line trip records, lightning inquiry, meteorological inquiry information display and the like.
The power transformation business module comprises micro applications such as power transformation business overview, station management, substation equipment management, equipment details, sensor details, monitoring and early warning, inspection management, power transformation equipment state evaluation, live detection and the like.
The asset management module comprises micro applications of asset profile, asset list, asset classification collection, department asset collection, classification use condition statistics, asset classification increase and decrease statistics and the like.
When the operation and maintenance platform is put into use, operation and maintenance personnel only need to open the small programs related to the current task on the terminal interface according to navigation to enter the corresponding micro applications, and the commonly used micro applications can be directly converted into shortcuts to be placed on the desktop of the terminal, so that the operation can be conveniently carried out.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.