CN104702530B - The sending method and device of Goose messages in a kind of looped network - Google Patents

The sending method and device of Goose messages in a kind of looped network Download PDF

Info

Publication number
CN104702530B
CN104702530B CN201310654968.1A CN201310654968A CN104702530B CN 104702530 B CN104702530 B CN 104702530B CN 201310654968 A CN201310654968 A CN 201310654968A CN 104702530 B CN104702530 B CN 104702530B
Authority
CN
China
Prior art keywords
goose
messages
message
goose messages
sequence identification
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
CN201310654968.1A
Other languages
Chinese (zh)
Other versions
CN104702530A (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 CN201310654968.1A priority Critical patent/CN104702530B/en
Publication of CN104702530A publication Critical patent/CN104702530A/en
Application granted granted Critical
Publication of CN104702530B publication Critical patent/CN104702530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the sending method and device of Goose messages in a kind of looped network.When ordinary node equipment receives Goose messages by central port, identify the sequence identification information carried in the message, to judge whether the message is continuous, when judging that message consecutive hours forwards the Goose messages, otherwise judge whether itself once received the Goose messages, when it is determined that itself once received the message, forward the message, when it is determined that itself had not received the message, the Goose message requests of the next sequence identification information of request to create are simultaneously sent.Due in invention according to the sequence identification information carried in Goose messages, when it is determined that the Goose messages received are discontinuous, simply request the Goose messages itself not received, therefore the requirement of zero packet loss in the continuous change in topology of network can be met, while the utilization rate for the caching for preserving message by improving node solves the problems, such as Goose message droppings.

Description

The sending method and device of Goose messages in a kind of looped network
Technical field
The present invention relates to a kind of sending method of Goose messages in industrial Ethernet technology field, more particularly to looped network and Device.
Background technology
Towards the transformer substation case of general object(Goose)It is to meet electric substation automation system rapid message demand Mechanism, the Goose messages of transmission can monitor in order to operations staff, the situation of measurement and analysis network each side.
The looped network agreements such as current DRP can help the redundant link in user's automatic cutting network, prevent message in looped network In there is storm, while when also ensureing that network changes, redundant link can be replied according to actual conditions.But new network Topology needs certain time to stablize, and during this period of time DRP agreements can not ensure zero packet loss requirement of message in looped network, therefore In order to heighten the quality of zero packet loss, the solution in terms of proposing zero packet loss for propagation of the Goose messages in looped network.
In looped network, when there is the change in topology of discontinuity in network, network can ensure 720PPS zero packet loss quality. But when occurring continuous change in topology in network, network can only ensure 100PPS zero packet loss quality.Cause such case The main reason for be, when continuous change in topology occurs for network, occur in a network it is substantial amounts of retransmit message so that setting It is standby when carrying out Message processing, it is necessary to increase the workload of several times, therefore cause zero packet loss quality relatively low.And for the company of network How continuous change in topology, meet the requirement of zero packet loss, become current urgent problem to be solved.
In addition, when each node device preserves message and cached to prevent packet loss, due to each node device The spatial cache for preserving message is limited, and how using being a problem effectively using caching, in general technical scheme is to report Text is marked sequence number and sends or be received and saved in caching, and space is purged after spatial cache takes.This scheme Exactly after spatial cache will take, subsequent packet will again count and identification is marked the problem necessarily faced, And now if message request retransmits, the message being eliminated originally will be unable to complete to retransmit, and this causes message packet loss A kind of situation, and need what is solved.
The content of the invention
The embodiment of the present invention provides the sending method and device of Goose messages in a kind of looped network, to solve prior art When occurring continuous change in topology in looped network, the problem of how meeting zero packet loss requirement.
The embodiment of the present invention provides a kind of sending method of Goose messages in looped network, and methods described includes:
Ordinary node equipment in looped network receives Goose messages by the first central port, identifies and is carried in the Goose messages Sequence identification information;
According to the sequence identification information, and the sequence identification information of the Goose messages of last moment processing, judging should Whether Goose messages are continuous;
When it is determined that the Goose message consecutive hourss, the Goose messages are forwarded by the second central port, and by the Goose messages Sent from the non-central port of itself;
When it is determined that the Goose messages are discontinuous, judge whether the Goose messages are the message once received;
When it is determined that the Goose messages it is non-once received message when, according to last moment handle Goose messages order Identification information, create the Goose message requests for carrying next sequence identification information and send;
When it is determined that the Goose messages are the message once received, the Goose messages are forwarded by the second central port.
The embodiment of the present invention provides a kind of dispensing device of Goose messages in looped network, and described device includes:
Identification module, for receiving Goose messages by the first central port, identify the order carried in the Goose messages Identification information;
Judge module, for according to the sequence identification information, and the sequence identification of the Goose messages of last moment processing Information, judge whether the Goose messages are continuous;When it is determined that the Goose messages are discontinuous, judge the Goose messages whether be Once the message received;
Sending module, for when determining the Goose message consecutive hourss, the Goose messages to be forwarded by the second central port, and The Goose messages are sent from the non-central port of itself;When it is determined that the Goose messages it is non-once received message when, according to upper The sequence identification information of the Goose messages of one moment processing, create the Goose message requests of the next sequence identification information of carrying simultaneously Send;When it is determined that the Goose messages are the message once received, the Goose messages are forwarded by the second central port.
The embodiment of the present invention provides the sending method and device of Goose messages in a kind of looped network, and this method includes:Work as ring When ordinary node equipment in net receives Goose messages by central port, the sequence identification information carried in the message is identified, To judge whether the message is continuous, when judging message consecutive hours, the Goose messages are forwarded, otherwise, judge whether itself once received The Goose messages, when it is determined that itself once received the message, the message is directly forwarded, when it is determined that itself did not received this During message, the Goose message requests of the next sequence identification information of request to create are simultaneously sent.Due to the basis in inventive embodiments The sequence identification information carried in Goose messages, judge whether the Goose messages of reception are continuous, it is determined that when discontinuous, only please The Goose messages itself not received are sought, therefore can effectively reduce the quantity forwarded of message, also meet to go out in looped network Now during continuous change in topology zero packet loss requirement, while the utilization rate for the caching for preserving message by improving node solves Goose message dropping problems.
Brief description of the drawings
Fig. 1 is the transmission process schematic diagram of Goose messages in a kind of looped network provided in an embodiment of the present invention.
Fig. 2 is a kind of transmission process schematic diagram in detail of Goose messages in the looped network provided in an embodiment of the present invention.
Fig. 3 is another implementation process schematic diagram in detail of Goose messages in looped network provided in an embodiment of the present invention.
The annexation structure chart of each node device in Fig. 4 looped networks provided in an embodiment of the present invention.
Fig. 5 is the structural representation of the dispensing device of Goose messages in a kind of looped network provided in an embodiment of the present invention.
Embodiment
The present invention is in order to which when continuous change in topology occurs in looped network, effective reduction retransmits the quantity of message, meets that zero loses The requirement of bag, there is provided the sending method and device of Goose messages in a kind of looped network.
With reference to Figure of description, the embodiment of the present invention is described in detail.
Fig. 1 is the transmission process schematic diagram of Goose messages in a kind of looped network provided in an embodiment of the present invention, and the process includes Following steps:
S101:Ordinary node equipment in looped network receives Goose messages by the first central port, identifies the Goose messages The sequence identification information of middle carrying.
Specifically in embodiments of the present invention, the node device in looped network is divided into ordinary node equipment and intervention(GAP)Section Point device.Ordinary node equipment receives Goose messages by central port, and GAP node devices receive Goose by non-central port and reported Text.And after GAP node devices receive Goose messages, judge what itself was received for the ease of ordinary node equipment Whether Goose messages are continuous, GAP node devices order of addition identification information in Goose messages.
In embodiments of the present invention in order to meet the requirement of zero packet loss, after ordinary node equipment receives Goose messages, Identify the sequence identification information carried in the Goose messages.
S102:According to the sequence identification information, and the sequence identification letter of the Goose messages of the last moment processing preserved Breath, judges whether the Goose messages are continuous, when judging consecutive hours, performs step S103, otherwise, performs step S104.
Whether ordinary node equipment is continuous for the ease of judging the Goose messages that receive, when receiving and handle a company After continuous Goose messages, identify the sequence identification information in the Goose messages and preserve.When receiving Goose messages again, The sequence identification information carried in the Goose messages received according to this, and the Goose messages of preservation last moment processing are suitable Sequence identification information, it can be determined that whether the Goose messages of the reception are continuous with the Goose messages of last moment processing.
S103:The Goose messages are forwarded by the second central port, and the Goose messages are sent out from the non-central port of itself Go out.
The Goose messages of the reception and the Goose message consecutive hourss of last moment processing are determined when ordinary node equipment, it is right The Goose messages of the reception are handled, and using the sequence identification information carried in the Goose messages, itself is preserved The sequence identification information of the Goose messages of last moment processing is updated.
Ordinary node equipment carries out processing to the Goose messages to be included:The Goose messages are sent out by other central ports Send, and sent the Goose messages by the non-central port of itself.Wherein in the non-central port of each ordinary node equipment Analyzer can be connected with, so as to the problem according to present in the Goose message analysis networks.In addition, in ordinary node equipment , and when port sends the Goose messages, gone wrong by non-when identifying message in order to avoid analyzer, first by the Goose After sequence identification information in message removes, retransmit.
S104:Judge whether the Goose messages are the message once received, when judging the message for the message that once received When, step S105 is carried out, otherwise, carries out step S106.
When it is determined that the Goose messages of the Goose messages and the last moment processing received are discontinuous, in order to reduce The number of retransmissions of Goose messages, also to judge the Goose messages whether the message itself once received.
S105:The Goose messages are forwarded by the second central port.
S106:The sequence identification information of the Goose messages handled according to the last moment of preservation, create and carry next order The Goose message requests of identification information are simultaneously sent.
If the Goose messages received are the message itself once received, illustrate that the Goose messages save for other The message of point device request, itself without handling directly forwarding, if receive this Goose messages are non-self once connect The message received, illustrate the problem of Goose message droppings now occur, in order to meet the requirement of zero packet loss, create under carrying The Goose message requests of one sequence identification information are simultaneously sent.The request stage of Goose messages in embodiments of the present invention, no The forward process of Goose messages is carried out, now, by the Goose packet loss.
Due to, according to the sequence identification information carried in Goose messages, judging the Goose reports received in inventive embodiments Whether text is continuous, it is determined that when discontinuous, simply requests the Goose messages itself not received, therefore can effectively reduce The quantity forwarded of message, also meet the requirement of zero packet loss when continuous change in topology occurs in looped network.
In embodiments of the present invention in order to effectively meet the requirement of zero packet loss in the continuous change in topology of looped network, ensure Each node device is handled Goose messages according to being originally generated of Goose messages, transmission order in looped network.And it is Guarantee each node device according to being originally generated of Goose messages, send sequential processes, in embodiments of the present invention according to Being originally generated of Goose messages, transmission order are ranked up to the Goose messages, and sequence identification is carried in the Goose messages Information.
Specifically, the node device being connected with Goose messages transmission equipment, the Goose messages are connected by non-central port Send equipment, in order to determine being originally generated of the Goose messages, transmission order, with the Goose messages send equipment pass through it is acyclic The node device of port connection is as intervention(GAP)Node device.When node device determines to receive self by non-central port During Goose messages, determine itself to be GAP node devices.When node device determines to receive Goose messages self by central port When, then the node device determines itself to be ordinary node equipment.
GAP node devices have the most accurate information on propagating message needed for network, therefore GAP node devices can To grasp and issue the sequence identification information of current Goose messages.GAP node devices are suitable according to the Goose messages received Sequence(That is being originally generated of Goose messages, transmission order), the order of addition identification information in Goose messages, so as in looped network Whether the Goose messages that the determination of ordinary node equipment receives are continuous.
Specifically, in Goose messages during order of addition identification information, a reserved bit in Goose messages be present, should Reserved bit is always zero in the case where being not used., in embodiments of the present invention can be by the sequence identification using the feature Information is added in the reserved bit.GAP node devices often receive a Goose message by non-central port and are increased by a counting Value, is added to the count value as sequence identification information in Goose messages.
GAP node devices by non-central port after Goose messages are received, the order of addition mark in the Goose messages After knowing information, the message is sent by central port, and the Goose messages are being locally stored, to go out in follow-up looped network During existing packet loss, other node devices that the Goose messages after the packet loss can be re-supplied in looped network.
Other node devices are all to receive Goose messages by the central port of itself in looped network, therefore when the node is set It is standby to judge that the node device judges itself for ordinary node equipment when receiving Goose messages self by central port.This is commonly saved Point device has identification capability to the Goose messages itself received, according to incremental suitable of the sequence identification information in Goose messages Sequence, to distinguish whether the Goose messages received are continuous.Ordinary node equipment can recognize that what is carried in the Goose messages Sequence identification information, so as to judge whether itself currently received Goose message is a continuous message.
After each node device determines the role of itself in looped network, GAP node devices send Goose messages, when general When logical node device receives the Goose messages by central port, the sequence identification information carried in the Goose messages is identified, According to the sequence identification information, and the sequence identification information of the Goose messages of the last moment processing preserved, judge the Goose Whether message is continuous, that is, judges the sequence identification information and the sequence identification of identification of the Goose messages of last moment processing Whether information is continuous.When it is determined that the Goose message consecutive hourss, the Goose messages are forwarded by other central ports, and in order to this Goose messages are analyzed, and the Goose messages are sent from the non-central port of itself.
When it is determined that the Goose messages are discontinuous, in order to meet the requirement of zero packet loss, and reduce the re-transmission of message in looped network Number, the ordinary node equipment judge whether the Goose messages are the message once received, if once receiving the Goose Message, then the message that the Goose messages are the request of other node devices can be determined, in order to ensure that other node devices can connect The Goose messages are received, the ordinary node equipment forwards the Goose messages by central port;Once received if the message is non- Message, the ordinary node equipment abandons the message and the message not handled, and in order to ensure the requirement of zero packet loss, this is general The sequence identification information for the Goose messages that logical node device is handled according to the last moment of preservation, creates and carries next order mark Know the Goose message requests of information and send.
There are multiple ordinary node equipment in looped network, when network topology changes, or even often most of all is general Logical node device can all run into the situation of packet loss, now if each ordinary node equipment all sends Goose when there is packet loss Message request, then will now there are the Goose message requests largely repeated in looped network.And GAP node devices in response to, The Goose messages of repetition will be constantly sent, this method is very big to the pressure of looped network, has a strong impact on the data transfer effect of looped network Rate.
In order to effectively avoid substantial amounts of duplicate message in looped network, in embodiments of the present invention, when ordinary node equipment is sentenced When the currently received Goose messages that break are discontinuous, it is necessary first to judge whether the Goose messages itself once received, only It is out-of-date not received once at itself, and the Goose message requests for carrying next sequence identification information are just sent to GAP node devices.
In addition, in order to further reduce the quantity forwarded of duplicate message in looped network, the common section in embodiments of the present invention The Goose message requests that point device sends the next sequence identification information of the carrying include:
Judge itself whether to receive or the requested Goose message requests for carrying next sequence identification information;
When itself does not receive or be requested, create the Goose message requests of the next sequence identification information of the carrying and lead to Cross central port transmission.
In embodiments of the present invention when the ordinary node equipment receives Goose messages, and taken according in the Goose messages The sequence identification information of band, judge the discontinuous message of Goose messages, and do not received before out-of-date, also to judge itself Whether received or the Goose message requests of requested next sequence identification information, also do not had without receiving before itself When having the Goose message requests of requested next sequence identification information, the ordinary node equipment creates the next order of the carrying The Goose message requests of identification information are simultaneously sent by central port, reception or requested next sequence identification before itself During the Goose message requests of information, in order to reduce the quantity forwarded of duplicate message in looped network, the ordinary node equipment is now no longer Ask the Goose messages of the sequence identification information.
I.e. in order to further reduce the quantity forwarded of duplicate message in looped network, and the requirement of zero packet loss can also be met, when When ordinary node equipment determines that the Goose messages that receive are interrupted, and the Goose messages had not received out-of-date, and ordinary node is set The standby Goose messages for also needing to whether ask or received before judging itself carrying next sequence identification information please Ask, it is out-of-date when itself not asking or receiving, create the Goose message requests of the next sequence identification information of the carrying and by ring end Mouth is sent.This method can be such that the duplicate message in looped network is largely cut down, and net is reduced while the requirement of zero packet loss is ensured The disposal ability of network and each node device.
Further,
When one or more Goose messages for intervening node device transmission are dropped, other node devices are to perceive Arrive, although ordinary node equipment can be by by the sequence number of subsequently received Goose messages and the Goose messages that wherein preserve Sequence number be compared to judge whether packet loss, after the spatial cache of node will take, subsequent packet will be counted again Number is marked identification, and now if message request retransmits, and the message being eliminated originally will be unable to complete re-transmission, can be with Goose sequence identifications are sent using intervention node device timing and judge message to solve the problem.
Specifically, following steps:
A, when intervention node device does not receive Goose messages within 1/3rd periods of preset time, send Goose sequence identifications judge message to other nodes, other node devices(Ordinary node equipment or/and other access node Equipment)The Goose sequence identifications received according to it judge that the intervention node last time that message carries sends Goose messages Whether the sequence identification multilevel iudge for the Goose messages that sequence identification finally preserves to itself has related Goose message droppings, When Goose message sequences mark is discontinuous, other node devices send the corresponding Goose messages for losing sequence identification section please Ask;
B, the intervention node device does not receive new Goose reports within the period of residue 2/3rds of preset time When text and Goose message requests, the packet buffer for being stored in intervention node device is removed, intervention node device caching preserves Goose message sequences are identified again from zero count.
When the maximum of each equipment can be sent to for Goose messages received before ensureing by here presetting at the time Between, it is relevant with the disposal ability and network size of equipment.Such as 133M CPU, 5 equipment, the time probably at 3 seconds, the time Handled including CPU, caching, lookup, forwarding and re-transmission etc. on message.
Fig. 2 is a kind of transmission process schematic diagram in detail of Goose messages in the looped network provided in an embodiment of the present invention, the mistake Journey comprises the following steps:
S201:Ordinary node equipment in looped network receives Goose messages by the first central port, identifies the Goose messages The sequence identification information of middle carrying.
S202:According to the sequence identification information, and the sequence identification letter of the Goose messages of the last moment processing preserved Breath, judges whether the Goose messages are continuous, when judging consecutive hours, performs step S203, otherwise, performs step S204.
S203:The Goose messages are forwarded by the second central port, and the Goose messages are sent out from the non-central port of itself Go out.
S204:Judge whether the Goose messages are the message once received, when judging the message for the message that once received When, step S205 is carried out, otherwise, carries out step S206.
S205:The Goose messages are forwarded by the second central port.
S206:Judge itself whether to receive or the requested Goose message requests for carrying next sequence identification information, When judged result when being, to carry out step S207, otherwise, step S208 is carried out.
S207:By the Goose packet loss, the message is not handled.
S208:The Goose message requests of the next sequence identification information of the carrying are created, and are sent by central port.
By the above embodiment of the present invention, the duplicate message in looped network can be made largely to be cut down, ensure zero packet loss It is required that while reduce the disposal ability of network and each node device.
In addition, in order to further make the duplicate message in looped network largely be cut down, ensureing the same of zero packet loss requirement When reduce the disposal ability of network and each node device, in embodiments of the present invention, when ordinary node equipment receives Goose During message request, this method also includes:
Ordinary node equipment in the looped network receives the Goose messages of other node devices transmission by the first central port Request, wherein carrying the sequence identification information of the Goose messages of request in the Goose message requests;
Judge itself whether to ask or received the Goose message requests of the sequence identification information;
When judging that itself sends or received the Goose message requests of the sequence identification information, pass through the acyclic of itself Port sends the Goose message requests, otherwise, the Goose message requests is forwarded by central port.
In embodiments of the present invention in order to ensure the requirement of zero packet loss, while lowering what duplicate message in looped network was sent Quantity, it is necessary to judge how to enter to the Goose message requests after ordinary node equipment receives Goose message requests Row processing.After ordinary node equipment receives Goose message requests, due to carrying request in the Goose message requests The sequence identification information of Goose messages, therefore ordinary node equipment is according to the Goose message requests, it can be determined that before itself Whether the Goose message requests of the requested sequence identification information, when itself does not have requested, it is also necessary to whether judge itself The Goose message requests that other ordinary node equipment send the sequence identification information were received before, when also not receiving it During the Goose message requests for the sequence identification information that his ordinary node equipment is sent, the ordinary node equipment just passes through ring end Mouthful the Goose message requests are sent, if requesting itself or received the Goose messages of the sequence identification information please Ask, for the ordinary node equipment in order to reduce the quantity that duplicate message is sent in looped network, being sent by the non-central port of itself should Goose message requests.
Fig. 3 is another implementation process schematic diagram in detail of Goose messages in looped network provided in an embodiment of the present invention, the process Comprise the following steps:
S301:The Goose that ordinary node equipment in looped network receives the transmission of other node devices by the first central port is reported Text request, wherein carrying the sequence identification information of the Goose messages of request in the Goose message requests.
S302:The ordinary node equipment judges whether itself asks or received institute according to the sequence identification information The Goose message requests of sequence identification information are stated, when judged result when being, to carry out step S303, otherwise, carry out step S304。
S303:The Goose message requests are sent by the non-central port of itself.
S304:The Goose message requests are forwarded by central port.
The annexation structure chart of each node device in Fig. 4 looped networks provided in an embodiment of the present invention, in Fig. 4 including node Equipment 1,2,3,4, wherein node device 3 are GAP node devices, and remaining node device is ordinary node equipment, node device Central port is connected with each other, and the non-central port connection Goose messages of GAP node devices send equipment, node device 2 and node The non-central port linking parsing instrument of equipment 4, the non-central port connection Goose messages of node device 1 subscribe to equipment.
Node device 3 receives the Goose messages of Goose messages transmission equipment transmission by non-central port, and itself judging should Goose messages are received by non-central port, therefore itself will be defined as GAP node devices.The GAP node devices are according to connecing The transmission order of the Goose messages of receipts, sequentially generates each sequence identification information, the sequence identification information is added to each In the reserved bit of Goose messages, the Goose messages are sent by the central port of itself afterwards.In order to count conveniently, saved in GAP Point device determine the first Goose messages sequence identification information can be 1, afterwards according to Goose messages reception order, Determine the sequence identification information carried in each Goose messages respectively successively.
After node device 2 receives Goose messages by the first central port, itself judge that the Goose messages are to pass through ring What port received, therefore itself will be defined as ordinary node equipment.After the ordinary node equipment receives the Goose messages, know The sequence identification information not carried in the Goose messages.When it is 1 to identify the sequence identification information carried in the Goose messages, The sequence identification information of the Goose messages of the last moment processing itself preserved is 0, and it is first message to determine the Goose messages, And determine that the Goose messages and the Goose messages that last moment is handled are continuous.Node device 2 is sent by the second central port should Goose messages, the sequence identification information carried in the reserved bit of the Goose messages is removed afterwards, will remove sequence identification information Goose messages afterwards are sent to analyzer by the non-central port of itself and analyzed.And handle itself last moment The sequence identification information updating of Goose messages is 1.
Afterwards, node device 2 receives Goose messages by the first central port, identifies the sequence identification in the Goose messages Information.If the sequence identification information now identified is 1, node device is handled according to the last moment itself preserved The sequence identification information of Goose messages, judge that the Goose messages that currently received Goose messages are handled with last moment do not connect Continuous, afterwards, node device 2 is according to the sequence identification information carried in the Goose messages, and the last moment processing itself preserved Goose messages sequence identification information, the message for judging currently received Goose messages once to receive, therefore can be true The fixed Goose messages are the message of other node devices request, and node device 2 forwards the Goose messages by the second central port.
If the sequence identification information now identified is 2, node device is handled according to the last moment itself preserved The sequence identification information of Goose messages, judge that currently received Goose messages and the Goose messages that last moment is handled are continuous, Node device 2 sends the Goose messages by the second central port, remove afterwards carried in the Goose messages in reserved bit it is suitable Sequence identification information, the Goose messages after removal sequence identification information are sent to analyzer by the non-central port of itself and carried out Analysis.And the sequence identification information updating for the Goose messages for handling itself last moment is 2.
If the sequence identification information now identified is 3, node device is handled according to the last moment itself preserved The sequence identification information of Goose messages, judge that the Goose messages that currently received Goose messages are handled with last moment do not connect Continuous, afterwards, node device 2 is according to the sequence identification information carried in the Goose messages, and the last moment processing itself preserved Goose messages sequence identification information, judge currently received Goose messages for the non-message once received, therefore can be with Judge that the topological structure of now looped network changes, in order to meet the requirement of zero packet loss, also for reducing being retransmitted in looped network in addition Whether the quantity of message, the node device 2 judge itself to ask or received to carry sequence identification information as 2 Goose messages Request, when it is determined that requesting itself or receive it is out-of-date, the Goose packet loss is not handled the message, when it is determined that itself It is out-of-date not ask or receive, and creates the Goose message requests of the next sequence identification information of the carrying and by the second central port Send.
Fig. 5 is the structural representation of the dispensing device of Goose messages in a kind of looped network provided in an embodiment of the present invention, described Device includes:
Identification module 51, for by the first central port receive Goose messages, identify carried in the Goose messages it is suitable Sequence identification information;
Judge module 52, for according to the sequence identification information, and the Goose messages of the last moment processing preserved Sequence identification information, judge whether the Goose messages are continuous;When it is determined that the Goose messages are discontinuous, judge that the Goose is reported Whether text is the message once received;
Sending module 53, for when determining the Goose message consecutive hourss, the Goose messages to be forwarded by the second central port, And the Goose messages are sent from the non-central port of itself;When it is determined that the Goose messages it is non-once received message when, according to The sequence identification information of the Goose messages of the last moment processing of preservation, create the Goose reports for carrying next sequence identification information Literary request Concurrency is sent;When it is determined that the Goose messages are the message once received, the Goose is forwarded to report by the second central port Text.
The identification module 51, it is additionally operable to judge whether the Goose messages are to receive by the central port of itself;When it is determined that When the Goose messages are received by the central port of itself, determine itself to be the ordinary node equipment in looped network, otherwise, it determines from As the intervention node device in looped network.
The sending module 53, it is additionally operable to when intervention node device is not received within 1/3rd periods of preset time During to Goose messages, send Goose sequence identifications and judge message to other nodes, what other node devices received according to it Goose sequence identifications judge that the sequence identification for the intervention node last time transmission Goose messages that message carries is last with itself Whether the sequence identification multilevel iudge of the Goose messages of preservation has related Goose message droppings, and Goose message sequences identify not Consecutive hours, other node devices send the corresponding Goose message requests for losing sequence identification section;The intervention node device When new Goose messages and Goose message requests are not received within the period of residue 2/3rds of preset time, remove and protect In the presence of the packet buffer of intervention node device, the Goose message sequences that intervention node device caching preserves are identified again from zero Count.
The sending module 53, it is additionally operable to when it is determined that itself is the intervention node device in looped network, be received according to itself The order of the Goose messages arrived, the order of addition identification information in Goose messages, so that the ordinary node equipment in looped network is true Whether the Goose messages received surely are continuous.
Described device also includes:
Receiving module 54, for receiving the Goose message requests of other node devices transmission by the first central port, wherein The sequence identification information of the Goose messages of request is carried in the Goose message requests;
The judge module 52, it is additionally operable to judge the Goose for itself whether sending or receiving the sequence identification information Message request;
The sending module 53, it is additionally operable to work as the Goose messages for judging itself transmission or receiving the sequence identification information During request, the Goose message requests are sent by the non-central port of itself, otherwise, forward the Goose to report by central port Text request.
The sending module 53, specifically for judging itself whether to receive or requested next sequence identification information Goose message requests;When itself does not receive or be requested, the Goose messages for creating the next sequence identification information of the carrying please Ask and sent by central port.
The embodiment of the present invention provides the sending method and device of Goose messages in a kind of looped network, and this method includes:Work as ring When ordinary node equipment in net receives Goose messages by central port, the sequence identification information carried in the message is identified, To judge whether the message is continuous, when judging message consecutive hours, the Goose messages are forwarded, otherwise, judge whether itself once received The Goose messages, when it is determined that itself once received the message, the message is directly forwarded, when it is determined that itself did not received this During message, the Goose message requests of the next sequence identification information of request to create are simultaneously sent.Due to the basis in inventive embodiments The sequence identification information carried in Goose messages, judge whether the Goose messages of reception are continuous, it is determined that when discontinuous, only please The Goose messages itself not received are sought, therefore can effectively reduce the quantity forwarded of message, so as to meet in network The requirement of zero packet loss during continuous change in topology.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation The form of product.
The application is with reference to method, the equipment according to the embodiment of the present application(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the application scope.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the application to the application God and scope.So, if these modifications and variations of the application belong to the scope of the application claim and its equivalent technologies Within, then the application is also intended to comprising including these changes and modification.

Claims (8)

1. the sending method of Goose messages in a kind of looped network, it is characterised in that the topological relation that methods described is used for looped network is continuous When changing, methods described includes:
Ordinary node equipment in looped network receives Goose messages by the first central port, identify carried in the Goose messages it is suitable Sequence identification information;
According to the sequence identification information, and the sequence identification information of the Goose messages of the last moment processing preserved, judging should Whether Goose messages are continuous;
When it is determined that the Goose message consecutive hourss, the Goose messages are forwarded by the second central port, and by the Goose messages from from The non-central port of body is sent;
When it is determined that the Goose messages are discontinuous, judge whether the Goose messages are the message once received;
When it is determined that the Goose messages it is non-once received message when, according to the last moment of preservation handle Goose messages it is suitable Sequence identification information, create the Goose message requests for carrying next sequence identification information and send;When it is determined that the Goose messages are During the message once received, the Goose messages are forwarded by the second central port;
The establishment, which carries the Goose message requests of next sequence identification information and sent, to be included:
Judge itself whether to receive or the requested Goose message requests for carrying next sequence identification information;When itself not When receiving or be requested, create the Goose message requests of the next sequence identification information of the carrying and sent by central port;When certainly When body receives or be requested, the Goose packet loss is not handled the message.
2. the method as described in claim 1, it is characterised in that methods described also includes:
Node device in looped network judges whether the Goose messages are to be received by the central port of itself;
When it is determined that the Goose messages are received by the central port of itself, determine itself to be the ordinary node equipment in looped network, it is no Then, determine itself to be the intervention node device in looped network;
When intervention node device does not receive Goose messages within 1/3rd periods of preset time, it is suitable to send Goose Sequence mark judges message to other nodes, and the Goose sequence identifications that other node devices receive according to it judge that message carries The intervention node last time sequence identification of Goose messages that sends the sequence identification of Goose messages and itself finally preserve Whether multilevel iudge has related Goose message droppings, when Goose message sequences mark is discontinuous, other node device hairs Send the corresponding Goose message requests for losing sequence identification section;
It is described intervention node device do not received within the period of residue 2/3rds of preset time new Goose messages with During Goose message requests, the packet buffer for being stored in intervention node device is removed, intervention node device caching preserves Goose message sequences are identified again from zero count.
3. method as claimed in claim 2, it is characterised in that methods described also includes:
The order for the Goose messages that intervention node device in the looped network receives according to itself, is added in Goose messages Sequence identification information, so that the ordinary node equipment in looped network determines whether the Goose messages that receive are continuous.
4. method as claimed in claim 2, it is characterised in that methods described also includes:
The Goose messages that ordinary node equipment in the looped network receives the transmission of other node devices by the first central port please Ask, wherein carrying the sequence identification information of the Goose messages of request in the Goose message requests;
Judge itself whether to ask or received the Goose message requests of the sequence identification information;
When judging requesting itself or receiving the Goose message requests of the sequence identification information, pass through the non-central port of itself The Goose message requests are sent, otherwise, the Goose message requests are forwarded by central port.
5. the dispensing device of Goose messages in a kind of looped network, it is characterised in that described device includes:
Identification module, for receiving Goose messages by the first central port, identify the sequence identification carried in the Goose messages Information;
Judge module, for according to the sequence identification information, and the order mark of the Goose messages of the last moment processing preserved Know information, judge whether the Goose messages are continuous;When it is determined that the Goose messages are discontinuous, whether the Goose messages are judged For the message once received;
Sending module, for when determining the Goose message consecutive hourss, the Goose messages to be forwarded by the second central port, and should Goose messages are sent from the non-central port of itself;When it is determined that the Goose messages it is non-once received message when, according to preservation The sequence identification information of the Goose messages of last moment processing, creates the Goose message requests for carrying next sequence identification information And send;When it is determined that the Goose messages are the message once received, the Goose messages are forwarded by the second central port;
The sending module, specifically for judging itself whether to receive or requested carrying next sequence identification information Goose message requests;When itself does not receive or be requested, the Goose messages for creating the next sequence identification information of the carrying please Ask and sent by central port;When itself receives or be requested, the Goose packet loss is not handled the message.
6. device as claimed in claim 5, it is characterised in that the identification module, be additionally operable to whether judge the Goose messages To be received by the central port of itself;When it is determined that the Goose messages are received by the central port of itself, determine itself to be looped network In ordinary node equipment, otherwise, it determines itself be looped network in intervention node device;
The sending module, it is additionally operable to when intervention node device does not receive within 1/3rd periods of preset time During Goose messages, send Goose sequence identifications and judge message to other nodes, what other node devices received according to it Goose sequence identifications judge that the sequence identification for the intervention node last time transmission Goose messages that message carries is last with itself Whether the sequence identification multilevel iudge of the Goose messages of preservation has related Goose message droppings, and Goose message sequences identify not Consecutive hours, other node devices send the corresponding Goose message requests for losing sequence identification section;The intervention node device When new Goose messages and Goose message requests are not received within the period of residue 2/3rds of preset time, remove and protect In the presence of the packet buffer of intervention node device, the Goose message sequences that intervention node device caching preserves are identified again from zero Count.
7. device as claimed in claim 6, it is characterised in that the sending module, be additionally operable to when determination itself is in looped network Intervention node device when, the order of the Goose messages received according to itself, in Goose messages order of addition mark letter Breath, so that the ordinary node equipment in looped network determines whether the Goose messages that receive are continuous.
8. device as claimed in claim 6, it is characterised in that described device also includes:
Receiving module, for receiving the Goose message requests of other node devices transmission by the first central port, wherein described The sequence identification information of the Goose messages of request is carried in Goose message requests;
The judge module, the Goose messages for being additionally operable to judge itself whether to ask or received the sequence identification information please Ask;
The sending module, it is additionally operable to when judging requesting itself or receiving the Goose message requests of the sequence identification information, The Goose message requests are sent by the non-central port of itself, otherwise, the Goose message requests are forwarded by central port.
CN201310654968.1A 2013-12-06 2013-12-06 The sending method and device of Goose messages in a kind of looped network Active CN104702530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310654968.1A CN104702530B (en) 2013-12-06 2013-12-06 The sending method and device of Goose messages in a kind of looped network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310654968.1A CN104702530B (en) 2013-12-06 2013-12-06 The sending method and device of Goose messages in a kind of looped network

Publications (2)

Publication Number Publication Date
CN104702530A CN104702530A (en) 2015-06-10
CN104702530B true CN104702530B (en) 2018-02-13

Family

ID=53349308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310654968.1A Active CN104702530B (en) 2013-12-06 2013-12-06 The sending method and device of Goose messages in a kind of looped network

Country Status (1)

Country Link
CN (1) CN104702530B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106451376B (en) * 2016-09-30 2018-12-04 西电通用电气自动化有限公司 A kind of method and device of GOOSE message publication
CN107257301B (en) * 2017-08-10 2020-09-22 北京东土科技股份有限公司 Method and device for detecting repeated messages in parallel redundant network
CN111740939B (en) * 2019-08-07 2022-11-08 北京京东尚科信息技术有限公司 Message transmission device, message transmission equipment, message transmission method and storage medium
CN111030910A (en) * 2019-12-20 2020-04-17 国网上海市电力公司 Method and system for monitoring communication state of ring network node, measurement and control device and local module
CN113704789A (en) * 2021-08-31 2021-11-26 中汽创智科技有限公司 Vehicle-mounted communication safety processing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068170A (en) * 2007-06-05 2007-11-07 华为技术有限公司 Message abnormal receiving detecting method, system and device thereof
CN101184050A (en) * 2007-12-24 2008-05-21 杭州华三通信技术有限公司 Distributed node multicast method, distributed node multicast component and distributed system
CN101459615A (en) * 2008-12-25 2009-06-17 华为技术有限公司 Method, terminal port and system for packet transmission
CN101616080A (en) * 2009-07-17 2009-12-30 北京星网锐捷网络技术有限公司 A kind of packet order preserving method of resilient packet ring, device and the network equipment
CN101883047A (en) * 2010-06-25 2010-11-10 黄宏程 Data concurrency transmission method of multi-network interface device
CN103297358A (en) * 2012-02-27 2013-09-11 北京东土科技股份有限公司 System and method for smart power grid to transmit GOOSE messages across wide area network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100534625B1 (en) * 2003-02-18 2005-12-07 삼성전자주식회사 method and apparatus for reliable routing information exchange in distributed router

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068170A (en) * 2007-06-05 2007-11-07 华为技术有限公司 Message abnormal receiving detecting method, system and device thereof
CN101184050A (en) * 2007-12-24 2008-05-21 杭州华三通信技术有限公司 Distributed node multicast method, distributed node multicast component and distributed system
CN101459615A (en) * 2008-12-25 2009-06-17 华为技术有限公司 Method, terminal port and system for packet transmission
CN101616080A (en) * 2009-07-17 2009-12-30 北京星网锐捷网络技术有限公司 A kind of packet order preserving method of resilient packet ring, device and the network equipment
CN101883047A (en) * 2010-06-25 2010-11-10 黄宏程 Data concurrency transmission method of multi-network interface device
CN103297358A (en) * 2012-02-27 2013-09-11 北京东土科技股份有限公司 System and method for smart power grid to transmit GOOSE messages across wide area network

Also Published As

Publication number Publication date
CN104702530A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN104702530B (en) The sending method and device of Goose messages in a kind of looped network
EP3758412B1 (en) Multichannel data transmission method, apparatus, system and computer-readable medium
US10798199B2 (en) Network traffic accelerator
US8806007B2 (en) Inter-node communication scheme for node status sharing
CN113994642A (en) On-line performance monitoring
CN107147481A (en) Packet loss repeating method, device and electronic equipment
EP2978171B1 (en) Communication method, communication device, and communication program
JP5208945B2 (en) Method and apparatus for transmitting and analyzing data in a wireless communication network
US8081644B2 (en) Method and device for controlling a queue buffer
CN103763073B (en) A kind of method and terminal that packet loss retransmits
CN102611620A (en) Congestion control method and message processing device
RU2014137331A (en) METHOD FOR CONTROLLING A TABLE OF INTERMEDIARIES IN A WIRELESS NETWORK USING AN INTERMEDIATE DEVICE
CN104283808B (en) Jamming control method, equipment and system
EP3567813A1 (en) Method, apparatus and system for determining content acquisition path and processing request
US20230042747A1 (en) Message Processing Method and Device, Storage Medium, and Electronic Device
CN111953568B (en) Method and device for managing packet loss information
CN115037700B (en) Complex network data packet transmission method, system, terminal and storage medium
EP2775675A1 (en) Synchronization method among network devices, network device and system
CN103152278A (en) Congestion determination method, congestion determination device and congestion determination network equipment
CN112737940A (en) Data transmission method and device
CN107547301A (en) A kind of master/slave device switching method and device
EP2874349A1 (en) Communication path processing method and apparatus
CN106230658B (en) A kind of method and apparatus monitoring the network equipment
CN101232508A (en) Equipment and method for speeding up poly spanning tree protocol network topological convergence
US20060050641A1 (en) Method, system, and product for alleviating router congestion

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