WO2017005118A1 - Method, device, terminal and server for maintaining communication connection - Google Patents

Method, device, terminal and server for maintaining communication connection Download PDF

Info

Publication number
WO2017005118A1
WO2017005118A1 PCT/CN2016/087464 CN2016087464W WO2017005118A1 WO 2017005118 A1 WO2017005118 A1 WO 2017005118A1 CN 2016087464 W CN2016087464 W CN 2016087464W WO 2017005118 A1 WO2017005118 A1 WO 2017005118A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
terminal
communication connection
server
probe data
Prior art date
Application number
PCT/CN2016/087464
Other languages
French (fr)
Chinese (zh)
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
Application filed by 阿里巴巴集团控股有限公司, 黄梅龙 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017005118A1 publication Critical patent/WO2017005118A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/23Bit dropping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a server for maintaining a communication connection.
  • terminals With the popularization of smart terminals (referred to as terminals), various application functions can be realized by installing a large number of applications on the terminal. Each application accesses the network through its application client, thereby establishing a communication connection with the corresponding application server to complete data communication.
  • the terminal can establish a long communication connection between each application client and the corresponding application server based on the SOCKET (socket) protocol, and whether the data is transmitted between the application client and the application server after the long connection is established.
  • the terminal needs to actively maintain the established long connection, so when multiple applications are installed on the terminal, the terminal needs to consume a large amount of computing resources and power for maintaining multiple long connections.
  • the present application provides a method, an apparatus, a terminal, and a server for maintaining a communication connection, so as to solve the problem that a terminal needs to maintain a plurality of communication long connections and consume a large amount of computing resources and power in the prior art.
  • a method for maintaining a communication connection is provided.
  • the method is applied to a terminal, where an application client is installed on the terminal, and the method includes:
  • the probe data packet is discarded.
  • an apparatus for maintaining a communication connection where the apparatus is applied to a terminal, and an application client is installed on the terminal, and the apparatus includes:
  • An identifying unit configured to identify whether a data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection
  • a processing unit configured to discard the probe data packet when the data packet is identified as a probe data packet.
  • another apparatus for maintaining a communication connection comprising:
  • a maintaining unit configured to send, to the terminal, a probe data packet for maintaining the communication connection, so that the terminal discards the probe data packet when the probe data packet is identified.
  • a terminal where an application client is installed on the terminal, including:
  • processor a memory for storing the processor executable instructions
  • processor is configured to:
  • the probe data packet is discarded.
  • a server including:
  • processor a memory for storing the processor executable instructions
  • processor is configured to:
  • the server may actively send the probe data packet to the terminal to maintain the communication connection, since the terminal does not need to maintain the established communication connection, The computing resources and the power of the terminal are saved, and after the terminal identifies the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.
  • FIG. 1 is a schematic structural diagram of a system for maintaining a communication connection by applying an embodiment of the present application
  • 2A is a flow chart of an embodiment of a method for maintaining a communication connection according to the present application
  • 2B is a flow chart of another embodiment of a method for maintaining a communication connection according to the present application.
  • 3A is a flow chart of another embodiment of a method for maintaining a communication connection according to the present application.
  • FIG. 3B is a schematic diagram of transmission of a probe data packet in a seven-layer network structure according to an embodiment of the present application.
  • FIG. 4 is a hardware structural diagram of a device where a device for maintaining a communication connection is located in the present application
  • FIG. 5 is a block diagram of an embodiment of an apparatus for maintaining a communication connection according to the present application.
  • FIG. 6 is a block diagram of another embodiment of an apparatus for maintaining a communication connection of the present application.
  • first, second, third, etc. may be used to describe various information in this application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information without departing from the scope of the present application.
  • second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "when” or “when” or “in response to a determination.”
  • FIG. 1 a schematic diagram of a system architecture for maintaining a communication connection by applying an embodiment of the present application:
  • the system architecture shown in FIG. 1 includes two parts: a server side and a terminal side.
  • the server side includes a server that provides an application service
  • the terminal side includes a terminal 1 to a terminal n.
  • Each terminal runs an application by installing an application client.
  • Application function After the communication connection between the server and the application client on the terminal is established through a wireless network, for example, a WiFi (Wireless Fidelity) network, or a mobile network, it may be based on HTTP (Hyper Text Transfer Protocol). ) Data communication with the application client.
  • a wireless network for example, a WiFi (Wireless Fidelity) network, or a mobile network
  • HTTP Hyper Text Transfer Protocol
  • each terminal needs to actively maintain a communication connection established between multiple application clients and servers installed on the terminal, and thus a large amount of terminal resources are consumed.
  • the server can maintain all established through the connection list.
  • the address information of the application client of the communication connection for example, the IP address of the application client, to actively send the probe data packet to the terminal based on the maintained address information, to maintain the established communication connection, since the terminal does not need to maintain the established communication connection Therefore, the computing resources and the power of the terminal are saved, and after the terminal identifies the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.
  • the application will be described in detail below in conjunction with specific embodiments.
  • FIG. 2A is a flowchart of an embodiment of a method for maintaining a communication connection according to the present application.
  • the embodiment may be applied to a terminal, where several application clients are installed:
  • Step 201 Establish a communication connection between the application client and the server.
  • the terminal may send a connection establishment request to the server through the application client, where the connection establishment request is
  • the address information of the application client is included, and the address information may include an IP (Internet Protocol) address of the terminal; when the terminal receives the connection establishment response returned by the server in response to the connection establishment request, the establishment of the communication connection with the server is completed.
  • IP Internet Protocol
  • the terminal If the terminal does not receive the connection establishment response returned by the server within the preset response period, the terminal sends a connection establishment request to the server again; if the terminal sends the connection establishment request to the server for more than the preset number of times, it determines that the server is unreachable. Stop establishing a communication connection with the server.
  • Step 202 Identify whether the data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection.
  • the server After the application client of the terminal establishes a communication connection with the server, data communication can be performed between the application connection and the server, thereby implementing corresponding application functions.
  • the server in order to maintain the established communication connection, the server periodically sends the probe data packet to the terminal. Since the server also needs to send various application data packets to the terminal, the terminal receives the data sent by the server through the communication connection. After the packet, the packet header information of the data packet can be read, and it is determined whether the packet header information is consistent with the preset probe header information, and if so, it is determined that the probe packet is received.
  • Step 203 When the identification data packet is a probe data packet, discard the probe data packet.
  • the terminal After the terminal identifies the probe data packet, it indicates that the communication connection between the application client and the server is normal, and the terminal can discard the probe data packet. Since the probe data packet is only used to maintain the communication connection, the terminal can discard the probe data packet before transmitting it to the application layer in the network seven-layer structure, thereby preventing the application client from detecting the data packet when the probe data packet is transmitted to the application layer. Processing is wasted terminal resources.
  • the server may actively send a probe data packet to the terminal to maintain the communication connection, since the terminal does not need to maintain the established communication connection, The computing resources and the power of the terminal are saved, and after the terminal identifies the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.
  • FIG. 2B a flow chart of another embodiment of a method for maintaining a communication connection according to the present application may be applied to a server:
  • Step 211 Establish a communication connection with an application client on the terminal.
  • the terminal may send a connection establishment request to the server through the application client, where the connection establishment request includes address information of the application client, and the address information may be Including the IP address of the terminal, after receiving the connection establishment request, the server may return a connection establishment response to the terminal in response to the connection establishment request, thereby completing establishment of a communication connection with the application client.
  • the server can establish a communication connection with multiple application clients at the same time, the server can maintain the address information of the application client that has established the communication connection through the preset connection list. After establishing a communication connection with any application client, the server can record the address information of the application client in the connection list.
  • Step 212 Send a probe data packet for maintaining the communication connection to the terminal, so that the terminal discards the probe data packet when the probe data packet is identified.
  • the detection period may be preset on the server.
  • the server actively sends a probe packet for maintaining the communication connection to the terminal.
  • the server may obtain address information of all application clients that have established communication connections from the connection list, and generate a probe data packet, where the probe data packet includes a preset probe header. Information, so that the terminal can identify the probe data packet from all the data packets sent by the server according to the probe header information, and then the server sends the probe data packet to the corresponding application client according to the obtained address information, thereby maintaining the server and the application. Communication connection between clients.
  • the terminal user closes the application client, for example, the terminal user logs out from the application client, and may send a termination service request to the server, where the termination service request carries the address information of the application client, and when the server receives the termination service, After the request, the address information in the termination server request can be obtained, and the address information is deleted from the connection list, so that the server stops sending the probe data packet to the terminal.
  • the server may actively send a probe data packet to the terminal to maintain the communication connection, since the terminal does not need to maintain the established communication connection, Save the computing resources and power of the terminal, and end After identifying the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.
  • 3A is a flowchart of another embodiment of a method for maintaining a communication connection according to the present application. This embodiment describes a process of maintaining a communication connection through interaction between a terminal and a server in combination with the application scenario shown in FIG.
  • Step 301 The terminal sends a connection establishment request to the server by using the application client, where the connection establishment request includes address information of the application client.
  • the terminal in the present application may include various devices having Internet access functions, such as a smartphone, a tablet, and the like.
  • Various application functions can be implemented on the terminal by installing various application clients, and each application client application can run on the terminal operating system.
  • the application client implements the application function, it usually needs to establish a communication connection with the server set by the application service provider, and complete the data communication between the terminal and the server on the basis of maintaining the communication connection.
  • the terminal may first send a connection establishment request to the server through the application client, and the connection establishment request may be an HTTP-based request.
  • Step 302 After returning the connection establishment response to the terminal according to the connection establishment request, the server completes establishment of the communication connection with the application client.
  • the server may return a connection establishment response to the terminal, thereby completing establishment of a communication connection with the application client.
  • the terminal may determine to complete the establishment of the communication connection with the server.
  • the terminal may resend the connection establishment request to the server; if the terminal sends the connection establishment request to the server more than the preset number of times, Then determine that the server is unreachable and can stop establishing a communication connection with the server.
  • Step 303 The server records the address information of the application client in the connection list.
  • the server can use the preset connection list to address the address of the application client that has established the communication connection. Maintain it. After establishing a communication connection with any application client, the server may record the address information of the application client in the connection list, such as the connection list shown in FIG. 1, in which n applications of the established communication connection are recorded.
  • the IP address of the client ie IP1 to IPn.
  • Step 304 When the preset detection period is reached, the server obtains the recorded address information from the connection list.
  • a probe period can be preset on the server to actively trigger the sending of probe packets to the application client.
  • the server may first obtain the address information of all the application clients that have established the communication connection from the connection list.
  • Step 305 The server generates a probe data packet, where the probe data packet includes preset probe header information.
  • the terminal and the server may pre-approve the probe header information for indicating the probe data packet.
  • the probe header information may be represented by a preset value of 0 ⁇ 00.
  • the server obtains the address information from the connection list, for example, the address information is an IP address
  • a probe data packet may be generated for each address information, and the destination address of the probe data packet may be an IP address of the application client, and
  • the probe packet carries pre-agreed probe header information.
  • Step 306 The server sends the probe data packet to the corresponding application client according to the address information.
  • Step 307 After receiving the data packet, the terminal reads the packet header information of the data packet.
  • the terminal may parse the data packet to obtain the packet header information of the data packet.
  • Step 308 When the terminal determines that the packet header information is consistent with the preset probe header information, it is determined that the probe data packet is received.
  • Step 309 The terminal discards the probe data packet before detecting the data packet transmission to the application layer of the network seven-layer structure.
  • the terminal After the terminal determines that the probe data packet is received, it indicates that the communication connection between the application client and the server is normal, and the terminal may discard the probe data packet. Since the probe packet is only used to maintain the communication connection, the terminal can forward the probe packet to the application layer before it is transmitted to the application layer in the network seven-layer structure. The line is discarded, so that when the probe packet is transmitted to the application layer, the application client processes the probe packet and wastes terminal resources.
  • 3B is a schematic diagram of transmission of a probe data packet in a seven-layer network structure in the embodiment of the present application: on the server side, the probe data packet is transmitted from the application layer to the physical layer in the network seven-layer structure of the server, and passes through The communication medium between the server and the terminal is transmitted to the application client on the terminal. On the application client side, when the probe data packet is transmitted from the physical layer to the transport layer in the network seven-layer structure of the client, the Probe packets are dropped.
  • the server may actively send a probe data packet to the terminal to maintain the communication connection, since the terminal does not need to maintain the established communication connection, The computing resources and the power of the terminal are saved, and after the terminal identifies the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.
  • the present application also provides an embodiment of a device, a terminal and a server for maintaining a communication connection.
  • the embodiment of the apparatus for maintaining a communication connection of the present application may be applied to a device having a hardware structure, and the corresponding device may be a terminal or a server according to a device implementation.
  • the device embodiment may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking the software implementation as an example, as a logical means, the processor of the device in which it is located reads the corresponding computer program instructions in the non-volatile memory into the memory. From a hardware level, as shown in FIG. 4, a hardware structure diagram of a device in which the device for maintaining a communication connection is maintained, except for the processor, the memory, the network interface, and the non-volatile memory shown in FIG. In addition, the device in which the device is located in the embodiment may also include other hardware according to the actual function of the device, which is not shown in FIG. 4 .
  • FIG. 5 is a block diagram of an embodiment of an apparatus for maintaining a communication connection, where the apparatus embodiment may be applied to a terminal, where the application client is installed on the terminal, and the apparatus includes: an establishing unit 510, an identifying unit 520, and Processing unit 530.
  • the establishing unit 510 is configured to establish a communication connection between the application client and the server.
  • the identifying unit 520 is configured to identify whether the data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection;
  • the processing unit 530 is configured to discard the probe data packet when the data packet is identified as a probe data packet.
  • the establishing unit 510 can include (not shown in FIG. 5):
  • a request sending subunit configured to send, by the application client, a connection establishment request to the server, where the connection establishment request includes address information of the application client, so that the server records after the communication connection is established The address information;
  • the response receiving subunit is configured to complete establishment of the communication connection after receiving the connection establishment response returned by the server according to the connection establishment request.
  • the identification unit 520 can include (not shown in FIG. 5):
  • a data packet receiving subunit configured to receive a data packet sent by the server through the communication connection
  • An information reading subunit configured to read the header information of the data packet
  • the information determining subunit is configured to determine whether the packet header information is consistent with the preset probe header information, and if yes, determine to receive the probe data packet.
  • the processing unit 530 may be specifically configured to discard the probe data packet before the probe data packet is transmitted to an application layer of a network seven-layer structure.
  • FIG. 6 a block diagram of another embodiment of an apparatus for maintaining a communication connection according to the present application may be applied to a server, where the apparatus includes: an establishing unit 610 and a maintaining unit 620.
  • the establishing unit 610 is configured to establish a communication connection with an application client on the terminal.
  • the maintaining unit 620 is configured to send, to the terminal, a probe data packet for maintaining the communication connection, so that the terminal discards the probe data packet when the probe data packet is identified.
  • the establishing unit 610 can include (not shown in FIG. 6):
  • a request receiving subunit configured to receive a connection established by the terminal through the application client a request, the connection establishment request includes address information of the application client;
  • the device may also include (not shown in Figure 6):
  • a recording unit configured to record address information of the application client in the connection list after completing the establishment of the communication connection.
  • the maintaining unit 620 can include (not shown in FIG. 6):
  • An address obtaining subunit configured to obtain the recorded address information from the connection list when a preset detection period is reached;
  • a probe packet generation subunit configured to generate a probe data packet, where the probe data packet includes preset probe header information
  • the probe packet sending subunit is configured to send the probe data packet to the corresponding application client according to the address information.
  • the apparatus may further include (not shown in FIG. 6):
  • a receiving unit configured to receive a termination service request sent by the terminal by using the application client
  • a deleting unit configured to delete the address information of the application client recorded in the connection list according to the termination service request, so that the server stops sending the probe data packet to the terminal.
  • the device embodiment since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present application. Those of ordinary skill in the art are not creative In the case of labor, it can be understood and implemented.
  • the server may actively send a probe data packet to the terminal to maintain the communication connection, since the terminal does not need to maintain the established communication connection, The computing resources and the power of the terminal are saved, and after the terminal identifies the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.

Abstract

Disclosed are a method, device, terminal and server for maintaining a communication connection. The method is applied to a terminal provided with an application client, and comprises: establishing a communication connection between an application client and a server; recognizing whether a data packet sent by the server through the communication connection is a detection data packet used for maintaining the communication connection; and when it is recognized that the data packet is the detection data packet, discarding the detection data packet. By means of embodiments of the present application, after a communication connection is established between an application client on a terminal and a server, the server can actively send a detection data packet to the terminal, so as to maintain the communication connection. Since there is no need for the terminal to maintain the established communication connection, computing resources and electric quantity of the terminal are saved, and the detection data packet can be discarded after the detection data packet is recognized by the terminal, thereby further preventing occupying terminal resources because of processing the detection data packet.

Description

维持通信连接的方法、装置、终端及服务器Method, device, terminal and server for maintaining communication connection 技术领域Technical field
本申请涉及通信技术领域,尤其涉及维持通信连接的方法、装置、终端及服务器。The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a server for maintaining a communication connection.
背景技术Background technique
随着智能终端(简称终端)的普及,通过在终端上安装大量应用程序,可以实现各种应用功能。每种应用程序通过其应用客户端接入网络,从而与对应的应用服务器建立通信连接,以便完成数据通信。With the popularization of smart terminals (referred to as terminals), various application functions can be realized by installing a large number of applications on the terminal. Each application accesses the network through its application client, thereby establishing a communication connection with the corresponding application server to complete data communication.
现有技术中,终端可以基于SOCKET(套接字)协议建立各个应用客户端与对应的应用服务器之间的通信长连接,在长连接建立后,无论应用客户端与应用服务器之间是否传输数据,都需要终端主动维持所建立的长连接,因此当终端上安装了多个应用程序时,终端会需要为维持多个长连接而耗费大量的计算资源和电量。In the prior art, the terminal can establish a long communication connection between each application client and the corresponding application server based on the SOCKET (socket) protocol, and whether the data is transmitted between the application client and the application server after the long connection is established. The terminal needs to actively maintain the established long connection, so when multiple applications are installed on the terminal, the terminal needs to consume a large amount of computing resources and power for maintaining multiple long connections.
发明内容Summary of the invention
本申请提供维持通信连接的方法、装置、终端及服务器,以解决现有技术中终端需要维持多个通信长连接而耗费大量的计算资源和电量的问题。The present application provides a method, an apparatus, a terminal, and a server for maintaining a communication connection, so as to solve the problem that a terminal needs to maintain a plurality of communication long connections and consume a large amount of computing resources and power in the prior art.
根据本申请实施例的第一方面,提供一种维持通信连接的方法,所述方法应用在终端上,所述终端上安装有应用客户端,所述方法包括:According to a first aspect of the embodiments of the present application, a method for maintaining a communication connection is provided. The method is applied to a terminal, where an application client is installed on the terminal, and the method includes:
建立应用客户端与服务器之间的通信连接;Establish a communication connection between the application client and the server;
识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;Identifying whether the data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection;
当识别所述数据包为探测数据包时,丢弃所述探测数据包。When the data packet is identified as a probe data packet, the probe data packet is discarded.
根据本申请实施例的第二方面,提供另一种维持通信连接的方法,所述方法应用在服务器上,所述方法包括: According to a second aspect of the embodiments of the present application, there is provided another method of maintaining a communication connection, the method being applied to a server, the method comprising:
建立与终端上的应用客户端之间的通信连接;Establish a communication connection with an application client on the terminal;
向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。And transmitting, to the terminal, a probe data packet for maintaining the communication connection, so that the terminal discards the probe data packet when the probe data packet is identified.
根据本申请实施例的第三方面,提供一种维持通信连接的装置,所述装置应用在终端上,所述终端上安装有应用客户端,所述装置包括:According to a third aspect of the embodiments of the present application, there is provided an apparatus for maintaining a communication connection, where the apparatus is applied to a terminal, and an application client is installed on the terminal, and the apparatus includes:
建立单元,用于建立应用客户端与服务器之间的通信连接;Establishing a unit for establishing a communication connection between the application client and the server;
识别单元,用于识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;An identifying unit, configured to identify whether a data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection;
处理单元,用于当识别所述数据包为探测数据包时,丢弃所述探测数据包。And a processing unit, configured to discard the probe data packet when the data packet is identified as a probe data packet.
根据本申请实施例的第四方面,提供另一种维持通信连接的装置,所述装置应用在服务器上,所述装置包括:According to a fourth aspect of the embodiments of the present application, there is provided another apparatus for maintaining a communication connection, the apparatus being applied to a server, the apparatus comprising:
建立单元,用于建立与终端上的应用客户端之间的通信连接;Establishing a unit for establishing a communication connection with an application client on the terminal;
维持单元,用于向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。And a maintaining unit, configured to send, to the terminal, a probe data packet for maintaining the communication connection, so that the terminal discards the probe data packet when the probe data packet is identified.
根据本申请实施例的第五方面,提供一种终端,所述终端上安装有应用客户端,包括:According to a fifth aspect of the embodiments of the present application, a terminal is provided, where an application client is installed on the terminal, including:
处理器;用于存储所述处理器可执行指令的存储器;a processor; a memory for storing the processor executable instructions;
其中,所述处理器被配置为:Wherein the processor is configured to:
建立应用客户端与服务器之间的通信连接;Establish a communication connection between the application client and the server;
识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;Identifying whether the data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection;
当识别所述数据包为探测数据包时,丢弃所述探测数据包。When the data packet is identified as a probe data packet, the probe data packet is discarded.
根据本申请实施例的第六方面,提供一种服务器,包括:According to a sixth aspect of the embodiments of the present application, a server is provided, including:
处理器;用于存储所述处理器可执行指令的存储器;a processor; a memory for storing the processor executable instructions;
其中,所述处理器被配置为:Wherein the processor is configured to:
建立与终端上的应用客户端之间的通信连接; Establish a communication connection with an application client on the terminal;
向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。And transmitting, to the terminal, a probe data packet for maintaining the communication connection, so that the terminal discards the probe data packet when the probe data packet is identified.
应用本申请实施例,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。Applying the embodiment of the present application, after establishing a communication connection between the application client and the server on the terminal, the server may actively send the probe data packet to the terminal to maintain the communication connection, since the terminal does not need to maintain the established communication connection, The computing resources and the power of the terminal are saved, and after the terminal identifies the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The drawings herein are incorporated in and constitute a part of the specification,
图1为应用本申请实施例维持通信连接的系统架构示意图;1 is a schematic structural diagram of a system for maintaining a communication connection by applying an embodiment of the present application;
图2A为本申请维持通信连接的方法的一个实施例流程图;2A is a flow chart of an embodiment of a method for maintaining a communication connection according to the present application;
图2B为本申请维持通信连接的方法的另一个实施例流程图;2B is a flow chart of another embodiment of a method for maintaining a communication connection according to the present application;
图3A为本申请维持通信连接的方法的另一个实施例流程图;3A is a flow chart of another embodiment of a method for maintaining a communication connection according to the present application;
图3B为本申请实施例中探测数据包在七层网络结构中的传输示意图;FIG. 3B is a schematic diagram of transmission of a probe data packet in a seven-layer network structure according to an embodiment of the present application; FIG.
图4为本申请维持通信连接的装置所在设备的一种硬件结构图;4 is a hardware structural diagram of a device where a device for maintaining a communication connection is located in the present application;
图5为本申请维持通信连接的装置的一个实施例框图;5 is a block diagram of an embodiment of an apparatus for maintaining a communication connection according to the present application;
图6为本申请维持通信连接的装置的另一个实施例框图。6 is a block diagram of another embodiment of an apparatus for maintaining a communication connection of the present application.
具体实施方式detailed description
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的 任何或所有可能组合。The terminology used in the present application is for the purpose of describing particular embodiments, and is not intended to be limiting. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and includes one or more of the associated listed items. Any or all possible combinations.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used to describe various information in this application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information without departing from the scope of the present application. Similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to a determination."
参见图1,为应用本申请实施例维持通信连接的系统架构示意图:Referring to FIG. 1 , a schematic diagram of a system architecture for maintaining a communication connection by applying an embodiment of the present application:
图1示出的系统架构中包括服务器侧和终端侧两部分,其中,服务器侧包括提供应用服务的服务器,终端侧包括终端1至终端n,每个终端通过安装应用客户端运行应用程序,实现应用功能。其中,服务器和终端上的应用客户端之间通过无线网络建立通信连接后,例如,WiFi(Wireless Fidelity,无线保真)网络,或移动网络,可以基于HTTP(Hyper Text Transfer Protocol,超文本传输协议)与应用客户端之间进行数据通信。现有技术中需要每个终端主动维持其上安装的多个应用客户端与服务器之间建立的通信连接,因此会耗费大量终端资源,本申请实施例中,服务器可以通过连接列表维护所有已建立通信连接的应用客户端的地址信息,例如,应用客户端的IP地址,从而基于所维护的地址信息主动向终端发送探测数据包,用以维持所建立的通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。下面将结合具体的实施例对申请进行详细描述。The system architecture shown in FIG. 1 includes two parts: a server side and a terminal side. The server side includes a server that provides an application service, and the terminal side includes a terminal 1 to a terminal n. Each terminal runs an application by installing an application client. Application function. After the communication connection between the server and the application client on the terminal is established through a wireless network, for example, a WiFi (Wireless Fidelity) network, or a mobile network, it may be based on HTTP (Hyper Text Transfer Protocol). ) Data communication with the application client. In the prior art, each terminal needs to actively maintain a communication connection established between multiple application clients and servers installed on the terminal, and thus a large amount of terminal resources are consumed. In this embodiment, the server can maintain all established through the connection list. The address information of the application client of the communication connection, for example, the IP address of the application client, to actively send the probe data packet to the terminal based on the maintained address information, to maintain the established communication connection, since the terminal does not need to maintain the established communication connection Therefore, the computing resources and the power of the terminal are saved, and after the terminal identifies the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources. The application will be described in detail below in conjunction with specific embodiments.
参见图2A,为本申请维持通信连接的方法的一个实施例流程图,该实施例可以应用在终端上,该终端上安装了若干应用客户端:2A is a flowchart of an embodiment of a method for maintaining a communication connection according to the present application. The embodiment may be applied to a terminal, where several application clients are installed:
步骤201:建立应用客户端与服务器之间的通信连接。Step 201: Establish a communication connection between the application client and the server.
本步骤中,当终端用户要通过终端上安装的应用客户端访问服务器时,终端可以通过该应用客户端向服务器发送连接建立请求,该连接建立请求中 包含应用客户端的地址信息,该地址信息可以包括终端的IP(Internet Protocol,互联网协议)地址;当终端接收到服务器响应该连接建立请求返回的连接建立响应后,完成与服务器之间通信连接的建立。In this step, when the terminal user accesses the server through the application client installed on the terminal, the terminal may send a connection establishment request to the server through the application client, where the connection establishment request is The address information of the application client is included, and the address information may include an IP (Internet Protocol) address of the terminal; when the terminal receives the connection establishment response returned by the server in response to the connection establishment request, the establishment of the communication connection with the server is completed. .
如果终端在预设的响应周期内未接收到服务器返回的连接建立响应,则重新向服务器发送连接建立请求;如果终端向服务器发送连接建立请求的次数超过预设次数时,则确定服务器不可达,停止与服务器建立通信连接。If the terminal does not receive the connection establishment response returned by the server within the preset response period, the terminal sends a connection establishment request to the server again; if the terminal sends the connection establishment request to the server for more than the preset number of times, it determines that the server is unreachable. Stop establishing a communication connection with the server.
步骤202:识别服务器通过该通信连接发送的数据包是否为用于维持该通信连接的探测数据包。Step 202: Identify whether the data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection.
在终端的应用客户端与服务器建立通信连接后,可以基于该通信连接与服务器之间进行数据通信,从而实现相应的应用功能。本实施例中,为了维持所建立的通信连接,由服务器定期向终端发送探测数据包,由于服务器同时还需要向终端发送各种应用数据包,因此终端在接收到服务器通过该通信连接发送的数据包后,可以读取数据包的包头信息,并判断该包头信息是否与预设的探测包头信息一致,若是,则确定接收到探测数据包。After the application client of the terminal establishes a communication connection with the server, data communication can be performed between the application connection and the server, thereby implementing corresponding application functions. In this embodiment, in order to maintain the established communication connection, the server periodically sends the probe data packet to the terminal. Since the server also needs to send various application data packets to the terminal, the terminal receives the data sent by the server through the communication connection. After the packet, the packet header information of the data packet can be read, and it is determined whether the packet header information is consistent with the preset probe header information, and if so, it is determined that the probe packet is received.
步骤203:当识别数据包为探测数据包时,丢弃该探测数据包。Step 203: When the identification data packet is a probe data packet, discard the probe data packet.
当终端识别出探测数据包后,说明应用客户端与服务器之间的通信连接正常,此时终端可以丢弃该探测数据包。由于探测数据包仅用于维持通信连接,因此终端可以将探测数据包在网络七层结构中传输到应用层之前进行丢弃,从而避免探测数据包传输到应用层时,应用客户端对探测数据包进行处理而浪费终端资源。After the terminal identifies the probe data packet, it indicates that the communication connection between the application client and the server is normal, and the terminal can discard the probe data packet. Since the probe data packet is only used to maintain the communication connection, the terminal can discard the probe data packet before transmitting it to the application layer in the network seven-layer structure, thereby preventing the application client from detecting the data packet when the probe data packet is transmitted to the application layer. Processing is wasted terminal resources.
由上述实施例可见,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。It can be seen from the foregoing embodiment that after establishing a communication connection between the application client and the server on the terminal, the server may actively send a probe data packet to the terminal to maintain the communication connection, since the terminal does not need to maintain the established communication connection, The computing resources and the power of the terminal are saved, and after the terminal identifies the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.
参见图2B,为本申请维持通信连接的方法的另一个实施例流程图,该实施例可以应用在服务器上: Referring to FIG. 2B, a flow chart of another embodiment of a method for maintaining a communication connection according to the present application may be applied to a server:
步骤211:建立与终端上的应用客户端之间的通信连接。Step 211: Establish a communication connection with an application client on the terminal.
本步骤中,当终端用户要通过终端上安装的应用客户端访问服务器时,终端可以通过该应用客户端向服务器发送连接建立请求,该连接建立请求中包含应用客户端的地址信息,该地址信息可以包括终端的IP地址,当服务器接收到连接建立请求后,可以响应于该连接建立请求向所述终端返回连接建立响应,从而完成与应用客户端之间的通信连接的建立。In this step, when the terminal user accesses the server through the application client installed on the terminal, the terminal may send a connection establishment request to the server through the application client, where the connection establishment request includes address information of the application client, and the address information may be Including the IP address of the terminal, after receiving the connection establishment request, the server may return a connection establishment response to the terminal in response to the connection establishment request, thereby completing establishment of a communication connection with the application client.
本实施例中,由于服务器可以同时与多个应用客户端建立通信连接,因此服务器可以通过预设的连接列表对已建立通信连接的应用客户端的地址信息进行维护。在建立与任一应用客户端之间的通信连接后,服务器可以在连接列表中记录该应用客户端的地址信息。In this embodiment, since the server can establish a communication connection with multiple application clients at the same time, the server can maintain the address information of the application client that has established the communication connection through the preset connection list. After establishing a communication connection with any application client, the server can record the address information of the application client in the connection list.
步骤212:向终端发送用于维持该通信连接的探测数据包,以使终端在识别到探测数据包时,丢弃该探测数据包。Step 212: Send a probe data packet for maintaining the communication connection to the terminal, so that the terminal discards the probe data packet when the probe data packet is identified.
服务器上可以预先设置探测周期,当到达该探测周期时,服务器向终端主动发送用于维持通信连接的探测数据包。对应于步骤211中维护的连接列表,本步骤中,服务器可以从连接列表中获取所有已建立通信连接的应用客户端的地址信息,并生成探测数据包,该探测数据包中包含预设的探测包头信息,以使终端能够根据该探测包头信息从服务器发送的所有数据包中识别出探测数据包,然后服务器按照获取到的地址信息将探测数据包发送至对应的应用客户端,从而维持服务器与应用客户端之间的通信连接。The detection period may be preset on the server. When the detection period is reached, the server actively sends a probe packet for maintaining the communication connection to the terminal. Corresponding to the connection list maintained in step 211, in this step, the server may obtain address information of all application clients that have established communication connections from the connection list, and generate a probe data packet, where the probe data packet includes a preset probe header. Information, so that the terminal can identify the probe data packet from all the data packets sent by the server according to the probe header information, and then the server sends the probe data packet to the corresponding application client according to the obtained address information, thereby maintaining the server and the application. Communication connection between clients.
可选的,当终端用户关闭应用客户端,例如,终端用户从应用客户端退出登录时,可以向服务器发送终止服务请求,该终止服务请求中携带应用客户端的地址信息,当服务器接收到终止服务请求后,可以获取终止服务器请求中的地址信息,并从连接列表中删除该地址信息,从而使得服务器停止向终端发送探测数据包。Optionally, when the terminal user closes the application client, for example, the terminal user logs out from the application client, and may send a termination service request to the server, where the termination service request carries the address information of the application client, and when the server receives the termination service, After the request, the address information in the termination server request can be obtained, and the address information is deleted from the connection list, so that the server stops sending the probe data packet to the terminal.
由上述实施例可见,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终 端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。It can be seen from the foregoing embodiment that after establishing a communication connection between the application client and the server on the terminal, the server may actively send a probe data packet to the terminal to maintain the communication connection, since the terminal does not need to maintain the established communication connection, Save the computing resources and power of the terminal, and end After identifying the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.
参见图3A,为本申请维持通信连接的方法的另一个实施例流程图,该实施例结合图1所示应用场景,通过终端与服务器之间的交互对维持通信连接的过程进行详细描述:3A is a flowchart of another embodiment of a method for maintaining a communication connection according to the present application. This embodiment describes a process of maintaining a communication connection through interaction between a terminal and a server in combination with the application scenario shown in FIG.
步骤301:终端通过应用客户端向服务器发送连接建立请求,该连接建立请求中包含应用客户端的地址信息。Step 301: The terminal sends a connection establishment request to the server by using the application client, where the connection establishment request includes address information of the application client.
本申请中的终端可以包括各种具有上网功能的设备,例如,智能手机,平板电脑等。终端上可以通过安装各种应用客户端实现各种应用功能,每个应用客户端的应用程序可以在终端操作系统上运行。应用客户端在实现应用功能时,通常需要与应用服务提供方设置的服务器之间建立通信连接,并在维持该通信连接的基础上,完成终端与服务器之间的数据通信。The terminal in the present application may include various devices having Internet access functions, such as a smartphone, a tablet, and the like. Various application functions can be implemented on the terminal by installing various application clients, and each application client application can run on the terminal operating system. When the application client implements the application function, it usually needs to establish a communication connection with the server set by the application service provider, and complete the data communication between the terminal and the server on the basis of maintaining the communication connection.
当终端上的应用客户端要与服务器之间进行数据通信时,终端可以先通过应用客户端向服务器发送连接建立请求,该连接建立请求可以为基于HTTP的请求。When the application client on the terminal wants to perform data communication with the server, the terminal may first send a connection establishment request to the server through the application client, and the connection establishment request may be an HTTP-based request.
步骤302:服务器根据连接建立请求向终端返回连接建立响应后,完成与应用客户端之间通信连接的建立。Step 302: After returning the connection establishment response to the terminal according to the connection establishment request, the server completes establishment of the communication connection with the application client.
当服务器接收到连接建立请求后,可以向终端返回连接建立响应,从而完成与应用客户端之间的通信连接的建立。相应的,终端接收到连接建立响应后,可以确定完成与服务器之间的通信连接的建立。After receiving the connection establishment request, the server may return a connection establishment response to the terminal, thereby completing establishment of a communication connection with the application client. Correspondingly, after receiving the connection establishment response, the terminal may determine to complete the establishment of the communication connection with the server.
本实施例中,如果终端在预设的响应周期内未接收到服务器返回的连接建立响应,则可以重新向服务器发送连接建立请求;如果终端向服务器发送连接建立请求的次数超过预设次数时,则确定服务器不可达,可以停止与服务器建立通信连接。In this embodiment, if the terminal does not receive the connection establishment response returned by the server within the preset response period, the terminal may resend the connection establishment request to the server; if the terminal sends the connection establishment request to the server more than the preset number of times, Then determine that the server is unreachable and can stop establishing a communication connection with the server.
步骤303:服务器在连接列表中记录应用客户端的地址信息。Step 303: The server records the address information of the application client in the connection list.
本实施例中,由于服务器可以同时与多个应用客户端建立通信连接,因此服务器可以通过预设的连接列表对已建立通信连接的应用客户端的地址信 息进行维护。在建立与任一应用客户端之间的通信连接后,服务器可以在连接列表中记录该应用客户端的地址信息,例如图1中示出的连接列表,其中记录了已建立通信连接的n个应用客户端的IP地址,即IP1至IPn。In this embodiment, since the server can establish a communication connection with multiple application clients at the same time, the server can use the preset connection list to address the address of the application client that has established the communication connection. Maintain it. After establishing a communication connection with any application client, the server may record the address information of the application client in the connection list, such as the connection list shown in FIG. 1, in which n applications of the established communication connection are recorded. The IP address of the client, ie IP1 to IPn.
步骤304:当到达预设的探测周期时,服务器从连接列表中获取记录的地址信息。Step 304: When the preset detection period is reached, the server obtains the recorded address information from the connection list.
服务器上可以预先设置探测周期,用以主动触发向应用客户端发送探测数据包。当服务器检测到该探测周期到达时,可以首先从连接列表中获取所有已建立通信连接的应用客户端的地址信息。A probe period can be preset on the server to actively trigger the sending of probe packets to the application client. When the server detects that the probe period arrives, it may first obtain the address information of all the application clients that have established the communication connection from the connection list.
步骤305:服务器生成探测数据包,该探测数据包中包含预设的探测包头信息。Step 305: The server generates a probe data packet, where the probe data packet includes preset probe header information.
为了便于终端从服务器发送的数据包中识别出探测数据包,终端和服务器可以预先约定用于表示探测数据包的探测包头信息,例如,该探测包头信息可以通过预设值0X00表示。当服务器从连接列表中获取到地址信息后,例如,地址信息为IP地址,则可以针对每个地址信息生成一个探测数据包,该探测数据包的目的地址即可为应用客户端的IP地址,并且该探测数据包中携带预先约定的探测包头信息。In order to facilitate the terminal to identify the probe data packet from the data packet sent by the server, the terminal and the server may pre-approve the probe header information for indicating the probe data packet. For example, the probe header information may be represented by a preset value of 0×00. After the server obtains the address information from the connection list, for example, the address information is an IP address, a probe data packet may be generated for each address information, and the destination address of the probe data packet may be an IP address of the application client, and The probe packet carries pre-agreed probe header information.
步骤306:服务器按照地址信息将探测数据包发送至对应的应用客户端。Step 306: The server sends the probe data packet to the corresponding application client according to the address information.
步骤307:终端接收到数据包后,读取数据包的包头信息。Step 307: After receiving the data packet, the terminal reads the packet header information of the data packet.
当终端接收到服务器发送的数据包后,可以对数据包进行解析,获得数据包的包头信息。After receiving the data packet sent by the server, the terminal may parse the data packet to obtain the packet header information of the data packet.
步骤308:当终端判断包头信息与预设的探测包头信息一致时,确定接收到探测数据包。Step 308: When the terminal determines that the packet header information is consistent with the preset probe header information, it is determined that the probe data packet is received.
步骤309:终端在探测数据包传输到网络七层结构的应用层之前丢弃探测数据包。Step 309: The terminal discards the probe data packet before detecting the data packet transmission to the application layer of the network seven-layer structure.
当终端确定接收到探测数据包后,说明应用客户端与服务器之间的通信连接正常,此时终端可以丢弃该探测数据包。由于探测数据包仅用于维持通信连接,因此终端可以将探测数据包在网络七层结构中传输到应用层之前进 行丢弃,从而避免探测数据包传输到应用层时,应用客户端对探测数据包进行处理而浪费终端资源。After the terminal determines that the probe data packet is received, it indicates that the communication connection between the application client and the server is normal, and the terminal may discard the probe data packet. Since the probe packet is only used to maintain the communication connection, the terminal can forward the probe packet to the application layer before it is transmitted to the application layer in the network seven-layer structure. The line is discarded, so that when the probe packet is transmitted to the application layer, the application client processes the probe packet and wastes terminal resources.
参见图3B,为本申请实施例中探测数据包在七层网络结构中的传输示意图:在服务器侧,探测数据包在服务器的网络七层结构中从应用层向下传输到物理层,并通过服务器与终端之间的通信介质,传输到终端上的应用客户端,在应用客户端侧,该探测数据包在客户端的网络七层结构中从物理层向上传输到传输层时,即可将该探测数据包丢弃。3B is a schematic diagram of transmission of a probe data packet in a seven-layer network structure in the embodiment of the present application: on the server side, the probe data packet is transmitted from the application layer to the physical layer in the network seven-layer structure of the server, and passes through The communication medium between the server and the terminal is transmitted to the application client on the terminal. On the application client side, when the probe data packet is transmitted from the physical layer to the transport layer in the network seven-layer structure of the client, the Probe packets are dropped.
由上述实施例可见,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。It can be seen from the foregoing embodiment that after establishing a communication connection between the application client and the server on the terminal, the server may actively send a probe data packet to the terminal to maintain the communication connection, since the terminal does not need to maintain the established communication connection, The computing resources and the power of the terminal are saved, and after the terminal identifies the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.
与前述维持通信连接的方法的实施例相对应,本申请还提供了维持通信连接的装置、终端及服务器的实施例。Corresponding to the aforementioned embodiment of the method of maintaining a communication connection, the present application also provides an embodiment of a device, a terminal and a server for maintaining a communication connection.
本申请维持通信连接的装置的实施例可以应用具有硬件结构的设备上,根据装置实施例实现功能的不同,对应的设备可以为终端或者服务器。其中,装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图4所示,为本申请维持通信连接的装置所在设备的一种硬件结构图,除了图4所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的设备通常根据该设备的实际功能,还可以包括其他硬件,图4中不再一一示出。The embodiment of the apparatus for maintaining a communication connection of the present application may be applied to a device having a hardware structure, and the corresponding device may be a terminal or a server according to a device implementation. The device embodiment may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking the software implementation as an example, as a logical means, the processor of the device in which it is located reads the corresponding computer program instructions in the non-volatile memory into the memory. From a hardware level, as shown in FIG. 4, a hardware structure diagram of a device in which the device for maintaining a communication connection is maintained, except for the processor, the memory, the network interface, and the non-volatile memory shown in FIG. In addition, the device in which the device is located in the embodiment may also include other hardware according to the actual function of the device, which is not shown in FIG. 4 .
参见图5,为本申请维持通信连接的装置的一个实施例框图,该装置实施例可以应用在终端上,所述终端上安装有应用客户端,该装置包括:建立单元510、识别单元520和处理单元530。5 is a block diagram of an embodiment of an apparatus for maintaining a communication connection, where the apparatus embodiment may be applied to a terminal, where the application client is installed on the terminal, and the apparatus includes: an establishing unit 510, an identifying unit 520, and Processing unit 530.
其中,建立单元510,用于建立应用客户端与服务器之间的通信连接; The establishing unit 510 is configured to establish a communication connection between the application client and the server.
识别单元520,用于识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;The identifying unit 520 is configured to identify whether the data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection;
处理单元530,用于当识别所述数据包为探测数据包时,丢弃所述探测数据包。The processing unit 530 is configured to discard the probe data packet when the data packet is identified as a probe data packet.
在一个可选的实现方式中,所述建立单元510可以包括(图5中未示出):In an optional implementation, the establishing unit 510 can include (not shown in FIG. 5):
请求发送子单元,用于通过所述应用客户端向所述服务器发送连接建立请求,所述连接建立请求中包含所述应用客户端的地址信息,以使所述服务器在所述通信连接建立后记录所述地址信息;a request sending subunit, configured to send, by the application client, a connection establishment request to the server, where the connection establishment request includes address information of the application client, so that the server records after the communication connection is established The address information;
响应接收子单元,用于当接收到所述服务器根据所述连接建立请求返回的连接建立响应后,完成所述通信连接的建立。The response receiving subunit is configured to complete establishment of the communication connection after receiving the connection establishment response returned by the server according to the connection establishment request.
在另一个可选的实现方式中,所述识别单元520可以包括(图5中未示出):In another optional implementation, the identification unit 520 can include (not shown in FIG. 5):
数据包接收子单元,用于接收所述服务器通过所述通信连接发送的数据包;a data packet receiving subunit, configured to receive a data packet sent by the server through the communication connection;
信息读取子单元,用于读取所述数据包的包头信息;An information reading subunit, configured to read the header information of the data packet;
信息判断子单元,用于判断所述包头信息是否与预设的探测包头信息一致,若是,则确定接收到探测数据包。The information determining subunit is configured to determine whether the packet header information is consistent with the preset probe header information, and if yes, determine to receive the probe data packet.
在另一个可选的实现方式中:In another alternative implementation:
所述处理单元530,可以具体用于在所述探测数据包传输到网络七层结构的应用层之前丢弃所述探测数据包。The processing unit 530 may be specifically configured to discard the probe data packet before the probe data packet is transmitted to an application layer of a network seven-layer structure.
参见图6,为本申请维持通信连接的装置的另一个实施例框图,该装置实施例可以应用在服务器上,该装置包括:建立单元610和维持单元620。Referring to FIG. 6, a block diagram of another embodiment of an apparatus for maintaining a communication connection according to the present application may be applied to a server, where the apparatus includes: an establishing unit 610 and a maintaining unit 620.
其中,建立单元610,用于建立与终端上的应用客户端之间的通信连接;The establishing unit 610 is configured to establish a communication connection with an application client on the terminal.
维持单元620,用于向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。The maintaining unit 620 is configured to send, to the terminal, a probe data packet for maintaining the communication connection, so that the terminal discards the probe data packet when the probe data packet is identified.
在一个可选的实现方式中,所述建立单元610可以包括(图6中未示出):In an alternative implementation, the establishing unit 610 can include (not shown in FIG. 6):
请求接收子单元,用于接收所述终端通过所述应用客户端发送的连接建 立请求,所述连接建立请求中包含所述应用客户端的地址信息;a request receiving subunit, configured to receive a connection established by the terminal through the application client a request, the connection establishment request includes address information of the application client;
响应发送子单元,用于根据所述连接建立请求向所述终端返回连接建立响应后,完成所述通信连接的建立;And responding to the sending subunit, configured to complete the establishment of the communication connection after returning the connection establishment response to the terminal according to the connection establishment request;
相应的,所述装置还可以包括(图6中未示出):Correspondingly, the device may also include (not shown in Figure 6):
记录单元,用于在完成所述通信连接的建立后,在连接列表中记录所述应用客户端的地址信息。a recording unit, configured to record address information of the application client in the connection list after completing the establishment of the communication connection.
在另一个可选的实现方式中,所述维持单元620可以包括(图6中未示出):In another optional implementation, the maintaining unit 620 can include (not shown in FIG. 6):
地址获取子单元,用于当到达预设的探测周期时,从所述连接列表中获取记录的地址信息;An address obtaining subunit, configured to obtain the recorded address information from the connection list when a preset detection period is reached;
探测包生成子单元,用于生成探测数据包,所述探测数据包中包含预设的探测包头信息;a probe packet generation subunit, configured to generate a probe data packet, where the probe data packet includes preset probe header information;
探测包发送子单元,用于按照所述地址信息将所述探测数据包发送至对应的应用客户端。The probe packet sending subunit is configured to send the probe data packet to the corresponding application client according to the address information.
在另一个可选的实现方式中,所述装置还可以包括(图6中未示出):In another optional implementation, the apparatus may further include (not shown in FIG. 6):
接收单元,用于接收所述终端通过所述应用客户端发送的终止服务请求;a receiving unit, configured to receive a termination service request sent by the terminal by using the application client;
删除单元,用于根据所述终止服务请求删除所述连接列表中记录的所述应用客户端的地址信息,以使所述服务器停止向所述终端发送所述探测数据包。a deleting unit, configured to delete the address information of the application client recorded in the connection list according to the termination service request, so that the server stops sending the probe data packet to the terminal.
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。The implementation process of the function and the function of each unit in the foregoing device is specifically described in the implementation process of the corresponding steps in the foregoing method, and details are not described herein again.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性 劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present application. Those of ordinary skill in the art are not creative In the case of labor, it can be understood and implemented.
由上述实施例可见,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。It can be seen from the foregoing embodiment that after establishing a communication connection between the application client and the server on the terminal, the server may actively send a probe data packet to the terminal to maintain the communication connection, since the terminal does not need to maintain the established communication connection, The computing resources and the power of the terminal are saved, and after the terminal identifies the probe data packet, the terminal may discard the probe data packet, thereby further avoiding processing the probe data packet and occupying terminal resources.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Other embodiments of the present application will be readily apparent to those skilled in the <RTIgt; The application is intended to cover any variations, uses, or adaptations of the application, which are in accordance with the general principles of the application and include common general knowledge or common technical means in the art that are not disclosed herein. . The specification and examples are to be regarded as illustrative only,
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。 It is to be understood that the invention is not limited to the details of the details and The scope of the present application is limited only by the accompanying claims.

Claims (18)

  1. 一种维持通信连接的方法,其特征在于,所述方法应用在终端上,所述终端上安装有应用客户端,所述方法包括:A method for maintaining a communication connection, wherein the method is applied to a terminal, and an application client is installed on the terminal, and the method includes:
    建立应用客户端与服务器之间的通信连接;Establish a communication connection between the application client and the server;
    识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;Identifying whether the data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection;
    当识别所述数据包为探测数据包时,丢弃所述探测数据包。When the data packet is identified as a probe data packet, the probe data packet is discarded.
  2. 根据权利要求1所述的方法,其特征在于,所述建立应用客户端与服务器之间的通信连接,包括:The method according to claim 1, wherein the establishing a communication connection between the application client and the server comprises:
    通过所述应用客户端向所述服务器发送连接建立请求,所述连接建立请求中包含所述应用客户端的地址信息,以使所述服务器在所述通信连接建立后记录所述地址信息;Sending, by the application client, a connection establishment request to the server, where the connection establishment request includes address information of the application client, so that the server records the address information after the communication connection is established;
    当接收到所述服务器根据所述连接建立请求返回的连接建立响应后,完成所述通信连接的建立。After receiving the connection establishment response returned by the server according to the connection establishment request, the establishment of the communication connection is completed.
  3. 根据权利要求1所述的方法,其特征在于,所述识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包,包括:The method according to claim 1, wherein the identifying whether the data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection comprises:
    接收所述服务器通过所述通信连接发送的数据包;Receiving a data packet sent by the server through the communication connection;
    读取所述数据包的包头信息;Reading the header information of the data packet;
    判断所述包头信息是否与预设的探测包头信息一致,若是,则确定接收到探测数据包。Determining whether the header information is consistent with the preset probe header information, and if yes, determining to receive the probe packet.
  4. 根据权利要求1至3任一所述的方法,其特征在于,所述丢弃所述探测数据包,具体为:在所述探测数据包传输到网络七层结构的应用层之前丢弃所述探测数据包。The method according to any one of claims 1 to 3, wherein the discarding the probe data packet is specifically: discarding the probe data before the probe data packet is transmitted to an application layer of a network seven-layer structure. package.
  5. 一种维持通信连接的方法,其特征在于,所述方法应用在服务器上,所述方法包括: A method of maintaining a communication connection, wherein the method is applied to a server, the method comprising:
    建立与终端上的应用客户端之间的通信连接;Establish a communication connection with an application client on the terminal;
    向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。And transmitting, to the terminal, a probe data packet for maintaining the communication connection, so that the terminal discards the probe data packet when the probe data packet is identified.
  6. 根据权利要求5所述的方法,其特征在于,所述建立与终端上的应用客户端之间的通信连接,包括:The method according to claim 5, wherein the establishing a communication connection with an application client on the terminal comprises:
    接收所述终端通过所述应用客户端发送的连接建立请求,所述连接建立请求中包含所述应用客户端的地址信息;Receiving, by the terminal, a connection establishment request sent by the application client, where the connection establishment request includes address information of the application client;
    根据所述连接建立请求向所述终端返回连接建立响应后,完成所述通信连接的建立;After the connection establishment response is returned to the terminal according to the connection establishment request, completing establishment of the communication connection;
    所述方法还包括:The method further includes:
    在完成所述通信连接的建立后,在连接列表中记录所述应用客户端的地址信息。After the establishment of the communication connection is completed, the address information of the application client is recorded in the connection list.
  7. 根据权利要求6所述的方法,其特征在于,所述向所述终端发送用于维持所述通信连接的探测数据包,包括:The method according to claim 6, wherein the sending the probe data packet for maintaining the communication connection to the terminal comprises:
    当到达预设的探测周期时,从所述连接列表中获取记录的地址信息;Obtaining the recorded address information from the connection list when a preset detection period is reached;
    生成探测数据包,所述探测数据包中包含预设的探测包头信息;Generating a probe data packet, where the probe data packet includes preset probe header information;
    按照所述地址信息将所述探测数据包发送至对应的应用客户端。Sending the probe data packet to the corresponding application client according to the address information.
  8. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method of claim 6 wherein the method further comprises:
    接收所述终端通过所述应用客户端发送的终止服务请求;Receiving a termination service request sent by the terminal by using the application client;
    根据所述终止服务请求删除所述连接列表中记录的所述应用客户端的地址信息,以使所述服务器停止向所述终端发送所述探测数据包。And deleting the address information of the application client recorded in the connection list according to the termination service request, so that the server stops sending the probe data packet to the terminal.
  9. 一种维持通信连接的装置,其特征在于,所述装置应用在终端上,所述终端上安装有应用客户端,所述装置包括:An apparatus for maintaining a communication connection, wherein the apparatus is applied to a terminal, and an application client is installed on the terminal, and the apparatus includes:
    建立单元,用于建立应用客户端与服务器之间的通信连接;Establishing a unit for establishing a communication connection between the application client and the server;
    识别单元,用于识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;An identifying unit, configured to identify whether a data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection;
    处理单元,用于当识别所述数据包为探测数据包时,丢弃所述探测数据 包。a processing unit, configured to discard the probe data when the data packet is identified as a probe data packet package.
  10. 根据权利要求9所述的装置,其特征在于,所述建立单元包括:The apparatus according to claim 9, wherein said establishing unit comprises:
    请求发送子单元,用于通过所述应用客户端向所述服务器发送连接建立请求,所述连接建立请求中包含所述应用客户端的地址信息,以使所述服务器在所述通信连接建立后记录所述地址信息;a request sending subunit, configured to send, by the application client, a connection establishment request to the server, where the connection establishment request includes address information of the application client, so that the server records after the communication connection is established The address information;
    响应接收子单元,用于当接收到所述服务器根据所述连接建立请求返回的连接建立响应后,完成所述通信连接的建立。The response receiving subunit is configured to complete establishment of the communication connection after receiving the connection establishment response returned by the server according to the connection establishment request.
  11. 根据权利要求9所述的装置,其特征在于,所述识别单元包括:The device according to claim 9, wherein the identification unit comprises:
    数据包接收子单元,用于接收所述服务器通过所述通信连接发送的数据包;a data packet receiving subunit, configured to receive a data packet sent by the server through the communication connection;
    信息读取子单元,用于读取所述数据包的包头信息;An information reading subunit, configured to read the header information of the data packet;
    信息判断子单元,用于判断所述包头信息是否与预设的探测包头信息一致,若是,则确定接收到探测数据包。The information determining subunit is configured to determine whether the packet header information is consistent with the preset probe header information, and if yes, determine to receive the probe data packet.
  12. 根据权利要求9至11任一所述的装置,其特征在于,A device according to any one of claims 9 to 11, wherein
    所述处理单元,具体用于在所述探测数据包传输到网络七层结构的应用层之前丢弃所述探测数据包。The processing unit is specifically configured to discard the probe data packet before the probe data packet is transmitted to an application layer of a network seven-layer structure.
  13. 一种维持通信连接的装置,其特征在于,所述装置应用在服务器上,所述装置包括:An apparatus for maintaining a communication connection, wherein the apparatus is applied to a server, the apparatus comprising:
    建立单元,用于建立与终端上的应用客户端之间的通信连接;Establishing a unit for establishing a communication connection with an application client on the terminal;
    维持单元,用于向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。And a maintaining unit, configured to send, to the terminal, a probe data packet for maintaining the communication connection, so that the terminal discards the probe data packet when the probe data packet is identified.
  14. 根据权利要求13所述的装置,其特征在于,所述建立单元包括:The apparatus according to claim 13, wherein said establishing unit comprises:
    请求接收子单元,用于接收所述终端通过所述应用客户端发送的连接建立请求,所述连接建立请求中包含所述应用客户端的地址信息;a request receiving subunit, configured to receive a connection establishment request sent by the terminal by using the application client, where the connection establishment request includes address information of the application client;
    响应发送子单元,用于根据所述连接建立请求向所述终端返回连接建立响应后,完成所述通信连接的建立;And responding to the sending subunit, configured to complete the establishment of the communication connection after returning the connection establishment response to the terminal according to the connection establishment request;
    所述装置还包括: The device also includes:
    记录单元,用于在完成所述通信连接的建立后,在连接列表中记录所述应用客户端的地址信息。a recording unit, configured to record address information of the application client in the connection list after completing the establishment of the communication connection.
  15. 根据权利要求14所述的装置,其特征在于,所述维持单元包括:The apparatus according to claim 14, wherein said maintaining unit comprises:
    地址获取子单元,用于当到达预设的探测周期时,从所述连接列表中获取记录的地址信息;An address obtaining subunit, configured to obtain the recorded address information from the connection list when a preset detection period is reached;
    探测包生成子单元,用于生成探测数据包,所述探测数据包中包含预设的探测包头信息;a probe packet generation subunit, configured to generate a probe data packet, where the probe data packet includes preset probe header information;
    探测包发送子单元,用于按照所述地址信息将所述探测数据包发送至对应的应用客户端。The probe packet sending subunit is configured to send the probe data packet to the corresponding application client according to the address information.
  16. 根据权利要求14所述的装置,其特征在于,所述装置还包括:The device according to claim 14, wherein the device further comprises:
    接收单元,用于接收所述终端通过所述应用客户端发送的终止服务请求;a receiving unit, configured to receive a termination service request sent by the terminal by using the application client;
    删除单元,用于根据所述终止服务请求删除所述连接列表中记录的所述应用客户端的地址信息,以使所述服务器停止向所述终端发送所述探测数据包。a deleting unit, configured to delete the address information of the application client recorded in the connection list according to the termination service request, so that the server stops sending the probe data packet to the terminal.
  17. 一种终端,其特征在于,所述终端上安装有应用客户端,包括:A terminal, wherein an application client is installed on the terminal, including:
    处理器;用于存储所述处理器可执行指令的存储器;a processor; a memory for storing the processor executable instructions;
    其中,所述处理器被配置为:Wherein the processor is configured to:
    建立应用客户端与服务器之间的通信连接;Establish a communication connection between the application client and the server;
    识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;Identifying whether the data packet sent by the server through the communication connection is a probe data packet for maintaining the communication connection;
    当识别所述数据包为探测数据包时,丢弃所述探测数据包。When the data packet is identified as a probe data packet, the probe data packet is discarded.
  18. 一种服务器,其特征在于,包括:A server, comprising:
    处理器;用于存储所述处理器可执行指令的存储器;a processor; a memory for storing the processor executable instructions;
    其中,所述处理器被配置为:Wherein the processor is configured to:
    建立与终端上的应用客户端之间的通信连接;Establish a communication connection with an application client on the terminal;
    向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。 And transmitting, to the terminal, a probe data packet for maintaining the communication connection, so that the terminal discards the probe data packet when the probe data packet is identified.
PCT/CN2016/087464 2015-07-09 2016-06-28 Method, device, terminal and server for maintaining communication connection WO2017005118A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510400976.2 2015-07-09
CN201510400976.2A CN106341342A (en) 2015-07-09 2015-07-09 Communication connection maintaining method and device, terminal and server

Publications (1)

Publication Number Publication Date
WO2017005118A1 true WO2017005118A1 (en) 2017-01-12

Family

ID=57684855

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/087464 WO2017005118A1 (en) 2015-07-09 2016-06-28 Method, device, terminal and server for maintaining communication connection

Country Status (2)

Country Link
CN (1) CN106341342A (en)
WO (1) WO2017005118A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324379B (en) * 2018-03-30 2021-12-17 视联动力信息技术股份有限公司 Communication connection establishing method and device
CN113765728B (en) * 2020-06-04 2023-07-14 深信服科技股份有限公司 Network detection method, device, equipment and storage medium
CN112003930A (en) * 2020-08-21 2020-11-27 深圳柏成科技有限公司 Task allocation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100315958A1 (en) * 2009-06-11 2010-12-16 Luo Xiapu Method for non-cooperative measurement of network data-path quality
CN102769883A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Method and equipment for transmitting heartbeat data packet based on always online of TCP (Transmission Control Protocol)
CN103139303A (en) * 2013-02-07 2013-06-05 网易(杭州)网络有限公司 Method, device and system used for maintaining connected heartbeat
CN103297409A (en) * 2012-03-05 2013-09-11 联想(北京)有限公司 Method and device for maintaining connection
CN103716323A (en) * 2013-12-31 2014-04-09 厦门悦讯信息科技有限公司 Method for maintaining long connection by sending heartbeat packet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100315958A1 (en) * 2009-06-11 2010-12-16 Luo Xiapu Method for non-cooperative measurement of network data-path quality
CN102769883A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Method and equipment for transmitting heartbeat data packet based on always online of TCP (Transmission Control Protocol)
CN103297409A (en) * 2012-03-05 2013-09-11 联想(北京)有限公司 Method and device for maintaining connection
CN103139303A (en) * 2013-02-07 2013-06-05 网易(杭州)网络有限公司 Method, device and system used for maintaining connected heartbeat
CN103716323A (en) * 2013-12-31 2014-04-09 厦门悦讯信息科技有限公司 Method for maintaining long connection by sending heartbeat packet

Also Published As

Publication number Publication date
CN106341342A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
TWI535255B (en) A metod and device thereof for sending business requirements
US20120136945A1 (en) Terminal and intermediate node in content oriented networking environment and communication method of terminal and intermediate node
KR102167613B1 (en) Message push method and device
US20070073878A1 (en) System and method for lowering proxy bandwidth utilization
WO2014187238A1 (en) Application type identification method and network device
US8949952B2 (en) Multi-stack subscriber sign on
WO2014067311A1 (en) Resource subscription method and device
US10812421B2 (en) Conveying instant messages via HTTP
CN110445723B (en) Network data scheduling method and edge node
KR20110071453A (en) Zigbee gateway and method for identifying message of the same
WO2016090995A1 (en) Method of communication between page and long-connection server, and client end
US20170171286A1 (en) Methods and devices for validating a video connection or other types of communication sessions over a computer network
CN103297324A (en) Method for local area network positioning in instantaneous network data transmission
US20190363961A1 (en) Content Delivery Network Server Testing
WO2012075970A1 (en) Method, device and system for obtaining media content
WO2016011885A1 (en) Information transmission method and apparatus
Krawiec et al. DASCo: dynamic adaptive streaming over CoAP
WO2017005118A1 (en) Method, device, terminal and server for maintaining communication connection
CN105357110A (en) Mail sending method, device and system
WO2018010616A1 (en) Link layer based network management
WO2016086755A1 (en) Packet processing method and transparent proxy server
US8650313B2 (en) Endpoint discriminator in network transport protocol startup packets
US9582561B2 (en) Size-based data synchronization
WO2019200630A1 (en) Method and system for transmitting streaming media resource
CN113810349B (en) Data transmission method, device, computer equipment and storage medium

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: 16820769

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: 16820769

Country of ref document: EP

Kind code of ref document: A1