CN103888298A - Node dynamically adding method based on redundant network communication - Google Patents

Node dynamically adding method based on redundant network communication Download PDF

Info

Publication number
CN103888298A
CN103888298A CN201410117386.4A CN201410117386A CN103888298A CN 103888298 A CN103888298 A CN 103888298A CN 201410117386 A CN201410117386 A CN 201410117386A CN 103888298 A CN103888298 A CN 103888298A
Authority
CN
China
Prior art keywords
message
layer
node
redundant
dynamic
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
CN201410117386.4A
Other languages
Chinese (zh)
Other versions
CN103888298B (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.)
Casco Signal Ltd
Original Assignee
Casco Signal 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 Casco Signal Ltd filed Critical Casco Signal Ltd
Priority to CN201410117386.4A priority Critical patent/CN103888298B/en
Publication of CN103888298A publication Critical patent/CN103888298A/en
Application granted granted Critical
Publication of CN103888298B publication Critical patent/CN103888298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a node dynamically adding method based on redundant network communication. The node dynamically adding method comprises the following steps that (1) a network communication module is abstracted into three layers of a signal layer, a redundant layer and a transmission layer, and an application layer is isolated from a communication layer; (2) a message is processed on the signal layer, wherein the processing process includes initialization, message processing and sending and message processing and receiving; (3) the message is processed on the redundant layer, wherein the processing process includes initialization, message processing and sending and message processing and receiving; (4) the message is processed on the transmission layer, wherein the processing process includes initialization, message sending and message receiving; (5) a dynamic communication node is verified and added; (6) the dynamic node is inquired, and after the function is called, dynamic node information is returned to an application; (7) the dynamic node is deleted. Compared with the prior art, the node dynamically adding method based on redundant network communication has the advantages of having the function of supporting communication node adding, reducing the complexity of configuration work, and being high in safety and reliability.

Description

