CN105812160B - A kind of seamless redundant network mode adaptive method and device - Google Patents

A kind of seamless redundant network mode adaptive method and device Download PDF

Info

Publication number
CN105812160B
CN105812160B CN201410850097.5A CN201410850097A CN105812160B CN 105812160 B CN105812160 B CN 105812160B CN 201410850097 A CN201410850097 A CN 201410850097A CN 105812160 B CN105812160 B CN 105812160B
Authority
CN
China
Prior art keywords
equipment
probe messages
networking
update
receives
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.)
Active
Application number
CN201410850097.5A
Other languages
Chinese (zh)
Other versions
CN105812160A (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.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology 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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201410850097.5A priority Critical patent/CN105812160B/en
Publication of CN105812160A publication Critical patent/CN105812160A/en
Application granted granted Critical
Publication of CN105812160B publication Critical patent/CN105812160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of seamless redundant network mode adaptive method and devices, it is adaptive that this method is applied to networking model, the networking includes multiple first equipment, first equipment supports HSR and PRP agreement, this method comprises: for the first equipment any in networking, first equipment sends probe messages, which at least carries MAC Address;When the first equipment of other in networking receives the probe messages, updates and the probe messages is forwarded to carry information;When first equipment receives probe messages, according to the MAC Address of the carrying probe messages for its send probe messages when, according to the information handover network mode of carrying.The present invention is by sending probe messages by any first equipment, when the first equipment of other in networking receives the probe messages, it updates and forwards the probe messages, first equipment can obtain the quantity of the first equipment in networking, and then adaptive handover network mode, guarantee the reliability of networking model configuration.

Description

A kind of seamless redundant network mode adaptive method and device
Technical field
The present invention relates to network communication technology field more particularly to a kind of redundant network mode adaptive method and devices.
Background technique
Seamless redundant network refers to that the network does not need to re-start communication configuration again when there is single-link connecting fault, It can still be communicated, and communication message will not be lost, that is, not need the communication network of self-healing time.HSR(High- Availability Seamless Redundancy, highly reliable seamless redundancy) and PRP (Parallel Redundancy Protocol, Parallel Redundancy Protocol) seamless redundancy can be achieved.Wherein, PRP agreement is the redundancy association of work on the terminal device View, is a kind of node redundancy.In PRP network mode, a terminal node is connected to two mutually indepedent and network topologies In the identical network of structure, and topological structure is any, the parallel operation simultaneously of the two networks, as shown in Figure 1.PRP can also lead to It crosses and is handled all directions as a separate network, for establishing a simple, seamless ring structure, this ring structure is It is HSR redundant looped network mode, as shown in Figure 2.
Currently, the equipment for supporting HSR and PRP agreement, right although being all to support for HSR mode and PRP mode In certain networkings topology, the selection a certain kind mode that can only be fixed, once another mode of the selection of mistake, whole network is just It cannot normally work.When carrying out network mode configuration to equipment, administrator's manual operation is relied primarily on, networking is compared For complicated network, this manual configuration mode not only low efficiency, and be easy to omit or configuration error causes network obstructed, And also more time-consuming on checking such problem, efficiency is lower.
Summary of the invention
The embodiment of the present invention provides a kind of seamless redundant network mode adaptive method and device, to solve the prior art In, need administrator to carry out network mode configuration manually, efficiency is lower, and being easy omission or configuration error causes network obstructed Problem.
The embodiment of the present invention provides a kind of seamless redundant network mode adaptive method, and the method is applied to networking model Adaptively, the networking includes multiple first equipment, and first equipment supports HSR and PRP agreement, which comprises
For any first equipment in the multiple first equipment, first equipment sends probe messages, the detection Message at least carries MAC Address;
When the first equipment of other in networking receives the probe messages, updates the probe messages and carry information, and Probe messages after forwarding updates;
When first equipment receives probe messages, the MAC Address judgement carried according to probe messages is current to be received Probe messages whether be probe messages that first equipment is sent, when determining result is to be, first equipment according to Receive the information handover network mode of probe messages carrying;Otherwise, it updates received probe messages and forwards.
Optionally, the probe messages carry the first number of devices in the MAC Address and networking of first equipment and count; When the first equipment of other in networking receives the probe messages, updates the probe messages and carry information, and forward update Probe messages include: afterwards
When the first equipment of other in networking receives the probe messages, by the number of the first equipment in the probe messages Amount plus 1, and forward probe messages after update;
Correspondingly, first equipment includes: according to the information handover network mode for receiving probe messages carrying
Quantity of first equipment according to the first equipment in the networking for receiving probe messages carrying, switching described first The network mode of equipment;When the number of the first equipment in networking is greater than 2, first equipment is switched to HSR mode;Work as group When the number of the first equipment is equal to 2 in net, first equipment is switched to PRP mode.
Optionally, the probe messages carry the MAC Address of first equipment and the type identification of first equipment, The type identification is for identifying whether equipment supports HSR and PRP agreement;The networking includes that the first equipment and/or second set Standby, second equipment does not support HSR agreement and PRP agreement;When the first equipment of other in networking receives the probe messages When, it updates the probe messages and carries information, and forward the probe messages after update to include:
When the first equipment of other in networking receives the probe messages, the type identification of current first equipment is added The extremely probe messages, and forward probe messages after update;When the second equipment receives the probe messages in networking, will work as The type identification of preceding second equipment is added to the probe messages, and forwards probe messages after update;
Correspondingly, first equipment includes: according to the information handover network mode for receiving probe messages carrying
First equipment is according to the type mark for receiving the first equipment and the second equipment in the networking that probe messages carry Know quantity and type identification, confirm the quantity of the first equipment and the second equipment in networking, switches the network of first equipment Mode;When the number of the first equipment in networking is greater than 2 and does not include the second equipment, first equipment is switched to HSR mould Formula;When the number of the first equipment in networking is equal to 2, first equipment is switched to PRP mode.
Optionally, it when the first equipment of other in networking receives the probe messages, updates the probe messages and carries Information, and forward update after probe messages include:
When the first equipment of other in networking receives the probe messages, judge whether that the probe messages carry first Device type mark number is greater than 2 and includes the second device type mark;When determining result is to be, it is believed that networking mode has Accidentally, the probe messages are abandoned or send error message;Otherwise, the type identification of current first equipment is added to the spy Text is observed and predicted, and forwards probe messages after update.
Optionally, it when the first equipment of other in networking receives the probe messages, updates the probe messages and carries Information, and forward update after probe messages include:
When the first equipment of other in networking receives the probe messages, judge whether current first equipment saves State the MAC Address of probe messages carrying;When determining result is to be, the message is abandoned;Otherwise, the probe messages are saved to take The MAC Address of band updates the probe messages and carries information, and forwards probe messages after update.
The embodiment of the present invention also provides a kind of seamless redundant network mode adaptive device, and described device is applied to networking mould Formula is adaptive, and the networking includes multiple first equipment, and first equipment supports that HSR and PRP agreement, described device include:
Probe messages sending module, for for any first equipment in the multiple first equipment, first equipment Probe messages are sent, the probe messages at least carry MAC Address;
Probe messages update module, for updating institute when the first equipment of other in networking receives the probe messages It states probe messages and carries information, and forward probe messages after update;
Network mode switching module, for being carried according to probe messages when first equipment receives probe messages MAC Address judge whether currently received probe messages are probe messages that first equipment is sent, when determining that result is When being, first equipment is according to the information handover network mode for receiving probe messages carrying;Otherwise, it updates and receives detection Message simultaneously forwards.
Optionally, the probe messages carry the first number of devices in the MAC Address and networking of first equipment and count; The probe messages update module is used for when the first equipment of other in networking receives the probe messages, and the detection is reported The quantity of the first equipment adds 1 in text, and forwards probe messages after update;
Correspondingly, the network mode switching module is for first equipment according to the group for receiving probe messages carrying The quantity of first equipment in net switches the network mode of first equipment;When the number of the first equipment in networking is greater than 2, First equipment is switched to HSR mode;When the number of the first equipment in networking is equal to 2, first equipment is switched For PRP mode.
Optionally, the probe messages carry the MAC Address of first equipment and the type identification of first equipment, The type identification is for identifying whether equipment supports HSR and PRP agreement;The networking includes that the first equipment and/or second set Standby, second equipment does not support HSR agreement and PRP agreement;The probe messages update module be used in the networking other the When one equipment receives the probe messages, the type identification of current first equipment is added to the probe messages, and forward Probe messages after update;When the second equipment receives the probe messages in networking, by the type identification of current second equipment The probe messages are added to, and forward probe messages after update;
Correspondingly, the network mode switching module is for first equipment according to the group for receiving probe messages carrying The type identification quantity and type identification of first equipment and the second equipment in net confirm the first equipment and the second equipment in networking Quantity, switch the network mode of first equipment;When the number of the first equipment in networking is greater than 2 and does not include the second equipment When, first equipment is switched to HSR mode;When the number of the first equipment in networking is equal to 2, first equipment is cut It is changed to PRP mode.
Optionally, the probe messages update module is also used to when other first equipment receive the detection report in networking Wen Shi judges whether that the probe messages carry the first device type mark number and are greater than 2 and include the second device type mark; When determining result is to be, it is believed that networking mode is wrong, abandons the probe messages or sends error message;Otherwise, will work as The type identification of preceding first equipment is added to the probe messages, and forwards probe messages after update.
Optionally, the probe messages update module is also used to when other first equipment receive the detection report in networking Wen Shi, judges whether current first equipment preserves the MAC Address that the probe messages carry;When determining result is to be, lose Abandon the message;Otherwise, the MAC Address that the probe messages carry is saved, the probe messages is updated and carries information, and forward Probe messages after update.
Method provided in an embodiment of the present invention, by by supporting any first equipment of HSR and PRP agreement to send detection report Text updates and forwards the probe messages, which can obtain when other first equipment receive the probe messages in networking The quantity of the first equipment in networking, and then adaptive handover network mode are taken, guarantees the reliability of networking model configuration.
Detailed description of the invention
Fig. 1 is the PRP network mode networking structure schematic diagram that the prior art provides;
Fig. 2 is the HSR network mode networking structure schematic diagram that the prior art provides;
Fig. 3 is redundant network mode adaptive method flow diagram provided in an embodiment of the present invention;
Fig. 4 is redundant network mode adaptive method flow diagram provided in an embodiment of the present invention;
Fig. 5 is wrong networking structure schematic diagram provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of redundant network mode adaptive device provided in an embodiment of the present invention.
Specific embodiment
The present invention provides a kind of seamless redundant network mode adaptive method to realize.
With reference to the accompanying drawings of the specification, the present invention is described in detail.
Fig. 3 is seamless redundant network mode adaptive method flow diagram provided in an embodiment of the present invention.This method is applied to Networking model is adaptive, which includes multiple first equipment, first equipment support highly reliable seamless redundancy protocol HSR and PRP Parallel Redundancy Protocol, referring to Fig. 3, which includes:
301, for any first equipment in multiple first equipment, which sends probe messages, the detection report Text at least carries MAC (Media Access Control, medium access control) address;
It in embodiments of the present invention, include but is not limited to multiple first equipment in networking, it is each in multiple first equipment A first equipment sends probe messages, in order to distinguish the different probe messages that different first equipment are sent, the embodiment of the present invention In probe messages carry sending device MAC Address.
As depicted in figs. 1 and 2, which includes an external central port (Access) and two internal central port (A And B).In embodiments of the present invention, which can be issued by either port in two internal central port A and B, by another Port receives.
Multiple first equipment, which can be, in the embodiment of the present invention, in networking sends detection report in initial Configuration network mode Text realizes adaptive network pattern switching, is also possible to each preset time and sends a probe messages, to guarantee network communication Reliability certainly, can be in the detection report of transmission in order to distinguish the probe messages that a certain first equipment is sent in different time Sequence identifier is carried in text.It that is to say, for a certain first equipment, in the probe messages sequence identifier that the period 1 sends It is 1, is 2 in the probe messages sequence identifier that second round sends, and so on, to guarantee that other first equipment receive carrying When the probe messages of identical MAC Address, can effectively it distinguish.In addition, multiple first equipment can also be and detect in networking When group net topology changes, probe messages are sent again, and can timely update network mode, guarantee the reliability of communication.
302, it when the first equipment of other in networking receives the probe messages, updates the probe messages and carries information, and Probe messages after forwarding updates;
In embodiments of the present invention, for other first equipment when receiving probe messages, parsing obtains detection report in networking The information that text carries, updates and continues to forward the probe messages, so that the probe messages are by all devices in networking.
Optionally, due in networking equipment be that the whole network broadcasts the probe messages when sending probe messages, cause to Mr. Yu For one equipment, it may be repeated as many times and receive the probe messages that a certain first equipment is sent.In embodiments of the present invention, work as group When the first equipment of other in net receives the probe messages, first determine whether current first equipment is preserved the probe messages and taken The MAC Address of band;When determining result is to be, the probe messages are abandoned;Otherwise, the MAC Address of probe messages carrying is saved, It updates the probe messages and carries information, and forward probe messages after update.
303, when first equipment receives probe messages, the MAC Address judgement carried according to probe messages is currently connect Whether the probe messages of receipts are probe messages that first equipment is sent, and when determining result is to be, first equipment is according to connecing Receive the information handover network mode of probe messages carrying;Otherwise, it updates received probe messages and forwards.
In embodiments of the present invention, when first equipment receives probe messages, which may be The probe messages being originally sent by other equipment in networking are also possible to the probe messages being originally sent by first equipment.It should Whether the MAC Address that the first equipment is carried according to the probe messages is first device mac address difference;When judgement result is yes When, it is believed that the probe messages turn again to first equipment by all devices in networking, at this point, first equipment is according to the spy Observe and predict the information handover network mode of text carrying;Otherwise, it updates received probe messages and forwards.
Method provided in an embodiment of the present invention, by by supporting any first equipment of HSR and PRP agreement to send detection report Text updates and forwards the probe messages, which can obtain when other first equipment receive the probe messages in networking The quantity of the first equipment in networking, and then adaptive handover network mode are taken, guarantees the reliability of networking model configuration.
Optionally, in the embodiment of the present invention, first equipment obtain the first equipment in networking quantity mode include: this One equipment sends the probe messages that the first number of devices counts in the MAC Address for carrying first equipment and networking;When in networking When other first equipment receive the probe messages, the quantity of the first equipment in the probe messages is added 1, and is visited after forwarding update Observe and predict text;When first equipment receives probe messages, currently received spy is judged according to the MAC Address that probe messages carry Observe and predict text whether be first equipment send probe messages, when determine result be when, the first equipment according to receive detect The quantity of the first equipment, switches the network mode of first equipment in the networking that message carries;As of the first equipment in networking When number is greater than 2, which is switched to HSR mode;When the number of the first equipment in networking is equal to 2, this first is set It is standby to be switched to PRP mode.
It should be noted that the embodiment of the present invention is to obtain the quantity of the first equipment in networking in a manner of counting, in turn Adaptive handover network mode.In fact, in another embodiment of the invention, first equipment can also send carrying this The probe messages of the MAC Address of one equipment and the type identification of the first equipment, the type are identified for identifying whether equipment is supported HSR and PRP agreement.When the first equipment of other in networking receives the probe messages, by the type identification of current first equipment The probe messages are added to, and forward probe messages after update.When first equipment receives probe messages, reported according to detection Text carry MAC Address judge currently received probe messages whether be first equipment send probe messages, when determine tie Fruit is when being, the first equipment determines in networking the according to the number of the first device type mark for receiving probe messages carrying The quantity of one equipment, and then switch the network mode of first equipment;When the number of the first equipment in networking is greater than 2, by this First equipment is switched to HSR mode;When the number of the first equipment in networking is equal to 2, which is switched to PRP mould Formula, the embodiment of the present invention are not especially limited.
When only the first equipment receives probe messages in the embodiment of the present invention, the information that probe messages carry is carried out more Newly, it and forwards.For the second equipment in networking, which is the equipment for not supporting HSR agreement and PRP agreement, when connecing It when receiving probe messages, is only forwarded, the information that can not be carried to probe messages is updated.
It in another embodiment of the invention, can be with when the first equipment and the second equipment receive probe messages in networking The information carried to probe messages is updated, and continues to forward, which is set according in networking first Standby and the second equipment quantitative relation further judges whether networking is correct, notifies user in time.
Fig. 4 is seamless redundant network mode adaptive method flow diagram provided in an embodiment of the present invention.This method is applied to Networking model is adaptive, which includes multiple first equipment and/or the second equipment.Referring to fig. 4, this method comprises:
401, for any first equipment in multiple first equipment, which sends probe messages, the detection report Text carries the type identification of MAC Address and first equipment, and the type mark is for identifying whether equipment supports HSR and PRP to assist View;
402, when the first equipment of other in networking receives the probe messages, the type identification of current first equipment is added The probe messages are added to, and forward probe messages after update;It, will be current when the second equipment receives the probe messages in networking The type identification of second equipment is added to the probe messages, and forwards probe messages after update;
In embodiments of the present invention, first when the first equipment of other in networking or the second equipment receive the probe messages First judge whether current device preserves the MAC Address of probe messages carrying;When determining result is to be, the detection report is abandoned Text;Otherwise, the MAC Address for saving probe messages carrying updates the probe messages and carries information, and detects report after forwarding update Text.
403, when first equipment receives probe messages, the MAC Address judgement carried according to probe messages is currently connect Whether the probe messages of receipts are probe messages that first equipment is sent, and when determining result is to be, first equipment is according to connecing Receive the type identification handover network mode of probe messages carrying;Otherwise, it updates received probe messages and forwards.
In embodiments of the present invention, when the probe messages are the probe messages that first equipment is sent, first equipment According to the type identification quantity and type identification of the first equipment and the second equipment in the networking for receiving probe messages carrying, really The quantity for recognizing the first equipment and the second equipment in networking switches the network mode of first equipment;When the first equipment in networking When number is greater than 2 and does not include the second equipment, which is switched to HSR mode;When the number of the first equipment in networking When equal to 2, which is switched to PRP mode;If it is not above-mentioned two situations that probe messages, which carry information, such as Fig. 5, Think that networking mode is wrong, sends error message.
Method provided in an embodiment of the present invention, by by supporting any first equipment of HSR and PRP agreement to send detection report Text updates and forwards the probe messages, which can obtain group when other equipment receive the probe messages in networking Whether wrong the quantity of first equipment and the second equipment in net, judge networking, and the adaptive handover network when networking is correct Mode guarantees the reliability of networking model configuration.
When including that equipment is more in networking, probe messages are every to pass through an equipment, needs to add phase in probe messages Type identification is answered, since the message length that probe messages carry is limited, when the message length that probe messages carry reaches maximum value When, it can not be further continued for addition type identification, lead to loss of data, can not accurately obtain the first equipment and the second equipment in networking Quantity.It to solve the above-mentioned problems, optionally, can be first when the first equipment of other in networking receives the probe messages Judge whether that the probe messages carry the first device type mark number and are greater than 2 and include the second device type mark;Work as judgement As a result for when being, it is believed that networking mode is wrong, abandons the probe messages or sends error message;Otherwise, current first is set Standby type identification is added to the probe messages, and forwards probe messages after update.
It should be noted that being to add the mode of type identification to obtain in networking the first equipment and the in the embodiment of the present invention The quantity of two equipment, and then adaptive handover network mode.In fact, in another embodiment of the invention, it can also be in terms of Number mode obtains the quantity of the first equipment and the second equipment in networking.It that is to say, in multiple first equipment any first Equipment, first equipment send probe messages, which carries the MAC Address of first equipment, the first equipment in networking Quantity counts and the second number of devices counts.When other first equipment receive the probe messages in the networking, by the spy The quantity for observing and predicting the first equipment in text adds 1, and forwards probe messages after update;When the second equipment receives the detection in the networking When message, the quantity of the second equipment in the probe messages is added 1, and forwards probe messages after update.When first equipment receives When to probe messages, judge whether currently received probe messages are first equipment according to the MAC Address that probe messages carry The probe messages of transmission, when determining result is to be, the first equipment is according to receiving the first equipment and that probe messages carry The quantity of two equipment, and then switch the network mode of first equipment;If the number of the first equipment is greater than 2 and second in networking The quantity of equipment is 0, which is switched to HSR mode;If the number of the first equipment is equal to 2 in networking, by this One equipment is switched to PRP mode, and the embodiment of the present invention is not especially limited.
Fig. 6 is seamless redundant network mode adaptive apparatus structure schematic diagram provided in an embodiment of the present invention.The device is answered Adaptive for networking model, which includes multiple first equipment, which supports highly reliable seamless redundancy protocol HSR With PRP Parallel Redundancy Protocol, referring to Fig. 6, which includes: probe messages sending module 601, probe messages update module 602 With network mode switching module 603.Wherein:
The probe messages sending module 601 is used for for any first equipment in multiple first equipment, first equipment Probe messages are sent, which at least carries medium access control MAC Address;Probe messages sending module 601 and detection Message update module 602 connects, which is used for when other first equipment receive the detection in networking When message, updates the probe messages and carry information, and forward probe messages after update;Probe messages update module 602 and network Mode switch module 603 connects, and network mode switching module 603 is used for when first equipment receives probe messages, according to Probe messages carry MAC Address judge currently received probe messages whether be first equipment send probe messages, when Determine that result is when being, first equipment is according to the information handover network mode for receiving probe messages carrying;Otherwise, institute is updated It receives probe messages and forwards.
Optionally, which carries the first number of devices in the MAC Address and networking of first equipment and counts;The spy It observes and predicts literary update module 602 to be used for when other first equipment receive the probe messages in multiple first equipment, by the spy The quantity for observing and predicting the first equipment in text adds 1, and forwards probe messages after update;
Correspondingly, the network mode switching module 603 is for first equipment according to the group for receiving probe messages carrying The quantity of first equipment in net, switches the network mode of first equipment;It, will when the number of the first equipment in networking is greater than 2 First equipment is switched to HSR mode;When the number of the first equipment in networking is equal to 2, which is switched to PRP mould Formula.
Optionally, which carries the MAC Address of first equipment and the type identification of first equipment, the type Mark is for identifying whether equipment supports HSR and PRP agreement;The networking includes the first equipment and/or the second equipment, this second sets It is standby not support HSR agreement and PRP agreement;The probe messages update module 602 is used for when other first equipment receive in networking When the probe messages, the type identification of current first equipment is added to the probe messages, and forwards probe messages after update;When When the second equipment receives the probe messages in networking, the type identification of current second equipment is added to the probe messages, and Probe messages after forwarding updates;
Correspondingly, the network mode switching module 603 is for first equipment according to the group for receiving probe messages carrying The type identification quantity and type identification of first equipment and the second equipment in net confirm the first equipment and the second equipment in networking Quantity, switch the network mode of first equipment;When the number of the first equipment in networking is greater than 2 and does not include the second equipment When, which is switched to HSR mode;When the first equipment in networking number be equal to 2, which is switched to When PRP mode;If it is not above-mentioned two situations that probe messages, which carry information, it is believed that networking mode is wrong, sends error message.
Optionally, which is also used to when other first equipment receive the detection report in networking Wen Shi judges whether that the probe messages carry the first device type mark number greater than 2 and when including the second device type mark, When determining result is to be, it is believed that networking mode is wrong, abandons the probe messages or sends error message;It otherwise, will be current The type identification of first equipment is added to the probe messages, and forwards probe messages after update.
Optionally, which is also used to when other first equipment receive the detection report in networking Wen Shi, judges whether current first equipment preserves the MAC Address of probe messages carrying;When determining result is to be, abandon The message;Otherwise, the MAC Address for saving probe messages carrying updates the probe messages and carries information, and visits after forwarding update Observe and predict text.
Device provided in an embodiment of the present invention, by by supporting any first equipment of HSR and PRP agreement to send detection report Text updates and forwards the probe messages, which can obtain when other first equipment receive the probe messages in networking The quantity of the first equipment in networking, and then adaptive handover network mode are taken, guarantees the reliability of networking model configuration.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies Within, then the application is also intended to include these modifications and variations.

Claims (8)

1. a kind of seamless redundant network mode adaptive method, the method is adaptive applied to networking model, the networking packet Multiple first equipment are included, first equipment supports highly reliable seamless redundancy protocol HSR and Parallel Redundancy Protocol PRP, feature It is, which comprises
For any first equipment in the multiple first equipment, first equipment sends probe messages, the probe messages At least carry medium access control MAC Address;Wherein, first equipment is the whole network broadcast institute when sending the probe messages State probe messages;
When the first equipment of other in networking receives the probe messages, updates the probe messages and carry information, and forward Probe messages after update;
When first equipment receives probe messages, currently received spy is judged according to the MAC Address that probe messages carry Observe and predict whether text is probe messages that first equipment is sent, when determining result is to be, first equipment is according to reception The information handover network mode carried to probe messages;Otherwise, it updates received probe messages and forwards;
When the first equipment of other in networking receives the probe messages, updates the probe messages and carry information, and forward Probe messages include: after update
When the first equipment of other in networking receives the probe messages, judge whether current first equipment preserves the spy Observe and predict the MAC Address of text carrying;When determining result is to be, the message is abandoned;Otherwise, save what the probe messages carried MAC Address updates the probe messages and carries information, and forwards probe messages after update.
2. the method according to claim 1, wherein the probe messages are with carrying the MAC of first equipment The first number of devices counts in location and networking;
When the first equipment of other in networking receives the probe messages, updates the probe messages and carry information, and forward Probe messages include: after update
When the first equipment of other in networking receives the probe messages, the quantity of the first equipment in the probe messages is added 1, and forward probe messages after update;
Correspondingly, first equipment includes: according to the information handover network mode for receiving probe messages carrying
First equipment switches first equipment according to the quantity of the first equipment in the networking for receiving probe messages carrying Network mode;When the number of the first equipment in networking is greater than 2, first equipment is switched to HSR mode;When in networking When the number of first equipment is equal to 2, first equipment is switched to PRP mode.
3. the method according to claim 1, wherein the probe messages are with carrying the MAC of first equipment The type identification of location and first equipment, the type identification is for identifying whether equipment supports HSR and PRP agreement;It is described Networking includes the first equipment and/or the second equipment, and second equipment does not support HSR agreement and PRP agreement;
When the first equipment of other in networking receives the probe messages, updates the probe messages and carry information, and forward Probe messages include: after update
When the first equipment of other in networking receives the probe messages, the type identification of current first equipment is added to institute Probe messages are stated, and forward probe messages after update;When the second equipment receives the probe messages in networking, by current The type identification of two equipment is added to the probe messages, and forwards probe messages after update;
Correspondingly, first equipment includes: according to the information handover network mode for receiving probe messages carrying
First equipment is according to the type identification number for receiving the first equipment and the second equipment in the networking that probe messages carry Amount and type identification confirm the quantity of the first equipment and the second equipment in networking, switch the network mode of first equipment; When the number of the first equipment in networking is greater than 2 and does not include the second equipment, first equipment is switched to HSR mode;When When the number of the first equipment is equal to 2 in networking, first equipment is switched to PRP mode.
4. according to the method described in claim 3, it is characterized in that, working as other first equipment in networking receives the detection report Wen Shi updates the probe messages and carries information, and forwards the probe messages after update to include:
When the first equipment of other in networking receives the probe messages, judge whether that the probe messages carry the first equipment Type identification number is greater than 2 and includes the second device type mark;When determining result is to be, it is believed that networking mode is wrong, loses It abandons the probe messages or sends error message;Otherwise, the type identification of current first equipment the detection is added to report Text, and forward probe messages after update.
5. a kind of seamless redundant network mode adaptive device, described device is adaptive applied to networking model, the networking packet Include multiple first equipment, first equipment supports HSR and PRP agreement, which is characterized in that described device includes:
Probe messages sending module, for for any first equipment in the multiple first equipment, first equipment to be sent Probe messages, the probe messages at least carry MAC Address;Wherein, first equipment is when sending the probe messages The whole network broadcasts the probe messages;
Probe messages update module, for updating the spy when the first equipment of other in networking receives the probe messages It observes and predicts text and carries information, and forward probe messages after update;
Network mode switching module, the MAC for being carried according to probe messages when first equipment receives probe messages Address judges whether currently received probe messages are probe messages that first equipment is sent, when determining result is to be, First equipment is according to the information handover network mode for receiving probe messages carrying;Otherwise, received probe messages are updated And it forwards;
The probe messages update module is also used to when the first equipment of other in networking receives the probe messages, and judgement is worked as Whether preceding first equipment preserves the MAC Address that the probe messages carry;When determining result is to be, the message is abandoned; Otherwise, the MAC Address that the probe messages carry is saved, the probe messages is updated and carries information, and detected after forwarding update Message.
6. device according to claim 5, which is characterized in that the probe messages are with carrying the MAC of first equipment The first number of devices counts in location and networking;The probe messages update module is used for when other first equipment receive in networking When the probe messages, the quantity of the first equipment in the probe messages is added 1, and forwards probe messages after update;
Correspondingly, the network mode switching module is for first equipment according in the networking for receiving probe messages carrying The quantity of first equipment switches the network mode of first equipment;When the number of the first equipment in networking is greater than 2, by institute It states the first equipment and is switched to HSR mode;When the number of the first equipment in networking is equal to 2, first equipment is switched to PRP Mode.
7. device according to claim 5, which is characterized in that the probe messages are with carrying the MAC of first equipment The type identification of location and first equipment, the type identification is for identifying whether equipment supports HSR and PRP agreement;It is described Networking includes the first equipment and/or the second equipment, and second equipment does not support HSR agreement and PRP agreement;The probe messages Update module is used for when the first equipment of other in networking receives the probe messages, by the type identification of current first equipment The probe messages are added to, and forward probe messages after update;When the second equipment receives the probe messages in networking, The type identification of current second equipment is added to the probe messages, and forwards probe messages after update;
Correspondingly, the network mode switching module is for first equipment according in the networking for receiving probe messages carrying The type identification quantity and type identification of first equipment and the second equipment confirm the number of the first equipment and the second equipment in networking Amount switches the network mode of first equipment;When the number of the first equipment in networking is greater than 2 and does not include the second equipment, First equipment is switched to HSR mode;When the number of the first equipment in networking is equal to 2, first equipment is switched For PRP mode.
8. device according to claim 7, which is characterized in that the probe messages update module is also used to when its in networking When his the first equipment receives the probe messages, it is big to judge whether that the probe messages carry the first device type mark number In 2 and include the second device type mark;When determining result is to be, it is believed that networking mode is wrong, abandons the probe messages Or send error message;Otherwise, the type identification of current first equipment is added to the probe messages, and after forwarding update Probe messages.
CN201410850097.5A 2014-12-31 2014-12-31 A kind of seamless redundant network mode adaptive method and device Active CN105812160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410850097.5A CN105812160B (en) 2014-12-31 2014-12-31 A kind of seamless redundant network mode adaptive method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410850097.5A CN105812160B (en) 2014-12-31 2014-12-31 A kind of seamless redundant network mode adaptive method and device

Publications (2)

Publication Number Publication Date
CN105812160A CN105812160A (en) 2016-07-27
CN105812160B true CN105812160B (en) 2019-02-12

Family

ID=56420741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410850097.5A Active CN105812160B (en) 2014-12-31 2014-12-31 A kind of seamless redundant network mode adaptive method and device

Country Status (1)

Country Link
CN (1) CN105812160B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107528386A (en) * 2017-07-06 2017-12-29 中国南方电网有限责任公司 A kind of intelligent substation automatic network system
CN112332956B (en) * 2019-08-05 2024-03-26 华为技术有限公司 Information sharing method and device in redundant network and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771592A (en) * 2009-01-05 2010-07-07 迈普通信技术股份有限公司 Method for automatically configuring EAPS transmission nodes
CN101989943A (en) * 2009-07-31 2011-03-23 Abb研究有限公司 Data transmission in a ring-type communication network
CN104158687A (en) * 2014-08-21 2014-11-19 国电南瑞科技股份有限公司 Dual-network-redundancy device hardware architecture in transformer substation and implementation method
CN104184678A (en) * 2013-05-28 2014-12-03 上海博达数据通信有限公司 Method for dropping frame duplicates to achieve highly-reliable seamless redundancy ring network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2634973B1 (en) * 2012-02-29 2014-10-01 Siemens Aktiengesellschaft Communication device for a redundant industrial communication network and method for operating a communication device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771592A (en) * 2009-01-05 2010-07-07 迈普通信技术股份有限公司 Method for automatically configuring EAPS transmission nodes
CN101989943A (en) * 2009-07-31 2011-03-23 Abb研究有限公司 Data transmission in a ring-type communication network
CN104184678A (en) * 2013-05-28 2014-12-03 上海博达数据通信有限公司 Method for dropping frame duplicates to achieve highly-reliable seamless redundancy ring network
CN104158687A (en) * 2014-08-21 2014-11-19 国电南瑞科技股份有限公司 Dual-network-redundancy device hardware architecture in transformer substation and implementation method

Also Published As

Publication number Publication date
CN105812160A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
US10659345B2 (en) Service path protection method, controller, device and system
US20200014614A1 (en) SDN Controller, Data Center System, and Routing Connection Method
US20110126041A1 (en) Transport control server, network system and trasnport control method
CN104780095A (en) Path detection method and device in SDN
CN101841462B (en) Method, device and system for informing VRRP state information
CN104283738A (en) Link detecting method and device
CN102571492B (en) Method and device for detecting failure of routing equipment
US10122618B2 (en) Path switching method and device
EP2883334A1 (en) Techniques for flooding optimization for link state protocols in a network topology
KR20140072343A (en) Method for handling fault in softwate defined networking networks
CN113328916B (en) BFD detection mode switching method, device and equipment
CN108989204B (en) Link state determination method and device
CN106341249A (en) Redundant port switching method and device
CN105530115A (en) Method and device for realizing operation management and maintenance function
CN105812160B (en) A kind of seamless redundant network mode adaptive method and device
EP2858302A1 (en) Connectivity check method of service stream link, related apparatus and system
EP2874349B1 (en) Communication path processing method and apparatus
CN105471736A (en) Tunnel signal degradation notifying and switching methods and devices
CN109428815B (en) Method and device for processing message
US10164823B2 (en) Protection method and system for multi-domain network, and node
JP6190281B2 (en) Relay system and switch device
CN111327524B (en) Flow forwarding method and system, SDN controller and computer readable storage medium
CN104780138A (en) Transparent transmission method and device for STP (Spanning Tree Protocol)/RSTP (Rapid Spanning Tree Protocol) message in private redundancy protocol network
CN113489613A (en) Message forwarding method and device
CN107104837B (en) Method and control device for path detection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant