WO2018082536A1 - 一种tcp延时处理方法、装置、系统及其计算机存储介质 - Google Patents

一种tcp延时处理方法、装置、系统及其计算机存储介质 Download PDF

Info

Publication number
WO2018082536A1
WO2018082536A1 PCT/CN2017/108507 CN2017108507W WO2018082536A1 WO 2018082536 A1 WO2018082536 A1 WO 2018082536A1 CN 2017108507 W CN2017108507 W CN 2017108507W WO 2018082536 A1 WO2018082536 A1 WO 2018082536A1
Authority
WO
WIPO (PCT)
Prior art keywords
tcp
delay
rtt
packet
terminal
Prior art date
Application number
PCT/CN2017/108507
Other languages
English (en)
French (fr)
Inventor
吕亮
Original Assignee
中兴通讯股份有限公司
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
Priority claimed from CN201710034774.XA external-priority patent/CN108023686B/zh
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018082536A1 publication Critical patent/WO2018082536A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to a TCP delay processing method, apparatus, system, and computer storage medium thereof.
  • LTE Long Term Evolution
  • TCP Transfer Control Protocol
  • TCP Transmission Control Protocol
  • TCP Transmission Control Protocol
  • TCP ACK Acknowledgement
  • the local end sends a TCP ACK to the peer immediately after receiving the data packet.
  • the local end does not immediately send a TCP ACK to the peer, but waits for a period of time. If during this period, the local end has a data packet to be sent to the peer, it is sending data.
  • the packet carries this TCP ACK, which saves a message; there is no packet to be sent to the peer at the local end, the delay confirmation timer will time out, and then a pure TCP ACK is sent to the peer.
  • the transmission mode of the TCP ACK is not fixed, but is dynamically switched between the two modes.
  • the transmission mode of the TCP ACK dynamically switches between fast acknowledgment and delayed acknowledgment, so the time interval between the TCP packet and its TCP ACK is dynamically changed.
  • the scheduling of TCP ACK information by the LTE eNB directly affects the data delay problem in the TCP data transmission process.
  • the technical problem to be solved by the embodiments of the present invention is to provide a TCP delay processing method, device and system, which are used to solve the technical problem of wasting scheduling resources in order to reduce data delay in the existing TCP data transmission process.
  • An embodiment of the present invention provides a TCP delay processing method, including:
  • the TCP RTT delay is sent to the base station according to a preset rule.
  • the parsing the TCP packet and the TCP ACK information in the TCP data packet includes:
  • the acknowledgment number Q2 of the TCP ACK information is parsed, and the arrival time T2 of the TCP ACK information is recorded.
  • the calculating a TCP RTT delay according to the TCP packet and the TCP ACK information includes:
  • the TCP RTT delay is T2-T1.
  • the sending, by the preset rule, the TCP RTT delay to the base station includes:
  • the TCP RTT delay is filled into a protocol data unit PDU reserved bit of the packet data convergence protocol PDCP data and sent to the base station.
  • TCP delay processing method including:
  • the parsing the TCP RTT delay in the TCP packet according to a preset rule comprises:
  • the reserved bit value is read to obtain a TCP RTT delay.
  • the obtaining the TCP RTT filter value according to the TCP RTT delay, and delaying the terminal according to the TCP RTT filter value and the TCP RTT instantaneous value in the preset time includes:
  • the terminal When the instantaneous value of the plurality of TCP RTTs is equal to the preset value in the preset time, the terminal is delayedly authorized according to the TCP RTT filter value and the terminal processing delay, and the delay pre-authorization is increased by a predetermined time interval.
  • a terminal device including:
  • a first receiving module configured to receive a TCP data packet sent by the base station
  • a first parsing module configured to parse the TCP packet and the TCP ACK information in the TCP packet
  • a calculation module configured to calculate a TCP RTT delay according to the TCP packet and the TCP ACK information
  • a sending module configured to send the TCP RTT delay to the base station according to a preset rule.
  • a base station including:
  • a second receiving module configured to receive a TCP packet reported by the terminal
  • a second parsing module configured to parse the TCP RTT delay in the TCP packet according to a preset rule
  • an authorization module configured to obtain a TCP RTT filtering value according to the TCP RTT delay, and perform delay authorization on the terminal according to the TCP RTT filtering value and the instantaneous value of the TCP RTT in the preset time.
  • Another aspect of the embodiments of the present invention provides a TCP delay processing system, including the foregoing terminal device and the foregoing base station.
  • An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores one or more programs executable by a computer, and when the one or more programs are executed by the computer, the computer is executed as described above Any of the TCP delay processing methods described.
  • the TCP delay processing method, device and system calculate the TCP RTT delay by using the TCP packet and the TCP ACK information parsed by the terminal, and report the delay to the base station.
  • the TCP RTT delay is filtered according to the TCP RTT delay, and the terminal is authorized to be delivered according to the TCP RTT filter value and the continuously reported TCP RTT instantaneous value, which can effectively cope with the feedback.
  • the mode change causes the TCP RTT delay to change.
  • the delay of the TCP RTT on the LTE air interface scheduling is shortened, so that the scheduling resources allocated by the LTE network to the terminal are more targeted and targeted, and the delay of acquiring data by the terminal is further low.
  • FIG. 1 is a flowchart of a TCP delay processing method according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a TCP delay processing method according to Embodiment 2 of the present invention.
  • FIG. 3 is a diagram showing the IP packet format and the field structure diagram of the header provided by Embodiment 2 of the present invention.
  • FIG. 4 is a structural diagram of each field of a TCP packet header according to Embodiment 2 of the present invention.
  • FIG. 5 is a structural diagram of a format of a PDCP data PDU header according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic diagram of a terminal authorization mode 1 according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram of a terminal authorization mode 2 according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic structural diagram of a terminal device according to Embodiment 3 of the present invention.
  • FIG. 9 is a schematic structural diagram of a base station according to Embodiment 4 of the present invention.
  • the first embodiment of the present invention provides a TCP delay processing method, and the execution subject of the method is a terminal device. As shown in Figure 1, the method includes:
  • the terminal receives a TCP data packet sent by the base station.
  • the terminal parses the TCP packet and the TCP ACK information in the TCP packet.
  • the terminal calculates a TCP RTT delay according to the TCP packet and the TCP ACK information.
  • the terminal sends the TCP RTT delay to the base station according to a preset rule.
  • the TCP delay processing method calculates the TCP RTT delay by using the TCP packet and the TCP ACK information parsed by the terminal, and reports the delay to the base station. After the TCP RTT delay is parsed by the base station, the TCP RTT delay is filtered according to the TCP RTT delay, and the terminal is authorized to be delivered according to the TCP RTT filter value and the continuously reported TCP RTT instantaneous value, which can effectively cope with the feedback.
  • the mode change causes the TCP RTT delay to change.
  • the delay of the TCP RTT on the LTE air interface scheduling is shortened, so that the scheduling resources allocated by the LTE network to the terminal are more targeted and targeted, and the delay of acquiring data by the terminal is further low.
  • Embodiment 2 of the present invention provides a TCP delay processing method, as shown in FIG. 2, the method includes:
  • the terminal receives a TCP data packet sent by the base station.
  • the terminal determines whether TCP data is received, and if yes, parses the layer to the PDCP layer.
  • the terminal parses the TCP packet and the TCP ACK information in the TCP packet.
  • This step includes:
  • the sequence number S1 and the confirmation number Q1 of the TCP packet are parsed, and the arrival time T1 of the TCP packet is recorded. For example, according to the protocol bit in the IP header shown in FIG. 3, when the corresponding value is 6, when it is a TCP packet, the sequence number S1 and the confirmation number Q1 of the TCP packet are parsed.
  • the acknowledgment number Q2 of the TCP ACK information is parsed, and the arrival time T2 of the TCP ACK information is recorded. For example, according to the protocol bit in the IP header shown in FIG. 3, when the corresponding value is 6, the TCP packet is analyzed at this time, and the TCP packet is parsed as the confirmation number Q2 in FIG. 4, and it is determined whether it is TCP ACK.
  • the method for determining the TCP ACK may be: when the URG/PSH/RST/SYN/FIN setting is 0 and the data length is 0, it is determined as a TCP ACK.
  • the terminal calculates a TCP RTT delay according to the TCP packet and the TCP ACK information.
  • the TCP RTT delay is T2-T1.
  • the TCP message reaches the time T1 and the serial number S1 and the confirmation number Q1 of the TCP message are associated and recorded, and is recorded as [TCP message arrival time T1, message sequence number S1 and confirmation. No. Q1].
  • the TCP ACK arrival time T2 and the confirmation number Q2 are associated and recorded, and are recorded as [TCP ACK arrival time T2, message confirmation number Q2]. Then, it is determined whether the message acknowledgment number Q2 is the TCP ACK of the message sequence number S1 and the acknowledgment number Q1, and if so, the TCP RTT delay is T2-T1.
  • the terminal sends the TCP RTT delay to the base station according to a preset rule of the base station.
  • the step includes: filling the TCP RTT delay into a reserved bit of the PDCP data PDU and transmitting the reserved bit to the base station.
  • the TCP RTT delay that is, T2-T1
  • T2-T1 is reserved to a reserved bit in a PDCP (Packet Data Convergence Protocol) data PDU (Protocol Data Unit).
  • PDCP Packet Data Convergence Protocol
  • PDU Protocol Data Unit
  • the padding method may be: rounding up T2-T1, and padding the rounded value to the 3-bit pre-stage of the PDU. On the R position, it is filled from right to left (ie from low to high).
  • the value rounded up according to the instantaneous value of TCP RTT is a decimal value
  • the decimal value is converted into a binary value
  • the converted binary is filled into the 3-bit reserved bit R in FIG. 5, according to From left to right, the filling is performed from the high position to the low position.
  • the calculated decimal value is 5, converted to a binary of 110, and 110 is sequentially filled from left to right into the 3-bit reserved bits in FIG.
  • the filling method may also be: rounding up T2-T1, filling the up-rounded value into the lower 2-bit reserved bit R of the PDU, and filling from right to left (ie, from low to high).
  • the rounded up value according to the TCP RTT instantaneous value is a decimal value
  • the decimal value is converted into a binary value
  • the converted binary is filled into 2 of the 3-bit reserved bits R in FIG.
  • the bits are filled with the second and third reserved bits R from left to right, that is, from high to low.
  • the calculated decimal value is 2, converted to a binary of 10, and 10 is padded to the three of FIG.
  • the reserved bits are from left to right on the 2nd and 3rd reserved bits.
  • the base station receives the TCP data packet reported by the terminal.
  • the TCP packet is received and parsed layer by layer to the PDCP layer.
  • the base station parses the TCP RTT delay in the TCP data packet according to a preset rule of the terminal.
  • step S204 based on the same preset rule of step S204, when the reserved bits of the PDCP data PDU are not all 0, the reserved bit value is read to obtain a TCP RTT delay.
  • the PDCP data PDU it is determined whether the 3-bit reserved bits in the PDCP data PDU are not all 0. If not all 0s, the value is read, and the binary is converted to decimal as the TCP RTT delay.
  • the base station obtains a TCP RTT filtering value according to the TCP RTT delay, and performs delay authorization on the terminal according to the TCP RTT filtering value and the instantaneous value of the TCP RTT in the preset time.
  • TCP RTT filter value TCP_RTT_history value * (1-Alpha) + TCP_RTT_ instantaneous value * Alpha, where Alpha is the filter factor, the value range is [0, 1], and the Alpha default value can be set to 0.8.
  • a specific manner of delaying authorization for the terminal may be determined by determining a relationship between multiple instantaneous values of the TCP RTT and the preset value within a preset time.
  • the preset time may be a time used by the base station to calculate the TCP RTT filter value, and the preset value may be set according to system attributes.
  • the terminal processing delay can be set according to the actual delay of the terminal.
  • the authorization method one:
  • the preset time may be used by the base station to calculate the TCP RTT filter value.
  • the preset value can be 8ms.
  • the terminal processing delay can be 6ms.
  • the base station calculates the TCP RTT filter value at time N, and the preset time is N. It is judged whether the instantaneous value of the TCP RTT reported in the NM time, the time of the N-1 and the N time (the M is 2) is 8 ms. In this embodiment, the instantaneous delay of the TCP RTT is less than 8 ms, considering the terminal processing. When the delay is 6ms, the base station filters according to TCP RTT. The wave value +6ms is pre-authorized.
  • N(0) represents the 0th subframe of the N frame.
  • the N(0), N(1), and N(3) base stations receive the TCP RTT instantaneous delay reported by the terminal is less than 8ms
  • N(4) is the air interface time of the TCP downlink data
  • the TCP RTT at the N(4) time is read.
  • the filtered value is assumed to be 5 ms after the value is rounded up, and then the terminal processing delay is 6 ms, for a total of 11 ms.
  • N+1(3) performs the pre-authorization of the delivery of the DCI0 (in the case of the TDD ratio 2, the pre-authorization of the DCI0 can only be performed in the subframes 3 and 8), at this time, the TCP ACK It will be carried at time N+1(7).
  • the delay of the TCP ACK from the TCP downlink data is 13ms, which is greater than and close to 11ms, so the authorization is suitable.
  • the TCP RTT filter value is pre-authorized according to the terminal processing delay, and the pre-authorization is increased by a predetermined time interval.
  • the preset time may be a time used by the base station to calculate the TCP RTT filter value, and the preset value may be 8 ms.
  • the terminal processing delay can be 6ms.
  • the base station calculates a TCP RTT filter value at time N, and the preset time is N. It is judged whether the instantaneous value of the TCP RTT reported in the NM time, the time of the N-1 and the N time (the M is 2) is 8 ms. In this embodiment, the instantaneous delay of the TCP RTT is equal to 8 ms, indicating that the terminal is at this time. The reported delay is at least 8 ms. Considering that the terminal processing delay is 6 ms, the base station performs pre-authorization according to the TCP RTT filter value + 6 ms, and needs to increase the pre-authorization by a predetermined time interval.
  • N(0) represents the 0th subframe of the N frame.
  • the N(0), N(1), and N(3) base stations receive the TCP RTT instantaneous delay reported by the terminal equal to 8ms
  • N(4) is the air interface time of the TCP downlink data
  • the TCP RTT at the N(4) time is read.
  • the filtered value is assumed to be 5 ms after the value is rounded up, and then the terminal processing delay is 6 ms, for a total of 11 ms.
  • N+1(3) performs the pre-authorization of the delivery of the DCI0 (in the case of TDD ratio 2, the pre-authorization of the DCI0 can only be performed in the subframes 3 and 8).
  • the instantaneous delay of the TCP RTT reported by the N(0), N(1), and N(3) base stations is equal to 8ms, and the actual TCP RTT instantaneous delay of the terminal may be greater than 8ms.
  • pre-authorization at 11ms is not enough to wrap the TCP ACK, and pre-authorization needs to be added.
  • the specific addition manner may be to increase the pre-authorization by a predetermined time interval, for example, the pre-authorization is added at N+1 (8) in this example, so that the TCP ACK within the distance N(4) 18 ms can be pre-authorized with greater probability. carry.
  • the TCP RTT delay is calculated by using the TCP packet and the TCP ACK information parsed by the terminal, and reported to the base station. After the TCP RTT delay is parsed by the base station, the TCP RTT delay is filtered according to the TCP RTT delay, and the terminal is authorized to be delivered according to the TCP RTT filter value and the continuously reported TCP RTT instantaneous value, which can effectively cope with the feedback.
  • the mode change causes the TCP RTT delay to change.
  • the delay of the TCP RTT on the LTE air interface scheduling is shortened, so that the scheduling resources allocated by the LTE network to the terminal are more targeted and targeted, and the delay of acquiring data by the terminal is further low.
  • a second embodiment of the present invention provides a terminal device 7. As shown in FIG. 8, the terminal device 7 includes:
  • the first receiving module 71 is configured to receive a TCP data packet sent by the base station;
  • the first parsing module 72 is configured to parse the TCP packet and the TCP ACK information in the TCP packet.
  • the calculating module 73 is configured to calculate a TCP RTT delay according to the TCP packet and the TCP ACK information;
  • the sending module 74 is configured to send the TCP RTT delay to the base station according to a preset rule with the base station.
  • the first parsing module 72 includes:
  • the TPC message parsing module is configured to parse the sequence number S1 and the acknowledgment number Q1 of the TCP packet, and record the arrival time T1 of the TCP packet;
  • the TCP ACK information parsing module is configured to parse the acknowledgment number Q2 of the TCP ACK information, and record the arrival time T2 of the TCP ACK information.
  • the calculation module 73 includes:
  • a determining module configured to determine whether the confirmation number Q2 is TCP ACK information corresponding to the sequence number S1 and the confirmation number Q1;
  • the confirmation module is configured to determine that the TCP RTT delay is T2-T1 when the confirmation number Q2 is the TCP ACK information corresponding to the sequence number S1 and the confirmation number Q1.
  • the sending module 74 is configured to fill the TCP RTT delay into a reserved bit of the PDCP data PDU and send the reserved bit to the base station.
  • a third embodiment of the present invention provides a base station 8. As shown in FIG. 9, the base station 8 includes:
  • the second receiving module 81 is configured to receive a TCP packet reported by the terminal;
  • the second parsing module 82 is configured to parse the TCP RTT delay in the TCP packet according to the preset rule of the terminal;
  • the authorization module 83 is configured to obtain a TCP RTT filter value according to the TCP RTT delay, and perform delay authorization on the terminal according to the TCP RTT filter value and the TCP RTT instantaneous value in the preset time.
  • the second parsing module 82 is configured to read the reserved bit value when the reserved bits of the PDCP data PDU are not all 0, to obtain a TCP RTT delay.
  • the authorization module 83 includes:
  • a first authorization module configured to perform delay authorization on the terminal according to the TCP RTT filter value and the terminal processing delay according to the TCP RTT instantaneous value being less than a preset value in the preset time;
  • a second authorization module configured to delay the authorization of the terminal according to the TCP RTT filtering value and the terminal processing delay according to the TCP RTT filtering value and the predetermined interval interval increases when the instantaneous value of the multiple TCP RTTs is equal to the preset value in the preset time Delay pre-authorization.
  • a fourth embodiment of the present invention provides a TCP delay processing system, including the terminal device 7 in the second embodiment and the base station 8 in the third embodiment.
  • the TCP RTT delay is calculated by using the TCP packet and the TCP ACK information parsed by the terminal, and reported to the base station. After the TCP RTT delay is parsed by the base station, the TCP RTT delay is filtered according to the TCP RTT delay, and the terminal is authorized to be delivered according to the TCP RTT filter value and the continuously reported TCP RTT instantaneous value, which can effectively cope with the feedback.
  • the mode change causes the TCP RTT delay to change.
  • the delay of the TCP RTT on the LTE air interface scheduling is shortened, so that the scheduling resources allocated by the LTE network to the terminal are more targeted and targeted, and the delay of acquiring data by the terminal is further low.

Abstract

一种TCP延时处理方法、装置、系统及其计算机存储介质,属于通信技术领域,所述方法包括:接收基站发送的TCP数据包(S101);解析所述TCP数据包中的TCP报文和TCP ACK信息(S102);根据所述TCP报文和所述TCP ACK信息计算TCP RTT时延(S103);按照预设规则将所述TCP RTT时延发送给基站(S104)。实施例提供的TCP延时处理方法、装置、系统及其计算机存储介质,能有效地应对因反馈模式变化导致TCP RTT时延变化的情况,缩短了TCP RTT在LTE空口调度上的时延,使得LTE网络分给终端的调度资源更有目的性和针对性,同时也使得终端获取数据的延迟更低。

Description

一种TCP延时处理方法、装置、系统及其计算机存储介质 技术领域
本公开涉及通信技术领域,特别是涉及一种TCP延时处理方法、装置、系统及其计算机存储介质。
背景技术
目前,用户使用LTE(Long Term Evolution,长期演进)终端进行打开网页等操作时,常常会涉及基于LTE网络的TCP(Transfer Control Protocol,传输控制协议)数据传输。
TCP(Transmission Control Protocol传输控制协议)是一种面向连接的,为不同主机进程间提供可靠数据传输的协议。在需要提供可靠性数据传输的应用中,TCP是首选的甚至唯一的网络协议。TCP有两种方式来发送TCP ACK(Acknowledgement,确认标识):快速确认和延迟确认。
在快速确认模式中,本端接收到数据包后,会立即发送TCP ACK给对端。在延迟确认模式中,本端接收到数据包后,不会立即发送TCP ACK给对端,而是等待一段时间,如果在此期间,本端有数据包要发送给对端,就在发送数据包的时候携带此TCP ACK,这样就节省了一个报文;本端没有数据包要发送给对端,延迟确认定时器会超时,然后发送纯TCP ACK给对端。
在实际的传输过程中,会根据当时的场景来判断使用快速确认模式还是使用延迟确认模式,因此TCP ACK的发送模式并不是固定的,而是在这两种模式之间动态切换。
TCP ACK的发送模式在快速确认和延迟确认之间动态切换,因此TCP数据包和其TCP ACK的之间的时间间隔是动态变化的。LTE eNB(Evolved Node B,演进基站)对TCP ACK信息的调度直接影响TCP数据传输过程中的数据延迟问题。
现有技术中,要降低数据延迟,必须浪费网络调度资源。如何降低终端数据的延迟,又能有效分配使网络资源是目前需要解决的一个难题。
发明内容
本发明实施例所要解决的技术问题是提供一种TCP延时处理方法、装置及系统,用以解决现有TCP数据传输过程中,为了降低数据延时而浪费调度资源的技术问题。
本发明通过以下技术方案解决上述技术问题:
本发明实施例一方面提供一种TCP延时处理方法,包括:
接收基站发送的传输控制协议TCP数据包;
解析所述TCP数据包中的TCP报文和传输控制协议确认标识TCP ACK信息;
根据所述TCP报文和所述TCP ACK信息计算传输控制协议往返时延TCP RTT时延;
按照预设规则将所述TCP RTT时延发送给基站。
根据一个示例性实施例,所述解析所述TCP数据包中的TCP报文和TCP ACK信息包括:
解析所述TCP报文的序列号S1和确认号Q1,记录所述TCP报文的到达时刻T1;
解析所述TCP ACK信息的确认号Q2,记录所述TCP ACK信息的到达时刻T2。
根据一个示例性实施例,所述根据所述TCP报文和所述TCP ACK信息计算TCP RTT时延包括:
当所述确认号Q2是所述序列号S1和所述确认号Q1对应的TCP ACK信息时,所述TCP RTT时延为T2-T1。
根据一个示例性实施例,所述按照预设规则将所述TCP RTT时延发送给基站包括:
将所述TCP RTT时延填充到分组数据汇聚协议PDCP数据的协议数据单元PDU预留位并发送给基站。
本发明实施例另一方面提供一种TCP延时处理方法,包括:
接收终端上报的TCP数据包;
按照预设规则解析所述TCP数据包中的TCP RTT时延;
根据所述TCP RTT时延获得TCP RTT滤波值,根据所述TCP RTT滤波值和预设时间内TCP RTT瞬时值对终端进行延时授权。
根据一个示例性实施例,所述按照预设规则解析所述TCP数据包中的TCP RTT时延包括:
当PDCP数据的PDU预留位不全为0时,读取所述预留位数值,得到TCP RTT时延。
根据一个示例性实施例,所述根据所述TCP RTT时延获得TCP RTT滤波值,根据所述TCP RTT滤波值和预设时间内TCP RTT瞬时值对终端进行延时授权包括:
当所述预设时间内多个TCP RTT瞬时值小于预设值,则按照所述TCP RTT滤波值与终端处理时延对终端进行延时授权;
当所述预设时间内多个TCP RTT瞬时值等于预设值,则按照所述TCP RTT滤波值与终端处理时延对终端进行延时授权,且间隔预定时间增加延时预授权。
本发明实施例另一方面提供一种终端设备,包括:
第一接收模块,用于接收基站发送的TCP数据包;
第一解析模块,用于解析所述TCP数据包中的TCP报文和TCP ACK信息;
计算模块,用于根据所述TCP报文和所述TCP ACK信息计算TCP RTT时延;
发送模块,用于按照预设规则将所述TCP RTT时延发送给基站。
本发明另一方面,提供一种基站,包括:
第二接收模块,用于接收终端上报的TCP数据包;
第二解析模块,用于按照预设规则解析所述TCP数据包中的TCP RTT时延;
授权模块,用于根据所述TCP RTT时延获得TCP RTT滤波值,根据所述TCP RTT滤波值和预设时间内TCP RTT瞬时值对终端进行延时授权。
本发明实施例另一方面提供一种TCP延时处理系统,包括上述终端设备和上述基站。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行的一个或多个程序,所述一个或多个程序被所述计算机执行时使所述计算机执行如上所述的任意TCP延时处理方法。
与现有技术相比,本发明实施例提供的TCP延时处理方法、装置及系统,通过终端解析出的TCP报文和TCP ACK信息计算出TCP RTT时延,并上报给基站。基站解析出TCP RTT时延后,根据TCP RTT时延对TCP RTT时延进行滤波,并根据TCP RTT滤波值和连续上报的TCP RTT瞬时值对终端进行授权的下发,能有效地应对因反馈模式变化导致TCP RTT时延变化的情况,缩短了TCP RTT在LTE空口调度上的时延,使得LTE网络分给终端的调度资源更有目的性和针对性,同时也使得终端获取数据的延迟更低。
附图说明
图1示出本发明实施例一提供的一种TCP延时处理方法流程图;
图2示出本发明实施例二提供的一种TCP延时处理方法流程图;
图3示出本发明实施例二提供的IP数据包格式及首部的各字段结构图;
图4示出本发明实施例二提供的TCP包首部的各字段结构图;
图5示出本发明实施例二提供的PDCP数据PDU头格式结构图;
图6示出本发明实施例二提供的终端授权方式一的示意图;
图7示出本发明实施例二提供的终端授权方式二的示意图;
图8示出本发明实施例三提供的终端设备结构示意图;
图9示出本发明实施例四提供的基站结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面对本发明中的技术方案进行清楚、完整的描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下,所获得的所有其他实施例,都属于本发明保护的范围。
实施例一
本发明实施例一提供一种TCP延时处理方法,该方法的执行主体是终端设备。如图1所示,该方法包括:
S101、终端接收基站发送的TCP数据包;
S102、终端解析所述TCP数据包中的TCP报文和TCP ACK信息;
S103、终端根据所述TCP报文和所述TCP ACK信息计算TCP RTT时延;
S104、终端按照预设规则将所述TCP RTT时延发送给基站。
本发明实施例提供的TCP延时处理方法通过终端解析出的TCP报文和TCP ACK信息计算出TCP RTT时延,并上报给基站。基站解析出TCP RTT时延后,根据TCP RTT时延对TCP RTT时延进行滤波,并根据TCP RTT滤波值和连续上报的TCP RTT瞬时值对终端进行授权的下发,能有效地应对因反馈模式变化导致TCP RTT时延变化的情况,缩短了TCP RTT在LTE空口调度上的时延,使得LTE网络分给终端的调度资源更有目的性和针对性,同时也使得终端获取数据的延迟更低。
实施例二
本发明实施例二提供一种TCP延时处理方法,如图2所示,该方法包括:
S201、终端接收基站发送的TCP数据包;
根据一个示例性实施例,本步骤中终端判断是否接收到TCP数据,若是则逐层解析后给PDCP层。
S202、终端解析所述TCP数据包中的TCP报文和TCP ACK信息;
该步骤包括:
解析所述TCP报文的序列号S1和确认号Q1,记录所述TCP报文的到达时刻T1。例如根据图3所示IP首部中的协议比特位进行解析,当对应的数值为6时,此时为TCP报文,则解析出该TCP报文的序列号S1和确认号Q1。
解析所述TCP ACK信息的确认号Q2,记录所述TCP ACK信息的到达时刻T2。例如根据图3所示IP首部中的协议比特位进行解析,当对应的数值为6时,此时为TCP报文,解析出该TCP报文如图4中的确认序号Q2,并判断是否为TCP ACK。判断TCP ACK的方法可以是:当URG/PSH/RST/SYN/FIN设置均为0且数据长度为0时,确定为TCP ACK。
S203、终端根据所述TCP报文和所述TCP ACK信息计算TCP RTT时延;
当所述确认号Q2是所述序列号S1和所述确认号Q1对应的TCP ACK信息时,所述TCP RTT时延为T2-T1。
示例性的,将TCP报文达到时刻T1和TCP报文的序列号S1及确认号Q1这两个信息做关联并进行记录,记为[TCP报文到达时刻T1,报文序列号S1及确认号Q1]。将TCP ACK到达时刻T2和确认号Q2做关联并进行记录,记为[TCP ACK到达时刻T2,报文确认号Q2]。然后判断报文确认号Q2是否为报文序列号S1和确认号Q1的TCP ACK,若是,则TCP RTT时延为T2-T1。
S204、终端按照与基站的预设规则将所述TCP RTT时延发送给基站。
本步骤包括:将所述TCP RTT时延填充到PDCP数据PDU的预留位并发送给基站。
示例性的,将TCP RTT时延,即T2-T1填充到PDCP(Packet Data Convergence Protocol,分组数据汇聚协议)数据PDU(protocol data unit,协议数据单元)中的预留位。
填充方法可以是:将T2-T1向上取整,将向上取整后的数值填充到PDU的3比特预 留位R上,按照从右到左(即从低位到高位)进行填充。
示例性的,根据TCP RTT瞬时值向上取整后的数值为十进制数值,将该十进制数值换算为二进制数值,然后将换算后的二进制填充到图5中的3比特预留位R中,按照从左到右即从高位到低位进行填充,例如计算出的十进制数值为5,换算成二进制为110,将110从左往右分别依次填充到图5中的3比特预留位中。
填充方法还可以是:将T2-T1向上取整,将向上取整后的数值填充到PDU的低2比特预留位R上,按照从右到左(即从低位到高位)进行填充。
示例性的,根据TCP RTT瞬时值向上取整后的数值为十进制数值,将该十进制数值换算为二进制数值,然后将换算后的二进制填充到图5中的3比特预留位R中的其中2比特,按照从左到右即从高位到低位进行填充第2个和第3个预留位R,例如计算出的十进制数值为2,换算成二进制为10,将10填充到图5的3个预留位中从左往右第2和第3个预留位上。
S205、基站接收终端上报的TCP数据包;
本步骤中,接收TCP数据包,逐层解析后给PDCP层。
S206、基站按照与终端预设规则解析所述TCP数据包中的TCP RTT时延;
本步骤中,基于步骤S204相同的预设规则,当PDCP数据PDU的预留位不全为0时,读取所述预留位数值,得到TCP RTT时延。
例如判断PDCP数据PDU中的3比特预留位是否不全为0,若不是全0,则读取该值,将二进制转换为十进制,作为TCP RTT时延
S207、基站根据所述TCP RTT时延获得TCP RTT滤波值,根据所述TCP RTT滤波值和预设时间内TCP RTT瞬时值对终端进行延时授权。
其中,TCP RTT滤波值=TCP_RTT_历史值*(1-Alpha)+TCP_RTT_瞬时值*Alpha,其中Alpha为滤波因子,取值范围为[0,1],Alpha默认值可定为0.8。
本步骤中,可通过判断在预设时间内多个TCP RTT瞬时值与预设值的关系来确定对终端进行延时授权的具体方式。其中,预设时间可以是基站算出TCP RTT滤波值所用的时间,预设值可以根据系统属性进行设置。终端处理时延可以根据终端的实际时延进行设置。
其中,授权方式一:
当所述预设时间内多个TCP RTT瞬时值小于预设值,则按照所述TCP RTT滤波值与终端处理时延进行预授权;其中,预设时间可以是基站算出TCP RTT滤波值所用的时间,预设值可以是8ms。终端处理时延可以是6ms。
示例性的,在TDD配比2,终端空闲状态访问网页,TCP RTT瞬时时延小于8ms的场景中,基站在N时刻算出TCP RTT滤波值,则预设时间为N。判断N-M时刻,…N-1时刻以及N时刻连续M+1(M为2)次上报的TCP RTT瞬时值是否均为8ms,本实施例中TCP RTT瞬时时延均小于8ms,考虑到终端处理时延位6ms,则基站按照TCP RTT滤 波值+6ms进行预授权。
例如图6中,N(0)表示N号帧的0号子帧。N(0),N(1)和N(3)基站收到终端上报的TCP RTT瞬时时延小于8ms,N(4)为TCP下行数据的空口时刻,读取N(4)时刻的TCP RTT滤波值,假设该值向上取整后为5ms,再考虑终端处理时延6ms,总共为11ms。结合该时延,N+1(3)进行预授权DCI0的下发(TDD配比2下,只能在3号子帧和8号子帧进行预授权DCI0的下发),此时TCP ACK将在N+1(7)时刻被携带上来,此时TCP ACK距离TCP下行数据的时延为13ms,大于且接近11ms,因此该授权是合适的。
授权方式二:
当所述预设时间内多个TCP RTT瞬时值等于预设值,则按照所述TCP RTT滤波值与终端处理时延进行预授权,且间隔预定时间增加预授权。其中,预设时间可以是基站算出TCP RTT滤波值所用的时间,预设值可以是8ms。终端处理时延可以是6ms。
示例性的,在TDD配比2,终端忙碌状态下访问网页,TCP RTT瞬时时延大于等于8ms的场景中,基站在N时刻算出TCP RTT滤波值,则预设时间为N。判断N-M时刻,…N-1时刻以及N时刻连续M+1(M为2)次上报的TCP RTT瞬时值是否均为8ms,本实施例中TCP RTT瞬时时延均等于8ms,说明此时终端上报的时延至少为8ms,考虑到终端处理时延位6ms,则基站按照TCP RTT滤波值+6ms进行预授权,且需要间隔预定时间增加预授权。
例如图7中,N(0)表示N号帧的0号子帧。N(0),N(1)和N(3)基站收到终端上报的TCP RTT瞬时时延等于8ms,N(4)为TCP下行数据的空口时刻,读取N(4)时刻的TCP RTT滤波值,假设该值向上取整后为5ms,再考虑终端处理时延6ms,总共为11ms。结合该时延,N+1(3)进行预授权DCI0的下发(TDD配比2下,只能在3号子帧和8号子帧进行预授权DCI0的下发)。但本例中,N(0),N(1)和N(3)基站收到终端上报的TCP RTT瞬时时延等于8ms,可能出现此时终端实际的TCP RTT瞬时时延是大于8ms的情况。这种情况下,按照11ms进行预授权不足以包住TCP ACK,需要增加预授权。具体增加的方式可以是间隔预定时间增加一次预授权,例如本例中N+1(8)处增加预授权,这样距离N(4)18ms内的TCP ACK能被更大概率地被预授权进行携带。
本发明实施例提供的TCP延时处理方法,通过终端解析出的TCP报文和TCP ACK信息计算出TCP RTT时延,并上报给基站。基站解析出TCP RTT时延后,根据TCP RTT时延对TCP RTT时延进行滤波,并根据TCP RTT滤波值和连续上报的TCP RTT瞬时值对终端进行授权的下发,能有效地应对因反馈模式变化导致TCP RTT时延变化的情况,缩短了TCP RTT在LTE空口调度上的时延,使得LTE网络分给终端的调度资源更有目的性和针对性,同时也使得终端获取数据的延迟更低。
实施例二
本发明实施例二提供一种终端设备7,如图8所示,该终端设备7包括:
第一接收模块71,用于接收基站发送的TCP数据包;
第一解析模块72,用于解析所述TCP数据包中的TCP报文和TCP ACK信息;
计算模块73,用于根据所述TCP报文和所述TCP ACK信息计算TCP RTT时延;
发送模块74,用于按照与基站的预设规则将所述TCP RTT时延发送给基站。
根据一个示例性实施例,所述第一解析模块72包括:
TPC报文解析模块,用于解析所述TCP报文的序列号S1和确认号Q1,记录所述TCP报文的到达时刻T1;
TCP ACK信息解析模块,用于解析所述TCP ACK信息的确认号Q2,记录所述TCP ACK信息的到达时刻T2。
所述计算模块73包括:
判断模块,用于判断所述确认号Q2是否是所述序列号S1和所述确认号Q1对应的TCP ACK信息;
确认模块,用于当所述确认号Q2是所述序列号S1和所述确认号Q1对应的TCP ACK信息时,确定所述TCP RTT时延为T2-T1。
所述发送模块74,用于将所述TCP RTT时延填充到PDCP数据PDU的预留位并发送给基站。
实施例三
本发明实施例三提供一种基站8,如图9所示,所示基站8包括:
第二接收模块81,用于接收终端上报的TCP数据包;
第二解析模块82,用于按照与终端预设规则解析所述TCP数据包中的TCP RTT时延;
授权模块83,用于根据所述TCP RTT时延获得TCP RTT滤波值,根据所述TCP RTT滤波值和预设时间内TCP RTT瞬时值对终端进行延时授权。
其中,所述第二解析模块82,用于当PDCP数据PDU的预留位不全为0时,读取所述预留位数值,得到TCP RTT时延。
所述授权模块83,包括:
第一授权模块,用于当所述预设时间内多个TCP RTT瞬时值小于预设值,则按照所述TCP RTT滤波值与终端处理时延对终端进行延时授权;
第二授权模块,用于当所述预设时间内多个TCP RTT瞬时值等于预设值,则按照所述TCP RTT滤波值与终端处理时延对终端进行延时授权,且间隔预定时间增加延时预授权。
实施例四
本发明实施例四提供一种TCP延时处理系统,包括实施例二中的终端设备7和实施例三中的基站8。
本领域技术人员可以理解,可以用计算机程序指令来实现这些结构图和/或框图和/或 流程图中的每个框以及这些结构图和/或框图和/或流程图中的框图的组合。可以将这些计算机程序指令提供给可编程数据处理方法的处理器来生成机器,从而通过可编程数据处理方法的处理器来执行的指令创建用于实现结构图和/或框图和/或流程图的框或多个框中指定的方法。
需要说明的是:本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。
以上对本发明所提供的一种TCP延时处理方法、装置及系统,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。
工业实用性
本发明实施例提供的技术方案可以应用于通信技术领域。在本发明实施例提供的技术方案中,通过终端解析出的TCP报文和TCP ACK信息计算出TCP RTT时延,并上报给基站。基站解析出TCP RTT时延后,根据TCP RTT时延对TCP RTT时延进行滤波,并根据TCP RTT滤波值和连续上报的TCP RTT瞬时值对终端进行授权的下发,能有效地应对因反馈模式变化导致TCP RTT时延变化的情况,缩短了TCP RTT在LTE空口调度上的时延,使得LTE网络分给终端的调度资源更有目的性和针对性,同时也使得终端获取数据的延迟更低。

Claims (11)

  1. 一种TCP延时处理方法,包括:
    接收基站发送的传输控制协议TCP数据包;
    解析所述TCP数据包中的TCP报文和传输控制协议确认标识TCP ACK信息;
    根据所述TCP报文和所述TCP ACK信息计算传输控制协议往返时延TCP RTT时延;
    按照预设规则将所述TCP RTT时延发送给基站。
  2. 根据权利要求1所述的方法,其中,所述解析所述TCP数据包中的TCP报文和TCP ACK信息包括:
    解析所述TCP报文的序列号S1和确认号Q1,记录所述TCP报文的到达时刻T1;
    解析所述TCP ACK信息的确认号Q2,记录所述TCP ACK信息的到达时刻T2。
  3. 根据权利要求2所述的方法,其中,所述根据所述TCP报文和所述TCP ACK信息计算TCP RTT时延包括:
    当所述确认号Q2是所述序列号S1和所述确认号Q1对应的TCP ACK信息时,所述TCP RTT时延为T2-T1。
  4. 根据权利要求2所述的方法,其中,所述按照预设规则将所述TCP RTT时延发送给基站包括:
    将所述TCP RTT时延填充到分组数据汇聚协议PDCP数据的协议数据单元PDU预留位并发送给基站。
  5. 一种TCP延时处理方法,包括:
    接收终端上报的TCP数据包;
    按照预设规则解析所述TCP数据包中的TCP RTT时延;
    根据所述TCP RTT时延获得TCP RTT滤波值,根据所述TCP RTT滤波值和预设时间内TCP RTT瞬时值对终端进行延时授权。
  6. 根据权利要求5所述的方法,其中,所述按照预设规则解析所述TCP数据包中的TCP RTT时延包括:
    当PDCP数据的PDU预留位不全为0时,读取所述预留位数值,得到TCP RTT时延。
  7. 根据权利要求5所述的方法,其中,所述根据所述TCP RTT时延获得TCP RTT滤波值,根据所述TCP RTT滤波值和预设时间内TCP RTT瞬时值对终端进行延时授权包括:
    当所述预设时间内多个TCP RTT瞬时值小于预设值,则按照所述TCP RTT滤波值与终端处理时延对终端进行延时授权;
    当所述预设时间内多个TCP RTT瞬时值等于预设值,则按照所述TCP RTT滤 波值与终端处理时延对终端进行延时授权,且间隔预定时间增加延时预授权。
  8. 一种终端设备,包括:
    第一接收模块,设置为接收基站发送的TCP数据包;
    第一解析模块,设置为解析所述TCP数据包中的TCP报文和TCP ACK信息;
    计算模块,设置为根据所述TCP报文和所述TCP ACK信息计算TCP RTT时延;
    发送模块,设置为按照预设规则将所述TCP RTT时延发送给基站。
  9. 一种基站,包括:
    第二接收模块,设置为接收终端上报的TCP数据包;
    第二解析模块,设置为按照预设规则解析所述TCP数据包中的TCP RTT时延;
    授权模块,设置为根据所述TCP RTT时延获得TCP RTT滤波值,根据所述TCP RTT滤波值和预设时间内TCP RTT瞬时值对终端进行延时授权。
  10. 一种TCP延时处理系统,包括如权利要求8所述的终端设备和权利要求9所述的基站。
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行的一个或多个程序,所述一个或多个程序被所述计算机执行时使所述计算机执行如根据权利要求1-7中任一项所述的TCP延时处理方法。
PCT/CN2017/108507 2016-11-02 2017-10-31 一种tcp延时处理方法、装置、系统及其计算机存储介质 WO2018082536A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201610951236.2 2016-11-02
CN201610951236 2016-11-02
CN201710034774.X 2017-01-17
CN201710034774.XA CN108023686B (zh) 2016-11-02 2017-01-17 一种tcp延时处理方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2018082536A1 true WO2018082536A1 (zh) 2018-05-11

Family

ID=62075674

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/108507 WO2018082536A1 (zh) 2016-11-02 2017-10-31 一种tcp延时处理方法、装置、系统及其计算机存储介质

Country Status (1)

Country Link
WO (1) WO2018082536A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112054966A (zh) * 2020-09-01 2020-12-08 首都师范大学 多路传输数据调度方法、装置及设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111255A (zh) * 2011-01-10 2011-06-29 东南大学 用于蜂窝移动通信系统的自适应差错检测方法
CN104754630A (zh) * 2013-12-31 2015-07-01 华为技术有限公司 一种网络质量评估方法、装置及处理平台
CN105828354A (zh) * 2015-01-05 2016-08-03 中国移动通信集团浙江有限公司 一种lte网络业务下行速率的评估方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111255A (zh) * 2011-01-10 2011-06-29 东南大学 用于蜂窝移动通信系统的自适应差错检测方法
CN104754630A (zh) * 2013-12-31 2015-07-01 华为技术有限公司 一种网络质量评估方法、装置及处理平台
CN105828354A (zh) * 2015-01-05 2016-08-03 中国移动通信集团浙江有限公司 一种lte网络业务下行速率的评估方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112054966A (zh) * 2020-09-01 2020-12-08 首都师范大学 多路传输数据调度方法、装置及设备
CN112054966B (zh) * 2020-09-01 2023-11-07 首都师范大学 多路传输数据调度方法、装置及设备

Similar Documents

Publication Publication Date Title
KR101386052B1 (ko) 무선 자원 스케줄링 방법, 접속 네트워크 및 터미널
JP5063781B2 (ja) 無線通信システムでアップリンクデータ及びバッファ状態報告を伝送する方法及びこれを具現する無線装置
RU2499364C2 (ru) Схема произвольного доступа для оборудования пользователя
US7865549B2 (en) Method and apparatus for transmitting data frame efficiently in communication network
WO2013020405A1 (zh) 无线资源调度请求配置方法及装置
JP7050094B2 (ja) パケット送信方法、プロキシサーバ、およびコンピュータ読取り可能記憶媒体
JP5567128B2 (ja) Arqフィードバック情報伝送及び受信方法
JP2017526296A (ja) データ送信方法および基地局
JP2018538761A (ja) 高レイテンシーデバイスのインターネットプロトコル(ip)マルチメディアサブシステム(ims)レベル認識
KR20200100107A (ko) 무선 통신 방법 및 디바이스
US20180160462A1 (en) Data Radio Bearer Establishment Method and Apparatus
CN103782554A (zh) 数据分流方法,数据发送装置以及分流节点装置
JP6313524B2 (ja) 無線端末、基地局、及び無線通信方法
US10136375B2 (en) Method for service data management, apparatus, and system
CN111131179B (zh) 业务处理方法、装置、网络设备及存储介质
US20180184332A1 (en) Wireless network function configuration method, wireless network node, and core network device
CN101742513B (zh) 一种计数器检查处理的方法、系统及设备
WO2018082536A1 (zh) 一种tcp延时处理方法、装置、系统及其计算机存储介质
US20180131609A1 (en) Protocol frame transmission method, apparatus, and system, and node device
CN108023686B (zh) 一种tcp延时处理方法、装置及系统
US20240023126A1 (en) Downlink channel monitoring
EP3413665B1 (en) Base station device, communication terminal, communication system, program and frame transmission method
WO2017185368A1 (zh) 一种信令传输方法和设备
WO2020078407A1 (zh) Drx的配置方法及装置
CN106341348A (zh) 一种面向tcp业务的流量控制方法及接入网网元

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17867462

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17867462

Country of ref document: EP

Kind code of ref document: A1