CN105553742B - Electronic message communication method based on state machine - Google Patents

Electronic message communication method based on state machine Download PDF

Info

Publication number
CN105553742B
CN105553742B CN201511025972.7A CN201511025972A CN105553742B CN 105553742 B CN105553742 B CN 105553742B CN 201511025972 A CN201511025972 A CN 201511025972A CN 105553742 B CN105553742 B CN 105553742B
Authority
CN
China
Prior art keywords
recipient
process state
state information
message
information
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
CN201511025972.7A
Other languages
Chinese (zh)
Other versions
CN105553742A (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.)
Beijing Ctj Info-Tech Co Ltd
Original Assignee
Beijing Ctj Info-Tech 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 Beijing Ctj Info-Tech Co Ltd filed Critical Beijing Ctj Info-Tech Co Ltd
Priority to CN201511025972.7A priority Critical patent/CN105553742B/en
Publication of CN105553742A publication Critical patent/CN105553742A/en
Application granted granted Critical
Publication of CN105553742B publication Critical patent/CN105553742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The electronic message communication method based on state machine that the invention discloses a kind of, comprising: sending direction recipient sends message;After recipient receives the message, multiple process state informations are generated according to the processing status to the message, and the multiple process state information is returned into the recipient;Described sender receive that the recipient returns when post-process status information, described sender is adjusted to corresponding state post-processing status information according to, and thinks to receive the first process state information.Occur not influencing subsequent exchange of data when tolerable mistake the present invention has the advantage that can effectively evade data and occur some node during continuously transmitting;Sender only needs to judge whether to receive processing status to the end to decide whether to retransmit message, and communication efficiency is high.

Description

Electronic message communication method based on state machine
Technical field
The present invention relates to the communications fields, and in particular to a kind of electronic message communication method based on state machine.
Background technique
State function effectively verifies the complete and consistency of electronic messaging data in both sides or multi-party exchange, can be automatic Efficiently intuitive reaction current data state.Since the diversity and continuity of state are so that state mistake occurs in a certain link When, cause subsequent interaction that cannot normally execute, data link exception occurs, current data exchange is influenced, if current data pair Requirement of real-time is high, then may cause catastrophic effect, such as cash transaction, payment, mistake occur causes Fail Transaction to cause Unnecessary loss and prestige crisis.
Inevitably there are loss of data or other burst feelings in the data of both sides or multi-party exchange large amount of complex in electronic messaging Condition leads to current data Fail Transaction, seriously affects the experience and prestige of information automation.
When carrying out both sides or multiparty electronic MESSAGE EXCHANGE, if causing to execute in link by artificial destruction It is disconnected, electronic messaging exchange is destroyed, if data are signed instrument etc., lead to concluding parties' signing failure, causes not retrieving Loss.
Summary of the invention
The present invention is directed at least solve one of above-mentioned technical problem.
For this purpose, an object of the present invention is to provide a kind of electronic message communication method based on state machine.
To achieve the goals above, embodiment of the invention discloses a kind of electronic message communication sides based on state machine Method, comprising the following steps: sending direction recipient sends message;After the recipient receives the message, according to described The processing status of message generates multiple process state informations, and the multiple process state information is returned to described sender, Wherein, the multiple process state information is different and each process state information is default and fixed information;The hair The side of sending receive that the recipient returns when post-process status information, described sender is according to described in the state of post-processing letter Breath is adjusted to next state, and thinks to receive first process state information, wherein in the multiple process state information In, after the processing sequence in post-processing status information is located at the processing sequence of the first process state information.
Electronic message communication method according to an embodiment of the present invention based on state machine, by setting multiple places in recipient Generate multiple process state informations when reason state, and multiple process state informations are different and each process state information is pre- And if fixed information, sender think to receive first process state information when post-processing status information by receiving, Data can effectively be evaded occur some node during continuously transmitting and occur not influencing subsequent exchange of data when tolerable mistake.
In addition, the electronic message communication method according to the above embodiment of the present invention based on state machine, can also have as Under additional technical characteristic:
Further, if within a preset time, described sender does not receive the multiple of recipient's return In process state information when last process state information, described sender retransmits the message to the recipient, wherein The last process state information is the corresponding processing status letter of the last one processing status in the multiple process state information Breath.
Further, the preset time be according between described sender, the recipient network state situation and The recipient handles the time setting of the message.
Additional aspect and advantage of the invention will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures Obviously and it is readily appreciated that, in which:
Fig. 1 is the communication process schematic diagram of the electronic message communication method based on state machine of one embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
In the description of the present invention, it is to be understood that, term " center ", " longitudinal direction ", " transverse direction ", "upper", "lower", The orientation or positional relationship of the instructions such as "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside" is It is based on the orientation or positional relationship shown in the drawings, is merely for convenience of description of the present invention and simplification of the description, rather than instruction or dark Show that signified device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as pair Limitation of the invention.In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply opposite Importance.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
Referring to following description and drawings, it will be clear that these and other aspects of the embodiment of the present invention.In these descriptions In attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, to indicate to implement implementation of the invention Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, of the invention Embodiment includes all changes, modification and the equivalent fallen within the scope of the spirit and intension of attached claims.
The electronic message communication method according to an embodiment of the present invention based on state machine is described below in conjunction with attached drawing.
Fig. 1 is the communication process schematic diagram of the electronic message communication method based on state machine of one embodiment of the invention. Referring to FIG. 1, the electronic message communication method based on state machine of the embodiment of the present invention the following steps are included:
S1: sending direction recipient sends message.
In an example of the invention, sending direction recipient sends message, and sender generates state A1.
S2: after recipient receives message, multiple process state informations are generated according to the processing status to message, and will be more A process state information returns to sender.Wherein, multiple process state informations are different and each process state information is Default and fixed information.
Then above-mentioned example after recipient receives message, generates state B0.Recipient handles message to the first processing shape The first process state information B1 is generated when state, and returns to the first process state information B1 to sender.Recipient continues with report Text until second processing state and accordingly generate second processing status information B2, and to sender return second processing status information B2.Recipient continues with message until third processing status and accordingly generation final process status information B3, and to sender Return to final process status information B3.Wherein, the first process state information B1, the second processing status information B2 of recipient and most Whole process state information B3 is different, and recipient handles similar message process and (has and only the first processing status, the every time Two processing statuses and final process state) the first process state information B1, the second processing status information B2 that generate and final place Reason status information B3 is all the same, unrelated with the message content that sender sends.
S3: sender receive recipient return when post-process status information, sender according to post-process state Information is adjusted to next state, and thinks to receive first process state information.Wherein, in multiple process state informations, After the processing sequence of post-processing status information is located at the processing sequence of first process state information.
Then above-mentioned example, if sender does not receive the first process state information B1 or sender there are when failure, The state of sender is still A0.If recipient receives second processing status information B2, recipient thinks to receive One process state information B1.Data can effectively be evaded by step S1-S3 and occur the appearance of some node during continuously transmitting Subsequent exchange of data is not influenced when tolerable mistake.
In one embodiment of the invention, further comprising the steps of:
SX: if within a preset time, sender does not receive last in multiple process state informations of recipient's return When process state information, sending direction recipient retransmits message.Wherein, last process state information is multiple processing statuses The corresponding process state information of the last one processing status in information.
Then above-mentioned example, recipient continues with message until last processing status generates last process state information B3, and last process state information B3 is returned to sender.If sender does not receive last processing status in preset time Information B3, then sender sends above-mentioned message to recipient again, avoids entering deadlock shape due to there is data transmission exception State.The electronic message communication method based on state machine of the embodiment of the present invention, sender only need to judge whether to receive to locate to the end For reason state to decide whether to retransmit message, communication efficiency is high.
In one embodiment of the invention, above-mentioned preset time is according to the network state between sender, recipient Situation and recipient handle the time setting of the message.
Specifically, time and the recipient of message are handled according to the time of sending direction recipient's transmitting message, recipient The time for returning to final process status information B3 determines above-mentioned preset time.
In addition, the electronic message communication method based on state machine of the embodiment of the present invention other compositions and effect for All be for those skilled in the art it is known, in order to reduce redundancy, do not repeat them here.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that: not A variety of change, modification, replacement and modification can be carried out to these embodiments in the case where being detached from the principle of the present invention and objective, this The range of invention is by claim and its equivalent limits.

Claims (3)

1. a kind of electronic message communication method based on state machine, which comprises the following steps:
Sending direction recipient sends message;
After the recipient receives the message, multiple process state informations are generated according to the processing status to the message, And the multiple process state information is returned into described sender, wherein the multiple process state information it is different and Each process state information is default and fixed information;
Described sender receive that the recipient returns when post-process status information, described sender is according to rear Process state information is adjusted to next state, and thinks to receive first process state information, wherein in the multiple processing In status information, it is described post-processing status information processing sequence be located at the first process state information processing sequence it Afterwards.
2. the electronic message communication method according to claim 1 based on state machine, which is characterized in that further include following step It is rapid:
If within a preset time, described sender does not receive in the multiple process state information that the recipient returns When last process state information, described sender retransmits the message to the recipient, wherein the last processing shape State information is the corresponding process state information of the last one processing status in the multiple process state information.
3. the electronic message communication method according to claim 2 based on state machine, which is characterized in that the preset time Be according between described sender, the recipient network state situation and the recipient handle time of the message and set Fixed.
CN201511025972.7A 2015-12-31 2015-12-31 Electronic message communication method based on state machine Active CN105553742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511025972.7A CN105553742B (en) 2015-12-31 2015-12-31 Electronic message communication method based on state machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511025972.7A CN105553742B (en) 2015-12-31 2015-12-31 Electronic message communication method based on state machine

Publications (2)

Publication Number Publication Date
CN105553742A CN105553742A (en) 2016-05-04
CN105553742B true CN105553742B (en) 2019-04-09

Family

ID=55832682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511025972.7A Active CN105553742B (en) 2015-12-31 2015-12-31 Electronic message communication method based on state machine

Country Status (1)

Country Link
CN (1) CN105553742B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075967A (en) * 2007-07-20 2007-11-21 中国建设银行股份有限公司 System for processing SWIFT message
CN104821957A (en) * 2015-04-16 2015-08-05 瑞斯康达科技发展股份有限公司 Implementation method, device and system of BFD state machine

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159520A (en) * 2007-10-29 2008-04-09 中兴通讯股份有限公司 Data transmission method
CN104539461B (en) * 2015-01-09 2018-05-29 烽火通信科技股份有限公司 A kind of device and method for inhibiting protocol port vibration and reporting
CN104836749B (en) * 2015-03-27 2018-10-30 清华大学 A kind of SDN data planes carrier state forwarding processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075967A (en) * 2007-07-20 2007-11-21 中国建设银行股份有限公司 System for processing SWIFT message
CN104821957A (en) * 2015-04-16 2015-08-05 瑞斯康达科技发展股份有限公司 Implementation method, device and system of BFD state machine

Also Published As

Publication number Publication date
CN105553742A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN111769958B (en) Block chain cross-chain processing method, device, equipment and storage medium
CN106953718A (en) A kind of implementation method, device and the equipment of the retransmission process of code block
CN103780363B (en) Message transmitting device and method again
CN105580334B (en) A kind of data transmission method, terminal and server
CN104503801B (en) Software upgrade instruction distribution method, the communication server and terminal device
CN104980450A (en) Message transmission method and system and message-oriented middleware
CN103677988B (en) The multi-process means of communication and system for software systems
CN112714167B (en) Communication method for remote control, cloud server, cockpit and vehicle
CN105407086A (en) Temporary authorization method, client and server
CN103634203A (en) Message asynchronous transmission method, device and system
CN107277083A (en) A kind of processing method of data interaction, apparatus and system
CN108696425A (en) Vehicular communication system for transmission data
JP7177122B2 (en) Vehicle information verification method, device, equipment and medium
CN107241258B (en) A kind of instant message is sent and display methods, transmitting terminal and receiving end
CN105553742B (en) Electronic message communication method based on state machine
CN103997509A (en) Service oriented architecture-based service processing method and apparatus
KR20130037977A (en) Method and apparatus for providing robot component management
CN102368766A (en) Instant messaging tool login method and system thereof
CN104158877A (en) Remote control method, and device and system
CN104954227A (en) Preemptive cross-platform message push method and server
CN107241257A (en) A kind of information interacting method and device
CN113792883B (en) Model training method, device, equipment and medium based on federal learning
CN106921619A (en) A kind of correlating event processing method and processing device
CN107070872A (en) A kind of data processing method and device for client
CN102984086B (en) Data transmission method for uplink in data communication and device

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