技术领域Technical field
本发明涉及新能源电站通讯报文比对的技术领域,具体涉及一种基于摘要算法的新能源电站通讯报文比对方法及系统。The invention relates to the technical field of new energy power station communication message comparison, and specifically relates to a new energy power station communication message comparison method and system based on a summary algorithm.
背景技术Background technique
随着化石能源不断消耗和环境问题日益突出,新能源技术快速发展,以光伏、风力、水力为代表的新能源发电得到越来越广泛的应用。With the continuous consumption of fossil energy and the increasingly prominent environmental problems, new energy technology has developed rapidly, and new energy power generation represented by photovoltaics, wind power, and hydropower has been increasingly widely used.
在新能源电站的运行过程中,其运行状态信息和数据通过相关通讯报文实时上传到电网调控部门,调度员根据新能源电站的状态信息和用电负荷信息进行相应的电网运行调度;因此,通讯报文的准确性直接影响到电网运行的安全稳定性和调度操作的正确性。During the operation of the new energy power station, its operating status information and data are uploaded to the power grid control department in real time through relevant communication messages, and the dispatcher performs corresponding grid operation scheduling based on the status information and power load information of the new energy power station; therefore, The accuracy of communication messages directly affects the safety and stability of power grid operation and the correctness of dispatch operations.
然而,由于新能源电站往往都建在偏远山区,受地理位置限制,通讯方式难以采用如光纤通道这样稳定可靠的技术手段,而是以无线或中继等方式居多;加上一些环境干扰或中间数据传输设备稳定性不足的因素,有时会出现厂站端远动设备发出/收到的通讯报文和主站端系统收到/发出的通讯报文不一致的现象,给电网的安全稳定运行带来极大影响。However, since new energy power stations are often built in remote mountainous areas and are restricted by geographical location, it is difficult to use stable and reliable technical means such as fiber optic channels as communication methods. Instead, most of them use wireless or relay methods; coupled with some environmental interference or intermediate Due to the insufficient stability of the data transmission equipment, sometimes the communication messages sent/received by the factory-side remote control equipment are inconsistent with the communication messages received/sent by the main station-side system, which affects the safe and stable operation of the power grid. to have a great impact.
目前对于上述这种通讯报文不一致的问题尚无有效的实时监测判断手段,较为常用的是采用事后对比的方法,即在出现过故障的厂站端部署报文记录仪等装置,报文记录仪不断循环记录厂站端远动设备与主站端系统之间的交互通讯报文,直到故障再次发生后再将报文记录仪取回主站,将记录的通讯报文导出与主站端的历史交互报文记录进行逐条比对。该方法存在效率低下、分析滞后的缺点。At present, there is no effective real-time monitoring and judgment method for the above-mentioned communication message inconsistency problem. The more commonly used method is to use the post-comparison method, that is, deploy a message recorder and other devices at the factory where the fault has occurred, and the message records The instrument continuously records the interactive communication messages between the factory station-side remote control equipment and the master station-side system. Until the fault occurs again, the message recorder is taken back to the master station and the recorded communication messages are exported to the master station. Historical interaction message records are compared item by item. This method has the disadvantages of low efficiency and lagging analysis.
发明内容Contents of the invention
针对相关技术中存在的不足,本发明所要解决的技术问题在于:提供一种效率较高、能够实现通讯报文一致性比对的基于摘要算法的新能源电站通讯报文比对方法及系统。In view of the shortcomings in related technologies, the technical problem to be solved by the present invention is to provide a new energy power station communication message comparison method and system based on a summary algorithm that is highly efficient and can achieve consistency comparison of communication messages.
为解决上述技术问题,本发明采用的技术方案为:In order to solve the above technical problems, the technical solutions adopted by the present invention are:
一种基于摘要算法的新能源电站通讯报文比对方法,包括以下步骤:A new energy power station communication message comparison method based on summary algorithm includes the following steps:
S10,客户端和服务端协商确定所使用的摘要算法和比对报文参数;所述比对报文参数包括:起始分帧通讯报文、以及比对报文中所包含的分帧通讯报文的条数;S10, the client and the server negotiate to determine the digest algorithm and comparison message parameters used; the comparison message parameters include: the starting framed communication message, and the framed communication contained in the comparison message. The number of messages;
S20,根据摘要算法和比对报文参数,客户端和服务端分别从各自通讯报文队列中获取比对报文,并对比对报文进行摘要计算,形成客户端摘要计算结果和服务端摘要计算结果;S20, according to the summary algorithm and comparison message parameters, the client and the server respectively obtain the comparison message from their respective communication message queues, and perform summary calculation on the comparison message to form the client summary calculation result and the server summary. Calculation results;
S30,客户端将客户端摘要计算结果发给服务端;S30, the client sends the client summary calculation result to the server;
S40,服务端将客户端摘要计算结果与服务端摘要计算结果进行一致性检验,并输出比对结果。S40: The server performs a consistency check on the client summary calculation result and the server summary calculation result, and outputs the comparison result.
优选地,还包括:根据输出的比对结果,动态调整比对报文参数。Preferably, the method further includes: dynamically adjusting the comparison message parameters according to the output comparison results.
优选地,所述步骤S10,客户端和服务端协商确定所使用的摘要算法和比对报文参数,具体包括:Preferably, in step S10, the client and the server negotiate to determine the digest algorithm and comparison message parameters used, specifically including:
S101,客户端发起协商请求;S101, the client initiates a negotiation request;
S102,服务端响应于客户端的协商请求,向客户端返回协商开始确认信息;S102, the server responds to the client's negotiation request and returns negotiation start confirmation information to the client;
S103,客户端从摘要算法库中,读取其中一个摘要算法的名称,并打包为第一协商报文发送给服务端;S103. The client reads the name of one of the digest algorithms from the digest algorithm library, and packages it into a first negotiation message and sends it to the server;
S104,服务端接收第一协商报文,并提取出第一协商报文中的摘要算法名称;S104. The server receives the first negotiation message and extracts the digest algorithm name in the first negotiation message;
S105,服务端根据摘要算法名称识别其摘要算法库中,是否包含有客户端发送的摘要算法,如包含,则执行步骤S106,如不包含,则执行步骤S113;S105. The server identifies whether its digest algorithm library contains the digest algorithm sent by the client based on the name of the digest algorithm. If it does, perform step S106. If it does not, perform step S113;
S106,服务端发送算法协商成功信息至客户端;S106, the server sends algorithm negotiation success information to the client;
S107,客户端从客户端通讯报文队列中读取一条分帧通讯报文作为起始分帧通讯报文,并打包为第二协商报文发送给服务端;S107: The client reads a framed communication message from the client communication message queue as the starting framed communication message, and packages it into a second negotiation message and sends it to the server;
S108,服务端接收第二协商报文,并提取出第二协商报文中的分帧通讯报文;S108: The server receives the second negotiation message and extracts the framed communication message in the second negotiation message;
S109,服务端识别其通讯报文队列中是否包含客户端发送的分帧通讯报文,如包含,则执行步骤S110 ,如不包含,则执行步骤S111;S109. The server identifies whether its communication message queue contains the framed communication message sent by the client. If it does, step S110 is executed. If it is not included, step S111 is executed;
S110,服务端设定分帧通讯报文的条数,并打包为报文协商成功信息发送至客户端;S110, the server sets the number of framed communication messages, packages them into packets, and sends negotiation success information to the client;
S111,服务端将该分帧通讯报文保存至异常原始报文存储模块中,并发送报文协商失败信息至客户端;S111, the server saves the framed communication message into the abnormal original message storage module, and sends message negotiation failure information to the client;
S112,客户端从通讯报文队列中重新读取一条分帧通讯报文作为起始分帧通讯报文,并打包为第二协商报文发送给服务端,之后执行步骤S108;S112, the client re-reads a framed communication message from the communication message queue as the starting framed communication message, packages it as a second negotiation message and sends it to the server, and then executes step S108;
S113,服务端发送算法协商失败信息至客户端;S113, the server sends algorithm negotiation failure information to the client;
S114,客户端读取其摘要算法库中下一个摘要算法的名称,并打包为第一协商报文发送给服务端,之后执行步骤S104。S114: The client reads the name of the next digest algorithm in its digest algorithm library, packages it into a first negotiation message and sends it to the server, and then performs step S104.
优选地,所述步骤S20,根据摘要算法和比对报文参数,客户端和服务端分别从各自通讯报文队列中获取比对报文,并对比对报文进行摘要计算,形成客户端摘要计算结果和服务端摘要计算结果;具体包括:Preferably, in step S20, according to the summary algorithm and comparison message parameters, the client and the server respectively obtain the comparison message from their respective communication message queues, and perform summary calculation on the comparison message to form a client summary. Calculation results and server-side summary calculation results; specifically include:
S201,客户端根据协商确定的比对报文参数,从客户端通讯报文队列中提取出相应条数的分帧通讯报文,对提取出的所有分帧通讯报文进行合并处理;S201: The client extracts a corresponding number of framed communication messages from the client communication message queue according to the comparison message parameters determined through negotiation, and merges all the extracted framed communication messages;
S202,客户端根据协商确定的摘要算法,对合并处理后的通讯报文进行摘要计算,形成客户端摘要计算结果;S202: The client performs summary calculation on the merged communication messages according to the digest algorithm determined through negotiation to form the client summary calculation result;
S203,服务端根据协商确定的比对报文参数,从服务端通讯报文队列中提取出相应条数的分帧通讯报文,对提取出的所有分帧通讯报文进行合并处理;S203: The server extracts a corresponding number of framed communication messages from the server's communication message queue based on the comparison message parameters determined through negotiation, and merges all the extracted framed communication messages;
S204,服务端根据协商确定的摘要算法,对合并处理后的通讯报文进行摘要计算,形成服务端摘要计算结果。S204: The server performs summary calculation on the merged communication messages according to the digest algorithm determined through negotiation to form the server summary calculation result.
优选地,所述步骤S40,服务端将客户端摘要计算结果与服务端摘要计算结果进行一致性检验,并输出比对结果,具体包括:Preferably, in step S40, the server performs a consistency check on the client summary calculation result and the server summary calculation result, and outputs the comparison result, which specifically includes:
S401, 服务端将客户端摘要计算结果与服务端摘要计算结果进行一致性检验,若结果一致,则执行步骤S402,否则执行步骤S404;S401. The server performs a consistency check on the client summary calculation result and the server summary calculation result. If the results are consistent, step S402 is executed; otherwise, step S404 is executed;
S402,服务端更新比对报文参数中分帧通讯报文的条数,增加下次比对报文中的分帧通讯报文的条数;S402, the server updates the number of framed communication messages in the comparison message parameters and increases the number of framed communication messages in the next comparison message;
S403, 服务端将更新后的分帧通讯报文的条数发送至客户端,以使下次客户端和服务端根据更新后的比对报文参数获取比对报文;S403. The server sends the updated number of framed communication messages to the client, so that the client and the server can obtain comparison messages based on the updated comparison message parameters next time;
S404,服务端将本条比对报文中所对应的服务端原始通讯报文保存至异常原始报文存储模块中;S404, the server saves the server's original communication message corresponding to this comparison message into the abnormal original message storage module;
S405,服务端更新比对报文参数中分帧通讯报文的条数,减少下次比对报文中的分帧通讯报文的条数;S405: The server updates the number of framed communication messages in the comparison message parameters and reduces the number of framed communication messages in the next comparison message;
S406,服务端将更新后的分帧通讯报文的条数、以及比对结果发送至客户端,以使下次客户端和服务端根据更新后的比对报文参数获取比对报文;S406: The server sends the updated number of framed communication messages and the comparison results to the client, so that the client and the server can obtain the comparison message according to the updated comparison message parameters next time;
S407,客户端将本条比对报文中所对应的客户端原始通讯报文发送至服务端,使服务端将客户端原始通讯报文保存至异常原始报文存储模块中;S407, the client sends the client's original communication message corresponding to this comparison message to the server, so that the server saves the client's original communication message into the abnormal original message storage module;
S408,客户端将本条比对报文中所对应的客户端原始通讯报文中的最后一行通讯报文作为起始分帧通讯报文发送至服务端,重新协商比对报文参数。S408: The client sends the last line of the communication message in the client's original communication message corresponding to this comparison message as the starting framed communication message to the server, and renegotiates the comparison message parameters.
优选地,所述步骤S402中,服务端更新比对报文参数中分帧通讯报文的条数,增加下次比对报文中的分帧通讯报文的条数;具体包括:Preferably, in step S402, the server updates the number of framed communication messages in the comparison message parameters, and increases the number of framed communication messages in the next comparison message; specifically including:
S4021,预设最大分帧通讯报文的条数为Lmax;S4021, the default maximum number of framed communication messages is Lmax;
S4022,当步骤S401输出的结果为一致时,将本条比对报文中分帧通讯报文的条数L进行翻倍;S4022. When the output results of step S401 are consistent, double the number L of framed communication messages in this comparison message;
S4023,判断是否满足2L≥Lmax,当满足时,更新后的分帧通讯报文的条数取值为Lmax,不满足时,更新后的分帧通讯报文的条数取值为2L;S4023, determine whether 2L≥Lmax is satisfied. When it is satisfied, the number of updated framed communication messages is Lmax. When it is not satisfied, the number of updated framed communication messages is 2L;
所述步骤S405,服务端更新比对报文参数中分帧通讯报文的条数,减少下次比对报文中的分帧通讯报文的条数;具体包括:In step S405, the server updates the number of framed communication messages in the comparison message parameters and reduces the number of framed communication messages in the next comparison message; specifically including:
S4021,预设最小分帧通讯报文的条数为Lmin;S4021, the preset minimum number of framed communication messages is Lmin;
S4022,当步骤S401输出的结果为不一致时,将本条比对报文中分帧通讯报文的条数L进行减半后取整;S4022. When the output result of step S401 is inconsistent, the number L of framed communication messages in this comparison message is halved and then rounded;
S4023,判断是否满足[L/2] ≤Lmin,当满足时,更新后的分帧通讯报文的条数取值为Lmin,不满足时,更新后的分帧通讯报文的条数取值为[L/2]。S4023, determine whether [L/2] ≤ Lmin is satisfied. When it is satisfied, the number of updated framed communication messages is Lmin. When it is not satisfied, the number of updated framed communication messages is taken. is [L/2].
相应地,一种基于摘要算法的新能源电站通讯报文比对系统,包括:客户端和服务端;Correspondingly, a new energy power station communication message comparison system based on summary algorithm includes: client and server;
所述客户端,包括:The client includes:
第一报文采集模块,用于按照报文协议类型格式进行客户端原始通讯报文流的采集、分帧,形成按时序排列的逐条分帧通讯报文;The first message collection module is used to collect and frame the client's original communication message flow according to the message protocol type format to form framed communication messages arranged in time sequence one by one;
第一报文缓存模块,用于将第一报文采集模块输出的逐条分帧通讯报文按照先入先出的原则加入至客户端通讯报文队列中缓存;以及将第一报文提取模块已读取的分帧通讯报文从队列中弹出;The first message cache module is used to add the framed communication messages output by the first message collection module to the client communication message queue according to the first-in-first-out principle for caching; and the first message extraction module has The read framed communication message is popped out of the queue;
第一报文提取模块,用于根据协商确定的比对报文参数,从客户端通讯报文队列中提取出相应条数的分帧通讯报文,对提取出的所有分帧通讯报文进行合并处理;The first message extraction module is used to extract a corresponding number of framed communication messages from the client communication message queue according to the comparison message parameters determined through negotiation, and perform processing on all the extracted framed communication messages. Merge processing;
以及当比对结果不一致时,将比对报文中所对应的客户端原始分帧通讯报文发送至服务端的异常原始报文存储模块中;And when the comparison results are inconsistent, the client's original framed communication message corresponding to the comparison message is sent to the abnormal original message storage module of the server;
第一摘要计算模块,用于根据协商确定的摘要算法,将第一报文提取模块合并处理后的通讯报文进行摘要计算,形成客户端摘要计算结果;The first summary calculation module is used to perform summary calculation on the communication messages merged and processed by the first message extraction module according to the digest algorithm determined through negotiation to form a client summary calculation result;
第一摘要算法存储模块,用于存储客户端所支持的摘要算法;The first summary algorithm storage module is used to store the summary algorithms supported by the client;
第一协商模块,用于与服务端的第二协商模块协商确定所使用的摘要算法和比对报文参数;The first negotiation module is used to negotiate with the second negotiation module of the server to determine the digest algorithm and comparison message parameters used;
第一通讯传输模块,用于与服务端的第二通讯传输模块进行数据通讯;The first communication transmission module is used for data communication with the second communication transmission module of the server;
所述服务端,包括:The server includes:
第二报文采集模块,用于按照报文协议类型格式进行服务端原始通讯报文流的采集、分帧,形成按时序排列的逐条分帧通讯报文;The second message collection module is used to collect and frame the server's original communication message flow according to the message protocol type format to form framed communication messages arranged in time sequence one by one;
第二报文缓存模块,用于将第二报文采集模块输出的逐条分帧通讯报文按照先入先出的原则加入至服务端通讯报文队列中缓存;以及将第二报文提取模块已读取的分帧通讯报文从队列中弹出;The second message cache module is used to add the framed communication messages output by the second message collection module to the server communication message queue according to the first-in-first-out principle for caching; and the second message extraction module has The read framed communication message is popped out of the queue;
第二报文提取模块,用于根据协商确定的比对报文参数,从服务端通讯报文队列中提取出相应条数的分帧通讯报文,对提取出的所有分帧通讯报文进行合并处理;The second message extraction module is used to extract a corresponding number of framed communication messages from the server communication message queue according to the comparison message parameters determined through negotiation, and perform processing on all the extracted framed communication messages. Merge processing;
以及将比对结果不一致的服务端原始分帧通讯报文送往异常原始报文存储模块;And send the server's original framed communication messages with inconsistent comparison results to the abnormal original message storage module;
第二摘要计算模块,用于根据协商确定的摘要算法,将第二报文提取模块合并处理后的通讯报文进行摘要计算,形成服务端摘要计算结果;The second summary calculation module is used to perform summary calculation on the communication messages merged and processed by the second message extraction module according to the digest algorithm determined through negotiation to form a server-side summary calculation result;
第二摘要算法存储模块,用于存储服务端所支持的摘要算法;The second summary algorithm storage module is used to store the summary algorithms supported by the server;
结果比对模块,用于将接将客户端摘要计算结果与服务端摘要计算结果进行一致性检验,并输出比对结果;The result comparison module is used to check the consistency of the client summary calculation results and the server summary calculation results, and output the comparison results;
奖惩模块,用于根据比对结果,动态调整比对报文参数,并输出更新后的比对报文参数;The reward and punishment module is used to dynamically adjust the comparison message parameters according to the comparison results, and output the updated comparison message parameters;
异常原始报文存储模块,用于当比对结果不一致时,将比对报文中所对应的服务端原始通讯报文和客户端原始报文进出存储;The abnormal original message storage module is used to store the server's original communication message and the client's original message corresponding to the comparison message when the comparison results are inconsistent;
第二协商模块,用于与客户端的第一协商模块协商确定所使用的摘要算法和比对报文参数;The second negotiation module is used to negotiate with the first negotiation module of the client to determine the digest algorithm and comparison message parameters used;
第二通讯传输模块,用于建立与服务端的第二通讯传输模块之间的通信连接。The second communication transmission module is used to establish a communication connection with the second communication transmission module of the server.
优选地,所述服务端还包括:Preferably, the server also includes:
输出模块,用于当比对结果不一致时,将比对报文所对应的原始通讯报文以文字、图表的方式进行输出。The output module is used to output the original communication message corresponding to the comparison message in the form of text and graphics when the comparison results are inconsistent.
本发明的有益技术效果在于:The beneficial technical effects of the present invention are:
本发明一种基于摘要算法的新能源电站通讯报文比对方法及系统,客户端和服务端协商确定所使用的摘要算法和比对报文参数,在进行比对时,客户端和服务端分别从各自通讯报文队列中获取比对报文,并对比对报文进行摘要计算,形成客户端摘要计算结果和服务端摘要计算结果,与传统技术相比,不再对分帧报文逐条进行解析比对,而是对客户端和服务端的摘要计算结果进行一致性检验,因此,具有比对效率高、系统开销小、数据传输量大为减少的优点,实用性极强。The present invention is a new energy power station communication message comparison method and system based on a summary algorithm. The client and the server negotiate to determine the summary algorithm and comparison message parameters used. When performing comparison, the client and the server Obtain comparison messages from their respective communication message queues, and perform summary calculations on the comparison messages to form client summary calculation results and server summary calculation results. Compared with traditional technology, framed messages are no longer processed one by one. Instead of parsing and comparing, the summary calculation results of the client and server are checked for consistency. Therefore, it has the advantages of high comparison efficiency, low system overhead, greatly reduced data transmission volume, and is extremely practical.
附图说明Description of the drawings
图1是本发明提供的一种基于摘要算法的新能源电站通讯报文比对方法的流程示意图;Figure 1 is a schematic flow chart of a new energy power station communication message comparison method based on a summary algorithm provided by the present invention;
图2是本发明中步骤S10的流程示意图;Figure 2 is a schematic flow chart of step S10 in the present invention;
图3是本发明中步骤S20和步骤S40的流程示意图;Figure 3 is a schematic flow chart of steps S20 and S40 in the present invention;
图4是本发明中步骤S30中客户端发送的客户端摘要计算结果的数据结构图一;Figure 4 is a data structure diagram 1 of the client summary calculation result sent by the client in step S30 of the present invention;
图5是本发明中步骤S30中客户端发送的客户端摘要计算结果的数据结构图二;Figure 5 is a data structure diagram 2 of the client summary calculation result sent by the client in step S30 of the present invention;
图6是本发明提供的一种基于摘要算法的新能源电站通讯报文比对系统中客户端的结构示意图;Figure 6 is a schematic structural diagram of a client in a new energy power station communication message comparison system based on a summary algorithm provided by the present invention;
图7是本发明提供的一种基于摘要算法的新能源电站通讯报文比对系统中服务端的结构示意图;Figure 7 is a schematic structural diagram of the server end in a new energy power station communication message comparison system based on a summary algorithm provided by the present invention;
图8是本发明一种基于摘要算法的新能源电站通讯报文比对系统的实施场景示意图;Figure 8 is a schematic diagram of an implementation scenario of a new energy power station communication message comparison system based on a summary algorithm of the present invention;
10为客户端,101为第一报文采集模块,102为第一报文缓存模块,103为第一报文提取模块,104为第一摘要计算模块,105为第一摘要算法存储模块,106为第一协商模块,107为第一通讯传输模块;10 is the client, 101 is the first message collection module, 102 is the first message cache module, 103 is the first message extraction module, 104 is the first summary calculation module, 105 is the first summary algorithm storage module, 106 is the first negotiation module, 107 is the first communication transmission module;
20为服务端,201为第二报文采集模块,202为第二报文缓存模块,203为第二报文提取模块,204为第二摘要计算模块,205为第二摘要算法存储模块,206为第二协商模块,207为第二通讯传输模块,208为结果比对模块,209为奖惩模块,210为异常原始报文存储模块,211为输出模块。20 is the server, 201 is the second message collection module, 202 is the second message cache module, 203 is the second message extraction module, 204 is the second summary calculation module, 205 is the second summary algorithm storage module, 206 is the second negotiation module, 207 is the second communication transmission module, 208 is the result comparison module, 209 is the reward and punishment module, 210 is the abnormal original message storage module, and 211 is the output module.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部的实施例;基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, not all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention. .
其次,本发明结合示意图进行详细描述,在详述本发明实施例时,为便于说明,表示器件结构的剖面图会不依一般比例作局部放大,而且所述示意图只是示例,其在此不应限制本发明保护的范围。此外,在实际制作中应包含长度、宽度及深度的三维空间尺寸。Secondly, the present invention will be described in detail with reference to schematic diagrams. When describing the embodiments of the present invention in detail, for the convenience of explanation, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples and should not be limited here. protection scope of the present invention. In addition, the three-dimensional dimensions of length, width and depth should be included in actual production.
以下结合附图详细说明本发明的一个实施例。An embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
实施例一Embodiment 1
如图1所示,一种基于摘要算法的新能源电站通讯报文比对方法,包括以下步骤:As shown in Figure 1, a new energy power station communication message comparison method based on summary algorithm includes the following steps:
S10,客户端和服务端协商确定所使用的摘要算法和比对报文参数;所述比对报文参数包括:起始分帧通讯报文、以及比对报文中所包含的分帧通讯报文的条数;S10, the client and the server negotiate to determine the digest algorithm and comparison message parameters used; the comparison message parameters include: the starting framed communication message, and the framed communication contained in the comparison message. The number of messages;
S20,根据摘要算法和比对报文参数,客户端和服务端分别从各自通讯报文队列中获取比对报文,并对比对报文进行摘要计算,形成客户端摘要计算结果和服务端摘要计算结果;S20, according to the summary algorithm and comparison message parameters, the client and the server respectively obtain the comparison message from their respective communication message queues, and perform summary calculation on the comparison message to form the client summary calculation result and the server summary. Calculation results;
S30,客户端将客户端摘要计算结果发给服务端;S30, the client sends the client summary calculation result to the server;
S40,服务端将客户端摘要计算结果与服务端摘要计算结果进行一致性检验,并输出比对结果。S40: The server performs a consistency check on the client summary calculation result and the server summary calculation result, and outputs the comparison result.
具体地,还包括:根据输出的比对结果,动态调整比对报文参数。Specifically, it also includes: dynamically adjusting the comparison message parameters according to the output comparison results.
一般地,摘要算法又称哈希算法,它表示输入任意长度的数据,输出固定长度的数据,相同的输入数据始终得到相同的输出,不同的输入数据得到不同的输出,常见的摘要算法有MD5、SHA-1、SHA-256、SM3等国内外算法。Generally speaking, the digest algorithm is also called the hash algorithm. It means that data of any length is input and data of a fixed length is output. The same input data always gets the same output, and different input data gets different outputs. Common digest algorithms include MD5. , SHA-1, SHA-256, SM3 and other domestic and foreign algorithms.
目前常规的报文比对方法是首先需根据报文的协议类型,按照相应的协议格式对报文进行分帧处理得到分帧报文,然后再对分帧报文逐条进行解析得到报文描述信息,最后比对判断两条报文的描述信息是否一致,数据处理量大,效率较低。The current conventional message comparison method is to first frame the message according to the protocol type of the message and the corresponding protocol format to obtain the framed message, and then parse the framed message one by one to obtain the message description. information, and finally compare to determine whether the description information of the two messages is consistent, which requires a large amount of data processing and low efficiency.
本发明中,客户端和服务端协商确定所使用的摘要算法和比对报文参数,在进行比对时,客户端和服务端分别从各自通讯报文队列中获取比对报文,并对比对报文进行摘要计算,形成客户端摘要计算结果和服务端摘要计算结果;与传统技术相比,不再对分帧报文逐条进行解析比对,而是对客户端和服务端的摘要计算结果进行一致性检验,因此,具有比对效率高、系统开销小、数据传输量大为减少的优点,实用性极强。In the present invention, the client and the server negotiate to determine the digest algorithm and comparison message parameters used. When performing comparison, the client and the server respectively obtain the comparison message from their respective communication message queues and compare them. Perform summary calculation on the message to form the client summary calculation result and the server summary calculation result; compared with traditional technology, the framed messages are no longer parsed and compared one by one, but the summary calculation results of the client and server are Carry out consistency check, therefore, it has the advantages of high comparison efficiency, low system overhead, greatly reduced data transmission volume, and is extremely practical.
实施例二Embodiment 2
如图2所示,在实施例一的基础上,一种基于摘要算法的新能源电站通讯报文比对方法,所述步骤S10,客户端和服务端协商确定所使用的摘要算法和比对报文参数,具体包括:As shown in Figure 2, on the basis of Embodiment 1, a new energy power station communication message comparison method based on a summary algorithm is provided. In step S10, the client and the server negotiate to determine the summary algorithm and comparison used. Message parameters, including:
S101,客户端发起协商请求;S101, the client initiates a negotiation request;
S102,服务端响应于客户端的协商请求,向客户端返回协商开始确认信息;S102, the server responds to the client's negotiation request and returns negotiation start confirmation information to the client;
S103,客户端从摘要算法库中,读取其中一个摘要算法的名称,并打包为第一协商报文发送给服务端;S103. The client reads the name of one of the digest algorithms from the digest algorithm library, and packages it into a first negotiation message and sends it to the server;
S104,服务端接收第一协商报文,并提取出第一协商报文中的摘要算法名称;S104. The server receives the first negotiation message and extracts the digest algorithm name in the first negotiation message;
S105,服务端根据摘要算法名称识别其摘要算法库中,是否包含有客户端发送的摘要算法,如包含,则执行步骤S106,如不包含,则执行步骤S113;S105. The server identifies whether its digest algorithm library contains the digest algorithm sent by the client according to the name of the digest algorithm. If it does, perform step S106. If it does not, perform step S113;
S106,服务端发送算法协商成功信息至客户端;S106, the server sends algorithm negotiation success information to the client;
S107,客户端从客户端通讯报文队列中读取一条分帧通讯报文作为起始分帧通讯报文,并打包为第二协商报文发送给服务端;S107: The client reads a framed communication message from the client communication message queue as the starting framed communication message, and packages it into a second negotiation message and sends it to the server;
S108,服务端接收第二协商报文,并提取出第二协商报文中的分帧通讯报文;S108: The server receives the second negotiation message and extracts the framed communication message in the second negotiation message;
S109,服务端识别其通讯报文队列中是否包含客户端发送的分帧通讯报文,如包含,则执行步骤S110 ,如不包含,则执行步骤S111;S109. The server identifies whether its communication message queue contains the framed communication message sent by the client. If it does, step S110 is executed. If it is not included, step S111 is executed;
S110,服务端设定分帧通讯报文的条数,并打包为报文协商成功信息发送至客户端;S110, the server sets the number of framed communication messages, packages them into packets, and sends negotiation success information to the client;
S111,服务端将该分帧通讯报文保存至异常原始报文存储模块中,并发送报文协商失败信息至客户端;S111, the server saves the framed communication message into the abnormal original message storage module, and sends message negotiation failure information to the client;
S112,客户端从通讯报文队列中重新读取一条分帧通讯报文作为起始分帧通讯报文,并打包为第二协商报文发送给服务端,之后执行步骤S108;S112, the client re-reads a framed communication message from the communication message queue as the starting framed communication message, packages it as a second negotiation message and sends it to the server, and then executes step S108;
S113,服务端发送算法协商失败信息至客户端;S113, the server sends algorithm negotiation failure information to the client;
S114,客户端读取其摘要算法库中下一个摘要算法的名称,并打包为第一协商报文发送给服务端,之后执行步骤S104。S114: The client reads the name of the next digest algorithm in its digest algorithm library, packages it into a first negotiation message and sends it to the server, and then performs step S104.
具体地,本实施例中,协商的过程,客户端可从其摘要算法库中按顺序读取第一种算法名称进行协商,协商不成功则读取第二种算法名称进行协商,以此类推;或者可预先设置各个摘要算法的优先级,按设定的优先级进行第一、第二摘要算法的读取。Specifically, in this embodiment, during the negotiation process, the client can sequentially read the name of the first algorithm from its summary algorithm library for negotiation. If the negotiation is unsuccessful, the client can read the name of the second algorithm for negotiation, and so on. ; Or you can set the priority of each summary algorithm in advance, and read the first and second summary algorithms according to the set priority.
进一步地,客户端可从通讯报文队列中按顺序读取第一条分帧通讯报文作为起始报文进行协商,协商不成功则读取第二条分帧通讯报文进行协商,以此类推;或者Further, the client can sequentially read the first framed communication message from the communication message queue as the starting message for negotiation. If the negotiation is unsuccessful, the client can read the second framed communication message for negotiation, so as to and so on; or
客户端还可按读取某一个时间范围内(例如5分钟)的第一条分帧通讯报文作为起始报文进行协商,协商不成功则读取第二条通讯报文进行协商,以此类推。The client can also read the first framed communication message within a certain time range (for example, 5 minutes) as the starting message for negotiation. If the negotiation is unsuccessful, the client can read the second communication message for negotiation. And so on.
如图3所示,所述步骤S20,根据摘要算法和比对报文参数,客户端和服务端分别从各自通讯报文队列中获取比对报文,并对比对报文进行摘要计算,形成客户端摘要计算结果和服务端摘要计算结果;具体包括:As shown in Figure 3, in step S20, according to the summary algorithm and comparison message parameters, the client and the server obtain the comparison message from their respective communication message queues, and perform summary calculations on the comparison message to form Client summary calculation results and server summary calculation results; specifically include:
S201,客户端根据协商确定的比对报文参数,从客户端通讯报文队列中提取出相应条数的分帧通讯报文,对提取出的所有分帧通讯报文进行合并处理;S201: The client extracts a corresponding number of framed communication messages from the client communication message queue according to the comparison message parameters determined through negotiation, and merges all the extracted framed communication messages;
S202,客户端根据协商确定的摘要算法,对合并处理后的通讯报文进行摘要计算,形成客户端摘要计算结果;S202: The client performs summary calculation on the merged communication messages according to the digest algorithm determined through negotiation to form the client summary calculation result;
S203,服务端根据协商确定的比对报文参数,从服务端通讯报文队列中提取出相应条数的分帧通讯报文,对提取出的所有分帧通讯报文进行合并处理;S203: The server extracts a corresponding number of framed communication messages from the server's communication message queue based on the comparison message parameters determined through negotiation, and merges all the extracted framed communication messages;
S204,服务端根据协商确定的摘要算法,对合并处理后的通讯报文进行摘要计算,形成服务端摘要计算结果。S204: The server performs summary calculation on the merged communication messages according to the digest algorithm determined through negotiation to form the server summary calculation result.
本实施例中,客户端根据协商确定的摘要算法,对合并处理后的通讯报文进行摘要计算,形成客户端摘要计算结果,之后,将执行步骤S30;如图4所示,所述步骤S30中,客户端发送的客户端摘要计算结果的数据结构可包括:发送序号和摘要计算结果两部分内容。In this embodiment, the client performs summary calculation on the merged communication messages according to the digest algorithm determined through negotiation to form the client summary calculation result. After that, step S30 will be executed; as shown in Figure 4, step S30 , the data structure of the client summary calculation result sent by the client may include: the sending sequence number and the summary calculation result.
如图5所示,为避免传输过程中的电磁干扰等外部因素造成数据发生错误,客户端发送的客户端摘要计算结果的数据结构还可包括:对于发送序号和摘要计算结果进行校验计算(例如CRC校验)后的结果。As shown in Figure 5, in order to avoid data errors caused by external factors such as electromagnetic interference during the transmission process, the data structure of the client summary calculation result sent by the client can also include: verification calculation for the sending sequence number and summary calculation result ( For example, the result after CRC check).
具体地,所述步骤S40,服务端将客户端摘要计算结果与服务端摘要计算结果进行一致性检验,并输出比对结果,具体包括:Specifically, in step S40, the server performs a consistency check on the client summary calculation result and the server summary calculation result, and outputs the comparison result, which specifically includes:
S401, 服务端将客户端摘要计算结果与服务端摘要计算结果进行一致性检验,若结果一致,则执行步骤S402,否则执行步骤S404;S401. The server performs a consistency check on the client summary calculation result and the server summary calculation result. If the results are consistent, step S402 is executed; otherwise, step S404 is executed;
S402,服务端更新比对报文参数中分帧通讯报文的条数,增加下次比对报文中的分帧通讯报文的条数;S402, the server updates the number of framed communication messages in the comparison message parameters and increases the number of framed communication messages in the next comparison message;
S403, 服务端将更新后的分帧通讯报文的条数发送至客户端,以使下次客户端和服务端根据更新后的比对报文参数获取比对报文;S403. The server sends the updated number of framed communication messages to the client, so that the client and the server can obtain comparison messages based on the updated comparison message parameters next time;
S404,服务端将本条比对报文中所对应的服务端原始通讯报文保存至异常原始报文存储模块中;S404, the server saves the server's original communication message corresponding to this comparison message into the abnormal original message storage module;
S405,服务端更新比对报文参数中分帧通讯报文的条数,减少下次比对报文中的分帧通讯报文的条数;S405: The server updates the number of framed communication messages in the comparison message parameters and reduces the number of framed communication messages in the next comparison message;
S406,服务端将更新后的分帧通讯报文的条数、以及比对结果发送至客户端,以使下次客户端和服务端根据更新后的比对报文参数获取比对报文;S406: The server sends the updated number of framed communication messages and the comparison results to the client, so that the client and the server can obtain the comparison message according to the updated comparison message parameters next time;
S407,客户端将本条比对报文中所对应的客户端原始通讯报文发送至服务端,使服务端将客户端原始通讯报文保存至异常原始报文存储模块中;S407, the client sends the client's original communication message corresponding to this comparison message to the server, so that the server saves the client's original communication message into the abnormal original message storage module;
S408,客户端将本条比对报文中所对应的客户端原始通讯报文中的最后一行通讯报文作为起始分帧通讯报文发送至服务端,重新协商比对报文参数。S408: The client sends the last line of the communication message in the client's original communication message corresponding to this comparison message as the starting framed communication message to the server, and renegotiates the comparison message parameters.
本实施例中,所述步骤S402中,服务端更新比对报文参数中分帧通讯报文的条数,增加下次比对报文中的分帧通讯报文的条数;具体包括:In this embodiment, in step S402, the server updates the number of framed communication messages in the comparison message parameters, and increases the number of framed communication messages in the next comparison message; specifically including:
S4021,预设最大分帧通讯报文的条数为Lmax;S4021, the default maximum number of framed communication messages is Lmax;
S4022,当步骤S401输出的结果为一致时,将本条比对报文中分帧通讯报文的条数L进行翻倍;S4022. When the output results of step S401 are consistent, double the number L of framed communication messages in this comparison message;
S4023,判断是否满足2L≥Lmax,当满足时,更新后的分帧通讯报文的条数取值为Lmax,不满足时,更新后的分帧通讯报文的条数取值为2L;S4023, determine whether 2L≥Lmax is satisfied. When it is satisfied, the number of updated framed communication messages is Lmax. When it is not satisfied, the number of updated framed communication messages is 2L;
所述步骤S405,服务端更新比对报文参数中分帧通讯报文的条数,减少下次比对报文中的分帧通讯报文的条数;具体包括:In step S405, the server updates the number of framed communication messages in the comparison message parameters and reduces the number of framed communication messages in the next comparison message; specifically including:
S4021,预设最小分帧通讯报文的条数为Lmin;S4021, the preset minimum number of framed communication messages is Lmin;
S4022,当步骤S401输出的结果为不一致时,将本条比对报文中分帧通讯报文的条数L进行减半后取整;S4022. When the output result of step S401 is inconsistent, the number L of framed communication messages in this comparison message is halved and then rounded;
S4023,判断是否满足[L/2] ≤Lmin,当满足时,更新后的分帧通讯报文的条数取值为Lmin,不满足时,更新后的分帧通讯报文的条数取值为[L/2]。S4023, determine whether [L/2] ≤ Lmin is satisfied. When it is satisfied, the number of updated framed communication messages is Lmin. When it is not satisfied, the number of updated framed communication messages is taken. is [L/2].
本发明还提供了一种基于摘要算法的新能源电站通讯报文比对系统。The invention also provides a new energy power station communication message comparison system based on a summary algorithm.
如图6、图7所示,一种基于摘要算法的新能源电站通讯报文比对系统,包括:客户端10和服务端20;As shown in Figure 6 and Figure 7, a new energy power station communication message comparison system based on summary algorithm includes: client 10 and server 20;
所述客户端10,包括:The client 10 includes:
第一报文采集模块101,用于按照报文协议类型格式进行客户端原始通讯报文流的采集、分帧,形成按时序排列的逐条分帧通讯报文;The first message collection module 101 is used to collect and frame the client's original communication message flow according to the message protocol type format to form framed communication messages arranged in time sequence one by one;
第一报文缓存模块102,用于将第一报文采集模块101输出的逐条分帧通讯报文按照先入先出的原则加入至客户端通讯报文队列中缓存;以及将第一报文提取模块103已读取的分帧通讯报文从队列中弹出;The first message cache module 102 is used to add the framed communication messages output by the first message collection module 101 to the client communication message queue for caching according to the first-in-first-out principle; and extract the first message The framed communication message that module 103 has read is popped out of the queue;
第一报文提取模块103,用于根据协商确定的比对报文参数,从客户端通讯报文队列中提取出相应条数的分帧通讯报文,对提取出的所有分帧通讯报文进行合并处理;The first message extraction module 103 is used to extract a corresponding number of framed communication messages from the client communication message queue according to the comparison message parameters determined through negotiation, and extract all the extracted framed communication messages. Perform merge processing;
以及当比对结果不一致时,将比对报文中所对应的客户端原始分帧通讯报文发送至服务端20的异常原始报文存储模块210中;And when the comparison results are inconsistent, send the client's original framed communication message corresponding to the comparison message to the abnormal original message storage module 210 of the server 20;
第一摘要计算模块104,用于根据协商确定的摘要算法,将第一报文提取模块103合并处理后的通讯报文进行摘要计算,形成客户端摘要计算结果;The first summary calculation module 104 is configured to perform summary calculation on the communication messages merged and processed by the first message extraction module 103 according to the digest algorithm determined through negotiation to form a client summary calculation result;
第一摘要算法存储模块105,用于存储客户端所支持的摘要算法;The first summary algorithm storage module 105 is used to store the summary algorithm supported by the client;
第一协商模块106,用于与服务端20的第二协商模块206协商确定所使用的摘要算法和比对报文参数;The first negotiation module 106 is configured to negotiate with the second negotiation module 206 of the server 20 to determine the digest algorithm and comparison message parameters used;
第一通讯传输模块107,用于与服务端的第二通讯传输模块207进行数据通讯;The first communication transmission module 107 is used for data communication with the second communication transmission module 207 of the server;
所述服务端20,包括:The server 20 includes:
第二报文采集模块201,用于按照报文协议类型格式进行服务端原始通讯报文流的采集、分帧,形成按时序排列的逐条分帧通讯报文;The second message collection module 201 is used to collect and frame the server's original communication message flow according to the message protocol type format, and form framed communication messages arranged in time sequence one by one;
第二报文缓存模块202,用于将第二报文采集模块201输出的逐条分帧通讯报文按照先入先出的原则加入至服务端通讯报文队列中缓存;以及将第二报文提取模块203已读取的分帧通讯报文从队列中弹出;The second message cache module 202 is used to add the framed communication messages output by the second message collection module 201 to the server communication message queue for caching according to the first-in-first-out principle; and extract the second message The framed communication message read by module 203 is popped out of the queue;
第二报文提取模块203,用于根据协商确定的比对报文参数,从服务端通讯报文队列中提取出相应条数的分帧通讯报文,对提取出的所有分帧通讯报文进行合并处理;The second message extraction module 203 is used to extract a corresponding number of framed communication messages from the server communication message queue according to the comparison message parameters determined through negotiation, and extract all the extracted framed communication messages. Perform merge processing;
以及将比对结果不一致的服务端原始分帧通讯报文送往异常原始报文存储模块210;And send the server's original framed communication message with inconsistent comparison results to the abnormal original message storage module 210;
第二摘要计算模块204,用于根据协商确定的摘要算法,将第二报文提取模块203合并处理后的通讯报文进行摘要计算,形成服务端摘要计算结果;The second summary calculation module 204 is configured to perform summary calculation on the communication messages merged and processed by the second message extraction module 203 according to the digest algorithm determined through negotiation to form a server-side summary calculation result;
第二摘要算法存储模块205,用于存储服务端所支持的摘要算法;The second summary algorithm storage module 205 is used to store the summary algorithm supported by the server;
结果比对模块208,用于将接将客户端摘要计算结果与服务端摘要计算结果进行一致性检验,并输出比对结果;The result comparison module 208 is used to check the consistency of the client summary calculation results and the server summary calculation results, and output the comparison results;
奖惩模块209,用于根据比对结果,动态调整比对报文参数,并输出更新后的比对报文参数;The reward and punishment module 209 is used to dynamically adjust the comparison message parameters according to the comparison results, and output the updated comparison message parameters;
异常原始报文存储模块210,用于当比对结果不一致时,将比对报文中所对应的服务端原始通讯报文和客户端原始报文进出存储;The abnormal original message storage module 210 is used to store the corresponding server original communication message and client original message in the comparison message when the comparison results are inconsistent;
第二协商模块206,用于与客户端10的第一协商模块106协商确定所使用的摘要算法和比对报文参数;The second negotiation module 206 is configured to negotiate with the first negotiation module 106 of the client 10 to determine the digest algorithm and comparison message parameters used;
第二通讯传输模块207,用于建立与服务端的第二通讯传输模块207之间的通信连接。The second communication transmission module 207 is used to establish a communication connection with the second communication transmission module 207 of the server.
具体地,所述服务端20还包括:Specifically, the server 20 also includes:
输出模块211,用于当比对结果不一致时,将比对报文所对应的原始通讯报文以文字、图表的方式进行输出。The output module 211 is used to output the original communication message corresponding to the comparison message in the form of text or graphics when the comparison results are inconsistent.
此外,本发明中,采用的摘要算法具有广泛的规约适应性,不但可适用于新能源电站常见的IEC104规约,还可适用于IEC101、IEC102、IEC103、CDT、DISA、DL476、IEC61850等多种传统厂站或智能站使用的通信规约。In addition, the summary algorithm used in the present invention has wide protocol adaptability, and is not only applicable to the IEC104 protocol common in new energy power stations, but also applicable to various traditional protocols such as IEC101, IEC102, IEC103, CDT, DISA, DL476, IEC61850, etc. Communication protocol used by factory stations or intelligent stations.
此外,本发明还提供了一种基于摘要算法的新能源电站通讯报文比对系统的实施场景。In addition, the present invention also provides an implementation scenario of a new energy power station communication message comparison system based on a summary algorithm.
如图8所示,在实施时,在厂站端交换机上,将远动机与交换机相连的端口流量做镜像给通讯报文比对系统(客户端)与交换机相连的端口,即把远动机与主站前置机的通讯报文完全复制一份给报文比对系统(客户端);As shown in Figure 8, during implementation, on the factory-side switch, the port traffic connecting the remote machine and the switch is mirrored to the port connecting the communication message comparison system (client) and the switch, that is, the remote machine and the switch are mirrored. A complete copy of the communication message of the master station front-end machine is sent to the message comparison system (client);
在主站端交换机上,将前置机与交换机相连的端口流量做镜像给通讯报文比对系统(服务端)与交换机相连的端口,即把前置机与厂站远动机的通讯报文完全复制一份给通讯报文比对系统(服务端);On the main station switch, mirror the traffic of the port connected to the front-end machine and the switch to the port connected to the communication message comparison system (server) and the switch, that is, to mirror the communication messages between the front-end machine and the remote machine of the factory station. Make a complete copy to the communication message comparison system (server);
在通讯报文比对系统中,客户端与服务端通讯所需的传输网部分,既可以采用独立组网的方式(如图8所示),也可以采用公用组网的方式(即利用现有的传输网)。In the communication message comparison system, the transmission network part required for communication between the client and the server can be either an independent network (as shown in Figure 8) or a public network (that is, using existing some transmission networks).
此外,本发明具有广泛的规约适应性,不但可适用于新能源电站常见的IEC104规约,还可适用于IEC101、IEC102、IEC103、CDT、DISA、DL476、IEC61850等多种传统厂站或智能站使用的通信规约。In addition, the present invention has wide protocol adaptability, not only applicable to the IEC104 protocol common in new energy power stations, but also applicable to various traditional factory stations or smart stations such as IEC101, IEC102, IEC103, CDT, DISA, DL476, IEC61850, etc. communication protocol.
本发明还提供了一种存储设备,其中存储有多条指令,所述指令适于由处理器加载并执行如上述的一种基于摘要算法的新能源电站通讯报文比对方法。The present invention also provides a storage device in which a plurality of instructions are stored, and the instructions are suitable for the processor to load and execute the above-mentioned summary algorithm-based communication message comparison method for new energy power stations.
所述存储设备可为一计算机可读存储介质,可以包括:ROM、RAM、磁盘或光盘等。The storage device may be a computer-readable storage medium, which may include: ROM, RAM, magnetic disk or optical disk, etc.
本发明还提供了一种终端,所述终端可包括:The present invention also provides a terminal, which may include:
处理器,适于实现各指令;以及a processor suitable for implementing the instructions; and
存储设备,适于存储多条指令,所述指令适于由处理器加载并执行如上述的一种基于摘要算法的新能源电站通讯报文比对方法。The storage device is suitable for storing a plurality of instructions, and the instructions are suitable for being loaded by the processor and executing the above-mentioned summary algorithm-based communication message comparison method for new energy power stations.
所述终端可为任意能够实现物品防伪溯源的装置,该装置可以是各种终端设备,例如:台式电脑、手提电脑等,具体可以通过软件和/或硬件来实现。The terminal can be any device that can realize anti-counterfeiting and traceability of items. The device can be various terminal devices, such as desktop computers, laptop computers, etc., and can be implemented specifically through software and/or hardware.
在本发明的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In the description of the present invention, it should be understood that the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly stated and limited, the terms "installation", "connection", "connection", "fixing" and other terms should be understood in a broad sense. For example, it can be a fixed connection or a detachable connection. , or integrated into one; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two elements or an interactive relationship between two elements, unless otherwise specified restrictions. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "an example," "specific examples," or "some examples" or the like means that specific features are described in connection with the embodiment or example. , structures, materials or features are included in at least one embodiment or example of the invention. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification unless they are inconsistent with each other.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
可以理解的是,上述方法、装置及系统中的相关特征可以相互参考。另外,上述实施例中的“第一”、“第二”等是用于区分各实施例,而并不代表各实施例的优劣。It can be understood that relevant features in the above methods, devices and systems can be referred to each other. In addition, “first”, “second”, etc. in the above-mentioned embodiments are used to distinguish between the embodiments and do not represent the advantages and disadvantages of each embodiment.
所述领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the field can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, but not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or substitutions do not deviate from the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention. scope.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210067492.0ACN114401147B (en) | 2022-01-20 | 2022-01-20 | New energy power station communication message comparison method and system based on abstract algorithm |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210067492.0ACN114401147B (en) | 2022-01-20 | 2022-01-20 | New energy power station communication message comparison method and system based on abstract algorithm |
| Publication Number | Publication Date |
|---|---|
| CN114401147A CN114401147A (en) | 2022-04-26 |
| CN114401147Btrue CN114401147B (en) | 2024-02-20 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210067492.0AActiveCN114401147B (en) | 2022-01-20 | 2022-01-20 | New energy power station communication message comparison method and system based on abstract algorithm |
| Country | Link |
|---|---|
| CN (1) | CN114401147B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115277494B (en)* | 2022-08-01 | 2024-02-02 | 太原鼎向科技有限公司 | New energy power station communication message comparison monitoring system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101247281A (en)* | 2008-03-21 | 2008-08-20 | 华为技术有限公司 | Method, system and device for detecting protocol message |
| CN101431391A (en)* | 2008-12-12 | 2009-05-13 | 北京佳讯飞鸿电气股份有限公司 | Method for improving dynamic coding packet security of train control system |
| CN101640682A (en)* | 2009-06-04 | 2010-02-03 | 深圳市汇海科技开发有限公司 | Method for improving safety of Web service |
| EP2180654A1 (en)* | 2008-10-24 | 2010-04-28 | Gemalto SA | Method of securing messages sent to an evolved terminal in a distributed architecture |
| CN102394893A (en)* | 2011-11-23 | 2012-03-28 | Tcl王牌电器(惠州)有限公司 | Method, server and system for inspecting communication protocol between terminal and server side |
| CN104410692A (en)* | 2014-11-28 | 2015-03-11 | 上海爱数软件有限公司 | Method and system for uploading duplicated files |
| CN105554042A (en)* | 2016-03-01 | 2016-05-04 | 上海斐讯数据通信技术有限公司 | Method and system for UDP tele-transmission log |
| CN107797889A (en)* | 2017-11-14 | 2018-03-13 | 北京思特奇信息技术股份有限公司 | A kind of method and apparatus of checking system file backup integrity |
| CN108875061A (en)* | 2018-06-29 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of conformance test method and relevant apparatus of distributed file system |
| CN109302368A (en)* | 2017-06-19 | 2019-02-01 | 中兴通讯股份有限公司 | A kind of document handling method and server |
| CN109600258A (en)* | 2018-12-10 | 2019-04-09 | 英赛克科技(北京)有限公司 | Industrial protocol message accounting device and method |
| CN109803006A (en)* | 2019-01-04 | 2019-05-24 | 福建天泉教育科技有限公司 | Multifile batch packaging method, storage medium under distributed file system |
| CN110036367A (en)* | 2018-08-15 | 2019-07-19 | 深圳鲲云信息科技有限公司 | A kind of verification method and Related product of AI operation result |
| CN111541699A (en)* | 2020-04-24 | 2020-08-14 | 国网河北省电力有限公司电力科学研究院 | A method for safe data transmission based on IEC102 communication protocol |
| WO2020186786A1 (en)* | 2019-03-20 | 2020-09-24 | 平安科技(深圳)有限公司 | File processing method and apparatus, computer device and storage medium |
| CN112491989A (en)* | 2020-11-17 | 2021-03-12 | 平安普惠企业管理有限公司 | Data transmission method, device, equipment and storage medium |
| CN112769932A (en)* | 2021-01-04 | 2021-05-07 | 北京环境特性研究所 | Distributed cloud storage system based on block chain and data separation |
| CN113676844A (en)* | 2021-09-27 | 2021-11-19 | 北京星网船电科技有限公司 | Multipoint data communication method and system based on Beidou short message |
| CN113691546A (en)* | 2021-08-26 | 2021-11-23 | 广东电网有限责任公司广州供电局 | Integrity verification method, system, equipment and medium for text file |
| CN113904856A (en)* | 2021-10-15 | 2022-01-07 | 广州威戈计算机科技有限公司 | Authentication methods, switches and authentication systems |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030233455A1 (en)* | 2002-06-14 | 2003-12-18 | Mike Leber | Distributed file sharing system |
| CN102833742B (en)* | 2011-06-17 | 2016-03-30 | 华为技术有限公司 | The machinery of consultation of equipment for machine type communication group algorithm and equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101247281A (en)* | 2008-03-21 | 2008-08-20 | 华为技术有限公司 | Method, system and device for detecting protocol message |
| EP2180654A1 (en)* | 2008-10-24 | 2010-04-28 | Gemalto SA | Method of securing messages sent to an evolved terminal in a distributed architecture |
| CN101431391A (en)* | 2008-12-12 | 2009-05-13 | 北京佳讯飞鸿电气股份有限公司 | Method for improving dynamic coding packet security of train control system |
| CN101640682A (en)* | 2009-06-04 | 2010-02-03 | 深圳市汇海科技开发有限公司 | Method for improving safety of Web service |
| CN102394893A (en)* | 2011-11-23 | 2012-03-28 | Tcl王牌电器(惠州)有限公司 | Method, server and system for inspecting communication protocol between terminal and server side |
| CN104410692A (en)* | 2014-11-28 | 2015-03-11 | 上海爱数软件有限公司 | Method and system for uploading duplicated files |
| CN105554042A (en)* | 2016-03-01 | 2016-05-04 | 上海斐讯数据通信技术有限公司 | Method and system for UDP tele-transmission log |
| WO2017148169A1 (en)* | 2016-03-01 | 2017-09-08 | 上海斐讯数据通信技术有限公司 | Method and system for remotely transmitting log using udp |
| CN109302368A (en)* | 2017-06-19 | 2019-02-01 | 中兴通讯股份有限公司 | A kind of document handling method and server |
| CN107797889A (en)* | 2017-11-14 | 2018-03-13 | 北京思特奇信息技术股份有限公司 | A kind of method and apparatus of checking system file backup integrity |
| CN108875061A (en)* | 2018-06-29 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of conformance test method and relevant apparatus of distributed file system |
| CN110036367A (en)* | 2018-08-15 | 2019-07-19 | 深圳鲲云信息科技有限公司 | A kind of verification method and Related product of AI operation result |
| WO2020034116A1 (en)* | 2018-08-15 | 2020-02-20 | 深圳鲲云信息科技有限公司 | Verification method for ai calculation results, and related products |
| CN109600258A (en)* | 2018-12-10 | 2019-04-09 | 英赛克科技(北京)有限公司 | Industrial protocol message accounting device and method |
| CN109803006A (en)* | 2019-01-04 | 2019-05-24 | 福建天泉教育科技有限公司 | Multifile batch packaging method, storage medium under distributed file system |
| WO2020186786A1 (en)* | 2019-03-20 | 2020-09-24 | 平安科技(深圳)有限公司 | File processing method and apparatus, computer device and storage medium |
| CN111541699A (en)* | 2020-04-24 | 2020-08-14 | 国网河北省电力有限公司电力科学研究院 | A method for safe data transmission based on IEC102 communication protocol |
| CN112491989A (en)* | 2020-11-17 | 2021-03-12 | 平安普惠企业管理有限公司 | Data transmission method, device, equipment and storage medium |
| CN112769932A (en)* | 2021-01-04 | 2021-05-07 | 北京环境特性研究所 | Distributed cloud storage system based on block chain and data separation |
| CN113691546A (en)* | 2021-08-26 | 2021-11-23 | 广东电网有限责任公司广州供电局 | Integrity verification method, system, equipment and medium for text file |
| CN113676844A (en)* | 2021-09-27 | 2021-11-19 | 北京星网船电科技有限公司 | Multipoint data communication method and system based on Beidou short message |
| CN113904856A (en)* | 2021-10-15 | 2022-01-07 | 广州威戈计算机科技有限公司 | Authentication methods, switches and authentication systems |
| Title |
|---|
| 一种层次式远程数据持有检测方法;马海峰;杨家海;姚念民;关明山;;计算机科学(第03期);全文* |
| 基于HMAC的智能区报文完整性验证方法;李嗣明;《2020年配电网数字化智能化提升专题交流会论文集》;全文* |
| 数字化变电站通讯报文监听系统的运用;李磊;;通讯世界;20170812(第15期);全文* |
| Publication number | Publication date |
|---|---|
| CN114401147A (en) | 2022-04-26 |
| Publication | Publication Date | Title |
|---|---|---|
| CN111340456A (en) | Method, device and device for edge-cloud collaborative data processing based on Internet of Things | |
| CN111768608B (en) | Data transmission method and device based on double-core intelligent electric meter and computer equipment | |
| CN113009212B (en) | System and method for intelligently monitoring state of lightning arrester of power distribution network based on Internet of things | |
| CN111669372B (en) | Internet of things protocol fusion method for electricity acquisition master station | |
| CN114401147B (en) | New energy power station communication message comparison method and system based on abstract algorithm | |
| CN115802207A (en) | Photovoltaic inverter high frequency data acquisition system based on HPLC communication | |
| CN114500243B (en) | Data communication method, device, computer readable medium and electronic equipment | |
| CN115361455B (en) | Data transmission storage method and device and computer equipment | |
| CN111478938B (en) | Data redundancy elimination method and device | |
| CN103107931A (en) | Non-blocking type communication method and system based on international electrotechnical commission (IEC) 104 protocol | |
| CN103840962B (en) | Server alarm output method and system | |
| CN115766895A (en) | Communication method, device, readable medium and electronic equipment applied to power system | |
| WO2025118967A1 (en) | Big data access method based on protocol adaptation and scheduling in seismological industry | |
| CN118842848A (en) | Relay protection fault information substation configuration-free maintenance-free method and system | |
| CN110417875A (en) | Interconnection method, system, equipment and storage medium between a kind of Cloud Server | |
| CN102832705B (en) | A kind of method and system of quality of power supply remote monitoring | |
| CN106209468A (en) | Method and system for synchronizing operation information between heterogeneous active and standby scheduling automation systems | |
| CN114254998A (en) | An intelligent ticketing system for power grid equipment startup scheme | |
| CN107911436A (en) | Multi-state data integration transmission realizing method between a kind of electric system boss station | |
| CN105007313A (en) | Terminal access method and mass data transmission system for energy saving service | |
| CN114069847B (en) | Distributed photovoltaic data backfill system and method | |
| CN117641448A (en) | Data pushing method and system under wide-narrow band fusion | |
| Yang et al. | IEC104 protocol-based substation data upload IoT cloud platform implementation | |
| CN112332540B (en) | Microgrid, and simulation device and method | |
| CN105162871B (en) | A kind of energy Internet communication system and its method based on Ontology Mapping |
| 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 |