[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2017005118A1 - 维持通信连接的方法、装置、终端及服务器 - Google Patents

维持通信连接的方法、装置、终端及服务器 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
English (en)
French (fr)
Inventor
黄梅龙
Original Assignee
阿里巴巴集团控股有限公司
黄梅龙
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司, 黄梅龙 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017005118A1 publication Critical patent/WO2017005118A1/zh

Links

Images

Classifications

    • 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
    • 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
    • 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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请公开了维持通信连接的方法、装置、终端及服务器,所述方法应用在终端上,所述终端上安装有应用客户端,包括:建立应用客户端与服务器之间的通信连接;识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;当识别所述数据包为探测数据包时,丢弃所述探测数据包。应用本申请实施例,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。

Description

维持通信连接的方法、装置、终端及服务器 技术领域
本申请涉及通信技术领域,尤其涉及维持通信连接的方法、装置、终端及服务器。
背景技术
随着智能终端(简称终端)的普及,通过在终端上安装大量应用程序,可以实现各种应用功能。每种应用程序通过其应用客户端接入网络,从而与对应的应用服务器建立通信连接,以便完成数据通信。
现有技术中,终端可以基于SOCKET(套接字)协议建立各个应用客户端与对应的应用服务器之间的通信长连接,在长连接建立后,无论应用客户端与应用服务器之间是否传输数据,都需要终端主动维持所建立的长连接,因此当终端上安装了多个应用程序时,终端会需要为维持多个长连接而耗费大量的计算资源和电量。
发明内容
本申请提供维持通信连接的方法、装置、终端及服务器,以解决现有技术中终端需要维持多个通信长连接而耗费大量的计算资源和电量的问题。
根据本申请实施例的第一方面,提供一种维持通信连接的方法,所述方法应用在终端上,所述终端上安装有应用客户端,所述方法包括:
建立应用客户端与服务器之间的通信连接;
识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;
当识别所述数据包为探测数据包时,丢弃所述探测数据包。
根据本申请实施例的第二方面,提供另一种维持通信连接的方法,所述方法应用在服务器上,所述方法包括:
建立与终端上的应用客户端之间的通信连接;
向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。
根据本申请实施例的第三方面,提供一种维持通信连接的装置,所述装置应用在终端上,所述终端上安装有应用客户端,所述装置包括:
建立单元,用于建立应用客户端与服务器之间的通信连接;
识别单元,用于识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;
处理单元,用于当识别所述数据包为探测数据包时,丢弃所述探测数据包。
根据本申请实施例的第四方面,提供另一种维持通信连接的装置,所述装置应用在服务器上,所述装置包括:
建立单元,用于建立与终端上的应用客户端之间的通信连接;
维持单元,用于向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。
根据本申请实施例的第五方面,提供一种终端,所述终端上安装有应用客户端,包括:
处理器;用于存储所述处理器可执行指令的存储器;
其中,所述处理器被配置为:
建立应用客户端与服务器之间的通信连接;
识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;
当识别所述数据包为探测数据包时,丢弃所述探测数据包。
根据本申请实施例的第六方面,提供一种服务器,包括:
处理器;用于存储所述处理器可执行指令的存储器;
其中,所述处理器被配置为:
建立与终端上的应用客户端之间的通信连接;
向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。
应用本申请实施例,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。
图1为应用本申请实施例维持通信连接的系统架构示意图;
图2A为本申请维持通信连接的方法的一个实施例流程图;
图2B为本申请维持通信连接的方法的另一个实施例流程图;
图3A为本申请维持通信连接的方法的另一个实施例流程图;
图3B为本申请实施例中探测数据包在七层网络结构中的传输示意图;
图4为本申请维持通信连接的装置所在设备的一种硬件结构图;
图5为本申请维持通信连接的装置的一个实施例框图;
图6为本申请维持通信连接的装置的另一个实施例框图。
具体实施方式
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的 任何或所有可能组合。
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
参见图1,为应用本申请实施例维持通信连接的系统架构示意图:
图1示出的系统架构中包括服务器侧和终端侧两部分,其中,服务器侧包括提供应用服务的服务器,终端侧包括终端1至终端n,每个终端通过安装应用客户端运行应用程序,实现应用功能。其中,服务器和终端上的应用客户端之间通过无线网络建立通信连接后,例如,WiFi(Wireless Fidelity,无线保真)网络,或移动网络,可以基于HTTP(Hyper Text Transfer Protocol,超文本传输协议)与应用客户端之间进行数据通信。现有技术中需要每个终端主动维持其上安装的多个应用客户端与服务器之间建立的通信连接,因此会耗费大量终端资源,本申请实施例中,服务器可以通过连接列表维护所有已建立通信连接的应用客户端的地址信息,例如,应用客户端的IP地址,从而基于所维护的地址信息主动向终端发送探测数据包,用以维持所建立的通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。下面将结合具体的实施例对申请进行详细描述。
参见图2A,为本申请维持通信连接的方法的一个实施例流程图,该实施例可以应用在终端上,该终端上安装了若干应用客户端:
步骤201:建立应用客户端与服务器之间的通信连接。
本步骤中,当终端用户要通过终端上安装的应用客户端访问服务器时,终端可以通过该应用客户端向服务器发送连接建立请求,该连接建立请求中 包含应用客户端的地址信息,该地址信息可以包括终端的IP(Internet Protocol,互联网协议)地址;当终端接收到服务器响应该连接建立请求返回的连接建立响应后,完成与服务器之间通信连接的建立。
如果终端在预设的响应周期内未接收到服务器返回的连接建立响应,则重新向服务器发送连接建立请求;如果终端向服务器发送连接建立请求的次数超过预设次数时,则确定服务器不可达,停止与服务器建立通信连接。
步骤202:识别服务器通过该通信连接发送的数据包是否为用于维持该通信连接的探测数据包。
在终端的应用客户端与服务器建立通信连接后,可以基于该通信连接与服务器之间进行数据通信,从而实现相应的应用功能。本实施例中,为了维持所建立的通信连接,由服务器定期向终端发送探测数据包,由于服务器同时还需要向终端发送各种应用数据包,因此终端在接收到服务器通过该通信连接发送的数据包后,可以读取数据包的包头信息,并判断该包头信息是否与预设的探测包头信息一致,若是,则确定接收到探测数据包。
步骤203:当识别数据包为探测数据包时,丢弃该探测数据包。
当终端识别出探测数据包后,说明应用客户端与服务器之间的通信连接正常,此时终端可以丢弃该探测数据包。由于探测数据包仅用于维持通信连接,因此终端可以将探测数据包在网络七层结构中传输到应用层之前进行丢弃,从而避免探测数据包传输到应用层时,应用客户端对探测数据包进行处理而浪费终端资源。
由上述实施例可见,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。
参见图2B,为本申请维持通信连接的方法的另一个实施例流程图,该实施例可以应用在服务器上:
步骤211:建立与终端上的应用客户端之间的通信连接。
本步骤中,当终端用户要通过终端上安装的应用客户端访问服务器时,终端可以通过该应用客户端向服务器发送连接建立请求,该连接建立请求中包含应用客户端的地址信息,该地址信息可以包括终端的IP地址,当服务器接收到连接建立请求后,可以响应于该连接建立请求向所述终端返回连接建立响应,从而完成与应用客户端之间的通信连接的建立。
本实施例中,由于服务器可以同时与多个应用客户端建立通信连接,因此服务器可以通过预设的连接列表对已建立通信连接的应用客户端的地址信息进行维护。在建立与任一应用客户端之间的通信连接后,服务器可以在连接列表中记录该应用客户端的地址信息。
步骤212:向终端发送用于维持该通信连接的探测数据包,以使终端在识别到探测数据包时,丢弃该探测数据包。
服务器上可以预先设置探测周期,当到达该探测周期时,服务器向终端主动发送用于维持通信连接的探测数据包。对应于步骤211中维护的连接列表,本步骤中,服务器可以从连接列表中获取所有已建立通信连接的应用客户端的地址信息,并生成探测数据包,该探测数据包中包含预设的探测包头信息,以使终端能够根据该探测包头信息从服务器发送的所有数据包中识别出探测数据包,然后服务器按照获取到的地址信息将探测数据包发送至对应的应用客户端,从而维持服务器与应用客户端之间的通信连接。
可选的,当终端用户关闭应用客户端,例如,终端用户从应用客户端退出登录时,可以向服务器发送终止服务请求,该终止服务请求中携带应用客户端的地址信息,当服务器接收到终止服务请求后,可以获取终止服务器请求中的地址信息,并从连接列表中删除该地址信息,从而使得服务器停止向终端发送探测数据包。
由上述实施例可见,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终 端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。
参见图3A,为本申请维持通信连接的方法的另一个实施例流程图,该实施例结合图1所示应用场景,通过终端与服务器之间的交互对维持通信连接的过程进行详细描述:
步骤301:终端通过应用客户端向服务器发送连接建立请求,该连接建立请求中包含应用客户端的地址信息。
本申请中的终端可以包括各种具有上网功能的设备,例如,智能手机,平板电脑等。终端上可以通过安装各种应用客户端实现各种应用功能,每个应用客户端的应用程序可以在终端操作系统上运行。应用客户端在实现应用功能时,通常需要与应用服务提供方设置的服务器之间建立通信连接,并在维持该通信连接的基础上,完成终端与服务器之间的数据通信。
当终端上的应用客户端要与服务器之间进行数据通信时,终端可以先通过应用客户端向服务器发送连接建立请求,该连接建立请求可以为基于HTTP的请求。
步骤302:服务器根据连接建立请求向终端返回连接建立响应后,完成与应用客户端之间通信连接的建立。
当服务器接收到连接建立请求后,可以向终端返回连接建立响应,从而完成与应用客户端之间的通信连接的建立。相应的,终端接收到连接建立响应后,可以确定完成与服务器之间的通信连接的建立。
本实施例中,如果终端在预设的响应周期内未接收到服务器返回的连接建立响应,则可以重新向服务器发送连接建立请求;如果终端向服务器发送连接建立请求的次数超过预设次数时,则确定服务器不可达,可以停止与服务器建立通信连接。
步骤303:服务器在连接列表中记录应用客户端的地址信息。
本实施例中,由于服务器可以同时与多个应用客户端建立通信连接,因此服务器可以通过预设的连接列表对已建立通信连接的应用客户端的地址信 息进行维护。在建立与任一应用客户端之间的通信连接后,服务器可以在连接列表中记录该应用客户端的地址信息,例如图1中示出的连接列表,其中记录了已建立通信连接的n个应用客户端的IP地址,即IP1至IPn。
步骤304:当到达预设的探测周期时,服务器从连接列表中获取记录的地址信息。
服务器上可以预先设置探测周期,用以主动触发向应用客户端发送探测数据包。当服务器检测到该探测周期到达时,可以首先从连接列表中获取所有已建立通信连接的应用客户端的地址信息。
步骤305:服务器生成探测数据包,该探测数据包中包含预设的探测包头信息。
为了便于终端从服务器发送的数据包中识别出探测数据包,终端和服务器可以预先约定用于表示探测数据包的探测包头信息,例如,该探测包头信息可以通过预设值0X00表示。当服务器从连接列表中获取到地址信息后,例如,地址信息为IP地址,则可以针对每个地址信息生成一个探测数据包,该探测数据包的目的地址即可为应用客户端的IP地址,并且该探测数据包中携带预先约定的探测包头信息。
步骤306:服务器按照地址信息将探测数据包发送至对应的应用客户端。
步骤307:终端接收到数据包后,读取数据包的包头信息。
当终端接收到服务器发送的数据包后,可以对数据包进行解析,获得数据包的包头信息。
步骤308:当终端判断包头信息与预设的探测包头信息一致时,确定接收到探测数据包。
步骤309:终端在探测数据包传输到网络七层结构的应用层之前丢弃探测数据包。
当终端确定接收到探测数据包后,说明应用客户端与服务器之间的通信连接正常,此时终端可以丢弃该探测数据包。由于探测数据包仅用于维持通信连接,因此终端可以将探测数据包在网络七层结构中传输到应用层之前进 行丢弃,从而避免探测数据包传输到应用层时,应用客户端对探测数据包进行处理而浪费终端资源。
参见图3B,为本申请实施例中探测数据包在七层网络结构中的传输示意图:在服务器侧,探测数据包在服务器的网络七层结构中从应用层向下传输到物理层,并通过服务器与终端之间的通信介质,传输到终端上的应用客户端,在应用客户端侧,该探测数据包在客户端的网络七层结构中从物理层向上传输到传输层时,即可将该探测数据包丢弃。
由上述实施例可见,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。
与前述维持通信连接的方法的实施例相对应,本申请还提供了维持通信连接的装置、终端及服务器的实施例。
本申请维持通信连接的装置的实施例可以应用具有硬件结构的设备上,根据装置实施例实现功能的不同,对应的设备可以为终端或者服务器。其中,装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图4所示,为本申请维持通信连接的装置所在设备的一种硬件结构图,除了图4所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的设备通常根据该设备的实际功能,还可以包括其他硬件,图4中不再一一示出。
参见图5,为本申请维持通信连接的装置的一个实施例框图,该装置实施例可以应用在终端上,所述终端上安装有应用客户端,该装置包括:建立单元510、识别单元520和处理单元530。
其中,建立单元510,用于建立应用客户端与服务器之间的通信连接;
识别单元520,用于识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;
处理单元530,用于当识别所述数据包为探测数据包时,丢弃所述探测数据包。
在一个可选的实现方式中,所述建立单元510可以包括(图5中未示出):
请求发送子单元,用于通过所述应用客户端向所述服务器发送连接建立请求,所述连接建立请求中包含所述应用客户端的地址信息,以使所述服务器在所述通信连接建立后记录所述地址信息;
响应接收子单元,用于当接收到所述服务器根据所述连接建立请求返回的连接建立响应后,完成所述通信连接的建立。
在另一个可选的实现方式中,所述识别单元520可以包括(图5中未示出):
数据包接收子单元,用于接收所述服务器通过所述通信连接发送的数据包;
信息读取子单元,用于读取所述数据包的包头信息;
信息判断子单元,用于判断所述包头信息是否与预设的探测包头信息一致,若是,则确定接收到探测数据包。
在另一个可选的实现方式中:
所述处理单元530,可以具体用于在所述探测数据包传输到网络七层结构的应用层之前丢弃所述探测数据包。
参见图6,为本申请维持通信连接的装置的另一个实施例框图,该装置实施例可以应用在服务器上,该装置包括:建立单元610和维持单元620。
其中,建立单元610,用于建立与终端上的应用客户端之间的通信连接;
维持单元620,用于向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。
在一个可选的实现方式中,所述建立单元610可以包括(图6中未示出):
请求接收子单元,用于接收所述终端通过所述应用客户端发送的连接建 立请求,所述连接建立请求中包含所述应用客户端的地址信息;
响应发送子单元,用于根据所述连接建立请求向所述终端返回连接建立响应后,完成所述通信连接的建立;
相应的,所述装置还可以包括(图6中未示出):
记录单元,用于在完成所述通信连接的建立后,在连接列表中记录所述应用客户端的地址信息。
在另一个可选的实现方式中,所述维持单元620可以包括(图6中未示出):
地址获取子单元,用于当到达预设的探测周期时,从所述连接列表中获取记录的地址信息;
探测包生成子单元,用于生成探测数据包,所述探测数据包中包含预设的探测包头信息;
探测包发送子单元,用于按照所述地址信息将所述探测数据包发送至对应的应用客户端。
在另一个可选的实现方式中,所述装置还可以包括(图6中未示出):
接收单元,用于接收所述终端通过所述应用客户端发送的终止服务请求;
删除单元,用于根据所述终止服务请求删除所述连接列表中记录的所述应用客户端的地址信息,以使所述服务器停止向所述终端发送所述探测数据包。
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性 劳动的情况下,即可以理解并实施。
由上述实施例可见,当终端上的应用客户端与服务器之间建立通信连接后,服务器可以主动向终端发送探测数据包,用以维持该通信连接,由于无需终端维持所建立的通信连接,因此节省了终端的计算资源和电量,并且终端在识别出该探测数据包后,可以丢弃该探测数据包,从而进一步避免处理该探测数据包而占用终端资源。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。

Claims (18)

  1. 一种维持通信连接的方法,其特征在于,所述方法应用在终端上,所述终端上安装有应用客户端,所述方法包括:
    建立应用客户端与服务器之间的通信连接;
    识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;
    当识别所述数据包为探测数据包时,丢弃所述探测数据包。
  2. 根据权利要求1所述的方法,其特征在于,所述建立应用客户端与服务器之间的通信连接,包括:
    通过所述应用客户端向所述服务器发送连接建立请求,所述连接建立请求中包含所述应用客户端的地址信息,以使所述服务器在所述通信连接建立后记录所述地址信息;
    当接收到所述服务器根据所述连接建立请求返回的连接建立响应后,完成所述通信连接的建立。
  3. 根据权利要求1所述的方法,其特征在于,所述识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包,包括:
    接收所述服务器通过所述通信连接发送的数据包;
    读取所述数据包的包头信息;
    判断所述包头信息是否与预设的探测包头信息一致,若是,则确定接收到探测数据包。
  4. 根据权利要求1至3任一所述的方法,其特征在于,所述丢弃所述探测数据包,具体为:在所述探测数据包传输到网络七层结构的应用层之前丢弃所述探测数据包。
  5. 一种维持通信连接的方法,其特征在于,所述方法应用在服务器上,所述方法包括:
    建立与终端上的应用客户端之间的通信连接;
    向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。
  6. 根据权利要求5所述的方法,其特征在于,所述建立与终端上的应用客户端之间的通信连接,包括:
    接收所述终端通过所述应用客户端发送的连接建立请求,所述连接建立请求中包含所述应用客户端的地址信息;
    根据所述连接建立请求向所述终端返回连接建立响应后,完成所述通信连接的建立;
    所述方法还包括:
    在完成所述通信连接的建立后,在连接列表中记录所述应用客户端的地址信息。
  7. 根据权利要求6所述的方法,其特征在于,所述向所述终端发送用于维持所述通信连接的探测数据包,包括:
    当到达预设的探测周期时,从所述连接列表中获取记录的地址信息;
    生成探测数据包,所述探测数据包中包含预设的探测包头信息;
    按照所述地址信息将所述探测数据包发送至对应的应用客户端。
  8. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    接收所述终端通过所述应用客户端发送的终止服务请求;
    根据所述终止服务请求删除所述连接列表中记录的所述应用客户端的地址信息,以使所述服务器停止向所述终端发送所述探测数据包。
  9. 一种维持通信连接的装置,其特征在于,所述装置应用在终端上,所述终端上安装有应用客户端,所述装置包括:
    建立单元,用于建立应用客户端与服务器之间的通信连接;
    识别单元,用于识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;
    处理单元,用于当识别所述数据包为探测数据包时,丢弃所述探测数据 包。
  10. 根据权利要求9所述的装置,其特征在于,所述建立单元包括:
    请求发送子单元,用于通过所述应用客户端向所述服务器发送连接建立请求,所述连接建立请求中包含所述应用客户端的地址信息,以使所述服务器在所述通信连接建立后记录所述地址信息;
    响应接收子单元,用于当接收到所述服务器根据所述连接建立请求返回的连接建立响应后,完成所述通信连接的建立。
  11. 根据权利要求9所述的装置,其特征在于,所述识别单元包括:
    数据包接收子单元,用于接收所述服务器通过所述通信连接发送的数据包;
    信息读取子单元,用于读取所述数据包的包头信息;
    信息判断子单元,用于判断所述包头信息是否与预设的探测包头信息一致,若是,则确定接收到探测数据包。
  12. 根据权利要求9至11任一所述的装置,其特征在于,
    所述处理单元,具体用于在所述探测数据包传输到网络七层结构的应用层之前丢弃所述探测数据包。
  13. 一种维持通信连接的装置,其特征在于,所述装置应用在服务器上,所述装置包括:
    建立单元,用于建立与终端上的应用客户端之间的通信连接;
    维持单元,用于向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。
  14. 根据权利要求13所述的装置,其特征在于,所述建立单元包括:
    请求接收子单元,用于接收所述终端通过所述应用客户端发送的连接建立请求,所述连接建立请求中包含所述应用客户端的地址信息;
    响应发送子单元,用于根据所述连接建立请求向所述终端返回连接建立响应后,完成所述通信连接的建立;
    所述装置还包括:
    记录单元,用于在完成所述通信连接的建立后,在连接列表中记录所述应用客户端的地址信息。
  15. 根据权利要求14所述的装置,其特征在于,所述维持单元包括:
    地址获取子单元,用于当到达预设的探测周期时,从所述连接列表中获取记录的地址信息;
    探测包生成子单元,用于生成探测数据包,所述探测数据包中包含预设的探测包头信息;
    探测包发送子单元,用于按照所述地址信息将所述探测数据包发送至对应的应用客户端。
  16. 根据权利要求14所述的装置,其特征在于,所述装置还包括:
    接收单元,用于接收所述终端通过所述应用客户端发送的终止服务请求;
    删除单元,用于根据所述终止服务请求删除所述连接列表中记录的所述应用客户端的地址信息,以使所述服务器停止向所述终端发送所述探测数据包。
  17. 一种终端,其特征在于,所述终端上安装有应用客户端,包括:
    处理器;用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    建立应用客户端与服务器之间的通信连接;
    识别所述服务器通过所述通信连接发送的数据包是否为用于维持所述通信连接的探测数据包;
    当识别所述数据包为探测数据包时,丢弃所述探测数据包。
  18. 一种服务器,其特征在于,包括:
    处理器;用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    建立与终端上的应用客户端之间的通信连接;
    向所述终端发送用于维持所述通信连接的探测数据包,以使所述终端在识别到所述探测数据包时,丢弃所述探测数据包。
PCT/CN2016/087464 2015-07-09 2016-06-28 维持通信连接的方法、装置、终端及服务器 WO2017005118A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510400976.2A CN106341342A (zh) 2015-07-09 2015-07-09 维持通信连接的方法、装置、终端及服务器
CN201510400976.2 2015-07-09

Publications (1)

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

Family

ID=57684855

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/087464 WO2017005118A1 (zh) 2015-07-09 2016-06-28 维持通信连接的方法、装置、终端及服务器

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324379B (zh) * 2018-03-30 2021-12-17 视联动力信息技术股份有限公司 一种通信连接建立方法及装置
CN113765728B (zh) * 2020-06-04 2023-07-14 深信服科技股份有限公司 网络探测方法、装置、设备及存储介质
CN112003930A (zh) * 2020-08-21 2020-11-27 深圳柏成科技有限公司 任务分配方法、装置、设备及存储介质

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 (zh) * 2011-05-03 2012-11-07 中国移动通信集团公司 基于tcp的永远在线业务传输心跳数据包的方法及设备
CN103139303A (zh) * 2013-02-07 2013-06-05 网易(杭州)网络有限公司 一种用于保持连接的心跳方法、装置及系统
CN103297409A (zh) * 2012-03-05 2013-09-11 联想(北京)有限公司 一种保持连接的方法及装置
CN103716323A (zh) * 2013-12-31 2014-04-09 厦门悦讯信息科技有限公司 一种发送心跳包维持长连接的方法

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 (zh) * 2011-05-03 2012-11-07 中国移动通信集团公司 基于tcp的永远在线业务传输心跳数据包的方法及设备
CN103297409A (zh) * 2012-03-05 2013-09-11 联想(北京)有限公司 一种保持连接的方法及装置
CN103139303A (zh) * 2013-02-07 2013-06-05 网易(杭州)网络有限公司 一种用于保持连接的心跳方法、装置及系统
CN103716323A (zh) * 2013-12-31 2014-04-09 厦门悦讯信息科技有限公司 一种发送心跳包维持长连接的方法

Also Published As

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

Similar Documents

Publication Publication Date Title
US8996626B2 (en) Terminal and intermediate node in content oriented networking environment and communication method of terminal and intermediate node
KR102167613B1 (ko) 메시지 푸시 방법 및 장치
TWI535255B (zh) 一種發送業務請求訊息的方法及裝置
CN100466551C (zh) 一种实现负载均衡的方法和一种负载均衡设备
US20070073878A1 (en) System and method for lowering proxy bandwidth utilization
US8949952B2 (en) Multi-stack subscriber sign on
WO2014187238A1 (zh) 应用类型识别方法及网络设备
US10812421B2 (en) Conveying instant messages via HTTP
KR20110071453A (ko) 지그비 게이트웨이 및 이의 메시지 동일화 방법
US20170171286A1 (en) Methods and devices for validating a video connection or other types of communication sessions over a computer network
WO2016090995A1 (zh) 页面与长连接服务器间的通信方法及客户端
CN113810349B (zh) 数据传输方法、装置、计算机设备和存储介质
CN103297324A (zh) 一种网络数据即时传输中的局域网定位方法
WO2012075970A1 (zh) 一种获取媒体内容的方法、设备及系统
Krawiec et al. DASCo: dynamic adaptive streaming over CoAP
WO2016011885A1 (zh) 一种信息传输方法及装置
CN110445723B (zh) 一种网络数据调度方法及边缘节点
WO2019200630A1 (zh) 一种流媒体资源的传输方法及系统
WO2017005118A1 (zh) 维持通信连接的方法、装置、终端及服务器
WO2018010616A1 (zh) 基于链路层的网络管理
US8650313B2 (en) Endpoint discriminator in network transport protocol startup packets
US9582561B2 (en) Size-based data synchronization
CN106330582B (zh) 一种共享上网移动终端数量的检测方法及装置
CN113285920B (zh) 业务访问方法、装置、设备及存储介质
WO2016184025A1 (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: 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