JP2016167670A - Communication device - Google Patents
Communication device Download PDFInfo
- Publication number
- JP2016167670A JP2016167670A JP2015045816A JP2015045816A JP2016167670A JP 2016167670 A JP2016167670 A JP 2016167670A JP 2015045816 A JP2015045816 A JP 2015045816A JP 2015045816 A JP2015045816 A JP 2015045816A JP 2016167670 A JP2016167670 A JP 2016167670A
- Authority
- JP
- Japan
- Prior art keywords
- management unit
- information
- information management
- module
- communication device
- 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
- 238000004891 communication Methods 0.000 title claims abstract description 65
- 238000000034 method Methods 0.000 claims description 22
- 230000008569 process Effects 0.000 claims description 20
- 238000012545 processing Methods 0.000 abstract description 38
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 230000010076 replication Effects 0.000 description 4
- 238000002474 experimental method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
Images
Abstract
Description
この発明は、ホームネットワーク及び外部ネットワークを相互接続するホームゲートウェイ(Home−GateWay:HGW)等の通信機器に関する。 The present invention relates to a communication device such as a home gateway (HGW) that interconnects a home network and an external network.
近年、この種の通信機器は、ホームネットワークと外部ネットワークとを相互接続するブロードバンドルータとしての機能だけでなく、ホームネットワークに属する各種機器へ提供されるサービスの制御を行う機能も付加されるようになっている(例えば、特許文献1)。 In recent years, this type of communication device is added not only with a function as a broadband router for interconnecting a home network and an external network, but also with a function for controlling services provided to various devices belonging to the home network. (For example, Patent Document 1).
HGW等の通信機器と宅内の各機器との接続手法として各種の無線通信規格の発展が進んでおり、ホームネットワークに接続される機器は、今後も多様化していくことが予想される。また、各宅での機器使用状況は、経済的にビッグデータとしての活用価値があり、各宅の機器から取得したデータをクラウドサーバ上に集め、個々のユーザニーズにあった多種多様なサービス展開が行われることも予想される。HGW等の通信機器には、ファームアップせずに機器の増加に対応できる仕組みが求められており、ホームネットワーク内の機器間通信に用いる様々な通信プロトコルが策定されている。 Various wireless communication standards have been developed as a method for connecting communication devices such as HGW and home devices, and devices connected to home networks are expected to diversify in the future. In addition, the device usage status at each home is economically useful as big data, and the data acquired from each home device is collected on a cloud server, and a wide variety of services are developed to meet individual user needs. Is also expected to occur. A communication device such as an HGW is required to have a mechanism that can cope with an increase in devices without upgrading the firmware, and various communication protocols used for communication between devices in a home network have been developed.
例えば、HGW等の通信機器においては、多様なプロトコル、機器に対応する柔軟なソフトウェア実装性を実現するため、仮想マシンを実装し、その仮想マシン上で動作するモジュールによって機能追加が行われている。HGWの分野では、仮想マシンとしてJava(登録商標)仮想マシン(Java virtual machine:JVM)が一般的であり、サービス提供用のモジュールをJavaモジュールとして実装することが行われている。 For example, in a communication device such as an HGW, a virtual machine is mounted and a function is added by a module operating on the virtual machine in order to realize flexible software mountability corresponding to various protocols and devices. . In the field of HGW, a Java (registered trademark) virtual machine (JVM) is generally used as a virtual machine, and a module for providing a service is mounted as a Java module.
また、ホームネットワークに属する機器用の制御プロトコルとしては、ステートフルな通信プロトコルを採用することが一般的になっている。例えば、Echonet Lite規格(エコーネットコンソーシアム策定)は、国内のHEMS(home energy management system、家庭内エネルギー管理システム)用の標準プロトコルとされている。 In addition, a stateful communication protocol is generally adopted as a control protocol for devices belonging to the home network. For example, the Echonet Lite standard (Echonet Consortium) is a standard protocol for domestic HEMS (Home Energy Management System).
ステートフルな通信プロトコルでは、「OK」、「ON」等の単純な意味内容の命令コードであっても、その意味は、その時々の文脈で変化する。モジュールは、機器の現在の状態(ステート)を加味した判断を行って、自己の処理内容を決定することになる。このため、機器の現在の状態を示すステート情報のように、モジュールがサービスの制御に用いる情報については、モジュールへ随時に提供可能な参照用情報として保持され、モジュールは、サービスの制御を行う際、必要に応じて参照用情報を取得しなければならない。 In the stateful communication protocol, even if the instruction code has a simple meaning such as “OK” or “ON”, the meaning changes depending on the context. The module determines its own processing content by making a determination in consideration of the current state of the device. For this reason, information used by the module for service control, such as state information indicating the current state of the device, is held as reference information that can be provided to the module as needed. If necessary, reference information must be obtained.
本願発明者らは、上述のようにモジュールの実装と参照用情報の保持とをHGW等の通信機器で実現した際、通信機器の処理時間にどのような影響がでるかを実験で確認した。その実験では、HGWにJVMと、ステートフルなプロトコルで機器制御を行うJavaモジュールとを実装すると共に、参照用情報を保持するためのデータベースをJavaモジュールと異なるネイティブ言語で実装し、参照用情報を不揮発性メモリに格納するようにした。Javaモジュールによる機器制御内容は、SIP(Session Initiation Protocol)通信においてSIPメッセージに特定のプレフィックスを付加する処理を行うことである。実験の結果、この付加処理を行う場合、当該付加処理を行わないSIPメッセージの処理に比して、最大で40%近い遅延が発生した。このような遅延が発生し得る原因を調べたところ、データベースに保持された参照用情報をJavaモジュールが取得する際、JNI(Java Native Interface)を介したJavaモジュールとデータベース間のデータ受け渡しが低速であり、一般に、そのデータ受け渡しをステート管理のために何度も行うことが要因になる、と判明した。 The inventors of the present application have confirmed through experiments how the processing time of the communication device is affected when the module mounting and the holding of reference information are realized by a communication device such as an HGW as described above. In the experiment, a JVM and a Java module for device control using a stateful protocol are mounted on the HGW, and a database for storing reference information is mounted in a native language different from the Java module, and the reference information is nonvolatile. Stored in the memory. The device control content by the Java module is to perform processing for adding a specific prefix to the SIP message in SIP (Session Initiation Protocol) communication. As a result of the experiment, when this additional process was performed, a delay of nearly 40% occurred at the maximum as compared with the SIP message process without the additional process. As a result of investigating the cause of such a delay, when the Java module obtains the reference information stored in the database, the data transfer between the Java module and the database via the JNI (Java Native Interface) is slow. In general, it has been found that the data transfer is performed many times for state management.
そこで、この発明が解決しようとする課題は、仮想マシン及びモジュールによる柔軟な実装性を実現したHGW等の通信機器としつつ、ホームネットワークに属する機器向けサービスの制御プロトコルにステートフルな通信プロトコルを用いる場合の処理遅延を抑えることである。 Therefore, the problem to be solved by the present invention is a case where a stateful communication protocol is used as a control protocol for a service for a device belonging to a home network while using a communication device such as an HGW that realizes flexible mounting by a virtual machine and a module. Is to suppress the processing delay.
上記の課題を解決するこの発明は、仮想マシン上で動作するように実装され、ホームネットワークに属する機器に提供されるサービスの制御を行うモジュールを備え、前記ホームネットワーク及び外部ネットワークを相互接続する通信機器において、前記モジュールと異なるネイティブ言語で実装され、前記ホームネットワークに属する機器を一意に示す機器識別情報と、前記モジュールによって前記サービスの制御に用いられる参照用情報とを対応付けて保持する第1情報管理部と、前記第1情報管理部に保持する情報が格納される不揮発性メモリと、を備えている。これにより、停電、ファームアップ等による電源遮断時でも問題なく機器ごとに参照用情報を通信機器に保持することが可能となる。このため、仮想マシン及びモジュールによる柔軟な実装性を実現しつつ、機器向けサービスの制御プロトコルにステートフルな通信プロトコルを用いる場合にも対応可能となる。
さらに、この発明に係る通信機器は、前記仮想マシン上で動作するように実装され、前記機器識別情報と前記参照用情報とを対応付けて保持する第2情報管理部と、前記第2情報管理部に保持する情報が格納される揮発性メモリと、を備えている。これにより、第2情報管理部に保持されている参照用情報については、モジュールからの参照を仮想マシン上で完結することが可能となる。
ここで、この発明に係る前記モジュールは、前記第1情報管理部よりも前記第2情報管理部を優先的に使用する。これにより、前記第2情報管理部に保持されている参照用情報について、モジュールは、参照に比較的時間を要するネイティブ領域の第1情報管理部を使用せずに済む。このため、ステートフルな通信プロトコルを用いる場合でも処理遅延が抑えられる。
The present invention for solving the above-mentioned problem is provided with a module which is mounted to operate on a virtual machine and which controls a service provided to a device belonging to a home network, and interconnects the home network and an external network. A device, which is implemented in a native language different from that of the module and first stores device identification information uniquely indicating a device belonging to the home network and reference information used for controlling the service by the module in association with each other. An information management unit; and a non-volatile memory in which information held in the first information management unit is stored. This makes it possible to hold the reference information for each device without any problem even when the power is cut off due to a power failure, firmware upgrade, or the like. Therefore, it is possible to cope with a case where a stateful communication protocol is used as a control protocol for a service for a device while realizing a flexible mounting property by a virtual machine and a module.
Furthermore, a communication device according to the present invention is mounted so as to operate on the virtual machine, and a second information management unit that holds the device identification information and the reference information in association with each other, and the second information management And a volatile memory in which information held in the unit is stored. Thereby, for the reference information held in the second information management unit, the reference from the module can be completed on the virtual machine.
Here, the module according to the present invention uses the second information management unit preferentially over the first information management unit. As a result, with respect to the reference information held in the second information management unit, the module does not need to use the first information management unit in the native area that requires a relatively long time for reference. For this reason, even when a stateful communication protocol is used, processing delay can be suppressed.
このように、この発明は、仮想マシン及びモジュールによる柔軟な実装性を実現したHGW等の通信機器としつつ、ホームネットワークに属する機器の制御プロトコルにステートフルな通信プロトコルを用いる場合の処理遅延を抑えることができる。 As described above, the present invention suppresses a processing delay when a stateful communication protocol is used as a control protocol of a device belonging to a home network while using a communication device such as an HGW that realizes flexible mounting by a virtual machine and a module. Can do.
以下、この発明の実施形態を説明する。
第1の実施形態に係る通信機器では、前記第1情報管理部及び前記第2情報管理部が、前記モジュールからの要求に応える処理と独立して同期する。
ステートフルなプロトコルに対応のモジュールは、使用する第1又は第2情報管理部に対し、必要に応じて自己の処理内容を反映させる更新要求を行うことがある。また、外部ネットワークから参照用情報、新規機器登録等について第1情報管理部が更新されることもあり得る。これらのことを考慮すると、前記第1情報管理部及び前記第2情報管理部間の同期により、不揮発性メモリに格納する第1情報管理部をマスタの状態に保つことが好ましい。第1の実施形態では、第1情報管理部や第2情報管理部の同期処理と、モジュールからの要求に応える処理とが独立しているので、モジュール側の処理遅延を避けることができる。
Embodiments of the present invention will be described below.
In the communication device according to the first embodiment, the first information management unit and the second information management unit synchronize independently with processing that responds to a request from the module.
The module corresponding to the stateful protocol may make an update request to reflect the processing contents of the first or second information management unit to be used as necessary. In addition, the first information management unit may be updated from the external network for reference information, new device registration, and the like. Considering these, it is preferable to keep the first information management unit stored in the nonvolatile memory in a master state by synchronization between the first information management unit and the second information management unit. In the first embodiment, since the synchronization processing of the first information management unit and the second information management unit and the processing responding to the request from the module are independent, processing delay on the module side can be avoided.
第2の実施形態に係る通信機器では、前記第1情報管理部が、前記機器ごとの使用頻度を示す頻度情報と前記機器識別情報とを対応付けて保持し、前記使用頻度の高い順を反映させる優先規則によって前記第2情報管理部に複製する前記参照用情報を選ぶ。
HGW等の通信機器においては、通常、揮発性メモリに比して不揮発性メモリは大容量搭載されるので、第1情報管理部用に十分なメモリ容量を確保することが容易である。一方、第2情報管理部用に割り当てられる揮発性メモリの容量は、通信機器で動作する他のソフトウェアの使用状況等で異なり、揮発性メモリ容量の制限下で第1情報管理部の全ての参照用情報を第2情報管理部に保持させることができず、第1情報管理部から第2情報管理部へ複製する参照用情報を選択しなければならない場合も起こり得る。第2の実施形態は、その複製対象の選択において、機器の種類や当該宅の生活態様等で様々に異なる機器間の使用頻度差を反映させ、使用頻度の高いものを優遇するので、揮発性メモリ容量の制限下でモジュールによる第2情報管理部の使用機会を生じ易くすることができる。
In the communication device according to the second embodiment, the first information management unit holds the frequency information indicating the usage frequency for each device and the device identification information in association with each other, and reflects the order in which the usage frequency is high. The reference information to be copied to the second information management unit is selected according to the priority rule.
In a communication device such as an HGW, a non-volatile memory is usually mounted with a larger capacity than a volatile memory, so that it is easy to ensure a sufficient memory capacity for the first information management unit. On the other hand, the capacity of the volatile memory allocated for the second information management unit differs depending on the usage status of other software operating on the communication device, and all the references of the first information management unit are limited under the limitation of the volatile memory capacity. There may be a case where the second information management unit cannot hold the usage information and the reference information to be copied from the first information management unit to the second information management unit must be selected. In the second embodiment, in the selection of the duplication target, the difference in the frequency of use between the devices, which varies depending on the type of device and the lifestyle of the home, is reflected, and the one with high use frequency is preferentially treated. It is possible to easily generate a use opportunity of the second information management unit by the module under the limitation of the memory capacity.
第3の実施形態に係る通信機器では、前記第1情報管理部が、前記参照用情報を前記第2情報管理部に複製する優先度を示す順位付情報と、前記機器識別情報とを対応付けて保持し、前記使用頻度よりも前記優先度の高い順を優先的に反映させる優先規則によって前記第2情報管理部に複製する前記参照用情報を選ぶ。
通信機器の配下には多様な機器が接続されるので、使用頻度よりも重要視すべき安全性、遅延耐性等の属性を機器の種類や状態に応じて評価した基準に基づき、通信機器内で高速処理の対象にするか否かを選べることが好ましい。第3の実施形態は、前述の複製対象選択に際し、使用頻度以外の基準で評価した優先度の高いものを優遇し、高速処理の対象にすることができる。
In the communication device according to the third embodiment, the first information management unit associates the ranking information indicating the priority for duplicating the reference information with the second information management unit and the device identification information. The reference information to be copied to the second information management unit is selected according to a priority rule that preferentially reflects the order of priority higher than the usage frequency.
Various devices are connected under the control of communication devices, so in communication devices based on criteria that evaluate safety, delay tolerance, and other attributes that are more important than frequency of use according to the type and status of the device. It is preferable to select whether or not to be a target of high-speed processing. In the third embodiment, when selecting the above-mentioned replication target, it is possible to preferentially select a high-priority item evaluated based on a criterion other than the use frequency, and make it a target for high-speed processing.
以下、この発明の一実施例を添付図面に基づいて説明する。図1に通信機器1のハードウェア資源の要旨、図2にソフトウェア資源の要旨を示す。この通信機器1は、エンドユーザ宅に設置されるホームゲートウェイ(HGW)として構成されている。通信機器1には、宅内LAN(Local Area Network)として構築されたホームネットワーク2と、これに対してWAN(Wide Area Network)となる外部ネットワーク3とを相互接続するルータとして機能するようになっている。
Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. FIG. 1 shows the gist of hardware resources of the
通信機器1は、中央演算処理装置(CPU)11と、主記憶装置12、不揮発性メモリ13と、LAN側通信装置14、WAN側通信装置15等のハードウェア資源と、不揮発性メモリ13に格納され、主記憶装置12にロードされて中央演算処理装置11によって実行される各種のソフトウェア資源とによって構成されている。
The
また、通信機器1は、IP電話サービスの一端を収容しており、SIP(Session Initiation Protocol)パケットの送受信を行う機能を有する。
The
外部ネットワーク3は、光通信網、公衆電話網等の公衆回線網になっており、一般に、インターネットへのアクセス網として使用される。WAN側通信装置15は、外部ネットワーク3のユーザ宅側の回線終端装置(図示省略)に接続される。回線終端装置は、通信機器1に搭載されてもよい。
The
ホームネットワーク2は、通信機器1の配下に構築されたLANになっている。LAN側通信装置14には、ホームネットワーク2に属する機器4〜8が接続される。LAN側通信装置14と機器4〜8間の伝送媒体は、有線、無線のいずれでもよい。
The
中央演算処理装置11は、メインプロセッサと、複数のサブプロセッサとを有するマルチコアプロセッサになっており、サブプロセッサごとに所定の処理を割り当てて並列処理を実行可能なものとなっている。
The
主記憶装置12は、電源供給時のみ情報を保持可能な揮発性メモリからなる。不揮発性メモリ13は、非電源供給時でも情報を保持可能で、主記憶装置12に対して大容量ながら低速なものとなっている。例えば、不揮発性メモリ13として、フラッシュメモリ、ハードディスクドライブが用いられる。 The main storage device 12 includes a volatile memory that can hold information only when power is supplied. The nonvolatile memory 13 can hold information even when power is not supplied, and has a large capacity and a low speed with respect to the main storage device 12. For example, a flash memory or a hard disk drive is used as the nonvolatile memory 13.
不揮発性メモリ13に格納するソフトウェア資源としては、ハードウェア資源を直接に制御するファームウェア(図示省略)、OS(Operating System)、これらをプラットフォームとして動作する仮想マシン16、仮想マシン16上で動作するモジュール17等が実装されている。
Software resources stored in the non-volatile memory 13 include firmware (not shown) that directly controls hardware resources, an OS (Operating System), a
仮想マシン16は、プラットフォーム非依存性の仮想的な実行環境を構築し、その上で所定のオブジェクト指向言語で記述されたモジュール17を実行し、中央演算処理装置11が直接解釈して実行可能なネイティブコードに変換する。このため、仮想マシン16及びモジュール17による柔軟な実装性を実現することができる。
The
図示の仮想マシン16は、Java仮想マシン(JVM)になっている。モジュール17は、Java言語で記述されたモジュールになっており、OSGi Allianceのフレームワークに対応のバンドルとして構成されている。
The illustrated
モジュール17は、通信機器1から機器4〜8に提供されるサービスの制御を行うソフトウェアになっている。機器4〜8の制御に関する通信プロトコルは、ステートフルなものとなっているが、一種に限られない。モジュール17によるサービスは、外部ネットワーク3を介した対応の機器4〜8の遠隔制御や遠隔監視、ホームネットワーク2内での機器4〜8間の連動等、機器ごとに適宜の内容となる。モジュール17は、機器4〜8の製造業者からの提供、ユーザによるインストール、外部ネットワーク3を介したダウンロード、プリインストール等の適宜の手段によって通信機器1に実装される。
The
通信機器1は、機器4〜8向けのサービスの制御に関する通信プロトコルのメッセージをネイティブ領域で解読し、命令コード、機器を指定する識別情報等の所要の記述を読み取り、モジュール17へ渡す。例えば、SIPメッセージのisub領域に記述された機器指定、機器4〜8の制御に用いる命令コードの読み取り処理が挙げられる。
The
さらに、通信機器1は、モジュール17によってサービスの制御に用いられる参照用情報を管理するための第1情報管理部23及び第2情報管理部24を備えている。
Further, the
第1情報管理部23は、図2、図3に示すテーブルT1により、ホームネットワーク2内で機器4〜8を一意に示す機器識別情報31と、機器4〜8向けのサービスの制御に用いられる参照用情報32〜34とを対応付けて保持する。第1情報管理部23は、モジュール17と異なるネイティブ言語で実装されている。ここで、ネイティブ言語とは、ネイティブコードを生成するプログラム(ソースコード)の言語のことをいう。第1情報管理部23がテーブルT1に保持する情報は、不揮発性メモリ13に格納される。
The first
機器識別情報31は、ホームネットワーク2内で機器4〜8に設定されたアドレスとして記述される。例えば、SIPメッセージに制御用の情報を付与する場合、機器識別情報31は、機器4〜8に設定された電話番号となる。機器識別情報31は、ホームネットワーク2に属する機器4〜8とアドレスとの対応性を通信機器1において一意に識別可能であればよく、これを満足する限り、機種名、機器の型式、ユーザの任意登録の識別情報等でもよい。
The
参照用情報32は、機器4〜8への指示内容を示す命令コード、機器4〜8からの応答内容を示すステータスコード等、機器4〜8の制御に際し、送受信されるステートフルなコードとして記述される。
The
参照用情報33は、機器4〜8の現在の状態を示すステート情報である。
The
参照用情報34は、参照用情報32に示すコード、参照用情報33に示す機器4〜8の現在の状態との組み合わせから定まる次の動作を示す情報として記述されている。なお、その組み合わせから次の動作を導く解釈法則は、機器4〜8ごとに製造業者等によって既定されている。この解釈法則は、通常、モジュール17に実装されるが、この例では第1情報管理部23にも実装されている。モジュール17は、参照用情報34に示された次の動作を実行するための処理を行う。なお、機器4〜8に関する次の動作は、モジュール17のみで判断するようにしてもよく、この場合、参照用情報34を第1情報管理部23に保持することは不要である。
The
第1情報管理部23への機器4〜8の登録は、モジュール17の実装時にユーザ登録又は自動的に登録されるようにしてもよいし、随時、機器4〜8の製造業者、アクセス網を運営する通信事業者等の外部サーバから外部ネットワーク3経由で登録されるようにしてもよい。参照用情報32〜34は、モジュール17や第1情報管理部23の判断によって必要に応じ適宜に更新される。参照用情報33は、モジュール17による機器4〜8からのステート情報の取得、モジュール17による機器制御の実行結果、初期から継続した前述の解釈法則の累積等、制御用のプロトコルに対応した所定規則に基づいて更新される。
The registration of the devices 4 to 8 in the first
第2情報管理部24は、図2、図4に示すように、仮想マシン16上で動作するように実装され、テーブルT2で機器識別情報31と参照用情報32〜34とを対応付けて保持する。第2情報管理部24がテーブルT2に保持する情報は、揮発性メモリからなる主記憶装置12上に割り当てられた領域に格納される。第2情報管理部24は、仮想マシン16で直接に解釈可能なJava言語で記述されている。
The second
モジュール17は、必要に応じて機器4〜8の状態を確認し、テーブルT2を上書きする。モジュール17の終了時やメモリ電源の遮断時には、第2情報管理部24のテーブルT2がクリアされる。
The
モジュール17は、第1情報管理部23よりも第2情報管理部24を優先的に使用する。すなわち、図5に示すように、モジュール17は、機器4〜8からの要求や外部ネットワーク3経由からの要求等を受けてサービスの制御契機が到来したとき、サービス提供先とする機器4〜8の参照用情報32〜34について、第2情報管理部24に検索を依頼し(S1)、この検索に成功したとき、ここの参照用情報32〜34を参照、取得して(S2)、これを反映させた処理を行う(S3)。一方、(S1)での検索に失敗したとき、モジュール17は、第1情報管理部23に検索を依頼して、ここの参照用情報32〜34を参照、取得して(S4)、これを反映させた処理を行う(S3)。モジュール17は、その処理の実行に伴い参照用情報32〜34を更新する必要があるときは、使用先とする第2情報管理部24のテーブルT2又は第1情報管理部23のテーブルT1に反映させる更新要求を出す。
The
図2に示す第1情報管理部23及び第2情報管理部24は、同期を行う。ここで、第1情報管理部23及び第2情報管理部24は、モジュール17からの要求に応える処理と独立して同期する。この同期処理と、モジュール17からの要求に応える処理とは、中央演算処理装置11配下の相異なるプロセッサに割り当てられており、並列処理で行われるようになっている。なお、同期処理は、モジュール17からの要求に応える処理よりも優先度を低く設定したバックグラウンド処理により独立して行うようにしてもよい。
The first
第1情報管理部23及び第2情報管理部24間の同期により、不揮発性メモリ13に格納する第1情報管理部23をマスタの状態に保つことができる。第1情報管理部23や第2情報管理部24の同期処理と、第1情報管理部23や第2情報管理部24がモジュール17からの参照、更新等の要求に応える処理とが独立しているので、モジュール17側の処理遅延を避けることができる。
Due to the synchronization between the first
第1情報管理部23は、図3に示すように、機器4〜8ごとの使用頻度を示す頻度情報35と機器識別情報31とを対応付けて保持する。第1情報管理部23は、使用頻度を所定の算出規則で演算し、この値を頻度情報35としてテーブルT1に書き込む。
As illustrated in FIG. 3, the first
例えば、第1情報管理部23が保持する更新履歴を用い、テーブルT1のレコード単位で更新回数を使用回数とすることができる。また、項目ごとに使用回数を把握することもできる。例えば、直近1ヶ月など、時間を切って、1日あたりの命令が実施された回数は、命令コマンドを示す参照用情報32の更新回数としてカウントすることができる。
For example, using the update history held by the first
使用頻度は、例えば、単純平均とし、1ヶ月の使用回数/30日の演算式で求めることができる。また、使用頻度は、例えば、N日前までの移動平均とし、次の式1で求めることができる。
式1:(D_n−d_i)×N_i/Σd_i
(ただし、D_n:合計を算出する範囲、d_i:1〜N、N_i:i日前の使用回数)
The frequency of use can be obtained, for example, as a simple average, using the number of use per month / 30 days. Further, the use frequency can be obtained by the
Formula 1: (D_n−d_i) × N_i / Σd_i
(However, D_n: range for calculating the total, d_i: 1 to N, N_i: number of uses i days ago)
使用頻度の求め方は、前述の各例示の他にも、任意の統計手法を採用してもよく、その際、季節、温度、天候等の外部要因を取り入れた方法や、ユーザ個人の使用傾向の時系列データを加味する方法にしてもよい。 In addition to the above-mentioned examples, any statistical method may be used to determine the usage frequency. In this case, methods incorporating external factors such as season, temperature, weather, etc. The time series data may be taken into consideration.
また、図2、図3に示す第1情報管理部23は、参照用情報32〜34を第2情報管理部24に複製する優先度を示す順位付情報36、37と、機器識別情報31とを対応付けて保持する。この例では、順位付情報36が、機器4〜8の状態に応じた危険度を評価し、これに基づいた優先度の値「0」〜「3」を割り当てたものとなっている。また、順位付情報37が、機器4〜8の状態に応じた遅延耐性を評価し、これに基づいた優先度の値「0」〜「3」を割り当てたものとなっている。優先度の値は、数字が大きいほど危険、もしくは遅延に敏感の意味となり、「3」: 最優先(例えば、火事の可能性がある)、「2」: 故障の危険がある、遅延が機能に致命的、「1」:機能や使用感に影響する可能性がある、「0」:問題ない、と評価されている。これら優先度は、例えば、機器4〜8の状態ごとに予め人為的に評価付けされ、第1情報管理部23に参照可能な形式で不揮発性メモリ13に格納されている。第1情報管理部23は、機器の現在の状態を示す参照用情報33を更新すると、その更新後の参照用情報33に対応の優先度を確認し、優先度の変化があれば、対応の順位付情報36、37をテーブルT1に書き込む。
Further, the first
第1情報管理部23は、テーブルT1において機器識別情報31と対応付けて保持するコピーフラグ38に基づいて、第2情報管理部24に複製する対象を決定する。コピーフラグ38は、第2情報管理部24用に割り当てられたメモリ容量の不足により、第1情報管理部23のテーブルT1に保持された全参照用情報32〜34をテーブルT2に複製することができないとき、テーブルT1のいずれの参照用情報32〜34を複製するかを選ぶためのものである。図中、コピーフラグ38の値:「1」が複製対象のレコードを示し、「0」が非複製対象のレコードを示す。コピーフラグ38をテーブルT1の上位何番目まで「1」にするかは、メモリ容量の制限下、第2情報管理部24に複製可能な最大量に基づいて決定される。
The first
図6に示すように、(S3)の処理に伴う更新等、第1情報管理部23は、自己の更新の際、頻度情報35、順位付情報36、37について所要の更新を行い(S11,S12)、その更新で値が変化したか判断を行い、変化している場合、コピーフラグ38の更新処理に移行し(S13,S14)、一方、値が変化しない場合、コピーフラグ38の更新処理を行わず、コピーフラグ38が「1」のレコードであれば、第2情報管理部24に複製を行い、「0」であれば複製しない(S13,S15)。
As shown in FIG. 6, the first
ここで、第1情報管理部23は、使用頻度の高い順を反映させ、かつ使用頻度よりも優先度の高い順を優先的に反映させる優先規則によって第2情報管理部24に複製する参照用情報32〜34を選ぶ。すなわち、通信機器1は、その複製対象の選択において、機器4〜8の種類や当該宅の生活態様等で様々に異なる機器4〜8間の使用頻度差を反映させ、使用頻度の高いものを優遇するので、主記憶装置12(揮発性メモリ)のメモリ容量の制限下でモジュール17による第2情報管理部24の使用機会を生じ易くすることができ、また、使用頻度よりも重要視すべき属性を機器4〜8の種類や状態に応じて評価した基準に基づき、通信機器1内で高速処理の対象にするか否かを選び、高速処理の対象にすることができる。
Here, the first
この例では、安全面を重視し、第1情報管理部23は、コピーフラグ38の更新処理において、図7に示すように、最優先で順位付情報36の値の高い順に上位へソートし(S21)、次に順位付情報37の値の高い順に上位へソートし(S22)、次に頻度情報35の値の高い順に上位へソート(S23)して、テーブルT1内でのレコードの並び順を確定する。その後、第1情報管理部23は、第2情報管理部24に複製可能な最大量(メモリ容量次第)に基づいて、コピーフラグ38をテーブルT1の上位何番目まで「1」にするかを決定し、所要のレコードのコピーフラグ38を書き換える(S24)。次の同期処理において、第1情報管理部23は、コピーフラグ38が「1」のものだけを第2情報管理部24に複製する(S25)。
In this example, emphasis is placed on safety, and in the update process of the
例えば、許されるコピーフラグ38の数が3つであって図8(a)に示すテーブルT1の状態を仮定する。ここで、図8(a)における機器(風呂)の順位付情報36の値「0」が図8(b)に示すように「3」へ更新されると、前述の(S13)、(S21)の処理により、順位付情報36の値が最大の「3」で優先度の最も高い機器(風呂)のレコードがテーブルT1の最上位レコード(1番目)となり、コピーフラグ38が「0」から「1」に更新される。一方、図8(a)において3番目の機器(電話機)のレコードは、図8(b)において4番目に繰り下げられるので、そのコピーフラグ38は、「1」から「0」に更新される。
For example, assume that the number of permitted copy flags 38 is three and the state of the table T1 shown in FIG. Here, when the value “0” of the ranking
図2に示すモジュール17のファームアップ等により、図1に示す主記憶装置12からテーブルT2が消去されると、その後、図2のモジュール17が起動するときにテーブルT2の再構築が行われる。この際、図1に示す不揮発性メモリ13に格納された第1情報管理部23のテーブルT1においては、前述の優先規則に従ったソート順序でレコードが並んでいる。図2に示すモジュール17は、図9に示すように、第1情報管理部23のテーブルT1をチェックし(S31)、必要に応じて機器4〜8の状態を確認し、状態のずれの修正等、所要の情報について第1情報管理部23の更新を行う(S32)。モジュール17は、第2情報管理部24に割り当てられているメモリ容量を第1情報管理部23へ知らせ、複製を要求する。第1情報管理部23は、そのメモリ容量に応じて、コピー可能な範囲を確定し、所要のコピーフラグ38を「1」とし(S33)、その後、第2情報管理部24に複製する(S34)。
If the table T2 is deleted from the main storage device 12 shown in FIG. 1 due to the firmware upgrade of the
なお、前述の同期処理や起動時の処理においては、第2情報管理部24に割り当てられているメモリ容量の確認を省略するようにしてもよい。例えば、第1情報管理部23は、第2情報管理部24のメモリ容量の満杯に伴ってエラーが通知されるまで、優先順位に従ってソートされた最上位のものから順次に複製を継続すればよい。この場合、コピーフラグ38を省略することも可能である。
Note that the confirmation of the memory capacity allocated to the second
この通信機器1の動作の一例を図10(a)に示す。同図(a)の動作は、通信機器1の配下でホームネットワーク2に属する機器(電話機)に提供されるIP電話サービスにおいて、モジュール17が機器の発呼に関する制御を行う場合を想定している。ここで、機器の現在の状態は、発信者番号の非通知サービスを利用する設定がなされた非接続状態であり、これを示す参照用情報33が図3、図4のテーブルT1、T2に保持されているものとする。機器4からの発信指示がモジュール17に届いたとき、モジュール17は、機器4の機器識別情報31(この場合、SIPなので電話番号)を検索キーとし、先ず第2情報管理部24を検索し、ここでヒットする(S41)。モジュール17は、第2情報管理部24から参照用情報32〜34を取得し、非通知サービスの適用を示す命令コードのプレフィックス「184」の付与を決定する(S42)。モジュール17は、他にもプレフィックスを付与すべき番号か第2情報管理部24をさらに検索し、最終的な発信番号の確定を確認後(S43、S44)、SIPの発信処理を行って接続を確立する(S45)。
An example of the operation of the
図10(b)に示す動作例は、同じく機器(電話機)に提供されるIP電話サービスにおいて発信者番号の非通知サービスを利用する設定がなされた非接続状態であり、これを示す参照用情報33が図3のテーブルT1にのみ保持されている点で同図(a)と相違したものとする。同図(b)の場合、機器4からの発信指示がモジュール17に届いたとき、モジュール17は、先ず第2情報管理部24を検索するが、ここでヒットせず、第1情報管理部23を検索して参照用情報32〜34を取得し(S51)、プレフィックス「184」の付与を決定後(S52)、第1情報管理部23をさらに検索して最終的な発信番号の確定を確認後(S53、S54)、SIPの発信処理を行うことになる(S55)。これら動作例を比較すると、同図(a)の場合、モジュール17は、仮想マシン16上で動作する第2情報管理部24から参照用情報32〜34を取得可能な分、同図(b)の場合に比して、ネイティブ領域の第1情報管理部23の使用を減らし、処理遅延を抑えることができる。
The operation example shown in FIG. 10B is a non-connection state in which the caller ID non-notification service is set in the IP telephone service that is also provided to the device (telephone), and reference information indicating this is shown. It is assumed that 33 is held only in the table T1 of FIG. In the case of FIG. 5B, when a transmission instruction from the device 4 arrives at the
この発明の技術的範囲は、上述の実施形態や実施例に限定されず、特許請求の範囲の記載に基づく技術的思想の範囲内での全ての変更を含むものである。 The technical scope of the present invention is not limited to the above-described embodiments and examples, but includes all modifications within the scope of the technical idea based on the description of the scope of claims.
1 通信機器
2 ホームネットワーク
3 外部ネットワーク
4〜8 機器
12 主記憶装置(揮発性メモリ)
13 不揮発性メモリ
16 仮想マシン
17 モジュール
23 第1情報管理部
24 第2情報管理部
31 機器識別情報
32〜34 参照用情報
35 頻度情報
36,37 順位付情報
DESCRIPTION OF
13
Claims (4)
前記モジュールと異なるネイティブ言語で実装され、前記ホームネットワークに属する機器を一意に示す機器識別情報と、前記モジュールによって前記サービスの制御に用いられる参照用情報とを対応付けて保持する第1情報管理部と、
前記第1情報管理部に保持する情報が格納される不揮発性メモリと、
前記仮想マシン上で動作するように実装され、前記機器識別情報と前記参照用情報とを対応付けて保持する第2情報管理部と、
前記第2情報管理部に保持する情報が格納される揮発性メモリと、を備えており、
前記モジュールが、前記第1情報管理部よりも前記第2情報管理部を優先的に使用することを特徴とする通信機器。 In a communication device that is executed on a virtual machine and includes a module that controls a service provided to a device belonging to a home network, and interconnects the home network and an external network,
A first information management unit that is implemented in a native language different from that of the module and that stores device identification information that uniquely indicates a device that belongs to the home network and reference information that is used by the module to control the service When,
A non-volatile memory in which information stored in the first information management unit is stored;
A second information management unit that is mounted to operate on the virtual machine and holds the device identification information and the reference information in association with each other;
A volatile memory in which information stored in the second information management unit is stored,
The communication device, wherein the module preferentially uses the second information management unit over the first information management unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015045816A JP6054444B2 (en) | 2015-03-09 | 2015-03-09 | Communication equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015045816A JP6054444B2 (en) | 2015-03-09 | 2015-03-09 | Communication equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016167670A true JP2016167670A (en) | 2016-09-15 |
JP6054444B2 JP6054444B2 (en) | 2016-12-27 |
Family
ID=56898756
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015045816A Active JP6054444B2 (en) | 2015-03-09 | 2015-03-09 | Communication equipment |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6054444B2 (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02163850A (en) * | 1988-12-16 | 1990-06-25 | Mitsubishi Electric Corp | Memory device |
JPH09207392A (en) * | 1996-02-01 | 1997-08-12 | Seiko Epson Corp | Printer and computer system |
US6032240A (en) * | 1997-11-12 | 2000-02-29 | Intergraph Corporation | Bypassing a nonpaged pool controller when accessing a remainder portion of a random access memory |
JP2004088484A (en) * | 2002-08-27 | 2004-03-18 | Yamaha Corp | Household electric appliance controlling apparatus, communication apparatus, program, and recording medium |
JP2009069969A (en) * | 2007-09-11 | 2009-04-02 | Canon Inc | Information processing method and information processor, program |
JP2012124567A (en) * | 2010-12-06 | 2012-06-28 | Hitachi Ltd | Control device, and method of controlling the same |
JP2012123556A (en) * | 2010-12-07 | 2012-06-28 | Hitachi Solutions Ltd | Virtual server system and control method thereof |
JP2012238943A (en) * | 2011-05-10 | 2012-12-06 | Nippon Telegr & Teleph Corp <Ntt> | Access control method for home network and home gateway device using the control method |
US20130086202A1 (en) * | 2011-09-29 | 2013-04-04 | Comcast Cable Communications, Llc | Multiple Virtual Machines in a Mobile Virtualization Platform |
-
2015
- 2015-03-09 JP JP2015045816A patent/JP6054444B2/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02163850A (en) * | 1988-12-16 | 1990-06-25 | Mitsubishi Electric Corp | Memory device |
JPH09207392A (en) * | 1996-02-01 | 1997-08-12 | Seiko Epson Corp | Printer and computer system |
US6032240A (en) * | 1997-11-12 | 2000-02-29 | Intergraph Corporation | Bypassing a nonpaged pool controller when accessing a remainder portion of a random access memory |
JP2004088484A (en) * | 2002-08-27 | 2004-03-18 | Yamaha Corp | Household electric appliance controlling apparatus, communication apparatus, program, and recording medium |
JP2009069969A (en) * | 2007-09-11 | 2009-04-02 | Canon Inc | Information processing method and information processor, program |
JP2012124567A (en) * | 2010-12-06 | 2012-06-28 | Hitachi Ltd | Control device, and method of controlling the same |
JP2012123556A (en) * | 2010-12-07 | 2012-06-28 | Hitachi Solutions Ltd | Virtual server system and control method thereof |
JP2012238943A (en) * | 2011-05-10 | 2012-12-06 | Nippon Telegr & Teleph Corp <Ntt> | Access control method for home network and home gateway device using the control method |
US20130086202A1 (en) * | 2011-09-29 | 2013-04-04 | Comcast Cable Communications, Llc | Multiple Virtual Machines in a Mobile Virtualization Platform |
Also Published As
Publication number | Publication date |
---|---|
JP6054444B2 (en) | 2016-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683516B (en) | Application instance upgrading method, device and system | |
US9996333B2 (en) | Apparatus and method for automating the installation and configuration of infrastructure | |
CN109120678A (en) | The method and apparatus of service tray for distributed memory system | |
US10474451B2 (en) | Containerized upgrade in operating system level virtualization | |
CN108989066B (en) | Equipment management method and device | |
US10313282B1 (en) | Flexible middleware messaging system | |
CN110417870A (en) | configuration file management method, device, equipment and storage medium | |
CN104754062A (en) | Internet based information popularization method, server and user terminal | |
KR20130061734A (en) | Cloud-shared resource providing system | |
US11132191B2 (en) | Software and firmware updates of computing systems | |
CN104699499B (en) | A kind of heterogeneous terminals method for upgrading software | |
CN112035216A (en) | Communication method for Kubernetes cluster network and OpenStack network | |
CN114553693B (en) | Gateway upgrading method and device | |
US10817512B2 (en) | Standing queries in memory | |
JP6054444B2 (en) | Communication equipment | |
CN113448609B (en) | Container upgrading method, device, equipment and storage medium | |
CN115878154A (en) | System and method for upgrading container mirror image version | |
CN114546591A (en) | Mirror image file sharing method, container cluster management system and related equipment | |
US8499002B2 (en) | Apparatus and method for controlling devices in requested resource via network | |
CN113596087A (en) | Application upgrading method and device and computer readable storage medium | |
WO2015117294A1 (en) | Information binding method and device | |
JP5784792B1 (en) | Communication equipment and program | |
KR20150137766A (en) | System and method for creating stack of virtual machine | |
WO2024047779A1 (en) | Increase in efficiency of download of large file for virtual environment | |
CN111756562B (en) | Cluster takeover method, system and related components |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160609 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160621 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160819 |
|
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: 20161129 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20161130 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6054444 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |