CN117834754A - Equipment multi-protocol analysis method based on distribution room gateway - Google Patents

Equipment multi-protocol analysis method based on distribution room gateway Download PDF

Info

Publication number
CN117834754A
CN117834754A CN202410015176.8A CN202410015176A CN117834754A CN 117834754 A CN117834754 A CN 117834754A CN 202410015176 A CN202410015176 A CN 202410015176A CN 117834754 A CN117834754 A CN 117834754A
Authority
CN
China
Prior art keywords
analysis
file
data packet
equipment
protocol
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.)
Granted
Application number
CN202410015176.8A
Other languages
Chinese (zh)
Other versions
CN117834754B (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.)
Anhui Zhengtu Electric Co ltd
Original Assignee
Anhui Zhengtu Electric 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 Anhui Zhengtu Electric Co ltd filed Critical Anhui Zhengtu Electric Co ltd
Priority to CN202410015176.8A priority Critical patent/CN117834754B/en
Publication of CN117834754A publication Critical patent/CN117834754A/en
Application granted granted Critical
Publication of CN117834754B publication Critical patent/CN117834754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • 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/24Negotiation of communication capabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a multi-protocol analysis method for equipment based on a gateway of a distribution room. In the method, when the monitoring equipment monitors a first data packet transmitted on a first communication link, a first analysis instruction is sent to analysis equipment, so that the analysis equipment determines first analysis resources according to a first file type identifier, a first file size and a preset analysis resource allocation model, and accordingly the analysis equipment responds to the first analysis instruction to allocate first reserved resources in a target duration, so that the first reserved resources are utilized, the first data packet is analyzed according to a first analysis protocol, and further a first analysis file corresponding to the first data packet is determined, and the technical effects of automatically monitoring gateway interface data packet transmission and automatically analyzing by selecting the analysis protocol corresponding to the data packet are achieved.

Description

Equipment multi-protocol analysis method based on distribution room gateway
Technical Field
The application relates to a data processing technology, in particular to a multi-protocol analysis method for equipment based on a gateway of a distribution room.
Background
With the intelligent development of power grid management, the management method of the gateway data transmission in the modern power distribution room is developing towards more intelligent, standardized, safer and user-friendly, so as to meet the increasingly complex industrial automation and energy management requirements.
In the prior art, after a distribution room receives a maintenance work order, the distribution room generally retrieves the power grid monitoring data corresponding to the maintenance work order to analyze the data and analyze the cause of the abnormality, and the distribution room has serious hysteresis.
Therefore, there is a need for a multi-protocol analysis method for equipment based on a distribution room gateway to improve the analysis efficiency of the grid monitoring data.
Disclosure of Invention
The utility model provides a device multi-protocol analysis method based on a distribution room gateway, which is used for realizing automatic monitoring of gateway interface data packet transmission and automatic analysis of analysis protocols corresponding to selected data packets, thereby realizing timely analysis and utilization of power grid monitoring data.
In a first aspect, the present application provides a device multi-protocol parsing method based on a distribution room gateway, which is applied to a distribution room information management system, where the distribution room information management system includes a monitoring device, a parsing device, and a gateway set formed by a plurality of gateway interfaces; the method comprises the following steps:
when the monitoring device monitors a first data packet transmitted on a first communication link, a first analysis instruction is sent to the analysis device, the first analysis instruction comprises first file attribute information of the first data packet, the first file attribute information comprises a first file type identifier and a first file size, and the first communication link is used for connecting a first gateway in the gateway set with external power grid equipment;
the analysis equipment determines a first analysis resource according to the first file type identifier, the first file size and a preset analysis resource allocation model, wherein the first file type identifier is used for representing a first analysis protocol corresponding to the first data packet;
the analysis equipment responds to the first analysis indication, and distributes first reserved resources in a target duration, wherein the first reserved resources are larger than or equal to the first analysis resources;
and the analysis equipment analyzes the first data packet by utilizing the first reserved resource according to the first analysis protocol so as to determine a first analysis file corresponding to the first data packet.
Optionally, before the parsing device allocates the first reserved resource in the target duration in response to the first parsing instruction, the method further includes:
the analysis equipment determines a first transmission duration according to the first file size and a first transmission bandwidth of the first communication link;
the analysis equipment determines a second transmission duration according to the first file size and a second transmission bandwidth of a second communication link, wherein the second communication link is used for connecting the first gateway and the analysis equipment;
the analysis equipment determines the target duration according to the first transmission duration and the second transmission duration.
Optionally, the determining, by the parsing device, the target duration according to the first transmission duration and the second transmission duration includes:
the analysis equipment determines a communication transmission mode according to the link information of the second communication link, wherein the communication transmission mode comprises a synchronous blocking transmission mode and an asynchronous streaming transmission mode;
if the communication transmission mode is the synchronous blocking transmission mode, the target duration is the sum of the first transmission duration and the second transmission duration;
if the communication transmission mode is the asynchronous streaming mode and the second transmission bandwidth is greater than or equal to the first transmission bandwidth, the target duration is the first transmission duration;
and if the communication transmission mode is the asynchronous streaming mode and the second transmission bandwidth is smaller than the first transmission bandwidth, the target duration is the second transmission duration.
Optionally, the parsing device parses the first data packet according to the first parsing protocol by using the first reserved resource, including:
the analysis equipment determines a first analysis form corresponding to the first analysis protocol according to a preset protocol type mapping table;
if the first analysis form is a streaming analysis form, the analysis equipment analyzes the first data packet according to the current reserved resource and the first analysis protocol, wherein the current reserved resource is the reserved resource which is already allocated in the first reserved resource at the current moment;
and if the first analysis form is a non-streaming analysis form, the analysis equipment analyzes the first data packet according to the first analysis protocol by utilizing the first reserved resource after the target duration.
Optionally, the determining, by the parsing device, the first parsing resource according to the first file type identifier, the first file size, and a preset parsing resource allocation model includes:
the analysis equipment determines the first analysis protocol corresponding to the first file type identifier according to a preset analysis protocol mapping table;
the analysis equipment determines a first analysis rate V corresponding to the first analysis protocol according to a preset protocol analysis rate mapping table;
the parsing device determines the first parsing resource S according to the first parsing rate V and the first file size M by using formula 1, where formula 1 is:
wherein,in unit time, utilize the firstAnd (3) calibrating analysis resources occupied by an analysis protocol in analysis.
Optionally, the power distribution room information management system further comprises management equipment; after the parsing device parses the first data packet according to the first parsing protocol by using the first reserved resource to determine a first parsed file corresponding to the first data packet, the method further includes:
the analysis equipment sends the first analysis file to the management equipment so that the management equipment determines the abnormal node number of abnormal power supply nodes in a target power distribution network corresponding to the first gateway according to power supply abnormal information in the first analysis file, wherein the power supply abnormal information comprises power supply abnormal voltage monitored by an intelligent ammeter in the target power distribution network;
the management equipment determines abnormal node proportion according to the abnormal node quantity and the preset node total number in the target power distribution network;
and if the abnormal node proportion is larger than a preset abnormal node proportion threshold value, the management equipment determines that the target power distribution network is in an abnormal state.
Optionally, after the management device determines that the target power distribution network is in an abnormal state, the method further includes:
the management device generates a first log file according to the first analysis file, wherein the first log file is used for recording the abnormal state, the first file attribute information, the first gateway information corresponding to the first gateway and the power distribution network information corresponding to the target power distribution network;
the management device sends an original data packet request to the analysis device, and generates a first fault record file according to the first analysis file, the first data packet and the first log file after receiving the first data packet sent by the analysis device;
the management device allocates a fault number to the first fault record file and stores the first fault record file according to the fault number.
In a second aspect, the present application provides a power distribution room information management system, comprising: monitoring equipment, analysis equipment and a gateway set consisting of a plurality of gateway interfaces;
when the monitoring device monitors a first data packet transmitted on a first communication link, a first analysis instruction is sent to the analysis device, the first analysis instruction comprises first file attribute information of the first data packet, the first file attribute information comprises a first file type identifier and a first file size, and the first communication link is used for connecting a first gateway in the gateway set with external power grid equipment;
the analysis equipment determines a first analysis resource according to the first file type identifier, the first file size and a preset analysis resource allocation model, wherein the first file type identifier is used for representing a first analysis protocol corresponding to the first data packet;
the analysis equipment responds to the first analysis indication, and distributes first reserved resources in a target duration, wherein the first reserved resources are larger than or equal to the first analysis resources;
and the analysis equipment analyzes the first data packet by utilizing the first reserved resource according to the first analysis protocol so as to determine a first analysis file corresponding to the first data packet.
Optionally, the parsing device determines a first transmission duration according to the first file size and a first transmission bandwidth of the first communication link;
the analysis equipment determines a second transmission duration according to the first file size and a second transmission bandwidth of a second communication link, wherein the second communication link is used for connecting the first gateway and the analysis equipment;
the analysis equipment determines the target duration according to the first transmission duration and the second transmission duration.
Optionally, the parsing device determines a communication transmission mode according to the link information of the second communication link, where the communication transmission mode includes a synchronous blocking transmission mode and an asynchronous streaming mode;
if the communication transmission mode is the synchronous blocking transmission mode, the target duration is the sum of the first transmission duration and the second transmission duration;
if the communication transmission mode is the asynchronous streaming mode and the second transmission bandwidth is greater than or equal to the first transmission bandwidth, the target duration is the first transmission duration;
and if the communication transmission mode is the asynchronous streaming mode and the second transmission bandwidth is smaller than the first transmission bandwidth, the target duration is the second transmission duration.
Optionally, the parsing device determines a first parsing form corresponding to the first parsing protocol according to a preset protocol type mapping table;
if the first analysis form is a streaming analysis form, the analysis equipment analyzes the first data packet according to the current reserved resource and the first analysis protocol, wherein the current reserved resource is the reserved resource which is already allocated in the first reserved resource at the current moment;
and if the first analysis form is a non-streaming analysis form, the analysis equipment analyzes the first data packet according to the first analysis protocol by utilizing the first reserved resource after the target duration.
Optionally, the parsing device determines the first parsing protocol corresponding to the first file type identifier according to a preset parsing protocol mapping table;
the analysis equipment determines a first analysis rate V corresponding to the first analysis protocol according to a preset protocol analysis rate mapping table;
the parsing device determines the first parsing resource S according to the first parsing rate V and the first file size M by using formula 1, where formula 1 is:
wherein,and in unit time, utilizing the first analysis protocol to analyze the occupied calibration analysis resource.
Optionally, the power distribution room information management system further comprises management equipment;
the analysis equipment sends the first analysis file to the management equipment so that the management equipment determines the abnormal node number of abnormal power supply nodes in a target power distribution network corresponding to the first gateway according to power supply abnormal information in the first analysis file, wherein the power supply abnormal information comprises power supply abnormal voltage monitored by an intelligent ammeter in the target power distribution network;
the management equipment determines abnormal node proportion according to the abnormal node quantity and the preset node total number in the target power distribution network;
and if the abnormal node proportion is larger than a preset abnormal node proportion threshold value, the management equipment determines that the target power distribution network is in an abnormal state.
Optionally, the management device generates a first log file according to the first analysis file, where the first log file is used to record the abnormal state, the first file attribute information, first gateway information corresponding to the first gateway, and distribution network information corresponding to the target distribution network;
the management device sends an original data packet request to the analysis device, and generates a first fault record file according to the first analysis file, the first data packet and the first log file after receiving the first data packet sent by the analysis device;
the management device allocates a fault number to the first fault record file and stores the first fault record file according to the fault number.
In a third aspect, the present application provides an electronic device, comprising:
a processor; the method comprises the steps of,
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform any one of the possible methods described in the first aspect via execution of the executable instructions.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, are adapted to carry out any one of the possible methods described in the first aspect.
According to the equipment multi-protocol analysis method based on the distribution room gateway, when the monitoring equipment monitors the first data packet transmitted on the first communication link, the first analysis instruction is sent to the analysis equipment, so that the analysis equipment determines first analysis resources according to the first file type identification, the first file size and the preset analysis resource allocation model, the analysis equipment responds to the first analysis instruction, first reserved resources are distributed in target duration, the first reserved resources are utilized, the first data packet is analyzed according to the first analysis protocol, and further the first analysis file corresponding to the first data packet is determined, so that the technical effects of automatically monitoring the gateway interface data packet transmission and automatically analyzing the analysis protocol corresponding to the selected data packet are achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow diagram of a method of multi-protocol resolution of a distribution room gateway-based device according to an example embodiment of the present application;
FIG. 2 is a flow diagram of a method of multi-protocol resolution of a distribution room gateway-based device according to another example embodiment of the present application;
FIG. 3 is a schematic diagram of a configuration of a power distribution room information management system according to an example embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an example embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
Fig. 1 is a flow chart illustrating a method of multi-protocol resolution of a distribution room gateway-based device according to an example embodiment of the present application. As shown in fig. 1, the method provided in this embodiment includes:
s101, when the monitoring device monitors a first data packet transmitted on a first communication link, a first analysis instruction is sent to the analysis device.
The multi-protocol analysis method for the equipment based on the distribution room gateway provided by the embodiment can be applied to a distribution room information management system. The distribution room information management system comprises a monitoring device, a resolving device and a gateway set formed by a plurality of gateway interfaces. It should be noted that the above-mentioned power distribution room information management system may be disposed in a power supply management unit within a characteristic power supply range, for example, may be disposed in a provincial power supply station, a municipal power supply station, a county power supply station, and a village power supply station. It should be noted that the monitoring device, the analyzing device and the gateway interface may be separately configured devices, or may be different functional modules integrated on the same device.
In this step, when the monitoring device monitors a first data packet transmitted on a first communication link, a first analysis instruction is sent to an analysis device, where the first analysis instruction includes first file attribute information of the first data packet, the first file attribute information includes a first file type identifier and a first file size, and the first communication link is used to connect a first gateway in a gateway set with an external power grid device.
S102, the analysis equipment determines a first analysis resource according to the first file type identifier, the first file size and a preset analysis resource allocation model.
In this step, the parsing device may determine the first parsing resource according to a first file type identifier, a first file size, and a preset parsing resource allocation model, where the first file type identifier is used to characterize a first parsing protocol corresponding to the first data packet. It should be noted that, because the construction of the power supply network is a continuous construction engineering, the analysis protocols corresponding to the data collected by the set device may be different protocols in the same power supply area due to the time sequence of the construction, for example, the analysis protocols may be different time versions of the same protocol, or may be new and old protocols after the technology iteration.
Specifically, the parsing device may determine, according to a preset parsing protocol mapping table, a first parsing protocol corresponding to the first file type identifier. The analysis equipment determines a first analysis rate V corresponding to a first analysis protocol according to a preset protocol analysis rate mapping table. The parsing device determines a first parsing resource S according to a first parsing rate V and a first file size M by using formula 1, where formula 1 is:
wherein,and in unit time, utilizing the first analysis protocol to analyze the occupied calibration analysis resource.
And S103, responding to the first analysis instruction by the analysis equipment, and distributing out the first reserved resource in the target duration.
In this step, the parsing apparatus may allocate a first reserved resource within the target duration in response to the first parsing instruction, the first reserved resource being greater than or equal to the first parsing resource.
S104, analyzing the first data packet by the analyzing device according to the first analyzing protocol by utilizing the first reserved resource so as to determine a first analyzing file corresponding to the first data packet.
In this step, the parsing device may parse the first data packet according to the first parsing protocol by using the first reserved resource, so as to determine a first parsing file corresponding to the first data packet.
In this embodiment, when the monitoring device monitors a first data packet transmitted on the first communication link, a first analysis instruction is sent to the analysis device, so that the analysis device determines a first analysis resource according to a first file type identifier, a first file size and a preset analysis resource allocation model, so that the analysis device responds to the first analysis instruction to allocate a first reserved resource in a target duration, so as to utilize the first reserved resource, analyze the first data packet according to a first analysis protocol, and further determine a first analysis file corresponding to the first data packet, thereby realizing the technical effects of automatically monitoring the gateway interface data packet transmission and automatically analyzing by selecting the analysis protocol corresponding to the data packet.
Fig. 2 is a flow chart of a device multi-protocol parsing method based on a distribution room gateway according to another example embodiment of the present application. As shown in fig. 2, the method provided in this embodiment includes:
s201, when the monitoring device monitors a first data packet transmitted on a first communication link, a first analysis instruction is sent to the analysis device.
In this step, when the monitoring device monitors a first data packet transmitted on a first communication link, a first analysis instruction is sent to an analysis device, where the first analysis instruction includes first file attribute information of the first data packet, the first file attribute information includes a first file type identifier and a first file size, and the first communication link is used to connect a first gateway in a gateway set with an external power grid device.
S202, the analysis equipment determines a first analysis resource according to the first file type identifier, the first file size and a preset analysis resource allocation model.
In this step, the parsing device may determine the first parsing resource according to a first file type identifier, a first file size, and a preset parsing resource allocation model, where the first file type identifier is used to characterize a first parsing protocol corresponding to the first data packet. It should be noted that, because the construction of the power supply network is a continuous construction engineering, the analysis protocols corresponding to the data collected by the set device may be different protocols in the same power supply area due to the time sequence of the construction, for example, the analysis protocols may be different time versions of the same protocol, or may be new and old protocols after the technology iteration.
Specifically, the parsing device may determine, according to a preset parsing protocol mapping table, a first parsing protocol corresponding to the first file type identifier. The analysis equipment determines a first analysis rate V corresponding to a first analysis protocol according to a preset protocol analysis rate mapping table. The parsing device determines a first parsing resource S according to a first parsing rate V and a first file size M by using formula 1, where formula 1 is:
wherein,and in unit time, utilizing the first analysis protocol to analyze the occupied calibration analysis resource.
S203, the analysis device determines a first transmission duration according to the first file size and the first transmission bandwidth of the first communication link.
In this step, the parsing device may determine the first transmission duration according to the first file size and the first transmission bandwidth of the first communication link. The first transmission bandwidth may be an average transmission bandwidth of the first communication link. Specifically, the first transmission duration may refer to a transmission time required to transmit the data amount of the first file size through the first transmission bandwidth.
S204, the analysis equipment determines a second transmission duration according to the first file size and a second transmission bandwidth of the second communication link.
In this step, the parsing device determines a second transmission duration according to the first file size and a second transmission bandwidth of a second communication link, where the second communication link is used to connect the first gateway and the parsing device. The second transmission bandwidth may be an average transmission bandwidth of the second communication link. Specifically, the second transmission duration may refer to a transmission time required to transmit the data amount of the first file size through the second transmission bandwidth.
S205, the analysis equipment determines a target duration according to the first transmission duration and the second transmission duration.
In this step, the parsing device may determine a communication transmission mode based on link information of the second communication link, the communication transmission mode including a synchronous blocking transmission mode and an asynchronous streaming mode. It should be noted that, in the synchronous blocking transmission mode, after the first data packet is transmitted through the first transmission link, that is, after the first gateway has completed transmitting the first data packet, the second communication link is used to transmit the first data packet to the parsing device. In the asynchronous streaming mode, the portion that has been completed by the transmission may be transmitted to the parsing device via the second communication link while the first data packet is transmitted via the first transmission link.
If the communication transmission mode is a synchronous blocking transmission mode, the target time length is the sum of the first transmission time length and the second transmission time length.
If the communication transmission mode is an asynchronous streaming mode and the second transmission bandwidth is greater than or equal to the first transmission bandwidth, the target duration is the first transmission duration.
If the communication transmission mode is an asynchronous streaming mode and the second transmission bandwidth is smaller than the first transmission bandwidth, the target duration is the second transmission duration.
In the step, the corresponding target duration is determined by determining the communication transmission mode, so that the combination of the data transmission time and the resource allocation time is realized, the land resource allocation is more reasonable and targeted, and the utilization efficiency of analysis resources is further improved.
S206, responding to the first analysis instruction by the analysis equipment, and distributing out the first reserved resources in the target duration.
In this step, the parsing apparatus may allocate a first reserved resource within the target duration in response to the first parsing instruction, where the first reserved resource is greater than or equal to the first parsing resource.
S207, the analysis equipment analyzes the first data packet according to the first analysis protocol by utilizing the first reserved resource so as to determine a first analysis file corresponding to the first data packet.
In this step, the parsing device may parse the first data packet according to the first parsing protocol by using the first reserved resource, so as to determine a first parsing file corresponding to the first data packet.
Specifically, the parsing device may determine a first parsing form corresponding to the first parsing protocol according to a preset protocol type mapping table.
If the first analysis form is a streaming analysis form, the analysis equipment analyzes the first data packet according to the current reserved resource and according to the first analysis protocol, wherein the current reserved resource is the reserved resource allocated in the first reserved resource at the current moment.
If the first analysis form is a non-streaming analysis form, after the target duration, the analysis device uses the first reserved resource and analyzes the first data packet according to the first analysis protocol.
Further, the distribution room information management system may further include a management device on the basis of the above-described embodiment. After the analysis device utilizes the first reserved resource and analyzes the first data packet according to the first analysis protocol to determine a first analysis file corresponding to the first data packet, the analysis device can also send the first analysis file to the management device, so that the management device determines the abnormal node number of abnormal power supply nodes in the target power distribution network corresponding to the first gateway according to the power supply abnormal information in the first analysis file, wherein the power supply abnormal information comprises the power supply abnormal voltage monitored by the intelligent ammeter in the target power distribution network.
Then, the management device determines an abnormal node ratio according to the abnormal node number and the total node number in the preset target power distribution network. If the abnormal node proportion is larger than a preset abnormal node proportion threshold value, the management equipment determines that the target power distribution network is in an abnormal state.
And after the management device determines that the target power distribution network is in the abnormal state, the management device may generate a first log file according to the first analysis file, where the first log file is used to record the abnormal state, the first file attribute information, the first gateway information corresponding to the first gateway, and the power distribution network information corresponding to the target power distribution network. In addition, the management device may further send an original data packet request to the parsing device, and after receiving the first data packet sent by the parsing device, generate a first fault record file according to the first parsing file, the first data packet, and the first log file. Finally, the management equipment distributes fault numbers for the first fault record files, and stores the first fault record files according to the fault numbers, so that abnormality judgment of the target power distribution network and comprehensive archiving of fault information are realized.
Fig. 3 is a schematic diagram of a configuration of a power distribution room information management system according to an exemplary embodiment of the present application. As shown in fig. 3, the power distribution room information management system 300 provided in this embodiment includes: listening device 310, parsing device 320, and gateway set 330 consisting of a plurality of gateway interfaces;
when the monitoring device 310 monitors a first data packet transmitted on a first communication link, sending a first parsing instruction to the parsing device 320, where the first parsing instruction includes first file attribute information of the first data packet, the first file attribute information includes a first file type identifier and a first file size, and the first communication link is used to connect a first gateway in the gateway set 330 with an external power grid device;
the parsing device 320 determines a first parsing resource according to the first file type identifier, the first file size, and a preset parsing resource allocation model, where the first file type identifier is used to characterize a first parsing protocol corresponding to the first data packet;
the parsing device 320 allocates a first reserved resource within a target duration in response to the first parsing indication, the first reserved resource being greater than or equal to the first parsing resource;
the parsing device 320 parses the first data packet according to the first parsing protocol by using the first reserved resource, so as to determine a first parsing file corresponding to the first data packet.
Optionally, the parsing device 320 determines a first transmission duration according to the first file size and a first transmission bandwidth of the first communication link;
the parsing device 320 determines a second transmission duration according to the first file size and a second transmission bandwidth of a second communication link, where the second communication link is used to connect the first gateway and the parsing device 320;
the parsing device 320 determines the target duration according to the first transmission duration and the second transmission duration.
Optionally, the parsing device 320 determines a communication transmission mode according to the link information of the second communication link, where the communication transmission mode includes a synchronous blocking transmission mode and an asynchronous streaming mode;
if the communication transmission mode is the synchronous blocking transmission mode, the target duration is the sum of the first transmission duration and the second transmission duration;
if the communication transmission mode is the asynchronous streaming mode and the second transmission bandwidth is greater than or equal to the first transmission bandwidth, the target duration is the first transmission duration;
and if the communication transmission mode is the asynchronous streaming mode and the second transmission bandwidth is smaller than the first transmission bandwidth, the target duration is the second transmission duration.
Optionally, the parsing device 320 determines a first parsing form corresponding to the first parsing protocol according to a preset protocol type mapping table;
if the first resolution format is a streaming resolution format, the resolution device 320 resolves the first data packet according to a current reserved resource and according to the first resolution protocol, where the current reserved resource is a reserved resource already allocated in the first reserved resource at a current time;
if the first parsing format is a non-streaming parsing format, the parsing device 320 uses the first reserved resource after the target duration, and parses the first data packet according to the first parsing protocol.
Optionally, the parsing device 320 determines the first parsing protocol corresponding to the first file type identifier according to a preset parsing protocol mapping table;
the parsing device 320 determines a first parsing rate V corresponding to the first parsing protocol according to a preset protocol parsing rate mapping table;
the parsing device 320 determines the first parsing resource S according to the first parsing rate V and the first file size M by using formula 1, where formula 1 is:
wherein,and in unit time, utilizing the first analysis protocol to analyze the occupied calibration analysis resource.
Optionally, the power distribution room information management system further includes a management device 340;
the parsing device 320 sends the first parsing file to the management device 340, so that the management device 340 determines the number of abnormal nodes of abnormal power supply nodes in a target power distribution network corresponding to the first gateway according to power supply abnormal information in the first parsing file, where the power supply abnormal information includes power supply abnormal voltages monitored by an intelligent ammeter in the target power distribution network;
the management device 340 determines an abnormal node proportion according to the abnormal node number and a preset total node number in the target power distribution network;
if the abnormal node ratio is greater than a preset abnormal node ratio threshold, the management device 340 determines that the target power distribution network is in an abnormal state.
Optionally, the management device 340 generates a first log file according to the first analysis file, where the first log file is used to record the abnormal state, the first file attribute information, first gateway information corresponding to the first gateway, and distribution network information corresponding to the target distribution network;
the management device 340 sends an original data packet request to the parsing device 320, and generates a first fault record file according to the first parsed file, the first data packet and the first log file after receiving the first data packet sent by the parsing device 320;
the management device 340 assigns a fault number to the first fault record file, and stores the first fault record file according to the fault number.
Fig. 4 is a schematic structural diagram of an electronic device according to an example embodiment of the present application. As shown in fig. 4, an electronic device 400 provided in this embodiment includes: a processor 401 and a memory 402; wherein:
a memory 402 for storing a computer program, which memory may also be a flash memory.
A processor 401 for executing the execution instructions stored in the memory to implement the steps in the above method. Reference may be made in particular to the description of the embodiments of the method described above.
Alternatively, the memory 402 may be separate or integrated with the processor 401.
When the memory 402 is a device separate from the processor 401, the electronic apparatus 400 may further include:
a bus 403 for connecting the memory 402 and the processor 401.
The present embodiment also provides a readable storage medium having a computer program stored therein, which when executed by at least one processor of an electronic device, performs the methods provided by the various embodiments described above.
The present embodiment also provides a program product comprising a computer program stored in a readable storage medium. The computer program may be read from a readable storage medium by at least one processor of an electronic device, and executed by the at least one processor, causes the electronic device to implement the methods provided by the various embodiments described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. The equipment multi-protocol analysis method based on the distribution room gateway is characterized by being applied to a distribution room information management system, wherein the distribution room information management system comprises monitoring equipment, analysis equipment and a gateway set formed by a plurality of gateway interfaces; the method comprises the following steps:
when the monitoring device monitors a first data packet transmitted on a first communication link, a first analysis instruction is sent to the analysis device, the first analysis instruction comprises first file attribute information of the first data packet, the first file attribute information comprises a first file type identifier and a first file size, and the first communication link is used for connecting a first gateway in the gateway set with external power grid equipment;
the analysis equipment determines a first analysis resource according to the first file type identifier, the first file size and a preset analysis resource allocation model, wherein the first file type identifier is used for representing a first analysis protocol corresponding to the first data packet;
the analysis equipment responds to the first analysis indication, and distributes first reserved resources in a target duration, wherein the first reserved resources are larger than or equal to the first analysis resources;
and the analysis equipment analyzes the first data packet by utilizing the first reserved resource according to the first analysis protocol so as to determine a first analysis file corresponding to the first data packet.
2. The method of equipment multiprotocol resolution based on a distribution room gateway of claim 1, further comprising, before the resolution equipment allocates a first reserved resource within a target time period in response to the first resolution indication:
the analysis equipment determines a first transmission duration according to the first file size and a first transmission bandwidth of the first communication link;
the analysis equipment determines a second transmission duration according to the first file size and a second transmission bandwidth of a second communication link, wherein the second communication link is used for connecting the first gateway and the analysis equipment;
the analysis equipment determines the target duration according to the first transmission duration and the second transmission duration.
3. The method for multi-protocol resolution of equipment based on a gateway of a distribution room according to claim 2, wherein the determining the target duration by the resolution equipment according to the first transmission duration and the second transmission duration comprises:
the analysis equipment determines a communication transmission mode according to the link information of the second communication link, wherein the communication transmission mode comprises a synchronous blocking transmission mode and an asynchronous streaming transmission mode;
if the communication transmission mode is the synchronous blocking transmission mode, the target duration is the sum of the first transmission duration and the second transmission duration;
if the communication transmission mode is the asynchronous streaming mode and the second transmission bandwidth is greater than or equal to the first transmission bandwidth, the target duration is the first transmission duration;
and if the communication transmission mode is the asynchronous streaming mode and the second transmission bandwidth is smaller than the first transmission bandwidth, the target duration is the second transmission duration.
4. The method for resolving multiple protocols for a gateway-based device of a distribution room according to claim 3, wherein the resolving device uses the first reserved resource and resolves the first data packet according to the first resolving protocol, comprising:
the analysis equipment determines a first analysis form corresponding to the first analysis protocol according to a preset protocol type mapping table;
if the first analysis form is a streaming analysis form, the analysis equipment analyzes the first data packet according to the current reserved resource and the first analysis protocol, wherein the current reserved resource is the reserved resource which is already allocated in the first reserved resource at the current moment;
and if the first analysis form is a non-streaming analysis form, the analysis equipment analyzes the first data packet according to the first analysis protocol by utilizing the first reserved resource after the target duration.
5. The method for multi-protocol resolution of a gateway-based device of any one of claims 1-4, wherein the determining, by the resolution device, a first resolution resource according to the first file type identifier, the first file size, and a preset resolution resource allocation model, includes:
the analysis equipment determines the first analysis protocol corresponding to the first file type identifier according to a preset analysis protocol mapping table;
the analysis equipment determines a first analysis rate V corresponding to the first analysis protocol according to a preset protocol analysis rate mapping table;
the parsing device determines the first parsing resource S according to the first parsing rate V and the first file size M by using formula 1, where formula 1 is:
wherein,and in unit time, utilizing the first analysis protocol to analyze the occupied calibration analysis resource.
6. The equipment multi-protocol analysis method based on the distribution room gateway according to claim 5, wherein the distribution room information management system further comprises management equipment; after the parsing device parses the first data packet according to the first parsing protocol by using the first reserved resource to determine a first parsed file corresponding to the first data packet, the method further includes:
the analysis equipment sends the first analysis file to the management equipment so that the management equipment determines the abnormal node number of abnormal power supply nodes in a target power distribution network corresponding to the first gateway according to power supply abnormal information in the first analysis file, wherein the power supply abnormal information comprises power supply abnormal voltage monitored by an intelligent ammeter in the target power distribution network;
the management equipment determines abnormal node proportion according to the abnormal node quantity and the preset node total number in the target power distribution network;
and if the abnormal node proportion is larger than a preset abnormal node proportion threshold value, the management equipment determines that the target power distribution network is in an abnormal state.
7. The method of equipment multiprotocol analysis based on a distribution room gateway of claim 6, wherein after the management equipment determines that the target distribution network is in an abnormal state, further comprising:
the management device generates a first log file according to the first analysis file, wherein the first log file is used for recording the abnormal state, the first file attribute information, the first gateway information corresponding to the first gateway and the power distribution network information corresponding to the target power distribution network;
the management device sends an original data packet request to the analysis device, and generates a first fault record file according to the first analysis file, the first data packet and the first log file after receiving the first data packet sent by the analysis device;
the management device allocates a fault number to the first fault record file and stores the first fault record file according to the fault number.
8. A power distribution room information management system, comprising: monitoring equipment, analysis equipment and a gateway set consisting of a plurality of gateway interfaces;
when the monitoring device monitors a first data packet transmitted on a first communication link, a first analysis instruction is sent to the analysis device, the first analysis instruction comprises first file attribute information of the first data packet, the first file attribute information comprises a first file type identifier and a first file size, and the first communication link is used for connecting a first gateway in the gateway set with external power grid equipment;
the analysis equipment determines a first analysis resource according to the first file type identifier, the first file size and a preset analysis resource allocation model, wherein the first file type identifier is used for representing a first analysis protocol corresponding to the first data packet;
the analysis equipment responds to the first analysis indication, and distributes first reserved resources in a target duration, wherein the first reserved resources are larger than or equal to the first analysis resources;
and the analysis equipment analyzes the first data packet by utilizing the first reserved resource according to the first analysis protocol so as to determine a first analysis file corresponding to the first data packet.
9. An electronic device, comprising:
a processor; the method comprises the steps of,
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any one of claims 1 to 7 via execution of the executable instructions.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 7.
CN202410015176.8A 2024-01-04 2024-01-04 Equipment multi-protocol analysis method and system based on distribution room gateway Active CN117834754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410015176.8A CN117834754B (en) 2024-01-04 2024-01-04 Equipment multi-protocol analysis method and system based on distribution room gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410015176.8A CN117834754B (en) 2024-01-04 2024-01-04 Equipment multi-protocol analysis method and system based on distribution room gateway

Publications (2)

Publication Number Publication Date
CN117834754A true CN117834754A (en) 2024-04-05
CN117834754B CN117834754B (en) 2024-07-19

Family

ID=90523864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410015176.8A Active CN117834754B (en) 2024-01-04 2024-01-04 Equipment multi-protocol analysis method and system based on distribution room gateway

Country Status (1)

Country Link
CN (1) CN117834754B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010051745A1 (en) * 2008-11-04 2010-05-14 大唐移动通信设备有限公司 Method for allocating resources, as well as method, device and system for using resources
CN111478966A (en) * 2020-04-07 2020-07-31 全球能源互联网研究院有限公司 Analysis method, device, computer equipment and storage medium of Internet of Things protocol
US20210224754A1 (en) * 2020-01-16 2021-07-22 Capital One Services, Llc Computer-based systems configured for automated electronic calendar management with meeting room locating and methods of use thereof
CN114938401A (en) * 2022-03-21 2022-08-23 北京思信飞扬信息技术股份有限公司 Configurable network protocol data analysis method and electronic equipment
CN115442008A (en) * 2021-06-04 2022-12-06 展讯通信(上海)有限公司 Transmission resource configuration method and device, storage medium, terminal, network equipment
CN116166499A (en) * 2022-12-30 2023-05-26 中国电信股份有限公司 Data monitoring method and device, electronic equipment and nonvolatile storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010051745A1 (en) * 2008-11-04 2010-05-14 大唐移动通信设备有限公司 Method for allocating resources, as well as method, device and system for using resources
US20210224754A1 (en) * 2020-01-16 2021-07-22 Capital One Services, Llc Computer-based systems configured for automated electronic calendar management with meeting room locating and methods of use thereof
CN111478966A (en) * 2020-04-07 2020-07-31 全球能源互联网研究院有限公司 Analysis method, device, computer equipment and storage medium of Internet of Things protocol
CN115442008A (en) * 2021-06-04 2022-12-06 展讯通信(上海)有限公司 Transmission resource configuration method and device, storage medium, terminal, network equipment
CN114938401A (en) * 2022-03-21 2022-08-23 北京思信飞扬信息技术股份有限公司 Configurable network protocol data analysis method and electronic equipment
CN116166499A (en) * 2022-12-30 2023-05-26 中国电信股份有限公司 Data monitoring method and device, electronic equipment and nonvolatile storage medium

Also Published As

Publication number Publication date
CN117834754B (en) 2024-07-19

Similar Documents

Publication Publication Date Title
US11272396B2 (en) Frame aggregation method, network setting frame sending method, and device
CN112751772B (en) Data transmission method and system
CN102938770B (en) A kind of method and relevant apparatus, system realizing multi-protocols message unified interface
CN109726016A (en) A kind of link tracing methods, devices and systems for distributed system
CN112822276A (en) Substation control layer communication method and system for transformer substation, electronic equipment and storage medium
CN108347095B (en) Simulation test method and system for background monitoring system of transformer substation
CN103544096A (en) Method and system for feeding back information in case of operational failure of Android terminal
CN101616022A (en) A smart device management method and system based on SNMP protocol
CN111966289A (en) Partition optimization method and system based on Kafka cluster
CN114422386B (en) Monitoring method and device for micro-service gateway
CN108268383A (en) Automatic addressing and data distributing method, device, main control device, from control equipment and computer readable storage medium
CN111917717A (en) Method and system for automatically analyzing industrial field protocol based on gateway identification
CN113810238A (en) Network monitoring method, electronic device and storage medium
CN110430276B (en) Communication control method and device based on docker, communication control equipment and storage medium
CN104639459A (en) Data transmission method and system for electrical energy metering terminal
CN117834754B (en) Equipment multi-protocol analysis method and system based on distribution room gateway
CN114546641A (en) Comprehensive energy control system based on Internet of things gateway and node intelligent box
CN118842848A (en) Relay protection fault information substation configuration-free maintenance-free method and system
CN112751722B (en) Data transmission quality monitoring method and system
CN118474214A (en) Energy storage data processing method, device and electronic equipment
CN118672783A (en) Task processing method, baseboard management controller, server cluster and storage medium
EP4425876A1 (en) Data processing method and apparatus, and network device and storage medium
CN115314409A (en) Network state information acquisition method and system
CN112910775B (en) Power line carrier communication method and system based on data fusion and minimum spanning tree
CN101420330A (en) Collecting method and device for performance data of mail proxy gateway

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