CN114257611A - Data interaction method, device, equipment and medium based on front-end processor containerization - Google Patents

Data interaction method, device, equipment and medium based on front-end processor containerization Download PDF

Info

Publication number
CN114257611A
CN114257611A CN202111375438.4A CN202111375438A CN114257611A CN 114257611 A CN114257611 A CN 114257611A CN 202111375438 A CN202111375438 A CN 202111375438A CN 114257611 A CN114257611 A CN 114257611A
Authority
CN
China
Prior art keywords
end processor
container
party
message
request sender
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.)
Pending
Application number
CN202111375438.4A
Other languages
Chinese (zh)
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.)
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute 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 Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN202111375438.4A priority Critical patent/CN114257611A/en
Publication of CN114257611A publication Critical patent/CN114257611A/en
Pending legal-status Critical Current

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/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to a data interaction method and device based on front-end processor containerization, computer equipment and a storage medium. The method and the device can realize load balancing. The method comprises the following steps: receiving a front-end processor container link instruction sent by a request sender; the front-end processor container link instruction carries the channel type and the unique identification value of the party to be connected; responding to a front-end processor container link instruction, and inquiring a front-end processor container corresponding to a party to be connected in a locally configured container management center according to the unique identification value; and establishing a communication channel corresponding to the channel type with the request sender, and providing data interaction for the request sender and the front-end processor container based on the communication channel.

Description

Data interaction method, device, equipment and medium based on front-end processor containerization
Technical Field
The present application relates to the field of power information technology, and in particular, to a data interaction method and apparatus based on front-end processor containerization, a computer device, and a storage medium.
Background
The power monitoring system network is the foundation of a future power grid, and the power monitoring system situation perception platform is composed of a platform foundation module, a big data module, a front-end processor module, an acquisition device, a third-party application module and the like. The front-end processor module plays a role in starting and stopping in data bearing.
The front-end processor is used as a bottle mouth, belongs to the throat part of the whole set of power monitoring system and is responsible for receiving, processing and forwarding data of the control channel, the message channel, the forward proxy channel and the reverse proxy channel. When massive data needs to be processed, the traffic pressure of the front-end processor is very large, and the data processing capacity needs to be improved.
At present, the most common solution in the industry is server-side load balancing, but because of the consideration of the security of the power monitoring system, a fixed port cannot be opened on the front-end processor as a load balancing server, and therefore server-side load balancing is not suitable for the front-end processor. Secondly, client load balancing, a common client load balancing technology at present is to add a centralized control management center to manage a front-end processor serving as a client, and dynamically select the front-end processor to serve according to the running condition of the front-end processor so as to achieve the effect of load balancing.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data interaction method, apparatus, computer device and storage medium based on front-end processor containerization.
A data interaction method based on front-end processor containerization, the method comprising:
receiving a front-end processor container link instruction sent by a request sender; the front-end processor container link instruction carries a channel type and a unique identification value of a party to be connected;
responding to the front-end processor container link instruction, and inquiring a front-end processor container corresponding to the party to be connected in a locally configured container management center according to the unique identification value;
establishing a communication channel corresponding to the channel type with the request sender;
and providing data interaction for the request sender and the front-end processor container based on the communication channel.
In one embodiment, the channel type comprises a control channel type; the providing data interaction for the request sender and the front-end processor container based on the communication channel comprises:
receiving a first message sent by the request sender through the communication channel;
and forwarding the first message to the front-end processor container so that the front-end processor container sends a first message analysis result obtained by analyzing the first message to the party to be connected.
In one embodiment, the channel type comprises a forward proxy channel type; the providing data interaction for the request sender and the front-end processor container based on the communication channel comprises:
receiving a second message sent by the request sender through the communication channel;
and redirecting the second message to the front-end processor container so that the front-end processor container sends a second message analysis result obtained by analyzing the second message to the party to be connected, or so that the front-end processor container feeds back the second message analysis result obtained by analyzing, and sends the second message analysis result to the request sender through the communication channel.
In one embodiment, the channel type is a reverse proxy channel type; the providing data interaction for the request sender and the front-end processor container based on the communication channel comprises: receiving a third message sent by the front-end processor container; the third message is sent to the front-end processor container by the party to be connected;
the third message is forwarded to the request sending party through the communication channel, so that the request sending party sends a feedback result corresponding to the third message through the communication channel;
and sending the feedback result to the front-end processor container.
In one embodiment, the front-end processor container is configured to trigger the party to be connected to feed back the acquired data and send a data analysis result obtained by analyzing the data to the request sender.
In one embodiment, the request sender is configured to send a container initialization parameter to a corresponding front-end processor in an initialization process of the front-end processor container, so that when the front-end processor runs abnormally and a local operating system of the front-end processor runs normally, the front-end processor container is restarted according to the container initialization parameter.
A front-end processor containerization based data interaction device, the device comprising:
the instruction receiving module is used for receiving a front-end processor container link instruction sent by a request sender; the front-end processor container link instruction carries a channel type and a unique identification value of a party to be connected;
the container query module is used for responding to the container link instruction of the front-end processor and querying a front-end processor container corresponding to the party to be connected in a locally configured container management center according to the unique identification value;
the channel establishing module is used for establishing a communication channel corresponding to the channel type with the request sender;
and the data interaction module is used for providing data interaction for the request sender and the front-end processor container based on the communication channel.
A computer device comprising a memory storing a computer program and a processor, the processor implementing the steps of the data interaction method based on front-end containerization as described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the front-end-processor containerization based data interaction method as described above.
The data interaction method, the device, the computer equipment and the storage medium based on the front-end processor containerization receive a front-end processor container link instruction sent by a request sender; the front-end processor container link instruction carries the channel type and the unique identification value of the party to be connected; responding to a front-end processor container link instruction, and inquiring a front-end processor container corresponding to a party to be connected in a locally configured container management center according to the unique identification value; and establishing a communication channel corresponding to the channel type with the request sender, and providing data interaction for the request sender and the front-end processor container based on the communication channel. The data interaction method establishes a corresponding communication channel between the request sender and the front-end processor container through the front-end processor container link proxy, and different front-end processor containers correspond to the parties to be connected with different identification values one by one, so that data interaction between the request sender and the parties to be connected is realized.
Drawings
FIG. 1 is a diagram of an application environment of a data interaction method based on front-end processor containerization in one embodiment;
FIG. 2 is a flow diagram illustrating a method for data interaction based on front-end processor containerization in one embodiment;
FIG. 3 is a flow diagram illustrating data interaction of a control channel in one embodiment;
FIG. 4 is a flow diagram that illustrates data interaction for the forward proxy channel in one embodiment;
FIG. 5 is a flow diagram illustrating data interaction of a reverse proxy channel in one embodiment;
FIG. 6 is a schematic diagram illustrating a data interaction flow of a packet channel in an embodiment;
FIG. 7 is a block diagram of a data interaction device based on front-end processor containerization in one embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data interaction method based on the front-end processor containerization can be applied to the application environment shown in FIG. 1. The application environment can be a situation awareness platform of the power monitoring system, and the platform is mainly composed of a main station 101, a front-end processor link proxy server 102, an acquisition device 103 and a third-party application module 104. The third party application module 104 may include a third party forward module and a third party backward module, among others.
The power system situation perception platform is based on integration of technologies such as a wide-area dynamic safety monitoring system, various databases, data mining, dynamic parameter identification, super real-time simulation and visualization, on-line measurement, data processing and analysis of key dynamic data of power system operation are achieved, and measurement, identification, display, early warning and control of main dynamic behaviors are achieved.
In the power monitoring reminding situation awareness platform shown in fig. 1, a master station 101 is a system which is deployed in each level of monitoring center and has functions of network real-time security monitoring, prediction analysis and the like, and the master station 101 can be implemented by an independent server or a server cluster formed by a plurality of servers; the acquisition device 103 is a device deployed in local area networks such as power plants and substations at all levels, and is used for acquiring environmental data such as network security data in the power system, analyzing and processing the environmental data, and communicating with the master station 101; the acquisition device 103 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, or other smart devices, and may also be a server.
The front-end processor link proxy server 102 may be implemented by an independent server or a server cluster composed of a plurality of servers, and is mainly used for providing support for data transmission on the situation awareness platform, and includes the front-end processor and the data distribution module in fig. 1, the front-end processor link proxy server 102 plays a role in starting and stopping in data interaction of the whole system, and is mainly responsible for data transmission work of four channels:
(1) a control channel: the data acquisition device is responsible for receiving the data sent by the master station 101, sending the data to the acquisition device 103, and sending a result returned by the acquisition device 103 back to the master station 101; (2) message channel: the data acquisition device is responsible for receiving the data acquired by the acquisition device 103 and sending the data to the master station 101; (3) establishing a forward proxy channel: the request of the third-party application module 104 is sent to the acquisition device 103 through the forward proxy channel, and after the acquisition device 103 processes and returns a result, the front-end processor links the proxy server 102 and returns the result to the third-party application module 104; (4) reverse proxy: the front-end processor link proxy server 102 receives the request data of the acquisition device 103, and then sends the request data to the third-party application module 104, and after waiting for the data returned by the third-party application module 104, the front-end processor link proxy server 102 sends the returned data to the acquisition device 103.
In one embodiment, as shown in fig. 2, a data interaction method based on front-end containerization is provided, which is described by taking the method as an example applied to the front-end chaining proxy server 102 in fig. 1, and includes the following steps:
step S201, receiving a front-end processor container link instruction sent by a request sender; the front-end processor container link instruction carries a channel type and a unique identification value of a party to be connected.
The front-end processor container is a container obtained by encapsulating configuration parameters of each device and front-end processor parameters together on a front-end processor server, and is called as a front-end processor container. The front-end processor containerization is one of virtualization technologies, and a plurality of containers can be deployed on a front-end processor server through the front-end processor containerization, and each device corresponds to one front-end processor container, so that the effect of resource isolation can be achieved.
In this step, the front-end processor link proxy server 102 receives a front-end processor container link command of a request sender, where the request sender may be the master station 101, the device 103, or a third-party server. The link instruction of the front-end processor needs to include a channel type and a unique identification value of a party to be connected, wherein the channel type includes one of a control channel, a message channel, a forward proxy channel and a reverse proxy channel.
Step S202, responding to the container link instruction of the front-end processor, and inquiring the front-end processor container corresponding to the party to be connected in the locally configured container management center according to the unique identification value.
The container management center is a container management system configured on a local server, and can automatically deploy, expand and manage containerized applications.
In this step, since the to-be-connected parties and the front-end processor containers are in one-to-one correspondence, each to-be-connected party has a unique marking value, and thus each front-end processor container is also unique. The front-end processor container proxy server 102 queries in the container management center according to the unique identification value of the party to be connected to obtain front-end processor containers corresponding to the party to be connected one by one.
Step S203, establishing a communication channel corresponding to the channel type with the request sender.
Specifically, the front-end processor link proxy server 102 establishes a corresponding communication channel for the front-end processor container and the request sender according to the channel type.
Step S204, based on the communication channel, providing data interaction for the request sender and the front-end processor container.
Specifically, the front-end processor link proxy server 102 provides data interaction at the time of the request sender and the front-end processor container after establishing the above channel. For example, after receiving data of a request sender, the data is forwarded to a corresponding front-end processor container. Or the data which needs to be sent by the front-end processor container is forwarded to the request sender.
The data interaction method based on the front-end processor containerization receives a front-end processor container link instruction sent by a request sender; the front-end processor container link instruction carries the channel type and the unique identification value of the party to be connected; responding to a front-end processor container link instruction, and inquiring a front-end processor container corresponding to a party to be connected in a locally configured container management center according to the unique identification value; and establishing a communication channel corresponding to the channel type with the request sender, and providing data interaction for the request sender and the front-end processor container based on the communication channel. The proxy server has a data cache region thereof, and can store the data to be accessed in the data cache region thereof, when the request sender needs to access the data of the party to be connected, the access request does not need to be sent to the party to be connected, and only needs to be directly called from the data cache region of the proxy server, thus greatly shortening the data interaction time, improving the bandwidth, improving the data processing capability of the front-end processor, and simultaneously considering the safety of the front-end processor.
In one embodiment, as shown in fig. 3, when the channel type is a control channel type, the step S204 includes:
receiving a first message sent by a request sender through the communication channel; and forwarding the first message to a front-end processor container so that the front-end processor container sends a first message analysis result obtained by analyzing the first message to a party to be connected.
In this step, the request sender may be the master station 101, and the first message includes a control instruction of the master station for a specific device, such as an inquiry instruction, a software upgrade instruction, and the like. The front-end processor connection proxy server 102 receives the message sent by the master station, transmits the message to a corresponding front-end processor container through an established control channel according to a Global Unique Identifier (GUID) value of the device, the front-end processor container receives the message and analyzes the message, because the front-end processor container and the device are in a one-to-one correspondence relationship, a visible analysis result of the front-end processor container is sent to the corresponding device, the device receives the message and processes the message according to a control instruction, or returns a processing result to the corresponding front-end processor container, the front-end processor container receives the processing result and returns the result to the front-end processor connection proxy server 102 through an original channel, and the front-end processor connection proxy server 102 returns the result to the master station 101.
In the embodiment, the data interaction between the master station 101 and the specific device is realized through the control channel established by the front-end processor linked proxy server 102, wherein the software environment parameters of the corresponding device are integrally packaged by the front-end processor container, so that the software upgrade, query and the like of the master station for the device become quicker; on the other hand, because a plurality of front-end processor containers are operated on the front-end processor link proxy server 102, and the containers share the kernel of the same operating system, the internal interconnection is realized, so that the distributed deployment of the application program is realized, and the extension or debugging of the software on the device by the main station becomes simpler.
In an embodiment, as shown in fig. 4, when the channel type is a forward proxy channel type, the step S204 includes: receiving a second message sent by a request sender through the communication channel; and redirecting the second message to the front-end processor container so that the front-end processor container sends a second message analysis result obtained by analyzing the second message to the party to be connected, or so that the front-end processor container feeds back the second message analysis result obtained by analyzing, and sends the second message analysis result to the request sending party through the communication channel.
Specifically, the second message includes an asset scanning instruction, the front-end processor link proxy server 102 receives the asset scanning instruction sent by the master station and sends the asset scanning instruction to the corresponding front-end processor container, after the front-end processor container receives the asset scanning instruction, the ss-redir transparent proxy is started, the transparent proxy is used, the server serving as the message receiving end can know that the message sending end uses the proxy server and also know the real IP address of the message sending end, data interaction is generated between the established ss-redir proxy channel and the corresponding device 103, meanwhile, the ss-redir transparent proxy operation processing result is sent to the front-end processor link proxy server 102, and the front-end processor link proxy server 102 forwards the operation processing result to the master station.
In the above embodiment, the front-end processor link proxy server 102 establishes a forward proxy channel between the scan server and the device 103, the front-end processor link proxy server 102 hides the IP address of the scan server, and the device 103 only receives access from the front-end processor link proxy server 102, which ensures the security of the scan server.
In one embodiment, as shown in fig. 5, when the channel type is a reverse proxy channel type, the step S204 includes: receiving a third message sent by the front-end processor container; the third message is sent to the front-end processor container by the party to be connected; the third message is forwarded to the request sender through the communication channel, so that the request sender sends a feedback result corresponding to the third message through the communication channel; and sending the feedback result to the front-end processor container.
Specifically, the front-end processor link proxy service 102 constructs a reverse proxy channel between the third-party protection server and a third-party client, where the third-party client is a third-party client connected to the corresponding device. The third-party client sends data to a corresponding device, the device sends a processing result to a corresponding front-end processor container after processing the data, the front-end processor container analyzes the processing result to obtain an analysis result as the third message, the front-end processor link proxy server 102 sends the third message to a third-party protection server, the third-party protection server forms response data aiming at the third message, sends the response data to the front-end processor container, the response data are processed by the front-end processor and sent to the corresponding device, and the device feeds back the processing result to the third-party client.
In the embodiment, the front-end processor link proxy server 102 establishes the reverse channel between the third-party server and the third-party client, so that data interaction between the third-party client and the third-party server is realized, and meanwhile, because the third-party protection server is a cluster, the front-end processor link proxy server 102 uniformly distributes the data requests initiated by the third-party client to each server, so that a certain server cannot be overloaded, and load balancing is realized.
In an embodiment, as shown in fig. 6, the front-end processor container in fig. 6 may be configured to trigger the party to be connected to feed back the acquired data and send a data parsing result obtained by parsing the data to the request sender.
Specifically, the party to be connected is a device, and the request sender is a master station. Each device has a unique corresponding front-end processor container, the front-end processor container can send a data connection request to the device corresponding to the front-end processor container, the device responds to the data connection request, collects data, sends the collected data to the corresponding front-end processor container, and the front-end processor container analyzes the data and sends an analysis result to the main station.
Optionally, a system resource limit occupied by each container, for example, a memory resource, may be preset, so that a front-end processor container corresponding to a device with a large data collection amount may be allocated to more system resources for operation.
In the above embodiment, the data collected by the corresponding device is analyzed and forwarded to the master station through the front-end processor container, so that message interaction between the device and the master station is realized. Because the front-end processor container is a light-weight virtual container which is established on the front-end processor server and corresponds to different devices one to one, a plurality of virtual containers can be established by the same set of server resources, and resource isolation can be realized among different virtual containers, the embodiment can realize message transmission between different devices and the main station without mutual influence, and realizes communication between the main station and the distributed front-end processor container.
In an embodiment, the request sender is configured to send a container initialization parameter to a corresponding front-end processor in an initialization process of a front-end processor container, so that when the front-end processor container runs abnormally and a local operating system of the front-end processor is normal, the front-end processor container is restarted according to the container initialization parameter.
Specifically, when the container is initialized, the master station sends initialization parameters to the front-end processor and stores the initialization parameters in the corresponding front-end processor container, and when the front-end processor container runs abnormally, for example, when the front-end processor container crashes, because the local operating system of the front-end processor runs normally at the moment, the front-end processor container can be automatically restarted in the shortest time by calling the resources of the local operating system according to the initialization parameters.
In the embodiment, the initialization parameters of the front-end processor container are set, so that the front-end processor container can be automatically restarted when the front-end processor container fails, the time of failure is reduced, and the normal operation of the service is ensured.
In an embodiment, the data interaction method based on front-end processor containerization further includes: acquiring configuration information of a party to be connected according to the unique identification value; acquiring a front-end processor application mirror image; and generating a front-end processor container according to the configuration information and the front-end processor application mirror image.
In the above steps, the front-end application image may be understood as a template for creating the container. Specifically, since each device has a unique identification value, the front-end processor link proxy server 102 is provided with a container configuration center, in which the unique identification values of all the devices, IP addresses and configuration parameters of the respective devices, such as environment configuration parameters, are stored. The process of deploying the container by the front-end processor is that the front-end processor link proxy server 102 queries in the container configuration center according to the unique identification value of the device to obtain the configuration parameters of the corresponding device, optionally, the front-end processor link proxy server 102 may also query according to the IP address of the device to obtain the configuration parameters of the corresponding device, and after the front-end processor link proxy server 102 obtains the application template of the front-end processor, different front-end processor containers are created according to the configuration parameters corresponding to different devices.
In the embodiment, the configuration parameters of different devices are obtained through the unique identification values of the different devices, the distributed front-end processor containers can be rapidly deployed by taking the application mirror image of the front-end processor as a template, and the front-end processor containers and the devices establish a one-to-one relationship, so that each front-end processor container is isolated by resources, and the application programs in each front-end processor container are independent from each other, thereby providing a basis for further realizing load balancing. For example, rather than multiple different devices simultaneously transmitting data to the master through the same front-end server, different front-end containers may transmit data to the master.
It should be understood that although the steps in the flowcharts of fig. 1 to 6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 to 6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 7, there is provided a front-end processor containerization based data interaction apparatus 700, including: an instruction receiving module 701, a container query module 702, a channel establishing module 703 and a data interaction module 704, wherein:
an instruction receiving module 701, configured to receive a front-end processor container link instruction sent by a request sender; the front-end processor container link instruction carries a channel type and a unique identification value of a party to be connected;
a container query module 702, configured to, in response to the front-end processor container link instruction, query, in a locally configured container management center, a front-end processor container corresponding to the party to be connected, according to the unique identifier value;
a channel establishing module 703, configured to establish, with the request sender, a communication channel corresponding to the channel type;
and a data interaction module 704, configured to provide data interaction for the request sender and the front-end processor container based on the communication channel.
The data interaction module 704, in one embodiment, is further configured to,
receiving a first message sent by the request sender through the communication channel;
and forwarding the first message to the front-end processor container so that the front-end processor container sends a first message analysis result obtained by analyzing the first message to the party to be connected.
The data interaction module 704, in one embodiment, is further configured to,
receiving a second message sent by the request sender through the communication channel;
and redirecting the second message to the front-end processor container so that the front-end processor container sends a second message analysis result obtained by analyzing the second message to the party to be connected, or so that the front-end processor container feeds back the second message analysis result obtained by analyzing, and sends the second message analysis result to the request sender through the communication channel.
The data interaction module 704, in one embodiment, is further configured to,
receiving a third message sent by the front-end processor container; the third message is sent to the front-end processor container by the party to be connected;
the third message is forwarded to the request sending party through the communication channel, so that the request sending party sends a feedback result corresponding to the third message through the communication channel;
and sending the feedback result to the front-end processor container.
In an embodiment, the front-end processor container is further configured to trigger the party to be connected to feed back the acquired data and send a data analysis result obtained by analyzing the data to the request sender.
In an embodiment, a request sender, for example, the master station 101, is configured to send a container initialization parameter to a corresponding front-end processor in an initialization process of the front-end processor container, so that when the front-end processor container runs abnormally and a local operating system of the front-end processor runs normally, the front-end processor container is restarted according to the container initialization parameter.
In an embodiment, the data interaction apparatus 700 based on the front-end processor containerization further includes a container deployment unit, configured to obtain configuration information of the party to be connected according to the unique identification value; acquiring a front-end processor application mirror image; and generating the front-end processor container according to the configuration information and the front-end processor application mirror image.
For specific limitations of the data interaction device based on the front-end processor containerization, reference may be made to the above limitations of the data interaction method based on the front-end processor containerization, and details are not repeated here. The modules in the data interaction device based on the front-end processor containerization can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as container configuration parameters, device configuration parameters, container initialization parameters and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data interaction method based on front-end processor containerization.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A data interaction method based on front-end processor containerization is characterized by comprising the following steps:
receiving a front-end processor container link instruction sent by a request sender; the front-end processor container link instruction carries a channel type and a unique identification value of a party to be connected;
responding to the front-end processor container link instruction, and inquiring a front-end processor container corresponding to the party to be connected in a locally configured container management center according to the unique identification value;
establishing a communication channel corresponding to the channel type with the request sender;
and providing data interaction for the request sender and the front-end processor container based on the communication channel.
2. The method of claim 1, wherein the channel type comprises a control channel type; the providing data interaction for the request sender and the front-end processor container based on the communication channel comprises:
receiving a first message sent by the request sender through the communication channel;
and forwarding the first message to the front-end processor container so that the front-end processor container sends a first message analysis result obtained by analyzing the first message to the party to be connected.
3. The method of claim 1, wherein the channel type comprises a forward proxy channel type; the providing data interaction for the request sender and the front-end processor container based on the communication channel comprises:
receiving a second message sent by the request sender through the communication channel;
and redirecting the second message to the front-end processor container so that the front-end processor container sends a second message analysis result obtained by analyzing the second message to the party to be connected, or so that the front-end processor container feeds back the second message analysis result obtained by analyzing, and sends the second message analysis result to the request sender through the communication channel.
4. The method of claim 1, wherein the channel type is a reverse proxy channel type; the providing data interaction for the request sender and the front-end processor container based on the communication channel comprises:
receiving a third message sent by the front-end processor container; the third message is sent to the front-end processor container by the party to be connected;
the third message is forwarded to the request sending party through the communication channel, so that the request sending party sends a feedback result corresponding to the third message through the communication channel;
and sending the feedback result to the front-end processor container.
5. The method according to claim 1, wherein the front-end processor container is configured to trigger the party to be connected to feed back the acquired data and send a data analysis result obtained by analyzing the data to the request sender.
6. The method according to any one of claims 1 to 5, wherein the request sender is configured to send a container initialization parameter to the corresponding front-end processor in an initialization process of the front-end processor container, so that when the front-end processor container runs abnormally and the local operating system of the front-end processor runs normally, the front-end processor container is restarted according to the container initialization parameter.
7. The method according to any one of claims 1 to 5, further comprising:
acquiring the configuration information of the party to be connected according to the unique identification value;
acquiring a front-end processor application mirror image;
and generating the front-end processor container according to the configuration information and the front-end processor application mirror image.
8. A data interaction device based on front-end processor containerization, the device comprising:
the instruction receiving module is used for receiving a front-end processor container link instruction sent by a request sender; the front-end processor container link instruction carries a channel type and a unique identification value of a party to be connected;
the container query module is used for responding to the container link instruction of the front-end processor and querying a front-end processor container corresponding to the party to be connected in a locally configured container management center according to the unique identification value;
the channel establishing module is used for establishing a communication channel corresponding to the channel type with the request sender;
and the data interaction module is used for providing data interaction for the request sender and the front-end processor container based on the communication channel.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202111375438.4A 2021-11-19 2021-11-19 Data interaction method, device, equipment and medium based on front-end processor containerization Pending CN114257611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111375438.4A CN114257611A (en) 2021-11-19 2021-11-19 Data interaction method, device, equipment and medium based on front-end processor containerization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111375438.4A CN114257611A (en) 2021-11-19 2021-11-19 Data interaction method, device, equipment and medium based on front-end processor containerization

