[go: up one dir, main page]

CN1315288C - Uninterrupted Switching Method of Dual Network Communication System - Google Patents

Uninterrupted Switching Method of Dual Network Communication System Download PDF

Info

Publication number
CN1315288C
CN1315288C CNB2005100631137A CN200510063113A CN1315288C CN 1315288 C CN1315288 C CN 1315288C CN B2005100631137 A CNB2005100631137 A CN B2005100631137A CN 200510063113 A CN200510063113 A CN 200510063113A CN 1315288 C CN1315288 C CN 1315288C
Authority
CN
China
Prior art keywords
network
information
segment
node
polling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CNB2005100631137A
Other languages
Chinese (zh)
Other versions
CN1658578A (en
Inventor
王照
任雁铭
高峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sifang Engineering Co Ltd
Original Assignee
Beijing Sifang Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sifang Automation Co Ltd filed Critical Beijing Sifang Automation Co Ltd
Priority to CNB2005100631137A priority Critical patent/CN1315288C/en
Publication of CN1658578A publication Critical patent/CN1658578A/en
Application granted granted Critical
Publication of CN1315288C publication Critical patent/CN1315288C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

本发明提供一种在网络故障时,实现网络切换而不间断网络通信的双通信网络的通信方法。这种网络通信方法,将网络信息按照实时信息和非实时信息进行分类,网络信息中带有时戳,轮询信息从当前运行网络进行,而主动上送信息从两个运行网络同时上送。它的优点是网络正常时,只针对运行网段发送轮询命令,减少网络负荷;在网络故障时,只针对故障节点切换,而节省时间;同时,通过双网同时发送主动上送信息,保证网络切换期间数据没有丢失。

Figure 200510063113

The invention provides a communication method of a dual communication network that realizes network switching without interrupting network communication when the network fails. This network communication method classifies network information according to real-time information and non-real-time information. The network information has a time stamp. The polling information is carried out from the current operating network, and the actively uploaded information is simultaneously sent from the two operating networks. Its advantage is that when the network is normal, it only sends polling commands for the running network segment, reducing network load; when the network fails, it only switches for the faulty node, saving time; No data is lost during network switching.

Figure 200510063113

Description

双网络通信系统的不间断切换方法Uninterrupted Switching Method of Dual Network Communication System

技术领域technical field

本发明涉及电力系统自动化的网络通信技术,提供了基于以太网的双网络通信系统的实现方法,特别是实现了不间断的实时通信。The invention relates to the network communication technology of electric power system automation, provides the realization method of the double network communication system based on Ethernet, especially realizes uninterrupted real-time communication.

背景技术Background technique

双网络通信系统基于以太网通信技术,应用于基于以太网的电力系统自动化通信。通过利用以太网通信可靠性高、速度快、数据量大的特点和信息主动上送的机制,实现了不间断的实时通信。该实现方法是用于基于以太网的双网络冗余备用,既可以用于变电站层设备,又可以用于间隔层嵌入式设备,以实现网络热备用和平滑切换。The dual network communication system is based on the Ethernet communication technology and is applied to the automation communication of the power system based on the Ethernet. Uninterrupted real-time communication is realized by utilizing the characteristics of high reliability, fast speed, and large data volume of Ethernet communication and the mechanism of actively sending information. The implementation method is used for Ethernet-based dual network redundancy backup, which can be used for both substation layer equipment and bay layer embedded equipment, so as to realize network hot backup and smooth switching.

目前,常见的网络切换的实现方式主要有:At present, the common implementation methods of network switching mainly include:

1、将通信网络分为主网、备网两个网段,其中一个网段是主网,另一个网段是备网。网络正常时,网络信息只通过当前运行网段进行传递,当主网出现故障时,网络管理程序将整个网络切换到另一个网段,应用程序也开始接收该网段的网络信息。这种网络切换的优点是原理简单,实现也简单;缺点是整体网络切换需要耗费比较多的时间,从网络故障到切换的时间段内,网络信息有可能会丢失。1. Divide the communication network into two network segments, the main network and the backup network, one of which is the main network and the other is the backup network. When the network is normal, network information is only transmitted through the current running network segment. When the main network fails, the network management program will switch the entire network to another network segment, and the application program will also start to receive the network information of this network segment. The advantage of this kind of network switching is that the principle is simple and the implementation is simple; the disadvantage is that the overall network switching takes a lot of time, and network information may be lost during the period from network failure to switching.

2、将通信网络分为主网、备网两个网段,其中一个网段是主网,另一个网段是备网,管理程序根据每个网络节点的网络状况决定该节点使用哪个网段。网络正常时,每个节点的网络信息只通过该节点的当前运行网段进行传递,当某网络节点的网络连接出现故障时,网络管理程序将该网络节点切换到另一网段,应用程序也开始接收该网络节点的该网段的网络信息。这种网络切换的优点是因为只针对故障节点而节省切换时间,实现相对简单;缺点是从网络故障到切换的时间段内,网络信息仍有可能会丢失。2. Divide the communication network into two network segments, the main network and the backup network. One of the network segments is the main network and the other is the backup network. The management program determines which network segment the node uses according to the network status of each network node. . When the network is normal, the network information of each node is only transmitted through the current running network segment of the node. When the network connection of a certain network node fails, the network management program switches the network node to another network segment, and the application program also Start receiving the network information of the network segment of the network node. The advantage of this kind of network switching is that the switching time is saved only for the faulty node, and the implementation is relatively simple; the disadvantage is that the network information may still be lost during the time period from the network failure to the switching.

3、将通信网络分为主网、备网两个网段,其中一个网段是主网,另一个网段是备网,管理程序根据每个网络节点的网络状况决定该节点使用哪个网段。网络正常时,网络信息通过每个节点的两个网段同时进行传递,网络信息到达接收端后,接收端当两个网段都接收到相同的网络信息,才判定网络信息有效;当某网络节点的网络连接出现故障时,网络管理程序将该网络节点切换到另一网段,同时通知应用程序只需要接收一个网段的网络信息。这种网络切换的优点是因为只针对故障节点而节省切换时间,信息可靠性高;但是,从网络故障到切换的时间段内,也很难保证网络信息不会丢失。3. Divide the communication network into two network segments, the main network and the backup network. One of the network segments is the main network and the other is the backup network. The management program determines which network segment the node uses according to the network status of each network node. . When the network is normal, the network information is transmitted through the two network segments of each node at the same time. After the network information reaches the receiving end, the receiving end judges that the network information is valid when both network segments receive the same network information; when a network When the network connection of a node fails, the network management program switches the network node to another network segment, and at the same time notifies the application program that it only needs to receive the network information of one network segment. The advantage of this kind of network switching is that it only saves switching time for the faulty node and has high information reliability; however, it is difficult to ensure that network information will not be lost during the period from network failure to switching.

发明内容Contents of the invention

为了克服现有网络切换技术中存在的上述问题,本发明提供了一种在网络故障时,实现网络切换而不间断网络通信的基于以太网的双网络通信系统的实现方法。In order to overcome the above-mentioned problems in the existing network switching technology, the present invention provides an implementation method of an Ethernet-based dual-network communication system that realizes network switching without interrupting network communication when a network fails.

该实现方法的原理是:将通信网络分为主网、备网两个网段,其中一个网段是主网A,另一个网段是备网B,管理程序根据每个网络节点的网络状况决定该节点使用哪个网段。信息根据实时和非实时的要求,分为轮询信息和主动上送信息,轮询信息主要是变换不大或没有变化的定时查询信息,主动上送信息主要是需要立刻更新的变化比较大的变位信息或越限信息;网络正常时,轮询信息只通过网络节点的当前运行网段A进行传递,主动上送信息通过每个节点的两个网段A和B同时进行传递,任一个网段接收到的网络信息都判定为有效信息。网络信息到达接收端后,轮询信息直接处理,主动上送信息则根据信息中的时戳来决定该信息是否是最新信息,如果是最新信息就立即更新,如果不是最新信息就丢弃该信息;当某网络节点的网络连接出现故障时,网络管理程序将该网络节点切换到另一网段B,轮询信息通过切换后的网段B进行传递,主动上送信息因为是两个网段A和B都送,所以不会丢失。切换后,断开和该网络节点故障网段的连接,主动上送信息只从网段B进行上送;经过一段延时时间,重新连接该网络节点的故障网段,如果故障排除,则连接成功。重新连接成功后,主动上送信息重新从两个网段A和B同时上送。The principle of this implementation method is: divide the communication network into two network segments, the main network and the backup network, one of which is the main network A, and the other is the backup network B, and the management program is based on the network status of each network node Decide which network segment this node uses. According to real-time and non-real-time requirements, the information is divided into polling information and active uploading information. Polling information is mainly for timing query information with little change or no change, and active uploading information is mainly for changes that need to be updated immediately. Displacement information or over-limit information; when the network is normal, the polling information is only transmitted through the current running network segment A of the network node, and the actively uploaded information is transmitted through the two network segments A and B of each node at the same time. The network information received by the network segment is judged as valid information. After the network information arrives at the receiving end, the polling information is processed directly, and the information sent actively is determined according to the time stamp in the information whether the information is the latest information. If it is the latest information, it will be updated immediately, and if it is not the latest information, the information will be discarded; When the network connection of a network node fails, the network management program switches the network node to another network segment B, and the polling information is transmitted through the switched network segment B, and the information is actively sent because there are two network segments A Both send it to B, so it will not be lost. After the switchover, disconnect the connection with the faulty network segment of the network node, and send the active information only from network segment B; after a delay, reconnect the faulty network segment of the network node, and if the fault is eliminated, connect success. After the reconnection is successful, the proactively sent information is resent from the two network segments A and B at the same time.

这种网络切换的优点是因为只针对故障节点而节省切换时间,信息可靠性高;同时,保证网络切换期间数据不会丢失。The advantage of this kind of network switching is that switching time is saved only for faulty nodes, and information reliability is high; at the same time, data will not be lost during network switching.

该网络切换方法的基本特征是:The basic features of this network switching method are:

1、信息按照轮询信息和主动上送信息进行分类,主动上送信息在两个网段同时传送。1. The information is classified according to the polling information and the active sending information, and the active sending information is transmitted on two network segments at the same time.

2、网络信息中带有时戳,并根据时戳判断网络信息是否已经更新过。如果更新过,就放弃该报文;否则,就更新该报文。2. The network information has a time stamp, and it is judged whether the network information has been updated according to the time stamp. If updated, discard the message; otherwise, update the message.

3、网络切换以网络节点为单位,只针对故障节点进行网络切换。3. The network switching takes the network node as the unit, and only performs network switching for the faulty node.

4、网络切换过程中,由于传递变化量的主动上送信息是从两个网段同时上送的,因此信息不会丢失。4. In the process of network switching, since the active uploading information of the transmission change is sent from two network segments at the same time, the information will not be lost.

附图说明Description of drawings

图1a和图1b显示了网络从正常到故障的切换过程示意图。Figure 1a and Figure 1b show a schematic diagram of the switching process of the network from normal to faulty.

图2显示了轮询命令的发送的流程图。Fig. 2 shows a flowchart of the sending of the polling command.

图3显示了轮询命令的应答的流程图。Figure 3 shows a flowchart of the reply to the polling command.

图4显示了主动上送信息的传递的流程图。Fig. 4 shows a flowchart of the transfer of unsolicited information.

图5显示了轮询信息的接收的流程图。Fig. 5 shows a flowchart of the reception of polling information.

图6显示了主动上送信息的接收的流程图。FIG. 6 shows a flow chart of receiving unsolicited information.

图7显示了网络切换的流程图。Fig. 7 shows the flowchart of network switching.

图8显示了网络恢复的流程图。Figure 8 shows the flowchart of network recovery.

具体实施方式Detailed ways

基于以太网的双网络通信系统的实现方法包括网络信息传递方式、网络故障状态的诊断、网络切换方式、网络恢复等部分。The realization method of the dual network communication system based on Ethernet includes the network information transmission mode, the diagnosis of the network failure state, the network switching mode, the network restoration and so on.

1)网络信息传递方式1) Network information transmission method

