CN101764706A - Link redundant control method based on EPA network bridge - Google Patents

Link redundant control method based on EPA network bridge Download PDF

Info

Publication number
CN101764706A
CN101764706A CN200910251037A CN200910251037A CN101764706A CN 101764706 A CN101764706 A CN 101764706A CN 200910251037 A CN200910251037 A CN 200910251037A CN 200910251037 A CN200910251037 A CN 200910251037A CN 101764706 A CN101764706 A CN 101764706A
Authority
CN
China
Prior art keywords
bridge
link
network
module
epa
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200910251037A
Other languages
Chinese (zh)
Other versions
CN101764706B (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.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN2009102510370A priority Critical patent/CN101764706B/en
Publication of CN101764706A publication Critical patent/CN101764706A/en
Application granted granted Critical
Publication of CN101764706B publication Critical patent/CN101764706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention seeks protection for a realizing method of link redundant control of an EPA network bridge and relates to the field of industrial field control. The invention realizes an EPA network link redundant function and a redundant managing function on the EPA network bridge. The method adopts an STP spanning tree algorithm to realize the link redundant function and to analyze network paths. If a loop exists in the network, the most robust link is selected as a communication link, the others are redundant backup links, a network bridge port which is connected with the redundant backup links in the loop is set to a blocking state, and the network is pruned to a non-loop tree topologic structure. The redundant link managing function provided by the invention uses an STP redundant managing protocol to manage the communication link automatically, thus improving the reliability, stability and robustness of the whole EPA network. The method is suitable for industrial Ethernet of high reliability and high real-time data transmission.

Description

Link redundant control method based on the EPA bridge
Technical field
The present invention relates to the network communications technology, specifically is the link redundant control method of a kind of EPA (based on the industrial automation of Ethernet) network.
Background technology
The EPA real-time ethernet is a kind of brand-new open real-time ethernet standard that is applicable to industrial field device, and the IT technology of a large amount of maturations is applied to industrial control system.The EPA system is a kind of distributed system, it utilizes agreements such as ISO/IEC8802-3, IEEE802.11, IEEE802.15 will be distributed in on-the-spot several equipment, micro network segment and control/surveillance equipment and couples together, all devices is operated together, collaborative measurement and the control of finishing in industrial processes and the operation.
The EPA network application is in industry spot, and reliability requirement is very harsh.The EPA bridge is the visual plant in the EPA product chain, it interconnects two or more micro network segment, the communication data of equipment is effectively isolated in should the be realistic existing micro network segment, must guarantee equipment is communicated by letter with outer network segment device data in the micro network segment rapidity and accuracy again.Therefore the reliability of EPA bridge link is very crucial for EPA network-efficient, reliability service.The link redundancy technology has good using value for the reliability that improves and improve the Industrial Ethernet link.Existing Ethernet link redundancy technology mainly realizes on switch, provide redundant communication path by between each switching node, making up many physical links, (as " design of Dual-Ethernet redundant communication system and application " Liu Lijun etc., 2005 18 7 phases of volume of industrial control computer, the connection of setting up the client and server end by the Socket (socket) that is based upon on TCP/IP (TCP) the agreement basis, to enable reserve link automatically if client and server detects communication failure), thus improve the fault-tolerant ability of network and improve the reliability of network service.Yet switch is different with the definition of EPA bridge function, and switch realizes that the control method of link redundancy can't realize effective isolation of micro network segment devices communicating data; Simultaneously, solution does not preferably also appear in present link redundant control method at the EPA network.For this reason, a kind of link redundant control method based on the EPA bridge of design is to improve the reliability of EPA network.
Summary of the invention
The present invention is directed to the high reliability request of link in the EPA industrial control network, proposed a kind of industrial control network that is applicable to, is the link redundant control method of carrier with the EPA bridge.
It is as follows that the present invention solves the problems of the technologies described above the technical scheme that is adopted:
According to the characteristics of EPA industrial control network and in conjunction with the EPA consensus standard, the redundant processing module of EPA network link is set in the EPA bridge, revise the message forwarding capability of EPA bridge, adopt μ C/OS-II (real-time embedded) operating system the bridge all functions to be carried out unified management with task management mechanism.After the EPA bridge enters the data communication state, extract the EPA communication identifier (0x88CB) of the equipment that communicates with on the one hand, judge the legitimacy of communication equipment and the state of current link, the bridge parsing module receives the configuration bridge protocol data unit B PDU message that other all bridges send on the network, resolve unique ID number of each entrained in each BPDU bag literary composition bridge, the bridge of ID minimum is defined as Root Bridge in the network, Root Bridge is responsible for periodically sending topological protocol Data Unit TPDU to the whole network, is about to network topology structure and informs other bridges.The network parsing module carries out analysis and judgement to network path, if current bridge is received the bridge protocol data unit B PDU message that carries own ID number, illustrates to have loop in the network, the network topology structure after will being determined to prune according to path priority by Root Bridge; And the priority judge module is determined the priority of bridge according to the timestamp difference, select the most healthy and the strongest link as communication link, all the other are the redundancy backup link, the bridge port that connects the redundancy backup link in the port status module loop is set to blocked state, and network is trimmed to loop-free tree.Periodically send the link detection message by STP (Spanning TreeProtocol) spanning tree algorithm on the other hand, the communications status of identification communication link, when finding that current communication link breaks down, (STP) enables reserve link automatically by spanning tree algorithm, thereby realizes that the EPA communication link is quick, efficient, reliability service.
The appearance of loop is avoided in link redundancy control, control method proposed by the invention is by realizing that at the EPA bridge STP (Spanning Tree Protocol) spanning tree algorithm blocks some redundant link ports, the network configuration that will have the redundant link function is trimmed to a loop-free tree topology, has avoided occurring in the network loop.When active link fails, adjust topological structure automatically and re-construct out a tree topology, reach the purpose of link backup thus, therefore the EPA network has also possessed certain network fault tolerance ability.This bridge adopts spanning tree algorithm (STP) to realize micro network segment link redundancy controlled function, avoid the network segment communications loop to occur, improved the reliability of communication link, make the EPA network equipment carry out message in real time, in order, reliably and handle and transmit, thereby help to make up extensive EPA Control Network with high reliability.
Description of drawings
Fig. 1 EPA field apparatus or micro network segment topology diagram
Fig. 2 EPA bridge software is formed structural representation
Fig. 3 EPA bridge link redundancy control schematic diagram
(a) actual physics network topology structure figure
(b) tree of the generation after pruning schematic diagram
(c) tree of the generation after fault recovery schematic diagram
Embodiment
Below at accompanying drawing and instantiation enforcement of the present invention is specifically described.
Fig. 1 is the EPA network topology structure, comprises two network segment: monitoring level L 2The network segment and field apparatus level L 1The network segment.Field apparatus level L 1The network segment is used to realize between the various field apparatuss at industrial production scene and field apparatus and L 2The connection of the network segment; Monitoring level L 2The network segment is mainly used in the connection that realizes between control room instrument, device and the man-machine interface.No matter be monitoring level L 2The network segment still is field apparatus level L 1The network segment all can be divided into one or several micro network segment.Each micro network segment is used to connect a plurality of EPA equipment as a control area.In a control area, mutual communication between the EPA equipment realizes specific measurement and controlled function.Interconnect by the EPA bridge between the micro network segment, a micro network segment links to each other with other micro network segment by an EPA bridge.
Figure 2 shows that EPA bridge composition structural representation.Comprise μ C/OS-II (real-time embedded) operating system, EPA communication protocol stack module, EPA bridge safety function module, bridge bottom layer driving module, link redundancy module.The link redundancy processing module is set in the EPA bridge, revises the message forwarding capability of EPA bridge, adopt μ C/OS-II (real-time embedded) operating system the bridge all functions to be carried out unified management with task management mechanism.μ C/OS-II operating system module provides scheduling and the function of communicating by letter for the multitask in the EPA bridge, manages each functional module.EPA communication protocol stack module realizes the configuration and the dispatching management of EPA bridge.EPA bridge safety function module adopts firewall system, micro network segment equipment is carried out the EPA message differentiate that the communication data of non-EPA equipment abandons on the spot, thereby realizes the filtration of non-EPA data; EPA bridge bottom layer driving module realizes the reception and the forwarding of message.EPA bridge link redundancy module is guaranteed the reliability of communication link, by the backup of link redundancy control realization EPA network link, when primary link breaks down, enables backup link, thereby improves EPA network whole reliability.
The link redundancy module specifically comprises: initialization module, Root Bridge select module, bridge parsing module, priority that module, port status module are set.Behind each bridge electrifying startup, initialization module is Root Bridge (Root Bridge) with the setting state of bridge self, and by all of the port on the bridge (the two-port bridge port is made as A, B, three port bridge ports are made as A, B, C) send configuration bridge protocol data unit B PDU (Bridge Protocol Data Unit) to network, the timestamp that sends the self ID number (each ID whole network is unique) and the information of transmission is to network, for network competition Root Bridge (Root Bridge) provides ID number and optimal path is chosen timestamp is provided.The bridge parsing module receives the BPDU message that other all bridges send on the network, resolves ID number entrained in each BPDU message, and sends it to Root Bridge selection module; Root Bridge selects module that ID number in all other bridges BPDU messages that receive with oneself ID number compared, if in all reception BPDU messages ID number all than self ID number greatly, then setting this bridge oneself is Root Bridge.If in the BPDU message that certain bridge receives ID number of entrained ID ratio oneself little, then changing the present state of this bridge is non-Root Bridge.
The port status module is provided with the bridge port state according to the different task of bridge work at present, bridge port can be set for blocking (Blocking), intercept (Listening), study (Learning), transmitting one of them state in (Forwarding) or forbidding (Disabled) 5 states according to the task of bridge.The port status module is provided with the port status of bridge according to different task: when working on power, port is set is the state of intercepting, receive entrained ID number of external BPDU message, size by the institute relatively ID that receives number and self ID number, if exist an ID number littler than self ID, then this bridge is set to non-Root Bridge, if all ID that this bridge receives are big than self ID number, it is Root Bridge that this bridge then is set, be responsible for periodically sending topological protocol Data Unit TPDU to the whole network, with other bridges of network topology structure information notification, and to network transmission BPDU message, and this root bridge port state is changed to learning state, and port is in normal reiving/transmitting state.The network parsing module is analyzed network path, if current bridge is received the bridge protocol data unit B PDU message that carries own ID number, illustrate and have loop in the network, then according to the topology information in the TPDU message that Root Bridge sent, the redundancy backup link port that this bridge port block of state is connected in the loop is set to blocked state; When the port status module detected one 3 port or more the certain port cisco unity malfunction occurs in the bridge of multiport, putting these ports was disabled status.
With Fig. 3 is that example specifies, and Fig. 3 is the schematic block diagram that EPA bridge redundant module is realized link redundancy control.Fig. 3 utilizes spanning tree algorithm (STP) for the link redundancy module and adjusts the schematic diagram that topological structure re-constructs out a tree topology automatically.Suppose that for shown in Fig. 3 (a), there is unallowed winding network (shown in annular arrow) in the actual physics network in the network.Behind system's power-up initializing, the IEEE1588 agreement that adopts bridge in the access network realizes the clock synchronization of bridge, obtains the topology information of network and selects the most healthy and the strongest link as " branch " that generate tree according to the priority of link by sending and transmit the BPDU message mutually between the bridge.Each bridge receives the BPDU message that other bridges send, and extracts the timestamp information T that carries in the BPDU message 1, the bridge of receiving the BPDU message is noted the time stamp T when receiving this BPDU message 2, depositing in the memory, stab tabulation settling time in the memory, the poor (T of the time of reception stamp when calculating the timestamp that carries in the BPDU message that other bridges send and oneself receiving 2-T 1), the difference of timestamp is stored in the memory tabulation, determine path priority with this time extent, the priority judge module is according to the poor (T of timestamp 2-T 1) determine the priority of bridge, the bridge priority that the timestamp difference is more little is high more.Judged bridge 1 when supposing initialization and be Root Bridge, bridge 3 and bridge 5 have been joined in the network.Each port that is operated in bridge 3 and bridge 5 respectively in network other bridges send the BPDU message, bridge receives that BPDU message post analysis goes out to exist loop, then send message and in bridge 3 and bridge 5, carry out path priority selection, bridge 3 and bridge 5 be logging timestamp respectively, and according to timestamp difference judgement path priority, keep the path satisfy priority conditions, and with the non-priority path as the redundancy backup path.The bridge port that the port status module connects the redundancy backup path is set to blocked state, should be set to blocked state as the port B that determines bridge 3 in this example and the port A of bridge 5, link between the port blocked is the link that gets clogged (dotting among the figure), make Fig. 3 (a) become no winding network shown in Fig. 3 (b), make the link that gets clogged as the redundancy backup link.Root Bridge periodically scans bridge port, if do not receive the BPDU message that respective bridge sends on the path at the appointed time, judges that then respective bridge breaks down.Root bridge port block of state transmitting control commands recovers the port get clogged, and according to the priority principle reselect satisfy priority conditions optimal path as communication path.If bridge 4 does not send the BPDU message to Root Bridge in cycle time, then this bridge breaks down and can not work as can be known, the E network segment will be temporarily can't with other network segment communicating, Root Bridge sends a command to bridge 3, the port B that bridge 3 is got clogged by the automatic recovery of spanning tree algorithm (STP) according to this order, again prune out unobstructed communication link, the network of pruning out again is shown in Fig. 3 (c).
More than just the preferred embodiments of the present invention explanation, protection scope of the present invention limits in conjunction with claim based on those skilled in the art's understanding.

Claims (4)

1. based on the link redundant control method of EPA bridge, the link redundancy processing module is set in the EPA bridge, revise the message forwarding capability of EPA bridge, adopt real-time embedded operating system the bridge all functions to be carried out unified management with task management mechanism, the EPA communication identifier of the equipment that extraction communicates with, judge the legitimacy of communication equipment and the state of current link, it is characterized in that, the link redundancy module specifically comprises, initialization module, Root Bridge is selected module, the bridge parsing module, priority is provided with module, the port status module, it is Root Bridge that initialization module is provided with this bridge, and other bridge all of the ports send configuration bridge protocol data unit B PDU in network; The bridge parsing module receives the BPDU message that other all bridges send, and resolves ID number entrained in each BPDU bag literary composition; Root Bridge selects module according to the Root Bridge in ID number definite network; The network parsing module is analyzed network path, if there is loop in the network, the priority judge module is determined the priority of bridge according to the timestamp difference, select the most healthy and the strongest link as communication link, all the other are the redundancy backup link, the bridge port that connects the redundancy backup link in the port status module loop is set to blocked state, and network is trimmed to loop-free tree topology structure.
2. link redundant control method according to claim 1, it is characterized in that, describedly specifically comprise according to the Root Bridge in ID number definite network, Root Bridge selects module that ID number in all BPDU messages that receive with this bridge oneself ID number compared, if all receive in BPDU messages ID number all do not have own ID number greatly, then determine oneself to be Root Bridge, if ID number of the ID ratio in the BPDU message that receives oneself is big, then changing the present state of this bridge is non-Root Bridge.
3. link redundant control method according to claim 1, it is characterized in that, priority is provided with module and determines that the priority of bridge is specially, stab and tabulate settling time in the memory, time of reception when calculating the timestamp that carries in the BPDU message of other bridges transmissions and oneself receiving the BPDU message stabs poor (T2-T1), and priority is provided with module and determines that the more little bridge priority of timestamp difference is high more.
4. link redundant control method according to claim 1, it is characterized in that, if do not receive the BPDU message that bridge sends at the appointed time, judge that then respective bridge breaks down, port status module transmitting control commands recovers the port get clogged, priority be provided with module reselect satisfy priority conditions optimal path as communication link.
CN2009102510370A 2009-12-28 2009-12-28 Link redundant control method based on EPA network bridge Active CN101764706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102510370A CN101764706B (en) 2009-12-28 2009-12-28 Link redundant control method based on EPA network bridge

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102510370A CN101764706B (en) 2009-12-28 2009-12-28 Link redundant control method based on EPA network bridge

Publications (2)

Publication Number Publication Date
CN101764706A true CN101764706A (en) 2010-06-30
CN101764706B CN101764706B (en) 2012-02-01

Family

ID=42495702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102510370A Active CN101764706B (en) 2009-12-28 2009-12-28 Link redundant control method based on EPA network bridge

Country Status (1)

Country Link
CN (1) CN101764706B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117880A (en) * 2013-02-22 2013-05-22 浪潮电子信息产业股份有限公司 Web technology based network topological generation method
CN104158706A (en) * 2014-08-26 2014-11-19 杭州华三通信技术有限公司 Method and device of loopback detection
CN105515809A (en) * 2014-09-28 2016-04-20 中兴通讯股份有限公司 Software definition network realization method and main controller
CN105827485A (en) * 2016-05-24 2016-08-03 南京南瑞继保电气有限公司 Node communication state monitoring method based on PRP (Parallel Redundancy Protocol) and HSR (High-availability Seamless Redundancy) networks
CN106603276A (en) * 2016-11-22 2017-04-26 华为技术有限公司 Fault processing method and device of SERDES link group
CN110262215A (en) * 2019-07-22 2019-09-20 北京航天发射技术研究所 A kind of control method based on dissimilarity redundancy technology, apparatus and system
CN111682994A (en) * 2020-04-29 2020-09-18 浙江杰芯科技有限公司 Annular or linear network system based on EPA protocol and transmission method of non-real-time data
CN113422696A (en) * 2021-06-18 2021-09-21 深圳前海微众银行股份有限公司 Monitoring data updating method, system, equipment and readable storage medium
CN113875196A (en) * 2019-05-28 2021-12-31 小糸电工株式会社 Communication device
CN115865849A (en) * 2023-03-02 2023-03-28 广州市成格信息技术有限公司 Two-layer network cloud exchange device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201322870Y (en) * 2008-12-25 2009-10-07 上海自动化仪表股份有限公司 Field controller based on EPA bridge
CN101605372B (en) * 2009-06-05 2011-04-13 重庆邮电大学 Method for dispatching and managing redundant path in centralized Mesh wireless sensor network

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117880A (en) * 2013-02-22 2013-05-22 浪潮电子信息产业股份有限公司 Web technology based network topological generation method
CN104158706B (en) * 2014-08-26 2017-11-10 新华三技术有限公司 Loop detection method and device
CN104158706A (en) * 2014-08-26 2014-11-19 杭州华三通信技术有限公司 Method and device of loopback detection
CN105515809A (en) * 2014-09-28 2016-04-20 中兴通讯股份有限公司 Software definition network realization method and main controller
CN105827485B (en) * 2016-05-24 2019-06-18 南京南瑞继保电气有限公司 Node communications status based on PRP and HSR network monitors method
CN105827485A (en) * 2016-05-24 2016-08-03 南京南瑞继保电气有限公司 Node communication state monitoring method based on PRP (Parallel Redundancy Protocol) and HSR (High-availability Seamless Redundancy) networks
CN106603276A (en) * 2016-11-22 2017-04-26 华为技术有限公司 Fault processing method and device of SERDES link group
CN113875196A (en) * 2019-05-28 2021-12-31 小糸电工株式会社 Communication device
CN113875196B (en) * 2019-05-28 2024-01-05 小糸电工株式会社 Communication device
CN110262215A (en) * 2019-07-22 2019-09-20 北京航天发射技术研究所 A kind of control method based on dissimilarity redundancy technology, apparatus and system
CN110262215B (en) * 2019-07-22 2022-06-17 北京航天发射技术研究所 Control method, device and system based on dissimilar redundancy technology
CN111682994A (en) * 2020-04-29 2020-09-18 浙江杰芯科技有限公司 Annular or linear network system based on EPA protocol and transmission method of non-real-time data
CN111682994B (en) * 2020-04-29 2022-03-29 浙江杰芯科技有限公司 Annular or linear network system based on EPA protocol and transmission method of non-real-time data
CN113422696A (en) * 2021-06-18 2021-09-21 深圳前海微众银行股份有限公司 Monitoring data updating method, system, equipment and readable storage medium
CN115865849A (en) * 2023-03-02 2023-03-28 广州市成格信息技术有限公司 Two-layer network cloud exchange device

Also Published As

Publication number Publication date
CN101764706B (en) 2012-02-01

Similar Documents

Publication Publication Date Title
CN101764706B (en) Link redundant control method based on EPA network bridge
CN102821050B (en) A kind of RSTP is applied to the processing method of Single-ring network topology
EP1982447B1 (en) System and method for detecting and recovering from virtual switch link failures
CN100477638C (en) Stack manager protocol with automatic set up mechanism
EP3721607B1 (en) Multiple rstp domain separation
US9515845B2 (en) Utility communication method and system
CN101610193B (en) Method for automatically discovering Ethernet ring and generating ring
CN101652963B (en) Method for reconfiguring a communications network
US20030097470A1 (en) System, device, and method for improving communication network reliability using trunk splitting
US9218230B2 (en) Method for transmitting messages in a redundantly operable industrial communication network and communication device for the redundantly operable industrial communication network
GB2333931A (en) Logical switch set
CN102549982A (en) Technique for controlling data forwarding in computer networks
US20150281335A1 (en) Receiver network component for operation in a communication network, communication network and method for operating a communication network
CN103607293B (en) A kind of flow rate protecting method and equipment
CN103595626A (en) Method for achieving dynamic path planning in ring network
US20090116405A1 (en) Redundant Automation Data Communications Network
CN103107940B (en) For the redundant gateway system of device level looped network
Giorgetti et al. Performance analysis of media redundancy protocol (MRP)
CN105340230A (en) Virtual chassis topology management
CN105790990A (en) Method and system for monitoring and managing power distribution and utilization communication business
Du et al. Software-defined networking for real-time ethernet
CN105099905A (en) Relay System and Switching Device
CN101587351B (en) Reliable communication method of intelligent electronic device
CN101848128B (en) Method, system and topological structure for realizing stabilized communication among multi-ring topologies
WO2014075594A1 (en) Service transmission protection method and device based on intersecting ring of multi-ring structure network

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