Publications (1)

Publication Number Publication Date
CN114257611A true CN114257611A (en) 2022-03-29

Family

ID=80792785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111375438.4A Pending CN114257611A (en) 2021-11-19 2021-11-19 Data interaction method, device, equipment and medium based on front-end processor containerization

Country Status (1)

Country Link
CN (1) CN114257611A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302046A (en) * 2016-08-15 2017-01-04 中国联合网络通信集团有限公司 Control method for remote controller and device
CN110430276A (en) * 2019-08-12 2019-11-08 中国南方电网有限责任公司 Communication control method, device, communication control unit and storage medium based on docker
CN110943993A (en) * 2019-12-02 2020-03-31 北京锐安科技有限公司 Method and device for requesting preposition, computer equipment and storage medium
CN111064636A (en) * 2019-12-12 2020-04-24 南方电网数字电网研究院有限公司 Control method, device and system for connection of front-end processor and computer equipment
CN113568638A (en) * 2021-07-26 2021-10-29 广东电网有限责任公司 Containerization non-stop issuing method for power monitoring system based on mirror image warehouse

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302046A (en) * 2016-08-15 2017-01-04 中国联合网络通信集团有限公司 Control method for remote controller and device
CN110430276A (en) * 2019-08-12 2019-11-08 中国南方电网有限责任公司 Communication control method, device, communication control unit and storage medium based on docker
CN110943993A (en) * 2019-12-02 2020-03-31 北京锐安科技有限公司 Method and device for requesting preposition, computer equipment and storage medium
CN111064636A (en) * 2019-12-12 2020-04-24 南方电网数字电网研究院有限公司 Control method, device and system for connection of front-end processor and computer equipment
CN113568638A (en) * 2021-07-26 2021-10-29 广东电网有限责任公司 Containerization non-stop issuing method for power monitoring system based on mirror image warehouse

Similar Documents

Publication Publication Date Title
CN111401903B (en) Block chain message processing method, device, computer and readable storage medium
CN111431740B (en) Data transmission method, device, equipment and computer readable storage medium
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
CN110727499A (en) Resource data acquisition method and device, computer equipment and storage medium
CN111193716B (en) Service data calling method and device, computer equipment and storage medium
CN109510840B (en) Method and device for sharing unstructured data, computer equipment and storage medium
CN112632566B (en) Vulnerability scanning method and device, storage medium and electronic equipment
CN109933439B (en) Message transmission method, device, computer equipment and storage medium
CN113285926B (en) Honey pot trapping method and device for power monitoring system and computer equipment
CN109246235B (en) Method and device for receiving monitoring data and data monitoring system
CN112291298A (en) Data transmission method and device for heterogeneous system, computer equipment and storage medium
CN110716989A (en) Dimension data processing method and device, computer equipment and storage medium
CN112612595A (en) Method and device for establishing micro-service calling relationship, computer equipment and storage medium
CN112968965B (en) Metadata service method, server and storage medium for NFV network node
CN108595280B (en) Interface adaptation method and device, computer equipment and storage medium
CN114024972A (en) Long connection communication method, system, device, equipment and storage medium
CN114501593A (en) Network slice access method, device, system and storage medium
CN116805946A (en) Message request processing method and device, electronic equipment and storage medium
CN110597783A (en) Database management method, device, equipment and storage medium
CN114257611A (en) Data interaction method, device, equipment and medium based on front-end processor containerization
CN115509756A (en) Multi-cluster computing task submitting method and related device and equipment
CN115829262A (en) Control and allocation method and system for unmanned aircraft and readable storage medium
US20220078158A1 (en) Processing system and processing method
CN114745377A (en) Edge cloud cluster service system and implementation method
CN113568638A (en) Containerization non-stop issuing method for power monitoring system based on mirror image warehouse

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
TA01 Transfer of patent application right

Effective date of registration: 20230912

Address after: 518000 building 501, 502, 601, 602, building D, wisdom Plaza, Qiaoxiang Road, Gaofa community, Shahe street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: China Southern Power Grid Digital Platform Technology (Guangdong) Co.,Ltd.

Address before: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province

Applicant before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

TA01 Transfer of patent application right