JP2008146171A - Web service device and web service method - Google Patents
Web service device and web service method Download PDFInfo
- Publication number
- JP2008146171A JP2008146171A JP2006329817A JP2006329817A JP2008146171A JP 2008146171 A JP2008146171 A JP 2008146171A JP 2006329817 A JP2006329817 A JP 2006329817A JP 2006329817 A JP2006329817 A JP 2006329817A JP 2008146171 A JP2008146171 A JP 2008146171A
- Authority
- JP
- Japan
- Prior art keywords
- processing
- information
- cpu resources
- web service
- video
- 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
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
本発明は、Webサービス、特に映像情報を含むWebサービスを提供または実行するWebサービス装置およびWebサービス方法に関する。 The present invention relates to a web service device and a web service method for providing or executing a web service, particularly a web service including video information.
近年、独立した複数のネットワーク機器間で、インターネット標準のWebプロトコルを利用して、映像や音声などのデータを伝送するWebサービスが導入されている。Webサービスにおいて、サービスを利用する機器(クライアント側機器)は、伝送されるデータやその伝送速度などの指定処理、切替え処理または変更処理を指示する要求(Webサービス要求)を、サービスを提供または実行する機器(サーバ側機器)に送信する。サーバ側機器は、例えば、受信したWebサービス要求により指示される処理のうち、まず映像などの大容量かつ広帯域のデータの処理に対するCPU(Central Processing unit)資源を優先的に割当て、残りのCPU資源をWebサービスに供する他の処理に割当てることにより、CPU資源の割当てを制御する。 In recent years, Web services that transmit data such as video and audio between a plurality of independent network devices using an Internet standard Web protocol have been introduced. In a Web service, a device that uses the service (client-side device) provides or executes a request (Web service request) for instructing specification processing, switching processing, or change processing of data to be transmitted and its transmission speed. To the device (server-side device). For example, in the processing instructed by the received Web service request, the server-side device first allocates CPU (Central Processing Unit) resources for processing large-capacity and wide-band data such as video, and the remaining CPU resources Is assigned to another process provided to the Web service, thereby controlling the allocation of CPU resources.
また、特定のWebサービスについての輻輳状況を把握するために、携帯網またはIP網を流れるパケットが準拠しているプロトコルを検出し、そのプロトコルごとにサービスの輻輳状態を検出する技術もある。この技術では、輻輳状態にあるサービスを遮断することにより、他のサービスへの影響を軽減することができる(例えば、特許文献1参照)。
しかしながら、上記従来のWebサービス技術にあっては、ユーザからのWebサービス要求により指示される処理のうち、映像などの大容量かつ広帯域のデータの処理(以下「映像処理」という)と、Webサービスに供するこれ以外の処理(以下「一般Webサービス処理」という)との間では、CPU資源が消費される比率が大きく異なり得る。例えば、映像処理に消費されるCPU資源が、一般Webサービス処理に消費されるCPU資源よりも大幅に大きくなることがある。よって、CPU資源の配分に関して、映像処理におけるCPU資源の消費揺らぎ、例えば、映像処理に消費されるCPU資源が少ない状態から非常に多い状態へと変化するような事態が生じると、一般Webサービス処理に対する応答性(以下「Webサービス応答性」という)を良好に維持することが困難になってしまうという問題がある。 However, in the conventional web service technology, among the processes instructed by the web service request from the user, large-capacity and broadband data processing such as video (hereinafter referred to as “video processing”), and web service The rate at which CPU resources are consumed may differ greatly from the other processing (hereinafter referred to as “general Web service processing”) provided for the above. For example, CPU resources consumed for video processing may be significantly larger than CPU resources consumed for general Web service processing. Therefore, regarding the allocation of CPU resources, when there is a fluctuation in the consumption of CPU resources in video processing, for example, a situation in which there is a change from a state where CPU resources consumed for video processing are low to a very high state, general Web service processing There is a problem that it becomes difficult to maintain good responsiveness (hereinafter referred to as “Web service responsiveness”).
一方、一般Webサービス処理のためのCPU資源を常時余裕をもって配分すると、映像処理に十分なCPU資源を配分することができなくなる事態が生じ、その結果、映像処理性能が低下するという問題がある。 On the other hand, if CPU resources for general Web service processing are always allocated with sufficient margin, there is a problem that sufficient CPU resources cannot be allocated for video processing, and as a result, video processing performance is degraded.
これらの問題は、特許文献1に記載されているような、輻輳状態のWebサービスを遮断することでは、必ずしも解決することができない。
These problems cannot always be solved by blocking a Web service in a congestion state as described in
本発明は、かかる点に鑑みてなされたものであり、映像処理性能を最大化しつつ、良好なWebサービス応答性を実現することができるWebサービス装置およびWebサービス方法を提供することを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides a Web service apparatus and a Web service method capable of realizing good Web service responsiveness while maximizing video processing performance. .
本発明のWebサービス装置は、映像情報の処理と該映像情報以外の他の情報の処理とのいずれかで使用可能なCPU資源と、前記使用可能なCPU資源のうち、前記映像情報の処理に割当てられるCPU資源を使用して前記映像情報の処理を実行する映像処理部と、前記使用可能なCPU資源のうち、前記他の情報の処理に割当てられるCPU資源を使用して前記他の情報の処理を実行するWeb処理部と、映像情報の処理と該映像情報以外の他の情報の処理との双方を要求するWebサービス要求を受付ける受付部と、受付けられるWebサービス要求から、前記映像情報の処理に要するCPU資源の量と、前記他の情報の処理に要するCPU資源の量とを取得する取得部と、取得されるCPU資源の量の和が前記使用可能なCPU資源の量を超過するとき、前記他の情報の処理を優先しつつ、前記他の情報の処理および前記映像情報の処理に、前記使用可能なCPU資源を割当てる制御部と、を具備する構成を採る。 The Web service apparatus according to the present invention can use a CPU resource that can be used for either processing of video information or processing of information other than the video information, and processing of the video information among the available CPU resources. A video processing unit that executes processing of the video information using an allocated CPU resource, and of the other information using a CPU resource allocated to the processing of the other information among the available CPU resources. From the Web processing unit that executes the processing, the reception unit that receives both the processing of the video information and the processing of other information other than the video information, and the received Web service request, An acquisition unit that acquires the amount of CPU resources required for processing and the amount of CPU resources required for processing the other information, and the CPU resource that can be used is the sum of the amount of CPU resources acquired When excess amount, while giving priority to the processing of the other information, the processing of the processing and the image information of the other information, employs a configuration comprising a control unit for assigning the available CPU resources.
本発明のWebサービス方法は、映像情報の処理と該映像情報以外の他の情報の処理とのいずれかで使用可能なCPU資源と、前記使用可能なCPU資源のうち、前記映像情報の処理に割当てられるCPU資源を使用して前記映像情報の処理を実行する映像処理部と、前記使用可能なCPU資源のうち、前記他の情報の処理に割当てられるCPU資源を使用して前記他の情報の処理を実行するWeb処理部と、を具備するWebサービス装置を用いてWebサービスを提供するWebサービス方法であって、映像情報の処理と該映像情報以外の他の情報の処理との双方を要求するWebサービス要求を受付ける受付ステップと、受付けられるWebサービス要求から、前記映像情報の処理に要するCPU資源の量と、前記他の情報の処理に要するCPU資源の量とを取得する取得ステップと、取得されるCPU資源の量の和が前記使用可能なCPU資源の量を超過するとき、前記他の情報の処理を優先しつつ、前記他の情報の処理および前記映像情報の処理に、前記使用可能なCPU資源を割当てる割当てステップと、を具備するようにした。 The Web service method of the present invention is a CPU resource that can be used in either video information processing or other information processing other than the video information, and of the available CPU resources, the video information processing. A video processing unit that executes processing of the video information using an allocated CPU resource, and of the other information using a CPU resource allocated to the processing of the other information among the available CPU resources. A web service method that provides a web service using a web service device that includes a web processing unit that executes processing, and requests both video information processing and processing of other information other than the video information A reception step for receiving a Web service request to be received, an amount of CPU resources required for processing the video information, and processing for the other information from the received Web service request. An acquisition step for acquiring the amount of CPU resources to be acquired, and when the sum of the amounts of acquired CPU resources exceeds the amount of available CPU resources, the other information is prioritized and the other information is prioritized. An allocation step of allocating the usable CPU resources to the information processing and the video information processing.
本発明によれば、映像処理性能を最大化しつつ、良好なWebサービス応答性を実現することができる。 According to the present invention, it is possible to realize good web service responsiveness while maximizing video processing performance.
以下、本発明の実施の形態について、図面を参照して詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1は、本発明の一実施の形態に係るWebサービス装置100の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a
Webサービス装置100は、IP網や携帯網などのネットワークを介して接続された外部機器に対して、Webサービスを提供または実行する。Webサービス装置100は、例えば、クライアント機器に対してWebサービスを配信するサーバ機器である。
The
図1において、Webサービス装置100は、Webサービス要求受付部110と、Web処理部120と、映像処理部130と、CPU資源140と、スケジューリング規則表150と、タイミング生成部160と、オペレーティングシステム170と、開始評価部180とを具備する。
In FIG. 1, a
受付部としてのWebサービス要求受付部110は、映像情報の処理と、映像情報以外の他の情報(以下単に「他の情報」という)の処理との双方を要求するWebサービス要求を受付ける。受付けられるWebサービス要求は、例えば、IP網や携帯網などのネットワークを介してWebサービス装置100と接続された外部機器から送信され得る。Webサービス要求受付部110は、受付けられたWebサービス要求を、Web処理部120に出力する。
The web service
ここで、「Webサービス」とは、例えば、インターネット標準のWebプロトコルを利用して、映像や音声、テキストなどの各種の情報を伝送することにより提供または実行されるサービスを意味する。本実施の形態では、「Webサービス」が少なくとも映像情報を処理することにより提供または実行される場合を例にとって説明する。なお、「Webサービス」で利用されるプロトコルとしては、例えば、SOAP(Simple Object Access Protocol)やWSDL(Web Service Description Language)、UDDI(Universal Description, Discovery, and Integration)などが挙げられる。これらのプロトコルでは、メッセージおよび定義の記述に、XML(Extensible Markup Language)を使用することができる。 Here, “Web service” means, for example, a service provided or executed by transmitting various types of information such as video, audio, and text using an Internet standard Web protocol. In the present embodiment, a case where a “Web service” is provided or executed by processing at least video information will be described as an example. Examples of protocols used in the “Web service” include SOAP (Simple Object Access Protocol), WSDL (Web Service Description Language), and UDDI (Universal Description, Discovery, and Integration). In these protocols, XML (Extensible Markup Language) can be used to describe messages and definitions.
また、「Webサービス要求」とは、外部機器のユーザにより設定されるWebサービスに関する各種の要求を意味する。上記のように、「Webサービス要求」は、映像情報の処理と、他の情報の処理との双方を要求するものである。前者の例としては、映像情報の解像度の増加および減少、映像情報の切替え、ならびに映像情報に付帯する情報の追加および削除が挙げられる。一方、後者の例としては、Webサービスの伝送速度の増加および減少、ならびに音声情報やテキスト情報などの追加および削除が挙げられる。 The “Web service request” means various requests related to the Web service set by the user of the external device. As described above, the “Web service request” requests both video information processing and other information processing. Examples of the former include increasing and decreasing the resolution of video information, switching video information, and adding and deleting information incidental to video information. On the other hand, examples of the latter include an increase and a decrease in the transmission speed of the Web service, and addition and deletion of voice information and text information.
取得部としてのWeb処理部120は、Webサービス要求受付部110から入力されたWebサービス要求から、他の情報の処理に要するCPU資源の量を取得する。Web処理部120は、取得されたCPU資源の量を、スケジューリング規則表150に出力する。これにより、スケジューリング規則表150に、Webサービス要求における他の情報の単位処理あたりのCPU資源が指定される。また、Web処理部120は、Webサービス要求受付部110から入力されたWebサービス要求を、映像処理部130に出力する。
The
Web処理部120は、CPU資源140のうち、他の情報の処理に割当てられたCPU資源を使用して、他の情報の処理を実行する。これらの処理は、例えばWebサービスに必要とされる各種のアプリケーションによって実行され、これらの処理により、Webサービスのユーザに対する応答性が確保される。Web処理部120における他の情報の処理は、オペレーティングシステム170のスケジューラ171と、スケジューリング規則表150を参照した開始評価部180とによって制御される。この制御については、後に詳細に説明する。
The
取得部としての映像処理部130は、Web処理部120から入力されたWebサービス要求から、映像情報の処理に要するCPU資源の量を取得する。映像処理部130は、取得されたCPU資源の量を、スケジューリング規則表150に出力する。これにより、スケジューリング規則表150に、Webサービス要求における映像情報の単位処理あたりのCPU資源が指定される。
The
映像処理部130は、CPU資源140のうち、映像情報の処理に割当てられたCPU資源を使用して、映像情報の処理を実行する。Web処理部120における他の情報の処理と同様に、映像処理部130における映像情報の処理は、オペレーティングシステム170のスケジューラ171と、スケジューリング規則表150を参照した開始評価部180とによって制御される。この制御についても、後に詳細に説明する。
The
ここで、Web処理部120で処理される他の情報と、映像処理部130で処理される映像情報とによって、Webサービス要求に対応するWebサービスが形成される。すなわち、Webサービスに連なる映像情報と、Webサービスに必要な他の情報とがそれぞれ形成され、外部機器に提供すべきWebサービス情報が形成されるのである。
Here, a Web service corresponding to the Web service request is formed by the other information processed by the
CPU資源140は、例えば、メモリ、スワップ領域およびレジスタセットなどを含んで構成される。CPU資源140は、Webサービス装置100における処理、つまり映像情報の処理と他の情報の処理とのいずれかに割当てられて使用可能である。CPU資源140は、映像情報の処理または他の情報の処理のいずれかに割当て可能なCPU資源、つまり使用可能なCPU資源の量を、スケジューリング規則表150に適宜通知する。なお、CPU資源140の量は、カスタマイズによって増減することができる。
The
スケジューリング規則表150は、Web処理部120から入力された他の情報の処理に要するCPU資源の量と、映像処理部130から入力された映像情報の処理に要するCPU資源の量とを保持する。すなわち、スケジューリング規則表150は、Web処理部120により指定された他の情報の単位処理あたりのCPU資源の量と、映像処理部130により指定された映像情報の単位処理あたりのCPU資源の量との割当比を保持する。このように、スケジューリング規則表150は、Webサービス要求に従って時々刻々と変化するWebサービス情報の処理負荷および映像情報の処理負荷、ならびにこれらの割当比をリアルタイムで保持することができる。
The scheduling rule table 150 holds the amount of CPU resources required for processing other information input from the
一方、スケジューリング規則表150にはCPU資源140の量が適宜通知されるので、スケジューリング規則表150は、Webサービス要求に応じた処理に要するCPU資源の量、つまり他の情報の処理に要するCPU資源の量と映像情報の処理に要するCPU資源の量との和が、CPU資源140の量を超過しているか否かを知ることができる。すなわち、スケジューリング規則表150は、Web処理部120および映像処理部130から指定された処理負荷が、Webサービス装置100の処理能力の範囲内であるか否かを知ることができる。
On the other hand, since the amount of the
タイミング生成部160は、例えば所定の時間間隔(処理刻み)ごとに、Web処理部120における他の情報の単位処理、および映像処理部130における映像情報の単位処理の開始タイミングを生成する。タイミング生成部160は、生成された各単位処理の開始タイミングを、オペレーティングシステム170のスケジューラ171に出力する。ここで、「単位処理」とは、1回のWebサービス要求によって要求される処理を意味するものとする。
The
オペレーティングシステム170は、各種情報の入出力、および記憶媒体の管理などの基本的な機能を提供することにより、Webサービス装置100全体を総合的に管理する。
The
オペレーティングシステム170は、スケジューラ171を具備する。スケジューラ171は、タイミング生成部160から入力された単位処理の開始タイミングを、Web処理部120および映像処理部130に通知する。すなわち、スケジューラ171は、タイミング生成部160から入力された開始タイミングに基づいて、Web処理部120および映像処理部130における単位処理、特に単位処理の開始をスケジューリングする。また、スケジューラ171は、タイミング生成部160から入力された単位処理の開始タイミングを、開始評価部180に出力する。
The
制御部としての開始評価部180は、スケジューラ171から入力された単位処理の開始タイミングごとに、スケジューリング規則表150を参照して、Web処理部120および映像処理部130における単位処理の開始を制御する。
The
より具体的には、他の情報の処理に要するCPU資源の量と映像情報の処理に要するCPU資源の量との和がCPU資源140の量の範囲内であるとき、開始評価部180は、Web処理部120および映像処理部130に、スケジューリング規則表150に指定された通りに、つまりWebサービス要求により要求された通りにCPU資源140を割当てることにより処理を開始させる。
More specifically, when the sum of the amount of CPU resources required for processing other information and the amount of CPU resources required for processing video information is within the range of the amount of
反対に、他の情報の処理に要するCPU資源の量と映像情報の処理に要するCPU資源の量との和がCPU資源140の量を超過するとき、開始評価部180は、他の情報の処理を優先しつつ、Web処理部120および映像処理部130にCPU資源140を割当てることにより処理を開始させる。
On the other hand, when the sum of the amount of CPU resources required for processing other information and the amount of CPU resources required for processing video information exceeds the amount of
以下、開始評価部180によるCPU資源140の割当て処理について、図2を用いてより具体的に説明する。
Hereinafter, the
図2(A)〜(C)は、開始評価部180によるCPU資源140の割当て処理の一例を示す図である。
2A to 2C are diagrams illustrating an example of
図2(A)に示すように、他の情報の処理に要するCPU資源の量と映像情報の処理に要するCPU資源の量との和がCPU資源140の量の範囲内であるとき、開始評価部180は、Web処理部120および映像処理部130に、スケジューリング規則表150に指定された通りに、つまりWebサービス要求により要求された通りにCPU資源140を割当てて単位処理を開始させる。
As shown in FIG. 2A, when the sum of the amount of CPU resources required for processing other information and the amount of CPU resources required for processing video information is within the range of the amount of
図2(B)に示すように、他の情報の処理に要するCPU資源の量と映像情報の処理に要するCPU資源の量との和がCPU資源140の量を超過するとき、開始評価部180は、今回の処理開始タイミングでは、他の情報の処理のみにCPU資源140を割当てる。また、開始評価部180は、次回以降の処理開始タイミングで、今回の処理開始タイミングで割当てなかった映像情報の処理にCPU資源140を割当てる。要するに、開始評価部180は、今回の処理開始タイミングでは、他の情報の処理の開始のみを許可する一方、映像情報の処理の開始を禁止して次回以降の処理開始タイミングまで待機させる。なお、待機される映像情報の処理には、次回以降の処理開始タイミングでCPU資源140を一括して割当ててもよいし、次回以降の複数回の処理開始タイミングでCPU資源140を分割して割当ててもよい。
As shown in FIG. 2B, when the sum of the amount of CPU resources required for processing other information and the amount of CPU resources required for processing video information exceeds the amount of
代替的には、図2(C)に示すように、他の情報の処理に要するCPU資源の量と映像情報の処理に要するCPU資源の量との和がCPU資源140の量を超過するとき、開始評価部180は、今回の処理開始タイミングでは、まず他の情報の処理にCPU資源140を割当て、映像情報の処理に、残りのCPU資源、つまりCPU資源140から他の情報の処理に割当てられるCPU資源を除いたCPU資源を割当てる。また、開始評価部180は、次回以降の処理開始タイミングで、今回の処理開始タイミングで割当て切れない映像情報の処理、つまり超過分の映像情報の処理に、CPU資源140を割当てる。要するに、開始評価部180は、今回の処理開始タイミングでは、映像情報の処理に、他の情報の処理に割当てた上でなお割当て可能なCPU資源を割当てて処理を開始させ、次回以降の処理開始タイミングで、超過分の映像情報の処理にCPU資源140を割当てて処理を開始させる。
Alternatively, as shown in FIG. 2C, when the sum of the amount of CPU resources required for processing other information and the amount of CPU resources required for processing video information exceeds the amount of
このように、Webサービス装置100における単位処理の開始タイミングごとに、他の情報の処理に要するCPU資源と映像情報の処理に要するCPU資源との配分を見直すことができる。したがって、映像情報の処理に要するCPU資源の配分が急激に過大になること(処理揺らぎ)を防止することができ、Webサービスにおけるユーザの応答性を確保することができる。
In this way, the allocation of the CPU resources required for processing other information and the CPU resources required for processing video information can be reviewed at each unit processing start timing in the
以上、Webサービス装置100の構成について説明した。
The configuration of the
以下、上述のように構成されたWebサービス装置100の動作について詳細に説明する。ここでは、Webサービス装置100を、監視用IPカメラシステム200に適用する場合を例にとって説明する。この場合、Webサービスは、監視用IPカメラで取得された映像、例えばJPEG映像の提供と、カメラ運台のパンチルト制御の提供とを含む。
Hereinafter, the operation of the
動作説明に先立って、まず、監視用IPカメラシステム200の構成について簡単に説明する。
Prior to the description of the operation, first, the configuration of the monitoring
図3は、監視用IPカメラシステム200の全体構成を示す図である。
FIG. 3 is a diagram illustrating the overall configuration of the monitoring
図3に示すように、監視用IPカメラシステム200は、監視用IPカメラ210を含む複数の監視用IPカメラが、IP網や携帯網などのネットワーク240を介して、監視モニタおよび操作卓を含む監視ステーション250に接続されてなる。監視ステーション250は、監視用IPカメラ210にWebサービス要求を送信し、このWebサービス要求に応じて配信される映像を受信して表示することができる外部機器である。
As shown in FIG. 3, the monitoring
監視用IPカメラ210は、カメラ本体220と、Webサービス配信制御部230とを具備している。これらの構成部およびその周辺の構成部について、図4を用いて説明する。図4は、Webサービス配信制御部230およびその周辺の構成部を示すブロック図である。
The
カメラ本体220は、監視パンチルト制御機能を有しており、レンズ221を上下左右にコントロール可能であり、かつ水平に360度の視野角を有している。カメラ本体220は、パンチルト駆動部231にパンチルト制御されつつ映像情報を取得する。カメラ本体220は、取得された映像情報を、Web処理部120を介して映像処理部130に出力する。
The
Webサービス配信制御部230は、図1のWebサービス装置100の構成に加え、カメラ本体220をパンチルト駆動させるパンチルト駆動部231を備えて構成される。パンチルト駆動部231は、Webサービス要求を受けたWeb処理部120からの指示信号に従って制御されつつ、カメラ本体220をパンチルト制御する。
The Web service
また、監視用IPカメラ210には、Web通信部232が設けられている。Web通信部232は、ネットワーク240を介して、監視ステーション250からのWebサービス要求を受信し、受信されたWebサービス要求を、Webサービス要求受付部110に出力する。このWebサービス要求は、例えば、カメラ本体220のパンチルト制御の指示、および映像の取得元である監視用IPカメラの切替えの指示を含む。また、Web通信部232は、受信されたWebサービス要求に従って提供または実行されたWebサービス、例えば監視用IPカメラ210によって取得されたJPEG映像を、ネットワーク240を介して送信する。
The
このように構成された監視用IPカメラシステム200において、監視ステーション250は、ネットワーク240を介して、監視用IPカメラ210にWebサービス要求を送信する。このWebサービス要求を受けた監視用IPカメラ210は、Webサービス要求に従って監視映像を取得し、取得した監視映像を、ネットワーク240を介して配信する。このようにして、Webサービスが継続的に提供または実行される。
In the monitoring
ここで、監視ステーション250から、例えばパンの指示とJPEG映像の画質向上設定の指示とを含むWebサービス要求がされると、映像情報の処理に要するCPU資源が一時的に増大し(処理揺らぎ)、これら双方の処理を同時に行おうとすると、CPU資源140の処理能力を超過してしまう事態が生じ得る。このような場合であっても、パンチルト制御のサービスのためのCPU資源は、Web処理部120と、スケジューラ171と、スケジューリング規則表150を参照した開始評価部180により確保され続け、監視ステーション250の操作者に対して、パンチルト制御についての一定の応答性を常に保つことが可能になる。
Here, when a web service request including, for example, a pan instruction and a JPEG video image quality improvement setting instruction is issued from the
このように、本実施の形態によれば、Webサービス要求受付部110が、映像情報の処理と映像情報以外の他の情報の処理との双方を要求するWebサービス要求を受付け、Web処理部120が、受付けられたWebサービス要求から、他の情報の処理に要するCPU資源の量を取得するとともにスケジューリング規則表150に指定し、映像処理部130が、受付けられたWebサービス要求から、映像情報の処理に要するCPU資源の量を取得するとともにスケジューリング規則表150に指定し、開始評価部180が、指定されたこれらのCPU資源の量の和がCPU資源140の量を超過するとき、他の情報の処理を優先しつつ、Web処理部120および映像処理部130にCPU資源140を割当てて処理を開始させる。これにより、映像情報の処理に要するCPU資源が急激に増大した場合であっても、ユーザへの操作応答性を低下させることなく、Webサービスを提供または実行することができる。
As described above, according to the present embodiment, the Web service
また、本実施の形態によれば、開始評価部180は、複数回の処理開始タイミングごとに、スケジューリング規則表150を参照してCPU資源140の割当て比率を見直すので、映像情報の処理と映像情報以外の他の情報の処理との処理性能をそれぞれ最適化することができる。
In addition, according to the present embodiment, the
特に、映像を含むWebサービスの配信においては、高品質なWebサービスを提供または実行しつつ、ユーザへの応答性を最適化することができる。すなわち、独立した複数の映像ネットワーク間を公衆網などのIPネットワークを用いて接続する際に、送信側において効率的な映像送信処理を実現することができる。 In particular, in the delivery of a web service including video, the responsiveness to the user can be optimized while providing or executing a high-quality web service. That is, when connecting a plurality of independent video networks using an IP network such as a public network, an efficient video transmission process can be realized on the transmission side.
なお、本実施の形態では、映像情報の処理を含むWebサービスを提供または実行する場合を例にとって説明したが、本発明はこれに限定されない。本発明は、音声情報およびその他の情報を含むWebサービスを提供または実行する場合にも適用することができる。この場合においても、上記実施の形態と同様の効果を得ることができる。 Note that although cases have been described with the present embodiment where a Web service including video information processing is provided or executed, the present invention is not limited to this. The present invention can also be applied when providing or executing a Web service including voice information and other information. Even in this case, the same effect as the above embodiment can be obtained.
また、本実施の形態によるWebサービス装置およびWebサービス方法は、Webサービスの配信元とWebサービスの配信先との間を仲介するWebサービス仲介装置、つまりネットワーク中継装置として機能させることも当然可能である。 Further, the Web service apparatus and Web service method according to the present embodiment can naturally function as a Web service mediating apparatus that mediates between the Web service distribution source and the Web service distribution destination, that is, a network relay apparatus. is there.
本発明に係るWebサービス装置およびWebサービス方法は、映像処理性能を最大化しつつ、良好なWebサービス応答性を実現することができる効果を有し、Webサービス、特に映像情報を含むWebサービスを提供または実行するWebサービス装置およびWebサービス方法として有用である。 The Web service device and Web service method according to the present invention have the effect of realizing good Web service responsiveness while maximizing video processing performance, and provide a Web service, particularly a Web service including video information. Alternatively, it is useful as a Web service device and Web service method to be executed.
100 Webサービス装置
110 Webサービス要求受付部
120 Web処理部
130 映像処理部
140 CPU資源
150 スケジューリング規則表
160 タイミング生成部
170 オペレーティングシステム
171 スケジューラ
180 開始評価部
200 監視用IPカメラシステム
210 監視用IPカメラ
220 カメラ本体
221 レンズ
230 Webサービス配信制御部
231 パンチルト駆動部
232 Web通信部
240 ネットワーク
250 監視ステーション
DESCRIPTION OF
Claims (7)
前記使用可能なCPU資源のうち、前記映像情報の処理に割当てられるCPU資源を使用して前記映像情報の処理を実行する映像処理部と、
前記使用可能なCPU資源のうち、前記他の情報の処理に割当てられるCPU資源を使用して前記他の情報の処理を実行するWeb処理部と、
映像情報の処理と該映像情報以外の他の情報の処理との双方を要求するWebサービス要求を受付ける受付部と、
受付けられるWebサービス要求から、前記映像情報の処理に要するCPU資源の量と、前記他の情報の処理に要するCPU資源の量とを取得する取得部と、
取得されるCPU資源の量の和が前記使用可能なCPU資源の量を超過するとき、前記他の情報の処理を優先しつつ、前記他の情報の処理および前記映像情報の処理に、前記使用可能なCPU資源を割当てる制御部と、
を具備することを特徴とするWebサービス装置。 CPU resources that can be used in either video information processing or other information processing other than the video information;
A video processing unit that executes the processing of the video information using a CPU resource allocated to the processing of the video information among the available CPU resources;
A web processing unit that executes processing of the other information using a CPU resource allocated to processing of the other information among the available CPU resources;
A reception unit that receives a Web service request that requests both processing of video information and processing of information other than the video information;
An acquisition unit for acquiring an amount of CPU resources required for processing the video information and an amount of CPU resources required for processing the other information from a web service request received;
When the total amount of CPU resources acquired exceeds the amount of available CPU resources, the use of the other information processing and the video information processing is performed while giving priority to the processing of the other information. A controller that allocates possible CPU resources;
A web service device comprising:
複数回の処理開始タイミングにおいて、前記他の情報の処理および前記映像情報の処理に、前記使用可能なCPU資源を割当てることにより、前記Web処理部および前記映像処理部に処理を開始させる、
ことを特徴とする請求項1記載のWebサービス装置。 The controller is
Allocating the usable CPU resources to the processing of the other information and the processing of the video information at a plurality of processing start timings, thereby causing the Web processing unit and the video processing unit to start processing;
The Web service apparatus according to claim 1, wherein:
取得されるCPU資源の量の和が前記使用可能なCPU資源の量を超過するとき、今回の処理開始タイミングで、前記他の情報の処理に、前記使用可能なCPU資源を割当てる一方、前記映像情報の処理に、前記使用可能なCPU資源を割当てない、
ことを特徴とする請求項2記載のWebサービス装置。 The controller is
When the total amount of CPU resources to be acquired exceeds the amount of available CPU resources, the available CPU resources are allocated to the processing of the other information at the current processing start timing, while the video Does not allocate the available CPU resources for information processing;
The Web service apparatus according to claim 2, wherein
次回以降の処理開始タイミングで、前記映像情報の処理に、前記使用可能なCPU資源を割当てる、
ことを特徴とする請求項3記載のWebサービス装置。 The controller is
Assigning the available CPU resources to the processing of the video information at the processing start timing after the next time,
The Web service apparatus according to claim 3, wherein:
取得されるCPU資源の量の和が前記使用可能なCPU資源の量を超過するとき、今回の処理開始タイミングで、前記他の情報の処理に、前記使用可能なCPU資源を割当て、前記映像情報の処理に、前記使用可能なCPU資源から前記他の情報の処理に割当てられるCPU資源を除いたCPU資源を割当てる、
ことを特徴とする請求項2記載のWebサービス装置。 The controller is
When the total amount of CPU resources to be acquired exceeds the amount of usable CPU resources, the usable CPU resources are allocated to processing of the other information at the current processing start timing, and the video information CPU resources excluding CPU resources allocated to the processing of the other information from the available CPU resources are allocated to
The Web service device according to claim 2, wherein
次回以降の処理開始タイミングで、前記今回の処理開始タイミングで割当てることができない映像情報の処理に、前記使用可能なCPU資源を割当てる、
ことを特徴とする請求項5記載のWebサービス装置。 The controller is
Assigning the available CPU resources to processing video information that cannot be assigned at the current process start timing at the process start timing after the next time;
6. The Web service device according to claim 5, wherein
映像情報の処理と該映像情報以外の他の情報の処理との双方を要求するWebサービス要求を受付ける受付ステップと、
受付けられるWebサービス要求から、前記映像情報の処理に要するCPU資源の量と、前記他の情報の処理に要するCPU資源の量とを取得する取得ステップと、
取得されるCPU資源の量の和が前記使用可能なCPU資源の量を超過するとき、前記他の情報の処理を優先しつつ、前記他の情報の処理および前記映像情報の処理に、前記使用可能なCPU資源を割当てる割当てステップと、
を具備することを特徴とするWebサービス方法。 CPU resources that can be used in either video information processing or other information processing other than the video information, and CPU resources allocated to the video information processing among the available CPU resources. A video processing unit that executes processing of the video information; and a Web processing unit that executes processing of the other information using a CPU resource allocated to the processing of the other information among the available CPU resources. A web service method for providing a web service using a web service device comprising:
Receiving a web service request for requesting both video information processing and information processing other than the video information; and
An acquisition step of acquiring an amount of CPU resources required for processing the video information and an amount of CPU resources required for processing the other information from an accepted Web service request;
When the total amount of CPU resources acquired exceeds the amount of available CPU resources, the use of the other information processing and the video information processing is performed while giving priority to the processing of the other information. An allocation step of allocating possible CPU resources;
A web service method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006329817A JP2008146171A (en) | 2006-12-06 | 2006-12-06 | Web service device and web service method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006329817A JP2008146171A (en) | 2006-12-06 | 2006-12-06 | Web service device and web service method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008146171A true JP2008146171A (en) | 2008-06-26 |
Family
ID=39606317
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006329817A Pending JP2008146171A (en) | 2006-12-06 | 2006-12-06 | Web service device and web service method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008146171A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210345013A1 (en) * | 2018-10-18 | 2021-11-04 | Hangzhou Hikvision Digital Technology Co., Ltd. | Video Playing Method and Apparatus |
-
2006
- 2006-12-06 JP JP2006329817A patent/JP2008146171A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210345013A1 (en) * | 2018-10-18 | 2021-11-04 | Hangzhou Hikvision Digital Technology Co., Ltd. | Video Playing Method and Apparatus |
US11800199B2 (en) * | 2018-10-18 | 2023-10-24 | Hangzhou Hikvision Digital Technology Co., Ltd. | Video playing method and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2193634B1 (en) | Bandwidth reservation for data flows in interconnection networks | |
JP3904435B2 (en) | Congestion control apparatus and method for Web service | |
JP3000913B2 (en) | Data transmission apparatus and method | |
EP1517491B1 (en) | Network device, system and method | |
US20070230419A1 (en) | QoS signaling to support fairness | |
US20100115052A1 (en) | Apparatus for displaying an image, system processing image data, and method of processing image data | |
US20080080534A1 (en) | BRIDGE FOR HETEROGENEOUS QoS NETWORKS | |
JP6289092B2 (en) | Information processing apparatus, control method thereof, and computer program | |
KR20100037032A (en) | Queue-based adaptive chunk scheduling for peer-to-peer live streaming | |
KR20120103713A (en) | Group session management and admission control of multiple internet protocol flows | |
JP2000295228A (en) | Switch, its scheduler and switch scheduling method | |
US20070153825A1 (en) | Streaming service providing method adaptive to dynamic network changes | |
JP2004356855A (en) | Wireless network system | |
EP1545093B1 (en) | Traffic control apparatus and service system using the same | |
EP1396966A1 (en) | Dynamic bandwidth allocation for variable bit rate streaming data | |
WO2014068863A1 (en) | Information processing device, information processing method and program | |
US20180048526A1 (en) | Distribution of bandwidth in a network | |
JP2009284297A (en) | Multi-session enabled router and communication control method thereof | |
JP2008059040A (en) | Load control system and method | |
JP2008146171A (en) | Web service device and web service method | |
JP2009188655A (en) | Communication control method, information processing system, information processor, and program | |
JP2009032083A (en) | Load control device, method and program | |
US7310679B1 (en) | Method and system for transmitting video content while preventing other transmissions in a contention-based network | |
JP6102347B2 (en) | Information device, printing system, computer program, and data transfer method | |
KR100656526B1 (en) | Bandwidth guarantee system and method for video on demand service using token allocation |