JP2011248715A - Node device, node processing program and content deletion method - Google Patents

Node device, node processing program and content deletion method Download PDF

Info

Publication number
JP2011248715A
JP2011248715A JP2010122580A JP2010122580A JP2011248715A JP 2011248715 A JP2011248715 A JP 2011248715A JP 2010122580 A JP2010122580 A JP 2010122580A JP 2010122580 A JP2010122580 A JP 2010122580A JP 2011248715 A JP2011248715 A JP 2011248715A
Authority
JP
Japan
Prior art keywords
content
file
node
node device
stored
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.)
Withdrawn
Application number
JP2010122580A
Other languages
Japanese (ja)
Inventor
Tadashi Hirano
正 平野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2010122580A priority Critical patent/JP2011248715A/en
Publication of JP2011248715A publication Critical patent/JP2011248715A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a node device, node processing program and content deletion method capable of performing rapidly a reproduction output of a content constituting a compound content even if the content for constituting the compound content is deleted from a cache area for storing the content.SOLUTION: A node device stores at least one of a first content constituting a compound content and output in a time series, and a second content needed for controlling output of the first content. The node device deletes the first content preferentially of the contents constituting the compound content, in a case that it deletes the content stored.

Description

本発明は、ネットワークを介して互いに通信可能な複数のノード装置を備えたピアツーピア(Peer to Peer(P2P))型の配信システムの技術分野に関する。   The present invention relates to a technical field of a Peer to Peer (P2P) type distribution system including a plurality of node devices that can communicate with each other via a network.

近年、ピアツーピア型の配信システムにおいて、一つのコンテンツデータが複数に分割された各分割コンテンツデータを、複数のノード装置に分散保存した配信システムが知られている(特許文献1参照)。一つの分割コンテンツデータのデータ量は例えば数Mbyteになっている。以下、コンテンツデータを「コンテンツ」という。特許文献1に開示された配信システムでは、各分割コンテンツには固有のコンテンツIDが付与されている。そして、各ノード装置は、分割コンテンツのコンテンツIDに基づいて他のノード装置から分割コンテンツ単位で分割コンテンツを取得すること可能になっている。   In recent years, in a peer-to-peer type distribution system, a distribution system is known in which each piece of divided content data obtained by dividing one piece of content data is distributed and stored in a plurality of node devices (see Patent Document 1). The data amount of one divided content data is, for example, several megabytes. Hereinafter, the content data is referred to as “content”. In the distribution system disclosed in Patent Document 1, a unique content ID is assigned to each divided content. Each node device can acquire divided content in units of divided content from other node devices based on the content ID of the divided content.

また、ピアツーピア型の配信システムにおいて、ノード装置により取得されたコンテンツは、ノード装置に備えられる記憶部における所定のキャッシュ領域に記憶保存される。このキャッシュ領域の記憶容量には限界があるため、各ノード装置は、例えば、記憶されているコンテンツの総データ量が一定量を超えた場合、キャッシュ領域から一部のコンテンツを削除するコンテンツ削除処理を行うようになっている。   In a peer-to-peer distribution system, content acquired by a node device is stored and stored in a predetermined cache area in a storage unit provided in the node device. Since the storage capacity of this cache area is limited, each node device, for example, deletes a part of content from the cache area when the total amount of stored content exceeds a certain amount. Is supposed to do.

特開2008−047065号公報JP 2008-047065 A

ところで、近年、例えばSWF(Shockwave Flash)等によって構成された、Flash Playerで再生可能な複合コンテンツが知られている。この複合コンテンツは、例えば、動画等により構成されたリソースファイルと、このリソースファイルに登録された動画等の出力制御に必要な制御ファイルから構成される。このような複合コンテンツをピアツーピア型の配信システムに投入する場合、リソースファイルと制御ファイルを、夫々一つのコンテンツとして何れかのノード装置に保存させることとなる。この場合において、上記コンテンツ削除処理により、複合コンテンツを構成するリソースファイルと制御ファイルのうち、キャッシュ領域から制御ファイルが削除されることが想定される。   By the way, in recent years, composite content that is configured by, for example, SWF (Shockwave Flash) or the like and can be played back by Flash Player is known. This composite content is composed of, for example, a resource file composed of moving images and the like, and a control file necessary for output control of the moving images registered in the resource file. When such composite content is input to a peer-to-peer distribution system, the resource file and the control file are stored in one of the node devices as one content. In this case, it is assumed that the control file is deleted from the cache area among the resource file and the control file constituting the composite content by the content deletion process.

しかしながら、制御ファイルがキャッシュ領域から削除されていると、これに対応するリソースファイルを再生する場合、ノード装置は他のノード装置から制御ファイルを取得する必要がある。リソースファイルの再生において、制御ファイルは、複合コンテンツの中で最初に必要になる。そのため、ノード装置が、リソースファイルの再生時に他のノード装置から制御ファイルを取得するようなケースでは、リソースファイルの再生までに無駄な時間がかかってしまうという問題がある。   However, if the control file has been deleted from the cache area, the node device needs to acquire the control file from another node device when reproducing the corresponding resource file. In the reproduction of the resource file, the control file is first required in the composite content. Therefore, in a case where the node device acquires a control file from another node device during the reproduction of the resource file, there is a problem that it takes time to reproduce the resource file.

そこで、本発明は、以上の問題等に鑑みてなされたものであり、コンテンツを記憶するキャッシュ領域から複合コンテンツを構成するコンテンツが削除されても、複合コンテンツを構成するコンテンツの再生出力を迅速に行うことが可能なノード装置、ノード処理プログラム、及びコンテンツ削除方法を提供すること等を課題とする。   Therefore, the present invention has been made in view of the above-described problems and the like, and even when the content constituting the composite content is deleted from the cache area for storing the content, the playback and output of the content constituting the composite content can be quickly performed. It is an object to provide a node device, a node processing program, and a content deletion method that can be performed.

上記課題を解決するために、請求項1に記載の発明は、ネットワークを介して互いに通信可能な複数のノード装置を備え、1以上のコンテンツが1つ以上のノード装置に保存され、各ノード装置は夫々の前記コンテンツに付与された固有の識別情報に基づいて他のノード装置に保存された前記コンテンツを取得するように構成された配信システムにおける前記ノード装置であって、複数のコンテンツから構成される複合コンテンツの中で、時系列的に出力される第一コンテンツと、当該第一コンテンツの出力制御に必要な第二コンテンツと、のいずれか一方を少なくとも記憶する記憶手段と、前記記憶手段に記憶されている前記コンテンツを削除する場合に、前記複合コンテンツを構成する前記コンテンツのうち、前記第一コンテンツを優先して削除する削除手段と、を備えることを特徴とする。   In order to solve the above-described problem, the invention described in claim 1 includes a plurality of node devices that can communicate with each other via a network, one or more contents are stored in one or more node devices, and each node device Is the node device in the distribution system configured to acquire the content stored in another node device based on unique identification information given to each of the content, and is configured from a plurality of content Storage means for storing at least one of the first content output in time series in the composite content and the second content necessary for output control of the first content, and the storage means When deleting the stored content, priority is given to the first content among the content constituting the composite content. Characterized in that it comprises a deletion means for deleting, the Te.

請求項2に記載の発明は、請求項1に記載のノード装置において、前記記憶手段には、前記複合コンテンツを構成する、複数の前記第一コンテンツと、前記第二コンテンツとのいずれか一方が少なくとも記憶されており、前記削除手段は、前記複数の第一コンテンツの中で、データ量の大きい前記第一コンテンツから優先的に削除することを特徴とする。   According to a second aspect of the present invention, in the node device according to the first aspect, the storage unit includes any one of a plurality of the first content and the second content constituting the composite content. It is stored at least, and the deletion means preferentially deletes the first content having a large amount of data among the plurality of first contents.

請求項3に記載の発明は、請求項1又は2に記載のノード装置において、前記記憶手段には、前記第一コンテンツとして、動画により構成されたコンテンツと、静止画又はテキストにより構成されたコンテンツとが少なくとも記憶されており、前記削除手段は、静止画又はテキストにより構成されたコンテンツよりも、前記動画により構成されたコンテンツから優先的に削除することを特徴とする。   According to a third aspect of the present invention, in the node device according to the first or second aspect, the storage unit includes a content composed of a moving image and a content composed of a still image or text as the first content. Are stored, and the deleting unit deletes the content preferentially from the content composed of the moving image rather than the content composed of the still image or the text.

請求項4に記載の発明は、請求項1乃至3の何れか一項に記載のノード装置において、前記記憶手段には、前記複合コンテンツを構成する、前記第一コンテンツと、前記第二コンテンツと、前記複合コンテンツを構成する各前記コンテンツに付与された識別情報であって、複数のノード装置に分散保存された複数のコンテンツを検索するための識別情報が記述された第三コンテンツとが少なくとも記憶されており、前記削除手段は、前記複合コンテンツを構成する前記コンテンツのうち、前記第一コンテンツから優先的に削除することを特徴とする。   According to a fourth aspect of the present invention, in the node device according to any one of the first to third aspects, the storage means includes the first content, the second content, and the second content constituting the composite content. And at least a third content in which identification information assigned to each content constituting the composite content, in which identification information for searching a plurality of contents distributed and stored in a plurality of node devices is described, is stored. The deleting means preferentially deletes the first content from among the contents constituting the composite content.

請求項5に記載の発明は、請求項1乃至4の何れか一項に記載のノード装置において、前記削除手段は、所定時間利用されない前記第二コンテンツを削除することを特徴とする。   According to a fifth aspect of the present invention, in the node device according to any one of the first to fourth aspects, the deletion unit deletes the second content that is not used for a predetermined time.

請求項6に記載の発明は、請求項1乃至5の何れか一項に記載のノード装置において、前記第二コンテンツは、前記第一コンテンツの出力タイミングを制御するためのファイルと、前記第一コンテンツを所定のディスプレイに表示する表示制御を行うためのファイルの少なくとも何れか一方から構成されることを特徴とする。   According to a sixth aspect of the present invention, in the node device according to any one of the first to fifth aspects, the second content includes a file for controlling an output timing of the first content, and the first content. It is characterized by comprising at least one of files for performing display control for displaying content on a predetermined display.

請求項7に記載の発明は、ネットワークを介して互いに通信可能な複数のノード装置を備え、1以上のコンテンツが1つ以上のノード装置に保存され、各ノード装置は夫々の前記コンテンツに付与された固有の識別情報に基づいて他のノード装置に保存された前記コンテンツを取得するように構成された配信システムにおける前記ノード装置に含まれるコンピュータに、複数のコンテンツから構成される複合コンテンツの中で、時系列的に出力される第一コンテンツと、当該第一コンテンツの出力制御に必要な第二コンテンツと、のいずれか一方を少なくとも記憶するステップと、前記記憶されている前記コンテンツを削除する場合に、前記複合コンテンツを構成する前記コンテンツのうち、前記第一コンテンツを優先して削除するステップと、を実行させるためのノード処理プログラムである。   The invention according to claim 7 includes a plurality of node devices that can communicate with each other via a network, one or more contents are stored in one or more node devices, and each node device is assigned to each of the contents. Among the composite contents composed of a plurality of contents, the computer included in the node apparatus in the distribution system configured to acquire the content stored in another node apparatus based on the unique identification information. A step of storing at least one of the first content output in time series and the second content necessary for output control of the first content, and deleting the stored content And preferentially deleting the first content out of the contents constituting the composite content. A node processing program for execution.

