JP5093274B2 - Terminal device and file transmission system - Google Patents

Terminal device and file transmission system Download PDF

Info

Publication number
JP5093274B2
JP5093274B2 JP2010071867A JP2010071867A JP5093274B2 JP 5093274 B2 JP5093274 B2 JP 5093274B2 JP 2010071867 A JP2010071867 A JP 2010071867A JP 2010071867 A JP2010071867 A JP 2010071867A JP 5093274 B2 JP5093274 B2 JP 5093274B2
Authority
JP
Japan
Prior art keywords
file
terminal device
transmission
divided
transmission speed
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
JP2010071867A
Other languages
Japanese (ja)
Other versions
JP2011205480A (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.)
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 JP2010071867A priority Critical patent/JP5093274B2/en
Publication of JP2011205480A publication Critical patent/JP2011205480A/en
Application granted granted Critical
Publication of JP5093274B2 publication Critical patent/JP5093274B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、ネットワークを介して相互に接続された複数の端末装置間でピアツーピア(Peer to Peer(P2P))型のファイル送信を行う技術に関する。   The present invention relates to a technique for performing peer-to-peer (P2P) type file transmission between a plurality of terminal devices connected to each other via a network.

近年、インターネットを利用した様々なコンテンツサービスが実施されている。このようなコンテンツは、それを利用するユーザの趣味・嗜好の多様化に対応するために年々多様化しており、個々のコンテンツも高品質・大容量化している。また、コンテンツを利用するインターネット接続端末の数も増大している。このような情勢に対して、従来のクライアントサーバ方式ではサービスの規模が増大するにつれてサーバの負荷も増えていくため、サーバの高性能化や十分な通信帯域幅の確保等、コンテンツ送信システムの運用・保守にかかるコストが膨大になるといった問題が顕著化しつつある。   In recent years, various content services using the Internet have been implemented. Such contents are diversified year by year in order to cope with diversification of hobbies and preferences of users who use the contents, and individual contents are also of high quality and large capacity. In addition, the number of Internet connection terminals that use content is increasing. In response to this situation, the load on the server increases as the service scale increases in the conventional client-server method. Therefore, the operation of the content transmission system such as higher performance of the server and securing of sufficient communication bandwidth are required.・ The problem that maintenance costs are enormous is becoming more prominent.

そこで、複数の端末装置同士でデータを共有するP2P方式のコンテンツ送信システムが実用化している(例えば、特許文献1参照)。このようなP2P方式のコンテンツ送信システムによれば、コンテンツを配給するサーバの負荷を軽減し、運用・保守にかかるコストを低減することができるとされている。   Therefore, a P2P content transmission system that shares data among a plurality of terminal devices has been put into practical use (see, for example, Patent Document 1). According to such a P2P system content transmission system, it is said that the load on the server that distributes the content can be reduced, and the cost for operation and maintenance can be reduced.

カラオケサービスを提供するカラオケ装置を例に挙げて説明する。カラオケ装置において再生されるコンテンツは、通常の演奏データ(MIDIデータ)の他に、実際の演奏音声をサンプリングした高品質の生音楽曲やプロモーションビデオ、CM映像等があり、益々多種多様化している。また、カラオケ装置を利用するユーザの嗜好や趣味の多様化に対応した個別のサービスを提供するため、近年では個々のユーザごとに専用のコンテンツが必要となる等、カラオケ装置で利用されるコンテンツは膨大な量となっている。   A karaoke apparatus that provides a karaoke service will be described as an example. In addition to normal performance data (MIDI data), the content played back on a karaoke device includes high-quality live music songs, promotional videos, and commercial videos that sample actual performance sounds. . In addition, in order to provide individual services corresponding to the diversification of tastes and hobbies of users who use karaoke devices, in recent years, content used in karaoke devices is required for each individual user. It is a huge amount.

そのため、カラオケサービスで提供可能な全てのコンテンツを個々のカラオケ装置内の記憶装置に保存することができなくなっている。また、従来の大規模サーバから多数のカラオケ装置に対してコンテンツを送信する方法では、サーバ側のインフラコストが膨大になるという問題もある。そのため、各カラオケ装置間でP2P方式によりコンテンツを送信するシステムが用いられるようになってきている。   For this reason, all the contents that can be provided by the karaoke service cannot be stored in the storage device in each karaoke apparatus. In addition, the conventional method of transmitting content from a large-scale server to a large number of karaoke apparatuses has a problem that the infrastructure cost on the server side becomes enormous. For this reason, a system for transmitting content between the karaoke apparatuses by the P2P method has been used.

さらに、カラオケコンテンツのような大型のファイルを端末装置が受信する際、1つのファイルを多数のブロックに分割し、複数の端末装置から同時並行して複数の分割ファイルを取得し、それらを連結して目的のファイルを得るファイル送信方法が行われている。このようにすることで、送信側の端末装置の1つに異常がある場合や、極端に送信速度の遅い端末装置がある場合でも、送信速度が十分速い他の端末装置から分割ファイルを受信することで、より迅速にファイルを取得できるようになっている。   Furthermore, when a terminal device receives a large file such as karaoke content, it divides one file into a number of blocks, acquires a plurality of divided files simultaneously from a plurality of terminal devices, and connects them. File transmission method to obtain the desired file. In this way, even if one of the terminal devices on the transmission side is abnormal or there is a terminal device with an extremely slow transmission speed, the divided file is received from another terminal apparatus with a sufficiently high transmission speed. As a result, files can be acquired more quickly.

特開2006−197400JP 2006-197400 A

P2P方式の情報通信を行うカラオケ装置等のインターネット接続端末は、通常、インターネットサービスプロバイダ(ISP)が提供するアクセス回線を経由して、インターネット上の他端末装置との間でデータの送受信を行う。しかし、一部の端末がP2P通信で大量のデータを転送することで、ISPのアクセス回線の通信帯域が占有され、他の端末装置の通信に支障が出るケースが増えている。   An Internet connection terminal such as a karaoke apparatus that performs P2P information communication usually transmits / receives data to / from other terminal apparatuses on the Internet via an access line provided by an Internet service provider (ISP). However, when some terminals transfer a large amount of data by P2P communication, the communication band of the ISP access line is occupied, and there are increasing cases in which communication with other terminal apparatuses is hindered.

これは、近年P2P通信が盛んに行われるようになったことで、従来それほど多くなかった各端末装置の上り(データ送出時)の通信量の増加が原因の一端となっている。これに対処するため、所定期間(例えば1日)あたりの通信データ量(特にデータ送出時)に制限を設ける等の処置を行うISPも増えてきている。
(例えば、http://www.ocn.ne.jp/info/rules/upload/ など参照)
P2P通信を利用する通信カラオケシステムにおいて、通信量の制限に抵触したことが原因でコンテンツの送信ができないカラオケ装置が発生すると、その分、ネットワーク内でコンテンツを送信できるカラオケ装置の数が減少することになる。コンテンツを送信できるカラオケ装置の数が減少すると、残りのカラオケ装置にコンテンツの送信要求が集中し、通信負荷の増大に起因してコンテンツの送信に遅延を招くおそれがある。
In recent years, P2P communication has been actively performed, and this is partly due to an increase in the amount of uplink traffic (at the time of data transmission) of each terminal device, which was not so much conventionally. In order to cope with this, the number of ISPs that perform measures such as limiting the amount of communication data per predetermined period (for example, one day) (especially when sending data) is increasing.
(For example, see http://www.ocn.ne.jp/info/rules/upload/)
In a communication karaoke system that uses P2P communication, if a karaoke device that cannot transmit content occurs due to a conflict with the traffic limit, the number of karaoke devices that can transmit content in the network is reduced accordingly. become. When the number of karaoke devices that can transmit content decreases, content transmission requests are concentrated on the remaining karaoke devices, which may cause delay in content transmission due to an increase in communication load.

また、カラオケ装置が持つストレージ容量には限界があるため、最新のコンテンツを取得するための記憶容量を確保するために、各カラオケ装置は独自に決定した保有優先度の低いコンテンツを順次削除している。そのため、ネットワーク内の各カラオケ装置が保有しているコンテンツには偏りが生じており、特定のカラオケ装置にコンテンツの取得要求が集中しやすい要因になっている。   In addition, since the storage capacity of karaoke devices is limited, each karaoke device deletes content with a low holding priority in order to secure storage capacity for acquiring the latest content. Yes. Therefore, there is a bias in the content held by each karaoke device in the network, which is a factor that tends to concentrate content acquisition requests on a specific karaoke device.

さらに、1つのコンテンツファイルを多数に分割して複数のカラオケ装置から同時並行して取得する場合、送信速度の速いカラオケ端末に分割ファイルの取得要求が集中し、送信データ量が上限量に達しやすい傾向にある。これは、送信速度の遅いカラオケ装置から分割ファイルを取得している間に、送信速度の速いカラオケ端末からの分割ファイルの取得が先に終了し、次の分割ファイルも引き続き送信速度の速いカラオケ装置から取得することになるからである。   Further, when one content file is divided into a large number and acquired simultaneously from a plurality of karaoke apparatuses, the requests for acquiring the divided files are concentrated on a karaoke terminal having a high transmission speed, and the amount of transmission data tends to reach the upper limit. There is a tendency. This is because while acquiring a divided file from a karaoke device with a low transmission speed, acquisition of the divided file from the karaoke terminal with a high transmission speed ends first, and the next divided file continues to have a high transmission speed. Because it will be obtained from.

このような状況において、ネットワーク内でコンテンツを送信できるカラオケ装置の数が減少する事態が更に悪化し、コンテンツの送信に支障を来たすことになればカラオケサービスとって致命的である。そのため、送信データ量に制限が設けられた条件下では、各カラオケ装置の送信データ量が制限値を超えないように制御する必要がある。なお、このような問題は、カラオケ装置に限らずP2P方式のファイル送信を行う様々な端末装置においても同様である。   In such a situation, the situation where the number of karaoke apparatuses capable of transmitting content in the network decreases further deteriorates, and if the content transmission is hindered, it is fatal as a karaoke service. Therefore, it is necessary to control so that the transmission data amount of each karaoke apparatus does not exceed the limit value under the condition that the transmission data amount is limited. Such a problem is not limited to a karaoke apparatus, but also applies to various terminal apparatuses that perform P2P file transmission.

本発明は、上記課題を解決するためになされており、P2P通信によって端末装置間でファイルを送受信するファイル送信システムにおいて、ファイルの送信に係る送信データ量が所定の上限量を超えないように制御可能な技術を提供することを目的とする。   The present invention has been made to solve the above problems, and in a file transmission system that transmits and receives files between terminal devices by P2P communication, control is performed so that the amount of transmission data related to file transmission does not exceed a predetermined upper limit amount. The aim is to provide possible technology.

上記目的を達成するためになされた請求項1に記載の端末装置は、ネットワークを介して相互に接続された複数の端末装置間でファイルを送受信するファイル送信システムを構成する端末装置のうち、ファイル要求側の端末装置に対して、要求されたファイルを送信するファイル送信側の端末装置である。   The terminal device according to claim 1, which has been made to achieve the above object, is a file among terminal devices constituting a file transmission system that transmits and receives files between a plurality of terminal devices connected to each other via a network. This is a file transmission-side terminal device that transmits a requested file to a request-side terminal device.

なお、本発明においては、ファイル要求側の端末装置が、1つのファイルをそのファイルの取得先となる複数の端末装置の数より多い複数のブロックに分割した分割ファイル単位で、その取得先の複数の端末装置からそれぞれ別の分割ファイルを同時並行して取得し、そのファイルの取得が完了するまでそれらの端末装置から分割ファイルの取得を繰返すことを前提としている。   In the present invention, the terminal device on the file request side divides one file into a plurality of blocks that are more than the number of the plurality of terminal devices from which the file is acquired, and a plurality of acquisition destinations. It is assumed that different divided files are acquired from the respective terminal devices in parallel, and the acquisition of the divided files from these terminal devices is repeated until the acquisition of the files is completed.

一方、ファイル送信側の端末装置は、記憶手段と、送信速度設定手段と、送信手段とを備える。
記憶手段は、端末装置に対して所定期間単位で設定されている送信可能なデータの上限量から、現在の期間中に自端末装置が他の端末装置に対して送信した分割ファイルのデータ量を減じた、当期間中に送信可能な残りデータ量を記憶する。なお、ここでいう所定期間とは、例えば、1日や1週間、1ヶ月といった日数単位の期間でもよいし、〇時間といった、時間単位の期間であってもよい。
On the other hand, the terminal device on the file transmission side includes storage means, transmission speed setting means, and transmission means.
The storage means calculates the data amount of the divided file transmitted from the terminal device to the other terminal device during the current period from the upper limit amount of transmittable data set for the terminal device in a predetermined period unit. The reduced amount of remaining data that can be transmitted during the current period is stored. In addition, the predetermined period here may be a period of days such as one day, one week, or one month, or may be a period of time units such as 0 hours.

送信速度設定手段は、記憶手段に記憶している残りデータ量が小さくなる程、規定の送信速度に対して送信速度が遅くなるように、かつ、現在の期間が満了するまでの残り時間が少なくなる程、規定の送信速度に対して送信速度が速くなるように分割ファイルの送信速度を設定する。   The transmission speed setting means decreases the remaining data amount stored in the storage means so that the transmission speed becomes slower than the specified transmission speed and the remaining time until the current period expires. The transmission speed of the divided file is set so that the transmission speed is faster than the specified transmission speed.

送信手段は、ファイル要求側の端末装置から受信した取得要求に応じて、当該取得要求に該当の分割ファイルを、送信速度設定手段により設定した送信速度で当該ファイル要求側の端末装置に対して送信する。   In response to the acquisition request received from the file request side terminal device, the transmission means transmits the divided file corresponding to the acquisition request to the file request side terminal device at the transmission speed set by the transmission speed setting means. To do.

このように構成されたファイル送信側の端末装置によれば、所定期間内に送信可能な残りデータ量が多い端末装置ではデータの送信速度が速くなり、少ない端末装置では送信速度が遅くなるように制御される。1つのファイルを多数に分割し、複数の分割ファイルを同時並行して取得するシステムでは、通信速度が速い端末に分割ファイルの取得要求が集中する傾向にある。そこで、残りデータ量が少なくなった端末装置の送信速度を低減することで、分割ファイルの取得要求を他の端末装置へ分散させることができる。これにより、複数の端末装置間で保有するファイルに偏りがある場合でも、特定の端末装置だけに取得要求が集中して送信データ量が上限量に達してしまうことを防止できる。結果として、ファイル送信システム全体で各端末装置間の送信データ量が平滑化され、ファイルを送信可能な端末装置の数を維持できる。   According to the terminal device on the file transmission side configured in this way, the terminal device with a large amount of remaining data that can be transmitted within a predetermined period has a high data transmission speed, and the terminal device with a small amount of data has a low transmission speed. Be controlled. In a system in which a single file is divided into a large number and a plurality of divided files are acquired in parallel, requests for acquiring the divided files tend to be concentrated on terminals having a high communication speed. Therefore, by reducing the transmission speed of the terminal device whose remaining data amount has decreased, it is possible to distribute divided file acquisition requests to other terminal devices. As a result, even when there are biases among files held among a plurality of terminal devices, it is possible to prevent the amount of transmission data from reaching the upper limit amount due to concentration of acquisition requests only in specific terminal devices. As a result, the amount of transmission data between the terminal devices is smoothed in the entire file transmission system, and the number of terminal devices that can transmit files can be maintained.

一方、現在の期間が満了するまでの残り時間が少なくなる程、分割ファイルの送信速度が速くなるように制御される。このようにすることで、残りデータ量の僅かな端末装置において所定期間の更新間際で送信速度が極端に遅くなることがない。また、現在の期間が満了し次の期間に更新されれば再び上限量まで送信可能になるため、その期間内での上限量を超えない範囲でなるべく多くのデータを速く送信できるようにするのが望ましい。そのためにも、残り時間が減少すると共に送信速度を速くする制御が有効である。   On the other hand, as the remaining time until the current period expires, the transmission speed of the divided file is controlled to increase. By doing in this way, the transmission speed does not become extremely slow in the terminal device with a small remaining data amount just before the update for a predetermined period. Also, if the current period expires and it is updated to the next period, it will be possible to transmit up to the upper limit amount again, so that as much data as possible can be transmitted as quickly as possible within the range not exceeding the upper limit amount within that period. Is desirable. For this purpose, control for reducing the remaining time and increasing the transmission speed is effective.

さらに、請求項2に記載のように、所定期間が満了したときに記憶手段に記憶している残りデータ量を上限量にリセットするように構成するとよい(リセット手段)。例えば、1日に送信できるデータ量の上限値が設定されている場合、日付が更新すれば前日までに送信したデータ量に関わらず、次の日には0から上限値までのデータ量の送信が認められることになる。そこで、所定期間(例えば、日付単位や時間単位)の満了と共に、残りデータ量を上限量にリセットすることで、送信可能な残りデータ量を適切に管理できる。   Further, as described in claim 2, it is preferable that the remaining data amount stored in the storage means is reset to the upper limit amount when the predetermined period has expired (reset means). For example, if an upper limit is set for the amount of data that can be sent in one day, if the date is updated, the data amount from 0 to the upper limit will be sent on the next day regardless of the amount of data sent up to the previous day. Will be accepted. Therefore, the remaining data amount that can be transmitted can be appropriately managed by resetting the remaining data amount to the upper limit upon expiration of a predetermined period (for example, date unit or time unit).

さらに、請求項3に記載のように、現在の期間中に送信した分割ファイルの総データ量が上限量に達した場合、分割ファイルを送信しないように構成するとよい。このように構成することで、上限量を超えた状態での分割ファイルの送信を防止できる。 Further, as described in claim 3, or the total data size of the divided files transmitted during the current period when it reaches the upper limit amount, and configured not to transmit the divided file. With this configuration, it is possible to prevent transmission of the divided file in a state where the upper limit amount is exceeded.

つぎに、請求項4に記載のファイル送信システムは、請求項1に記載のファイル要求側の端末装置及びファイル送信側の機能を持つ複数の端末装置がネットワークを介して相互に接続されてなるファイル送信システムである。このファイル送信システムによれば、上述した効果を得ることができる。   Next, a file transmission system according to claim 4 is a file in which the file request side terminal device according to claim 1 and a plurality of terminal devices having file transmission side functions are connected to each other via a network. It is a transmission system. According to this file transmission system, the above-described effects can be obtained.

ファイル送信システム1の概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration of a file transmission system 1. FIG. P2Pによるファイル送信の様子を模式的に示す説明図である。It is explanatory drawing which shows typically the mode of the file transmission by P2P. ファイルの分割取得方法を模式的に示す説明図である。It is explanatory drawing which shows the division | segmentation acquisition method of a file typically. ファイル取得処理の手順を示すフローチャート図である。It is a flowchart figure which shows the procedure of a file acquisition process. ファイル送信処理の手順を示すフローチャート図である。It is a flowchart figure which shows the procedure of a file transmission process. 送信速度の算出例を示す説明図である。It is explanatory drawing which shows the example of calculation of transmission speed.

以下、本発明の一実施形態を図面に基づいて説明する。なお、本発明は下記の実施形態に何ら限定されるものではなく様々な態様にて実施することが可能である。
[ファイル送信システム1の構成の説明]
図1(a)に示すように、ファイル送信システム1は、複数の端末装置4a,4b,4c,4d,4eがインターネット200を介して互いに通信可能に接続されることによって形成されている。なお、以下の説明において、端末装置4a,4b,4c,4d,4eを特に区別しない場合は、単に端末装置4と表記する。また、図1においては、説明の便宜上、5台の端末装置4がファイル送信システム1に接続されている構成を示すが、更に多くの端末装置4が接続されていてもよい。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In addition, this invention is not limited to the following embodiment at all, and can be implemented in various aspects.
[Description of Configuration of File Transmission System 1]
As shown in FIG. 1A, the file transmission system 1 is formed by connecting a plurality of terminal devices 4a, 4b, 4c, 4d, and 4e to each other via the Internet 200 so that they can communicate with each other. In the following description, the terminal devices 4a, 4b, 4c, 4d, and 4e are simply expressed as the terminal device 4 unless otherwise distinguished. 1 shows a configuration in which five terminal devices 4 are connected to the file transmission system 1 for convenience of explanation, more terminal devices 4 may be connected.

このファイル送信システム1は、インターネット接続端末である各端末装置4間で、互いにコンテンツ等のファイルを送受信することでファイルを共有できるP2P方式のネットワークシステムになっている。また、本実施形態では、端末装置4同士によるファイルの送受信について、所定期間(例えば、日数単位や時間単位)あたりに各端末装置4が送信できるファイルの送信データ量に上限値が設けられていることを想定している。これは、各端末装置4による送信データ量が過大になることで、公共回線の通信帯域を占有してしまわないようにするための措置である。そのため、各端末装置4は、現在の期間中に他の端末装置4に対して送信可能なファイルの残りデータ量(期間ごとの送信データ量の上限量からその期間中に送信したファイルのデータ量を差引いた値)を記憶・管理している。   The file transmission system 1 is a P2P network system that can share files by transmitting and receiving files such as contents between the terminal devices 4 that are Internet connection terminals. Moreover, in this embodiment, regarding the transmission / reception of files between the terminal devices 4, an upper limit is provided for the transmission data amount of the files that can be transmitted by each terminal device 4 per predetermined period (for example, the number of days or the time unit). Assumes that. This is a measure for preventing the communication bandwidth of the public line from being occupied due to an excessive amount of data transmitted by each terminal device 4. Therefore, each terminal device 4 has a remaining data amount of a file that can be transmitted to another terminal device 4 during the current period (the amount of data of a file transmitted during the period from the upper limit amount of the transmission data amount for each period). Is stored and managed.

端末装置4は、ユーザが利用するコンテンツ等のファイルを各自のHDD44に保有しており、この保有するファイルを読込んで各種処理を実行する情報処理装置である。また、各端末装置4には、データを送受信する機器を判別するための識別情報として、固有のシリアル番号(例えば、製造番号等)と、IPアドレスとがそれぞれ割当てられている。   The terminal device 4 is an information processing device that stores files such as contents used by the user in its own HDD 44 and executes various processes by reading the stored files. Each terminal device 4 is assigned a unique serial number (for example, a manufacturing number) and an IP address as identification information for identifying a device that transmits and receives data.

端末装置4は、実行するファイルを自ら保有するための記憶装置であるHDD44を備えているが、このHDD44の記憶容量はファイル送信システム1において流通する全てのファイルを保有するには小さいものである。そのため、個々の端末装置4は一部のファイルしか保有していない。そこで、ファイル送信システム1に接続している複数の端末装置4同士でファイルを共有することで、各端末装置4で全てのファイルを利用可能にしている。   The terminal device 4 includes an HDD 44 that is a storage device for holding a file to be executed by itself. The storage capacity of the HDD 44 is small enough to hold all the files distributed in the file transmission system 1. . Therefore, each terminal device 4 has only a part of files. Therefore, by sharing the file among the plurality of terminal devices 4 connected to the file transmission system 1, all the files can be used in each terminal device 4.

具体的には、端末装置4は、1つのファイルを複数のブロックに分割した分割ファイル単位で、複数の端末装置4(サーバ)から同時並行してファイルを取得するクライアント機能と、他の端末装置4(クライアント)からの分割ファイル取得要求に応じて、当該要求に対応する分割ファイルを送信するサーバ機能とを併せ持つ。これらのクライアント機能及びサーバ機能による処理の詳細な内容については後述する。   Specifically, the terminal device 4 is a divided file unit obtained by dividing one file into a plurality of blocks, and a client function that simultaneously acquires a file from a plurality of terminal devices 4 (servers), and another terminal device 4 (client) and a server function for transmitting a divided file corresponding to the request in response to the divided file acquisition request. Detailed contents of processing by these client functions and server functions will be described later.

つぎに、図1(b)は、端末装置4の概略構成を示すブロック図である。
端末装置4は、ハードウェア構成としてCPU41、RAM42、ROM43、HDD44、操作部45、ネットワーク通信部46等を備える。
Next, FIG. 1B is a block diagram illustrating a schematic configuration of the terminal device 4.
The terminal device 4 includes a CPU 41, a RAM 42, a ROM 43, an HDD 44, an operation unit 45, a network communication unit 46, and the like as a hardware configuration.

このうち、CPU41は、RAM42やROM43に記憶されたプログラムやデータに従って、端末装置4各部に対する制御及び各種演算を実行する装置で、後述するクライアント機能及びサーバ機能に関する各種処理は、このCPU41によって実行される。RAM42は、CPU41から直接アクセスされるメインメモリ等として利用される記憶装置である。自端末装置4の残りデータ量等は、このRAM42において保存される。ROM43は、不揮発性の記憶装置であり、BIOSや通常であれば更新されない読み出し専用のデータ等を記憶している。HDD44は、様々なコンテンツに関するファイルやプログラム等の各種データを保存しておくための装置である。操作部45は、ユーザからの各種指示を入力するための入力装置であり、複数のキースイッチ等によって構成される。ネットワーク通信部46は、端末装置4をインターネット200に接続して外部と通信を行うための通信インタフェースである。   Among these, the CPU 41 is a device that executes control and various operations for each part of the terminal device 4 in accordance with programs and data stored in the RAM 42 and the ROM 43, and various processes related to client functions and server functions described later are executed by the CPU 41. The The RAM 42 is a storage device used as a main memory or the like that is directly accessed from the CPU 41. The remaining data amount of the terminal device 4 is stored in the RAM 42. The ROM 43 is a nonvolatile storage device, and stores BIOS, read-only data that is not normally updated, and the like. The HDD 44 is a device for storing various data such as files and programs related to various contents. The operation unit 45 is an input device for inputting various instructions from the user, and includes a plurality of key switches and the like. The network communication unit 46 is a communication interface for connecting the terminal device 4 to the Internet 200 and communicating with the outside.

[ファイルの分割取得の説明]
つぎに、ファイル通信システム1における端末装置4間の通信状況について、図2に基づいて説明する。
[Explanation of file division acquisition]
Next, the communication status between the terminal devices 4 in the file communication system 1 will be described with reference to FIG.

図2(a)は、端末装置4aがクライアントとしてファイルAを取得する事例を示している。この事例では、端末装置4aは、ファイルAを保有している3台の端末装置4c,4d、4e(サーバ)から、同時並行してファイルAを取得する。このとき、端末装置4aは、ファイルAをそのファイルの取得先となる3台のサーバの数より多い多数のブロックに分割した分割ファイル単位で、各サーバからそれぞれ別の分割ファイルを同時並行して取得する。そして、1つの分割ファイルの取得が終了する度に、空いたサーバから次の分割ファイルの取得を開始し、ファイルAを構成する全ての分割ファイルの取得が完了するまで、この動作を繰返す。   FIG. 2A shows an example in which the terminal device 4a acquires the file A as a client. In this example, the terminal device 4a simultaneously acquires the file A from the three terminal devices 4c, 4d, and 4e (servers) that hold the file A. At this time, the terminal device 4a simultaneously divides each divided file from each server in parallel in units of divided files obtained by dividing the file A into a larger number of blocks than the number of three servers from which the file is acquired. get. Then, every time acquisition of one divided file is completed, acquisition of the next divided file is started from the free server, and this operation is repeated until acquisition of all the divided files constituting the file A is completed.

図2(b)は、端末装置4aがファイルAを取得後、つぎに端末装置4bがクライアントとしてファイルAを取得する事例を示している。端末装置4bは、ファイルAを保有している3台の端末装置4a,4d、4e(サーバ)から、同時並行してファイルAを取得する。なお、この事例では、図2(a)においてクライアントであった端末装置4aが、ファイルAを保有するに至ることで、今度はファイルAを送信する側のサーバとして機能している。端末装置4bは、ファイルAをそのファイルの取得先となる3台のサーバの数より多い多数のブロックに分割した分割ファイル単位で、各サーバからそれぞれ別の分割ファイルを同時並行して取得する。そして、1つの分割ファイルの取得が終了する度に、空いたサーバから次の分割ファイルの取得を開始し、ファイルAを構成する全ての分割ファイルの取得が完了するまで、この動作を繰返す。   FIG. 2B shows a case where the terminal device 4a acquires the file A and then the terminal device 4b acquires the file A as a client. The terminal device 4b acquires the file A from the three terminal devices 4a, 4d, and 4e (servers) that hold the file A at the same time. In this case, since the terminal device 4a, which was a client in FIG. 2A, has the file A, it now functions as a server on the side that transmits the file A. The terminal device 4b acquires different divided files from each server in parallel in divided file units obtained by dividing the file A into a larger number of blocks than the number of three servers from which the file is acquired. Then, every time acquisition of one divided file is completed, acquisition of the next divided file is started from the free server, and this operation is repeated until acquisition of all the divided files constituting the file A is completed.

つぎに、分割ファイルを送信するサーバ側の端末装置4の送信速度と送信ブロック数の関係について、図3に基づいて説明する。図3では、クライアント側の端末装置4が3台のサーバ(端末装置4c,4d,4e)から同時並行してファイルAの分割ファイルを取得する様子を、ファイルA全体を模した方形枠を小型のブロックで順次埋めていくイメージで模式化している。このブロック1つ1つが、ファイルAの個々の分割ファイルになっている。また、説明の便宜上、分割ファイルの送信元ごとに図中に示すブロックのハッチングの模様を替えている。なお、図3に示す事例では、サーバ側の各端末装置4のデータの送信速度ついて、端末装置4dが最も速く、次いで端末装置4e、端末装置4cが最も遅くなっているものと想定する。   Next, the relationship between the transmission speed of the terminal device 4 on the server side that transmits the divided file and the number of transmission blocks will be described with reference to FIG. In FIG. 3, the client side terminal device 4 obtains a divided file of file A from three servers (terminal devices 4 c, 4 d, 4 e) simultaneously in parallel. It is modeled by the image that fills sequentially with blocks. Each block is an individual divided file of the file A. For convenience of explanation, the hatching pattern of the blocks shown in the figure is changed for each transmission source of the divided files. In the example shown in FIG. 3, it is assumed that the terminal device 4d is the fastest, and then the terminal device 4e and the terminal device 4c are the slowest, regarding the data transmission speed of each terminal device 4 on the server side.

図3(a)の段階は、3台のサーバからファイルAの分割取得を同時に開始した段階である。この段階では、クライアントは、3台のサーバからそれぞれ最初の分割ファイルを取得している最中である。やがて、図3(b)に示すように、端末装置4d(通信速度:最速)からの分割ファイルの受信が最初に終了すると、すぐに、この端末装置4dから次の分割ファイルの取得を開始する。このように、同時並行して分割ファイルの取得を行う複数のサーバの中から、1つの分割ファイルの取得が済んだサーバから順次、次の分割ファイルの取得を開始する動作を繰返すことで、各サーバから次々に分割ファイルを取得していく。よって、各サーバの送信速度がそれぞれ異なる場合、必然的に送信する分割ファイルのブロック数、すなわち送信データ量に差が生じることになる。   The stage in FIG. 3A is a stage in which file A divisional acquisition is started simultaneously from three servers. At this stage, the client is in the process of acquiring the first divided file from each of the three servers. Eventually, as shown in FIG. 3 (b), when reception of the divided file from the terminal device 4d (communication speed: highest speed) ends first, acquisition of the next divided file from the terminal device 4d is started immediately. . In this way, by repeating the operation of starting acquisition of the next divided file sequentially from the server that has acquired one divided file from among the plurality of servers that acquire the divided file in parallel, Get the split files one after another from the server. Therefore, when the transmission speeds of the servers are different from each other, a difference occurs in the number of divided file blocks to be transmitted, that is, the amount of transmission data.

そして、図3(c)に示すとおり、14個目の分割ファイルの受信まで到達した時点で、端末装置4cの送信ブロック数が2、端末装置4dの送信ブロック数が8、端末装置4eの送信ブロック数が4となっている。この数値はほんの一例に過ぎないが、サイズの大きなファイルであれば、送信速度の違いによって各サーバの送信データ量にかなりの差が出る可能性が十分にある。このように、通信速度の速い端末装置4には分割ファイルの送信要求が集中する傾向にあり、分割ファイルを送信する際の通信速度を何ら調整しないでおくと、所定期間内における送信データ量が上限量に達しやすい。このような事態を回避するため、本実実施形態の端末装置4では、残りデータ量及び所定期間の残り時間に応じて、分割ファイル送信時における送信速度を調節する機能を備えている。   Then, as shown in FIG. 3C, when the reception of the 14th divided file is reached, the number of transmission blocks of the terminal device 4c is 2, the number of transmission blocks of the terminal device 4d is 8, and the transmission of the terminal device 4e. The number of blocks is 4. This number is only an example, but if the file is large, there is a possibility that there will be a considerable difference in the amount of data transmitted by each server due to the difference in transmission speed. Thus, there is a tendency that divided file transmission requests are concentrated on the terminal device 4 having a high communication speed, and if the communication speed at the time of transmitting the divided file is not adjusted at all, the amount of transmission data within a predetermined period is increased. It is easy to reach the upper limit. In order to avoid such a situation, the terminal device 4 of the present embodiment has a function of adjusting the transmission speed at the time of divided file transmission according to the remaining data amount and the remaining time of the predetermined period.

[クライアント処理の説明]
つぎに、端末装置4がクライアント機能として実行する処理について、図4に基づいて説明する。
[Description of client processing]
Next, processing executed by the terminal device 4 as a client function will be described with reference to FIG.

図4は、端末装置4のCPU41が実行するクライアント処理の手順を示すフローチャートである。この処理は、ユーザによりファイルの取得を指示された場合等に実行される処理である。   FIG. 4 is a flowchart illustrating a procedure of client processing executed by the CPU 41 of the terminal device 4. This process is a process executed when a user gives an instruction to acquire a file.

端末装置4のCPU41は、S100において、取得対象のファイルの送信元(サーバ)となる端末装置4をネットワーク上から検索する。そして、検索された候補の中から所定数n台の送信元の端末装置4を決定する(S101)。なお、ファイルの送信元となる端末装置4を決定する方法として、例えば、下記(1)〜(3)に記載の手法がある。   In S100, the CPU 41 of the terminal device 4 searches the network for the terminal device 4 that is the transmission source (server) of the file to be acquired. Then, a predetermined number n of source terminal devices 4 are determined from the retrieved candidates (S101). In addition, as a method of determining the terminal device 4 that is a file transmission source, for example, there are methods described in (1) to (3) below.

(1)ファイル送信システム1に参加している各端末装置4と、各端末装置4が保有するファイルの一覧を一元的に記憶・管理する管理装置(図示せず)をインターネット200上に設けておく。ファイルの取得を要求するクライアントの端末装置4は、取得対象のファイルを保有する端末装置4のネットワーク上での位置(IPアドレス等)を管理装置に問合せる。管理装置は、記憶している端末装置4の中から、問合せに該当の送信元1〜nのIPアドレス等をクライアントの端末装置4に対して通知する。クライアントの端末装置4は、管理装置からの通知に基づいて、ファイルの送信元となる端末装置4を決定する。   (1) Each terminal device 4 participating in the file transmission system 1 and a management device (not shown) for centrally storing and managing a list of files held by each terminal device 4 are provided on the Internet 200. deep. The client terminal device 4 requesting the file acquisition inquires of the management device about the location (IP address or the like) of the terminal device 4 that holds the file to be acquired on the network. The management device notifies the client terminal device 4 of the IP addresses of the transmission sources 1 to n corresponding to the inquiry from the stored terminal devices 4. Based on the notification from the management device, the client terminal device 4 determines the terminal device 4 to be the file transmission source.

(2)ファイル送信システム1に参加している各端末装置4が、ファイルの存在場所をファイル名と、そのファイルを保有する端末装置4の識別情報(シリアル番号、IPアドレス等)と対応付けたテーブルとして、各個の記憶手段に記憶しておいてもよい。この場合、クライアント側の端末装置4は、自端末装置4が記憶しているテーブルから取得対象のファイルを保有する端末装置4のIPアドレス等を抽出することで、ファイルの送信元1〜nを検索できる。クライアントの端末装置4は、このテーブルからの検索結果に基づいて、ファイルの送信元となる端末装置4を決定する。   (2) Each terminal device 4 participating in the file transmission system 1 associates the location of the file with a file name and identification information (serial number, IP address, etc.) of the terminal device 4 that holds the file. You may memorize | store in each memory | storage means as a table. In this case, the client-side terminal device 4 extracts the file transmission sources 1 to n by extracting the IP address and the like of the terminal device 4 that holds the file to be acquired from the table stored in the terminal device 4 itself. Searchable. The client terminal device 4 determines the terminal device 4 to be a file transmission source based on the search result from this table.

(3)特許文献1の段落[0062]〜[0068]に記載の検索方法を用いて、送信元のサーバを決定することもできる。
上記(1)〜(3)の手法は、何れも公知であるので、詳細な説明等を図示していない。
(3) The server of the transmission source can be determined using the search method described in paragraphs [0062] to [0068] of Patent Document 1.
Since the methods (1) to (3) are all known, a detailed description or the like is not shown.

図4のフローチャートの説明に戻る。つづいて、S102〜S104のループ処理は、S101で決定した所定数n台の送信元の端末装置4各個に対して、n台分のループ処理をそれぞれ同時並行して実行する。   Returning to the flowchart of FIG. Subsequently, in the loop processing of S102 to S104, the loop processing for n units is simultaneously executed in parallel for each of the predetermined number n of transmission source terminal devices 4 determined in S101.

S102では、通信対象の送信元の端末装置4に対して、取得対象のファイルを送信元のサーバの数nよりも多数のブロックに分割した分割ファイルのうち、未受信のブロックの送信を要求する。つぎに、S103では、要求に応じて送信元の端末装置4から送信されたブロックデータを受信する。ブロックデータの受信完了後、全てのブロックの取得が完了している否かを判定する(S104)。判定の結果、未受信のブロックがある場合(S104:NO)、S102の処理へ戻り、再び同じ送信元の端末装置4に対して未受信のブロックの送信を要求する。一方、全てのブロックの取得が完了している場合(S104:YES)、当該本ループ処理を終了する。   In S102, the terminal device 4 that is the transmission target of the communication target is requested to transmit an unreceived block among the divided files obtained by dividing the file to be acquired into a larger number of blocks than the number n of the transmission source servers. . Next, in S103, the block data transmitted from the transmission source terminal device 4 is received in response to the request. After completion of reception of block data, it is determined whether or not acquisition of all blocks is complete (S104). If there is an unreceived block as a result of the determination (S104: NO), the process returns to S102, and the terminal device 4 of the same transmission source is requested to transmit an unreceived block again. On the other hand, when acquisition of all the blocks has been completed (S104: YES), the loop processing ends.

[サーバ処理の説明]
つぎに、端末装置4がサーバ機能として実行する処理について、図5,6に基づいて説明する。
[Description of server processing]
Next, processing executed by the terminal device 4 as a server function will be described with reference to FIGS.

図5は、端末装置4のCPU41が実行するサーバ処理の手順を示すフローチャートである。この処理は、端末装置4の稼働中において常時実行される処理である。
端末装置4のCPU41は、まずS200において、RAM42の所定領域に格納されている残りデータ量を所定期間(ここでは1日間と想定する)ごとの上限量に初期化する。つぎに、クライアント側の端末装置4から分割ファイルの送信要求があるか否かを判定する(S201)。クライアント側の端末装置4から分割ファイルの送信要求を受信していない場合は(S201:NO)、この処理を繰返す。
FIG. 5 is a flowchart illustrating a server process executed by the CPU 41 of the terminal device 4. This process is a process that is always executed while the terminal device 4 is in operation.
First, in S200, the CPU 41 of the terminal device 4 initializes the remaining data amount stored in a predetermined area of the RAM 42 to an upper limit amount for each predetermined period (here, assumed to be one day). Next, it is determined whether or not there is a split file transmission request from the client side terminal device 4 (S201). If a split file transmission request is not received from the client side terminal device 4 (S201: NO), this process is repeated.

そして、クライアント側の端末装置4から分割ファイルの送信要求を受信した場合(S201:YES)、前回分割ファイルを送信した時点から日付が更新しているか否かを判定する(S202)。判定の結果、日付が更新していない場合は(S202:NO)、S204の処理へ移行する。一方、日付が更新している場合は(S202:YES)、RAM42の所定領域に記憶している残りデータ量を1日間の上限量にリセットして(S203)、S204の処理へ移行する。   When a divided file transmission request is received from the client side terminal device 4 (S201: YES), it is determined whether or not the date has been updated since the last time the divided file was transmitted (S202). As a result of the determination, if the date has not been updated (S202: NO), the process proceeds to S204. On the other hand, if the date is updated (S202: YES), the remaining data amount stored in the predetermined area of the RAM 42 is reset to the upper limit amount for one day (S203), and the process proceeds to S204.

S204では、分割ファイルを送信する際の送信速度(β)を算出する。送信速度(β)は、規定の通信速度をαとして、次式により算出する。
β=α×(残りデータ量÷上限量)×(所定期間の時間長÷現在の期間の残り時間)
上記式によれば、所定期間単位の上限量に対する残りデータ量の比率が小さくなる程、規定の送信速度(α)に対して送信速度(β)が遅くなり、かつ、現在の期間が満了するまでの残り時間が少なくなる程、規定の送信速度(α)に対して送信速度(β)が速くなる。また、上記式において、所定期間を1日間とし、1日の経過時間を秒数で計時する場合、日付が更新してからの経過秒数をnowとして通信速度(β)を次式により算出することができる。
β=α×(残りデータ量÷上限量)×(86400÷(86400−now))
つづいて、S205では、要求された分割ファイルをS204で算出した送信速度(β)によってクライアントの端末装置4に対して送信する。ただし、当日中に送信した分割ファイルの総データ量が1日間の上限量に達している場合、すなわち、残りデータ量が0の場合、それ以上分割ファイルを送信しない。
In S204, the transmission speed (β) for transmitting the divided file is calculated. The transmission speed (β) is calculated by the following equation, where α is a prescribed communication speed.
β = α × (remaining data amount ÷ upper limit amount) × (time length of the specified period ÷ remaining time of the current period)
According to the above formula, as the ratio of the remaining data amount to the upper limit amount in a predetermined period unit becomes smaller, the transmission rate (β) becomes slower than the specified transmission rate (α), and the current period expires. As the remaining time until becomes shorter, the transmission speed (β) becomes higher than the prescribed transmission speed (α). Also, in the above formula, when the predetermined period is one day and the elapsed time of the day is measured in seconds, the communication speed (β) is calculated by the following formula with the elapsed seconds since the date is updated as now. be able to.
β = α × (remaining data amount ÷ upper limit amount) × (86400 ÷ (86400−now))
Subsequently, in S205, the requested divided file is transmitted to the client terminal device 4 at the transmission speed (β) calculated in S204. However, if the total data amount of the divided files transmitted during the day has reached the upper limit of one day, that is, if the remaining data amount is 0, no further divided files are transmitted.

分割ファイルの送信完了後、その分割ファイルの送信中に日付が更新したか否かを判定する(S206)。判定の結果、送信中に日付が更新していた場合(S206:YES)、RAM42の所定領域に記憶している残りデータ量を1日間の上限量にリセットする(S207)。つづいて、送信した分割ファイルのデータ量のうち、日付変更後に送信した分の送信データ量を残りデータ量から減算し(S208)、S201の処理へ戻る。一方、分割ファイルの送信中に日付が更新していない場合(S206:NO)、今回送信した分割ファイルのデータ量を残りデータ量から減算し(S209)、S201の処理へ戻る。   After the transmission of the divided file is completed, it is determined whether or not the date is updated during the transmission of the divided file (S206). As a result of the determination, if the date is updated during transmission (S206: YES), the remaining data amount stored in the predetermined area of the RAM 42 is reset to the upper limit amount for one day (S207). Subsequently, the transmission data amount transmitted after the date change is subtracted from the remaining data amount in the data amount of the transmitted divided file (S208), and the process returns to S201. On the other hand, if the date has not been updated during transmission of the divided file (S206: NO), the data amount of the divided file transmitted this time is subtracted from the remaining data amount (S209), and the processing returns to S201.

なお、図5のフローチャートに示す実施形態では、所定期間を1日間と想定した事例について説明したが、1日間に限らず、複数日あるいは時間単位で所定期間を設定してもよい。その場合、上述のS201やS206では、日付の更新を判定する変わりに、所定期間の満了(所定日数や時間の経過)を判定することになる。   In the embodiment shown in the flowchart of FIG. 5, the example in which the predetermined period is assumed to be one day has been described. However, the predetermined period is not limited to one day and may be set for a plurality of days or time units. In that case, in the above-described S201 and S206, instead of determining whether to update the date, the expiration of the predetermined period (determination of a predetermined number of days or time) is determined.

図6は、サーバ側の端末装置4が分割ファイルを送信するときの送信速度(β)の算出例を示す説明図である。ここでは、図6〈a〉に示すとおり、1日の送信データ量の上限量が設定されており、1日の経過時間(now)を秒数で計時する場合の通信速度(β)を算出する事例を想定している。また、1日の送信データ量の上限量を48Gbyte、規定の送信速度(α)を10Mbpsと想定している。   FIG. 6 is an explanatory diagram illustrating a calculation example of the transmission speed (β) when the terminal device 4 on the server side transmits the divided file. Here, as shown in FIG. 6 <a>, the upper limit amount of the daily transmission data amount is set, and the communication speed (β) when the elapsed time (now) of the day is measured in seconds is calculated. The case is assumed. In addition, it is assumed that the upper limit amount of the daily transmission data amount is 48 Gbytes and the prescribed transmission speed (α) is 10 Mbps.

図6の(b1)に示す事例では、日付更新から12時間(所定期間の50%)が経過した時点で、残りデータ量が24Gbyte(上限量の50%)になっている。この場合、規定の送信速度(α)に対する残りデータ量の係数が0.5になるが、残り時間の係数が2となっているため、結果、通信速度(β)は規定の送信速度(α)と等しい10Mbpsになる。   In the case shown in (b1) of FIG. 6, the remaining data amount is 24 Gbytes (50% of the upper limit amount) when 12 hours (50% of the predetermined period) have elapsed since the date update. In this case, the coefficient of the remaining data amount with respect to the specified transmission speed (α) is 0.5, but the coefficient of the remaining time is 2, and as a result, the communication speed (β) becomes the specified transmission speed (α ) Equal to 10 Mbps.

図6の(b2)に示す事例では、日付更新から12時間(所定期間の50%)が経過した時点で、残りデータ量が36Gbyte(上限量の75%)になっている。この残りデータ量は、上述の(b1)の事例より大きい値である。この場合、規定の送信速度(α)に対する残りデータ量の係数が0.75、残り時間の係数が2となっているため、結果、通信速度(β)は規定の送信速度(α)の1.5倍に相当する15Mbpsになる。このように、残り時間の比率に対して残りデータ量の比率が大きい場合には、通信速度が速くなるようになっている。   In the case shown in (b2) of FIG. 6, the remaining data amount is 36 Gbytes (75% of the upper limit amount) when 12 hours (50% of the predetermined period) have passed since the date update. This remaining data amount is larger than the above-mentioned case (b1). In this case, since the coefficient of the remaining data amount with respect to the specified transmission speed (α) is 0.75 and the coefficient of the remaining time is 2, as a result, the communication speed (β) is 1 of the specified transmission speed (α). It becomes 15 Mbps corresponding to .5 times. Thus, when the ratio of the remaining data amount is large with respect to the ratio of the remaining time, the communication speed is increased.

図6の(b3)に示す事例では、日付更新から12時間(所定期間の50%)が経過した時点で、残りデータ量が12Gbyte(上限量の25%)になっている。この残りデータ量は、上述の(b1)の事例より小さい値である。この場合、規定の送信速度(α)に対する残りデータ量の係数が0.25、残り時間の係数が2となっているため、結果、通信速度(β)は規定の送信速度(α)の0.5倍に相当する5Mbpsになる。このように、残り時間の比率に対して残りデータ量の比率が小さい場合には、通信速度が遅くなるようになっている。   In the case shown in (b3) of FIG. 6, the remaining data amount is 12 Gbytes (25% of the upper limit amount) when 12 hours (50% of the predetermined period) have passed since the date update. This remaining data amount is smaller than the above-mentioned case (b1). In this case, the coefficient of the remaining data amount with respect to the specified transmission speed (α) is 0.25, and the coefficient of the remaining time is 2, so that the communication speed (β) is 0 of the specified transmission speed (α). It becomes 5 Mbps corresponding to 5 times. As described above, when the ratio of the remaining data amount is small with respect to the ratio of the remaining time, the communication speed is reduced.

図6の(b4)に示す事例では、日付更新から18時間(所定期間の75%)が経過した時点で、残りデータ量が12Gbyte(上限量の25%)になっており、上述の(b1)の事例より、残りデータ量、残り時間共に少なくなっている。この場合、規定の送信速度(α)に対する残りデータ量の係数が0.25、残り時間の係数が4となっているため、結果、通信速度(β)は規定の送信速度(α)と等しい10Mbpsになる。このように、残りデータ量が僅かになっても、期間の残り時間が少なくなれば通信速度が維持されるようになっている。   In the case shown in (b4) of FIG. 6, when 18 hours (75% of the predetermined period) have passed since the date update, the remaining data amount is 12 Gbytes (25% of the upper limit amount), and the above-described (b1 ), The remaining data volume and remaining time are both smaller. In this case, since the coefficient of the remaining data amount with respect to the specified transmission rate (α) is 0.25 and the coefficient of the remaining time is 4, as a result, the communication speed (β) is equal to the specified transmission rate (α). 10 Mbps. Thus, even if the remaining data amount becomes small, the communication speed is maintained if the remaining time of the period decreases.

[特許請求の範囲に記載の構成との対応]
実施形態のファイル送信システム1の構成と、特許請求の範囲に記載の構成との対応は次のとおりである。端末装置4のCPU41が、特許請求範囲における送信速度設定手段、送信手段、リセット手段、及び、ファイル取得手段に相当し、RAM42が、記憶手段に相当する。
[Correspondence with configuration described in claims]
The correspondence between the configuration of the file transmission system 1 according to the embodiment and the configuration described in the claims is as follows. The CPU 41 of the terminal device 4 corresponds to a transmission speed setting unit, a transmission unit, a reset unit, and a file acquisition unit in the claims, and the RAM 42 corresponds to a storage unit.

[効果]
上記実施形態のファイル送信システム1によれば、次のような効果を奏する。
(1)1つのファイルを多数に分割し、複数の分割ファイルを同時並行して取得するシステムでは、通信速度が速い端末に分割ファイルの取得要求が集中する傾向にある。そこで、残りデータ量が少なくなったサーバ側の端末装置4の送信速度を低減することで、分割ファイルの取得要求を他の端末装置4へ分散させることができる。これにより、複数の端末装置4間で保有するファイルに偏りがある場合でも、特定の端末装置4だけに取得要求が集中して送信データ量が上限量に達してしまうことを防止できる。結果として、ファイル送信システム1全体で各端末装置4間の送信データ量が平滑化され、ファイルを送信可能な端末装置4の数を維持できる。
[effect]
According to the file transmission system 1 of the above embodiment, the following effects can be obtained.
(1) In a system in which one file is divided into a large number and a plurality of divided files are acquired in parallel, requests for acquiring the divided files tend to be concentrated on terminals having a high communication speed. Therefore, by reducing the transmission speed of the terminal device 4 on the server side where the remaining data amount has decreased, the divided file acquisition requests can be distributed to the other terminal devices 4. As a result, even when the files held among the plurality of terminal devices 4 are biased, it is possible to prevent the acquisition requests from being concentrated only on the specific terminal device 4 and the transmission data amount from reaching the upper limit amount. As a result, the amount of transmission data between the terminal devices 4 is smoothed in the entire file transmission system 1, and the number of terminal devices 4 that can transmit files can be maintained.

また、現在の期間が満了するまでの残り時間が少なくなる程、分割ファイルの送信速度が速くなるように制御することで、残りデータ量の僅かな端末装置4において所定期間の更新間際で送信速度が極端に遅くなることがない。さらに、現在の期間が満了し次の期間に更新されれば再び上限量まで送信可能になるため、その期間内での上限量を超えない範囲でなるべく多くのデータを速く送信できるようにするのが望ましい。そのためにも、残り時間が減少すると共に送信速度を速くする制御が有効である。   Further, by controlling so that the transmission speed of the divided file becomes faster as the remaining time until the current period expires, the transmission speed immediately before the update of the predetermined period in the terminal device 4 with a small remaining data amount Will not be extremely slow. Furthermore, if the current period expires and it is updated to the next period, it will be possible to transmit again up to the upper limit amount, so that as much data as possible can be transmitted as quickly as possible without exceeding the upper limit amount within that period. Is desirable. For this purpose, control for reducing the remaining time and increasing the transmission speed is effective.

(2)例えば1日に送信できるデータ量の上限値が設定されている場合、日付が更新すれば前日までに送信したデータ量に関わらず、次の日には0から上限値までのデータ量の送信が認められることになる。そこで、所定期間(例えば、日付単位や時間単位)の満了と共に、残りデータ量を上限量にリセットすることで、送信可能な残りデータ量を適切に管理できる。   (2) For example, when the upper limit of the data amount that can be transmitted in one day is set, if the date is updated, the data amount from 0 to the upper limit value on the next day regardless of the data amount transmitted up to the previous day Will be accepted. Therefore, the remaining data amount that can be transmitted can be appropriately managed by resetting the remaining data amount to the upper limit upon expiration of a predetermined period (for example, date unit or time unit).

(3)サーバ側の端末装置4において、現在の期間中に送信した分割ファイルの総データ量が上限量に達した場合、それ以上分割ファイルを送信しないように構成したことで、上限量を超えた状態での分割ファイルの送信を防止できる。   (3) In the terminal device 4 on the server side, when the total data amount of the divided files transmitted during the current period reaches the upper limit amount, the upper limit amount is exceeded by configuring so that no further divided files are transmitted. You can prevent split files from being sent in a live state.

1…ファイル送信システム、4…端末装置、41…CPU、42…RAM、43…ROM、44…HDD、45…操作部、46…ネットワーク通信部、200…インターネット。   DESCRIPTION OF SYMBOLS 1 ... File transmission system, 4 ... Terminal device, 41 ... CPU, 42 ... RAM, 43 ... ROM, 44 ... HDD, 45 ... Operation part, 46 ... Network communication part, 200 ... Internet.

Claims (4)

複数の端末装置がネットワークを介して相互に接続され、それら複数の端末装置間でファイルを送受信するファイル送信システムを構成する複数の前記端末装置のうち、
1つのファイルをそのファイルの取得先となる複数の前記端末装置の数より多い複数のブロックに分割した分割ファイル単位で、その取得先の複数の前記端末装置からそれぞれ別の分割ファイルを同時並行して取得し、そのファイルの取得が完了するまでそれらの端末装置から分割ファイルの取得を繰返すファイル要求側の前記端末装置に対して、当該要求された分割ファイルを送信するファイル送信側の前記端末装置であって、
前記端末装置に対して所定期間単位で設定されている送信可能なデータの上限量から、現在の期間中に自端末装置が他の端末装置に対して送信した分割ファイルのデータ量を減じた、当期間中に送信可能な残りデータ量を記憶しておく記憶手段と、
前記記憶手段に記憶している残りデータ量が小さくなる程、規定の送信速度に対して送信速度が遅くなるように、かつ、現在の期間が満了するまでの残り時間が少なくなる程、前記規定の送信速度に対して送信速度が速くなるように前記分割ファイルの送信速度を設定する送信速度設定手段と、
前記ファイル要求側の端末装置から受信した取得要求に応じて、当該取得要求に該当の分割ファイルを、前記送信速度設定手段により設定した送信速度で当該ファイル要求側の端末装置に対して送信する送信手段とを備えること
を特徴とする端末装置。
Among the plurality of terminal devices that constitute a file transmission system in which a plurality of terminal devices are connected to each other via a network and transmit and receive files between the plurality of terminal devices,
In a divided file unit in which one file is divided into a plurality of blocks larger than the number of the plurality of terminal devices from which the file is acquired, separate divided files are simultaneously and simultaneously from the plurality of terminal devices from which the file is acquired The terminal device on the file transmission side that transmits the requested divided file to the terminal device on the file request side that repeats the acquisition of the divided file from those terminal devices until acquisition of the file is completed. Because
From the upper limit amount of transmittable data set for the terminal device in units of a predetermined period, the data amount of the divided file transmitted to the other terminal device by the own terminal device during the current period is reduced. Storage means for storing the remaining amount of data that can be transmitted during this period;
The smaller the amount of remaining data stored in the storage means, the slower the transmission rate with respect to the prescribed transmission rate, and the smaller the remaining time until the current period expires, Transmission speed setting means for setting the transmission speed of the divided file so that the transmission speed is higher than the transmission speed of
In response to an acquisition request received from the file requesting terminal device, a transmission for transmitting the divided file corresponding to the acquisition request to the file requesting terminal device at the transmission speed set by the transmission speed setting means A terminal device.
請求項1に記載の端末装置において、
前記所定期間が満了したときに、前記記憶手段に記憶している残りデータ量を前記上限量にリセットするリセット手段を更に備えること
を特徴とする端末装置。
The terminal device according to claim 1,
The terminal device further comprising a reset unit that resets the remaining data amount stored in the storage unit to the upper limit when the predetermined period expires.
請求項1又は請求項2に記載の端末装置において、
前記送信手段は、現在の期間中に送信した分割ファイルの総データ量が前記上限量に達した場合、分割ファイルを送信しないこと
を特徴とする端末装置。
In the terminal device according to claim 1 or 2,
It said transmission means, if the total data size of the divided files transmitted during the current period has reached the upper limit amount, the terminal apparatus characterized by not sending the split files.
複数の端末装置がネットワークを介して相互に接続され、それら複数の端末装置間でファイルを送受信するファイル送信システムであって、
前記端末装置は、
ファイルの取得に関する手段として、
1つのファイルをそのファイルの取得先となる複数の前記端末装置の数より多い複数のブロックに分割した分割ファイル単位で、その取得先の複数の前記端末装置からそれぞれ別の分割ファイルを同時並行して取得し、そのファイルの取得が完了するまでそれらの端末装置から分割ファイルの取得を繰返すファイル取得手段を備え、
ファイルの送信に関する手段として、
前記端末装置に対して所定期間単位で設定されている送信可能なデータの上限量から、現在の期間中に自端末装置が他の端末装置に対して送信した分割ファイルのデータ量を減じた、当期間中に送信可能な残りデータ量を記憶しておく記憶手段と、
前記記憶手段に記憶している残りデータ量が小さくなる程、規定の送信速度に対して送信速度が遅くなるように、かつ、現在の期間が満了するまでの残り時間が少なくなる程、前記規定の送信速度に対して送信速度が速くなるように前記分割ファイルの送信速度を設定する送信速度設定手段と、
ファイル要求側の前記端末装置から受信した分割ファイル取得要求に応じて、当該取得要求に該当の分割ファイルを、前記送信速度設定手段により設定した送信速度で当該ファイル要求側の端末装置に対して送信する送信手段とを備えること
を特徴とするファイル送信システム。
A file transmission system in which a plurality of terminal devices are connected to each other via a network and transmit / receive a file between the plurality of terminal devices,
The terminal device
As a means for obtaining files,
In a divided file unit in which one file is divided into a plurality of blocks larger than the number of the plurality of terminal devices from which the file is acquired, separate divided files are simultaneously and simultaneously from the plurality of terminal devices from which the file is acquired. File acquisition means for repeatedly acquiring the divided file from those terminal devices until the acquisition of the file is completed,
As a means for sending files,
From the upper limit amount of transmittable data set for the terminal device in units of a predetermined period, the data amount of the divided file transmitted to the other terminal device by the own terminal device during the current period is reduced. Storage means for storing the remaining amount of data that can be transmitted during this period;
The smaller the amount of remaining data stored in the storage means, the slower the transmission rate with respect to the prescribed transmission rate, and the smaller the remaining time until the current period expires, Transmission speed setting means for setting the transmission speed of the divided file so that the transmission speed is higher than the transmission speed of
In response to the divided file acquisition request received from the terminal device on the file request side, the divided file corresponding to the acquisition request is transmitted to the terminal device on the file request side at the transmission speed set by the transmission speed setting means. A file transmission system.
JP2010071867A 2010-03-26 2010-03-26 Terminal device and file transmission system Active JP5093274B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010071867A JP5093274B2 (en) 2010-03-26 2010-03-26 Terminal device and file transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010071867A JP5093274B2 (en) 2010-03-26 2010-03-26 Terminal device and file transmission system

Publications (2)

Publication Number Publication Date
JP2011205480A JP2011205480A (en) 2011-10-13
JP5093274B2 true JP5093274B2 (en) 2012-12-12

Family

ID=44881625

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010071867A Active JP5093274B2 (en) 2010-03-26 2010-03-26 Terminal device and file transmission system

Country Status (1)

Country Link
JP (1) JP5093274B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6057503B2 (en) 2011-09-21 2017-01-11 東レ・ダウコーニング株式会社 Curable silicone composition for encapsulating optical semiconductor element, method for producing resin-encapsulated optical semiconductor element, and resin-encapsulated optical semiconductor element
KR101688922B1 (en) * 2015-03-17 2016-12-22 주식회사 안랩 Method and apparatus for collecting application package file

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4861472B2 (en) * 2007-03-29 2012-01-25 パイオニア株式会社 Content distribution apparatus, content distribution method, and content distribution program

Also Published As

Publication number Publication date
JP2011205480A (en) 2011-10-13

Similar Documents

Publication Publication Date Title
US11483231B2 (en) Context-aware path computation and selection
US10484464B2 (en) Connection control device, connection control system, and non-transitory computer readable medium
JP5223480B2 (en) Content distribution method and communication terminal device
US9037657B2 (en) Systems and methods for peer-to-peer bandwidth allocation
CN105099988B (en) Method, access method and device and system for supporting gray scale to issue
EP3242463B1 (en) Content distribution method and system for mobile terminal application
CN111200657B (en) Method for managing resource state information and resource downloading system
JP2012078902A (en) Information processing apparatus, information processing method and information processing program
JP2012118709A (en) Distribution system, storage capacity decision program, and storage capacity decision method
JP5096293B2 (en) Content distribution support system, method and program
CN101888403A (en) The method and system of storage and distributing electronic content
JP5093274B2 (en) Terminal device and file transmission system
US10404781B2 (en) Flow characteristic based peer-to-peer system
JP4877107B2 (en) Terminal device and information processing program in information distribution system, and information processing method of terminal device
JP5394704B2 (en) Information communication system and software update method
KR102007981B1 (en) Management system for network quality of service based on bittorrent and service quality improvenent method using the same
JP2012078901A (en) Server device, page transmission program and page transmission method
US8312068B2 (en) Node device, information communication system, method for managing content data, and computer readable medium
Rodrigues On the optimization of BitTorrent-like protocols for interactive on-demand streaming systems
JP2011008657A (en) Content distribution system, node device, content distribution method, and node program
JP7389949B2 (en) File distribution system and file distribution program
JP2011203573A (en) Karaoke network system and centralized control device
JP5474437B2 (en) Distribution control device
JP5195794B2 (en) Information communication system, information processing apparatus, and information communication method
JP2012053206A (en) Karaoke network system and central management device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120330

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120605

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120801

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: 20120821

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120903

R150 Certificate of patent or registration of utility model

Ref document number: 5093274

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150928

Year of fee payment: 3