A kind of node dynamic appending method based on redundant network communication
Technical field
The present invention relates to the node adding method in a kind of communication network, especially relate to a kind of node dynamic appending method based on redundant network communication.
Background technology
Network service in Rail Transit System adopts the communication modes of safeguarding based on Socket Basic API conventionally, adopt the mode of two net cold standbys to form redundant communications network, need to realize with diverse ways for different device models, there is following deficiency in these methods:
1) double-network communication adopts the mode of cold standby, there will be the flash of moment and reinitializing of equipment in the time that network switches.
2) need upper grade logic layer oneself to process relevant encapsulation to the forwarding of whole system and broadcast, once system need to be added new requirement, relevant realization also will be changed thereupon, time and effort consuming.
3) local and distant-end node all needs to configure the other side's information, otherwise cannot communicate, and flexibility is poor.
4) in the time breaking down in communication process, cannot be in the position of short time looking up the fault.
Summary of the invention
Object of the present invention is exactly to provide a kind of node dynamic appending method based on redundant network communication in order to overcome the defect that above-mentioned prior art exists, the network communication module of system is abstracted into and forms totally three layers of safe floor, redundant layer and transport layers, thereby by application layer and communication layers isolation, application layer only needs maintenance application logic, need not participate in bottom communication and realize; Adopt the hot standby transmission data of the two net of red indigo plant, in the time that a network breaks down, another network energy normal transmission, has ensured the normal operation of system, has improved the reliability of system; Filter duplicate packages by sequence number, ensure the uniqueness of redundant network data; Refuse illegal connection according to the configuration information of node, ensure that the safety of whole system connects; Adopt dynamic load node technology, make system have more flexibility, reduce complicated configuration effort.
Object of the present invention can be achieved through the following technical solutions:
Based on a node dynamic appending method for redundant network communication, it is characterized in that, comprise the following steps:
1) by abstract network communication module be three layers: signals layer, redundant layer and transport layer, by the isolation of application layer and communication layers;
2) signals layer processing messages, comprises initialization, processes transmission message, processes receipt message;
3) redundant layer processing messages, comprises initialization, processes transmission message, processes receipt message;
4) transport layer process message, comprises initialization, sends message, receipt message;
5) verify and add dynamic communication node; The present invention supports the function of dynamic appending communication node, with not in configuration file node communicate.When local node A has correctly configured the information of remote node B, but in B, do not configure the information of A.When A sends when message to B, B can verify A, if the correct B of configuration information can add A in dynamic-configuration table, A and B can proper communications.
6) inquiry dynamic node, calls after this function, and dynamic node information is returned to application
7) delete dynamic node, application can be specified and will be deleted dynamic node, and the present invention can delete this node from allocation list.
Described signals layer is responsible for sending data and the receiving remote data that application layer sends and is passed to application layer;
Described redundant layer, as the lower floor of signals layer, receives signals layer message bag, and increases redundant layer message header, completes application message redundancy group bag and filters the repetition message bag of receiving;
Described transport layer is the lower floor of redundant layer, is responsible for redundant layer message to send to long-range and receipt message by udp protocol redundancy, safeguards local and remote red blue net IP address and port information.
Described signals layer processing messages detailed process is as follows:
1) initialization;
2) wait for calling interface, judgement is to send message or receipt message, if send message, execution step 3), if receipt message, execution step 4):
3) receive after application layer data group is bundled into signals layer message and be transferred to redundant layer;
4) unpack signals layer message, and verify, if be verified, the message after unpacking passed to application layer, otherwise message is abandoned.
Described redundant layer processing messages detailed process is as follows:
1) initialization;
2) wait for calling interface, judgement is to send message or receipt message, if send message, execution step 3), if receipt message, execution step 4);
3) after reception signals layer message groups redundancy packet layer message, be transferred to transport layer;
4) unpack redundant layer message, and verify, judge whether to be verified, if yes, execution step 5), otherwise abandon message;
5) judge whether this message is redundancy message, if yes, this transmission of messages, to signals layer, otherwise is abandoned to message.
Described transport layer process message detailed process is as follows:
1) initialization;
2) receive redundant layer message and red blue net transmission message, receipt message thread circulation is simultaneously intercepted;
3) receipt message is verified, judged whether to be verified, if yes, receipt message is passed to redundant layer, otherwise carry out dynamic node checking.
Described dynamic node checking is specially:
Verify according to transport layer configuration information, if this message is ignored in failure; If successful call redundant layer checking function, redundant layer judges that whether the destination node device id of message is consistent with local device ID, if unsuccessfully ignore this message; If successful call signal layer checking function, whether the application type of signals layer checking message is consistent with this locality, if dynamic node is added in success, if this message is ignored in failure.
Described interpolation dynamic node is specially:
The information that the transport layer of local node, redundant layer, signals layer add remote node successively, if error number is returned in failure, if success passes to this bag message the application of remote node.
Described red blue net is the two net hot backup redundancies of red indigo plant, and an each subsystem of network failure can directly pass through another network service.
Compared with prior art, the present invention has the following advantages:
1) the present invention is a kind of safety, redundancy, universal network communication module flexibly, by the highly abstract isolation that realizes application layer and network service layer.
2) by being installed, two Ethernet cards form the two net hot backup redundancies of red indigo plant, article one, the each subsystem of network failure can directly pass through another network service, without handover network, system is not produced to any impact, improve reliability, ease for use and the maintainability of whole network system.
3) the present invention supports dynamic appending communication node function, has reduced the complexity of configuration effort.The proof procedure that simultaneously ensures whole dynamic node is strict, can not reduce like this safety and reliability of system.At present this function is by communicating by letter for interlock system SDM maintenance console and website.
4) the invention provides error number and return and wrong call back function function, in the time of initialization, transmission, receipt message, if make a mistake, can return to corresponding error number to application; In the time of transport layer checking message failure, this message content is returned to application by wrong call back function.Use the present invention can improve the efficiency of software debugging.
Brief description of the drawings
Fig. 1 is network hierarchical structure schematic diagram of the present invention;
Fig. 2 is signals layer Message Processing flow chart of the present invention;
Fig. 3 is redundant layer Message Processing flow chart of the present invention:
Fig. 4 is transport layer Message Processing flow chart of the present invention;
Fig. 5 is that the present invention adds dynamic communication node flow chart.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment
As shown in Figure 1, Fig. 2, Fig. 3, Fig. 4 are respectively the process chart of signals layer, redundant layer, transport layer to structure of the present invention, between three layers, connect each other by call back function.Fig. 5 is the flow chart of dynamic appending communication node.By reference to the accompanying drawings concrete enforcement of the present invention is elaborated:
1) configuration: local node A (node device ID=0x0101, application type=0x01, red net IP=192.168.0.1, PORT==10000, blue net IP=192.168.1.1, PORT=20000) in configuration file, configured remote node B (node device ID=0x0202, application type=0x01, red net IP=192.168.0.2, PORT=10001, blue net IP=192.168.1.2, PORT=20001) information, remote node B does not configure the relevant information of local node A.
2) initialization: the application of local node A and remote node B is the initialization interface of call signal layer, redundant layer and transport layer respectively, if error number is unsuccessfully returned in initialization.
3) send message: node A application call signals layer sends function, and application data group is bundled into signals layer message; Signals layer calls redundant layer function, the message (N >=1, concrete numerical value is by applying configuration) of composition N redundancy packet, and the sequence number SN=0 of message ..., N-1; Redundant layer calls transport layer and sends function, and N redundancy packet message is sent to remote node B by the two nets of red indigo plant.
4) receipt message: Node B transport layer receives the message that node A sends, first in local allocation list, search the configuration information of node A, if found, direct transfer and pass redundant layer, identical message is filtered according to SN by redundant layer, pass to signals layer, after signals layer checking, pass to application layer.If do not find the information of A, perform step 5).
5) checking dynamic node: Node B is verified according to transport layer configuration information, if this message is ignored in failure; If successful call redundant layer checking function.Redundant layer judges that whether the destination node device id of message is consistent with local device ID, if unsuccessfully ignore this message; If successful call signal layer checking function.Whether the application type of signals layer checking message is consistent with this locality, if success performs step 6), if this message is ignored in failure.
6) add dynamic node: the information that the transport layer of Node B, redundant layer, signals layer add node A successively, if error number is returned in failure, if success passes to this bag message the application of Node B.When having configured in B node after the information of A node, A and B can proper communications.
7) inquiry dynamic node: the configuration information of node A is passed to the application of Node B.
8) delete dynamic node: the application of Node B is deleted node A according to device id and application type from the allocation list of B.

Claims (8)

1. the node dynamic appending method based on redundant network communication, is characterized in that, comprises the following steps:
1) by abstract network communication module be three layers: signals layer, redundant layer and transport layer, by the isolation of application layer and communication layers;
2) signals layer processing messages, comprises initialization, processes transmission message, processes receipt message;
3) redundant layer processing messages, comprises initialization, processes transmission message, processes receipt message;
4) transport layer process message, comprises initialization, sends message, receipt message;
5) verify and add dynamic communication node;
6) inquiry dynamic node, calls after this function, and dynamic node information is returned to application;
7) delete dynamic node.
2. a kind of node dynamic appending method based on redundant network communication according to claim 1, is characterized in that, described signals layer is responsible for sending data and the receiving remote data that application layer sends and is passed to application layer;
Described redundant layer, as the lower floor of signals layer, receives signals layer message bag, and increases redundant layer message header, completes the filtration of application message redundancy group bag;
Described transport layer is the lower floor of redundant layer, is responsible for redundant layer message to send to long-range and receipt message by udp protocol redundancy, safeguards local and remote red blue net IP address and port information.
3. a kind of node dynamic appending method based on redundant network communication according to claim 1, is characterized in that, described signals layer processing messages detailed process is as follows:
1) initialization;
2) wait for calling interface, judgement is to send message or receipt message, if send message, execution step 3), if receipt message, execution step 4);
3) receive after application layer data group is bundled into signals layer message and be transferred to redundant layer;
4) unpack signals layer message, and verify, if be verified, the message after unpacking passed to application layer, otherwise message is abandoned.
4. a kind of node dynamic appending method based on redundant network communication according to claim 1, is characterized in that, described redundant layer processing messages detailed process is as follows:
1) initialization;
2) wait for calling interface, judgement is to send message or receipt message, if send message, execution step 3), if receipt message, execution step 4);
3) after reception signals layer message groups redundancy packet layer message, be transferred to transport layer;
4) unpack redundant layer message, and verify, judge whether to be verified, if yes, execution step 5), otherwise abandon message;
5) judge whether this message is redundancy message, if yes, this transmission of messages, to signals layer, otherwise is abandoned to message.
5. a kind of node dynamic appending method based on redundant network communication according to claim 1, is characterized in that, described transport layer process message detailed process is as follows:
1) initialization;
2) receive redundant layer message and red blue net transmission message, receipt message thread circulation is simultaneously intercepted;
3) receipt message is verified, judged whether to be verified, if yes, receipt message is passed to redundant layer, otherwise carry out dynamic node checking.
6. a kind of node dynamic appending method based on redundant network communication according to claim 5, is characterized in that, described dynamic node checking is specially:
Verify according to transport layer configuration information, if this message is ignored in failure; If successful call redundant layer checking function, redundant layer judges that whether the destination node device id of message is consistent with local device ID, if unsuccessfully ignore this message; If successful call signal layer checking function, whether the application type of signals layer checking message is consistent with this locality, if dynamic node is added in success, if this message is ignored in failure.
7. a kind of node dynamic appending method based on redundant network communication according to claim 5, is characterized in that, described interpolation dynamic node is specially:
The information that the transport layer of local node, redundant layer, signals layer add remote node successively, if error number is returned in failure, if success passes to this bag message the application of remote node.
8. a kind of node dynamic appending method based on redundant network communication according to claim 5, is characterized in that, described red blue net is the two net hot backup redundancies of red indigo plant, and an each subsystem of network failure can directly pass through another network service.
CN201410117386.4A 2014-03-26 2014-03-26 A kind of node dynamic adding method based on redundant network communication Active CN103888298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410117386.4A CN103888298B (en) 2014-03-26 2014-03-26 A kind of node dynamic adding method based on redundant network communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410117386.4A CN103888298B (en) 2014-03-26 2014-03-26 A kind of node dynamic adding method based on redundant network communication

Publications (2)

Publication Number Publication Date
CN103888298A true CN103888298A (en) 2014-06-25
CN103888298B CN103888298B (en) 2018-11-02

Family

ID=50957025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410117386.4A Active CN103888298B (en) 2014-03-26 2014-03-26 A kind of node dynamic adding method based on redundant network communication

Country Status (1)

Country Link
CN (1) CN103888298B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789696A (en) * 2016-11-30 2017-05-31 卡斯柯信号有限公司 The reliable redundant network transmission method of not face connection based on congestion control
CN109547228A (en) * 2017-08-14 2019-03-29 成都鼎桥通信技术有限公司 Transmission method, base station and the colony terminal of rail traffic group service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007076679A1 (en) * 2005-12-30 2007-07-12 Huawei Technologies Co., Ltd. A method and device for quality of service management based on virtual local area network stack
CN101378334A (en) * 2008-09-25 2009-03-04 卡斯柯信号有限公司 Communication method base on dual-network redundant universal network model
CN101610560A (en) * 2009-07-23 2009-12-23 中国科学院计算技术研究所 The discover method of the equipment in the wireless self-organization network
CN102195815A (en) * 2011-05-18 2011-09-21 浪潮(北京)电子信息产业有限公司 Network management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007076679A1 (en) * 2005-12-30 2007-07-12 Huawei Technologies Co., Ltd. A method and device for quality of service management based on virtual local area network stack
CN101378334A (en) * 2008-09-25 2009-03-04 卡斯柯信号有限公司 Communication method base on dual-network redundant universal network model
CN101610560A (en) * 2009-07-23 2009-12-23 中国科学院计算技术研究所 The discover method of the equipment in the wireless self-organization network
CN102195815A (en) * 2011-05-18 2011-09-21 浪潮(北京)电子信息产业有限公司 Network management method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789696A (en) * 2016-11-30 2017-05-31 卡斯柯信号有限公司 The reliable redundant network transmission method of not face connection based on congestion control
CN106789696B (en) * 2016-11-30 2020-06-30 卡斯柯信号有限公司 Congestion control-based non-connection-oriented reliable redundant network transmission method
CN109547228A (en) * 2017-08-14 2019-03-29 成都鼎桥通信技术有限公司 Transmission method, base station and the colony terminal of rail traffic group service

Also Published As

Publication number Publication date
CN103888298B (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN101442484B (en) Method, system and equipment for detecting stacking multi-Active
CN105024855B (en) Distributed type assemblies manage system and method
CN102025646B (en) Link switching method and device thereof
CN103259678B (en) Main/standby switching method, device, equipment and system
US8761001B2 (en) Method and network system for implementing user port orientation in multi-machine backup scenario of broadband remote access server
EP2961112B1 (en) Message forwarding system, method and device
JP5811995B2 (en) Communication system and network relay device
CN103731331B (en) Airborne data sending method, airborne data receiving method, and data transmission device and system
CN101729426A (en) Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
CN103795518A (en) Method, device, and system for synchronizing port modes between devices
CN101262366A (en) Debugging method, system and distributed device for target single board
CN103532863A (en) Method and device for realizing software stacking
CN107257300A (en) A kind of 4G access devices of wireless backup, system and method
CN111865704A (en) Data transmission method, system and network equipment
CN104518936A (en) Method and device for link dynamic aggregation
CN105515835A (en) Aerospace TTE (Time-Triggered Ethernet) network system-level gateway with communication integrity check function
CN102123080B (en) Data forwarding device and cable fastener plate and data forwarding method
CN104079396B (en) network redundancy structure
CN104104596A (en) Intelligent resilient framework (IRF) split processing method and device
CN103888298A (en) Node dynamically adding method based on redundant network communication
CN104579973A (en) Message forwarding method and device of virtual cluster
CN203563079U (en) Communication device used for industrial communication network which can be operated in redundant manner
CN105790985A (en) Data switching method, first device, second device and device
CN105338127A (en) Media access control MAC address table updating method, switch and system
CN108270593A (en) A kind of two-node cluster hot backup method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1195975

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant