JP6231896B2 - Content distribution system, P2P terminal, and connection switching method - Google Patents

Content distribution system, P2P terminal, and connection switching method Download PDF

Info

Publication number
JP6231896B2
JP6231896B2 JP2014017834A JP2014017834A JP6231896B2 JP 6231896 B2 JP6231896 B2 JP 6231896B2 JP 2014017834 A JP2014017834 A JP 2014017834A JP 2014017834 A JP2014017834 A JP 2014017834A JP 6231896 B2 JP6231896 B2 JP 6231896B2
Authority
JP
Japan
Prior art keywords
terminal
connection
unit time
utilization rate
switching
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.)
Active
Application number
JP2014017834A
Other languages
Japanese (ja)
Other versions
JP2015146486A (en
Inventor
敏 西村
敏 西村
壮 田中
壮 田中
遠藤 洋介
洋介 遠藤
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.)
Japan Broadcasting Corp
Original Assignee
Japan Broadcasting Corp
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 Japan Broadcasting Corp filed Critical Japan Broadcasting Corp
Priority to JP2014017834A priority Critical patent/JP6231896B2/en
Publication of JP2015146486A publication Critical patent/JP2015146486A/en
Application granted granted Critical
Publication of JP6231896B2 publication Critical patent/JP6231896B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、コンテンツの配信元であるコンテンツ配信サーバ(以下、「配信サーバ」という)を頂点として複数のP2P端末が階層的に接続された配信ツリー(ツリー構造のP2Pネットワーク)を構築してコンテンツを配信するコンテンツ配信システム、該コンテンツ配信システムを構成するP2P端末、及びP2P端末の接続切替え方法に関する。   The present invention constructs a distribution tree (a P2P network having a tree structure) in which a plurality of P2P terminals are hierarchically connected with a content distribution server (hereinafter referred to as “distribution server”) as a content distribution source serving as a vertex. The present invention relates to a content distribution system that distributes P2P, a P2P terminal that constitutes the content distribution system, and a connection switching method for P2P terminals.

近年インターネットにおいては、ストリーミングによる動画配信サービスが普及している。動画配信サービスの形態としては、受信端末において視聴したいコンテンツを選択し、選択したコンテンツを配信サーバから受信するVOD(Video On Demand)のような一対一の配信サービスに加え、同一のコンテンツを多数の受信端末に同時に伝送する一対多(放送型)の配信サービスが知られている。   In recent years, streaming video distribution services have become widespread on the Internet. As a form of the video distribution service, in addition to a one-to-one distribution service such as VOD (Video On Demand) that selects a content to be viewed at a receiving terminal and receives the selected content from a distribution server, a large number of the same content is received. One-to-many (broadcast type) distribution services that transmit simultaneously to a receiving terminal are known.

IPネットワークにおいて一対多の放送型の動画配信サービスを効率よく行う方式として、IPマルチキャストが知られている。しかし、このIPマルチキャスト方式では、対象となるネットワーク内の全ルータにマルチキャスト機能が必要となり、現状では限られたネットワークのみでしか利用できない。   IP multicast is known as a method for efficiently performing a one-to-many broadcast-type moving image distribution service in an IP network. However, in this IP multicast method, all routers in the target network require a multicast function, and can be used only in a limited network at present.

こうした背景から、一般に普及しているインターネット上で一対多の放送型配信を実現する有効な方法として、P2P(ピアツーピア)技術を用いたコンテンツの分散配信技術が開発されている。この技術は、コンテンツを要求するP2P端末同士で論理的なツリーを作り、P2P端末上で動作するアプリケーションソフトが相互にデータ転送を行うことによりマルチキャスト(一対多通信)を実現する。   Against this background, a distributed content distribution technique using P2P (peer-to-peer) technology has been developed as an effective method for realizing one-to-many broadcast-type distribution on the Internet which is generally popular. This technology realizes multicast (one-to-many communication) by creating a logical tree between P2P terminals that request content, and application software that operates on the P2P terminals performs data transfer with each other.

例えば、特許文献1に記載されたストリームデータ分散配信方法では、インターネットなどのネットワーク環境において、各ノード間でストリームデータの送受信を行うため、各ノードは上流ノードと下流ノードとの接続関係を示すトポロジ情報を交換して、上流ノードから下流ノードへストリームデータを中継している。このストリームデータ分散配信方法では、各ノード間でトポロジ情報を交換するため、各ノードが自律的にトポロジ情報を記憶・更新し、提供するなどの管理を行う機能を備えている。   For example, in the stream data distributed delivery method described in Patent Document 1, each node transmits and receives stream data between network nodes in a network environment such as the Internet. Therefore, each node has a topology indicating a connection relationship between an upstream node and a downstream node. The stream data is relayed from the upstream node to the downstream node by exchanging information. In this stream data distributed delivery method, each node has a function of performing management such as storing, updating, and providing topology information autonomously in order to exchange topology information between the nodes.

また、このようなコンテンツ配信方式の別の例として、非特許文献1に開示された技術では、配信サーバにおいてストリーミングメディアを複数のデータパケットに断片化する(断片化されたデータをチャンクと呼ぶ)。そして、各端末は必要なチャンクを持つ端末を動的に検出し、検出した端末から、プル型でチャンクを受信し、受信したチャンクを再構成することにより、所望のストリーミングメディアを得ることができる。図4にこのような従来のコンテンツ配信システムの一例を示す。図4に示したコンテンツ配信システムの例では、配信サーバによって1〜6の6個に断片化したチャンクのうち、奇数番号のチャンクが実線に沿って転送され、偶数番号のチャンクが破線に沿って転送されることで、図示する6台の各P2P端末に対して、全てのチャンクが行き届いている様子を示している。   As another example of such a content distribution method, in the technique disclosed in Non-Patent Document 1, streaming media is fragmented into a plurality of data packets in the distribution server (the fragmented data is called a chunk). . Each terminal dynamically detects a terminal having a necessary chunk, receives a chunk in a pull type from the detected terminal, and reconfigures the received chunk, thereby obtaining desired streaming media. . FIG. 4 shows an example of such a conventional content distribution system. In the example of the content distribution system shown in FIG. 4, among the chunks 1 to 6 fragmented by the distribution server, odd-numbered chunks are transferred along a solid line, and even-numbered chunks are along a broken line. It is shown that all the chunks are delivered to each of the six P2P terminals shown in the figure by being transferred.

P2P技術によるコンテンツ配信方式では、一般利用者の利用者端末(P2P端末)が、自端末から他のP2P端末へ中継を行う機能を担うことになり、配信ツリーの上流に位置するP2P端末(上流端末)がコンテンツ視聴を中止した際には、そのP2P端末から下流に位置するP2P端末(下流端末)への配信が停止することになる。このため、P2P技術によるコンテンツ配信を安定的に実現するには、P2P端末の突発的な離脱に対処する必要がある。   In the content distribution method using the P2P technology, a user terminal (P2P terminal) of a general user has a function of relaying from its own terminal to another P2P terminal, and a P2P terminal (upstream) located upstream of the distribution tree. When the terminal stops viewing the content, the distribution from the P2P terminal to the P2P terminal (downstream terminal) located downstream is stopped. For this reason, in order to stably realize the content distribution by the P2P technology, it is necessary to cope with the sudden detachment of the P2P terminal.

そこで、一般的な方法では、各P2P端末に受信データを蓄積するための受信メモリ(受信バッファ)を備えさせ、上流端末が急に離脱したとしても、受信バッファに蓄積したデータを再生している間に他の上流端末に再接続することで、コンテンツ配信サービスによるストリーミング受信を継続する。   Therefore, in a general method, each P2P terminal is provided with a reception memory (reception buffer) for storing received data, and the data stored in the reception buffer is reproduced even if the upstream terminal suddenly leaves. In the meantime, the streaming reception by the content distribution service is continued by reconnecting to another upstream terminal.

しかしながら、この方法では、コンテンツ配信の安定性を確保するために、各P2P端末が大容量の受信メモリを備える必要があるとともに、再生前に受信データを受信メモリに蓄える必要があり、遅延時間が大きくなってしまうという問題があった。また、この受信メモリ内のデータが枯渇した際には映像が停止してしまうという問題もあった。   However, in this method, in order to ensure the stability of content distribution, each P2P terminal needs to have a large-capacity reception memory, and it is necessary to store the reception data in the reception memory before reproduction. There was a problem of getting bigger. There is also a problem that the video stops when the data in the reception memory is exhausted.

これらの問題を解決するために、例えば特許文献2に記載されているように、相対的に離脱し難いと想定されるP2P端末を上流に配置するP2Pネットワークの構築方法が開示されている。   In order to solve these problems, as described in Patent Document 2, for example, a method for constructing a P2P network in which a P2P terminal that is assumed to be relatively difficult to leave is disposed upstream.

また、図4に示したコンテンツ配信システムのように、複数のP2P端末がメッシュ状に接続したメッシュ構造のP2Pネットワークを構築する場合には、一部の上流端末からデータ受信が途絶えたとしても、他の上流端末からデータを受信することにより、コンテンツ配信サービスによるストリーミング受信を継続することができる。   In addition, when a P2P network having a mesh structure in which a plurality of P2P terminals are connected in a mesh shape as in the content distribution system illustrated in FIG. 4, even if data reception from some upstream terminals is interrupted, By receiving data from other upstream terminals, streaming reception by the content distribution service can be continued.

特開2003−169089号公報JP 2003-169089 A 特開2009−130667号公報JP 2009-130667 A

CoolStreaming/DoNet: A Data-Driven Overlay Network for Efficient Live Media Streaming”, In Proc. Of the 24th IEEE INFOCO, March 2005, p.2102-2111 Xinyan Zhang, Jiangchuan Liu, Bo Li and Tak-ShingPeter YumCoolStreaming / DoNet: A Data-Driven Overlay Network for Efficient Live Media Streaming ”, In Proc. Of the 24th IEEE INFOCO, March 2005, p. 2102-2111 Xinyan Zhang, Jiangchuan Liu, Bo Li and Tak-ShingPeter Yum

特許文献1に記載されたP2Pネットワークによりコンテンツ配信サービスを実現する場合、上流端末は離脱し難いから、大規模な受信状況の劣化を避けることができる。しかしながら、ネットワークの末端部に離脱し易いP2P端末が多く配置されることから、局所的な受信状況の劣化までは避けることはできないという問題がある。   When the content distribution service is realized by the P2P network described in Patent Document 1, it is difficult for the upstream terminal to leave, and thus it is possible to avoid a large-scale deterioration of the reception situation. However, since there are many P2P terminals that are easily detached at the end of the network, there is a problem that local degradation of the reception situation cannot be avoided.

また、図4のメッシュ構造のP2Pネットワークによるコンテンツ配信サービスを実現する場合、一部の上流端末からのデータ受信が途絶えたとしても、残りの上流端末からデータを受信することができるため、ツリー構造のP2Pネットワークと比較して、P2Pネットワーク全体の安定性は高くなる。しかしながら、上流の接続相手として離脱の可能性の高いP2P端末が多い場合には、コンテンツ配信サービスによるストリーミング受信を安定的に継続することができないという問題がある。   Further, when realizing the content distribution service using the mesh-structured P2P network of FIG. 4, even if data reception from some upstream terminals is interrupted, the data can be received from the remaining upstream terminals. Compared with other P2P networks, the stability of the entire P2P network is higher. However, when there are many P2P terminals that are likely to leave as upstream connection partners, there is a problem that streaming reception by the content distribution service cannot be stably continued.

かかる事情に鑑みてなされた本発明の目的は、P2P端末の離脱を予測して安定したP2Pネットワークを構築することが可能なコンテンツ配信システム、P2P端末、及び接続切替え方法を提供することにある。   An object of the present invention made in view of such circumstances is to provide a content distribution system, a P2P terminal, and a connection switching method capable of building a stable P2P network by predicting the withdrawal of the P2P terminal.

上記課題を解決するため、本発明に係るコンテンツ配信システムは、コンテンツの配信元である配信サーバを頂点として複数のP2P端末が階層的に接続されたツリー構造のP2Pネットワークを構築してコンテンツを配信するコンテンツ配信システムであって、前記P2P端末は、1日の各単位時間におけるコンテンツ配信サービスの利用率である単位時間利用率を予め記憶する単位時間利用率記憶部と、P2Pネットワークに参加する配信サーバ及び複数のP2P端末から、現在より遅い時刻の単位時間における前記単位時間利用率である次期単位時間利用率を取得する端末情報管理部と、当該P2P端末の上流側に接続されたP2P端末である接続先端末の前記次期単位時間利用率に基づいて、前記接続先端末との接続を継続するか、前記現在より遅い時刻までに切断するかを決定する接続切替指示部と、前記接続切替指示部により前記接続先端末との接続を切断すると決定された場合に、前記接続先端末と切断し、接続の切替え先となるP2P端末である切替先端末との接続を行う接続制御部と、を備える。   In order to solve the above problems, the content distribution system according to the present invention distributes content by constructing a tree-structured P2P network in which a plurality of P2P terminals are hierarchically connected with a distribution server as a content distribution source at the top. The P2P terminal has a unit time usage rate storage unit that stores in advance a unit time usage rate that is a usage rate of the content delivery service in each unit time of the day, and a delivery that participates in the P2P network. A terminal information management unit that acquires the next unit time usage rate, which is the unit time usage rate in a unit time at a later time from the server and a plurality of P2P terminals, and a P2P terminal connected upstream of the P2P terminal Based on the next unit time utilization rate of a certain connection destination terminal, whether to continue the connection with the connection destination terminal, A connection switching instruction unit that determines whether to disconnect by a later time than the present time, and when the connection switching instruction unit determines to disconnect the connection destination terminal, disconnect from the connection destination terminal, A connection control unit that performs connection with a switching destination terminal that is a P2P terminal serving as a switching destination.

また、上記課題を解決するため、本発明に係るP2P端末は、コンテンツの配信元である配信サーバを頂点としてツリー構造のP2Pネットワークを構築するP2P端末であって、1日の各単位時間におけるコンテンツ配信サービスの利用率である単位時間利用率を予め記憶する単位時間利用率記憶部と、P2Pネットワークに参加する配信サーバ及び複数のP2P端末から、現在より遅い時刻の単位時間における前記単位時間利用率である次期単位時間利用率を取得する端末情報管理部と、当該P2P端末の上流側に接続されたP2P端末である接続先端末の前記次期単位時間利用率に基づいて、前記接続先端末との接続を継続するか、前記現在より遅い時刻までに切断するかを決定する接続切替指示部と、前記接続切替指示部により前記接続先端末との接続を切断すると決定された場合に、前記接続先端末と切断し、接続の切替え先となるP2P端末である切替先端末との接続を行う接続制御部と、を備える。   In order to solve the above problems, a P2P terminal according to the present invention is a P2P terminal that constructs a tree-structured P2P network with a distribution server that is a content distribution source as a vertex, and content in each unit time of a day The unit time utilization rate in a unit time at a later time than the present time from a unit time utilization rate storage unit that stores in advance a unit time utilization rate that is a utilization rate of the distribution service, a distribution server that participates in the P2P network, and a plurality of P2P terminals A terminal information management unit that acquires the next unit time usage rate, and the connection destination terminal based on the next unit time usage rate of the connection destination terminal that is a P2P terminal connected to the upstream side of the P2P terminal. A connection switching instruction unit for determining whether to continue the connection or to disconnect by a later time than the current time, and the connection switching instruction unit If it is determined to disconnect the connection earlier terminal, the connection destination terminal and is cut, and a connection control unit for connecting the switching destination terminal is a P2P terminal as the connection of the switching destination.

さらに、本発明に係るP2P端末において、前記接続切替指示部は、前記次期単位時間利用率が所定の閾値以上である場合には接続を継続すると決定し、前記次期単位時間利用率が前記閾値よりも小さい場合には、前記現在より遅い時刻までに接続を切断すると決定し、前記切替先端末を前記次期単位時間利用率が前記閾値以上のP2P端末から選択する。   Further, in the P2P terminal according to the present invention, the connection switching instruction unit determines to continue the connection when the next unit time usage rate is equal to or greater than a predetermined threshold, and the next unit time usage rate is greater than the threshold value. Is smaller than the current time, it is determined that the connection is to be disconnected, and the switching destination terminal is selected from P2P terminals whose next unit time utilization rate is equal to or greater than the threshold.

さらに、本発明に係るP2P端末において、前記接続切替指示部は、前記接続先端末との接続を切断すると決定した場合に、前記切替先端末を、前記次期単位時間利用率が前記閾値以上であり、接続可能な最大のP2P端末数よりも接続中のP2P端末数のほうが小さく、配信ツリーの上流側に位置するP2P端末を切替先候補端末とし、該切替先候補端末のうち前記次期単位時間利用率が大きいP2P端末から優先的に選択する。   Furthermore, in the P2P terminal according to the present invention, when the connection switching instruction unit determines to disconnect from the connection destination terminal, the next unit time utilization rate is greater than or equal to the threshold value. The number of connected P2P terminals is smaller than the maximum number of connectable P2P terminals, and the P2P terminal located on the upstream side of the distribution tree is set as a switching destination candidate terminal, and the next unit time utilization among the switching destination candidate terminals is used. A P2P terminal with a large rate is preferentially selected.

さらに、本発明に係るP2P端末において、前記接続切替指示部は、前記接続先端末との接続を切断すると決定した場合であっても、前記切替先候補端末が存在しないか、又は切替先候補端末の全てのP2P端末から接続を拒否された場合には、前記接続先端末との接続を維持する。   Furthermore, in the P2P terminal according to the present invention, even when the connection switching instruction unit determines to disconnect the connection destination terminal, the switching destination candidate terminal does not exist or the switching destination candidate terminal exists. When the connection is rejected from all the P2P terminals, the connection with the connection destination terminal is maintained.

さらに、本発明に係るP2P端末において、前記単位時間利用率は、1日を一定の単位時間で区切り、各単位時間におけるコンテンツ配信サービスの利用率の平均値、又は前記各単位時間におけるコンテンツ配信サービスの利用率の曜日ごとの平均値とする。   Further, in the P2P terminal according to the present invention, the unit time usage rate is obtained by dividing one day by a fixed unit time, and an average value of the content distribution service usage rate in each unit time, or the content delivery service in each unit time. The average value of the usage rate for each day of the week.

また、上記課題を解決するため、本発明に係る接続切替え方法は、コンテンツの配信元である配信サーバを頂点としてツリー構造のP2Pネットワークを構築するP2P端末の接続先を切替える接続切替え方法であって、1日の各単位時間におけるコンテンツ配信サービスの利用率である単位時間利用率を予め記憶するステップと、P2Pネットワークに参加する配信サーバ及び複数のP2P端末から、現在より遅い時刻の単位時間における前記単位時間利用率である次期単位時間利用率を取得するステップと、当該P2P端末の上流側に接続されたP2P端末である接続先端末の前記次期単位時間利用率に基づいて、前記接続先端末との接続を継続するか、前記現在より遅い時刻までに切断するかを決定するステップと、前記接続先端末との接続を切断すると決定された場合に、前記接続先端末と切断し、接続の切替え先となるP2P端末である切替先端末との接続を行うステップと、を含む。   In order to solve the above problem, a connection switching method according to the present invention is a connection switching method for switching a connection destination of a P2P terminal that constructs a tree-structured P2P network with a distribution server that is a content distribution source as a vertex. Storing in advance a unit time utilization rate, which is a utilization rate of the content distribution service in each unit time of the day, and the distribution server participating in the P2P network and a plurality of P2P terminals in the unit time at a later time than the present time Obtaining the next unit time utilization rate, which is a unit time utilization rate, and the connection destination terminal based on the next unit time utilization rate of the connection destination terminal that is a P2P terminal connected upstream of the P2P terminal; Deciding whether to continue the connection or disconnect by a time later than the current time; and If it is determined that disconnects the connection destination terminal and cut, comprising the steps of performing a connection with the switching destination terminal is a P2P terminal as the connection changeover destination, the.

本発明によれば、P2Pネットワークを構築してコンテンツを配信するコンテンツ配信システムにおいて、上流側に接続されたP2P端末がコンテンツ配信中に離脱する度合いが低くなり、安定した配信を実現することができるようになる。   According to the present invention, in a content distribution system that builds a P2P network and distributes content, the degree to which a P2P terminal connected to the upstream side is disconnected during content distribution is low, and stable distribution can be realized. It becomes like this.

本発明の一実施形態に係るコンテンツ配信システムの構成例を示す概略図である。It is the schematic which shows the structural example of the content delivery system which concerns on one Embodiment of this invention. 本発明の一実施形態に係るP2P端末の構成例を示すブロック図である。It is a block diagram which shows the structural example of the P2P terminal which concerns on one Embodiment of this invention. 本発明の一実施形態に係る接続切替え方法を示すフローチャートである。It is a flowchart which shows the connection switching method which concerns on one Embodiment of this invention. 従来のコンテンツ配信システムの一例を示す概略図である。It is the schematic which shows an example of the conventional content delivery system.

以下、本発明の一実施形態について、図面を参照して詳細に説明する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

図1は、本発明の一実施形態に係るコンテンツ配信システムの構成例を示す概略図である。コンテンツ配信システムは、複数のP2P端末1と、配信サーバ2と、端末管理サーバ3とを備えており、これらはインターネットを介して接続されている。コンテンツ配信システムは、コンテンツの配信元である配信サーバ2を頂点として複数のP2P端末1が階層的に接続された配信ツリー(ツリー構造のP2Pネットワーク)を構築して、P2P方式によりコンテンツを配信する。以下の説明において、自身のP2P端末(自端末)と他のP2P端末(他端末)とを特に区別する場合には、他端末の符号を1’と表記する。   FIG. 1 is a schematic diagram illustrating a configuration example of a content distribution system according to an embodiment of the present invention. The content distribution system includes a plurality of P2P terminals 1, a distribution server 2, and a terminal management server 3, which are connected via the Internet. The content distribution system builds a distribution tree (a tree-structured P2P network) in which a plurality of P2P terminals 1 are hierarchically connected with the distribution server 2 that is a content distribution source as a vertex, and distributes the content using the P2P method. . In the following description, when distinguishing between its own P2P terminal (own terminal) and another P2P terminal (other terminal), the code of the other terminal is denoted as 1 '.

配信サーバ2は、コンテンツの配信元となってコンテンツ配信サービスを提供するサーバであり、P2Pネットワークに参加するP2P端末1に対し、コンテンツのデータパケット(以下、「コンテンツデータ」という)を順次配信する。   The distribution server 2 is a server that provides a content distribution service as a content distribution source, and sequentially distributes content data packets (hereinafter referred to as “content data”) to the P2P terminals 1 participating in the P2P network. .

P2P端末1は、P2Pネットワークに属する配信サーバ2又は他のP2P端末1’と接続する。そして、配信ツリーの上流側に接続された端末(配信サーバ2、又は配信サーバ2からの中継段数を示すホップ数が自端末1のホップ数以下のP2P端末1’)からコンテンツデータを受信して再生するとともに、配信ツリーの下流側に接続された端末(ホップ数が自端末1のホップ数よりも大きいP2P端末1’)にコンテンツデータを中継(分配、転送)する。P2P端末1の詳細については後述する。   The P2P terminal 1 is connected to the distribution server 2 belonging to the P2P network or another P2P terminal 1 '. Then, the content data is received from a terminal connected to the upstream side of the distribution tree (the distribution server 2 or the P2P terminal 1 ′ having the number of hops indicating the number of relay stages from the distribution server 2 is equal to or less than the number of hops of the own terminal 1) While reproducing, the content data is relayed (distributed and transferred) to a terminal (P2P terminal 1 ′ whose hop count is larger than the hop count of its own terminal 1) connected to the downstream side of the distribution tree. Details of the P2P terminal 1 will be described later.

端末管理サーバ3は、コンテンツ配信システムに参加している配信サーバ2や各P2P端末1のコンテンツ配信に係る情報である端末情報を保持する。端末情報は、配信サーバ2やP2P端末1の端末IDに対応付けて、IPアドレスやポート番号などのデータ転送に必要な情報を含む。   The terminal management server 3 holds terminal information that is information related to content distribution of the distribution server 2 and each P2P terminal 1 participating in the content distribution system. The terminal information includes information necessary for data transfer such as an IP address and a port number in association with the terminal ID of the distribution server 2 or the P2P terminal 1.

また、端末管理サーバ3は、P2P端末1から所望のコンテンツに対する接続先紹介要求を受け付け、接続先候補リストを返信する。接続先候補リストは、P2P端末1の接続先の候補となる配信サーバ2又はP2P端末1の端末情報を1つ以上含むリストである。   Further, the terminal management server 3 receives a connection destination introduction request for desired content from the P2P terminal 1, and returns a connection destination candidate list. The connection destination candidate list is a list including one or more terminal information of the distribution server 2 or the P2P terminal 1 that is a connection destination candidate of the P2P terminal 1.

[P2P端末]
次に、P2P端末1について、図2を参照して説明する。図2は、本発明に係るP2P端末1の構成例を示すブロック図である。
[P2P terminal]
Next, the P2P terminal 1 will be described with reference to FIG. FIG. 2 is a block diagram showing a configuration example of the P2P terminal 1 according to the present invention.

P2P端末1は、通信I/F11と、単位時間利用率更新部12と、記憶部13と、接続先紹介要求部14と、接続先端末選択部15と、接続切替指示部16と、接続制御部17と、端末情報管理部18と、コンテンツデータ中継部19と、コンテンツバッファ20と、コンテンツ再生部21と、を備える。記憶部13は、端末情報記憶部131と、トポロジ情報記憶部132と、単位時間利用率記憶部133とを備える。   The P2P terminal 1 includes a communication I / F 11, a unit time utilization rate update unit 12, a storage unit 13, a connection destination introduction request unit 14, a connection destination terminal selection unit 15, a connection switching instruction unit 16, and a connection control. Unit 17, terminal information management unit 18, content data relay unit 19, content buffer 20, and content reproduction unit 21. The storage unit 13 includes a terminal information storage unit 131, a topology information storage unit 132, and a unit time utilization rate storage unit 133.

通信I/F11は、インターネットに接続し、インターネットを介してデータの送受信を行う。   The communication I / F 11 connects to the Internet and transmits / receives data via the Internet.

単位時間利用率記憶部133は、1日の各単位時間におけるコンテンツ配信サービスの利用率である単位時間利用率を予め記憶する。単位時間利用率は、例えば1日を一定の単位時間で区切り、その各単位時間におけるコンテンツ配信サービスの利用率の平均値、又は各単位時間におけるコンテンツ配信サービスの利用率の曜日ごとの平均値とする。また、平均値とは、過去1ヶ月分の平均値でもよいし、過去1年間分の平均値でもよい。   The unit time usage rate storage unit 133 stores in advance a unit time usage rate that is a usage rate of the content distribution service in each unit time of the day. The unit time usage rate is, for example, a day divided by a certain unit time, and the average value of the content distribution service usage rate in each unit time, or the average value of the content distribution service usage rate in each unit time for each day of the week. To do. In addition, the average value may be an average value for the past month or an average value for the past year.

端末情報記憶部131は、自身のP2P端末(自端末)1、P2Pネットワークに参加している他のP2P端末(他端末)1’、及び配信サーバ2の端末情報を記憶する。表1に、端末情報記憶部131に記憶されている端末情報の一例を示す。表1の例では、各端末の端末情報は、端末IDにそれぞれ関連付けられた、接続待受けアドレス、接続可能数、接続端末数、ホップ数、及び次期単位時間利用率を含む。   The terminal information storage unit 131 stores terminal information of its own P2P terminal (own terminal) 1, another P2P terminal (other terminal) 1 ′ participating in the P2P network, and the distribution server 2. Table 1 shows an example of terminal information stored in the terminal information storage unit 131. In the example of Table 1, the terminal information of each terminal includes a connection standby address, the number of connectable terminals, the number of connected terminals, the number of hops, and the next unit time usage rate, each associated with a terminal ID.

ここで、端末IDは、配信サーバ2及びP2P端末1を一意に識別する識別子である。接続待受けアドレスは、他端末から接続要求を受け付けることができるIPアドレスとポート番号の組を示している。   Here, the terminal ID is an identifier for uniquely identifying the distribution server 2 and the P2P terminal 1. The connection standby address indicates a set of an IP address and a port number that can accept a connection request from another terminal.

接続可能数は、P2P端末1が配信サーバ2や他のP2P端末1’と同時に接続可能な最大端末数を示す。予め規定値を設定してもよいし、自端末1の通信状態に合わせて順次更新してもよい。   The connectable number indicates the maximum number of terminals that can be connected to the P2P terminal 1 simultaneously with the distribution server 2 and other P2P terminals 1 '. A predetermined value may be set in advance, or may be sequentially updated according to the communication state of the terminal 1 itself.

接続端末数は、P2P端末1が現在接続中の配信サーバ2や他のP2P端末1’の総数を示す。   The number of connected terminals indicates the total number of distribution servers 2 and other P2P terminals 1 'to which the P2P terminal 1 is currently connected.

ホップ数は、P2Pネットワークにおける配信サーバ2からの中継段数を示す。ここでは、配信サーバ2のホップ数を「0」として、直接配信サーバ2に接続しているP2P端末1のホップ数を「1」、該P2P端末1に接続しているP2P端末1のホップ数を「2」とする。接続・切断により、現在接続している配信サーバ2や他端末1’が変更になった場合は、接続中の配信サーバ2や他端末1’のホップ数に合わせて随時更新する。例えば、現在接続している配信サーバ2や他端末1’のホップ数のうち、最小のホップ数に1を加算した値を自端末1のホップ数とすることができる。   The number of hops indicates the number of relay stages from the distribution server 2 in the P2P network. Here, the number of hops of the distribution server 2 is “0”, the number of hops of the P2P terminal 1 directly connected to the distribution server 2 is “1”, and the number of hops of the P2P terminal 1 connected to the P2P terminal 1 Is “2”. When the currently connected distribution server 2 or other terminal 1 ′ is changed due to connection / disconnection, it is updated as needed according to the number of hops of the currently connected distribution server 2 or other terminal 1 ′. For example, a value obtained by adding 1 to the minimum hop number among the hop numbers of the currently connected distribution server 2 and other terminal 1 ′ can be set as the hop number of the own terminal 1.

次期単位時間利用率は、過去のコンテンツ配信サービスの利用実績に基づく予測値であり、現在より遅い時刻の単位時間(例えば、現在の次の単位時間区切り)における、単位時間利用率を示す。例えば、単位時間が1分で現在時刻が10:00の場合、次期単位時間利用率を10:01から10:02の間の単位時間利用率とし、現在時刻が10:01になると、次期単位時間利用率を10:02から10:03の間の単位時間利用率とすることができる。   The next unit time usage rate is a predicted value based on the past usage results of the content distribution service, and indicates the unit time usage rate in a unit time (for example, the current next unit time interval) later than the present time. For example, when the unit time is 1 minute and the current time is 10:00, the next unit time usage rate is set to a unit time usage rate between 10:01 and 10:02, and when the current time is 10:01, the next unit The time utilization factor can be a unit time utilization factor between 10:02 and 10:03.

トポロジ情報記憶部132は、自端末1と直接接続している配信サーバ2又は他端末1’の端末IDを、自端末1から見て上流側に位置するか下流側に位置するかの情報と対応付けて、トポロジ情報として記憶する。例えば、自端末1と接続しており、ホップ数が自端末1のホップ数以下のP2P端末1’を上流端末とし、ホップ数が自端末1のホップ数よりも大きいP2P端末1’を下流端末とする。   The topology information storage unit 132 includes information indicating whether the terminal ID of the distribution server 2 or the other terminal 1 ′ directly connected to the own terminal 1 is located on the upstream side or the downstream side when viewed from the own terminal 1. Correspondingly, it is stored as topology information. For example, a P2P terminal 1 ′ connected to the own terminal 1 and having a hop count equal to or less than the hop count of the own terminal 1 is defined as an upstream terminal, and a P2P terminal 1 ′ having a hop count greater than the hop count of the own terminal 1 is defined as a downstream terminal. And

単位時間利用率更新部12は、ある単位時間区切りtnにおいて(単位時間×n経過時に)、単位時間利用率Rtnを更新し、単位時間利用率記憶部133に記憶する。例えば、ある単位時間区切りtnにおける単位時間利用率Rtnは、簡易的には式(1)のようにRtn_newに更新される。ここで、Tは単位時間、tは現在の単位時間内のコンテンツ配信サービス利用時間、αは重み付け係数(0<α<1.0:例えば0.2)である。 The unit time usage rate update unit 12 updates the unit time usage rate R tn at a certain unit time interval tn (when unit time × n has elapsed) and stores it in the unit time usage rate storage unit 133. For example, the unit time utilization rate R tn in a certain unit time interval tn is simply updated to R tn_new as shown in Equation (1). Here, T is a unit time, t is a content distribution service usage time within the current unit time, and α is a weighting coefficient (0 <α <1.0: for example 0.2).

tn_new=(1−α)×Rtn+α×t/T (1) R tn_new = (1−α) × R tn + α × t / T (1)

接続先紹介要求部14は、端末ID、接続待受けアドレス(IPアドレスやポート番号などのデータ転送に必要となる情報)を含む接続紹介要求を、通信I/F11を介して、コンテンツアドレス情報によって指定される端末管理サーバ3へ送信する。そして、端末管理サーバ3から通信I/F11を介して接続先候補リストを受信し、端末情報記憶部131に記憶する。   The connection destination introduction request unit 14 designates a connection introduction request including a terminal ID and a connection standby address (information necessary for data transfer such as an IP address and a port number) by content address information via the communication I / F 11. To the terminal management server 3 to be transmitted. Then, the connection destination candidate list is received from the terminal management server 3 via the communication I / F 11 and stored in the terminal information storage unit 131.

接続先端末選択部15は、端末情報記憶部131に記憶されている端末情報を読み出す。そして、端末情報記憶部131に記憶されている端末IDを有する配信サーバ2又は他のP2P端末1’の中から、接続先となる配信サーバ2又は他のP2P端末(接続先端末)を所定の処理により選択する。以下、接続先端末の符号を1−1と表記する。接続先端末選択部15は、接続先端末1−1の端末情報を接続先端末情報として接続制御部17に出力し、接続を指示する。例えば接続先端末選択部15は、端末情報記憶部131から端末情報を取得し、上流側に接続される接続先端末1−1を、接続可能数よりも接続端末数のほうが小さく、ホップ数が自端末1より小さく、次期単位時間利用率が所定の閾値よりも大きいP2P端末1’から選択する。また、下流側に接続される接続先端末1−1を、接続可能数よりも接続端末数のほうが小さく、ホップ数が自端末1より大きいP2P端末1’から選択する。   The connection destination terminal selection unit 15 reads the terminal information stored in the terminal information storage unit 131. Then, the distribution server 2 or other P2P terminal (connection destination terminal) as the connection destination is selected from the distribution server 2 or other P2P terminal 1 ′ having the terminal ID stored in the terminal information storage unit 131. Select by processing. Hereinafter, the code of the connection destination terminal is denoted as 1-1. The connection destination terminal selection unit 15 outputs the terminal information of the connection destination terminal 1-1 to the connection control unit 17 as connection destination terminal information, and instructs connection. For example, the connection destination terminal selection unit 15 acquires the terminal information from the terminal information storage unit 131, and the connection destination terminal 1-1 connected to the upstream side is smaller in the number of connection terminals than the connectable number, and the number of hops. The P2P terminal 1 ′ is selected from the P2P terminal 1 ′ which is smaller than the own terminal 1 and whose next unit time usage rate is larger than a predetermined threshold. In addition, the connection destination terminal 1-1 connected to the downstream side is selected from P2P terminals 1 'having a smaller number of connected terminals than a connectable number and a larger hop number than the own terminal 1.

接続切替指示部16は、接続切替判定部161と、切替先端末選択部162とを備える。接続切替指示部16は、当該P2P端末1の上流側に接続された接続先端末1−1との接続を維持するか、この接続先端末1−1との接続を切断して他のP2P端末(切替先端末)との接続に切替えるかを決定する。以下、切替先端末の符号を1−2と表記する。   The connection switching instruction unit 16 includes a connection switching determination unit 161 and a switching destination terminal selection unit 162. The connection switching instruction unit 16 maintains the connection with the connection destination terminal 1-1 connected to the upstream side of the P2P terminal 1 or disconnects the connection destination terminal 1-1 to another P2P terminal. Decide whether to switch to the connection with the (switch destination terminal). Hereinafter, the code | symbol of a switching destination terminal is described with 1-2.

接続切替判定部161は、トポロジ情報記憶部132に記憶されているトポロジ情報から上流側に接続された接続先端末1−1の端末IDを入力し、端末情報記憶部131から該端末IDに対応付けられた端末情報を所得する。そして、取得した端末情報の次期単位時間利用率に基づいて、この接続先端末1−1との接続を継続するか、取得した次期単位時間利用率の単位時間区切りまでに切断するかを判定する。例えば、取得した端末情報の次期単位時間利用率が所定の閾値よりも大きい場合にはこの接続先端末1−1との接続を継続すると判定する。そして、次期単位時間利用率が閾値よりも小さくなった場合に(例えば取得した次期単位時間利用率が10:01から10:02の間の単位時間利用率であった場合、10:01までに)、接続先端末1−1と切断すると判定する。   The connection switching determination unit 161 inputs the terminal ID of the connection destination terminal 1-1 connected upstream from the topology information stored in the topology information storage unit 132, and corresponds to the terminal ID from the terminal information storage unit 131 Earn the attached terminal information. Then, based on the next unit time usage rate of the acquired terminal information, it is determined whether to continue the connection with the connection destination terminal 1-1 or to disconnect by the unit time interval of the acquired next unit time usage rate. . For example, when the next unit time usage rate of the acquired terminal information is larger than a predetermined threshold, it is determined that the connection with the connection destination terminal 1-1 is continued. Then, when the next unit time usage rate becomes smaller than the threshold (for example, when the acquired next unit time usage rate is a unit time usage rate between 10:01 and 10:02, by 10:01) ), It is determined to disconnect from the connection destination terminal 1-1.

切替先端末選択部162は、接続切替判定部161において、接続先端末1−1との接続を切断すると判定した場合に、切替先端末1−2を次期単位時間利用率が閾値以上のP2P端末1’から選択する。そして、選択した切替先端末1−2の端末情報を切替先端末情報とし、接続切替判定部161において切断すると判定された接続先端末1−1の端末情報を切替元端末情報として接続制御部17に出力し、接続切替えを指示する。   When the connection switching determination unit 161 determines that the connection with the connection destination terminal 1-1 is to be disconnected, the switching destination terminal selection unit 162 determines that the switching destination terminal 1-2 is a P2P terminal whose next unit time usage rate is equal to or greater than a threshold value. Select from 1 '. The connection control unit 17 uses the terminal information of the selected switching destination terminal 1-2 as the switching destination terminal information, and uses the terminal information of the connecting destination terminal 1-1 determined to be disconnected by the connection switching determination unit 161 as the switching source terminal information. And instruct connection switching.

切替先端末選択部162は、端末情報記憶部131に記憶されている端末情報及びトポロジ情報記憶部132に記憶されているトポロジ情報を読み出し、トポロジ情報が記憶されておらず(つまり、現在自端末1と接続されておらず)、端末情報に格納されている端末IDを有する配信サーバ2又はP2P端末1’の中から、次期単位時間利用率が閾値以上のP2P端末を切替先端末1−2の候補として決定する。例えば、次期単位時間利用率が閾値以上であり、接続可能数よりも接続端末数のほうが小さく、ホップ数が自端末1のホップ数以下であるP2P端末を切替先候補端末とし、該切替先候補端末のうち次期単位時間利用率が大きいP2P端末から優先的に切替先端末1−2を選択する。   The switching destination terminal selection unit 162 reads the terminal information stored in the terminal information storage unit 131 and the topology information stored in the topology information storage unit 132, and the topology information is not stored (that is, the current terminal itself) The P2P terminal whose next unit time utilization rate is equal to or higher than the threshold is selected from the distribution server 2 or the P2P terminal 1 ′ having the terminal ID stored in the terminal information. As a candidate. For example, a P2P terminal whose next unit time utilization rate is equal to or greater than a threshold, the number of connected terminals is smaller than the connectable number, and the number of hops is equal to or less than the number of hops of the own terminal 1 is defined as a switching destination candidate terminal. Among the terminals, the switching destination terminal 1-2 is preferentially selected from the P2P terminals with the next unit time utilization rate being large.

なお、切替先端末選択部162は、接続切替判定部161により接続先端末1−1との接続を切断すると判定した場合であっても、切替先候補端末が存在しないか、又は切替先候補端末の全てのP2P端末から接続を拒否された場合には、接続先端末1−1との接続を維持するものとする。   Even if the switching destination terminal selection unit 162 determines that the connection switching determination unit 161 disconnects the connection destination terminal 1-1, there is no switching destination candidate terminal or the switching destination candidate terminal. When the connection is rejected from all the P2P terminals, the connection with the connection destination terminal 1-1 is maintained.

接続制御部17は、接続先端末選択部15から接続先端末情報を入力し、接続先端末1−1に接続要求を送信する。また、接続の切換を行う場合には、接続切替指示部16の指示に基づいて、接続先端末1−1に切断要求を送信するとともに、切替先端末1−2に接続要求を送信して接続を行う。また、他のP2P端末1’から接続要求・切断要求を受付ける。接続制御部17は、接続・切断の結果とともに端末情報を端末情報管理部18に出力する。   The connection control unit 17 inputs connection destination terminal information from the connection destination terminal selection unit 15 and transmits a connection request to the connection destination terminal 1-1. When switching the connection, based on an instruction from the connection switching instruction unit 16, a disconnection request is transmitted to the connection destination terminal 1-1 and a connection request is transmitted to the switching destination terminal 1-2. I do. Further, it accepts connection requests / disconnection requests from other P2P terminals 1 '. The connection control unit 17 outputs the terminal information together with the connection / disconnection results to the terminal information management unit 18.

端末情報管理部18は、接続制御部17から入力される接続・切断の結果をもとに、端末情報の接続端末数及びホップ数の値を更新し、自端末1の端末IDに対応付けて端末情報記憶部131に記憶する。また、トポロジ情報記憶部132から切断した接続先端末1−1のトポロジ情報を削除し、新たに接続した切替先端末1−2のトポロジ情報を記憶する。   Based on the result of connection / disconnection input from the connection control unit 17, the terminal information management unit 18 updates the values of the number of connected terminals and the number of hops of the terminal information and associates them with the terminal ID of the own terminal 1. Store in the terminal information storage unit 131. Further, the topology information of the connection destination terminal 1-1 disconnected from the topology information storage unit 132 is deleted, and the topology information of the newly connected switching destination terminal 1-2 is stored.

また、端末情報管理部18は、自端末1の端末情報を、通信I/F11を介して、端末情報記憶部131に記憶されている端末IDを有する他のP2P端末1’へ送信する。自端末1の端末情報をいずれかの情報が更新される度に送信してもよいし、定期的に送信してもよい。さらに、他のP2P端末1’から通信I/F11を介して端末情報を受信し、端末情報記憶部131に記憶するとともに、端末情報記憶部131に記憶されている端末IDを有する他のP2P端末1’に対して、例えばゴシップ型マルチキャストなどを用いて転送してもよい。   Further, the terminal information management unit 18 transmits the terminal information of the own terminal 1 to another P2P terminal 1 ′ having the terminal ID stored in the terminal information storage unit 131 via the communication I / F 11. The terminal information of the own terminal 1 may be transmitted every time any information is updated, or may be transmitted periodically. Further, the terminal information is received from the other P2P terminal 1 ′ via the communication I / F 11, stored in the terminal information storage unit 131, and the other P2P terminal having the terminal ID stored in the terminal information storage unit 131. 1 'may be transferred using, for example, gossip type multicast.

コンテンツデータ中継部19は、上流側に接続された接続先端末1−1から通信I/F11を介してコンテンツデータを順次受信し、受信したコンテンツデータを下流側に接続された接続先端末1−1へ中継するとともに、受信したコンテンツデータをコンテンツバッファ20に格納する。   The content data relay unit 19 sequentially receives content data from the connection destination terminal 1-1 connected on the upstream side via the communication I / F 11, and receives the received content data on the connection destination terminal 1- connected to the downstream side. 1 and the received content data is stored in the content buffer 20.

コンテンツ再生部21は、コンテンツバッファ20からコンテンツデータを取り出し、順次デコードして再生する。   The content reproduction unit 21 takes out the content data from the content buffer 20, sequentially decodes and reproduces it.

[接続切替え方法]
次に、P2P端末1の接続切替え方法について、図3を参照して説明する。図3は、本発明に係る接続切替え方法を示すフローチャートである。
[Connection switching method]
Next, a connection switching method for the P2P terminal 1 will be described with reference to FIG. FIG. 3 is a flowchart showing a connection switching method according to the present invention.

P2P端末1は、トポロジ情報記憶部132から上流に接続された接続先端末1−1の端末IDを抽出する(ステップS101)。次に端末情報記憶部131から、該抽出した端末IDの端末情報を抽出し(ステップS102)、抽出した端末情報の次期単位時間利用率と所定の閾値(例えば0.4)とを比較し、閾値よりも小さい場合は(ステップS103−YES)、端末情報記憶部131から、(1)トポロジ情報記憶部132にトポロジ情報が記憶されておらず、(2)接続可能数よりも接続端末数が小さく、(3)ホップ数が自端末以下であり(配信ツリーの上流側に位置し)、(4)次期単位時間利用率が閾値以上である端末の端末情報を抽出し(抽出数をNとする)、次期単位時間利用率が大きい順にソートする(ステップS104)。   The P2P terminal 1 extracts the terminal ID of the connection destination terminal 1-1 connected upstream from the topology information storage unit 132 (step S101). Next, terminal information of the extracted terminal ID is extracted from the terminal information storage unit 131 (step S102), the next unit time utilization rate of the extracted terminal information is compared with a predetermined threshold (for example, 0.4), When it is smaller than the threshold (step S103-YES), the topology information is not stored in the topology information storage unit 132 from the terminal information storage unit 131, and (2) the number of connected terminals is larger than the connectable number. (3) The number of hops is less than or equal to the own terminal (located upstream of the distribution tree), and (4) the terminal information of the terminal whose next unit time utilization rate is equal to or greater than the threshold is extracted (the number of extractions is N The next unit time usage rate is sorted in descending order (step S104).

次に、単位時間区切りになったら(ステップS105−YES)、ループカウンタiを0にセットし(ステップS106)、ループ処理に入る。次に、i<Nである場合は(ステップS107−YES)、i番目の端末情報を抽出し(ステップS108)、i番目のP2P端末(切替先端末)1−2に接続要求を送信する(ステップS109)。i番目の切替先端末1−2は、接続要求を受信し(ステップS110)、接続受付が可能でない場合は(ステップS111−NO)、P2P端末1に接続拒否応答を送信し(ステップS112)終了する。P2P端末1は接続拒否応答を受信したら(ステップS113)、ループカウンタiをインクリメントし(ステップS114)、ステップS107の処理に戻る。   Next, when the unit time interval is reached (step S105-YES), the loop counter i is set to 0 (step S106), and loop processing is started. Next, if i <N (step S107-YES), the i-th terminal information is extracted (step S108), and a connection request is transmitted to the i-th P2P terminal (switching destination terminal) 1-2 ( Step S109). The i-th switching destination terminal 1-2 receives the connection request (step S110), and when connection acceptance is not possible (step S111-NO), transmits a connection rejection response to the P2P terminal 1 (step S112). To do. When receiving the connection rejection response (step S113), the P2P terminal 1 increments the loop counter i (step S114), and returns to the process of step S107.

ステップS111の処理に戻り、切替先端末1−2が接続受付可能な場合は(ステップS111−YES)、P2P端末1に接続応答を送信する(ステップS115)。P2P端末1は接続応答を受信したら(ステップS116)、切替先端末1−2と接続を確立する。次に、接続先端末1−1へ切断要求を送信し(ステップS117)、接続先端末1−1は切断要求を受信し(ステップS118)、P2P端末1との接続を切断する。次にP2P端末1は、トポロジ情報記憶部132から接続先端末1−1のトポロジ情報を削除し、切替先端末1−2を上流端末としてトポロジ情報を登録し(ステップS119)、自端末1の端末情報の接続端末数及びホップ数の値を更新して(ステップS120)、処理を終了する。なお、図中には記載していないがステップS119、S120の処理は、接続先端末1−1及び切替先端末1−2でも同様に実施される。   Returning to the process of step S111, when the switching destination terminal 1-2 can accept the connection (step S111-YES), a connection response is transmitted to the P2P terminal 1 (step S115). When receiving the connection response (step S116), the P2P terminal 1 establishes a connection with the switching destination terminal 1-2. Next, a disconnection request is transmitted to the connection destination terminal 1-1 (step S117), the connection destination terminal 1-1 receives the disconnection request (step S118), and disconnects from the P2P terminal 1. Next, the P2P terminal 1 deletes the topology information of the connection destination terminal 1-1 from the topology information storage unit 132, registers the topology information with the switching destination terminal 1-2 as the upstream terminal (step S119), and The number of connected terminals and the number of hops in the terminal information are updated (step S120), and the process ends. Although not shown in the figure, the processes in steps S119 and S120 are similarly performed in the connection destination terminal 1-1 and the switching destination terminal 1-2.

また、ステップS103で抽出した端末情報の次期単位時間利用率が閾値よりも大きい場合(ステップS103−NO)、又はステップS107でi≧Nとなった場合は(ステップS107−NO)、接続先端末1−1との接続を維持して処理を終了する。   Further, when the next unit time usage rate of the terminal information extracted in step S103 is larger than the threshold (step S103-NO), or when i ≧ N in step S107 (step S107-NO), the connection destination terminal The connection with 1-1 is maintained and the process ends.

上述したように、本発明に係るコンテンツ配信システムにおいて、P2P端末1は、各利用者における単位時間あたりの過去のコンテンツ配信サービスの利用実績に基づいて、現在の次の単位時間において、上流側に接続された接続先端末1−1との接続を継続するか、利用実績が高いP2P端末に接続を切替えるかを決定する。これにより、次の単位時間において上流側に接続された接続先端末1−1の利用実績が低下することを事前に予測し、より利用実績が高い切替先端末1−2に接続を切替えるため、配信ツリーの上流のP2P端末1がコンテンツ配信中に離脱する度合いが低くなり、安定した配信を実現することができるようになる。   As described above, in the content distribution system according to the present invention, the P2P terminal 1 is connected to the upstream side in the current next unit time based on the past use results of the content distribution service per unit time for each user. It is determined whether to continue the connection with the connected destination terminal 1-1 or to switch the connection to a P2P terminal with a high usage record. Accordingly, in order to predict in advance that the usage record of the connection destination terminal 1-1 connected to the upstream side in the next unit time will decrease, and to switch the connection to the switching destination terminal 1-2 with a higher usage record, The degree to which the P2P terminal 1 upstream of the distribution tree is detached during content distribution is reduced, and stable distribution can be realized.

上述の実施形態は代表的な例として説明したが、本発明の趣旨及び範囲内で、多くの変更及び置換ができることは当業者に明らかである。したがって、本発明は、上述の実施形態によって制限するものと解するべきではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。例えば、実施形態に記載の複数の構成ブロックを1つに組み合わせたり、あるいは1つの構成ブロックを分割したりすることが可能である。   Although the above embodiment has been described as a representative example, it will be apparent to those skilled in the art that many changes and substitutions can be made within the spirit and scope of the invention. Therefore, the present invention should not be construed as being limited by the above-described embodiments, and various modifications and changes can be made without departing from the scope of the claims. For example, a plurality of constituent blocks described in the embodiments can be combined into one, or one constituent block can be divided.

1 P2P端末
2 配信サーバ
3 端末管理サーバ
11 通信I/F
12 単位時間利用率更新部
13 記憶部
14 接続先紹介要求部
15 接続先端末選択部
16 接続切替指示部
17 接続制御部
18 端末情報管理部
19 コンテンツデータ中継部
20 コンテンツバッファ
21 コンテンツ再生部
131 端末情報記憶部
132 トポロジ情報記憶部
133 単位時間利用率記憶部
161 接続切替判定部
162 切替先端末選択部
1 P2P terminal 2 Distribution server 3 Terminal management server 11 Communication I / F
12 unit time utilization rate update unit 13 storage unit 14 connection destination introduction request unit 15 connection destination terminal selection unit 16 connection switching instruction unit 17 connection control unit 18 terminal information management unit 19 content data relay unit 20 content buffer 21 content playback unit 131 terminal Information storage unit 132 Topology information storage unit 133 Unit time utilization rate storage unit 161 Connection switching determination unit 162 Switching destination terminal selection unit

Claims (7)

コンテンツの配信元である配信サーバを頂点として複数のP2P端末が階層的に接続されたツリー構造のP2Pネットワークを構築してコンテンツを配信するコンテンツ配信システムであって、
前記P2P端末は、
1日の各単位時間におけるコンテンツ配信サービスの利用率である単位時間利用率を予め記憶する単位時間利用率記憶部と、
P2Pネットワークに参加する配信サーバ及び複数のP2P端末から、現在より遅い時刻の単位時間における前記単位時間利用率である次期単位時間利用率を取得する端末情報管理部と、
当該P2P端末の上流側に接続されたP2P端末である接続先端末の前記次期単位時間利用率に基づいて、前記接続先端末との接続を継続するか、前記現在より遅い時刻までに切断するかを決定する接続切替指示部と、
前記接続切替指示部により前記接続先端末との接続を切断すると決定された場合に、前記接続先端末と切断し、接続の切替え先となるP2P端末である切替先端末との接続を行う接続制御部と、
を備える、コンテンツ配信システム。
A content distribution system for distributing content by constructing a tree-structured P2P network in which a plurality of P2P terminals are hierarchically connected with a distribution server as a content distribution source at the top,
The P2P terminal is
A unit time usage rate storage unit that stores in advance a unit time usage rate that is a usage rate of the content distribution service in each unit time of the day;
A terminal information management unit that acquires a next unit time utilization rate that is the unit time utilization rate in a unit time of a time later than the present time from a distribution server and a plurality of P2P terminals participating in the P2P network;
Whether to continue the connection with the connection destination terminal based on the next unit time utilization rate of the connection destination terminal that is the P2P terminal connected to the upstream side of the P2P terminal, or to disconnect by the time later than the current time A connection switching instruction section for determining
Connection control for disconnecting from the connection destination terminal and connecting to a switch destination terminal that is a P2P terminal that is a connection switching destination when the connection switching instruction unit determines to disconnect the connection destination terminal. And
A content distribution system comprising:
コンテンツの配信元である配信サーバを頂点としてツリー構造のP2Pネットワークを構築するP2P端末であって、
1日の各単位時間におけるコンテンツ配信サービスの利用率である単位時間利用率を予め記憶する単位時間利用率記憶部と、
P2Pネットワークに参加する配信サーバ及び複数のP2P端末から、現在より遅い時刻の単位時間における前記単位時間利用率である次期単位時間利用率を取得する端末情報管理部と、
当該P2P端末の上流側に接続されたP2P端末である接続先端末の前記次期単位時間利用率に基づいて、前記接続先端末との接続を継続するか、前記現在より遅い時刻までに切断するかを決定する接続切替指示部と、
前記接続切替指示部により前記接続先端末との接続を切断すると決定された場合に、前記接続先端末と切断し、接続の切替え先となるP2P端末である切替先端末との接続を行う接続制御部と、
を備える、P2P端末。
A P2P terminal that constructs a tree-structured P2P network with a distribution server that is a content distribution source as a vertex,
A unit time usage rate storage unit that stores in advance a unit time usage rate that is a usage rate of the content distribution service in each unit time of the day;
A terminal information management unit that acquires a next unit time utilization rate that is the unit time utilization rate in a unit time of a time later than the present time from a distribution server and a plurality of P2P terminals participating in the P2P network;
Whether to continue the connection with the connection destination terminal based on the next unit time utilization rate of the connection destination terminal that is the P2P terminal connected to the upstream side of the P2P terminal, or to disconnect by the time later than the current time A connection switching instruction section for determining
Connection control for disconnecting from the connection destination terminal and connecting to a switch destination terminal that is a P2P terminal that is a connection switching destination when the connection switching instruction unit determines to disconnect the connection destination terminal. And
A P2P terminal.
前記接続切替指示部は、前記次期単位時間利用率が所定の閾値以上である場合には接続を継続すると決定し、前記次期単位時間利用率が前記閾値よりも小さい場合には、前記現在より遅い時刻までに接続を切断すると決定し、前記切替先端末を前記次期単位時間利用率が前記閾値以上のP2P端末から選択する、請求項2に記載のP2P端末。   The connection switching instruction unit determines that the connection is continued when the next unit time usage rate is equal to or greater than a predetermined threshold, and is slower than the current when the next unit time usage rate is smaller than the threshold. The P2P terminal according to claim 2, wherein the P2P terminal is determined to disconnect by the time, and the switching destination terminal is selected from P2P terminals having the next unit time usage rate equal to or higher than the threshold. 前記接続切替指示部は、前記接続先端末との接続を切断すると決定した場合に、前記切替先端末を、前記次期単位時間利用率が前記閾値以上であり、接続可能な最大のP2P端末数よりも接続中のP2P端末数のほうが小さく、配信ツリーの上流側に位置するP2P端末を切替先候補端末とし、該切替先候補端末のうち前記次期単位時間利用率が大きいP2P端末から優先的に選択する、請求項3に記載のP2P端末。   When the connection switching instruction unit determines to disconnect the connection with the connection destination terminal, the next unit time utilization rate is greater than or equal to the threshold and the maximum number of P2P terminals that can be connected is determined. The number of connected P2P terminals is smaller, and a P2P terminal located upstream of the distribution tree is set as a switching destination candidate terminal, and the switching destination candidate terminal is preferentially selected from the P2P terminals having the higher next unit time utilization rate. The P2P terminal according to claim 3. 前記接続切替指示部は、前記接続先端末との接続を切断すると決定した場合であっても、前記切替先候補端末が存在しないか、又は切替先候補端末の全てのP2P端末から接続を拒否された場合には、前記接続先端末との接続を維持する、請求項4に記載のP2P端末。   Even when the connection switching instruction unit determines to disconnect the connection destination terminal, the switching destination candidate terminal does not exist or the connection is rejected by all P2P terminals of the switching destination candidate terminal. The P2P terminal according to claim 4, wherein when connected, the connection with the connection destination terminal is maintained. 前記単位時間利用率は、1日を一定の単位時間で区切り、各単位時間におけるコンテンツ配信サービスの利用率の平均値、又は前記各単位時間におけるコンテンツ配信サービスの利用率の曜日ごとの平均値とする、請求項2から5のいずれか一項に記載のP2P端末。   The unit time utilization rate is defined by dividing a day by a fixed unit time, and an average value of the content distribution service utilization rate in each unit time, or an average value of the content distribution service utilization rate in each unit time for each day of the week. The P2P terminal according to any one of claims 2 to 5. コンテンツの配信元である配信サーバを頂点としてツリー構造のP2Pネットワークを構築するP2P端末の接続先を切替える接続切替え方法であって、
1日の各単位時間におけるコンテンツ配信サービスの利用率である単位時間利用率を予め記憶するステップと、
P2Pネットワークに参加する配信サーバ及び複数のP2P端末から、現在より遅い時刻の単位時間における前記単位時間利用率である次期単位時間利用率を取得するステップと、
当該P2P端末の上流側に接続されたP2P端末である接続先端末の前記次期単位時間利用率に基づいて、前記接続先端末との接続を継続するか、前記現在より遅い時刻までに切断するかを決定するステップと、
前記接続先端末との接続を切断すると決定された場合に、前記接続先端末と切断し、接続の切替え先となるP2P端末である切替先端末との接続を行うステップと、
を含む、接続切替え方法。

A connection switching method for switching a connection destination of a P2P terminal that constructs a P2P network having a tree structure with a distribution server that is a content distribution source as a vertex,
Storing in advance a unit time usage rate that is a usage rate of the content distribution service in each unit time of the day;
Obtaining a next unit time utilization rate, which is the unit time utilization rate in a unit time at a later time than the current time, from a distribution server and a plurality of P2P terminals participating in the P2P network;
Whether to continue the connection with the connection destination terminal based on the next unit time utilization rate of the connection destination terminal that is the P2P terminal connected to the upstream side of the P2P terminal, or to disconnect by the time later than the current time A step of determining
When it is determined to disconnect from the connection destination terminal, disconnecting from the connection destination terminal, and connecting to a switching destination terminal that is a P2P terminal that is a connection switching destination;
A connection switching method including:

JP2014017834A 2014-01-31 2014-01-31 Content distribution system, P2P terminal, and connection switching method Active JP6231896B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014017834A JP6231896B2 (en) 2014-01-31 2014-01-31 Content distribution system, P2P terminal, and connection switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014017834A JP6231896B2 (en) 2014-01-31 2014-01-31 Content distribution system, P2P terminal, and connection switching method

Publications (2)

Publication Number Publication Date
JP2015146486A JP2015146486A (en) 2015-08-13
JP6231896B2 true JP6231896B2 (en) 2017-11-15

Family

ID=53890551

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014017834A Active JP6231896B2 (en) 2014-01-31 2014-01-31 Content distribution system, P2P terminal, and connection switching method

Country Status (1)

Country Link
JP (1) JP6231896B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4877108B2 (en) * 2007-07-09 2012-02-15 ブラザー工業株式会社 Network system, information processing apparatus, connection destination introduction apparatus, information processing method, information processing apparatus program, and connection destination introduction apparatus program
JP5588376B2 (en) * 2011-02-22 2014-09-10 日本放送協会 TERMINAL DEVICE, TERMINAL DEVICE PROGRAM, AND CONTENT DISTRIBUTION SYSTEM

Also Published As

Publication number Publication date
JP2015146486A (en) 2015-08-13

Similar Documents

Publication Publication Date Title
JP4518169B2 (en) Tree-type broadcast system, mode switching instruction method, broadcast apparatus, and broadcast processing program
JP5340062B2 (en) Network relay device and network system
US8059669B2 (en) Tree-type broadcast system, reconnection process method, node device, node process program, server device, and server process program
CN105991302A (en) Multicast flow overlay using registration over reliable transport
JP2008294626A (en) Content distributed storage system, content storing method, node device, and node processing program
JP2008278337A (en) Information distribution system, terminal apparatus used in same system, program, and loop connection avoidance method
JP5115509B2 (en) Content distribution system, node device, leaving process delay method, and leaving process delay control program
US11245618B2 (en) Multicast traceroute facility with batch query processing for multiple flows and reservation of resources for requested link metrics
US11038794B2 (en) Source-initiated distribution of spine node identifiers of preferred spine nodes for use in multicast path selection
JP6231896B2 (en) Content distribution system, P2P terminal, and connection switching method
JP5522801B2 (en) Receiving terminal and control program thereof
JP5588376B2 (en) TERMINAL DEVICE, TERMINAL DEVICE PROGRAM, AND CONTENT DISTRIBUTION SYSTEM
JP2011023996A (en) Information communication system, node device, method of confirming node device, and program
Ha et al. Topology and architecture design for peer to peer video live streaming system on mobile broadcasting social media
JP2008236538A (en) Tree type broadcast system, method for broadcasting content, broadcast management apparatus, and broadcast management processing program
JP2008085678A (en) Content distribution system, content distribution method, terminal device in the content distribution system and program thereof
Huang et al. Construction of an efficient ring-tree-based Peer-to-Peer streaming platform
JP6310264B2 (en) Content distribution system and address information notification server
JP6371562B2 (en) Content distribution system, P2P terminal, terminal management server, and distribution tree reconstruction method
JP5026388B2 (en) Node device and computer program
JP5022393B2 (en) User terminal, user terminal program, and distribution tree connection switching method
JP5616801B2 (en) User terminal and distribution topology reassignment program
JP5327078B2 (en) Information communication system, information communication method, node device, and program
JP2005244880A (en) Device, system, and method for information transfer
JP2008294625A (en) Communicating system, specific information distribution method, node device, specific information distribution device, node processing program, and specific information distribution processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161128

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170904

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170926

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171020

R150 Certificate of patent or registration of utility model

Ref document number: 6231896

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250