CN106452695A - Redundant message processing method, apparatus and system - Google Patents

Redundant message processing method, apparatus and system Download PDF

Info

Publication number
CN106452695A
CN106452695A CN201610890858.9A CN201610890858A CN106452695A CN 106452695 A CN106452695 A CN 106452695A CN 201610890858 A CN201610890858 A CN 201610890858A CN 106452695 A CN106452695 A CN 106452695A
Authority
CN
China
Prior art keywords
message
serial number
parameter
receiving
updated
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.)
Pending
Application number
CN201610890858.9A
Other languages
Chinese (zh)
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 CN201610890858.9A priority Critical patent/CN106452695A/en
Publication of CN106452695A publication Critical patent/CN106452695A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Abstract

The invention provides a redundant message processing method, apparatus and system for determining whether received messages are repeated messages according to a one-to-one correspondence relation between sequence numbers in messages and the messages, thereby simplifying the process of determining whether the messages are repeated messages, shortening the product development period, reducing the number of occupied logic resources and reducing the power consumption; and no table needs to be established for each message, then no external processing chip needs to be used, so that the hardware design cost is reduced. The method comprises the following steps: receiving a message, and comparing whether the sequence number of the received message is greater than a sequence number parameter, wherein the sequence number parameter is used for identifying the maximum value of the sequence number of the forwarded message; if so, forwarding the message according to a destination address of the message, and updating the sequence number parameter as the sequence number of the message; and if not, deleting the message.

Description

Redundant message processing method, apparatus and system
Technical field
The present invention relates to communication technical field, more particularly, to redundant message processing method, apparatus and system.
Background technology
With the progress of industrial technology, in order to lift the reliability of Ethernet further, IEC62439-3 agreement defines Sending side, each message needing to send is being replicated, obtains two identical messages;This two messages are led to Cross different ports to send to receiving terminal;Receiving side, the message that receiving end/sending end sends, sentenced by default judgment rule This message that disconnecting receives is the message of original message or repetition.Wherein, original message is exactly that receiving terminal receives for the first time The message arriving, the message of repetition is exactly to have received and this message content identical message.If the message receiving is original Message, then according in this message Target IP (Internet Protocol, between network interconnection agreement) address, forward The message receiving;If the message receiving is the message repeating, abandon the message receiving, it is to avoid in transmitting procedure because Network reason leads to the problem of message dropping, improves the reliability of network.
Prior art is passed through using TCAM (Ternary Content Addressable Memory, three-state content addressing Memorizer) tabled look-up with reference to RAM (Random Access Memory, random access memory), so that it is determined that receive Whether message is the message repeating.Concrete operations flow process is:Receiving terminal receives the message of transmitting terminal transmission, just according in message Keyword, determine for differentiating that whether this message is the message repeating, if record should not by searching in the form storing Keyword is it is determined that this message is not the message repeating, and sets up the form storing this keyword;Due to for each message all Experience the process tabled look-up, or even also can experience and build table, the process of the table for the treatment of of aged, and this process will expend several clocks In the cycle, lead to the process of message to postpone larger, and system design complexity is high, the construction cycle of product also can prolong accordingly Long, the logical resource quantity of occupancy is also just many, and power consumption is also big accordingly.If using outside TCAM chip, design cost is also Corresponding rising.
In sum, prior art is by being tabled look-up with reference to RAM using TCAM, so that it is determined that whether the message receiving For the message repeating, and this process will expend several clock cycle, lead to the process delay of message larger, and system design Complexity is high, and the construction cycle of product also can extend accordingly, and the logical resource quantity of occupancy is also just many, and power consumption is accordingly Greatly, and also result in the rising of design cost using outside TCAM chip.
Content of the invention
Embodiments provide redundant message processing method, apparatus and system, determine whether for repeating in order to simplify Message flow process, lifting Message processing efficiency, also shorten product development cycle, reduce logical resource take quantity, fall Low-power consumption;Table need not all being built for each message, being also no need for using outside TCAM chip, thus reducing being designed to of hardware This.
A kind of processing method of redundant message based on IEC62439-3 agreement provided in an embodiment of the present invention, including:
Receive message, and compare whether the serial number of the message receiving is more than serial number parameter, wherein, described serial number Parameter is the maximum of the serial number for identifying forwarded over message;
If so, the then destination address according to described message, forwards described message, and described serial number parameter is updated to institute State the serial number of message;Otherwise, delete described message.
In the embodiment of the present invention, because the serial number in each message is all unique, therefore the present invention passes through to preserve and turns The maximum of the serial number of the message sent out, and compare the serial number of the message receiving and the size of maximum, so that it is determined that Whether the message receiving is the message repeating, and also just simplifies the flow process determining the message repeating, improves Message processing Efficiency, shortens product development cycle, decreases the quantity of logical resource occupancy, reduces power consumption;Each due to being directed to Message all builds table, is also no need for using outside TCAM chip, thus reducing the design cost of hardware.
It is preferred that after receiving message, the method also includes:
Whether detection sequence parameter is default value, if so, then described serial number parameter is updated to the message that receives Serial number, and the message receiving described in forwarding, otherwise, whether the serial number comparing the message receiving more than serial number ginseng Number.
It is preferred that whether the serial number comparing the message receiving is more than serial number parameter, including:
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive;
Whether the cached parameters after relatively updating are more than serial number parameter.
It is preferred that after whether detection sequence parameter is default value, the method also includes:
The serial number of the message receiving described in acquisition;
Described serial number parameter is updated to the serial number of message receiving, including:
The serial number getting is assigned to described serial number parameter;
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive, bag Include:
The serial number getting is assigned to cached parameters, wherein, described cached parameters are for storing the report receiving The serial number of literary composition.
It is preferred that reception message, whether detection sequence parameter is default value, if it is determined that the described report receiving Literary composition is initial message, and obtains the serial number of the initial message receiving, and described serial number parameter and cached parameters are all updated For the serial number of described initial message, and forward described initial message;Otherwise, it determines the message receiving is the second message, and Obtain the serial number of the second message receiving, cached parameters are updated to the serial number of described second message, after comparing renewal Cached parameters and described serial number parameter size;
If the cached parameters after updating are more than described serial number parameter, according to the destination address of described second message, turn Send out the second message described, and described serial number parameter is updated to the serial number of described message;If the cached parameters after updating are little In or be equal to described serial number parameter, delete described second message.
A kind of processing meanss of redundant message based on IEC62439-3 agreement provided in an embodiment of the present invention, including:
Comparison module, for receiving message, and compares whether the serial number of the message receiving is more than serial number parameter, its In, described serial number parameter is the maximum of the serial number for identifying forwarded over message;
Processing module, for the if so, then destination address according to described message, forwards described message, and by described sequence Number parameter is updated to the serial number of described message;Otherwise, delete described message.
In the embodiment of the present invention, because the serial number in each message is all unique, therefore the present invention passes through to preserve and turns The maximum of the serial number of the message sent out, and compare the serial number of the message receiving and the size of maximum, so that it is determined that Whether the message receiving is the message repeating, and also just simplifies the flow process determining the message repeating, improves Message processing Efficiency, shortens product development cycle, decreases the quantity of logical resource occupancy, reduces power consumption;Each due to being directed to Message all builds table, is also no need for using outside TCAM chip, thus reducing the design cost of hardware.
It is preferred that after receiving message, described comparison module is additionally operable to:
Whether detection sequence parameter is default value, if so, then described serial number parameter is updated to the message that receives Serial number, and the message receiving described in forwarding, otherwise, whether the serial number comparing the message receiving more than serial number ginseng Number.
It is preferred that whether the serial number comparing the message receiving is more than serial number parameter, described comparison module is specifically used In:
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive;
Whether the cached parameters after relatively updating are more than serial number parameter.
It is preferred that after whether detection sequence parameter is default value, described comparison module is additionally operable to:
The serial number of the message receiving described in acquisition;
Described serial number parameter is updated to the serial number of message receiving, described comparison module specifically for:
The serial number getting is assigned to described serial number parameter;
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive, institute State comparison module specifically for:
The serial number getting is assigned to cached parameters, wherein, described cached parameters are for storing the report receiving The serial number of literary composition.
It is preferred that described comparison module receives message, whether detection sequence parameter is default value, if it is determined that institute Stating the message receiving is initial message, and obtains the serial number of the initial message receiving, and described serial number parameter is eased up Deposit the serial number that parameter is all updated to described initial message, and forward described initial message;Otherwise, it determines the message receiving is Second message, and obtain the serial number of the second message receiving, cached parameters are updated to the serial number of described second message, Cached parameters after relatively updating and the size of described serial number parameter;
If the cached parameters after updating are more than described serial number parameter, described processing module is according to described second message Destination address, forwards described second message, and described serial number parameter is updated to the serial number of described message;If after updating Cached parameters are less than or equal to described serial number parameter, then described processing module deletes described second message.
A kind of processing system of redundant message based on IEC62439-3 agreement provided in an embodiment of the present invention, including:On The processing meanss of the redundant message based on IEC62439-3 agreement stated;Wherein,
Described processing meanss include:Memorizer and one or more processor, wherein, described processing meanss are also wrapped Include:One or more units and the first depositor for storing serial number parameter;One or more of units are stored In which memory and be configured to by one or more of computing devices, one or more of units include for The instruction of execution following steps:
Receive message, and whether compare the serial number of the message receiving more than the serial number ginseng in described first depositor Number, wherein, described serial number parameter is the maximum of the serial number for identifying forwarded over message;
If so, the then destination address according to described message, forwards described message, and described serial number parameter is updated to institute State the serial number of message;Otherwise, delete described message.
In the embodiment of the present invention, because the serial number in each message is all unique, therefore the present invention passes through to preserve and turns The maximum of the serial number of the message sent out, and compare the serial number of the message receiving and the size of maximum, so that it is determined that Whether the message receiving is the message repeating, and also just simplifies the flow process determining the message repeating, improves Message processing Efficiency, shortens product development cycle, decreases the quantity of logical resource occupancy, reduces power consumption;Each due to being directed to Message all builds table, is also no need for using outside TCAM chip, thus reducing the design cost of hardware.
It is preferred that after receiving message, the method also includes:
Detect whether the serial number parameter in described first depositor is default value, if so, then by described first depositor In serial number parameter be updated to the serial number of message that receives, and the message receiving described in forwarding, otherwise, compare reception To message serial number whether more than the serial number parameter in described first depositor.
It is preferred that this processing means also includes:For the second depositor of memory buffers parameter, wherein, described caching ginseng Number is the serial number for storing the message receiving;
Whether the serial number of the message relatively receiving is more than the serial number parameter in described first depositor, including:
Cached parameters in described second depositor are updated to the serial number of message receiving;
Whether the cached parameters after relatively updating are more than the serial number parameter in described first depositor.
It is preferred that after whether the serial number parameter in detecting described first depositor is default value, the method is also wrapped Include:
The serial number of the message receiving described in acquisition;
Serial number parameter in described first depositor is updated to the serial number of message receiving, including:
The serial number getting is assigned to the serial number parameter in described first depositor;
Cached parameters in described second depositor are updated to the serial number of message receiving, including:
The serial number getting is assigned to the cached parameters in described second depositor.
Brief description
Fig. 1 is a kind of stream of the processing method of redundant message based on IEC62439-3 agreement provided in an embodiment of the present invention Journey schematic diagram;
Fig. 2 is that the flow process of the receiving/transmission method of the redundant message based on IEC62439-3 agreement provided in an embodiment of the present invention is shown It is intended to;
The hybrid topologies of the HSR loop topology that Fig. 3 provides for the embodiment of the present invention one and PRP concurrent topology are illustrated Figure;
The flow process of the receiving/transmission method of the redundant message based on IEC62439-3 agreement that Fig. 4 provides for the embodiment of the present invention three Schematic diagram;
Fig. 5 is a kind of knot of the processing meanss of redundant message based on IEC62439-3 agreement provided in an embodiment of the present invention Structure schematic diagram.
Specific embodiment
The invention provides redundant message processing method, apparatus and system, in order to simplify the message determining whether for repeating Flow process, lifting Message processing efficiency, also shorten product development cycle, reduce logical resource take quantity, reduce power consumption; Table need not all being built for each message, being also no need for using outside TCAM chip, thus reducing the design cost of hardware.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the present invention is clearly and completely retouched State it is clear that described embodiment a part of embodiment that is the present invention, rather than whole embodiments.Based in the present invention Embodiment, the every other embodiment that those of ordinary skill in the art are obtained under the premise of not making creative work, all Belong to the scope of protection of the invention.
Using the uniqueness of the serial number in message, the present invention determines whether this message attaches most importance to and recurs the message sending, IEC62439-3 agreement defines and is replicated the message needing to send, and the message of original message and duplication is passed through not According to serial number, order from small to large is sent to receiving terminal successively for same port;Receiving terminal passes through to compare the message receiving The maximum of the serial number of serial number and forwarded over message, so that it is determined that whether the message receiving is the message repeating, from And simplify the flow process determining whether for the message repeating, improve the efficiency of Message processing.
Referring to Fig. 1, receiving side, embodiments providing a kind of redundant message based on IEC62439-3 agreement Processing method, the method includes:
S101, reception message, and compare whether the serial number of the message receiving is more than serial number parameter, wherein, described Serial number parameter is the maximum of the serial number for identifying forwarded over message;
S102, the if so, then destination address according to described message, forward described message, and by described serial number parameter more It is newly the serial number of described message;Otherwise, delete described message.
Specifically, after receiving message in step S101, the method also includes:
Whether detection sequence parameter is default value, if so, then described serial number parameter is updated to the message that receives Serial number, and the message receiving described in forwarding, otherwise, whether the serial number comparing the message receiving more than serial number ginseng Number.
Specifically, whether the serial number comparing the message receiving is more than serial number parameter, including:
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive;
Whether the cached parameters after relatively updating are more than serial number parameter.
After whether detection sequence parameter is default value, the method also includes:
The serial number of the message receiving described in acquisition;
Described serial number parameter, cached parameters are updated to the serial number of message receiving, specifically include:
By the serial number getting by way of assignment, described serial number parameter, cached parameters are updated.
Now, the processing method of the redundant message based on IEC62439-3 agreement, specifically includes:
Receive message, whether detection sequence parameter is default value, if it is determined that the described message receiving is initial Message, and obtain the serial number of the initial message receiving, described serial number parameter and cached parameters are all updated to described first The serial number of beginning message, and forward described initial message;Otherwise, it determines the message receiving is the second message, and obtain reception The serial number of the second message arriving, cached parameters is updated to the serial number of described second message, compares the ginseng of the caching after renewal Number and the size of described serial number parameter;
If the cached parameters after updating are more than described serial number parameter, according to the destination address of described second message, turn Send out the second message described, and described serial number parameter is updated to the serial number of described message;If the cached parameters after updating are little In or be equal to described serial number parameter, delete described second message.By that analogy, the message until sending transmitting terminal all connects Harvest complete.
For ease of understanding, further the solution of the present invention will be explained by embodiment below.Wherein, in embodiment The processing method of the message providing is applied to HSR (High-availability Seamless Redundancy, high reliability Seamless redundancy) and PRP (Parallel Redundancy Protocol, Parallel Redundancy Protocol).
Referring to Fig. 2, the bulk flow of the redundant message transmitting-receiving based on IEC62439-3 agreement that the embodiment of the present invention one provides Journey, the method includes:
S201, transmitting terminal replicate the original message needing to send, and obtain the serial number identical message with original message;
S202, transmitting terminal send original message and the serial number phase with original message by different ports to receiving terminal Same message;
S203, receiving terminal receive the message of transmitting terminal transmission, and whether detection sequence parameter is default default value;
If S204, it is determined that this message that receiving terminal receives is initial message, obtains the sequence of this initial message Number, initialization sequence parameter and cached parameters, will this initial message serial number by way of assignment to serial number Parameter is updated with cached parameters, and forwards this initial message;Wherein, described serial number parameter is forwarded over for identifying The maximum of the serial number of message, described cached parameters are the serial number for identifying the message receiving;
S205, otherwise, it determines this message that receiving terminal receives is the second message, obtains the serial number of this second message, And execution step S203, until whole messages that transmitting terminal sends receive;
The serial number of this second message is updated by way of assignment by S206, receiving terminal to cached parameters, compares Cached parameters after renewal and the size of described serial number parameter;
If S207 cached parameters are more than serial number parameter it is determined that the second message is original message, and execution step S208;Otherwise determine that the second message is the message repeating, and execution step S209;
S208, serial number parameter is updated to the serial number in the second message, and according to the destination address in the second message Forward the second message, and execution step S203, until whole messages that transmitting terminal sends receive;
S209, deletion the second message, and execution step S203, until whole messages that transmitting terminal sends receive.
Embodiment two:
When the Serial No. " 0 " in the message that receiving terminal first time gets, then whether detection sequence parameter is empty, if For sky, then serial number parameter assignment is " 0 ", cached parameters are also entered as " 0 ";In the message that receiving terminal gets for the second time Serial No. " 1 ", then cached parameters are updated to " 1 ", and comparative sequences parameter and cached parameters, due to cached parameters " 1 " is more than serial number parameter " 0 " it is determined that the message receiving for the second time is original message, according to the report receiving for the second time The message that destination address forwarding in literary composition receives for the second time, and serial number parameter is updated to " 1 ";Receive message again, and Serial number parameter now is " 1 ", and cached parameters are " 1 ".
If the Serial No. " 0 " in the message that receiving terminal third time gets, the message receiving with first time is mutually overlapping Multiple message, then be updated to cached parameters " 0 ", comparative sequences parameter and cached parameters, because serial number parameter " 1 " is less than Cached parameters " 0 ", it is determined that the message that third time receives is the message repeating with a certain message phase forwarding, delete third time The message receiving;Receive message again, and serial number parameter now is " 1 ", cached parameters are " 0 ".
If the Serial No. " 1 " in the message that receiving terminal gets for the 4th time, that is, mutually overlapping with the message receiving for the second time Multiple message, then be updated to cached parameters " 1 ", comparative sequences parameter and cached parameters, because serial number parameter " 1 " is equal to Cached parameters " 1 ", it is determined that the message receiving for the 4th time is the message that a certain message phase forwarding repeats, is deleted and are connect for the 4th time The message receiving;Receive message again, and serial number parameter now is " 1 ", cached parameters are " 1 ".
The transmitting terminal order by serial number from small to large that is defined as due to IEC62439-3 agreement sends report to receiving terminal Literary composition, therefore, this transmission embodiment do not exist first receive the original document of the second message with or the literary composition that mutually repeats with original message Part, then receive the original document of the first message with or the situation of file that mutually repeats with original message.
HSR loop topology shown in Figure 3 and the structural representation of the combinatorial topology of PRP concurrent topology, wherein, send Hold as PRP device node 310, receiving terminal is HSR device node 320, redundant apparatus is 330.HSR device is provided with two Depositor, the first depositor curr_seq is used for storing serial number parameter, and the second depositor recv_seq is used for memory buffers and joins Number;
Referring to Fig. 4, the flow process of the process message providing for the structure embodiment of the present invention three described in Fig. 3, including as follows Step:It is assumed that the report that transmits Sequence Number as " 0 " to receiving node 320 of sending node 310 after PRP device and HSR device are all energized Literary composition;
The port A of receiving node 320 receives the message of Serial No. " 0 ", then whether detection sequence parameter is default Default value;If it is determined that this message receiving is initial message, obtaining the serial number of this initial message, first posted In storage curr_seq, the serial number parameter of storage and the cached parameters of storage in the second depositor recv_seq are all updated to " 0 ", and the message of the serial number " 0 " being received according to the destination address forwarding port A in message;
The port B of receiving node 320 receives the message of Serial No. " 0 ", then whether detection sequence parameter is default Default value;If not it is determined that this message receiving is the second message, obtain the serial number of this second message, second is posted In storage recv_seq, the cached parameters of storage are updated to " 0 ", compare the cached parameters after renewal and serial number parameter, due to slow Deposit parameter " 0 " and be equal to serial number parameter " 0 " it is determined that the message of Serial No. " 0 " that port B receives is a certain with forwarding The message that message phase repeats, and delete this message;
The port A of receiving node 320 receives the message of Serial No. " 1 ", then whether detection sequence parameter is default Default value;If not it is determined that this message receiving is the second message, obtain the serial number of this second message, second is posted In storage recv_seq, the cached parameters of storage are updated to " 1 ", compare the cached parameters after renewal and serial number parameter, due to slow Deposit parameter " 1 " and be more than serial number parameter " 0 ", then the serial number parameter of storage in the first depositor curr_seq is updated to " 1 ", And determine that the message of Serial No. " 1 " that port A receives is original message, forwards according to the destination address in this message, turns Send out this message;
Before the port B of receiving node 320 receives the message of Serial No. " 1 ", the port A of receiving node 320 connects Receive the message of Serial No. " 2 ", then the cached parameters of storage in the second depositor recv_seq are updated to " 2 ", compare more Cached parameters after new and serial number parameter, because cached parameters " 2 " are more than serial number parameter " 1 ", then by the first depositor In curr_seq, the serial number parameter of storage is updated to " 2 ", and determines that the message of Serial No. " 2 " that port A receives is former Beginning message, forwards according to the destination address in this message, forwards this message;
Now, receiving node 320 forwarded the message of Serial No. " 0 ", the message of Serial No. " 1 " and serial number Message for " 2 ".
Then, the port B of receiving node 320 receives the message of Serial No. " 1 ", then whether detection sequence parameter is Default default value;If not it is determined that this message receiving is the second message, obtain the serial number of this second message, by the In two depositor recv_seq, the cached parameters of storage are updated to " 1 ", compare the cached parameters after renewal and serial number parameter, by It is less than serial number parameter " 2 " in cached parameters " 1 " it is determined that the message of Serial No. " 1 " that port B receives is and forwards The message that a certain message phase repeats, deletes this message;
According to above-mentioned rule, all of message until sending sending node 310 all compares and is disposed.
Referring to Fig. 5, embodiments provide a kind of processing meanss of the redundant message based on IEC62439-3 agreement, Including,
Whether comparison module 501, for receiving message, and compare the serial number of the message receiving more than serial number ginseng Number, wherein, described serial number parameter is the maximum of the serial number for identifying forwarded over message;
Processing module 502, for the if so, then destination address according to described message, forwards described message, and by described sequence Row number parameter is updated to the serial number of described message;Otherwise, delete described message.
Specifically, after receiving message, described comparison module 501, it is additionally operable to:
Whether detection sequence parameter is default value, if so, then described serial number parameter is updated to the message that receives Serial number, and the message receiving described in forwarding, otherwise, whether the serial number comparing the message receiving more than serial number ginseng Number.
Specifically, whether the serial number comparing the message receiving is more than serial number parameter, and described comparison module 501 is concrete For:
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive;
Whether the cached parameters after relatively updating are more than serial number parameter.
Specifically, described comparison module 501, specifically for:Receive message from least two ports.
Specifically, after whether detection sequence parameter is default value, described comparison module 501 is additionally operable to:
The serial number of the message receiving described in acquisition;
Described serial number parameter is updated to the serial number of message receiving, described comparison module 501 specifically for:
The serial number getting is assigned to described serial number parameter;
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive, institute State comparison module 501 specifically for:
The serial number getting is assigned to cached parameters, wherein, described cached parameters are for storing the report receiving The serial number of literary composition.
Specifically, described processing meanss for PRP device or can be HSR device.
A kind of processing system of redundant message based on IEC62439-3 agreement provided in an embodiment of the present invention, including:On The processing meanss of the redundant message based on IEC62439-3 agreement stated;Wherein,
Described processing meanss include:Memorizer and one or more processor, wherein, described processing meanss are also wrapped Include:One or more units and the first depositor for storing serial number parameter;One or more of units are stored In which memory and be configured to by one or more of computing devices, one or more of units include for The instruction of execution following steps:
Receive message, and whether compare the serial number of the message receiving more than the serial number ginseng in described first depositor Number, wherein, described serial number parameter is the maximum of the serial number for identifying forwarded over message;
If so, the then destination address according to described message, forwards described message, and described serial number parameter is updated to institute State the serial number of message;Otherwise, delete described message.
Specifically, this processing means also includes:For the second depositor of memory buffers parameter, wherein, described caching ginseng Number is the serial number for storing the message receiving;
Whether the serial number of the message relatively receiving is more than the serial number parameter in described first depositor, including:
Cached parameters in described second depositor are updated to the serial number of message receiving;
Whether the cached parameters after relatively updating are more than the serial number parameter in described first depositor.
In sum, embodiments provide redundant message processing method, apparatus and system, in order to simplify determination be The flow process of the no message for repeating, the efficiency of lifting Message processing, also shortens product development cycle, reduces what logical resource took Quantity, reduces power consumption;Table need not all be built for each message, also be no need for using outside TCAM chip, thus reducing hard The design cost of part.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or the reality combining software and hardware aspect Apply the form of example.And, the present invention can be using in one or more computers wherein including computer usable program code The shape of the upper computer program implemented of usable storage medium (including but not limited to disk memory and optical memory etc.) Formula.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor instructing general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one The step of the function of specifying in individual square frame or multiple square frame.
Obviously, those skilled in the art can carry out the various changes and modification essence without deviating from the present invention to the present invention God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprise these changes and modification.

Claims (10)

1. a kind of processing method of redundant message, described redundant message is the message based on IEC62439-3 agreement, and its feature exists In, including:
Receive message, and compare whether the serial number of the message receiving is more than serial number parameter, wherein, described serial number parameter It is the maximum of the serial number for identifying forwarded over message;
If so, the then destination address according to described message, forwards described message, and described serial number parameter is updated to described report The serial number of literary composition;Otherwise, delete described message.
2. method according to claim 1 is it is characterised in that after receiving message, the method also includes:
Whether detection sequence parameter is default value, if so, then described serial number parameter is updated to the sequence of message that receives Row number, and the message receiving described in forwarding, otherwise, whether the serial number comparing the message receiving is more than serial number parameter.
3. method according to claim 2 is it is characterised in that whether the serial number comparing the message receiving is more than sequence Number parameter, including:
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive;
Whether the cached parameters after relatively updating are more than serial number parameter.
4. method according to claim 3 is it is characterised in that after whether detection sequence parameter is default value, be somebody's turn to do Method also includes:
The serial number of the message receiving described in acquisition;
Described serial number parameter is updated to the serial number of message receiving, including:
The serial number getting is assigned to described serial number parameter;
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive, including:
The serial number getting is assigned to cached parameters, wherein, described cached parameters are for storing the message receiving Serial number.
5. a kind of processing meanss of redundant message, described redundant message is the message based on IEC62439-3 agreement, and its feature exists In, including,
Comparison module, for receiving message, and compares whether the serial number of the message receiving is more than serial number parameter, wherein, Described serial number parameter is the maximum of the serial number for identifying forwarded over message;
Processing module, for the if so, then destination address according to described message, forwards described message, and described serial number is joined Number is updated to the serial number of described message;Otherwise, delete described message.
6. processing meanss according to claim 5 are it is characterised in that after receiving message, described comparison module is also used In:
Whether detection sequence parameter is default value, if so, then described serial number parameter is updated to the sequence of message that receives Row number, and the message receiving described in forwarding, otherwise, whether the serial number comparing the message receiving is more than serial number parameter.
7. processing meanss according to claim 6 are it is characterised in that whether the serial number comparing the message receiving is more than Serial number parameter, described comparison module specifically for:
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive;
Whether the cached parameters after relatively updating are more than serial number parameter.
8. processing meanss according to claim 7 it is characterised in that detection sequence parameter be whether default value it Afterwards, described comparison module is additionally operable to:
The serial number of the message receiving described in acquisition;
Described serial number parameter is updated to the serial number of message receiving, described comparison module specifically for:
The serial number getting is assigned to described serial number parameter;
The serial number of the message that the cached parameters being used for the serial number storing the message receiving are updated to receive, described ratio Compared with module specifically for:
The serial number getting is assigned to cached parameters, wherein, described cached parameters are for storing the message receiving Serial number.
9. a kind of processing system of redundant message, described redundant message is the message based on IEC62439-3 agreement, and its feature exists In, including:Processing meanss described in any one of claim 5-8;Wherein,
Described processing meanss include:Memorizer and one or more processor, wherein, described processing meanss also include:One Individual or multiple unit and the first depositor for storing serial number parameter;One or more of units are stored in described In memorizer and be configured to by one or more of computing devices, one or more of units include for execution with The instruction of lower step:
Receive message, and whether compare the serial number of the message receiving more than the serial number parameter in described first depositor, Wherein, described serial number parameter is the maximum of the serial number for identifying forwarded over message;
If so, the then destination address according to described message, forwards described message, and described serial number parameter is updated to described report The serial number of literary composition;Otherwise, delete described message.
10. processing system according to claim 9 is it is characterised in that this processing means also includes:For memory buffers ginseng Second depositor of number, wherein, described cached parameters are the serial number for storing the message receiving;
Whether the serial number of the message relatively receiving is more than the serial number parameter in described first depositor, including:
Cached parameters in described second depositor are updated to the serial number of message receiving;
Whether the cached parameters after relatively updating are more than the serial number parameter in described first depositor.
CN201610890858.9A 2016-10-12 2016-10-12 Redundant message processing method, apparatus and system Pending CN106452695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610890858.9A CN106452695A (en) 2016-10-12 2016-10-12 Redundant message processing method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610890858.9A CN106452695A (en) 2016-10-12 2016-10-12 Redundant message processing method, apparatus and system

Publications (1)

Publication Number Publication Date
CN106452695A true CN106452695A (en) 2017-02-22

Family

ID=58173594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610890858.9A Pending CN106452695A (en) 2016-10-12 2016-10-12 Redundant message processing method, apparatus and system

Country Status (1)

Country Link
CN (1) CN106452695A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553969A (en) * 2020-11-20 2022-05-27 比亚迪股份有限公司 Data transmission method, electronic device and storage medium
CN115102673A (en) * 2022-04-29 2022-09-23 中国船舶重工集团公司第七一六研究所 PRP protocol repeated frame distinguishing and processing method and system based on frame memory pool
WO2023221117A1 (en) * 2022-05-20 2023-11-23 北京小米移动软件有限公司 Message receiving method, apparatus, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247253A (en) * 2008-03-21 2008-08-20 清华大学 Multi-cast transmission method based on virtual distribution network in IP network
CN102201903A (en) * 2011-06-07 2011-09-28 合肥华云通信技术有限公司 Simple and reliable remote file transmission method
CN105871737A (en) * 2016-04-29 2016-08-17 北京东土科技股份有限公司 Communication flow control device used for communication between redundant networks
CN105978762A (en) * 2016-04-27 2016-09-28 刘巍 Redundant Ethernet data transmission device, system and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247253A (en) * 2008-03-21 2008-08-20 清华大学 Multi-cast transmission method based on virtual distribution network in IP network
CN102201903A (en) * 2011-06-07 2011-09-28 合肥华云通信技术有限公司 Simple and reliable remote file transmission method
CN105978762A (en) * 2016-04-27 2016-09-28 刘巍 Redundant Ethernet data transmission device, system and method thereof
CN105871737A (en) * 2016-04-29 2016-08-17 北京东土科技股份有限公司 Communication flow control device used for communication between redundant networks

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553969A (en) * 2020-11-20 2022-05-27 比亚迪股份有限公司 Data transmission method, electronic device and storage medium
CN114553969B (en) * 2020-11-20 2024-01-30 比亚迪股份有限公司 Data transmission method, electronic device and storage medium
CN115102673A (en) * 2022-04-29 2022-09-23 中国船舶重工集团公司第七一六研究所 PRP protocol repeated frame distinguishing and processing method and system based on frame memory pool
CN115102673B (en) * 2022-04-29 2023-11-03 中国船舶集团有限公司第七一六研究所 PRP protocol repeated frame discrimination processing method and system based on frame memory pool
WO2023221117A1 (en) * 2022-05-20 2023-11-23 北京小米移动软件有限公司 Message receiving method, apparatus, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN105511954A (en) Method and device for message processing
CN104169897B (en) The method of PCI high speed address decoding
JP2000115243A (en) Packet repeater and multi-cast speedup system
CN105474168B (en) The data processing method and relevant device that network equipment performs
CN103312720A (en) Data transmission method, equipment and system
CN106452695A (en) Redundant message processing method, apparatus and system
CN104038425A (en) Method and device for forwarding Ethernet packet
JP2000349811A (en) Communication controller
CN106789425A (en) A kind of method and device for determining duplicate message
CN106330741B (en) Message transmission method and device
CN107770221A (en) Transmission method, server conversion equipment, client conversion equipment and the system of data
JP2010517396A (en) Network components, methods for operating such network components, automated systems having such network components, methods for communicating data in automated systems using such network components, corresponding computer programs, and Computer program products
CN105516023A (en) Message forwarding method and apparatus
CN104125150A (en) Protocol message processing method, device and system
CN103746945A (en) Data transmission device and method
US20230367735A1 (en) Data transmission method, module and apparatus, device, and storage medium
CN105357148A (en) Method and system for preventing output message of network exchange chip from being disordered
CN116032880A (en) System, method, electronic equipment and storage medium for session synchronization
WO2022206480A1 (en) Data packet sending method and device
CN110191028A (en) It can the test device of interconnection equipment of software definition, system and method
WO2016101490A1 (en) Update processing method and device
CN104506440A (en) Data package transmitting method and routing list correcting method for router
CN107800738B (en) Data updating method and device
CN103036815A (en) Information and communication technology (ICT) fusion system
CN101989946A (en) Compression method of communication equipment route forwarding table

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222