[go: up one dir, main page]

CN104104647B - Connection maintaining method - Google Patents

Connection maintaining method Download PDF

Info

Publication number
CN104104647B
CN104104647B CN201310112126.3A CN201310112126A CN104104647B CN 104104647 B CN104104647 B CN 104104647B CN 201310112126 A CN201310112126 A CN 201310112126A CN 104104647 B CN104104647 B CN 104104647B
Authority
CN
China
Prior art keywords
server
response
time
test packets
electronic device
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN201310112126.3A
Other languages
Chinese (zh)
Other versions
CN104104647A (en
Inventor
蔡伊峰
江书育
蔡孟达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Acer Inc
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to CN201310112126.3A priority Critical patent/CN104104647B/en
Publication of CN104104647A publication Critical patent/CN104104647A/en
Application granted granted Critical
Publication of CN104104647B publication Critical patent/CN104104647B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明提供一种维持连线方法,用于维持电子装置与服务器之间的连线状态。该方法包括以下步骤:(a)发出第N次测试封包至服务器,第N次测试封包要求服务器于等待N段间隔时间后再响应电子装置;(b)判断是否接收到服务器对第N次测试封包所发出的响应;(c)若是,则重复步骤(a);若否,则计算自发出第N‑1次测试封包至接收服务器响应所经过时间为周期时间;以及(d)当该电子装置切换为一待机/休眠模式后,依据周期时间发送维持封包至服务器,以维持与服务器之间的连线状态。通过本发明的设计,让电子装置能在减少资源耗费的情况下维持与服务器之间的连线状态。

The present invention provides a method for maintaining a connection, which is used to maintain the connection status between an electronic device and a server. The method includes the following steps: (a) sending an Nth test packet to a server, wherein the Nth test packet requires the server to respond to the electronic device after waiting for N intervals; (b) determining whether a response to the Nth test packet sent by the server is received; (c) if so, repeating step (a); if not, calculating the time from sending the N-1th test packet to receiving the server response as the cycle time; and (d) when the electronic device is switched to a standby/sleep mode, sending a maintenance packet to the server according to the cycle time to maintain the connection status with the server. Through the design of the present invention, the electronic device can maintain the connection status with the server while reducing resource consumption.

Description

维持连线方法Stay Alive Method

技术领域technical field

本发明涉及一种维持连线方法,特别是涉及一种应用于电子装置与服务器之间的维持连线方法。The invention relates to a method for maintaining a connection, in particular to a method for maintaining a connection between an electronic device and a server.

背景技术Background technique

一般用户要通过计算机与远程服务器之间进行彼此连线,必须通过网络及相关设备(例如路由器或分享器等)建立起连线路径。以往计算机均采用固定IP,即使计算机与服务器之间连线中断,服务器可以通过各自独立的固定IP地址来找到对应连线的计算机;然而在现今计算机大多采用浮动(虚拟)IP的状态下,一旦计算机超过一定时间未发送封包至服务器,于连线路径中的路由器可能会关闭计算机所使用的通信端口,使得服务器无法寻得对应计算机所使用的IP地址,如此将造成计算机与服务器之间连线中断。此时必须由用户端计算机主动与服务器重新建立连线,才能恢复先前的连线状态。因此,在计算机处于某些特定模式下(例如休眠或待机模式),若想维持两者之间连线,计算机必须周期性发送封包至服务器。Generally, if a user wants to connect to each other through a computer and a remote server, a connection path must be established through the network and related equipment (such as a router or a sharer, etc.). In the past, computers used fixed IP. Even if the connection between the computer and the server was interrupted, the server could find the corresponding connected computer through their independent fixed IP addresses; however, most computers use floating (virtual) IP nowadays. If the computer does not send a packet to the server for a certain period of time, the router in the connection path may close the communication port used by the computer, so that the server cannot find the IP address used by the corresponding computer, which will result in a connection between the computer and the server interruption. At this time, the client computer must actively re-establish a connection with the server in order to restore the previous connection state. Therefore, when the computer is in some specific mode (such as hibernation or standby mode), in order to maintain the connection between the two, the computer must periodically send packets to the server.

前述计算机若是发送封包过于频繁,会导致计算机资源的多余耗费;而若是发送封包间隔时间过久,又会导致与服务器之间连线中断。此外,计算机与服务器之间的连线路径往往需要经过多个路由器连线而构成,每个路由器关闭通信端口的设定时间并不相同,因此如何决定出计算机发送封包的较佳间隔时间,实为一值得研究的课题。If the above-mentioned computer sends packets too frequently, it will cause unnecessary consumption of computer resources; and if the interval between sending packets is too long, it will cause the connection with the server to be interrupted. In addition, the connection path between the computer and the server often needs to be connected through multiple routers. The setting time for closing the communication port of each router is different. Therefore, how to determine the optimal interval for the computer to send packets is a practical It is a subject worth studying.

发明内容Contents of the invention

有鉴于此,本发明的主要目的是提供一种应用于电子装置与服务器之间的维持连线方法,以解决现有技术存在的电子装置因闲置过久而容易造成与服务器之间连线中断的技术问题。In view of this, the main purpose of the present invention is to provide a method for maintaining a connection between an electronic device and a server, so as to solve the problem that the electronic device in the prior art is easily disconnected from the server due to being idle for too long. technical issues.

为达到上述的目的,本发明的维持连线方法用于维持电子装置与服务器之间的连线状态。该方法包括以下步骤:(a)发出第N次测试封包至服务器,第N次测试封包要求服务器于等待N段间隔时间后再响应电子装置,其中N为正整数;(b)判断是否接收到服务器对第N次测试封包所发出的响应;(c)若是,则重复步骤(a);若否,则计算自发出第N-1次测试封包至接收服务器响应所经过时间为周期时间;以及(d)当电子装置切换为待机/休眠模式后,依据周期时间发送维持封包至服务器,以维持与服务器之间的连线状态。To achieve the above objectives, the connection maintenance method of the present invention is used to maintain the connection status between the electronic device and the server. The method includes the following steps: (a) sending the Nth test packet to the server, and the Nth test packet requires the server to wait for an interval of N intervals before responding to the electronic device, where N is a positive integer; (b) judging whether the packet is received The response sent by the server to the Nth test packet; (c) if yes, repeat step (a); if not, calculate the period time elapsed from sending the N-1th test packet to receiving the server response; and (d) When the electronic device switches to the standby/sleep mode, it sends a maintenance packet to the server according to the cycle time, so as to maintain the connection state with the server.

在本发明的另一实施例中,本发明的维持连线方法包括以下步骤:(a)发出第N次测试封包至服务器,第N次测试封包要求服务器于等待N段间隔时间后再响应电子装置,其中N为正整数;(b)判断是否接收到服务器对第N次测试封包所发出的响应;(c)若接收到服务器对第N次测试封包所发出的响应,则重复步骤(a);若未接收到服务器对第N次测试封包所发出的响应,则反复发出第N-1次测试封包并判断是否接收到服务器对所有第N-1次测试封包所发出响应;(d)若接收到服务器对所有反复发出的第N-1次测试封包的响应,则计算自发出第N-1次测试封包至接收服务器响应所经过时间为周期时间;若未接收到服务器对所有反复发出的第N-1次测试封包的响应,则计算自发出第N-2次测试封包至接收服务器响应所经过时间为周期时间;以及(e)当电子装置切换为待机/休眠模式后,依据周期时间发送维持封包至服务器,以维持与服务器之间的连线状态。In another embodiment of the present invention, the method for maintaining connection of the present invention includes the following steps: (a) sending the Nth test packet to the server, and the Nth test packet requires the server to wait for an interval of N intervals before responding to the electronic device, where N is a positive integer; (b) judging whether the response sent by the server to the Nth test packet is received; (c) if the response sent by the server to the Nth test packet is received, repeat the step (a ); if the response sent by the server to the Nth test packet is not received, it will repeatedly send the N-1th test packet and judge whether it has received the response from the server to all the N-1th test packets; (d) If you receive the server's response to all the repeated N-1 test packets, calculate the time elapsed from sending the N-1 test packet to receiving the server's response as the cycle time; For the response of the N-1th test packet, the time elapsed from sending the N-2th test packet to receiving the server response is calculated as the cycle time; and (e) when the electronic device switches to the standby/sleep mode, according to the cycle time Time to send a maintenance packet to the server to maintain the connection status with the server.

通过本发明的设计,可以找出电子装置对服务器较为合适的封包发送周期,一方面能维持处于待机/休眠模式下的电子装置与服务器之间的连线状态,避免连线中断;另一方面则在被允许的状态下尽量拉长封包发送周期,以减少电子装置本身的资源耗费。Through the design of the present invention, it is possible to find a more suitable packet sending period for the electronic device to the server, on the one hand, it can maintain the connection state between the electronic device and the server in the standby/sleep mode, and avoid connection interruption; on the other hand, Then, the packet sending cycle is extended as much as possible in the allowed state, so as to reduce resource consumption of the electronic device itself.

附图说明Description of drawings

图1是本发明的各电子装置与服务器通过网络连线的示意图;Fig. 1 is the schematic diagram that each electronic device of the present invention and server are connected through network;

图2是本发明的电子装置的系统方框图;Fig. 2 is a system block diagram of the electronic device of the present invention;

图3是本发明的维持连线方法第一实施例的流程图;FIG. 3 is a flow chart of the first embodiment of the method for maintaining connection of the present invention;

图4是本发明的维持连线方法第二实施例的流程图。FIG. 4 is a flow chart of the second embodiment of the connection maintenance method of the present invention.

附图标记reference sign

10a:第一电子装置 10b:第二电子装置10a: First electronic device 10b: Second electronic device

11:系统模块 12:传输模块11: System module 12: Transmission module

13:测试模块 20:服务器13: Test Module 20: Server

30:网络 31:因特网30: Network 31: Internet

32:局域网络 A、B、C、D、E、F:路由器32: LAN A, B, C, D, E, F: Router

P1、P2:连线路径P1, P2: connection path

具体实施方式Detailed ways

为能了解本发明的技术内容,特举出较佳实施例说明如下。In order to understand the technical content of the present invention, the preferred embodiments are given and described as follows.

在本发明的一实施例中,电子装置可为计算机装置、可携式电子装置或其它具备网络连线功能的电子装置等,而服务器则为一般服务器主机或可提供服务器功能的类似装置,但本发明不以此为限。In one embodiment of the present invention, the electronic device can be a computer device, a portable electronic device, or other electronic devices with network connection functions, etc., and the server is a general server host or a similar device that can provide server functions, but The present invention is not limited thereto.

请参考图1是本发明的各电子装置与服务器20通过网络30连线的示意图。如图1所示,第一电子装置10a及第二电子装置10b通过网络30与服务器20进行连线,而在网络30环境中包括多个路由器(router)A~F,使得第一电子装置10a及第二电子装置10b依据其所在位置,分别通过不同的路由器形成与服务器20之间的连线路径。举例来说,第一电子装置10a可经由因特网31中的路由器A、D、F连线至服务器20,其构成连线路径P1;而第二电子装置10b可经由局域网络32中的路由器B、C及因特网31中的路由器E、F连线至服务器20,其构成不同的连线路径P2。Please refer to FIG. 1 , which is a schematic diagram of the connection between the electronic devices and the server 20 through the network 30 of the present invention. As shown in FIG. 1, the first electronic device 10a and the second electronic device 10b are connected to the server 20 through the network 30, and a plurality of routers (routers) A~F are included in the network 30 environment, so that the first electronic device 10a and the second electronic device 10b respectively form connection paths with the server 20 through different routers according to their locations. For example, the first electronic device 10a can be connected to the server 20 through the routers A, D, and F in the Internet 31, which constitute the connection path P1; and the second electronic device 10b can be connected to the server 20 through the routers B, C and the routers E and F in the Internet 31 are connected to the server 20, which constitute different connection paths P2.

请参考图2是本发明的第一电子装置10a或第二电子装置10b的系统方框图。如图2所示,本发明的第一电子装置10a或第二电子装置10b可包括系统模块11、传输模块12及测试模块13。系统模块11可为硬件、软件及固件的至少一者或其组合,例如系统模块11可为中央处理单元,或是中央处理单元与装置内操作系统的整合等,但本发明不以此为限。系统模块11可依据用户的指令或设定,切换第一电子装置10a或第二电子装置10b进入一般操作模式或待机/休眠模式等,并执行各项操作指令;而在待机/休眠模式下,系统模块11会持续产生一维持封包并通过传输模块12发送至服务器,以维持与服务器之间的连线状态。传输模块12则用以发送封包至服务器或接收自服务器响应的封包,此处传输模块12可为单一网络处理芯片或其与传输端口的组合。Please refer to FIG. 2 which is a system block diagram of the first electronic device 10a or the second electronic device 10b of the present invention. As shown in FIG. 2 , the first electronic device 10 a or the second electronic device 10 b of the present invention may include a system module 11 , a transmission module 12 and a test module 13 . The system module 11 can be at least one or a combination of hardware, software and firmware, for example, the system module 11 can be a central processing unit, or the integration of the central processing unit and the operating system in the device, etc., but the present invention is not limited thereto . The system module 11 can switch the first electronic device 10a or the second electronic device 10b into the normal operation mode or the standby/sleep mode according to the user's instruction or setting, and execute various operation commands; and in the standby/sleep mode, The system module 11 will continuously generate a maintenance packet and send it to the server through the transmission module 12 to maintain the connection status with the server. The transmission module 12 is used for sending a packet to the server or receiving a response packet from the server, where the transmission module 12 can be a single network processing chip or a combination of a transmission port.

测试模块13用以产生不同的测试封包,以通过传输模块12发送至服务器;且测试模块13根据服务器对各测试封包的响应与否进行判断处理,以动态决定前述维持封包的较佳发送周期。在本发明的一实施例中,测试模块13可为一应用程序,但其也可以结合硬件或固件来执行相同功能,不以本实施例为限。而前述测试封包可为一使用者数据流协议(userdatagram protocol,UDP)封包。The test module 13 is used to generate different test packets to be sent to the server through the transmission module 12; and the test module 13 judges whether the server responds to each test packet, so as to dynamically determine the optimal sending period of the aforementioned maintenance packets. In an embodiment of the present invention, the testing module 13 can be an application program, but it can also be combined with hardware or firmware to perform the same function, which is not limited to this embodiment. The aforementioned test packet may be a user datagram protocol (UDP) packet.

值得一提的是,对于需要通过网络存取器(Access Point,AP)连线至路由器的电子装置来说,电子装置除了要维持与该些路由器的连线状态外,电子装置另外需要维持与网络存取器之间的连线状态,以避免网络发生中断。网络存取器会不定期发送封包给与其连线的电子装置,而电子装置则依靠其本身的网络卡(例如前述的传输模块12)的驱动程序及固件来对应处理该些封包,响应给网络存取器,以维持电子装置与网络存取器之间的连线。在电子装置与网络存取器连线的前提下,电子装置才能发送前述测试封包,经该些路由器至服务器。由于维持电子装置与网络存取器之间连线的技术属于现有技术,在此不多加赘述。It is worth mentioning that, for electronic devices that need to be connected to routers through network access points (Access Points, APs), in addition to maintaining the connection status with these routers, the electronic devices also need to maintain a connection with the routers. The connection status between network accessors to avoid network interruption. The network access device will send packets to the electronic device connected to it from time to time, and the electronic device will rely on the driver and firmware of its own network card (such as the aforementioned transmission module 12) to process these packets and respond to the network The access device maintains the connection between the electronic device and the network access device. On the premise that the electronic device is connected to the network access device, the electronic device can send the test packet to the server through the routers. Since the technology of maintaining the connection between the electronic device and the network access device belongs to the prior art, it will not be repeated here.

以下请参考图3是本发明的维持连线方法第一实施例的流程图。须注意的是,以下虽配合图1及图2所示的第一电子装置10a及其与服务器20的连线路径P1为例说明本发明的维持连线方法,但本发明并不以适用于此为限,应根据电子装置的组成架构或其与服务器20的连线路径不同而有所变化。如图3所示,本发明的维持连线方法包括步骤S301至步骤S304。以下将详细说明该方法的各个步骤。Please refer to FIG. 3 , which is a flow chart of a first embodiment of the connection maintenance method of the present invention. It should be noted that, although the first electronic device 10a and its connection path P1 with the server 20 shown in FIGS. This is limited, and should be changed according to the structure of the electronic device or its connection path with the server 20 . As shown in FIG. 3 , the connection maintenance method of the present invention includes steps S301 to S304 . Each step of the method will be described in detail below.

步骤S301:发出一第N次测试封包至服务器20,其中第N次测试封包要求服务器20于等待N段间隔时间后再响应电子装置,且N为正整数。Step S301: Send an Nth test packet to the server 20, wherein the Nth test packet requires the server 20 to wait for N intervals before responding to the electronic device, and N is a positive integer.

当第一电子装置10a仍处于一般操作模式下,测试模块13可通过传输模块12发出一次到多次的测试封包至服务器20,其中第1次测试封包会要求服务器20于等待1段间隔时间后,再传送对第1次测试封包的响应给第一电子装置10a;此处间隔时间为测试模块13的默认值或由用户自行设定的时间值,其可为数秒至数十秒不等。当第一电子装置10a发送第2次测试封包时,第2次测试封包会要求服务器20于等待2段间隔时间(即间隔时间*2)后,再传送对第2次测试封包的响应给第一电子装置10a;之后对所发出的第N次测试封包则以此类推,要求服务器20于等待N段间隔时间后再响应第一电子装置10a,此处N为正整数。When the first electronic device 10a is still in the normal operation mode, the test module 13 can send one or more test packets to the server 20 through the transmission module 12, wherein the first test packet will require the server 20 to wait for an interval , and then transmit the response to the first test packet to the first electronic device 10a; here, the interval time is the default value of the test module 13 or the time value set by the user, which can range from several seconds to tens of seconds. When the first electronic device 10a sends the second test packet, the second test packet will require the server 20 to wait for 2 intervals (ie interval*2) before sending a response to the second test packet to the second An electronic device 10a; and so on for the sent Nth test packet, requiring the server 20 to wait for N intervals before responding to the first electronic device 10a, where N is a positive integer.

举例来说,假设已设定的间隔时间为5秒,则第一电子装置10a发出的第1次测试封包会要求服务器20在接到封包后,等待5秒间隔再发出对第1次测试封包的响应封包;若第一电子装置10a发出的第2次测试封包,则要求服务器20在接到封包后,等待10秒(即2段的5秒间隔)再发出对第2次测试封包的响应封包,以此类推。For example, assuming that the set interval time is 5 seconds, the first test packet sent by the first electronic device 10a will require the server 20 to wait for an interval of 5 seconds before sending the first test packet after receiving the packet. response packet; if the first electronic device 10a sends the second test packet, the server 20 is required to wait for 10 seconds (that is, two 5-second intervals) after receiving the packet, and then send a response to the second test packet packets, and so on.

步骤S302:判断是否接收到服务器20对第N次测试封包所发出的响应。Step S302: Determine whether the response sent by the server 20 to the Nth test packet is received.

理论上在第一电子装置10a与服务器20保持连线的状态下,服务器20会对第一电子装置10a的封包做出响应;若是第一电子装置10a与服务器20连线中断,服务器20所发出的响应封包将无法顺利传送至第一电子装置10a。因此,当第一电子装置10a的测试模块13发出第N次测试封包至服务器20后,测试模块13会针对该次测试封包判断是否接收到服务器20对该次测试封包所发出的响应,来决定其继续执行步骤。In theory, when the first electronic device 10a is connected to the server 20, the server 20 will respond to the packet of the first electronic device 10a; if the connection between the first electronic device 10a and the server 20 is interrupted, the server 20 will send The response packet of will not be successfully transmitted to the first electronic device 10a. Therefore, when the test module 13 of the first electronic device 10a sends the Nth test packet to the server 20, the test module 13 will determine whether the test packet has received the response sent by the server 20 to the test packet to determine It continues with the steps.

在本发明的一实施例中,测试模块13通过判断等待服务器20响应的时间是否超过一封包来回时间加上该次测试封包所对应的N段间隔时间的总和,作为判断是否接收到服务器20对第N次测试封包所发出的响应的标准,但本发明不以此为限。此处所谓封包来回时间,为自第一电子装置10a发送一封包至服务器20后,接收服务器20立即对封包做出响应的总时间;也即在未通知服务器20等待的状态下,第一电子装置10a自发送封包至接获对该封包的响应的来回总时间。而此封包来回时间加上该次测试封包所对应的N段间隔时间的总和,即为该次测试封包理论上自发出后至接收到对该次测试封包的响应的总时间。In one embodiment of the present invention, the test module 13 judges whether the response time of the server 20 exceeds the sum of the N section intervals corresponding to the round-trip time of a packet, as a result of judging whether the response from the server 20 is received. The standard of the response sent by the Nth test packet, but the present invention is not limited thereto. The so-called packet round-trip time here is the total time for the receiving server 20 to respond to the packet immediately after the first electronic device 10a sends a packet to the server 20; The total round-trip time from when the device 10a sends a packet to when it receives a response to the packet. The round-trip time of the packet plus the sum of the N intervals corresponding to the test packet is the theoretical total time from sending the test packet to receiving a response to the test packet.

若测试模块13接收到服务器20对该次测试封包所发出的响应,表示服务器20在等待该次测试封包所对应的N段间隔时间后,第一电子装置10a与服务器20之间仍可维持连线路径不中断,因此可考虑再增加等待的间隔时间,以找出最佳的保持连线的封包发送周期。此时测试模块13将回到步骤S301,进行下一次的测试封包的发送。If the test module 13 receives the response sent by the server 20 to the test packet, it means that the server 20 can still maintain the connection between the first electronic device 10a and the server 20 after waiting for the N intervals corresponding to the test packet. The line path is not interrupted, so consider increasing the waiting interval to find the best keep-alive packet sending cycle. At this time, the test module 13 will return to step S301 to send the next test packet.

步骤S303:计算自发出第N-1次测试封包至接收服务器20响应所经过时间为一周期时间。Step S303: Calculate the elapsed time from sending the N-1th test packet to receiving the response from the server 20 as a cycle time.

若测试模块13未能接收到服务器20对第N次测试封包所发出的响应,表示服务器20在等待该次测试封包所对应的N段间隔时间后,第一电子装置10a与服务器20之间的连线可能已中断,因此考虑回朔至前一次测试封包(即第N-1次测试封包),计算自第一电子装置10a发出第N-1次测试封包至接收服务器20响应所经过时间,并将其作为一周期时间。其中当N=1的状态下,若未接收到服务器对该第1次测试封包所发出的响应,则以一般状态下的前述封包来回时间为周期时间。If the test module 13 fails to receive the response sent by the server 20 to the Nth test packet, it means that the server 20 waits for the N segment interval time corresponding to the test packet, and the communication between the first electronic device 10a and the server 20 The connection may have been interrupted, so consider going back to the previous test packet (i.e. the N-1th test packet), and calculate the elapsed time from the first electronic device 10a sending the N-1th test packet to the receiving server 20’s response, and use it as a cycle time. Wherein, in the state of N=1, if no response from the server to the first test packet is received, the round-trip time of the aforementioned packet in the normal state is taken as the cycle time.

步骤S304:当电子装置切换为待机/休眠模式后,依据周期时间发送维持封包至服务器20,以维持与服务器20之间的连线状态。Step S304: After the electronic device switches to the standby/sleep mode, send a maintenance packet to the server 20 according to the cycle time, so as to maintain the connection state with the server 20 .

在决定周期时间后,测试模块13可通知系统模块11;而当第一电子装置10a切换为待机/休眠模式后,系统模块11会以此周期时间持续且定期地发送维持封包至服务器20,来保持与服务器20之间的连线状态。After the cycle time is determined, the test module 13 can notify the system module 11; and when the first electronic device 10a switches to the standby/sleep mode, the system module 11 will continue and periodically send maintenance packets to the server 20 at this cycle time to Keep connected with the server 20.

以下举出一实施方式说明如何应用本发明的维持连线方法的第一实施例。表1表示于图1中各路由器A~F关闭其通信端口的等待时间假设值;表2则表示第一电子装置10a应用本发明的维持连线方法第一实施例与服务器20进行连线状态测试的结果。An implementation is given below to describe how to apply the first embodiment of the connection maintenance method of the present invention. Table 1 shows the hypothetical value of the waiting time for each router A-F to close its communication port in FIG. 1; Table 2 shows the connection status between the first electronic device 10a and the server 20 by applying the first embodiment of the connection maintenance method of the present invention The result of the test.

表1Table 1

路由器router AA BB CC DD. EE. Ff 等待时间(秒)wait time (seconds) 5050 6060 9090 3232 4040 7070

表2(第一电子装置10a)Table 2 (first electronic device 10a)

如表1所示,各个路由器A~F会设定关闭其通信端口的等待时间。当路由器原本正在使用的通信端口,于超过所设定的等待时间后仍未有封包通过,路由器会自动关闭该通信端口以结束原本使用状态,使该通信端口得以供其他装置连线使用。由于各个路由器A~F的厂牌及规格设计有所差异,使得各路由器A~F具有不同的等待时间;而在现实状态下并无法确切得知各路由器A~F的等待时间,因此该些等待时间为假设值,不以表1所示为限。As shown in Table 1, each router A-F will set a waiting time for closing its communication port. When the communication port that the router is originally using has no packet passing through after the set waiting time, the router will automatically close the communication port to end the original use status, so that the communication port can be used by other devices for connection. Due to the differences in the brand and specification design of each router A~F, each router A~F has a different waiting time; in reality, it is impossible to know exactly the waiting time of each router A~F, so these The waiting time is a hypothetical value and is not limited to what is shown in Table 1.

如表2所示,此实施方式中,第一电子装置10a经由连线路径P1与服务器20进行连线,假设每段间隔时间为5秒,而因为前述封包来回时间通常非常短暂,在本实施方式中为方便说明,而假设封包来回时间为0秒,因此自第一电子装置10a发出第N次测试封包至接收服务器20响应该封包所经过时间,大致等于第N次测试封包所对应的N段间隔时间,但本发明不以此为限。As shown in Table 2, in this embodiment, the first electronic device 10a is connected to the server 20 via the connection path P1, assuming that each interval is 5 seconds, and because the aforementioned packet round-trip time is usually very short, in this embodiment In the method, for the convenience of explanation, it is assumed that the round-trip time of the packet is 0 seconds, so the elapsed time from the first electronic device 10a sending the Nth test packet to the receiving server 20 responding to the packet is roughly equal to the N time corresponding to the Nth test packet. interval, but the present invention is not limited thereto.

请一并参考图1、图2、表1及表2。当第一电子装置10a应用本发明的维持连线方法第一实施例时,首先第一电子装置10a会发送第1次测试封包至服务器20,此第1次测试封包要求服务器20等待5秒间隔时间后,再发送响应封包至第一电子装置10a;由于其间隔时间小于连线路径P1中各路由器A、D、F的等待时间,也即表示服务器20可顺利发送第1次测试封包的响应封包至第一电子装置10a,使得第一电子装置10a得以继续发送下个测试封包。而后续发送的第2~6次测试封包虽逐一累加5秒间隔时间,但直至第6次测试封包所对应的6段间隔时间(即30秒间隔时间)也小于各路由器A、D、F的等待时间,表示服务器20可顺利发送第2~6次测试封包的各响应封包至第一电子装置10a。Please refer to Figure 1, Figure 2, Table 1 and Table 2 together. When the first electronic device 10a applies the first embodiment of the method for maintaining connection of the present invention, first the first electronic device 10a will send the first test packet to the server 20, and the first test packet requires the server 20 to wait for an interval of 5 seconds After a time, send a response packet to the first electronic device 10a; since the interval time is less than the waiting time of each router A, D, and F in the connection path P1, it means that the server 20 can successfully send the response of the first test packet The packet is sent to the first electronic device 10a, so that the first electronic device 10a can continue to send the next test packet. Although the 2nd to 6th test packets sent subsequently add up the 5-second interval time one by one, the 6-segment interval time corresponding to the 6th test packet (that is, the 30-second interval time) is also shorter than the routers A, D, and F. The waiting time indicates that the server 20 can successfully send the response packets of the second to sixth test packets to the first electronic device 10a.

接着,当第一电子装置10a发送第7次测试封包至服务器20时,第7次测试封包要求服务器20等待的35秒间隔时间已大于连线路径P1中路由器D的30秒等待时间;使得服务器20发送第7次测试封包的响应封包至第一电子装置10a的过程中,因为路由器D连线至路由器A通信端口已被关闭导致连线中断,而无法顺利传送至第一电子装置10a。第一电子装置10a的测试模块13在判断未收到服务器20针对第7次测试封包所发送的响应封包后,得知此35秒间隔时间过长,因此测试模块13会回朔至前次第6次测试封包的状态,以自发出第6次测试封包至接收服务器20响应所经过时间(在本实施例中为30秒)为周期时间。之后当第一电子装置10a切换为待机/休眠模式后,系统模块11即以30秒为周期发送维持封包至服务器20,借以维持第一电子装置10a与服务器20之间的连线状态。Then, when the first electronic device 10a sent the 7th test packet to the server 20, the 35-second interval time that the 7th test packet required the server 20 to wait was greater than the 30-second wait time of the router D in the connection path P1; so that the server 20. During the process of sending the response packet of the seventh test packet to the first electronic device 10a, because the communication port of the router D connected to the router A has been closed and the connection is interrupted, it cannot be successfully transmitted to the first electronic device 10a. After the test module 13 of the first electronic device 10a judges that it has not received the response packet sent by the server 20 for the 7th test packet, it knows that the 35-second interval is too long, so the test module 13 will go back to the previous 6th test packet. The status of the second test packet is taken as the cycle time from sending the sixth test packet to receiving the response from the server 20 (30 seconds in this embodiment). Then when the first electronic device 10a switches to the standby/sleep mode, the system module 11 sends a maintenance packet to the server 20 every 30 seconds to maintain the connection status between the first electronic device 10a and the server 20 .

请参考图4是本发明的维持连线方法第二实施例的流程图。须注意的是,以下虽配合图1及图2所示的电子装置10b及其与服务器20的连线路径P2为例说明本发明的维持连线方法,但本发明并不以适用于此为限,应根据电子装置的组成架构或其与服务器20的连线路径不同而有所变化。如图4所示,本发明的维持连线方法第二实施例包括步骤S401至步骤S406,其中步骤S401、S402与前述第一实施例的步骤S301、S302相同,将不多做赘述。以下将详细说明该方法新增的各个步骤。Please refer to FIG. 4 , which is a flow chart of a second embodiment of the connection maintenance method of the present invention. It should be noted that although the electronic device 10b and its connection path P2 with the server 20 shown in FIGS. The limit should be changed according to the structure of the electronic device or its connection path with the server 20 . As shown in FIG. 4 , the second embodiment of the method for maintaining connection of the present invention includes steps S401 to S406 , wherein steps S401 and S402 are the same as steps S301 and S302 of the first embodiment, and will not be repeated here. Each newly added step of the method will be described in detail below.

步骤S401:发出一第N次测试封包至服务器20,其中第N次测试封包要求服务器20于等待N段间隔时间后再响应电子装置10b,且N为正整数。Step S401: Send an Nth test packet to the server 20, wherein the Nth test packet requires the server 20 to wait for N intervals before responding to the electronic device 10b, and N is a positive integer.

步骤S402:判断是否接收到服务器20对第N次测试封包所发出的响应。Step S402: Determine whether the response sent by the server 20 to the Nth test packet is received.

若测试模块13接收到服务器20对该次测试封包所发出的响应,此时测试模块13将回到步骤S401,进行下一次的测试封包的发送。If the test module 13 receives the response sent by the server 20 to the test packet, the test module 13 will return to step S401 to send the next test packet.

步骤S403:反复发出第N-1次测试封包至服务器20。Step S403 : Repeatedly send the N-1th test packet to the server 20 .

若测试模块13未能接收到服务器20对第N次测试封包所发出的响应,表示服务器20在等待该次测试封包所对应的N段间隔时间后,第二电子装置10b与服务器20之间的连线可能已中断,因此考虑回朔至前一次测试封包(即第N-1次测试封包)。而为避免自发送第N-1次测试封包至服务器响应该封包的所经过时间可能相近于某路由器的等待时间,造成连线状态不稳定,此时仅凭单次测试可能无法反映现状;因此测试模块13会反复发出多次的第N-1次测试封包至接收服务器20。在本实施例中,测试模块13会反复发出至少3次第N-1次测试封包至服务器20,其次数随设计需要而加以调整。If the test module 13 fails to receive the response sent by the server 20 to the Nth test packet, it means that the server 20 waits for the N interval corresponding to the test packet, and the second electronic device 10b and the server 20 The connection may have been broken, so consider going back to the previous test packet (ie, the N-1th test packet). In order to avoid that the elapsed time from sending the N-1th test packet to the server responding to the packet may be close to the waiting time of a certain router, resulting in unstable connection status, at this time only a single test may not be able to reflect the status quo; therefore, the test The module 13 will repeatedly send the N-1th test packet to the receiving server 20 for multiple times. In this embodiment, the test module 13 will repeatedly send the N-1th test packet to the server 20 at least 3 times, and the number of times can be adjusted according to design needs.

步骤S404:判断是否接收到服务器20对所有第N-1次测试封包所发出的响应。Step S404: Determine whether the responses sent by the server 20 to all the N-1th test packets are received.

测试模块13反复发出第N-1次测试封包至接收服务器20后,会判断是否接收到服务器20对所有第N-1次测试封包所发出的响应。若测试模块13确认每次发出的第N-1次测试封包均会收到响应,则进行步骤S405;若测试模块13确认并非每次发出的第N-1次测试封包均会收到响应,则进行步骤S406。After the test module 13 repeatedly sends the N-1th test packets to the receiving server 20, it will determine whether the server 20 has received the responses sent by the server 20 to all the N-1th test packets. If the test module 13 confirms that the N-1th test packet sent each time will receive a response, then proceed to step S405; if the test module 13 confirms that the N-1th test packet sent each time will not receive a response, Then go to step S406.

步骤S405:计算自发出第N-1次测试封包至接收服务器20响应所经过时间为一周期时间。Step S405: Calculate the elapsed time from sending the N-1th test packet to receiving the response from the server 20 as a cycle time.

若测试模块13接收到服务器20对所有发出的多次第N-1次测试封包的响应,表示服务器20自第二电子装置10b发出第N-1次测试封包至接收服务器20响应所经过时间应小于各路由器的等待时间,即此状态下连线稳定,因此计算自第一电子装置10a发出第N-1次测试封包至接收服务器20响应所经过时间,并将其作为周期时间。If the test module 13 receives the response from the server 20 to all the N-1th test packets sent by the server 20, it means that the server 20 sends the N-1th test packet from the second electronic device 10b to the server 20. The elapsed time should be less than The waiting time of each router, that is, the connection is stable in this state, so calculate the elapsed time from the first electronic device 10a sending the N-1th test packet to receiving the response from the server 20, and use it as the cycle time.

步骤S406:计算前次自发出该第N-2次测试封包至接收该服务器响应所经过时间为一周期时间。Step S406: Calculate the elapsed time from sending the N-2th test packet to receiving the server response last time as a cycle time.

若测试模块13未能接收到服务器20对所有发出的第N-1次测试封包的响应,表示第N-1次测试封包所对应的N-1段间隔时间可能与某路由器的等待时间相近;在网络传输处理有所延迟的状态下,其所造成的时间误差加上N-1段间隔时间会大于某路由器的等待时间,将使得第二电子装置10b与服务器20之间的连线中断,连线状态也相对不稳定。因此测试模块13考虑再回朔至更前一次测试封包(即第N-2次测试封包),计算自第二电子装置10b发出第N-2次测试封包至接收服务器20响应所经过时间,并将其作为周期时间。If the test module 13 fails to receive the response of the server 20 to all the N-1 test packets sent, it means that the N-1 section interval time corresponding to the N-1 test packet may be close to the waiting time of a certain router; In the state where the network transmission processing is delayed, the time error caused by it plus the N-1 interval time will be greater than the waiting time of a certain router, which will cause the connection between the second electronic device 10b and the server 20 to be interrupted, The connection status is also relatively unstable. Therefore, the test module 13 considers going back to the previous test packet (i.e. the N-2th test packet), calculates the elapsed time from the second electronic device 10b sending the N-2th test packet to the receiving server 20 response, and Use it as cycle time.

于步骤S405或步骤S406后还包括步骤S407:当电子装置切换为待机/休眠模式后,依据周期时间发送维持封包至服务器20,以维持与服务器20之间的连线状态。Step S407 is also included after step S405 or step S406: when the electronic device switches to the standby/sleep mode, send a maintenance packet to the server 20 according to the cycle time, so as to maintain the connection state with the server 20 .

在决定周期时间后,测试模块13可通知系统模块11,当第二电子装置10b切换为待机/休眠模式后,会以步骤S405或步骤S406所计算的周期时间持续且定期地发送维持封包至服务器20,来保持与服务器20之间的连线状态。After the cycle time is determined, the test module 13 can notify the system module 11 that when the second electronic device 10b switches to the standby/sleep mode, it will continue and regularly send maintenance packets to the server with the cycle time calculated in step S405 or step S406 20, to keep the connection state with the server 20.

以下举出另一实施方式说明如何应用本发明的维持连线方法的第二实施例。表3表示第二电子装置10b应用本发明的维持连线方法第二实施例与服务器20进行连线状态测试的结果。Hereinafter, another implementation mode is given to illustrate how to apply the second embodiment of the method for maintaining connection of the present invention. Table 3 shows the results of the connection status test performed by the second electronic device 10b and the server 20 by applying the second embodiment of the connection maintenance method of the present invention.

表3(第二电子装置10b)Table 3 (second electronic device 10b)

如表3所示,此实施方式中,第二电子装置10b经由连线路径P2与服务器20进行连线,假设每段间隔时间为5秒,而因为前述封包来回时间通常非常短暂,在本实施方式中为方便说明,而假设封包来回时间为0秒,因此自第二电子装置10b发出第N次测试封包至接收服务器20响应该封包所经过时间,大致等于第N次测试封包所对应的N段间隔时间,但本发明不以此为限。As shown in Table 3, in this embodiment, the second electronic device 10b is connected to the server 20 via the connection path P2, assuming that each interval is 5 seconds, and because the aforementioned packet round-trip time is usually very short, in this embodiment In the method, for the convenience of explanation, it is assumed that the round-trip time of the packet is 0 seconds, so the elapsed time from the second electronic device 10b sending the Nth test packet to the receiving server 20 responding to the packet is roughly equal to the Nth time corresponding to the Nth test packet. interval, but the present invention is not limited thereto.

请一并参考图1、图2、表1及表3。当第二电子装置10b应用本发明的维持连线方法第一实施例时,首先第二电子装置10b会发送第1次测试封包至服务器20,此第1次测试封包要求服务器20等待5秒间隔时间后,再发送响应封包至第二电子装置10b;由于其间隔时间小于连线路径P1中各路由器B、C、E、F的等待时间,也即表示服务器20可顺利发送第1次测试封包的响应封包至第二电子装置10b,使得第二电子装置10b得以继续发送下个测试封包。而后续发送的第2~7次测试封包虽逐一累加5秒间隔时间,但直至第7次测试封包所对应的7段间隔时间(即35秒间隔时间)也小于各路由器B、C、E、F的等待时间,表示服务器20可顺利发送第2~7次测试封包的各响应封包至第二电子装置10b。Please refer to Figure 1, Figure 2, Table 1 and Table 3 together. When the second electronic device 10b uses the first embodiment of the method for maintaining connection of the present invention, first the second electronic device 10b will send the first test packet to the server 20, and the first test packet requires the server 20 to wait for an interval of 5 seconds After a certain time, send a response packet to the second electronic device 10b; since the interval time is less than the waiting time of each router B, C, E, and F in the connection path P1, it means that the server 20 can successfully send the first test packet The response packet is sent to the second electronic device 10b, so that the second electronic device 10b can continue to send the next test packet. Although the 2nd to 7th test packets sent subsequently add up the 5-second interval time one by one, the 7-segment interval time corresponding to the 7th test packet (that is, the 35-second interval time) is also shorter than the routers B, C, E, The waiting time of F indicates that the server 20 can successfully send the response packets of the second to seventh test packets to the second electronic device 10b.

接着,当第二电子装置10b发送第8次测试封包至服务器20时,第8次测试封包要求服务器20等待的40秒间隔时间约等于连线路径P2中路由器E的40秒等待时间。当服务器20发送第8次测试封包的响应封包至第二电子装置10b的过程中,若是网络状态稳定,则仍可能在路由器E的通信端口关闭前完成响应封包的传送,此时第二电子装置10b可继续进行第9次测试封包的发送;若网络状态不稳定而造成传输延迟,路由器E的通信端口可能会先被关闭导致连线中断,而响应封包无法顺利传送至第二电子装置10b,此时即如同前述第一实施例的方式,回朔至前次第7次测试封包,而以自发出第7次测试封包至接收服务器20响应所经过时间为周期时间。在本实施例中,暂且认定网络状态相对稳定,使得第二电子装置10b可继续进行第9次测试封包的发送。Next, when the second electronic device 10b sends the eighth test packet to the server 20, the eighth test packet requires the server 20 to wait for an interval of 40 seconds approximately equal to the 40-second waiting time of the router E in the connection path P2. When the server 20 sends the response packet of the eighth test packet to the second electronic device 10b, if the network status is stable, it is still possible to complete the transmission of the response packet before the communication port of the router E is closed. At this time, the second electronic device 10b can continue to send the ninth test packet; if the network status is unstable and the transmission delay is caused, the communication port of the router E may be closed first and the connection is interrupted, and the response packet cannot be successfully transmitted to the second electronic device 10b. At this time, it is the same as the method of the aforementioned first embodiment, going back to the previous 7th test packet, and taking the elapsed time from sending the 7th test packet to receiving the response from the server 20 as the cycle time. In this embodiment, it is temporarily assumed that the network status is relatively stable, so that the second electronic device 10b can continue to send the ninth test packet.

当第二电子装置10b发送第9次测试封包至服务器20时,第9次测试封包要求服务器20等待的45秒间隔时间已大于连线路径P2中路由器E的40秒等待时间;使得服务器20发送第9次测试封包的响应封包至第二电子装置10b的过程中,因为路由器E连线至路由器C的通信端口已被关闭导致连线中断,而无法顺利传送至第二电子装置10b。第二电子装置10b的测试模块13在判断未收到服务器20针对第9次测试封包所发送的响应封包后,判断此45秒间隔时间过长,因此测试模块13会回朔至前次第8次测试封包的状态。When the second electronic device 10b sent the ninth test packet to the server 20, the ninth test packet required the server 20 to wait for an interval of 45 seconds greater than the 40-second waiting time of the router E in the connection path P2; so that the server 20 sent During the process of sending the response packet of the ninth test packet to the second electronic device 10b, because the communication port of the router E connected to the router C has been closed and the connection is interrupted, it cannot be successfully transmitted to the second electronic device 10b. After the test module 13 of the second electronic device 10b judges that the response packet sent by the server 20 for the 9th test packet has not been received, it judges that the 45-second interval is too long, so the test module 13 will go back to the previous 8th test packet. The status of the test packet.

但在本实施例中,为了确保第二电子装置10b能正常接收到响应封包(即第二电子装置10b与服务器20之间连线稳定不中断),因此测试模块13会反复发送至少3次的第8次测试封包。假设第二电子装置10b能接收到所有发出的第8次测试封包的响应封包,即表示所对应的8段间隔时间(即40秒间隔时间)是适当的,因此第二电子装置10b能以自发出第8次测试封包至接收服务器20响应所经过时间(在本实施例中为40秒)为周期时间。However, in this embodiment, in order to ensure that the second electronic device 10b can normally receive the response packet (that is, the connection between the second electronic device 10b and the server 20 is stable and uninterrupted), the test module 13 will repeatedly send at least three times The 8th test packet. Assuming that the second electronic device 10b can receive all the response packets of the eighth test packet sent, it means that the corresponding 8 intervals (that is, the interval of 40 seconds) are appropriate, so the second electronic device 10b can automatically The elapsed time (40 seconds in this embodiment) from sending the eighth test packet to receiving the response from the server 20 is the cycle time.

若假设第二电子装置10b未接收到所有发出的第8次测试封包的响应封包,即表示自发出第8次测试封包至接收服务器20响应所经过时间,可能仍会大于路由器等待时间而造成连线中断,因此第二电子装置10b会再回朔至前次第7次测试封包,而以自发出第7次测试封包至接收服务器20响应所经过时间(在本实施例中为35秒)为周期时间。If it is assumed that the second electronic device 10b has not received all the response packets sent by the eighth test packet, it means that the elapsed time from sending the eighth test packet to receiving the response from the server 20 may still be greater than the waiting time of the router. The line is interrupted, so the second electronic device 10b will go back to the previous 7th test packet, and take the elapsed time (35 seconds in this embodiment) from sending the 7th test packet to receiving the response from the server 20 as the cycle time.

通过本发明的设计,使得电子装置在最大许可范围内,找出较适当的周期时间,于切换至待机/休眠模式后定期发送维持封包至连线服务器,以维持与服务器之间的连线状态;如此在有需要时,服务器即可通过网络随时自远程唤醒电子装置,以进行数据的存取等操作。同时本发明的设计也可大幅减少封包传送次数,以节省电子装置的资源消耗。Through the design of the present invention, the electronic device finds a more appropriate cycle time within the maximum allowable range, and periodically sends maintenance packets to the connection server after switching to the standby/sleep mode, so as to maintain the connection state with the server In this way, when necessary, the server can remotely wake up the electronic device at any time through the network to perform operations such as data access. At the same time, the design of the present invention can greatly reduce the times of packet transmission, so as to save resource consumption of the electronic device.

当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求书的保护范围。Certainly, the present invention also can have other multiple embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and deformations according to the present invention, but these corresponding Changes and deformations should all belong to the scope of protection of the appended claims of the present invention.

Claims (9)

1. one kind maintains bus connection method, for maintaining the connection state between an electronic installation and a server, it is characterised in that This method comprises the following steps:
(a) sending a n-th test packets to the server, wherein n-th test packets requires the server in wait N sections The electronic installation is responded after interval time again, and N is positive integer;
(b) judge whether to receive the response that the server sends the n-th test packets;
If the response that the server is sent to the n-th test packets (c) is received, repeat step (a);If do not receive The response that the server is sent to the n-th test packets, then calculate previous from the N-1 times test packets are sent to reception The server responds institute's elapsed time to be directly set as a cycle time;And
(d) after the electronic installation switches to a standby/park mode, send one according to the cycle time and maintain package to the clothes Business device, to maintain the connection state between the server.
2. maintenance bus connection method according to claim 1, it is characterised in that judge to wait the server in step (b) Whether the time of response adds the summation of N section interval times more than a package turnaround time, and the package turnaround time is from the electricity After sub-device sends a package to the server, the total time that the server responds to the package immediately is received.
3. maintenance bus connection method according to claim 2, it is characterised in that in the state of N=1, if not receiving this The response that server is sent to the 1st test packets, then using the package turnaround time as a cycle time.
4. maintenance bus connection method according to claim 1, it is characterised in that the interval time is 5~20 seconds.
5. one kind maintains bus connection method, for maintaining the connection state between an electronic installation and a server, it is characterised in that This method comprises the following steps:
(a) sending a n-th test packets to the server, wherein n-th test packets requires the server in wait N sections The electronic installation is responded after interval time again, and N is positive integer;
(b) judge whether to receive the response that the server sends the n-th test packets;
If the response that the server is sent to the n-th test packets (c) is received, repeat step (a);If do not receive The response that the server is sent to the n-th test packets, then the N-1 times test packets are sent repeatedly and judge whether to connect Receive the response that the server is sent to all the N-1 times test packets;
If (d) receiving response of the server to all the N-1 times test packets sent repeatedly, calculate and send this certainly The N-1 times test packets is a cycle time to server response institute's elapsed time is received;If the server pair is not received The response of all the N-1 times test packets sent repeatedly, then calculate previous from the N-2 times test packets are sent to reception The server responds institute's elapsed time to be directly set as a cycle time;And
(e) after the electronic installation switches to a standby/park mode, send one according to the cycle time and maintain package to the clothes Business device, to maintain the connection state between the server.
6. maintenance bus connection method according to claim 5, it is characterised in that at least 3 N- are sent in step (c) 1 test packets is to the server.
7. maintenance bus connection method according to claim 5, it is characterised in that judge to wait the server in step (b) Whether the time of response exceedes responds the envelope from the electronic installation one package of transmission in the case of not postponing to the server is received One turnaround time of bag, plus the summation of N section interval times.
8. maintenance bus connection method according to claim 7, it is characterised in that in the state of N=1, if not receiving this The response that server is sent to the 1st test packets, then using the turnaround time as a cycle time.
9. maintenance bus connection method according to claim 5, it is characterised in that the interval time is 5~20 seconds.
CN201310112126.3A 2013-04-02 2013-04-02 Connection maintaining method Expired - Fee Related CN104104647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310112126.3A CN104104647B (en) 2013-04-02 2013-04-02 Connection maintaining method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310112126.3A CN104104647B (en) 2013-04-02 2013-04-02 Connection maintaining method

Publications (2)

Publication Number Publication Date
CN104104647A CN104104647A (en) 2014-10-15
CN104104647B true CN104104647B (en) 2018-02-06

Family

ID=51672450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310112126.3A Expired - Fee Related CN104104647B (en) 2013-04-02 2013-04-02 Connection maintaining method

Country Status (1)

Country Link
CN (1) CN104104647B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI644235B (en) * 2017-04-13 2018-12-11 國立政治大學 Wearable instant interaction system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212175B1 (en) * 1997-04-22 2001-04-03 Telxon Corporation Method to sustain TCP connection
CN101459871A (en) * 2007-12-14 2009-06-17 华为技术有限公司 Method, system and apparatus for paging periodic synchronization of access terminal and access network
CN102246469A (en) * 2008-12-15 2011-11-16 日本电气株式会社 Data transfer device
US8396950B1 (en) * 2000-03-02 2013-03-12 Rockstar Consortium Us Lp Method and apparatus for the fast detection of connectivity loss between devices in a network

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI266502B (en) * 2004-12-14 2006-11-11 Inst Information Industry Method for automatically detecting the disconnection time in network address and port translation environment
CN100433660C (en) * 2006-09-30 2008-11-12 杭州华三通信技术有限公司 Method and equipment for realizing fast detection
US7693084B2 (en) * 2007-02-28 2010-04-06 Microsoft Corporation Concurrent connection testing for computation of NAT timeout period
EP2223509A1 (en) * 2007-12-20 2010-09-01 Telefonaktiebolaget LM Ericsson (publ) Method and arrangement to maintain a tcp connection
US9516116B2 (en) * 2008-06-06 2016-12-06 Apple Inc. Managing notification service connections
US8375134B2 (en) * 2009-06-08 2013-02-12 Microsoft Corporation Determining an efficient keep-alive interval for a network connection
US8065419B2 (en) * 2009-06-23 2011-11-22 Core Wireless Licensing S.A.R.L. Method and apparatus for a keep alive probe service
US8566625B2 (en) * 2011-07-01 2013-10-22 Intel Corporation System and method for determining transmitting frequency to maintain remote application server connectivity
US8892710B2 (en) * 2011-09-09 2014-11-18 Microsoft Corporation Keep alive management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212175B1 (en) * 1997-04-22 2001-04-03 Telxon Corporation Method to sustain TCP connection
US8396950B1 (en) * 2000-03-02 2013-03-12 Rockstar Consortium Us Lp Method and apparatus for the fast detection of connectivity loss between devices in a network
CN101459871A (en) * 2007-12-14 2009-06-17 华为技术有限公司 Method, system and apparatus for paging periodic synchronization of access terminal and access network
CN102246469A (en) * 2008-12-15 2011-11-16 日本电气株式会社 Data transfer device

Also Published As

Publication number Publication date
CN104104647A (en) 2014-10-15

Similar Documents

Publication Publication Date Title
US7779282B2 (en) Maintaining network connectivity while operating in low power mode
US20110029659A1 (en) Method and System for Network Proxy Services for Energy Efficient Networking
US10313247B2 (en) System, method, and device for network load balance processing
US9819640B2 (en) Method for keeping remote connection, electronic device and server
CN102164044A (en) Networking method and system
CN105868133B (en) A kind of serial ports remote centralized management method for more node mainboards
US12041688B2 (en) Screen projection method and system
CN106612340A (en) Method for penetrating network position converter and communication device
US9489281B2 (en) Access point group controller failure notification system
TWI483603B (en) Method of keeping connection and electronic apparatus using the same
CN105338131B (en) The test method and system of a kind of Dynamic Host Configuration Protocol server address tankage
US10148516B2 (en) Inter-networking device link provisioning system
CN104104647B (en) Connection maintaining method
KR20110046287A (en) Energy-Efficient Ethernet Link Transition with Zero Packet Loss with Driver Fast Failover
US20230280812A1 (en) Power management device, power management system, power management method, and power management program
CN116866233A (en) Heartbeat detection method and device, electronic equipment and server
US9634987B2 (en) Obtaining a MAC address from an external source
US10277700B2 (en) Control plane redundancy system
CN101510901B (en) Communication method, communication apparatus and system between distributed equipment
US11163349B2 (en) Adaptive power over ethernet powering system
CN103069361B (en) Personal computer system and operational approach thereof for mobile phone users
CN102316136A (en) A Load Balancing Method for Dual Controller System
US20210099379A1 (en) Protocol independent multicast designated networking device election system
CN104822151A (en) Wireless network expansion method
TWI535249B (en) Automate the way to extend the network cache system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180206

CF01 Termination of patent right due to non-payment of annual fee