JP6025624B2 - Terminal device and keep-alive control system - Google Patents

Terminal device and keep-alive control system Download PDF

Info

Publication number
JP6025624B2
JP6025624B2 JP2013052243A JP2013052243A JP6025624B2 JP 6025624 B2 JP6025624 B2 JP 6025624B2 JP 2013052243 A JP2013052243 A JP 2013052243A JP 2013052243 A JP2013052243 A JP 2013052243A JP 6025624 B2 JP6025624 B2 JP 6025624B2
Authority
JP
Japan
Prior art keywords
keep
alive
connection
packet
terminal
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.)
Active
Application number
JP2013052243A
Other languages
Japanese (ja)
Other versions
JP2014179787A (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.)
KDDI Corp
Original Assignee
KDDI Corp
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 KDDI Corp filed Critical KDDI Corp
Priority to JP2013052243A priority Critical patent/JP6025624B2/en
Publication of JP2014179787A publication Critical patent/JP2014179787A/en
Application granted granted Critical
Publication of JP6025624B2 publication Critical patent/JP6025624B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Description

本発明は、端末装置、およびKeep-Alive制御システムに関する。
The present invention relates to a terminal device and a keep-alive control system.

従来、端末のアプリケーションがサーバに対してコネクションを確立し通信する場合、アプリケーションとサーバ間のコネクションを維持するために、キープアライブ(Keep-Alive)パケットを定期的にサーバへ送信するアプリケーションが存在する。また、そのようなアプリケーションが端末に複数存在する場合に、各アプリケーションが個々にKeep-Aliveパケットを送信しなくても済むようにする従来技術が知られている(例えば、非特許文献1,2参照)。非特許文献1,2の従来技術によれば、端末内の複数のアプリケーションに対して一つのTCP(Transmission Control Protocol)コネクションを確立しておけばよいので、各アプリケーションが個々にTCPコネクションを確立する場合に比してKeep-Aliveパケットの送信のための通信機会を減らすことができる。   Conventionally, when a terminal application establishes a connection to a server and communicates, there is an application that periodically sends a keep-alive packet to the server in order to maintain the connection between the application and the server. . In addition, when there are a plurality of such applications in a terminal, there is known a conventional technique that does not require each application to individually send a Keep-Alive packet (for example, Non-Patent Documents 1 and 2). reference). According to the prior arts of Non-Patent Documents 1 and 2, it is only necessary to establish one TCP (Transmission Control Protocol) connection for a plurality of applications in the terminal, so each application establishes a TCP connection individually. Compared to the case, the communication opportunity for transmitting the Keep-Alive packet can be reduced.

Google Cloud Messaging for Android,<URL:http://developer.android.com/guide/google/gcm/index.html>Google Cloud Messaging for Android, <URL: http://developer.android.com/guide/google/gcm/index.html> Apple Push Notification Service,<URL:http://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html>Apple Push Notification Service, <URL: http://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html>

しかし、上述した従来技術では、Keep-Aliveパケットを送信するための端末の負荷や消費電力の低減が課題である。   However, in the above-described conventional technology, there is a problem of reducing the load and power consumption of the terminal for transmitting the Keep-Alive packet.

本発明は、このような事情を考慮してなされたもので、Keep-Aliveパケットを送信するための端末の負荷や消費電力の低減を図ることを課題とする。   The present invention has been made in view of such circumstances, and it is an object of the present invention to reduce the load and power consumption of a terminal for transmitting a Keep-Alive packet.

(1)上記の課題を解決するために、本発明に係るKeep-Aliveパケット送信装置は、端末装置と、通信ネットワークを介して前記端末装置にデータ伝送されるサーバ装置との間で確立されたコネクションのKeep-Aliveパケットを送信するKeep-Aliveパケット送信装置であり、前記端末装置までは届かないように転送制限された前記コネクションのKeep-Aliveパケットを送信するKeep-Aliveパケット送信部を備えたことを特徴とする。 (1) In order to solve the above-described problem, a keep-alive packet transmitting apparatus according to the present invention is established between a terminal apparatus and a server apparatus that transmits data to the terminal apparatus via a communication network. A keep-alive packet transmitter that transmits a keep-alive packet of a connection, and includes a keep-alive packet transmitter that transmits the keep-alive packet of the connection that is transfer-restricted so as not to reach the terminal device It is characterized by that.

(2)本発明に係るKeep-Aliveパケット送信装置において、前記コネクションのKeep-Aliveパケットは、前記サーバ装置から前記端末装置の直前のネットワーク機器までのパケット有効期間を有することを特徴とする。 (2) In the keep-alive packet transmitter according to the present invention, the keep-alive packet of the connection has a packet valid period from the server device to the network device immediately before the terminal device.

(3)本発明に係るKeep-Aliveパケット送信装置において、前記コネクションのKeep-Aliveパケットは、前記サーバ装置から、前記端末装置が接続する無線基地局装置の直前のネットワーク機器までのパケット有効期間を有することを特徴とする。 (3) In the keep-alive packet transmitting device according to the present invention, the keep-alive packet of the connection has a packet valid period from the server device to a network device immediately before the radio base station device to which the terminal device is connected. It is characterized by having.

(4)本発明に係るKeep-Aliveパケット送信装置においては、前記パケット有効期間に対応するネットワーク距離を測定するネットワーク距離測定部と、前記ネットワーク距離の測定値と当該測定時の前記端末装置の前記通信ネットワーク上の位置を示す測定情報とを関連付けて記憶するネットワーク距離記憶部と、前記ネットワーク距離記憶部に記憶されている測定情報の位置と同じ位置に在る端末装置と前記サーバ装置との間で確立されたコネクションのKeep-Aliveパケットに設定されるパケット有効期間を、該測定情報に関連付けられているネットワーク距離の測定値に基づいて決定するKeep-Alive制御部と、を備えたことを特徴とする。 (4) In the keep-alive packet transmitting apparatus according to the present invention, a network distance measuring unit that measures a network distance corresponding to the packet validity period, a measured value of the network distance, and the terminal device at the time of the measurement A network distance storage unit that associates and stores measurement information indicating a position on a communication network, and between the terminal device and the server device that are at the same position as the position of the measurement information stored in the network distance storage unit A keep-alive control unit that determines a packet valid period set in a keep-alive packet of the connection established in step 1 based on a measured value of the network distance associated with the measurement information. And

(5)本発明に係るKeep-Aliveパケット送信装置においては、前記コネクションの確立の際に、前記端末装置に対して、前記コネクションのKeep-Aliveパケットを前記サーバ装置から送信することを通知するKeep-Alive実行通知部を備えたことを特徴とする。 (5) In the keep-alive packet transmitting apparatus according to the present invention, when the connection is established, the terminal apparatus is notified that the keep-alive packet of the connection is transmitted from the server apparatus. -Alive execution notification unit is provided.

(6)本発明に係る端末装置は、通信ネットワークを介してデータ伝送されるサーバ装置との間で確立されたコネクションのKeep-Aliveパケットを送信するアプリケーションを有する端末装置において、前記コネクションの確立の際に前記コネクションのKeep-Aliveパケットを前記サーバ装置から送信することの通知を受信すると、前記アプリケーションに対して前記コネクションのKeep-Aliveパケットの送信停止を指示するKeep-Alive制御部を備えたことを特徴とする。 (6) A terminal device according to the present invention is a terminal device having an application that transmits a Keep-Alive packet of a connection established with a server device that transmits data via a communication network. When receiving a notification of transmitting the Keep-Alive packet of the connection from the server device, a Keep-Alive control unit is provided to instruct the application to stop transmitting the Keep-Alive packet of the connection. It is characterized by.

(7)本発明に係るKeep-Alive制御システムは、前述の(5)に記載のKeep-Aliveパケット送信装置と、前述の(6)に記載の端末装置とを有する。 (7) The Keep-Alive control system according to the present invention includes the Keep-Alive packet transmitter described in (5) above and the terminal device described in (6) above.

(8)本発明に係るKeep-Aliveパケット送信方法は、端末装置と、通信ネットワークを介して前記端末装置にデータ伝送されるサーバ装置との間で確立されたコネクションのKeep-Aliveパケットを送信するKeep-Aliveパケット送信方法であり、前記端末装置までは届かないように転送制限された前記コネクションのKeep-Aliveパケットを送信するKeep-Aliveパケット送信ステップを含むことを特徴とする。 (8) A keep-alive packet transmission method according to the present invention transmits a keep-alive packet of a connection established between a terminal device and a server device that transmits data to the terminal device via a communication network. This is a Keep-Alive packet transmission method, and includes a Keep-Alive packet transmission step of transmitting a Keep-Alive packet of the connection whose transfer is restricted so as not to reach the terminal device.

(9)本発明に係るコンピュータプログラムは、端末装置と、通信ネットワークを介して前記端末装置にデータ伝送されるサーバ装置との間で確立されたコネクションのKeep-Aliveパケットを送信するKeep-Aliveパケット送信処理を行うためのコンピュータプログラムであって、前記端末装置までは届かないように転送制限された前記コネクションのKeep-Aliveパケットを送信するKeep-Aliveパケット送信ステップをコンピュータに実行させるためのコンピュータプログラムであることを特徴とする。 (9) A computer program according to the present invention transmits a keep-alive packet for a connection established between a terminal device and a server device that transmits data to the terminal device via a communication network. A computer program for performing a transmission process, and causing a computer to execute a keep-alive packet transmission step for transmitting a keep-alive packet of the connection that is transfer-restricted so as not to reach the terminal device. It is characterized by being.

本発明によれば、Keep-Aliveパケットを送信するための端末の負荷や消費電力の低減を図ることができる。   According to the present invention, it is possible to reduce the load and power consumption of a terminal for transmitting a Keep-Alive packet.

本発明の一実施形態に係る通信システムの概略構成図である。1 is a schematic configuration diagram of a communication system according to an embodiment of the present invention. 本発明の一実施形態に係る端末1およびサーバ2の構成を示すブロック図である。It is a block diagram which shows the structure of the terminal 1 and server 2 which concern on one Embodiment of this invention. 本発明の一実施形態に係るNW距離記憶部23の構成例である。It is an example of composition of NW distance storage part 23 concerning one embodiment of the present invention. 本発明の一実施形態に係るKeep-Aliveパケット送信処理のシーケンスチャートである。6 is a sequence chart of a keep-alive packet transmission process according to an embodiment of the present invention.

以下、図面を参照し、本発明の実施形態について説明する。
図1は、本発明の一実施形態に係る通信システムの概略構成図である。図1において、端末1は無線回線により無線基地局3と接続する。無線基地局3としては、例えば、携帯電話網の基地局(例えば、3G回線の基地局)や無線LANのアクセスポイント(Access Point:AP)などが挙げられる。端末1は、無線基地局3を介して、インターネット等のIP(Internet Protocol)ネットワーク5に接続されるサーバ2との間で通信することができる。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a schematic configuration diagram of a communication system according to an embodiment of the present invention. In FIG. 1, a terminal 1 is connected to a wireless base station 3 through a wireless line. Examples of the wireless base station 3 include a mobile phone network base station (for example, a 3G line base station) and a wireless LAN access point (AP). The terminal 1 can communicate with a server 2 connected to an IP (Internet Protocol) network 5 such as the Internet via the wireless base station 3.

無線基地局3とサーバ2間の通信経路上には、NAT(Network Address Translation)やファイアウォール等のネットワーク機器4が、一つ若しくは複数存在する場合がある。一般的に、ネットワーク機器4は、自機器を経由するコネクションの有無を管理し、一定時間(コネクション保持時間)においてパケットの通過が無いコネクションについてはパケットを廃棄することが知られている。また、コネクション保持時間は、ネットワーク機器4によって異なる場合がある。   There may be one or a plurality of network devices 4 such as NAT (Network Address Translation) and a firewall on the communication path between the wireless base station 3 and the server 2. Generally, it is known that the network device 4 manages the presence / absence of a connection that passes through its own device, and discards a packet for a connection that does not pass a packet for a certain time (connection holding time). Further, the connection holding time may vary depending on the network device 4.

端末1にはアプリケーション10が存在する。アプリケーション10は、サーバ2との間でコネクション100を確立し通信する。   An application 10 exists in the terminal 1. The application 10 establishes a connection 100 with the server 2 and communicates.

図2は、本実施形態に係る端末1およびサーバ2の構成を示すブロック図である。図2において、端末1は、通信部11とアプリケーション10とKeep-Alive制御部12を有する。サーバ2は、アプリケーションサーバ部20と通信部21とネットワーク(NW)距離測定部22とNW距離記憶部23とKeep-Alive制御部24とKeep-Aliveパケット送信部25を有する。Keep-Alive制御部24は、Keep-Alive実行通知部26を有する。   FIG. 2 is a block diagram illustrating configurations of the terminal 1 and the server 2 according to the present embodiment. In FIG. 2, the terminal 1 includes a communication unit 11, an application 10, and a keep-alive control unit 12. The server 2 includes an application server unit 20, a communication unit 21, a network (NW) distance measurement unit 22, an NW distance storage unit 23, a keep-alive control unit 24, and a keep-alive packet transmission unit 25. The Keep-Alive control unit 24 includes a Keep-Alive execution notification unit 26.

端末1において、通信部11は、無線基地局3を介して、IPネットワーク5に接続されるサーバ2との間で通信する。アプリケーション10は、サーバ2のアプリケーションサーバ部20との間でコネクション100を確立し通信する。Keep-Alive制御部12は、コネクション100の確立の際にコネクション100のKeep-Aliveパケットをサーバ2から送信することの通知を受信すると、アプリケーション10に対してコネクション100のKeep-Aliveパケットの送信停止を指示する。これにより、アプリケーション10は、コネクション100のKeep-Aliveパケットを送信しない。   In the terminal 1, the communication unit 11 communicates with the server 2 connected to the IP network 5 via the wireless base station 3. The application 10 establishes communication with the application server unit 20 of the server 2 to establish communication. When the Keep-Alive control unit 12 receives a notification of transmitting the Keep-Alive packet of the connection 100 from the server 2 when the connection 100 is established, the Keep-Alive control unit 12 stops transmitting the Keep-Alive packet of the connection 100 to the application 10. Instruct. As a result, the application 10 does not transmit the Keep-Alive packet of the connection 100.

サーバ2において、通信部21は、IPネットワーク5を介して、端末1との間で通信する。アプリケーションサーバ部20は、端末1のアプリケーション10との間でコネクション100を確立し通信する。   In the server 2, the communication unit 21 communicates with the terminal 1 via the IP network 5. The application server unit 20 establishes and communicates with the application 10 of the terminal 1.

NW距離測定部22は、コネクション100に関するサーバ2からのNW距離を測定する。NW距離は、通信ネットワーク上のホップ数である。本実施形態では、NW距離測定部22は、コネクション100に関して、サーバ2から、端末1が接続する無線基地局3の直前のネットワーク機器4までの、ホップ数を測定する。   The NW distance measuring unit 22 measures the NW distance from the server 2 regarding the connection 100. The NW distance is the number of hops on the communication network. In the present embodiment, the NW distance measurement unit 22 measures the number of hops from the server 2 to the network device 4 immediately before the radio base station 3 to which the terminal 1 is connected with respect to the connection 100.

NW距離記憶部23は、NW距離測定部22により測定されたNW距離測定値と当該測定時の端末1の通信ネットワーク上の位置を示す測定情報とを関連付けて記憶する。図3は、本実施形態に係るNW距離記憶部23の構成例である。図3の例では、測定情報は、端末1に割り当てられたIPアドレスである。NW距離測定値は、NW距離測定部22により測定されたホップ数である。   The NW distance storage unit 23 stores the NW distance measurement value measured by the NW distance measurement unit 22 in association with the measurement information indicating the position of the terminal 1 on the communication network at the time of the measurement. FIG. 3 is a configuration example of the NW distance storage unit 23 according to the present embodiment. In the example of FIG. 3, the measurement information is an IP address assigned to the terminal 1. The NW distance measurement value is the number of hops measured by the NW distance measurement unit 22.

Keep-Alive制御部24は、Keep-Aliveパケットの送信の制御を行う。Keep-Alive制御部24は、Keep-Aliveパケットに設定されるパケット有効期間(Time To Live:TTL)を、Keep-Aliveパケット送信部25に通知する。Keep-Aliveパケットに設定されるTTLは、端末1までは届かない値である。Keep-Aliveパケット送信部25は、Keep-Alive制御部24から通知されたTTLを有するKeep-Aliveパケットを、通信部21を介して送信する。該Keep-Aliveパケットは、TTLによって端末1までは届かないように転送制限されているので、端末1には届かない。   The Keep-Alive control unit 24 controls transmission of Keep-Alive packets. The Keep-Alive control unit 24 notifies the Keep-Alive packet transmission unit 25 of the packet valid period (Time To Live: TTL) set in the Keep-Alive packet. The TTL set in the Keep-Alive packet is a value that does not reach the terminal 1. The Keep-Alive packet transmission unit 25 transmits a Keep-Alive packet having a TTL notified from the Keep-Alive control unit 24 via the communication unit 21. Since the transfer of the Keep-Alive packet is restricted so that it does not reach the terminal 1 by TTL, it does not reach the terminal 1.

Keep-Alive実行通知部26は、コネクション100の確立の際に、端末1に対して、コネクション100のKeep-Aliveパケットをサーバ2から送信することを通知する。この通知方法としては、コネクション100の確立手順でサーバ2から端末1へ送信するパケットにKeep-Aliveフラグを設け、Keep-Aliveフラグがオンである場合には、コネクション100のKeep-Aliveパケットをサーバ2から送信することを示し、一方、Keep-Aliveフラグがオフである場合には、コネクション100のKeep-Aliveパケットをサーバ2から送信しないことを示す、とする。   When the connection 100 is established, the Keep-Alive execution notification unit 26 notifies the terminal 1 that the server 2 transmits the Keep-Alive packet of the connection 100. As a notification method, a Keep-Alive flag is provided in a packet transmitted from the server 2 to the terminal 1 in the connection 100 establishment procedure, and when the Keep-Alive flag is on, the Keep-Alive packet of the connection 100 is transmitted to the server. 2 indicates that the Keep-Alive flag is off, indicating that the server 2 does not transmit the Keep-Alive packet of the connection 100.

次に図4を参照して本実施形態に係るKeep-Aliveパケット送信処理を説明する。図4は、本実施形態に係るKeep-Aliveパケット送信処理のシーケンスチャートである。   Next, a keep-alive packet transmission process according to the present embodiment will be described with reference to FIG. FIG. 4 is a sequence chart of the keep-alive packet transmission process according to the present embodiment.

(ステップS1)端末1の通信部11が無線基地局3に接続する。 (Step S <b> 1) The communication unit 11 of the terminal 1 connects to the radio base station 3.

(ステップS2)端末1のアプリケーション10が、サーバ2のアプリケーションサーバ部20に対してコネクション100の確立を要求する。このコネクション100の確立要求の情報は、通信部21からKeep-Alive制御部24に出力される。 (Step S2) The application 10 of the terminal 1 requests the application server unit 20 of the server 2 to establish the connection 100. Information on the establishment request for the connection 100 is output from the communication unit 21 to the keep-alive control unit 24.

ここで、端末1が接続する無線基地局3とサーバ2との間の通信経路上に在る各ネットワーク(NW)機器4(A),(B)は、コネクション100を特定するコネクション情報(IPパケットの送信元アドレス、宛先アドレス、ポート番号等)を保持する。各NW機器4(A),(B)は、保持したコネクション情報でコネクション100を特定し、コネクション保持時間においてコネクション100のIPパケットの通過が無い場合には該保持したコネクション情報を破棄する。各NW機器4(A),(B)は、コネクション情報が保持されていないコネクションのIPパケットを廃棄する。   Here, each network (NW) device 4 (A), (B) on the communication path between the wireless base station 3 to which the terminal 1 is connected and the server 2 has connection information (IP Packet source address, destination address, port number, etc.). Each NW device 4 (A), (B) identifies the connection 100 with the held connection information, and discards the held connection information when no IP packet of the connection 100 passes during the connection holding time. Each NW device 4 (A), (B) discards an IP packet of a connection for which connection information is not held.

(ステップS3)サーバ2のアプリケーションサーバ部20は、端末1に対して、コネクション100の確立を応答する。このコネクション100の確立の応答パケットには、Keep-Alive制御部24からのKeep-Aliveフラグが付加される。ここでは、Keep-Aliveフラグはオンである。 (Step S3) The application server unit 20 of the server 2 responds to the terminal 1 with the establishment of the connection 100. A keep-alive flag from the keep-alive controller 24 is added to the response packet for establishing the connection 100. Here, the Keep-Alive flag is on.

(ステップS4)端末1のKeep-Alive制御部12は、サーバ2から受信したコネクション100の確立の応答パケットにおいてKeep-Aliveフラグがオンである場合に、アプリケーション10に対してコネクション100のKeep-Aliveパケットの送信停止を指示する。これにより、アプリケーション10は、コネクション100のKeep-Aliveパケットを送信しない。 (Step S4) The Keep-Alive control unit 12 of the terminal 1 sends a Keep-Alive of the connection 100 to the application 10 when the Keep-Alive flag is on in the response packet for establishing the connection 100 received from the server 2. Instructs to stop packet transmission. As a result, the application 10 does not transmit the Keep-Alive packet of the connection 100.

(ステップS5)サーバ2のKeep-Alive制御部24は、NW距離記憶部23に対して、端末1のIPアドレスを通知し、NW距離を要求する。 (Step S5) The Keep-Alive control unit 24 of the server 2 notifies the NW distance storage unit 23 of the IP address of the terminal 1, and requests the NW distance.

(ステップS6)NW距離記憶部23は、Keep-Alive制御部24から通知されたIPアドレスに対応する測定情報を探索する。この探索の結果、測定情報が発見された場合には、NW距離記憶部23は当該測定情報に関連付けられているNW距離をKeep-Alive制御部24へ回答する。一方、測定情報が発見されなかった場合には、NW距離記憶部23は、NW距離が無いことをKeep-Alive制御部24へ回答する。 (Step S6) The NW distance storage unit 23 searches for measurement information corresponding to the IP address notified from the Keep-Alive control unit 24. If the measurement information is found as a result of this search, the NW distance storage unit 23 returns the NW distance associated with the measurement information to the Keep-Alive control unit 24. On the other hand, when the measurement information is not found, the NW distance storage unit 23 replies to the Keep-Alive control unit 24 that there is no NW distance.

(ステップS7)Keep-Alive制御部24は、NW距離記憶部23からの回答がNW距離無しの場合に、NW距離測定部22に対して、コネクション100に関するNW距離の測定を指示する。 (Step S7) The Keep-Alive control unit 24 instructs the NW distance measurement unit 22 to measure the NW distance for the connection 100 when the answer from the NW distance storage unit 23 indicates that there is no NW distance.

(ステップS8)NW距離測定部22は、Keep-Alive制御部24からコネクション100に関するNW距離の測定の指示を受けると、コネクション100に関するNW距離の測定を行う。このNW距離の測定方法としては、端末1のIPアドレスを宛先にしたIPパケット(例えば、PingまたはUDPパケット)を、TTLを一つずつ増加させながら順次送信することで、サーバ2から、端末1が接続する無線基地局3の直前のネットワーク機器4までの、ホップ数を測定する。 (Step S <b> 8) When the NW distance measurement unit 22 receives an instruction to measure the NW distance related to the connection 100 from the keep-alive control unit 24, the NW distance measurement unit 22 measures the NW distance related to the connection 100. As a method for measuring the NW distance, an IP packet (for example, a Ping or UDP packet) destined for the IP address of the terminal 1 is sequentially transmitted while increasing the TTL one by one. Measure the number of hops to the network device 4 immediately before the wireless base station 3 to which is connected.

(ステップS9)NW距離測定部22は、NW距離測定値をKeep-Alive制御部24へ通知する。 (Step S9) The NW distance measurement unit 22 notifies the NW distance measurement value to the Keep-Alive control unit 24.

(ステップS10)Keep-Alive制御部24は、NW距離測定部22から通知されたNW距離測定値と端末1のIPアドレスをNW距離記憶部23に通知し保持させる。NW距離記憶部23は、該端末1のIPアドレスに関連付けて該NW距離測定値を保持する。 (Step S10) The Keep-Alive control unit 24 notifies the NW distance storage unit 23 of the NW distance measurement value and the IP address of the terminal 1 notified from the NW distance measurement unit 22, and holds them. The NW distance storage unit 23 holds the NW distance measurement value in association with the IP address of the terminal 1.

(ステップS11)Keep-Alive制御部24は、コネクション100に関するNW距離をKeep-Aliveパケット送信部25に設定する。Keep-Alive制御部24は、コネクション100に関するNW距離がNW距離記憶部23に保持されていた場合には、該保持されていたNW距離(ステップS6で回答されたNW距離)を用いる。一方、Keep-Alive制御部24は、コネクション100に関するNW距離がNW距離記憶部23に保持されていなかった場合には、NW距離測定部22で測定されたNW距離(ステップS9で通知されたNW距離測定値)を用いる。 (Step S11) The Keep-Alive control unit 24 sets the NW distance for the connection 100 in the Keep-Alive packet transmission unit 25. When the NW distance related to the connection 100 is held in the NW distance storage unit 23, the keep-alive control unit 24 uses the held NW distance (the NW distance answered in step S6). On the other hand, if the NW distance related to the connection 100 is not held in the NW distance storage unit 23, the keep-alive control unit 24 determines the NW distance measured by the NW distance measurement unit 22 (the NW notified in step S9). Distance measurement).

(ステップS12)Keep-Aliveパケット送信部25は、Keep-Alive制御部24から通知されたNW距離に基づいてKeep-AliveパケットにTTLを設定し、通信部21を介して該Keep-Aliveパケットを送信する。これにより、該Keep-Aliveパケットは、端末1が接続する無線基地局3の直前のネットワーク機器4(図4ではネットワーク機器4(A))まで到達し、当該ネットワーク機器4で廃棄される。但し、各ネットワーク(NW)機器4(A),(B)は、該Keep-Aliveパケットによって、コネクション100のコネクション情報を保持する。これにより、各ネットワーク(NW)機器4(A),(B)は、コネクション100を維持する。ステップS12のKeep-Aliveパケットの送信は定期的に行われる。 (Step S12) The Keep-Alive packet transmission unit 25 sets TTL in the Keep-Alive packet based on the NW distance notified from the Keep-Alive control unit 24, and transmits the Keep-Alive packet via the communication unit 21. Send. As a result, the Keep-Alive packet reaches the network device 4 (network device 4 (A) in FIG. 4) immediately before the radio base station 3 to which the terminal 1 is connected, and is discarded by the network device 4. However, each network (NW) device 4 (A), (B) holds connection information of the connection 100 by the Keep-Alive packet. Thereby, each network (NW) device 4 (A), (B) maintains the connection 100. Transmission of the Keep-Alive packet in step S12 is periodically performed.

(ステップS13)Keep-Alive制御部24は、ステップS12でサーバ2から送信されたコネクション100のKeep-Aliveパケットに対するエラーの応答パケットを、通信部21を介して受信する。 (Step S13) The Keep-Alive control unit 24 receives, via the communication unit 21, an error response packet for the Keep-Alive packet of the connection 100 transmitted from the server 2 in Step S12.

上述した実施形態によれば、サーバ2がコネクション100のKeep-Aliveパケットを送信することにより、Keep-Aliveパケットを送信するため端末1の負荷や消費電力を低減できる。また、該Keep-Aliveパケットは、端末1までは届かないので、端末1は該Keep-Aliveパケットの受信処理を行わずに済む。また、該Keep-Aliveパケットは、端末1が接続する無線基地局3まで到達しないので、端末1と無線基地局3の間の無線区間の無線リソースを消費せずに済む。また、Keep-Aliveパケットの伝送の度に、無線基地局3が端末1をActive状態にしたり非Active状態にしたりするための制御信号の発生を抑制することができる。   According to the above-described embodiment, since the server 2 transmits the Keep-Alive packet of the connection 100, the load and power consumption of the terminal 1 can be reduced because the Keep-Alive packet is transmitted. Further, since the Keep-Alive packet does not reach the terminal 1, the terminal 1 does not need to perform reception processing of the Keep-Alive packet. Further, since the Keep-Alive packet does not reach the wireless base station 3 to which the terminal 1 is connected, it is not necessary to consume wireless resources in the wireless section between the terminal 1 and the wireless base station 3. Further, it is possible to suppress the generation of a control signal for the radio base station 3 to set the terminal 1 to the active state or the non-active state every time the keep-alive packet is transmitted.

以上、本発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、本発明の要旨を逸脱しない範囲の設計変更等も含まれる。   As mentioned above, although embodiment of this invention was explained in full detail with reference to drawings, the specific structure is not restricted to this embodiment, The design change etc. of the range which does not deviate from the summary of this invention are included.

例えば、Keep-Aliveパケットに設定するTTLは、サーバ2から端末1までのホップ数から少なくとも1を減算した値であればよい。   For example, the TTL set in the Keep-Alive packet may be a value obtained by subtracting at least 1 from the number of hops from the server 2 to the terminal 1.

また、上述した実施形態では、端末1は無線基地局3に接続し無線回線を介してIPネットワーク5に接続したが、これに限定されない。端末1は、無線回線を介さず、有線回線を介してIPネットワーク5に接続してもよい。   In the above-described embodiment, the terminal 1 is connected to the wireless base station 3 and connected to the IP network 5 via a wireless line. However, the present invention is not limited to this. The terminal 1 may be connected to the IP network 5 via a wired line instead of via a wireless line.

また、上述したサーバ2を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行するようにしてもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものであってもよい。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、フラッシュメモリ等の書き込み可能な不揮発性メモリ、DVD(Digital Versatile Disk)等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。
Alternatively, a program for realizing the server 2 described above may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read into a computer system and executed. Here, the “computer system” may include an OS and hardware such as peripheral devices.
“Computer-readable recording medium” refers to a flexible disk, a magneto-optical disk, a ROM, a writable nonvolatile memory such as a flash memory, a portable medium such as a DVD (Digital Versatile Disk), and a built-in computer system. A storage device such as a hard disk.

さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(例えばDRAM(Dynamic Random Access Memory))のように、一定時間プログラムを保持しているものも含むものとする。
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
Further, the “computer-readable recording medium” means a volatile memory (for example, DRAM (Dynamic DRAM) in a computer system that becomes a server or a client when a program is transmitted through a network such as the Internet or a communication line such as a telephone line. Random Access Memory)), etc., which hold programs for a certain period of time.
The program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
The program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.

1…端末(端末装置)、2…サーバ(Keep-Aliveパケット送信装置)、3…無線基地局、4…ネットワーク機器、5…IPネットワーク、10…アプリケーション、11,21…通信部、12,24…Keep-Alive制御部、20…アプリケーションサーバ部、22…NW距離測定部、23…NW距離記憶部、25…Keep-Aliveパケット送信部、26…Keep-Alive実行通知部、100…コネクション DESCRIPTION OF SYMBOLS 1 ... Terminal (terminal device), 2 ... Server (Keep-Alive packet transmitter), 3 ... Wireless base station, 4 ... Network equipment, 5 ... IP network, 10 ... Application, 11, 21 ... Communication part, 12, 24 ... Keep-Alive control unit, 20 ... Application server unit, 22 ... NW distance measurement unit, 23 ... NW distance storage unit, 25 ... Keep-Alive packet transmission unit, 26 ... Keep-Alive execution notification unit, 100 ... Connection

Claims (2)

通信ネットワークを介してデータ伝送されるサーバ装置との間で確立されたコネクションのKeep-Aliveパケットを送信するアプリケーションを有する端末装置において、
前記コネクションの確立の際に前記コネクションのKeep-Aliveパケットを前記サーバ装置から送信することの通知を受信すると、前記アプリケーションに対して前記コネクションのKeep-Aliveパケットの送信停止を指示するKeep-Alive制御部を備えたことを特徴とする端末装置。
In a terminal device having an application for transmitting a Keep-Alive packet of a connection established with a server device for data transmission via a communication network,
Keep-Alive control that instructs the application to stop sending the Keep-Alive packet of the connection upon receiving a notification from the server device that the Keep-Alive packet of the connection is transmitted from the server device when the connection is established A terminal device comprising a unit.
Keep-Aliveパケット送信装置と、請求項に記載の端末装置とを有するKeep-Alive制御システムであり、
前記Keep-Aliveパケット送信装置は、
前記端末装置と、通信ネットワークを介して前記端末装置にデータ伝送されるサーバ装置との間で確立されたコネクションのKeep-Aliveパケットを送信するKeep-Aliveパケット送信装置であって、
前記端末装置までは届かないように転送制限された前記コネクションのKeep-Aliveパケットを送信するKeep-Aliveパケット送信部と、
前記コネクションの確立の際に、前記端末装置に対して、前記コネクションのKeep-Aliveパケットを前記サーバ装置から送信することを通知するKeep-Alive実行通知部と、を備える、
Keep-Alive制御システム。
A Keep-Alive control system comprising a Keep-Alive packet transmitting device and the terminal device according to claim 1 ,
The keep-alive packet transmitter
A Keep-Alive packet transmitting device that transmits a Keep-Alive packet of a connection established between the terminal device and a server device that transmits data to the terminal device via a communication network,
A Keep-Alive packet transmitter that transmits a Keep-Alive packet of the connection that is transfer restricted so that it does not reach the terminal device;
When establishing the connection, the terminal device comprises a Keep-Alive execution notifying unit for notifying that the server device transmits a Keep-Alive packet of the connection,
Keep-Alive control system.
JP2013052243A 2013-03-14 2013-03-14 Terminal device and keep-alive control system Active JP6025624B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013052243A JP6025624B2 (en) 2013-03-14 2013-03-14 Terminal device and keep-alive control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013052243A JP6025624B2 (en) 2013-03-14 2013-03-14 Terminal device and keep-alive control system

Publications (2)

Publication Number Publication Date
JP2014179787A JP2014179787A (en) 2014-09-25
JP6025624B2 true JP6025624B2 (en) 2016-11-16

Family

ID=51699313

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013052243A Active JP6025624B2 (en) 2013-03-14 2013-03-14 Terminal device and keep-alive control system

Country Status (1)

Country Link
JP (1) JP6025624B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8023432B2 (en) * 2007-03-12 2011-09-20 Microsoft Corporation Cost reduction of NAT connection state keep-alive
US7978630B2 (en) * 2009-04-30 2011-07-12 Sony Ericsson Mobile Communications Ab Method and system of maintaining a connection in a network communication system
US8730929B2 (en) * 2010-06-09 2014-05-20 Mediatek (Beijing) Inc. Method to maintain network address translation (NAT) binding
US8490174B2 (en) * 2010-11-18 2013-07-16 Qualcomm Incorporated Transmitting keep-alive packets on behalf of a mobile communications device within a wireless communications system

Also Published As

Publication number Publication date
JP2014179787A (en) 2014-09-25

Similar Documents

Publication Publication Date Title
US20210329028A1 (en) Cooperative mitigation of distributed denial of service attacks originating in local networks
CN109889618B (en) Method and system for processing DNS request
EP3472992B1 (en) Network path probing using available network connections
EP3032859B1 (en) Access control method and system, and access point
US9438555B2 (en) Communicating with a distribution system via an uplink access point
KR101176144B1 (en) System and method for peer-to-peer connection in multiple network environment
CN105227693B (en) A kind of configuration method and device of the DNS of mobile device
US20170063699A1 (en) Method and apparatus for configuring multi-paths using segment list
KR20140129229A (en) Internet protocol connectivity over a service-oriented architecture bus
US11159420B2 (en) Method and apparatus of automatic route optimization in a private virtual network for client devices of a local network
CN108512714B (en) Message transmission method, related equipment and system
US10757024B2 (en) Load distribution apparatus, load distribution method and program
US9866525B2 (en) Source-destination network address translation (SDNAT) proxy and method thereof
EP3462713B1 (en) Nat entry management method and apparatus, and nat device
CN105704036A (en) Message forwarding method, apparatus, and system
US20130034047A1 (en) Method and system for communicating with web services using peer-to-peer technology
US10044590B2 (en) Method of effective retaining of NAT channel service
JP6025624B2 (en) Terminal device and keep-alive control system
WO2015096734A1 (en) Downlink transmission method for service data, and packet data gateway
US9866644B2 (en) Terminal, message distribution system, message distribution method, and computer-readable medium
JP6082623B2 (en) Terminal, communication system and computer program
CN115883644A (en) Information processing method and device and storage medium
CN110798542A (en) Method and system for acquiring IP address
JP2014175711A (en) Terminal, keep-alive timing control system, computer program and keep-alive timing control method
JP2020010315A (en) Network topology acquisition method and device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150806

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20150810

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160524

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160531

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160729

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20160801

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160913

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161011

R150 Certificate of patent or registration of utility model

Ref document number: 6025624

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150