JP5918312B2 - Communication terminal device - Google Patents

Communication terminal device Download PDF

Info

Publication number
JP5918312B2
JP5918312B2 JP2014138974A JP2014138974A JP5918312B2 JP 5918312 B2 JP5918312 B2 JP 5918312B2 JP 2014138974 A JP2014138974 A JP 2014138974A JP 2014138974 A JP2014138974 A JP 2014138974A JP 5918312 B2 JP5918312 B2 JP 5918312B2
Authority
JP
Japan
Prior art keywords
communication
terminal device
communication terminal
address
port number
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
JP2014138974A
Other languages
Japanese (ja)
Other versions
JP2016019048A (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.)
SoftBank Corp
Original Assignee
SoftBank 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 SoftBank Corp filed Critical SoftBank Corp
Priority to JP2014138974A priority Critical patent/JP5918312B2/en
Publication of JP2016019048A publication Critical patent/JP2016019048A/en
Application granted granted Critical
Publication of JP5918312B2 publication Critical patent/JP5918312B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Description

本発明は、通信ネットワークを介して通信可能な通信端末装置に関するものである。   The present invention relates to a communication terminal apparatus capable of communicating via a communication network.

従来、この種の通信端末装置として、グローバルIP(Internet Protocol)アドレスを用いて他の通信端末装置などの通信相手との間で通信経路(セッション)を確立し、TCP/IPの通信により通信相手との間でデータ送受信を行うものが知られている。このようなグローバルIPアドレス(以下、適宜「IPアドレス」と略する。)を用いた通信においては、通信端末装置の移動などによって接続先のネットワークセグメントが変わると、通信端末装置に新たなIPアドレスが割り振られるため、通信相手との通信を継続することができない。
特許文献1には、移動等によって接続先のネットワークセグメントが変更されて新たなIPアドレスが割り当てられた場合に、その新たなIPアドレスの情報をSMS(Short Message Service)や電子メールで通信相手に送信して通知する移動携帯端末装置が開示されている。
Conventionally, as this type of communication terminal device, a communication path (session) is established with a communication partner such as another communication terminal device using a global IP (Internet Protocol) address, and the communication partner is communicated by TCP / IP communication. A device that transmits / receives data to / from is known. In communication using such a global IP address (hereinafter abbreviated as “IP address” where appropriate), if the network segment of the connection destination changes due to movement of the communication terminal device, a new IP address is assigned to the communication terminal device. Is allocated, communication with the communication partner cannot be continued.
In Patent Document 1, when a network segment of a connection destination is changed due to movement or the like and a new IP address is assigned, information on the new IP address is sent to a communication partner by SMS (Short Message Service) or e-mail. A mobile portable terminal device that transmits and notifies is disclosed.

上記特許文献1で開示されている移動携帯端末装置のように新たなIPアドレスの情報を通信相手に送信して通知する場合、そのIPアドレスの情報が通信相手に到達するまで多少なりとも時間を要する。特に、移動体通信ネットワークを介した通信ができない圏外に通信相手の通信端末装置が位置している場合や、IPアドレスの情報の送信に用いる通信ネットワークに障害が発生している場合は、IPアドレスの情報が通信相手に到達するのが大きく遅れる可能性がある。このように新たなIPアドレスの情報の伝達が遅れて新たなIPアドレスを通信に利用されないと、例えばDHCP(Dynamic Host Configuration Protocol)サーバによって上記新たなIPアドレスが別の通信端末装置に再利用され、上記新たなIPアドレスの情報を遅れて受信した通信相手が上記別の通信端末装置との間で意図しない通信を行ってしまうおそれがある。   When transmitting and notifying information on a new IP address to a communication partner as in the mobile portable terminal device disclosed in Patent Document 1, it takes some time until the information on the IP address reaches the communication partner. Cost. In particular, when the communication terminal device of the communication partner is located outside the service area where communication via the mobile communication network is not possible, or when a failure has occurred in the communication network used for transmitting IP address information, the IP address There is a possibility that it will be greatly delayed for the information of this to reach the communication partner. If the transmission of the new IP address information is delayed in this way and the new IP address is not used for communication, for example, the DHCP (Dynamic Host Configuration Protocol) server reuses the new IP address for another communication terminal device. There is a possibility that the communication partner that received the information on the new IP address with a delay will perform unintended communication with the other communication terminal device.

本発明は以上の問題点に鑑みなされたものであり、その目的は、IPアドレスが変更されたときに、変更後のIPアドレスに基づいて通信相手との間に双方向通信の通信経路を確立できるとともに、通信相手による意図しない通信を防止することができる通信端末装置を提供する。   The present invention has been made in view of the above problems, and its purpose is to establish a communication path for bidirectional communication with a communication partner based on the changed IP address when the IP address is changed. Provided is a communication terminal device capable of preventing unintended communication by a communication partner.

本発明の一態様に係る通信端末装置は、通信ネットワークを介して通信する第1の通信手段と、前記第1の通信手段を制御する制御手段と、を備える通信端末装置であって、前記制御手段は、当該通信端末装置及び通信相手それぞれに設定された所定のIPアドレス及びポート番号に基づいて、前記通信ネットワークを介して前記通信相手との間に双方向通信の通信経路を確立し、当該通信端末装置のIPアドレスが変更されたとき、その変更後のIPアドレスと前記通信相手との双方向通信に使用される当該通信端末装置のポート番号とを含む接続情報を前記通信相手に送信するように、制御する。
前記通信端末装置において、前記制御手段は、当該通信端末装置のIPアドレスが変更されたとき、当該通信端末装置側のポート番号を変更し、前記変更後のIPアドレス及びポート番号を含む接続情報を前記通信相手に送信するように、制御してもよい。
また、前記通信端末装置において、前記制御手段は、前記通信相手のIPアドレス及びポート番号を記憶し、前記通信相手のIPアドレス及びポート番号を含む接続情報を該通信相手から受信したとき、その受信した接続情報に基づいて前記通信相手のIPアドレス及びポート番号を更新してもよい。
また、前記通信端末装置において、前記制御手段は、前記通信相手との双方向通信の通信経路が途切れたときに該通信経路の復帰を試み、前記通信経路の復帰に失敗したとき、前記通信相手のIPアドレス及びポート番号を含む接続情報を前記通信相手に要求するように、制御してもよい。
また、前記通信端末装置において、当該通信端末装置の周辺に位置する装置と近距離無線通信方式によって通信する第2の通信手段を更に備え、前記制御手段は、前記通信相手と近距離無線通信方式による直接通信が可能な状態か否かを判断し、前記近距離無線通信方式による直接通信が可能な場合は、前記近距離無線通信方式で前記接続情報を前記通信相手に送信し、前記近距離無線通信方式による直接通信が不可能な場合は、前記通信ネットワークを介して前記接続情報を前記通信相手に送信するように、制御してもよい。
また、前記通信端末装置において、前記制御手段は、前記接続情報を所定の鍵で暗号化する処理又は前記接続情報を所定のパスワードを設定する処理を行い、前記処理後の接続情報を前記通信相手に送信するように、制御してもよい。
また、前記通信端末装置において、前記制御手段は、前記通信相手との双方向通信の通信経路の確立が必要になったとき、その通信経路の確立に先立って、当該通信端末装置のIPアドレス及びポート番号を含む接続情報を前記通信相手に送信するように、制御してもよい。
また、前記通信端末装置において、前記制御手段は、前記通信相手との双方向通信の通信経路を確立した状態で、該通信相手との間でデータ同期処理を実行するように、制御してもよい。
A communication terminal apparatus according to an aspect of the present invention is a communication terminal apparatus comprising: a first communication unit that communicates via a communication network; and a control unit that controls the first communication unit. The means establishes a communication path for bidirectional communication with the communication partner via the communication network based on a predetermined IP address and port number set for the communication terminal device and the communication partner, When the IP address of the communication terminal device is changed, connection information including the changed IP address and the port number of the communication terminal device used for bidirectional communication with the communication partner is transmitted to the communication partner. To control.
In the communication terminal device, when the IP address of the communication terminal device is changed, the control unit changes the port number on the communication terminal device side, and includes connection information including the changed IP address and port number. You may control so that it may transmit to the said communicating party.
In the communication terminal device, the control means stores the IP address and port number of the communication partner, and receives connection information including the IP address and port number of the communication partner from the communication partner. The IP address and port number of the communication partner may be updated based on the connection information.
Further, in the communication terminal device, the control means tries to return the communication path when the communication path for bidirectional communication with the communication partner is interrupted, and when the communication path fails to return, the communication partner Control may be performed so as to request connection information including the IP address and port number of the communication partner.
The communication terminal device further includes second communication means for communicating with a device located in the vicinity of the communication terminal device by a short-range wireless communication method, wherein the control means is a short-range wireless communication method with the communication partner. If the direct communication by the short-range wireless communication method is possible, the connection information is transmitted to the communication partner by the short-range wireless communication method, and the short-range wireless communication method is used. When direct communication by a wireless communication method is impossible, control may be performed so that the connection information is transmitted to the communication partner via the communication network.
In the communication terminal device, the control means performs a process of encrypting the connection information with a predetermined key or a process of setting a predetermined password for the connection information, and the connection information after the process is transmitted to the communication partner. You may control to transmit to.
Further, in the communication terminal apparatus, when the control unit needs to establish a communication path for bidirectional communication with the communication partner, prior to establishment of the communication path, the control means You may control so that the connection information containing a port number may be transmitted to the said communicating party.
Further, in the communication terminal apparatus, the control means may perform control so as to execute data synchronization processing with the communication partner in a state where a communication path for bidirectional communication with the communication partner is established. Good.

本発明によれば、IPアドレスが変更されたときに、変更後のIPアドレスに基づいて通信相手との間に双方向通信の通信経路を確立できるとともに、通信相手による意図しない通信を防止することができる。   According to the present invention, when the IP address is changed, a communication path for bidirectional communication can be established with the communication partner based on the changed IP address, and unintended communication by the communication partner can be prevented. Can do.

本発明の一実施形態に係る通信端末装置が利用可能な通信システムの一例を示す概略構成図。The schematic block diagram which shows an example of the communication system which can use the communication terminal device which concerns on one Embodiment of this invention. 本実施形態に係る通信端末装置のハードウェア構成の一例を示すブロック図。The block diagram which shows an example of the hardware constitutions of the communication terminal device which concerns on this embodiment. 本実施形態に係る通信端末装置のソフトウェア構成の一例を示すブロック図。The block diagram which shows an example of the software structure of the communication terminal device which concerns on this embodiment. 本実施形態に係る通信端末装置のソフトウェア構成の他の例を示すブロック図。The block diagram which shows the other example of the software structure of the communication terminal device which concerns on this embodiment. 本実施形態に係る通信端末装置におけるデータ同期処理に用いる接続情報(IPアドレス及びポート番号)の通知処理の一例を示す説明図。Explanatory drawing which shows an example of the notification process of the connection information (IP address and port number) used for the data synchronization process in the communication terminal device which concerns on this embodiment. (a)〜(e)は、図5の接続情報の通知処理が行われているときの通信端末装置における接続情報(IPアドレス及びポート番号)の変化の様子の一例を示す説明図。(A)-(e) is explanatory drawing which shows an example of the mode of a change of the connection information (IP address and port number) in a communication terminal device when the notification process of the connection information of FIG. 5 is performed. 本実施形態に係る通信端末装置におけるデータ同期処理に用いる接続情報(IPアドレス及びポート番号)の通知処理の他の例を示す説明図。Explanatory drawing which shows the other example of the notification process of the connection information (IP address and port number) used for the data synchronization process in the communication terminal device which concerns on this embodiment. 本実施形態に係る通信端末装置におけるデータ同期処理に用いる接続情報(IPアドレス及びポート番号)の通知処理の他の例を示す説明図。Explanatory drawing which shows the other example of the notification process of the connection information (IP address and port number) used for the data synchronization process in the communication terminal device which concerns on this embodiment. (a)〜(e)は、図8の接続情報の通知処理が行われているときの通信端末装置における接続情報(IPアドレス及びポート番号)の変化の様子の一例を示す説明図。(A)-(e) is explanatory drawing which shows an example of the mode of a change of the connection information (IP address and port number) in a communication terminal device when the notification process of the connection information of FIG. 8 is performed. 本実施形態に係る複数の通信端末装置におけるデータ同期処理の一例を示すシーケンス図。The sequence diagram which shows an example of the data synchronization process in the some communication terminal device which concerns on this embodiment. 本実施形態に係る複数の通信端末装置におけるデータ同期処理の他の例を示すシーケンス図。The sequence diagram which shows the other example of the data synchronization process in the some communication terminal device which concerns on this embodiment.

以下、図面を参照しながら本発明の実施形態について説明する。
図1は、本発明の一実施形態に係る通信端末装置が利用可能な通信システムの一例を示す概略構成図である。なお、図1では、2台の通信端末装置10,15について図示しているが、通信端末装置は3台以上であってもよい。また、図1において、本実施形態の通信端末装置は、セルラー方式の移動体通信ネットワークを介して通信可能な携帯電話機やスマートフォンなどの携帯可能な移動体通信端末であるが、通信ネットワークを介して通信可能なものであれば移動体通信端末以外の通信端末装置であってもよい。例えば、本実施形態の通信端末装置は、ノートパソコンなどのパソコン装置、ゲーム機、タブレット端末、デジタルカメラ、プリンタ、書籍閲覧端末等の、通信機能を有する装置であってもよい。また、本実施形態の通信端末装置は、ネットワーク連携可能な家電(例えば、TV、冷蔵庫、録画機器)、時計や眼鏡などのウェアラブルデバイス、体重計や血圧計及びその他医療機器、ロボット等の、通信機能を有する装置であってもよい。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a schematic configuration diagram illustrating an example of a communication system that can be used by a communication terminal apparatus according to an embodiment of the present invention. In FIG. 1, two communication terminal apparatuses 10 and 15 are illustrated, but three or more communication terminal apparatuses may be provided. In FIG. 1, the communication terminal device of the present embodiment is a portable mobile communication terminal such as a mobile phone or a smartphone that can communicate via a cellular mobile communication network. A communication terminal device other than the mobile communication terminal may be used as long as communication is possible. For example, the communication terminal device according to the present embodiment may be a device having a communication function such as a personal computer device such as a notebook computer, a game machine, a tablet terminal, a digital camera, a printer, or a book browsing terminal. In addition, the communication terminal device according to the present embodiment is a communication device such as a home appliance capable of network cooperation (for example, a TV, a refrigerator, a recording device), a wearable device such as a watch or glasses, a weight scale, a blood pressure monitor, other medical devices, a robot, or the like. It may be a device having a function.

図1の通信システムにおいて、通信端末装置10,15はそれぞれ、後述の無線LAN通信機能と移動体通信(セルラー通信)機能とを有し、所定の同期タイミングに他の通信端末装置との間でデータ同期処理を行ったり、所定のバックアップタイミングにデータ同期処理後の同期データを所定のバックアップサーバにアップロードしたり、バックアップサーバからバックアップされている同期データをダウンロードしたりすることができる。これらのデータ同期処理並びに同期データのアップロード及びダウンロードは、利用者が所定の操作を行ってときに実行してもよいし、予め設定された所定の時刻が到来したときに自動実行するようにしてもよい。   In the communication system of FIG. 1, each of the communication terminal devices 10 and 15 has a wireless LAN communication function and a mobile communication (cellular communication) function, which will be described later, and between other communication terminal devices at a predetermined synchronization timing. Data synchronization processing can be performed, synchronization data after data synchronization processing can be uploaded to a predetermined backup server at a predetermined backup timing, and synchronization data backed up from the backup server can be downloaded. These data synchronization processing and uploading and downloading of synchronization data may be executed when a user performs a predetermined operation, or may be automatically executed when a predetermined time arrives. Also good.

また、本実施形態の通信システムでは、利用者の携帯電話機やスマートフォンなどの通信端末装置10,15が、ファストフード店や駅構内などに設けられた無線LANの中継装置(以下「アクセスポイント」という。)20の無線通信可能エリア20A内に位置するとき、無線LAN通信機能を有する通信端末装置10,15からアクセスポイント20を介して通信ネットワークに接続することができる。アクセスポイント20は、通信端末装置10,15と無線通信可能なWi−Fi(登録商標)などの無線LANの中継装置であり、バックボーンネットワーク30及びゲートウェイ(GW)35を介して、認証サーバ40、バックアップサーバ50、インターネット90等に接続されている。認証サーバ40は、無線LANサービスの加入者について認証処理を行う認証処理装置であり、バックアップサーバ50は、通信端末装置間で同期処理されるデータをバックアップするバックアップ装置である。   In the communication system of the present embodiment, the communication terminal devices 10 and 15 such as the user's mobile phone and smartphone are wireless LAN relay devices (hereinafter referred to as “access points”) provided in a fast food restaurant or a station premises. .) When located in the 20 wireless communicable area 20A, the communication terminal devices 10 and 15 having the wireless LAN communication function can be connected to the communication network via the access point 20. The access point 20 is a wireless LAN relay device such as Wi-Fi (registered trademark) that can wirelessly communicate with the communication terminal devices 10 and 15. The access point 20 is connected to the authentication server 40, via the backbone network 30 and the gateway (GW) 35. It is connected to the backup server 50, the Internet 90, and the like. The authentication server 40 is an authentication processing device that performs authentication processing for subscribers of a wireless LAN service, and the backup server 50 is a backup device that backs up data that is synchronized between communication terminal devices.

アクセスポイント20は、例えばIEEE802.11の規格に準拠したWi−Fiなどの無線LANの無線通信方式により、無線通信可能エリア20A内の通信端末装置10,15と無線通信し、通信端末装置10,15と通信ネットワークとの間の通信を中継することができる。   The access point 20 wirelessly communicates with the communication terminal devices 10 and 15 in the wireless communicable area 20A by a wireless LAN wireless communication method such as Wi-Fi conforming to the IEEE 802.11 standard, for example. The communication between 15 and the communication network can be relayed.

認証サーバ40は、無線LAN通信サービスに加入している加入者の各種情報が格納された加入者データベース(DB)45が接続された、例えばRADIUS(Remote Authentication Dial In User Service)サーバである。認証サーバ40は、加入者データベース45に格納されている情報を参照して、通信端末装置10,15から通信ネットワークに接続するときのWISPr(Wireless Internet Service Provider Roaming)認証やEAP(Extensible Authentication Protocol)認証などによる認証処理を行うサーバである。また、認証サーバ40は、バックボーンネットワーク30及びゲートウェイ(GW)35を介してアクセスポイント20と通信する機能や、そのアクセスポイント20を介して通信端末装置10,15と通信する機能を有する。また、認証サーバ40は、認証サーバ80と通信可能に構成され、認証サーバ80と協働又は連携して認証処理を行ってもよい。   The authentication server 40 is, for example, a RADIUS (Remote Authentication Dial In User Service) server to which a subscriber database (DB) 45 storing various information of subscribers who subscribe to the wireless LAN communication service is connected. The authentication server 40 refers to information stored in the subscriber database 45, and performs WISPr (Wireless Internet Service Provider Roaming) authentication or EAP (Extensible Authentication Protocol) when connecting the communication terminal devices 10 and 15 to the communication network. A server that performs authentication processing such as authentication. The authentication server 40 has a function of communicating with the access point 20 via the backbone network 30 and the gateway (GW) 35 and a function of communicating with the communication terminal devices 10 and 15 via the access point 20. The authentication server 40 may be configured to be communicable with the authentication server 80, and may perform authentication processing in cooperation with or in cooperation with the authentication server 80.

加入者データベース45に格納されている情報は、例えば、無線LAN通信サービスの利用者識別情報(利用者ID)、パスワード、加入者識別情報、氏名の住所など利用者情報、利用可能なサービス(例えば、データバックアップサービス)に関する情報、使用している通信端末装置の情報などである。   The information stored in the subscriber database 45 includes, for example, user identification information (user ID) of a wireless LAN communication service, password, subscriber identification information, user information such as name address, and usable services (for example, , Data backup service), information on the communication terminal device being used, and the like.

また、本実施形態の通信システムでは、通信端末装置10,15がマクロセルやスモールセルなどの移動体通信(以下「セルラー通信」ともいう。)のセル60A内に在圏するとき、第3世代(3G)、LTE(Long Term Evolution)、LTE−Advanced、第4世代(4G)、第5世代(5G)などの規格に準拠したセルラー通信のマクロセル基地局やスモールセル基地局などの基地局60を介して、セルラー通信機能を有する通信端末装置10,15から通信ネットワークに接続することができる。基地局60は、通信端末装置10,15と無線通信可能な中継装置であり、バックボーンネットワーク70及びゲートウェイ(GW)75を介して、認証サーバ80、バックアップサーバ50、インターネット90等に接続されている。認証サーバ80は、移動体通信サービスの加入者について認証処理を行う認証処理装置である。   In the communication system of the present embodiment, when the communication terminal devices 10 and 15 are located in a cell 60A of mobile communication (hereinafter also referred to as “cellular communication”) such as a macro cell or a small cell, the third generation ( 3G), LTE (Long Term Evolution), LTE-Advanced, 4th generation (4G), 5th generation (5G), and other base stations 60 such as macro cell base stations and small cell base stations for cellular communication The communication terminal devices 10 and 15 having the cellular communication function can be connected to the communication network. The base station 60 is a relay device capable of wireless communication with the communication terminal devices 10 and 15, and is connected to the authentication server 80, the backup server 50, the Internet 90, and the like via the backbone network 70 and the gateway (GW) 75. . The authentication server 80 is an authentication processing device that performs an authentication process on a mobile communication service subscriber.

認証サーバ80は、移動体通信サービスに加入している加入者の各種情報が格納された加入者データベース(DB)45が接続された、例えばRADIUS(Remote Authentication Dial In User Service)サーバである。認証サーバ80は、加入者データベース85に格納されている情報を参照して、通信端末装置10,15から移動体通信ネットワークに接続するときの認証処理を行うサーバである。また、認証サーバ80は、コアネットワーク70及びゲートウェイ(GW)75を介して通信端末装置10,15と通信する機能を有する。また、認証サーバ80は、認証サーバ40と通信可能に構成され、認証サーバ40と協働又は連携して認証処理を行ってもよい。   The authentication server 80 is, for example, a RADIUS (Remote Authentication Dial In User Service) server to which a subscriber database (DB) 45 storing various information of subscribers who subscribe to the mobile communication service is connected. The authentication server 80 refers to information stored in the subscriber database 85 and is a server that performs authentication processing when connecting from the communication terminal apparatuses 10 and 15 to the mobile communication network. The authentication server 80 has a function of communicating with the communication terminal devices 10 and 15 via the core network 70 and the gateway (GW) 75. The authentication server 80 may be configured to be communicable with the authentication server 40, and may perform authentication processing in cooperation with or in cooperation with the authentication server 40.

加入者データベース85に格納されている情報は、例えば、移動体通信サービスの利用者識別情報(利用者ID)、パスワード、加入者識別情報、氏名の住所など利用者情報、利用可能なサービス(例えば、データバックアップサービス)に関する情報、使用している通信端末装置の情報などである。   The information stored in the subscriber database 85 includes, for example, user identification information (user ID) of a mobile communication service, password, subscriber identification information, user information such as a name address, and usable services (for example, , Data backup service), information on the communication terminal device being used, and the like.

バックアップサーバ50は、複数の通信端末装置間で同期処理されて通信端末装置内に保存さている同期処理後のデータである同期データが所定のタイミングでアップロードされ、アップロードされた同期データを管理するサーバである。バックアップサーバ50は、各通信端末装置からアップロードされた同期データが格納されたバックアップデータベース(DB)55が接続されている。バックアップサーバ50は、バックボーンネットワーク30及びゲートウェイ(GW)35を介して通信端末装置10,15と通信する機能や、コアネットワーク70及びゲートウェイ(GW)75を介して通信端末装置10,15と通信する機能を有している。   The backup server 50 is a server that manages synchronization data that is uploaded at a predetermined timing and is synchronized data that is data after synchronization processing that is synchronized between a plurality of communication terminal devices and is stored in the communication terminal device. It is. The backup server 50 is connected to a backup database (DB) 55 in which synchronization data uploaded from each communication terminal device is stored. The backup server 50 communicates with the communication terminal devices 10 and 15 via the backbone network 30 and the gateway (GW) 35, and communicates with the communication terminal devices 10 and 15 via the core network 70 and the gateway (GW) 75. It has a function.

通信端末装置10,15間で同期処理される同期処理対象のデータは、特定の種類のデータに限定されるものではなく、例えば各通信端末装置間で共有して使用されるメールデータ、文書ファイル、画像ファイル、映像(動画)ファイル、音楽ファイル、音ファイル、各種のアプリケーションプログラムやミドルウェア・OSなどのプログラムのインストールファイル、各種ドライバーのインストールファイル、各種設定データなどである。   The data subject to synchronization processing to be synchronized between the communication terminal devices 10 and 15 is not limited to a specific type of data. For example, mail data and document files that are shared between the communication terminal devices. Image files, video (moving image) files, music files, sound files, installation files of various application programs and programs such as middleware / OS, installation files of various drivers, various setting data, and the like.

認証サーバ40,80、加入者データベース45,85、バックアップサーバ50及びバックアップデータベース55はそれぞれ、例えば単一のコンピュータ装置で構成したり複数のコンピュータ装置を組み合わせて構成したりすることができ、予め組み込まれ所定のプログラムが実行されることにより、各種処理や制御を実行することができる。また、認証サーバ40及び加入者データベース45を1台のコンピュータ装置で構成し、認証サーバ80及び加入者データベース85を1台のコンピュータ装置で構成し、バックアップサーバ50及びバックアップデータベース55を1台のコンピュータ装置で構成してもよい。また、認証サーバ40,80、加入者データベース45,85、バックアップサーバ50及びバックアップデータベース55を1台のコンピュータ装置で構成してもよい。 Each of the authentication servers 40 and 80, the subscriber databases 45 and 85, the backup server 50, and the backup database 55 can be configured by, for example, a single computer device or a combination of a plurality of computer devices, and are incorporated in advance. Various processes and control can be executed by executing the predetermined program. Further, the authentication server 40 and the subscriber database 45 are constituted by one computer device, the authentication server 80 and the subscriber database 85 are constituted by one computer device, and the backup server 50 and the backup database 55 are constituted by one computer. You may comprise with an apparatus. Further, the authentication servers 40 and 80, the subscriber databases 45 and 85, the backup server 50, and the backup database 55 may be configured by one computer device.

図2は、本発明の一実施形態に係る通信端末装置10のハードウェア構成の一例を示すブロック図である。なお、図2では、通信端末装置10のハードウェア構成について説明しているが、他の通信端末装置15についても同様に構成することができる。   FIG. 2 is a block diagram illustrating an example of a hardware configuration of the communication terminal device 10 according to an embodiment of the present invention. In FIG. 2, the hardware configuration of the communication terminal device 10 is described, but the other communication terminal devices 15 can be configured in the same manner.

図2において、本実施形態の通信端末装置10は、制御手段としての制御部110と、第1の通信手段としてのネットワーク通信部111と、ベースバンド処理部112と、音入出力部113と、表示部114と、操作手段としての操作部115とを備える。また、通信端末装置10は、装置本体に対して着脱可能な加入者情報記憶媒体であるICモジュールとしてのUSIM150が装着されている。   In FIG. 2, the communication terminal device 10 of this embodiment includes a control unit 110 as a control unit, a network communication unit 111 as a first communication unit, a baseband processing unit 112, a sound input / output unit 113, A display unit 114 and an operation unit 115 as operation means are provided. The communication terminal device 10 is equipped with a USIM 150 as an IC module, which is a subscriber information storage medium that can be attached to and detached from the device body.

制御部110は、MPU(Micro Processing Unit)やRAM、ROM等からなる記憶装置を備え、所定の基本OSやミドルウェア等のプログラムが実行されることにより、ベースバンド処理部112等の各部を制御したり、ソフトウェア構成上のネイティブプラットフォーム環境やアプリケーション実行環境を構築したりする。   The control unit 110 includes a storage device including an MPU (Micro Processing Unit), a RAM, a ROM, and the like, and controls each unit such as the baseband processing unit 112 by executing a program such as a predetermined basic OS or middleware. Or build a native platform environment or application execution environment on the software configuration.

また、制御部110は、所定の制御プログラムが実行されることにより、ネットワーク通信部111や後述の近距離通信部130と連携して、次の(1)〜(8)の機能を実現することができる。
(1)通信端末装置10及び通信相手それぞれに設定された所定のIPアドレス及びポート番号に基づいて、通信ネットワークを介して通信相手との間に双方向通信の通信経路を確立する。
(2)通信端末装置10のIPアドレスが変更されたとき、その変更後のIPアドレスと通信相手との双方向通信に使用される通信端末装置10のポート番号とを含む接続情報を通信相手に送信する。なお、通信端末装置10のIPアドレスが変更されたとき、その通信端末装置10側のポート番号を変更し、変更後のIPアドレス及びポート番号を含む接続情報を通信相手に送信してもよい。
(3)通信相手のIPアドレス及びポート番号を記憶し、通信相手のIPアドレス及びポート番号を含む接続情報を通信相手から受信したとき、その受信した接続情報に基づいて通信相手のIPアドレス及びポート番号を更新する。
(4)通信相手との双方向通信の通信経路が途切れたときに通信経路の復帰を試み、通信経路の復帰に失敗したとき、通信相手のIPアドレス及びポート番号を含む接続情報を通信相手に要求する。
(5)通信相手と近距離無線通信方式による直接通信が可能な状態か否かを判断し、近距離無線通信方式による直接通信が可能な場合は、近距離無線通信方式で上記接続情報を通信相手に送信し、近距離無線通信方式による直接通信が不可能な場合は、通信ネットワークを介して上記接続情報を通信相手に送信する。
(6)上記接続情報を所定の鍵で暗号化する処理又は前記接続情報を所定のパスワードを設定する処理を行い、その処理後の接続情報を通信相手に送信する。
(7)通信相手との双方向通信の通信経路の確立が必要になったとき、その通信経路の確立に先立って、通信端末装置10のIPアドレス及びポート番号を含む接続情報を通信相手に送信する。
(8)通信相手との双方向通信の通信経路を確立した状態で、通信相手との間でデータ同期処理を実行する。なお、データ同期処理時に通信相手との間で送受信されるデータは、所定の鍵で暗号化したり、所定のパスワードを設定したりしてもよい。
The control unit 110 also realizes the following functions (1) to (8) in cooperation with the network communication unit 111 and a short-range communication unit 130 described later by executing a predetermined control program. Can do.
(1) Based on a predetermined IP address and port number set for each of the communication terminal device 10 and the communication partner, a communication path for bidirectional communication is established with the communication partner via the communication network.
(2) When the IP address of the communication terminal device 10 is changed, connection information including the changed IP address and the port number of the communication terminal device 10 used for bidirectional communication with the communication partner is used as the communication partner. Send. When the IP address of the communication terminal device 10 is changed, the port number on the communication terminal device 10 side may be changed, and connection information including the changed IP address and port number may be transmitted to the communication partner.
(3) The communication partner's IP address and port number are stored, and when connection information including the communication partner's IP address and port number is received from the communication partner, the communication partner's IP address and port are based on the received connection information. Update the number.
(4) When the communication path of the two-way communication with the communication partner is interrupted, the communication path is attempted to be restored. When the communication path is unsuccessful, the connection information including the communication partner's IP address and port number is transmitted to the communication partner. Request.
(5) It is determined whether or not direct communication is possible with the communication partner using the short-range wireless communication method. If direct communication using the short-range wireless communication method is possible, the connection information is communicated using the short-range wireless communication method. If the direct communication by the short-range wireless communication method is impossible, the connection information is transmitted to the communication partner via the communication network.
(6) A process of encrypting the connection information with a predetermined key or a process of setting a predetermined password for the connection information is performed, and the connection information after the process is transmitted to the communication partner.
(7) When it becomes necessary to establish a communication path for bidirectional communication with a communication partner, connection information including the IP address and port number of the communication terminal device 10 is transmitted to the communication partner prior to the establishment of the communication path. To do.
(8) Data synchronization processing is executed with a communication partner in a state where a communication path for bidirectional communication with the communication partner is established. Note that data transmitted / received to / from a communication partner during data synchronization processing may be encrypted with a predetermined key or a predetermined password may be set.

制御部110の記憶装置は、例えば、半導体メモリ、磁気ディスク装置、及び光ディスク装置のうちの少なくともいずれか一つを有する。この記憶装置は、各部での処理に用いられるドライバプログラム、オペレーティングシステムプログラム、アプリケーションプログラム、データ等を記憶する。例えば、記憶装置は、ドライバプログラムとして、IEEE802.11規格の無線通信方式や移動体通信(セルラー通信)の無線通信方式を実行する通信ドライバプログラム、操作部115を制御する入力デバイスドライバプログラム、表示部114を制御する出力デバイスドライバプログラム等を記憶する。また、記憶装置は、オペレーティングシステムプログラムとして、例えば、Android(登録商標)OS、iOS(登録商標)等の基本OSや、IEEE802.11規格の無線通信方式や移動体通信(セルラー通信)の無線通信方式での認証等を行う接続制御プログラム等を記憶する。また、記憶装置は、アプリケーションプログラムとして、ウェブ認証を行う認証プログラム、時間を計時する計時プログラム、ウェブページを取得及び表示するウェブブラウザプログラム、電子メールを送信及び受信する電子メールプログラム等を記憶する。また、記憶装置は、各種のテキストデータ、映像データ、画像データ等を記憶したり、所定の処理に係る一時的なデータを一時的に記憶したりしてもよい。また、記憶装置は、無線LANのアクセスポイントに接続するための各種情報を記憶している。   The storage device of the control unit 110 includes, for example, at least one of a semiconductor memory, a magnetic disk device, and an optical disk device. The storage device stores a driver program, an operating system program, an application program, data, and the like used for processing in each unit. For example, the storage device includes, as a driver program, a communication driver program that executes a wireless communication method of IEEE802.11 standard and a wireless communication method of mobile communication (cellular communication), an input device driver program that controls the operation unit 115, and a display unit An output device driver program for controlling 114 is stored. In addition, the storage device has, as an operating system program, for example, a basic OS such as Android (registered trademark) OS or iOS (registered trademark), a wireless communication method of IEEE 802.11 standard, or wireless communication of mobile communication (cellular communication). A connection control program for performing authentication and the like in the system is stored. The storage device also stores, as application programs, an authentication program that performs web authentication, a time measurement program that measures time, a web browser program that acquires and displays a web page, an e-mail program that transmits and receives e-mail, and the like. The storage device may store various text data, video data, image data, and the like, or temporarily store temporary data related to a predetermined process. The storage device stores various information for connecting to a wireless LAN access point.

また、制御部110の記憶装置は、通信相手との間の通信に用いられる通信端末装置10及び通信相手それぞれのIPアドレス及びポート番号を含む接続情報を記憶している。更に、記憶装置は、通信相手との間でデータ同期処理対象のデータである同期データを記憶している。また、記憶装置は、上記通信相手との間で接続情報や同期データを暗号化したりパスワードを設定したりする場合は、その暗号化に用いる鍵情報やパスワードの情報を記憶している。   Further, the storage device of the control unit 110 stores connection information including the communication terminal device 10 used for communication with the communication partner and the IP address and port number of the communication partner. Furthermore, the storage device stores synchronization data that is data subject to data synchronization processing with the communication partner. The storage device stores key information and password information used for encryption when the connection information and synchronization data are encrypted with the communication partner and a password is set.

ネットワーク通信部111は、無線LANのアクセスポイント20を介して通信する無線LAN通信手段及びセルラー方式の移動体通信ネットワーク(以下、「セルラベアラ」ともいう。)の基地局60を介して通信する移動体通信手段として機能し、例えばシンセサイザ、周波数変換器,高周波増幅器、アンテナなどにより構成されている。ネットワーク通信部111は、アクセスポイント20との間でIEEE802.11等の所定の通信方式により無線通信するための高周波信号処理を実行したり、基地局60との間で3GやLTEなどの所定の通信方式により無線通信するための高周波信号処理を実行する。   The network communication unit 111 communicates via a wireless LAN communication means for communicating via a wireless LAN access point 20 and a base station 60 of a cellular mobile communication network (hereinafter also referred to as “cellular bearer”). It functions as a communication means, and is composed of, for example, a synthesizer, a frequency converter, a high frequency amplifier, an antenna, and the like. The network communication unit 111 executes high-frequency signal processing for wireless communication with the access point 20 using a predetermined communication method such as IEEE 802.11, or performs predetermined communication with the base station 60 such as 3G or LTE. High-frequency signal processing for wireless communication by a communication method is executed.

ベースバンド処理部112は、他の携帯電話機等の通信端末装置や各種サーバとの間で音声通信やデータ送受信の通信を行うためのデジタル処理を実行する。このベースバンド処理部112とネットワーク通信部111との間はD/A変換器やA/D変換器を介して接続されている。   The baseband processing unit 112 performs digital processing for performing voice communication and data transmission / reception communication with communication terminal devices such as other mobile phones and various servers. The baseband processing unit 112 and the network communication unit 111 are connected via a D / A converter or an A / D converter.

音入出力部113は、マイク、スピーカ、音信号処理部等で構成されている。マイクから出力されるアナログの音声信号は、音信号処理部でデジタル信号に変換され、制御部110やベースバンド処理部112等に送られる。スピーカは、音信号処理部でデジタル信号から変換されたアナログ信号が入力され、通話中の音声を出力したり、メールの着信音、電話の呼び出し音、音楽などを出力したりする。なお、スピーカは、通話中の音声を聞くための受話器用スピーカ(レシーバ)と、着信音や音楽などを出力する外部出力用スピーカとを別々に設けて構成してもいいし、これらの受話器用スピーカ及び外部出力用スピーカを兼用するように一つのスピーカで構成してもよい。   The sound input / output unit 113 includes a microphone, a speaker, a sound signal processing unit, and the like. The analog audio signal output from the microphone is converted into a digital signal by the sound signal processing unit and sent to the control unit 110, the baseband processing unit 112, and the like. The speaker receives an analog signal converted from a digital signal by the sound signal processing unit, and outputs a voice during a call, or outputs a ringtone for a mail, a ringing tone for a telephone, music, or the like. The speaker may be configured by separately providing a receiver speaker (receiver) for listening to voice during a call and an external output speaker for outputting ringtones, music, etc. You may comprise with one speaker so that a speaker and an external output speaker may be combined.

表示部114は、LCD(液晶ディスプレイ)や有機EL(Electro−Luminescence)ディスプレイ等で構成され、制御部110からの指令に基づいて各種画像を表示する。操作部115は、表示部114に組み込まれたタッチパネルや、各種の操作キーやボタン、電源ON/OFF手段としての電源スイッチなどで構成されている。この操作部115は、利用者が、通信端末装置10の本体電源をON/OFFしたり、通信端末装置10の本体電源をON/OFFしたり、通話開始、終話、メニュー選択、画面切り換え等を指示したり、情報を入力したりするときに用いられる。   The display unit 114 includes an LCD (liquid crystal display), an organic EL (Electro-Luminescence) display, and the like, and displays various images based on commands from the control unit 110. The operation unit 115 includes a touch panel incorporated in the display unit 114, various operation keys and buttons, a power switch as a power ON / OFF unit, and the like. The operation unit 115 allows the user to turn on / off the main body power of the communication terminal apparatus 10, turn on / off the main body power of the communication terminal apparatus 10, start a call, end a call, select a menu, switch screens, etc. This is used when instructing or inputting information.

また、通信端末装置10は、位置情報取得手段としてのGPS(Global Positioning System)部117、撮像手段としてのカメラ部118、センサー部119、電源供給手段としての電源供給部120、第2の通信手段としての近距離通信部130、図示しない時計部等も備えている。   Further, the communication terminal apparatus 10 includes a GPS (Global Positioning System) unit 117 as a position information acquisition unit, a camera unit 118 as an imaging unit, a sensor unit 119, a power supply unit 120 as a power supply unit, and a second communication unit. Short distance communication unit 130, a clock unit (not shown), and the like.

GPS部117は、GPS受信モジュールやGPSアンテナ等で構成され、地球の周りに配置されている複数のGPS衛星から電波を受信し、その受信結果に基づいて通信端末装置10が位置する緯度、経度及び高度のデータを算出する。   The GPS unit 117 includes a GPS receiving module, a GPS antenna, and the like, receives radio waves from a plurality of GPS satellites arranged around the earth, and the latitude and longitude at which the communication terminal device 10 is located based on the reception result And altitude data.

カメラ部118は、レンズや撮像デバイス等で構成され、人物や風景等を撮影する時に用いられる。撮像デバイスとしては、CCD(Charge Coupled Device)カメラやCMOSカメラを用いることができる。   The camera unit 118 includes a lens, an imaging device, and the like, and is used when shooting a person, a landscape, and the like. As the imaging device, a CCD (Charge Coupled Device) camera or a CMOS camera can be used.

センサー部119は、加速度センサー及び/又は地磁気センサー等で構成されている。加速度センサーは、1軸の加速度センサーであっていいし、2軸や3軸等の複数軸の加速度センサーであってもよい。また、地磁気センサーも、1軸の地磁気センサーであっていいし、2軸や3軸等の複数軸の地磁気センサーであってもよい。このセンサー部119の出力に基づいて、通信端末装置10の位置、向き、姿勢及び動きを示すデータを算出することができる。また、センサー部119の出力に基づいて、所定高度における基準位置から利用者の通信端末装置10が移動したときの加速度データや地磁気データの時間変化の情報である履歴情報から、通信端末装置10が位置している高度、角度等を示すデータを算出することができる。   The sensor unit 119 includes an acceleration sensor and / or a geomagnetic sensor. The acceleration sensor may be a uniaxial acceleration sensor or a multi-axis acceleration sensor such as a biaxial or triaxial acceleration sensor. Further, the geomagnetic sensor may be a uniaxial geomagnetic sensor, or may be a multiaxial geomagnetic sensor such as a biaxial or a triaxial. Based on the output of the sensor unit 119, data indicating the position, orientation, posture, and movement of the communication terminal device 10 can be calculated. Further, based on the output of the sensor unit 119, the communication terminal device 10 determines whether or not the communication terminal device 10 is based on history information that is information on temporal changes in acceleration data and geomagnetic data when the user's communication terminal device 10 moves from a reference position at a predetermined altitude. Data indicating the altitude, angle, and the like that are located can be calculated.

電源供給部120は、充電可能なバッテリー、バッテリーから各部に所定電圧の電力を供給する電力供給回路、バッテリーを充電する充電回路などを備えている。時計部はクロック回路等で構成され、正確な日時を計数し、各種情報の更新処理等のための時刻情報を生成する。   The power supply unit 120 includes a rechargeable battery, a power supply circuit that supplies power of a predetermined voltage from the battery to each unit, a charging circuit that charges the battery, and the like. The clock unit includes a clock circuit and the like, counts accurate date and time, and generates time information for various information update processing and the like.

近距離通信部130は、通信端末装置10の近くに位置する他の通信端末装置との間で所定の近距離無線通信方式により直接通信するためのものである。近距離無線通信方式としては、TypeA、TypeB、FeliCa(登録商標)等のNFC(Near Field Communication)のピアツーピア(P2P)通信方式(ISO14443A,ISO14443B,ISO7816,ISO15693,ISO18092,ISO21481参照)が挙げられる。上記近距離無線通信方式としては、ブルートゥース(登録商標)、Wi−Fiなどの無線Ethernet(登録商標)(例えばWi−Fi Direct、Wi−Fi TDLS(Tunneled Direct Link Setup)等)、ワイヤレスUSB、ZigBee等の電波を用いたピアツーピア通信方式、IrDA等の赤外線を用いた通信方式、可視光を用いた通信方式等の他のピアツーピア通信方式を用いてもよい。ここで、上記「Wi−Fi Direct」及び「Wi−Fi TDLS」は、無線LANの普及促進団体、Wi−Fiアライアンスが策定した仕様の通信方式である。「Wi−Fi Direct」を用いる場合は、前述のネットワーク通信部111により、他の通信端末装置との間のピアツーピア通信を行ってもよい。また、上記「ZigBee」は、基礎部分の電気的な仕様がIEEE802.15.4として規格化され、論理層以上の機器間の通信プロトコルの仕様がZigBeeアライアンスで策定された通信方式である。   The short-range communication unit 130 is for directly communicating with another communication terminal device located near the communication terminal device 10 by a predetermined short-range wireless communication method. NFC (Near Field Communication) peer-to-peer (P2P) communication methods (see ISO14443A, ISO14443B, ISO7816, ISO15693, ISO18092, ISO21481) such as Type A, TypeB, and FeliCa (registered trademark) are examples of short-range wireless communication methods. As the short-range wireless communication method, wireless Ethernet (registered trademark) such as Bluetooth (registered trademark) and Wi-Fi (for example, Wi-Fi Direct, Wi-Fi TDLS (Tunneled Direct Link Setup), etc.), wireless USB, ZigBee Other peer-to-peer communication methods such as a peer-to-peer communication method using radio waves such as IrDA, a communication method using infrared rays such as IrDA, and a communication method using visible light may be used. Here, the “Wi-Fi Direct” and “Wi-Fi TDLS” are communication systems with specifications established by a wireless LAN diffusion promotion organization, Wi-Fi Alliance. When “Wi-Fi Direct” is used, peer-to-peer communication with another communication terminal device may be performed by the network communication unit 111 described above. The “ZigBee” is a communication method in which the electrical specification of the basic part is standardized as IEEE802.15.4, and the specification of the communication protocol between devices above the logical layer is established by the ZigBee Alliance.

なお、複数種類の近距離無線通信方式が利用可能な場合、制御部110は、その複数種類の近距離無線通信方式について、どの近距離無線通信方式をデータ同期処理に優先的に用いるかを示す優先順位(優先度)が設定されていてもよい。この優先順位(優先度)の情報は、利用者が操作などによって設定変更できるようにしてもよい。   When a plurality of types of short-range wireless communication methods are available, the control unit 110 indicates which short-range wireless communication method is preferentially used for data synchronization processing for the plurality of types of short-range wireless communication methods. A priority (priority) may be set. The priority order (priority) information may be set and changed by the user through an operation or the like.

本実施形態の通信端末装置10の制御部110は、所定の制御プログラムが実行されることにより、ネットワーク通信部111や近距離通信部130などと協働し、後述する通信相手への接続情報(IPアドレス、ポート番号)の通知、通信相手の接続情報(IPアドレス、ポート番号)の確認、通信相手との間のデータ同期処理、バックアップサーバに対する同期データのアップロード及びダウンロード等を行う。   The control unit 110 of the communication terminal device 10 according to the present embodiment cooperates with the network communication unit 111, the short-range communication unit 130, and the like by executing a predetermined control program, so that connection information to a communication partner described later ( IP address, port number) notification, communication partner connection information (IP address, port number) confirmation, data synchronization processing with the communication partner, synchronization data upload and download to the backup server, and the like.

ここで、上記通信端末装置10及び通信相手それぞれの接続情報は、通信端末装置10と通信相手との間におけるデータ同期処理などを行うときに両者間の双方向通信の通信経路であるセッションを確立するときに使用される情報である。例えば、上記接続情報は、IPアドレスとポート番号とを組み合わせたソケット(ネットワークアドレス)である。また、本実施形態で使用されるIPアドレスは、例えば、IPv4(Internet Protocol Version 4)のIPアドレスやIPv6(Internet Protocol Version 6)のIPアドレスである。IPアドレスはグローバルIPアドレスでもよいしプライベートIPアドレスであってもよい。IPアドレスは、例えばDHCPサーバにより上記通信端末装置10や通信相手に対して互いに重複しないように払い出される。 Here, the connection information of the communication terminal device 10 and the communication partner establishes a session which is a communication path for bidirectional communication between the communication terminal device 10 and the communication partner when performing data synchronization processing between the communication terminal device 10 and the communication partner. It is information used when For example, the connection information is a socket (network address) that combines an IP address and a port number. The IP address used in the present embodiment is, for example, an IP address of IPv4 (Internet Protocol Version 4) or an IP address of IPv6 (Internet Protocol Version 6). The IP address may be a global IP address or a private IP address. IP address is paid out so as not to overlap each other with respect to the communication terminal device 10 and the communication partner by the DHCP server when e example.

図3は、本実施形態に係る通信端末装置10,15のソフトウェア構成の一例を示すブロック図である。図3の例において、外部との通信を行う物理層処理部1010は、前述のブルートゥース(登録商標)、ワイヤレスUSB、ZigBee、NFC、Wi−Fi Direct、Wi−Fi TDLS等の近距離通信処理部と、イーサネット(登録商標)/Wi−Fiやセルラベアラ(衛星通信を含む)等を介したネットワーク通信処理部とを有する。   FIG. 3 is a block diagram illustrating an example of a software configuration of the communication terminal apparatuses 10 and 15 according to the present embodiment. In the example of FIG. 3, the physical layer processing unit 1010 that performs communication with the outside is a short-range communication processing unit such as Bluetooth (registered trademark), wireless USB, ZigBee, NFC, Wi-Fi Direct, Wi-Fi TDLS, or the like. And a network communication processing unit via Ethernet (registered trademark) / Wi-Fi, cellular bearer (including satellite communication), or the like.

物理層処理部1010の近距離通信処理部上に位置するPAN(Personal Area Network)通信部1020は、数m程度の比較的近距離における装置間の通信ネットワークを介して、仮想的にTCP/IPプロトコルを用いた通信を行うための処理を行う部分であり、近距離通信処理部とTCP/IP(HTTP)通信処理部1030との間のインターフェースとして機能する。このPAN通信部1020により、物理層処理部1010の近距離通信処理部を介したP2P通信においても、グローバルIPアドレスとポート番号とを組み合わせたネットワークアドレスであるソケットに基づいて、外部の通信相手である他の通信端末装置やサーバと間で、TCP/IPプロトコルを用いたTCP/IP通信を行うことができる。   A PAN (Personal Area Network) communication unit 1020 located on the short-range communication processing unit of the physical layer processing unit 1010 is virtually TCP / IP via a communication network between devices at a relatively short distance of about several meters. This is a part that performs processing for performing communication using a protocol, and functions as an interface between the near field communication processing unit and the TCP / IP (HTTP) communication processing unit 1030. With this PAN communication unit 1020, even in P2P communication via the short-range communication processing unit of the physical layer processing unit 1010, an external communication partner can connect with a socket that is a network address combining a global IP address and a port number. TCP / IP communication using the TCP / IP protocol can be performed with a certain other communication terminal device or server.

物理層処理部1010のネットワーク通信処理部は、PAN通信処理部1020を介さずにTCP/IP(HTTP)通信処理部1030と通信することができる。従って、物理層処理部1010のネットワーク通信処理部及び外部のインターネットなど通信ネットワークを介したP2P通信においても、グローバルIPアドレスとポート番号とを組み合わせたネットワークアドレスであるソケットに基づいて、外部の通信相手である他の通信端末装置やサーバと間で、TCP/IPプロトコルを用いたTCP/IP通信を行うことができる。 The network communication processing unit of the physical layer processing unit 1010 can communicate with the TCP / IP (HTTP) communication processing unit 1030 without going through the PAN communication processing unit 1020. Accordingly, in P2P communication via the network communication processing unit of the physical layer processing unit 1010 and a communication network such as the external Internet, an external communication partner is based on a socket that is a network address combining a global IP address and a port number. is with another communication terminal apparatus and a server, it is possible to perform the TCP / IP communication using the TCP / IP protocol is.

TCP/IP(HTTP)通信処理部1030の上位に位置する終端のアプリケーション1040は、上記ソケットに基づくTCP/IP通信上でHTTP通信を行うことにより、他の通信端末装置との間でデータ同期処理を行ったり、バックアップサーバ50へ同期データをアップロードしたり、バックアップサーバ50から同期データをダウンロードしたりすることができる。終端のアプリケーション1040がTCP/IP通信やHTTP通信に対応していない場合は、TCP/IP(HTTP)通信処理部1030との間のインターフェースとして機能するアプリケーション(モジュール)である同期処理共通部1041を介して、データ同期処理や同期データのアプロード・ダウンロード処理を行う。これにより、終端のアプリケーション1040の種類にかかわらず、上記データ同期処理などに用いる通信のプロトコルをTCP/IPで統一することができる。 A terminal application 1040 positioned above the TCP / IP (HTTP) communication processing unit 1030 performs a data synchronization process with another communication terminal device by performing HTTP communication over TCP / IP communication based on the socket. Can be performed, the synchronization data can be uploaded to the backup server 50, or the synchronization data can be downloaded from the backup server 50. When the terminal application 1040 does not support TCP / IP communication or HTTP communication, the synchronization processing common unit 1041 that is an application (module) that functions as an interface with the TCP / IP (HTTP) communication processing unit 1030 is used. through to perform the a Tsu upload-download processing of data synchronization processing and synchronization data. As a result, regardless of the type of the terminal application 1040, the communication protocol used for the data synchronization processing or the like can be unified with TCP / IP.

以上のように、図3のソフトウェア構成により、近距離通信処理部を介したP2P通信及び外部のインターネットなど通信ネットワークを介したP2P通信のいずれにおいても、通信プロトコル(通信ロジック)をTCP/IPに統一することができる。従って、上記他の通信端末装置との間のデータ同期処理を制御する終端のアプリケーションは、そのデータ同期処理を行う通信が近距離通信処理部を介したP2P通信及び外部のインターネットなど通信ネットワークを介したP2P通信のいずれでるかを意識する必要がない。よって、終端のアプリケーションの実装負荷及び開発ボリュームを軽減できる。また、終端のアプリケーションは、TCP/IP通信(HTTP通信)に対応していない場合でも、同期処理共通部1041のアプリケーションを介してTCP/IP通信(HTTP通信)が可能なるため、終端のアプリケーションの実装負荷及び開発ボリュームを更に軽減できる。
また、終端のアプリケーションは、TCP/IP通信(HTTP通信)に対応していない場合でも、同期処理共通部1041のアプリケーションを介してTCP/IP通信(HTTP通信)が可能なるため、終端のアプリケーションの実装負荷及び開発ボリュームを更に軽減できる。
また、同期処理共通部1041のアプリケーションにおいて、TCP/IP通信(HTTP通信)上にさらなる独自プロトコルやこれを行う制御ロジックを共通モジュールとして実装することにより、終端アプリケーションの実装をさらに軽減することも可能である。
As described above, with the software configuration of FIG. 3, the communication protocol (communication logic) is set to TCP / IP in both the P2P communication via the near field communication processing unit and the P2P communication via the communication network such as the external Internet. Can be unified. Therefore, the terminal application that controls the data synchronization processing with the other communication terminal device described above is such that the communication that performs the data synchronization processing is performed via a communication network such as P2P communication via the short-range communication processing unit and the external Internet. there is no need to be aware of the Oh Luke in either the of P2P communication. Therefore, the mounting load and development volume of the terminal application can be reduced. In addition, even if the terminal application does not support TCP / IP communication (HTTP communication), TCP / IP communication (HTTP communication) is possible via the application of the synchronization processing common unit 1041. Mounting load and development volume can be further reduced.
In addition, even if the terminal application does not support TCP / IP communication (HTTP communication), TCP / IP communication (HTTP communication) is possible via the application of the synchronization processing common unit 1041. Mounting load and development volume can be further reduced.
In addition, the application of the synchronization processing common unit 1041 can further reduce the implementation of the end application by mounting a further unique protocol and control logic for performing this as a common module on TCP / IP communication (HTTP communication). It is.

図4は、本実施形態に係る通信端末装置10,15のソフトウェア構成の他の例を示すブロック図である。図4の例では、図3の物理層処理部1010の近距離通信処理部に対するPAN通信処理部1020の機能と、TCP/IP(HTTP)通信処理部1030の機能とを、同期処理共通部1041のアプリケーションに持たせている。図4の例によれば、図3のPAN通信処理部1020の開発が困難である場合でも、近距離通信処理部を介したP2P通信及び外部のインターネットなど通信ネットワークを介したP2P通信のいずれにおいても、通信プロトコル(通信ロジック)をTCP/IPに統一することができる。   FIG. 4 is a block diagram showing another example of the software configuration of the communication terminal apparatuses 10 and 15 according to this embodiment. In the example of FIG. 4, the function of the PAN communication processing unit 1020 and the function of the TCP / IP (HTTP) communication processing unit 1030 for the short-range communication processing unit of the physical layer processing unit 1010 of FIG. It is given to the application. According to the example of FIG. 4, even if it is difficult to develop the PAN communication processing unit 1020 of FIG. 3, in any of P2P communication via the short-range communication processing unit and P2P communication via a communication network such as the external Internet In addition, the communication protocol (communication logic) can be unified to TCP / IP.

次に、本実施形態の通信端末装置における接続情報の通知処理及びデータ同期処理について説明する。
一般的に通信端末装置10が通信ネットワークに接続すると、DHCPサーバからIPアドレスの払い出しを受ける。払い出されるIPアドレスは都度変更されるおそれがある。また、通信経路毎にIPアドレスは払い出されるので、通信経路が変更された場合にも、使用するIPアドレスは変更されることになる。IPアドレスの払い出しを受けた際、あるいは払い出しを受けて前回とIPアドレスが変更されていることを確認した場合には、通信相手に対し、新しいIPアドレスを伝達する必要がある。また、通信経路が変更された場合にも、通信相手に対し、使用する通信経路のIPアドレスを含む接続情報を伝達する必要がある。
Next, connection information notification processing and data synchronization processing in the communication terminal device of this embodiment will be described.
Generally, when the communication terminal apparatus 10 is connected to a communication network, it receives an IP address from the DHCP server. The IP address to be paid out may change from time to time. In addition, since the IP address is paid out for each communication path, the IP address to be used is also changed when the communication path is changed. When the IP address is paid out or when it is confirmed that the IP address has been changed from the previous time after the payout, it is necessary to transmit the new IP address to the communication partner. Even when the communication path is changed, it is necessary to transmit connection information including the IP address of the communication path to be used to the communication partner.

また、通信端末装置10が通信相手との間でデータ同期処理などを行うために双方向通信の通信経路としてのセッションを確立する場合、そのセッションの確立に用いられるネットワークアドレス(ソケット)のIPアドレス及びポート番号を含む接続情報を交換しておく必要がある。 Further, when the communication terminal apparatus 10 establishes a session as a communication path for bidirectional communication in order to perform data synchronization processing with a communication partner, the IP address of the network address (socket) used for establishing the session and the port number it is necessary to replace the including connection information.

上記接続情報の通知(伝達)又は交換を行うときの手段としては、通信端末装置10の端末識別情報(例えば、電話番号)を宛先とするSMSメッセージ、インターネット上で使用可能な電子メール、HTTP通信などを利用することができる。上記SMSメッセージは、WAP(Wireless Application Protocol)Push技術で送受信されるSMSメッセージであってもよい。また、通信端末装置同士が近接している場合には、前述の近距離無線通信方式によるP2P通信で互いのIPアドレスを教え合うことも可能である。また、SIP(Session Initiation Protocol)サーバを介した通信方式のように、通信端末装置からサーバに上記情報接続をアップロードして登録し、そのサーバに都度問い合わせて通信を行う方式により、上記接続情報の通知(伝達)又は交換を行うようにしてもよい。   Means for notifying (transmitting) or exchanging the connection information include an SMS message destined for terminal identification information (for example, a telephone number) of the communication terminal device 10, an e-mail usable on the Internet, and HTTP communication. Etc. can be used. The SMS message may be an SMS message transmitted / received using WAP (Wireless Application Protocol) Push technology. In addition, when communication terminal devices are close to each other, it is also possible to teach each other's IP address by P2P communication using the above-described short-range wireless communication method. Moreover, like the communication method via a SIP (Session Initiation Protocol) server, the above connection information is uploaded by registering the information connection from the communication terminal device to the server, and inquiring the server each time for communication. Notification (transmission) or exchange may be performed.

図5は、本実施形態に係る通信端末装置10におけるデータ同期処理に用いる接続情報(IPアドレス及びポート番号)の通知処理の一例を示す説明図である。図6(a)〜(d)は、図5の接続情報の通知処理が行われているときの通信端末装置10,15における接続情報(IPアドレス及びポート番号)の変化の様子の一例を示す説明図である。なお、図6の例は、通信端末装置10の通信相手が通信端末装置15である場合の例である。   FIG. 5 is an explanatory diagram showing an example of notification processing of connection information (IP address and port number) used for data synchronization processing in the communication terminal device 10 according to the present embodiment. 6A to 6D show an example of a change in connection information (IP address and port number) in the communication terminal apparatuses 10 and 15 when the connection information notification process of FIG. 5 is performed. It is explanatory drawing. The example of FIG. 6 is an example in the case where the communication partner of the communication terminal device 10 is the communication terminal device 15.

図5において、通信端末装置10とその通信相手である通信端末装置15はそれぞれ、DHCPサーバなどから振り出されたIPアドレスと双方向通信用の所定のポート番号とが初期設定されている(S101)。このように設定された通信端末装置10,15のIPアドレス及びポート番号を含む接続情報は、その通信端末装置間で近距離無線通信方式により互いに通知されて交換される(S102)。例えば、利用者は、外出前に通信端末装置10、15同士をかざし合い、確実に接続情報(IPアドレス、ポート番号)を交換した上で外出する。これにより、通信端末装置10、15は互いに通信相手の接続情報(IPアドレス、ポート番号)は把握することができ、その接続情報に基づいて互いに通信経路であるセッションを確立し、双方向通信が可能な状態になっている(図6(a)参照)。   In FIG. 5, each of the communication terminal device 10 and the communication terminal device 15 which is the communication partner thereof is initialized with an IP address derived from a DHCP server or the like and a predetermined port number for bidirectional communication (S101). ). The connection information including the IP addresses and port numbers of the communication terminal devices 10 and 15 set as described above is notified and exchanged between the communication terminal devices by the short-range wireless communication method (S102). For example, before going out, the user holds the communication terminal devices 10 and 15 together and securely goes out after exchanging connection information (IP address, port number). As a result, the communication terminal apparatuses 10 and 15 can grasp each other's connection information (IP address, port number) of the communication partner, establish a session as a communication path with each other based on the connection information, and perform bidirectional communication. This is possible (see FIG. 6A).

次に、通信端末装置10の移動などによって通信端末装置10が接続されているネットワークセグメントが変化すると、その変化後のネットワークセグメントのDHCPサーバから新しいIPアドレスが払い出され、通信端末装置10に設定されるIPアドレスが変更される(図6(b)参照)。なお、図5及び図6(b)の例では、IPアドレスの変更に伴い、通信端末装置10に設定されるポート番号も変更されている。このように通信端末装置10に設定されるIPアドレス及びポート番号が変更されると、図6(c)に示すように通信相手である通信端末装置15から通信端末装置10へのセッションが切断される。データ同期処理の実行中の場合は、そのデータ同期処理が中断されてしまう。   Next, when the network segment to which the communication terminal device 10 is connected changes due to movement of the communication terminal device 10 or the like, a new IP address is issued from the DHCP server of the network segment after the change, and is set in the communication terminal device 10 The IP address to be changed is changed (see FIG. 6B). In the example of FIGS. 5 and 6B, the port number set in the communication terminal device 10 is also changed with the change of the IP address. When the IP address and port number set in the communication terminal device 10 are changed in this way, the session from the communication terminal device 15 that is the communication partner to the communication terminal device 10 is disconnected as shown in FIG. The When the data synchronization process is being executed, the data synchronization process is interrupted.

次に、通信端末装置10は、自分自身に設定されたIPアドレスが変更されたことを検知すると(S103でYes)、近距離無線通信を介して通信相手である通信端末装置15とP2Pで直接通信可能か否かを判断する(S104)。   Next, when the communication terminal apparatus 10 detects that the IP address set for itself has been changed (Yes in S103), the communication terminal apparatus 10 directly communicates with the communication terminal apparatus 15 that is the communication partner via P2P via short-range wireless communication. It is determined whether or not communication is possible (S104).

ここで、通信端末装置15との近距離無線通信が可能な場合(S104でYes)は、通信端末装置10は、近距離無線通信を介して、通信端末装置10に設定されている変更後のIPアドレス及びポート番号を含む接続情報を通信端末装置15に送信して通知する(S105)。   Here, when the short-distance wireless communication with the communication terminal device 15 is possible (Yes in S104), the communication terminal device 10 has changed the communication terminal device 10 after the change set through the short-range wireless communication. The connection information including the IP address and the port number is transmitted to the communication terminal device 15 for notification (S105).

一方、通信端末装置15との近距離無線通信が不可能な場合(S104でNo)は、通信端末装置10は、セルラベアラや無線LAN(Wi−Fi)などのネットワーク通信を介して、通信端末装置10に設定されている変更後のIPアドレス及びポート番号を含む接続情報を通信端末装置15に送信して通知する(S106)。   On the other hand, when short-distance wireless communication with the communication terminal device 15 is impossible (No in S104), the communication terminal device 10 communicates with the communication terminal device via network communication such as a cellular bearer or a wireless LAN (Wi-Fi). The connection information including the changed IP address and port number set in 10 is transmitted to the communication terminal device 15 to be notified (S106).

上記ネットワーク通信を介した接続情報の通知には、例えばSMSや電子メールを用いることができるが、次のように通信端末装置10から通信相手である通信端末装置15へのセッションを用いた通知も可能である。すなわち、IPアドレス及びポート番号が変更された通信端末装置10は、通信相手の通信端末装置15の接続情報(IPアドレス及びポート番号)を把握しているため、図6(c)に示すように通信端末装置10から通信端末装置15へのセッションを確立することができる。このようにセッションを確立した後、通信端末装置10は、図6(d)に示すように変更後のIPアドレス及びポート番号を含む接続情報を通信端末装置15に送信して通知することができる。   For notification of connection information via the network communication, for example, SMS or e-mail can be used. However, notification using a session from the communication terminal device 10 to the communication terminal device 15 as a communication partner is also possible as follows. Is possible. That is, since the communication terminal device 10 whose IP address and port number have been changed knows connection information (IP address and port number) of the communication terminal device 15 of the communication partner, as shown in FIG. A session from the communication terminal device 10 to the communication terminal device 15 can be established. After establishing the session in this way, the communication terminal apparatus 10 can send and notify the communication terminal apparatus 15 of connection information including the changed IP address and port number as shown in FIG. 6 (d). .

なお、上記通信相手の通信端末装置15に割り当てられたIPアドレスがグローバルIPアドレスである場合、通信端末装置10は、変更後のIPアドレス及びポート番号を含む接続情報を、インターネットを介して通信端末装置15に送信して通知してもよい。   When the IP address assigned to the communication terminal device 15 of the communication partner is a global IP address, the communication terminal device 10 transmits the connection information including the changed IP address and port number to the communication terminal via the Internet. You may transmit to the apparatus 15 and you may notify.

また、IPアドレスに基づいて構築された通信端末装置10と通信相手の通信端末装置15との間の通信経路(セッション)が何らかの原因によって切断状態になった場合、上記SMSや電子メールを用いた通知のほか、所定のサーバを介した通信を用いることができる。この場合、各通信端末装置の接続情報(IPアドレス、ポート番号)を管理するサーバが設けられる。そして、例えば、通信端末装置10のIPアドレスが変更された場合、通信端末装置10は、その変更後のIPアドレス及びポート番号を含む接続情報を当該サーバにアップロードして登録する。同様に、通信相手の通信端末装置15のIPアドレスが変更された場合、通信端末装置15は、その変更後のIPアドレス及びポート番号を含む接続情報を当該サーバにアップロードして登録する。そして、通信端末装置10と通信相手の通信端末装置15との間の通信経路(セッション)が何らかの原因によって切断状態になった場合、通信端末装置10は当該サーバにアクセスして通信相手の通信端末装置15の変更後の接続情報を問い合わせて取得することができる。同様に、通信端末装置15は当該サーバにアクセスして通信端末装置10の変更後の接続情報を問い合わせて取得することができる。   In addition, when the communication path (session) between the communication terminal device 10 constructed based on the IP address and the communication terminal device 15 of the communication partner is in a disconnected state for some reason, the above SMS or electronic mail is used. In addition to notification, communication via a predetermined server can be used. In this case, a server for managing connection information (IP address, port number) of each communication terminal device is provided. For example, when the IP address of the communication terminal device 10 is changed, the communication terminal device 10 uploads and registers connection information including the changed IP address and port number to the server. Similarly, when the IP address of the communication terminal device 15 of the communication partner is changed, the communication terminal device 15 uploads and registers connection information including the changed IP address and port number to the server. When the communication path (session) between the communication terminal device 10 and the communication partner communication terminal device 15 is disconnected due to some cause, the communication terminal device 10 accesses the server and communicates with the communication partner communication terminal. The connection information after the change of the device 15 can be inquired and acquired. Similarly, the communication terminal device 15 can access the server and inquire and acquire connection information after the change of the communication terminal device 10.

上記新しい変更後の接続情報の通知を受信した通信端末装置15は、受信した接続情報に基づいて、その通信端末装置15内に記憶している通信端末装置10の接続情報(IPアドレス及びポート番号)を更新する。更に、通信端末装置15は、受信した接続情報に基づいて、図6(e)に示すように、通信端末装置15から通信端末装置10へのセッションを復帰させる。これにより、通信端末装置10及び通信端末装置15は互いに双方向通信が可能な状態になる。データ同期処理が一時中断されている場合は、そのデータ同期処理を継続することができる。   The communication terminal device 15 that has received the notification of the connection information after the new change, based on the received connection information, the connection information (IP address and port number) of the communication terminal device 10 stored in the communication terminal device 15. ). Furthermore, the communication terminal device 15 returns the session from the communication terminal device 15 to the communication terminal device 10 based on the received connection information, as shown in FIG. Thereby, the communication terminal device 10 and the communication terminal device 15 are in a state in which bidirectional communication is possible. When the data synchronization process is suspended, the data synchronization process can be continued.

なお、図5の例では、近距離無線通信を介して通信相手である通信端末装置15とP2Pで直接通信可能か否かを判断しているが(S104)、この判断を行わなくてもよい。この場合、IPアドレスの変更があったとき、通信端末装置10は、近距離無線通信ではなく一律にネットワーク通信を介して、通信端末装置10に設定されている変更後のIPアドレス及びポート番号を含む接続情報を通信端末装置15に送信して通知する。   In the example of FIG. 5, it is determined whether or not direct communication with the communication terminal device 15 which is a communication partner via P2P is possible via short-range wireless communication (S104), but this determination may not be performed. . In this case, when there is a change in the IP address, the communication terminal apparatus 10 uses the changed IP address and port number set in the communication terminal apparatus 10 through network communication instead of near field communication. The included connection information is transmitted to the communication terminal device 15 and notified.

図7は、本実施形態に係る通信端末装置10におけるデータ同期処理に用いる接続情報(IPアドレス及びポート番号)の通知処理の他の例を示す説明図である。図7の例では、IPアドレスが変更されたタイミングではなくデータ同期処理が必要になるタイミングで接続情報(IPアドレス及びポート番号)を通信相手に通知している。   FIG. 7 is an explanatory diagram illustrating another example of the notification process of the connection information (IP address and port number) used for the data synchronization process in the communication terminal device 10 according to the present embodiment. In the example of FIG. 7, the connection information (IP address and port number) is notified to the communication partner not at the timing when the IP address is changed but at the timing when data synchronization processing is required.

図7において、利用者によって通信相手との間のデータ同期処理を開始するように通信端末装置10が操作されると(S201)、通信端末装置10は、自分自身に設定されているIPアドレスが変更されているか否かを確認する(S202)。その後のS203〜S206の処理については、前述の図5におけるS103〜S106の処理と同様であるため、説明を省略する。   In FIG. 7, when the communication terminal apparatus 10 is operated by the user so as to start the data synchronization process with the communication partner (S201), the communication terminal apparatus 10 has an IP address set to itself. It is confirmed whether or not it has been changed (S202). The subsequent processes in S203 to S206 are the same as the processes in S103 to S106 in FIG.

なお、図7の例では、IPアドレスの確認(S202)及びIPアドレスが変更されているか否かの判断(S203)を行っているが、これらの処理を行わないようにしてもよい。この場合、利用者によるデータ同期処理の開始操作があったとき、通信端末装置10は、近距離無線通信を介して通信相手である通信端末装置15とP2Pで直接通信可能か否かを判断する(S204)。   In the example of FIG. 7, confirmation of the IP address (S202) and determination of whether or not the IP address has been changed (S203) are performed, but these processes may not be performed. In this case, when the user performs an operation to start data synchronization processing, the communication terminal device 10 determines whether or not direct communication with the communication terminal device 15 that is a communication partner via P2P is possible via short-range wireless communication. (S204).

また、図7の例では、近距離無線通信を介して通信相手である通信端末装置15とP2Pで直接通信可能か否かを判断しているが(S204)、この判断を行わなくてもよい。この場合、IPアドレスの変更があったとき、通信端末装置10は、近距離無線通信ではなく一律にネットワーク通信を介して、通信端末装置10に設定されている変更後のIPアドレス及びポート番号を含む接続情報を通信端末装置15に送信して通知する。   In the example of FIG. 7, it is determined whether or not direct communication with the communication terminal device 15 that is a communication partner via P2P is possible via short-range wireless communication (S204), but this determination may not be performed. . In this case, when there is a change in the IP address, the communication terminal apparatus 10 uses the changed IP address and port number set in the communication terminal apparatus 10 through network communication instead of near field communication. The included connection information is transmitted to the communication terminal device 15 and notified.

図8は、本実施形態に係る通信端末装置におけるデータ同期処理に用いる接続情報(IPアドレス及びポート番号)の通知処理の更に他の例を示す説明図である。また、図9(a)〜(e)は、図8の接続情報の通知処理が行われているときの通信端末装置における接続情報(IPアドレス及びポート番号)の変化の様子の一例を示す説明図である。なお、図8の例は、通信端末装置10の通信相手が通信端末装置15である場合の例である。   FIG. 8 is an explanatory diagram showing still another example of the notification process of the connection information (IP address and port number) used for the data synchronization process in the communication terminal apparatus according to the present embodiment. 9A to 9E illustrate an example of a change in connection information (IP address and port number) in the communication terminal device when the connection information notification process of FIG. 8 is performed. FIG. The example of FIG. 8 is an example in the case where the communication partner of the communication terminal device 10 is the communication terminal device 15.

図8において、通信端末装置10とその通信相手である通信端末装置15との間で互いにセッションを確立して双方向通信が可能な状態で(図9(a)参照)、データ同期処理を実行されている。このデータ同期処理中に、通信相手の通信端末装置15の移動などによって通信端末装置15が接続されているネットワークセグメントが変化すると、その変化後のネットワークセグメントのDHCPサーバから新しいIPアドレスが払い出され、通信端末装置15に設定されるIPアドレスが変更される(図9(b)参照)。なお、図8及び図9(b)の例では、IPアドレスの変更に伴い、通信端末装置15に設定されるポート番号も変更されている。このように通信端末装置15に設定されるIPアドレス及びポート番号が変更されると、図9(c)に示すように通信端末装置10から通信端末装置15へのセッションが切断され(S301)、データ同期処理が中断される。   In FIG. 8, a data synchronization process is executed in a state in which a session is established between the communication terminal device 10 and the communication terminal device 15 which is a communication partner of the communication terminal device 10 and bidirectional communication is possible (see FIG. 9A). Has been. If the network segment to which the communication terminal device 15 is connected changes due to movement of the communication terminal device 15 of the communication partner during this data synchronization processing, a new IP address is issued from the DHCP server of the network segment after the change. The IP address set in the communication terminal device 15 is changed (see FIG. 9B). In the example of FIGS. 8 and 9B, the port number set in the communication terminal device 15 is also changed with the change of the IP address. When the IP address and port number set in the communication terminal device 15 are changed in this way, the session from the communication terminal device 10 to the communication terminal device 15 is disconnected as shown in FIG. 9C (S301). Data synchronization processing is interrupted.

次に、通信端末装置10は、自分自身が把握している通信相手の通信端末装置15の接続情報(IPアドレス及びポート番号)に基づいて、上記切断されたセッションを復帰する処理を行う(S302)。ここで、通信端末装置15の接続情報(IPアドレス及びポート番号)が変更されていることによりセッション復帰に失敗すると(S303でYes)、近距離無線通信を介して通信相手である通信端末装置15とP2Pで直接通信可能か否かを判断する(S304)。   Next, the communication terminal device 10 performs processing for returning the disconnected session based on the connection information (IP address and port number) of the communication terminal device 15 of the communication partner known by itself (S302). ). Here, if the session return fails because the connection information (IP address and port number) of the communication terminal device 15 has been changed (Yes in S303), the communication terminal device 15 that is the communication partner via short-range wireless communication. It is determined whether or not direct communication is possible with P2P (S304).

ここで、通信端末装置15との近距離無線通信が可能な場合(S104でYes)は、通信端末装置10は、近距離無線通信を介して、通信端末装置15に設定されている変更後のIPアドレス及びポート番号を含む接続情報を通信端末装置15に対して要求する(S305、図9(d)参照)。そして、通信端末装置10は、近距離無線通信を介して、変更後の接続情報(IPアドレス及びポート番号)を含む応答を通信端末装置15から受信する(S306、図9(d)参照)。   Here, when the short-distance wireless communication with the communication terminal device 15 is possible (Yes in S104), the communication terminal device 10 has changed the communication terminal device 15 after the change set through the short-range wireless communication. Connection information including an IP address and a port number is requested to the communication terminal device 15 (S305, see FIG. 9D). Then, the communication terminal device 10 receives a response including the changed connection information (IP address and port number) from the communication terminal device 15 via the short-range wireless communication (S306, see FIG. 9D).

一方、通信端末装置15との近距離無線通信が不可能な場合(S304でNo)は、通信端末装置10は、セルラベアラや無線LAN(Wi−Fi)などのネットワーク通信を介して、通信端末装置1に設定されている変更後のIPアドレス及びポート番号を含む接続情報を通信端末装置15に要求する(S307)。そして、通信端末装置10は、ネットワーク通信を介して、変更後の接続情報(IPアドレス及びポート番号)を含む応答を通信端末装置15から受信する(S308、図9(d)参照)。 On the other hand, when short-range wireless communication with the communication terminal device 15 is impossible (No in S304), the communication terminal device 10 communicates with the communication terminal device via network communication such as a cellular bearer or a wireless LAN (Wi-Fi). the connection information including an IP address and port number of the changed set in 1 5 request to the communication terminal device 15 (S307). Then, the communication terminal apparatus 10 receives a response including the changed connection information (IP address and port number) from the communication terminal apparatus 15 via the network communication (see S308, FIG. 9D).

上記新しい変更後の接続情報を含む応答を受信した通信端末装置10は、受信した接続情報に基づいて、その通信端末装置10に記憶している通信端末装置15の接続情報(IPアドレス及びポート番号)を更新する(S309)。更に、通信端末装置10は、受信した接続情報に基づいて、図9(e)に示すように、通信端末装置10から通信端末装置15へのセッションを復帰させる。これにより、通信端末装置10及び通信端末装置15は互いに双方向通信が可能な状態になる。データ同期処理が一時中断されている場合は、そのデータ同期処理を継続することができる。   The communication terminal device 10 that has received the response including the new changed connection information, based on the received connection information, the connection information (IP address and port number) of the communication terminal device 15 stored in the communication terminal device 10. ) Is updated (S309). Furthermore, the communication terminal device 10 returns the session from the communication terminal device 10 to the communication terminal device 15 as shown in FIG. 9E based on the received connection information. Thereby, the communication terminal device 10 and the communication terminal device 15 are in a state in which bidirectional communication is possible. When the data synchronization process is suspended, the data synchronization process can be continued.

なお、図8の例では、近距離無線通信を介して通信相手である通信端末装置15とP2Pで直接通信可能か否かを判断しているが(S304)、この判断を行わなくてもよい。この場合、IPアドレスの変更があったとき、通信端末装置10は、近距離無線通信ではなく一律にネットワーク通信を介して、通信端末装置15に設定されている変更後のIPアドレス及びポート番号を含む接続情報を通信端末装置15に要求して取得する。   In the example of FIG. 8, it is determined whether or not direct communication with the communication terminal device 15 that is a communication partner via P2P is possible via short-range wireless communication (S304), but this determination may not be performed. . In this case, when there is a change in the IP address, the communication terminal device 10 uses the changed IP address and port number set in the communication terminal device 15 via network communication instead of near field communication. The connection information that is included is requested and acquired from the communication terminal device 15.

また、図8の例において、変更後のIPアドレス及びポート番号を含む接続情報を通信端末装置15に要求する際に所定時間のタイムアウトを設定してもよい。ここで、通信端末装置15からの応答を受信せずにタイムアウトが経過した場合、通信端末装置10は、通信端末装置15に対して例えば接続情報を催促するSMSや電子メールを送信する。これらのSMSや電子メールには、通信端末装置10側の接続情報(IPアドレス及びポート番号)を記載してもよい。   In the example of FIG. 8, a timeout for a predetermined time may be set when requesting connection information including the changed IP address and port number to the communication terminal device 15. Here, when a timeout elapses without receiving a response from the communication terminal device 15, the communication terminal device 10 transmits, for example, SMS or e-mail for prompting connection information to the communication terminal device 15. The connection information (IP address and port number) on the communication terminal device 10 side may be described in these SMS and e-mail.

図10は、本実施形態に係る複数の通信端末装置におけるデータ同期処理の一例を示すシーケンス図である。図10は、通信端末装置10とそのデータ同期処理対象の通信相手である通信端末装置15とが互いに離れた位置にあり、互いに近距離無線通信ができない状態の例を示している。   FIG. 10 is a sequence diagram illustrating an example of data synchronization processing in a plurality of communication terminal devices according to the present embodiment. FIG. 10 shows an example of a state in which the communication terminal device 10 and the communication terminal device 15 that is the communication partner of the data synchronization processing target are located at a distance from each other and short-range wireless communication is not possible.

なお、図10の例では、通信端末装置10における利用者による所定操作をトリガーにしてデータ同期処理を開始しているが、通信端末装置15における利用者による所定操作をトリガーにしてデータ同期処理を開始してもよい。また、利用者の操作によらずに、通信端末装置10又は通信端末装置15が予め設定された所定タイミングにデータ同期処理を自動開始してもよい。   In the example of FIG. 10, the data synchronization processing is started by a predetermined operation by the user in the communication terminal device 10 as a trigger, but the data synchronization processing is started by the predetermined operation by the user in the communication terminal device 15. You may start. Further, the communication terminal device 10 or the communication terminal device 15 may automatically start the data synchronization process at a predetermined timing set in advance, without being operated by the user.

図10において、通信端末装置10及び通信端末装置15はそれぞれ、データ同期処理に用いる接続情報(IPアドレス及びポート番号)を互いに交換して記憶している(S401)。また、ネットワークセグメントの変化等により通信端末装置10及び通信端末装置15の少なくとも一方のIPアドレスが変更になった場合は、前述の通知処理などにより、その変更になったIPアドレスを含む接続情報が相手側の通信端末装置に通知される(S401)。なお、IPアドレス変更時に変更後のIPアドレスを含む接続情報を通知するのではなく、データ同期処理開始時に、データ同期処理に用いる接続情報(IPアドレス及びポート番号)を通信端末装置10及び通信端末装置15が互いに確認するようにしてもよい。   In FIG. 10, each of the communication terminal device 10 and the communication terminal device 15 exchanges and stores connection information (IP address and port number) used for data synchronization processing (S401). Further, when the IP address of at least one of the communication terminal device 10 and the communication terminal device 15 is changed due to a change in the network segment or the like, the connection information including the changed IP address is obtained by the notification processing described above. The communication terminal device on the other side is notified (S401). Note that the connection information (IP address and port number) used for the data synchronization processing at the start of the data synchronization processing is not notified when the IP address is changed, but the connection information including the changed IP address is notified. The devices 15 may confirm each other.

次に、通信端末装置10は、利用者によるデータ同期処理を開始するための所定の操作がなされる(S402)と、近距離無線通信可能な位置まで通信相手の通信端末装置15が接近しているかが検知される(S403)。この検知は、例えば通信端末装置10で利用可能な前述の複数種類の近距離無線通信方式それぞれについて周辺の通信端末装置をサーチして検知することで行われる。ここで、通信端末装置15の接近しているか否かを判定するときの判定条件には、通信端末装置15からの電波の電界強度が一定以上であるか否かといった情報を利用してもよい。なお、本例では、通信端末装置10から離れた位置に通信端末装置15が位置しているため、いずれの近距離無線通信方式によっても通信端末装置15の接近が検知されない。   Next, when a predetermined operation for starting data synchronization processing is performed by the user (S402), the communication terminal device 10 approaches the communication terminal device 15 of the communication partner to a position where short-range wireless communication is possible. Is detected (S403). This detection is performed, for example, by searching for and detecting peripheral communication terminal devices for each of the above-described plural types of short-range wireless communication methods that can be used in the communication terminal device 10. Here, as a determination condition for determining whether or not the communication terminal device 15 is approaching, information such as whether or not the electric field strength of the radio wave from the communication terminal device 15 is a certain level or more may be used. . In this example, since the communication terminal device 15 is located at a position away from the communication terminal device 10, the approach of the communication terminal device 15 is not detected by any short-range wireless communication method.

次に、通信端末装置10は、予め記憶した通信端末装置15の接続情報(IPアドレス及びポート番号)に基づいて、移動体通信ネットワークやインターネットなどを介したネットワーク通信により通信端末装置15との間にデータ同期処理のための通信経路であるセッションを確立する(S404)。   Next, the communication terminal device 10 communicates with the communication terminal device 15 by network communication via a mobile communication network or the Internet based on the connection information (IP address and port number) of the communication terminal device 15 stored in advance. A session which is a communication path for data synchronization processing is established (S404).

上記セッションの確立により、通信端末装置15の所定のソケットのポートが開かれ、通信端末装置15自身が通信端末装置10に対するサーバとして機能する。そして、通信端末装置10は、ネットワーク通信により通信端末装置15のIPアドレス及びポート番号を指定してTCP/IP通信することができるようになる。また、通信端末装置10の所定のソケットのポートが開かれ、通信端末装置10自身が通信端末装置15に対するサーバとして機能する。そして、通信端末装置15は、ネットワーク通信により通信端末装置10のIPアドレス及びポート番号を指定してTCP/IP通信することができるようになる。   By establishing the session, a port of a predetermined socket of the communication terminal device 15 is opened, and the communication terminal device 15 itself functions as a server for the communication terminal device 10. Then, the communication terminal device 10 can perform TCP / IP communication by designating the IP address and port number of the communication terminal device 15 by network communication. Further, a port of a predetermined socket of the communication terminal device 10 is opened, and the communication terminal device 10 itself functions as a server for the communication terminal device 15. Then, the communication terminal device 15 can perform TCP / IP communication by designating the IP address and port number of the communication terminal device 10 through network communication.

上記セッションが確立された後、通信端末装置10は、移動体通信ネットワークなどを介したネットワーク通信により通信端末装置15との間でデータ同期処理を実行する(S405)。これにより、通信ネットワーク上のデータ同期支援などを行うサーバを介さずに、通信端末装置10及び通信端末装置15は互いにデータ同期処理を行うことができる。   After the session is established, the communication terminal apparatus 10 executes data synchronization processing with the communication terminal apparatus 15 through network communication via a mobile communication network or the like (S405). Thereby, the communication terminal device 10 and the communication terminal device 15 can mutually perform a data synchronization process, without going through the server which performs the data synchronization support etc. on a communication network.

また、通信端末装置10は、通信端末装置15との間のデータ同期処理の後、所定のアップロードタイミングを検知する(S406)と、バックアップサーバ50にアクセスし、通信端末装置10内に保存されているデータ同期処理されたデータ(以下「同期データ」という。)をバックアップサーバ50にアップロードする(S407)。上記同期データのアップロードを行う所定のタイミングとしては、同期データのアップロードについて予めスケジュールされたタイミング、利用者によって同期データのアップロード開始の操作がなされたタイミングなどが挙げられる。   Further, after detecting the predetermined upload timing after the data synchronization process with the communication terminal device 15 (S406), the communication terminal device 10 accesses the backup server 50 and is stored in the communication terminal device 10. The data that has been subjected to data synchronization processing (hereinafter referred to as “synchronous data”) is uploaded to the backup server 50 (S407). Examples of the predetermined timing for uploading the synchronous data include a timing scheduled in advance for uploading the synchronous data, a timing when an operation for starting uploading of the synchronous data is performed by the user, and the like.

また、通信端末装置10は、上記バックアップサーバ50への同期データのアップロードの後、所定のダウンロードタイミングを検知する(S408)と、バックアップサーバ50にアクセスし、バックアップサーバ50に保存されている同期データをバックアップサーバ50からダウンロードして通信端末装置10内に保存する(S409)。上記同期データのダウンロードを行う所定のタイミングとしては、同期データのダウンロードについて予めスケジュールされたタイミング、利用者によって同期データのダウンロード開始の操作がなされたタイミングなどが挙げられる。   In addition, after uploading the synchronization data to the backup server 50, the communication terminal device 10 detects the predetermined download timing (S408), accesses the backup server 50, and stores the synchronization data stored in the backup server 50. Is downloaded from the backup server 50 and stored in the communication terminal device 10 (S409). Examples of the predetermined timing for downloading the synchronous data include a timing scheduled in advance for downloading the synchronous data, a timing when an operation for starting the download of the synchronous data is performed by the user, and the like.

上記バックアップサーバ50に対する同期データのバックアップ(アップロード及びダウンロード)により、通信端末装置10、15をオールリセットして初期状態にした場合や、通信端末装置10、15が故障した場合に、同期データのロールバックが可能になる。   When the communication terminal devices 10 and 15 are all reset to the initial state by backup (upload and download) of the synchronization data to the backup server 50, or when the communication terminal devices 10 and 15 break down, the synchronization data roll Back is possible.

なお、バックアップサーバ50の負荷やバックアップサーバ50との通信経路における負荷が軽減するために、上記同期データのアップロードやダウンロードを行う所定のタイミングの頻度は、上記通信端末装置間のデータ同期処理の頻度よりも少なくしてもよい。   In order to reduce the load on the backup server 50 and the load on the communication path with the backup server 50, the frequency of the predetermined timing for uploading and downloading the synchronization data is the frequency of data synchronization processing between the communication terminal devices. May be less.

図11は、本実施形態に係る通信端末装置10におけるデータ同期処理の他の例を示すシーケンス図である。図11は、通信端末装置10とそのデータ同期処理対象の通信相手である通信端末装置15とが互いに接近し、互いに近距離無線通信が可能な状態の例を示している。   FIG. 11 is a sequence diagram illustrating another example of the data synchronization processing in the communication terminal device 10 according to the present embodiment. FIG. 11 shows an example of a state in which the communication terminal device 10 and the communication terminal device 15 that is the communication partner of the data synchronization processing target are close to each other and can perform short-distance wireless communication with each other.

なお、図11の例では、通信端末装置10における利用者による所定操作をトリガーにしてデータ同期処理を開始しているが、通信端末装置15における利用者による所定操作をトリガーにしてデータ同期処理を開始してもよい。また、利用者の操作によらずに、通信端末装置10又は通信端末装置15が予め設定された所定タイミングにデータ同期処理を自動開始してもよい。   In the example of FIG. 11, the data synchronization processing is started with a predetermined operation by the user in the communication terminal device 10 as a trigger. However, the data synchronization processing is started with the predetermined operation by the user in the communication terminal device 15 as a trigger. You may start. Further, the communication terminal device 10 or the communication terminal device 15 may automatically start the data synchronization process at a predetermined timing set in advance, without being operated by the user.

また、図11における接続情報の交換及び変更通知(S501)、同期データのアプロード(S507,S508)及び同期データのダウンロード(S509,S510)については、前述の図10におけるS401、S406〜S409と同様であるので、説明を省略する。   Further, the connection information exchange and change notification (S501), synchronization data upload (S507, S508), and synchronization data download (S509, S510) in FIG. 11 are the same as S401 and S406 to S409 in FIG. Therefore, explanation is omitted.

図11において、通信端末装置10は、利用者によるデータ同期処理を開始するための所定の操作がなされる(S502)と、近距離無線通信可能な位置まで通信相手の通信端末装置15が接近しているかが検知される(S503)。この検知は、例えば通信端末装置10で利用可能な前述の複数種類の近距離無線通信方式それぞれについて周辺の通信端末装置をサーチして検知することで行われる。ここで、通信端末装置15の接近しているか否かを判定するときの判定条件には、通信端末装置15からの電波の電界強度が一定以上であるか否かといった情報を利用してもよい。なお、本例では、通信端末装置10に接近した位置に通信端末装置15が位置しているため、通信端末装置15の接近が検知される。   In FIG. 11, when a predetermined operation for starting data synchronization processing by the user is performed, the communication terminal device 10 approaches the communication partner communication terminal device 15 to a position where short-range wireless communication is possible. Is detected (S503). This detection is performed, for example, by searching for and detecting peripheral communication terminal devices for each of the above-described plural types of short-range wireless communication methods that can be used in the communication terminal device 10. Here, as a determination condition for determining whether or not the communication terminal device 15 is approaching, information such as whether or not the electric field strength of the radio wave from the communication terminal device 15 is a certain level or more may be used. . In this example, since the communication terminal device 15 is located at a position close to the communication terminal device 10, the approach of the communication terminal device 15 is detected.

次に、複数種類の近距離無線通信方式で通信端末装置15の接近が検知された場合は、その複数種類の近距離無線通信方式について予め設定された優先順位(優先度)の情報に基づいて、データ同期処理に用いる近距離無線通信方式を決定する(S504)。なお、単一の近距離無線通信方式でのみ通信端末装置15の接近が検知された場合は、近距離無線通信方式を決定する処理(S504)は省略してもよい。   Next, when the approach of the communication terminal device 15 is detected by a plurality of types of short-range wireless communication schemes, based on information on priorities (priorities) preset for the plurality of types of short-range wireless communication schemes. The short-range wireless communication method used for the data synchronization process is determined (S504). In addition, when the approach of the communication terminal device 15 is detected only by a single short-range wireless communication method, the process of determining the short-range wireless communication method (S504) may be omitted.

次に、通信端末装置10は、予め記憶した通信端末装置15の接続情報(IPアドレス及びポート番号)に基づいて、上記通信端末装置15の接近が検知された所定の近距離無線通信方式による近距離無線通信により通信端末装置15との間にデータ同期処理のための通信経路であるセッションを確立する(S505)。   Next, the communication terminal device 10 uses the predetermined short-range wireless communication method in which the approach of the communication terminal device 15 is detected based on the connection information (IP address and port number) of the communication terminal device 15 stored in advance. A session which is a communication path for data synchronization processing is established with the communication terminal device 15 by distance wireless communication (S505).

上記セッションの確立により、通信端末装置15の所定のソケットのポートが開かれ、通信端末装置15自身が通信端末装置10に対するサーバとして機能する。そして、通信端末装置10は、近距離無線通信により通信端末装置15のIPアドレス及びポート番号を指定してTCP/IP通信することができるようになる。また、通信端末装置10の所定のソケットのポートが開かれ、通信端末装置10自身が通信端末装置15に対するサーバとして機能する。そして、通信端末装置15は、近距離無線通信により通信端末装置10のIPアドレス及びポート番号を指定してTCP/IP通信することができるようになる。   By establishing the session, a port of a predetermined socket of the communication terminal device 15 is opened, and the communication terminal device 15 itself functions as a server for the communication terminal device 10. Then, the communication terminal device 10 can perform TCP / IP communication by specifying the IP address and port number of the communication terminal device 15 by short-range wireless communication. Further, a port of a predetermined socket of the communication terminal device 10 is opened, and the communication terminal device 10 itself functions as a server for the communication terminal device 15. Then, the communication terminal device 15 can perform TCP / IP communication by specifying the IP address and port number of the communication terminal device 10 by short-range wireless communication.

上記セッションが確立された後、通信端末装置10は、上記所定の近距離無線通信方式による近距離無線通信により通信端末装置15との間でデータ同期処理を実行する(S506)。これにより、通信ネットワーク上のデータ同期支援などを行うサーバを介さずに、通信端末装置10及び通信端末装置15は互いにデータ同期処理を行うことができる。   After the session is established, the communication terminal device 10 executes data synchronization processing with the communication terminal device 15 by short-range wireless communication using the predetermined short-range wireless communication method (S506). Thereby, the communication terminal device 10 and the communication terminal device 15 can mutually perform a data synchronization process, without going through the server which performs the data synchronization support etc. on a communication network.

以上、本実施形態によれば、通信端末装置に設定されたIPアドレスが変更されたとき、その変更後のIPアドレスを含む接続情報が通信相手に送信して通知されるため、通信相手は、通知された変更後のIPアドレスに基づいて通信端末装置との間で双方向通信の通信経路を確立することができる。また、通信相手に通知される接続情報は当該通信端末装置に設定されたポート番号が含まれるので、通信相手は、通知されたポート番号に基づいて当該通信端末装置との間で双方通信の通信経路を確立することができる。
しかも、当該通信端末装置から通信相手に通知される接続情報に含まれるポート番号は、通信相手との双方向通信用に通信端末装置に設定された所定のポート番号である。そのため、通信端末装置から送信された接続情報が通信相手に到達するのが遅れ、通信端末装置にいったん設定された上記変更後のIPアドレスが別の通信端末装置に割り当てられた場合でも、その別の通信端末装置と通信相手との間で上記所定のポート番号に基づく双方向通信の通信経路は確立することができない。従って、上記接続情報を遅れて受信した通信相手が、意図しない別の通信端末との間で双方向通信を開始することができない。
よって、通信端末装置に設定されたIPアドレスが変更されたときに、変更後のIPアドレスに基づいて通信相手との間に双方向通信の通信経路を確立できるとともに、通信相手による意図しない通信を防止することができる。
As described above, according to the present embodiment, when the IP address set in the communication terminal device is changed, the connection information including the changed IP address is transmitted and notified to the communication partner. A communication path for bidirectional communication can be established with the communication terminal apparatus based on the notified changed IP address. Further, since the connection information notified to the communication partner includes the port number set in the communication terminal device, the communication partner communicates with the communication terminal device based on the notified port number. A route can be established.
Moreover, the port number included in the connection information notified from the communication terminal device to the communication partner is a predetermined port number set in the communication terminal device for bidirectional communication with the communication partner. Therefore, even when the connection information transmitted from the communication terminal device is delayed in reaching the communication partner and the changed IP address once set in the communication terminal device is assigned to another communication terminal device, A communication path for bidirectional communication based on the predetermined port number cannot be established between the communication terminal device and the communication partner. Therefore, the communication partner that received the connection information with a delay cannot start two-way communication with another unintended communication terminal.
Therefore, when the IP address set in the communication terminal device is changed, a communication path for bidirectional communication can be established with the communication partner based on the changed IP address, and unintended communication by the communication partner can be performed. Can be prevented.

なお、上記データ同期処理のための接続情報の通知を行った際に、その接続情報の通知を受けた通信端末装置側における意図しない通信を防止するために、次の(1)〜(3)のような対策を講じてもよい。   In order to prevent unintended communication on the side of the communication terminal device that has received the notification of the connection information when notification of the connection information for the data synchronization processing is performed, the following (1) to (3) The following measures may be taken.

(1)通信端末装置10、15に新たなIPアドレスが払い出されたとき、その都度、双方向通信のためのソケットを開く際のポート番号を変更する。 (1) When a new IP address is issued to the communication terminal devices 10 and 15, the port number for opening a socket for bidirectional communication is changed each time.

(2)通信端末装置10、15で送受信される接続情報(IPアドレス及びポート番号)のデータを共通鍵又は公開鍵暗号化方式によって暗号化する。ここで、暗号化データの復号に失敗した場合や、ハッシュ値が合致しない場合には、不正な通信相手とみなし、処理を継続しない。また、通信相手にエラー応答を返す。
ここで、共通鍵または公開鍵は通信を行う通信端末装置10,15同士が近接している場合には近距離無線通信を利用し、通信端末装置10,15同士が離れている場合にはネットワークを利用したSMS等を利用する等の設定情報を、通信端末装置10,15間で予め交換しておくか、通信端末装置10,15にプリセットしておいてもよい。
また、暗号化鍵(共通鍵及び公開鍵)は、データ同期処理を行う複数の通信端末装置の全てで統一してもよいし、その複数の通信端末装置それぞれに対して別々のものを設定してもよい。いずれの場合も、各通信端末装置間で予め取り決めた暗号化鍵を利用して接続情報(IPアドレス及びポート番号)のデータを暗号化する。
(2) Data of connection information (IP address and port number) transmitted / received by the communication terminal devices 10 and 15 is encrypted by a common key or public key encryption method. If the decryption of the encrypted data fails or the hash values do not match, it is regarded as an unauthorized communication partner and the processing is not continued. An error response is returned to the communication partner.
Here, the common key or the public key uses short-range wireless communication when the communication terminal devices 10 and 15 that perform communication are close to each other, and the network when the communication terminal devices 10 and 15 are separated from each other. The setting information such as using SMS or the like using may be exchanged between the communication terminal devices 10 and 15 in advance or preset in the communication terminal devices 10 and 15.
Also, the encryption key (common key and public key) may be unified for all of the plurality of communication terminal devices that perform data synchronization processing, or different keys may be set for each of the plurality of communication terminal devices. May be. In either case, data of connection information (IP address and port number) is encrypted using an encryption key decided in advance between the communication terminal devices.

(3)ID及びパスワードを用いた認証を利用したり併用したりして接続情報(IPアドレス及びポート番号)のデータを伝送する。IDやパスワードには通信端末装置に装着されたUSIM150内の情報や電話番号、MACアドレス、ICカード(NFC)の一意の識別情報(ID)、メールアドレスなどを利用してもよいし、さらに、これらのID及びパスワードを暗号化してもよい。 (3) Data of connection information (IP address and port number) is transmitted by using or using authentication using ID and password. For the ID and password, information in the USIM 150 attached to the communication terminal device, telephone number, MAC address, IC card (NFC) unique identification information (ID), e-mail address, etc. may be used. These IDs and passwords may be encrypted.

また、本実施形態によれば、通信相手との間に通信ネットワークを介した第1の通信経路又は近距離無線通信方式による第2の通信経路を確立することにより、通信ネットワーク上のサーバを介さずに通信相手との間でデータ同期処理を行うことができる。
しかも、通信相手との間のデータ同期処理に用いる通信経路として、通信ネットワークを介した第1の通信経路よりも近距離無線通信方式による第2の通信経路を優先して確立することにより、通信ネットワークにおける通信負荷を高めることなく、通信相手との間でデータ同期処理を行うことができる。
よって、通信ネットワーク上のサーバを介さずに且つ通信ネットワークにおける通信負荷を高めることなく、通信相手との間でデータ同期処理を行うことができる。
Further, according to the present embodiment, the first communication path via the communication network or the second communication path by the short-range wireless communication method is established between the communication partner and the communication partner via the server on the communication network. The data synchronization process can be performed with the communication partner.
In addition, the communication path used for the data synchronization process with the communication partner is established by giving priority to establishing the second communication path by the short-range wireless communication method over the first communication path via the communication network. Data synchronization processing can be performed with a communication partner without increasing the communication load on the network.
Therefore, data synchronization processing can be performed with a communication partner without going through a server on the communication network and without increasing the communication load on the communication network.

なお、上記実施形態において、通信端末装置10と通信相手の通信端末装置15との間のデータ同期処理において送受信されるデータそのものを暗号化してもよい。この場合、暗号化されたデータを受信した受信側の通信端末装置は、期待された所定のフォーマット(例えば電文形式)に復号化できるか否かに基づき、上記暗号化されたデータを送信した送信側の通信端末装置(又はその利用者)が正当な通信端末装置(又は正当な利用者)であるかを判断することができる。例えば、データ同期処理において、受信側の通信端末装置は、受信した暗号化済みのデータを期待された所定のフォーマット(例えば電文形式)に復号化できた場合は、送信側の通信端末装置(又はその利用者)が正当な通信端末装置(又は正当な利用者)であると判断できる。   In the above embodiment, the data itself transmitted and received in the data synchronization process between the communication terminal device 10 and the communication terminal device 15 of the communication partner may be encrypted. In this case, the receiving communication terminal device that has received the encrypted data transmits the encrypted data based on whether or not it can be decrypted into an expected predetermined format (for example, a message format). It is possible to determine whether the communication terminal device (or the user) on the side is a valid communication terminal device (or a valid user). For example, in the data synchronization process, if the received communication terminal apparatus can decrypt the received encrypted data into an expected predetermined format (for example, a message format), the transmitting communication terminal apparatus (or It can be determined that the user) is a valid communication terminal device (or a valid user).

10,15 通信端末装置
20 アクセスポイント
20A 無線通信可能エリア
30 バックボーンネットワーク
40 認証サーバ
50 バックアップサーバ
55 バックアップデータベース
60 基地局
60A セル
70 バックボーンネットワーク
80 認証サーバ
90 インターネット
DESCRIPTION OF SYMBOLS 10,15 Communication terminal device 20 Access point 20A Wireless communication area 30 Backbone network 40 Authentication server 50 Backup server 55 Backup database 60 Base station 60A Cell 70 Backbone network 80 Authentication server 90 Internet

特開2006−319453号公報JP 2006-319453 A

Claims (4)

通信ネットワークを介して通信する第1の通信手段と、
前記第1の通信手段を制御する制御手段と、を備える通信端末装置であって、
前記第1の通信手段を介した双方向通信によるデータ同期処理に用いられる当該通信端末装置及び通信相手それぞれのソケットを指定するIPアドレス及びポート番号を記憶する記憶手段と、
前記記憶手段に記憶されている当該通信端末装置及び通信相手それぞれのIPアドレス及びポート番号で指定されるソケットに基づいて前記通信相手との間で前記第1の通信手段を介したTCP/IPプロトコルの双方向通信によるデータ同期処理を行う手段と、を備え、
前記制御手段は、
前記通信相手との間の双方向通信によるデータ同期処理中に当該通信端末装置のIPアドレスが変更になったとき、前記双方向通信によるデータ同期処理を中断し、前記変更後のIPアドレスと組み合わせて前記データ同期処理に用いるポート番号を変更し、前記記憶手段に記憶されている当該通信端末装置のIPアドレス及びポート番号を前記変更後のIPアドレス及び前記変更後のポート番号で更新し、前記変更後のIPアドレス及び前記変更後のポート番号を前記通信相手に通知し、前記変更後のIPアドレス及び前記変更後のポート番号に基づいて前記双方向通信によるデータ同期処理を継続し、
前記通信相手との間の双方向通信によるデータ同期処理中に前記通信相手のIPアドレスが変更になったときは、前記双方向通信によるデータ同期処理を中断し、前記通信相手の変更後のIPアドレス及び変更後のポート番号を前記通信相手から受信し、前記記憶手段に記憶されている前記通信相手のIPアドレス及びポート番号を前記通信相手から受信した変更後のIPアドレス及び変更後のポート番号で更新し、前記通信相手から受信した前記変更後のIPアドレス及び前記変更後のポート番号に基づいて前記双方向通信によるデータ同期処理を継続するように、制御することを特徴とする通信端末装置。
First communication means for communicating via a communication network;
A communication terminal device comprising: a control means for controlling the first communication means,
Storage means for storing an IP address and a port number for designating the sockets of the communication terminal device and the communication counterpart used for data synchronization processing by bidirectional communication via the first communication means;
TCP / IP protocol via the first communication means with the communication partner based on the socket specified by the IP address and port number of the communication terminal device and the communication partner stored in the storage means Means for performing data synchronization processing by two-way communication,
The control means includes
When the IP address of the communication terminal device is changed during data synchronization processing by bidirectional communication with the communication partner, the data synchronization processing by bidirectional communication is interrupted and combined with the changed IP address. Changing the port number used for the data synchronization processing, updating the IP address and port number of the communication terminal device stored in the storage means with the changed IP address and the changed port number, the IP address and port number of the changed after the change is notified to the communication partner, and continue the data synchronization process by the bidirectional communication based on the IP address and port number of the changed after change,
When the IP address of the communication partner is changed during the data synchronization processing by the bidirectional communication with the communication partner, the data synchronization processing by the bidirectional communication is interrupted, and the IP after the change of the communication partner is changed. receives the address and port number of the changed from the communication party, IP address, and port number after change after change the IP address and port number of the communication partner stored in the storage means is received from the communication partner The communication terminal device is controlled so as to continue the data synchronization processing by the bidirectional communication based on the changed IP address and the changed port number received from the communication partner. .
請求項1の通信端末装置において、
当該通信端末装置の周辺に位置する装置と近距離無線通信方式によって通信する第2の通信手段を更に備え、
前記制御手段は、
前記通信相手と近距離無線通信方式による直接通信が可能な状態か否かを判断し、
前記近距離無線通信方式による直接通信が可能な場合は、前記近距離無線通信方式で前記変更後のIPアドレス及び前記変更後のポート番号を前記通信相手に送信し、
前記近距離無線通信方式による直接通信が不可能な場合は、前記通信ネットワークを介して前記変更後のIPアドレス及び前記変更後のポート番号を前記通信相手に送信するように、制御することを特徴とする通信端末装置。
The communication terminal device according to claim 1,
A second communication means for communicating with a device located in the vicinity of the communication terminal device by a short-range wireless communication method;
The control means includes
Determining whether or not direct communication by the near field communication method with the communication partner is possible,
If direct communication by the short-range wireless communication method is possible, send the changed IP address and the changed port number to the communication partner in the short-range wireless communication method,
When direct communication by the short-range wireless communication method is impossible, control is performed so that the changed IP address and the changed port number are transmitted to the communication partner via the communication network. A communication terminal device.
請求項1又は2の通信端末装置において、
前記制御手段は、
前記変更後のIPアドレス及びポート番号を所定の鍵で暗号化する処理又は前記変更後のIPアドレス及び前記変更後のポート番号を所定のパスワードを設定する処理を行い、
前記処理後のIPアドレス及びポート番号を前記通信相手に送信するように、制御することを特徴とする通信端末装置。
In the communication terminal device according to claim 1 or 2,
The control means includes
Performing a process of encrypting the changed IP address and port number with a predetermined key or a process of setting a predetermined password for the changed IP address and the changed port number;
A communication terminal apparatus that controls to transmit the processed IP address and port number to the communication partner.
請求項1乃至3のいずれかの通信端末装置において、
前記制御手段は、前記通信相手との間の双方向通信によるデータ同期処理に先立って、当該通信端末装置のIPアドレス及びポート番号を前記通信相手に送信するように、制御することを特徴とする通信端端末装置。
In the communication terminal device according to any one of claims 1 to 3,
The control means performs control so as to transmit the IP address and port number of the communication terminal device to the communication partner prior to data synchronization processing by bidirectional communication with the communication partner. Communication terminal device.
JP2014138974A 2014-07-04 2014-07-04 Communication terminal device Expired - Fee Related JP5918312B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014138974A JP5918312B2 (en) 2014-07-04 2014-07-04 Communication terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014138974A JP5918312B2 (en) 2014-07-04 2014-07-04 Communication terminal device

Publications (2)

Publication Number Publication Date
JP2016019048A JP2016019048A (en) 2016-02-01
JP5918312B2 true JP5918312B2 (en) 2016-05-18

Family

ID=55234007

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014138974A Expired - Fee Related JP5918312B2 (en) 2014-07-04 2014-07-04 Communication terminal device

Country Status (1)

Country Link
JP (1) JP5918312B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7111185B2 (en) 2019-01-18 2022-08-02 株式会社オートネットワーク技術研究所 Wiring material

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002084319A (en) * 2000-09-11 2002-03-22 World Axle Kk Communication system and method
JP2005286944A (en) * 2004-03-31 2005-10-13 Yamaguchi Technology Licensing Organization Ltd Network communication apparatus and its communication method
JP3892031B2 (en) * 2004-06-30 2007-03-14 株式会社吉田鎌ヶ迫 Peer-to-peer communication apparatus and computer program
JP2006229926A (en) * 2005-01-19 2006-08-31 Mitsubishi Electric Corp Communication system, onboard server, information terminal and translation server used therefor
JP2007088646A (en) * 2005-09-20 2007-04-05 Sony Corp Communication system, terminal, mail server, method of building up communication system, and program
JP2008098813A (en) * 2006-10-10 2008-04-24 Matsushita Electric Ind Co Ltd Information communication device, information communication method, and program
JP2011091661A (en) * 2009-10-23 2011-05-06 Nec Access Technica Ltd Telephone apparatus and telephone method
JP2012222378A (en) * 2011-04-04 2012-11-12 Hitachi Ltd Terminal keep-alive system and keep-alive interval determination method
JP5467468B2 (en) * 2011-11-14 2014-04-09 株式会社アイペックス Information supply system using communication line
KR20130060556A (en) * 2011-11-30 2013-06-10 삼성전자주식회사 Device and method for connecting device in wireless terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7111185B2 (en) 2019-01-18 2022-08-02 株式会社オートネットワーク技術研究所 Wiring material

Also Published As

Publication number Publication date
JP2016019048A (en) 2016-02-01

Similar Documents

Publication Publication Date Title
US8977856B2 (en) Methods and apparatus for use in sharing credentials amongst a plurality of mobile communication devices
EP2757738B1 (en) Communication control system, communication system, communication method, and carrier means storing comunication control program
CN111052780B (en) SIM card authentication method and terminal
US20180070407A1 (en) Communication device, system, and computer program product
CN109691171B (en) Method and device for configuring reflection service quality and method and device for sending information
JP7345062B2 (en) Relay connection establishment method and equipment
KR102138103B1 (en) Method of application connection for devices in a network
JP5612180B2 (en) Multilayer network connection communication system, smart terminal device and communication method thereof
WO2013127015A1 (en) Methods and apparatus for use in facilitating wi-fi peer-to-peer (p2p) wireless networking
JP5844441B1 (en) Communication terminal device and communication system
KR20140128764A (en) Method for connectivity information control and an electronic device thereof
JP5844440B1 (en) Communication terminal device and communication system
JP5918312B2 (en) Communication terminal device
JP6006752B2 (en) Communication terminal device
JP5813830B1 (en) Communications system
JP6127100B2 (en) Communication terminal device and system
JP5583168B2 (en) Network converter
JP2009194586A (en) Communication system
EP3172891B1 (en) Reliable transfer of data from an image capturing device to a remote data storage
CN110798830B (en) Method and device for searching for disconnection device
JP5961713B1 (en) Communications system
KR101528681B1 (en) Method for Providing Security Push Messaging
JP6704380B2 (en) External server, communication system and communication method
EP3657826B1 (en) Application connection for devices in a network
JP2011172068A (en) Remote operation system of portable terminal and method for remotely operating the same

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151204

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160114

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160407

R150 Certificate of patent or registration of utility model

Ref document number: 5918312

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees