CN101562500B - Data transmission request method, data transmission method and data transmission device - Google Patents

Data transmission request method, data transmission method and data transmission device Download PDF

Info

Publication number
CN101562500B
CN101562500B CN2009100397284A CN200910039728A CN101562500B CN 101562500 B CN101562500 B CN 101562500B CN 2009100397284 A CN2009100397284 A CN 2009100397284A CN 200910039728 A CN200910039728 A CN 200910039728A CN 101562500 B CN101562500 B CN 101562500B
Authority
CN
China
Prior art keywords
data
request
response bag
sign
send
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2009100397284A
Other languages
Chinese (zh)
Other versions
CN101562500A (en
Inventor
王涛伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2009100397284A priority Critical patent/CN101562500B/en
Publication of CN101562500A publication Critical patent/CN101562500A/en
Application granted granted Critical
Publication of CN101562500B publication Critical patent/CN101562500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a data transmission request method, comprising the following steps: transmitting a data request packet and a request state identification; receiving a data response packet and areturn state identification; comparing the request state identification with the return state identification according to the received data response packet so as to confirm a packet losing reason; an d adjusting a data transmission strategy according to the packet losing reason. By comparing the request state identification with the return state identification, the data transmission request methodcan distinguish different data losing conditions, and is convenient in adopting corresponding strategy. In addition, the invention also provides a data transmitting method and a data transmitting dev ice.

Description

Data transfer request, sending method and data transmission device
[technical field]
The present invention relates to computer networking technology, particularly data transfer request method, transfer of data sending method and data transmission device in the computer network.
[background technology]
Computer network is a very huge and complicated network, and in the network two or above computer will realize that the transmission of data will pass through many network equipments, for example switch, router etc. usually.In data transmission procedure (for example transmitting in the process of a video file), the path that transfer of data is passed through may be through repeatedly switching.Owing to the complexity and the unsteadiness of network, cause occurring in the data transmission procedure situation of data-bag lost easily.When point-to-point (peer to peer is called for short P2P) transmission data, because network quality is relatively poor, the situation of lost data packets takes place more easily.To the B request msg, might be that the request package that A issues B is lost such as A, also might be that B receives that the respond packet of issuing A after the request of A loses.Above-mentioned two kinds of situation all are not receive respond packet for A, can not distinguish above-mentioned two kinds of situation, also just can't take appropriate measures.
[summary of the invention]
Based on this, be necessary to provide a kind of data transfer request method of distinguishing event of data loss.
A kind of data transfer request method may further comprise the steps: send data request packet and solicited status sign; Receive data response bag and return state sign; According to the data response bag comparison of request status indicator that receives and return state sign, confirm that lost reason is that data response wraps in to return and loses in the way or request of data wraps in to send in the way and loses; According to lost reason adjustment data transfer request strategy: wrap in to send in the way and lose if lost reason is judged as request of data, then increase the probability that data sending terminal is received above-mentioned data request packet.
Said data request packet is used for the data that the request msg transmitting terminal need send, and the described request status indicator is used for the reception condition of identification data.
Said return state sign is corresponding with the described request status indicator, the said data response bag that said return state label table registration is returned on described request status indicator basis according to transmitting terminal.
If said return state is indicated the data response bag that said data request packet need be asked and is sent, but the request of data end is not received said data response bag, then with lost reason be judged as data response wrap in return the way in lose; If said return state indicates the data response bag that said data request packet need be asked and do not send, then lost reason is judged as request of data and wraps in to send in the way and lose.
Said step according to lost reason adjustment data transfer request strategy is: wrap in to send in the way and lose if lost reason is judged as request of data, then accelerate the transmission frequency of data request packet or improve the priority level of data request packet.
In addition, also be necessary to provide a kind of transfer of data sending method of distinguishing event of data loss.
A kind of transfer of data sending method may further comprise the steps: receive data request packet and solicited status sign; Send the data response bag according to data request packet, and modify solicited status sign generation return state sign is sent to the request of data end; Identical data respond packet to sending is counted; Judge that whether counts is greater than predetermined value; If greater than predetermined value then adjust the strategy that sends the data response bag, increase the possibility that the data response bag is sent to the request of data end.
Said modification solicited status sign generation return state is designated revises corresponding position generation return state sign of having sent the data response bag in the solicited status sign.
The step that the strategy of data response bag is sent in said adjustment is: the transmission number of times that increases the data response bag perhaps improves the preferred rank of data response bag;
In addition, also be necessary to provide a kind of data transmission device of distinguishing event of data loss.
A kind of data transmission device; Comprise memory module, processing module and transceiver module; Said memory module is used to store the data of reception; Said processing module links to each other according to the data generation data request packet of the reception of said memory module storage with said memory module and solicited status identifies and send said data request packet and solicited status sign and reception data response bag and return state sign through said transceiver module; Said processing module confirming that lost reason is that data response wraps in to return and loses in the way or request of data wraps in to send in the way and loses, and is adjusted data transmission policies according to lost reason according to the data response bag comparison of request status indicator that receives and return state sign; If lost reason is judged as request of data and wraps in to send in the way and lose; Then increase data sending terminal and receive the probability of above-mentioned data request packet: if lost reason be judged as data response wrap in return the way in lose, then increase the possibility that the data response bag is sent to the request of data end.
Saidly be: wrap in to return in the way and lose if lost reason is judged as data response, increase the transmission number of times of data response bag or improve the priority level of data response bag according to lost reason adjustment data transmission policies; If lost reason is judged as request of data and wraps in to send in the way and lose, then accelerate the transmission frequency of data request packet or improve the priority level of data request packet.
Said processing module also is used for generating said data response bag according to said data request packet from the data that said memory module reads storage, and modify described request status indicator produces said return state sign.
Above-mentioned data transfer request, sending method and data transmission device can be distinguished different event of data loss through the return state sign, are convenient to take corresponding strategy.
[description of drawings]
Fig. 1 is the flow chart of the data transfer request method of an embodiment;
Fig. 2 is the sketch map of solicited status sign;
Fig. 3 is the sketch map of return state sign;
Fig. 4 is the flow chart of the transfer of data sending method of an embodiment;
Fig. 5 is the sketch map of data transmission device.
[embodiment]
As shown in Figure 1, the flow chart for a kind of data transfer request method may further comprise the steps:
Step S110 sends data request packet and solicited status sign.The data that the request of data end group receives in needs produce data request packet and solicited status sign.Data request packet is used for the data that the request msg transmitting terminal need send, and data request packet can comprise source address, destination address, data content information etc.The solicited status sign is used for the reception condition of identification data, indicates that which data receives at the request of data end, and which data also need receive from data sending terminal.The solicited status sign can be the variable of a unsigned int, and the length of this variable can be according to the size setting of sliding window.For example; As request of data end A (hereinafter to be referred as A) during to data sending terminal B (hereinafter to be referred as B) request msg; Agreement both sides' sliding window size is 8; Be that A asks 8 data to B at most simultaneously at every turn, in program, define the variable of one 8 unsigned int, the reception condition of each bit bit-identify a slice data.As shown in Figure 2; It representes the Data Receiving situation of N sheet to the N+7 sheet for the sketch map of solicited status sign, and data are not also received in 0 expression; Data have been received in 1 expression; For example the N sheet has been received data, and the N+2 sheet is not received data as yet, and this moment, data request packet promptly can be to these sheet data of data sending terminal request.
Step S120 receives data response bag and return state sign.Data sending terminal is after data request packet that receives the transmission of request of data end and solicited status sign; Can the data of request of data end request be sent to the request of data end as the data response bag; Simultaneously the solicited status sign is made amendment, generate the return state sign.The return state sign is corresponding with the solicited status sign, the data response bag that return state label table registration is returned on solicited status sign basis according to transmitting terminal.As shown in Figure 3; It is the sketch map of return state sign; With respect to solicited status shown in Figure 2 sign, return state is identified at N+4, N+5, N+6, N+7 position and all changes, and the expression data sending terminal has sent N+4, N+5, N+6, N+7 sheet data to the request of data end.
Step S130 according to data response bag comparison of request status indicator that receives and return state sign, confirms lost reason.Suppose to learn that through analyzing the data response bag request of data end has received only N+7 sheet data; Then can know through comparison of request status indicator and return state sign: the request of data end to the data sending terminal request N+2 to the N+7 sheet data; But data sending terminal has only sent N+4, N+5, N+6, N+7 sheet data; The final data request end has received only N+7 sheet data wherein; The request of data that shows request N+2 and N+3 sheet data wraps in has lost in the request process, and the data response that comprises N+4, N+5, N+6 sheet data wraps in the return course and lost.That is to say, send if return state is indicated the data response bag that data request packet need be asked, but the request of data end do not received the data response bag, then with lost reason be judged as data response wrap in return the way in lose; If return state indicates the data response bag that data request packet need be asked and do not send, then lost reason is judged as request of data and wraps in to send in the way and lose.
Step S140 is according to lost reason adjustment data transfer request strategy.If lost reason is judged as request of data and wraps in to send in the way and lose, then can accelerate the transmission frequency of data request packet or improve the priority level of data request packet.As in Fig. 2 and example shown in Figure 3, can accelerate to ask N+2 and N+3 sheet data data request packet the transmission frequency or improve its priority, increase the probability that data sending terminal is received above-mentioned data request packet.
Above-mentioned data transfer request method can be distinguished different event of data loss through comparison of request status indicator and return state sign, is convenient to take corresponding strategy.
In addition, also provide a kind of and above-mentioned data transfer request method corresponding transfer of data sending method, as shown in Figure 4:
Step S410 receives data request packet and solicited status sign.Receive data request packet and solicited status sign that the request of data end sends.
Step S420 sends the data response bag based on data request packet, and modify solicited status sign generation return state sign is sent to the request of data end.Data sending terminal is after data request packet that receives the transmission of request of data end and solicited status sign; Can the data of request of data end request be sent to the request of data end as the data response bag; Simultaneously the solicited status sign is made amendment, generate the return state sign.Modification solicited status sign generation return state is designated revises the position generation return state sign that correspondence has been sent the data response bag in the solicited status sign.The return state sign is corresponding with the solicited status sign, the data response bag that return state label table registration is returned on solicited status sign basis according to transmitting terminal.
Step S430 counts the identical data respond packet of sending.No matter be in sending the way, to lose or returning in the way and losing, the request of data end can send data request packet once more because do not receive the data of request.Data sending terminal can be to the identical data respond packet, and for example the transmission number of times of the data of same piece adds up, and number of times is many more, and it is many more to be illustrated in the number of times of losing in sending on the way.
Step S440 judges that whether counts is greater than predetermined value.Predetermined value can be set as required, for example can be 1 time, 2 times, 3 inferior.If the predetermined value of being not more than is then returned step S410; If greater than predetermined value, then get into step S450.
Step S450, the strategy of data response bag is sent in adjustment.Counts is lost greater than predetermined value declarative data respond packet easily, can increase the possibility that the data response bag is sent to the request of data end through transmission number of times that increases the data response bag or the preferred rank that improves the data response bag.
Above-mentioned transfer of data sending method can be distinguished different event of data loss through sending the return state sign, is convenient to take corresponding strategy.Through the transmission number of times of statistics identical data respond packet, and according to number of times the strategy of data response bag is sent in adjustment, can increase the possibility that the data response bag is sent to the request of data end.
In addition, a kind of data transmission device is provided also, as shown in Figure 5, data transmission device both can be used as request of data end 510, also can be used as data sending terminal 520.Request of data end 510 comprises memory module 512, processing module 514, transceiver module 516.Data sending terminal 520 comprises memory module 522, processing module 524, transceiver module 526.
Memory module 512 is used to store the data of reception.Memory module 522 is used for the data of storing waiting.In the network data transmission process of reality; For example in the network of P2P, data transmission device be request of data end 510 be again data sending terminal 520, promptly transmit and receive data simultaneously; This moment, memory module 512,522 both was used to store the data of reception, was used for the data of storing waiting again.Memory module 512,522 can be that the equipment of data is still preserved in outages such as hard disk, flash memory, also can be the equipment of outage such as internal memory loss of data.
Processing module 514 links to each other according to the data generation data request packet of the reception of memory module 512 storages and solicited status sign and passes through transceiver module 516 and send data request packet and solicited status sign and reception data response bag and return state sign with memory module 512.Processing module 514 is adjusted data transmission policies according to data response bag comparison of request status indicator that receives and return state sign with definite lost reason and according to lost reason.If lost reason is judged as request of data and wraps in to send in the way and lose, then accelerate the transmission frequency of data request packet or improve the priority level of data request packet.
Data request packet that transceiver module 516 sends and solicited status sign send to the transceiver module 526 of data sending terminal through network.Processing module 524 generates the data response bag based on data request packet reads storage from memory module 522 data, and modify solicited status sign produces the return state sign.Analyzing the return state sign through said method, is that data response wraps in to return in the way and loses if processing module 524 is judged lost reason, then can increase the transmission number of times of data response bag or improve the priority level of data response bag.
The above embodiment has only expressed several kinds of execution modes of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art under the prerequisite that does not break away from the present invention's design, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with accompanying claims.

Claims (11)

1. a data transfer request method is characterized in that, may further comprise the steps:
Send data request packet and solicited status sign;
Receive data response bag and return state sign;
According to the data response bag comparison of request status indicator that receives and return state sign, confirm that lost reason is that data response wraps in to return and loses in the way or request of data wraps in to send in the way and loses;
According to lost reason adjustment data transfer request strategy: wrap in to send in the way and lose if lost reason is judged as request of data, then increase the probability that data sending terminal is received above-mentioned data request packet.
2. data transfer request method according to claim 1 is characterized in that said data request packet is used for the data that the request msg transmitting terminal need send, and the described request status indicator is used for the reception condition of identification data.
3. data transfer request method according to claim 2; It is characterized in that; Said return state sign is corresponding with the described request status indicator, the said data response bag that said return state label table registration is returned on described request status indicator basis according to transmitting terminal.
4. data transfer request method according to claim 3; It is characterized in that; If said return state is indicated the data response bag that said data request packet need be asked and is sent; But the request of data end is not received said data response bag, then with lost reason be judged as data response wrap in return the way in lose; If said return state indicates the data response bag that said data request packet need be asked and do not send, then lost reason is judged as request of data and wraps in to send in the way and lose.
5. data transfer request method according to claim 4; It is characterized in that; Said step according to lost reason adjustment data transfer request strategy is: wrap in to send in the way and lose if lost reason is judged as request of data, then accelerate the transmission frequency of data request packet or improve the priority level of data request packet.
6. a transfer of data sending method is characterized in that, may further comprise the steps:
Receive data request packet and solicited status sign;
Send the data response bag according to data request packet, and modify solicited status sign generation return state sign is sent to the request of data end;
Identical data respond packet to sending is counted;
Judge that whether counts is greater than predetermined value;
If greater than predetermined value then adjust the strategy that sends the data response bag, increase the possibility that the data response bag is sent to the request of data end.
7. based on the described transfer of data sending method of claim 6, it is characterized in that said modification solicited status sign generation return state is designated revises corresponding position generation return state sign of having sent the data response bag in the solicited status sign.
8. transfer of data sending method according to claim 6 is characterized in that, the step that the strategy of data response bag is sent in said adjustment is: the transmission number of times that increases the data response bag perhaps improves the preferred rank of data response bag;
9. a data transmission device comprises memory module, and said memory module is used to store the data of reception, it is characterized in that, said transmitting device also comprises processing module and transceiver module; Said processing module links to each other according to the data generation data request packet of the reception of said memory module storage with said memory module and solicited status identifies and send said data request packet and solicited status sign and reception data response bag and return state sign through said transceiver module; Said processing module confirming that lost reason is that data response wraps in to return and loses in the way or request of data wraps in to send in the way and loses, and is adjusted data transmission policies according to lost reason according to the data response bag comparison of request status indicator that receives and return state sign; If lost reason is judged as request of data and wraps in to send in the way and lose; Then increase data sending terminal and receive the probability of above-mentioned data request packet: if lost reason be judged as data response wrap in return the way in lose, then increase the possibility that the data response bag is sent to the request of data end.
10. data transmission device according to claim 9; It is characterized in that; Saidly be: wrap in to return in the way and lose if lost reason is judged as data response, increase the transmission number of times of data response bag or improve the priority level of data response bag according to lost reason adjustment data transmission policies; If lost reason is judged as request of data and wraps in to send in the way and lose, then accelerate the transmission frequency of data request packet or improve the priority level of data request packet.
11. data transmission device according to claim 9; It is characterized in that; Said processing module also is used for generating said data response bag according to said data request packet from the data that said memory module reads storage, and modify described request status indicator produces said return state sign.
CN2009100397284A 2009-05-25 2009-05-25 Data transmission request method, data transmission method and data transmission device Active CN101562500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100397284A CN101562500B (en) 2009-05-25 2009-05-25 Data transmission request method, data transmission method and data transmission device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100397284A CN101562500B (en) 2009-05-25 2009-05-25 Data transmission request method, data transmission method and data transmission device

Publications (2)

Publication Number Publication Date
CN101562500A CN101562500A (en) 2009-10-21
CN101562500B true CN101562500B (en) 2012-07-04

Family

ID=41221135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100397284A Active CN101562500B (en) 2009-05-25 2009-05-25 Data transmission request method, data transmission method and data transmission device

Country Status (1)

Country Link
CN (1) CN101562500B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202076B (en) * 2010-03-23 2014-08-27 深圳市金蝶中间件有限公司 Data transmitting method and device and data sending and receiving methods and devices
CN103826108B (en) * 2014-03-18 2017-09-19 江苏苏大大数据科技有限公司 Monitoring method and system after loan based on video image
CN104486690B (en) * 2014-12-25 2016-05-25 北京理工大学 A kind of mobile video transmission optimization method based on Transmission Control Protocol
CN105424093B (en) * 2015-12-07 2018-06-22 重庆多邦科技股份有限公司 A kind of transmission method of environmental monitoring data
CN109981470A (en) * 2017-12-27 2019-07-05 华为技术有限公司 Message transmission control method and device
CN111200573B (en) * 2018-11-16 2022-02-22 迈普通信技术股份有限公司 RPC request calling method and device
CN112506696A (en) * 2021-01-22 2021-03-16 马瑞利汽车电子(广州)有限公司 Method for preventing request between modules from being lost

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484408A (en) * 2002-08-27 2004-03-24 �ձ�������ʽ���� System and method for multiple-object transmission
CN1487698A (en) * 2003-09-01 2004-04-07 中国科学院计算技术研究所 Adaptive jamming control method suitable of mixed wired/radio network
CN101056221A (en) * 2007-03-29 2007-10-17 北京中星微电子有限公司 A method for computing the data loss in the network transfer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484408A (en) * 2002-08-27 2004-03-24 �ձ�������ʽ���� System and method for multiple-object transmission
CN1487698A (en) * 2003-09-01 2004-04-07 中国科学院计算技术研究所 Adaptive jamming control method suitable of mixed wired/radio network
CN101056221A (en) * 2007-03-29 2007-10-17 北京中星微电子有限公司 A method for computing the data loss in the network transfer

Also Published As

Publication number Publication date
CN101562500A (en) 2009-10-21

Similar Documents

Publication Publication Date Title
CN101562500B (en) Data transmission request method, data transmission method and data transmission device
CN113411313B (en) Data transmission method, device and system
CN104704909B (en) System and method for WiFi unloadings
CN111836329A (en) Data transmission method and related device
CN106209915A (en) A kind of real time flow medium radio transmitting method and system thereof
CN110943935B (en) Method, device and system for realizing data transmission
CN100418314C (en) Wireless mobile terminal and telecommunication system
CN109067796A (en) A kind of data transmission method and device
CN109889312A (en) Multilink data transmission method, device and computer readable storage medium
CN111131179B (en) Service processing method, device, network equipment and storage medium
CN105933453A (en) Data transmission method and system
CN115174490A (en) Data transmission method and network application terminal
CN104283716A (en) Data transmission method, equipment and system
CN109348513B (en) Data packet transmission method, terminal and computer storage medium
CN106850153B (en) Data retransmission method and system
CN112333690B (en) Data transmission method, device, storage medium, terminal and network access point equipment
CN115460157A (en) Multi-network-card converged communication method and communication system
CN114337942A (en) Message retransmission method and device and electronic equipment
CN103067280A (en) Method and device of message processing
CN114489730A (en) Remote upgrading method, terminal equipment and computer readable storage medium
US11082812B2 (en) Multi-band communications in a wireless mesh network
US9634805B2 (en) Packet transmission method
CN106685600A (en) Method for messaging among work stations within local area network
CN112714440A (en) Communication method, system, gateway and storage medium compatible with LoRaWAN and self-research protocol
CN111615170B (en) Data transmission method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant