JP2014211758A - Cache server device, cache control method, and cache control program - Google Patents
Cache server device, cache control method, and cache control program Download PDFInfo
- Publication number
- JP2014211758A JP2014211758A JP2013087723A JP2013087723A JP2014211758A JP 2014211758 A JP2014211758 A JP 2014211758A JP 2013087723 A JP2013087723 A JP 2013087723A JP 2013087723 A JP2013087723 A JP 2013087723A JP 2014211758 A JP2014211758 A JP 2014211758A
- Authority
- JP
- Japan
- Prior art keywords
- record
- enum
- storage unit
- query request
- unit
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephonic Communication Services (AREA)
Abstract
【課題】権威サーバへのアクセスを低減することを課題とする。【解決手段】ENUMキャッシュサーバ10は、クエリ要求を受信した場合に、ENUMデータ記憶部13aに記憶された電話番号ごとに、各レコードに対応するクエリ要求を受信した回数を計数する。そして、ENUMキャッシュサーバ10は、計数された回数が所定の回数を超えたレコードが存在する場合には、該レコードを記憶する期間を延長して、ENUMデータ記憶部13aに記憶させる。【選択図】図3An object is to reduce access to an authoritative server. When an ENUM cache server receives a query request, the ENUM cache server counts the number of times the query request corresponding to each record has been received for each telephone number stored in an ENUM data storage unit. When there is a record whose counted number exceeds the predetermined number, the ENUM cache server 10 extends the period for storing the record and stores it in the ENUM data storage unit 13a. [Selection] Figure 3
Description
本発明は、キャッシュサーバ装置、キャッシュ制御方法及びキャッシュ制御プログラムに関する。 The present invention relates to a cache server device, a cache control method, and a cache control program.
近年、DNSの運用形態を利用しつつIP電話などの電話番号をドメイン名として名前解決をおこなうENUM(イーナム:Telephone Number Mapping)の標準化作業が進められている。ENUMは、公衆交換電話網の電話番号体系をインターネットのIPアドレス体系と統合する電話番号マッピングの代表的な規格である。 In recent years, standardization work of ENUM (Enum: Telephone Number Mapping), which performs name resolution using a telephone number of an IP phone or the like as a domain name while utilizing a DNS operation mode, has been promoted. ENUM is a typical telephone number mapping standard that integrates the telephone number system of the public switched telephone network with the IP address system of the Internet.
このようなENUMの分野において、通信制御装置(例えば、呼制御サーバ)からの名前解決要求(以下、「ENUMクエリ」と記載する)に対し、過去におこなったENUM権威サーバに対する問合わせの回答(以下、「ENUMアンサ」と記載する)を蓄積したキャッシュデータを用いて応答するENUMキャッシュサーバが知られている。例えば、ENUMキャッシュサーバは、キャッシュデータとして、電話番号と対応する収容網とが対応付けられた変換表を記憶する。 In such an ENUM field, in response to a name resolution request (hereinafter referred to as an “ENUM query”) from a communication control device (for example, a call control server), an inquiry response to an ENUM authority server made in the past ( Hereinafter, an ENUM cache server that responds using cache data in which "ENUM answer" is stored is known. For example, the ENUM cache server stores a conversion table in which a telephone number and a corresponding accommodating network are associated as cache data.
このENUMキャッシュサーバは、呼制御サーバからENUMクエリを受信すると、受信したENUMクエリに対応する回答データがキャッシュデータとしてキャッシュに存在するか判定する。この結果、ENUMキャッシュサーバは、回答データがキャッシュに存在する場合には、かかるキャッシュデータを用いて名前解決処理を行う。 When receiving the ENUM query from the call control server, the ENUM cache server determines whether answer data corresponding to the received ENUM query exists in the cache as cache data. As a result, when the answer data exists in the cache, the ENUM cache server performs name resolution processing using the cache data.
また、ENUMキャッシュサーバは、回答データがキャッシュに存在しないと判定した場合には、権威サーバにENUMクエリを送信し、その後、権威サーバからENUMアンサを受信する。そして、ENUMキャッシュサーバは、権威サーバから受信したENUMアンサに含まれる回答データをキャッシュするとともに、同じくENUMアンサに含まれるTTL(Time To Live)を回答データに設定する。例えば、ENUMキャッシュサーバは、ENUMデータのTTLとして、60秒を設定すると、ENUMデータをキャッシュしてから60秒後に、該ENUMデータを削除する。 When the ENUM cache server determines that the answer data does not exist in the cache, the ENUM cache server transmits an ENUM query to the authoritative server, and then receives an ENUM answer from the authoritative server. Then, the ENUM cache server caches the response data included in the ENUM answer received from the authority server, and also sets TTL (Time To Live) included in the ENUM answer as response data. For example, if the ENUM cache server sets 60 seconds as the TTL of the ENUM data, the ENUM data is deleted 60 seconds after the ENUM data is cached.
しかしながら、従来のキャッシュサーバでは、設定されるTTLが変わらないため、権威サーバへのアクセスが集中し、権威サーバの処理負荷が高くなってしまう場合があるという課題があった。つまり、例えば、同一電話番号への呼が集中している状況であっても、キャッシュサーバは、TTLに従って、該電話番号に対応するENUMデータを削除してしまうので、その後、該電話番号の問い合わせを受信した場合には、再度ENUM権威サーバへアクセスするため、権威サーバへ頻繁にアクセスすることとなり、権威サーバの処理負荷が高くなってしまう。 However, in the conventional cache server, since the set TTL does not change, there is a problem that access to the authority server is concentrated and the processing load of the authority server may increase. That is, for example, even in a situation where calls to the same telephone number are concentrated, the cache server deletes ENUM data corresponding to the telephone number according to the TTL. Is received again, the ENUM authority server is accessed again, so the authority server is frequently accessed, and the processing load on the authority server increases.
そこで、この発明は、権威サーバへのアクセスの集中を防止し、権威サーバへのアクセスを低減することを目的とする。 Therefore, an object of the present invention is to prevent concentration of access to the authoritative server and reduce access to the authoritative server.
上述した課題を解決し、目的を達成するため、キャッシュサーバ装置は、通信制御装置からのクエリ要求に対応するレコードをキャッシュデータとして記憶するとともに、レコードごとに該レコードを記憶する期間を記憶する記憶部と、前記通信制御装置からクエリ要求を受信する受信部と、前記受信部によって受信したクエリ要求に対応するレコードが前記記憶部に記憶されているか判定する判定部と、前記判定部によって前記レコードが前記記憶部に記憶されていると判定された場合には、該レコードを用いて、前記通信制御装置にクエリ要求に対する回答を返信する返信部と、前記判定部によって前記レコードが前記記憶部に記憶されていないと判定された場合には、該クエリ要求を権威サーバに転送し、転送したクエリ要求に対する回答を前記権威サーバから受信した際には、該回答を前記通信制御装置に転送する転送部と、前記受信部によってクエリ要求を受信した場合に、前記記憶部に記憶されたレコードごとに、各レコードに対応するクエリ要求を受信した回数を計数する計数部と、前記記憶部に、前記計数部によって計数された回数が所定の回数を超えたレコードが存在する場合には、該レコードを記憶する期間を延長して、前記記憶部に記憶させる制御部と、を備えることを特徴とする。 In order to solve the above-described problems and achieve the object, the cache server device stores a record corresponding to the query request from the communication control device as cache data, and stores a period for storing the record for each record. A reception unit that receives a query request from the communication control device, a determination unit that determines whether a record corresponding to the query request received by the reception unit is stored in the storage unit, and the record by the determination unit Is determined to be stored in the storage unit, the record is used to return a response to the query request to the communication control device using the record, and the record is stored in the storage unit by the determination unit. If it is determined that the query request is not stored, the query request is transferred to the authoritative server, and the transferred query request is When an answer is received from the authoritative server, each transfer record that forwards the answer to the communication control device and each record stored in the storage unit when receiving a query request by the receiving unit, A counting unit that counts the number of times a query request corresponding to a record has been received, and if there is a record that exceeds the predetermined number in the storage unit, the record is stored. And a control unit that extends the period and stores it in the storage unit.
また、キャッシュ制御方法は、キャッシュサーバ装置によって実行されるキャッシュ制御方法であって、前記キャッシュサーバ装置は、通信制御装置からのクエリ要求に対応するレコードをキャッシュデータとして記憶するとともに、レコードごとに該レコードを記憶する期間を記憶する記憶部を備え、前記通信制御装置からクエリ要求を受信する受信工程と、前記受信工程によって受信したクエリ要求に対応するレコードが前記記憶部に記憶されているか判定する判定工程と、前記判定工程によって前記レコードが前記記憶部に記憶されていると判定した場合には、該レコードを用いて、前記通信制御装置にクエリ要求に対する回答を返信する返信工程と、前記判定工程によって前記レコードが前記記憶部に記憶されていないと判定した場合には、該クエリ要求を権威サーバに転送し、転送したクエリ要求に対する回答を前記権威サーバから受信した際には、該回答を前記通信制御装置に転送する転送工程と、前記受信工程によってクエリ要求を受信した場合に、前記記憶部に記憶されたレコードごとに、各レコードに対応するクエリ要求を受信した回数を計数する計数工程と、前記記憶部に、前記計数工程によって計数された回数が所定の回数を超えたレコードが存在する場合には、該レコードを記憶する期間を延長して、前記記憶部に記憶させる制御工程と、を含んだことを特徴とする。 The cache control method is a cache control method executed by a cache server device, and the cache server device stores a record corresponding to a query request from a communication control device as cache data, and A storage step for storing a period for storing records; a reception step for receiving a query request from the communication control device; and determining whether a record corresponding to the query request received by the reception step is stored in the storage unit A determination step; and a return step for returning a response to a query request to the communication control device using the record when the determination step determines that the record is stored in the storage unit; and the determination If it is determined by the process that the record is not stored in the storage unit The query request is forwarded to the authoritative server, and when a reply to the forwarded query request is received from the authoritative server, the reply request is forwarded to the communication control device, and the query request is sent by the receiving step. For each record stored in the storage unit, a counting step for counting the number of times the query request corresponding to each record has been received, and the number of times counted by the counting step in the storage unit are predetermined. A control step of extending the period for storing the record and storing it in the storage unit when there is a record exceeding the number of times.
また、キャッシュ制御プログラムは、通信制御装置からクエリ要求を受信する受信ステップと、前記受信ステップによって受信したクエリ要求に対応するレコードが、クエリ要求に対応するレコードをキャッシュデータとして記憶するとともにレコードごとに該レコードを記憶する期間を記憶する記憶部に記憶されているか判定する判定ステップと、前記判定ステップによって前記レコードが前記記憶部に記憶されていると判定した場合には、該レコードを用いて、前記通信制御装置にクエリ要求に対する回答を返信する返信ステップと、前記判定ステップによって前記レコードが前記記憶部に記憶されていないと判定した場合には、該クエリ要求を権威サーバに転送し、転送したクエリ要求に対する回答を前記権威サーバから受信した際には、該回答を前記通信制御装置に転送する転送ステップと、前記受信ステップによってクエリ要求を受信した場合に、前記記憶部に記憶されたレコードごとに、各レコードに対応するクエリ要求を受信した回数を計数する計数ステップと、前記記憶部に、前記計数ステップによって計数された回数が所定の回数を超えたレコードが存在する場合には、該レコードを記憶する期間を延長して、前記記憶部に記憶させる制御ステップと、をコンピュータに実行させる。 In addition, the cache control program receives a query request from the communication control device, and a record corresponding to the query request received by the receiving step stores a record corresponding to the query request as cache data and for each record. If it is determined that the record is stored in the storage unit storing the period for storing the record, and the determination step determines that the record is stored in the storage unit, the record is used, A reply step of returning a response to the query request to the communication control device, and when the determination step determines that the record is not stored in the storage unit, the query request is transferred to the authoritative server and transferred. When an answer to a query request is received from the authoritative server , A transfer step of transferring the answer to the communication control device, and a number of times of receiving a query request corresponding to each record for each record stored in the storage unit when a query request is received by the receiving step. When there is a counting step for counting and a record in which the number of times counted in the counting step exceeds a predetermined number in the storage unit, the period for storing the record is extended and stored in the storage unit And causing the computer to execute control steps.
本願に開示するキャッシュサーバ装置、キャッシュ制御方法及びキャッシュ制御プログラムは、権威サーバへのアクセスの集中を防止し、権威サーバへのアクセスを低減することが可能である。 The cache server device, the cache control method, and the cache control program disclosed in the present application can prevent concentration of access to the authoritative server and reduce access to the authoritative server.
以下に添付図面を参照して、この発明に係るキャッシュサーバ装置、キャッシュ制御方法及びキャッシュ制御プログラムの実施形態を詳細に説明する。なお、この実施形態によりこの発明が限定されるものではない。 Exemplary embodiments of a cache server device, a cache control method, and a cache control program according to the present invention will be explained below in detail with reference to the accompanying drawings. In addition, this invention is not limited by this embodiment.
[第一の実施形態]
以下の実施形態では、第一の実施形態に係るシステムの構成、ENUMキャッシュサーバの構成、ENUMキャッシュサーバによる処理の流れを順に説明し、最後に第一の実施形態による効果を説明する。
[First embodiment]
In the following embodiments, the configuration of the system according to the first embodiment, the configuration of the ENUM cache server, and the flow of processing by the ENUM cache server will be described in order, and finally the effects of the first embodiment will be described.
[システムの構成]
まず、第一の実施形態に係るENUMキャッシュサーバ10が適用されるシステム100の構成の一例を説明する。図1は、第一の実施形態に係るシステム100の構成の一例を示す図である。図1に示すように、第一の実施形態に係るENUMキャッシュサーバ10が適用されるシステム100には、ENUMキャッシュサーバ10、ENUM権威サーバ20、呼制御サーバ30、および、クライアント装置40が含まれ、ENUM権威サーバ20とクライアント装置40との間に、ENUMキャッシュサーバ10および呼制御サーバ30を介して構成される。なお、図1のシステムの例では、各装置10、20、30、40について1台ずつ設けているが、これに限定されるものではなく、各装置10、20、30、40について複数台を設けてもよい。
[System configuration]
First, an example of the configuration of a
ENUMキャッシュサーバ10は、電話番号と収容網とを対応付けた変換表(以下、ENUMデータという)がキャッシュされたキャッシュメモリを有する。そして、ENUMキャッシュサーバ10は、呼制御サーバ30からクエリ要求を受信すると、クエリ要求に対応するENUMデータがキャッシュされているか否かを判定する。この結果、ENUMキャッシュサーバ10は、クエリ要求に対応するENUMデータがキャッシュされている場合には、キャッシュされているENUMデータをクエリ応答として、呼制御サーバ30に返信する。また、ENUMキャッシュサーバ10は、クエリ要求に対応するENUMデータがキャッシュされていない場合には、ENUM権威サーバ20に対してクエリ要求を送信する。
The ENUM
ENUM権威サーバ20は、電話番号と収容網とを対応付けた全てのENUMデータを管理するサーバである。また、ENUM権威サーバ20は、キャッシュサーバ10からクエリ要求を受信すると、ENUMデータから対応するリソースレコードを検索し、検索結果としてのリソースレコードをクエリ応答として、ENUMキャッシュサーバ10を介して、呼制御サーバ30に返信する。
The ENUM
呼制御サーバ30は、クライアント装置間の通信を制御する通信制御装置である。例えば、クライアント装置40から「REGISTER」や「INVITE」などのSIP信号を受信した場合に、ENUMキャッシュサーバ10に対して、電話番号に対応する収容網の情報を要求するENUMクエリを送信する。そして、呼制御サーバ30は、送信したENUMクエリに対する回答として、ENUMアンサをENUMキャッシュサーバ10から受信する。なお、呼制御サーバ30は、複数のENUMキャッシュサーバと接続されている場合には、ENUMクエリの振り分け先となるENUMキャッシュサーバを、複数のENUMキャッシュサーバから決定し、決定したENUMキャッシュサーバに対してENUMクエリを送信する。また、クライアント装置40は、呼制御サーバ30に対してSIP信号を送信する。
The
ここで、図2を用いて、第一の実施形態に係るシステムにおける負荷分散処理について説明する。図2は、第一の実施形態に係るシステムにおける負荷分散処理について説明する図である。図2の例では、電話番号「0422−59−6981」への呼が発生し、電話番号「0422−59−6981」に対応する収容網の問い合わせとして、ENUMクエリが呼制御サーバ30からENUMキャッシュサーバ10に送信されたものとする。
Here, the load distribution processing in the system according to the first embodiment will be described with reference to FIG. FIG. 2 is a diagram for explaining load distribution processing in the system according to the first embodiment. In the example of FIG. 2, a call to the telephone number “0422-59-6981” occurs, and an ENUM query is sent from the
図2に示すように、ENUMキャッシュサーバ10は、ENUMクエリを呼制御サーバ30から受信すると、ENUMクエリに対応するENUMデータがキャッシュされているか否かを判定する。この例では、ENUMキャッシュサーバ10は、ENUMクエリに対応するENUMデータがキャッシュされていないものとし、ENUM権威サーバ20に対してENUMクエリを転送する。
As shown in FIG. 2, when receiving the ENUM query from the
そして、ENUM権威サーバ20は、ENUMクエリをENUMキャッシュサーバ10から受信すると、ENUMデータから対応するレコードを検索し、検索結果としてのレコードをENUMアンサとしてENUMキャッシュサーバ10に返信する。図2の例では、ENUM権威サーバ20は、電話番号「0422−59−6981」に対応するレコードを検索し、電話番号「0422−59−6981」に対応する収容網「east.example.jp」およびTTL「60」を含むENUMアンサをENUMキャッシュサーバ10に返信する。ここで、TTL「60」とは、レコードを記憶する期間が60秒であることを示している。なお、ここでENUM権威サーバ20が指定するTTLは、一律「60」秒であるものとして、以下の説明を行う。
When the
そして、ENUMキャッシュサーバ10は、ENUM権威サーバ20から受信したENUMアンサを呼制御サーバ30に転送する。また、ENUMキャッシュサーバ10は、ENUMアンサに含まれる情報を抽出し、レコードをキャッシュメモリに記憶する。例えば、図2に例示するように、ENUMキャッシュサーバ10は、電話番号「0422−59−6981」と、収容網「east.example.jp」と、TTL「60」とを対応付けたレコードをキャッシュする。
Then, the
[ENUMキャッシュサーバの構成]
次に、図3を用いて、ENUMキャッシュサーバ10の構成を説明する。図3は、第一の実施形態に係るENUMキャッシュサーバ10の構成を説明するための図である。図3に示すように、ENUMキャッシュサーバ10は、通信処理部11、制御部12および記憶部13を有する。
[Configuration of ENUM cache server]
Next, the configuration of the
通信処理部11は、接続されるENUM権威サーバ20および呼制御サーバ30との間でやり取りする各種情報に関する通信を制御する。例えば、通信処理部11は、ENUM権威サーバ20および呼制御サーバ30との間で、ENUMクエリまたはENUMアンサを送受信する。
The
記憶部13は、図3に示すように、ENUMデータ記憶部13a、ENUMクエリデータ記憶部13bを有する。記憶部13は、例えば、RAM(Random Access Memory)、フラッシュメモリ(Flash Memory)等の半導体メモリ素子、又は、ハードディスク、光ディスク等の記憶装置などである。
As shown in FIG. 3, the
ENUMデータ記憶部13aは、キャッシュメモリに相当し、呼制御サーバ30からのクエリ要求に対応するレコードをキャッシュデータとして記憶するとともに、レコードごとに該レコードを記憶する。
The ENUM
ここで、図4を用いて、ENUMデータ記憶部13aに記憶されるデータ例について説明する。例えば、ENUMデータ記憶部13aは、図4に例示するように、「電話番号」と、該電話番号を収容する収容網の情報である「収容網」と、レコードを記憶しておく期間を示す「TTL」とが対応付けられて記憶されている。図4の具体例を挙げて説明すると、例えば、ENUMデータ記憶部13aは、電話番号「03−aaaa−2345」と、収容網「east.example.jp」と、TTL「60」とを対応付けて記憶する。
Here, an example of data stored in the ENUM
ENUMクエリデータ記憶部13bは、後述する計数部12bによって計数された電話番号ごとのENUMクエリ受信回数を記憶する。例えば、図5に例示するように、ENUMクエリデータ記憶部13bは、ENUMデータ記憶部13aに記憶されるレコードに含まれる「電話番号」と、計数部12eによって計数されたENUMクエリ受信回数である「クエリ回数」とを対応付けて記憶する。図5の具体例を挙げて説明すると、例えば、ENUMクエリデータ記憶部13bは、電話番号「03−aaaa−2345」と、クエリ回数「55」とを対応付けて記憶する。
The ENUM query
図1の説明に戻って、制御部12は、受信部12aと、判定部12bと、返信部12cと、転送部12dと、計数部12eと、制御部12fと、削除部12gとを有する。ここで、制御部12は、CPU(Central Processing Unit)やMPU(Micro Processing Unit)などの電子回路やASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)などの集積回路である。
Returning to the description of FIG. 1, the
受信部12aは、呼制御サーバ30からENUMクエリを受信する。具体的には、受信部12aは、ENUMクエリを受信すると、該ENUMクエリを判定部12cに通知するとともに、ENUMクエリを受信した旨を計数部12eに通知する。
The receiving
判定部12bは、受信部12aによって受信したENUMクエリに対応するレコードがENUMデータ記憶部13aに記憶されているか判定する。例えば、判定部12bは、受信部12aからENUMクエリを受け付けると、該ENUMクエリに含まれる電話番号に該当するレコードがENUMデータ記憶部13aに記憶されているか判定する。そして、判定部12bは、判定結果を返信部12cまたは転送部12dに通知する。
The
返信部12cは、判定部12bによってレコードがENUMデータ記憶部13aに記憶されていると判定した場合には、該レコードを用いて、呼制御サーバ30にクエリ要求に対する回答を返信する。例えば、返信部12cは、判定部12bから受信した判定結果が、受信したENUMクエリに対応するレコードがENUMデータ記憶部13aに記憶されているという判定結果である場合には、ENUMデータ記憶部13aからレコードを読み出し、電話番号に対応する収納網、すなわち、電話番号を収納する収納網のアドレス情報をENUMアンサとして、呼制御サーバ30に送信する。
When the
転送部12dは、判定部12bによってレコードがENUMデータ記憶部13aに記憶されていないと判定した場合には、該クエリ要求をENUM権威サーバ20に転送し、転送したクエリ要求に対する回答をENUM権威サーバ20から受信した際には、該回答を呼制御サーバ30に転送する。
When the
計数部12eは、受信部12aによってENUMクエリを受信した場合に、ENUMデータ記憶部13aに記憶されたレコードごとに、各レコードに対応するENUMクエリを受信した回数を計数する。具体的には、計測部12eは、ENUMデータ記憶部13aに記憶されたレコードの電話番号ごとに、所定時間内におけるクエリ要求を受信した回数を計数する。
When the receiving
例えば、計数部12eは、受信部12aによってENUMクエリを受信するたびに、ENUMクエリデータ記憶部13bにおけるENUMクエリに含まれる電話番号に対応するクエリ回数に1を加算する。また、計数部12eは、1秒経過するごとに、ENUMクエリデータ記憶部13bに記憶されたクエリ回数を「0」に更新する。なお、上記した「1秒間」あたりのENUMクエリの受信回数を計数する場合に限定されるものではなく、任意に設定した期間のENUMクエリの受信回数を計数してもよい。
For example, every time the receiving
制御部12fは、計数部によって計数された回数が所定の回数を超えたレコードがある場合には、該レコードを記憶する期間を延長するように制御する。具体的には、制御部12fは、計数部12eによって計数された所定時間内における回数が所定の回数を超えたレコードがある場合には、該レコードを記憶する期間を延長する。例えば、制御部12fは、ENUMクエリデータ記憶部13bを参照し、1秒間あたりのENUMクエリの受信回数が100回を超えた電話番号が存在する場合には、ENUMデータ記憶部13aにおける該当する電話番号のTTLに「3600」秒を加算する。
When there is a record in which the number of times counted by the counting unit exceeds a predetermined number, the
また、制御部12fは、該当する電話番号のTTLに「3600」秒を加算する処理を行うのは一度のみであり、一度加算処理を行った後に、再度1秒間あたりのENUMクエリの受信回数が100回を超えた場合であっても、該当する電話番号のTTLに「3600」秒を加算する処理を行わない。なお、上記では、「1秒間」あたりのENUMクエリの受信回数が「100回」を超えた電話番号が存在する場合に、TTLに「3600秒」を加算する場合を説明したが、「1秒間」、「100回」、「3600秒」などの各値は任意に事前設定することが可能である。
In addition, the
ここで図6を用いて、ENUMクエリの状況に応じて、電話番号ごとにTTLを変更する処理について説明する。図6は、ENUMクエリの状況に応じて、電話番号ごとにTTLを変更する処理を説明する図である。図6に示すように、ENUMキャッシュサーバ10は、通常時には、ENUM権威サーバ20に指定されているTTLとして「60」秒を設定する。
Here, a process for changing the TTL for each telephone number according to the status of the ENUM query will be described with reference to FIG. FIG. 6 is a diagram for explaining processing for changing the TTL for each telephone number in accordance with the status of the ENUM query. As shown in FIG. 6, the
その後、ENUMキャッシュサーバ10は、変動状態時、つまり、特定の電話番号への呼が集中している状態においては、TTL「60」に「3600」を加算した、TTL「3660」を設定する。
Thereafter, the
このように、ENUMキャッシュサーバ10は、ENUMクエリ数の状況、つまり、呼の集中度合いに応じて、ENUM権威サーバ20から受信したTTLをENUMキャッシュサーバ10側で変更することで、ENUM権威サーバ20へのアクセス数を低減させることができる。
In this way, the
例えば、特に、チケット販売先の電話番号や義援金宛先の電話番号などの、特定の電話番号への呼が集中して発生した場合において、従来の場合では、60秒ごとに、ENUMクエリがENUM権威サーバ20に届いてしまうため、ENUM権威サーバ20に対する負荷が継続してかかってしまうことになる。これに対して、第一の実施形態に係るシステムでは、ENUMキャッシュサーバ10への1秒間におけるENUMクエリの回数が所定の閾値を超えた場合には、ENUMキャッシュサーバ10において、ENUM権威サーバ20から取得したTTLを無視し、TTLを変動させる。例えば、ENUMキャッシュサーバ10のENUMデータのTTL時間を3600秒の間延長することで、ENUM権威サーバ20へのENUMクエリ数を抑え、ENUM権威サーバ20への負荷を軽減することができる。
For example, in particular, when calls to a specific telephone number such as a telephone number of a ticket sales destination or a telephone number of a donation are concentrated, in the conventional case, an ENUM query is issued every 60 seconds. Since it reaches the
また、制御部12fは、期間が延長となったレコードについて、計数部12eによって計数された回数が所定の回数以下となった場合には、TTLを短縮するように制御する。例えば、制御部12fは、ENUMクエリデータ記憶部13bを参照し、期間が延長となったレコードについて、1秒間あたりのENUMクエリの受信回数が100回以下となった電話番号が存在するか、1秒間ごとに判定する。そして、制御部12fは、1秒間あたりのENUMクエリの受信回数が100回以下となった電話番号が存在する場合には、
ENUMデータ記憶部13aにおける該当する電話番号のTTLに「3600」秒を減算する。
Further, the
“3600” seconds are subtracted from the TTL of the corresponding telephone number in the ENUM
ここで、図7を用いて、ENUMキャッシュサーバ10におけるTTLの遷移の一例について説明する。図7は、ENUMキャッシュサーバにおけるTTLの遷移例を説明する図である。まず、図7の(1)に示すように、ENUMキャッシュサーバ10は、ENUM権威サーバ20からENUMデータを取得した直後は、ENUM権威サーバ20により設定されているTTL(図7の例では、「権威TTL」と記載)を、ENUMキャッシュサーバ10にキャッシュされたENUMデータのTTL(図7の例では、「キャッシュTTL」と記載)として設定する。
Here, an example of TTL transition in the
続いて、ENUMキャッシュサーバ10は、図7の(2)に示すように、時間の経過とともに、TTLの値を順次減少させる。このように、キャッシュTTLが「権威TTLのみ」で構成される場合(通常状態時)は、権威TTLから減少を開始する。なお、図7の(2)の例では、減少しているTTLについて、「減少権威TTL」、「減少キャッシュTTL」と記載している。
Subsequently, as shown in (2) of FIG. 7, the
そして、ENUMキャッシュサーバ10は、図7の(3)に示すように、ENUMキャッシュサーバ10への1秒間におけるENUMクエリの回数が所定の閾値を超えた場合には、減少権威TTLに調整TTLを加算する。なお、図7の(3)では、加算された調整TTLであって、減少しているTTLを「減少調整TTL」と記載している。
Then, as shown in (3) of FIG. 7, when the number of ENUM queries per second to the
そして、ENUMキャッシュサーバ10は、図7の(4)に示すように、時間の経過とともに、減少キャッシュTTLの値を順次減少させる。このように、キャッシュTTLが「権威TTLと調整TTL」で構成される場合(変動状態時)は、権威TTLの減少は停止させ(減少権威TTLの値を保持し)、調整TTLから減少を開始する(減少調整TTLの発生)。さらに、減少調整TTLが0となった場合は、減少権威TTLの値から減少を再開始する。
Then, as shown in (4) of FIG. 7, the
続いて、ENUMキャッシュサーバ10は、ENUMキャッシュサーバ10への1秒間におけるENUMクエリの回数が所定の閾値以下となった場合には、図7の(5)に示すように、減少キャッシュTTLから調整TTL分を減算する。その後、減算された減少キャッシュTTLの値から時間の経過とともに、TTLの値を順次減少させる。なお、減少キャッシュTTLが0となった場合には、減少権威TTLが0となったとみなして動作する。つまり、減少権威TTLが0となったので、該当するレコードを後述する削除部12gが削除する。
Subsequently, when the number of ENUM queries per second to the
削除部12gは、ENUMデータ記憶部13aに記憶されたレコードの期間を過ぎた場合には、該レコードをENUMデータ記憶部13aから削除する。例えば、削除部12gは、ENUMデータ記憶部13aを参照し、TTLの値が0になっているレコードがある場合には、該レコードをENUMデータ記憶部13aから削除する。
When the period of the record stored in the ENUM
[ENUMキャッシュサーバによる処理]
次に、図8を用いて、第一の実施形態に係るENUMキャッシュサーバ10の処理を説明する。図8は、第一の実施形態に係るENUMキャッシュサーバ10における処理の流れを説明するためのフローチャートである。
[Process by ENUM cache server]
Next, processing of the
図8に示すように、ENUMキャッシュサーバ10の受信部12aが呼制御サーバ30からクエリ要求であるENUMクエリを受信すると(ステップS101肯定)、計数部12eは、電話番号ごとにクエリ要求の受信回数を計数する(ステップS102)。例えば、計数部12eは、ENUMクエリを受信するたびに、ENUMクエリデータ記憶部13bにおけるENUMクエリに含まれる電話番号に対応するクエリ回数に1を加算する。
As shown in FIG. 8, when the receiving
そして、制御部12fは、ENUMクエリの受信回数が所定の閾値を超えたか否かを判定する(ステップS103)。例えば、制御部12fは、ENUMクエリデータ記憶部13bを参照し、1秒間あたりのENUMクエリの受信回数が100回を超えた電話番号のレコードが存在するか判定する。
Then, the
この結果、制御部12fは、ENUMクエリの受信回数が所定の閾値を超えなかったと判定した場合には(ステップS103否定)、ステップS101に戻る。また、制御部12fは、ENUMクエリの受信回数が所定の閾値を超えたと判定した場合には(ステップS103肯定)、すでに調整TTL(例えば、3600秒)が加算済みであるか否かを判定する(ステップS104)。この結果、すでに調整TTLが加算済みであると判定した場合には(ステップS104肯定)、ステップS101に戻る。つまり、一度調整TTLを加算したレコードについては、もう一度調整TTLを加算する処理を行わない。
As a result, when it is determined that the number of receptions of the ENUM query has not exceeded the predetermined threshold (No at Step S103), the
また、制御部12fは、調整TTLが加算済みでないと判定した場合には(ステップS104否定)、電話番号に対応するENUMデータの減少権威TTLに調整TTLを加算する(ステップS105)。
Further, when it is determined that the adjustment TTL has not been added (No at Step S104), the
このように、ENUMキャッシュサーバ10が、ENUMクエリ数の状況に応じて、ENUM権威サーバ20から指定されたTTLを変更するので、例えば、チケット販売や義援金の特定の宛先に対するENUM権威サーバ20へのENUMクエリ負荷を軽減することができる。
In this way, the
[第一の実施形態の効果]
上述してきたように、第一の実施形態にかかるENUMキャッシュサーバ10は、呼制御サーバ30からのクエリ要求に対応するレコードをキャッシュデータとして記憶するとともに、レコードごとに該レコードを記憶する期間を記憶するENUMデータ記憶部13aを有する。そして、ENUMキャッシュサーバ10では、呼制御サーバ30からクエリ要求を受信し、受信したクエリ要求に対応するレコードがENUMデータ記憶部13aに記憶されているか判定する。そして、ENUMキャッシュサーバ10は、判定の結果、レコードがENUMデータ記憶部13aに記憶されていると判定された場合には、該レコードを用いて、呼制御サーバ30にクエリ要求に対する回答を返信する。また、ENUMキャッシュサーバ10は、レコードがENUMデータ記憶部13aに記憶されていないと判定された場合には、該クエリ要求をENUM権威サーバ20に転送し、転送したクエリ要求に対する回答をENUM権威サーバ20から受信した際には、該回答を呼制御サーバ30に転送する。また、ENUMキャッシュサーバ10は、クエリ要求を受信した場合に、ENUMデータ記憶部13aに記憶されたレコードごとに、各レコードに対応するクエリ要求を受信した回数を計数する。そして、ENUMキャッシュサーバ10は、計数された回数が所定の回数を超えたレコードが存在する場合には、該レコードを記憶する期間を延長して、ENUMデータ記憶部13aに記憶させる。
[Effect of the first embodiment]
As described above, the
このように、ENUMキャッシュサーバ10では、ENUMクエリ数の状況に応じて、ENUM権威サーバ20から指定されたTTLを変更することで、権威サーバへのアクセスの集中を防止し、権威サーバへのアクセスを低減することが可能である。
In this way, the
また、第一の実施形態にかかるENUMキャッシュサーバ10では、期間が延長となったレコードについて、計数された回数が所定の回数以下となった場合には、該レコードを記憶する期間を短縮して、ENUMデータ記憶部13aに記憶させる。このため、権威サーバへのアクセスが集中する状況が終わった場合には、延長したTTLを短縮し、通常の時のTTLに戻すことが可能である。
Also, in the
また、第一の実施形態にかかるENUMキャッシュサーバ10では、レコードごとに、所定時間内におけるクエリ要求を受信した回数を計数し、所定時間内における回数が所定の回数を超えたレコードが前記記憶部に存在する場合には、該レコードを記憶する期間を延長して、ENUMデータ記憶部13aに記憶させる。このため、例えば、1秒間におけるクエリ要求を監視することで、ENUM権威サーバ20へのアクセスが集中する状況であるか否かを適切に判断することが可能である。
In the
また、第一の実施形態にかかるENUMキャッシュサーバ10では、ENUMデータ記憶部13aに記憶させたレコードの電話番号ごとに、各電話番号に対応するクエリ要求を受信した回数を計数し、計数された回数が所定の回数を超えた電話番号に対応するレコードがある場合には、該レコードを記憶する期間を延長して、ENUMデータ記憶部13aに記憶させる。このため、例えば、チケット販売先の電話番号や義援金宛先の電話番号などの、特定の電話番号への呼が集中して発生する場合に、権威サーバへのアクセスの集中を防止し、権威サーバへのアクセスを低減することが可能である。
The
また、第一の実施形態にかかるENUMキャッシュサーバ10では、ENUMデータ記憶部13aに記憶されたレコードの期間を過ぎた場合には、該レコードをENUMデータ記憶部13aから削除する。このため、TTLが0となったレコードを適切に削除することが可能である。
In the
[第二の実施形態]
上記の第一の実施形態においては、電話番号ごとに、各電話番号に対応するクエリ要求を受信した回数を計数し、回数に応じてTTLを延長する場合を説明したが、これに限定されるものではなく、局番(市外局番、市内局番)ごとに、各電話番号に対応するクエリ要求を受信した回数を計数し、回数に応じてTTLを延長するようにしてもよい。
[Second Embodiment]
In the first embodiment described above, a case has been described in which the number of times that a query request corresponding to each telephone number is received is counted for each telephone number, and the TTL is extended according to the number of times. However, the present invention is limited to this. For example, the number of times a query request corresponding to each telephone number is received may be counted for each station number (city code, city code), and the TTL may be extended according to the number.
つまり、図9に例示するように、特定の局番の地域において、その地域に激甚等が発生した場合には、他の地域から激甚等が発生した地域への安否確認の呼が集中する。例えば、図9の例では、市外局番「053」に呼が集中している。このような場合に、システムにおいて、ENUMクエリが特定の局番に集中する結果、ENUM権威サーバ20に対してENUMクエリが集中し、ENUM権威サーバ20の処理負荷が増大する。
That is, as illustrated in FIG. 9, in the area of a specific station number, when a violence or the like occurs in that area, calls for confirmation of safety from other areas to the area where the violence or the like has occurred are concentrated. For example, in the example of FIG. 9, calls are concentrated on the area code “053”. In such a case, as a result of the ENUM query being concentrated on a specific station number in the system, the ENUM query is concentrated on the
そこで、第二の実施形態に係るENUMキャッシュサーバでは、局番(市外局番、市内局番)ごとに、各電話番号に対応するクエリ要求を受信した回数を計数し、回数に応じてTTLを延長する。これにより、特定の地域における局番への呼が集中した場合であっても、権威サーバへのアクセスの集中を防止し、権威サーバへのアクセスを低減することを可能とする。 Therefore, the ENUM cache server according to the second embodiment counts the number of times a query request corresponding to each telephone number is received for each station number (city code, city code), and extends TTL according to the number. To do. As a result, even when calls to station numbers in a specific area are concentrated, it is possible to prevent concentration of access to the authority server and to reduce access to the authority server.
そこで、以下の第二の実施形態では、局番(市外局番、市内局番)ごとに、各局番に対応するクエリ要求を受信した回数を計数し、回数に応じてTTLを延長する場合として、図10〜図14を用いて、第二の実施形態における情報収集配信サーバの処理について説明する。なお、第二の実施形態に係るENUMキャッシュサーバの構成は、図3に示した第一の実施形態に係るENUMキャッシュサーバと同様であるため、説明を省略する。 Therefore, in the following second embodiment, for each station number (city code, local station number), the number of times the query request corresponding to each station number is received is counted, and the TTL is extended according to the number of times. The processing of the information collection / delivery server in the second embodiment will be described with reference to FIGS. The configuration of the ENUM cache server according to the second embodiment is the same as that of the ENUM cache server according to the first embodiment shown in FIG.
まず、第二の実施形態に係るENUMキャッシュサーバのENUMクエリデータ記憶部13bについて図10を用いて説明する。図10に示すように、ENUMクエリデータ記憶部13bは、計数部12eによって計数された市外局番ごとのENUMクエリ受信回数を記憶する。例えば、図10の例では、ENUMクエリデータ記憶部13bは、ENUMデータ記憶部13aに記憶されるレコードに含まれる「市外局番」と、計数部12eによって計数されたENUMクエリ受信回数である「クエリ回数」とを対応付けて記憶する。なお、計測対象の局番は、任意に事前設定が可能である。
First, the ENUM query
第二の実施形態に係るENUMキャッシュサーバの計数部12eは、ENUMクエリデータ記憶部13bに記憶されたレコードにおける同一の市外局番ごとに、各市外局番に対応するクエリ要求を受信した回数を計数する。
The
また、第二の実施形態に係るENUMキャッシュサーバの制御部12fは、計数部12eによって計数された回数が所定の回数を超えた市外局番に対応するレコードがある場合には、該レコードを記憶する期間を延長して、ENUMデータ記憶部13aに記憶させる。
In addition, the
例えば、図11に例示するように、第二の実施形態に係るENUMキャッシュサーバは、市外局番「0053」に対するENUMクエリの回数が1秒間に100回以上であると判定した場合には、市外局番0053に属する全てのENUMデータのTTLを自律的に延長する。例えば、図11の例では、特定の市外局番0053に属する全てのENUMデータのTTLに「3600」を加算した、TTL「3660」を設定している。 For example, as illustrated in FIG. 11, when the ENUM cache server according to the second embodiment determines that the number of ENUM queries for the area code “0053” is 100 or more per second, The TTL of all ENUM data belonging to the external station number 0053 is autonomously extended. For example, in the example of FIG. 11, TTL “3660” is set by adding “3600” to the TTL of all ENUM data belonging to a specific area code 0053.
このように、第二の実施形態に係るENUMキャッシュサーバは、市外局番単位に、ENUMクエリ数を測定し、ENUMクエリ数が閾値を超えた場合には、ENUMキャッシュサーバが保持している当該局番に属する全てのENUMデータのTTL値を自律的に延伸する。また、ENUMクエリ数が閾値以下になった場合、延伸したTTLを通常に戻す。これにより、激甚等発生時のENUM権威サーバ20に対するENUMクエリ数を削減し、ENUM権威サーバ20の負荷を軽減することが可能である。
In this way, the ENUM cache server according to the second embodiment measures the number of ENUM queries for each area code, and when the number of ENUM queries exceeds a threshold, the ENUM cache server holds TTL values of all ENUM data belonging to station numbers are autonomously extended. Further, when the number of ENUM queries becomes equal to or less than the threshold, the extended TTL is returned to normal. Thereby, it is possible to reduce the number of ENUM queries to the ENUM
次に、図12を用いて、第二の実施形態に係るENUMキャッシュサーバの処理を説明する。図12は、第二の実施形態に係るENUMキャッシュサーバにおける処理の流れを説明するためのフローチャートである。 Next, processing of the ENUM cache server according to the second embodiment will be described with reference to FIG. FIG. 12 is a flowchart for explaining the flow of processing in the ENUM cache server according to the second embodiment.
図12に示すように、第二の実施形態に係るENUMキャッシュサーバの受信部12aが呼制御サーバ30からクエリ要求であるENUMクエリを受信すると(ステップS201肯定)、計数部12eは、局番ごとにクエリ要求の受信回数を計数する(ステップS202)。例えば、計数部12eは、ENUMクエリを受信するたびに、ENUMクエリデータ記憶部13bにおけるENUMクエリに含まれる局番に対応するクエリ回数に1を加算する。
As shown in FIG. 12, when the receiving
そして、制御部12fは、ENUMクエリの受信回数が所定の閾値を超えたか否かを判定する(ステップS203)。例えば、制御部12fは、ENUMクエリデータ記憶部13bを参照し、1秒間あたりのENUMクエリの受信回数が100回を超えた局番のレコードが存在するか判定する。
Then, the
この結果、制御部12fは、ENUMクエリの受信回数が所定の閾値を超えなかったと判定した場合には(ステップS203否定)、ステップS201に戻る。また、制御部12fは、ENUMクエリの受信回数が所定の閾値を超えたと判定した場合には(ステップS203肯定)、すでに調整TTL(例えば、3600秒)が加算済みであるか否かを判定する(ステップS204)。この結果、すでに調整TTLが加算済みであると判定した場合には(ステップS204肯定)、ステップS201に戻る。
As a result, when it is determined that the number of receptions of the ENUM query has not exceeded the predetermined threshold (No at Step S203), the
また、制御部12fは、調整TTLが加算済みでないと判定した場合には(ステップS204否定)、局番に属する全てのENUMデータの減少権威TTLに調整TTLを加算する(ステップS205)。
If it is determined that the adjustment TTL has not been added (No at Step S204), the
また、市外局番単位にENUMクエリ数を測定する場合に限らず、市外局番および市内局番の組み合わせで定まる単位でENUMクエリ数を測定してもよい。このような場合、例えば、図13に例示するように、ENUMクエリデータ記憶部13bは、計数部12eによって計数された市外局番および市内局番の組み合わせで定まる単位ごとのENUMクエリ受信回数を記憶する。例えば、図13の例では、ENUMクエリデータ記憶部13bは、ENUMデータ記憶部13aに記憶されるレコードに含まれる「市外局番」および「市内局番」と、計数部12eによって計数されたENUMクエリ受信回数である「クエリ回数」とを対応付けて記憶する。
In addition, the number of ENUM queries may be measured in a unit determined by a combination of the area code and the city code, not only when the number of ENUM queries is measured in the area code unit. In such a case, for example, as illustrated in FIG. 13, the ENUM query
次に、図14を用いて、ENUMクエリの状況に応じて、市外局番および市内局番ごとにTTLを変更する処理について説明する。図14は、ENUMクエリの状況に応じて、市外局番および市内局番ごとにTTLを変更する処理を説明する図である。図14に例示するように、第二の実施形態に係るENUMキャッシュサーバは、市外局番が「0053」であって、かつ、市内局番が「bbbb」に対するENUMクエリの回数が1秒間に100回以上であると判定した場合には、市外局番が「0053」であって、かつ、市内局番が「bbbb」である全てのENUMデータのTTLを自律的に延長する。例えば、図13の例では、該当する全てのENUMデータのTTLに「3600」を加算した、TTL「3660」を設定している。 Next, a process of changing the TTL for each area code and city code according to the status of the ENUM query will be described with reference to FIG. FIG. 14 is a diagram for explaining processing for changing the TTL for each area code and city code according to the status of the ENUM query. As illustrated in FIG. 14, the ENUM cache server according to the second embodiment is configured such that the number of ENUM queries for the area code “0053” and the city code “bbbb” is 100 per second. If it is determined that the number is equal to or greater than the number of times, the TTL of all ENUM data whose area code is “0053” and whose city code is “bbbb” is autonomously extended. For example, in the example of FIG. 13, TTL “3660” is set by adding “3600” to the TTL of all corresponding ENUM data.
このように、第二の実施形態に係るENUMキャッシュサーバは、市外局番および市内局番の組み合わせで定まる単位に、ENUMクエリ数を測定し、ENUMクエリ数が閾値を超えた場合には、ENUMキャッシュサーバが保持している当該局番に属する全てのENUMデータのTTL値を自律的に延伸することで、激甚等発生時のENUM権威サーバ20に対するENUMクエリ数を削減し、ENUM権威サーバ20の負荷を軽減することが可能である。
As described above, the ENUM cache server according to the second embodiment measures the number of ENUM queries in a unit determined by the combination of the area code and the city code, and if the number of ENUM queries exceeds the threshold, the ENUM By automatically extending the TTL values of all ENUM data belonging to the relevant station number held by the cache server, the number of ENUM queries to the
[システム構成等]
また、図示した各装置の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。例えば、制御部12fと削除部12gを統合してもよい。さらに、各装置にて行なわれる各処理機能は、その全部または任意の一部が、CPUおよび当該CPUにて解析実行されるプログラムにて実現され、あるいは、ワイヤードロジックによるハードウェアとして実現され得る。
[System configuration, etc.]
Further, each component of each illustrated apparatus is functionally conceptual, and does not necessarily need to be physically configured as illustrated. In other words, the specific form of distribution / integration of each device is not limited to that shown in the figure, and all or a part thereof may be functionally or physically distributed or arbitrarily distributed in arbitrary units according to various loads or usage conditions. Can be integrated and configured. For example, the
また、本実施例において説明した各処理のうち、自動的におこなわれるものとして説明した処理の全部または一部を手動的に行うこともでき、あるいは、手動的におこなわれるものとして説明した処理の全部または一部を公知の方法で自動的におこなうこともできる。この他、上記文書中や図面中で示した処理手順、制御手順、具体的名称、各種のデータやパラメータを含む情報については、特記する場合を除いて任意に変更することができる。 Also, among the processes described in the present embodiment, all or part of the processes described as being performed automatically can be performed manually, or the processes described as being performed manually can be performed. All or a part can be automatically performed by a known method. In addition, the processing procedure, control procedure, specific name, and information including various data and parameters shown in the above-described document and drawings can be arbitrarily changed unless otherwise specified.
[プログラム]
また、上記実施形態において説明したENUMキャッシュサーバ10が実行する処理をコンピュータが実行可能な言語で記述したプログラムを作成することもできる。例えば、第一の実施形態に係るENUMキャッシュサーバ10が実行する処理をコンピュータが実行可能な言語で記述したキャッシュ制御プログラムを作成することもできる。この場合、コンピュータがキャッシュ制御プログラムを実行することにより、上記実施形態と同様の効果を得ることができる。さらに、かかるキャッシュ制御プログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されキャッシュ制御プログラムをコンピュータに読み込ませて実行することにより上記第一の実施形態と同様の処理を実現してもよい。以下に、図3に示したENUMキャッシュサーバ10と同様の機能を実現するキャッシュ制御プログラムを実行するコンピュータの一例を説明する。
[program]
It is also possible to create a program in which the processing executed by the
図15は、キャッシュ制御プログラムを実行するコンピュータ1000を示す図である。図15に例示するように、コンピュータ1000は、例えば、メモリ1010と、CPU1020と、ハードディスクドライブインタフェース1030と、ディスクドライブインタフェース1040と、シリアルポートインタフェース1050と、ビデオアダプタ1060と、ネットワークインタフェース1070とを有し、これらの各部はバス1080によって接続される。
FIG. 15 is a diagram illustrating a
メモリ1010は、図15に例示するように、ROM(Read Only Memory)1011及びRAM1012を含む。ROM1011は、例えば、BIOS(Basic Input Output System)等のブートプログラムを記憶する。ハードディスクドライブインタフェース1030は、図15に例示するように、ハードディスクドライブ1031に接続される。ディスクドライブインタフェース1040は、図15に例示するように、ディスクドライブ1041に接続される。例えば磁気ディスクや光ディスク等の着脱可能な記憶媒体が、ディスクドライブ1041に挿入される。シリアルポートインタフェース1050は、図15に例示するように、例えばマウス1051、キーボード1052に接続される。ビデオアダプタ1060は、図15に例示するように、例えばディスプレイ1061に接続される。
The
ここで、図15に例示するように、ハードディスクドライブ1031は、例えば、OS1091、アプリケーションプログラム1092、プログラムモジュール1093、プログラムデータ1094を記憶する。すなわち、上記のキャッシュ制御プログラムは、コンピュータ1000によって実行される指令が記述されたプログラムモジュールとして、例えばハードディスクドライブ1031に記憶される。
Here, as illustrated in FIG. 15, the hard disk drive 1031 stores, for example, an
また、上記実施形態で説明した各種データは、プログラムデータとして、例えばメモリ1010やハードディスクドライブ1031に記憶される。そして、CPU1020が、メモリ1010やハードディスクドライブ1031に記憶されたプログラムモジュール1093やプログラムデータ1094を必要に応じてRAM1012に読み出し、各種処理手順を実行する。
The various data described in the above embodiment is stored as program data, for example, in the
なお、キャッシュ制御プログラムに係るプログラムモジュール1093やプログラムデータ1094は、ハードディスクドライブ1031に記憶される場合に限られず、例えば着脱可能な記憶媒体に記憶され、ディスクドライブ等を介してCPU1020によって読み出されてもよい。あるいは、キャッシュ制御プログラムに係るプログラムモジュール1093やプログラムデータ1094は、ネットワーク(LAN(Local Area Network)、WAN(Wide Area Network)等)を介して接続された他のコンピュータに記憶され、ネットワークインタフェース1070を介してCPU1020によって読み出されてもよい。
Note that the
10 ENUMキャッシュサーバ
11 通信処理部
12 制御部
12a 受信部
12b 判定部
12c 返信部
12d 転送部
12e 計数部
12f 制御部
12g 削除部
13 記憶部
13a ENUMデータ記憶部
13b ENUMクエリデータ記憶部
20 ENUM権威サーバ
30 呼制御サーバ
40 クライアント装置
DESCRIPTION OF
Claims (8)
前記通信制御装置からクエリ要求を受信する受信部と、
前記受信部によって受信したクエリ要求に対応するレコードが前記記憶部に記憶されているか判定する判定部と、
前記判定部によって前記レコードが前記記憶部に記憶されていると判定された場合には、該レコードを用いて、前記通信制御装置にクエリ要求に対する回答を返信する返信部と、
前記判定部によって前記レコードが前記記憶部に記憶されていないと判定された場合には、該クエリ要求を権威サーバに転送し、転送したクエリ要求に対する回答を前記権威サーバから受信した際には、該回答を前記通信制御装置に転送する転送部と、
前記受信部によってクエリ要求を受信した場合に、前記記憶部に記憶されたレコードごとに、各レコードに対応するクエリ要求を受信した回数を計数する計数部と、
前記記憶部に、前記計数部によって計数された回数が所定の回数を超えたレコードが存在する場合には、該レコードを記憶する期間を延長して、前記記憶部に記憶させる制御部と、
を備えることを特徴とするキャッシュサーバ装置。 A storage unit that stores a record corresponding to a query request from the communication control device as cache data, and stores a period for storing the record for each record;
A receiving unit for receiving a query request from the communication control device;
A determination unit that determines whether a record corresponding to the query request received by the reception unit is stored in the storage unit;
If the determination unit determines that the record is stored in the storage unit, using the record, a reply unit that returns a response to the query request to the communication control device;
When it is determined by the determination unit that the record is not stored in the storage unit, the query request is transferred to the authority server, and when an answer to the transferred query request is received from the authority server, A transfer unit for transferring the answer to the communication control device;
When receiving a query request by the receiving unit, for each record stored in the storage unit, a counting unit that counts the number of times a query request corresponding to each record is received;
When there is a record in which the number of times counted by the counting unit exceeds a predetermined number in the storage unit, a control unit that extends the period for storing the record and stores the record in the storage unit;
A cache server device comprising:
前記制御部は、前記計数部によって計数された所定時間内における回数が所定の回数を超えたレコード前記記憶部に存在する場合には、該レコードを記憶する期間を延長して、前記記憶部に記憶させることを特徴とする請求項1または2に記載のキャッシュサーバ装置。 The measurement unit counts the number of times a query request is received within a predetermined time for each record,
When the number of times counted within the predetermined time counted by the counting unit exceeds the predetermined number, the control unit extends the period for storing the record to the storage unit. The cache server device according to claim 1, wherein the cache server device is stored.
前記計数部は、前記記憶部に記憶されたレコードの電話番号ごとに、各電話番号に対応するクエリ要求を受信した回数を計数し、
前記制御部は、前記計数部によって計数された回数が所定の回数を超えた電話番号に対応するレコードがある場合には、該レコードを記憶する期間を延長して、前記記憶部に記憶させることを特徴とする請求項1〜3のいずれか一つに記載のキャッシュサーバ装置。 The storage unit stores a telephone number and a storage network corresponding to the telephone number in association with each other as a record corresponding to the query request from the communication control device,
The counting unit counts the number of times the query request corresponding to each telephone number is received for each telephone number of the record stored in the storage unit,
When there is a record corresponding to a telephone number for which the number counted by the counting unit exceeds a predetermined number, the control unit extends the period for storing the record and stores the record in the storage unit The cache server device according to any one of claims 1 to 3.
前記計数部は、前記記憶部に記憶されたレコードにおける同一の局番ごとに、各局番に対応するクエリ要求を受信した回数を計数し、
前記制御部は、前記計数部によって計数された回数が所定の回数を超えた局番に対応するレコードがある場合には、該レコードを記憶する期間を延長して、前記記憶部に記憶させることを特徴とする請求項1〜3のいずれか一つに記載のキャッシュサーバ装置。 The storage unit stores a telephone number and a storage network corresponding to the telephone number in association with each other as a record corresponding to the query request from the communication control device,
The counting unit counts the number of times a query request corresponding to each station number is received for each identical station number in the record stored in the storage unit,
When there is a record corresponding to a station number in which the number of times counted by the counting unit exceeds a predetermined number, the control unit extends a period for storing the record and stores the record in the storage unit. The cache server device according to any one of claims 1 to 3, wherein
前記キャッシュサーバ装置は、
通信制御装置からのクエリ要求に対応するレコードをキャッシュデータとして記憶するとともに、レコードごとに該レコードを記憶する期間を記憶する記憶部を備え、
前記通信制御装置からクエリ要求を受信する受信工程と、
前記受信工程によって受信したクエリ要求に対応するレコードが前記記憶部に記憶されているか判定する判定工程と、
前記判定工程によって前記レコードが前記記憶部に記憶されていると判定した場合には、該レコードを用いて、前記通信制御装置にクエリ要求に対する回答を返信する返信工程と、
前記判定工程によって前記レコードが前記記憶部に記憶されていないと判定した場合には、該クエリ要求を権威サーバに転送し、転送したクエリ要求に対する回答を前記権威サーバから受信した際には、該回答を前記通信制御装置に転送する転送工程と、
前記受信工程によってクエリ要求を受信した場合に、前記記憶部に記憶されたレコードごとに、各レコードに対応するクエリ要求を受信した回数を計数する計数工程と、
前記記憶部に、前記計数工程によって計数された回数が所定の回数を超えたレコードが存在する場合には、該レコードを記憶する期間を延長して、前記記憶部に記憶させる制御工程と、
を含んだことを特徴とするキャッシュ制御方法。 A cache control method executed by a cache server device,
The cache server device
A record corresponding to the query request from the communication control device is stored as cache data, and a storage unit that stores a period for storing the record for each record is provided.
Receiving a query request from the communication control device;
A determination step of determining whether a record corresponding to the query request received by the reception step is stored in the storage unit;
If it is determined by the determination step that the record is stored in the storage unit, using the record, a reply step of returning a response to the query request to the communication control device;
If it is determined in the determination step that the record is not stored in the storage unit, the query request is transferred to an authority server, and when an answer to the transferred query request is received from the authority server, A transfer step of transferring an answer to the communication control device;
When receiving a query request by the receiving step, for each record stored in the storage unit, a counting step for counting the number of times a query request corresponding to each record is received;
In the storage unit, when there is a record in which the number of times counted by the counting step exceeds a predetermined number, a control step of extending the period for storing the record and storing the record in the storage unit;
A cache control method comprising:
前記受信ステップによって受信したクエリ要求に対応するレコードが、クエリ要求に対応するレコードをキャッシュデータとして記憶するとともにレコードごとに該レコードを記憶する期間を記憶する記憶部に記憶されているか判定する判定ステップと、
前記判定ステップによって前記レコードが前記記憶部に記憶されていると判定した場合には、該レコードを用いて、前記通信制御装置にクエリ要求に対する回答を返信する返信ステップと、
前記判定ステップによって前記レコードが前記記憶部に記憶されていないと判定した場合には、該クエリ要求を権威サーバに転送し、転送したクエリ要求に対する回答を前記権威サーバから受信した際には、該回答を前記通信制御装置に転送する転送ステップと、
前記受信ステップによってクエリ要求を受信した場合に、前記記憶部に記憶されたレコードごとに、各レコードに対応するクエリ要求を受信した回数を計数する計数ステップと、
前記記憶部に、前記計数ステップによって計数された回数が所定の回数を超えたレコードが存在する場合には、該レコードを記憶する期間を延長して、前記記憶部に記憶させる制御ステップと、
をコンピュータに実行させるためのキャッシュ制御プログラム。 A receiving step of receiving a query request from the communication control device;
Determination step of determining whether the record corresponding to the query request received by the reception step is stored in a storage unit that stores a record corresponding to the query request as cache data and stores a period for storing the record for each record When,
If the determination step determines that the record is stored in the storage unit, using the record, a reply step of returning a response to the query request to the communication control device;
If it is determined in the determination step that the record is not stored in the storage unit, the query request is transferred to an authority server, and when an answer to the transferred query request is received from the authority server, A transfer step of transferring an answer to the communication control device;
When receiving a query request by the receiving step, for each record stored in the storage unit, a counting step for counting the number of times the query request corresponding to each record is received;
In the storage unit, when there is a record in which the number of times counted by the counting step exceeds a predetermined number, a control step of extending the period for storing the record and storing the record in the storage unit;
Control program for causing a computer to execute.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013087723A JP2014211758A (en) | 2013-04-18 | 2013-04-18 | Cache server device, cache control method, and cache control program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013087723A JP2014211758A (en) | 2013-04-18 | 2013-04-18 | Cache server device, cache control method, and cache control program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2014211758A true JP2014211758A (en) | 2014-11-13 |
Family
ID=51931473
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2013087723A Pending JP2014211758A (en) | 2013-04-18 | 2013-04-18 | Cache server device, cache control method, and cache control program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2014211758A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016111448A (en) * | 2014-12-03 | 2016-06-20 | 日本電信電話株式会社 | Enum cache server, enum cache method, and enum system |
| JP2016163225A (en) * | 2015-03-03 | 2016-09-05 | 日本電信電話株式会社 | Communication system and congestion avoidance method |
| JP2017034399A (en) * | 2015-07-30 | 2017-02-09 | 日本電信電話株式会社 | Enum system and load distribution method for enum system |
| JP2017143421A (en) * | 2016-02-10 | 2017-08-17 | 日本電信電話株式会社 | ENUM cache setting system, ENUM authority server, and ENUM cache setting method |
| CN114691725A (en) * | 2020-12-28 | 2022-07-01 | 京东数字科技控股股份有限公司 | Data query method, device, equipment, storage medium and program product |
| CN115858873A (en) * | 2022-12-26 | 2023-03-28 | 达梦数据技术(江苏)有限公司 | Multi-layer adjacency query optimization implementation method and system based on graph storage model |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001344145A (en) * | 2000-06-01 | 2001-12-14 | Fujitsu Ltd | INFORMATION PROVIDING DEVICE AND STORAGE MEDIUM CONTAINING PROGRAM FOR CAUSING COMPUTER TO PROCESS PROCESS IN THE INFORMATION PROVIDING DEVICE |
-
2013
- 2013-04-18 JP JP2013087723A patent/JP2014211758A/en active Pending
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001344145A (en) * | 2000-06-01 | 2001-12-14 | Fujitsu Ltd | INFORMATION PROVIDING DEVICE AND STORAGE MEDIUM CONTAINING PROGRAM FOR CAUSING COMPUTER TO PROCESS PROCESS IN THE INFORMATION PROVIDING DEVICE |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016111448A (en) * | 2014-12-03 | 2016-06-20 | 日本電信電話株式会社 | Enum cache server, enum cache method, and enum system |
| JP2016163225A (en) * | 2015-03-03 | 2016-09-05 | 日本電信電話株式会社 | Communication system and congestion avoidance method |
| JP2017034399A (en) * | 2015-07-30 | 2017-02-09 | 日本電信電話株式会社 | Enum system and load distribution method for enum system |
| JP2017143421A (en) * | 2016-02-10 | 2017-08-17 | 日本電信電話株式会社 | ENUM cache setting system, ENUM authority server, and ENUM cache setting method |
| CN114691725A (en) * | 2020-12-28 | 2022-07-01 | 京东数字科技控股股份有限公司 | Data query method, device, equipment, storage medium and program product |
| CN115858873A (en) * | 2022-12-26 | 2023-03-28 | 达梦数据技术(江苏)有限公司 | Multi-layer adjacency query optimization implementation method and system based on graph storage model |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8103915B2 (en) | Failure system for domain name system client | |
| JP2014211758A (en) | Cache server device, cache control method, and cache control program | |
| US20090245265A1 (en) | Communication gateway device and relay method of the same | |
| US10182033B1 (en) | Integration of service scaling and service discovery systems | |
| WO2018113594A1 (en) | Method and device for defending dns attack and storage medium | |
| US20100281146A1 (en) | Dynamic domain name service system and automatic registration method | |
| WO2018090677A1 (en) | Processing method, device and system for nf component abnormality | |
| WO2021098407A1 (en) | Mec-based service node allocation method and apparatus, and related server | |
| CN112104640B (en) | Data processing method, device and equipment of gateway and readable storage medium | |
| JP2016510542A (en) | A method for obtaining a mapping between a mobile subscriber identity and a dynamically assigned Internet Protocol (IP) address using a Diameter routing agent (DRA) and making the mapping accessible to an application; System and computer-readable medium | |
| US20160080262A1 (en) | Domain name collaboration service using domain name dependency server | |
| US20150249636A1 (en) | Resource download method, service server and cellular phone client | |
| US10135916B1 (en) | Integration of service scaling and external health checking systems | |
| WO2018214853A1 (en) | Method, apparatus, medium and device for reducing length of dns message | |
| CN114745413A (en) | Access control method and device for server, computer equipment and storage medium | |
| US20160197989A1 (en) | Managing traffic-overload on a server | |
| CN118368270A (en) | Domain name resolution method, device, computer equipment and computer readable storage medium | |
| EP3151520B1 (en) | Quarantining an internet protocol address | |
| CN106790469A (en) | A kind of buffer control method, device and system | |
| JP6734804B2 (en) | Cache server and cache method | |
| JP6368127B2 (en) | Communication device, control method, and program | |
| JP6484166B2 (en) | Name resolution device, name resolution method, and name resolution program | |
| CN106412257B (en) | Positioning service control method and system | |
| JP6329479B2 (en) | ENUM cache server, ENUM cache method, and ENUM system | |
| CN113545020B (en) | Data processing method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150715 |
|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20151001 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20151005 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160513 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160524 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20161122 |