請求項8に記載の発明は、ネットワークを介して互いに通信可能な複数のノード装置を備え、1以上のコンテンツが1つ以上のノード装置に保存され、各ノード装置は夫々の前記コンテンツに付与された固有の識別情報に基づいて他のノード装置に保存された前記コンテンツを取得するように構成された配信システムにおけるコンテンツ削除方法であって、前記ノード装置が、複数のコンテンツから構成される複合コンテンツの中で、時系列的に出力される第一コンテンツと、当該第一コンテンツの出力制御に必要な第二コンテンツと、のいずれか一方を少なくとも記憶するステップと、前記ノード装置が、前記記憶されている前記コンテンツを削除する場合に、前記複合コンテンツを構成する前記コンテンツのうち、前記第一コンテンツを優先して削除するステップと、を含むことを特徴とする。   The invention according to claim 8 includes a plurality of node devices that can communicate with each other via a network, wherein one or more contents are stored in one or more node devices, and each node device is assigned to each of the contents. A content deletion method in a distribution system configured to acquire the content stored in another node device based on the unique identification information, wherein the node device is composed of a plurality of contents And storing at least one of the first content output in time series and the second content necessary for output control of the first content, and the node device Among the contents constituting the composite content, the first content is deleted when the content is deleted. A step of deleting previously to, to include the features.

請求項1、7、及び8に記載の発明によれば、コンテンツのキャッシュ領域から複合コンテンツを構成するコンテンツを削除する場合に、時系列的に出力される第一コンテンツを優先して削除するので、第一コンテンツの出力制御に必要な第二コンテンツをキャッシュ領域に残しておくことができる。従って、複合コンテンツを構成する複数のコンテンツの再生出力を迅速に行うことができる。   According to the first, seventh, and eighth aspects of the present invention, when deleting the content constituting the composite content from the content cache area, the first content output in time series is preferentially deleted. The second content necessary for the output control of the first content can be left in the cache area. Therefore, it is possible to quickly reproduce and output a plurality of contents constituting the composite contents.

請求項2に記載の発明によれば、データ量の大きい第一コンテンツから優先的に削除することで、より多くのコンテンツをキャッシュ領域に記憶することができるので、コンテンツのキャッシュ領域を有効に活用することができる。   According to the second aspect of the present invention, it is possible to store more content in the cache area by preferentially deleting from the first content having a large amount of data, so that the content cache area is effectively used. can do.

請求項3に記載の発明によれば、データ量の大きい動画により構成されたコンテンツから優先的に削除することで、より多くのコンテンツをキャッシュ領域に記憶することができるので、コンテンツのキャッシュ領域を有効に活用することができる。   According to the third aspect of the present invention, it is possible to store more content in the cache area by preferentially deleting from the content composed of moving images with a large amount of data. It can be used effectively.

請求項4に記載の発明によれば、複合コンテンツを構成する各コンテンツを取得するための情報が記述された第三コンテンツをキャッシュ領域に残しておくことができる。従って、複合コンテンツを構成するコンテンツの再生出力を迅速に行うことができる。   According to the fourth aspect of the present invention, the third content in which information for acquiring each content constituting the composite content is described can be left in the cache area. Accordingly, it is possible to quickly reproduce and output the content constituting the composite content.

請求項5に記載の発明によれば、所定期間利用されなくなった第二コンテンツを効率良く削除することができる。   According to the fifth aspect of the present invention, the second content that has not been used for a predetermined period can be efficiently deleted.

本実施形態に係るコンテンツ配信システムの概要構成例を示す図である。It is a figure showing an example of outline composition of a contents distribution system concerning this embodiment. ノードNnの概要構成例を示すブロック図である。It is a block diagram which shows the example of a schematic structure of the node Nn. 複合コンテンツの投入から削除までの様子を示す概念図である。It is a conceptual diagram which shows the mode from injection | pouring of composite content to deletion. ノードN1の制御部11における処理を示すフローチャートである。It is a flowchart which shows the process in the control part 11 of node N1.

以下、本発明の実施形態を図面に基づいて説明する。なお、以下に説明する実施の形態は、コンテンツ配信システムに本発明を適用した場合の実施形態である。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. The embodiment described below is an embodiment when the present invention is applied to a content distribution system.

1.コンテンツ配信システムの構成及び動作概要
始めに、図1を参照して、本実施形態に係るコンテンツ配信システムの構成及び動作概要について説明する。図1は、本実施形態に係るコンテンツ配信システムの概要構成例を示す図である。
[ 1. Content distribution system configuration and operation overview ]
First, with reference to FIG. 1, the structure and operation | movement outline | summary of the content delivery system which concerns on this embodiment are demonstrated. FIG. 1 is a diagram illustrating a schematic configuration example of a content distribution system according to the present embodiment.

図1に示すように、本実施形態に係るコンテンツ配信システムSは、コンテンツ管理サーバMS、及び複数のノード装置Nn(n=1,2,3・・・k)等を備えて構成されている。コンテンツ管理サーバMS及び各ノード装置Nnは、インターネット等からなるネットワークNWに接続されている。なお、ノード装置を、以下、「ノード」という。また、各ノードNnには固有の識別情報であるノードIDが割り当てられている。また、コンテンツ管理サーバMSは、コンテンツ配信システムS内で利用可能な全てのコンテンツのオリジナルを管理している。   As shown in FIG. 1, the content distribution system S according to the present embodiment includes a content management server MS and a plurality of node devices Nn (n = 1, 2, 3,... K). . The content management server MS and each node device Nn are connected to a network NW composed of the Internet or the like. The node device is hereinafter referred to as “node”. Each node Nn is assigned a node ID that is unique identification information. Further, the content management server MS manages the originals of all the contents that can be used in the content distribution system S.

コンテンツ配信システムSには、オーバーレイネットワークONが形成されている。オーバーレイネットワークONは、ネットワークNWを介して互いに通信可能な複数のノードNnにより構成される仮想的なリンクを構成する論理的なネットワークである。また、オーバーレイネットワークONは、特定のアルゴリズム、例えば、分散ハッシュテーブルを利用したアルゴリズムにより実現される。分散ハッシュテーブルを、以下、「DHT(Distributed Hash Table)」という。なお、DHTを用いたルーティングテーブルについては、特開2006−197400号公報等で公知であるので、詳しい説明を省略する。   In the content distribution system S, an overlay network ON is formed. The overlay network ON is a logical network that forms a virtual link including a plurality of nodes Nn that can communicate with each other via the network NW. The overlay network ON is realized by a specific algorithm, for example, an algorithm using a distributed hash table. Hereinafter, the distributed hash table is referred to as “DHT (Distributed Hash Table)”. Note that a routing table using DHT is known in Japanese Patent Application Laid-Open No. 2006-197400 and the like, and thus detailed description thereof is omitted.

そして、コンテンツ管理サーバMSは、例えばコンテンツ提供者の端末からアップロードされたコンテンツをコンテンツ配信システムS内に投入する。ここで、コンテンツの投入とは、オーバーレイネットワークONに参加している1以上のノードNnに、新たなコンテンツを保存させることをいう。なお、コンテンツを保存しているノードNnを、以下、「コンテンツ保持ノード」という。投入された各コンテンツには固有の識別情報であるコンテンツIDが付与されている。コンテンツIDは、複数のノードNnに分散保存されている複数のコンテンツを検索するためのものである。そして、各ノードNnは、コンテンツIDに基づき、他のノードNnに保存されているコンテンツを、オーバーレイネットワークONを介して取得可能になっている。このように取得されたコンテンツはノードNnに保存される。こうして、コンテンツは、オーバーレイネットワークONにおける複数のコンテンツ保持ノードに分散されて保存されることになる。   Then, the content management server MS inputs the content uploaded from, for example, the content provider's terminal into the content distribution system S. Here, the input of content refers to saving new content in one or more nodes Nn participating in the overlay network ON. The node Nn that stores the content is hereinafter referred to as a “content holding node”. Each input content is given a content ID which is unique identification information. The content ID is for searching a plurality of contents distributed and stored in a plurality of nodes Nn. Each node Nn can acquire the content stored in the other node Nn via the overlay network ON based on the content ID. The content acquired in this way is stored in the node Nn. Thus, the content is distributed and stored in a plurality of content holding nodes in the overlay network ON.

また、本実施形態に係るコンテンツ配信システムSにおいては、複数のコンテンツから構成される複合コンテンツが投入される場合がある。複合コンテンツは、複数のコンテンツが例えばアーカイブ化により一つのファイルに纏められたものである。投入された複合コンテンツは、コンテンツ管理サーバMSにより管理される。複合コンテンツを構成するコンテンツには、時系列的に出力される第一コンテンツと、第一コンテンツの出力制御に必要な第二コンテンツと、がある。なお、以下の説明では、第一コンテンツとしてリソースファイルを、第二コンテンツとして制御ファイルを、夫々例にとって説明する。   Further, in the content distribution system S according to the present embodiment, composite content composed of a plurality of contents may be input. The composite content is a plurality of contents collected into one file by archiving, for example. The input composite content is managed by the content management server MS. Content constituting the composite content includes first content output in time series and second content necessary for output control of the first content. In the following description, a resource file will be described as the first content, and a control file will be described as the second content.

ここで、リソースファイルとしては、例えば、動画ファイル、画像ファイル、音声ファイル、テキストファイルが挙げられる。動画ファイルは、動画により構成されたコンテンツである。動画ファイルとしては、FLVファイル等がある。また、画像ファイルは、静止画により構成されたコンテンツである。画像ファイルとしては、BMPファイル、JPEGファイル、GIFファイル等がある。また、音声ファイルは、音声により構成されたコンテンツである。音声ファイルとしては、MP3ファイル等がある。また、テキストファイルは、テキストにより構成されたコンテンツである。テキストファイルとしては、XMLファイル等がある。また、1つの複合コンテンツを構成するリソースファイルは、1つとは限らず複数の場合もある。   Here, examples of the resource file include a moving image file, an image file, an audio file, and a text file. The moving image file is content composed of moving images. Examples of the moving image file include an FLV file. An image file is content composed of still images. Examples of the image file include a BMP file, a JPEG file, and a GIF file. The audio file is content configured by audio. Examples of the audio file include an MP3 file. A text file is content composed of text. An example of the text file is an XML file. Further, the number of resource files constituting one composite content is not limited to one and may be plural.

また、制御ファイルは、例えば、以下の(i)と(ii)の少なくとも何れか一方のファイルから構成される。
(i)リソースファイルに登録された動画等のリソースの出力タイミングを制御するためのファイル
(ii)リソースファイルに登録された画像やテキスト等のリソースを所定のディスプレイに表示する表示制御を行うためのファイル
ここで、表示制御には、例えば、画像やテキストの表示位置の制御が含まれる。また、表示制御には、画像の拡大又は縮小の制御、画像の解像度の制御が含まれても良い。
The control file is composed of, for example, at least one of the following files (i) and (ii).
(I) A file for controlling the output timing of resources such as moving images registered in the resource file (ii) For performing display control for displaying resources such as images and text registered in the resource file on a predetermined display File Here, display control includes, for example, control of the display position of an image or text. The display control may include image enlargement / reduction control and image resolution control.

制御ファイルの具体例としては、SWFファイル等がある。SWFファイルには、動画等のリソースの出力制御を行うためのスプリプトがAction Scriptと呼ばれる言語で記述されている。このスプリプトにより、リソースファイルに登録された動画等のリソースの出力タイミングを制御することができる。言い換えれば、出力タイミングとは、各動画等の再生開始位置を示す。再生開始位置は、例えば、リソースファイルに登録された動画の出力が開始されてから、経過した時間である。各動画ごとの再生が開始される時間が、リソースファイルに登録されていても良い。また、リソースが画像やテキストであれば、このスプリプトにより、画面上における表示位置を制御することができる。言い換えれば、制御ファイルには、表示画面上における画像やテキストの表示位置を示す情報が含まれても良い。さらに、制御ファイルには、画像やテキストの出力タイミング、または、上述した再生開始位置を示す情報が含まれても良い。また、リソースが画像であれば、上記スプリプトにより、画像の拡大又は縮小を制御することができる。また、リソースが画像であれば、上記スプリプトにより、画像の解像度を制御することができる。言い換えれば、制御ファイルには、画像の拡大又は縮小や、画像の解像度を示す情報が含まれても良い。更に、制御ファイルには、リソースファイルの出力制御をユーザの操作指示に応じて行うためのユーザインターフェースに関する情報が含まれても良い。また、1つの複合コンテンツを構成する制御ファイルは、1つとは限らず複数の場合もある。ただし、SWFファイルの場合も、メインのSWFファイルは1つであり、これ以外はサブのSWFファイルとなる。サブのSWFファイルは、メインのSWFファイルに記述されたスプリプトにより呼び出されて使用されることになる。また、リソースファイルは、SWFファイル中に格納することもできる。リソースファイルは、ファイルサイズが小さい場合もあり、SWFファイル中に格納することもできる。   A specific example of the control file is a SWF file. In the SWF file, a script for controlling output of a resource such as a moving image is described in a language called Action Script. With this script, it is possible to control the output timing of resources such as moving images registered in the resource file. In other words, the output timing indicates the reproduction start position of each moving image or the like. The playback start position is, for example, the time that has elapsed since the start of the output of the moving image registered in the resource file. The time at which playback for each video is started may be registered in the resource file. If the resource is an image or text, the display position on the screen can be controlled by this script. In other words, the control file may include information indicating the display position of the image or text on the display screen. Furthermore, the control file may include information indicating the output timing of the image or text, or the reproduction start position described above. If the resource is an image, enlargement or reduction of the image can be controlled by the script. If the resource is an image, the resolution of the image can be controlled by the above script. In other words, the control file may include information indicating the enlargement or reduction of the image or the resolution of the image. Further, the control file may include information related to a user interface for performing output control of the resource file in accordance with a user operation instruction. Further, the number of control files constituting one composite content is not limited to one, and there may be a plurality of control files. However, in the case of the SWF file, there is only one main SWF file, and the other SWF files are sub SWF files. The sub SWF file is called and used by a script described in the main SWF file. The resource file can also be stored in the SWF file. The resource file may have a small file size and can be stored in the SWF file.

なお、複合コンテンツ以外のコンテンツは、リソースファイルからなる。複合コンテンツ以外のコンテンツを、以下、「通常コンテンツ」という。通常コンテンツとしては、WMVファイル等がある。   Content other than composite content is made up of resource files. The content other than the composite content is hereinafter referred to as “normal content”. The normal content includes a WMV file.

そして、複合コンテンツを構成するリソースファイル及び制御ファイルには、夫々、固有のコンテンツIDが付与される。例えば、コンテンツIDは、リソースファイル及び制御ファイルのヘッダに記述される。このようにコンテンツIDが付与されたリソースファイル及び制御ファイルは、1つのコンテンツとしてコンテンツ配信システムS内に投入される。   A unique content ID is assigned to each of the resource file and the control file constituting the composite content. For example, the content ID is described in the header of the resource file and the control file. Thus, the resource file and the control file to which the content ID is assigned are input into the content distribution system S as one content.

ところで、複合コンテンツを構成する各ファイルのコンテンツID及びファイル名は、例えば、複合コンテンツのメタファイルに記述されている。複合コンテンツのメタファイルとは、複合コンテンツを構成する各ファイルをオーバーレイネットワークONを介して検索し取得するためのファイルである。また、複合コンテンツのメタファイルには、この複合コンテンツのコンテンツIDが付与される。コンテンツIDが付与された複合コンテンツのメタファイルは、1つのコンテンツとしてコンテンツ配信システムS内に投入される。なお、複合コンテンツのメタファイルは、リソースファイル及び制御ファイルと同様、複合コンテンツを構成する一ファイルとして位置づけることもできる。   By the way, the content ID and the file name of each file constituting the composite content are described in, for example, a meta file of the composite content. The composite content metafile is a file for searching and acquiring each file constituting the composite content via the overlay network ON. Further, the content ID of the composite content is assigned to the composite content metafile. The meta file of the composite content to which the content ID is assigned is input into the content distribution system S as one content. Note that the composite content metafile can be positioned as one file constituting the composite content, similar to the resource file and the control file.

また、コンテンツの所在を示す情報は、インデックス情報として、コンテンツの所在を管理しているノードNnに記憶される。このコンテンツとしては、上述した各ファイルも該当する。コンテンツの所在を管理しているノードNnを、以下、「ルートノード」という。このインデックス情報には、コンテンツを保存しているコンテンツ保持ノードのノード情報と、コンテンツのコンテンツIDとの組が含まれる。ノード情報には、コンテンツ保持ノードのIPアドレス、ポート番号、及びノードIDが含まれる。ルートノードは、例えば、コンテンツIDと最も近いノードIDが割り当てられたノードNnであるように定められる。コンテンツIDと最も近いノードIDとは、例えば、IDの上位桁が最も多く一致するノードIDである。   Information indicating the location of the content is stored as index information in the node Nn that manages the location of the content. As this content, each file mentioned above also corresponds. The node Nn that manages the location of the content is hereinafter referred to as a “root node”. This index information includes a set of the node information of the content holding node storing the content and the content ID of the content. The node information includes the IP address, port number, and node ID of the content holding node. For example, the root node is determined to be the node Nn to which the node ID closest to the content ID is assigned. The node ID closest to the content ID is, for example, the node ID with the highest number of upper digits that match.

そして、ノードNnは、複合コンテンツを取得する場合、先ず、複合コンテンツのコンテンツIDに基づき、オーバーレイネットワークONを介してコンテンツ保持ノードから複合コンテンツのメタファイルを取得する。次に、ノードNnは、取得した複合コンテンツのメタファイルに記述された各コンテンツIDに基づき、夫々のファイルを、オーバーレイネットワークONを介してコンテンツ保持ノードから取得する。なお、ノードNnは、複合コンテンツを構成する各ファイルをコンテンツ管理サーバMSから取得することもできる。以上のように取得されたメタファイル、リソースファイル、及び制御ファイルは、ノードNnに備えられる記憶部に設けられたコンテンツキャッシュ領域に記憶保存される。そして、本実施形態では、コンテンツキャッシュ領域からファイルが削除される場合に、ノードNnは、これらのファイルのうち、リソースファイルを優先して削除するようになっている。   When acquiring the composite content, the node Nn first acquires the metafile of the composite content from the content holding node via the overlay network ON based on the content ID of the composite content. Next, the node Nn acquires each file from the content holding node via the overlay network ON based on each content ID described in the acquired composite content metafile. Note that the node Nn can also acquire each file constituting the composite content from the content management server MS. The metafile, resource file, and control file acquired as described above are stored and saved in a content cache area provided in a storage unit provided in the node Nn. In this embodiment, when a file is deleted from the content cache area, the node Nn preferentially deletes the resource file among these files.

2.ノードNnの構成及び機能
次に、図2を参照して、ノードNnの構成及び機能について説明する。
[ 2. Configuration and function of node Nn ]
Next, the configuration and function of the node Nn will be described with reference to FIG.

図2は、ノードNnの概要構成例を示すブロック図である。   FIG. 2 is a block diagram illustrating a schematic configuration example of the node Nn.

ノードNnは、図2に示すように、制御部11、記憶部12、バッファメモリ13、デコーダ部14、映像処理部15、表示部16、音声処理部17、スピーカ18、通信部19、及び入力部19a等を備えて構成される。制御部11、記憶部12、バッファメモリ13、デコーダ部14、映像処理部15、表示部16、音声処理部17、通信部19、及び入力部19aは、バス19bを介して相互に接続されている。なお、ノードNnとしては、パーソナルコンピュータ、STB(Set Top Box)、TV受信機、或いは、カラオケ装置等が適用可能である。   As shown in FIG. 2, the node Nn includes a control unit 11, a storage unit 12, a buffer memory 13, a decoder unit 14, a video processing unit 15, a display unit 16, an audio processing unit 17, a speaker 18, a communication unit 19, and an input. The unit 19a is provided. The control unit 11, the storage unit 12, the buffer memory 13, the decoder unit 14, the video processing unit 15, the display unit 16, the audio processing unit 17, the communication unit 19, and the input unit 19a are connected to each other via a bus 19b. Yes. As the node Nn, a personal computer, an STB (Set Top Box), a TV receiver, a karaoke device, or the like is applicable.

記憶部12は、例えばハードディスクドライブ等から構成される。記憶部12には、オペレーティングシステム、P2Pプログラム、Flashプログラム(Flash Player)等が記憶されている。また、記憶部12に設けられたコンテンツキャッシュ領域には、コンテンツ保持ノード等から取得されたコンテンツが記憶保存されている。なお、コンテンツキャッシュ領域におけるコンテンツには、コンテンツがコンテンツ保持ノード等から取得された日付を示す取得日付情報が付加されている。更に、コンテンツキャッシュ領域におけるコンテンツには、コンテンツがユーザにより利用された日付を示す利用日付情報が付加されている。「コンテンツがユーザにより利用」とは、ユーザによる再生指示に応じてコンテンツが再生出力されることを意味する。なお、上記日付情報には、年月や時刻も含んでよい。   The storage unit 12 is composed of, for example, a hard disk drive. The storage unit 12 stores an operating system, a P2P program, a Flash program (Flash Player), and the like. Further, content acquired from a content holding node or the like is stored and saved in a content cache area provided in the storage unit 12. Note that acquisition date information indicating the date when the content was acquired from a content holding node or the like is added to the content in the content cache area. Furthermore, usage date information indicating the date when the content is used by the user is added to the content in the content cache area. “The content is used by the user” means that the content is reproduced and output in accordance with a reproduction instruction from the user. The date information may include year and month and time.

また、オーバーレイネットワークONに参加しているノードNnの記憶部12には、コンテンツカタログ情報及びDHTを用いたルーティングテーブル等が記憶されている。   The storage unit 12 of the node Nn participating in the overlay network ON stores content catalog information, a routing table using DHT, and the like.

ここで、コンテンツカタログ情報には、コンテンツ配信システムSにおいて利用可能な各コンテンツのレコードが含まれている。コンテンツのレコードには、コンテンツのコンテンツID、コンテンツ名、コンテンツのファイルサイズ、及びキーワード等が記述されている。コンテンツのファイルサイズは、このコンテンツのデータ量を示す情報である。複合コンテンツの場合、コンテンツカタログ情報には、複合コンテンツのレコードが含まれている。そして、コンテンツのレコードは、コンテンツがコンテンツ配信システムS内に投入される際に生成される。生成されたレコードを含むコンテンツカタログ情報は、コンテンツ管理サーバMSから各ノードNnに配信される。なお、複合コンテンツのメタファイルに記述される情報が、この複合コンテンツのレコード内に記述されるように構成しても良い。この場合、複合コンテンツのメタファイルをコンテンツ配信システムS内に投入する必要がない。   Here, the content catalog information includes a record of each content that can be used in the content distribution system S. In the content record, a content ID, a content name, a file size of the content, a keyword, and the like are described. The content file size is information indicating the data amount of the content. In the case of composite content, the content catalog information includes a record of composite content. The content record is generated when the content is input into the content distribution system S. The content catalog information including the generated record is distributed from the content management server MS to each node Nn. Note that information described in the composite content metafile may be described in the composite content record. In this case, there is no need to input the meta file of the composite content into the content distribution system S.

バッファメモリ13は、通信部13を介して受信されたコンテンツをバッファリングする。デコーダ部14は、コンテンツに含まれる映像データ及び音声データ等のデータ伸張や復号化等のデコード処理を行う。なお、複合コンテンツの場合、リソースファイルがデコード処理の対象となる。映像処理部15は、デコーダ部14によりデコードされた映像データ等に対して所定の描画処理を施し映像信号として再生出力する。表示部16は、映像処理部15から再生出力された映像信号に基づきディスプレイに映像等を表示する。また、表示部16は、デコーダ部14によりデコードされた画像を表示する。音声処理部17は、デコーダ部14によりデコードされた音声データをアナログ音声信号にD(Digital)/A(Analog)変換した後これをアンプにより増幅して出力する。スピーカ18は、音声処理部17から出力された音声信号を音波として出力する。   The buffer memory 13 buffers content received via the communication unit 13. The decoder unit 14 performs decoding processing such as data expansion and decoding of video data and audio data included in the content. In the case of composite content, the resource file is the target of decoding processing. The video processing unit 15 performs a predetermined drawing process on the video data decoded by the decoder unit 14 and reproduces and outputs it as a video signal. The display unit 16 displays a video or the like on the display based on the video signal reproduced and output from the video processing unit 15. The display unit 16 displays the image decoded by the decoder unit 14. The audio processing unit 17 performs D (Digital) / A (Analog) conversion of the audio data decoded by the decoder unit 14 into an analog audio signal, and then amplifies this by an amplifier and outputs it. The speaker 18 outputs the sound signal output from the sound processing unit 17 as a sound wave.

通信部19は、ネットワークNWを通じてコンテンツ管理サーバMS及び他のノードNn等との間の情報の通信制御を行う。   The communication unit 19 controls communication of information between the content management server MS and other nodes Nn through the network NW.

制御部11は、演算機能を有するCPU,作業用RAM,及びROM等から構成される。そして、制御部11は、CPUが記憶部12等に記憶されたP2Pプログラムを読み出して実行することにより、後述する処理を行う。また、制御部11は、時計機能を有する。なお、制御部11は、本発明における削除手段の一例である。   The control unit 11 includes a CPU having a calculation function, a working RAM, a ROM, and the like. And the control part 11 performs the process mentioned later, when CPU reads and runs the P2P program memorize | stored in the memory | storage part 12 grade | etc.,. The control unit 11 has a clock function. The control unit 11 is an example of a deletion unit in the present invention.

3.コンテンツ配信システムSの動作
次に、図3及び図4を参照して、本実施形態に係るコンテンツ配信システムSの動作について説明する。図3は、複合コンテンツの投入から削除までの様子を示す概念図である。また、図4は、ノードN1の制御部11における処理を示すフローチャートである。なお、以下の動作例において、図3(A)に示すようにコンテンツ配信システムS内に投入された複合コンテンツを構成する各ファイルがノードN1に既に保存されているものとする。また、コンテンツキャッシュ領域の記憶容量は、予め設定されているものとする。
[ 3. Operation of Content Distribution System S ]
Next, the operation of the content distribution system S according to the present embodiment will be described with reference to FIGS. FIG. 3 is a conceptual diagram showing a state from input to deletion of composite content. FIG. 4 is a flowchart showing processing in the control unit 11 of the node N1. In the following operation example, it is assumed that each file constituting the composite content input into the content distribution system S is already stored in the node N1, as shown in FIG. The storage capacity of the content cache area is set in advance.

図4に示す処理は、例えばユーザにより入力部19aを介して指定されたコンテンツの取得要求がなされた場合に開始される。図4に示す処理が開始されると、ノードN1の制御部11は、指定されたコンテンツのコンテンツIDを取得する(ステップS1)。例えば、コンテンツIDは、コンテンツ提供サイトからノードN1に送信されたWebページに記述されたタグから取得される。或いは、コンテンツIDは、ノードNnに記憶されているコンテンツカタログ情報からキーワード検索により取得されるものであっても良い。   The process shown in FIG. 4 is started when, for example, a request for acquiring content designated by the user via the input unit 19a is made. When the process shown in FIG. 4 is started, the control unit 11 of the node N1 acquires the content ID of the designated content (step S1). For example, the content ID is acquired from a tag described in a Web page transmitted from the content providing site to the node N1. Alternatively, the content ID may be acquired by keyword search from content catalog information stored in the node Nn.

次いで、制御部11は、上記ステップS1で取得されたコンテンツIDに対応するコンテンツのファイルサイズを閾値として設定する(ステップS2)。ここで、コンテンツIDに対応するコンテンツのファイルサイズは、例えばコンテンツカタログ情報から取得される。なお、コンテンツIDに対応するコンテンツが複合コンテンツの場合、複合コンテンツを構成する各ファイルのファイルサイズの総和が閾値として設定される。   Next, the control unit 11 sets the file size of the content corresponding to the content ID acquired in step S1 as a threshold (step S2). Here, the file size of the content corresponding to the content ID is acquired from content catalog information, for example. When the content corresponding to the content ID is composite content, the sum of the file sizes of the files constituting the composite content is set as a threshold value.

次いで、制御部11は、上記ステップS2で設定された閾値以上の空き領域が、記憶部12におけるコンテンツキャッシュ領域にあるか否かを判定する(ステップS3)。そして、制御部11は、コンテンツキャッシュ領域に閾値以上の空き領域がないと判定した場合には(ステップS3:NO)、ステップS4に進む。一方、制御部11は、コンテンツキャッシュ領域に閾値以上の空き領域があると判定した場合には(ステップS3:YES)、ステップS31に進む。   Next, the control unit 11 determines whether or not an empty area equal to or larger than the threshold set in step S2 is in the content cache area in the storage unit 12 (step S3). If the control unit 11 determines that there is no free area equal to or greater than the threshold in the content cache area (step S3: NO), the process proceeds to step S4. On the other hand, if the control unit 11 determines that there is a free area equal to or larger than the threshold in the content cache area (step S3: YES), the control unit 11 proceeds to step S31.

ステップS4では、制御部11は、削除候補リストを初期化する。この削除候補リストは、削除候補となるファイルのファイル名が登録されるリストである。この初期化により削除候補リストにはファイル名は登録されていない状態となる。   In step S4, the control unit 11 initializes the deletion candidate list. This deletion candidate list is a list in which file names of files that are deletion candidates are registered. By this initialization, the file name is not registered in the deletion candidate list.

次いで、制御部11は、コンテンツキャッシュ領域に動画ファイルが記憶されているか否かを判定する(ステップS5)。動画ファイルであるか否かは、例えばファイルの拡張子により判定することができる。例えば、拡張子が“AVI”、“FLV”、又は“WMV”である場合、そのファイルは動画ファイルであると判定される。動画ファイルは、複合コンテンツの一部である場合と、通常コンテンツの場合がある。また、通常コンテンツは、動画ファイル含んだファイルから構成される場合もある。これらの場合、動画ファイルであると判定される。そして、制御部11は、コンテンツキャッシュ領域に動画ファイルが記憶されていると判定した場合には(ステップS5:YES)、ステップS6に進む。一方、制御部11は、コンテンツキャッシュ領域に動画ファイルが記憶されていないと判定した場合には(ステップS5:NO)、ステップS11に進む。   Next, the control unit 11 determines whether a moving image file is stored in the content cache area (step S5). Whether or not the file is a moving image file can be determined by, for example, the extension of the file. For example, when the extension is “AVI”, “FLV”, or “WMV”, it is determined that the file is a moving image file. A moving image file may be a part of composite content or a normal content. In addition, the normal content may be composed of a file including a moving image file. In these cases, it is determined that the file is a moving image file. When the control unit 11 determines that the moving image file is stored in the content cache area (step S5: YES), the control unit 11 proceeds to step S6. On the other hand, when determining that the moving image file is not stored in the content cache area (step S5: NO), the control unit 11 proceeds to step S11.

ステップS6では、制御部11は、コンテンツキャッシュ領域に記憶されている動画ファイルのファイル名を削除候補リストに登録する。このように、動画ファイルのファイル名を削除候補リストに登録することで、動画ファイルを、動画ファイル以外のリソースファイル、メタファイル及び制御ファイルよりも優先的に削除することができる。   In step S6, the control unit 11 registers the file name of the moving image file stored in the content cache area in the deletion candidate list. In this way, by registering the file name of the moving image file in the deletion candidate list, it is possible to delete the moving image file preferentially over the resource file, metafile, and control file other than the moving image file.

ここで、削除候補リストには、例えば、コンテンツキャッシュ領域に記憶されている全ての動画ファイルのファイル名が登録される。   Here, for example, the file names of all moving image files stored in the content cache area are registered in the deletion candidate list.

或いは、削除候補リストには、現時点から所定期間遡った時点以前に取得された動画ファイルのファイル名が登録されるように構成しても良い。現時点から所定期間遡った時点以前に取得された動画ファイルであるか否かは、動画ファイルに付加された取得日付情報により判定される。なお、上記「所定期間」は、例えば、ノードN1のユーザが入力部19aを介して任意に設定することができる。このような所定期間を設定することで、古くなった動画ファイルを優先的に削除することができる。   Alternatively, the deletion candidate list may be configured to register the file names of the moving image files acquired before the time point that is a predetermined period after the current time point. Whether or not the movie file is acquired before the time point that is a predetermined period after the current time is determined by the acquisition date information added to the movie file. The “predetermined period” can be arbitrarily set by the user of the node N1, for example, via the input unit 19a. By setting such a predetermined period, an old moving image file can be preferentially deleted.

或いは、削除候補リストには、現時点から所定期間遡った時点以前にユーザにより利用された動画ファイルのファイル名が登録されるように構成しても良い。現時点から所定期間遡った時点以前にユーザにより利用された動画ファイルであるか否かは、動画ファイルに付加された利用日付情報により判定される。なお、上記「所定期間」は、例えば、ノードN1のユーザが入力部19aを介して任意に設定することができる。このような所定期間を設定することで、所定期間利用されなくなった動画ファイルを優先的に効率良く削除することができる。   Alternatively, the deletion candidate list may be configured so that the file name of the moving image file used by the user before the time point that is traced back for a predetermined period from the present time is registered. Whether or not it is a moving image file used by the user before a time point that is a predetermined period later than the present time is determined based on usage date information added to the moving image file. The “predetermined period” can be arbitrarily set by the user of the node N1, for example, via the input unit 19a. By setting such a predetermined period, it is possible to efficiently and preferentially delete a moving image file that has not been used for a predetermined period.

次いで、制御部11は、削除候補リストにファイル名が登録されている動画ファイルの中から、未だ選択されていない動作ファイルを1つ以上選択する(ステップS7)。なお、削除候補リストにおいて、選択された動画ファイルのファイル名に対応付けられて選択済を示す選択済フラグが登録される。   Next, the control unit 11 selects one or more operation files that have not been selected from the moving image files whose file names are registered in the deletion candidate list (step S7). In the deletion candidate list, a selected flag indicating the selected state is registered in association with the file name of the selected moving image file.

ここで、動画ファイルのファイル名が複数登録されている場合、例えば、ファイルサイズが最も大きい動作ファイルが選択される。これにより、ファイルサイズが大きい動作ファイルから優先的に削除することができる。そのため、コンテンツキャッシュ領域を有効に活用することができる。   Here, when a plurality of file names of moving image files are registered, for example, an operation file having the largest file size is selected. As a result, it is possible to preferentially delete an operation file having a large file size. Therefore, the content cache area can be used effectively.

或いは、動画ファイルのファイル名が複数登録されている場合、例えば、取得された日時が最も古い動画ファイルが選択されるように構成しても良い。これにより、取得された日時が古い動画ファイルから優先的に削除することができる。なお、取得された日時が最も古い動画ファイルであるか否かは、動画ファイルに付加された取得日付情報により判定される。   Alternatively, when a plurality of file names of moving image files are registered, for example, a moving image file having the oldest acquired date and time may be selected. Thereby, the acquired date and time can be preferentially deleted from the moving image file with the oldest date. Whether or not the acquired date and time is the oldest moving image file is determined by the acquisition date information added to the moving image file.

或いは、動画ファイルのファイル名が複数登録されている場合、例えば、ユーザにより利用された日時が最も古い動画ファイルが選択されるように構成しても良い。これにより、利用された日時が古い動画ファイルから優先的に削除することができる。なお、利用された日時が最も古い動画ファイルであるか否かは、動画ファイルに付加された利用日付情報により判定される。   Alternatively, when a plurality of moving image file names are registered, for example, a moving image file having the oldest date and time used by the user may be selected. Thereby, it is possible to preferentially delete the used date and time from the moving image file. Whether or not the date and time of use is the oldest moving image file is determined based on the usage date information added to the moving image file.

次いで、制御部11は、選択された動画ファイルのファイルサイズの総和を算出する(ステップS8)。ここで、「動画ファイルのファイルサイズの総和」とは、上記ステップS7〜S10のループ中にステップS7で選択された動画ファイルのファイルサイズの総和である。   Next, the control unit 11 calculates the total file size of the selected moving image files (step S8). Here, the “total file size of moving image files” is the total file size of the moving image files selected in step S7 during the loop of steps S7 to S10.

次いで、制御部11は、上記ステップS8で算出されたファイルサイズの総和が上記ステップS2で設定された閾値より大きいか否かを判定する(ステップS9)。そして、制御部11は、ファイルサイズの総和が閾値より大きくないと判定した場合には(ステップS9:NO)、ステップS10に進む。一方、制御部11は、ファイルサイズの総和が閾値より大きいと判定した場合には(ステップS9:YES)、ステップS30に進む。ファイルサイズの総和が閾値より大きい場合、上記ステップS1で取得されたコンテンツIDに対応するコンテンツを保存するための空き領域がコンテンツキャッシュ領域に確保することが可能となる。   Next, the control unit 11 determines whether or not the sum of the file sizes calculated in step S8 is larger than the threshold set in step S2 (step S9). If the control unit 11 determines that the total file size is not larger than the threshold (step S9: NO), the control unit 11 proceeds to step S10. On the other hand, if the control unit 11 determines that the sum of the file sizes is larger than the threshold (step S9: YES), the control unit 11 proceeds to step S30. When the sum of the file sizes is larger than the threshold value, it is possible to secure a free area in the content cache area for storing the content corresponding to the content ID acquired in step S1.

ステップS10では、制御部11は、削除候補リストにおいて未だ選択されていない動画ファイルがあるか否かを判定する。この判定では選択済フラグが参照される。そして、制御部11は、未だ選択されていない動画ファイルがあると判定した場合には(ステップS10:YES)、ステップS7に戻る。一方、制御部11は、未だ選択されていない動画ファイルがないと判定した場合には(ステップS10:NO)、ステップS11に進む。   In step S10, the control unit 11 determines whether there is a moving image file that has not been selected in the deletion candidate list. In this determination, the selected flag is referred to. If the control unit 11 determines that there is a video file that has not yet been selected (step S10: YES), the control unit 11 returns to step S7. On the other hand, when the control unit 11 determines that there is no moving image file not yet selected (step S10: NO), the control unit 11 proceeds to step S11.

ステップS11では、制御部11は、コンテンツキャッシュ領域に動画ファイル以外のリソースファイルが記憶されているか否かを判定する。動画ファイル以外のリソースファイルとは、画像ファイル、音声ファイル、及びテキストファイルのうち少なくとも何れか一のファイルである。動画ファイル以外のリソースファイルであるか否かは、例えばファイルの拡張子により判定することができる。そして、制御部11は、コンテンツキャッシュ領域に動画ファイル以外のリソースファイルが記憶されていると判定した場合には(ステップS11:YES)、ステップS12に進む。一方、制御部11は、コンテンツキャッシュ領域に動画ファイル以外のリソースファイルが記憶されていないと判定した場合には(ステップS11:NO)、ステップS17に進む。   In step S11, the control unit 11 determines whether a resource file other than the moving image file is stored in the content cache area. The resource file other than the moving image file is at least one of an image file, an audio file, and a text file. Whether it is a resource file other than a moving image file can be determined by, for example, the extension of the file. If the control unit 11 determines that a resource file other than the moving image file is stored in the content cache area (step S11: YES), the control unit 11 proceeds to step S12. On the other hand, if the control unit 11 determines that no resource file other than the moving image file is stored in the content cache area (step S11: NO), the process proceeds to step S17.

ステップS12では、制御部11は、コンテンツキャッシュ領域に記憶されている、動画ファイル以外のリソースファイルのファイル名を上記削除候補リストに登録する。このように、動画ファイル以外のリソースファイルのファイル名を削除候補リストに登録することで、動画ファイル以外のリソースファイルを、メタファイル及び制御ファイルよりも優先的に削除することができる。   In step S12, the control unit 11 registers the file names of resource files other than the moving image file stored in the content cache area in the deletion candidate list. In this way, by registering the file names of resource files other than moving image files in the deletion candidate list, resource files other than moving image files can be deleted preferentially over metafiles and control files.

ここで、削除候補リストには、例えば、コンテンツキャッシュ領域に記憶されているリソースファイルのうち、動画ファイル以外の全てのリソースファイルのファイル名が登録される。   Here, in the deletion candidate list, for example, file names of all resource files other than the moving image file among the resource files stored in the content cache area are registered.

或いは、上記ステップS6と同様、削除候補リストには、現時点から所定期間遡った時点以前に取得された、動画ファイル以外の全てのリソースファイルのファイル名が登録されるように構成しても良い。これにより、古くなったリソースファイルを優先的に削除することができる。或いは、上記ステップS6と同様、削除候補リストには、現時点から所定期間遡った時点以前にユーザにより利用された、動画ファイル以外の全てのリソースファイルのファイル名が登録されるように構成しても良い。これにより、所定期間利用されないリソースファイルを優先的に効率良く削除することができる。   Alternatively, as in step S6, the deletion candidate list may be configured to register the file names of all resource files other than the moving image file that were acquired before the time point that is a predetermined period after the current time point. Thereby, the resource file which became old can be deleted preferentially. Alternatively, as in step S6 above, the deletion candidate list may be configured to register the file names of all resource files other than the video file that were used by the user before a time point that is a predetermined period after the current time. good. As a result, resource files that have not been used for a predetermined period can be efficiently deleted with priority.

次いで、制御部11は、削除候補リストにファイル名が登録されているリソースファイルの中から、未だ選択されていないリソースファイルを1つ以上選択する(ステップS13)。なお、削除候補リストにおいて、選択されたリソースファイルのファイル名に対応付けられて選択済を示す選択済フラグが登録される。   Next, the control unit 11 selects one or more resource files that have not been selected from resource files whose file names are registered in the deletion candidate list (step S13). In the deletion candidate list, a selected flag indicating registered is registered in association with the file name of the selected resource file.

ここで、動画ファイル以外のリソースファイルのファイル名が複数登録されている場合、上記ステップS7と同様、ファイルサイズが最も大きいリソースファイルが選択される。或いは、上記ステップS7と同様、取得された日時が最も古いリソースファイルが選択されるように構成しても良い。或いは、上記ステップS7と同様、ユーザにより利用された日時が最も古いリソースファイルが選択されるように構成しても良い。   Here, when a plurality of file names of resource files other than the moving image file are registered, the resource file having the largest file size is selected as in step S7. Or you may comprise so that the resource file with the oldest acquired date may be selected similarly to said step S7. Or you may comprise so that the resource file with the oldest date and time utilized by the user may be selected similarly to said step S7.

次いで、制御部11は、選択されたファイルのファイルサイズの総和を算出する(ステップS14)。ここで、「ファイルのファイルサイズの総和」とは、上記ステップS7〜S10のループ中にステップS7で選択された動画ファイルのファイルサイズと、上記ステップS13〜S16のループ中にステップS13で選択されたリソースファイルのファイルサイズの総和である。   Next, the control unit 11 calculates the sum of the file sizes of the selected file (step S14). Here, the “total file size of files” is selected in step S13 during the loop of steps S13 to S16 and the file size of the moving image file selected in step S7 during the loop of steps S7 to S10. This is the total file size of all resource files.

次いで、制御部11は、上記ステップS14で算出されたファイルサイズの総和が上記ステップS2で設定された閾値より大きいか否かを判定する(ステップS15)。そして、制御部11は、ファイルサイズの総和が閾値より大きくない判定した場合には(ステップS15:NO)、ステップS16に進む。一方、制御部11は、ファイルサイズの総和が閾値より大きいと判定した場合には(ステップS15:YES)、ステップS30に進む。   Next, the control unit 11 determines whether or not the sum of the file sizes calculated in step S14 is larger than the threshold set in step S2 (step S15). If the control unit 11 determines that the sum of the file sizes is not larger than the threshold (step S15: NO), the control unit 11 proceeds to step S16. On the other hand, if the control unit 11 determines that the total file size is larger than the threshold (step S15: YES), the control unit 11 proceeds to step S30.

ステップS16では、制御部11は、削除候補リストにおいて未だ選択されていないリソースファイルがあるか否かを判定する。そして、制御部11は、未だ選択されていないリソースファイルがあると判定した場合には(ステップS16:YES)、ステップS13に戻る。一方、制御部11は、未だ選択されていないリソースファイルがないと判定した場合には(ステップS16:NO)、ステップS17に進む。   In step S16, the control unit 11 determines whether there is a resource file that has not yet been selected in the deletion candidate list. If the control unit 11 determines that there is a resource file that has not yet been selected (step S16: YES), the control unit 11 returns to step S13. On the other hand, if the control unit 11 determines that there is no resource file that has not been selected yet (step S16: NO), the control unit 11 proceeds to step S17.

ステップS17では、制御部11は、コンテンツキャッシュ領域にメタファイルが記憶されているか否かを判定する。メタファイルであるか否かは、例えばファイルの拡張子により判定することができる。そして、制御部11は、コンテンツキャッシュ領域にメタファイルが記憶されていると判定した場合には(ステップS17:YES)、ステップS18に進む。一方、制御部11は、コンテンツキャッシュ領域にメタファイルが記憶されていないと判定した場合には(ステップS17:NO)、ステップS23に進む。   In step S17, the control unit 11 determines whether a metafile is stored in the content cache area. Whether it is a metafile or not can be determined by, for example, the extension of the file. If the control unit 11 determines that the metafile is stored in the content cache area (step S17: YES), the control unit 11 proceeds to step S18. On the other hand, when determining that the metafile is not stored in the content cache area (step S17: NO), the control unit 11 proceeds to step S23.

ステップS18では、制御部11は、コンテンツキャッシュ領域に記憶されているメタファイルのファイル名を上記削除候補リストに登録する。このように、メタファイルを削除候補リストに登録することで、メタファイルをリソースファイルの削除後にもコンテンツキャッシュ領域に残しておくことができる。   In step S18, the control unit 11 registers the file name of the metafile stored in the content cache area in the deletion candidate list. Thus, by registering the metafile in the deletion candidate list, the metafile can be left in the content cache area even after the resource file is deleted.

ここで、削除候補リストには、例えば、コンテンツキャッシュ領域に記憶されている全てのメタファイルのファイル名が登録される。   Here, in the deletion candidate list, for example, file names of all metafiles stored in the content cache area are registered.

或いは、上記ステップS6と同様、削除候補リストには、現時点から所定期間遡った時点以前に取得されたメタファイルのファイル名が登録されるように構成しても良い。これにより、古くなったメタファイルを優先的に削除することができる。或いは、上記ステップS6と同様、削除候補リストには、現時点から所定期間遡った時点以前にユーザにより利用されたメタファイルのファイル名が登録されるように構成しても良い。これにより、所定期間利用されないメタファイルを優先的に効率良く削除することができる。   Alternatively, as in step S6, the deletion candidate list may be configured to register the file names of the metafiles acquired before the time point that is a predetermined period back from the current time. This makes it possible to preferentially delete the metafile that has become old. Alternatively, as in step S6, the deletion candidate list may be configured to register the file name of the metafile used by the user before the time point that is a predetermined period back from the current time. As a result, metafiles that are not used for a predetermined period can be efficiently deleted with priority.

次いで、制御部11は、削除候補リストにファイル名が登録されているメタファイルの中から、未だ選択されていないメタファイルを1つ以上選択する(ステップS19)。なお、削除候補リストにおいて、選択されたメタファイルのファイル名に対応付けられて選択済を示す選択済フラグが登録される。   Next, the control unit 11 selects one or more metafiles that have not been selected from metafiles whose file names are registered in the deletion candidate list (step S19). In the deletion candidate list, a selected flag indicating the selected state is registered in association with the file name of the selected metafile.

ここで、メタファイルのファイル名が複数登録されている場合、上記ステップS7と同様、ファイルサイズが最も大きいメタファイルが選択される。或いは、上記ステップS7と同様、取得された日時が最も古いメタファイルが選択されるように構成しても良い。或いは、上記ステップS7と同様、ユーザにより利用された日時が最も古いメタファイルが選択されるように構成しても良い。   If a plurality of metafile file names are registered, the metafile having the largest file size is selected as in step S7. Or you may comprise so that the metafile with the oldest acquired date may be selected similarly to said step S7. Or you may comprise so that the metafile with the oldest date and time utilized by the user may be selected similarly to said step S7.

次いで、制御部11は、選択されたファイルのファイルサイズの総和を算出する(ステップS20)。ここで、「ファイルのファイルサイズの総和」とは、上記ステップS7〜S10のループ中にステップS7で選択された動画ファイルのファイルサイズと、上記ステップS13〜S16のループ中にステップS13で選択されたリソースファイルのファイルサイズと、上記ステップS19〜S22のループ中にステップS19で選択されたメタファイルのファイルサイズと、の総和である。   Next, the control unit 11 calculates the sum of the file sizes of the selected files (step S20). Here, the “total file size of files” is selected in step S13 during the loop of steps S13 to S16 and the file size of the moving image file selected in step S7 during the loop of steps S7 to S10. The sum of the file size of the resource file and the file size of the metafile selected in step S19 during the loop of steps S19 to S22.

次いで、制御部11は、上記ステップS20で算出されたファイルサイズの総和が上記ステップS2で設定された閾値より大きいか否かを判定する(ステップS21)。そして、制御部11は、ファイルサイズの総和が閾値より大きくない判定した場合には(ステップS21:NO)、ステップS22に進む。一方、制御部11は、ファイルサイズの総和が閾値より大きいと判定した場合には(ステップS21:YES)、ステップS30に進む。   Next, the control unit 11 determines whether or not the sum of the file sizes calculated in step S20 is larger than the threshold set in step S2 (step S21). If the control unit 11 determines that the sum of the file sizes is not larger than the threshold (step S21: NO), the control unit 11 proceeds to step S22. On the other hand, if the control unit 11 determines that the total file size is larger than the threshold (step S21: YES), the control unit 11 proceeds to step S30.

ステップS22では、制御部11は、削除候補リストにおいて未だ選択されていないメタファイルがあるか否かを判定する。そして、制御部11は、未だ選択されていないメタファイルがあると判定した場合には(ステップS22:YES)、ステップS19に戻る。一方、制御部11は、未だ選択されていないメタファイルがないと判定した場合には(ステップS22:NO)、ステップS23に進む。   In step S22, the control unit 11 determines whether there is a metafile that has not yet been selected in the deletion candidate list. If the control unit 11 determines that there is a metafile that has not yet been selected (step S22: YES), the control unit 11 returns to step S19. On the other hand, if the control unit 11 determines that there is no metafile not yet selected (step S22: NO), the control unit 11 proceeds to step S23.

ステップS23では、制御部11は、コンテンツキャッシュ領域に制御ファイルが記憶されているか否かを判定する。制御ファイルであるか否かは、例えばファイルの拡張子により判定することができる。そして、制御部11は、コンテンツキャッシュ領域に制御ファイルが記憶されていると判定した場合には(ステップS23:YES)、ステップS24に進む。一方、制御部11は、コンテンツキャッシュ領域に制御ファイルが記憶されていないと判定した場合には(ステップS23:NO)、ステップS29に進む。   In step S23, the control unit 11 determines whether or not a control file is stored in the content cache area. Whether or not the file is a control file can be determined by, for example, the extension of the file. When the control unit 11 determines that the control file is stored in the content cache area (step S23: YES), the control unit 11 proceeds to step S24. On the other hand, if the control unit 11 determines that the control file is not stored in the content cache area (step S23: NO), the control unit 11 proceeds to step S29.

ステップS24では、制御部11は、コンテンツキャッシュ領域に記憶されている制御ファイルのファイル名を上記削除候補リストに登録する。このように、制御ファイルを最後に削除候補リストに登録することで、制御ファイルを最後までコンテンツキャッシュ領域に残しておくことができる。   In step S24, the control unit 11 registers the file name of the control file stored in the content cache area in the deletion candidate list. Thus, by registering the control file in the deletion candidate list lastly, the control file can be left in the content cache area to the end.

ここで、削除候補リストには、例えば、コンテンツキャッシュ領域に記憶されている全ての制御ファイルのファイル名が登録される。   Here, for example, the file names of all control files stored in the content cache area are registered in the deletion candidate list.

或いは、上記ステップS6と同様、削除候補リストには、現時点から所定期間遡った時点以前に取得された制御ファイルのファイル名が登録されるように構成しても良い。これにより、古くなった制御ファイルを優先的に削除することができる。或いは、上記ステップS6と同様、削除候補リストには、現時点から所定期間遡った時点以前にユーザにより利用された制御ファイルのファイル名が登録されるように構成しても良い。これにより、所定期間利用されない制御ファイルを優先的に効率良く削除することができる。   Alternatively, as in step S6, the deletion candidate list may be configured to register the file name of the control file acquired before the time point that is a predetermined period back from the current time point. Thereby, the control file which became old can be deleted preferentially. Alternatively, as in step S6, the deletion candidate list may be configured such that the file name of the control file used by the user before the time point that is a predetermined period back from the current time is registered. As a result, it is possible to efficiently and preferentially delete control files that are not used for a predetermined period.

次いで、制御部11は、削除候補リストにファイル名が登録されている制御ファイルの中から、未だ選択されていない制御ファイルを1つ以上選択する(ステップS25)。なお、削除候補リストにおいて、選択された制御ファイルのファイル名に対応付けられて選択済を示す選択済フラグが登録される。   Next, the control unit 11 selects one or more control files that have not been selected from the control files whose file names are registered in the deletion candidate list (step S25). In the deletion candidate list, a selected flag indicating registered is registered in association with the file name of the selected control file.

ここで、制御ファイルのファイル名が複数登録されている場合、上記ステップS7と同様、ファイルサイズが最も大きい制御ファイルが選択される。或いは、上記ステップS7と同様、取得された日時が最も古い制御ファイルが選択されるように構成しても良い。或いは、上記ステップS7と同様、ユーザにより利用された日時が最も古い制御ファイルが選択されるように構成しても良い。   Here, when a plurality of control file names are registered, the control file having the largest file size is selected as in step S7. Or you may comprise so that the control file with the oldest acquired date may be selected similarly to said step S7. Or you may comprise so that the control file with the oldest date used by the user may be selected similarly to said step S7.

次いで、制御部11は、選択されたファイルのファイルサイズの総和を算出する(ステップS26)。ここで、「ファイルのファイルサイズの総和」とは、上記ステップS7〜S10のループ中にステップS7で選択された動画ファイルのファイルサイズと、上記ステップS13〜S16のループ中にステップS13で選択されたリソースファイルのファイルサイズと、上記ステップS19〜S22のループ中にステップS19で選択されたメタファイルのファイルサイズと、上記ステップS25〜S28のループ中にステップS25で選択された制御ファイルのファイルサイズと、の総和である。   Next, the control unit 11 calculates the sum of the file sizes of the selected files (step S26). Here, the “total file size of files” is selected in step S13 during the loop of steps S13 to S16 and the file size of the moving image file selected in step S7 during the loop of steps S7 to S10. The file size of the resource file, the file size of the metafile selected in step S19 during the loop of steps S19 to S22, and the file size of the control file selected in step S25 during the loop of steps S25 to S28. And the sum of

次いで、制御部11は、上記ステップS26で算出されたファイルサイズの総和が上記ステップS2で設定された閾値より大きいか否かを判定する(ステップS27)。そして、制御部11は、ファイルサイズの総和が閾値より大きくない判定した場合には(ステップS27:NO)、ステップS28に進む。一方、制御部11は、ファイルサイズの総和が閾値より大きいと判定した場合には(ステップS27:YES)、ステップS30に進む。   Next, the control unit 11 determines whether or not the sum of the file sizes calculated in step S26 is larger than the threshold set in step S2 (step S27). If the control unit 11 determines that the sum of the file sizes is not greater than the threshold (step S27: NO), the control unit 11 proceeds to step S28. On the other hand, if the control unit 11 determines that the total file size is larger than the threshold (step S27: YES), the control unit 11 proceeds to step S30.

ステップS28では、制御部11は、削除候補リストにおいて未だ選択されていない制御ファイルがあるか否かを判定する。そして、制御部11は、未だ選択されていない制御ファイルがあると判定した場合には(ステップS28:YES)、ステップS25に戻る。一方、制御部11は、未だ選択されていない制御ファイルがないと判定した場合には(ステップS28:NO)、ステップS29に進む。   In step S28, the control unit 11 determines whether there is a control file that has not yet been selected in the deletion candidate list. If the control unit 11 determines that there is a control file that has not yet been selected (step S28: YES), the control unit 11 returns to step S25. On the other hand, when the control unit 11 determines that there is no control file not yet selected (step S28: NO), the control unit 11 proceeds to step S29.

ステップS29では、制御部11は、エラー処理を実行する。このエラー処理では、例えば、コンテンツを保存するための空き領域をコンテンツキャッシュ領域に確保することができない旨のメッセージが表示部16に表示される。   In step S29, the control unit 11 executes error processing. In this error processing, for example, a message indicating that a free area for storing content cannot be secured in the content cache area is displayed on the display unit 16.

なお、上述したように、現時点から所定期間遡った時点以前に取得されたファイルのファイル名のみが上記削除候補リストに登録される場合がある。或いは、現時点から所定期間遡った時点以前にユーザにより利用されたファイルのファイル名のみが上記削除候補リストに登録される場合がある。これらの場合、ステップS29に示すエラー処理において、所定期間の短縮を促す旨のメッセージが表示部16に表示されるように構成しても良い。このメッセージを確認したユーザは、入力部19aを介して「所定期間」を短縮するように設定変更する。この設定変更がなされた場合、制御部11は、上記ステップS5に戻り上記処理を繰り返すことになる。例えば、上記所定期間が30日から10日に設定変更された場合、上記削除候補リストに登録されるファイルは増すことになる。そのため、コンテンツを保存するための空き領域をコンテンツキャッシュ領域に確保することが可能となる。   Note that, as described above, there are cases where only the file names of files acquired before the time point that is traced back for a predetermined period from the current time are registered in the deletion candidate list. Alternatively, only the file name of a file used by the user before a time point that has been traced a predetermined period from the current time may be registered in the deletion candidate list. In these cases, in the error processing shown in step S29, a message that prompts the user to shorten the predetermined period may be displayed on the display unit 16. The user who has confirmed this message changes the setting to shorten the “predetermined period” via the input unit 19a. When the setting is changed, the control unit 11 returns to step S5 and repeats the process. For example, when the predetermined period is changed from 30 days to 10 days, the number of files registered in the deletion candidate list increases. Therefore, it is possible to secure a free area for storing content in the content cache area.

次に、ステップS30では、制御部11は、コンテンツ削除処理を実行する。このコンテンツ削除処理は、コンテンツキャッシュ領域からコンテンツを削除する処理である。具体的には、制御部11は、上記削除候補リストに登録されているファイル名の中で、選択済フラグが対応付けられているファイル名に対応するファイルをコンテンツキャッシュ領域から削除する。これにより、コンテンツを保存するための空き領域をコンテンツキャッシュ領域に確保される。   Next, in step S30, the control unit 11 executes content deletion processing. This content deletion processing is processing for deleting content from the content cache area. Specifically, the control unit 11 deletes the file corresponding to the file name associated with the selected flag from the content cache area among the file names registered in the deletion candidate list. As a result, a free area for storing content is secured in the content cache area.

ここで、ステップS30のコンテンツ削除処理が、上記ステップS9からの移行により実行される場合、複合コンテンツを構成する各ファイルのうち、図3(B)に示すように、動画ファイルが他のファイルに優先して削除される。   Here, when the content deletion process in step S30 is executed by the transition from step S9, as shown in FIG. 3B, among the files constituting the composite content, the moving image file is changed to another file. Deleted with priority.

一方、ステップS30のコンテンツ削除処理が、上記ステップS15からの移行により実行される場合、リソースファイルが、メタファイル及び制御ファイルに優先して削除される。この場合において、削除対象となる動画ファイルがない場合、図3(C)に示すように、例えば画像ファイルが削除される。   On the other hand, when the content deletion process in step S30 is executed by the transition from step S15, the resource file is deleted in preference to the metafile and the control file. In this case, when there is no moving image file to be deleted, for example, an image file is deleted as shown in FIG.

一方、ステップS30のコンテンツ削除処理が、上記ステップS21からの移行により実行される場合、リソースファイル及びメタファイルが、制御ファイルに優先して削除される。この場合において、削除対象となるリソースファイルがない場合、図3(D)に示すように、例えばメタファイルが削除される。こうして、制御ファイルが最後までコンテンツキャッシュ領域に残ることになる。   On the other hand, when the content deletion process in step S30 is executed by the transition from step S21, the resource file and the metafile are deleted in preference to the control file. In this case, when there is no resource file to be deleted, for example, a metafile is deleted as shown in FIG. Thus, the control file remains in the content cache area until the end.

なお、上記処理においては、制御ファイルよりもメタファイルを優先的に削除するように構成したが、メタファイルよりも制御ファイルを優先的に削除するように構成しても良い。この場合、上記ステップS18では、コンテンツキャッシュ領域に記憶されているメタファイルに代えて制御ファイルのファイル名が上記削除候補リストに登録される。そして、上記ステップS19〜ステップS22までの処理は、制御ファイルに対して行われる。一方、この場合、上記ステップS24では、コンテンツキャッシュ領域に記憶されている制御ファイルに代えてメタファイルのファイル名が上記削除候補リストに登録される。そして、上記ステップS25〜ステップS28までの処理は、メタファイルに対して行われる。   In the above processing, the metafile is preferentially deleted over the control file, but the control file may be preferentially deleted over the metafile. In this case, in step S18, the file name of the control file is registered in the deletion candidate list instead of the metafile stored in the content cache area. Then, the processing from step S19 to step S22 is performed on the control file. On the other hand, in this case, in step S24, the file name of the metafile is registered in the deletion candidate list instead of the control file stored in the content cache area. Then, the processing from step S25 to step S28 is performed on the metafile.

次に、ステップS31では、制御部11は、コンテンツ取得処理を実行する。このコンテンツ取得処理は、コンテンツIDに基づいて、コンテンツをオーバーレイネットワークONを介して検索し取得する処理である。具体的には、制御部11は、先ず、コンテンツ所在問合せメッセージを生成する。コンテンツ所在問合せメッセージは、コンテンツの所在をルートノードに問い合わせるためのメッセージである。また、コンテンツ所在問合せメッセージには、ノードN1のIPアドレス及びポート番号、並びにコンテンツのコンテンツIDが含まれる。そして、制御部11は、生成したコンテンツ所在問合せメッセージを、DHTルーティングにより、コンテンツのルートノード宛に送信する。なお、DHTルーティングは、例えば特開2007−053662号公報等で公知であるので、詳しい説明を省略する。   Next, in step S31, the control unit 11 executes content acquisition processing. This content acquisition process is a process of searching and acquiring content via the overlay network ON based on the content ID. Specifically, the control unit 11 first generates a content location inquiry message. The content location inquiry message is a message for inquiring the location of the content to the root node. The content location inquiry message includes the IP address and port number of the node N1 and the content ID of the content. The control unit 11 transmits the generated content location inquiry message to the content root node by DHT routing. The DHT routing is known in, for example, Japanese Patent Application Laid-Open No. 2007-053662, and detailed description thereof is omitted.

上記コンテンツ所在問合せメッセージを受信したルートノードは、コンテンツ所在問合せメッセージに含まれるコンテンツIDに対応するインデックス情報を取得する。ルートノードは、取得したインデックス情報を、コンテンツ所在問合せメッセージの送信元であるノードN1へ返信する。このように返信されたインデックス情報には、コンテンツを保存しているコンテンツ保持ノードのIPアドレス等が含まれている。こうして、ノードN1の制御部11は、ルートノードからのインデックス情報を受信する。そして、制御部11は、受信したインデックス情報に含まれるコンテンツ保持ノードのIPアドレス等に基づいて例えばコンテンツ保持ノードにアクセスする。そして、制御部11は、コンテンツ保持ノードからコンテンツをダウンロードする。ここで、ダウンロードされたコンテンツが複合コンテンツのメタファイルである場合がある。この場合、制御部11は、このメタファイルに記述された各コンテンツIDに基づいて、上記と同様に、コンテンツ検索及び取得処理を実行する。このコンテンツ検索及び取得処理により、ノードN1の制御部11は、例えばコンテンツ保持ノードから、複合コンテンツを構成するリソースファイル及び制御ファイルをダウンロードする。   The root node that has received the content location inquiry message acquires index information corresponding to the content ID included in the content location inquiry message. The root node returns the acquired index information to the node N1 that is the transmission source of the content location inquiry message. The index information returned in this way includes the IP address of the content holding node storing the content. Thus, the control unit 11 of the node N1 receives the index information from the root node. Then, the control unit 11 accesses the content holding node, for example, based on the IP address of the content holding node included in the received index information. Then, the control unit 11 downloads content from the content holding node. Here, the downloaded content may be a composite content metafile. In this case, the control unit 11 executes content search and acquisition processing in the same manner as described above based on each content ID described in the metafile. By this content search and acquisition process, the control unit 11 of the node N1 downloads a resource file and a control file constituting the composite content from, for example, a content holding node.

次いで、制御部11は、ダウンロードされバッファメモリ13に蓄積されているコンテンツをコンテンツキャッシュ領域に記憶保存する(ステップS32)。なお、複合コンテンツの場合、ダウンロードされたリソースファイル及び制御ファイル、並びにメタファイルが、コンテンツとしてコンテンツキャッシュ領域に記憶保存される。こうしてコンテンツが保存されると、制御部11は、パブリッシュメッセージを、DHTを用いたルーティングテーブルにしたがって、ルートノード宛に送信する。このパブリッシュメッセージは、コンテンツを保存していることを他のノードNnに公開するためのメッセージである。パブリッシュメッセージについては、特開2007−053452号公報等で公知であるので、詳しい説明を省略する。   Next, the control unit 11 stores and saves the content downloaded and accumulated in the buffer memory 13 in the content cache area (step S32). In the case of composite content, the downloaded resource file, control file, and metafile are stored and saved in the content cache area as content. When the content is stored in this way, the control unit 11 transmits a publish message to the root node according to the routing table using DHT. This publish message is a message for disclosing to other nodes Nn that the content is stored. Since the publish message is known in Japanese Patent Application Laid-Open No. 2007-053452 and the like, detailed description thereof is omitted.

なお、上記ステップS3〜S30の処理は、コンテンツの取得とは無関係に、予め設定された時間間隔で定期的に実行されるように構成しても良い。この場合、上記ステップS3の処理は、予め設定された時刻が到来すると開始される。また、上記ステップS3における「閾値」は、例えばコンテンツキャッシュ領域の最大記憶容量の例えば10%程度に予め設定される。   In addition, you may comprise so that the process of said step S3-S30 may be periodically performed in the preset time interval irrespective of acquisition of a content. In this case, the process of step S3 is started when a preset time arrives. The “threshold value” in step S3 is set in advance to, for example, about 10% of the maximum storage capacity of the content cache area.

以上説明したように、上記実施形態によれば、ノードNnは、コンテンツキャッシュ領域に保存されているコンテンツを削除する場合に、複合コンテンツを構成する各ファイルのうち動画ファイルを優先して削除するように構成した。そのため、複合コンテンツを再生する場合に最初に必要になるメタファイル及び制御ファイルを、リソースファイルの削除後にもコンテンツキャッシュ領域に残しておくことができる。従って、複合コンテンツを構成するリソースファイルの再生までに無駄な時間がかかってしまうことを回避し、リソースファイルの再生出力を迅速に行うことができる。   As described above, according to the above-described embodiment, when deleting the content stored in the content cache area, the node Nn preferentially deletes the video file among the files constituting the composite content. Configured. Therefore, the metafile and the control file that are first required when reproducing the composite content can be left in the content cache area even after the resource file is deleted. Accordingly, it is possible to avoid wasting time until the resource file constituting the composite content is reproduced, and the resource file can be reproduced and output quickly.

また、上記実施形態においては、複数のリソースファイルの中で、ファイルサイズの大きいリソースファイルから優先的に削除するように構成した。そのため、より多くのコンテンツをコンテンツキャッシュ領域に保存することができ、コンテンツキャッシュ領域を有効に活用することができる。また、上記実施形態においては、画像ファイル及びテキストファイルよりもデータ量の大きい動作ファイルから優先的に削除するように構成した。そのため、より多くのコンテンツをコンテンツキャッシュ領域に保存することができ、コンテンツキャッシュ領域を有効に活用することができる。なお、ノードNnにおいて、動作ファイルと、画像ファイル又はテキストファイルが記憶されている場合に、動作ファイルよりも、画像ファイル又はテキストファイルから優先的に削除するように構成しても良い。動作ファイルよりもデータ量の小さい画像ファイル又はテキストファイル等のコンテンツを先に削除することで、データサイズの小さいコンテンツはダウンロード時間がかからず、すぐに取得できるという効果がある。   Moreover, in the said embodiment, it comprised so that it might delete preferentially from a resource file with a large file size among several resource files. Therefore, more content can be stored in the content cache area, and the content cache area can be used effectively. In the above embodiment, the operation file having a larger data amount than the image file and the text file is preferentially deleted. Therefore, more content can be stored in the content cache area, and the content cache area can be used effectively. Note that when an operation file and an image file or text file are stored in the node Nn, the node Nn may be configured to delete the image file or text file with priority over the operation file. By deleting content such as an image file or a text file having a data amount smaller than that of the operation file first, content having a small data size does not take download time and can be obtained immediately.

また、上記実施形態において、予め設定された時間間隔で定期的に、コンテンツキャッシュ領域への各コンテンツへの利用状況に基づいて、コンテンツキャッシュ領域からコンテンツを削除するように構成しても良い。具体的には、制御部11は、予め設定された時刻が到来すると、制御部11は、コンテンツキャッシュ領域に記憶されている各コンテンツに付加された利用日付情報を参照して、所定期間利用されていないコンテンツがあるか否かを判定する。そして、制御部11は、所定期間利用されていないコンテンツがあると判定した場合、所定期間利用されていないコンテンツをコンテンツキャッシュ領域からコンテンツを削除する。この構成によれば、利用頻度が低いコンテンツを効率良く削除することができる。そのため、コンテンツキャッシュ領域を有効に活用することができる。   Further, in the above embodiment, the content may be deleted from the content cache area periodically based on the usage status of each content in the content cache area at a preset time interval. Specifically, when the preset time arrives, the control unit 11 refers to the use date information added to each content stored in the content cache area and is used for a predetermined period. It is determined whether there is content that has not been received. Then, when it is determined that there is content that has not been used for a predetermined period, the control unit 11 deletes the content that has not been used for a predetermined period from the content cache area. According to this configuration, it is possible to efficiently delete contents with low usage frequency. Therefore, the content cache area can be used effectively.

また、上記実施形態においては、オーバーレイネットワークONに、DHTを利用したピアツーピアネットワークを適用したが、これに限られるものではない。例えば、他のオーバーレイネットワークを用いたシステムが適用されても良い。DHTを利用しないピアツーピアシステムとしては、例えば、ハイブリッド型のピアツーピアシステムがある。   In the above embodiment, the peer-to-peer network using DHT is applied to the overlay network ON. However, the present invention is not limited to this. For example, a system using another overlay network may be applied. As a peer-to-peer system that does not use DHT, for example, there is a hybrid peer-to-peer system.

11 制御部
12 記憶部
13 バッファメモリ
19 通信部
MS コンテンツ管理サーバ
Nn ノード
NW ネットワーク
ON オーバーレイネットワーク
S コンテンツ配信システム
DESCRIPTION OF SYMBOLS 11 Control part 12 Storage part 13 Buffer memory 19 Communication part MS Content management server Nn node NW network ON Overlay network S Content delivery system

Claims (8)

ネットワークを介して互いに通信可能な複数のノード装置を備え、1以上のコンテンツが1つ以上のノード装置に保存され、各ノード装置は夫々の前記コンテンツに付与された固有の識別情報に基づいて他のノード装置に保存された前記コンテンツを取得するように構成された配信システムにおける前記ノード装置であって、
複数のコンテンツから構成される複合コンテンツの中で、時系列的に出力される第一コンテンツと、当該第一コンテンツの出力制御に必要な第二コンテンツと、のいずれか一方を少なくとも記憶する記憶手段と、
前記記憶手段に記憶されている前記コンテンツを削除する場合に、前記複合コンテンツを構成する前記コンテンツのうち、前記第一コンテンツを優先して削除する削除手段と、
を備えることを特徴とするノード装置。
A plurality of node devices that can communicate with each other via a network, one or more contents are stored in one or more node devices, and each node device is based on unique identification information assigned to each content. The node device in the distribution system configured to acquire the content stored in the node device,
Storage means for storing at least one of first content output in time series and second content necessary for output control of the first content among the composite content composed of a plurality of contents When,
A deletion unit that preferentially deletes the first content out of the contents constituting the composite content when the content stored in the storage unit is deleted;
A node device comprising:
前記記憶手段には、前記複合コンテンツを構成する、複数の前記第一コンテンツと、前記第二コンテンツとのいずれか一方が少なくとも記憶されており、
前記削除手段は、前記複数の第一コンテンツの中で、データ量の大きい前記第一コンテンツから優先的に削除することを特徴とする請求項1に記載のノード装置。
The storage means stores at least one of a plurality of the first content and the second content constituting the composite content,
The node device according to claim 1, wherein the deleting unit preferentially deletes the first content having a large amount of data among the plurality of first contents.
前記記憶手段には、前記第一コンテンツとして、動画により構成されたコンテンツと、静止画又はテキストにより構成されたコンテンツとが少なくとも記憶されており、
前記削除手段は、静止画又はテキストにより構成されたコンテンツよりも、前記動画により構成されたコンテンツから優先的に削除することを特徴とする請求項1又は2に記載のノード装置。
The storage means stores at least a content composed of a moving image and a content composed of a still image or text as the first content,
3. The node device according to claim 1, wherein the deleting unit preferentially deletes the content made up of the moving image over the content made up of a still image or text. 4.
前記記憶手段には、前記複合コンテンツを構成する、前記第一コンテンツと、前記第二コンテンツと、前記複合コンテンツを構成する各前記コンテンツに付与された識別情報であって、複数のノード装置に分散保存された複数のコンテンツを検索するための識別情報が記述された第三コンテンツとが少なくとも記憶されており、
前記削除手段は、前記複合コンテンツを構成する前記コンテンツのうち、前記第一コンテンツから優先的に削除することを特徴とする請求項1乃至3の何れか一項に記載のノード装置。
The storage means includes identification information assigned to each of the first content, the second content, and the content constituting the composite content that constitutes the composite content, and is distributed to a plurality of node devices. At least a third content in which identification information for searching a plurality of stored content is described is stored;
The node device according to any one of claims 1 to 3, wherein the deletion unit preferentially deletes the first content from among the content constituting the composite content.
前記削除手段は、所定時間利用されない前記第二コンテンツを削除することを特徴とする請求項1乃至4の何れか一項に記載のノード装置。   5. The node device according to claim 1, wherein the deletion unit deletes the second content that has not been used for a predetermined time. 前記第二コンテンツは、前記第一コンテンツの出力タイミングを制御するためのファイルと、前記第一コンテンツを所定のディスプレイに表示する表示制御を行うためのファイルの少なくとも何れか一方から構成されることを特徴とする請求項1乃至5の何れか一項に記載のノード装置。   The second content includes at least one of a file for controlling the output timing of the first content and a file for performing display control for displaying the first content on a predetermined display. The node device according to claim 1, wherein the node device is characterized in that: ネットワークを介して互いに通信可能な複数のノード装置を備え、1以上のコンテンツが1つ以上のノード装置に保存され、各ノード装置は夫々の前記コンテンツに付与された固有の識別情報に基づいて他のノード装置に保存された前記コンテンツを取得するように構成された配信システムにおける前記ノード装置に含まれるコンピュータに、
複数のコンテンツから構成される複合コンテンツの中で、時系列的に出力される第一コンテンツと、当該第一コンテンツの出力制御に必要な第二コンテンツと、のいずれか一方を少なくとも記憶するステップと、
前記記憶されている前記コンテンツを削除する場合に、前記複合コンテンツを構成する前記コンテンツのうち、前記第一コンテンツを優先して削除するステップと、
を実行させるためのノード処理プログラム。
A plurality of node devices that can communicate with each other via a network, one or more contents are stored in one or more node devices, and each node device is based on unique identification information assigned to each content. A computer included in the node device in a distribution system configured to acquire the content stored in the node device;
A step of storing at least one of a first content output in a time series in a composite content composed of a plurality of contents and a second content necessary for output control of the first content; ,
A step of preferentially deleting the first content out of the content constituting the composite content when deleting the stored content;
Node processing program to execute.
ネットワークを介して互いに通信可能な複数のノード装置を備え、1以上のコンテンツが1つ以上のノード装置に保存され、各ノード装置は夫々の前記コンテンツに付与された固有の識別情報に基づいて他のノード装置に保存された前記コンテンツを取得するように構成された配信システムにおけるコンテンツ削除方法であって、
前記ノード装置が、複数のコンテンツから構成される複合コンテンツの中で、時系列的に出力される第一コンテンツと、当該第一コンテンツの出力制御に必要な第二コンテンツと、のいずれか一方を少なくとも記憶するステップと、
前記ノード装置が、前記記憶されている前記コンテンツを削除する場合に、前記複合コンテンツを構成する前記コンテンツのうち、前記第一コンテンツを優先して削除するステップと、
を含むことを特徴とするコンテンツ削除方法。
A plurality of node devices that can communicate with each other via a network, one or more contents are stored in one or more node devices, and each node device is based on unique identification information assigned to each content. A content deletion method in a distribution system configured to acquire the content stored in the node device of
The node device selects any one of the first content output in time series and the second content necessary for output control of the first content from among the composite content composed of a plurality of contents. At least a memorizing step;
When the node device deletes the stored content, the step of deleting the first content preferentially from the content constituting the composite content;
A content deletion method comprising:
JP2010122580A 2010-05-28 2010-05-28 Node device, node processing program and content deletion method Withdrawn JP2011248715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010122580A JP2011248715A (en) 2010-05-28 2010-05-28 Node device, node processing program and content deletion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010122580A JP2011248715A (en) 2010-05-28 2010-05-28 Node device, node processing program and content deletion method

Publications (1)

Publication Number Publication Date
JP2011248715A true JP2011248715A (en) 2011-12-08

Family

ID=45413880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010122580A Withdrawn JP2011248715A (en) 2010-05-28 2010-05-28 Node device, node processing program and content deletion method

Country Status (1)

Country Link
JP (1) JP2011248715A (en)

Similar Documents

Publication Publication Date Title
CN108965910B (en) Video caching method and player
JP5439761B2 (en) Content reproduction apparatus, content reproduction method, and content reproduction program
WO2009119394A1 (en) Video acquisition method, video acquisition device, video acquisition system, and program for video acquisition
KR101950997B1 (en) Method for managing contents with contents tag and apparatus thereof
JP5614530B2 (en) Information communication system, node device, information processing method, and information processing program
JP5136208B2 (en) Content distributed storage system, content storage method, node device, and node processing program
JP6248943B2 (en) Information processing apparatus, information processing method, program, and information processing system
JP2011124940A (en) Distribution system, node device, information processor, node program, and advertising content reproducing method
JP2013045273A (en) Cache server, method for determining cache object, content distribution system, and cache object determination program
JP5353567B2 (en) Information processing system, information processing apparatus, node apparatus, program, and information processing method
JP2011248715A (en) Node device, node processing program and content deletion method
US8312068B2 (en) Node device, information communication system, method for managing content data, and computer readable medium
JP5412924B2 (en) Node device, node processing program, and content data deletion method
JP5458629B2 (en) NODE DEVICE, NODE PROCESSING PROGRAM, AND SEARCH METHOD
JP2017098703A (en) Receiving device, manifest update method and program
JP5267475B2 (en) Information communication system, node device, information communication method, and information communication program
JP4983183B2 (en) Node device, information division storage system, information processing program, and information utilization method
JP5157770B2 (en) Node device, program, and storage instruction method
JP5494362B2 (en) Distribution system, information processing apparatus, program, and content input method
JP2011204090A (en) Delivery system, apparatus and program for processing information and marker information management method
JP5338774B2 (en) Distribution system, information processing apparatus, information processing program, and content input method
JP5234041B2 (en) Information communication system, node device, information processing method, and program for node device
JP2008109188A (en) Content distribution system, peer, and center server
JP2011204091A (en) Information processing apparatus, information processing program, marker information management method and delivery system
JP2010114533A (en) Data storage apparatus, data storage method, and program

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20130806