WO2017024697A1 - Cross-network segment message forwarding method for dispatching automation system - Google Patents

Cross-network segment message forwarding method for dispatching automation system Download PDF

Info

Publication number
WO2017024697A1
WO2017024697A1 PCT/CN2015/096099 CN2015096099W WO2017024697A1 WO 2017024697 A1 WO2017024697 A1 WO 2017024697A1 CN 2015096099 W CN2015096099 W CN 2015096099W WO 2017024697 A1 WO2017024697 A1 WO 2017024697A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
end system
forwarding
receiving end
message forwarding
Prior art date
Application number
PCT/CN2015/096099
Other languages
French (fr)
Chinese (zh)
Inventor
翟明玉
雷宝龙
苏大威
李汇群
徐春雷
张琦兵
陆燕宁
郭海龙
耿仁辉
Original Assignee
国电南瑞科技股份有限公司
江苏省电力公司
国电南瑞南京控制系统有限公司
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 国电南瑞科技股份有限公司, 江苏省电力公司, 国电南瑞南京控制系统有限公司 filed Critical 国电南瑞科技股份有限公司
Publication of WO2017024697A1 publication Critical patent/WO2017024697A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Definitions

  • the invention relates to a message forwarding method for a dispatching automation system across network segments.
  • the power grid dispatching automation system is divided into a real-time production control system for safety zone, a non-real-time production control system for safety zone 2, and a production management system for safety zone 3.
  • the security zone is connected through firewall, encryption device and security. Equipment such as isolation increases security.
  • the real-time production system of the safety zone needs to forward real-time messages such as blockade, number, real-time data and important alarms to the security zone 2 and the security zone.
  • a single point of failure occurs between the network segments on the network segment, and the message is lost when the forwarding node experiences a single point of failure.
  • the present invention provides a message forwarding method for a dispatching automation system across network segments, which satisfies the need for high-performance, highly reliable real-time message forwarding between different network segments of the dispatching automation system; One step, to ensure that the message is unique.
  • a message forwarding method for a dispatching automation system across a network segment characterized in that the message forwarding server of the transmitting end system and the receiving end system both adopt dual-machine redundancy configuration, and the dual-machine runs in a host-standby mode;
  • the wide-area dual-network redundancy configuration is adopted between the end system and the receiving end system, and each message forwarding server is connected with the wide-area dual network; when the transmitting end system performs one-way message forwarding to the receiving end system, the receiving end system does not The sender system sends a feedback message.
  • the message forwarding specifically includes the following steps:
  • the application process of the sender system calls the message bus to send a message, and the message bus encodes an ID for each message, and the ID is unique in both the sender system and the receiver system;
  • the message forwarding server of the sender system receives the message to be forwarded from the message bus, wherein the message forwarding service host and the backup machine of the sender system subscribe to the same channel message, and the master and backup machines receive the message at the same time;
  • the message forwarding server of the sender system forwards the message to the message forwarding server of the receiving end system
  • the message forwarding server of the receiving end system sends a message to the receiving node of the system after receiving the message
  • the application process of the receiving end system receives the message by calling the message bus, wherein the message bus of the receiving end system filters out the duplicate message according to the message ID.
  • the invention does not rely on a special network device, and solves the problem of message loss when a single point of failure occurs in the network and the forwarding node through software, ensures reliable forwarding of the message, does not need feedback message in the forwarding process, has high throughput transmission performance, and solves the repetition.
  • the message problem enables high-performance, highly reliable real-time message forwarding.
  • the message bus filters out the duplicate message by the message ID, and the upper layer advanced application process receives the unique message from the message bus.
  • FIG. 1 is a network topology diagram in a message forwarding method of a network segment of a scheduling automation system according to the present invention
  • FIG. 2 is a flow chart of a message forwarding method for a network segment of a dispatching automation system according to the present invention
  • FIG. 3 is a schematic diagram of message forwarding of a transmitting end system according to the present invention.
  • FIG. 4 is a schematic diagram of message forwarding of a receiving end system according to the present invention.
  • FIG. 1 is a network topology diagram
  • the message forwarding servers of the transmitting end system and the receiving end system both adopt dual-machine redundancy configuration, that is, each scheduling system configures redundant messages.
  • the forwarding server is managed by cluster software (such as LifeKeeper, EMCLegato, NECExpress, etc.), and the dual-machine runs in a host-standby mode, that is, the message forwarding host and the message forwarding standby.
  • wide-area dual-network redundancy refers to the use of two independent network link connections between two geographically wide-area systems, with the purpose of Redundant mutual backup to prevent the system from being unable to communicate due to a single network link failure.
  • the configuration is called the scheduling data network 1# network and the scheduling data network 2# network.
  • the dual network is physically independent, that is, the transmitting end system and The receiving end systems can be connected through any one of them.
  • the transmitting end system when the transmitting end system performs one-way message forwarding to the receiving end system, the receiving end system does not send a feedback message to the transmitting end system, and a forward physical isolation device (such as SysKeeper- is provided between the transmitting end system and the receiving end system). 2000), physical isolation only allows one-way transmission, more strict than firewall restrictions, used to increase network communication security.
  • a forward physical isolation device such as SysKeeper- is provided between the transmitting end system and the receiving end system. 2000
  • Each message forwarding server is connected to the wide-area dual network, that is, each message forwarding server is connected to the 1# network and the 2# network through independent network cards, so that each message forwarding server at the transmitting end can communicate with the receiving end system.
  • Two servers are communicating.
  • the system can forward messages in both directions or forward messages in both directions. When forwarding messages in both directions, you can forward messages from different channels or forward messages in the same channel.
  • the topology consisting of the message forwarding service sending node, the scheduling data network, and the message forwarding receiving node constitutes a redundant and reliable network structure.
  • the two systems can still Find other paths for normal communication.
  • the sender system message forwarding service host can continue to communicate with the receiving system message forwarding server through the 2# network; when the sending system message forwarding host fails, The sender system message forwarding backup machine can continue to send the message; when the receiving end message forwarding server fails, the sending end system message forwarding server can establish a connection with another receiving end message forwarding server to continue communication.
  • the process of message forwarding is as shown in Figure 2-4, which specifically includes the following steps:
  • the application process of the sender system calls the message bus to send a message, and the message bus encodes an ID for each message, and the ID is unique in both the sender system and the receiver system;
  • the message forwarding server of the sender system receives the message to be forwarded from the message bus, wherein the message forwarding service host and the backup machine of the sender system subscribe to the same channel message, and the master and backup machines receive the message at the same time;
  • the message forwarding server of the sender system forwards the message to the message forwarding server of the receiving end system
  • the message forwarding server of the receiving end system sends a message to the receiving node of the system after receiving the message
  • the application process of the receiving end system receives the message by calling the message bus, wherein the message bus of the receiving end system filters out the duplicate message according to the message ID, and the upper layer advanced application process receives the unique message from the message bus.
  • step (2) after receiving the message, the message forwarding service of the sending end system buffers the message according to the time series, and when the message forwarding service backup machine of the sending end system switches to the host, the system is connected to the receiving end.
  • the system sends a message cached before the switchover, that is, when the sender of the message forwarding service host fails, the message forwarding service standby device automatically switches to the host, and the cache message is sent once, and then the host work is started.
  • step (3) when the message forwarding service host of the sending end system sends a message to the receiving end system, the message is sent according to the message sequence; after the message is sent, the message is cached according to the time series; wherein, the message forwarding service host of the sending end system first Establishing a connection with a message forwarding service node of the receiving end system, and sending a message. When the sending message fails, establishing a connection with another message forwarding service node of the receiving end system, and sending a cache message.
  • the message forwarding service host of the sender system sends a heartbeat message to the receiver system.
  • the message forwarding server of the receiving end system sets the forwarding identifier of the message, and then calls the message bus to send the message.
  • step (2) the message forwarding service host and the backup machine of the sender system discard the message with the forwarding identifier.
  • the message cache uses the second level cache, the level 1 cache is the memory cache, and the level 2 cache is the file cache.
  • the level 1 cache is full, the message with the earliest reception time is moved into the second level cache; when the message in the cache exceeds the message aging, the message is removed. Buffer.
  • the message forwarding service host After the message forwarding service host starts, it subscribes to the message that needs to be forwarded. After receiving the message, it caches the message and sends the message to the receiving end message forwarding server. If the sending succeeds, it continues to receive the message; if the sending fails or the link has not been established yet At this time, switch to another message forwarding service server of the receiving end system, establish a link with it, and resend the cached message once, and then send the current message.
  • the invention does not rely on a special network device, and solves the problem of message loss when a single point of failure occurs in the network and the forwarding node through software, ensures reliable forwarding of the message, does not need feedback message during the forwarding process, and has high throughput. Transmits performance and solves the problem of duplicate messages, enabling high-performance, highly reliable real-time message forwarding. Further, the message bus filters out the duplicate message by the message ID, and the upper layer advanced application process receives the unique message from the message bus.