网络信息传递方式有两种:轮询和主动上送。轮询信息一般是定时进行,不具有实时的特点;主动上送信息一般只送变化的数据。在本发明中,两种信息传递方式都要用到,轮询方式用于定期召唤数据,由于数据量比较大,只通过当前运行网段进行。而主动上送数据用于传递变化的数据,这部分数据在两个网段同时进行,这样当其中一个网段出现故障时,信息可以通过另一个网段不间断的传递。There are two ways to transmit network information: polling and active uploading. Polling information is generally carried out at regular intervals and does not have real-time characteristics; actively sending information generally only sends changed data. In the present invention, both information transmission methods are used, and the polling method is used to periodically call for data. Since the amount of data is relatively large, it is only carried out through the current operating network segment. Actively uploading data is used to transmit changed data, and this part of data is carried out simultaneously on two network segments, so that when one of the network segments fails, the information can be transmitted continuously through the other network segment.

2)网络故障状态的诊断2) Diagnosis of network fault status

检测到网络故障是进行网络切换的前提,因此快速、准确地判断网络故障很重要。为了保证网络切换方法是通用的,本发明采用了网络协议和网络管理相结合的方式判断网络的故障状态。方式1,标准的网络协议会判断网络的运行状态,并主动通知应用程序,应用程序利用这些返回信息判断网络故障;方式2,网络管理程序利用发送轮询命令是否成功判断当前运行网段是否可用,如果发送轮询命令不成功,累计发送失败次数,当发送失败次数达到限制条件,则判定该网段出现了故障。两种判断网络故障的方式各有缺点,方式1与网络协议有关,当发生物理故障时,判断网络故障的时间比方式2长,方式2与网络协议无关,当发生非物理故障时,判断网络故障的时间比方式1长,因此本发明中,两种方式相结合,任何一种方式判断出网络故障,都判定发生了网络故障。Network fault detection is a prerequisite for network switching, so it is very important to quickly and accurately judge network faults. In order to ensure that the network switching method is universal, the present invention uses a combination of network protocol and network management to judge the fault state of the network. Method 1, the standard network protocol will judge the running status of the network, and actively notify the application program, and the application program uses the returned information to judge the network failure; method 2, the network management program judges whether the current running network segment is available by sending polling commands successfully , if sending the polling command is unsuccessful, the cumulative number of sending failures, when the number of sending failures reaches the limit condition, it is determined that the network segment is faulty. The two ways of judging network faults have their own disadvantages. Method 1 is related to the network protocol. When a physical failure occurs, it takes longer to judge the network failure than method 2. Method 2 has nothing to do with the network protocol. When a non-physical failure occurs, the network The failure time is longer than the method 1. Therefore, in the present invention, the two methods are combined, and if any method determines a network failure, it is determined that a network failure has occurred.

3)网络切换方式3) Network switching method

有了网络信息传递方式的保证,网络切换方式可以很灵活。本发明采用的方式是检测到某网络节点的某网段故障后,立即将该网络节点的运行网段切换到备用网段,并断开该网络节点的故障网段,并释放网络连接资源和该连接的维护信息。With the guarantee of the network information transmission mode, the network switching mode can be very flexible. The method adopted by the present invention is to immediately switch the operating network segment of the network node to the standby network segment after detecting a certain network segment failure of a certain network node, disconnect the faulty network segment of the network node, and release network connection resources and Maintenance information for this connection.

4)网络恢复4) Network recovery

网络管理程序的一个重要功能是自动进行网络恢复,根据配置文件的恢复时间定义,网络管理程序会定时尝试连接故障网段,由于该部分程序使用独立的线程,因此并不会阻塞其他程序的运行。当网络管理程序检测到连接成功,则自动维护该连接的信息,并重新进行相关初始化工作。另外,即使故障网络恢复正常,也不会立刻切换回该网段,因为两个网段是平等的关系,哪个网段是当前运行网段对于应用没有任何影响。An important function of the network management program is to automatically restore the network. According to the recovery time definition of the configuration file, the network management program will regularly try to connect to the faulty network segment. Since this part of the program uses an independent thread, it will not block the operation of other programs . When the network management program detects that the connection is successful, it automatically maintains the information of the connection and re-performs related initialization work. In addition, even if the faulty network returns to normal, it will not switch back to this network segment immediately, because the two network segments are in an equal relationship, and which network segment is currently running has no impact on the application.

包含内容描述及相应功能Contains content description and corresponding functions

图1a和图1b显示了网络从正常到故障的切换过程示意图,图1a是网络正常运行时,图1b是网络故障时。如图1a和图1b所示,其中向上箭头表示主动上送信息,向下箭头表示查询命令;网络正常运行时,A网段表示当前运行网段,传递轮询信息和主动上送信息,B网段只传递主动上送信息;网络故障时,B网段表示当前运行网段,传递轮询信息和主动上送信息,A网段断开。Figure 1a and Figure 1b show a schematic diagram of the switching process of the network from normal to fault, Figure 1a is when the network is running normally, and Figure 1b is when the network is faulty. As shown in Figure 1a and Figure 1b, the upward arrow indicates the active sending of information, and the downward arrow indicates the query command; when the network is running normally, the A network segment indicates the current operating network segment, and the polling information and active sending information are transmitted, and the B The network segment only transmits the active upload information; when the network fails, the B network segment indicates the current running network segment, and transmits the polling information and the active upload information, and the A network segment is disconnected.

根据本发明,将通信网络分为主网、备网两个网段,其中一个网段是主网A,另一个网段是备网B,管理程序根据每个网络节点的网络状况决定该节点使用哪个网段。信息根据实时和非实时的要求,分为轮询信息和主动上送信息,轮询信息主要是变换不大或没有变化的定时查询信息,主动上送信息主要是需要立刻更新的变化比较大的变位信息或越限信息;网络正常时,轮询信息只通过网络节点的当前运行网段A进行传递,主动上送信息通过每个节点的两个网段A和B同时进行传递,任一个网段接收到的网络信息都判定为有效信息。网络信息到达接收端后,轮询信息直接处理,主动上送信息则根据信息中的时戳来决定该信息是否是最新信息,如果是最新信息就立即更新,如果不是最新信息就丢弃该信息;当某网络节点的网络连接出现故障时,网络管理程序将该网络节点切换到另一网段B,轮询信息通过切换后的网段B进行传递,主动上送信息因为是两个网段A和B都送,所以不会丢失。切换后,断开和该网络节点故障网段的连接,主动上送信息只从网段B进行上送;经过一段延时时间,重新连接该网络节点的故障网段,如果故障排除,则连接成功。重新连接成功后,主动上送信息重新从两个网段A和B同时上送。According to the present invention, the communication network is divided into two network segments, the main network and the backup network, wherein one network segment is the main network A, and the other network segment is the backup network B, and the management program determines the node according to the network status of each network node Which network segment to use. According to real-time and non-real-time requirements, the information is divided into polling information and active uploading information. Polling information is mainly for timing query information with little change or no change, and active uploading information is mainly for changes that need to be updated immediately. Displacement information or over-limit information; when the network is normal, the polling information is only transmitted through the current running network segment A of the network node, and the actively uploaded information is transmitted through the two network segments A and B of each node at the same time. The network information received by the network segment is judged as valid information. After the network information arrives at the receiving end, the polling information is processed directly, and the information sent actively is determined according to the time stamp in the information whether the information is the latest information. If it is the latest information, it will be updated immediately, and if it is not the latest information, the information will be discarded; When the network connection of a network node fails, the network management program switches the network node to another network segment B, and the polling information is transmitted through the switched network segment B, and the information is actively sent because there are two network segments A Both send it to B, so it will not be lost. After the switchover, disconnect the connection with the faulty network segment of the network node, and send the active information only from network segment B; after a delay, reconnect the faulty network segment of the network node, and if the fault is eliminated, connect success. After the reconnection is successful, the proactively sent information is resent from the two network segments A and B at the same time.

1.轮询命令的发送1. Send polling command

如附图2所示,定时发送轮询命令,轮询命令只从当前运行网段发送,同时利用发送的返回状态判断网络是否正常。As shown in Figure 2, the polling command is sent regularly, and the polling command is only sent from the current running network segment, and the return status of the sending is used to judge whether the network is normal.

图2中的各步骤功能解释如下:The functions of each step in Figure 2 are explained as follows:

S01-从当前运行网段发送轮询命令。查询网络节点的当前运行网段,从该网段向网络节点发送轮询命令。S01-Send a polling command from the current running network segment. Query the current running network segment of the network node, and send a polling command to the network node from the network segment.

S02-判断是否发送成功。本步骤需要根据网络协议的实际情况来判断是否发送成功。S02-judging whether the sending is successful. In this step, it is necessary to judge whether the sending is successful according to the actual situation of the network protocol.

S03-累计发送失败次数。以网络节点为单位,根据各个网络节点的情况来分别累计各个网络节点的发送失败次数。S03-Accumulated times of sending failures. Taking the network node as a unit, the number of sending failures of each network node is respectively accumulated according to the situation of each network node.

S04-清空发送失败次数。轮询命令发送成功后,说明网络情况良好,因此可以把网络失败次数清空。S04-clear the number of sending failures. After the polling command is sent successfully, it means that the network is in good condition, so the number of network failures can be cleared.

S05-判断是否失败次数越限。判断是否失败次数越限,一般是根据网络情况来决定。S05-judging whether the number of failures exceeds the limit. Judging whether the number of failures exceeds the limit is generally determined according to the network situation.

S06-判定网络故障。一旦发送失败次数越限,就判定网络出现了故障,但并不处理。S06—determining that the network is faulty. Once the number of sending failures exceeds the limit, it is determined that the network has failed, but it will not be processed.

2.轮询命令的应答2. Response to polling command

如附图3所示,根据轮询命令,组织数据,并从收到轮询命令的网段进行应答。As shown in Figure 3, the data is organized according to the polling command, and a reply is made from the network segment that receives the polling command.

图3中的各步骤功能解释如下:The functions of each step in Figure 3 are explained as follows:

S01-判断是否收到轮询命令。S01-judging whether a polling command is received.

S02-判断是否需要主动上送。轮询应答需要判断是否当时有主动上送,如果有主动上送,需要立刻发送主动上送信息。S02-judging whether to actively upload. The polling response needs to determine whether there is an active upload at that time. If there is an active upload, it needs to send the active upload information immediately.

S03-向接收到轮询命令的网络发送轮询应答。如果当时没有主动上送信息,就可以立刻根据轮询命令的内容来发送轮询应答。S03—sending a polling response to the network that has received the polling command. If no information is actively sent at that time, a polling response can be sent immediately according to the content of the polling command.

3.主动上送信息的传递3. Actively upload information transmission

如附图4所示,主动上送信息只包括发生变位或者越限的数据,这些信息由于需要及时、可靠的传递,所以同时从两个网段发送。As shown in Figure 4, the actively uploaded information only includes data that has shifted or exceeded the limit. Since these information need to be delivered in a timely and reliable manner, they are sent from two network segments at the same time.

图4中的各步骤功能解释如下:The functions of each step in Figure 4 are explained as follows:

S01-判断是否需要主动上送。S01-judging whether to actively upload.

S02-向两个网段同时发送主动上送信息。为了保证主动上送信息不丢失,需要向两个网段同时发送主动上送信息。S02-Send active upload information to two network segments at the same time. In order to ensure that the unsolicited information is not lost, it is necessary to send unsolicited information to two network segments at the same time.

4.轮询信息的接收4. Reception of polling information

如附图5所示,由于轮询信息比主动上送信息的优先级低,因此可以直接更新。As shown in FIG. 5 , since polling information has a lower priority than actively sending information, it can be updated directly.

图5中的各步骤功能解释如下:The functions of each step in Figure 5 are explained as follows:

S01-判断是否收到轮询应答。S01-judging whether a polling response is received.

S02-更新轮询应答信息。如果收到轮询应答信息,就可以根据需要来更新收到的信息。S02—Update polling response information. If a poll reply message is received, the received message can be updated as needed.

5.主动上送信息的接收5. Actively send information to receive

如附图6所示,主动上送信息有两份相同的信息,因此需要根据信息的时戳判断,如果不重复,则立即更新,否则,丢弃重复的信息。As shown in Figure 6, there are two copies of the same information actively sent, so it needs to be judged according to the time stamp of the information. If it is not repeated, it will be updated immediately; otherwise, the repeated information will be discarded.

图6中的各步骤功能解释如下:The functions of each step in Figure 6 are explained as follows:

S01-判断是否收到主动上送信息。S01-judging whether to receive the actively sent information.

S02-判断信息是否已存在。由于主动上送信息是从两个网段同时上送,因此需要判断信息是否已经更新过,以免重复更新数据。S02-judging whether the information already exists. Since the actively uploaded information is sent from two network segments at the same time, it is necessary to determine whether the information has been updated to avoid repeated data updates.

S03-更新主动上送信息。如果主动上送信息没有更新过,那么就需要更新主动上送信息。S03 - update the information sent actively. If the proactively submitted information has not been updated, the proactively submitted information needs to be updated.

6.网络切换6. Network switching

如附图7所示,根据网络故障情况,切换网络,并负责清除网络资源。As shown in Figure 7, according to the network failure situation, switch the network and be responsible for clearing network resources.

图7中的各步骤功能解释如下:The functions of each step in Figure 7 are explained as follows:

S01-判断是否网络故障。判断网络故障的方法,参见图1的说明。S01-judging whether the network is faulty. For the method of judging network faults, refer to the description of FIG. 1 .

S02-将当前运行网络切换到备用网。一旦某网络节点出现网络故障,就需要将该网络节点的运行网络切换到备用网。S02-Switch the current running network to the standby network. Once a network node has a network failure, it is necessary to switch the operating network of the network node to the backup network.

S03-断开网络连接,释放网络资源和维护信息。切换完网络后,需要断开已经发生故障的网络,并把相关的网络资源和维护信息释放掉。S03-Disconnect the network connection, release network resources and maintain information. After the network is switched, it is necessary to disconnect the failed network and release related network resources and maintenance information.

7.网络恢复7. Network recovery

如附图8所示,网络恢复是为了实现对暂时性网络故障的自我修复,而不影响系统的正常运行。As shown in Figure 8, network recovery is to realize self-repair of temporary network failures without affecting the normal operation of the system.

图8中的各步骤功能解释如下:The functions of each step in Figure 8 are explained as follows:

S01-判断是否到定时时间。重新连接网络一般需要等待一段时间,等待多少时间由应用程序来决定。S01-judging whether the timing time is up. It generally takes a while to reconnect to the network, and the waiting time is determined by the application.

S02-尝试连接故障网段。如果定时时间到,就可以尝试连接故障网段。S02-Try to connect to the faulty network segment. If the timer expires, you can try to connect to the faulty network segment.

S03-判断是否连接成功。S03-judging whether the connection is successful.

S04-维护网络信息,并进行相关初始化。如果连接成功,那么连接返回的信息需要维护,并给其他相关程序使用。S04-Maintain network information and perform relevant initialization. If the connection is successful, the information returned by the connection needs to be maintained and used by other related programs.

Claims (7)

1, a kind ofly realizes when network failure that network switches and the communication means based on the dual network communication system of Ethernet of uninterrupted network service, communication network is divided into major network, is equipped with two network segments of net, one of them network segment is a major network, another network segment is to be equipped with net, hypervisor determines this node to use which network segment as major network according to the network condition of each network node, when the network connection of certain network node is broken down, network supervisor switches to another network segment with this network node, it is characterized in that:
Be polling message with the network information according to real time information and non real-time information classification and initiatively go up carry information, and time stamp is set in the network information;
Network just often, polling message only transmits by the current operation network segment of network node;
Initiatively go up two network segments of carry information by each node and transmit simultaneously, the network information that any network segment receives all is judged to be effective information;
After the network information arrived receiving terminal, polling message was directly handled;
The network information initiatively goes up carry information and then decides according to the time stamp in the information whether this information is up-to-date information after arriving receiving terminal, thereby whether decision is upgraded;
Behind the network failure, the fault network node is switched to another network segment;
After the fault of networking, polling message transmits by the network segment after switching.
2, communication means as claimed in claim 1 wherein further comprises the diagnosis of network failure state, the step of network recovery.
3, communication means as claimed in claim 1 is characterized in that:
Polling mode is used for regularly calling data, is only undertaken by the current operation network segment;
The data of sending data to be used to transmit variation in the active, these data are carried out simultaneously at two network segments.
4, communication means as claimed in claim 2 is characterized in that the diagnosis algorithm of network failure state comprises the mode that adopts procotol, wherein:
Procotol is judged network failure, uses operating system mechanism notification application, and utilizes return information to judge network failure.
5, communication means as claimed in claim 2 is characterized in that the diagnosis algorithm of network failure state comprises the mode that adopts network management, wherein:
The network supervisor utilization sends polling order and whether judges successfully whether the current operation network segment is available, if it is unsuccessful to send polling order, accumulative total sends the frequency of failure, reaches restrictive condition when sending the frequency of failure, judges that then fault has appearred in this network segment.
6, communication means as claimed in claim 3 is characterized in that:
Only switch at the fault network node;
After detecting certain network segment fault of certain network node, the operation network segment with this network node switches to the standby network segment immediately;
Disconnect the fault network segment of this network node, and the maintenance information that is connected with this of releasing network connection resource.
7, communication means as claimed in claim 2 is characterized in that the network recovery step comprises:
Define recovery time in the configuration file;
Network supervisor uses independently thread, regularly attempts connecting the fault network segment;
When network supervisor detects successful connection, then safeguard the information of this connection automatically, and the initial work of being correlated with again;
It is normal that fault network recovers.
CNB2005100631137A 2005-04-05 2005-04-05 Uninterrupted Switching Method of Dual Network Communication System Expired - Lifetime CN1315288C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100631137A CN1315288C (en) 2005-04-05 2005-04-05 Uninterrupted Switching Method of Dual Network Communication System

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100631137A CN1315288C (en) 2005-04-05 2005-04-05 Uninterrupted Switching Method of Dual Network Communication System

Publications (2)

Publication Number Publication Date
CN1658578A CN1658578A (en) 2005-08-24
CN1315288C true CN1315288C (en) 2007-05-09

Family

ID=35007842

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100631137A Expired - Lifetime CN1315288C (en) 2005-04-05 2005-04-05 Uninterrupted Switching Method of Dual Network Communication System

Country Status (1)

Country Link
CN (1) CN1315288C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100463415C (en) * 2007-06-07 2009-02-18 烽火通信科技股份有限公司 Method for realizing dual node loop DCC route protection and dual node loop device
CN102739456B (en) * 2012-07-13 2015-03-25 西南交通大学 Wired and wireless hot backup redundancy multi-master communication method, and field gateway module
CN102833119B (en) * 2012-09-29 2015-03-11 南京国电南自轨道交通工程有限公司 Method for synchronously receiving and processing real-time data under dual-network redundancy mechanism
CN104202191A (en) * 2014-09-03 2014-12-10 广西电网公司电力科学研究院 Switching method of communication working modes of fault indicator remote transmission communication terminal and master station
CN105959172B (en) * 2016-07-19 2019-01-18 浪潮(北京)电子信息产业有限公司 A kind of the redundant network management method and platform of group system
WO2019105642A1 (en) * 2017-11-29 2019-06-06 British Telecommunications Public Limited Company A method of operating a network node
CN111654401B (en) * 2020-06-15 2023-02-14 傲普(上海)新能源有限公司 Network segment switching method, device, terminal and storage medium of monitoring system
CN112202594A (en) * 2020-09-07 2021-01-08 核电运行研究(上海)有限公司 Nuclear power station server fault emergency processing system and method
CN115037782B (en) * 2022-08-12 2022-11-18 南瑞轨道交通技术有限公司 Real-time data transmission method and system based on dual-network dual-link

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6222820B1 (en) * 1998-05-28 2001-04-24 3Com Corporation Method of VCC/VPC redundancy for asynchronous transfer mode networks
US20020152320A1 (en) * 2001-02-14 2002-10-17 Lau Pui Lun System and method for rapidly switching between redundant networks
CN1512675A (en) * 2002-12-31 2004-07-14 东方通信科技发展有限公司 Conversion method for main and spare communication channels

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6222820B1 (en) * 1998-05-28 2001-04-24 3Com Corporation Method of VCC/VPC redundancy for asynchronous transfer mode networks
US20020152320A1 (en) * 2001-02-14 2002-10-17 Lau Pui Lun System and method for rapidly switching between redundant networks
CN1512675A (en) * 2002-12-31 2004-07-14 东方通信科技发展有限公司 Conversion method for main and spare communication channels

Also Published As

Publication number Publication date
CN1658578A (en) 2005-08-24

Similar Documents

Publication Publication Date Title
CN101094157B (en) A Method of Realizing Network Interconnection Using Link Aggregation
CN1949767A (en) Method for switching master-slave back-up route apparatus based on virtual router redundant protocol
CN1232131C (en) Back-up method and device for base station controller in radio access network
CN102047643B (en) Method for enabling faster recovery of client applications in the event of server failure
CN1885839A (en) Method for realizing active/standby gateway apparatus in network
CN1859219A (en) Service take-over method based on device disaster tolerance, service switching device and backup machine
CN101051981A (en) WLAN abnormal quick restoring method and device
CN101079759A (en) Distributed bidirectional forwarding detection method and device
CN1315288C (en) Uninterrupted Switching Method of Dual Network Communication System
CN1933442A (en) Method and system for realizing virtual router redundant protocol master and standby equipment switching
CN101060485A (en) Topology changed messages processing method and processing device
WO2014079088A1 (en) Method and node for implementing redundancy on basis of chain network
CN1866766A (en) Chain circuit heat backup method and system
CN101056194A (en) A SNMP message transfer method and device
CN1874315A (en) Method for recovering fault of multicast, and router of multicast
CN1863198A (en) Apparatus and method of real-time recovering service
CN101340377B (en) Method, apparatus and system for data transmission in double layer network
CN110324375A (en) A kind of information backup method and relevant device
CN101420381A (en) Method and apparatus for enhancing forwarding reliability in VRRP load balance
CN101060533A (en) A method, system and device for improving the reliability of VGMP protocol
CN1859423A (en) Synchronous switching method for host and repeat device
CN1848841A (en) Route equipment backup method
CN1805400A (en) Notification of failures in a trunk network
CN1691615A (en) Method for detecting operating state of default gateway and apparatus therefor
CN101035032A (en) Failure monitoring method and device of the virtual rented line

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIJING SIFANG JIBAO ENGINEERING CO., LTD.

Free format text: FORMER OWNER: BEIJING SIFANG JIBAO AUTOMATION CO., LTD.

Effective date: 20081024

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20081024

Address after: No. four, 9 street, six floor, Beijing, Haidian District

Patentee after: Beijing Sifang Jibao Engineering Technology Co., Ltd.

Address before: No. four, 9 street, information industry base, Haidian District, Beijing

Patentee before: Beijing Sifang Jibao Automation Co., Ltd.

PE01 Entry into force of the registration of the contract for pledge of patent right

Effective date of registration: 20090928

Pledge (preservation): Pledge

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20101214

Granted publication date: 20070509

Pledgee: Bank of Beijing Tsinghua Yuan branch

Pledgor: Beijing Sifang Jibao Engineering Technology Co., Ltd.

Registration number: 2009110000622

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20101214

Granted publication date: 20070509

Pledgee: Bank of Beijing Tsinghua Yuan branch

Pledgor: Beijing Sifang Jibao Engineering Technology Co., Ltd.

Registration number: 2009110000622

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model