WO2018086617A1 - 一种数据处理方法及基站 - Google Patents
一种数据处理方法及基站 Download PDFInfo
- Publication number
- WO2018086617A1 WO2018086617A1 PCT/CN2017/110789 CN2017110789W WO2018086617A1 WO 2018086617 A1 WO2018086617 A1 WO 2018086617A1 CN 2017110789 W CN2017110789 W CN 2017110789W WO 2018086617 A1 WO2018086617 A1 WO 2018086617A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- base station
- terminal
- data packet
- tcp
- server
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/163—In-band adaptation of TCP data exchange; In-band control procedures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0205—Traffic management, e.g. flow control or congestion control at the air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/20—Manipulation of established connections
Definitions
- the present application relates to the field of communications, and in particular, to a data processing method and a base station.
- LTE Long Term Evolution
- a video website uses a slice download method when playing a video.
- the download of video fragments usually adopts the Transmission Control Protocol (TCP) protocol.
- TCP Transmission Control Protocol
- the video website server After receiving the video fragmentation request from the terminal, the video website server transmits the fragmented data to the terminal by transmitting multiple TCP data packets.
- TCP Transmission Control Protocol
- the download process of a video slice is shown in Figure 1. The corresponding steps are as follows:
- the terminal initiates a TCP connection establishment request and creates a new TCP connection
- the terminal issues a request for downloading a fragmented Hypertext Transfer Protocol (Http) on the newly created TCP connection; after receiving the request, the server splits the fragmented data into multiple TCP data. The package is delivered and sent over the TCP connection. After the data packet arrives at the base station, the base station first caches the data packet, and then sends the data packet to the terminal according to the allocation policy of the air interface resource;
- Http Hypertext Transfer Protocol
- the terminal receives the first TCP packet sent by the base station, and returns a feedback packet to the server;
- the terminal receives the last TCP packet sent by the base station, and returns a feedback packet to the server;
- the terminal judges that the requested fragmentation data has been collected, and actively requests the TCP connection to be disconnected, and the fragment download is ended.
- the fragmented data that is currently requested to be downloaded may have arrived at the base station and is cached. Since the base station is not aware of the behavior of the user's early termination, the data that has already been cached will continue to be sent to the terminal. When these data arrive at the terminal, they will be discarded as invalid data, resulting in waste of air interface spectrum resources.
- the embodiment of the invention provides a data processing method and a server, which are used to avoid sending invalid data to air interface resources. The waste caused.
- the first aspect of the embodiments of the present invention provides a data processing method, including:
- the base station forwards the first data packet sent by the server to the terminal, and after receiving the first data packet, the terminal sends a feedback message, where the feedback message is used to confirm to the server that the terminal has received the first data, and the base station receives the feedback message.
- Obtaining a TCP packet header in the feedback packet determining, according to the TCP packet header, whether the TCP connection between the terminal and the server is valid.
- the base station determines that the TCP is invalid, the base station discards the second data packet, where the first data packet and the second data packet are The data packet is a data packet sent by the server received by the base station, and the second data packet is a data packet that the base station has received but has not sent to the terminal.
- the terminal establishes a TCP connection with the server in advance, and the data transmission between the terminal and the server is performed through the TCP connection, and the server sends the data packet through the TCP connection, and the terminal sends the feedback packet through the TCP connection after receiving the data packet.
- the base station receives the data packet or feedback packet sent by the terminal or the server on the TCP connection, and forwards the packet to the other end.
- the base station may determine whether the TCP connection between the terminal and the server is valid by:
- the base station determines whether the FIN flag in the TCP header is 1, and if so, determines that the TCP connection is invalid.
- the base station may determine whether the TCP connection between the terminal and the server is valid by:
- the base station determines whether the RST flag in the TCP header is 1, and if so, determines that the TCP connection is invalid.
- the embodiment of the present invention provides another specific manner for determining whether a TCP connection is valid, and improves the flexibility of the solution.
- the base station determines whether the payload length of the second data packet is zero. If not, the base station triggers the base station to determine whether the TCP connection between the terminal and the server is valid.
- any one of the first and second implementation manners of the first aspect is implemented in the fourth implementation manner of the first aspect of the embodiments of the present invention.
- the base station may further perform the following steps:
- the base station When the base station determines that the TCP connection between the terminal and the server is valid, the base station transmits a second data packet to the terminal.
- a forwarding module configured to forward a first data packet sent by the server to the terminal
- An obtaining module configured to obtain a TCP packet header in a feedback packet received by the receiving module
- a first determining module configured to determine, according to the TCP packet header, whether the TCP connection between the terminal and the server is valid
- a discarding module configured to discard the second data packet on the base station when the first determining module determines that the TCP connection is invalid, where the first data packet and the second data packet are data packets sent by the server received by the base station, and the second data packet A packet that has not been sent to the terminal by the base station.
- the first determining module includes:
- a first determining unit configured to determine whether the FIN flag in the TCP packet header is 1;
- a second determining unit configured to determine whether the RST flag in the TCP packet header is 1;
- the second determining unit is configured to determine that the TCP connection is invalid when the second determining unit determines that the RST flag is 1.
- the base station further includes:
- a second determining module configured to determine whether a payload length of the second data packet is zero
- the triggering module is configured to trigger the first determining module when the second determining module determines that the payload length is zero.
- the base station further includes:
- a third aspect of the embodiments of the present invention further provides a base station, where the base station includes:
- Memory Memory, transceiver, processor, and bus system
- the memory is used to store the program
- the processor is used to execute the program in the memory, as follows:
- the control transceiver receives the feedback message sent by the terminal to the server, where the feedback message is used in the feedback to receive the first data packet;
- the second data packet is discarded, the first data packet and the second data packet are data packets sent by the server received by the processor control transceiver, and the second data packet is sent by the transceiver to the terminal. data pack.
- the base station after receiving the feedback message sent by the terminal to the server, extracts the TCP packet header in the feedback packet, and determines whether the TCP connection between the terminal and the server is valid according to the TCP packet header, and confirms the When the TCP connection is invalid, the base station may discard the data that has not been forwarded to the terminal and sent by the server that is received by the base station. That is to say, in the embodiment of the present invention, the base station can identify the state in which the terminal ends the video playback in advance, and discards the video data to be sent in the state, thereby avoiding the waste of the invalid data to the air interface resource.
- FIG. 2 is a flow chart of an embodiment of a data processing method in an embodiment of the present invention.
- FIG. 3 is a flow chart of another embodiment of a data processing method in an embodiment of the present invention.
- FIG. 4 is a schematic diagram of an embodiment of a base station according to an embodiment of the present invention.
- FIG. 5 is a schematic diagram of another embodiment of a base station according to an embodiment of the present invention.
- FIG. 6 is a schematic diagram of another embodiment of a base station according to an embodiment of the present invention.
- GSM Global System of Mobile communication
- CDMA Code Division Multiple Access
- WCDMA Wideband Code Division Multiple Access
- GPRS General Packet Radio Service
- LTE Long Term Evolution
- FDD Frequency Division Duplex
- TDD Time Division Duplex
- UMTS Universal Mobile Telecommunication System
- WiMAX Worldwide Interoperability for Microwave Access
- the terminal in the embodiment of the present invention includes but is not limited to a user equipment (English name: User Equipment, English abbreviation: UE), a mobile station (English full name: Mobile Station, English abbreviation: MS), and a mobile terminal (Mobile Terminal) ), mobile phone, mobile device, portable device, etc.
- the user device can be connected to one or more cores via a wireless access network (English name: Radio Access Network, English abbreviation: RAN)
- the network communicates, for example, the terminal may be a mobile phone (or "cellular" phone), a computer with wireless communication function, etc., and the user device may also be a portable, pocket, handheld, computer built-in or vehicle-mounted mobile device. .
- the base station in the embodiment of the present invention may be a base station in GSM or CDMA (English full name: Base Transceiver Station, English abbreviation: BTS), may also be a base station (NodeB) in WCDMA, or may be an evolved base station in LTE ( The English full name: evolved Node B, English abbreviation: eNB or e-NodeB), the embodiment of the present invention is not limited.
- an embodiment of the data processing method in the embodiment of the present invention includes:
- the base station forwards a first data packet sent by the server to the terminal.
- the base station After the terminal establishes a TCP connection with the server, the base station sends a download request to the server, and after receiving the download request, the server determines the target data packet corresponding to the download request, and divides the target data packet into a plurality of TCP data packets, including The first data packet and the second data packet.
- the server first sends the first data packet to the base station in sequence, and the base station receives and caches the first data packet, and sends the first data to the terminal according to the allocation policy of the air interface resource.
- the terminal After receiving the first data packet, the terminal sends a feedback message, where the feedback message is used to feed back to the server that the terminal has received the first data packet, and the base station receives the feedback message.
- the base station acquires a TCP packet header in the feedback packet.
- the base station After receiving the feedback packet, the base station extracts the TCP packet header in the feedback packet.
- the base station determines, according to the TCP packet header, whether the TCP connection between the terminal and the server is valid; if not, executing step 205;
- the base station After the base station acquires the TCP packet header, it determines whether the TCP connection between the terminal and the server is valid according to the TCP packet header. If not, step 205 is performed.
- the base station discards the second data packet.
- the second data packet is sent to the base station, and the base station receives and caches the second data packet.
- the base station determines that the TCP connection is invalid, the second data packet is discarded and is not sent to the terminal. The second data packet.
- the base station after receiving the feedback message sent by the terminal to the server, extracts the TCP packet header in the feedback packet, and determines whether the TCP connection between the terminal and the server is valid according to the TCP packet header, and confirms the When the TCP connection is invalid, the base station may discard the data that has not been forwarded to the terminal and sent by the server that is received by the base station. That is to say, in the embodiment of the present invention, the base station can identify the state in which the terminal ends the video playback in advance, and discards the video data to be sent in the state, thereby avoiding the waste of the invalid data to the air interface resource.
- FIG. 3 another embodiment of the data processing method in the embodiment of the present invention includes:
- the terminal sends a download request to the server by using the base station.
- the server determines a target data packet corresponding to the download request, and divides the target data packet into a first data packet and a second data packet.
- the server After receiving the download request, the server determines a target data packet corresponding to the download request, and divides the target data packet into a first data packet and a second data packet.
- the base station forwards the first data packet sent by the server to the terminal.
- the first data packet is first sent to the base station according to the sequence, and the base station receives and caches the first data packet.
- the base station sends the air interface resource to the terminal. The first data packet.
- the server sends a second data packet to the base station.
- the second data packet is sent to the base station one after another.
- the base station receives the feedback packet sent by the terminal.
- the terminal After receiving the first data packet, the terminal returns a feedback message to the base station, where the feedback message is used to receive the first data packet in the feedback from the server, and the base station receives the feedback message returned by the terminal.
- the base station acquires a TCP packet header in the feedback packet.
- the base station After receiving the feedback packet, the base station extracts the TCP packet header in the feedback packet.
- the structure of the first 20 bytes of the TCP header is shown in the following table:
- the termination bit (FIN, Final) is used to release a connection.
- the base station determines whether the TCP connection between the server and the terminal is valid according to the TCP packet header, if yes, step 309 is performed, and if not, step 308 is performed;
- the base station After the base station extracts the TCP packet header, it determines whether the TCP connection between the server and the terminal is valid according to the TCP packet header. Based on the TCP packet header structure, the base station can determine by:
- the base station may determine whether the TCP connection between the server and the terminal is valid by using other methods, which is not limited herein.
- the server After the server sends the first data packet, it will continue to send the second data packet to the base station.
- the base station determines that the TCP connection between the terminal and the server is invalid, the second data packet that has been received and subsequently arrived is discarded, and the second data packet is not sent to the terminal. The second data packet.
- the base station may further determine whether the payload length of the second data packet is zero, if the second data is The payload length of the packet is not zero, that is, when the second data packet includes not only the signaling of the TCP, the base station performs step 306; if the payload length of the second data packet is zero, that is, the second data packet only contains the TCP. For the signaling, the base station may directly perform step 308 to send the second data packet to the terminal.
- the base station after receiving the feedback message sent by the terminal to the server, extracts the TCP packet header in the feedback packet, and determines whether the TCP connection between the terminal and the server is valid according to the TCP packet header, and confirms the When the TCP connection is invalid, the base station may discard the data that has not been forwarded to the terminal and sent by the server that is received by the base station. That is to say, in the embodiment of the present invention, the base station can identify the state in which the terminal ends the video playback in advance, and discards the video data to be sent in the state, thereby avoiding the waste of the invalid data to the air interface resource.
- the base station can determine whether the TCP connection is valid in a plurality of manners, thereby improving the flexibility of the solution.
- the base station determines whether the TCP connection is valid for the data packet not only including the signaling of the TCP, and does not judge the base station of the data packet including only the signaling of the TCP, and the base station can identify the valid data. Make judgments and improve work efficiency.
- the user opens the mobile phone P and starts the Youku application in the mobile phone.
- the mobile phone P (terminal) establishes a TCP connection with the Youku video server through the base station B.
- the user opens the video A in the Youku application, and the mobile phone P sends an Http request for downloading the video A to the Youku video server on the TCP connection.
- the Youku video server splits the data packet corresponding to the video A.
- the five TCP packets are sent, and the five TCP packets are delivered through the TCP connection.
- the base station B receives the TCP packet 1, and buffers the TCP packet 1, and transmits the TCP packet 1 (first packet) to the handset P through the air interface resource.
- the mobile phone P After receiving the TCP packet 1, the mobile phone P sends a feedback message through the TCP connection to feed back to the Youku video server that the TCP packet 1 has been received.
- the base station B successively receives the TCP packet 2, the TCP packet 3, the TCP packet 4, and the TCP packet 5.
- the base station B extracts the TCP packet header in the feedback packet, determines whether the FIN flag in the TCP packet header is 1, and the base station B determines that the FIN flag of the TCP packet header is 1.
- Base station B has received TCP packet 2, TCP packet 3 and TCP packet 4, and is receiving packet 5, while TCP packet 2 has been forwarded to handset B for transmission, and base station B will TCP packet 3, TCP.
- Packet 4 and subsequent received packets 5 (TCP packets 3, 4, and 5 are second packets) are discarded and are no longer sent to handset P.
- an embodiment of the base station in the embodiment of the present invention includes:
- the forwarding module 401 is configured to forward the first data packet sent by the server to the terminal;
- the receiving module 402 is configured to receive a feedback message sent by the terminal to the server, where the feedback message is used by the feedback terminal to receive the first data packet;
- the obtaining module 403 is configured to obtain a TCP packet header in the feedback packet received by the receiving module 402.
- the discarding module 405 is configured to: when the first determining module 404 determines that the TCP connection is invalid, discarding the second data packet on the base station, where the first data packet and the second data packet are data packets sent by the server received by the base station, and second The data packet is a data packet that the base station has not sent to the terminal.
- the base station after receiving the feedback message sent by the terminal to the server, extracts the TCP packet header in the feedback packet, and determines whether the TCP connection between the terminal and the server is valid according to the TCP packet header, and confirms the When the TCP connection is invalid, the base station may discard the data that has not been forwarded to the terminal and sent by the server that is received by the base station. That is to say, in the embodiment of the present invention, the base station can identify the state in which the terminal ends the video playback in advance, and discards the video data to be sent in the state, thereby avoiding the waste of the invalid data to the air interface resource.
- FIG. 5 another embodiment of the base station in the embodiment of the present invention includes:
- the forwarding module 501 is configured to forward the first data packet sent by the server to the terminal;
- the obtaining module 503 is configured to obtain a TCP packet header in the feedback packet received by the receiving module 502.
- the first determining module 504 is configured to determine, according to the TCP packet header, whether the TCP connection between the terminal and the server is valid;
- the discarding module 505 is configured to: when the first determining module 504 determines that the TCP connection is invalid, discarding the second data packet on the base station, where the first data packet and the second data packet are data packets sent by the server received by the base station, and second The data packet is a data packet that the base station has not sent to the terminal;
- the first determining module 504 can include:
- a first determining unit configured to determine whether the FIN flag in the TCP packet header is 1;
- a second determining unit configured to: when the first determining unit 5041 determines that the FIN flag is 1, determining that the TCP connection is invalid;
- the second determining unit is configured to determine that the TCP connection is invalid when the second determining unit determines that the RST flag is 1.
- the base station may further include:
- the second determining module 506 is configured to determine whether the payload length of the second data packet is zero;
- the triggering module 507 is configured to trigger the first determining module when the second determining module 506 determines that the payload length is zero.
- the base station may further include:
- the sending module 508 is configured to: when the first determining module 504 determines that the TCP connection is valid, send the second data packet on the base station to the terminal.
- the base station after receiving the feedback message sent by the terminal to the server, extracts the TCP packet header in the feedback packet, and determines whether the TCP connection between the terminal and the server is valid according to the TCP packet header, and confirms the When the TCP connection is invalid, the base station may discard the data that has not been forwarded to the terminal and sent by the server that is received by the base station. That is to say, in the embodiment of the present invention, the base station can identify the state in which the terminal ends the video playback in advance, and discards the video data to be sent in the state, thereby avoiding the waste of the invalid data to the air interface resource.
- the embodiment of the present invention provides a manner in which various first determining modules determine whether a TCP connection is valid, and the flexibility of the solution is improved.
- FIG. 6 is a schematic structural diagram of a base station according to an embodiment of the present invention.
- a large difference may be included, including one or more central processing units (CPU) 622 (eg, one or more processors) and memory 632, one or more storage applications 642 or storage medium 630 of data 644 (eg, one or one storage device in Shanghai).
- the memory 632 and the storage medium 630 may be short-term storage or persistent storage.
- the program stored on storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations in the server. Still further, central processor 622 can be configured to communicate with storage medium 630 to perform a series of instruction operations in storage medium 630 on base station 600.
- Server 600 may also include one or more power sources 626, one or more wired or wireless networks Port 650, one or more input and output interfaces 658, and/or one or more operating systems 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and the like.
- the steps performed by the base station in the above embodiments may be based on the server structure shown in FIG. 6.
- the disclosed system, apparatus, and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- a computer device which may be a personal computer, server, or network device, etc.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (English full name: Read-Only Memory, English abbreviation: ROM), a random access memory (English full name: Random Access Memory, English abbreviation: RAM), magnetic A variety of media that can store program code, such as a disc or a disc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例公开了一种数据处理方法,用于避免下发无效数据对空口资源造成的浪费。本发明实施例方法包括:基站转发所述服务器向所述终端发送的第一数据包;所述基站接收终端向服务器发送的反馈报文,所述反馈报文用于反馈所述终端已接收到所述第一数据包;所述基站获取所述反馈报文中的TCP包头;所述基站根据所述TCP包头判断所述终端与所述服务器之间的TCP连接是否有效;若所述TCP连接无效,则所述基站将所述基站上的第二数据包丢弃,所述第一数据包及所述第二数据包为所述基站接收到的所述服务器发送的数据包,所述第二数据包为所述基站尚未向所述终端发送的数据包。本发明实施例还公开了一种基站,用于避免下发无效数据对空口资源造成的浪费。
Description
本申请要求于2016年11月14日提交中国专利局、申请号为201611001218.4、发明名称为“一种数据处理方法及基站”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信领域,尤其涉及一种数据处理方法及基站。
随着智能手机的普及,移动上网的需求越来越大,移动通信***的负荷也越来越重。在长期演进(Long Term Evolution,LTE)***中,合理的利用频谱资源,减少频谱资源的浪费,对提高***容量来说具有重要的意义。
最近的研究表明,在LTE移动通信***中,视频业务消耗了60%以上的频谱带宽,并且这一比例正在逐年增加。现有技术中,视频网站在播放视频时均采用分片下载的方式。视频分片的下载通常采用传输控制协议(TCP,Transfer Protocol)协议,视频网站服务器在收到终端的视频分片请求后,通过传输多个TCP数据包的方式,将分片数据发送给终端。一个视频分片的下载流程如图1所示,相应的步骤如下:
(1)T1时刻,终端发起TCP连接建立请求,新建一条TCP连接;
(2)T2时刻,终端在新建的TCP连接上发出下载一个分片的超文本传输协议(Http,Hyper Text Transfer Protocol)请求;服务器收到请求后,将分片数据拆分成多个TCP数据包,并通过该TCP连接下发。数据包到达基站后,基站会先缓存起来,并根据空口资源的分配策略,陆续将数据包下发给终端;
(3)T3时刻,终端收到基站下发的第一个TCP数据包,并向服务器返回反馈报文;
(4)T4时刻,终端收到基站下发的最后一个TCP数据包,并向服务器返回反馈报文;
(5)T5时刻,终端判断请求的分片数据已收齐,主动请求TCP连接断开,本次分片下载结束。
上述视频分片下载的过程中,基站对终端和视频服务器之间的数据进行透传,只要基站上缓存有服务器发给终端的TCP数据,都会下发给终端,而不会考虑数据对终端的有效性。
因此,若终端在收齐该分片的所有TCP数据包之前,即T4时刻之前,提前结束了本次视频的播放,按照现有技术的处理,基站还是会继续将该TCP连接上已经缓存的TCP数据包下发给终端,而这些数据包对终端来说已经是无效的数据,造成了空口资源的浪费。
也就是说当用户提前终止视频播放时,当前请求下载的分片数据可能已经到达基站并缓存,由于基站不能意识到用户提前终止的行为,因此还是会继续将已经缓存的数据下发给终端。这些数据到达终端后会被认为是无效的数据直接丢弃,造成了空口频谱资源的浪费。
发明内容
本发明实施例提供了一种数据处理方法及服务器,用于避免下发无效数据对空口资源
造成的浪费。
有鉴于此,本发明实施例第一方面提供了一种数据处理方法,包括:
基站转发服务器向终端发送的第一数据包,终端接收到第一数据包后发送反馈报文,该反馈报文用于向服务器确认终端已经收到该第一数据,基站接收该反馈报文,获取该反馈报文中的TCP包头,根据该TCP包头判断终端与服务器之间的TCP连接是否有效,当基站确定该TCP无效时,基站将第二数据包丢弃,其中第一数据包和第二数据包为基站接收到的服务器发送的数据包,第二数据包是基站已经接收但是还未向终端发送的数据包。
需要说明的是终端与服务器预先建立了TCP连接,终端与服务器之间的数据传输均通过该TCP连接进行,服务器通过该TCP连接发送数据包,终端接收数据包后通过该TCP连接发送反馈报文,基站作为两者的中转,会接收终端或服务器在该TCP连接上发送的数据包或反馈报文,并转发至另一端。而本发明实施例中,当基站接收终端在该TCP连接上的反馈报文后,会根据该反馈报文中的TCP包头判断该TCP连接是否有效,当确认TCP连接无效时,就会将已经接收但是尚未向终端发送的数据包丢弃,不再向终端发送,从而避免了下发无效数据对空口资源造成的浪费。
结合本发明实施例的第一方面,在本发明实施例第一方面的第一种实现方式中,基站可以通过如下方式判断终端与服务器之间的TCP连接是否有效:
基站判断该TCP包头中的FIN标志是否为1,若是,则确定该TCP连接无效。
需要说明的是,TCP包头的前20个字节中包含有URG,ACK,PSH,RST,SYN,FIN等标志位,其中FIN用于释放连接,当FIN=1时,表示发送端请求释放连接。因此当FIN标志时,基站认为终端发起断链,即可确认该TCP连接无效。
本发明实施例提供了一种判断TCP连接是否有效的具体方式,提高了方案的可实现性。
结合本发明实施例的第一方面,在本发明实施例第一方面的第二种实现方式中,基站可以通过如下方式判断终端与服务器之间的TCP连接是否有效:
基站判断TCP包头中的RST标志是否为1,若是,则确定该TCP连接无效。
需要说明的是,TCP包头的前20个字节中包含有URG,ACK,PSH,RST,SYN,FIN等标志位,其中RST用于重置连接,当RST=1时,表示连接出现错误,需要重新建立连接。故当RST的标志为1时,基站认为该TCP连接无效。
本发明实施例提供了另种判断TCP连接是否有效的具体方式,提高了方案的灵活性。
结合本发明实施例的第一方面,第一方面的第一及第二种实现方式中的任意一种实现方式,在本发明实施例第一方面的第三种实现方式中,可以通过如下方式触发基站判断终端与服务器之间的TCP连接是否有效:
基站判断第二数据包的净荷长度是否为零,若否,则基站触发基站判断终端与服务器之间的TCP连接是否有效的步骤。
需要说明的是,净荷长度为零表示数据包中是包含TCP的信令。也就是说当第二数据包中除了包含信令还包含其他数据时,基站才会执行判断的步骤决定是否丢弃数据包。这样在判断之前预先对数据包的内容进行了识别,仅对有意义的数据包进行判断,能够提高工作效率。
结合本发明实施例的第一方面,第一方面的第一及第二种实现方式中的任意一种实现方式,在本发明实施例第一方面的第四种实现方式中,在本发明实施例第一方面的第五种实现方式中,基站还可以执行如下步骤:
当基站确定终端与服务器之间的TCP连接有效时,基站向终端发送第二数据包。
本发明实施例的第二方面提供了一种基站,该基站包括:
转发模块,用于转发服务器向终端发送的第一数据包;
接收模块,用于接收终端向服务器发送的反馈报文,反馈报文用于反馈终端已接收到第一数据包;
获取模块,用于获取接收模块接收的反馈报文中的TCP包头;
第一判断模块,用于根据TCP包头判断终端与服务器之间的TCP连接是否有效;
丢弃模块,用于当第一判断模块确定TCP连接无效时,将基站上的第二数据包丢弃,第一数据包及第二数据包为基站接收到的服务器发送的数据包,第二数据包为基站尚未向终端发送的数据包。
结合本发明实施例的第二方面,在本发明实施例第二方面的第一种实现方式中,第一判断模块包括:
第一判断单元,用于判断TCP包头中的FIN标志是否为1;
第二确定单元,用于当第一判断单元确定FIN标志为1时,确定TCP连接无效。
结合本发明实施例的第二方面,在本发明实施例第二方面的第二种实现方式中,第一判断模块包括:
第二判断单元,用于判断该TCP包头中的RST标志是否为1;
第二确定单元,用于当第二判断单元确定RST标志为1时,确定TCP连接无效。
结合本发明实施例的第二方面,第二方面的第一至第二种实现方式中的任意一种实现方式,在本发明实施例第二方面的第三种实现方式中,基站还包括:
第二判断模块,用于判断第二数据包的净荷长度是否为零;
触发模块,用于当第二判断模块确定净荷长度为零时,则触发第一判断模块。
结合本发明实施例的第二方面,第二方面的第一至第二种实现方式中的任意一种实现方式,在本发明实施例第二方面的第四种实现方式中,基站还包括:
发送模块,用于当第一判断模块确定TCP连接有效时,向终端发送基站上的第二数据包。
本发明实施例第三方面还提供了一种基站,该基站包括:
存储器、收发器、处理器以及总线***;
其中,存储器用于存储程序;
处理器用于执行存储器中的程序,具体如下步骤:
控制收发器转发服务器向终端发送的第一数据包;
控制收发器接收终端向服务器发送的反馈报文,该反馈报文用于反馈中的已接收到该第一数据包;
获取反馈报文中的TCP包头;
根据TCP包头判断终端与服务器之间的TCP连接是否有效;
当确认该TCP连接无效时,将第二数据包丢弃,第一数据包及第二数据包为处理器控制收发器接收到的服务器发送的数据包,第二数据包为收发器向终端发送的数据包。
从以上技术方案可以看出,本发明实施例具有以下优点:
本发明实施例中,基站接收到终端向服务器发送的反馈报文后,会提取该反馈报文中的TCP包头,并根据该TCP包头判断终端与服务器之间的TCP连接是否有效,当确认该TCP连接无效时,基站可以将基站接收到的服务器发送的数据中尚未转发至终端发送的数据丢弃。也就是说,本发明实施例中基站可以及时识别出终端提前结束视频播放的状态,将该状态下对待发送的视频数据采取丢弃处理,避免了下发无效数据对空口资源造成的浪费。
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例。
图1是现有技术中分片下载视频数据的流程图;
图2是本发明实施例中数据处理方法的一个实施例流程图;
图3是本发明实施例中数据处理方法的另一实施例流程图;
图4是本发明实施例中基站的一个实施例示意图;
图5是本发明实施例中基站的另一实施例示意图;
图6是本发明实施例中基站的另一实施例示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、***、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
应理解,本发明实施例的技术方案可以应用于各种通信***,例如:全球移动通讯(Global System of Mobile communication,GSM)***、码分多址(Code Division Multiple Access,CDMA)***、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)***、通用分组无线业务(General Packet Radio Service,GPRS)、长期演进(Long Term Evolution,LTE)***、LTE频分双工(Frequency Division Duplex,FDD)***、LTE时分双工(Time Division Duplex,TDD)、通用移动通信***(Universal Mobile Telecommunication System,UMTS)或全球互联微波接入(Worldwide Interoperability for Microwave Access,WiMAX)通信***等。
应理解,在本发明实施例中的终端包括但不限于用户设备(英文全称:User Equipment,英文简称:UE)、移动台(英文全称:Mobile Station,英文简称:MS)、移动终端(Mobile Terminal)、移动电话(Mobile Telephone)、手机(handset)及便携设备(portable equipment)等,该用户设备可以经无线接入网(英文全称:Radio Access Network,英文简称:RAN)与一个或多个核心网进行通信,例如,终端可以是移动电话(或称为“蜂窝”电话)、具有无线通信功能的计算机等,用户设备还可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置。
本发明实施例中的基站可以是GSM或CDMA中的基站(英文全称:Base Transceiver Station,英文缩写:BTS),也可以是WCDMA中的基站(NodeB),还可以是LTE中的演进型基站(英文全称:evolved Node B,英文缩写:eNB或e-NodeB),本发明实施例并不限定。
应理解,本发明实施例中的技术方案除了可以应用于视频数据传输外,还可以应用于其他基于TCP的业务传输,具体此处不作限定。
下面先对本发明实施例中的数据处理方法进行介绍,请参阅图2,本发明实施例中数据处理方法的一个实施例包括:
201、基站转发服务器向终端发送的第一数据包;
终端与服务器建立TCP连接后,通过基站向服务器发送下载请求,服务器接收到该下载请求后,确定该下载请求对应的目标数据包,将该目标数据包划分成若干个TCP数据包,其中包括有第一数据包和第二数据包。服务器按照顺序先向基站发送第一数据包,基站接收并缓存该第一数据包,根据空口资源的分配策略,将该第一数据发送至终端。
202、基站接收终端向服务器发送的反馈报文;
终端接收到该第一数据包后,会发送反馈报文,该反馈报文用于向服务器反馈终端已经接收到了该第一数据包,基站接收该反馈报文。
203、基站获取反馈报文中的TCP包头;
基站接收到该反馈报文后,将该反馈报文中的TCP包头提取出来。
204、基站根据该TCP包头判断终端与服务器之间的TCP连接是否有效;若否,则执行步骤205;
基站获取TCP包头后,根据该TCP包头判断终端与服务器之间的TCP连接是否有效,若否,则执行步骤205。
205、基站将第二数据包丢弃。
服务器发送第一数据包后会继续向基站发送第二数据包,基站接收并缓存该第二数据包,当基站确定该TCP连接无效时,会将该第二数据包丢弃,不会向终端发送该第二数据包。
本发明实施例中,基站接收到终端向服务器发送的反馈报文后,会提取该反馈报文中的TCP包头,并根据该TCP包头判断终端与服务器之间的TCP连接是否有效,当确认该TCP连接无效时,基站可以将基站接收到的服务器发送的数据中尚未转发至终端发送的数据丢弃。也就是说,本发明实施例中基站可以及时识别出终端提前结束视频播放的状态,将该状态下对待发送的视频数据采取丢弃处理,避免了下发无效数据对空口资源造成的浪费。
为了便于理解,下面以一交互实施例对本发明实施例中的数据处理方法进行详细介绍,请参阅图3,本发明实施例中数据处理方法的另一实施例包括:
301、终端通过基站向服务器发送下载请求;
终端通过基站与服务器建立TCP连接后,终端在该TCP连接上发送下载请求,基站接收该下载请求,并将该下载请求发送至服务器。
302、服务器确定下载请求对应的目标数据包,并将目标数据包划分成第一数据包及第二数据包;
服务器接收该下载请求后,确定该下载请求对应的目标数据包,并将该目标数据包划分成第一数据包和第二数据包。
303、基站转发服务器向终端发送的第一数据包;
服务器生成第一数据包和第二数据包后,按照顺序首先向基站发送第一数据包,基站接收并缓存该第一数据包,当存在可以用空口资源时,基站通过该空口资源向终端发送该第一数据包。
304、服务器向基站发送第二数据包;
服务器发送第一数据包后,陆续向基站发送第二数据包。
305、基站接收终端发送的反馈报文;
终端接收到第一数据包后,会向基站返回反馈报文,该反馈报文用于向服务器反馈中的已经接收到了第一数据包,基站接收终端返回的反馈报文。
306、基站获取该反馈报文中的TCP包头;
基站接收到反馈报文后,将该反馈报文中的TCP包头提取出来。其中,该TCP包头的前20个字节的结构图如下表所示:
其中,紧急比特(URG,Urgent),当URG=1时,表明紧急指针字段有效。它告诉***此报文段中有紧急数据,应尽快传送(相当于高优先级的数据)。
确认比特(ACK,Acknowledgement),只有当ACK=1时确认号字段才有效。当ACK=0时,确认号无效。
复位比特(RST,Reset),当RST=1时,表明TCP连接中出现差错,必须释放连接,然后再重新建立运输连接。
同步比特(SYN,synchronous),当SYN=1时,表示这是一个连接请求或连接接受报文。
终止比特(FIN,Final),用于释放一个连接。当FIN=1时,表明此报文段的发送端的数据已发送完毕,并要求释放运输连接。
ACK是可能与SYN,FIN等同时使用的,比如SYN和ACK可能同时为1,它表示的就是建立连接之后的响应,如果只是单个的一个SYN,它表示的只是建立连接。TCP的几次握手就是通过这样的ACK表现出来的。但SYN与FIN是不会同时为1的,因为前者表示的是建立连接,而后者表示的是断开连接。RST一般是在FIN之后才会出现为1的情况,表示的是连接重置。
307、基站根据该TCP包头判断服务器与终端之间的TCP连接是否有效,若是,则执行步骤309,若否,则执行步骤308;
基站提取该TCP包头后,根据该TCP包头判断服务器与终端之间的TCP连接是否有效,基于上述TCP包头结构,基站可以通过如下方式进行判断:
一、基站判断该TCP包头中的FIN标志是否为1,若是,则基站确定终端与服务器之间的TCP连接无效。
二、基站判断该TCP包头中的RST标志是否为1,若是,则基站确定终端与服务器之间的TCP连接无效。
应理解,除了上述两种方式,基站还可以通过其他方式判断服务器与终端之间的TCP连接是否有效,具体此处不作限定。
308、基站丢弃该第二数据包;
服务器发送第一数据包后会继续向基站发送第二数据包,当基站确定终端与服务器之间的TCP连接无效时,会将已接收以及后续到达的第二数据包丢弃,不会向终端发送该第二数据包。
308、基站向终端发送第二数据包。
服务器发送第一数据包后会继续向基站发送第二数据包,当基站确定TCP包头中的FIN标志不为1,或确定TCP包头中的RST不为1,或通过其他方式确定终端与服务器之间的TCP连接有效时,会根据空口资源的分配策略向终端发送已接收到的以及后续到达的第二数据包。
需要说明的是,在本发明实施例中,在步骤306基站判断终端与服务器之间的TCP连接是否有效之前,基站还可以先判断第二数据包的净荷长度是否为零,若第二数据包的净荷长度不为零,即第二数据包中不只包含TCP的信令时,基站才执行步骤306;若第二数据包的净荷长度为零,即第二数据包中只包含TCP的信令,基站可以直接执行步骤308向终端发送该第二数据包。
本发明实施例中,基站接收到终端向服务器发送的反馈报文后,会提取该反馈报文中的TCP包头,并根据该TCP包头判断终端与服务器之间的TCP连接是否有效,当确认该TCP连接无效时,基站可以将基站接收到的服务器发送的数据中尚未转发至终端发送的数据丢弃。也就是说,本发明实施例中基站可以及时识别出终端提前结束视频播放的状态,将该状态下对待发送的视频数据采取丢弃处理,避免了下发无效数据对空口资源造成的浪费。
其次,本发明实施例中,基站可以通过多种方式判断TCP连接是否有效,提高了方案的灵活性。
再次,本发明实施例中,对于不只包含TCP的信令的数据包中,基站才会判断TCP连接是否有效,对于只包含TCP的信令的数据包基站不会判断,基站能够识别出有效数据进行判断,提高工作效率。
为了便于理解,下面以一具体的应用场景对本发明实施例中的数据处理方法进行详细描述:
用户打开手机P,启动手机中的优酷应用程序,手机P(终端)通过基站B与优酷视频服务器建立TCP连接。用户打开优酷应用程序中的视频A,手机P在该TCP连接上向优酷视频服务器发出对视频A分片下载的Http请求,优酷视频服务器接收到该请求后,将视频A对应的数据包拆分成5个TCP数据包,并通过该TCP连接下发这5个TCP数据包。
基站B接收TCP数据包1,并对该TCP数据包1进行缓存,通过空口资源向手机P发送该TCP数据包1(第一数据包)。而手机P接收到TCP数据包1后,会通过该TCP连接发送反馈报文,以向优酷视频服务器反馈其已接收到该TCP数据包1。与此同时,基站B陆续接收TCP数据包2、TCP数据包3、TCP数据包4和TCP数据包5。当基站B接收到手机P发送的反馈报文后,提取该反馈报文中的TCP包头,判断该TCP包头中的FIN标志是否为1,基站B确定该TCP包头的FIN标志为1,此时,基站B已经接收到了TCP数据包2,TCP数据包3和TCP数据包4,并正在接收数据包5,而TCP数据包2已经转发给手机B发送了,基站B将TCP数据包3,TCP数据包4和后续接收到的数据包5(TCP数据包3、4和5为第二数据包)丢弃,不再发送给手机P。
上面对本发明实施例中的数据处理方法进行了介绍,接下来介绍本发明实施例中的基站,请参阅图4,本发明实施例中基站的一个实施例包括:
转发模块401,用于转发服务器向终端发送的第一数据包;
接收模块402,用于接收终端向服务器发送的反馈报文,反馈报文用于反馈终端已接收到第一数据包;
获取模块403,用于获取接收模块402接收的反馈报文中的TCP包头;
第一判断模块404,用于根据TCP包头判断终端与服务器之间的TCP连接是否有效;
丢弃模块405,用于当第一判断模块404确定TCP连接无效时,将基站上的第二数据包丢弃,第一数据包及第二数据包为基站接收到的服务器发送的数据包,第二数据包为基站尚未向终端发送的数据包。
本发明实施例中,基站接收到终端向服务器发送的反馈报文后,会提取该反馈报文中的TCP包头,并根据该TCP包头判断终端与服务器之间的TCP连接是否有效,当确认该TCP连接无效时,基站可以将基站接收到的服务器发送的数据中尚未转发至终端发送的数据丢弃。也就是说,本发明实施例中基站可以及时识别出终端提前结束视频播放的状态,将该状态下对待发送的视频数据采取丢弃处理,避免了下发无效数据对空口资源造成的浪费。
为了便于理解,下面对本发明实施例中的基站进行详细介绍,请参阅图5,本发明实施例中基站的另一实施例包括:
转发模块501,用于转发服务器向终端发送的第一数据包;
接收模块502,用于接收终端向服务器发送的反馈报文,反馈报文用于反馈终端已接收到第一数据包;
获取模块503,用于获取接收模块502接收的反馈报文中的TCP包头;
第一判断模块504,用于根据TCP包头判断终端与服务器之间的TCP连接是否有效;
丢弃模块505,用于当第一判断模块504确定TCP连接无效时,将基站上的第二数据包丢弃,第一数据包及第二数据包为基站接收到的服务器发送的数据包,第二数据包为基站尚未向终端发送的数据包;
其中,第一判断模块504可以包括:
第一判断单元,用于判断TCP包头中的FIN标志是否为1;
第二确定单元,用于当第一判断单元5041确定FIN标志为1时,确定TCP连接无效;
或,
第二判断单元,用于判断该TCP包头中的RST标志是否为1;
第二确定单元,用于当第二判断单元确定RST标志为1时,确定TCP连接无效。
可选地,在本发明实施例中,基站还可以包括:
第二判断模块506,用于判断第二数据包的净荷长度是否为零;
触发模块507,用于当第二判断模块506确定净荷长度为零时,则触发第一判断模块。
可选地,在本发明实施例中,基站还可以包括:
发送模块508,用于当第一判断模块504确定TCP连接有效时,向终端发送基站上的第二数据包。
本发明实施例中,基站接收到终端向服务器发送的反馈报文后,会提取该反馈报文中的TCP包头,并根据该TCP包头判断终端与服务器之间的TCP连接是否有效,当确认该TCP连接无效时,基站可以将基站接收到的服务器发送的数据中尚未转发至终端发送的数据丢弃。也就是说,本发明实施例中基站可以及时识别出终端提前结束视频播放的状态,将该状态下对待发送的视频数据采取丢弃处理,避免了下发无效数据对空口资源造成的浪费。
其次,本发明实施例提供了多种第一判断模块判断TCP连接是否有效的方式,提高了方案的灵活性。
上面从功能模块的角度介绍了本发明实施例中的基站,下面从硬件实体的角度介绍本发明实施例中的基站,图6是本发明实施例提供的一种基站结构示意图,该基站600可因配置或性能不同而产生比较大的差异,可以包括一个或一个以***处理器(central processing units,CPU)622(例如,一个或一个以上处理器)和存储器632,一个或一个以上存储应用程序642或数据644的存储介质630(例如一个或一个以上海量存储设备)。其中,存储器632和存储介质630可以是短暂存储或持久存储。存储在存储介质630的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器622可以设置为与存储介质630通信,在基站600上执行存储介质630中的一系列指令操作。
服务器600还可以包括一个或一个以上电源626,一个或一个以上有线或无线网络接
口650,一个或一个以上输入输出接口658,和/或,一个或一个以上操作***641,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。
上述实施例中由基站所执行的步骤可以基于该图6所示的服务器结构。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的***,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文全称:Read-Only Memory,英文缩写:ROM)、随机存取存储器(英文全称:Random Access Memory,英文缩写:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
Claims (10)
- 一种数据处理方法,其特征在于,包括:基站转发所述服务器向所述终端发送的第一数据包;所述基站接收终端向服务器发送的反馈报文,所述反馈报文用于反馈所述终端已接收到所述第一数据包;所述基站获取所述反馈报文中的传输控制协议TCP包头;所述基站根据所述TCP包头判断所述终端与所述服务器之间的TCP连接是否有效;若所述TCP连接无效,则所述基站将所述基站上的第二数据包丢弃,所述第一数据包及所述第二数据包为所述基站接收到的所述服务器发送的数据包,所述第二数据包为所述基站尚未向所述终端发送的数据包。
- 根据权利要求1所述的方法,其特征在于,所述基站根据所述TCP包头判断所述终端与所述服务器之间的TCP连接是否有效包括:所述基站判断所述TCP包头中的FIN标志是否为1;若是,则确定所述TCP连接无效。
- 根据权利要求1所述的方法,其特征在于,所述基站根据所述TCP包头判断所述终端与所述服务器之间的TCP连接是否有效包括:所述基站判断所述TCP包头中的RST标志是否为1;若是,则确定所述TCP连接无效。
- 根据权利要求1至3中任一项所述的方法,其特征在于,所述基站根据所述TCP包头判断所述终端与所述服务器之间的TCP连接是否有效之前包括:所述基站判断所述第二数据包的净荷长度是否为零;若否,则所述基站触发所述基站根据所述TCP包头判断所述终端与所述服务器之间的TCP连接是否有效的步骤。
- 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:当确定所述TCP连接有效时,所述基站向所述终端发送所述基站上的所述第二数据包。
- 一种基站,其特征在于,包括:转发模块,用于转发所述服务器向所述终端发送的第一数据包;接收模块,用于接收终端向服务器发送的反馈报文,所述反馈报文用于反馈所述终端已接收到所述第一数据包;获取模块,用于获取所述接收模块接收的所述反馈报文中的TCP包头;第一判断模块,用于根据所述TCP包头判断所述终端与所述服务器之间的TCP连接是否有效;丢弃模块,用于当所述第一判断模块确定所述TCP连接无效时,将所述基站上的第二数据包丢弃,所述第一数据包及所述第二数据包为所述基站接收到的所述服务器发送的数据包,所述第二数据包为所述基站尚未向所述终端发送的数据包。
- 根据权利要求6所述的基站,其特征在于,所述第一判断模块包括:第一判断单元,用于判断所述TCP包头中的FIN标志是否为1;第二确定单元,用于当所述第一判断单元确定所述FIN标志为1时,确定所述TCP连接无效。
- 根据权利要求6所述的基站,其特征在于,所述第一判断模块包括:第二判断单元,用于判断所述TCP包头中的RST标志是否为1;第二确定单元,用于当所述第二判断单元确定所述RST标志为1时,确定所述TCP连接无效。
- 根据权利要求6至8中任一项所述的基站,其特征在于,所述基站还包括:第二判断模块,用于判断所述第二数据包的净荷长度是否为零;触发模块,用于当所述第二判断模块确定所述净荷长度为零时,则触发所述第一判断模块。
- 根据权利要求6至8中任一项所述的基站,其特征在于,所述基站还包括:发送模块,用于当所述第一判断模块确定所述TCP连接有效时,向所述终端发送所述基站上所述的所述第二数据包。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611001218.4 | 2016-11-14 | ||
CN201611001218.4A CN106603494A (zh) | 2016-11-14 | 2016-11-14 | 一种数据处理方法及基站 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018086617A1 true WO2018086617A1 (zh) | 2018-05-17 |
Family
ID=58591418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/110789 WO2018086617A1 (zh) | 2016-11-14 | 2017-11-14 | 一种数据处理方法及基站 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106603494A (zh) |
WO (1) | WO2018086617A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603494A (zh) * | 2016-11-14 | 2017-04-26 | 上海华为技术有限公司 | 一种数据处理方法及基站 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101730271A (zh) * | 2008-10-28 | 2010-06-09 | 大唐移动通信设备有限公司 | 回收无线资源的方法及装置 |
CN101854607A (zh) * | 2010-05-12 | 2010-10-06 | 中兴通讯股份有限公司 | 网络实体和非结构化补充数据业务中保护数据的方法 |
CN102801690A (zh) * | 2011-05-25 | 2012-11-28 | 华为技术有限公司 | 流媒体的处理方法、分发服务器、客户端及*** |
CN104717186A (zh) * | 2013-12-16 | 2015-06-17 | 腾讯科技(深圳)有限公司 | 一种在网络***中传输数据的方法、装置及数据传输*** |
CN106603494A (zh) * | 2016-11-14 | 2017-04-26 | 上海华为技术有限公司 | 一种数据处理方法及基站 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1993944A (zh) * | 2004-06-02 | 2007-07-04 | 高通股份有限公司 | 无线网络中的调度方法与装置 |
CN101321162B (zh) * | 2008-07-03 | 2010-12-29 | 江苏华丽网络工程有限公司 | 基于tcam序偶的tcp序列号检查硬件实现方法 |
CN102348261A (zh) * | 2010-08-03 | 2012-02-08 | 国基电子(上海)有限公司 | 无线局域网接入点***及方法 |
CN103052173B (zh) * | 2011-10-13 | 2015-08-19 | 华为技术有限公司 | 传输控制协议链路的数据处理方法和装置 |
CN105207977A (zh) * | 2014-06-24 | 2015-12-30 | 阿里巴巴集团控股有限公司 | Tcp数据包处理方法及装置 |
-
2016
- 2016-11-14 CN CN201611001218.4A patent/CN106603494A/zh active Pending
-
2017
- 2017-11-14 WO PCT/CN2017/110789 patent/WO2018086617A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101730271A (zh) * | 2008-10-28 | 2010-06-09 | 大唐移动通信设备有限公司 | 回收无线资源的方法及装置 |
CN101854607A (zh) * | 2010-05-12 | 2010-10-06 | 中兴通讯股份有限公司 | 网络实体和非结构化补充数据业务中保护数据的方法 |
CN102801690A (zh) * | 2011-05-25 | 2012-11-28 | 华为技术有限公司 | 流媒体的处理方法、分发服务器、客户端及*** |
CN104717186A (zh) * | 2013-12-16 | 2015-06-17 | 腾讯科技(深圳)有限公司 | 一种在网络***中传输数据的方法、装置及数据传输*** |
CN106603494A (zh) * | 2016-11-14 | 2017-04-26 | 上海华为技术有限公司 | 一种数据处理方法及基站 |
Also Published As
Publication number | Publication date |
---|---|
CN106603494A (zh) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2475989C2 (ru) | Способы и устройство для форматирования заголовков в коммуникационном фрейме | |
JP7343652B2 (ja) | データ処理方法、端末デバイス、基地局、プログラムおよび通信システム | |
EP3611865B1 (en) | Data transmission method and communication device | |
US20190312938A1 (en) | Data Transmission Method And Apparatus | |
JP2013546254A (ja) | 無線プロトコル層におけるデータ再処理 | |
WO2014110773A1 (zh) | 一种数据包处理方法和装置 | |
WO2015196393A1 (zh) | 一种数据传输方法及设备 | |
US9900802B2 (en) | Data transmission method and apparatus, base station, and user equipment | |
WO2018059438A1 (zh) | 消息传输方法、设备和*** | |
WO2018201999A1 (zh) | 用户面链路建立方法、基站及移动性管理设备 | |
WO2018227814A1 (zh) | 数据指示方法、装置、通信*** | |
JP6034948B2 (ja) | 無線アクセスネットワークにおけるコンテンツ配信のための方法及び装置 | |
WO2014166053A1 (zh) | 一种通讯方法和终端 | |
WO2019019150A1 (zh) | 数据传输的方法、终端设备和网络设备 | |
JP2020529751A (ja) | データ伝送方法、端末装置及びネットワーク機器 | |
CN111211933B (zh) | 一种确定传输链路的质量的方法及装置 | |
WO2018086617A1 (zh) | 一种数据处理方法及基站 | |
CN106993311B (zh) | 基站数据优化传输方法与*** | |
EP3920592B1 (en) | Switching method, apparatus and system in wireless communication system | |
JP2023062123A (ja) | 無線通信装置、無線通信方法、及び無線通信システム | |
CN108200605B (zh) | 一种基站的数据传输方法和装置 | |
WO2022063187A1 (zh) | 一种通信方法和装置 | |
WO2016061985A1 (zh) | 报文处理方法、装置及*** | |
WO2016061987A1 (zh) | 报文处理方法及装置 | |
WO2018218996A1 (zh) | 数据包传输方法及设备 |
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: 17869595 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: 17869595 Country of ref document: EP Kind code of ref document: A1 |