JP2013026730A - Communication system - Google Patents
Communication system Download PDFInfo
- Publication number
- JP2013026730A JP2013026730A JP2011158162A JP2011158162A JP2013026730A JP 2013026730 A JP2013026730 A JP 2013026730A JP 2011158162 A JP2011158162 A JP 2011158162A JP 2011158162 A JP2011158162 A JP 2011158162A JP 2013026730 A JP2013026730 A JP 2013026730A
- Authority
- JP
- Japan
- Prior art keywords
- server
- client device
- dns
- cache
- communication
- 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
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
【課題】 DNS環境下において、ポーリング通信にかかる通信コストを低減することができる通信システムを提供する。
【解決手段】 機器通信サーバ4は、特定のクライアント機器1との通信要求をDNSサーバ2へ送信し、通信要求を受信したDNSサーバ2は、機器通信サーバ4にアクセスするためのアクセス情報を特定のクライアント機器1に関連付けて格納し、クライアント機器1は、自端末を特定するための特定情報を含む問い合わせ信号を送信し、問い合わせ信号を受信したDNSサーバ2は、問い合わせ信号に含まれる特定情報に対応するクライアント機器1に関連付けられたアクセス情報を格納している場合、問い合わせ信号の送信元であるクライアント機器1へアクセス情報を送信し、クライアント機器1は、アクセス情報に基づいて機器通信サーバ4にアクセスする。
【選択図】図1PROBLEM TO BE SOLVED: To provide a communication system capable of reducing a communication cost for polling communication under a DNS environment.
A device communication server 4 transmits a communication request with a specific client device 1 to a DNS server 2, and the DNS server 2 that has received the communication request specifies access information for accessing the device communication server 4. The client device 1 transmits an inquiry signal including specific information for specifying its own terminal, and the DNS server 2 that has received the inquiry signal includes the specific information included in the inquiry signal. When the access information associated with the corresponding client device 1 is stored, the access information is transmitted to the client device 1 that is the transmission source of the inquiry signal, and the client device 1 sends the access information to the device communication server 4 based on the access information. to access.
[Selection] Figure 1
Description
本発明は、通信システムに関するものである。 The present invention relates to a communication system.
一般に、機器通信サーバが、NATルータ、ファイアウォールを介してネットワーク接続しているクライアント機器ヘデータを送信する場合、クライアント機器から機器通信サーバへのポーリングが必要である。 Generally, when a device communication server transmits data to a client device connected to a network via a NAT router or a firewall, polling from the client device to the device communication server is necessary.
クライアント機器は、ポーリングを行う際、接続先である機器通信サーバのドメイン名をIPアドレスに変換するために、DNS(Domain Name System)による名前解決を行う。そして、クライアント機器は、事業者が所有するドメイン名に加えて固有のサーバ名称を加えたFQDN(Fully Qualified Domain Name)をDNSに問い合わせることで、FQDNから変換したIPアドレスをDNSから取得できる。このようなDNSは、DNSコンテンツサーバとDNSキャッシュサーバからなる階層分散管理が行われている。 When performing polling, the client device performs name resolution by DNS (Domain Name System) in order to convert the domain name of the device communication server that is the connection destination into an IP address. Then, the client device can obtain an IP address converted from the FQDN from the DNS by inquiring the DNS of a fully qualified domain name (FQDN) in which a unique server name is added to the domain name owned by the operator. In such a DNS, hierarchical distributed management including a DNS content server and a DNS cache server is performed.
DNSにおいて、DNSキャッシュサーバは、クライアント機器が一度取得したIPアドレスを、設定されているキャッシュ保持期間(キャッシュのTTL(Time To Live))に亘ってキャッシュする。そのため、DNSコンテンツサーバは、クライアント機器からの問い合わせに対して、名前解決を毎回行うわけではない。しかしながら、機器通信の場合はFQDNが更新されることがあるので、このような場合、DNSコンテンツサーバは、クライアント機器からの問い合わせに対して、名前解決を毎回行うことになる。 In DNS, a DNS cache server caches an IP address once acquired by a client device for a set cache holding period (cache TTL (Time To Live)). Therefore, the DNS content server does not always perform name resolution in response to an inquiry from a client device. However, in the case of device communication, the FQDN may be updated. In such a case, the DNS content server performs name resolution every time an inquiry is made from a client device.
クライアント機器は、上述のようにして機器通信サーバのIPアドレスを取得した後、この取得したIPアドレスを用いて、機器通信サーバへのポーリングを行う。 After acquiring the IP address of the device communication server as described above, the client device polls the device communication server using the acquired IP address.
上記従来の通信システムでは、クライアント機器から機器通信サーバへのポーリングが発生する毎に、DNSによる名前解決のための通信と、ポーリングのための通信との両方が発生するため、通信負荷が増大していた。したがって、回線費用、サーバ側およびクライアント装置側の計算機資源等の通信コストがかかっていた。 In the conventional communication system described above, every time polling from the client device to the device communication server occurs, both communication for name resolution by DNS and communication for polling occur, so the communication load increases. It was. Therefore, communication costs such as line costs, computer resources on the server side and client device side are required.
本発明は、上記事由に鑑みてなされたものであり、その目的は、DNS環境下において、ポーリング通信にかかる通信コストを低減することができる通信システムを提供することにある。 The present invention has been made in view of the above reasons, and an object of the present invention is to provide a communication system capable of reducing the communication cost for polling communication in a DNS environment.
本発明の通信システムは、機器通信サーバと、DNSサーバと、前記機器通信サーバおよび前記DNSサーバにネットワークを介して接続しているクライアント機器とで構成され、前記機器通信サーバは、特定の前記クライアント機器との通信要求を前記DNSサーバへ送信し、前記通信要求を受信した前記DNSサーバは、前記機器通信サーバにアクセスするためのアクセス情報を前記特定のクライアント機器に関連付けて格納し、前記クライアント機器は、自端末を特定するための特定情報を含む問い合わせ信号を送信し、前記問い合わせ信号を受信した前記DNSサーバは、前記問い合わせ信号に含まれる前記特定情報に対応する前記クライアント機器に関連付けられた前記アクセス情報を格納している場合、前記問い合わせ信号の送信元である前記クライアント機器へ前記アクセス情報を送信し、前記クライアント機器は、前記アクセス情報に基づいて前記機器通信サーバにアクセスすることを特徴とする。 The communication system of the present invention includes a device communication server, a DNS server, the device communication server, and a client device connected to the DNS server via a network, and the device communication server is a specific client. The DNS server that has transmitted a communication request with a device to the DNS server and received the communication request stores access information for accessing the device communication server in association with the specific client device, and the client device Transmits an inquiry signal including specific information for specifying its own terminal, and the DNS server that has received the inquiry signal transmits the inquiry signal associated with the client device corresponding to the specific information included in the inquiry signal. If access information is stored, the inquiry signal is sent. Transmits the said access information to the client device as a source, the client device is characterized in that access to the device communication server based on the access information.
この発明において、前記DNSサーバは、前記通信要求を受信することによって、前記アクセス情報を前記特定のクライアント機器に関連付けて、コンテンツ保持期間に亘って保存するDNSコンテンツサーバと、前記クライアント機器が取得した前記アクセス情報を、このアクセス情報を取得した前記クライアント機器に関連付けてキャッシュ保持期間に亘って保存するDNSキャッシュサーバとで構成され、前記クライアント機器は、前記キャッシュ保持期間の時間長さが前記コンテンツ保持期間の時間長さより短い場合、前記問い合わせ信号を前記DNSキャッシュサーバへ送信し、前記DNSキャッシュサーバは、前記問い合わせ信号の送信元である前記クライアント機器に関連付けられた前記アクセス情報が格納されていない場合、前記DNSコンテンツサーバへ前記問い合わせ信号を送信し、前記キャッシュ保持期間の時間長さが前記コンテンツ保持期間の時間長さより長い場合、前記クライアント機器は、前記問い合わせ信号を前記DNSコンテンツサーバへ送信することが好ましい。 In the present invention, the DNS server receives the communication request, associates the access information with the specific client device, and stores it for a content holding period, and the client device acquires the DNS content server. A DNS cache server that stores the access information in association with the client device that has acquired the access information for a cache retention period, and the client device has the content retention time length of the cache retention period. When the time length of the period is shorter, the inquiry signal is transmitted to the DNS cache server, and the DNS cache server does not store the access information associated with the client device that is the transmission source of the inquiry signal. When the inquiry signal is transmitted to the DNS content server, and the time length of the cache retention period is longer than the time length of the content retention period, the client device may transmit the inquiry signal to the DNS content server. preferable.
この発明において、前記クライアント機器は、前記問い合わせ信号の送信毎に、前記特定情報を異なるデータ列で生成することが好ましい。 In this invention, it is preferable that the client device generates the specific information with a different data sequence every time the inquiry signal is transmitted.
この発明において、前記クライアント機器は、自端末に予め割り付けられている機器IDと、前記機器通信サーバから取得した暗号化キーとを少なくとも含むデータ列をハッシュすることによって前記特定情報を生成し、この特定情報を含む前記問い合わせ信号を送信した後、前記機器通信サーバから新たな暗号化キーを取得することが好ましい。 In the present invention, the client device generates the specific information by hashing a data string including at least a device ID assigned in advance to the terminal and an encryption key acquired from the device communication server. It is preferable to acquire a new encryption key from the device communication server after transmitting the inquiry signal including specific information.
この発明において、前記DNSサーバは、前記通信要求を受信することによって、前記アクセス情報を前記特定のクライアント機器に関連付けて格納するDNSコンテンツサーバと、前記クライアント機器が取得した前記アクセス情報を、このアクセス情報を取得した前記クライアント機器に関連付けてキャッシュ保持期間に亘って保存するDNSキャッシュサーバとで構成され、前記DNSキャッシュサーバの前記キャッシュ保持期間は、前記クライアント機器が前記問い合わせ信号を送信する周期より短く、前記クライアント機器は、前記問い合わせ信号を前記DNSキャッシュサーバへ送信して、前記DNSキャッシュサーバは、前記問い合わせ信号の送信元である前記クライアント機器に関連付けられた前記アクセス情報が格納されていない場合、前記DNSコンテンツサーバへ前記問い合わせ信号を送信し、前記クライアント機器は、前記問い合わせ信号に対応する前記アクセス情報を受信しなかった場合、予め保持している前記機器通信サーバのアクセス情報に基づいて前記機器通信サーバにアクセスすることが好ましい。 In the present invention, when the DNS server receives the communication request, the DNS server stores the access information in association with the specific client device, and the access information acquired by the client device. A DNS cache server that stores information over a cache retention period in association with the acquired client device, and the cache retention period of the DNS cache server is shorter than a cycle in which the client device transmits the inquiry signal. The client device transmits the inquiry signal to the DNS cache server, and the DNS cache server stores the access information associated with the client device that is the transmission source of the inquiry signal. If not, the inquiry signal is transmitted to the DNS content server, and if the client device does not receive the access information corresponding to the inquiry signal, it is based on the access information of the device communication server held in advance. It is preferable to access the device communication server.
以上説明したように、本発明では、DNSによる名前解決のための通信がポーリングの機能を兼ねることができるので、DNS環境下において、ポーリング通信にかかる通信コストを低減することができるという効果がある。 As described above, according to the present invention, communication for name resolution by DNS can also serve as a polling function, so that it is possible to reduce the communication cost for polling communication in a DNS environment. .
以下、本発明の実施の形態を図面に基づいて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(実施形態1)
図1は、本実施形態の通信システムの構成を示し、顧客宅には宅内ネットワークNT1が構築され、クライアント機器1、DNSキャッシュサーバ2Bが宅内ネットワークNT1に接続している。そして、宅内ネットワークNT1は、NATルータ3を介して、インターネットを含む広域網である外部ネットワークNT2に接続している。外部ネットワークNT2には、DNSコンテンツサーバ2A、機器通信サーバ4が接続しており、DNSコンテンツサーバ2Aと機器通信サーバ4とで、センターサーバCSを構成している。さらに、DNSコンテンツサーバ2AとDNSキャッシュサーバ2Bとで、DNSサーバ2を構成している。
(Embodiment 1)
FIG. 1 shows a configuration of a communication system according to the present embodiment. A home network NT1 is constructed at a customer's home, and a
まず、クライアント機器1は、監視・制御対象となる機器で構成され、データ取得部11、DNSクライアント部12、機器情報テーブル13を備える。データ取得部11は、監視・制御に関するデータを機器通信サーバ4から取得する機能を有し、DNSクライアント部12は、DNSサーバ2に対してDNS問い合わせ(以降、問い合わせと称す)を行い、DNSによる名前解決のための通信を行う。この問い合わせは、DNSクライアント部12が、機器通信サーバ4のFQDN(Fully Qualified Domain Name)をDNSサーバ2へ送信することで、FQDNから変換したIPアドレスをDNSサーバ2から取得できる。このFQDNが、本発明の問い合わせ信号に相当する。そして、データ取得部11は、取得したIPアドレスを用いて機器通信サーバ4にアクセスし、機器通信サーバ4から自端末宛のデータを取得する。さらに機器情報テーブル13は、図2に示すように、当該クライアント機器1に予め割り付けられた機器IDを格納している。
First, the
DNSキャッシュサーバ2Bは、クライアント機器1からの問い合わせに対するキャッシュ機能を有しており、キャッシュ情報を格納するキャッシュ情報保持部22を備える。なお、DNSキャッシュサーバ2Bは、顧客宅外で、クライアント機器1にネットワーク的に近い場所に設置されてもよい。
The
DNSコンテンツサーバ2Aは、ドメイン管理業者から権限委譲されたサブドメインに関するコンテンツ情報を格納するコンテンツ情報保持部21を備える。
The
機器通信サーバ4は、クライアント機器1へ伝達するデータをデータ保持部41に格納している。さらに機器通信サーバ4は、クライアント機器1毎の機器IDを格納した機器情報テーブル42(図3参照)と、クライアント機器1およびDNSコンテンツサーバ2Aとの間でネットワーク通信を行う通信部43とを備える。なお、宅内ネットワークNT1に接続したクライアント機器1が自端末の機器IDを機器通信サーバ4へ送信することによって、クライアント機器1毎の機器IDが機器情報テーブル42に格納される。
The
また、本システムのDNSサーバ2は、DNSコンテンツサーバ2AとDNSキャッシュサーバ2Bとからなる分散データベース機能を持つ。
The
DNSコンテンツサーバ2Aは、図4に示すコンテンツ情報[FQDN、IPアドレス、コンテンツ保持期間]をコンテンツ情報保持部21に格納している。このIPアドレスが、本発明のアクセス情報に相当する。そして、例えば、当該サーバが「example.jp」ドメインを保持している場合、コンテンツ情報には、FQDN「polling1.example.jp」に対応するIPアドレスとして「12.34.56.78」が設定されている。そして、DNSコンテンツサーバ2Aは、FQDN「polling1.example.jp」に対応するIPアドレスの問い合わせがあった場合、IPアドレス「12.34.56.78」を返答する(正引き)。この正引きデータはしばしば変更されるため、このIPアドレスの有効期間を示すコンテンツ保持期間(コンテンツのTTL(Time To Live))を、コンテンツ情報毎に設定している(図4参照)。
The
DNSキャッシュサーバ2Bは、図5に示すキャッシュ情報[FQDN、IPアドレス、キャッシュ保持期間]をキャッシュ情報保持部22に格納している。このIPアドレスが、本発明のアクセス情報に相当する。そして、通常、クライアント機器1は、DNSキャッシュサーバ2Bに最初の問い合わせを行う。そして、DNSキャッシュサーバ2Bは、キャッシュ情報保持部22内に問い合わせのFQDNに対応するIPアドレスが保持されていない場合、もしくは保持されているキャッシュデータのキャッシュ保持期間(キャッシュのTTL)が過ぎている場合、DNSコンテンツサーバ2Aに問い合わせを行う。DNSキャッシュサーバ2Bは、問い合わせのFQDNに対応するIPアドレスをDNSコンテンツサーバ2Aから取得し、問い合わせ元のクライアント機器1へ送信する。さらに、問い合わせのFQDNに対応するIPアドレスをDNSコンテンツサーバ2Aから取得した場合、これらのデータを、図5に示すようにキャッシュ保持期間(有効期限)とともにキャッシュ情報に保存する。そして、DNSキャッシュサーバ2Bは、キャッシュ保持期間内に、同じFQDNに対応するIPアドレスの問い合わせがクライアント機器1からあった場合、キャッシュ情報保持部22内のIPアドレスをクライアント機器1に返答する。なお、図5では、キャッシュ保持期間として、キャッシュ情報を保持している有効期限(時刻)を用いている。
The
また、DNSキャッシュサーバ2Bが、DNSコンテンツサーバ2Aからコンテンツ情報が得られない場合がある。この場合、DNSキャッシュサーバ2Bは、問い合わせのあったFQDNを、ドメイン全体に予め設定されているネガティブキャッシュ時のキャッシュ保持期間とともにキャッシュ情報に保持する(図5参照)。このように、IPアドレスが得られないFQDNによる問い合わせに対しては、ネガティブキャッシュ期間を設定して、DNSコンテンツサーバ2Aに無効な問い合わせが発生しないようにする。本システムでは、ネガティブキャッシュ期間の時間長さを、クライアント機器1による問い合せの送信周期より短く設定する(例えば、10秒間)。
Further, the
このような通信システムでは、NATルータ3が存在するため、クライアント機器1によるポーリング通信を行うことなく、機器通信サーバ4からクライアント機器1へデータを送信することはできない。すなわち、機器通信サーバ4が、NATルータ3を介してネットワーク接続しているクライアント機器1ヘデータを送信する場合、クライアント機器1によるポーリング通信が必要である。
In such a communication system, since the
以下、本システムのポーリング通信について、図6の通信シーケンスを用いて説明する。 Hereinafter, polling communication of this system will be described using the communication sequence of FIG.
まず、機器通信サーバ4は、機器ID「12345−00001」を割り付けられたクライアント機器1に対してデータを送信したい場合、DNSコンテンツサーバ2Aに機器ID「12345−00001」を含んだ通信要求を送信する(S1)。具体的には、機器通信サーバ4のFQDNと、クライアント機器1のアクセス先となるIPアドレスと、コンテンツ保持期間の各データを含んで、通信要求は生成される。そして、FQDNのホスト名には、通信要求の対象となるクライアント機器1の機器IDが設定されている。
First, when the
そして、通信要求を受信したDNSコンテンツサーバ2Aは、図7に示すコンテンツ情報をコンテンツ情報保持部21に格納する(S2)。コンテンツ情報は、機器通信サーバ4のFQDNと、クライアント機器1のアクセス先となるIPアドレスと、コンテンツ保持期間との各データで構成される。
Then, the
そして、クライアント機器1が、自端末の機器IDを含むFQDN「12345−00001.example.jp」を用いた問い合わせを生成し(S3)、この問い合わせをDNSキャッシュサーバ2Bに対して行う(S4)。この場合、DNSキャッシュサーバ2Bのキャッシュ情報保持部22に、問い合わせ元のクライアント機器1の機器IDに関連付けられたキャッシュ情報がないので(S5)、DNSキャッシュサーバ2Bは、DNSコンテンツサーバ2Aに対して同様の問い合わせを行う(S6)。この問い合わせ周期T1は、一定期間(例えば、10秒)に設定されている。
Then, the
DNSコンテンツサーバ2Aのコンテンツ情報保持部21には、FQDN「12345−00001.example.jp」に対応するIPアドレスが格納されている(図7参照)。すなわち、問い合わせ元のクライアント機器1の機器IDに関連付けられたコンテンツ情報が格納されている(S7)。そこで、DNSコンテンツサーバ2Aは、このコンテンツ情報のIPアドレス「12.34.56.78」をDNSキャッシュサーバ2Bへ返答する(S8)。
The content
DNSキャッシュサーバ2Bは、図8に示すように、FQDN「12345−00001.example.jp」にIPアドレス「12.34.56.78」を対応付けたキャッシュ情報を生成して、キャッシュ情報保持部22に格納する(S9)。さらに、DNSキャッシュサーバ2Bは、IPアドレス「12.34.56.78」をクライアント機器1へ返答する(S10)。
As shown in FIG. 8, the
通信要求の送信に対して、IPアドレスの返答を受けたクライアント機器1は、機器通信サーバ4との通信が必要であることを認識し(S11)、返答されたIPアドレスにアクセスする(S12)。クライアント機器1からアクセスされた機器通信サーバ4は、クライアント機器1の機器IDを用いた認証を行った後、データ保存部41に格納しているデータをクライアント機器1へ送信し(S13,S14)、クライアント機器1は、機器通信サーバ4からデータを受信する(S15)。
In response to the transmission of the communication request, the
以降、DNSキャッシュサーバ2Bは、FQDN「12345−00001.example.jp」を用いた問い合わせがキャッシュ保持期間T2内にあった場合、キャッシュ情報保持部22を参照して、クライアント機器1に対してIPアドレスを返答する。
Thereafter, when the inquiry using the FQDN “12345-00001.example.jp” is within the cache holding period T2, the
機器通信サーバ4がクライアント機器1へデータを送信した後、DNSコンテンツサーバ2Aは、コンテンツ情報保持部21から、送信したデータに対応するコンテンツ情報を削除する。したがって、クライアント機器1は、以降の問い合わせに対応するIPアドレスの返答がないので、機器通信サーバ4との通信が不要であることを認識できる。
After the
ここで、キャッシュ保持期間T2の時間長さは、コンテンツ保持期間の時間長さ以下に設定されることが望ましい。 Here, it is desirable to set the time length of the cache holding period T2 to be equal to or shorter than the time length of the content holding period.
次に、本システムのポーリング通信におけるネガティブキャッシュについて、図9の通信シーケンスを用いて説明する。 Next, the negative cache in the polling communication of this system will be described using the communication sequence of FIG.
まず、クライアント機器1が、自端末の機器IDを含むFQDN「12345−00001.example.jp」を用いた問い合わせを生成し(S21)、この問い合わせをDNSキャッシュサーバ2Bに対して行う(S22)。この場合、DNSキャッシュサーバ2Bのキャッシュ情報保持部22に、問い合わせ元のクライアント機器1の機器IDに関連付けられたキャッシュ情報がないので(S23)、DNSキャッシュサーバ2Bは、DNSコンテンツサーバ2Aに対して同様の問い合わせを行う(S24)。この問い合わせ周期T11は、一定期間毎(例えば、10秒毎)に行われる。
First, the
DNSコンテンツサーバ2Aのコンテンツ情報保持部21には、問い合わせ元のクライアント機器1の機器IDに関連付けられたコンテンツ情報が格納されていない(S25)。そこで、DNSコンテンツサーバ2Aは、コンテンツ情報がないことをDNSキャッシュサーバ2Bへ通知する(S26)。コンテンツ情報がないことを通知されたDNSキャッシュサーバ2Bは、キャッシュ情報保持部22に、クライアント機器1が問い合わせに用いたFQDNに対応して、ネガティブキャッシュ時のキャッシュ保持期間T12(ネガティブキャッシュ期間T12)を設定する(S27)。さらに、DNSキャッシュサーバ2Bは、コンテンツ情報がないことをクライアント機器1へ通知し(S28)、クライアント機器1は、問い合わせに対応するコンテンツ情報がないことを認識し、機器通信サーバ4へのアクセスを行わない(S29)。
Content information associated with the device ID of the inquiry-
そして、クライアント機器1が、自端末の機器IDを含むFQDN「12345−00001.example.jp」を用いた問い合わせを再度生成し(S30)、この問い合わせをDNSキャッシュサーバ2Bに対して再度行う(S31)。この場合、DNSキャッシュサーバ2Bのキャッシュ情報保持部22には、問い合わせに用いたFQDNに対応して、ネガティブキャッシュ期間T12が設定されている(S32)。そして、DNSキャッシュサーバ2Bは、このネガティブキャッシュ期間T12内の再度の問い合わせに対して、コンテンツ情報がないことをクライアント機器1へ通知する(S33)。クライアント機器1は、問い合わせに対応するコンテンツ情報がないことを認識し、機器通信サーバ4へのアクセスを行わない(S34)。
Then, the
このように、クライアント機器1は、DNSサーバ2に対する問い合わせを用いて、機器通信サーバ4に自端末へのデータが存在するか否かを知ることができる。そして、クライアント機器1は、機器通信サーバ4に自端末へのデータが存在する場合に、機器通信サーバ4にアクセスし、機器通信サーバ4に自端末へのデータが存在しない場合には、機器通信サーバ4にアクセスしない。また、クライアント機器1は、ネガティブキャッシュ期間においても、機器通信サーバ4にアクセスしない。
As described above, the
したがって、本システムでは、DNSによる名前解決のための通信がポーリングの機能を兼ねることができるので、DNS環境下において、無駄な通信を行うことなく、ポーリング通信にかかる通信コストを低減することができる。 Therefore, in this system, since communication for name resolution by DNS can also serve as a polling function, communication costs for polling communication can be reduced without performing unnecessary communication in a DNS environment. .
なお、クライアント機器1が、機器通信サーバ4のIPアドレスをDNSサーバ2から取得し、取得したIPアドレスにアクセスした場合、攻撃者によってキャッシュ情報に細工がなされて、異なるサーバに接続させられる虞がある。そこで、クライアント機器1の問い合わせに対して返答する情報は、機器通信サーバ4への接続が必要なことだけを示すことにして、クライアント機器1は、自端末に予め保持している機器通信サーバ4のIPアドレスにアクセスする構成であってもよい。
When the
また、NATルータ3の代わりに、ファイアウォール機能を有するネットワーク機器を設けてもよい。
Instead of the
(実施形態2)
本実施形態の通信システムは、DNSキャッシュサーバ2Bのキャッシュ保持期間の時間長さを、外部からの指示によって変更可能な構成を備える。なお、実施形態1と同様の構成には同一の符号を付して説明は省略する。
(Embodiment 2)
The communication system of the present embodiment has a configuration in which the time length of the cache holding period of the
一般に、サービス事業者が、DNSコンテンツサーバ2Aにおけるコンテンツ保持期間、DNSキャッシュサーバ2Bのキャッシュ保持期間を管理する。そして、キャッシュ保持期間がコンテンツ保持期間より長い場合、コンテンツ保持期間が過ぎて、コンテンツ情報が削除されたにも関わらず、クライアント機器1が、キャッシュ情報に基づいた無駄な問い合わせを行う場合がある。そこで、キャッシュ保持期間の時間長さは、コンテンツ保持期間の時間長さ以下に設定されることが望ましい。
In general, the service provider manages the content retention period in the
しかしながら、顧客宅内に設置されたルータ機器(例えば、NATルータ3)が、DNSキャッシュサーバ2Bの機能を有する場合がある。ルータ機器で構成されたDNSキャッシュサーバ2Bは、キャッシュ保持期間の時間長さに下限が設けられることがある。このキャッシュ保持期間の下限制約によって、サービス事業者が短いコンテンツ保持期間を設定したときに、キャッシュ保持期間の時間長さをコンテンツ保持期間の時間長さ以下に設定できない虞がある。そこで、本実施形態のクライアント機器1は、キャッシュ保持期間の時間長さがコンテンツ保持期間の時間長さより長い場合、DNSキャッシュサーバ2Bに問い合わせをせず、DNSコンテンツサーバ2Aに直接問い合わせを行う。
However, there is a case where a router device (for example, NAT router 3) installed in the customer's home has the function of the
具体的に、クライアント機器1は、自端末の起動時に、起動したことを示す信号を機器通信サーバ4に送信する。機器通信サーバ4は、短いコンテンツ保持期間に設定されたコンテンツ情報を、DNSコンテンツサーバ2Aに登録する。これは、このクライアント機器1が用いるDNSキャッシュサーバ2Bがキャッシュ保持期間に下限制約を設けて、キャッシュ保持期間の時間長さがコンテンツ保持期間の時間長さより長くなっているか否かを検知するためである。
Specifically, the
そして、サービス事業者は、DNSコンテンツサーバ2Aのコンテンツ保持期間より短いキャッシュ保持時間を設定するように、DNSキャッシュサーバ2Bに対して指示する。
Then, the service provider instructs the
次に、クライアント機器1は、一定期間毎の問い合わせによって、IPアドレスを取得して、機器通信サーバ4にアクセスする。そして、機器通信サーバ4は、コンテンツ保持期間が過ぎて、DNSコンテンツサーバ2Aから当該コンテンツ情報が削除された後も、クライアント機器1から当該コンテンツ情報に基づくアクセスがある場合、キャッシュ保持期間の時間長さが下限制約の影響を受けていると判断する。すなわち、キャッシュ保持期間の時間長さは、コンテンツ保持期間の時間長さ以下に設定されるが、コンテンツ保持期間が短くなりすぎると、キャッシュ保持期間の時間長さは、下限制約の影響によってコンテンツ保持期間より長くなる。
Next, the
そこで、機器通信サーバ4は、キャッシュ保持期間が下限制約の影響を受けていると判断した場合、クライアント機器1に対して、DNSキャッシュサーバ2Bへの問い合わせをやめ、DNSコンテンツサーバ2Aに直接問い合わせを行うように指示する。
Therefore, when the
したがって、DNSキャッシュサーバ2Bのキャッシュ保持期間が下限制約の影響を受けている場合、クライアント機器1は、DNSコンテンツサーバ2Aに直接問い合わせることで、DNSキャッシュサーバ2Bの影響を受けずにポーリングを行うことができる。
Therefore, when the cache retention period of the
(実施形態3)
本実施形態の通信システムは、暗号化キーを用いた通信を行うものであり、実施形態1と同様の構成には同一の符号を付して説明は省略する。
(Embodiment 3)
The communication system according to the present embodiment performs communication using an encryption key. The same components as those in the first embodiment are denoted by the same reference numerals, and description thereof is omitted.
本実施形態のクライアント機器1の機器情報テーブル13は、図10に示すように、当該クライアント機器1に予め割り付けられた機器IDと、当該クライアント機器1が機器通信サーバ4から取得した暗号化キーとを格納している。この暗号化キーには、有効期間が設定されており、クライアント機器1は、暗号化キーの有効期間情報も保持している。
As shown in FIG. 10, the device information table 13 of the
この暗号化キーは乱数値であり、機器通信サーバ4によってクライアント機器1毎に異なる値に設定され、機器通信サーバ4が、クライアント機器1のそれぞれに暗号化キーを通知することによって、機器情報テーブル13に暗号化キーが格納される。
This encryption key is a random value, set to a different value for each
そして、クライアント機器1がDNSサーバ2への問い合わせに用いるFQDNは、当該クライアント機器1の機器IDおよび暗号化キー、この暗号化キーの有効期間で構成される文字列(データ列)をハッシュした結果が、ホスト名になる。
Then, the FQDN used by the
さらに機器通信サーバ4の機器情報テーブル42は、図11に示すように、クライアント機器1毎の機器IDおよび暗号化キーを格納している。この暗号化キーには、有効期間が設定されており、機器通信サーバ4は、暗号化キーの有効期間情報も保持している。
Further, the device information table 42 of the
そして、機器通信サーバ4は、機器ID「12345−00001」を割り付けられたクライアント機器1に対してデータを送信したい場合、DNSコンテンツサーバ2Aに通信要求を送信する。この通信要求は、機器通信サーバ4のFQDNと、クライアント機器1のアクセス先となるIPアドレスと、コンテンツ保持期間の各データを含んで生成される。通信要求に含まれるFQDNは、データ送信先のクライアント機器1の機器IDおよび暗号化キー、この暗号化キーの有効期間で構成される文字列(データ列)を、クライアント機器1と同じハッシュ関数でハッシュした結果が、ホスト名になる。
If the
例えば、機器ID「12345−00001」、暗号化キー「akjasdkje」、暗号化キーの有効期間「2011年3月14日18時30分10秒〜19秒」とし、ハッシュ関数shaを用いるとする。この場合、FQDNのホスト名は、sha(1234500001akjasdkje2011031418301)=「b7543dfe53e1043a481367cfac581a7a88a2a79c」で求められる。したがって、FQDNは、「b7543dfe53e1043a481367cfac581a7a88a2a79c.example.jp」となる。 For example, it is assumed that the device ID “12345-00001”, the encryption key “akjasdkje”, the validity period of the encryption key “March 14, 2011, 18:30:10 to 19 seconds” and the hash function sha are used. In this case, the host name of the FQDN is obtained by sha (1234500001akjasdkje2011103418301) = “b7543dfe53e1043a481367cfac581a7a88a2a79c”. Therefore, the FQDN is “b7543dfe53e1043a481367cfac581a7a88a2a79c.example.jp”.
そして、機器通信サーバ4は、クライアント機器1の問い合わせ周期毎に暗号化キーを更新し、クライアント機器1は、問い合わせ周期毎に異なる暗号化キーを機器通信サーバ4から取得する。したがって、暗号化キーが漏洩し難くなり、攻撃者は、クライアント機器1が次の問い合わせに用いるFQDNを類推することが難しくなる。すなわち、攻撃者がポーリング通信の盗聴を行って、偽のIPアドレスをクライアント機器1へ通知することが困難になる。
The
(実施形態4)
実施形態1乃至3において、クライアント機器1は、自端末に関連付けられたFQDNがDNSコンテンツサーバ2Aのコンテンツ情報に格納されている場合、DNSコンテンツサーバ2AからIPアドレスを取得して、機器通信サーバ4との間で通信を行う。しかし、DNSコンテンツサーバ2Aに障害が発生するなどして、コンテンツ情報のFQDNの更新が正しく反映されなかった場合、クライアント機器1と機器通信サーバ4との通信が不可能になる虞がある。
(Embodiment 4)
In the first to third embodiments, when the FQDN associated with its own terminal is stored in the content information of the
そこで、本実施形態では、DNSキャッシュサーバ2Bのキャッシュ保持時間を、クライアント端末1の問い合わせ周期より短くしている。すなわち、DNSキャッシュサーバ2Bは、クライアント機器1の問い合わせ周期より短い周期で、キャッシュ情報を更新する。すなわち、キャッシュ情報が無効になるタイミングを早くすることができる。
Therefore, in the present embodiment, the cache holding time of the
そして、本実施形態のクライアント端末1は、機器通信サーバ4にアクセスするためのIPアドレスを予め保持している。したがって、クライアント端末1は、自端末に関連付けられたFQDNがDNSコンテンツサーバ2Aのコンテンツ情報に格納されていない場合、機器通信サーバ4に問い合わせ信号を直接送信することができる。而して、DNSサーバ2に障害が発生した場合、クライアント端末1は機器通信サーバに直接接続することによって、障害につよいシステムを構築できる。
The
なお、他の構成は、実施形態1乃至3と同様であり、説明は省略する。 Other configurations are the same as those in the first to third embodiments, and a description thereof will be omitted.
1 クライアント機器
2 DNSサーバ
2A DNSコンテンツサーバ
2B DNSキャッシュサーバ
3 NATルータ
4 機器通信サーバ
NT1 宅内ネットワーク
NT2 外部ネットワーク
1
Claims (5)
前記機器通信サーバは、特定の前記クライアント機器との通信要求を前記DNSサーバへ送信し、
前記通信要求を受信した前記DNSサーバは、前記機器通信サーバにアクセスするためのアクセス情報を前記特定のクライアント機器に関連付けて格納し、
前記クライアント機器は、自端末を特定するための特定情報を含む問い合わせ信号を送信し、
前記問い合わせ信号を受信した前記DNSサーバは、前記問い合わせ信号に含まれる前記特定情報に対応する前記クライアント機器に関連付けられた前記アクセス情報を格納している場合、前記問い合わせ信号の送信元である前記クライアント機器へ前記アクセス情報を送信し、
前記クライアント機器は、前記アクセス情報に基づいて前記機器通信サーバにアクセスする
ことを特徴とする通信システム。 A device communication server, a DNS server, and the device communication server and a client device connected to the DNS server via a network;
The device communication server transmits a communication request with the specific client device to the DNS server,
The DNS server that has received the communication request stores access information for accessing the device communication server in association with the specific client device,
The client device transmits an inquiry signal including identification information for identifying the own terminal,
When the DNS server that has received the inquiry signal stores the access information associated with the client device corresponding to the specific information included in the inquiry signal, the DNS server that is the transmission source of the inquiry signal Sending the access information to the device,
The client device accesses the device communication server based on the access information.
前記クライアント機器は、
前記キャッシュ保持期間の時間長さが前記コンテンツ保持期間の時間長さより短い場合、前記問い合わせ信号を前記DNSキャッシュサーバへ送信し、前記DNSキャッシュサーバは、前記問い合わせ信号の送信元である前記クライアント機器に関連付けられた前記アクセス情報が格納されていない場合、前記DNSコンテンツサーバへ前記問い合わせ信号を送信し、
前記キャッシュ保持期間の時間長さが前記コンテンツ保持期間の時間長さより長い場合、前記クライアント機器は、前記問い合わせ信号を前記DNSコンテンツサーバへ送信する
ことを特徴とする請求項1記載の通信システム。 The DNS server receives the communication request, associates the access information with the specific client device, and stores the access information acquired by the client device in association with a DNS content server that stores the content for a content holding period. A DNS cache server that stores the access information in association with the client device that acquired the access information for a cache retention period,
The client device is
When the time length of the cache holding period is shorter than the time length of the content holding period, the inquiry signal is transmitted to the DNS cache server, and the DNS cache server sends the inquiry signal to the client device that is the transmission source of the inquiry signal. If the associated access information is not stored, send the inquiry signal to the DNS content server;
The communication system according to claim 1, wherein when the time length of the cache holding period is longer than the time length of the content holding period, the client device transmits the inquiry signal to the DNS content server.
前記DNSキャッシュサーバの前記キャッシュ保持期間は、前記クライアント機器が前記問い合わせ信号を送信する周期より短く、
前記クライアント機器は、前記問い合わせ信号を前記DNSキャッシュサーバへ送信して、前記DNSキャッシュサーバは、前記問い合わせ信号の送信元である前記クライアント機器に関連付けられた前記アクセス情報が格納されていない場合、前記DNSコンテンツサーバへ前記問い合わせ信号を送信し、
前記クライアント機器は、前記問い合わせ信号に対応する前記アクセス情報を受信しなかった場合、予め保持している前記機器通信サーバのアクセス情報に基づいて前記機器通信サーバにアクセスする
ことを特徴とする請求項1乃至4いずれか記載の通信システム。 The DNS server acquires the access information by receiving the communication request, the DNS content server storing the access information in association with the specific client device, and the access information acquired by the client device. A DNS cache server that is stored in association with the client device for a cache retention period;
The cache retention period of the DNS cache server is shorter than a period in which the client device transmits the inquiry signal,
The client device transmits the inquiry signal to the DNS cache server, and the DNS cache server does not store the access information associated with the client device that is the transmission source of the inquiry signal, Sending the inquiry signal to the DNS content server;
The client device, when not receiving the access information corresponding to the inquiry signal, accesses the device communication server based on the access information of the device communication server held in advance. The communication system according to any one of 1 to 4.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011158162A JP5842128B2 (en) | 2011-07-19 | 2011-07-19 | Communication system, equipment communication server, client equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011158162A JP5842128B2 (en) | 2011-07-19 | 2011-07-19 | Communication system, equipment communication server, client equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2013026730A true JP2013026730A (en) | 2013-02-04 |
| JP5842128B2 JP5842128B2 (en) | 2016-01-13 |
Family
ID=47784627
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2011158162A Active JP5842128B2 (en) | 2011-07-19 | 2011-07-19 | Communication system, equipment communication server, client equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5842128B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015041870A (en) * | 2013-08-21 | 2015-03-02 | 日本電信電話株式会社 | Name resolution system and cache control method |
| CN113472914A (en) * | 2021-06-28 | 2021-10-01 | 广州根链国际网络研究院有限公司 | DNS directional prefetching caching method and system |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090019145A1 (en) * | 2004-05-06 | 2009-01-15 | Takashi Nakanishi | Internet connection terminal apparatus and internet connection status determining method |
| JP2010278559A (en) * | 2009-05-26 | 2010-12-09 | Nippon Telegr & Teleph Corp <Ntt> | DNS message forwarding apparatus, DNS message forwarding system, DNS message forwarding method, and DNS message forwarding program |
-
2011
- 2011-07-19 JP JP2011158162A patent/JP5842128B2/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090019145A1 (en) * | 2004-05-06 | 2009-01-15 | Takashi Nakanishi | Internet connection terminal apparatus and internet connection status determining method |
| JP2010278559A (en) * | 2009-05-26 | 2010-12-09 | Nippon Telegr & Teleph Corp <Ntt> | DNS message forwarding apparatus, DNS message forwarding system, DNS message forwarding method, and DNS message forwarding program |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015041870A (en) * | 2013-08-21 | 2015-03-02 | 日本電信電話株式会社 | Name resolution system and cache control method |
| CN113472914A (en) * | 2021-06-28 | 2021-10-01 | 广州根链国际网络研究院有限公司 | DNS directional prefetching caching method and system |
| CN113472914B (en) * | 2021-06-28 | 2023-09-26 | 北京天地互连信息技术有限公司 | DNS directional prefetching caching method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| JP5842128B2 (en) | 2016-01-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11909639B2 (en) | Request routing based on class | |
| US8521880B1 (en) | Managing content delivery network service providers | |
| US8156243B2 (en) | Request routing | |
| RU2008106250A (en) | STORAGE AND RESOLUTION IN THE BRANCH DNS | |
| CN109067936A (en) | A kind of method and device of domain name mapping | |
| WO2001033364A1 (en) | Device for searching name of communication node device in communication network | |
| JP5842128B2 (en) | Communication system, equipment communication server, client equipment | |
| JP2011049745A (en) | Device for defending dns cache poisoning attack | |
| US11070513B2 (en) | DNS-based method of transmitting data | |
| JP5267893B2 (en) | Network monitoring system, network monitoring method, and network monitoring program | |
| CN106453399A (en) | Method and system for domain name resolution service of user-oriented privacy protection | |
| CN102026161B (en) | System and method for validity verification of certificate in mobile backhaul net | |
| JP2009182750A (en) | Communication system and communication method corresponding to a plurality of network protocols | |
| JP4252041B2 (en) | DHCP information management system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140513 |
|
| A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A711 Effective date: 20141008 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20141219 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150120 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150323 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20150602 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150626 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 5842128 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |