CN1956421A - Reliable transmission method for web service message - Google Patents

Reliable transmission method for web service message Download PDF

Info

Publication number
CN1956421A
CN1956421A CNA2005101145668A CN200510114566A CN1956421A CN 1956421 A CN1956421 A CN 1956421A CN A2005101145668 A CNA2005101145668 A CN A2005101145668A CN 200510114566 A CN200510114566 A CN 200510114566A CN 1956421 A CN1956421 A CN 1956421A
Authority
CN
China
Prior art keywords
message
recipient
transmit leg
affirmation
receive
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
CNA2005101145668A
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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CNA2005101145668A priority Critical patent/CN1956421A/en
Publication of CN1956421A publication Critical patent/CN1956421A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

This invention relates to a method for securing reliable transmission of Web messages including a peer-to-peer double-way transmission mode, permanent storage, information confirmation and a selection re-sending system, a reliable character definition and hierarchical strategy and a support multi-message confirmation mode to secure reliable transmission of Web service messages, in which, the peer-to-peer double-way transmission mode means that the two parties transmitting messages are both the transmitter and the receiver and messages are transmitted in the peer-to-peer two parties simultaneously, the permanent strategy refers to setting a buffer region for sending information and one for receiving information for every node to store and receive information so as to transmit information after resuming system and network fault and before new fault happens, the confirmation, selection and re-sending system, the reliability character definition and the support multi-message confirmation mode are used to secure reliable transmission of messages by defining reliable character, confirmation of the ID and re-sending information.

Description

Web service message reliable transmission method
Technical field
The present invention relates to a kind of method that guarantees Web service message reliable delivery.
Background technology
Web service is to make between the application program, a technology that can utilization intercoms mutually with platform independence, with the irrelevant mode of programming language.Because the means of communication that Web service is adopted is the message transmission, therefore can guarantee that message is sent to the recipient from transmit leg reliably, just become a vital problem.The elementary object that guarantees the message reliable delivery is to produce unusual, system in application program to collapse, when network breaks down, can guarantee that still Web service message is sent to the recipient from transmit leg reliably.Be embodied in particularly: 1, do not collapse when system, but network failure or unusual the interruption when occurring, can guarantee that still all message that the transmit leg application program produces all are passed to recipient's application program; Perhaps, 2, when system's generation collapse or network failure or when continuing to occur unusually, eliminate unusually, collapse at network after recoverys, fault get rid of, can guarantee that still message that before these situations take place all are about to transmission can be passed to the recipient.In order to realize that Web service message is sent to this target of recipient from transmit leg reliably, need in the process that message is transmitted, adopt the method that guarantees Web service message reliable delivery.
Many in the world famous IT technology companys in the product of its research and development, in order to realize the reliable delivery of Web service message, have all adopted the method for the assurance message reliable delivery that proposes separately.At present, these methods mainly contain two kinds:
A kind of is by BEA, IBM, and Microsoft, companies such as TIBCO propose and advocate, and guarantee the reliable delivery of message based on client/server (Client/Server) pattern, by the method that generates message identifier (ID).This method has been utilized some algorithms in the affairs treatment technology, supports to exist message addressing (WS-Addressing) mode of intermediary's node.But, because this method does not clearly define the reliability characteristic that guarantees the message reliable delivery, therefore, the transmission of all message can only be followed identical reliability standard, and the reliability assurance of different stage be distinguished and be provided to identical standard can't according to the actual demand of message transmission; In addition, this method can only be supported single message transfer mode, can not support multiple message transfer mode (as readjustment, the poll isotype), thereby can't support the needed multiple message transfer mode of practical application, cause reliability to guarantee to be applicable to specific message transfer mode; And, though this method has been carried out simple classification to the fault and the unusual error message that produces that take place, but, classification is not sufficient to make the transmit leg can formulate again the strategy of message transfer with reference to these information, and promptly this method has not been defined as and has solved that message hinders for some reason and the persistent storage method of losing.
Another kind is by Sun, Fujitsu, Novell, companies such as Oracle propose and advocate, based on Client, by defining some reliability characteristics that guarantee the message reliable transmission, generating message identifier (ID) and recipient and how to initiate a message and confirm and the reliable transmission of the method assurance message of error message.But this method does not equally define the strategy of message persistent storage yet, thereby can't be implemented in when the unusual or fault of network, system crash occurring yet, guarantees that the message that does not transmit can not lose; In addition, this method does not relate to the message addressing issue, thereby can only handle and do not have the transmission of the message of intermediary's node; How often, how and owing to unusual or fault need message transmitted again, this method is not formulated after the message transmission fails yet for some, and transmit leg is how according to recipient's feedback information, the method for pass-along message and strategy again.
Domestic minority IT company, as easily reaching news network technology Co., Ltd, Shenzhen company of Liming Network etc., also propose some and guaranteed the reliability method that message is transmitted, (be JMS, Java Message Service is by the API of Sun Microsystems exploitation but these methods are mostly based on traditional Java messenger service, be the part of J2EE), rather than propose based on Web service.
Summary of the invention
In view of the foregoing, in order to solve the part shortcoming that above-mentioned two kinds of methods exist separately, main purpose of the present invention provides a kind of method of assurance Web service message reliable delivery of novel and standard.
For achieving the above object, the present invention by the following technical solutions: a kind of Web service message reliable transmission method, this method adopt the two-way message transfer mode of equity to carry out the message transmission; The two-way transfer mode of so-called equity is meant either party among the both sides that message transmits, not only as the sender of message, simultaneously but also as the recipient of message, message is in the both sides of equity bi-directional simultaneously.
The two-way message transfer mode concrete steps of described equity are as follows:
A, two nodes selecting participation message to transmit arbitrarily;
B, two nodes send message to the other side continually, and this moment, the role of two nodes was a transmit leg;
C, after a while, two nodes begin to receive respectively the message from the other side, and this moment, the role of two nodes was the recipient;
D, two nodes are constantly sent out message to the other side on the one hand, also constantly receive the message that sends from the other side simultaneously, and the role is a transmit leg, is again the recipient; Repeated execution of steps B~D.
The present invention also adopts persistent storage mechanism, and concrete grammar is:
A, be provided with respectively at each node and send the message buffer and to receive the message buffer;
B, message that produced by transmit leg, that be about to send at first are stored in and send in the message buffer, and then sends to the recipient; The message that has received at first is stored in receiving the message buffer, and then passes to the application system of actual needs message;
C, at each node, press the certain hour interval delta T, with the form of file, the content that sends the message buffer and receive in the message buffer is saved on the disk;
D, when system breaks down, recover to have stored into transmission message buffer and the content that receives the message buffer on the disk, in case fault is got rid of, system restoration, just from the file of having stored, select to read the content of buffering area, continue to carry out the message process before breaking down.
The present invention also adopts message authentication and message to select retransmission mechanism; In the process that message is transmitted, system generates the sign ID that every message was distinguished and confirmed in unique being used to for each bar message automatically;
So-called message authentication mechanism is meant request message that includes unique ID of the every transmission of transmit leg, after receiving, the recipient all to send the affirmation message that includes unique ID accordingly to transmit leg, be used for confirming that to transmit leg the message of being sent out has arrived, after no matter message arrived, can recipient's application program handle this message;
So-called message selects retransmission mechanism to be meant transmit leg coupling system and network condition and the affirmation message of returning from the recipient, selects whether to resend the message that has sent;
Concrete step is as follows:
A, transmit leg node X are to recipient's node Y ID=i that sends a request message;
After B, recipient's node Y receive request message ID=i, send acknowledge message ID=i to transmit leg node X;
If the C transmit leg is never received the affirmation message of recipient to this message, transmit leg will resend this message so;
If transmit leg has received acknowledge message, but this acknowledge message shows that message that the recipient receives is imperfect or the situation that the recipient requires form occurs not meeting, and transmit leg selects to resend this message behind a period of time Δ T;
Present buffering area is full if acknowledge message shows the recipient, and in the time of can't receiving more message, transmit leg will no longer resend message;
After D, transmit leg are received the correct affirmation message of recipient, repeat above-mentioned steps and finish up to whole request messages are sent.
Whether described request message comprises ID sign, temporal characteristics, reception feature, data volume, is resend messages and affirmation mode field; Described acknowledge message comprises ID sign, temporal characteristics, reception feature, data volume, feedback message and affirmation mode field; Described temporal characteristics and reception are characterized as reliability characteristic; Wherein, temporal characteristics is meant that message sends to the recipient from transmit leg, and the recipient receives the whole time interval that returns to the corresponding acknowledge message of transmit leg after the message; Receive feature and be meant that the recipient need guarantee to receive the number of same the message that transmit leg sends, specifically be divided into four kinds of situation: A, receive once at least, i.e. the message that sends of transmit leg, the recipient receives once at least; B, receive once at the most, i.e. the message that sends of transmit leg, the recipient receives once at the most; C, receive and only receive once, i.e. the message that sends of transmit leg, the recipient receives and only receives once; D, receive message according to the order of message unique ID.
In message process, transmit leg and recipient all will do following processing to the request message and the acknowledge message that include described reliability characteristic, and concrete steps are:
A, at each bar leave in send in the message buffer, be about to the message that sends, the reliability characteristic of specifying them respectively is the time feature and receives feature, the des can be the end user, also can be that system adopts the mode that sets in advance automatically to finish;
B, for the message that sends in the message buffer, be the message of returning acknowledge message in the time feature at the appointed time, then only need from send the message buffer, this message of deletion get final product; For the message of not returning acknowledge message at the appointed time, then transmit leg need resend this message;
C, for the message that receives in the message buffer, for all message of receiving, need send corresponding confirmation to transmit leg; If the ID of the message that receives is identical with the message id of before having received, then analyze the reception feature of this message:
If situation A, receive once at least, then continue this message to be retained in the buffering area;
If situation B, receive once at the most, then this message is deleted from buffering area;
If situation C, receive and only receive once, then this message from buffer block deletion;
If situation D, receive message according to the ID order, then this message from buffer block deletion, and after having only all to have the message littler than this message id and all received, this message just allows to be consigned to the application program of this message of actual needs.
The pattern of described message authentication is divided into: sync response, asynchronous readjustment and three kinds of patterns of poll, and wherein poll pattern is subdivided into synchronous polling and two kinds of patterns of polled async again;
Described synchronous response message affirmation mode is meant at transmit leg and sends in the same network connection of message to the recipient, returns the affirmation message of recipient to this message;
Described asynchronous readjustment message authentication pattern is meant that the newly-built network of transmit leg connects and sends a request message to the recipient that the recipient is after receiving message, and a newly-built again network connects, and returns the affirmation message of recipient to this message;
Described synchronous polling message authentication pattern is meant that transmit leg is after sending the message of some to the recipient, all message to its transmission propose an affirmation request message, after the recipient receives this affirmation request, the buffering area of poll oneself, whether the message of searching in the buffering area satisfies the ID value that comprises in the affirmation request message, and in the network connection at this affirmation request message place, return the affirmation result of inquiry;
Described polled async message authentication pattern is meant that transmit leg is after sending the message of some to the recipient, all message to its transmission propose an affirmation request message, after the recipient receives this affirmation request, the buffering area of poll oneself, whether the message of searching in the buffering area satisfies the ID value that comprises in the affirmation request message, a newly-built network connects, and the result who inquires about is sent to transmit leg.
The method of the assurance Web service message reliable delivery that the present invention proposes is that the reliability transmission for message proposes, and it has improved the efficient that message is transmitted by adopting the two-way message transfer mode of equity; By the persistent storage strategy is provided, has improved application program, system, network and broken down, collapse or the disposal ability when taking place unusually; By adopting message authentication and message to select retransmission mechanism, guarantee the complete procedure that message is transmitted, promoted troubleshooting capability; By definition reliability characteristic and ranking of features strategy, avoided all message transmission to use identical reliability characteristic and mode to transmit, thereby, make message to transmit according to the reliability characteristic of different stage for the message transmission provides different reliability supports; By supporting multiple message authentication pattern, enriched the approach and the mode of message authentication, thereby supported the reliability that message is transmitted more neatly.
Description of drawings
Fig. 1 carries out the process schematic diagram that message is transmitted for the present invention adopts the two-way transfer mode of equity
The schematic diagram that Fig. 2 selects retransmission mechanism for the message authentication and the message of the present invention's employing
Fig. 3 has the request message of reliability characteristic and the form schematic diagram of acknowledge message for the present invention
Fig. 4 is a synchronous response message affirmation mode schematic diagram of the present invention
Fig. 5 is the asynchronous readjustment message authentication of a present invention pattern diagram
Fig. 6 is a synchronous polling message authentication pattern diagram of the present invention
Fig. 7 is a polled async message authentication pattern diagram of the present invention
Embodiment
The method of assurance Web service message reliable delivery provided by the invention is mainly used in Web service reliable news transmission system.The present invention selects retransmission mechanism, reliability characteristic definition and reliability characteristic hierarchical policy and supports multiple message authentication pattern by adopting the two-way message transfer mode of equity, persistent storage strategy, message authentication and message, the process that the technology control Web service message of this five aspect is transmitted, the reliable delivery of assurance Web service message.
Introduce the embodiment of this five aspects technology below successively:
One, the two-way message transfer mode of equity
The method regulation Web service message transmission of the assurance Web service message reliable delivery that the present invention proposes is carried out according to the two-way transfer mode of equity.The two-way transfer mode of so-called equity is meant either party among the both sides that message transmits, not only as the sender of message, simultaneously but also as the recipient of message, message is in the both sides of equity bi-directional simultaneously.
As shown in Figure 1, for convenience, the role of the node of pass-along message with bottom right mark mark, is represented transmit leg with the top of left and right directions key, terminally represent the recipient, concrete steps are as follows:
1, selects to participate in two node X, the Y that message is transmitted arbitrarily;
2, two nodes send message X to the other side continually Transmit leg→ Y, Y Transmit leg→ X, this moment, the role of two nodes was a transmit leg;
3, after a while, two nodes begin to receive respectively the message X from the other side Transmit leg← Y, Y The recipient← X;
4, at this moment, two nodes are constantly sent out message to the other side on the one hand, also constantly receive the message that sends from the other side simultaneously, and the role is a transmit leg, is again recipient X transmit leg, recipient, Y Transmit leg, the recipient
5, repeated execution of steps 2~4, thereby realized the transmission means that a kind of equity is two-way.
The present invention adopts the two-way message transfer mode of equity, support message by the while bi-directional, avoided under Client, transmit leg and recipient role fixedly bring the decline of the limitation and the efficient of message direction of transfer, have improved the efficient that message is transmitted.
Two, persistent storage
Influence for reduction system, network failure, collapse are transmitted the result to message guarantees the reliability that message is transmitted, and the present invention has adopted persistent storage mechanism, and concrete grammar is:
1, because the present invention adopts the two-way transfer mode of equity to carry out the message transmission, and each node is a transmit leg, is again the recipient, so the present invention is provided with respectively at each node and sends the message buffer and receive the message buffer;
2, the message that is produced by transmit leg, be about to send at first is stored in and sends in the message buffer, and then sends to the recipient; The message that has received at first is stored in receiving the message buffer, and then passes to the application system of actual needs message;
3, at each node, press the certain hour interval delta T, with the form of file, the content that sends the message buffer and receive in the message buffer is saved on the disk;
When 4, system breaks down, recover to have stored into transmission message buffer and the content that receives the message buffer on the disk, in case fault is got rid of, system restoration, just from the file of having stored, select to read the content of buffering area, continue to carry out the message process before breaking down.
Because sending the content of message buffer and reception message buffer stores on the disk according to certain hour at interval, so, behind fault eliminating, system restoration, as long as fault is taken place the file of preceding certain time point storage accesses again, read the content that sends the message buffer in the file and receive the message buffer, re-execute message process and get final product.
The present invention adopts persistent storage mechanism to greatly reduce the influence to message transmission result of system, network failure, collapse in the process of message transmission, has guaranteed the reliability that message is transmitted.
Three, message authentication and message are selected retransmission mechanism
For the reliability that guarantees that message is transmitted, the present invention has all adopted message authentication and message to select retransmission mechanism in the whole process of message transmission.
In the process that message is transmitted, system is that each bar message generates a unique sign ID automatically, is used for distinguishing and confirming every message.
So-called message authentication mechanism is meant request message that includes unique ID of the every transmission of transmit leg, after receiving, the recipient all to send the affirmation message that includes unique ID accordingly to transmit leg, be used for confirming that to transmit leg the message of being sent out has arrived, after no matter message arrived, can recipient's application program handle this message.
So-called message selects retransmission mechanism to be meant transmit leg coupling system and network condition and the affirmation message of returning from the recipient, selects whether to resend the message that has sent.
Concrete step is as shown in Figure 2:
A, transmit leg node X are to recipient's node Y ID=i that sends a request message;
After B, recipient's node Y receive request message ID=i, send acknowledge message ID=i to transmit leg node X;
If the C transmit leg is never received the affirmation message of recipient to this message, transmit leg will resend this message so;
If transmit leg has received acknowledge message, but this acknowledge message shows that message that the recipient receives is imperfect or the situation that the recipient requires form occurs not meeting, and transmit leg selects to resend this message behind a period of time Δ T;
Present buffering area is full if acknowledge message shows the recipient, and in the time of can't receiving more message, transmit leg will no longer resend message;
After D, transmit leg are received the correct affirmation message of recipient, repeat above-mentioned steps and finish up to whole request messages are sent.
The present invention adopts message authentication and message to select retransmission mechanism to guarantee the reliability that message is transmitted, and has promoted system failure disposal ability.
Four, reliability characteristic definition and reliability characteristic hierarchical policy
In order to adapt to the reliability requirement that message is transmitted more accurately, the present invention proposes the definition of reliability characteristic and at the hierarchical policy of reliability characteristic, promptly the feature of message is clearly defined out, and according to these features, the needs message transmitted is clearly divided according to these features, avoid all message transmission to use identical reliability characteristic and mode, realized the classification of reliability characteristic.
Reliability characteristic comprises two aspects: temporal characteristics and reception feature.Wherein, temporal characteristics is meant that message sends to the recipient from transmit leg, and the recipient receives the whole time interval that returns to the corresponding acknowledge message of transmit leg after the message.Receive feature and be meant that the recipient need guarantee to receive the number of same the message that transmit leg sends, because the existence of system/network fault, acknowledge message may be lost, transmit leg needs to transmit again for the message of not receiving affirmation, this just exists the recipient may receive the message that transmit leg is repeatedly identical, specifically be divided into four kinds of situation: A, receive once at least, i.e. the message of transmit leg transmission, the recipient receives once at least; B, receive once at the most, i.e. the message that sends of transmit leg, the recipient receives once at the most; C, receive and only receive once, i.e. the message that sends of transmit leg, the recipient receives and only receives once; D, receive message according to the order of message unique ID, promptly on situation C received and only receive once basis, the message of receiving increased progressively (ID according to the ID sequence number 1, ID 2..., ID K...) and mode, in receiving the message buffer, after the ordering, be submitted to the application program of required payment again.
Fig. 3 is the form of request message of the present invention and acknowledge message.As shown in the figure, whether every request message all will comprise ID sign, temporal characteristics, reception feature, data volume, be resend messages and affirmation mode field.Every acknowledge message all will comprise ID sign, temporal characteristics, reception feature, data volume, feedback message and affirmation mode field.
In message process, transmit leg and recipient all will do following processing to request message and acknowledge message, and concrete steps are:
1, leaves message in the transmission message buffer, that be about to transmission at each bar, the reliability characteristic of specifying them respectively is the time feature and receives feature, the des can be the end user, also can be that system adopts the mode that sets in advance automatically to finish;
2, for the message that sends in the message buffer, be the message of returning acknowledge message in the time feature at the appointed time, then only need from send the message buffer, this message of deletion get final product; For the message of not returning acknowledge message at the appointed time, then transmit leg need resend this message;
3, for the message that receives in the message buffer,, need send corresponding confirmation to transmit leg for all message of receiving; If the ID of the message that receives is identical with the message id of before having received, then analyze the reception feature of this message:
If situation A, receive once at least, then continue this message to be retained in the buffering area;
If situation B, receive once at the most, then this message is deleted from buffering area;
If situation C, receive and only receive once, then this message from buffer block deletion;
If situation D, receive message according to the ID order, then this message from buffer block deletion, and after having only all to have the message littler than this message id and all received, this message just allows to be consigned to the application program of this message of actual needs.
Five, support multiple message authentication pattern
For the reliability of supporting that more neatly message is transmitted, the present invention has adopted multiple message authentication pattern, the concrete message authentication pattern of supporting is divided into: sync response, asynchronous readjustment and three kinds of patterns of poll, wherein poll pattern is subdivided into synchronous polling and two kinds of patterns of polled async again.
Synchronous response message affirmation mode: send in the same network connection of message to the recipient at transmit leg, return the affirmation message of recipient, as shown in Figure 4 to this message.
Asynchronous readjustment message authentication pattern: the newly-built network of transmit leg connects and sends a request message to the recipient, and the recipient is after receiving message, and a newly-built again network connects, and returns the affirmation message of recipient to this message, as shown in Figure 5.
Polling message affirmation mode: be subdivided into two kinds of synchronous polling message authentication pattern and polled async message authentication patterns
Synchronous polling message authentication pattern: transmit leg is after sending the message of some to the recipient, all message to its transmission propose an affirmation request message, after the recipient receives this affirmation request, the buffering area of poll oneself, whether the message of searching in the buffering area satisfies the ID value that comprises in the affirmation request message, and in the network connection at this affirmation request message place, return the affirmation result of inquiry, as shown in Figure 6.
Polled async message authentication pattern: transmit leg is after sending the message of some to the recipient, all message to its transmission propose an affirmation request message, after the recipient receives this affirmation request, the buffering area of poll oneself, whether the message of searching in the buffering area satisfies the ID value that comprises in the affirmation request message, a newly-built network connects, and the result who inquires about is sent to transmit leg, as shown in Figure 7.
The method of the assurance Web service message reliable delivery that the present invention proposes is compared with other assurance reliable news transmission method, has following characteristics:
1, the method for the assurance message reliable delivery that proposes of the present invention is a kind of method of the assurance message transfer reliability that proposes based on Web service, rather than traditional method that guarantees the message transfer reliability based on messenger service.
2, the present invention adopts the two-way message transfer mode of equity, can support message by the while bi-directional, avoided under Client, transmit leg and recipient role fixedly bring the decline of the limitation and the efficient of message direction of transfer, when guaranteeing reliability, improved the efficient that message is transmitted.
3, the present invention adopts the persistent storage strategy, has improved application program, system, network and has broken down, collapses or the disposal ability when taking place unusually, has improved the reliability of system.
4, the present invention adopts message authentication and message to select retransmission mechanism, guarantees the complete procedure that message is transmitted, and has promoted troubleshooting capability.
5, the present invention is by definition reliability characteristic and ranking of features, avoided all message transmission to use identical reliability characteristic and mode to transmit, thereby, make message to transmit according to the reliability characteristic of different stage for the message transmission provides different reliability supports.
6, the present invention supports multiple message authentication pattern, has enriched the approach and the mode of message authentication, thereby supports the reliability that message is transmitted more neatly.

Claims (7)

1, a kind of Web service message reliable transmission method is characterized in that: this method adopts the two-way message transfer mode of equity to carry out the message transmission; The two-way transfer mode of so-called equity is meant either party among the both sides that message transmits, not only as the sender of message, simultaneously but also as the recipient of message, message is in the both sides of equity bi-directional simultaneously.
2, Web service message reliable transmission method according to claim 1 is characterized in that: the two-way message transfer mode concrete steps of described equity are as follows:
A, two nodes selecting participation message to transmit arbitrarily;
B, two nodes send message to the other side continually, and this moment, the role of two nodes was a transmit leg;
C, after a while, two nodes begin to receive respectively the message from the other side, and this moment, the role of two nodes was the recipient;
D, two nodes are constantly sent out message to the other side on the one hand, also constantly receive the message that sends from the other side simultaneously, and the role is a transmit leg, is again the recipient; Repeated execution of steps B~D.
3, Web service message reliable transmission method according to claim 1 and 2, it is characterized in that: the present invention also adopts persistent storage mechanism, and concrete grammar is:
A, be provided with respectively at each node and send the message buffer and to receive the message buffer;
B, message that produced by transmit leg, that be about to send at first are stored in and send in the message buffer, and then sends to the recipient; The message that has received at first is stored in receiving the message buffer, and then passes to the application system of actual needs message;
C, at each node, press the certain hour interval delta T, with the form of file, the content that sends the message buffer and receive in the message buffer is saved on the disk;
D, when system breaks down, recover to have stored into transmission message buffer and the content that receives the message buffer on the disk, in case fault is got rid of, system restoration, just from the file of having stored, select to read the content of buffering area, continue to carry out the message process before breaking down.
4, Web service message reliable transmission method according to claim 3 is characterized in that: this method also adopts message authentication and message to select retransmission mechanism;
In the process that message is transmitted, system generates the sign ID that every message was distinguished and confirmed in unique being used to for each bar message automatically;
So-called message authentication mechanism is meant request message that includes unique ID of the every transmission of transmit leg, after receiving, the recipient all to send the affirmation message that includes unique ID accordingly to transmit leg, be used for confirming that to transmit leg the message of being sent out has arrived, after no matter message arrived, can recipient's application program handle this message;
So-called message selects retransmission mechanism to be meant transmit leg coupling system and network condition and the affirmation message of returning from the recipient, selects whether to resend the message that has sent;
Concrete step is as follows:
A, transmit leg node X are to recipient's node Y ID=i that sends a request message;
After B, recipient's node Y receive request message ID=i, send acknowledge message ID=i to transmit leg node X;
If the C transmit leg is never received the affirmation message of recipient to this message, transmit leg will resend this message so;
If transmit leg has received acknowledge message, but this acknowledge message shows that message that the recipient receives is imperfect or the situation that the recipient requires form occurs not meeting, and transmit leg selects to resend this message behind a period of time Δ T;
Present buffering area is full if acknowledge message shows the recipient, and in the time of can't receiving more message, transmit leg will no longer resend message;
After D, transmit leg are received the correct affirmation message of recipient, repeat above-mentioned steps and finish up to whole request messages are sent.
5, Web service message reliable transmission method according to claim 4 is characterized in that: whether described request message comprises ID sign, temporal characteristics, reception feature, data volume, is resend messages and affirmation mode field;
Described acknowledge message comprises ID sign, temporal characteristics, reception feature, data volume, feedback message and affirmation mode field;
Described temporal characteristics and reception are characterized as reliability characteristic; Wherein, temporal characteristics is meant that message sends to the recipient from transmit leg, and the recipient receives the whole time interval that returns to the corresponding acknowledge message of transmit leg after the message; Receive feature and be meant that the recipient need guarantee to receive the number of same the message that transmit leg sends, specifically be divided into four kinds of situation: A, receive once at least, i.e. the message that sends of transmit leg, the recipient receives once at least; B, receive once at the most, i.e. the message that sends of transmit leg, the recipient receives once at the most; C, receive and only receive once, i.e. the message that sends of transmit leg, the recipient receives and only receives once; D, receive message according to the order of message unique ID.
6, Web service message reliable transmission method according to claim 5 is characterized in that: in message process, transmit leg and recipient all will do following processing to the request message and the acknowledge message that include described reliability characteristic, and concrete steps are:
A, at each bar leave in send in the message buffer, be about to the message that sends, the reliability characteristic of specifying them respectively is the time feature and receives feature, the des can be the end user, also can be that system adopts the mode that sets in advance automatically to finish;
B, for the message that sends in the message buffer, be the message of returning acknowledge message in the time feature at the appointed time, then only need from send the message buffer, this message of deletion get final product; For the message of not returning acknowledge message at the appointed time, then transmit leg need resend this message;
C, for the message that receives in the message buffer, for all message of receiving, need send corresponding confirmation to transmit leg; If the ID of the message that receives is identical with the message id of before having received, then analyze the reception feature of this message:
If situation A, receive once at least, then continue this message to be retained in the buffering area;
If situation B, receive once at the most, then this message is deleted from buffering area;
If situation C, receive and only receive once, then this message from buffer block deletion;
If situation D, receive message according to the ID order, then this message from buffer block deletion, and after having only all to have the message littler than this message id and all received, this message just allows to be consigned to the application program of this message of actual needs.
7, according to claim 5 or 6 described Web service message reliable transmission methods, it is characterized in that: the pattern of described message authentication is divided into: sync response, asynchronous readjustment and three kinds of patterns of poll, and wherein poll pattern is subdivided into synchronous polling and two kinds of patterns of polled async again;
Described synchronous response message affirmation mode is meant at transmit leg and sends in the same network connection of message to the recipient, returns the affirmation message of recipient to this message;
Described asynchronous readjustment message authentication pattern is meant that the newly-built network of transmit leg connects and sends a request message to the recipient that the recipient is after receiving message, and a newly-built again network connects, and returns the affirmation message of recipient to this message;
Described synchronous polling message authentication pattern is meant that transmit leg is after sending the message of some to the recipient, all message to its transmission propose an affirmation request message, after the recipient receives this affirmation request, the buffering area of poll oneself, whether the message of searching in the buffering area satisfies the ID value that comprises in the affirmation request message, and in the network connection at this affirmation request message place, return the affirmation result of inquiry;
Described polled async message authentication pattern is meant that transmit leg is after sending the message of some to the recipient, all message to its transmission propose an affirmation request message, after the recipient receives this affirmation request, the buffering area of poll oneself, whether the message of searching in the buffering area satisfies the ID value that comprises in the affirmation request message, a newly-built network connects, and the result who inquires about is sent to transmit leg.
CNA2005101145668A 2005-10-26 2005-10-26 Reliable transmission method for web service message Pending CN1956421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2005101145668A CN1956421A (en) 2005-10-26 2005-10-26 Reliable transmission method for web service message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2005101145668A CN1956421A (en) 2005-10-26 2005-10-26 Reliable transmission method for web service message

Publications (1)

Publication Number Publication Date
CN1956421A true CN1956421A (en) 2007-05-02

Family

ID=38063524

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2005101145668A Pending CN1956421A (en) 2005-10-26 2005-10-26 Reliable transmission method for web service message

Country Status (1)

Country Link
CN (1) CN1956421A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790691A (en) * 2011-05-19 2012-11-21 中兴通讯股份有限公司 Method and device for processing redundant report of notice
CN101794223B (en) * 2010-02-03 2012-11-28 南京联创科技集团股份有限公司 Design method of WADE service message architecture
CN110287046A (en) * 2019-07-03 2019-09-27 浪潮云信息技术有限公司 Business service message method and system based on queue
CN113242140A (en) * 2021-03-30 2021-08-10 宁波三星医疗电气股份有限公司 G3 network topology data storage method and display method of embedded device and electronic device
CN113810384A (en) * 2021-08-25 2021-12-17 上海瓶钵信息科技有限公司 Message transmission method for realizing one-time characteristic

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794223B (en) * 2010-02-03 2012-11-28 南京联创科技集团股份有限公司 Design method of WADE service message architecture
CN102790691A (en) * 2011-05-19 2012-11-21 中兴通讯股份有限公司 Method and device for processing redundant report of notice
CN102790691B (en) * 2011-05-19 2016-01-20 中兴通讯股份有限公司 A kind ofly process the notice method that reports of redundancy and device
CN110287046A (en) * 2019-07-03 2019-09-27 浪潮云信息技术有限公司 Business service message method and system based on queue
CN113242140A (en) * 2021-03-30 2021-08-10 宁波三星医疗电气股份有限公司 G3 network topology data storage method and display method of embedded device and electronic device
CN113810384A (en) * 2021-08-25 2021-12-17 上海瓶钵信息科技有限公司 Message transmission method for realizing one-time characteristic

Similar Documents

Publication Publication Date Title
CN1086531C (en) Multi-processor environments
CN1174584C (en) Method for realizing multiple point communication by using serial bus
CN1956386A (en) Method for set-up blogger and immediate communication of the blogger based on reciprocity mode
CN1728671A (en) Server device, method for controlling a server device, and method for establishing a connection using the server device
US20060041698A1 (en) Reducing information reception delays
CN102111419B (en) Message middleware-based client automatic reconnection method
CN1941748A (en) Group message transmitting method, transmitting end and system
CN1909551A (en) Data exchanging method based on Web service
CN1905518A (en) Method for ensuring reliable transmission of data exhange
CN103841002A (en) Method and terminal for voice transmission, voice server and voice transmission system
CN1463401A (en) File distribution system, file distribution server unit, and reception client unit
CN1956421A (en) Reliable transmission method for web service message
CN101056194A (en) A SNMP message transfer method and device
CN101075991A (en) Method for realizing multiple subjects discussing group and receiving message, customer end and server
CN113676605A (en) Data transmission method, device, equipment and computer readable storage medium
CN105743951A (en) Data sending method and apparatus and data receiving method and apparatus
CN1738446A (en) Multimedia message system and method for transmitting multimedia message
CN105490773B (en) The method and apparatus of transmitting multimedia data
CN1933454A (en) Synchronous information interface realizing method based on JAVA information service
CN1941702A (en) Method and method for issuing blog articles
CN1881963A (en) System and method for realizing instantaneous communication
WO2012159535A1 (en) Instant messaging system and method for sharing user information
CN101052034A (en) Method and system for transmitting network event journal protocol message
CN101640647A (en) Email sending service device, email sending service system and email sending method
JPWO2008105030A1 (en) Backup 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
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20070502