JP2005137018A - Home terminal device and communication system - Google Patents

Home terminal device and communication system Download PDF

Info

Publication number
JP2005137018A
JP2005137018A JP2004350374A JP2004350374A JP2005137018A JP 2005137018 A JP2005137018 A JP 2005137018A JP 2004350374 A JP2004350374 A JP 2004350374A JP 2004350374 A JP2004350374 A JP 2004350374A JP 2005137018 A JP2005137018 A JP 2005137018A
Authority
JP
Japan
Prior art keywords
router
terminal device
home
address
data
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.)
Granted
Application number
JP2004350374A
Other languages
Japanese (ja)
Other versions
JP3640663B1 (en
Inventor
Kazuhiro Aizu
一寛 相津
Yasuyuki Shintani
保之 新谷
Shinichi Tsuchida
慎一 土田
Jiro Matsui
次郎 松井
Tamotsu Yatabe
保 矢田部
Masatoshi Nishira
正俊 西羅
Kiichi Kubo
喜一 久保
Masanori Murabayashi
正則 村林
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004350374A priority Critical patent/JP3640663B1/en
Application granted granted Critical
Publication of JP3640663B1 publication Critical patent/JP3640663B1/en
Publication of JP2005137018A publication Critical patent/JP2005137018A/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a home terminal device capable of real-time control requirement from a user outside of the house to the home terminal device such as a home electric appliance. <P>SOLUTION: An internet terminal 110 related to the invention is constituted of a communication portion 111 to send and receive a local packet generated in a packet generating portion 113 and a response local packet from a server device 200, a cryptography processing portion 112 to encrypt the local packet to be sent and to decrypt the received response local packet, the packet generating portion 113 to generate the local packet, a communication information recording portion 114 to hold a terminal ID to identify the internet terminal 110 and a password, a communication interval adjusting portion 115 to specify the communication interval which is an interval to transmit the local packet to a router 101 side periodically, and a control portion 116 to conduct a control process by transmitting a control information to an objective terminal device. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、外部ネットワークに接続されたルータとホームネットワークを介して接続されパケットデータの送受信を行う宅内端末装置及び当該宅内端末装置を用いた通信システムに関する。   The present invention relates to a home terminal device connected to a router connected to an external network via a home network and transmitting / receiving packet data, and a communication system using the home terminal device.

近年、ADSL(Asymmetric Digital Subscriber Line)や光ファイバ網等の大通信容量のブロードバンドであり、かつ常時接続可能なアクセス網が一般家庭にも急速に普及しつつある。また、家庭内の家電製品を有機的に結合するホームネットワークも数多く規格化されつつあり、今後ユーザは、外出先でインターネットに接続できる携帯端末を操作し、インターネット及びホームネットワーク経由で制御情報を自宅の家電機器に送信することにより、これら家電機器の遠隔操作が可能となることが予想される。   In recent years, broadband networks with large communication capacities such as ADSL (Asymmetric Digital Subscriber Line) and optical fiber networks, and always accessible access networks are rapidly spreading to ordinary homes. In addition, many home networks that organically combine home appliances in the home are being standardized, and in the future, users will be able to operate mobile terminals that can be connected to the Internet on the go, and send control information to the home via the Internet and the home network. It is expected that remote control of these home appliances will be possible by transmitting to other home appliances.

そして、従来、宅外のネットワークから宅内のネットワークに接続するに際しては、インターネット網に接続したルータにローカルアドレスが付与された複数の宅内のインターネット端末がホームネットワークを介して接続され、ルータからインターネットサービスプロバイダ(ISP)に通信回線を介してインターネット網への接続を行い、インターネットサービスプロバイダ(ISP)がルータにグローバルアドレスを付与する形態を用いている。   Conventionally, when connecting to a home network from a network outside the home, a plurality of home Internet terminals to which a local address is assigned to a router connected to the Internet network are connected via the home network. The provider (ISP) is connected to the Internet network via a communication line, and the Internet service provider (ISP) gives a global address to the router.

グローバルアドレスを用いて外部のサーバ装置から宅内のインターネット端末に対して制御要求を行う場合、従来、ルータに静的IPマスカレード設定を行う手法(例えば、特許文献1参照)とインターネット端末がポーリングを行う手法(例えば、特許文献2参照)とが用いられる。   When a control request is made from an external server device to a home Internet terminal using a global address, conventionally, a method of setting a static IP masquerade in a router (see, for example, Patent Document 1) and an Internet terminal perform polling. A method (for example, see Patent Document 2) is used.

静的IPマスカレードにおいては、ルータは変換テーブルにグローバルアドレス及びローカルアドレスを事前に固定的に登録しておくことで、特定のポート番号を送信先ポート番号としてパケットを受信した場合、送信先アドレスをインターネット端末のローカルアドレスに変換して、インターネット端末にパケットデータを中継する。従って、静的IPマスカレードにおいては、ローカル側からのみでなくグローバル側からもセッションを開始することが可能となる。   In static IP masquerade, the router registers the global address and local address in advance in the translation table in advance, so that when a packet is received with a specific port number as the destination port number, the destination address is set. The packet data is relayed to the Internet terminal by converting to the local address of the Internet terminal. Therefore, in static IP masquerade, it is possible to start a session not only from the local side but also from the global side.

また、インターネット端末のポーリング方式においては、ルータは、インターネット端末からサーバ装置宛のローカルパケットを受信し、パケットに含まれている送信元アドレスをルータのグローバルアドレスに変換し、送信元ポート番号をルータが使用可能なポート番号に変換した後にサーバ装置へ送信する。その際に、変換テーブルにインターネット端末のローカルアドレス、ルータのグローバルアドレスと、インターネット端末の送信元ポート番号、ルータの送信元ポート番号組み合わせの情報を一定時間保持する。次に、ルータは、サーバ装置からインターネット端末に対する制御内容を含む応答グローバルパケットを受信すると、変換テーブルを参照して応答グローバルパケットに含まれる送信先アドレス及び送信先ポート番号をインターネット端末のローカルアドレス及びインターネット端末の送信先ポート番号に変換することによりローカルにおける送信先を特定してインターネット端末側に中継する。   Also, in the Internet terminal polling method, the router receives a local packet addressed to the server device from the Internet terminal, converts the source address contained in the packet to the global address of the router, and sets the source port number to the router. Is converted to a usable port number and transmitted to the server device. At this time, the information of the combination of the local address of the Internet terminal, the global address of the router, the transmission source port number of the Internet terminal, and the transmission source port number of the router is held in the conversion table for a predetermined time. Next, when the router receives the response global packet including the control content for the Internet terminal from the server device, the router refers to the conversion table and sets the destination address and destination port number included in the response global packet to the local address of the Internet terminal and By converting the destination port number of the Internet terminal, the local destination is specified and relayed to the Internet terminal side.

図13は、従来のポーリング方式による宅内の端末操作のパケットデータの流れを示すシーケンス図である。   FIG. 13 is a sequence diagram showing a flow of packet data for terminal operation in a home by a conventional polling method.

通信システムは、宅外のユーザからの遠隔制御要求を宅内の端末装置に送信するサーバ装置1301、グローバルとローカルのアドレスの変換を行い宅外ネットワークと宅内ネットワークのパケットデータの中継を行うルータ1302、及び制御要求に従って家電機器等の制御を行うインターネット端末1303より構成される。   The communication system includes a server device 1301 that transmits a remote control request from a user outside the home to a terminal device in the home, a router 1302 that converts global and local addresses and relays packet data between the home network and the home network, And an Internet terminal 1303 that controls home appliances and the like according to the control request.

インターネット端末1303より制御要求があるか否かの確認を行うためにローカルパケット1304がサーバ装置1301側に送信され、サーバ装置1301側においては携帯端末装置のユーザから制御要求がある場合においては、返信である応答グローバルパケット1306に制御情報、制御対象の端末ID、送信元情報、ルータのグローバルアドレス等の送信先情報を付与してインターネット端末1303側に送信される。そして、制御要求が含まれる応答ローカルパケット1307をインターネット端末が受信することにより制御を行うことができる。尚、通信プロトコルにはコネクションレス型のUDP(User Datagram Protocol)を用いるものとする。   A local packet 1304 is transmitted to the server device 1301 side to confirm whether or not there is a control request from the Internet terminal 1303. If there is a control request from the user of the mobile terminal device on the server device 1301 side, a reply is sent. Is sent to the Internet terminal 1303 side with transmission destination information such as control information, control target terminal ID, transmission source information, and global address of the router. Control can be performed by the Internet terminal receiving the response local packet 1307 including the control request. Note that connectionless UDP (User Datagram Protocol) is used as the communication protocol.

そして、UDPを用いる通信においては、ローカルとグローバルの対応関係は一定期間の間ルータに記録されているため、この記録されている期間においてルータ1302が制御要求1306を受信した際においては対応表を参照して制御対象であるローカルアドレスを特定して制御要求1307をインターネット端末1303側に送信することができる。
特開2000−341337号公報 特開平08−204704号公報
In communication using UDP, the correspondence relationship between local and global is recorded in the router for a certain period. Therefore, when the router 1302 receives the control request 1306 during the recorded period, the correspondence table is displayed. By referring to the local address to be controlled, the control request 1307 can be transmitted to the Internet terminal 1303 side.
JP 2000-341337 A Japanese Patent Laid-Open No. 08-204704

しかしながら、前記ルータの静的IPマスカレードを利用した場合、ルータで用いるポート番号を固定的に宅内の端末装置に割り当てる等、一般の利用者が専門的なルータの設定をしなければならず手間を要している。また、前記遠隔操作は、サービス提供者側とユーザ側との間で信頼のおける安全な取引が行われることが前提となるが、特定のポート番号をインターネット網に対して公開するため、侵入など悪意のある第三者が遠隔制御情報を改竄することで、宅内家電機器を誤作動させる等、セキュリティ上の危険性を伴う可能性がある。   However, when the static IP masquerade of the router is used, a general user has to set up a specialized router such as assigning a port number used by the router to a terminal device in the home fixedly. I need it. In addition, the remote operation is based on the premise that a reliable and safe transaction is performed between the service provider side and the user side. If a malicious third party falsifies the remote control information, there is a possibility that there is a security risk such as malfunctioning home appliances.

また、単純なポーリング方式により、インターネット端末からサーバ装置へローカルパケットを送信する場合、ポーリングの間隔があるため、宅内の家電機器等への操作要求の即時性が失われる。すなわち、図13に示すように、ルータ1302に記録されるローカルアドレスとグローバルアドレスの対応関係はセキュリティ、ルータのメモリ容量節約等のために一定期間後には消滅されるため、例えば前記対応関係の消滅後に制御要求パケット1308をサーバ装置1301が送信してもルータ1302においてローカルとグローバルのアドレス変換を行うことができず制御要求の送信が行えず、インターネット端末1303からの確認要求を待つ必要があり、このため携帯端末装置からの要求が宅内の家電機器に届くのに一定期間要するという問題が生じている。最悪の場合においては、ポーリング間隔中に制御情報が消滅してしまうようなことも考え得る。また、ポーリング方式においては、ルータの種類やインターネット網への接続環境によってはインターネット端末が応答グローバルパケットを受信できない等の欠点がある。   In addition, when a local packet is transmitted from the Internet terminal to the server device by a simple polling method, since there is a polling interval, the immediacy of the operation request to the home appliances in the house is lost. That is, as shown in FIG. 13, the correspondence relationship between the local address and the global address recorded in the router 1302 disappears after a certain period in order to save security, memory capacity of the router, etc. Even if the server apparatus 1301 transmits the control request packet 1308 later, local and global address translation cannot be performed in the router 1302, the control request cannot be transmitted, and it is necessary to wait for a confirmation request from the Internet terminal 1303. For this reason, there is a problem that it takes a certain period of time for a request from the portable terminal device to reach the home electrical appliance. In the worst case, the control information may disappear during the polling interval. In addition, the polling method has a drawback that the Internet terminal cannot receive the response global packet depending on the type of router and the connection environment to the Internet network.

またさらに、ADSL等の常時接続が一旦切断される場合には、現状では再度ルータにインターネットサービスプロバイダから動的に以前と異なるグローバルアドレスが与えられる。このため、その後、ユーザが宅外の携帯端末装置からインターネット端末に制御情報をアクセスしようとしてもサーバ装置においてルータの現在割振られているグローバルアドレスが分からず通信が成立しないという問題もある。   Furthermore, when the always-on connection such as ADSL is once disconnected, a global address different from the previous one is dynamically given to the router again from the Internet service provider at present. For this reason, after that, even if the user tries to access the control information from the mobile terminal device outside the home to the Internet terminal, there is also a problem that the global address assigned to the router in the server device is not known and communication is not established.

本発明は、上述した課題を解決するものであり、従来のルータの機能を用いて、宅外のユーザから家電機器等の宅内端末装置に送信した制御要求を、待機期間を要せず制御対象の端末装置に送信することが可能となるような宅内端末装置を提供することを第一の目的とする。   The present invention solves the above-described problems, and uses a conventional router function to control a control request transmitted from a user outside the home to a home terminal device such as a home appliance without requiring a standby period. It is a first object of the present invention to provide an in-home terminal device that can be transmitted to other terminal devices.

また、ユーザが購入時にルータや宅内端末装置に複雑な設定等を行うことなく、即座に宅外の携帯端末装置からの宅内端末装置の遠隔制御が可能となるような宅内端末装置を提供することを第二の目的とする。   Also, to provide an in-home terminal device that allows a user to immediately remote control the in-home terminal device from a mobile terminal device outside the home without making complicated settings in the router or in-home terminal device at the time of purchase. Is the second purpose.

さらに、ルータに動的に新たなグローバルアドレスが与えられるような場合においても、サーバ装置からルータ及び宅内端末装置への制御情報を付与した通信が可能となるような宅内端末装置を提供することを第三の目的とする。   Furthermore, even when a new global address is dynamically given to the router, it is possible to provide an in-home terminal device that enables communication with control information from the server device to the router and in-home terminal device. Third purpose.

本発明に係る宅内端末装置は、サーバ装置が接続される外部ネットワークに接続されたルータとホームネットワークを介して接続され、データの送受信を行う宅内端末装置であって、前記ルータは、前記ルータに与えられるグローバルアドレスと前記宅内端末装置のローカルアドレスとの対応関係を所定の期間保持するものであり、前記宅内端末装置は、前記サーバ装置に送信するデータを生成する生成手段と、前記ルータを介して前記サーバ装置とデータの送受信を行う通信手段と、前記ルータにおける前記対応関係の保持期間の検出を行い、前記保持期間以下の期間をデータの送信間隔と判断する判断手段とを備え、前記通信手段は、前記送信間隔に従ってデータを繰り返して前記ルータ側に送信し、前記生成手段は、ヘッダ部に少なくとも送信元アドレスとして前記宅内端末装置の前記ローカルアドレスと、送信元ポート番号として前記宅内端末装置のローカルポート番号と、送信先アドレスとして前記サーバ装置のアドレスと、送信先ポート番号として前記サーバ装置のポート番号とを含み、データ部に少なくとも前記宅内端末装置に固有の端末IDを含むデータの生成を行うことを特徴とする。   A home terminal device according to the present invention is a home terminal device that is connected via a home network to a router connected to an external network to which a server device is connected, and transmits and receives data. The router is connected to the router. A correspondence relationship between a given global address and a local address of the in-home terminal device is held for a predetermined period, and the in-home terminal device is configured to generate data to be transmitted to the server device, and through the router Communication means for transmitting / receiving data to / from the server device, and a determination means for detecting a holding period of the correspondence relationship in the router and determining a period equal to or less than the holding period as a data transmission interval. The means repeats the data according to the transmission interval and transmits the data to the router side, and the generation means is less in the header part. Also the local address of the home terminal device as a source address, the local port number of the home terminal device as a source port number, the address of the server device as a destination address, and the server device as a destination port number. Data including a port number and including at least a terminal ID unique to the in-home terminal device in the data portion is generated.

これにより、ルータが常時接続のインターネット網に接続されている環境においても、グローバルであるサーバ装置側からローカルである家庭内に設置された家電機器等の宅内端末装置に制御要求を送信して、宅外のユーザの携帯端末装置からのリアルタイムでの宅内端末装置における遠隔操作を可能とする。   In this way, even in an environment where the router is connected to an always-connected Internet network, a control request is transmitted from a global server device side to a home terminal device such as a home appliance installed in a local home, Remote operation in a home terminal device in real time from a mobile terminal device of a user outside the home is enabled.

尚、本発明は、上述のような宅内端末装置として実現できるのみではなく、この宅内端末装置とルータとサーバ装置とからなる通信システム、この宅内端末装置が備える手段をステップとする通信方法、また、当該通信方法をコンピュータ等で実現させるプログラムとして実現したり、当該プログラムをDVD、CD−ROM等の記録媒体や通信ネットワーク等の伝送媒体を介して流通させることができるのは言うまでもない。   The present invention can be realized not only as a home terminal device as described above, but also as a communication system comprising this home terminal device, a router and a server device, a communication method comprising steps provided in this home terminal device, Needless to say, the communication method can be realized as a program that is realized by a computer or the like, or the program can be distributed via a recording medium such as a DVD or CD-ROM or a transmission medium such as a communication network.

以上のように、本発明によれば、ルータが常時接続のインターネット網に接続されている環境において、ポーリング方式であっても、即座に、グローバルであるサーバ装置側から、ローカルである家庭内に設置された家電機器等のインターネット端末の制御要求を送信して宅外のユーザの携帯端末装置からのリアルタイムでの遠隔操作を可能とする。   As described above, according to the present invention, even in a polling system in an environment where a router is connected to an always-on Internet network, a global server device can immediately enter a local home. A control request for an Internet terminal such as an installed home appliance is transmitted to enable remote operation in real time from a mobile terminal device of a user outside the home.

また、ルータにはポーリング方式を用いているために、専門知識を必要とするルータの設定が不要となり、くらしステーション等の宅内端末装置を購入したユーザはルータに接続するのみで宅外の端末装置からの遠隔操作を行うことが可能となり、ユーザの利便性を飛躍的に向上できる。   Also, because the router uses a polling method, it is not necessary to set up a router that requires specialized knowledge, and a user who purchases a home terminal device such as a living station can connect to the router just by connecting to the router. It is possible to perform remote operation from the remote control, which can greatly improve the convenience for the user.

またさらに、常時接続の環境において一旦接続が切れルータに動的に別のグローバルアドレスが付与されるような場合においても、本発明に係る宅内端末装置から定期的にグローバルパケットがサーバ装置に送信されインターネット端末情報が記録されるため、サーバ装置側においてルータの新たなグローバルアドレスを取得でき、携帯端末装置からの制御要求を送信できる。   Furthermore, even in the case where the connection is temporarily disconnected and another global address is dynamically assigned to the router in a constantly connected environment, a global packet is periodically transmitted from the home terminal device according to the present invention to the server device. Since the Internet terminal information is recorded, a new global address of the router can be acquired on the server device side, and a control request from the mobile terminal device can be transmitted.

本発明に係る宅内端末装置であるインターネット端末を用いた通信システムについて図面を参照して説明する。   A communication system using an Internet terminal which is a home terminal device according to the present invention will be described with reference to the drawings.

尚、本発明に係る宅内のインターネット端末は、通信プロトコルとしてコネクションレス型のUDPを用いた場合のルータの性質を利用するものであり、ルータ自体には新たな機能は必要とされない。これは、UDPを用いた通信においては、コネクションレス型なので通信相手から応答があるか否かは分からないためルータにおいてパケットデータの送受信時にローカルアドレスとグローバルアドレスの対応関係が一定期間のみ保持される。一方、TCPにおいては、データの送受信を行う双方のコネクションが確立時に変換テーブルを作り、コネクションが切断された時点においてローカルアドレスとグローバルアドレスの対応関係を消すような仕組みとなっている。従って、本発明に係る宅内のインターネット端末装置はUDPにおけるルータの性質を利用した方式となる。
(実施の形態1)
図1は、本実施の形態1に係る通信システムの全体構成を示す概略図である。本実施の形態1に係る通信システムにおいては、外部の携帯端末装置130からの制御情報をリアルタイムに宅内のインターネット端末に送信できることを特徴とする。
Note that the home Internet terminal according to the present invention uses the property of a router when connectionless UDP is used as a communication protocol, and a new function is not required for the router itself. This is because, in communication using UDP, since it is a connectionless type, it is not known whether there is a response from the communication partner, so the correspondence relationship between the local address and the global address is retained for a certain period when packet data is transmitted and received in the router. . On the other hand, in TCP, a conversion table is created when both connections for transmitting and receiving data are established, and the correspondence between the local address and the global address is deleted when the connection is disconnected. Therefore, the Internet terminal device in the home according to the present invention is a method using the property of the router in UDP.
(Embodiment 1)
FIG. 1 is a schematic diagram showing an overall configuration of a communication system according to the first embodiment. The communication system according to the first embodiment is characterized in that control information from an external portable terminal device 130 can be transmitted in real time to a home Internet terminal.

この通信システムは、携帯端末と宅内ネットワークの端末装置とを接続するための専用のサーバ装置200と、インターネット網120と、ユーザが宅内の端末装置に対して遠隔制御情報の送受信を行う携帯端末装置130と、宅内と宅外のパケットデータの中継を行うルータ101と、インターネット端末110とが有線や無線の通信回線を介して接続され構成される。尚、これらのネットワークは、ADSL、光ファイバ等により常時接続されているものとする。   This communication system includes a dedicated server device 200 for connecting a mobile terminal and a terminal device in a home network, an Internet network 120, and a mobile terminal device in which a user transmits and receives remote control information to and from the home terminal device. 130, a router 101 that relays packet data inside and outside the house, and an Internet terminal 110 are connected to each other via a wired or wireless communication line. Note that these networks are always connected by ADSL, optical fiber, or the like.

ローカルネットワーク100においてはルータ101を用いて宅内と宅外のパケットデータのやり取りが統一的に中継され、ルータ101と宅内のPC102等との間はLAN等を用いて互いに接続されている。また、ルータ101に接続された「くらしステーション」等のインターネット端末110から無線等により、例えば、エアコン103、炊飯器104、DVD−ビデオデッキ105等の家電機器に接続され、ECHONET等の通信プロトコルで通信している。   In the local network 100, the exchange of packet data inside and outside the home is uniformly relayed using the router 101, and the router 101 and the home PC 102 are connected to each other using a LAN or the like. In addition, it is connected to a home appliance such as an air conditioner 103, a rice cooker 104, a DVD-video deck 105, etc. by wireless from an internet terminal 110 such as a “living station” connected to the router 101, and a communication protocol such as ECHONET. Communicating.

ルータ101は、外部と内部のネットワークで送受信されるパケットデータを中継すると共に、IPヘッダの中に記述されているIPアドレスをグローバルからローカルに変換し、設定した条件に合致するパケットデータを意図的に棄てる機能を有している。   The router 101 relays packet data transmitted and received between the external and internal networks, converts the IP address described in the IP header from global to local, and intentionally transmits packet data that matches the set conditions. It has a function to dispose of.

外部ネットワークには、ユーザが外部からの制御情報を送信できる携帯電話等の携帯端末装置130と、送信された制御情報を受信して宅内の端末装置に送信して宅内の家電機器等の遠隔操作を行う専用のサーバ200が接続されている。   In the external network, a mobile terminal device 130 such as a mobile phone that allows a user to transmit control information from the outside, and remote control of home appliances and the like in the home by receiving the transmitted control information and transmitting it to the home terminal device Is connected to a dedicated server 200.

図1に示す点線において遠隔制御情報の流れを示す。携帯端末装置130のユーザからの送信された制御情報は専用のサーバ200に送信され、ユーザID、電話番号、パスワード等を用いてホームネットワークにおけるルータ101のグローバルアドレスを特定する。次に、サーバ200からグローバルアドレス、端末ID等が付与されたグローバルパケットが制御対象の端末装置103等に送信される。   The flow of remote control information is shown by the dotted line shown in FIG. The control information transmitted from the user of the mobile terminal device 130 is transmitted to the dedicated server 200, and the global address of the router 101 in the home network is specified using the user ID, telephone number, password, and the like. Next, a global packet to which a global address, a terminal ID, etc. are assigned is transmitted from the server 200 to the terminal device 103 to be controlled.

また、本発明においては宅内のインターネット端末110側から定期的にローカルパケットが送信されるため、通信プロトコルにUDPを用いる場合においてルータ101にルータ101のグローバルアドレスと宅内の端末装置のローカルアドレスとの対応関係を示す対応表を常に保持でき、UDPパケットを用いた通信においてもリアルタイムに制御情報をグローバル側からローカル側に送信できる。   In the present invention, since local packets are periodically transmitted from the Internet terminal 110 in the home, when UDP is used as the communication protocol, the router 101 has the global address of the router 101 and the local address of the terminal device in the home. A correspondence table indicating the correspondence relationship can always be held, and control information can be transmitted from the global side to the local side in real time even in communication using a UDP packet.

尚、ローカルネットワーク上の家電機器103等はインターネット端末110と無線を介して接続されているが、これに限定されるものではなく直接ローカルネットワークに接続して制御情報を送受信できるのは言うまでもない。   Note that the home appliances 103 and the like on the local network are connected to the Internet terminal 110 via radio, but the present invention is not limited to this, and it goes without saying that the control information can be directly transmitted and received by connecting to the local network.

図2は、本実施の形態1に係るサーバ200、インターネット端末110、及びインターネット端末に接続される家電機器等の端末装置103の機能ブロック図の一例を示す。   FIG. 2 shows an example of a functional block diagram of the terminal device 103 such as the home appliance connected to the server 200, the Internet terminal 110, and the Internet terminal according to the first embodiment.

サーバ装置200は、携帯端末装置130からの制御情報を受信すると共に、制御情報に送信先アドレス情報を付与したパケットデータを構築して目的のローカルネットワークのインターネット端末110に送信する機能を有し、通信部201と、暗号処理部202と、応答間隔調整部203と、制御要求処理部204と、端末情報記録部205と、パケット生成部206とを含む。   The server device 200 has a function of receiving control information from the mobile terminal device 130, constructing packet data in which transmission destination address information is added to the control information, and transmitting the packet data to the Internet terminal 110 of the target local network. A communication unit 201, an encryption processing unit 202, a response interval adjustment unit 203, a control request processing unit 204, a terminal information recording unit 205, and a packet generation unit 206 are included.

通信部201は、応答間隔調整部203から受信したパケットデータの応答間隔を取得すると共に、応答間隔に合わせてパケット生成部206において作成された応答グローバルパケットをインターネット網120を介して目的のインターネット端末110に送信する。   The communication unit 201 acquires the response interval of the packet data received from the response interval adjustment unit 203, and transmits the response global packet created by the packet generation unit 206 in accordance with the response interval via the Internet network 120 to the target Internet terminal 110.

暗号処理部202は、ルータ101から受信したグローバルパケットの復号化と、ルータ101側に送信する応答グローバルパケットの暗号化を行う。この暗号化及び復号化にはDES、3DES、AES等が用いられる。   The encryption processing unit 202 decrypts the global packet received from the router 101 and encrypts the response global packet transmitted to the router 101 side. For this encryption and decryption, DES, 3DES, AES, or the like is used.

応答間隔調整部203は、ルータ101から受信したグローバルパケットに含まれる通知間隔を読み出して応答グローバルパケットを返送するまでの時間を算出して、通信部201に算出した応答時間を渡す。   The response interval adjustment unit 203 reads the notification interval included in the global packet received from the router 101, calculates the time until the response global packet is returned, and passes the calculated response time to the communication unit 201.

制御要求処理部204は、携帯端末装置130から送信された制御要求を読み取りパケット生成部206に渡す。   The control request processing unit 204 reads the control request transmitted from the mobile terminal device 130 and passes it to the packet generation unit 206.

端末情報記録部205には、インターネット端末110から送信され、受信したグローバルパケットに含まれる端末ID、送信元アドレス、及び送信元ポート番号の組を端末情報として記録したテーブル205aを保持する。   The terminal information recording unit 205 holds a table 205a in which a set of terminal ID, transmission source address, and transmission source port number transmitted from the Internet terminal 110 and included in the received global packet is recorded as terminal information.

パケット生成部206は、グローバルパケットに対する応答グローバルパケットを生成する。具体的には、携帯端末装置130から送信された制御対象の端末IDを用いて端末情報記録部205に記憶されているテーブル205aを参照して送信先アドレス及び送信先ポート番号を特定して、ヘッダ部に送信先情報及び送信元情報を付与して、データ部に制御要求を含んだ制御要求コマンドを付与して応答グローバルパケットを作成する。   The packet generator 206 generates a response global packet for the global packet. Specifically, the destination address and the destination port number are identified by referring to the table 205a stored in the terminal information recording unit 205 using the terminal ID of the control target transmitted from the mobile terminal device 130, Transmission destination information and transmission source information are added to the header part, and a control request command including a control request is added to the data part to create a response global packet.

ルータ101は、ネットワーク上でパケットデータを中継する中継装置であり、宅内の端末110等はルータを介して統一的に外部ネットワークと接続されている。   The router 101 is a relay device that relays packet data on the network, and the home terminal 110 and the like are uniformly connected to the external network via the router.

ルータ101にはインターネットサービスプロバイダ(ISP)140から固有のグローバルアドレスが付与されており、ルータ101から送信されたグローバルパケットはプロバイダのルータに届くこととなる。そして、ネットワーク網を用いて送信先のサーバ200に送信される。   The router 101 is given a unique global address from the Internet service provider (ISP) 140, and the global packet transmitted from the router 101 reaches the router of the provider. Then, the data is transmitted to the destination server 200 using the network.

携帯端末装置130は、宅外のユーザが宅内の家電機器103等の遠隔操作を行うための制御情報を送受信する機器であり、制御情報としては、例えば「6時に炊飯器をスタート」、「7時からの番組の録画」等の情報であり、インターネット端末110側より送信される情報、例えば、予約完了、熱センサ、人感センサ等から送信された情報を受信することもできる。   The mobile terminal device 130 is a device that transmits and receives control information for a user outside the home to remotely control the home electrical appliance 103 and the like. As the control information, for example, “start rice cooker at 6 o'clock”, “7 It is also possible to receive information transmitted from the Internet terminal 110 side, for example, information transmitted from a reservation completion, a heat sensor, a human sensor, or the like.

携帯端末装置130のユーザは、宅内の端末装置の遠隔操作の専用のサーバ装置200に接続して遠隔操作対象の端末装置の特定及び制御要求情報の送信を行う。   The user of the mobile terminal device 130 connects to a server device 200 dedicated for remote operation of the terminal device in the home and specifies the terminal device to be remotely operated and transmits control request information.

インターネット端末110は、宅内の家電機器103等を統一的に管理することができる端末装置であり、ルータ101とLAN等を用いて互いに接続される。また、ホームネットワーク上において用いられる通信プロトコルはセキュアなプロトコルであり、例えばECHONET等の通信プロトコルが用いられる。そして、インターネット端末110はルータ101において固有のローカルアドレスが付与される。   Internet terminal 110 is a terminal device that can uniformly manage home appliances 103 and the like in a home, and is connected to each other using router 101 and a LAN or the like. The communication protocol used on the home network is a secure protocol, and for example, a communication protocol such as ECHONET is used. The Internet terminal 110 is given a unique local address in the router 101.

インターネット端末110は、通信部111、暗号処理部112、パケット生成部113、通知情報記録部114、通知間隔調整部115、及び制御部116とを含んで構成される。   The Internet terminal 110 includes a communication unit 111, an encryption processing unit 112, a packet generation unit 113, a notification information recording unit 114, a notification interval adjustment unit 115, and a control unit 116.

通信部111は、パケット生成部113において生成されたローカルパケット及びサーバ装置200から応答ローカルパケットの送受信を行う。また、本発明においては、通知間隔調整部115から取得した一定の通知間隔に従って定期的にローカルパケットをルータ101に送信することを特徴とする。   The communication unit 111 transmits and receives the local packet generated by the packet generation unit 113 and the response local packet from the server device 200. Further, the present invention is characterized in that local packets are periodically transmitted to the router 101 in accordance with a fixed notification interval acquired from the notification interval adjusting unit 115.

暗号処理部112は、送信するローカルパケットの暗号化と、受信した応答ローカルパケットの復号化を行う。尚、暗号化に用いるのは上述したサーバ装置200の暗号処理部202と同様にDES等である。   The encryption processing unit 112 encrypts the local packet to be transmitted and decrypts the received response local packet. Note that DES or the like is used for encryption in the same manner as the encryption processing unit 202 of the server apparatus 200 described above.

パケット生成部113は、送信先及び送信元のアドレス情報、ポート番号が付与されたヘッダ部及びサーバ装置200での応答の期間を示す応答間隔等のデータが付与されたデータ部を含むローカルパケットを生成する。   The packet generation unit 113 generates a local packet including a data portion to which data such as a destination portion and source address information, a header portion to which a port number is assigned, and a response interval indicating a response period in the server device 200 is provided. Generate.

通知情報記録部114は、インターネット端末110を識別する端末IDとパスワードを保持する。   The notification information recording unit 114 holds a terminal ID for identifying the Internet terminal 110 and a password.

通知間隔調整部115は、ルータ101における対応表の保持時間を参照して、ローカルパケットをルータ101側に定期的に送信する間隔である通知間隔を特定すると共に、通知間隔を通信部111に送信する。   The notification interval adjustment unit 115 refers to the holding time of the correspondence table in the router 101, specifies a notification interval that is an interval for periodically transmitting local packets to the router 101 side, and transmits the notification interval to the communication unit 111. To do.

制御部116は、ルータ101から宅外のユーザが携帯端末装置130を用いて指定した制御コマンドを含むローカルパケットを受信し、ローカルパケットに含まれる制御コマンドに従って制御情報を炊飯器104等の目的の家電機器に送信して制御処理を行う。   The control unit 116 receives a local packet including a control command designated by the user outside the home using the mobile terminal device 130 from the router 101, and transmits control information according to the control command included in the local packet to the target rice cooker 104 or the like. Transmit to home appliances to perform control processing.

図2においてインターネット端末110に接続される家電機器は、例えばエアコン103、炊飯器104、DVD−ビデオデッキ105等であり、本実施の形態1においてはインターネット端末110と接続される。また、この接続は無線、電灯線やLANのネットワーク網に直接接続することもできる。   2 are, for example, an air conditioner 103, a rice cooker 104, a DVD-video deck 105, and the like, and are connected to the Internet terminal 110 in the first embodiment. This connection can also be directly connected to a wireless, power line or LAN network.

家電機器103等は、通信部103a及び機器制御部103bを具備する。通信部103aは、インターネット端末110の制御部116と制御情報の送受信を行う処理部である。また、機器制御部103bは、インターネット端末110から制御命令を受信して家電機器103の制御を行う。この制御命令には「10時に炊飯器のスタート」等の命令である。   The home appliance 103 and the like include a communication unit 103a and a device control unit 103b. The communication unit 103a is a processing unit that transmits and receives control information to and from the control unit 116 of the Internet terminal 110. In addition, the device control unit 103 b receives the control command from the Internet terminal 110 and controls the home appliance 103. This control command is a command such as “start rice cooker at 10:00”.

次に宅外のユーザが携帯端末装置130を介して制御要求の送信を行う動作手順について説明すると、サーバ装置200の通信部201において、この制御要求を受信して、サーバ装置200に具備されている制御要求処理部204は、データ部802の制御要求コマンド809に、家電機器103等に対して制御を行うためのコマンドとデータを含んでフレーム2を生成し、暗号処理部202へ渡す。暗号処理部202はフレーム2を暗号化し、パケット生成部206は応答グローバルパケットを生成し、通信部201はルータ101へ送信する。   Next, an operation procedure in which a user outside the home transmits a control request via the mobile terminal device 130 will be described. The communication unit 201 of the server device 200 receives the control request and is provided in the server device 200. The control request processing unit 204 generates a frame 2 including a command and data for controlling the home appliance 103 and the like in the control request command 809 of the data unit 802, and passes it to the encryption processing unit 202. The encryption processing unit 202 encrypts the frame 2, the packet generation unit 206 generates a response global packet, and the communication unit 201 transmits it to the router 101.

次に、インターネット端末110の通信部111は、応答ローカルパケットを受信し、暗号処理部112は、応答ローカルパケットのデータ部802を復号化して制御部116へ渡す。制御部116は、応答ローカルパケットのデータ部802に含まれている制御要求コマンド809を取得し、制御要求コマンド809が家電機器103の制御要求であった場合、制御部116は、宅内通信網を介して、家電機器103に制御命令を送信する。   Next, the communication unit 111 of the Internet terminal 110 receives the response local packet, and the encryption processing unit 112 decrypts the response local packet data unit 802 and passes it to the control unit 116. The control unit 116 acquires the control request command 809 included in the data portion 802 of the response local packet, and when the control request command 809 is a control request for the home appliance 103, the control unit 116 sets the home communication network. Then, a control command is transmitted to the home appliance 103.

家電機器103の機器制御部103bは、制御命令を受信し、制御命令の内容に従って家電機器103の制御を行う。   The device control unit 103b of the home appliance 103 receives the control command and controls the home appliance 103 according to the content of the control command.

図3は、本実施の形態1に係るインターネット端末110のローカルパケットの送受信におけるシーケンス図である。尚、本実施の形態1の説明においては、パケットデータの名称をローカルパケット301、グローバルパケット302、応答グローバルパケット303、及び応答ローカルパケット304と送信過程毎に区別して説明する。   FIG. 3 is a sequence diagram of local packet transmission / reception of Internet terminal 110 according to the first embodiment. In the description of the first embodiment, the names of packet data will be described separately for each of the local packet 301, the global packet 302, the response global packet 303, and the response local packet 304 for each transmission process.

ローカルパケット301とは、インターネット端末110からルータ101に送信されるパケットデータであり、ヘッダ部に送信先アドレス、送信先ポート番号、送信元アドレス、送信元ポート番号、及びデータを含んだ本体部から構成される。そして、送信元アドレスにはインターネット端末110のローカルIPアドレスを含み、送信先アドレスにはサーバ装置200のグローバルIPアドレスを含む。   The local packet 301 is packet data transmitted from the Internet terminal 110 to the router 101. From the main body unit including the transmission destination address, transmission destination port number, transmission source address, transmission source port number, and data in the header portion. Composed. The source address includes the local IP address of the Internet terminal 110, and the destination address includes the global IP address of the server device 200.

グローバルパケット302とは、ルータ101からサーバ装置200に送信されるパケットデータであり、ルータ101において送信元アドレス及び送信元ポート番号がルータ101に固有のグローバルアドレスに変換され、送信元アドレスにルータ101のグローバルIPアドレスを含み、送信先アドレスにサーバ装置200のグローバルIPアドレスを含む。   The global packet 302 is packet data transmitted from the router 101 to the server apparatus 200. In the router 101, the transmission source address and the transmission source port number are converted into a global address unique to the router 101, and the transmission source address is changed to the router 101. The global IP address of the server apparatus 200 is included in the destination address.

応答グローバルパケット303とは、サーバ装置200から応答間隔に従ってルータ101に送信されるパケットデータであり、送信先アドレス及び送信先ポート番号にはルータ101のグローバルアドレス及びポート番号が記述される。   The response global packet 303 is packet data transmitted from the server apparatus 200 to the router 101 according to the response interval, and the global address and port number of the router 101 are described in the transmission destination address and transmission destination port number.

応答ローカルパケット304は、応答グローバルパケットを受信したルータ101が、送信先アドレスをルータ101のグローバルアドレス及びポート番号から対応表を参照してインターネット端末110のローカルアドレス及びポート番号に変換したパケットデータである。   The response local packet 304 is packet data in which the router 101 that has received the response global packet converts the destination address from the global address and port number of the router 101 to the local address and port number of the Internet terminal 110 by referring to the correspondence table. is there.

インターネット端末110は、ルータ101がローカルアドレスとグローバルアドレスとの対応表を保持する間隔の検出を行うと、インターネット端末110は通知間隔毎に定期的にルータ101側に対してローカルパケットを繰り返して送信することを特徴とする。   When the Internet terminal 110 detects the interval at which the router 101 holds a correspondence table between local addresses and global addresses, the Internet terminal 110 periodically transmits local packets to the router 101 at every notification interval. It is characterized by doing.

UDPにおいて、ルータ101は一定期間、グローバルとローカルの通信状態を対応表に記録する。そして、通常であればルータ101側に送信されたローカルパケットのローカルアドレスとグローバルアドレスの対応関係は保持期間が過ぎれば消滅するが、本発明においてはインターネット端末110から保持期間が過ぎる前の通知間隔毎にパケットデータが送信される。従って、ルータの対応表には常にローカルとグローバルとの対応関係が保持されている。尚、ルータ101におけるローカルアドレスとグローバルアドレスの対応関係の保持時間は、ルータ101が最後にローカルパケット301、又は応答グローバルパケット303を受信してから一定の期間(例えば3分)までである。   In UDP, the router 101 records global and local communication states in a correspondence table for a certain period. Normally, the correspondence between the local address and the global address of the local packet transmitted to the router 101 disappears when the retention period expires. In the present invention, the notification interval before the retention period expires from the Internet terminal 110 in the present invention. Packet data is transmitted every time. Therefore, the correspondence between the local and the global is always held in the router correspondence table. Note that the holding time of the correspondence relationship between the local address and the global address in the router 101 is a certain period (for example, 3 minutes) after the router 101 finally receives the local packet 301 or the response global packet 303.

従って、ルータにおいて常にグローバル側であるサーバ200からの制御要求を含む制御要求パケット305の送信先アドレス及び送信先ポート番号をグローバルからローカルに変換でき、制御目的のインターネット端末110に中継することができる。   Therefore, the destination address and destination port number of the control request packet 305 including the control request from the server 200 that is always on the global side in the router can be converted from global to local, and can be relayed to the Internet terminal 110 for control purposes. .

また、例えば、ユーザがルータ101の電源を切断する等、ADSLや光ファイバ等の常時接続が一旦切断されるような場合においては、現状では再度ルータ101にインターネットサービスプロバイダから動的に以前と異なるグローバルアドレスが与えられる。このため、携帯端末装置130からインターネット端末110に制御情報をアクセスしようとしても現状で割振られているルータ101のグローバルアドレスが所得できない問題がある。   In addition, for example, when the user temporarily disconnects the power source of the router 101 and the always-on connection such as ADSL or optical fiber is once disconnected, the router 101 dynamically changes from the Internet service provider to the router 101 at present. A global address is given. For this reason, there is a problem that even when trying to access control information from the mobile terminal device 130 to the Internet terminal 110, the global address of the router 101 currently allocated cannot be obtained.

しかし、本発明に係るインターネット端末110は、定期的に端末ID、送信元アドレス、及び送信元ポート番号等が付与されたパケットデータをサーバ装置200に送信するため、受信するサーバ装置200においては端末情報記録部205に常に現状の端末ID、送信先アドレス、及び送信先ポート番号を記載したテーブル205aが記録される。   However, the Internet terminal 110 according to the present invention periodically transmits packet data to which a terminal ID, a transmission source address, a transmission source port number, and the like are assigned to the server apparatus 200. A table 205a in which the current terminal ID, transmission destination address, and transmission destination port number are always recorded in the information recording unit 205.

従って、サーバ装置200は、制御対象のインターネット端末110の端末IDを確認することにより、ルータ101の現状のグローバルアドレスを常に知ることができ、一旦常時接続が切断されルータ101に別のグローバルアドレスが付与されるような場合においても、ユーザは特別な設定作業を行うことなく携帯端末装置からの制御情報が制御対象のインターネット端末110に送信される。   Therefore, the server apparatus 200 can always know the current global address of the router 101 by confirming the terminal ID of the Internet terminal 110 to be controlled, and once the connection is disconnected, the router 101 has another global address. Even in such a case, the control information from the portable terminal device is transmitted to the controlled Internet terminal 110 without performing any special setting work.

図4は、本実施の形態1に係るインターネット端末110が、ルータ101へローカルパケットを定期的に送信する際の動作手順を示すフローチャートである。また、図5は、本実施の形態1に係るインターネット端末110において生成されるローカルパケット500のデータ構成の一例を示す図である。   FIG. 4 is a flowchart showing an operation procedure when the Internet terminal 110 according to the first embodiment periodically transmits a local packet to the router 101. FIG. 5 is a diagram illustrating an example of a data configuration of the local packet 500 generated in the Internet terminal 110 according to the first embodiment.

通知情報記録部114は、端末ID及びパスワードを保持しており、パケット生成部113は、通知情報記録部114より取得する端末ID及びパスワードを用いてフレーム(以降、フレーム1と称す)を生成する。   The notification information recording unit 114 holds a terminal ID and password, and the packet generation unit 113 generates a frame (hereinafter referred to as frame 1) using the terminal ID and password acquired from the notification information recording unit 114. .

ローカルパケット500に含まれるフレーム1の例を図5に示すと、フレーム1はデータ部502に含まれる情報であり、インターネット端末110を識別する端末ID507、乱数であるランダム値508、端末ID507とローカルポート番号510とパスワードとランダム値508とを入力として所定の関数を使用して出力したダイジェスト値509、インターネット端末110が使用可能なローカルポート番号510、及びインターネット端末110がローカルパケットを定期的に送信する間隔を示す通知間隔511を含む。この所定の関数の例として、ハッシュ関数であるMD5等がある。   FIG. 5 shows an example of the frame 1 included in the local packet 500. The frame 1 is information included in the data portion 502, and includes a terminal ID 507 for identifying the Internet terminal 110, a random value 508 that is a random number, a terminal ID 507, and a local ID. The digest value 509 output using a predetermined function with the port number 510, password, and random value 508 as inputs, the local port number 510 usable by the Internet terminal 110, and the Internet terminal 110 periodically transmit local packets. A notification interval 511 indicating an interval to be performed is included. An example of the predetermined function is MD5 that is a hash function.

次に、暗号処理部112は、パケット生成部113からローカルパケット500を取得してフレーム1を暗号化し、通信部111に渡す(S401)。暗号化の例として、DES等がある。通信部111は、フレーム1をデータ部502として、送信先アドレス503、送信先ポート番号504、送信元アドレス505、送信元ポート番号506を含むヘッダ部501を付与して、ヘッダ部501及びデータ部502からなるローカルパケット500をルータ101側に送信する処理を行う。   Next, the encryption processing unit 112 acquires the local packet 500 from the packet generation unit 113, encrypts the frame 1, and passes it to the communication unit 111 (S401). Examples of encryption include DES. The communication unit 111 uses the frame 1 as the data unit 502, adds a header unit 501 including a transmission destination address 503, a transmission destination port number 504, a transmission source address 505, and a transmission source port number 506. A process of transmitting the local packet 500 consisting of 502 to the router 101 side is performed.

ここでローカルパケット500は、送信先アドレス503には、サーバ装置200のアドレスを含め、送信先ポート番号504に、サーバ装置200が使用可能なポート番号を含み、送信元アドレス505に、インターネット端末110のアドレスを含み、送信元ポート番号506に、ローカルポート番号510と同様のポート番号を含み、データ部502には暗号化されたフレーム1が含まれる。   Here, the local packet 500 includes the address of the server apparatus 200 in the transmission destination address 503, the port number that can be used by the server apparatus 200 in the transmission destination port number 504, and the Internet terminal 110 in the transmission source address 505. The source port number 506 includes the same port number as the local port number 510, and the data portion 502 includes the encrypted frame 1.

通信部111は、通知間隔調整部115から通知間隔を取得して、通知間隔となっているか否かの判定を行う(S402)。そして、通知間隔となる場合においては(S402でY)、ローカルパケット500をルータ101に送信して(S403)、通知間隔でない場合においては通知間隔の取得を行う(S402でN)。尚、インターネット端末110は、ローカルパケットを送信後、応答グローバルパケットの受信処理を行う。この受信処理の詳細は後述する。   The communication unit 111 acquires the notification interval from the notification interval adjustment unit 115 and determines whether or not the notification interval is reached (S402). When the notification interval is reached (Y in S402), the local packet 500 is transmitted to the router 101 (S403), and when it is not the notification interval, the notification interval is acquired (N in S402). The Internet terminal 110 receives the response global packet after transmitting the local packet. Details of this reception process will be described later.

図6は、本実施の形態1に係るルータ101が保持している対応表600の参考図である。この対応表600には、ローカルネットワーク側のローカルアドレス及びポート番号、外部ネットワーク側のグローバルアドレス及びポート番号が1対1で記述されている。   FIG. 6 is a reference diagram of the correspondence table 600 held by the router 101 according to the first embodiment. In this correspondence table 600, the local address and port number on the local network side and the global address and port number on the external network side are described on a one-to-one basis.

ルータ101が、インターネット端末110からローカルパケット500を受信し、グローバルパケットに変換して、サーバ装置200へ送信する変換処理について説明すると、ルータ101は、ローカルパケットを受信すると、グローバルアドレスの有効利用を図るためにローカルパケットに含まれる送信元アドレス505をルータ101のグローバルアドレスに変換し、送信元ポート番号506をルータ101が受信可能なポート番号に変換してグローバルパケットを生成してサーバ装置200に送信する。   The conversion process in which the router 101 receives the local packet 500 from the Internet terminal 110, converts it into a global packet, and transmits it to the server device 200 will be described. When the router 101 receives the local packet, it effectively uses the global address. For the purpose of illustration, the source address 505 included in the local packet is converted into the global address of the router 101, the source port number 506 is converted into a port number that can be received by the router 101, and a global packet is generated. Send.

また、ルータ101はインターネット端末110のローカルアドレス及び送信元ポート番号と、ルータ101のグローバルアドレス及びポート番号との組み合わせを、テーブル情報として対応表600に記録する。   Further, the router 101 records a combination of the local address and source port number of the Internet terminal 110 and the global address and port number of the router 101 in the correspondence table 600 as table information.

図7は、本実施の形態1に係るサーバ装置200が、ルータ101よりグローバルパケットを受信して、応答グローバルパケットをルータ101に返送する際の動作手順を示すフローチャートである。   FIG. 7 is a flowchart illustrating an operation procedure when the server apparatus 200 according to the first embodiment receives a global packet from the router 101 and returns a response global packet to the router 101.

最初に、サーバ200の通信部201は、ルータ101から送信されたグローバルグローバルパケットを受信し、暗号処理部202へ渡す。   First, the communication unit 201 of the server 200 receives the global global packet transmitted from the router 101 and passes it to the encryption processing unit 202.

次に、暗号処理部202は、グローバルパケットに含まれるデータ部502を復号化して端末情報記録部205へ渡す(S701)。そして、端末情報記録部205は、受信したパケットデータの認証処理を行うが、この認証処理において端末情報記録部205は、データ部502に含まれている端末ID507、ランダム値508、ダイジェスト値509、ローカルポート番号510を取得し、端末ID507に該当するパスワードを検索し、端末ID507、ローカルポート番号510、パスワード、ランダム値508を入力として、パケット生成部113と同様の関数を使用して得た値とダイジェスト値509とを比較して認証を行う(S702)。   Next, the encryption processing unit 202 decrypts the data unit 502 included in the global packet and passes it to the terminal information recording unit 205 (S701). The terminal information recording unit 205 performs an authentication process on the received packet data. In this authentication process, the terminal information recording unit 205 includes a terminal ID 507, a random value 508, a digest value 509, which are included in the data unit 502. A value obtained by acquiring the local port number 510, searching for a password corresponding to the terminal ID 507, using the terminal ID 507, the local port number 510, the password, and the random value 508 as input and using the same function as the packet generation unit 113 And the digest value 509 are compared to perform authentication (S702).

そして、認証に失敗した場合(S702でN)においては、受信したグローバルパケットを破棄する一方、認証に成功した場合(S702でY)において、端末情報記録部205は、グローバルパケットに含まれる端末ID507、送信元アドレス505、送信元ポート番号506の組を取得し、これらを端末情報としてテーブル205aを作成して記録する(S703)。   If the authentication fails (N in S702), the received global packet is discarded. On the other hand, if the authentication is successful (Y in S702), the terminal information recording unit 205 displays the terminal ID 507 included in the global packet. Then, a set of the transmission source address 505 and the transmission source port number 506 is acquired, and the table 205a is created and recorded as the terminal information (S703).

さらに、端末情報記録部205は、グローバルパケットに含まれる応答間隔511を取得して応答間隔調整部203へ渡す。応答間隔調整部203は、応答間隔511から、グローバルパケットに対する応答である応答グローバルパケットを返送する時間である応答返送時間を取得する(S704)。   Furthermore, the terminal information recording unit 205 acquires the response interval 511 included in the global packet and passes it to the response interval adjustment unit 203. The response interval adjustment unit 203 acquires a response return time, which is a time for returning a response global packet that is a response to the global packet, from the response interval 511 (S704).

次に、制御要求処理部204は、グローバルパケットを受信してから、算出された応答返送時間までの間に、携帯端末装置130からインターネット端末110に対する制御要求を受信したか否かを検出する(S705)。   Next, the control request processing unit 204 detects whether or not a control request for the Internet terminal 110 is received from the mobile terminal device 130 during the period from the reception of the global packet to the calculated response return time ( S705).

制御要求が発生していると判断される場合においては(S705でY)、制御要求処理部204は、制御要求内容を、応答グローバルパケットに含める制御要求コマンドに格納する(S706)。一方、応答返信時間までに制御要求が発生しなかった場合(S705でN)、制御内容なしを示すデータを制御要求コマンドに格納し(S707)、応答グローバルパケットに含めるフレーム(以降、フレーム2と称す)を生成し、暗号処理部202へ渡す。尚、携帯端末装置130のユーザから宅内の端末装置への制御要求なしの場合においては、サーバ装置200から特に制御要求なしという情報をインターネット端末110側に送信する必要がないためにS707に示す動作手順を省略して、携帯端末装置130からの制御要求が発生した場合においてのみ応答グローバルパケットを返送することもできる。   If it is determined that a control request has occurred (Y in S705), the control request processing unit 204 stores the control request content in the control request command included in the response global packet (S706). On the other hand, if the control request is not generated by the response reply time (N in S705), data indicating no control content is stored in the control request command (S707), and the frame included in the response global packet (hereinafter referred to as frame 2). Is generated and passed to the encryption processing unit 202. Note that when there is no control request from the user of the mobile terminal device 130 to the terminal device at home, the server device 200 does not need to transmit information indicating that there is no control request to the Internet terminal 110 side, so the operation shown in S707 The response global packet can be returned only when a control request from the mobile terminal device 130 is generated by omitting the procedure.

そして、制御要求処理部204において制御要求コマンド、制御対象のインターネット端末110に固有の端末ID、ポート番号、及び制御要求が記述されたフレーム2が作成され(S708)、パケット生成部206において、送信元及び送信先のアドレス及びポート番号の情報が記述されたヘッダ部及びフレーム2を含むデータ部からなる応答グローバルパケットが生成される。この応答グローバルパケットのデータ構成は図8において説明する。尚、制御コマンドには、例えば「エアコン103の動作状態をONにする」等の情報が記述される。   Then, the control request processing unit 204 creates the frame 2 in which the control request command, the terminal ID unique to the controlled Internet terminal 110, the port number, and the control request are described (S708), and the packet generation unit 206 transmits the frame 2 A response global packet including a header part in which information of the source and destination addresses and port numbers is described and a data part including frame 2 is generated. The data structure of the response global packet will be described with reference to FIG. In the control command, for example, information such as “turn on the operating state of the air conditioner 103” is described.

暗号処理部202は、パケット生成部206から生成された応答グローバルパケットを取得してデータ部の暗号化処理を行い、通信部201は暗号化処理を行った応答グローバルパケットをルータ101側に送信して一連の処理を終了する(S709)。   The encryption processing unit 202 acquires the response global packet generated from the packet generation unit 206 and performs encryption processing of the data unit, and the communication unit 201 transmits the response global packet subjected to encryption processing to the router 101 side. Then, the series of processing ends (S709).

図8は、本実施の形態1に係るサーバ装置200で生成される応答グローバルパケット800のデータ構成の一例を示す図である。   FIG. 8 is a diagram illustrating an example of a data configuration of the response global packet 800 generated by the server apparatus 200 according to the first embodiment.

制御要求処理部204において生成されるフレーム2は、データ部802に含まれ、制御対象であるインターネット端末110の端末ID807、グローバルパケットのデータ部502に含まれているローカルポート番号510を含むポート番号808、携帯端末装置130からインターネット端末110に要求する制御のコマンドを含む制御要求コマンド809を含む。   The frame 2 generated in the control request processing unit 204 is included in the data unit 802 and includes a port ID including the terminal ID 807 of the Internet terminal 110 to be controlled and the local port number 510 included in the data unit 502 of the global packet. 808, a control request command 809 including a control command requested from the mobile terminal device 130 to the Internet terminal 110 is included.

また、フレーム2は暗号処理部202において暗号化された後に、パケット生成部206に渡され、ヘッダ部801及びデータ部802を含む応答グローバルパケット800が生成される。   Further, the frame 2 is encrypted by the encryption processing unit 202 and then passed to the packet generation unit 206 to generate a response global packet 800 including a header unit 801 and a data unit 802.

生成された応答グローバルパケット800は、パケット生成部206から通信部201に渡され、通信部201は、端末情報記録部205のテーブル205aから制御対象となるインターネット端末110の端末ID、つまり、フレーム2に含まれる端末ID807と一致する端末IDを抽出し、端末ID807、送信先アドレス803、送信先ポート番号804を取得して応答グローバルパケットのヘッダに付与して応答グローバルパケットを生成する。   The generated response global packet 800 is passed from the packet generation unit 206 to the communication unit 201, and the communication unit 201 transmits the terminal ID of the Internet terminal 110 to be controlled from the table 205 a of the terminal information recording unit 205, that is, frame 2. The terminal ID that matches the terminal ID 807 included in the ID is extracted, the terminal ID 807, the transmission destination address 803, and the transmission destination port number 804 are acquired and attached to the header of the response global packet to generate a response global packet.

応答グローバルパケット800は、送信先アドレス803にルータ101のグローバルアドレスである端末のアドレスを含み、送信先ポート番号804に端末のポート番号を含み、送信元アドレス805にサーバ装置200のアドレスを含み、送信元ポート番号806にサーバ装置200が使用可能なポート番号を含む。   The response global packet 800 includes the address of the terminal that is the global address of the router 101 in the transmission destination address 803, the port number of the terminal in the transmission destination port number 804, and the address of the server device 200 in the transmission source address 805, The transmission source port number 806 includes a port number that can be used by the server apparatus 200.

次に、ルータ101が、サーバ装置200から応答グローバルパケットを受信して応答ローカルパケットに変換して、インターネット端末110へ送信する動作手順について説明する。   Next, an operation procedure in which the router 101 receives a response global packet from the server device 200, converts it into a response local packet, and transmits it to the Internet terminal 110 will be described.

まず、ルータ101は、サーバ装置200から応答グローバルパケットを受信すると、変換テーブルを参照して応答グローバルパケットに含まれる送信先アドレス803をインターネット端末110のアドレスに変換し、送信先ポート番号804をインターネット端末110のポート番号に変換して応答ローカルパケットを生成する。そして、ルータ101は応答ローカルパケットをインターネット端末110宛に送信する。   First, when receiving a response global packet from the server apparatus 200, the router 101 refers to the conversion table, converts the destination address 803 included in the response global packet to the address of the Internet terminal 110, and sets the destination port number 804 to the Internet. A response local packet is generated by converting the port number of the terminal 110. Then, the router 101 transmits a response local packet to the Internet terminal 110.

尚、ルータ101は、一定時間ローカルパケット、又は応答グローバルパケットの受信がない場合、変換テーブルに記録されているインターネット端末110のアドレス、ポート番号とルータ101のアドレス、ポート番号の組み合わせを削除する。そして、ルータ101の対応表に既に組み合わせが存在しない場合、応答グローバルパケットは破棄される。   When the local packet or response global packet is not received for a certain period of time, the router 101 deletes the combination of the address and port number of the Internet terminal 110 and the address and port number of the router 101 recorded in the conversion table. If no combination already exists in the correspondence table of the router 101, the response global packet is discarded.

図9は、本実施の形態1に係るインターネット端末110が応答ローカルパケットを受信する際の動作手順を示すフローチャートである。   FIG. 9 is a flowchart showing an operation procedure when the Internet terminal 110 according to the first embodiment receives a response local packet.

通信部111は、ローカルパケットをルータ101に送信後、通知間隔の間、応答ローカルパケットの受信待ちの処理を行う(S901)。   After transmitting the local packet to the router 101, the communication unit 111 waits for reception of a response local packet during the notification interval (S901).

そして、通知間隔内に応答ローカルパケットを受信した場合(S902でY)、応答ローカルパケットを暗号処理部112へ渡す。暗号処理部112は、応答ローカルパケットのデータ部802を復号化し、制御部116へ渡す。制御部116は、データ部802に含まれる端末ID807がインターネット端末110の保持している端末IDと一致しており、かつ、ポート番号808が、フレーム1生成時のローカルポート番号510と一致しているか判定することで認証を行い(S903)、認証に失敗した場合は(S903でN)、再び応答ローカルパケットの受信待ちに戻る。   When the response local packet is received within the notification interval (Y in S902), the response local packet is passed to the encryption processing unit 112. The encryption processing unit 112 decrypts the data part 802 of the response local packet and passes it to the control unit 116. The control unit 116 matches the terminal ID 807 included in the data unit 802 with the terminal ID held by the Internet terminal 110, and the port number 808 matches the local port number 510 when the frame 1 is generated. Authentication is performed (S903). If the authentication fails (N in S903), the process returns to waiting for a response local packet.

制御部116において、認証処理に成功した場合(S903でY)、データ部802の制御要求コマンド809を取得して読み出す。そして、制御要求コマンド809の内容が「制御内容なし」を示すデータである場合(S904でN)、受信処理を終了する。   When the control unit 116 succeeds in the authentication process (Y in S903), the control request command 809 of the data unit 802 is acquired and read. If the content of the control request command 809 is data indicating “no control content” (N in S904), the reception process ends.

一方、制御要求コマンド809の内容が「制御要求有り」でインターネット端末110又は接続されている家電機器103等を制御するものであれば(S904でY)、制御要求コマンド809の内容に従ってインターネット端末110又は接続されている家電機器103等を制御する(S905)。この制御要求には、例えば「7時よりエアコンの始動」等の要求である。   On the other hand, if the content of the control request command 809 is “control request present” and controls the Internet terminal 110 or the connected home appliance 103 (Y in S904), the Internet terminal 110 is in accordance with the content of the control request command 809. Alternatively, the connected home appliance 103 is controlled (S905). This control request is, for example, a request such as “starting the air conditioner from 7 o'clock”.

また、通信部111が、通知間隔の時間内に応答ローカルパケットを受信しなかった場合(S902でN)、通知間隔調整部115は、通知間隔を短縮する処理を行う(S906)。例えば、通知間隔を初期値として20分に設定した場合、19分、18分…と、応答ローカルパケットを受信するまで、1分単位で短縮していく。通知間隔を10分まで短縮した時に応答ローカルパケットを受信したとすると、以後、通知間隔を10分として、10分毎にローカルパケットをルータ101側に送信する。尚、この場合においては通知間隔を10分以下の、例えば9分30秒等と設定できることは言うまでもない。   If the communication unit 111 does not receive a response local packet within the notification interval (N in S902), the notification interval adjustment unit 115 performs processing to shorten the notification interval (S906). For example, when the notification interval is set to 20 minutes as an initial value, 19 minutes, 18 minutes,... Are shortened in increments of 1 minute until a response local packet is received. If a response local packet is received when the notification interval is shortened to 10 minutes, the notification interval is set to 10 minutes and the local packet is transmitted to the router 101 every 10 minutes. In this case, it goes without saying that the notification interval can be set to 10 minutes or less, for example, 9 minutes 30 seconds.

尚、本実施の形態1に係るインターネット端末110は、常に上述した通知間隔調整部115における通知間隔の短縮を行う動作を行うのではなく、起動時において接続されているルータ101のテーブル保持時間を確認することができる。   Note that the Internet terminal 110 according to the first embodiment does not always perform the operation of shortening the notification interval in the notification interval adjustment unit 115 described above, but the table holding time of the connected router 101 at the time of activation. Can be confirmed.

図10は、インターネット端末110の起動時においてルータ101におけるローカルアドレスとグローバルアドレスの対応関係の保持時間を取得するためにインターネット端末110から送信されるローカルパケットデータのデータ構成を示す図である。   FIG. 10 is a diagram showing a data configuration of local packet data transmitted from the Internet terminal 110 in order to acquire the holding time of the correspondence relationship between the local address and the global address in the router 101 when the Internet terminal 110 is activated.

例えば、インターネット端末110は、パケット生成部113で、ヘッダ部に含まれる送信先ポート番号に4つの異なる送信先ポート番号(例えば5000から5003)、異なる送信元ポート番号、及びデータ部に含まれる応答間隔に4つの異なる通知時間(例えば1分から4分の1分間隔)を付与した4つのローカルパケットを生成して、通信部111からサーバ装置200側に同時に送信する。尚、この通知間隔やポート番号は例示であり、本発明はこれに限定されるものではない。   For example, the Internet terminal 110 uses the packet generation unit 113 to include four different transmission destination port numbers (for example, 5000 to 5003), different transmission source port numbers, and a response included in the data portion in the transmission destination port number included in the header portion. Four local packets having four different notification times (for example, one to one-fourth intervals) are generated in the interval, and are simultaneously transmitted from the communication unit 111 to the server apparatus 200 side. The notification interval and the port number are examples, and the present invention is not limited to this.

そして、通常ルータ101においてグローバルアドレス及びローカルアドレスの対応関係が対応表600に一定期間はキャッシュされるため、一定期間においては対応関係は記録されているが一定の保持時間が過ぎた対応関係は消去される。従って、保持時間が過ぎた応答パケットデータは返信されることはない。   Then, since the correspondence relationship between the global address and the local address is cached in the correspondence table 600 for a certain period in the normal router 101, the correspondence relation is recorded for a certain period, but the correspondence relation for which a certain holding time has passed is deleted. Is done. Therefore, the response packet data whose retention time has passed is not returned.

このため、インターネット端末110の通信部111は受信処理を行うが、例えば、ローカルパケット1001、1002、及び1003の応答グローバルパケットを受信したがローカルパケット1004の応答グローバルパケットを受信しなかったような場合においては、通知間隔調整部115においてルータ101における対応関係のキャッシュ期間は「3分」と判断され、ローカルパケットのポーリング間隔をキャッシュ期間を同様の3分と設定する。   Therefore, the communication unit 111 of the Internet terminal 110 performs reception processing. For example, when the response global packet of the local packets 1001, 1002, and 1003 is received, but the response global packet of the local packet 1004 is not received. , The notification interval adjustment unit 115 determines that the corresponding cache period in the router 101 is “3 minutes”, and sets the local packet polling interval to the same cache period of 3 minutes.

図11は、本実施の形態1に係るインターネット端末が起動時においてルータの変換テーブル保持時間を取得してポーリング間隔を取得する際の動作手順を示すフローチャートである。   FIG. 11 is a flowchart showing an operation procedure when the Internet terminal according to the first embodiment obtains the conversion table holding time of the router and obtains the polling interval when it is activated.

まず、インターネット端末110のパケット生成部113においてポーリング間隔の異なる複数のローカルパケットが作成され、暗号処理部112において暗号化された後に通信部111からルータ側に送信される(S1101)。   First, a plurality of local packets having different polling intervals are created by the packet generation unit 113 of the Internet terminal 110, encrypted by the encryption processing unit 112, and then transmitted from the communication unit 111 to the router side (S1101).

次に、インターネット端末110の通信部111は、応答ローカルパケットの受信待ちを行い(S1102)、応答ローカルパケットを受信できたか否かの判定を行う(S1103)。応答ローカルパケットを受信できた場合においては(S1103でY)、通知間隔調整部115は最後に受信した最長のポーリング間隔をルータ101における対応関係の保持時間として取得する(S1104)。   Next, the communication unit 111 of the Internet terminal 110 waits for reception of a response local packet (S1102), and determines whether the response local packet has been received (S1103). When the response local packet has been received (Y in S1103), the notification interval adjustment unit 115 acquires the longest polling interval received last as the correspondence holding time in the router 101 (S1104).

一方、応答ローカルパケットを受信できない場合においては(S1103でN)、インターネット端末110は処理を終了する。   On the other hand, when the response local packet cannot be received (N in S1103), the Internet terminal 110 ends the process.

以上のように、本実施の形態1に係るインターネット端末110は、ルータにおける変換テーブルの保持時間を特定してローカルパケットの通知間隔を判断する通知間隔調整部115、及び当該通知間隔に従ってローカルパケットを定期的に繰り返してルータ101に送信する通信部111を備える。   As described above, the Internet terminal 110 according to Embodiment 1 specifies the notification interval adjustment unit 115 that determines the holding time of the conversion table in the router and determines the notification interval of the local packet, and the local packet according to the notification interval. A communication unit 111 that periodically and repeatedly transmits to the router 101 is provided.

従って、ルータ101が常時インターネット網に接続されている環境において、ポーリング方式であっても、ルータ101には常にグローバルとローカルのアドレス、ポート番号の関係が記録された対応表を保持できるため、宅外のユーザから携帯端末装置130を用いた制御要求が送信されても、サーバ装置200側においては端末IDに対応するルータ101のグローバルアドレスを付与したグローバルパケットを生成してルータ101側に送信することで、ローカルネットワークにおけるローカルアドレスにルータ101に記録されている変換テーブルを参照して変換することができる。このため、宅外のユーザからの携帯端末装置130を用いた制御情報をリアルタイムに宅内の目的のインターネット端末110に送信して、ユーザの要求に従った家庭に設置された家電機器103等の遠隔制御を可能とできる。   Therefore, in an environment where the router 101 is always connected to the Internet network, even if the polling method is used, the router 101 can always hold a correspondence table in which the relationship between global and local addresses and port numbers is recorded. Even when a control request using the mobile terminal device 130 is transmitted from an external user, the server device 200 generates a global packet with the global address of the router 101 corresponding to the terminal ID and transmits it to the router 101 side. Thus, the conversion can be performed by referring to the conversion table recorded in the router 101 to the local address in the local network. For this reason, control information from the user outside the home using the mobile terminal device 130 is transmitted to the target Internet terminal 110 in the home in real time, and the home appliance 103 installed in the home according to the user's request Control is possible.

また、本発明においてはポーリング方式を用いてルータの設定が不要であるため、従来のルータ101に本発明に係るインターネット端末110を接続することにより宅外からの遠隔操作を可能とする。従って、本発明に係るインターネット端末110を使用するユーザの利便性を飛躍的に向上できる。   In addition, in the present invention, since the router setting is unnecessary using the polling method, remote control from outside the house is enabled by connecting the Internet terminal 110 according to the present invention to the conventional router 101. Therefore, the convenience of the user who uses the Internet terminal 110 according to the present invention can be dramatically improved.

さらに、サーバ装置200においては、宅外のユーザか携帯端末装置130を介して制御要求があったときのみ応答グローバルパケットを宅内の制御対象の端末装置に送信すればよく、従来のように、宅内のインターネット装置からの制御要求の有無の確認をサーバ装置200側に行う必要がなくなる。   Furthermore, the server device 200 only has to send a response global packet to the terminal device to be controlled in the home only when there is a control request via a user outside the home or the mobile terminal device 130. This eliminates the need for the server apparatus 200 to confirm whether there is a control request from the Internet apparatus.

また、インターネット端末110の通知間隔調整部115において起動時にルータ101の変換テーブルの保持期間を検出するため、従来のように、ルータ101の対応関係が消滅してしまい宅外からの制御要求ができないといったことを防止できる。   Further, since the notification interval adjustment unit 115 of the Internet terminal 110 detects the holding period of the conversion table of the router 101 at the time of activation, the correspondence relationship of the router 101 disappears as in the conventional case, and a control request from outside the house cannot be made. Can be prevented.

さらにまた、UDPパケットは、従来のルータにおいても送信先と送信元のアドレス関係が一定期間保持される設定であるため、ルータに新たな機能を追加する必要がなく既存のルータを用いて本発明を実施することができる。   Furthermore, since the UDP packet is a setting in which the address relationship between the transmission destination and the transmission source is maintained for a certain period even in the conventional router, it is not necessary to add a new function to the router, and the present invention is used using the existing router. Can be implemented.

そして、サーバ装置200は、制御対象のインターネット端末110の端末IDを確認することにより、ルータ101の現状のグローバルアドレスを常に知ることができ、一旦常時接続が切断されルータ101に別のグローバルアドレスが付与されるような場合においても、ユーザは特別な設定作業を行うことなく携帯端末装置からの制御情報が制御対象のインターネット端末110に送信される。   Then, the server device 200 can always know the current global address of the router 101 by confirming the terminal ID of the Internet terminal 110 to be controlled, and once the connection is disconnected, the router 101 has another global address. Even in such a case, the control information from the portable terminal device is transmitted to the controlled Internet terminal 110 without performing any special setting work.

尚、本実施の形態1に係るインターネット端末110や家電機器103の制御結果を宅外のユーザの携帯端末装置130に返信することも考え得る。この制御結果は、例えば「7時からのエアコンの予約完了」、「10時に給湯完了」等の情報である。以下、制御結果送信の手順について説明する。   Note that it is also conceivable to return the control results of the Internet terminal 110 and the home appliance 103 according to the first embodiment to the mobile terminal device 130 of the user outside the home. This control result is information such as “completion of air conditioner reservation from 7 o'clock” and “completion of hot water supply at 10 o'clock”. Hereinafter, the procedure of control result transmission will be described.

インターネット端末110の制御部116は、応答ローカルパケットのデータ部802に含まれている制御要求コマンド809を取得し、インターネット端末110の制御を行う。また、制御対象の端末がエアコン103等である際には、制御要求コマンド809の制御内容を機器制御部103bに送信する。   The control unit 116 of the Internet terminal 110 acquires the control request command 809 included in the response local packet data unit 802 and controls the Internet terminal 110. When the control target terminal is the air conditioner 103 or the like, the control content of the control request command 809 is transmitted to the device control unit 103b.

家電機器103の機器制御部103bは、制御要求に従った制御を行うが、その制御結果のデータを、インターネット端末110の制御部116に返信する。   The device control unit 103b of the home appliance 103 performs control according to the control request, but returns the control result data to the control unit 116 of the Internet terminal 110.

インターネット端末110の制御部116は、家電機器103から受信した制御結果のデータ、若しくはインターネット端末110の制御結果を、サーバ装置200へ送信するフレーム(以降、フレーム3と称す)に含んで、暗号処理部112へ渡す。   The control unit 116 of the Internet terminal 110 includes the control result data received from the home appliance 103 or the control result of the Internet terminal 110 in a frame (hereinafter referred to as frame 3) to be transmitted to the server device 200, and performs encryption processing. To the unit 112.

また、暗号処理部112は、フレーム3を暗号化し、通信部111へ渡す。通信部111は、前述した説明と同様の方法でサーバ装置200側に送信するローカルパケットを生成しルータ101へ送信する。従って、このローカルパケットには制御結果のデータが含まれている。   Also, the encryption processing unit 112 encrypts the frame 3 and passes it to the communication unit 111. The communication unit 111 generates a local packet to be transmitted to the server apparatus 200 by the same method as described above, and transmits the local packet to the router 101. Therefore, control result data is included in the local packet.

ルータ101は、受信したローカルパケットのローカルアドレスをグローバルアドレスに変換して対応表600に記録して、サーバ装置200に送信するグローバルパケットをインターネット網120を介して送信する。   The router 101 converts the local address of the received local packet into a global address, records it in the correspondence table 600, and transmits the global packet to be transmitted to the server device 200 via the Internet network 120.

サーバ装置200の通信部201は、送信されたグローバルパケットを受信し、暗号処理部202へ渡し、暗号処理部202は、フレーム3を復号化し、制御要求処理部204へ渡す。そして、制御要求処理部204は、フレーム3に含まれている家電機器103の制御結果データ、若しくはインターネット端末110の制御結果データを読み込んで制御結果を取得して、通信部201は携帯端末装置130に制御結果を送信して一連の処理を完了することができる。   The communication unit 201 of the server apparatus 200 receives the transmitted global packet and passes it to the encryption processing unit 202, and the encryption processing unit 202 decrypts the frame 3 and passes it to the control request processing unit 204. Then, the control request processing unit 204 reads the control result data of the home appliance 103 included in the frame 3 or the control result data of the Internet terminal 110 to obtain the control result, and the communication unit 201 acquires the control result. The control result can be transmitted to the end of the series of processing.

尚、本発明方法において、通知間隔調整部115におけるローカルパケットの通知間隔の調整方法について1分単位を用いて説明を行ったが、必ずしも1分単位で短縮する必要はなく、インターネット端末110の実装毎に異なっても良いことは明らかである。
(実施の形態2)
次に、本発明に係る通信システムの他の実施の形態2について図12を用いて説明を行う。
In the method of the present invention, the adjustment method of the notification interval of the local packet in the notification interval adjustment unit 115 has been described using a unit of one minute. However, it is not always necessary to shorten the unit in units of one minute. Obviously it may vary from one to the other.
(Embodiment 2)
Next, another embodiment 2 of the communication system according to the present invention will be described with reference to FIG.

図12は、本実施の形態2に係るポータルサーバ1201、サーバ200及びインターネット端末110の機能ブロック図を示す。本実施の形態2に係る通信システムにおいては上述した実施の形態1の図2の通信システムの構成に加えて、ポータルサーバ1201を設け、ユーザの携帯端末装置130からの制御要求はポータルサーバ1201に送られ、ポータルサーバ1201から、サーバ装置200を介してインターネット端末110に接続された家電機器103等の制御を行うことを特徴とする。尚、図12において図2と同一の構成には同一番号を付し詳細な説明を省略する。   FIG. 12 is a functional block diagram of the portal server 1201, the server 200, and the Internet terminal 110 according to the second embodiment. In the communication system according to the second embodiment, a portal server 1201 is provided in addition to the configuration of the communication system in FIG. 2 of the first embodiment described above, and a control request from the user's mobile terminal device 130 is sent to the portal server 1201. The home appliance 103 that is sent and connected from the portal server 1201 to the Internet terminal 110 via the server device 200 is controlled. In FIG. 12, the same components as those in FIG. 2 are denoted by the same reference numerals, and detailed description thereof is omitted.

このポータルサーバ1201は、例えば宅内の家電機器の宅外からの遠隔操作を行うための専用的なアプリケーションを扱うサーバであり、外部とパケットデータの送受信を行う通信部1204、パケットデータの暗号化及び復号化を行う暗号処理部1203、及び要求処理部1202を含んで構成されている。要求処理部1202は、携帯端末装置からの制御要求を読み込む。   The portal server 1201 is a server that handles a dedicated application for performing remote operation of home appliances from outside the home, for example, and includes a communication unit 1204 that transmits and receives packet data to and from the outside, The encryption processing unit 1203 that performs decryption and the request processing unit 1202 are included. The request processing unit 1202 reads a control request from the mobile terminal device.

次に、本実施の形態2に係る通信システムの処理手順について説明すると、まず、ユーザは携帯端末装置130を用いてインターネット網120を介してポータルサーバ1201に家庭内ネットワークの固有の端末IDを有する家電機器等のインターネット端末110への制御要求を送信する。この制御要求は上述したように「10時からのニュース番組の予約」等の情報である。   Next, the processing procedure of the communication system according to the second embodiment will be described. First, the user has a unique terminal ID of the home network in the portal server 1201 via the Internet network 120 using the mobile terminal device 130. A control request to the Internet terminal 110 such as a home appliance is transmitted. This control request is information such as “reservation of a news program from 10:00” as described above.

次に、ポータルサーバ1201の通信部1204は、携帯端末装置130から、制御要求を受信し、サーバ装置200にインターネット網120を介して、携帯端末装置130から受信した制御要求を送信する。   Next, the communication unit 1204 of the portal server 1201 receives a control request from the mobile terminal device 130 and transmits the control request received from the mobile terminal device 130 to the server device 200 via the Internet network 120.

そして、サーバ装置200の制御要求処理部204は、受信した制御要求に従って、フレーム2に含まれる制御要求コマンド809を生成し、さらに、制御要求コマンド809には、ポータルサーバ1201のアドレスを含める。   Then, the control request processing unit 204 of the server device 200 generates a control request command 809 included in the frame 2 in accordance with the received control request, and further includes the address of the portal server 1201 in the control request command 809.

以下の処理手順は上述した実施の形態1と同様となり、制御要求処理部204は、制御要求コマンド及びポータルサーバ1201のアドレスを含むフレーム2を生成し、パケット生成部206に渡し、パケット生成部206においてヘッダ部を含む応答グローバルパケットが生成され暗号処理部202へ渡される。暗号処理部202は、フレーム2を暗号化し、通信部201はルータ101へ送信する。   The following processing procedure is the same as that of the first embodiment described above, and the control request processing unit 204 generates a frame 2 including the control request command and the address of the portal server 1201, passes it to the packet generation unit 206, and sends the packet generation unit 206. The response global packet including the header portion is generated and passed to the cryptographic processing portion 202. The encryption processing unit 202 encrypts the frame 2 and the communication unit 201 transmits the frame 2 to the router 101.

また、インターネット端末110の通信部111は、ルータ101から応答ローカルパケットを受信し、暗号処理部112は、応答ローカルパケットのデータ部802を復号化して制御部116へ渡す。制御部116は、応答ローカルパケットのデータ部802に含まれている制御要求コマンド809を取得し、制御要求コマンド809の制御内容に従って、インターネット端末110又は家電機器103の制御を行う。そして、家電機器103の機器制御部103bは、制御結果のデータをインターネット端末110へ送信する。   The communication unit 111 of the Internet terminal 110 receives the response local packet from the router 101, and the encryption processing unit 112 decrypts the response local packet data unit 802 and passes it to the control unit 116. The control unit 116 acquires the control request command 809 included in the data part 802 of the response local packet, and controls the Internet terminal 110 or the home appliance 103 according to the control content of the control request command 809. Then, the device control unit 103 b of the home appliance 103 transmits the control result data to the Internet terminal 110.

次に、インターネット端末110の制御部116は、家電機器103から受信した制御結果のデータ、若しくはインターネット端末110の制御結果のデータをパケット生成部113に渡し、パケット生成部113においてデータ部及びヘッダ部からなる返信用のローカルパケットが生成され暗号処理部112に渡される。   Next, the control unit 116 of the Internet terminal 110 passes the control result data received from the home appliance 103 or the control result data of the Internet terminal 110 to the packet generation unit 113, and the packet generation unit 113 receives the data unit and the header unit. A reply local packet is generated and passed to the encryption processing unit 112.

暗号処理部112はデータ部を暗号化し、通信部111はポータルサーバ1201へ送信するローカルパケットをルータ101へ送信する。   The encryption processing unit 112 encrypts the data part, and the communication unit 111 transmits a local packet to be transmitted to the portal server 1201 to the router 101.

ルータ101は、受信したローカルパケットをポータルサーバ1201へ送信するグローバルパケットに変換し、インターネット網120を介してポータルサーバ1201へ送信する。   The router 101 converts the received local packet into a global packet to be transmitted to the portal server 1201 and transmits it to the portal server 1201 via the Internet network 120.

ポータルサーバ1201の通信部1204は、ルータ101によって中継された制御結果情報を含むグローバルパケットを受信し暗号処理部1203へ渡し、暗号処理部1203はデータ部を復号化し要求処理部1202へ渡し、要求処理部1202はデータ部に含まれている家電機器103の制御結果、若しくはインターネット端末110の制御結果のデータを取得して通信部1204へ渡し、通信部1204は、受け取った家電機器103の制御結果、若しくはインターネット端末110の制御結果を携帯端末装置130へ送信する。   The communication unit 1204 of the portal server 1201 receives the global packet including the control result information relayed by the router 101 and passes it to the encryption processing unit 1203. The encryption processing unit 1203 decrypts the data part and passes it to the request processing unit 1202. The processing unit 1202 acquires the control result of the home appliance 103 included in the data unit or the data of the control result of the Internet terminal 110 and passes it to the communication unit 1204. The communication unit 1204 receives the control result of the received home appliance 103. Alternatively, the control result of the Internet terminal 110 is transmitted to the mobile terminal device 130.

以上の説明のように、本実施の形態2に係る通信システムにおいては、家電機器の遠隔操作を行うインターネット端末110の専用のアプリケーションを用いるポータルサーバ1201が設けられているため、ポータルサーバ1201をインターネット端末110の専用のサーバとすることが可能となる。   As described above, in the communication system according to the second embodiment, the portal server 1201 that uses a dedicated application of the Internet terminal 110 that performs remote operation of home appliances is provided. A dedicated server for the terminal 110 can be used.

また、別のサービスを提供するためのインターネット端末を提供するような場合においても、ポータルサーバ1201と、定期的にパケットを受信するサーバ装置200を分けることにより同じサーバ装置200を用いることが可能となる。   Further, even when providing an Internet terminal for providing another service, it is possible to use the same server device 200 by separating the portal server 1201 and the server device 200 that periodically receives packets. Become.

尚、上述した実施の形態に係る説明においては、携帯端末装置130として携帯電話を用いて説明を行ったがこれに限定されるものではなく、携帯電話以外にPC、PAD等のインターネット網120に接続できる端末装置でも同様の機能を用いることができるのは言うまでもない。   In the description according to the above-described embodiment, a mobile phone is used as the mobile terminal device 130. However, the mobile terminal device 130 is not limited to this, and the Internet network 120 such as a PC or a PAD is used in addition to the mobile phone. It goes without saying that a similar function can be used in a terminal device that can be connected.

本発明に係る宅内端末装置は、外部ネットワークと接続するルータに宅内ネットワークを用いて接続してパケットデータの送受信を行う端末装置として用いることができ、特に家電機器の遠隔操作を統一的に行う端末装置、エアコン等の家電機器等に適用できる。   The in-home terminal device according to the present invention can be used as a terminal device that transmits and receives packet data by connecting to a router connected to an external network using the in-home network, and in particular, a terminal that performs unified remote control of home appliances Applicable to home appliances such as devices and air conditioners.

実施の形態1に係る通信システムの全体構成を示す概略図である。1 is a schematic diagram showing an overall configuration of a communication system according to Embodiment 1. FIG. 実施の形態1に係るサーバ、インターネット端末、及びインターネット端末に接続される家電機器等の端末装置の機能ブロック図である。2 is a functional block diagram of a terminal device such as a home appliance connected to the server, the Internet terminal, and the Internet terminal according to Embodiment 1. FIG. 実施の形態1に係るインターネット端末のローカルパケットの送受信におけるシーケンス図である。6 is a sequence diagram in transmission / reception of a local packet of the Internet terminal according to Embodiment 1. FIG. 実施の形態1に係るインターネット端末が、ルータへローカルパケットを定期的に送信する際の動作手順を示すフローチャートである。5 is a flowchart showing an operation procedure when the Internet terminal according to Embodiment 1 periodically transmits a local packet to a router. 実施の形態1に係るインターネット端末において生成されるローカルパケットのデータ構成の一例を示す図である。6 is a diagram illustrating an example of a data configuration of a local packet generated in the Internet terminal according to Embodiment 1. FIG. 実施の形態1に係るルータが保持している対応表の参考図である。4 is a reference diagram of a correspondence table held by the router according to the first embodiment. FIG. 実施の形態1に係るサーバ装置が、ルータよりグローバルパケットを受信して、応答グローバルパケットをルータに返送する際の動作手順を示すフローチャートである。6 is a flowchart showing an operation procedure when the server apparatus according to the first embodiment receives a global packet from a router and returns a response global packet to the router. 実施の形態1に係るサーバ装置で生成される応答グローバルパケットのデータ構成の一例を示す図である。6 is a diagram illustrating an example of a data configuration of a response global packet generated by the server device according to Embodiment 1. FIG. 実施の形態1に係るインターネット端末が応答グローバルパケットを受信する際の動作手順を示すフローチャートである。5 is a flowchart showing an operation procedure when the Internet terminal according to Embodiment 1 receives a response global packet. インターネット端末の起動時においてルータにおけるローカルアドレスとグローバルアドレスの対応関係の保持時間を取得するためにインターネット端末から送信されるローカルパケットデータのデータ構成を示す図である。It is a figure which shows the data structure of the local packet data transmitted from an internet terminal in order to acquire the retention time of the correspondence of a local address and a global address in a router at the time of starting of an internet terminal. 実施の形態1に係るインターネット端末が起動時においてルータの変換テーブル保持時間を取得してポーリング間隔を取得する際の動作手順を示すフローチャートである。6 is a flowchart illustrating an operation procedure when the Internet terminal according to Embodiment 1 acquires a conversion table holding time of a router and acquires a polling interval when it is activated. 実施の形態2に係るポータルサーバ、サーバ及びインターネット端末の機能ブロック図を示す。The functional block diagram of the portal server, server, and internet terminal which concern on Embodiment 2 is shown. 従来のポーリング方式による宅内の端末操作のパケットデータの流れを示すシーケンス図である。It is a sequence diagram which shows the flow of the packet data of the terminal operation in a house by the conventional polling system.

符号の説明Explanation of symbols

100 ローカルネットワーク
101 ルータ
102 PC
103 エアコン
103a 通信部
103b 機器制御部
110 インターネット端末
111 通信部
112 暗号処理部
113 パケット生成部
114 通知部
115 通知間隔調整部
116 制御部
120 インターネット網
130 携帯端末
200 サーバ装置
201 通信部
202 暗号処理部
203 応答間隔調整部
204 制御要求処理部
205 端末情報記録部
205a テーブル
206 パケット生成部
500 ローカルパケット
600 対応表
800 応答グローバルパケット
1201 ポータルサーバ
1202 要求処理部
1203 暗号処理部
1204 通信部
100 local network 101 router 102 PC
DESCRIPTION OF SYMBOLS 103 Air conditioner 103a Communication part 103b Device control part 110 Internet terminal 111 Communication part 112 Encryption processing part 113 Packet generation part 114 Notification part 115 Notification interval adjustment part 116 Control part 120 Internet network 130 Portable terminal 200 Server apparatus 201 Communication part 202 Encryption processing part 203 Response interval adjustment unit 204 Control request processing unit 205 Terminal information recording unit 205a Table 206 Packet generation unit 500 Local packet 600 Correspondence table 800 Response global packet 1201 Portal server 1202 Request processing unit 1203 Encryption processing unit 1204 Communication unit

Claims (7)

サーバ装置が接続される外部ネットワークに接続されたルータとホームネットワークを介して接続され、データの送受信を行う宅内端末装置であって、
前記ルータは、前記ルータに与えられるグローバルアドレスと前記宅内端末装置のローカルアドレスとの対応関係を所定の期間保持するものであり、
前記宅内端末装置は、
前記サーバ装置に送信するデータを生成する生成手段と、
前記ルータを介して前記サーバ装置とデータの送受信を行う通信手段と、
前記ルータにおける前記対応関係の保持期間の検出を行い、前記保持期間以下の期間をデータの送信間隔と判断する判断手段とを備え、
前記通信手段は、前記送信間隔に従ってデータを繰り返して前記ルータ側に送信し、
前記生成手段は、ヘッダ部に少なくとも送信元アドレスとして前記宅内端末装置の前記ローカルアドレスと、送信元ポート番号として前記宅内端末装置のローカルポート番号と、送信先アドレスとして前記サーバ装置のアドレスと、送信先ポート番号として前記サーバ装置のポート番号とを含み、データ部に少なくとも前記宅内端末装置に固有の端末IDを含むデータの生成を行う
ことを特徴とする宅内端末装置。
A home terminal device that is connected via a home network to a router connected to an external network to which the server device is connected, and transmits and receives data.
The router holds a correspondence between a global address given to the router and a local address of the home terminal device for a predetermined period,
The in-home terminal device
Generating means for generating data to be transmitted to the server device;
Communication means for transmitting and receiving data to and from the server device via the router;
Detecting a correspondence holding period in the router, and determining means for determining a period equal to or less than the holding period as a data transmission interval;
The communication means repeatedly transmits data to the router side according to the transmission interval,
The generating means includes at least a local address of the home terminal device as a transmission source address in a header portion, a local port number of the home terminal device as a transmission source port number, an address of the server device as a transmission destination address, and a transmission A home terminal device that includes a port number of the server device as a destination port number and generates data including at least a terminal ID unique to the home terminal device in a data portion.
携帯端末装置は、前記宅内端末装置への制御要求を送信し、
前記通信手段は、前記制御要求を前記ルータを介して受信する
ことを特徴とする請求項1記載の宅内端末装置。
The mobile terminal device transmits a control request to the home terminal device,
The in-home terminal apparatus according to claim 1, wherein the communication unit receives the control request via the router.
前記宅内端末装置は、さらに、
前記制御要求に従って当該宅内端末装置の制御を行う制御手段を備える
ことを特徴とする請求項2記載の宅内端末装置。
The in-home terminal device further includes:
The in-home terminal device according to claim 2, further comprising a control unit that controls the in-home terminal device in accordance with the control request.
前記宅内端末装置には前記ホームネットワークを介して複数の端末装置が接続され、
前記端末装置はそれぞれ当該端末装置の制御を行うための機器制御手段を備え、
前記通信手段は、前記制御要求を前記端末装置に送信し、
前記機器制御手段は、受信した前記制御要求に従って前記端末装置の制御を行う
ことを特徴とする請求項2記載の宅内端末装置。
A plurality of terminal devices are connected to the home terminal device via the home network,
Each of the terminal devices includes device control means for controlling the terminal device,
The communication means transmits the control request to the terminal device,
The in-home terminal device according to claim 2, wherein the device control means controls the terminal device in accordance with the received control request.
サーバ装置が接続される外部ネットワークに接続されたルータとホームネットワークを介して接続され、データの送受信を行う宅内端末装置に用いる通信方法であって、
前記ルータは、前記ルータに与えられるグローバルアドレスと前記宅内端末装置のローカルアドレスとの対応関係を所定の期間保持するものであり、
前記通信方法は、
前記サーバ装置に送信するデータを生成する生成ステップと、
前記ルータを介して前記サーバ装置とデータの送受信を行う通信ステップと、
前記ルータにおける前記対応関係の保持期間の検出を行い、前記保持期間以下の期間をデータの送信間隔と判断する判断ステップとを含み、
前記通信ステップにおいては、前記送信間隔に従ってデータを繰り返して前記ルータ側に送信し、
前記生成ステップにおいては、ヘッダ部に少なくとも送信元アドレスとして前記宅内端末装置の前記ローカルアドレスと、送信元ポート番号として前記宅内端末装置のローカルポート番号と、送信先アドレスとして前記サーバ装置のアドレスと、送信先ポート番号として前記サーバ装置のポート番号とを含み、データ部に少なくとも前記宅内端末装置に固有の端末IDを含むデータの生成を行う
ことを特徴とする通信方法。
A communication method used for a home terminal device that is connected via a home network to a router connected to an external network to which a server device is connected, and transmits and receives data,
The router holds a correspondence between a global address given to the router and a local address of the home terminal device for a predetermined period,
The communication method is:
A generation step of generating data to be transmitted to the server device;
A communication step of transmitting and receiving data to and from the server device via the router;
Detecting the holding period of the correspondence relationship in the router, and determining a period equal to or less than the holding period as a data transmission interval,
In the communication step, data is repeatedly transmitted to the router side according to the transmission interval,
In the generating step, the header section includes at least the local address of the home terminal device as a source address, the local port number of the home terminal device as a source port number, and the address of the server device as a destination address, A communication method including generating a data including a port number of the server device as a transmission destination port number and including at least a terminal ID unique to the home terminal device in a data portion.
サーバ装置が接続される外部ネットワークに接続されたルータとホームネットワークを介して接続され、データの送受信を行う宅内端末装置に用いるプログラムであって、
前記ルータは、前記ルータに与えられるグローバルアドレスと前記宅内端末装置のローカルアドレスとの対応関係を所定の期間保持するものであり、
前記プログラムは、
前記サーバ装置に送信するデータを生成する生成ステップと、
前記ルータを介して前記サーバ装置とデータの送受信を行う通信ステップと、
前記ルータにおける前記対応関係の保持期間の検出を行い、前記保持期間以下の期間をデータの送信間隔と判断する判断ステップとを含み、
前記通信ステップにおいては、前記送信間隔に従ってデータを繰り返して前記ルータ側に送信し、
前記生成ステップにおいては、ヘッダ部に少なくとも送信元アドレスとして前記宅内端末装置の前記ローカルアドレスと、送信元ポート番号として前記宅内端末装置のローカルポート番号と、送信先アドレスとして前記サーバ装置のアドレスと、送信先ポート番号として前記サーバ装置のポート番号とを含み、データ部に少なくとも前記宅内端末装置に固有の端末IDを含むデータの生成を行う
ことを特徴とするプログラム。
A program used for a home terminal device connected via a home network to a router connected to an external network to which a server device is connected, and for transmitting and receiving data,
The router holds a correspondence between a global address given to the router and a local address of the home terminal device for a predetermined period,
The program is
A generation step of generating data to be transmitted to the server device;
A communication step of transmitting and receiving data to and from the server device via the router;
Detecting the holding period of the correspondence relationship in the router, and determining a period equal to or less than the holding period as a data transmission interval,
In the communication step, data is repeatedly transmitted to the router side according to the transmission interval,
In the generating step, the header section includes at least the local address of the home terminal device as a source address, the local port number of the home terminal device as a source port number, and the address of the server device as a destination address, A program that includes a port number of the server device as a transmission destination port number, and generates data including at least a terminal ID unique to the home terminal device in a data portion.
サーバ装置が接続される外部ネットワークと宅内端末装置が接続されるホームネットワークとがルータを介して接続される通信システムであって、
前記ルータは、前記ルータに与えられるグローバルアドレスと前記宅内端末装置のローカルアドレスとの対応関係を所定の期間保持するものであり、
前記宅内端末装置は、
前記サーバ装置に送信するデータを生成する生成手段と、
前記ルータを介して前記サーバ装置とデータの送受信を行う通信手段と、
前記ルータにおける前記対応関係の保持期間の検出を行い、前記保持期間以下の期間をデータの送信間隔と判断する判断手段とを備え、
前記通信手段は、前記送信間隔に従ってデータを繰り返して前記ルータ側に送信し、
前記生成手段は、ヘッダ部に少なくとも送信元アドレスとして前記宅内端末装置の前記ローカルアドレスと、送信元ポート番号として前記宅内端末装置のローカルポート番号と、送信先アドレスとして前記サーバ装置のアドレスと、送信先ポート番号として前記サーバ装置のポート番号とを含み、データ部に少なくとも前記宅内端末装置に固有の端末IDを含むデータの生成を行い、
前記サーバ装置は、
前記宅内端末装置の端末IDを含むデータを受信する第二通信手段と、
前記宅内端末装置の端末IDと、送信元アドレスである前記ルータのグローバルアドレスと、送信元ポート番号である前記ルータのグローバルポート番号の組を端末情報として記録する端末情報記録手段と、
前記端末IDを有する前記宅内端末装置に対する制御要求が発生した時には、前記端末情報記録手段から、前記端末IDに基づき対応する前記グローバルアドレスと、前記グローバルポート番号を抽出する抽出手段とを備える
ことを特徴とする通信システム。
A communication system in which an external network to which a server device is connected and a home network to which a home terminal device is connected are connected via a router,
The router holds a correspondence between a global address given to the router and a local address of the home terminal device for a predetermined period,
The in-home terminal device
Generating means for generating data to be transmitted to the server device;
Communication means for transmitting and receiving data to and from the server device via the router;
Detecting a correspondence holding period in the router, and determining means for determining a period equal to or less than the holding period as a data transmission interval;
The communication means repeatedly transmits data to the router side according to the transmission interval,
The generating means includes at least a local address of the home terminal device as a transmission source address in a header portion, a local port number of the home terminal device as a transmission source port number, an address of the server device as a transmission destination address, and a transmission Including the port number of the server device as the destination port number, and generating data including at least a terminal ID unique to the in-home terminal device in the data portion,
The server device
Second communication means for receiving data including a terminal ID of the home terminal device;
A terminal information recording means for recording a set of terminal ID of the home terminal device, a global address of the router as a transmission source address, and a global port number of the router as a transmission source port number as terminal information;
When a control request for the in-home terminal device having the terminal ID is generated, the terminal information recording means includes the global address corresponding to the terminal ID based on the terminal ID and an extraction means for extracting the global port number. A featured communication system.
JP2004350374A 2002-09-06 2004-12-02 Home terminal device and communication system Expired - Fee Related JP3640663B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004350374A JP3640663B1 (en) 2002-09-06 2004-12-02 Home terminal device and communication system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2002261590 2002-09-06
JP2004350374A JP3640663B1 (en) 2002-09-06 2004-12-02 Home terminal device and communication system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2004534131A Division JP3640665B1 (en) 2002-09-06 2003-09-02 Home terminal device and communication system

Publications (2)

Publication Number Publication Date
JP3640663B1 JP3640663B1 (en) 2005-04-20
JP2005137018A true JP2005137018A (en) 2005-05-26

Family

ID=34554102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004350374A Expired - Fee Related JP3640663B1 (en) 2002-09-06 2004-12-02 Home terminal device and communication system

Country Status (1)

Country Link
JP (1) JP3640663B1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100652999B1 (en) 2005-06-15 2006-12-01 엘지전자 주식회사 Control message certification method of network device for home network
JP2007043281A (en) * 2005-08-01 2007-02-15 Furuno Electric Co Ltd Network system, communication repeating apparatus, communication terminal, and program for communication terminal
WO2012176797A1 (en) * 2011-06-24 2012-12-27 パナソニック株式会社 Communication system
JP2016019050A (en) * 2014-07-04 2016-02-01 特許機器株式会社 Information gathering system, information gathering method, and program
JP2017022563A (en) * 2015-07-10 2017-01-26 東日本電信電話株式会社 Control system, control method and computer program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100652999B1 (en) 2005-06-15 2006-12-01 엘지전자 주식회사 Control message certification method of network device for home network
JP2007043281A (en) * 2005-08-01 2007-02-15 Furuno Electric Co Ltd Network system, communication repeating apparatus, communication terminal, and program for communication terminal
WO2012176797A1 (en) * 2011-06-24 2012-12-27 パナソニック株式会社 Communication system
JP2013008214A (en) * 2011-06-24 2013-01-10 Panasonic Corp Communication system
JP2016019050A (en) * 2014-07-04 2016-02-01 特許機器株式会社 Information gathering system, information gathering method, and program
JP2017022563A (en) * 2015-07-10 2017-01-26 東日本電信電話株式会社 Control system, control method and computer program

Also Published As

Publication number Publication date
JP3640663B1 (en) 2005-04-20

Similar Documents

Publication Publication Date Title
JP3640665B1 (en) Home terminal device and communication system
JP4246705B2 (en) Home terminal device and communication system
JP4260116B2 (en) Secure virtual private network
KR100599131B1 (en) Security device for home network and method for security setup thereof
US20080235358A1 (en) Proxy Device, Network System, and Communication Method
JP2003051853A (en) Communication method and communication device
TW200534653A (en) Communication system using TCP/IP protocols
WO2008023934A1 (en) Outdoor remote control system and method for home network device
JP3640664B2 (en) Home terminal device and communication system
JP2006121533A (en) Relay device, communication terminal, communication system
JP4642652B2 (en) Radio control terminal, radio communication system, and radio communication method
JP3640663B1 (en) Home terminal device and communication system
JP4886712B2 (en) Access control system, access control method, access control apparatus, and access control program
JP3779971B2 (en) Server for routing connections to client devices
US20080118005A1 (en) Receiving apparatus and receiving method
JP4167666B2 (en) Remote access system, router and remote access control program
JP2005130453A (en) Customer premise terminal and communication system
JP2005130453A6 (en) Home terminal device and communication system
JP4528105B2 (en) Network device setting method using dynamic DNS service, dynamic DNS service server, program, and network device connection method
JP2005260358A (en) Communication system and communication terminal for use therein, authentication information deleting method and program, and recording medium storing authentication information deleting program
JP2007166116A (en) Home server apparatus and application server apparatus
JP6109984B1 (en) Wireless communication device connection control device
JP2004304274A (en) Communication apparatus
JP2009290743A (en) Method of exchanging keys
JP2004104275A (en) Information apparatus, gateway unit, and network system

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20050111

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050114

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050118

R150 Certificate of patent or registration of utility model

Ref document number: 3640663

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080128

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090128

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090128

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100128

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110128

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110128

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120128

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130128

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130128

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees