A kind of data transfer control method, device, equipment and medium

文档序号:1744513 发布日期:2019-11-26 浏览:10次 中文

阅读说明:本技术 一种数据传输控制方法、装置、设备及介质 (A kind of data transfer control method, device, equipment and medium ) 是由 钟书城 周超 于 2019-09-26 设计创作,主要内容包括:本公开关于一种数据传输控制方法、装置、设备及介质,用以使发送端及时确认已发送数据的接收情况,实现往返时延估计,及时高效地重传数据,且占用较少的带宽。本公开的数据传输控制方法,包括:接收对端发送的数据包;将数据包的序号添加到用于记录已接收到数据包序号的接收列表中,数据包的序号为数据包中携带的序号;根据接收列表中包含的数据包的序号确定最小丢包序号,并删除所述接收列表中小于最小丢包序号的序号,最小丢包序号为本端未接收到的数据包的最小序号;在确定接收列表为空时,将最小丢包序号添加到本端发送至对端的数据包的第一指定字段中,以通知对端序号小于最小丢包序号的数据包均被接收。(The disclosure has sent the reception conditions of data about a kind of data transfer control method, device, equipment and medium, confirm that transmitting terminal in time, realizes round-trip delay estimation, efficiently retransmits data in time, and occupy less bandwidth.The data transfer control method of the disclosure, comprising: receive the data packet that opposite end is sent;The serial number of data packet is added to be used to record and is had received in the reception list of data packet serial number, the serial number carried in the serial number data packet of data packet;Minimum packet loss serial number is determined according to the serial number for receiving the data packet for including in list, and deletes the serial number for being less than minimum packet loss serial number in the reception list, the smallest sequence number for the data packet that minimum packet loss serial number local terminal does not receive;When list is empty for determining reception, minimum packet loss serial number is added in the first specific field of the data packet that local terminal is sent to opposite end, is received with the data packet for notifying opposite end serial number to be less than minimum packet loss serial number.)

1. a kind of data transfer control method characterized by comprising

Receive the data packet that opposite end is sent;

The serial number of the data packet is added to be used to record and is had received in the reception list of data packet serial number, the data packet Serial number described in the serial number that carries in data packet;

Minimum packet loss serial number is determined according to the serial number for the data packet for including in the reception list, and is deleted in the reception list Less than the serial number of the minimum packet loss serial number, the smallest sequence number for the data packet that the minimum packet loss serial number local terminal does not receive;

Determine it is described receive that list is empty when, the minimum packet loss serial number is added to the data that local terminal is sent to the opposite end In first specific field of packet, it is received with the data packet for notifying the opposite end serial number to be less than the minimum packet loss serial number.

2. the method according to claim 1, wherein it is described receive opposite end send data packet after, the side Method further include:

When the second specific field is non-empty in determining the data packet, the field of the second specific field in the data packet is obtained Value, the field value are used to indicate the data packet for stopping that serial number is waited to be less than the field value;

The minimum packet loss serial number is updated to the maximum value in current minimum packet loss serial number and the field value, is connect described in deletion The serial number for being less than updated minimum packet loss serial number in list is received, to update the reception list;

Minimum packet loss serial number is redefined in reception list in the updated, is less than in the deletion reception list and is redefined out Minimum packet loss serial number serial number;

Wherein, it is obtained in the data packet before the field value of the second specific field described in the current minimum packet loss serial number, The minimum packet loss serial number that last time determines.

3. according to the method described in claim 2, it is characterized in that, it is described receive opposite end send data packet after, the side Method further include:

When the serial number for determining the data packet received is less than current minimum packet loss serial number, the data packet is abandoned.

4. method according to any one of claim 1-3, which is characterized in that be less than institute in deleting the reception list After the serial number for stating minimum packet loss serial number, the method also includes:

Determine the reception list be non-empty when, by confirmation response ACK message will in the receptions list be greater than described in most The serial number of small packet loss serial number is sent to the opposite end, with the data packet for notifying the opposite end to be received.

5. a kind of data transfer control method characterized by comprising

Receive the data packet that opposite end is sent;

The field value for obtaining the first specific field in the data packet is less than according to the serial number that the field value determines that local terminal is sent The data packet of the field value is received by opposite end, and deletion serial number is small in the transmission list that record has sent data packet serial number In the serial number of the field value, wherein the field value of first specific field is the minimum packet loss serial number that the opposite end determines, The smallest sequence number for the data packet that opposite end described in the minimum packet loss serial number does not receive.

6. according to the method described in claim 5, it is characterized in that, the method also includes:

Minimum Receive sequence number unconfirmed is determined in the transmission list, the minimum Receive sequence number unconfirmed is transmission column Smallest sequence number in table;

Using the minimum Receive sequence number unconfirmed as field value, it is added to local terminal is sent to the data packet of the opposite end second In specific field, to indicate that the opposite end stops the data packet for waiting serial number to be less than the minimum Receive sequence number unconfirmed.

7. a kind of data transfer controller characterized by comprising

Receiving unit is configured as executing the data packet for receiving opposite end transmission;

Recording unit, be configured as executing the serial number of the data packet is added to be used for record have received data packet serial number It receives in list, the serial number carried in data packet described in the serial number of the data packet;

Determination unit is configured as executing the determining minimum packet loss sequence of serial number according to the data packet for including in the reception list Number, and the serial number for being less than the minimum packet loss serial number in the reception list is deleted, the minimum packet loss serial number local terminal does not connect The smallest sequence number of the data packet received;

Processing unit, be configured as executing determine it is described receive that list is empty when, the minimum packet loss serial number is added to this In the first specific field for holding the data packet for being sent to the opposite end, to notify the opposite end serial number to be less than the minimum packet loss sequence Number data packet be received.

8. a kind of data transfer controller characterized by comprising

Receiving unit is configured as executing the data packet for receiving opposite end transmission;

Processing unit is configured as executing the field value for obtaining the first specific field in the data packet, according to the field value It determines that the serial number that local terminal is sent is received by opposite end less than the data packet of the field value, and has sent data packet serial number in record Transmission list in delete serial number be less than the field value serial number, wherein the field value of first specific field is described The minimum packet loss serial number that opposite end determines, the smallest sequence number for the data packet that opposite end described in the minimum packet loss serial number does not receive.

9. a kind of data transmitting control characterized by comprising

Processor;

For storing the memory of the processor-executable instruction;

Wherein, the processor is configured to executing described instruction, to realize such as number described in any one of claims 1 to 6 According to transfer control method.

10. a kind of storage medium, which is characterized in that when the instruction in the storage medium is by the execution of data transmitting control When device executes, so that the Data Transmission Controlling electronic equipment is able to carry out such as data described in any one of claims 1 to 6 Transfer control method.

Technical field

This disclosure relates to network communication field more particularly to a kind of data transfer control method, device, equipment and medium.

Background technique

During network transmission, data packet is possible to lose, and receiving end is at this moment needed to send certain feedback information Notify transmitting terminal, after transmitting terminal is according to the feedback information received, determine loss data packet, then retransmit the data packet of loss with Guarantee the integrality of data transmission.

Summary of the invention

The disclosure provides a kind of data transfer control method, device, equipment and medium, confirm that transmitting terminal in time The reception condition of data is sent, round-trip delay RTT estimation is realized, efficiently retransmits in time, and occupy less bandwidth.

The technical solution of the disclosure is as follows:

According to the first aspect of the embodiments of the present disclosure, a kind of data transfer control method is provided, comprising:

Receive the data packet that opposite end is sent;

The serial number of data packet is added to be used to record and is had received in the reception list of data packet serial number, the sequence of data packet Number for the serial number that carries in data packet;

Minimum packet loss serial number is determined according to the serial number for receiving the data packet for including in list, and is deleted to receive and be less than in list The serial number of minimum packet loss serial number, the smallest sequence number for the data packet that minimum packet loss serial number local terminal does not receive;

When list is empty for determining reception, minimum packet loss serial number is added to first that local terminal is sent to the data packet of opposite end In specific field, it is received with the data packet for notifying opposite end serial number to be less than minimum packet loss serial number.

In a kind of possible embodiment, the data transfer control method that the disclosure provides receives the data that opposite end is sent After packet, method further include:

When determining the second specific field of data packet is non-empty, the field value of the second specific field in data packet, word are obtained Segment value is used to indicate the data packet for stopping that serial number is waited to be less than field value;

Minimum packet loss serial number is updated to the maximum value in current minimum packet loss serial number and field value, deletes and receives in list Less than the serial number of updated minimum packet loss serial number, to update reception list;

Minimum packet loss serial number is redefined in reception list in the updated, deletion is received to be less than in list and be redefined out Minimum packet loss serial number serial number;

Wherein, current minimum packet loss serial number obtains in the data packet before the field value of the second specific field, finally The minimum packet loss serial number once determined.

In a kind of possible embodiment, the data transfer control method that the disclosure provides receives the data that opposite end is sent After packet, method further include:

When the serial number for determining the data packet received is less than current minimum packet loss serial number, packet discard.

In a kind of possible embodiment, the data transfer control method that the disclosure provides, delete receive it is small in list After the serial number of minimum packet loss serial number, further includes:

When determining that receiving list is non-empty, it will be received in list by confirmation response ACK message and be greater than minimum packet loss sequence Number serial number be sent to opposite end so that opposite end determines the data packet that is received in data packet that opposite end is sent.

According to the second aspect of an embodiment of the present disclosure, a kind of data transfer control method is provided, comprising:

Receive the data packet that opposite end is sent;

The field value for obtaining the first specific field in data packet is less than according to the serial number that the field value determines that local terminal is sent The data packet of field value is received by opposite end, and is deleted serial number in the transmission list that record has sent data packet serial number and be less than word The serial number of segment value, wherein the field value of the first specific field is the minimum packet loss serial number that opposite end determines, minimum packet loss serial number pair Hold the smallest sequence number for the data packet not received.

In a kind of possible embodiment, data transfer control method that the disclosure provides, further includes:

Determine minimum unconfirmed Receive sequence number in transmission list, minimum Receive sequence number unconfirmed be in transmission list most Small serial number;

It regard minimum Receive sequence number unconfirmed as field value, is added to local terminal and is sent to the data packet of opposite end and second specify In field, to indicate that opposite end stops the data packet for waiting serial number to be less than minimum Receive sequence number unconfirmed.

In a kind of possible embodiment, data transfer control method that the disclosure provides, further includes:

The ACK message that opposite end is sent is received, includes the serial number for the data packet that opposite end receives in ACK message;

The serial number of opposite end data accepted packet is determined based on ACK message, and has sent the transmission of data packet serial number in record The serial number of opposite end data accepted packet is deleted in list.

In a kind of possible embodiment, data transfer control method that the disclosure provides, further includes:

The corresponding data packet of serial number for including in target transmission list is retransmitted to opposite end, target transmission list is by transmission list In, less than delete opposite end data accepted packet serial number in maximum serial number, whole serial numbers composition.

According to the third aspect of an embodiment of the present disclosure, a kind of data transfer controller is provided, comprising:

Receiving unit is configured as executing the data packet for receiving opposite end transmission;

Recording unit, be configured as executing the serial number of data packet is added to be used for record have received data packet serial number It receives in list, the serial number carried in the serial number data packet of data packet;

Determination unit is configured as executing according to the determining minimum packet loss sequence of the serial number for receiving the data packet for including in list Number, and delete the serial number for receiving and being less than minimum packet loss serial number in list, the data packet that minimum packet loss serial number local terminal does not receive Smallest sequence number;

Processing unit is configured as executing when list is empty for determining reception, minimum packet loss serial number is added to local terminal hair It send into the first specific field of the data packet of opposite end, is connect with the data packet for notifying opposite end serial number to be less than minimum packet loss serial number It receives.

In a kind of possible embodiment, in the data transfer controller that the disclosure provides, device further include:

Acquiring unit is configured as executing when determining the second specific field of data packet is non-empty, obtain the in data packet The field value of two specific fields, field value are used to indicate the data packet for stopping that serial number is waited to be less than field value;

Determination unit is additionally configured to execution and minimum packet loss serial number is updated in current minimum packet loss serial number and field value Maximum value, delete the serial number for receiving and being less than updated minimum packet loss serial number in list, to update reception list, and updating Minimum packet loss serial number is redefined in reception list afterwards, deletes the minimum packet loss serial number for receiving and being less than in list and redefining out Serial number;

Wherein, current minimum packet loss serial number obtains in data packet before the field value of the second specific field, last time Determining minimum packet loss serial number.

In a kind of possible embodiment, in the data transfer controller that the disclosure provides, processing unit is also configured To execute:

When the serial number for determining the data packet received is less than current minimum packet loss serial number, packet discard.

In a kind of possible embodiment, in the data transfer controller that the disclosure provides, processing unit is also configured To execute:

After deletion receives and is less than the serial number of minimum packet loss serial number in list, when determining reception list is non-empty, lead to It crosses confirmation response ACK message and is sent to opposite end for the serial number for being greater than minimum packet loss serial number in list is received, so that determining pair of opposite end Hold the data packet being received in the data packet sent.

According to a fourth aspect of embodiments of the present disclosure, a kind of data transfer controller is provided, comprising:

Receiving unit is configured as executing the data packet for receiving opposite end transmission;

Processing unit is configured as executing the field value for obtaining the first specific field in data packet, be determined according to field value The data packet that the serial number that local terminal is sent is less than field value is received by opposite end, and has sent the transmission column of data packet serial number in record The serial number that serial number is less than field value is deleted in table, wherein the field value of the first specific field is the minimum packet loss sequence that opposite end determines Number, the smallest sequence number for the data packet that minimum packet loss serial number opposite end does not receive.

In a kind of possible embodiment, in the data transfer controller that the disclosure provides, device further include:

Determination unit is configured as executing the determining minimum Receive sequence number unconfirmed in transmission list, and minimum is unconfirmed to be connect Receive the smallest sequence number in serial number transmission list;

Processing unit is additionally configured to execute using minimum Receive sequence number unconfirmed as field value, is added to local terminal transmission Into the second specific field of the data packet of opposite end, to indicate that opposite end stops that serial number is waited to be less than minimum Receive sequence number unconfirmed Data packet.

In a kind of possible embodiment, in the data transfer controller that the disclosure provides, receiving unit is also configured It include the serial number for the data packet that opposite end receives to execute the ACK message for receiving opposite end and sending, in ACK message;

Processing unit is additionally configured to execute the serial number for being determined opposite end data accepted packet based on ACK message, and recorded The serial number that data accepted packet in opposite end is deleted in the transmission list of data packet serial number is sent.

In a kind of possible embodiment, in the data transfer controller that the disclosure provides, device further include:

Transmission unit is specifically configured to execute the corresponding data packet of serial number for including into opposite end re-transmission transmission list.

According to a fifth aspect of the embodiments of the present disclosure, a kind of Data Transmission Controlling electronic equipment is provided, comprising:

Processor;

Memory for storage processor executable instruction;

Wherein, processor is configured as executing instruction to realize Data Transmission Controlling disclosed in first aspect and second aspect Method.

According to a sixth aspect of an embodiment of the present disclosure, a kind of storage medium is provided, when the instruction in storage medium is by data When transmitting the processor execution of controlling electronic devices, it is able to carry out number disclosed in embodiment of the present disclosure first aspect and second aspect According to transfer control method.

According to the 7th of the embodiment of the present disclosure the aspect, a kind of computer program product is provided, comprising:

Processor;

Memory for storage processor executable instruction;

Wherein, processor is configured as executing instruction to realize Data Transmission Controlling disclosed in first aspect and second aspect Method.

The technical scheme provided by this disclosed embodiment at least bring it is following the utility model has the advantages that

Receive opposite end send data packet, the serial number carried in data packet is added to be used for record have received data packet In the reception list of serial number, minimum packet loss serial number is determined according to the serial number for receiving the data packet for including in list, and delete reception It is less than the serial number of minimum packet loss serial number, the smallest sequence number for the data packet that minimum packet loss serial number local terminal does not receive, In in list It determines and receives when list is empty, minimum packet loss serial number is added to the first specific field that local terminal is sent to the data packet of opposite end In, it is received with the data packet for notifying opposite end serial number to be less than minimum packet loss serial number.Compared with feedback scheme in the prior art, Transmitting terminal can be made to confirm the reception condition for having sent data in time, RTT estimation is realized, retransmit transmitting terminal efficiently in time Not received data have been sent, because minimum packet loss serial number is that the data packet sent by receiving end to transmitting terminal carries, and It is not feedback data packet, occupies less bandwidth, feedback data packet is avoided to aggravate transmission network jam situation.

Detailed description of the invention

The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.

Fig. 1 is feedback acknowledgment response feedback strategy schematic diagram in the related technology.

Fig. 2 is to feed back negative response feedback strategy schematic diagram in the related technology.

Fig. 3 is the schematic diagram that a kind of data transfer control method of receiving end is shown according to an exemplary embodiment.

Fig. 4 is the schematic diagram that a kind of data transfer control method of transmitting terminal is shown according to an exemplary embodiment.

Fig. 5 is that a kind of data transfer control method that receiving end is interacted with transmitting terminal is shown according to an exemplary embodiment Schematic diagram.

Fig. 6 is to show the data transfer control method that another receiving end is interacted with transmitting terminal according to an exemplary embodiment Schematic diagram.

Fig. 7 is a kind of schematic flow diagram of data transfer control method shown according to an exemplary embodiment.

Fig. 8 is the schematic flow diagram of another data transfer control method shown according to an exemplary embodiment.

Fig. 9 is the structural schematic diagram that a kind of data transfer controller of receiving end is shown according to an exemplary embodiment.

Figure 10 is the structural schematic diagram that a kind of data transfer controller of transmitting terminal is shown according to an exemplary embodiment.

Figure 11 is a kind of structural schematic diagram of data transmitting control shown according to an exemplary embodiment.

Figure 12 is that a kind of structure of terminal using data transfer control method shown according to an exemplary embodiment is shown It is intended to.

Specific embodiment

In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs The technical solution opened in embodiment is clearly and completely described.

It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiment of the disclosure described herein can in addition to illustrating herein or Sequence other than those of description is implemented.Embodiment described in following exemplary embodiment does not represent and disclosure phase Consistent all embodiments.On the contrary, they are only and as detailed in the attached claim, the disclosure some aspects The example of consistent device and method.

A kind of Fig. 3 data transfer control method flow diagram shown according to an exemplary embodiment, as shown in figure 3, The data transfer control method of receiving end, comprising the following steps:

Step S301 receives the data packet that opposite end is sent.

27页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:信息传输方法、终端及网络设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类