CN101562500A - 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 PDFInfo
- Publication number
- CN101562500A CN101562500A CNA2009100397284A CN200910039728A CN101562500A CN 101562500 A CN101562500 A CN 101562500A CN A2009100397284 A CNA2009100397284 A CN A2009100397284A CN 200910039728 A CN200910039728 A CN 200910039728A CN 101562500 A CN101562500 A CN 101562500A
- Authority
- CN
- China
- Prior art keywords
- data
- request
- packet
- sign
- return state
- 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.)
- Granted
Links
Images
Landscapes
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
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 a return 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; and 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 method can 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 device.
Description
[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 easier generation lost data packets.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 situations all are not receive respond packet for A, can not distinguish above-mentioned two kinds of situations, 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 respond packet and return state sign; According to data respond packet comparison of request status indicator that receives and return state sign, determine the packet loss reason; Adjust the data transfer request strategy according to the packet loss reason.
Described 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.
Described return state sign is corresponding with the described request status indicator, the described data respond packet that described return state label table registration is returned on described request status indicator basis according to transmitting terminal.
If described return state is indicated the data respond packet that described data request packet need be asked and sent, but the request of data end is not received described data respond packet, then the packet loss reason is judged as the data respond packet and in returning the way, loses; If described return state indicates the data respond packet that described data request packet need be asked and do not send, then the packet loss reason is judged as request of data and wraps in to send in the way and lose.
The described step of adjusting the data transfer request strategy according to the packet loss reason is: wrap in to send in the way and lose if the packet loss 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 respond packet according to data request packet, and corresponding modify solicited status sign generation return state sign is sent to the request of data end; The identical data respond packet that sends is counted; Judge that whether counts is greater than predetermined value; If greater than predetermined value then adjust the strategy that sends the data respond packet.
Described modification solicited status sign generation return state is designated revises the corresponding position generation return state sign that has sent the data respond packet in the solicited status sign.
The step that described adjustment sends the strategy of data respond packet is: increase the data respond packet the transmission number of times or
The person improves the preferred rank of data respond packet;
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, described memory module is used to store the data of reception, link to each other with described memory module data according to the reception of described memory module storage of described processing module produce data request packet and solicited status sign and send described data request packet and solicited status sign and receive the data respond packet and the return state sign by described transceiver module, described processing module according to the data respond packet comparison of request status indicator that receives and return state sign to determine the packet loss reason and to adjust data transmission policies according to the packet loss reason.
Describedly adjust data transmission policies according to the packet loss reason and be: lose in returning the way if the packet loss reason is judged as the data respond packet, increase the transmission number of times of data respond packet or improve the priority level of data respond packet; If the packet loss 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.
Described processing module also is used for generating described data respond packet according to described data request packet from the data that described memory module reads storage, and corresponding modify described request status indicator produces described return state sign.
Above-mentioned data transfer request, sending method and data transmission device can be distinguished different event of data loss by 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 schematic diagram of solicited status sign;
Fig. 3 is the schematic diagram of return state sign;
Fig. 4 is the flow chart of the transfer of data sending method of an embodiment;
Fig. 5 is the schematic diagram 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 receipt that the request of data end receives as required produces 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 which data receives at the request of data end, and which data also needs receives 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 is each at most simultaneously to 8 data of B request, 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 is the schematic diagram of solicited status sign, represent the Data Receiving situation of N sheet to the N+7 sheet, 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 respond packet 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, the data of request of data end request can be sent to the request of data end as the data respond packet, 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 respond packet 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 schematic diagram 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, the N+7 position 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 respond packet comparison of request status indicator that receives and return state sign, determines the packet loss reason.Suppose to learn that by analyzing the data respond packet request of data end has received only N+7 sheet data, then as can be known by 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 comprises N+4, N+5, the data respond packet of N+6 sheet data has been lost in return course.That is to say, send if return state is indicated the data respond packet that data request packet need be asked, but the request of data end is not received the data respond packet, then the packet loss reason is judged as the data respond packet and in returning the way, loses; If return state indicates the data respond packet that data request packet need be asked and do not send, then the packet loss reason is judged as request of data and wraps in to send in the way and lose.
Step S140 adjusts the data transfer request strategy according to the packet loss reason.If the packet loss 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 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 by 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 respond packet according to data request packet, and corresponding 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, the data of request of data end request can be sent to the request of data end as the data respond packet, simultaneously the solicited status sign is made amendment, generate the return state sign.Revising the solicited status sign produces return state and is designated and revises that the corresponding position that has sent the data respond packet produces return state sign in the solicited status sign.The return state sign is corresponding with the solicited status sign, the data respond packet 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 that sends.No matter be to lose in sending the way 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, shows that the number of times of losing in sending the way is many more.
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 enter step S450.
Step S450 adjusts the strategy that sends the data respond packet.Counts is lost easily greater than predetermined value explanation data respond packet, can increase the possibility that the data respond packet is sent to the request of data end by transmission number of times that increases the data respond packet or the preferred rank that improves the data respond packet.
Above-mentioned transfer of data sending method can be distinguished different event of data loss by sending the return state sign, is convenient to take corresponding strategy.By the transmission number of times of statistics identical data respond packet, and send the strategy of data respond packet, can increase the possibility that the data respond packet is sent to the request of data end according to the number of times adjustment.
In addition, also provide a kind of data transmission device, 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.
Data request packet that transceiver module 516 sends and solicited status sign send to the transceiver module 526 of data sending terminal by network.Processing module 524 generates the data respond packet according to data request packet reads storage from memory module 522 data, and corresponding modify solicited status sign produces the return state sign.By said method analysis return state sign, former if processing module 524 is judged packet losses because the data respond packet is lost in returning the way, then can increase the transmission number of times of data respond packet or the priority level of raising data respond packet.
The above embodiment has only expressed several execution mode 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 without departing from the inventive concept of the premise, 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 claims.
Claims (11)
1, a kind of data transfer request method is characterized in that, may further comprise the steps:
Send data request packet and solicited status sign;
Receive data respond packet and return state sign;
According to data respond packet comparison of request status indicator that receives and return state sign, determine the packet loss reason;
Adjust the data transfer request strategy according to the packet loss reason.
2, data transfer request method according to claim 1 is characterized in that, described 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, described return state sign is corresponding with the described request status indicator, the described data respond packet that described 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 described return state is indicated the data respond packet that described data request packet need be asked and is sent, but the request of data end is not received described data respond packet, then the packet loss reason is judged as the data respond packet and loses in returning the way; If described return state indicates the data respond packet that described data request packet need be asked and do not send, then the packet loss 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, the described step of adjusting the data transfer request strategy according to the packet loss reason is: wrap in to send in the way and lose if the packet loss 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 kind of 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 respond packet according to data request packet, and corresponding modify solicited status sign generation return state sign is sent to the request of data end;
The identical data respond packet that sends is counted;
Judge that whether counts is greater than predetermined value;
If greater than predetermined value then adjust the strategy that sends the data respond packet.
7, transfer of data sending method according to claim 6 is characterized in that, described modification solicited status sign generation return state is designated revises the corresponding position generation return state sign that has sent the data respond packet in the solicited status sign.
8, transfer of data sending method according to claim 6 is characterized in that, the step that described adjustment sends the strategy of data respond packet is: increase the transmission number of times of data respond packet or the preferred rank of raising data respond packet;
9, a kind of data transmission device comprises memory module, and described memory module is used to store the data of reception, it is characterized in that, described transmitting device also comprises processing module and transceiver module; Link to each other with described memory module data according to the reception of described memory module storage of described processing module produce data request packet and solicited status sign and send described data request packet and solicited status sign and receive the data respond packet and the return state sign by described transceiver module, described processing module according to the data respond packet comparison of request status indicator that receives and return state sign to determine the packet loss reason and to adjust data transmission policies according to the packet loss reason.
10, data transmission device according to claim 9, it is characterized in that, describedly adjust data transmission policies according to the packet loss reason and be: lose in returning the way if the packet loss reason is judged as the data respond packet, increase the transmission number of times of data respond packet or improve the priority level of data respond packet; If the packet loss 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, described processing module also is used for generating described data respond packet according to described data request packet from the data that described memory module reads storage, and corresponding modify described request status indicator produces described return state sign.
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 true CN101562500A (en) | 2009-10-21 |
CN101562500B 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) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102202076A (en) * | 2010-03-23 | 2011-09-28 | 深圳市金蝶中间件有限公司 | Data transmitting method and device and data sending and receiving methods and devices |
CN103826108A (en) * | 2014-03-18 | 2014-05-28 | 江苏苏大大数据科技有限公司 | Post-loan monitoring method and system based on video image |
CN104486690A (en) * | 2014-12-25 | 2015-04-01 | 北京理工大学 | Mobile video transmission optimization method based on TCP (transmission control protocol) |
CN105424093A (en) * | 2015-12-07 | 2016-03-23 | 重庆多邦科技股份有限公司 | Environmental monitoring data transmission method |
CN109981470A (en) * | 2017-12-27 | 2019-07-05 | 华为技术有限公司 | Message transmission control method and device |
CN111200573A (en) * | 2018-11-16 | 2020-05-26 | 迈普通信技术股份有限公司 | RPC request calling method and device |
CN112506696A (en) * | 2021-01-22 | 2021-03-16 | 马瑞利汽车电子(广州)有限公司 | Method for preventing request between modules from being lost |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004088513A (en) * | 2002-08-27 | 2004-03-18 | Nec Corp | Broadcast distribution system and its method |
CN1226844C (en) * | 2003-09-01 | 2005-11-09 | 中国科学院计算技术研究所 | Adaptive jamming control method suitable of mixed wired/radio network |
CN100493002C (en) * | 2007-03-29 | 2009-05-27 | 北京中星微电子有限公司 | A method for computing the data loss in the network transfer |
-
2009
- 2009-05-25 CN CN2009100397284A patent/CN101562500B/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102202076A (en) * | 2010-03-23 | 2011-09-28 | 深圳市金蝶中间件有限公司 | Data transmitting method and device and data sending and receiving methods and devices |
CN103826108A (en) * | 2014-03-18 | 2014-05-28 | 江苏苏大大数据科技有限公司 | Post-loan monitoring method and system based on video image |
CN103826108B (en) * | 2014-03-18 | 2017-09-19 | 江苏苏大大数据科技有限公司 | Monitoring method and system after loan based on video image |
CN104486690A (en) * | 2014-12-25 | 2015-04-01 | 北京理工大学 | Mobile video transmission optimization method based on TCP (transmission control protocol) |
CN105424093A (en) * | 2015-12-07 | 2016-03-23 | 重庆多邦科技股份有限公司 | Environmental monitoring data transmission method |
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 |
CN111200573A (en) * | 2018-11-16 | 2020-05-26 | 迈普通信技术股份有限公司 | RPC request calling method and device |
CN112506696A (en) * | 2021-01-22 | 2021-03-16 | 马瑞利汽车电子(广州)有限公司 | Method for preventing request between modules from being lost |
Also Published As
Publication number | Publication date |
---|---|
CN101562500B (en) | 2012-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113411313B (en) | Data transmission method, device and system | |
CN101562500B (en) | Data transmission request method, data transmission method and data transmission device | |
EP3595219B1 (en) | Method of multi-link retransmission under multiple connections, base station and storage medium | |
CN106209915A (en) | A kind of real time flow medium radio transmitting method and system thereof | |
EP2996275B1 (en) | Link processing method and mobile terminal in multiplexing control protocol | |
CN103269260A (en) | Data transmission method, data receiving terminal, data sending terminal and data transmission system | |
CN100418314C (en) | Wireless mobile terminal and telecommunication system | |
DE112005002376B4 (en) | Method for managing waiting time for multiple recipients | |
CN113489750A (en) | Data transmission method, data processing method and related equipment | |
CN109889312A (en) | Multilink data transmission method, device and computer readable storage medium | |
CN113747503A (en) | Data transmission method and device and sending end equipment | |
CN111131179B (en) | Service processing method, device, network equipment and storage medium | |
US10897725B2 (en) | System and method for managing data transfer between two different data stream protocols | |
CN113612698A (en) | Data packet sending method and device | |
CN109451524A (en) | A kind of data processing method and device | |
US20130326052A1 (en) | System for real traffic replay over wireless networks | |
CN108023690A (en) | The method and device of dynamic HARQ-ACK feedbacks | |
CN106850153B (en) | Data retransmission method and system | |
CN109348513A (en) | A kind of data pack transmission method, terminal and computer storage medium | |
CN108988994B (en) | Message retransmission method and device | |
CN114489730A (en) | Remote upgrading method, terminal equipment and computer readable storage medium | |
CN107959947A (en) | A kind of data transmission method, device and base station | |
CN108471344B (en) | Bidirectional multi-link data sending method and device based on FPGA | |
US11722253B2 (en) | Data packet transmission method and device, storage medium and terminal | |
US11589151B1 (en) | Audio data communication method and wireless audio 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 |