CN103986647A - Message transmission method and device - Google Patents

Message transmission method and device Download PDF

Info

Publication number
CN103986647A
CN103986647A CN201410215037.6A CN201410215037A CN103986647A CN 103986647 A CN103986647 A CN 103986647A CN 201410215037 A CN201410215037 A CN 201410215037A CN 103986647 A CN103986647 A CN 103986647A
Authority
CN
China
Prior art keywords
message
recipient
application
sender
incidence relation
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
CN201410215037.6A
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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201410215037.6A priority Critical patent/CN103986647A/en
Publication of CN103986647A publication Critical patent/CN103986647A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a message transmission method and device. The method and device are used for achieving order-preserving communication of messages. The method comprises the following steps: determining the incidence relations between a sender application and receiver applications, wherein the incidence relations comprise the corresponding relations between a sender IP address and a UDP port number corresponding to the sender application and receiver IP addresses and UDP port numbers of the receiver applications; determining message serial numbers corresponding to the messages according to the sending sequence of the messages sent to the receiver applications, and storing the messages to a message sending queue corresponding to the incidence relations after the messages are encapsulated by utilizing the message series numbers, wherein an initial message serial number maintained between the sender application and the receiver applications is the same, and a determining method of the message serial numbers is the same; sending the messages in the message sending queue to the receivers corresponding to the receiver applications according to sequence and the incidence relations.

Description

Message transmitting method and equipment
Technical field
The present invention relates to communication technical field, relate in particular to message transmitting method and equipment.
Background technology
In today of network fast development, between men, or between equipment and equipment, also or between people and equipment communicate by network, conventionally the communication mode adopting is transmission control protocol (Transmission Control Protocol, TCP)/User Datagram Protoco (UDP) (User Datagram Protocol, UDP) etc.
TCP is a kind of communication protocol based on byte stream, in the time using TCP, need to set up point-to-point connection side by the more loaded down with trivial details flow process of three-way handshake can communicate by letter, and communicating pair needs arrange byte stream in advance, and carry out necessary dissection process, the data that first send first arrive.UDP is a kind of wireless connections communication protocol based on message, support a point-to-multipoint communication pattern, message can be by application self-defining, data transmit between recipient and sender taking message as unit, and can not bind between sender and recipient, a sender can send datagram to more than one recipient.But because data forwarding paths between network may exist many, data retransmission order-preserving completely, first sending out data may not arrive first.
In network element device, also there is the demand of data communication between different disposal node, and wish that communication is simple and reliable, between different nodes taking message as unit forwarding data, and accomplish first to send out and arrive first.
At present, in the communications field, normally carry out reliable communication based on Transmission Control Protocol.As everyone knows, TCP communication is a kind of reliable communication mode based on byte stream, and before communication, needs communicating pair to pass through " three-way handshake " to set up virtual link.And want to accomplish the order-preserving communication of Message Oriented (datagram), and also need self-defined message format thereon to realize the communication of Message Oriented, need to carry out byte stream analysis and complete the encapsulation of application message, the processing such as decapsulation.
In addition, under some scene, for example, in the LAN environment of safety, all multinode alarm reports, it is unidirectional that data send, if use TCP communication mode, not only needs complicated " three-way handshake ", also needs byte stream to change to message, expense is just very large.
To sum up, adopt TCP to carry out Message Oriented order-preserving communication between communication node, application, except setting up by complex process comparatively between communication node annexation, also needs the conversion to message by byte stream.Like this, application deals with just very inconvenient, and adopts UDP mode, cannot realize the order-preserving communication of message.
Summary of the invention
The embodiment of the present invention provides message transmitting method and equipment, in order to realize the order-preserving communication of message.
A kind of message transmitting method that the embodiment of the present invention provides, comprising:
Determine that sender applies the message that need to send to recipient to apply;
Determine the incidence relation between described sender's application and described recipient application, wherein, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
The sending order that mails to described recipient's application according to message is determined the test serial number that described message is corresponding, and stores in the message transmit queue that described incidence relation is corresponding after utilizing described test serial number to encapsulate described message; Wherein, the initial test serial number of safeguarding between described sender's application and described recipient application is identical, and definite method of test serial number is identical;
According to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described message transmit queue.
By the method, realize the order-preserving transmission of message, ensure simply and effectively between transmitting-receiving application that, in the time of multipath transmit traffic data, sender's application data message can arrive recipient's application according to the order of sequence.
Preferably, the method also comprises the step of setting up in advance the incidence relation between described sender's application and described recipient application:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
Preferably, by searching recipient's queue lists of local maintenance, determine the incidence relation between described sender's application and described recipient application.
Preferably, the method also comprises:
If there is no the incidence relation between described sender's application and described recipient application in recipient's queue lists of sender's local maintenance, in described recipient's queue lists, create a list item, need to send to the initialization sequence number of the message of described recipient's application to deposit this list item in the incidence relation between described sender's application and described recipient application and described sender application, and create the message transmit queue corresponding with this list item.
Preferably, after storing in the message transmit queue that described incidence relation is corresponding after utilizing described test serial number to encapsulate described message, the method also comprises:
By the session control port numbers between the described sender and the described recipient that make an appointment, send initialization sequence number notice message to described recipient;
Described according to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described transmit queue, comprising:
Notice after acknowledge message when receiving the initialization sequence number that described recipient returns, according to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described transmit queue.
A kind of message transmitting method that the embodiment of the present invention provides, comprising:
The message through encapsulation receiving is carried out to decapsulation, obtain the test serial number wherein carrying, wherein, this test serial number is that the sending order that sender is mail to recipient's application according to message is determined;
Determine the incidence relation between sender's application and the recipient's application that described message is corresponding, wherein, described incidence relation only comprises recipient IP address and the udp port number of described recipient's application, or, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
Determine the message transmit queue that described incidence relation is corresponding, and judge whether identical with the test serial number of described message the message of expecting the message receiving in this message transmit queue sends sequence number, if, calling the call back function of described recipient's application processes described message, otherwise, this message and corresponding test serial number thereof are stored in described message transmit queue or are abandoned.
By the method, can realize the order-preserving transmission of message, ensure simply and effectively between transmitting-receiving application that, in the time of multipath transmit traffic data, sender's application data message can arrive recipient's application according to the order of sequence.
Preferably, when the message that is greater than the message that described expectation receives when the test serial number of described message sends sequence number, this message and corresponding test serial number thereof are stored in described message transmit queue, when the message that is less than the message that described expectation receives when the test serial number of described message sends sequence number, abandon this message.
Preferably, the method also comprises the step of setting up in advance the incidence relation between described sender's application and described recipient application:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
Preferably, by searching sender's queue lists of local maintenance, determine the incidence relation between described sender's application and described recipient application.
Preferably, before receiving described message, the method also comprises:
By the session control port numbers between the sender and the recipient that make an appointment, receive the initialization sequence number notice message that described sender sends, therefrom obtain described sender's application and issue the initialization sequence number of the message of described recipient's application;
Judge and in sender's queue lists of local maintenance, whether have the incidence relation of described sender's application between applying with described recipient;
If already present described sender's application comprises that with the incidence relation between described recipient's application described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, but not yet get sender's initialization sequence number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender;
Incidence relation between the described sender's application that only comprises the recipient IP address of described recipient application and udp port number if do not exist and described recipient application, directly returns to initialization sequence number to described sender and notices confirmation failed message;
If the incidence relation between already present described sender's application and described recipient application only comprises recipient IP address and the udp port number of described recipient's application, the new incidence relation creating between described sender's application and described recipient application in sender's queue of safeguarding recipient, this incidence relation is that described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender.
A kind of message transmissions equipment that the embodiment of the present invention provides, comprising:
Message determining unit, for determining that sender applies the message that need to send to recipient to apply;
Incidence relation determining unit, for determining the incidence relation between described sender's application and described recipient application, wherein, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
Message encapsulation unit, determines for the sending order that mails to described recipient's application according to message the test serial number that described message is corresponding, and stores in the message transmit queue that described incidence relation is corresponding after utilizing described test serial number to encapsulate described message; Wherein, the initial test serial number of safeguarding between described sender's application and described recipient application is identical, and definite method of test serial number is identical;
Transmitting element, for according to described incidence relation, applies corresponding recipient according to sequencing to described recipient and sends the message in described message transmit queue.
By this equipment, realize the order-preserving transmission of message, ensure simply and effectively between transmitting-receiving application that, in the time of multipath transmit traffic data, sender's application data message can arrive recipient's application according to the order of sequence.
Preferably, described incidence relation determining unit also for:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
Preferably, described incidence relation determining unit, by searching recipient's queue lists of local maintenance, is determined the incidence relation between described sender's application and described recipient application.
Preferably, described incidence relation determining unit also for:
If there is no the incidence relation between described sender's application and described recipient application in recipient's queue lists of sender's local maintenance, in described recipient's queue lists, create a list item, need to send to the initialization sequence number of the message of described recipient's application to deposit this list item in the incidence relation between described sender's application and described recipient application and described sender application, and create the message transmit queue corresponding with this list item.
Preferably, described transmitting element, after store the message transmit queue that described incidence relation is corresponding into after described incidence relation determining unit utilizes described test serial number to encapsulate described message in, also for: by the session control port numbers between the described sender and the described recipient that make an appointment, send initialization sequence number notice message to described recipient;
Described transmitting element is according to described incidence relation, apply corresponding recipient while sending the message in described transmit queue according to sequencing to described recipient, specifically for: notice after acknowledge message when receiving the initialization sequence number that described recipient returns, according to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described transmit queue.
A kind of message transmissions equipment that the embodiment of the present invention provides, comprising:
Decapsulation unit, for the message through encapsulation receiving is carried out to decapsulation, obtains the test serial number wherein carrying, and wherein, this test serial number is that the sending order that sender is mail to recipient's application according to message is determined;
Incidence relation determining unit, for determining the incidence relation between sender's application and the recipient's application that described message is corresponding, wherein, described incidence relation only comprises recipient IP address and the udp port number of described recipient's application, or, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
Judging unit, for determining message transmit queue corresponding to described incidence relation, and judge whether identical with the test serial number of described message the message of expecting the message receiving in this message transmit queue sends sequence number, if, calling the call back function of described recipient's application processes described message, otherwise, this message and corresponding test serial number thereof are stored in described message transmit queue or are abandoned.
By this equipment, realize the order-preserving transmission of message, ensure simply and effectively between transmitting-receiving application that, in the time of multipath transmit traffic data, sender's application data message can arrive recipient's application according to the order of sequence.
Preferably, when the message that is greater than the message that described expectation receives when the test serial number of described message sends sequence number, this message and corresponding test serial number thereof are stored in described message transmit queue, when the message that is less than the message that described expectation receives when the test serial number of described message sends sequence number, abandon this message.
Preferably, described incidence relation determining unit also for:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
Preferably, described incidence relation determining unit, by searching sender's queue lists of local maintenance, is determined the incidence relation between described sender's application and described recipient application.
Preferably, described judging unit, also for:
Before receiving described message, by the session control port numbers between the sender and the recipient that make an appointment, receive the initialization sequence number notice message that described sender sends, therefrom obtain described sender's application and issue the initialization sequence number of the message of described recipient's application;
Judge and in sender's queue lists of local maintenance, whether have the incidence relation of described sender's application between applying with described recipient;
If already present described sender's application comprises that with the incidence relation between described recipient's application described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, but not yet get sender's initialization sequence number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender;
Incidence relation between the described sender's application that only comprises the recipient IP address of described recipient application and udp port number if do not exist and described recipient application, directly returns to initialization sequence number to described sender and notices confirmation failed message;
If the incidence relation between already present described sender's application and described recipient application only comprises recipient IP address and the udp port number of described recipient's application, the new incidence relation creating between described sender's application and described recipient application in sender's queue of safeguarding recipient, this incidence relation is that described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender.
Brief description of the drawings
The PSDC model schematic diagram that Fig. 1 provides for the embodiment of the present invention;
The PSDC-S composition schematic diagram that Fig. 2 provides for the embodiment of the present invention;
The ISN notice message message format schematic diagram that Fig. 3 provides for the embodiment of the present invention;
The ISN that Fig. 4 provides for the embodiment of the present invention notices acknowledge message message format schematic diagram;
The service message form schematic diagram that Fig. 5 provides for the embodiment of the present invention;
The PSDC-S packet order preserving control model schematic diagram that Fig. 6 provides for the embodiment of the present invention;
The data message that Fig. 7 provides for the embodiment of the present invention is confirmed notice message form schematic diagram;
The AR that Fig. 8 provides for the embodiment of the present invention stops notice message form schematic diagram;
The PSDC-R composition schematic diagram that Fig. 9 provides for the embodiment of the present invention;
The schematic flow sheet of a kind of message transmitting method that Figure 10 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of message transmitting method that Figure 11 provides for the embodiment of the present invention;
The structural representation of a kind of message transmissions equipment that Figure 12 provides for the embodiment of the present invention;
The structural representation of the another kind of message transmissions equipment that Figure 13 provides for the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of message transmitting method and equipment, in order to realize the order-preserving communication of message.
In data communication field, consider for reliability or large bandwidth, between two communication nodes, often have many routes or forward-path, like this, two internodal data message forwarding sequential of communication (first send first and arrive) are just difficult to ensure mutually.In addition, consider for performance, each communication node often uses polycaryon processor, and each core may receive the packet on automatic network, and so, packet arrives application and also has the incorrect possibility of message sequential.But in the time that network element distributed node is communicated by letter, have order-preserving communicating requirement, when a communication node sends datagram to other communication node, expectation can arrive in order, and the message first sending first arrives peer node.
The embodiment of the present invention proposes a kind of message and pays in order control (Packet Sequential Delivery Control, PSDC) scheme, make in network element or in some Distributed Application scene, the message order-preserving that application sends arrives named place of destination, but the interface that application is presented is still the simple communication of similar UDP.
In the given scheme of the embodiment of the present invention, between communication node, arrange in advance session control port numbers, comprise and send control port and receive control end slogan.By them, communication process entity sends requirement according to upper layer application message, set up associated (Association Relation with specified node, AR) relation, the association message of this application afterwards all forwards by UDP mode based on built incidence relation between specified node and local node.In addition, if upper layer application does not re-use the order-preserving communication service that bottom provides, can be explicit deletion associated, or communication process entity according to the maintenance timer of built association trigger automatically delete associated.
The embodiment of the present invention relates to sender (Packet Sequential Delivery Control for Sender, and two kinds of communication process entities of recipient (Packet Sequential Delivery Control for Receiver, PSDC-R) PSDC-S).Below its function is described respectively.
In the embodiment of the present invention, at PSDC-S and PSDC-R two ends, safeguard and have two lists respectively.
That PSDC-S safeguards is recipient's queue (Remote Node data Queue for receiver, RNQr) list, this list can comprise one or more list items, wherein, any one list item is for preserving the incidence relation of this PSDC-S and a PSDC-R, and mail to message transmit queue (the Sending Queue of this PSDC-R, SQ), wherein, in this SQ, preserve the message to this PSDC-R to be sent, each message correspondence one (Sequence Number that transmits Sequence Number, SN), SN is according to the sending order of message successively layout, for example, the SN of first message to be sent, be initialization sequence number (Initial Sequence Number, ISN) be 0, the SN of second message to be sent is 1, the SN of the 3rd message to be sent is 2, by that analogy.
Wherein, the initial test serial number of safeguarding between same sender application and same recipient application is identical, and test serial number increase progressively regular identically, after test serial number reaches default maximum, be set to again initial sequence number 0.
In like manner, that PSDC-R safeguards is sender's queue (Remote Node Queue for sender, RNQs) list, this list can comprise one or more list items, wherein, any one list item is for preserving the incidence relation of this PSDC-R and a PSDC-S, and this PSDC-S mails to transmit queue (the Sending Queue of the message of this PSDC-R, SQ), wherein, in this SQ, preserve the message from this PSDC-S to respective application in this PSDC-R to be reported, each message correspondence one (Sequence Number that transmits Sequence Number, SN), SN is the sending order layout successively that sends to this PSDC-R message according to this PSDC-S, for example, the SN of the message of first transmission, be initialization sequence number (Initial Sequence Number, ISN) be 0, the SN of the message of second transmission is 1, the SN of the message of the 3rd transmission is 2, by that analogy.
Wherein, the incidence relation of PSDC-R and PSDC-S, be IP address (the IP for sender of PSDC-S, and udp port number (Data Port for sender IPs), DPs), with the IP address (IP for receiver, IPr) of PSDC-R and the corresponding relation of udp port number (Data Port for receiver, DPr).
By this mechanism, ensure simply and effectively between transmitting-receiving application that, in the time of multipath transmit traffic data, sender's application data message can arrive recipient's application according to the order of sequence.
Respectively PSDC-S and PSDC-R function are described as follows.
Sender PSDC-S function:
Data sender's application, for example application (APPlication in Fig. 1, APP) #1, the transmission interface that calling PSDC-S provides sends datagram to PSDC-R, sends data and relates to local ip address (IP for sender, IPs) and udp port number (Data Port for sender, DPs), far-end IP address (IP for receiver, IPr) and udp port number (Data Port for receiver, DPr).
PSDC-S searches the RNQr list of its maintenance, and the keyword of searching is four-tuple (being called for short PSD four-tuple): IPs, DPs, IPr and DPr.
If search less than, create a list item, record above-mentioned four-tuple, and initialization sequence number (Initial Sequence Number, ISN), ISN value is 0, creates a message transmit queue (Sending Queue corresponding with aforementioned list item simultaneously, SQ), for being wanted to send datagram, APP#1 is temporarily stored into wherein after sequence number encapsulation.Simultaneously, control udp port (Control Port for sender by IPs and sender, CPs) determined socket (socket), to IPr and UDP control end slogan (Control Port for receiver in four-tuple, CPr) determined recipient initiates ISN notice message, and waits for that receiving ISN notices acknowledge message.PSDC-S is receiving from specifying after the ISN notice confirmation of PSDC-R, buffer memory message in SQ is called to bottom UDP communication interface (as the socket transmission interface of operating system (Operating System, OS)) according to aforementioned four-tuple successively to be sent.
If find, directly carry out APP#1 want to send datagram sequence number (Sequence Number, SN) encapsulation, and deposit in corresponding SQ.Packaged sequence number should be the packaged SN+1 of last data message in corresponding SQ.Be empty if corresponding SQ is current, packaged sequence number should be the SN that expects the message receiving in corresponding SQ.Need to illustrate, be empty applying transmission message and corresponding SQ current, the SN execution of the message of expectation reception in corresponding SQ need be added to an operation (being SN=SN+1).
Concrete processing referring to the associated description about recipient PSDC-S below.
Recipient PSDC-R function:
Data receiver person application, for example APP#2 in Fig. 1, to local PSDC-R registration local ip address IPr, udp port DPr, sender IP address ip s and udp port DPs are (wherein, IPs and DPs are optional), and data receiver callback interface function, if only register IPr and DPr, the object IP of the received UDP message of PSDC-R, udp port number and IPr, DPr is identical respectively, be that referable is in APP#2, otherwise, also need received UDP message source IP, udp port number, respectively with IPs, DPs mates again, only there is full matching message just to pay in APP#2.
PSDC-R receives after the ISN notice sending from PSDC-S on by IPr and the determined socket of CPr, inquire about its maintenance taking PSD four-tuple or two the tuples tuple of IPr and DPr combination (by), as whether the distant-end node (being sending node) of keyword exists occurrence in RNQs list, i.e. whether data receiver person's application registers at PSDC-R.
If there is four-tuple, but not yet get sender's initialization sequence number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender.This acknowledge message, by IPr and the determined socket of CPr, mails to the socket by IPs and the determined promoter PSDC-S of CPs by PSDC-R.
Incidence relation between the described sender's application that only comprises the recipient IP address of described recipient application and udp port number if do not exist and described recipient application, directly returns to initialization sequence number to described sender and notices confirmation failed message.
If only having two tuples (does not set up associated with sender, incidence relation between already present described sender's application and described recipient application only comprises recipient IP address and the udp port number of described recipient's application), in the RNQs finding, record the ISN specifying in ISN notice message, and PSD quaternary group information, and return to ISN to sender PSDC-S and notice confirmation response message.
PSDC-R receives the SN (being designated as SNs) that taking-up is wherein carried after the application data message of encapsulation being sent by PSDC-S on IPr and DPr.Search RNQr queue based on PSD four-tuple again, find the RNQs list item of coupling, the current SN (being designated as SNr) and the SNs that in the RNQs list item of coupling, preserve are compared, if identical, process data delivery to application APP#2 by callback interface.Otherwise, if SNs is less than SNr, abandon this application data message, if SNs is greater than SNr, deposit this application data message and corresponding SNs thereof in the list item mating with this PSD four-tuple in RNQs.
Introduce respectively composition and the concrete handling process of PSDC-S and PSDC-R below.
Sender PSDC-S:
PSDC-S is made up of two parts, and as shown in Figure 2, one is remote node bag sequence number controll block manager (RmtNodePktSeqNo Manager), and one is remote node bag sequence number controll block (RmtNodeSeqNo) list.PSDC-S, according to safeguarded remote node bag sequence number, sends message to upper layer application wish and carries out sequence number (Sequence Number, SN) encapsulation, and be sent to destination node.SN, from 0x0 (hexadecimal), is 0xFFFFFFFF (hexadecimal) to the maximum.
When PSDC-S work, first assign IP address ip s, an and local udp port number, be control end slogan CPs, for sender (Association Relation associated with recipient, AR) set up, and data message arrives and confirm to wait control class information receiving and transmitting, and provide with lower interface for upper layer application:
Registration interface (psdcsRegister), registration input content comprises IPs and DPs.After succeeding in registration, application obtains and sends instance number (SendInstance), and this SendInstance is unique in PSDC-S.
Go registration interface (psdcsDeregister), remove to register input content and comprise SendInstance, IPr and DPr.Wherein IPr and DPr are optional.If there is not option, from PSDC – S, remove the relevant AR that with IPs and DPs be element corresponding with SendInstance, wherein AR is by the well-determined transceiver communication entity pair of IPs, DPs, IPr and DPr, and notice the PSDC – R of these AR, by IPr and the well-determined PSDC-R of DPr, remove corresponding reception control example, i.e. the controll block relevant to informant PSDC-S, the such as information such as receiving queue, state machine.If there is option, only remove the associated AR jointly being determined with IPr, DPr by SendInstance, and notice the PSDC – R of this AR, remove corresponding received communication processing entities.
Transmission interface (psdcsSend), its input content comprises SendInstance, IPr and DPr, and data to be sent (DataBlock), data length to be sent (DataLen).Application is used this interface to send business datum to specified node.
Query interface (psdcsQuery), its input content comprises SendInstance, IPr and DPr, and returns to corresponding A R current state.Application can be used the inquiry of this interface and institute to be concerned about the incidence relation state between node, as the reference of applying the control of transmission message frequency.
PSDC-S carries out following process:
Step 1: receive application registration
In the time that upper layer application is called PSDC-S registration interface psdcsRegister execution IPs and DPs registration, PSDC-S is that it distributes SendInstance mark (4 byte integer) unique within the scope of PSDC-S, the SendInstance that record distributes simultaneously and the corresponding relation of IPs, DPs.
Step 2: receive applied business data
After application registration, while calling psdcsSend interface transmission data, SendInstance, IPr and DPr (be essentially IPs, DPs, IPr, DPr four-tuple, be called for short PSD four-tuple) are preserved (if the words of not preserving before this four-tuple) by PSDC-S.PSD four-tuple is as bag sequence number controll block index.
If PSD four-tuple does not exist, initiate registration (being ISN Notification message) to inform its ISN to the control port CPr (socket being determined by IPr and CPr) of destination node PSDC-R, and receive ISN notice confirmation (Notification Acknowledgement) message from destination node, complete the foundation of AR between PSDC-S and PSDC-R.Concrete message is as described below:
ISN notice message (ISN Notification) comprising:
Local IPs and udp port DPs;
Far-end IP r and udp port DPr;
Serial number mark (Identifier) (this ISN notice message of unique identification);
ISN。
Optionally, ISN notice message (ISN Notification) can also comprise: PSDC-R carries out the frequency parameter of data message confirmation, i.e. duration interval (AckInterval) and message accumulated quantity (AckPktAmount) between twice confirmation message.
The form of concrete ISN notice message (ISN Notification) as shown in Figure 3.
Wherein:
Type of message (MessageType, MT): 1 byte, value 1.
IP address version (IPV): 1 byte, represents the IP address (IPV4) of edition 4 when value 4; When value 6, represent the IP address (IPV6) of version 6.
Mark (Identifier): ISN of unique identification notices.Different between twice continuous ISN notices, PSDC-S notices the corresponding relation of acknowledge message with a pair of ISN notice of this unique identification, ISN.
PSDC-S side IP address (SIP1~SIP4): if IPV=4 only exists SIP1, SIP2, SIP3 and SIP4 are indifferent to; If IPV=6, SIP1~SIP4 is all effective.
PSDC-R side IP address (RIP1~RIP4): if IPV=4 only exists RIP1, RIP2, RIP3 and RIP4 are indifferent to; If IPV=6, SIP1~SIP4 is all effective.
PSDC-S side data port (DPs): 2 bytes.
PSDC-R side data port (DPr): 2 bytes.
The initial test serial number (ISN) that PSDC-S determines: 4 bytes.
Maximum duration interval (AckInterval) between twice confirmation message: byte.
The message accumulated quantity (AckPktAmount) that between twice confirmation message, PSDC-R receives: 4 bytes.
ISN notices acknowledge message (ISN Notification Acknowledgement) and comprising: local IPs and DPs, far-end IP r and DPr, and Identifier.Its form as shown in Figure 4.
Wherein,
Type of message (MessageType, MT): 1 byte, value 2.
IP address version (IPV): 1 byte, represents the IP address (IPV4) of edition 4 when value 4; When value 6, represent the IP address (IPV6) of version 6.
Mark (Identifier): ISN of unique identification notices.Information field backfill of the same name during PSDC-R notices according to the ISN receiving.
PSDC-S side IP address (SIP1~SIP4): if IPV=4 only exists SIP1, SIP2, SIP3 and SIP4 are indifferent to; If IPV=6, SIP1~SIP4 is all effective.
PSDC-R side IP address (RIP1~RIP4): if IPV=4 only exists RIP1, RIP2, RIP3 and RIP4 are indifferent to; If IPV=6, SIP1~SIP4 is all effective.
PSDC-S side data port (DPs): 2 bytes.
PSDC-R side data port (DPr): 2 bytes.
Whether PSDC-R side successfully sets up the result (Rst) associated with PSDC-S: 4 bytes.For example: value 0 represents successfully.Value is non-zero to be represented unsuccessfully, and wherein, value 1 represents that application does not exist; Value 2 represents that association exists.
If PSD four-tuple exists, the transmission of message after carrying out message encapsulation according to the corresponding RmtNodeSeqNo of this PSD four-tuple and completing encapsulation.
Particularly, application data message packaged type is that the UDP datagram the end of writing of submitting at APP#1 is hot on the trail of and is added SN field (4 byte), and upgrades former message length (Datagram Length, DL) be (DL+4) byte, specifically as shown in Figure 5.
It should be noted that: this message sends as UDP message payload.In view of UDP basic communication is existing a kind of communication mode, therefore repeat no more.
For ensureing to send message order, carry out queue management to sending message.Particularly, PSDC-S confirms to send message queue according to the message of PSDC-R and goes out team's operation.If there is confirmation message incorrect order, wouldn't carry out out team operation, until corresponding confirmation message is from being received by IPs and the definite socket of CPs, or application stops this communication by force, or till the communication keep-alive timer expiry of specifying.
Below provide PSDC-S and send control strategy.
When application call PSDC-S transmission interface psdcsSend sends datagram, PSDC-S is handling after message encapsulation process, directly to send or be temporarily stored into RNQs queue, depend on that timer duration is transmission control timer (the Sending Control Timer of latency period between twice transmission (Twait), whether SCT) whether overtime, or to be sent queuing data message amount arrives the accumulative total transmission message amount (Atrig) that triggers a process of transmitting.As long as the arbitrary condition in above-mentioned two conditions meets, carry out and send.But one-time continuous sends message amount and is no more than one-time continuous transmission message amount (Acont), call the message amount that bottom UDP message transmission interface sends continuously.
It should be noted that: if when in one-time continuous process of transmitting occur send unsuccessfully, stop immediately this transmission.The data message not sending is waited until follow-up transmission.
Receive from PSDC-R and expect SN, expectation message when PSDC-R asserts incorrect order by CPs.If it is 0 that PSDC-R without incorrect order, puts incorrect order mark (DisorderFlag), be 1 otherwise put it.Meanwhile, obtain PSDC-R reception buffer zone size, as the reference of its transmission Data Control.
PSDC-S receives the confirmation of PSDC-R and notices after (Ack Notification) (wherein carrying incorrect order message retransmission of information), retransmits the message between ExpPtr to DisorderPtr.The sending strategy of retransmitting message is identical with normal message sending strategy.
It is as described below that concrete PSDC-S sends control.For not yet by PSDC-R confirm (not yet receiving the acknowledge message that has sent message) message list as shown in Figure 6.
In Fig. 6, in the SQ queue that AckPtr represents to be determined by PSD four-tuple in the RNQs of PSDC-S, first want the test serial number being identified; ExpPtr represents that PSDC-R expects the test serial number receiving; WrtPtr represents the test serial number that the PSDC-S next one is wanted to be buffered; MaxPtr represents the current receivable up-to-date test serial number of PSDC-R.It changes along with the variation of ExpPtr.Between ExpPtr and MaxPtr, message number is no more than 0XFFFFFFFF/2.
It should be noted that, under normal circumstances, the test serial number AckPtr mentioning in Fig. 6 is less than or equal to WrtPtr, and ExpPtr is less than or equal to MaxPtr.But arrive after 0XFFFFFFFF along with test serial number increases progressively, just unroll to 0.Like this, just exist ExpPtr to be greater than MaxPtr, AckPtr is greater than the situation of WrtPtr.
For above-mentioned situation, for PSDC-S, test serial number scope to be confirmed is:
In the time that AckPtr is less than or equal to WrtPtr,
[AckPtr,WrtPtr]=(AckPtr~WrtPtr);
Or in the time that AckPtr is more than or equal to WrtPtr,
[AckPtr,WrtPtr]=(AckPtr~0XFFFFFFFF,0~WrtPtr)。
Think that PSDC-R can receive test serial number scope and be:
In the time that ExpPtr is less than or equal to MaxPtr,
[ExpPtr,MaxPtr]=(ExpPtr~MaxPtr);
In the time that ExpPtr is more than or equal to MaxPtr,
[ExpPtr,MaxPtr]=(ExpPtr~0XFFFFFFFF,0~MaxPtr)。
In the time receiving Ack Notification, retransmit appointed sequence number section message.Concrete message acknowledge message (Ack Notification) comprises IPs, DPs, IPr and DPr, and expect first test serial number ExpPtr and the quantity (Amnt) of one or more messages of retransmitting, and PSDC-R about this AR can receipt message number (Br).Br can be sent by PSDC-S the reference of controlling as user data message.Be whether PSDC-S retransmits message and start and depend on whether Br is greater than zero.
This message is mail to the socket of the PSDC-S being determined by IPs and CPs by the socket being determined by IPr and CPr by PSDC-R.Data message confirm notice message (Ack Notification) message format as shown in Figure 7, wherein,
Type of message (MessageType, MT): 1 byte, value 3.
IP address version (IPV): 1 byte, represents the IP address (IPV4) of edition 4 when value 4; When value 6, represent the IP address (IPV6) of version 6.
Whether detect message incorrect order (Disorder Flag, DF) at PSDC-R: DF value 0 indicates without incorrect order; DF value 1 represents incorrect order.
Reserve bytes (RSVD) a: byte.
SIP1~SIP4, represents PSDC-S side IP address.If IPV=4, only exists SIP1, SIP2, SIP3 and SIP4 are indifferent to; If IPV=6, SIP1~SIP4 is all effective.
RIP1~RIP4, represents PSDC-R side IP address.If IPV=4, only exists RIP1, RIP2, RIP3 and RIP4 are indifferent to; If IPV=6, SIP1~SIP4 is all effective.
PSDC-S side data port (DPs): 2 bytes.
PSDC-R side data port (DPr): 2 bytes.
What PSDC-R expected treats receiving data packets sequence number (ExpPtr): 4 bytes.
PSDC-R expects to treat retransmission data message amount (Amnt), the i.e. continuous message amount of sequence number in the time that ExpPtr sequence number is opened.
The buffer size (Br) that PSDC-R determines for PSD four-tuple, can receive message amount at that time.
When ExpPtr in the Ack Notification message of receiving is for expecting to receive test serial number, wherein Amnt=0, shows that PSDC-R arrives without new message.
If ExpPtr equals WPtr, do not process.
If ExpPtr drops on the interval being determined by [AckPtr, WPtr], upgrading AckPtr is ExpPtr, and,
(a) if Amnt=0, PSDC-S sends and is positioned at message between [AckPtr, WrPtr].
(b) if Amnt>0, PSDC-S retransmits and is positioned at message between [AckPtr, MaxPtr].
Wherein, MaxPtr=(ExpPtr+Amnt) %0x100000000.
Step 3: whether the cycle is surveyed PSDC-R heartbeat normal.
According to and PSDC-R between the data message confirmation of receipt cycle request of specifying while setting up AR, start-up period timer checks that whether PSDC-R normal.
The Ack Notification message of basis for estimation: PSDC-R fails to receive in interval (Twait) at the appointed time, and receives not yet for continuous three times, thinks that PSDC-R is abnormal.
If judge, PSDC-R heartbeat is abnormal, thinks that PSDC-R restarts, and PSDC-S removes buffer memory message in relevant RNQs, again attempts ISN and notices, and recovers AR.
Step 4: reception should spend registration, or know the unreachable AR of closing of PSDC-R.
PSDC-S carries out corresponding AR shutoff operation under following situation:
Application request is closed and is specified AR;
The unreachable Preset Time that exceedes of PSDC-R, the service message acknowledging time AckInterval that PSDC-S expects;
Receive from the AR of PSDC-R and stop noticing (AR Terminiation Notification).
The AR that PSDC-S initiates to PSDC-R stops noticing (AR Termination Notification), comprises the PSD quaternary group information that closed AR is corresponding.The form of AR termination notice message as shown in Figure 8.
Wherein,
Type of message (MessageType, MT): 1 byte, value 4.
IP address version (IPV): 1 byte, represents the IP address (IPV4) of edition 4 when value 4; When value 6, represent the IP address (IPV6) of version 6.
PSDC-S stops the reason (Cause) of incidence relation, for example: value 1 represents that upper layer application shows and closes; Value 2 represents to detect PSDC-R and has exceeded the default keep-alive time.
Reserve bytes (RSVD) a: byte.
SIP1~SIP4, represents PSDC-S side IP address.If IPV=4, only exists SIP1, be indifferent to SIP2, SIP3 and SIP4; If IPV=6, SIP1~SIP4 is all effective.
RIP1~RIP4, represents PSDC-R side IP address.If IPV=4, only exists RIP1, be indifferent to RIP2, RIP3 and RIP4; If IPV=6, SIP1~SIP4 is all effective.
PSDC-S side data port (DPs): 2 bytes.
PSDC-R side data port (DPr): 2 bytes.
It should be noted that: PSDC-R, in the time knowing that a certain recipient's example (example being determined by PSD four-tuple) does not exist, also notices PSDC-S.The AR that PSDC-R sends to PSDC-S stops noticing identical with above-mentioned message format.
Introduce composition and the concrete handling process of recipient PSDC-R below:
PSDC-R is made up of two parts, and as shown in Figure 9, a part is distant-end node state machine management (RmtNodeFSM Scheduler), and another part is distant-end node state machine (RmtNodeFSM) list.
The ISN that RmtNodeFSM Scheduler initiates according to the far-end (sender) receiving notices the PSD quaternary group information that request is carried, the corresponding RmtNodeFSM of dynamic creation.A RmtNodeFSM determines by PSD four-tuple is unique.
First PSDC-R assigns local ip address IPr and a local udp port number when work, i.e. control end slogan CPr, and for the foundation of AR between recipient and sender, and data message arrives the control message transmitting-receivings such as confirmation.In addition, for upper layer application provides with lower interface:
Registration interface psdcrRegister, registration input content comprises that IPr, DPr, IPs, DPs and application data receive call back function AppRecvCallback.Wherein IPs, DPs are optional.PSDC-R is that PSD four-tuple or two tuples (by the definite tuple of IPr, DPr) decide from the message of PSDC-S and deliver application mode according to application registration.
Remove registration interface psdcrDeregister, remove to register input content and comprise IPr, DPr, IPs, DPs, wherein IPs, DPs are optional.This interface of application call can be closed the AR being determined by IPr, DPr, IPs, DPs, or the AR of IPr, DPr decision.
PSDC-R carries out following handling process:
Step 1: receive application registration.
Complete the appointment of the receivable IPr of PSDC-R, DPr, IPs and DPs, and the record of the call back function of application reception data, and carry out the corresponding socket of IPr, DPr, IPs and DPs and set up, in order to therefrom receiving the application data of sending from PSDC-S.
Step 2: receive the ISN request of PSDC-S.
PSDC-R, receiving while noticing (ISN Notification) from the ISN of PSDC-S, creates a new RmtNodeFSM.Prerequisite is that the IPr specifying in notice and DPr register at PSDC-R, and are not existed by the RmtNodeFSM that in ISN Notification, PSD four-tuple determines.Meanwhile, return to ISN Notification Acknowledgement response message to PSDC-S.Described in specific as follows:
Receive after the ISN Notification from PSDC-S, whether register according to the application in request, to determine filling in of ISN Notification Acknowledgement message.
If the application of ISN request is unregistered, return to unsuccessfully ISN Notification Acknowledgement message to promoter, wherein carry failure cause for " application does not exist ".
If the application of ISN request is registered, and the RmtNodeFSM that PSD four-tuple determines exists, returns to unsuccessfully ISN Notification Acknowledgement message to promoter, wherein carries failure cause for " association exists ".
If the application of ISN request is registered, and the RmtNodeFSM that PSD four-tuple determines do not exist, and returns to successfully ISN Acknowledgement message to promoter.And, from ISN, be retrieved as the frequency parameter that PSDC-R specific data message is confirmed, i.e. duration interval AckInterval and message accumulated quantity AckPktAmount value between twice confirmation message.
Need explanation, with after PSDC-S completes ISN and synchronize, timing or quantitatively to its transmission AckNotification.Even without message to be confirmed, also need to send out Ack Notification message, survey for heartbeat between PSDC-R and PSDC-S.
Below the RmtNodeFSM course of work is described.
RmtNodeFSM relates to two states: pay ready state (DeliverReady) and entangle order (AdjustSeq).DSDC-R creates RmtNodeFSM receiving after the ISN Notification of PSDC-S, and makes it in DeliverReady state.Below DeliverReady, AdjustSeq are described respectively.
DeliverReady state:
Under this state, if receive while being from the data message sequence number of DSCP-S the ExpPtr expecting, can be paid application, state remains unchanged.
If receive while stopping noticing (Terminiation Notification) from the AR of DSCP-S, remove this RmtNodeFSM.
DSDC-R, in the time of the non-desired sequence number of the data message sequence number that receives PSDC-S (ExpPtr), starts and entangles order timer (DisorderAdjTimer), and enter AdjustSeq state.
AdjustSeq state:
After DisorderAdjTimer is overtime, initiate message re-send request may to PSDC-S, in Ack Notification, carry the message (concrete message is referring to above stated specification) of expecting repeating transmission.RmtNodeFSM current state remains unchanged.
If receive the unexpected message from PDSC-S, but test serial number is effective, be cached in the reception buffer zone (Receiving Buffer, RB) of corresponding AR.If test serial number is invalid, directly abandon.RmtNodeFSM current state remains unchanged.
If the message receiving is the expectation message from PSDC-S, in the time receiving this message, stop DisorderAdjTimer timer, and insert the RB stem of corresponding AR, from RB stem, the data receiver call back function that calls application registration for each continuous message, consigns to application by message, removes in RB delivered to the buffer memory message of application simultaneously.Until test serial number is discontinuous in RB, or till RB is sky.
If occur, in RB, test serial number is discontinuous, and upgrading current expectation test serial number is the next one expectation test serial number while there is discontinuous test serial number in RB, and sends Ack Notification to PSDC-S.Wherein, retransmitting message amount is to expect test serial number and occur the earliest the number of message between discontinuous test serial number or the maximum of the setting processing section of (specifically see following " receiving data packets " described in).Meanwhile, restart DisorderAdjTimer timer, timer duration is calculated according to mode described in the processing section of following " receiving data packets ".RmtNodeFSM current state remains unchanged.
If RB is empty, RmtNodeFSM current state migrates to DeliverReady.
Step 3: receiving data packets.
Receiving that test serial number is to expect after sequence number (ExpPtr), upgrades and expects that test serial number (ExpPtr) is current sequence number+1 (being ExpPtr=ExpPtr+1), and will receive that message consigns to application.
Receiving after the unexpected sequence number ExpPtr of test serial number, need to start packet loss or out of order adjustment timer (Disorder AdjTimer), its duration (Disorder AdjInterval) is determined in such a way.
Consider and occur after message incorrect order, perhaps expect that message arrives immediately, therefore, the time of time delay (DisorderPtr-ExpPtr) * Tref before PSDC-R request repeat is expected message.?
Disorder?AdjInterval=(DisorderPtr-ExpPtr)×Tsr
Wherein,
DisorderPtr represents the incorrect order message SN receiving after the last normal confirmation.
ExpPtr represents the data message sequence number that PSDC-R is desired.
Tsr represents that user data message transmits the reference time between PSDC-S and PSDC-R, is defaulted as 50ms, can be according to actual conditions adjustment.
Processing after below DisorderAdjTimer timer being started provides explanation.
If before DisorderAdjTimer overtime, receive and expect message (being that test serial number is the message of ExpPtr), delete timer, renewal ExpPtr is ExpPtr+1, and will receive that message consigns to application.
If overtime, send Ack Notification to PSDC-S, wherein carry PSDC-R and think that loss needs the message information that PSDC-S retransmits to be, expect that test serial number (ExpPtr) and continuous message amount (Amnt) are to PSDC-S, request the latter retransmits appointed sequence number section message.Wherein, Amnt refers to and expects message amount between test serial number and incorrect order message smallest sequence number (DisorderPtr).Considering that incorrect order may cause a large amount of unnecessary re-transmissions while generation, in the time that PSDC-R sends AckNotification message, control Amnt maximum, for example, is 10,20 etc.
Step 4: Ack Notification message sends.
By CPr port regular (to be not more than the data message acknowledging time carrying in the ISN Notification of PSDC-S transmission as the cycle) or quantitatively to PSDC-S transmission Ack Notification message, with notice, PSDC-S self expects test serial number (ExpPtr), need continuous message (sequence number of message is from ExpPtr the continuously) quantity (Amnt) of retransmitting, current receive buffer district size (Br).If PSDC-R without incorrect order, puts incorrect order mark DF, (Disorder Flag) is 0, is 1 otherwise put it.Ack Notification message format as shown in Figure 7.
Step 5: reception should spend registration or ask to close AR from PSDC-S.
Recipient's application request is closed one group of example (one group of example jointly being determined by IPr and DPr), or when particular instance (example being determined by PSD four-tuple), PSDC-R closes corresponding A R, and sends AR Terminiation Notification message to corresponding PSDC-S simultaneously.
Or receive while stopping noticing AR Terminiation Notification (comprising PSD quaternary group information corresponding to closed AR) from the AR of PSDC-S, close corresponding A R.It should be noted that, the AR being triggered by a certain PSDC-S closes, and the business that does not affect other PSDC-S and this PSDC-R sends.
To sum up, referring to Figure 10, at transmitting terminal, a kind of message transmitting method that the embodiment of the present invention provides, comprising:
S101, determine that sender applies the message that need to send to recipient to apply;
S102, determine described sender application and the described recipient incidence relation between applying, wherein, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
S103, the sending order that mails to described recipient application according to message are determined the test serial number that described message is corresponding, and are stored in the message transmit queue that described incidence relation is corresponding after utilizing described test serial number to encapsulate described message; Wherein, the initial test serial number of safeguarding between described sender's application and described recipient application is identical, and definite method of test serial number is identical;
S104, according to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described message transmit queue.
Preferably, the method also comprises the step of setting up in advance the incidence relation between described sender's application and described recipient application:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
Preferably, by searching recipient's queue lists of local maintenance, determine the incidence relation between described sender's application and described recipient application.
Preferably, the method also comprises:
If there is no the incidence relation between described sender's application and described recipient application in recipient's queue lists of sender's local maintenance, in described recipient's queue lists, create a list item, need to send to the initialization sequence number of the message of described recipient's application to deposit this list item in the incidence relation between described sender's application and described recipient application and described sender application, and create the message transmit queue corresponding with this list item.
Preferably, after storing in the message transmit queue that described incidence relation is corresponding after utilizing described test serial number to encapsulate described message, the method also comprises:
By the session control port numbers between the described sender and the described recipient that make an appointment, send initialization sequence number notice message to described recipient;
Described according to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described transmit queue, comprising:
Notice after acknowledge message when receiving the initialization sequence number that described recipient returns, according to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described transmit queue.
Correspondingly, at receiving terminal, referring to Figure 11, a kind of message transmitting method that the embodiment of the present invention provides, comprises step:
S201, the message through encapsulation receiving is carried out to decapsulation, obtain the test serial number wherein carrying, wherein, this test serial number sending order that to be sender mail to recipient's application according to message is determined;
S202, determine sender corresponding to described message application and the recipient incidence relation between applying, wherein, described incidence relation only comprises recipient IP address and the udp port number of described recipient's application, or, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
S203, determine the message transmit queue that described incidence relation is corresponding, and judge whether identical with the test serial number of described message the message of expecting the message receiving in this message transmit queue sends sequence number, if, calling the call back function of described recipient's application processes described message, otherwise, this message and corresponding test serial number thereof are stored in described message transmit queue or are abandoned.
Preferably, when the message that is greater than the message that described expectation receives when the test serial number of described message sends sequence number, this message and corresponding test serial number thereof are stored in described message transmit queue, when the message that is less than the message that described expectation receives when the test serial number of described message sends sequence number, abandon this message.
Preferably, the method also comprises the step of setting up in advance the incidence relation between described sender's application and described recipient application:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
Preferably, by searching sender's queue lists of local maintenance, determine the incidence relation between described sender's application and described recipient application.
Preferably, before receiving described message, the method also comprises:
By the session control port numbers between the sender and the recipient that make an appointment, receive the initialization sequence number notice message that described sender sends, therefrom obtain described sender's application and issue the initialization sequence number of the message of described recipient's application;
Judge and in sender's queue lists of local maintenance, whether have the incidence relation of described sender's application between applying with described recipient;
If already present described sender's application comprises that with the incidence relation between described recipient's application described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, but not yet get sender's initialization sequence number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender;
Incidence relation between the described sender's application that only comprises the recipient IP address of described recipient application and udp port number if do not exist and described recipient application, directly returns to initialization sequence number to described sender and notices confirmation failed message;
If the incidence relation between already present described sender's application and described recipient application only comprises recipient IP address and the udp port number of described recipient's application, the new incidence relation creating between described sender's application and described recipient application in sender's queue of safeguarding recipient, this incidence relation is that described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender.
Correspondingly, referring to Figure 12, at transmitting terminal, a kind of message transmissions equipment that the embodiment of the present invention provides, comprising:
Message determining unit 11, for determining that sender applies the message that need to send to recipient to apply;
Incidence relation determining unit 12, for determining the incidence relation between described sender's application and described recipient application, wherein, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
Message encapsulation unit 13, determine for the sending order that mails to described recipient's application according to message the test serial number that described message is corresponding, and store in the message transmit queue that described incidence relation is corresponding after utilizing described test serial number to encapsulate described message; Wherein, the initial test serial number of safeguarding between described sender's application and described recipient application is identical, and definite method of test serial number is identical;
Transmitting element 14, for according to described incidence relation, applies corresponding recipient according to sequencing to described recipient and sends the message in described message transmit queue.
Preferably, described incidence relation determining unit 12 also for:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
Preferably, described incidence relation determining unit 12, by searching recipient's queue lists of local maintenance, is determined the incidence relation between described sender's application and described recipient application.
Preferably, described incidence relation determining unit 12 also for:
If there is no the incidence relation between described sender's application and described recipient application in recipient's queue lists of sender's local maintenance, in described recipient's queue lists, create a list item, need to send to the initialization sequence number of the message of described recipient's application to deposit this list item in the incidence relation between described sender's application and described recipient application and described sender application, and create the message transmit queue corresponding with this list item.
Preferably, described transmitting element 14, after store the message transmit queue that described incidence relation is corresponding into after described incidence relation determining unit 12 utilizes described test serial number to encapsulate described message in, also for: by the session control port numbers between the described sender and the described recipient that make an appointment, send initialization sequence number notice message to described recipient;
Described transmitting element 14 is according to described incidence relation, apply corresponding recipient while sending the message in described transmit queue according to sequencing to described recipient, specifically for: notice after acknowledge message when receiving the initialization sequence number that described recipient returns, according to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described transmit queue.
Referring to Figure 13, a kind of message transmissions equipment that the embodiment of the present invention provides, comprising:
Decapsulation unit 21, for the message through encapsulation receiving is carried out to decapsulation, obtains the test serial number wherein carrying, and wherein, this test serial number is that the sending order that sender is mail to recipient's application according to message is determined;
Incidence relation determining unit 22, for determining the incidence relation between sender's application and the recipient's application that described message is corresponding, wherein, described incidence relation only comprises recipient IP address and the udp port number of described recipient's application, or, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
Judging unit 23, for determining message transmit queue corresponding to described incidence relation, and judge whether identical with the test serial number of described message the message of expecting the message receiving in this message transmit queue sends sequence number, if, calling the call back function of described recipient's application processes described message, otherwise, this message and corresponding test serial number thereof are stored in described message transmit queue or are abandoned.
Preferably, when the message that is greater than the message that described expectation receives when the test serial number of described message sends sequence number, this message and corresponding test serial number thereof are stored in described message transmit queue, when the message that is less than the message that described expectation receives when the test serial number of described message sends sequence number, abandon this message.
Preferably, described incidence relation determining unit 22 also for:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
Preferably, described incidence relation determining unit 22, by searching sender's queue lists of local maintenance, is determined the incidence relation between described sender's application and described recipient application.
Preferably, described judging unit 23, also for:
Before receiving described message, by the session control port numbers between the sender and the recipient that make an appointment, receive the initialization sequence number notice message that described sender sends, therefrom obtain described sender's application and issue the initialization sequence number of the message of described recipient's application;
Judge and in sender's queue lists of local maintenance, whether have the incidence relation of described sender's application between applying with described recipient;
If already present described sender's application comprises that with the incidence relation between described recipient's application described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, but not yet get sender's initialization sequence number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender;
Incidence relation between the described sender's application that only comprises the recipient IP address of described recipient application and udp port number if do not exist and described recipient application, directly returns to initialization sequence number to described sender and notices confirmation failed message;
If the incidence relation between already present described sender's application and described recipient application only comprises recipient IP address and the udp port number of described recipient's application, the new incidence relation creating between described sender's application and described recipient application in sender's queue of safeguarding recipient, this incidence relation is that described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender.
In sum, the scheme that uses the present invention to propose, can simply effectively ensure between transmitting-receiving application that, in the time of multipath transmit traffic data, sender's application data message can arrive recipient's application according to the order of sequence.Control message and business datum forward by different udp ports, so, under network generation congestion situation, can be conveniently by configuring QOS scheduling controlling strategy (as carried out QOS queue setting based on source order IP and udp port etc.) at middle switching node, thereby ensure that control message preferentially forwards, avoid as far as possible business datum to confirm notice message message dropping and a large amount of unnecessary business datum message that causes retransmits.Business datum transmitting-receiving incidence relation proposed by the invention is set up and only between sending and receiving person, is carried out request and the confirmation that a time business datum sends sequence number.This application scenarios that one way traffic order-preservings such as above-mentioned alarm report are forwarded is more applicable.And the scene of communicating by letter for two-way order-preserving only need be disposed transmission-receiving function module on the node of wish communication simultaneously.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the present invention can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) that wherein include computer usable program code.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computer or other programmable data processing device produces the device for realizing the function of specifying at flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame on computer or other programmable devices.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (20)

1. a message transmitting method, is characterized in that, the method comprises:
Determine that sender applies the message that need to send to recipient to apply;
Determine the incidence relation between described sender's application and described recipient application, wherein, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
The sending order that mails to described recipient's application according to message is determined the test serial number that described message is corresponding, and stores in the message transmit queue that described incidence relation is corresponding after utilizing described test serial number to encapsulate described message; Wherein, the initial test serial number of safeguarding between described sender's application and described recipient application is identical, and definite method of test serial number is identical;
According to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described message transmit queue.
2. method according to claim 1, is characterized in that, the method also comprises the step of setting up in advance the incidence relation between described sender's application and described recipient application:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
3. method according to claim 1, is characterized in that, by searching recipient's queue lists of local maintenance, determines the incidence relation between described sender's application and described recipient application.
4. method according to claim 3, is characterized in that, the method also comprises:
If there is no the incidence relation between described sender's application and described recipient application in recipient's queue lists of sender's local maintenance, in described recipient's queue lists, create a list item, need to send to the initialization sequence number of the message of described recipient's application to deposit this list item in the incidence relation between described sender's application and described recipient application and described sender application, and create the message transmit queue corresponding with this list item.
5. method according to claim 4, is characterized in that, after storing in the message transmit queue that described incidence relation is corresponding after utilizing described test serial number to encapsulate described message, the method also comprises:
By the session control port numbers between the described sender and the described recipient that make an appointment, send initialization sequence number notice message to described recipient;
According to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described transmit queue, comprising:
Notice after acknowledge message when receiving the initialization sequence number that described recipient returns, according to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described transmit queue.
6. a message transmitting method, is characterized in that, the method comprises:
The message through encapsulation receiving is carried out to decapsulation, obtain the test serial number wherein carrying, wherein, this test serial number is that the sending order that sender is mail to recipient's application according to message is determined;
Determine the incidence relation between sender's application and the recipient's application that described message is corresponding, wherein, described incidence relation only comprises recipient IP address and the udp port number of described recipient's application, or, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
Determine the message transmit queue that described incidence relation is corresponding, and judge whether identical with the test serial number of described message the message of expecting the message receiving in this message transmit queue sends sequence number, if, calling the call back function of described recipient's application processes described message, otherwise, this message and corresponding test serial number thereof are stored in described message transmit queue or are abandoned.
7. method according to claim 6, it is characterized in that, when the message that is greater than the message that described expectation receives when the test serial number of described message sends sequence number, this message and corresponding test serial number thereof are stored in described message transmit queue, when the message that is less than the message that described expectation receives when the test serial number of described message sends sequence number, abandon this message.
8. method according to claim 6, is characterized in that, the method also comprises the step of setting up in advance the incidence relation between described sender's application and described recipient application:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
9. method according to claim 6, is characterized in that, by searching sender's queue lists of local maintenance, determines the incidence relation between described sender's application and described recipient application.
10. method according to claim 9, is characterized in that, before receiving described message, the method also comprises:
By the session control port numbers between the sender and the recipient that make an appointment, receive the initialization sequence number notice message that described sender sends, therefrom obtain described sender's application and issue the initialization sequence number of the message of described recipient's application;
Judge and in sender's queue lists of local maintenance, whether have the incidence relation of described sender's application between applying with described recipient;
If already present described sender's application comprises that with the incidence relation between described recipient's application described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, but not yet get sender's initialization sequence number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender;
Incidence relation between the described sender's application that only comprises the recipient IP address of described recipient application and udp port number if do not exist and described recipient application, directly returns to initialization sequence number to described sender and notices confirmation failed message;
If the incidence relation between already present described sender's application and described recipient application only comprises recipient IP address and the udp port number of described recipient's application, the new incidence relation creating between described sender's application and described recipient application in sender's queue of safeguarding recipient, this incidence relation is that described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender.
11. 1 kinds of message transmissions equipment, is characterized in that, this equipment comprises:
Message determining unit, for determining that sender applies the message that need to send to recipient to apply;
Incidence relation determining unit, for determining the incidence relation between described sender's application and described recipient application, wherein, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
Message encapsulation unit, determines for the sending order that mails to described recipient's application according to message the test serial number that described message is corresponding, and stores in the message transmit queue that described incidence relation is corresponding after utilizing described test serial number to encapsulate described message; Wherein, the initial test serial number of safeguarding between described sender's application and described recipient application is identical, and definite method of test serial number is identical;
Transmitting element, for according to described incidence relation, applies corresponding recipient according to sequencing to described recipient and sends the message in described message transmit queue.
12. equipment according to claim 11, is characterized in that, described incidence relation determining unit also for:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
13. equipment according to claim 11, is characterized in that, described incidence relation determining unit, by searching recipient's queue lists of local maintenance, is determined the incidence relation between described sender's application and described recipient application.
14. equipment according to claim 13, is characterized in that, described incidence relation determining unit also for:
If there is no the incidence relation between described sender's application and described recipient application in recipient's queue lists of sender's local maintenance, in described recipient's queue lists, create a list item, need to send to the initialization sequence number of the message of described recipient's application to deposit this list item in the incidence relation between described sender's application and described recipient application and described sender application, and create the message transmit queue corresponding with this list item.
15. equipment according to claim 14, it is characterized in that, described transmitting element, after store the message transmit queue that described incidence relation is corresponding into after described incidence relation determining unit utilizes described test serial number to encapsulate described message in, also for: by the session control port numbers between the described sender and the described recipient that make an appointment, send initialization sequence number notice message to described recipient;
Described transmitting element is according to described incidence relation, apply corresponding recipient while sending the message in described transmit queue according to sequencing to described recipient, specifically for: notice after acknowledge message when receiving the initialization sequence number that described recipient returns, according to described incidence relation, apply corresponding recipient according to sequencing to described recipient and send the message in described transmit queue.
16. 1 kinds of message transmissions equipment, is characterized in that, this equipment comprises:
Decapsulation unit, for the message through encapsulation receiving is carried out to decapsulation, obtains the test serial number wherein carrying, and wherein, this test serial number is that the sending order that sender is mail to recipient's application according to message is determined;
Incidence relation determining unit, for determining the incidence relation between sender's application and the recipient's application that described message is corresponding, wherein, described incidence relation only comprises recipient IP address and the udp port number of described recipient's application, or, described incidence relation comprises: described sender applies corresponding sender IP address and udp port number, with the corresponding relation of the recipient IP address of described recipient application and udp port number;
Judging unit, for determining message transmit queue corresponding to described incidence relation, and judge whether identical with the test serial number of described message the message of expecting the message receiving in this message transmit queue sends sequence number, if, calling the call back function of described recipient's application processes described message, otherwise, this message and corresponding test serial number thereof are stored in described message transmit queue or are abandoned.
17. equipment according to claim 16, it is characterized in that, when the message that is greater than the message that described expectation receives when the test serial number of described message sends sequence number, this message and corresponding test serial number thereof are stored in described message transmit queue, when the message that is less than the message that described expectation receives when the test serial number of described message sends sequence number, abandon this message.
18. equipment according to claim 16, is characterized in that, described incidence relation determining unit also for:
By the session control port numbers between the described sender and the described recipient that make an appointment, set up the incidence relation between described sender's application and described recipient application, wherein, described session control port numbers comprises transmission control port and receives control end slogan.
19. equipment according to claim 16, is characterized in that, described incidence relation determining unit, by searching sender's queue lists of local maintenance, is determined the incidence relation between described sender's application and described recipient application.
20. equipment according to claim 19, is characterized in that, described judging unit, also for:
Before receiving described message, by the session control port numbers between the sender and the recipient that make an appointment, receive the initialization sequence number notice message that described sender sends, therefrom obtain described sender's application and issue the initialization sequence number of the message of described recipient's application;
Judge and in sender's queue lists of local maintenance, whether have the incidence relation of described sender's application between applying with described recipient;
If already present described sender's application comprises that with the incidence relation between described recipient's application described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, but not yet get sender's initialization sequence number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender;
Incidence relation between the described sender's application that only comprises the recipient IP address of described recipient application and udp port number if do not exist and described recipient application, directly returns to initialization sequence number to described sender and notices confirmation failed message;
If the incidence relation between already present described sender's application and described recipient application only comprises recipient IP address and the udp port number of described recipient's application, the new incidence relation creating between described sender's application and described recipient application in sender's queue of safeguarding recipient, this incidence relation is that described sender applies corresponding sender IP address and udp port number, corresponding relation with the recipient IP address of described recipient application and udp port number, record the corresponding relation of described initialization sequence number and this incidence relation, and send initialization sequence number notice acknowledge message to described sender.
CN201410215037.6A 2014-05-21 2014-05-21 Message transmission method and device Pending CN103986647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410215037.6A CN103986647A (en) 2014-05-21 2014-05-21 Message transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410215037.6A CN103986647A (en) 2014-05-21 2014-05-21 Message transmission method and device

Publications (1)

Publication Number Publication Date
CN103986647A true CN103986647A (en) 2014-08-13

Family

ID=51278474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410215037.6A Pending CN103986647A (en) 2014-05-21 2014-05-21 Message transmission method and device

Country Status (1)

Country Link
CN (1) CN103986647A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511954A (en) * 2014-09-23 2016-04-20 华为技术有限公司 Method and device for message processing
CN106330414A (en) * 2016-08-16 2017-01-11 杭州华三通信技术有限公司 Message transmission method and device
CN107360177A (en) * 2017-07-31 2017-11-17 杭州迪普科技股份有限公司 A kind of message transmitting method and device based on UDP
CN107548105A (en) * 2017-10-18 2018-01-05 中国联合网络通信集团有限公司 A kind of data transfer confirmation method and base station based on UDP
JP2019504557A (en) * 2015-12-29 2019-02-14 アマゾン テクノロジーズ インコーポレイテッド Networking technology
CN109587822A (en) * 2018-12-13 2019-04-05 网易(杭州)网络有限公司 Information sending control method, information reception control method, device, storage medium
CN109756306A (en) * 2017-11-03 2019-05-14 华为技术有限公司 Information transferring method and communication equipment
CN109981481A (en) * 2019-01-16 2019-07-05 北京左江科技股份有限公司 A kind of design method of more scene protections
CN110430024A (en) * 2019-07-23 2019-11-08 视联动力信息技术股份有限公司 A kind of data transmission method, device, electronic equipment and storage medium
CN110661728A (en) * 2019-09-12 2020-01-07 无锡江南计算技术研究所 Buffer design method and device combining sharing and privately using in multi-virtual channel transmission
CN110932934A (en) * 2019-11-21 2020-03-27 中国联合网络通信集团有限公司 Network packet loss detection method and device
US10645019B2 (en) 2015-12-29 2020-05-05 Amazon Technologies, Inc. Relaxed reliable datagram
US10673772B2 (en) 2015-12-29 2020-06-02 Amazon Technologies, Inc. Connectionless transport service
US10917344B2 (en) 2015-12-29 2021-02-09 Amazon Technologies, Inc. Connectionless reliable transport
CN112865931A (en) * 2020-12-30 2021-05-28 京信网络系统股份有限公司 Data retransmission processing method, device, equipment and readable storage medium
US11451476B2 (en) 2015-12-28 2022-09-20 Amazon Technologies, Inc. Multi-path transport design
WO2022199558A1 (en) * 2021-03-22 2022-09-29 华为技术有限公司 Data transmission method, and related apparatus and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998051053A1 (en) * 1997-05-06 1998-11-12 Intermec Technologies Corporation Providing reliable communication over an unreliable transport layer in a hand-held device using a persistent session
WO2002098105A1 (en) * 2001-05-30 2002-12-05 Telefonaktiebolaget L M Ericsson (Publ) Handling tcp protocol for connections transmitted in parallel over radio link
CN102137027A (en) * 2011-05-03 2011-07-27 厦门市美亚柏科信息股份有限公司 Reliable data transmission method and device thereof
CN103036904A (en) * 2012-12-27 2013-04-10 东方通信股份有限公司 Method of data reliable transmission with user datagram protocol (UDP) in communication network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998051053A1 (en) * 1997-05-06 1998-11-12 Intermec Technologies Corporation Providing reliable communication over an unreliable transport layer in a hand-held device using a persistent session
WO2002098105A1 (en) * 2001-05-30 2002-12-05 Telefonaktiebolaget L M Ericsson (Publ) Handling tcp protocol for connections transmitted in parallel over radio link
CN102137027A (en) * 2011-05-03 2011-07-27 厦门市美亚柏科信息股份有限公司 Reliable data transmission method and device thereof
CN103036904A (en) * 2012-12-27 2013-04-10 东方通信股份有限公司 Method of data reliable transmission with user datagram protocol (UDP) in communication network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李光明 等: "一个基于UDP协议的文件传输应用程序的实现", 《自动化技术与应用》 *

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511954A (en) * 2014-09-23 2016-04-20 华为技术有限公司 Method and device for message processing
CN105511954B (en) * 2014-09-23 2020-07-07 华为技术有限公司 Message processing method and device
US11451476B2 (en) 2015-12-28 2022-09-20 Amazon Technologies, Inc. Multi-path transport design
US10645019B2 (en) 2015-12-29 2020-05-05 Amazon Technologies, Inc. Relaxed reliable datagram
US10673772B2 (en) 2015-12-29 2020-06-02 Amazon Technologies, Inc. Connectionless transport service
US11770344B2 (en) 2015-12-29 2023-09-26 Amazon Technologies, Inc. Reliable, out-of-order transmission of packets
JP2019092218A (en) * 2015-12-29 2019-06-13 アマゾン テクノロジーズ インコーポレイテッド Networking techniques
JP2019092217A (en) * 2015-12-29 2019-06-13 アマゾン テクノロジーズ インコーポレイテッド Networking techniques
US11343198B2 (en) 2015-12-29 2022-05-24 Amazon Technologies, Inc. Reliable, out-of-order transmission of packets
JP2019504557A (en) * 2015-12-29 2019-02-14 アマゾン テクノロジーズ インコーポレイテッド Networking technology
US10917344B2 (en) 2015-12-29 2021-02-09 Amazon Technologies, Inc. Connectionless reliable transport
CN106330414A (en) * 2016-08-16 2017-01-11 杭州华三通信技术有限公司 Message transmission method and device
CN107360177B (en) * 2017-07-31 2019-09-17 杭州迪普科技股份有限公司 A kind of message transmitting method and device based on UDP
CN107360177A (en) * 2017-07-31 2017-11-17 杭州迪普科技股份有限公司 A kind of message transmitting method and device based on UDP
CN107548105A (en) * 2017-10-18 2018-01-05 中国联合网络通信集团有限公司 A kind of data transfer confirmation method and base station based on UDP
CN107548105B (en) * 2017-10-18 2021-04-30 中国联合网络通信集团有限公司 Data transmission confirmation method based on UDP (user Datagram protocol) and base station
CN109756306A (en) * 2017-11-03 2019-05-14 华为技术有限公司 Information transferring method and communication equipment
CN109756306B (en) * 2017-11-03 2023-10-03 华为技术有限公司 Information transmission method and communication device
CN109587822B (en) * 2018-12-13 2021-06-18 网易(杭州)网络有限公司 Information transmission control method, information reception control device, and storage medium
CN109587822A (en) * 2018-12-13 2019-04-05 网易(杭州)网络有限公司 Information sending control method, information reception control method, device, storage medium
CN109981481A (en) * 2019-01-16 2019-07-05 北京左江科技股份有限公司 A kind of design method of more scene protections
CN109981481B (en) * 2019-01-16 2022-11-11 北京左江科技股份有限公司 Multi-site protection design method
CN110430024A (en) * 2019-07-23 2019-11-08 视联动力信息技术股份有限公司 A kind of data transmission method, device, electronic equipment and storage medium
CN110661728A (en) * 2019-09-12 2020-01-07 无锡江南计算技术研究所 Buffer design method and device combining sharing and privately using in multi-virtual channel transmission
CN110661728B (en) * 2019-09-12 2022-10-04 无锡江南计算技术研究所 Buffer design method and device combining sharing and privately using in multi-virtual channel transmission
CN110932934A (en) * 2019-11-21 2020-03-27 中国联合网络通信集团有限公司 Network packet loss detection method and device
CN112865931A (en) * 2020-12-30 2021-05-28 京信网络系统股份有限公司 Data retransmission processing method, device, equipment and readable storage medium
WO2022199558A1 (en) * 2021-03-22 2022-09-29 华为技术有限公司 Data transmission method, and related apparatus and device

Similar Documents

Publication Publication Date Title
CN103986647A (en) Message transmission method and device
US11064330B2 (en) Methods for enabling delay-awareness in the constrained application protocol (CoAP)
CN103036904B (en) A kind of udp protocol that uses in a communication network carries out the method for reliable data transmission
US9900168B2 (en) System and method for reliable multicast data transport
KR101365838B1 (en) Improved distributed kernel operating system
EP1462941B1 (en) Improving availability and scalability in a messaging system in a manner transparent to the application
AU2014225658B2 (en) Medical device communication method
US20170118042A1 (en) High availability for distributed network services in an extended bridge
CN1909507B (en) Method and system for message transfer
KR101363167B1 (en) Improved distributed kernel operating system
CN102833332B (en) A kind of distributed multi-to-multi devices communicating and management method
US8605578B1 (en) System and method for handling of destination host side congestion
AU2004200732A1 (en) Message delivery with configurable assurances and features between two endpoints
JP2009077422A (en) Between-road-and-vehicle communication system
US20120320732A1 (en) Multicast bulk transfer system
WO2011100911A2 (en) Detection processing method, data transmitter, data receiver and communication system
CA2296423A1 (en) Communication method and system
US20170237838A1 (en) Resilient implementation of stream control transmission protocol
CN101778093A (en) UDP (User Datagram Protocol) based data transmission method
CN102857354A (en) Method, device and system for reporting alarm information
CN100442755C (en) Method for guaranteeing general route package channel transmission reliability
JP4506430B2 (en) Application monitor device
Garcia-Luna-Aceves et al. A Connection-Free Reliable Transport Protocol
Jain Design and implementation of split tcp in the linux kernel
Oulmahdi et al. On the Feasibility of Implementing TCP Using a Modular Architecture

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: 20140813