CN105897452A - Data retransmission method and device - Google Patents

Data retransmission method and device Download PDF

Info

Publication number
CN105897452A
CN105897452A CN201510494489.7A CN201510494489A CN105897452A CN 105897452 A CN105897452 A CN 105897452A CN 201510494489 A CN201510494489 A CN 201510494489A CN 105897452 A CN105897452 A CN 105897452A
Authority
CN
China
Prior art keywords
data
udp
message bag
client
optimization component
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
CN201510494489.7A
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.)
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Cloud Computing 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 LeTV Cloud Computing Co Ltd filed Critical LeTV Cloud Computing Co Ltd
Priority to CN201510494489.7A priority Critical patent/CN105897452A/en
Publication of CN105897452A publication Critical patent/CN105897452A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An embodiment of the invention provides a data retransmission method and device. The method comprises the following steps: a UDP channel is used for replacing a TCP transmission link in a generalized net, data retransmission processes are independent of a TCP protocol, data retransmission operation can be performed without a preset number of RRT time lengths of waiting, and therefore a problem that long time delay is caused due to data retransmission under the TCP protocol can be prevented; while a TCP channel state is unknowable, the UDP channel can be controlled in a connectionless state, a UDP channel state can be obtained via a sever transmission optimizing assembly, a data transmission rule can be determined according to the UDP channel state, the data retransmission operation can be performed via the sever transmission optimizing assembly according to the data transmission rule, a problem of packet loss can be prevented when data retransmission is conducted in an adverse channel state, reliable conduction of data retransmission operation can be ensured, and data response time is effectively shortened in the data retransmission processes.

Description

A kind of data repeating method and device
Technical field
The present embodiments relate to communication technical field, particularly relate to a kind of data repeating method and device.
Background technology
Along with the development of wireless communication technology, increasing mobile and wireless device accesses in wireless network. Under normal circumstances, the reliability that the reliability of radio network information transmission is transmitted compared to cable network information is relatively Difference, thus cause wireless network to have higher packet loss than cable network.
During client and server carries out information transmission by wireless network, the agreement used is TCP(Transmission Control Protocol;Transmission control protocol);The a certain section of chain when wireless network Route in congested cause packet loss to raise time, it will be considered that multiple equipment simultaneously bandwidth-hogging money in this link Source, in order to ensure that all devices rationally carries out information transmission, Transmission Control Protocol specifies, needs to be greatly reduced currently The bandwidth of this link of moment;Additionally, in order to ensure that all data can be assisted to client, TCP by transmitting View also specify data retransmission scheme, and i.e. when the non-feeding back response information of client, this is not fed back by server The data validation of response message is the data of bust this, needs the data again transmitting this bust this to visitor Family end.
At present, specifying according to Transmission Control Protocol, server retransmits the process of data and is: server is pre-in this locality If RRT is (Round-Trip Time;Round-trip delay);Server when confirming to exist the data of bust this, After waiting preset number RTT duration, it would be desirable to the data (i.e. TCP message) of re-transmission send to client End;Owing to data exist packet loss problem in transmitting procedure, this retransmission processes will there will still likely be transmission and lose The data lost, therefore, after server continues waiting for preset number RTT duration, retransmit second time and lose The data lost send to client;Server constantly repeats said process, until all data are successfully transmitted to Client.Understanding based on above-mentioned data retransmission processes, when packet loss is higher, server needs to spend n times Preset number RTT duration, all data could be successfully transmitted to client, data response time Greatly;Further, specifying according to Transmission Control Protocol, the wireless link bandwidth being greatly reduced will further result in data The problem of transmission time length.
As can be seen here, at present in data retransmission processes, the problem that there is data response time.
Summary of the invention
The embodiment of the present invention provides a kind of data repeating method and device, retransmits in data at present in order to solving Cheng Zhong, the problem that there is response time.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
The embodiment of the present invention provides a kind of data repeating method, is applied in wireless communication system, described wireless Communication system includes client, server, client transmissions optimization component, and server transport optimization group It is provided with data between part, and described client transmissions optimization component and described server transport optimization component to use Family agreement UDP channel, described method includes:
Described server transport optimization component determines the data of unsuccessful transmission;
After the data of unsuccessful transmission are encapsulated as UDP message bag, according to described UDP channel state and institute State UDP message bag, determine that data retransmit rule;Wherein, described UDP channel state includes that UDP leads to The bandwidth in road, and data transmission packet loss;
Described server transport optimization component retransmits rule according to data, sends institute by described UDP channel State UDP message bag to client transmissions optimization component, by described client transmissions optimization component by described UDP message bag is converted to tcp data bag and sends to described client.
The embodiment of the present invention provides a kind of data retransmission device, is applied in wireless communication system, described wireless Communication system also includes client, server, client transmissions optimization component, and described client transmissions is excellent Changing and be provided with UDP channel between assembly and described data retransmission device, described device includes:
Data determination unit, for determining the data of unsuccessful transmission;
Data retransmit rule determination unit, after the data of unsuccessful transmission are encapsulated as UDP message bag, According to described UDP channel state and described UDP message bag, determine that data retransmit rule;Wherein, described UDP channel state includes the bandwidth of UDP channel, and data transmission packet loss;
Data retransmission unit, for retransmitting rule according to data, sends described UDP by described UDP channel Packet is to client transmissions optimization component, by described client transmissions optimization component by described UDP message Bag is converted to tcp data bag and sends to described client.
In the embodiment of the present invention, client transmissions optimization component is set at client-side, arranges in server side Arrange between server transport optimization component, and client transmissions optimization component and server transmission optimization assembly There is UDP channel;Described server transport optimization component obtains data and retransmits rule, and retransmits according to data Rule, is sent UDP message bag to client transmissions optimization component by described UDP channel, by client UDP message bag is converted to tcp data bag and sends to client by end transmission optimization assembly.Use the present invention Embodiment technical scheme, replaces TCP transmission link in broad sense net by UDP channel, and data retransmitted Journey does not relies on Transmission Control Protocol, could grasp by executing data retransmission without waiting for after preset number RRT duration Make, thus avoid the problem retransmitting the delay time length that data cause under Transmission Control Protocol;Additionally, phase Compared with the unknowable problem of TCP channel state, UDP channel is without connecting controllable passage, server Transmission optimization assembly can obtain UDP channel state, and according to this UDP channel state, determines that data pass Defeated rule, server transport optimization component can retransmit rule according to these data, and executing data retransmission operates, Avoid when the moment that channel status is the best retransmits data, the packet loss problem caused, thus ensure that data The reliable execution of retransmission operation, and then the data response time being effectively shortened in data retransmission processes.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, retouch below Accompanying drawing in stating is some embodiments of the present invention, for those of ordinary skill in the art, is not paying On the premise of creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is wireless communication system architecture schematic diagram in the embodiment of the present invention;
Fig. 2 is data transfer process figure first in the embodiment of the present invention;
Fig. 3 is that in the embodiment of the present invention, data retransmit flow chart;
Fig. 4 is data retransmission device structural representation in the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that Described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based in the present invention Embodiment, those of ordinary skill in the art obtained under not making creative work premise all its His embodiment, broadly falls into the scope of protection of the invention.
Refering to shown in Fig. 1, for wireless communication system architecture schematic diagram in the embodiment of the present invention, this radio communication System includes server, client, client data transmission optimization assembly, server transport optimization component. Concrete, client is for sending request of data to server, with the corresponding data of acquisition request, Yi Jijie Receiving the data that server sends, the data of client request can be different according to concrete application scenarios, Such as, when user carries out web page browsing by client, the data of client request are page data; Client transmissions optimization component, is connected with client, sets up TCP for emulating server and client Connect, and tcp data request client sent is converted to UDP message request, and and server UDP channel set up by transmission optimization assembly;Server transport optimization component, one end and client transmissions optimization Assembly is connected, and the other end is connected with server, for receiving, by UDP channel, the UDP that client sends Request of data, and this request of data is converted to tcp data request, and simulant-client is by TCP number Sending to server according to request, this server transport optimization component is additionally operable to the TCP number sent by server According to being converted to UDP message bag, sent to client by UDP channel;Server is for according to client The tcp data request sent generates client requested data, and sends the data to client, should Server is different according to function, sends the most different to the data of client, such as, when this server is Web During server, the data of this Web server transmission to client are web data.At above-mentioned channel radio In communication system, multiple server and multiple client can be comprised, in the embodiment of the present invention, only with channel radio As a example by communication system only comprises a server and a client, describe data transmission procedure in detail.
Optionally, above-mentioned client transmissions optimization component and server transmission optimization assembly can be by application journeys Sequence realizes;Wherein, client transmissions optimization component may be located in the equipment beyond client, or, visitor Family end transmission optimization assembly can be the application program installed in client;Server transport optimization component is permissible For being positioned in the equipment beyond server, or, server transport optimization component is in server installation Application program.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.
In a wireless communication system, data transmission comprises two processes, i.e. data transmitting procedure first and number According to retransmission processes.
Embodiment one
Refering to shown in Fig. 2, in the embodiment of the present invention, the process that data are transmitted first, including:
Step 200: client sends tcp data request.
In the embodiment of the present invention, the instruction that client can input in the client according to current time user, Generate request of data;Client can also generate request of data, such as Preset Time according to preset instructions before When point arrives, generate request of data.Wherein, this client is still the client following Transmission Control Protocol.
Optionally, this request of data is HTTP (HyperText Transfer Protocol;Hyper text transfer is assisted View) get request.
Step 210: when client transmissions optimization component receives the tcp data request that client sends, build Stand and be connected with the TCP between client.
In the embodiment of the present invention, client transmissions optimization component emulating server, send according to client Tcp data is asked, and sets up and is connected with the TCP between client, the data between client and server Transmission will be processed by client transmissions optimization component.Wherein, client and client transmissions optimization component are positioned at In same LAN, therefore, between client and client transmissions optimization component, the time delay of data transmission can To ignore.
Step 220: tcp data request is converted to UDP message request by client transmissions optimization component, And by the UDP channel between client transmissions optimization component and server transmission optimization assembly, by described UDP message request sends to server transport optimization component.
In the embodiment of the present invention, tcp data request is converted to UDP message by client transmissions optimization component Request, makes the request of this UDP message can transmit in UDP channel based on udp protocol.
Further, transmit described UDP message in client transmissions optimization component by UDP channel to ask Before, client transmissions optimization component also needs to judge between local and server transmission optimization assembly the most Being set up UDP channel, if having, then client transmissions optimization component is directly transmitted UDP message and is asked; Otherwise, client transmissions optimization component needs to set up UDP channel between server transmission optimization assembly, UDP channel by setting up transmits the request of described UDP message again.
Use technique scheme, build between client transmissions optimization component and server transmission optimization assembly Vertical UDP channel, the tcp data request that client is sent by client transmissions optimization component is converted to UDP Request of data, makes client transmission not rely on Transmission Control Protocol to the request of data of server, thus avoids The high packet loss problem caused when data are transmitted under Transmission Control Protocol specifies, relatively low packet loss energy Enough shorten data and retransmit duration;Further, udp protocol is connectionless agreement compared to Transmission Control Protocol, logical Cross UDP channel transmission UDP message request and can reduce the bandwidth shared by request of data.
Step 230: server transport optimization component receive UDP message request time, set up with server it Between TCP connect.
In the embodiment of the present invention, server transport optimization component simulant-client, receiving UDP message During request, i.e. set up and be connected with the TCP between server, the data transmission between client and server To be processed by server transport optimization component.Wherein, server and server transmission optimization assembly are positioned at same In individual LAN, therefore, between server and server transmission optimization assembly, the time delay of data transmission can be neglected Slightly disregard.
Based on technique scheme, by client transmissions optimization component and server transmission optimization assembly, will In cordless communication network, the data between client and server are divided into three parts, are client and client Tcp data between transmission assembly, between client transmissions optimization component and server transmission optimization assembly UDP message, and the tcp data between server transport optimization component and server;Use above-mentioned Technical scheme, client is still the client meeting Transmission Control Protocol, simulates by client transmissions optimization component Server, only sets up the TCP between client and client transmissions optimization component and connects, need not be to client End improves;Further, server is still the server meeting Transmission Control Protocol, optimizes with server transport Assembly simulant-client, only sets up the TCP between server and server transmission optimization assembly and connects, nothing Server must be improved, thus reduce data transmission cost.
Step 240: the request of described UDP message is converted to tcp data by server transport optimization component please Ask, send to server.
In the embodiment of the present invention, UDP message request is converted to tcp data by server transport optimization component Request, is connected by the TCP between server transport optimization component and server and transmits described tcp data Request.
Step 250: server is asked according to described tcp data, generates tcp data bag and sends to service Device transmission optimization assembly.
In the embodiment of the present invention, when server confirms that all data that client is asked have been transmitted the most to service During device transmission optimization assembly, specifying according to Transmission Control Protocol, server will be switched off and server transport optimization group TCP between part connects.
Step 260: described tcp data bag is converted to UDP message bag by server transport optimization component, Sent to client transmissions optimization component by UDP channel.
In the embodiment of the present invention, tcp data bag is converted to UDP message bag by server transport optimization component, This UDP message bag is enable to transmit in UDP channel based on udp protocol.
Further, the tcp data bag that server sends comprises multiple tcp data, and each TCP Data have the sequence number of self;Server transport optimization component preserves all TCP that server sends in this locality The sequence number of data.
Step 270: after described UDP message bag is converted to tcp data bag by client transmissions optimization component, This tcp data bag is transmitted to client.
In the embodiment of the present invention, the TCP not turned off between client transmissions optimization component and client is connected, The UDP channel between client transmissions optimization component and server transport optimization component is not turned off yet, therefore, After server disconnects and being connected with the TCP between server transport optimization component, client, client Data still can be had between transmission optimization assembly and server transmission optimization assembly to transmit.
Further, tcp data client asked at server sends after client, client Holding for any one tcp data being successfully received, send response message to server, this response disappears Breath comprises the tcp data sequence number being properly received;Due between server and server transmission optimization assembly TCP connect already off, so by server transport optimization component receive client send response disappear Breath.
Embodiment two
Refering to shown in Fig. 3, in the embodiment of the present invention, when there are the data of unsuccessful transmission, data retransmit Process, including:
Step 300: described server transport optimization component determines the data of unsuccessful transmission.
In the embodiment of the present invention, server transport optimization component judges the TCP between self and described server Connect and whether have been switched off;If having been switched off, then executing data retransmission process;If being not turned off, do not open Dynamic data retransmission processes.
Using technique scheme, server transport optimization component TCP between server is connected disconnected After opening, after i.e. guaranteeing that the data that client is asked are sent by server, just executing data retransmission behaviour Make, it is to avoid carrying out while data transmit first, bandwidth usage that executing data retransmission process is caused The problem that rate is low, improves bandwidth availability ratio, shortens data response time.
Optionally, server transport optimization component is while sending UDP message bag, and record sends this UDP The all UDP message sequence numbers comprised in the time point of packet, and this UDP message bag.
Based on technique scheme, server transport optimization component obtains the process of the data of unsuccessful transmission, Including: receive, for described server transport optimization component, any one UDP number that described server sends According to, perform following operation, server transport optimization component this any one UDP message of self-recording transmission Time point start to preset duration arrive time, server transport optimization component does not receives described client yet and sends out During response message corresponding to this any one UDP message of sending, described server transport optimization component is by described Any one UDP message is defined as the data of unsuccessful transmission.
Step 310: after the data of unsuccessful transmission are encapsulated as UDP message bag, leads to according to described UDP Road state and described UDP message bag, determine that data retransmit rule;Wherein, described UDP channel state bag Include the bandwidth of UDP channel, and data transmission packet loss.
In the embodiment of the present invention, server transport optimization component, according to the bandwidth of described UDP channel, determines Divide the need of to re-transmission packet.
Optionally, server transport optimization component is according to the bandwidth of described UDP channel, it is determined whether need Divide retransmitting packet, specifically include: server transport optimization component obtains described UDP message Bag takies the size of memory space, leads to more than UDP when described UDP message bag takies the size of memory space During the bandwidth in road, described UDP message bag is divided into multiple re-transmission subdata bag, wherein, each weight Pass subdata bag and take the size bandwidth no more than described UDP channel of memory space;As described UDP When packet takies the bandwidth that the size of memory space is not more than described UDP channel, need not be to described UDP Packet divides.
Using technique scheme, server transport optimization component is according to bandwidth for transmission UDP of UDP channel Packet, it is to avoid the UDP message bag excessive Wireless network congestion problem caused, improves data and retransmits Reliability.
Optionally, server transport optimization component transmits packet loss according to data, determines that each retransmits subnumber Sending times according to bag.Concrete, determine the repeating transmission needing to retransmit time of each described retransmission subpacket packet The process of number, including: from the corresponding relation prestored, search the re-transmission time that described data transmission packet loss is corresponding Number;Wherein, described corresponding relation preserves the mapping relations of data transmission packet loss and number of retransmissions;To look into The number of retransmissions found is defined as the sending times needing to retransmit of each retransmission subpacket packet described.
Optionally, server transport optimization component transmits packet loss according to data, determines UDP message bag Sending times.Concrete, described UDP message bag needs the process of the sending times retransmitted, including: clothes Business device transmission optimization assembly transmits packet loss according to described data, obtains the weight that UDP message bag needs to retransmit Send out number of times;The number of retransmissions that the data transmission packet loss determined is corresponding is searched from the corresponding relation prestored;Its In, described corresponding relation preserves the mapping relations of data transmission packet loss and number of retransmissions;Lookup is obtained Number of retransmissions be defined as described UDP message bag need retransmit sending times.
Optionally, above-mentioned corresponding relation can be realized by the form of form, it is also possible to correspondence set Form realize, correspondence set i.e. comprises multiple corresponding relation, each corresponding relation is arbitrarily One packet loss and sending times;Additionally, corresponding relation can also be realized by function form, such as N=F (L), N identifies sending times, and L represents packet loss, and the value of N is relevant to L value.Wherein, above-mentioned right Packet loss in should being related to can also be that corresponding one of the packet loss of a scope, i.e. each scope is retransmitted secondary Number, as when packet loss is less than 20% when, sending times is 3, when packet loss is more than or equal to 20% Time, sending times is 2.
Further, server transport optimization component is by the described sending times obtained and default retransmission time Interval is defined as described re-transmission rule.
In the prior art, each take turns repeating transmission packet during, only retransmit a retransmission data bag, Using technical solution of the present invention, server transport optimization component repeatedly sends retransmission data bag, is substantially reduced this The probability that in retransmission data bag, data are retransmitted again, thus it is effectively shortened data response time.
Step 320: retransmit rule according to data, sends described UDP message bag by described UDP channel To client transmissions optimization component, described client transmissions optimization component described UDP message bag is changed Send to described client for tcp data bag.
In the embodiment of the present invention, server transport optimization component retransmits rule according to data, by described UDP Passage sends to client transmissions optimization component;Described client transmissions optimization component is by described UDP message Bag is converted to tcp data bag and sends to described client;After client receives described tcp data bag, This tcp data bag is processed, as when the data comprised in this tcp data bag being the number representing webpage According to time, client carries out the page according to the data comprised in this tcp data bag and shows.
Optionally, the size band more than described UDP channel of memory space is taken when described UDP message bag Time wide, according to the sending times needing to retransmit of retransmission subpacket packet each described, and when presetting repeating transmission Between be spaced, successively by described retransmission subpacket packet by described UDP channel transmission to client transmissions optimization Assembly;Wherein, in each default retransmittal interval, all described retransmission subpacket packets are retransmitted.Such as, UDP message bag is divided into retransmission subpacket packet 1, retransmission subpacket packet 2, retransmission subpacket packet 3, weight Sending out time interval is t, when data re-transmitting time first time arrives, and server transport optimization component execution the Data re-transmission operation, the most successively by retransmission subpacket packet 1, retransmission subpacket packet 2, retransmit subnumber According to bag 3 transmission to client transmissions optimization component, sending times is 2;When described first time data re-transmitting Between start timing, during the t time of advent, server transport optimization component perform second time data retransmission operation, Successively by retransmission subpacket packet 1, retransmission subpacket packet 2, retransmission subpacket packet 3 sends to client transmissions Optimization component, sending times is 2.
Optionally, the size taking memory space when described UDP message bag is not more than the bandwidth of UDP channel Time, server transport optimization component is according to sending times, and default retransmittal interval, by described UDP Packet is sent to client transmissions optimization component by described UDP channel.
Wherein, described default retransmittal interval is empirical value, and retransmittal interval as default in this is 5 milliseconds.
Using technique scheme, server transport optimization component is according to default retransmittal interval, several times N number of UDP message bag is sent successively to client, and the transmission of each default retransmittal interval is N number of UDP message bag, it is to avoid when disposably sending data packets to client, wireless communication is second-rate Time, the problem that all packets caused all are lost, it is ensured that the reliability of packet transmission.
Based on technique scheme, refering to shown in Fig. 4, the embodiment of the present invention also provides for a kind of data and retransmits dress Putting, including server transport optimization component, this server transport optimization component includes data determination unit 40, Data re-transmission rule determination unit 41, data retransmission unit 42, wherein:
Data determination unit 40, for determining the data of unsuccessful transmission;
Data retransmit rule determination unit 41, for the data of unsuccessful transmission are encapsulated as UDP message bag After, according to described UDP channel state and described UDP message bag, determine that data retransmit rule;Wherein, Described UDP channel state includes the bandwidth of UDP channel, and data transmission packet loss;
Data retransmission unit 42, for retransmitting rule according to data, sends described by described UDP channel UDP message bag is to client transmissions optimization component, by described client transmissions optimization component by described UDP Packet is converted to tcp data bag and sends to described client.
Further, described device also includes connection closed unit 43, is used for: by the data of unsuccessful transmission Before being encapsulated as UDP message bag, determine that the TCP between described server connects and have been switched off.
Optionally, described data retransmit rule determination unit 41, specifically for: obtain described UDP number The size of memory space is taken, when described UDP message bag takies the size of memory space more than described according to bag During the bandwidth of UDP channel, described UDP message bag is divided into multiple retransmission subpacket packet, wherein, often One retransmission subpacket packet takies the size bandwidth no more than described UDP channel of memory space;And root Transmit packet loss according to described data, obtain the repeating transmission needing to retransmit of each described retransmission subpacket packet respectively Number of times;When the size that described UDP message bag takies memory space is not more than the bandwidth of described UDP channel, Directly transmit packet loss according to described data, obtain the sending times that described UDP message bag needs to retransmit; And the described sending times obtained and default retransmittal interval are defined as described data re-transmission rule.
Optionally, described data retransmission unit 42, specifically for: when described UDP message bag takies storage When the size in space is not more than the bandwidth of UDP channel, need the repeating transmission retransmitted according to described UDP message bag Number of times, and default retransmittal interval, sent described UDP message bag extremely by described UDP channel Client transmissions optimization component;When described UDP message bag takies the size of memory space more than described UDP During the bandwidth of passage, according to the sending times needing to retransmit of retransmission subpacket packet each described, and in advance If retransmittal interval, successively described retransmission subpacket packet is sent to client by described UDP channel Transmission optimization assembly;Wherein, in each default retransmittal interval, all described retransmission subpacket data are retransmitted Bag.
Optionally, described data retransmit rule determination unit 41 and transmit packet loss according to described data, obtain Described UDP message bag needs the sending times retransmitted, and specifically includes: search from the corresponding relation prestored The number of retransmissions that described data transmission packet loss is corresponding;Wherein, described corresponding relation preserves data transmission to lose Bag rate and the mapping relations of number of retransmissions;Number of retransmissions lookup obtained is defined as described UDP message bag Need the sending times retransmitted.
Optionally, described data retransmit rule determination unit 41 and transmit packet loss according to described data, respectively Obtain the sending times needing to retransmit of each described retransmission subpacket packet, specifically include: right from prestore The number of retransmissions that middle lookup described data transmission packet loss is corresponding should be related to;Wherein, described corresponding relation is protected Deposit data transmission packet loss and the mapping relations of number of retransmissions;Number of retransmissions lookup obtained is defined as described The sending times needing to retransmit of each retransmission subpacket packet.
Further, described data determination unit 40, it is used for: for receiving appointing of described server transmission Anticipate data, perform following operation: when, in preset duration, not receiving the response that described client sends During message, described any one data are defined as the data of unsuccessful transmission.
In sum, described server transport optimization component determines the data of unsuccessful transmission;By unsuccessful biography After defeated data are encapsulated as UDP message bag, according to described UDP channel state and described UDP message bag, Determine that data retransmit rule;Wherein, described UDP channel state includes the bandwidth of UDP channel, and number According to transmission packet loss;Retransmit rule according to data, send excellent to client transmissions by described UDP channel Change assembly, described client transmissions optimization component described UDP message bag is converted to tcp data bag and sends out Deliver to described client.Use embodiment of the present invention technical scheme, replace TCP in broad sense by UDP channel Transmission link in net, data retransmission processes does not relies on Transmission Control Protocol, without waiting for preset number RRT After duration could executing data retransmission operation, thus avoid under Transmission Control Protocol, retransmit prolonging of causing of data Time time length problem;Additionally, compared to the unknowable problem of TCP channel state, UDP channel is nothing Connecting controllable passage, server transport optimization component can obtain UDP channel state, and according to this UDP channel state, determines data transmission rule, and server transport optimization component can retransmit according to these data Rule, executing data retransmission operates, it is to avoid when the moment that channel status is the best retransmits data, cause Packet loss problem, thus ensure that the reliable execution of data retransmission operation, and then be effectively shortened data and retransmitted Data response time in journey.
Device embodiment described above is only schematically, wherein said illustrates as separating component Unit can be or may not be physically separate, the parts shown as unit can be or Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words Dividing and can embody with the form of software product, this computer software product can be stored in computer can Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one Computer equipment (can be personal computer, server, or the network equipment etc.) performs each embodiment Or the method described in some part of embodiment.
Last it is noted that above example is only in order to illustrate the technical scheme of the embodiment of the present invention, rather than It is limited;Although the embodiment of the present invention being described in detail with reference to previous embodiment, this area Those of ordinary skill is it is understood that the technical scheme described in foregoing embodiments still can be repaiied by it Change, or wherein portion of techniques feature is carried out equivalent;And these amendments or replacement, do not make phase The essence answering technical scheme departs from the spirit and scope of the embodiment of the present invention each embodiment technical scheme.

Claims (12)

1. a data repeating method, is applied in wireless communication system, it is characterised in that described wireless Communication system includes client, server, client transmissions optimization component, and server transport optimization group It is provided with data between part, and described client transmissions optimization component and described server transport optimization component to use Family agreement UDP channel, described method includes:
Described server transport optimization component determines the data of unsuccessful transmission;
After the data of unsuccessful transmission are encapsulated as UDP message bag, according to described UDP channel state and institute State UDP message bag, determine that data retransmit rule;Wherein, described UDP channel state includes that UDP leads to The bandwidth in road, and data transmission packet loss;
Described server transport optimization component retransmits rule according to data, sends institute by described UDP channel State UDP message bag to client transmissions optimization component, by described client transmissions optimization component by described UDP message bag is converted to tcp data bag and sends to described client.
Method the most according to claim 1, it is characterised in that the data of unsuccessful transmission are encapsulated Before UDP message bag, described method also includes:
Determine that the TCP between described server connects to have been switched off.
Method the most according to claim 1, it is characterised in that according to described UDP channel state and Described UDP message bag, determines that data retransmit rule, specifically includes:
Obtain described UDP message bag and take the size of memory space, when described UDP message bag takies storage When the size in space is more than the bandwidth of described UDP channel, described UDP message bag is divided into multiple repeating transmission Subdata bag, wherein, each retransmission subpacket packet takies the size of memory space no more than described UDP The bandwidth of passage;And transmit packet loss according to described data, obtain each described retransmission subpacket packet respectively Need retransmit sending times;
When the size that described UDP message bag takies memory space is not more than the bandwidth of described UDP channel, Directly transmit packet loss according to described data, obtain the sending times that described UDP message bag needs to retransmit; And the described sending times obtained and default retransmittal interval are defined as described data re-transmission rule.
Method the most according to claim 3, it is characterised in that transmit packet loss according to described data, Obtain the sending times that described UDP message bag needs to retransmit, specifically include:
The number of retransmissions that described data transmission packet loss is corresponding is searched from the corresponding relation prestored;Wherein, institute State the mapping relations preserving data transmission packet loss in corresponding relation with number of retransmissions;
Number of retransmissions lookup obtained is defined as the sending times that described UDP message bag needs to retransmit.
5. according to the method described in claim 3 or 4, it is characterised in that retransmit rule according to data, By the described UDP channel described UDP message bag of transmission to client transmissions optimization component, specifically include:
When the size that described UDP message bag takies memory space is not more than the bandwidth of described UDP channel, The sending times retransmitted, and default retransmittal interval is needed, by described according to described UDP message bag UDP message bag is sent to client transmissions optimization component by described UDP channel;
When described UDP message bag takies the size of memory space more than the bandwidth of described UDP channel, press According to the sending times needing to retransmit of retransmission subpacket packet each described, and default retransmittal interval, Successively described retransmission subpacket packet is sent to client transmissions optimization component by described UDP channel;Its In, in each default retransmittal interval, retransmit all described retransmission subpacket packets.
Method the most according to claim 5, it is characterised in that described server transport optimization component Determine the data of unsuccessful transmission, specifically include:
Receive, for described server transport optimization component, any one data that described server sends, perform Following operation:
When, in preset duration, described server transport optimization component does not receives answering of described client transmission When answering message, described any one data are defined as the number of unsuccessful transmission by described server transport optimization component According to.
7. a data retransmission device, is applied in wireless communication system, it is characterised in that described wireless Communication system also includes client, server, client transmissions optimization component, and described client transmissions is excellent Change and be provided with data user's agreement UDP channel, described device bag between assembly and described data retransmission device Include:
Data determination unit, for determining the data of unsuccessful transmission;
Data retransmit rule determination unit, after the data of unsuccessful transmission are encapsulated as UDP message bag, According to described UDP channel state and described UDP message bag, determine that data retransmit rule;Wherein, described UDP channel state includes the bandwidth of UDP channel, and data transmission packet loss;
Data retransmission unit, for retransmitting rule according to data, sends described UDP by described UDP channel Packet is to client transmissions optimization component, by described client transmissions optimization component by described UDP message Bag is converted to tcp data bag and sends to described client.
Device the most according to claim 7, it is characterised in that also include connection closed unit, uses In:
Before the data of unsuccessful transmission are encapsulated as UDP message bag, determine between described server TCP connection has been switched off.
Device the most according to claim 7, it is characterised in that described data retransmit rule and determine list Unit, specifically for:
Obtain described UDP message bag and take the size of memory space, when described UDP message bag takies storage When the size in space is more than the bandwidth of described UDP channel, described UDP message bag is divided into multiple repeating transmission Subdata bag, wherein, each retransmission subpacket packet takies the size of memory space no more than described UDP The bandwidth of passage;And transmit packet loss according to described data, obtain each described retransmission subpacket packet respectively Need retransmit sending times;
When the size that described UDP message bag takies memory space is not more than the bandwidth of described UDP channel, Directly transmit packet loss according to described data, obtain the sending times that described UDP message bag needs to retransmit; And
The described sending times obtained and default retransmittal interval are defined as described data and retransmit rule.
Device the most according to claim 9, it is characterised in that described data retransmit rule and determine list Packet loss is transmitted according to described data in unit, obtains the sending times that described UDP message bag needs to retransmit, tool Body includes:
The number of retransmissions that described data transmission packet loss is corresponding is searched from the corresponding relation prestored;Wherein, institute State the mapping relations preserving data transmission packet loss in corresponding relation with number of retransmissions;
Number of retransmissions lookup obtained is defined as the sending times that described UDP message bag needs to retransmit.
11. according to the device described in claim 9 or 10, it is characterised in that described data retransmission unit, Specifically for:
When the size that described UDP message bag takies memory space is not more than the bandwidth of UDP channel, according to Described UDP message bag needs the sending times retransmitted, and default retransmittal interval, by described UDP Packet is sent to client transmissions optimization component by described UDP channel;
When described UDP message bag takies the size of memory space more than the bandwidth of described UDP channel, press According to the sending times needing to retransmit of retransmission subpacket packet each described, and default retransmittal interval, Successively described retransmission subpacket packet is sent to client transmissions optimization component by described UDP channel;Its In, in each default retransmittal interval, retransmit all described retransmission subpacket packets.
12. devices according to claim 11, it is characterised in that described data determination unit, tool Body is used for:
For receiving any one data that described server sends, perform to operate as follows:
When in preset duration, when not receiving the response message that described client sends, by described any one Data are defined as the data of unsuccessful transmission.
CN201510494489.7A 2015-08-12 2015-08-12 Data retransmission method and device Pending CN105897452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510494489.7A CN105897452A (en) 2015-08-12 2015-08-12 Data retransmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510494489.7A CN105897452A (en) 2015-08-12 2015-08-12 Data retransmission method and device

Publications (1)

Publication Number Publication Date
CN105897452A true CN105897452A (en) 2016-08-24

Family

ID=57002115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510494489.7A Pending CN105897452A (en) 2015-08-12 2015-08-12 Data retransmission method and device

Country Status (1)

Country Link
CN (1) CN105897452A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995036A (en) * 2017-11-30 2018-05-04 杭州电魂网络科技股份有限公司 Data transmission method, device, server and readable storage medium storing program for executing
CN108631920A (en) * 2017-03-24 2018-10-09 华为技术有限公司 A kind of data transmission method and device
CN110536367A (en) * 2019-08-29 2019-12-03 宇龙计算机通信科技(深圳)有限公司 A kind of method for switching network, device, storage medium and terminal
CN116939632A (en) * 2023-09-12 2023-10-24 安世亚太科技股份有限公司 Method, system, equipment and storage medium for determining retransmission times of data packet

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030046336A1 (en) * 2001-08-31 2003-03-06 D'annunzio Michael A. Persistent link for broadband mobile platform communicatons systems using proxy servers
CN1476181A (en) * 2003-07-14 2004-02-18 中国科学院计算技术研究所 Distribution type satellite network TLP performance acceleration protocol mode and method
CN102820915A (en) * 2012-08-01 2012-12-12 北京佳讯飞鸿电气股份有限公司 Satellite link system for improving TCP (transmission control protocol) transmission performance and use method of system
CN103716136A (en) * 2013-12-23 2014-04-09 上海网达软件股份有限公司 Data transmission method and system
CN104243267A (en) * 2014-09-18 2014-12-24 百度在线网络技术(北京)有限公司 Data transmission method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030046336A1 (en) * 2001-08-31 2003-03-06 D'annunzio Michael A. Persistent link for broadband mobile platform communicatons systems using proxy servers
CN1476181A (en) * 2003-07-14 2004-02-18 中国科学院计算技术研究所 Distribution type satellite network TLP performance acceleration protocol mode and method
CN102820915A (en) * 2012-08-01 2012-12-12 北京佳讯飞鸿电气股份有限公司 Satellite link system for improving TCP (transmission control protocol) transmission performance and use method of system
CN103716136A (en) * 2013-12-23 2014-04-09 上海网达软件股份有限公司 Data transmission method and system
CN104243267A (en) * 2014-09-18 2014-12-24 百度在线网络技术(北京)有限公司 Data transmission method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108631920A (en) * 2017-03-24 2018-10-09 华为技术有限公司 A kind of data transmission method and device
CN107995036A (en) * 2017-11-30 2018-05-04 杭州电魂网络科技股份有限公司 Data transmission method, device, server and readable storage medium storing program for executing
CN107995036B (en) * 2017-11-30 2021-04-20 杭州电魂网络科技股份有限公司 Data transmission method, device, server and readable storage medium
CN110536367A (en) * 2019-08-29 2019-12-03 宇龙计算机通信科技(深圳)有限公司 A kind of method for switching network, device, storage medium and terminal
CN116939632A (en) * 2023-09-12 2023-10-24 安世亚太科技股份有限公司 Method, system, equipment and storage medium for determining retransmission times of data packet
CN116939632B (en) * 2023-09-12 2023-11-28 安世亚太科技股份有限公司 Method, system, equipment and storage medium for determining retransmission times of data packet

Similar Documents

Publication Publication Date Title
CN113411313B (en) Data transmission method, device and system
CN102006283B (en) Data transmission method and device
EP2866395B1 (en) Maximum transmission unit negotiation method and data terminal
CN108270682A (en) A kind of message transmitting method, terminal, the network equipment and communication system
CN107624231B (en) Method, device, server and computer program product for transmitting and receiving data
CN102148662B (en) Adjusting method and device for data transmitting speed
CN102217258B (en) Detection processing method, data sending terminal, data receiver and communication system
CN109076475B (en) Method and system for maintaining synchronization in connectionless transmission
CN105897452A (en) Data retransmission method and device
CN109412946A (en) Method, apparatus, server and the readable storage medium storing program for executing of source path are returned in a kind of determination
CN104519139B (en) Caching method, caching edges server, caching Core server and caching system System
US20170027016A1 (en) Communication device, wireless communication device, and communication method
CN109067796A (en) A kind of data transmission method and device
CN101621532B (en) Method for realizing HTTP application by thread pool
Tortonesi et al. Enabling the deployment of COTS applications in tactical edge networks
CN104993979A (en) Network connection monitoring method, terminal equipment and communication system
CN104660639B (en) Cloud terminal upgrade processing method and device
CN109889312A (en) Multilink data transmission method, device and computer readable storage medium
CN108432287A (en) A kind of data transmission method and network side equipment
EP3672189B1 (en) Data transmission method, device and system
CN109428684B (en) Data transmission method, RLC entity and PDCP entity
US9992309B2 (en) Communication device and communication method
CN105453681B (en) A kind of data dispatching method and device
CN116074401A (en) Method for realizing transmission layer protocol on programmable exchanger
CN105871528B (en) HARQ feedback method and device, terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160824

WD01 Invention patent application deemed withdrawn after publication