Abstract

Disclosed is a cross-network segment message forwarding method for a dispatching automation system,characterized in that: message forwarding servers of a transmitting end system and a receiving end system both adopt a dual-computer redundancy configuration, and the two computers are operated in a mode of a master computer and a slave computer; a wide area dual-network redundancy configuration is adopted between the transmitting end system and the receiving end system, and each of the message forwarding servers is connected to a wide area dual-network; and when the transmitting end system performs one-way message forwarding to the receiving end system, the receiving end system does not transmit a feedback packet to the transmitting end system. The method satisfies the high-performance and high-reliability real-time requirements for message forwarding of a dispatching automation system between different network segments, and further ensures the uniqueness of a message.

Description

一种调度自动化系统跨网段的消息转发方法Message forwarding method for scheduling automation system across network segments 技术领域Technical field
本发明涉及一种调度自动化系统跨网段的消息转发方法。The invention relates to a message forwarding method for a dispatching automation system across network segments.
背景技术Background technique
调度自动化系统之间存在着紧密的联系,包括横向的安全分区之间、功能分区之间以及纵向的调度机构之间均存在大量的实时消息转发。根据电力二次系统安全防护要求,电网调度自动化系统划分成安全一区实时生产控制系统、安全二区非实时生产控制系统、安全三区生产管理系统,安全分区之间通过防火墙、加密装置、安全隔离等设备增加安全防护。安全一区实时生产系统需要将封锁、置数、实时数据、重要告警等实时消息转发给安全二区、安全三区。There is a close relationship between dispatch automation systems, including a large number of real-time message forwarding between horizontal secure partitions, between functional partitions, and between vertical dispatchers. According to the safety protection requirements of the secondary system of power, the power grid dispatching automation system is divided into a real-time production control system for safety zone, a non-real-time production control system for safety zone 2, and a production management system for safety zone 3. The security zone is connected through firewall, encryption device and security. Equipment such as isolation increases security. The real-time production system of the safety zone needs to forward real-time messages such as blockade, number, real-time data and important alarms to the security zone 2 and the security zone.
随着电网调度一体化运行和统一协调控制技术的推进,调度机构之间依赖和耦合度越来越高,省地一体化、地县一体化、区域互备等一体化调度系统陆续得到推广应用,系统之间的实时数据、重要告警等实时消息需要转发。With the integrated operation of power grid dispatching and the promotion of unified coordinated control technology, the dependence and coupling degree between dispatching agencies is getting higher and higher, and integrated dispatching systems such as land integration, county integration and regional mutual support are gradually promoted and applied. Real-time data such as real-time data and important alarms between systems need to be forwarded.
现有技术中,在进行跨网段消息转发时存在如下问题:In the prior art, when performing cross-network segment message forwarding, the following problems exist:
(1)网段之间的双网发生单点故障、转发节点发生单点故障时消息存在丢失。(1) A single point of failure occurs between the network segments on the network segment, and the message is lost when the forwarding node experiences a single point of failure.
(2)转发消息时转发性能较低,无法充分利用网络带宽。(2) When forwarding messages, the forwarding performance is low, and the network bandwidth cannot be fully utilized.
(3)转发消息后存在消息重复问题。(3) There is a problem of message duplication after forwarding the message.
综上所述,如何实现调度自动化系统网段之间高性能、高可靠的转发实时消息,并确保消息唯一性是本领域技术人员迫切需要解决的问题。In summary, how to implement high-performance, highly reliable forwarding of real-time messages between network segments of the dispatching automation system and ensure message uniqueness is an urgent problem to be solved by those skilled in the art.
发明内容Summary of the invention
针对上述问题,本发明提供一种调度自动化系统跨网段的消息转发方法,满足了调度自动化系统不同网段之间高性能、高可靠实时消息转发的需要;进 一步的,确保消息唯一性。In view of the above problems, the present invention provides a message forwarding method for a dispatching automation system across network segments, which satisfies the need for high-performance, highly reliable real-time message forwarding between different network segments of the dispatching automation system; One step, to ensure that the message is unique.
为实现上述技术目的,达到上述技术效果,本发明通过以下技术方案实现:In order to achieve the above technical effects and achieve the above technical effects, the present invention is achieved by the following technical solutions:
一种调度自动化系统跨网段的消息转发方法,其特征在于,发送端系统与接收端系统的消息转发服务器均采用双机冗余配置,双机之间采用一主机一备机方式运行;发送端系统与接收端系统之间采用广域双网冗余配置,每台消息转发服务器均与广域双网连接;当发送端系统向接收端系统进行单向消息转发时,接收端系统不向发送端系统发送反馈报文。A message forwarding method for a dispatching automation system across a network segment, characterized in that the message forwarding server of the transmitting end system and the receiving end system both adopt dual-machine redundancy configuration, and the dual-machine runs in a host-standby mode; The wide-area dual-network redundancy configuration is adopted between the end system and the receiving end system, and each message forwarding server is connected with the wide-area dual network; when the transmitting end system performs one-way message forwarding to the receiving end system, the receiving end system does not The sender system sends a feedback message.
优选,消息转发具体包括如下步骤:Preferably, the message forwarding specifically includes the following steps:
(1)发送端系统的应用进程调用消息总线发送消息,消息总线为每条消息编码一个ID,该ID在发送端系统和接收端系统中均具有唯一性;(1) The application process of the sender system calls the message bus to send a message, and the message bus encodes an ID for each message, and the ID is unique in both the sender system and the receiver system;
(2)发送端系统的消息转发服务器从消息总线接收待转发消息,其中,发送端系统的消息转发服务主机和备机订阅相同通道的消息,主备机同时接收消息;(2) The message forwarding server of the sender system receives the message to be forwarded from the message bus, wherein the message forwarding service host and the backup machine of the sender system subscribe to the same channel message, and the master and backup machines receive the message at the same time;
(3)发送端系统的消息转发服务器将消息转发给接收端系统的消息转发服务器;(3) The message forwarding server of the sender system forwards the message to the message forwarding server of the receiving end system;
(4)接收端系统的消息转发服务器收到消息后调用消息总线将消息发送给本系统的接收节点;(4) The message forwarding server of the receiving end system sends a message to the receiving node of the system after receiving the message;
(5)接收端系统的应用进程通过调用消息总线接收消息,其中,接收端系统的消息总线根据消息ID过滤掉重复的消息。(5) The application process of the receiving end system receives the message by calling the message bus, wherein the message bus of the receiving end system filters out the duplicate message according to the message ID.
本发明的有益效果是:The beneficial effects of the invention are:
本发明不依赖特殊网络设备,通过软件方式解决网络及转发节点发生单点故障时消息丢失问题,确保消息可靠转发,转发过程中不需要反馈报文,具备高吞吐量传输性能,并解决了重复消息问题,实现了高性能、高可靠实时消息转发。进一步的,消息总线通过消息ID过滤掉重复消息,上层高级应用进程从消息总线接收具有唯一性的消息。 The invention does not rely on a special network device, and solves the problem of message loss when a single point of failure occurs in the network and the forwarding node through software, ensures reliable forwarding of the message, does not need feedback message in the forwarding process, has high throughput transmission performance, and solves the repetition. The message problem enables high-performance, highly reliable real-time message forwarding. Further, the message bus filters out the duplicate message by the message ID, and the upper layer advanced application process receives the unique message from the message bus.
附图说明DRAWINGS
图1是本发明调度自动化系统跨网段的消息转发方法中的网络拓扑图;1 is a network topology diagram in a message forwarding method of a network segment of a scheduling automation system according to the present invention;
图2是本发明调度自动化系统跨网段的消息转发方法流程图;2 is a flow chart of a message forwarding method for a network segment of a dispatching automation system according to the present invention;
图3是本发明发送端系统消息转发示意图;3 is a schematic diagram of message forwarding of a transmitting end system according to the present invention;
图4是本发明接收端系统消息转发示意图。4 is a schematic diagram of message forwarding of a receiving end system according to the present invention.
具体实施方式detailed description
下面结合附图和具体的实施例对本发明技术方案作进一步的详细描述,以使本领域的技术人员可以更好的理解本发明并能予以实施,但所举实施例不作为对本发明的限定。The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings and specific embodiments, so that those skilled in the art can understand the invention.
一种调度自动化系统跨网段的消息转发方法,其中图1是其网络拓扑图,发送端系统与接收端系统的消息转发服务器均采用双机冗余配置,即每个调度系统配置冗余消息转发服务器,通过集群软件(比如LifeKeeper、EMCLegato、NECExpress等)管理,双机之间采用一主机一备机方式运行,即消息转发主机和消息转发备机。而且,发送端系统与接收端系统之间采用广域双网冗余(广域双网冗余是指在地理上广域的两个系统之间采用独立的两个网络链路连接,目的是冗余互备,防止因单个网络链路故障导致系统之间无法通信)配置,分别称为调度数据网1#网和调度数据网2#网,双网之间物理独立,即发送端系统与接收端系统之间可以通过其中的任意一个网络相连。A message forwarding method for a dispatching automation system across network segments, wherein FIG. 1 is a network topology diagram, and the message forwarding servers of the transmitting end system and the receiving end system both adopt dual-machine redundancy configuration, that is, each scheduling system configures redundant messages. The forwarding server is managed by cluster software (such as LifeKeeper, EMCLegato, NECExpress, etc.), and the dual-machine runs in a host-standby mode, that is, the message forwarding host and the message forwarding standby. Moreover, wide-area dual-network redundancy is used between the transmitting end system and the receiving end system (wide-area dual-network redundancy refers to the use of two independent network link connections between two geographically wide-area systems, with the purpose of Redundant mutual backup to prevent the system from being unable to communicate due to a single network link failure. The configuration is called the scheduling data network 1# network and the scheduling data network 2# network. The dual network is physically independent, that is, the transmitting end system and The receiving end systems can be connected through any one of them.
通常,当发送端系统向接收端系统进行单向消息转发时,接收端系统不向发送端系统发送反馈报文,发送端系统与接收端系统之间设置有正向物理隔离设备(如SysKeeper-2000),物理隔离只允许单向传输,比防火墙限制更加严格,用于增加网络通信安全性。Generally, when the transmitting end system performs one-way message forwarding to the receiving end system, the receiving end system does not send a feedback message to the transmitting end system, and a forward physical isolation device (such as SysKeeper- is provided between the transmitting end system and the receiving end system). 2000), physical isolation only allows one-way transmission, more strict than firewall restrictions, used to increase network communication security.
每台消息转发服务器均与广域双网连接,即每台消息转发服务器通过独立网卡分别与1#网、2#网连接,这样发送端每台消息转发服务器均能与接收端系 统两台服务器进行通信。系统之间可以单向转发消息也可以双向转发消息,双向转发消息时可以转发不同通道的消息,也可以转发相同通道的消息。Each message forwarding server is connected to the wide-area dual network, that is, each message forwarding server is connected to the 1# network and the 2# network through independent network cards, so that each message forwarding server at the transmitting end can communicate with the receiving end system. Two servers are communicating. The system can forward messages in both directions or forward messages in both directions. When forwarding messages in both directions, you can forward messages from different channels or forward messages in the same channel.
从物理网络拓扑图可以看出,由消息转发服务发送节点、调度数据网、消息转发接收节点组成的拓扑,组成了一个冗余可靠网络结构,当发生任意单点故障时两系统之间仍然可以找到其他路径进行正常通信,如当1#网发生故障时,发送端系统消息转发服务主机可以通过2#网继续与接收端系统消息转发服务器进行通信;当发送端系统消息转发主机发生故障时,发送端系统消息转发备机可以继续进行消息发送;当接收端消息转发服务器发生故障时,发送端系统消息转发服务器可以与另一个接收端消息转发服务器建立连接继续通信。It can be seen from the physical network topology diagram that the topology consisting of the message forwarding service sending node, the scheduling data network, and the message forwarding receiving node constitutes a redundant and reliable network structure. When any single point of failure occurs, the two systems can still Find other paths for normal communication. For example, when the 1# network fails, the sender system message forwarding service host can continue to communicate with the receiving system message forwarding server through the 2# network; when the sending system message forwarding host fails, The sender system message forwarding backup machine can continue to send the message; when the receiving end message forwarding server fails, the sending end system message forwarding server can establish a connection with another receiving end message forwarding server to continue communication.
优选,消息转发的过程如图2-4所示,具体包括如下步骤:Preferably, the process of message forwarding is as shown in Figure 2-4, which specifically includes the following steps:
(1)发送端系统的应用进程调用消息总线发送消息,消息总线为每条消息编码一个ID,该ID在发送端系统和接收端系统中均具有唯一性;(1) The application process of the sender system calls the message bus to send a message, and the message bus encodes an ID for each message, and the ID is unique in both the sender system and the receiver system;
(2)发送端系统的消息转发服务器从消息总线接收待转发消息,其中,发送端系统的消息转发服务主机和备机订阅相同通道的消息,主备机同时接收消息;(2) The message forwarding server of the sender system receives the message to be forwarded from the message bus, wherein the message forwarding service host and the backup machine of the sender system subscribe to the same channel message, and the master and backup machines receive the message at the same time;
(3)发送端系统的消息转发服务器将消息转发给接收端系统的消息转发服务器;(3) The message forwarding server of the sender system forwards the message to the message forwarding server of the receiving end system;
(4)接收端系统的消息转发服务器收到消息后调用消息总线将消息发送给本系统的接收节点;(4) The message forwarding server of the receiving end system sends a message to the receiving node of the system after receiving the message;
(5)接收端系统的应用进程通过调用消息总线接收消息,其中,接收端系统的消息总线根据消息ID过滤掉重复的消息,上层高级应用进程从消息总线接收具有唯一性的消息。(5) The application process of the receiving end system receives the message by calling the message bus, wherein the message bus of the receiving end system filters out the duplicate message according to the message ID, and the upper layer advanced application process receives the unique message from the message bus.
优选:Preferred:
步骤(2)中,发送端系统的消息转发服务备机接收消息后,将消息按时序缓存一定时间,当发送端系统的消息转发服务备机切换为主机后,向接收端系 统发送切换之前缓存的消息,即:发送端消息转发服务主机发生故障时,发送消息转发服务备机自动切换为主机,并将缓存消息发送一次,然后开始承担主机工作。In step (2), after receiving the message, the message forwarding service of the sending end system buffers the message according to the time series, and when the message forwarding service backup machine of the sending end system switches to the host, the system is connected to the receiving end. The system sends a message cached before the switchover, that is, when the sender of the message forwarding service host fails, the message forwarding service standby device automatically switches to the host, and the cache message is sent once, and then the host work is started.
步骤(3)中,发送端系统的消息转发服务主机向接收端系统发送消息时,按照消息时序发送;发送消息后,将消息按照时序缓存一定时间;其中,发送端系统的消息转发服务主机先与接收端系统的一个消息转发服务节点建立连接,并发送消息,当发送消息失败时,与接收端系统的另一个消息转发服务节点建立连接,并发送缓存消息。In the step (3), when the message forwarding service host of the sending end system sends a message to the receiving end system, the message is sent according to the message sequence; after the message is sent, the message is cached according to the time series; wherein, the message forwarding service host of the sending end system first Establishing a connection with a message forwarding service node of the receiving end system, and sending a message. When the sending message fails, establishing a connection with another message forwarding service node of the receiving end system, and sending a cache message.
若发送端系统超过一段时间仍无消息需要向接收端转发,发送端系统的消息转发服务主机向接收端系统发送一次心跳报文。If the sender system does not need to forward the message to the receiver for a period of time, the message forwarding service host of the sender system sends a heartbeat message to the receiver system.
步骤(4)中,接收端系统的消息转发服务器收到消息后,将消息设置转发标识,再调用消息总线将消息发送出去。In the step (4), after receiving the message, the message forwarding server of the receiving end system sets the forwarding identifier of the message, and then calls the message bus to send the message.
步骤(2)中,发送端系统的消息转发服务主机和备机均丢弃带有转发标识的消息。In step (2), the message forwarding service host and the backup machine of the sender system discard the message with the forwarding identifier.
消息缓存采用二级缓存,一级缓存为内存缓存,二级缓存为文件缓存,当一级缓存满时,将接收时间最早的消息移入二级缓存;当缓存中的消息超过消息时效后,移出缓冲区。The message cache uses the second level cache, the level 1 cache is the memory cache, and the level 2 cache is the file cache. When the level 1 cache is full, the message with the earliest reception time is moved into the second level cache; when the message in the cache exceeds the message aging, the message is removed. Buffer.
消息转发服务主机启动后先订阅需要转发的消息,接收到消息后,将消息缓存下来,并将消息发送到接收端消息转发服务器,如果发送成功,则继续接收消息;若发送失败或尚未建立链接时,切换到接收端系统另一消息转发服务服务器,与之建立链接,并将缓存消息重新发送一次,再发送当前消息。本发明不依赖特殊网络设备,通过软件方式解决网络及转发节点发生单点故障时消息丢失问题,确保消息可靠转发,转发过程中不需要反馈报文,具备高吞吐量 传输性能,并解决了重复消息问题,实现了高性能、高可靠实时消息转发。进一步的,消息总线通过消息ID过滤掉重复消息,上层高级应用进程从消息总线接收具有唯一性的消息。After the message forwarding service host starts, it subscribes to the message that needs to be forwarded. After receiving the message, it caches the message and sends the message to the receiving end message forwarding server. If the sending succeeds, it continues to receive the message; if the sending fails or the link has not been established yet At this time, switch to another message forwarding service server of the receiving end system, establish a link with it, and resend the cached message once, and then send the current message. The invention does not rely on a special network device, and solves the problem of message loss when a single point of failure occurs in the network and the forwarding node through software, ensures reliable forwarding of the message, does not need feedback message during the forwarding process, and has high throughput. Transmits performance and solves the problem of duplicate messages, enabling high-performance, highly reliable real-time message forwarding. Further, the message bus filters out the duplicate message by the message ID, and the upper layer advanced application process receives the unique message from the message bus.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或者等效流程变换,或者直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (8)

  1. 一种调度自动化系统跨网段的消息转发方法,其特征在于,发送端系统与接收端系统的消息转发服务器均采用双机冗余配置,双机之间采用一主机一备机方式运行;发送端系统与接收端系统之间采用广域双网冗余配置,每台消息转发服务器均与广域双网连接;当发送端系统向接收端系统进行单向消息转发时,接收端系统不向发送端系统发送反馈报文。A message forwarding method for a dispatching automation system across a network segment, characterized in that the message forwarding server of the transmitting end system and the receiving end system both adopt dual-machine redundancy configuration, and the dual-machine runs in a host-standby mode; The wide-area dual-network redundancy configuration is adopted between the end system and the receiving end system, and each message forwarding server is connected with the wide-area dual network; when the transmitting end system performs one-way message forwarding to the receiving end system, the receiving end system does not The sender system sends a feedback message.
  2. 根据权利要求1所述的一种调度自动化系统跨网段的消息转发方法,其特征在于,消息转发具体包括如下步骤:The method for forwarding a message across a network segment of a dispatching automation system according to claim 1, wherein the message forwarding specifically comprises the following steps:
    (1)发送端系统的应用进程调用消息总线发送消息,消息总线为每条消息编码一个ID,该ID在发送端系统和接收端系统中均具有唯一性;(1) The application process of the sender system calls the message bus to send a message, and the message bus encodes an ID for each message, and the ID is unique in both the sender system and the receiver system;
    (2)发送端系统的消息转发服务器从消息总线接收待转发消息,其中,发送端系统的消息转发服务主机和备机订阅相同通道的消息,主备机同时接收消息;(2) The message forwarding server of the sender system receives the message to be forwarded from the message bus, wherein the message forwarding service host and the backup machine of the sender system subscribe to the same channel message, and the master and backup machines receive the message at the same time;
    (3)发送端系统的消息转发服务器将消息转发给接收端系统的消息转发服务器;(3) The message forwarding server of the sender system forwards the message to the message forwarding server of the receiving end system;
    (4)接收端系统的消息转发服务器收到消息后调用消息总线将消息发送给本系统的接收节点;(4) The message forwarding server of the receiving end system sends a message to the receiving node of the system after receiving the message;
    (5)接收端系统的应用进程通过调用消息总线接收消息,其中,接收端系统的消息总线根据消息ID过滤掉重复的消息。(5) The application process of the receiving end system receives the message by calling the message bus, wherein the message bus of the receiving end system filters out the duplicate message according to the message ID.
  3. 根据权利要求2所述的一种调度自动化系统跨网段的消息转发方法,其特征在于,步骤(2)中,发送端系统的消息转发服务备机接收消息后,将消息按时序缓存一定时间,当发送端系统的消息转发服务备机切换为主机后,向接收端系统发送切换之前缓存的消息。The method for forwarding a message across a network segment of a dispatching automation system according to claim 2, wherein in step (2), after receiving the message, the message forwarding service standby machine of the transmitting end system caches the message for a certain time according to the time series. After the message forwarding service backup of the sending end system is switched to the host, the message buffered before the switching is sent to the receiving end system.
  4. 根据权利要求2所述的一种调度自动化系统跨网段的消息转发方法,其特征在于,步骤(3)中,发送端系统的消息转发服务主机向接收端系统发送消 息时,按照消息时序发送;发送消息后,将消息按照时序缓存一定时间;其中,发送端系统的消息转发服务主机先与接收端系统的一个消息转发服务节点建立连接,并发送消息,当发送消息失败时,与接收端系统的另一个消息转发服务节点建立连接,并发送缓存消息。The method for forwarding a message across a network segment of a dispatching automation system according to claim 2, wherein in step (3), the message forwarding service host of the transmitting end system sends the message to the receiving end system. When the information is sent, the message is sent according to the time sequence; after the message is sent, the message is cached according to the time series; wherein the message forwarding service host of the sending end system first establishes a connection with a message forwarding service node of the receiving end system, and sends a message when sending When the message fails, a connection is established with another message forwarding service node of the receiving end system, and a cache message is sent.
  5. 根据权利要求4所述的一种调度自动化系统跨网段的消息转发方法,其特征在于,若发送端系统超过一段时间仍无消息需要向接收端转发,发送端系统的消息转发服务主机向接收端系统发送一次心跳报文。The method for forwarding a message across a network segment of a dispatching automation system according to claim 4, wherein if the transmitting end system has not received a message for a period of time, the message forwarding service host of the transmitting end system receives the message. The end system sends a heartbeat message.
  6. 根据权利要求2所述的一种调度自动化系统跨网段的消息转发方法,其特征在于,步骤(4)中,接收端系统的消息转发服务器收到消息后,将消息设置转发标识,再调用消息总线将消息发送出去。The method for forwarding a message across a network segment of a dispatching automation system according to claim 2, wherein in step (4), after receiving the message, the message forwarding server of the receiving end system sets the forwarding identifier of the message, and then invokes The message bus sends the message out.
  7. 根据权利要求6所述的一种调度自动化系统跨网段的消息转发方法,其特征在于,步骤(2)中,发送端系统的消息转发服务主机和备机均丢弃带有转发标识的消息。The method for forwarding a message across a network segment of a dispatching automation system according to claim 6, wherein in step (2), the message forwarding service host and the standby machine of the transmitting end system both discard the message with the forwarding identifier.
  8. 根据权利要求3或4所述的一种调度自动化系统跨网段的消息转发方法,其特征在于,消息缓存采用二级缓存,一级缓存为内存缓存,二级缓存为文件缓存,当一级缓存满时,将接收时间最早的消息移入二级缓存;当缓存中的消息超过消息时效后,移出缓冲区。 The method for forwarding a message across a network segment of a dispatching automation system according to claim 3 or 4, wherein the message cache uses a second level cache, the first level cache is a memory cache, and the second level cache is a file cache. When the cache is full, the message with the earliest reception time is moved into the second-level cache; when the message in the cache exceeds the time limit of the message, the buffer is removed.
PCT/CN2015/096099 2015-08-11 2015-12-01 Cross-network segment message forwarding method for dispatching automation system WO2017024697A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2015104898367 2015-08-11
CN201510489836.7A CN105072021B (en) 2015-08-11 2015-08-11 A kind of message forwarding method of dispatch automated system cross-network segment

Publications (1)

Publication Number Publication Date
WO2017024697A1 true WO2017024697A1 (en) 2017-02-16

Family

ID=54501308

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096099 WO2017024697A1 (en) 2015-08-11 2015-12-01 Cross-network segment message forwarding method for dispatching automation system

Country Status (2)

Country Link
CN (1) CN105072021B (en)
WO (1) WO2017024697A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600932A (en) * 2020-04-14 2020-08-28 国电南瑞科技股份有限公司 Wide-area recall system and method for power grid operation data

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072021B (en) * 2015-08-11 2018-02-13 国电南瑞科技股份有限公司 A kind of message forwarding method of dispatch automated system cross-network segment
CN108471122A (en) * 2018-04-28 2018-08-31 盐城东博环保科技有限公司 A kind of redundancy regulating command processing method
CN110597904B (en) * 2018-05-25 2023-11-24 海能达通信股份有限公司 Data synchronization method, standby machine and host machine
CN109450810A (en) * 2018-12-30 2019-03-08 国网北京市电力公司 Identify the method and device of redundancy message
CN109981353B (en) * 2019-03-06 2022-05-24 北京全路通信信号研究设计院集团有限公司 Method and system for protecting adjacent station redundancy in frame type network communication equipment
CN111064609A (en) * 2019-12-11 2020-04-24 北京奇艺世纪科技有限公司 Master-slave switching method and device of message system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006189A (en) * 2010-11-25 2011-04-06 中兴通讯股份有限公司 Primary access server determination method and device for dual-machine redundancy backup
CN102991538A (en) * 2012-12-26 2013-03-27 北京科信华技术有限公司 Device and method for automatically switching point-to-point communication
US20140029411A1 (en) * 2012-07-27 2014-01-30 Samsung Electronics Co., Ltd. Method and system to provide seamless data transmission
CN105072021A (en) * 2015-08-11 2015-11-18 国电南瑞科技股份有限公司 Cross-segment message forwarding method for dispatching automation systems

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136900B (en) * 2006-10-16 2011-08-10 中兴通讯股份有限公司 Fast transparent fault shift device and implementing method facing to service
CN101414737A (en) * 2007-10-19 2009-04-22 上海轨道交通设备发展有限公司 Control method and system for track traffic electric power data acquisition and surveillance
CN101159387A (en) * 2007-11-12 2008-04-09 辽宁华冶集团发展有限公司 Intelligent monitoring wind power box-type transformer station
CN101958821A (en) * 2010-10-29 2011-01-26 国电南瑞科技股份有限公司 Transregional double ring network topology of electric power dispatch automation system
CN102647319A (en) * 2012-03-27 2012-08-22 许继集团有限公司 Application service system for monitoring power charging-exchanging station and interprocess communication method
CN102857505B (en) * 2012-09-06 2018-05-25 上海计算机软件技术开发中心 A kind of Internet of Things data bus middleware system
CN103166800B (en) * 2013-04-03 2015-07-08 国电南瑞科技股份有限公司 Message transmission method for dual-network redundant message bus in cross failure
CN103401696A (en) * 2013-06-25 2013-11-20 国家电网公司 Dual-network redundant communication system in industrial equipment and communication method thereof
CN103747091A (en) * 2014-01-16 2014-04-23 电信科学技术第一研究所 Distributed data synchronization system and method for embedded equipment
CN104317679B (en) * 2014-11-17 2016-06-08 国电南京自动化股份有限公司 A kind of SCADA system is based on the communication fault-tolerance method of thread redundancy
CN104539503A (en) * 2014-12-11 2015-04-22 中国航空工业集团公司第六三一研究所 Method for achieving redundancy channel data cross transmission based on 1394 bus autonomous forwarding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006189A (en) * 2010-11-25 2011-04-06 中兴通讯股份有限公司 Primary access server determination method and device for dual-machine redundancy backup
US20140029411A1 (en) * 2012-07-27 2014-01-30 Samsung Electronics Co., Ltd. Method and system to provide seamless data transmission
CN102991538A (en) * 2012-12-26 2013-03-27 北京科信华技术有限公司 Device and method for automatically switching point-to-point communication
CN105072021A (en) * 2015-08-11 2015-11-18 国电南瑞科技股份有限公司 Cross-segment message forwarding method for dispatching automation systems

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600932A (en) * 2020-04-14 2020-08-28 国电南瑞科技股份有限公司 Wide-area recall system and method for power grid operation data
CN111600932B (en) * 2020-04-14 2023-08-25 国电南瑞科技股份有限公司 Wide-area supplementing and calling system and method for power grid operation data

Also Published As

Publication number Publication date
CN105072021A (en) 2015-11-18
CN105072021B (en) 2018-02-13

Similar Documents

Publication Publication Date Title
WO2017024697A1 (en) Cross-network segment message forwarding method for dispatching automation system
CN102075343B (en) An out-of-band management realization method, a system for the same and an out-of-band management switch
US20160036625A1 (en) Method and device for protecting service reliability and network virtualization system
US9385944B2 (en) Communication system, path switching method and communication device
CN106685818A (en) Message feedback method and device
WO2015013896A1 (en) Network control method and apparatus
CN107769984B (en) Low-cost active/standby hot switching system and method based on gateway
WO2011147312A1 (en) Method, device and system for port backup of service access router
CN106452854B (en) A kind of subway comprehensive monitoring system synchronous communication method based on multi-connection master-slave redundancy
CN103166800B (en) Message transmission method for dual-network redundant message bus in cross failure
CN113315665B (en) Message sending method, device, equipment and medium of dual-network-card terminal equipment
CN106341249A (en) Redundant port switching method and device
CN102238069A (en) Data processing method and device for link switching process
CN102407868B (en) Hot-standby dual-connection method suitable for communication protocol of modern monitoring system of rail transit
RU2563142C2 (en) Base station system for railway application and method of creating base station network
CN103036724A (en) State information transmission method and network equipment and combination equipment
CN103067205B (en) Under same Host Administration, share the RT and backup RT changing method of same address
CN105790985A (en) Data switching method, first device, second device and device
WO2016074570A1 (en) Security monitoring method and system
CN102255741B (en) User service information backup method and device
CN102843265B (en) Not resetting without the hot standby dual link method of perturbation of a kind of communication protocol
CN105262692A (en) Method and device for realizing flow meter information real-time synchronization of openflow switches
WO2014044088A1 (en) L2tp network protection method, apparatus and system
CN101720134B (en) Wireless virtual device protocol-based industrial wireless data transmission method
TW201023563A (en) Processing method of ring network redundancy checking

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15900891

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15900891

Country of ref document: EP

Kind code of ref document: A1