JP2010041084A - Method and device for generating fec data - Google Patents

Method and device for generating fec data Download PDF

Info

Publication number
JP2010041084A
JP2010041084A JP2008198262A JP2008198262A JP2010041084A JP 2010041084 A JP2010041084 A JP 2010041084A JP 2008198262 A JP2008198262 A JP 2008198262A JP 2008198262 A JP2008198262 A JP 2008198262A JP 2010041084 A JP2010041084 A JP 2010041084A
Authority
JP
Japan
Prior art keywords
fec
data
fec data
vertical
dimensional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008198262A
Other languages
Japanese (ja)
Other versions
JP5256915B2 (en
Inventor
Yoshiki Nakamatsu
芳樹 中松
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2008198262A priority Critical patent/JP5256915B2/en
Publication of JP2010041084A publication Critical patent/JP2010041084A/en
Application granted granted Critical
Publication of JP5256915B2 publication Critical patent/JP5256915B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Error Detection And Correction (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method and device for generating FEC data efficiently generating two-dimensional FEC data. <P>SOLUTION: This method for generating FEC data includes steps of: calculating a lowest common multiple L of a horizontal size of a matrix of two-dimensional FEC data requested by first to N-th terminal devices; and generating the two-dimensional FEC data respectively requested by the respective terminal devices by using a matrix for FEC data calculation where the number of media packets arranged in the horizontal direction is L. When p, k and T<SB>k</SB>denote an integer not smaller than 1 and not larger than N, an integer not smaller than 1 and not larger than L, and intermediate data for vertical FEC calculated by exclusive OR of data of media packets arranged in the vertical direction of the matrix for FEC data calculation, respectively, vertical FEC data of a q-th column of the two-dimensional FEC data requested by a p-th terminal device are calculated by expression of a step ST14 using T<SB>k</SB>. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、2次元FEC(Forward Error Correction:前方誤り訂正)データを効率的に生成するFECデータ生成方法及びFECデータ生成装置に関するものである。   The present invention relates to an FEC data generation method and an FEC data generation apparatus that efficiently generate two-dimensional FEC (Forward Error Correction) data.

図1は、従来の映像配信システムの構成を概略的に示す図である。図1において、映像配信サーバ300は、デジタル符号化された音声及び映像データをパケットに分割し、ネットワーク400を介して、複数の端末装置(例えば、端末装置1,2,3,4)に配信する。映像配信サーバ300からネットワーク400を介してデータを配信する場合、映像配信サーバ300から各端末装置までの経路でパケットロスが発生することがある。このパケットロスによって失われたパケットを各端末装置で復元する技術として、FECがある。特に、RFC2733に準拠するパリティFECは、実現が容易であり、広く普及している。   FIG. 1 is a diagram schematically showing a configuration of a conventional video distribution system. In FIG. 1, a video distribution server 300 divides digitally encoded audio and video data into packets and distributes them to a plurality of terminal devices (for example, terminal devices 1, 2, 3, 4) via a network 400. To do. When data is distributed from the video distribution server 300 via the network 400, packet loss may occur on the route from the video distribution server 300 to each terminal device. There is FEC as a technique for restoring the packet lost by this packet loss in each terminal device. In particular, parity FEC compliant with RFC 2733 is easy to implement and is widely used.

図2は、従来のFECデータの生成方法を示す図である。図2には、メディアパケット(図において、シーケンス番号01,…,100を囲む矩形で示す。)を、行(横)サイズが10パケットの行列として扱い、FECデータを生成する場合が示されている。この方法では、横方向10パケットのメディアパケットごとにFECデータを生成する。生成したFECデータは、FECパケット(図において、H1,…,H10で示す。)としてメディアパケット(シーケンス番号01,…,100)とともに映像配信サーバ300から、端末装置に配信される。また、FECがパリティFECである場合には、FECデータは、横方向10パケットのメディアパケットのデータの排他的論理和から計算される。例えば、メディアパケット(シーケンス番号01,…,10)のデータの排他的論理和から第1のFECデータ(FECパケットH1)を計算し、メディアパケット(シーケンス番号11,…,20)のデータの排他的論理和から第2のFECデータ(FECパケットH2)を計算し、以下同様の方法で、FECデータ(FECパケットH3,H4,…)を計算する。   FIG. 2 is a diagram illustrating a conventional method for generating FEC data. FIG. 2 shows a case where a media packet (indicated by a rectangle surrounding sequence numbers 01,..., 100 in the figure) is treated as a matrix having a row (horizontal) size of 10 packets and FEC data is generated. Yes. In this method, FEC data is generated for every 10 media packets in the horizontal direction. The generated FEC data is distributed from the video distribution server 300 to the terminal device together with the media packets (sequence numbers 01,..., 100) as FEC packets (indicated by H1,..., H10 in the figure). When the FEC is a parity FEC, the FEC data is calculated from the exclusive OR of the data of 10 media packets in the horizontal direction. For example, the first FEC data (FEC packet H1) is calculated from the exclusive OR of the data of the media packets (sequence numbers 01,..., 10), and the exclusion of the data of the media packets (sequence numbers 11,..., 20) is performed. The second FEC data (FEC packet H2) is calculated from the logical OR, and the FEC data (FEC packets H3, H4,...) Are calculated by the same method.

図3は、従来の2次元FECデータの生成方法を示す図である。図3には、メディアパケット(図において、シーケンス番号01,…,100を囲む矩形で示す。)を、行(横)及び列(縦)サイズが各10パケットの行列として扱い、2次元FECデータを生成する場合が示されている。2次元FECデータは、Pro−MPEGフォーラムで規定されている。2次元FECデータ生成方法においては、メディアパケットを予め縦サイズと横サイズが決められ行列として扱い、各行ごとにメディアパケットのデータの排他的論理和を計算し、各列ごとにメディアパケットのデータの排他的論理和を計算し、各行の計算結果及び各列の計算結果のそれぞれを横方向FECパケット(例えば、H1,…,H10)と縦方向FECパケット(例えば、V1,…,V10)として、端末装置に送信される。2次元FECデータを使用することによって、端末装置は同じ行のメディアパケットが2個ロスした場合であっても、ロスしたメディアパケットを縦方向FECから復元できるため、誤り訂正能力が高い。   FIG. 3 is a diagram illustrating a conventional method for generating two-dimensional FEC data. In FIG. 3, a media packet (indicated by a rectangle surrounding sequence numbers 01,..., 100 in the figure) is treated as a matrix of 10 packets in each row (horizontal) and column (vertical) size. The case of generating is shown. Two-dimensional FEC data is defined by the Pro-MPEG forum. In the two-dimensional FEC data generation method, the media packet is treated as a matrix with a predetermined vertical size and horizontal size, an exclusive OR of the media packet data is calculated for each row, and the media packet data for each column is calculated. An exclusive OR is calculated, and each of the calculation result of each row and the calculation result of each column is set as a horizontal FEC packet (for example, H1,..., H10) and a vertical FEC packet (for example, V1,..., V10), It is transmitted to the terminal device. By using the two-dimensional FEC data, the terminal device can restore the lost media packet from the vertical FEC even if two media packets in the same row are lost, and thus has high error correction capability.

一般に、映像配信サーバが同時に同じメディアパケットを複数の端末装置に配信する場合であっても、メディアパケットの適切な行列サイズは端末装置ごとに異なる。そのため、映像配信サーバにおいて、複数の端末装置に対するFECデータの計算を効率的に行なう方法の提案がある(例えば、特許文献1参照)。このFECデータの計算方法においては、累積的に送信データの排他的論理和を計算し続け、前回のFECパケット挿入時点での排他的論理和の計算値と、今回のFECパケット挿入予定時点での排他的論理和の計算値との排他的論理和を計算することにより、今回挿入すべきFECデータを生成する。   In general, even when the video distribution server simultaneously distributes the same media packet to a plurality of terminal devices, the appropriate matrix size of the media packets differs for each terminal device. Therefore, there is a proposal of a method for efficiently calculating FEC data for a plurality of terminal devices in the video distribution server (see, for example, Patent Document 1). In this FEC data calculation method, the exclusive OR of the transmission data is continuously calculated, and the calculated value of the exclusive OR at the previous FEC packet insertion time and the current FEC packet insertion scheduled time are calculated. The FEC data to be inserted this time is generated by calculating the exclusive OR with the calculated value of the exclusive OR.

特開2006−67072号公報(要約、図5)JP 2006-67072 A (summary, FIG. 5)

しかしながら、特許文献1に開示されたFECデータ生成手法は、1次元FECデータを効率的に計算する方法であるため、この方法を用いて、複数の端末装置の2次元FECデータを少ない計算量で効率的に計算することはできないという問題がある。特に、端末装置ごとにメディアパケットの行列サイズが異なる場合、又は、縦方向FECデータの生成に際して処理対象となるパケットのシーケンス番号が連続でない場合に、2次元FECデータを効率的に計算することはできないという問題がある。   However, since the FEC data generation method disclosed in Patent Document 1 is a method for efficiently calculating one-dimensional FEC data, the two-dimensional FEC data of a plurality of terminal devices can be reduced with a small amount of calculation using this method. There is a problem that it cannot be calculated efficiently. In particular, when the matrix size of the media packet is different for each terminal device, or when the sequence number of the packet to be processed is not continuous when generating the vertical FEC data, it is possible to efficiently calculate the two-dimensional FEC data. There is a problem that you can not.

そこで、本発明は、上記従来技術の課題を解決するためになされたものであり、その目的は、2次元FECデータを効率的に生成することができるFECデータ生成装置及びFECデータ生成方法を提供することにある。   Accordingly, the present invention has been made to solve the above-described problems of the prior art, and an object thereof is to provide an FEC data generation apparatus and an FEC data generation method capable of efficiently generating two-dimensional FEC data. There is to do.

本発明のFECデータ生成方法は、
第1乃至第N(Nは2以上の整数)の端末装置がそれぞれ要求する2次元FECデータの行列の横サイズの最小公倍数を計算するステップと、
前記最小公倍数を横方向に並ぶメディアパケットの個数とするFECデータ計算用行列を用いて、前記第1乃至第Nの端末装置のそれぞれに、前記第1乃至第Nの端末装置がそれぞれ要求する2次元FECデータを生成するステップとを有し、
を、シーケンス番号i(i=1,2,…)のメディアパケットのデータとし、
pを、1以上N以下の整数とし、
を、第pの端末装置が要求する2次元FECデータの行列の横サイズとし、
Lを、前記最小公倍数とし、
k=1,2,…,Lとし、
を、前記FECデータ計算用行列の縦方向に並ぶメディアパケットのデータの排他的論理和で計算される第1の縦方向FEC用中間データとし、
C′p,qを、次式

Figure 2010041084
で計算される第2の縦方向FEC用中間データとし、
Figure 2010041084
を、前回同じ列で縦方向FECデータを出力したときの前記第2の縦方向FEC用中間データC′p,qに等しい第3の縦方向FEC用中間データとしたときに、
前記2次元FECデータを生成する前記ステップにおいて、第pの端末装置が要求する2次元FECデータの第q列の縦方向FECデータCp,qを、次式
Figure 2010041084
で計算することを特徴としている。 The FEC data generation method of the present invention includes:
Calculating a least common multiple of a horizontal size of a matrix of two-dimensional FEC data respectively requested by first to N-th terminal devices (N is an integer of 2 or more);
Each of the first to Nth terminal devices requests each of the first to Nth terminal devices using an FEC data calculation matrix having the least common multiple as the number of media packets arranged in the horizontal direction. Generating dimensional FEC data;
Let d i be the data of the media packet with sequence number i (i = 1, 2,...)
p is an integer of 1 to N,
Let L p be the horizontal size of the matrix of two-dimensional FEC data required by the p-th terminal device,
L is the least common multiple,
k = 1, 2,..., L,
T k is the first vertical FEC intermediate data calculated by exclusive OR of media packet data arranged in the vertical direction of the FEC data calculation matrix,
C ′ p, q is expressed as
Figure 2010041084
The second vertical FEC intermediate data calculated in
Figure 2010041084
Is the third vertical FEC intermediate data equal to the second vertical FEC intermediate data C′p , q when the vertical FEC data was output in the same column last time,
In the step of generating the two-dimensional FEC data, the vertical FEC data C p, q of the q-th column of the two-dimensional FEC data requested by the p-th terminal device is expressed by the following equation:
Figure 2010041084
It is characterized by calculating with.

本発明によれば、複数の端末装置が異なる行列サイズの2次元FECデータを要求している場合であっても、複数の端末装置がそれぞれ要求する2次元FECデータの縦方向FECデータの計算量を削減することができ、データ処理の負荷を軽減することができるという効果がある。   According to the present invention, even when a plurality of terminal devices request two-dimensional FEC data having different matrix sizes, the amount of calculation of the vertical FEC data of the two-dimensional FEC data requested by each of the plurality of terminal devices. Can be reduced, and the data processing load can be reduced.

図4は、本発明の実施の形態に係るFECデータ生成装置(すなわち、実施の形態に係るFECデータ生成方法を実施する装置)311を含む映像配信サーバ310、及びこの映像配信サーバを含む映像配信システムの構成を概略的に示す図である。図4に示されるように、映像配信システムは、インターネットなどのネットワーク400を介して通信可能な映像配信サーバ310と、ネットワーク400を介して通信可能な複数の端末装置(図には、4台の端末装置1,2,3,4を示すが、端末装置の数は4台以外であってもよい。)とを有する。映像配信サーバ310は、FECデータ生成装置311と、デジタル符号化された音声及び映像データが格納されるメディアデータ格納部312と、ネットワーク400を経由するデータの送受信を行なうデータ送受信部313とを有する。映像配信サーバ310は、デジタル符号化された音声及び映像データをパケットに分割し、ネットワーク400を介して、複数の端末装置に配信する。また、映像配信サーバ310は、各端末装置及びメディアパケットが通過するネットワーク400の特性に適した2次元FECデータの行列サイズを各端末装置から受け取る。   FIG. 4 shows a video distribution server 310 including an FEC data generation apparatus (that is, an apparatus that performs the FEC data generation method according to the embodiment) 311 according to the embodiment of the present invention, and a video distribution including the video distribution server. It is a figure which shows the structure of a system roughly. As shown in FIG. 4, the video distribution system includes a video distribution server 310 that can communicate via a network 400 such as the Internet, and a plurality of terminal devices that can communicate via the network 400 (in the figure, four units). Terminal devices 1, 2, 3, and 4 are shown, but the number of terminal devices may be other than four.). The video distribution server 310 includes an FEC data generation device 311, a media data storage unit 312 that stores digitally encoded audio and video data, and a data transmission / reception unit 313 that transmits and receives data via the network 400. . The video distribution server 310 divides the digitally encoded audio and video data into packets and distributes them to a plurality of terminal devices via the network 400. In addition, the video distribution server 310 receives from each terminal device a matrix size of two-dimensional FEC data suitable for the characteristics of the network 400 through which each terminal device and media packet pass.

図5は、実施の形態に係るFECデータ生成装置311の動作(FECデータ生成方法)を示すフローチャート(その1)であり、図6は、実施の形態に係るFECデータ生成装置311の動作(FECデータ生成方法)を示すフローチャート(その2)である。また、図7(a)及び(b)は、第1の端末装置(以下「端末装置1」と記す。)が要求する行列サイズの2次元FECデータの生成方法を説明するための図であり、図8(a)及び(b)は、第2の端末装置(以下「端末装置2」と記す。)が要求する行列サイズの2次元FECデータの生成方法を説明するための図であり、図9(a)及び(b)は、第3の端末装置(以下「端末装置3」と記す。)が要求する行列サイズの2次元FECデータの生成方法を説明するための図である。また、図10は、本発明の実施の形態に係るFECデータ生成方法を説明するための図であり、図7(a)及び(b)、図8(a)及び(b)、図9(a)及び(b)に示される縦方向FECデータ(「縦方向FECパケット」とも言う。)と横方向FECデータ(「横方向FECパケット」とも言う。)とを計算するために用いられる縦方向FEC用中間データT,…,T20と横方向FEC用中間データSを示す。 FIG. 5 is a flowchart (part 1) illustrating an operation (FEC data generation method) of the FEC data generation device 311 according to the embodiment. FIG. 6 illustrates an operation (FEC data) of the FEC data generation device 311 according to the embodiment. It is a flowchart (the 2) which shows a data generation method. FIGS. 7A and 7B are diagrams for explaining a method of generating two-dimensional FEC data having a matrix size required by the first terminal device (hereinafter referred to as “terminal device 1”). FIGS. 8A and 8B are diagrams for explaining a method of generating matrix size two-dimensional FEC data required by the second terminal device (hereinafter referred to as “terminal device 2”). FIGS. 9A and 9B are diagrams for describing a method for generating two-dimensional FEC data having a matrix size required by a third terminal device (hereinafter referred to as “terminal device 3”). FIG. 10 is a diagram for explaining the FEC data generation method according to the embodiment of the present invention. FIGS. 7 (a) and 7 (b), FIG. 8 (a) and FIG. The vertical direction used to calculate the vertical FEC data (also referred to as “vertical FEC packet”) and horizontal FEC data (also referred to as “horizontal FEC packet”) shown in a) and (b). The FEC intermediate data T 1 ,..., T 20 and the horizontal FEC intermediate data S are shown.

FECデータ生成装置311は、2次元FECデータを生成する際に、以下に示す処理を行なう。以下の説明においては、メディアデータ(「メディアパケット」とも言う。)の配信先としてN個(Nは正の整数)の端末装置(クライアント)1,2,…,Nが存在し、端末装置1,2,…,Nが要求する2次元FECデータの行列の横(行)サイズをそれぞれL,L,…,Lとし、端末装置1,2,…,Nが要求する2次元FECデータの行列の縦(列)サイズをそれぞれM,M,…,Mとする。 The FEC data generation device 311 performs the following processing when generating two-dimensional FEC data. In the following description, N (N is a positive integer) terminal devices (clients) 1, 2,..., N exist as distribution destinations of media data (also referred to as “media packets”). , 2, ..., the horizontal (row) size each L 1 of the matrix of two-dimensional FEC data N is requested, L 2, ..., and L N, the terminal apparatus 1, 2, 2-dimensional FEC that N requires Let M 1 , M 2 ,..., MN be vertical (column) sizes of the data matrix, respectively.

先ず、図5のステップST1において、FECデータ生成装置311は、端末装置1,…,Nに供給する横方向FECデータ

Figure 2010041084
と、端末装置1,…,Nに供給する縦方向FECデータ
Figure 2010041084
とを用意する。 First, in step ST1 of FIG. 5, the FEC data generation device 311 sends the lateral FEC data to be supplied to the terminal devices 1,.
Figure 2010041084
And longitudinal FEC data to be supplied to the terminal devices 1,.
Figure 2010041084
And prepare.

ここで、「R」は、端末装置p(pは、1以上N以下の整数)が要求する2次元FECデータである。 Here, “R p ” is two-dimensional FEC data requested by the terminal device p (p is an integer of 1 to N).

また、「Cp,q」は、端末装置pが要求する2次元FECデータの第q列(qは、1以上L以下の整数)である。また、Lは、端末装置pが要求する2次元FECデータの行列の横サイズである。 “C p, q ” is the q-th column of the two-dimensional FEC data requested by the terminal device p (q is an integer of 1 to L p ). L p is the horizontal size of the matrix of the two-dimensional FEC data requested by the terminal device p.

次に、図5のステップST2において、FECデータ生成装置311は、端末装置1,…,Nが要求する2次元FECデータの行列の横サイズL,L,…,Lの最小公倍数Lを計算する。 Next, in step ST2 of FIG. 5, the FEC data generation device 311 performs the least common multiple L of the horizontal sizes L 1 , L 2 ,..., L N of the matrix of the two-dimensional FEC data required by the terminal devices 1,. Calculate

次に、図5のステップST3において、FECデータ生成装置311は、端末装置1,…,Nの横方向FECデータ

Figure 2010041084
を計算するために用いる横方向FEC用中間データS,S′を初期化して0にする。この横方向FEC用中間データSは、図10に示されている。 Next, in step ST3 of FIG. 5, the FEC data generation device 311 performs the lateral FEC data of the terminal devices 1,.
Figure 2010041084
The horizontal FEC intermediate data S and S ′ used to calculate the value are initialized to zero. This intermediate FEC intermediate data S is shown in FIG.

また、FECデータ生成装置311は、端末装置1,…,Nの縦方向FECデータ

Figure 2010041084
を計算するために用いる第1の縦方向FEC用中間データT,T,…,Tを初期化して0にする。この第1の縦方向FEC用中間データ(T,T,…,T20)は、図10に示されている。 In addition, the FEC data generation device 311 includes the vertical FEC data of the terminal devices 1,.
Figure 2010041084
, TL used for calculating the first vertical FEC intermediate data T 1 , T 2 ,. This first intermediate FEC intermediate data (T 1 , T 2 ,..., T 20 ) is shown in FIG.

また、FECデータ生成装置311は、第2の縦方向FEC用中間データ

Figure 2010041084
と、第3の縦方向FEC用中間データ
Figure 2010041084
とを用意し、第2の縦方向FEC用中間データと第3の縦方向FEC用中間データとを、初期化して0にする。 In addition, the FEC data generation device 311 includes the second vertical FEC intermediate data.
Figure 2010041084
And intermediate data for the third vertical FEC
Figure 2010041084
Are prepared, and the second vertical FEC intermediate data and the third vertical FEC intermediate data are initialized to zero.

次に、図5のステップST4において、FECデータ生成装置311は、処理中のシーケンス番号を表す変数iと処理中の中間データ(すなわち、第1の縦方向FEC用中間データT,T,…,T,…,T)の番号を表す変数kとのそれぞれに、1をセットする。 Next, in step ST4 of FIG. 5, the FEC data generation device 311 determines that the variable i representing the sequence number being processed and the intermediate data being processed (that is, the first vertical FEC intermediate data T 1 , T 2 , .., T k ,..., T L ) are set to 1 for each variable k.

次に、図5のステップST5において、FECデータ生成装置311は、メディアデータ格納部312に、次の1メディアパケット分のメディアデータdが有るか無いかを判定する。FECデータ生成装置311は、次の1メディアパケット分のメディアデータが無いと判定したときには、処理を終了する。FECデータ生成装置311は、次の1メディアパケット分のメディアデータdが有ると判定したときには、処理をステップST6に進める。 Next, in step ST5 of FIG. 5, FEC data generation apparatus 311, the media data storage unit 312, it determines whether or no media data d i of the next 1 media packet of there. When the FEC data generation device 311 determines that there is no media data for the next one media packet, the processing ends. FEC data generation apparatus 311, when it is determined that the media data d i of the next 1 media packet of there, the process advances to step ST6.

次に、図5のステップST6において、FECデータ生成装置311は、メディアデータ格納部312から、次の1メディアパケット分のメディアデータdを読み込む。 Next, in step ST <b> 6 of FIG. 5, the FEC data generation device 311 reads media data d i for the next one media packet from the media data storage unit 312.

次に、図5のステップST7において、FECデータ生成装置311は、次式(1)及び(2)により、横方向FEC用中間データS及び第1の縦方向FEC用中間データT(kは、1以上であり最小公倍数L以下である整数)を計算する。

Figure 2010041084
式(1)は、横方向FEC用中間データSとメディアデータdとの排他的論理和を、新たな横方向FEC用中間データSとすることを示している。また、式(2)は、第1の縦方向FEC用中間データTとメディアデータdとの排他的論理和を、新たな第1の縦方向FEC用中間データ用変数Tとすることを示している。 Next, in step ST7 of FIG. 5, the FEC data generation device 311 uses the following equations (1) and (2) to calculate the horizontal FEC intermediate data S and the first vertical FEC intermediate data T k (k is 1 is an integer that is greater than or equal to 1 and less than or equal to the least common multiple L).
Figure 2010041084
Equation (1) is the exclusive OR of the lateral FEC intermediate data S and the media data d i, indicates that the intermediate data S for the new lateral FEC. Further, the expression (2) sets the exclusive OR of the first vertical FEC intermediate data T k and the media data d i as a new first vertical FEC intermediate data variable T k. Is shown.

次に、図5のステップST8において、FECデータ生成装置311は、処理中の端末装置番号を表す変数p(pは、1以上でありN以下である整数)と、2次元FECデータの行列における列番号を表す変数qとを用意し、変数pに1をセットする。   Next, in step ST8 of FIG. 5, the FEC data generation device 311 uses a variable p (p is an integer greater than or equal to 1 and less than or equal to N) representing the number of the terminal device being processed, and a matrix of two-dimensional FEC data. A variable q representing the column number is prepared, and 1 is set in the variable p.

次に、図6のステップST9において、FECデータ生成装置311は、次式(3)が成立するか否かを判定する。
i=0 modL (3)
FECデータ生成装置311は、式(3)が成立すると判定したとき、すなわち、メディアパケットのシーケンス番号iが端末装置pが要求する2次元FECデータの行列の横サイズLの整数倍であると判定したときに、処理をステップST10に進め、式(3)が成立しないと判定したとき、すなわち、メディアパケットのシーケンス番号iが端末装置pの2次元FECデータの行列の横サイズLの整数倍でないと判定したときに、処理をステップST12に進める。
Next, in step ST9 of FIG. 6, the FEC data generation device 311 determines whether or not the following equation (3) is satisfied.
i = 0 modL p (3)
When the FEC data generation device 311 determines that Expression (3) is satisfied, that is, the sequence number i of the media packet is an integral multiple of the horizontal size L p of the matrix of the two-dimensional FEC data requested by the terminal device p. When it is determined, the process proceeds to step ST10, and when it is determined that Expression (3) is not satisfied, that is, the sequence number i of the media packet is an integer of the horizontal size L p of the matrix of the two-dimensional FEC data of the terminal device p. When it is determined that it is not doubled, the process proceeds to step ST12.

次に、図6のステップST10において、FECデータ生成装置311は、端末装置pの横方向FECデータRを、以下の式(4)を用いて計算する。ここで、Rは、端末装置pの横方向FECデータを示す。

Figure 2010041084
端末装置pの横方向FECデータRは、横方向FEC用中間データSと横方向FEC用中間データS′との排他的論理和から計算される。横方向FEC用中間データS′は、FECデータ生成装置311が前回横方向FECデータを出力したときの横方向FEC用中間データSの値がセットされている。なお、1回目の式(4)の演算においては、横方向FEC用中間データS′は0(図5のステップST3)である。 Next, in step ST10 of FIG. 6, the FEC data generation device 311 calculates the lateral FEC data R p of the terminal device p using the following equation (4). Here, R p indicates the lateral FEC data of the terminal device p.
Figure 2010041084
Lateral FEC data R p of the terminal device p is calculated from exclusive OR between the lateral FEC intermediate data S and lateral FEC intermediate data S '. In the horizontal direction FEC intermediate data S ′, the value of the horizontal direction FEC intermediate data S when the FEC data generation device 311 previously output the horizontal direction FEC data is set. In the first calculation of the equation (4), the horizontal FEC intermediate data S ′ is 0 (step ST3 in FIG. 5).

次に、式(5)に示すように、横方向FEC用中間データS′には、式(4)で算出された横方向FEC用中間データSの値がセットされる。   Next, as shown in the equation (5), the value of the horizontal FEC intermediate data S calculated by the equation (4) is set in the horizontal FEC intermediate data S ′.

次に、図6のステップST11において、FECデータ生成装置311は、データ送受信部313に横方向FECデータRを渡し、データ送受信部313は、端末装置pに横方向FECデータRを送信する。 Next, in step ST11 of FIG. 6, the FEC data generation device 311 passes the lateral FEC data R p to the data transmission / reception unit 313, and the data transmission / reception unit 313 transmits the lateral FEC data R p to the terminal device p. .

なお、本実施の形態においては、端末装置1(p=1)に送信される横方向FECデータRは、例えば、図7(a)及び(b)に示されるRである。また、本実施の形態においては、端末装置2(p=2)に送信される横方向FECデータRは、例えば、図8(a)及び(b)に示されるRである。また、本実施の形態においては、端末装置3(p=3)に送信される横方向FECデータRは、例えば、図9(a)及び(b)に示されるRである。 In the present embodiment, the lateral FEC data R p transmitted to the terminal device 1 (p = 1) is, for example, R 1 shown in FIGS. 7A and 7B. In the present embodiment, the lateral FEC data R p transmitted to the terminal device 2 (p = 2) is, for example, R 2 shown in FIGS. 8A and 8B. Further, in this embodiment, lateral FEC data R p to be transmitted to the terminal device 3 (p = 3) is, for example, R 3 shown in FIG. 9 (a) and (b).

次に、図6のステップST12において、FECデータ生成装置311は、次式(6)により変数qを計算する。
q←(i modL)−L(M−1) (6)
ここで、Lは、端末装置pの2次元FECデータの行列の横サイズを表し、Mは、端末装置pの2次元FECデータの行列の縦サイズを表す。
Next, in step ST12 of FIG. 6, the FEC data generation device 311 calculates the variable q by the following equation (6).
q ← (i mod L p M p ) −L p (M p −1) (6)
Here, L p represents the horizontal size of the matrix of the two-dimensional FEC data of the terminal device p, and M p represents the vertical size of the matrix of the two-dimensional FEC data of the terminal device p.

次に、図6のステップST13において、FECデータ生成装置311は、次式(7)が成立するか否かを判定する。
1≦q≦L (7)
FECデータ生成装置311は、式(7)が成立すると判定したときには処理をステップST14に進め、成立しないと判定したときには処理をステップST16に進める。
Next, in step ST13 of FIG. 6, the FEC data generation device 311 determines whether or not the following equation (7) is satisfied.
1 ≦ q ≦ L p (7)
The FEC data generation device 311 advances the process to step ST14 when it is determined that the expression (7) is satisfied, and advances the process to step ST16 when it is determined that the expression is not satisfied.

式(6)と式(7)によって、端末装置pが要求する2次元FECデータのL列M行の行列における最後の行のL個のメディアパケット、すなわち、L列M行の行列における最後の行の第{L(M−1)+1}列のメディアパケットから第{L}列のメディアパケットまでについてステップST14の処理を行なう。例えば、端末装置1(p=1)の場合には、図7(a)に示されるシーケンス番号97,…,100の各メディアパケットを読み込んで処理するとき、及び、図7(b)に示されるシーケンス番号197,…,200の各メディアパケットを読み込んで処理するときに、ステップST14の処理を行なう。また、例えば、端末装置2(p=2)の場合には、図8(a)に示されるシーケンス番号96,…,100の各メディアパケットを読み込んで処理するとき、及び、図8(b)に示されるシーケンス番号196,…,200の各メディアパケットを読み込んで処理するときに、ステップST14の処理を行なう。また、例えば、端末装置3(p=3)の場合には、図9(a)に示されるシーケンス番号91,…,100の各メディアパケットを読み込んで処理するとき、及び、図9(b)に示されるシーケンス番号191,…,200の各メディアパケットを読み込んで処理するときに、ステップST14の処理を行なう。 According to Expression (6) and Expression (7), L p media packets in the last row in the matrix of L p columns M p rows of the two-dimensional FEC data requested by the terminal device p, that is, L p columns M p rows The process of step ST14 is performed from the {L p (M p −1) +1} th column media packet to the {L p M p } column media packet in the last row in the matrix. For example, in the case of the terminal device 1 (p = 1), when each media packet of sequence numbers 97,..., 100 shown in FIG. 7A is read and processed, and as shown in FIG. When the media packets having the sequence numbers 197,..., 200 are read and processed, the process of step ST14 is performed. For example, in the case of the terminal device 2 (p = 2), when reading and processing each media packet of the sequence numbers 96,..., 100 shown in FIG. 8A, and FIG. When the media packets having the sequence numbers 196,..., 200 shown in FIG. For example, in the case of the terminal device 3 (p = 3), when reading and processing each media packet of the sequence numbers 91,..., 100 shown in FIG. 9A, and FIG. When the media packets of sequence numbers 191,..., 200 shown in FIG.

次に、図6のステップST14において、FECデータ生成装置311は、端末装置pの第q列の第2の縦方向FEC用中間データC′p,qを、次式(8)で計算する。

Figure 2010041084
Next, in step ST14 of FIG. 6, the FEC data generation device 311 calculates the second vertical FEC intermediate data C ′ p, q in the q-th column of the terminal device p by the following equation (8).
Figure 2010041084

また、FECデータ生成装置311は、端末装置pの第q列の縦方向FECデータCp,qを、次式(9)で計算する。

Figure 2010041084
式(9)では、端末装置pの第q列の縦方向FECデータCp,qを、端末装置pの第q列の第2の縦方向FEC用中間データ用変数C′p,qと端末装置pの第q列の第3の縦方向FEC用中間データ用変数C”p,qとの排他的論理和から計算している。 In addition, the FEC data generation device 311 calculates the vertical FEC data C p, q in the q-th column of the terminal device p by the following equation (9).
Figure 2010041084
In Expression (9), the vertical FEC data C p, q in the q-th column of the terminal device p is replaced with the second vertical FEC intermediate data variable C ′ p, q in the q-th column of the terminal device p and the terminal. It is calculated from the exclusive OR with the third longitudinal FEC intermediate data variable C ″ p, q in the q-th column of the device p.

次に、式(10)に示すように、端末装置pの第q列の第3の縦方向FEC用中間データC”p,qには、式(8)で算出された端末装置pの第q列の第2の縦方向FEC用中間データC′p,qの値がセットされる。

Figure 2010041084
Next, as shown in Expression (10), the third longitudinal FEC intermediate data C ″ p, q in the q-th column of the terminal apparatus p includes the terminal device p calculated in Expression (8). The value of the second vertical FEC intermediate data C ′ p, q in the q column is set.
Figure 2010041084

次に、図6のステップST15において、FECデータ生成装置311は、データ送受信部313に端末装置pの2次元FECデータの行列の第q列の縦方向FECデータCp,qを渡し、データ送受信部313は端末装置pに縦方向FECデータ用変数Cp,qを送信する。 Next, in step ST15 in FIG. 6, FEC data generating device 311 passes the data transceiver 313 longitudinally FEC data C p of the q rows of a two-dimensional FEC data matrix of the terminal device p, the q, data transmission and reception The unit 313 transmits the vertical direction FEC data variables C p, q to the terminal device p.

次に、図6のステップST16において、FECデータ生成装置311は、pの値を1インクリメントし、図6のステップST17において、FECデータ生成装置311は、ステップST9からST16までの処理をN回(端末装置の台数分)繰り返し、N回の処理が終了したときに、処理をステップST18に進める。   Next, in step ST16 of FIG. 6, the FEC data generation device 311 increments the value of p by 1. In step ST17 of FIG. 6, the FEC data generation device 311 performs the processing from step ST9 to ST16 N times ( When the process is repeated N times, the process proceeds to step ST18.

次に、図6のステップST18において、FECデータ生成装置311は、次式(11)及び(12)の処理を行ない、その後、処理をステップST5に戻す。
i←i+1 (11)
k←(k+1)modL (12)
なお、式(11)は、シーケンス番号iを1インクリメントする処理を示す。また、式(12)は、kを、1≦k≦Lの範囲内で1インクリメントする(kの値がLよりも大きくなるときは1に戻す)処理を示す。
Next, in step ST18 of FIG. 6, the FEC data generation device 311 performs processing of the following equations (11) and (12), and then returns the processing to step ST5.
i ← i + 1 (11)
k ← (k + 1) modL (12)
Equation (11) represents a process of incrementing the sequence number i by 1. Expression (12) represents a process of incrementing k by 1 within a range of 1 ≦ k ≦ L (returns to 1 when the value of k becomes larger than L).

次に、映像配信サーバ310が、端末装置1,2,3のそれぞれにデータを配信する場合の動作及びそのような動作の利点をより具体的に説明する。   Next, the operation when the video distribution server 310 distributes data to each of the terminal devices 1, 2, and 3 and the advantages of such operation will be described more specifically.

図7(a)及び(b)に示されるように、端末装置1(p=1)は、Lp=4、Mp=25の行列サイズ(メディアパケットの行列のサイズ)の2次元FECデータを要求しており、図8(a)及び(b)に示されるように、端末装置2(p=2)は、Lp=5、Mp=20の行列サイズ(メディアパケットの行列のサイズ)の2次元FECデータを要求しており、図9(a)及び(b)に示されるように、端末装置3(p=3)は、Lp=10、Mp=10の行列サイズ(メディアパケットの行列のサイズ)の2次元FECデータを要求している。また、これらの図には、メディアパケットはシーケンス番号iが1(図では「01」と表記している。)から200まで存在する場合を説明する。   As shown in FIGS. 7A and 7B, the terminal apparatus 1 (p = 1) requests two-dimensional FEC data having a matrix size (media packet matrix size) of Lp = 4 and Mp = 25. As shown in FIGS. 8A and 8B, the terminal device 2 (p = 2) has a two-dimensional matrix size (media packet matrix size) of Lp = 5 and Mp = 20. FEC data is requested, and as shown in FIGS. 9A and 9B, the terminal device 3 (p = 3) has a matrix size of Lp = 10 and Mp = 10 (the size of the media packet matrix). ) Two-dimensional FEC data. Further, in these drawings, a case where the media packet has a sequence number i from 1 (indicated as “01” in the figure) to 200 will be described.

このとき、従来のFECデータ生成方法では、端末装置ごとにFECデータを計算する必要がある。図7(a)及び(b)、図8(a)及び(b)、図9(a)及び(b)から、各端末装置1,2,3に対する横方向FECデータ(横方向FECパケット)及び縦方向FECデータ(縦方向FECパケット)の生成に必要な排他的論理和の計算回数は表1のようになる。

Figure 2010041084
At this time, in the conventional FEC data generation method, it is necessary to calculate FEC data for each terminal device. 7 (a) and 7 (b), 8 (a) and 8 (b), 9 (a) and 9 (b), the lateral FEC data (lateral FEC packet) for each terminal device 1, 2, 3 is obtained. Table 1 shows the number of exclusive OR calculations necessary for generating vertical FEC data (vertical FEC packet).
Figure 2010041084

端末装置1の横方向FECデータの計算においては、例えば、図7(a)における第1行のシーケンス番号01,…,04のメディアデータについて、メディアパケットの各データd01とd02とd03とd04との排他的論理和を行なうことになり、1行につき3回の排他的論理和の計算が必要になる。したがって、表1に示すように、端末装置1の横方向FECデータの計算においては、150回の排他的論理和の計算が必要になる。同様の考え方により、端末装置2の横方向FECデータの計算においては、160回の排他的論理和の計算が必要になり、端末装置3の横方向FECデータの計算においては、180回の排他的論理和の計算が必要になる。横方向FECデータの計算においては、合計490回の排他的論理和の計算が必要になる。 In the calculation of the lateral FEC data of the terminal device 1, for example, the sequence number 01 of the first row in FIG. 7 (a), ..., the 04 of the media data, each data d 01 of media packets and d 02 and d 03 And d 04 are calculated, and the calculation of the exclusive OR three times per line is required. Therefore, as shown in Table 1, in the calculation of the lateral FEC data of the terminal device 1, 150 exclusive OR calculations are required. Based on the same concept, 160 times of exclusive OR calculation is required in the calculation of the lateral FEC data of the terminal device 2, and 180 times of exclusive calculation is required in the calculation of the lateral FEC data of the terminal device 3. Calculation of logical sum is required. In the calculation of the lateral FEC data, a total of 490 exclusive OR calculations are required.

端末装置1の縦方向FECデータの計算においては、例えば、図7(a)における第1列のシーケンス番号01,05,09,…,97のメディアデータについて、メディアパケットの各データd01、d05、…、d97との排他的論理和を行なうことになり、1列につき24回の排他的論理和の計算が必要になる。したがって、表1に示すように、端末装置1の縦方向FECデータの計算においては、192回の排他的論理和の計算が必要になる。同様の考え方により、端末装置2の縦方向FECデータの計算においては、190回の排他的論理和の計算が必要になり、端末装置3の縦方向FECデータの計算においては、180回の排他的論理和の計算が必要になる。縦方向FECデータの計算においては、合計562回の排他的論理和の計算が必要になる。 In the calculation of the longitudinal FEC data of the terminal device 1, for example, FIGS. 7 (a) the first column of the sequence numbers in 01,05,09, ..., for 97 of the media data, each data d 01 of media packets, d 05 ,..., D97 are exclusive ORed, and the calculation of 24 exclusive ORs per column is required. Therefore, as shown in Table 1, in the calculation of the longitudinal FEC data of the terminal device 1, 192 exclusive OR calculations are required. Based on the same concept, 190 times of exclusive OR calculation is required in the calculation of the vertical FEC data of the terminal device 2, and 180 times of exclusive OR is required in the calculation of the vertical FEC data of the terminal device 3. Calculation of logical sum is required. In the calculation of the vertical FEC data, a total of 562 exclusive OR calculations are required.

次に、本発明の実施の形態に係るFECデータ生成方法による場合の排他的論理和の計算の回数を調べる。本実施の形態においては、最小公倍数L=20であり、図10に示されるように及び図5のステップST7に示されるように、横方向FEC用中間データSと縦方向FEC用中間データT(k=1,2,…,20)が計算される。そして、計算された横方向FEC用中間データSと縦方向FEC用中間データT(k=1,2,…,20)から、端末装置1の横方向FECデータR及び縦方向FECデータC1,q、端末装置2の横方向FECデータR及び縦方向FECデータC2,q、並びに、端末装置3の横方向FECデータR及び縦方向FECデータC3,qが計算される。 Next, the number of exclusive OR calculations in the case of the FEC data generation method according to the embodiment of the present invention is examined. In the present embodiment, the least common multiple L = 20, and as shown in FIG. 10 and step ST7 of FIG. 5, the horizontal FEC intermediate data S and the vertical FEC intermediate data T k. (K = 1, 2,..., 20) is calculated. Then, from the calculated horizontal FEC intermediate data S and vertical FEC intermediate data T k (k = 1, 2,..., 20), the horizontal FEC data R 1 and the vertical FEC data C of the terminal device 1 are used. 1, q , horizontal FEC data R 2 and vertical FEC data C 2, q of the terminal device 2, and horizontal FEC data R 3 and vertical FEC data C 3, q of the terminal device 3 are calculated.

図7(a)及び(b)、図10、図6のステップST14、及び上記式(8)及び(9)から理解できるように、端末装置1が要求する2次元FECデータの縦方向FECデータは、次式(13)から計算され

Figure 2010041084
端末装置1が要求する2次元FECデータの横方向FECデータは、次式(14)から計算される。
Figure 2010041084
As can be understood from FIGS. 7A and 7B, step ST14 in FIGS. 10 and 6, and the above formulas (8) and (9), the vertical FEC data of the two-dimensional FEC data requested by the terminal device 1 is used. Is calculated from the following equation (13):
Figure 2010041084
The lateral FEC data of the two-dimensional FEC data requested by the terminal device 1 is calculated from the following equation (14).
Figure 2010041084

また、図8(a)及び(b)、図10、図6のステップST14、及び上記式(8)及び(9)から理解できるように、端末装置2が要求する2次元FECデータの縦方向FECデータは、次式(14)から計算され

Figure 2010041084
端末装置2が要求する2次元FECデータの横方向FECデータは、次式(15)から計算される。
Figure 2010041084
Further, as can be understood from FIGS. 8A and 8B, step ST14 of FIGS. 10 and 6, and the above formulas (8) and (9), the vertical direction of the two-dimensional FEC data required by the terminal device 2 FEC data is calculated from the following equation (14).
Figure 2010041084
The lateral FEC data of the two-dimensional FEC data requested by the terminal device 2 is calculated from the following equation (15).
Figure 2010041084

また、図9(a)及び(b)、図10、図6のステップST14、及び上記式(8)及び(9)から理解できるように、端末装置3が要求する2次元FECデータの縦方向FECデータは、次式(16)から計算され

Figure 2010041084
端末装置3が要求する2次元FECデータの横方向FECデータは、次式(17)から計算される。
Figure 2010041084
Further, as can be understood from FIGS. 9A and 9B, step ST14 in FIGS. 10 and 6, and the above formulas (8) and (9), the vertical direction of the two-dimensional FEC data required by the terminal device 3 is used. FEC data is calculated from the following equation (16).
Figure 2010041084
The lateral FEC data of the two-dimensional FEC data requested by the terminal device 3 is calculated from the following equation (17).
Figure 2010041084

これらの式を比べるとわかるように、端末装置1,2,3のFECデータの生成にはT,…,T20の計算結果を共有しているため、それぞれ1回ずつ計算することで、計算量を削減できることがわかる。本実施の形態に係るFECデータ生成方法では、図7(a)及び(b)、図8(a)及び(b)、図9(a)及び(b)から、各端末装置に対する横方向FECデータ及び縦方向FECデータの生成に必要な排他的論理和の計算回数は表2のようになる。

Figure 2010041084
As can be seen by comparing these equations, since the calculation results of T 1 ,..., T 20 are shared in generating the FEC data of the terminal devices 1, 2, and 3, each calculation is performed once. It can be seen that the amount of calculation can be reduced. In the FEC data generation method according to the present embodiment, the lateral FEC for each terminal device is obtained from FIGS. 7A and 7B, FIGS. 8A and 8B, and FIGS. 9A and 9B. Table 2 shows the number of exclusive OR calculations necessary for generating data and vertical FEC data.
Figure 2010041084

端末装置1の横方向FECデータの計算においては、式(4)による横方向FECデータの計算に際して必要な排他的論理和の計算回数は50回であり、端末装置2の横方向FECデータの計算においては、式(4)による横方向FECデータの計算に際して必要な排他的論理和の計算回数は40回であり、端末装置3の横方向FECデータの計算においては、式(4)による横方向FECデータの計算に際して必要な排他的論理和の計算回数は20回である。また、式(1)に示されるように、Sの計算に必用な排他的論理和の計算回数は199回である。したがって、横方向FECデータの計算においては、合計309回の排他的論理和の計算が必要になる。   In the calculation of the lateral FEC data of the terminal device 1, the number of exclusive ORs required for the calculation of the lateral FEC data according to the equation (4) is 50, and the lateral FEC data of the terminal device 2 is calculated. , The number of exclusive OR calculations required for the calculation of the lateral FEC data by the equation (4) is 40, and the lateral FEC data of the terminal device 3 is calculated by the equation (4) in the lateral direction. The number of exclusive OR calculations required for calculating FEC data is 20 times. Further, as shown in Equation (1), the number of exclusive OR calculations necessary for calculating S is 199 times. Therefore, in the calculation of the lateral FEC data, a total of 309 exclusive OR calculations are required.

また、端末装置1の縦方向FECデータの計算においては、式(8)、(9)による縦方向FECデータの計算に際して必要な排他的論理和の計算回数は40回であり、端末装置2の縦方向FECデータの計算においては、式(8)、(9)による縦方向FECデータの計算に際して必要な排他的論理和の計算回数は40回であり、端末装置3の縦方向FECデータの計算においては、式(8)、(9)による縦方向FECデータの計算に際して必要な排他的論理和の計算回数は40回である。また、式(2)に示されるように、Tkの計算に必用な排他的論理和の計算回数は180回である。したがって、縦方向FECデータの計算においては、合計300回の排他的論理和の計算が必要になる。   Further, in the calculation of the vertical FEC data of the terminal device 1, the number of exclusive OR calculations required for calculating the vertical FEC data according to the equations (8) and (9) is 40 times. In the calculation of the vertical FEC data, the number of exclusive OR calculations required for calculating the vertical FEC data by the equations (8) and (9) is 40, and the vertical FEC data of the terminal device 3 is calculated. , The number of exclusive OR calculations required for calculating the vertical FEC data according to the equations (8) and (9) is 40. Further, as shown in Expression (2), the number of exclusive OR calculations necessary for calculating Tk is 180 times. Therefore, in the calculation of the longitudinal FEC data, a total of 300 exclusive OR calculations are required.

表1の合計と表2の合計とを比較してわかるように、本実施の形態に係るFECデータ生成方法によれば、排他的論理和の計算回数を削減することができる。   As can be seen by comparing the total of Table 1 and the total of Table 2, the FEC data generation method according to the present embodiment can reduce the number of exclusive OR calculations.

以上に説明したように、本実施の形態のFECデータ生成装置及びFECデータ生成方法によれば、複数の端末装置が異なる行列サイズの2次元FECデータを要求している場合であっても、共通の計算をまとめることにより全体の計算量を削減することができ、映像配信サーバ310の演算処理の負荷を軽減することができるという効果がある。   As described above, according to the FEC data generation device and the FEC data generation method of the present embodiment, even when a plurality of terminal devices request two-dimensional FEC data having different matrix sizes, By summing up these calculations, it is possible to reduce the overall calculation amount and to reduce the processing load on the video distribution server 310.

従来の映像配信システムの構成を概略的に示す図である。It is a figure which shows the structure of the conventional video delivery system roughly. シーケンス番号01から100までのメディアパケットからFECパケットを生成する従来の1次元FECデータ生成方法を示す図である。It is a figure which shows the conventional one-dimensional FEC data generation method which produces | generates an FEC packet from the media packet of sequence numbers 01 to 100. FIG. シーケンス番号01から100までのメディアパケットから横方向FECパケット及び縦方向FECパケットを生成する従来の2次元FECデータ生成方法を示す図である。It is a figure which shows the conventional 2D FEC data generation method which produces | generates a horizontal direction FEC packet and a vertical direction FEC packet from the media packets of sequence numbers 01-100. 本発明の実施の形態に係るFECデータ生成装置(すなわち、実施の形態に係るFECデータ生成方法を実施する装置)を含む映像配信サーバ、及びこの映像配信サーバを含む映像配信システムの構成を概略的に示す図である。1 schematically shows a configuration of a video distribution server including an FEC data generation apparatus according to an embodiment of the present invention (that is, an apparatus that performs an FEC data generation method according to an embodiment) and a video distribution system including the video distribution server. FIG. 本発明の実施の形態に係るFECデータ生成装置の動作(すなわち、FECデータ生成方法)を示すフローチャート(その1)である。It is a flowchart (the 1) which shows operation | movement (namely, FEC data generation method) of the FEC data generation apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係るFECデータ生成装置の動作(すなわち、FECデータ生成方法)を示すフローチャート(その2)である。It is a flowchart (the 2) which shows operation | movement (namely, FEC data generation method) of the FEC data generation apparatus which concerns on embodiment of this invention. (a)及び(b)は、端末装置1が要求する行列サイズが25行4列の2次元FECデータの生成方法を説明するための図である。(A) And (b) is a figure for demonstrating the production | generation method of the two-dimensional FEC data whose matrix size which the terminal device 1 requests | requires is 25 rows 4 columns. (a)及び(b)は、端末装置2が要求する行列サイズが20行5列の2次元FECデータの生成方法を説明するための図である。(A) And (b) is a figure for demonstrating the production | generation method of the two-dimensional FEC data whose matrix size which the terminal device 2 requests | requires is 20 rows 5 columns. (a)及び(b)は、端末装置3が要求する行列サイズが10行10列の2次元FECデータの生成方法を説明するための図である。(A) And (b) is a figure for demonstrating the production | generation method of the two-dimensional FEC data whose matrix size which the terminal device 3 requests | requires is 10 rows 10 columns. 本発明の実施の形態に係るFECデータ生成方法を説明するための図であり、図7(a)及び(b)、図8(a)及び(b)、図9(a)及び(b)に示される横方向FECデータと縦方向FECデータを計算するために用いられる縦方向FEC用中間データと横方向FEC用中間データを示す。It is a figure for demonstrating the FEC data generation method which concerns on embodiment of this invention, Fig.7 (a) and (b), Fig.8 (a) and (b), Fig.9 (a) and (b) The vertical FEC intermediate data and the horizontal FEC intermediate data used for calculating the horizontal FEC data and the vertical FEC data shown in FIG.

符号の説明Explanation of symbols

1,2,3,4 端末装置、
310 映像配信サーバ、
311 FECデータ生成装置、
312 メディアデータ格納部、
313 データ送受信部、
400 ネットワーク。
1, 2, 3, 4 terminal devices,
310 video distribution server,
311 FEC data generator,
312 Media data storage unit,
313 data transmitter / receiver,
400 network.

Claims (4)

第1乃至第N(Nは2以上の整数)の端末装置がそれぞれ要求する2次元FECデータの行列の横サイズの最小公倍数を計算するステップと、
前記最小公倍数を横方向に並ぶメディアパケットの個数とするFECデータ計算用行列を用いて、前記第1乃至第Nの端末装置のそれぞれに、前記第1乃至第Nの端末装置がそれぞれ要求する2次元FECデータを生成するステップと
を有し、
を、シーケンス番号i(i=1,2,…)のメディアパケットのデータとし、
pを、1以上N以下の整数とし、
を、第pの端末装置が要求する2次元FECデータの行列の横サイズとし、
Lを、前記最小公倍数とし、
k=1,2,…,Lとし、
を、前記FECデータ計算用行列の縦方向に並ぶメディアパケットのデータの排他的論理和で計算される第1の縦方向FEC用中間データとし、
C′p,qを、次式
Figure 2010041084
で計算される第2の縦方向FEC用中間データとし、
Figure 2010041084
を、前回同じ列で縦方向FECデータを出力したときの前記第2の縦方向FEC用中間データC′p,qに等しい第3の縦方向FEC用中間データとしたときに、
前記2次元FECデータを生成する前記ステップにおいて、第pの端末装置が要求する2次元FECデータの第q列の縦方向FECデータCp,qを、次式
Figure 2010041084
で計算する
ことを特徴とするFECデータ生成方法。
Calculating a least common multiple of a horizontal size of a matrix of two-dimensional FEC data respectively requested by first to N-th terminal devices (N is an integer of 2 or more);
Each of the first to Nth terminal devices requests each of the first to Nth terminal devices using an FEC data calculation matrix having the least common multiple as the number of media packets arranged in the horizontal direction. Generating dimensional FEC data; and
Let d i be the data of the media packet with sequence number i (i = 1, 2,...)
p is an integer of 1 to N,
Let L p be the horizontal size of the matrix of two-dimensional FEC data required by the p-th terminal device,
L is the least common multiple,
k = 1, 2,..., L,
T k is the first vertical FEC intermediate data calculated by exclusive OR of media packet data arranged in the vertical direction of the FEC data calculation matrix,
C ′ p, q is expressed as
Figure 2010041084
The second vertical FEC intermediate data calculated in
Figure 2010041084
Is the third vertical FEC intermediate data equal to the second vertical FEC intermediate data C′p , q when the vertical FEC data was output in the same column last time,
In the step of generating the two-dimensional FEC data, the vertical FEC data C p, q of the q-th column of the two-dimensional FEC data requested by the p-th terminal device is expressed by the following equation:
Figure 2010041084
A method for generating FEC data, characterized by:
Sを、シーケンス番号iまでのメディアパケットのデータの排他的論理和で計算される第1の横方向FEC用中間データとし、
S′を、シーケンス番号(i−L)までのメディアパケットのデータの排他的論理和で計算される第2の横方向FEC用中間データとしたときに、
前記2次元FECデータを生成する前記ステップにおいて、第pの端末装置が要求する2次元FECデータの横方向FECデータRを、シーケンス番号iが横サイズLのJ倍であるときに、前記第1の横方向FEC用中間データSと前記第2の横方向FEC用中間データS′との排他的論理和によって計算する
ことを特徴とする請求項1に記載のFECデータ生成方法。
S is the first intermediate FEC intermediate data calculated by exclusive OR of media packet data up to sequence number i,
When S ′ is the second intermediate data for FEC in the horizontal direction calculated by exclusive OR of media packet data up to the sequence number (i−L p ),
In the step of generating the 2 dimensional FEC data, the lateral FEC data R p of the two-dimensional FEC data first p terminal device requests, when the sequence number i is J times the lateral size L p, wherein 2. The FEC data generation method according to claim 1, wherein calculation is performed by an exclusive OR of the first horizontal FEC intermediate data S and the second horizontal FEC intermediate data S ′.
第1乃至第N(Nは2以上の整数)の端末装置がそれぞれ要求する2次元FECデータの行列の横サイズの最小公倍数を計算する手段と、
前記最小公倍数を横方向に並ぶメディアパケットの個数とするFECデータ計算用行列を用いて、前記第1乃至第Nの端末装置のそれぞれに、前記第1乃至第Nの端末装置がそれぞれ要求する2次元FECデータを生成する手段と
を有し、
を、シーケンス番号i(i=1,2,…)のメディアパケットのデータとし、
pを、1以上N以下の整数とし、
を、第pの端末装置が要求する2次元FECデータの行列の横サイズとし、
Lを、前記最小公倍数とし、
k=1,2,…,Lとし、
を、前記FECデータ計算用行列の縦方向に並ぶメディアパケットのデータの排他的論理和で計算される第1の縦方向FEC用中間データとし、
C′p,qを、次式
Figure 2010041084
で計算される第2の縦方向FEC用中間データとし、
Figure 2010041084
を、前回同じ列で縦方向FECデータを出力したときの前記第2の縦方向FEC用中間データC′p,qに等しい第3の縦方向FEC用中間データとしたときに、
前記2次元FECデータを生成する前記手段は、第pの端末装置が要求する2次元FECデータの第q列の縦方向FECデータCp,qを、次式
Figure 2010041084
で計算する
ことを特徴とするFECデータ生成装置。
Means for calculating a least common multiple of a lateral size of a matrix of two-dimensional FEC data respectively requested by first to N-th (N is an integer of 2 or more) terminal devices;
Each of the first to Nth terminal devices requests each of the first to Nth terminal devices using an FEC data calculation matrix having the least common multiple as the number of media packets arranged in the horizontal direction. Means for generating dimensional FEC data;
Let d i be the data of the media packet with sequence number i (i = 1, 2,...)
p is an integer of 1 to N,
Let L p be the horizontal size of the matrix of two-dimensional FEC data required by the p-th terminal device,
L is the least common multiple,
k = 1, 2,..., L,
T k is the first vertical FEC intermediate data calculated by exclusive OR of media packet data arranged in the vertical direction of the FEC data calculation matrix,
C ′ p, q is expressed as
Figure 2010041084
The second vertical FEC intermediate data calculated in
Figure 2010041084
Is the third vertical FEC intermediate data equal to the second vertical FEC intermediate data C′p , q when the vertical FEC data was output in the same column last time,
The means for generating the two-dimensional FEC data uses the following formula to calculate the vertical FEC data C p, q in the q-th column of the two-dimensional FEC data requested by the p-th terminal device:
Figure 2010041084
The FEC data generation device characterized by the above calculation.
Sを、シーケンス番号iまでのメディアパケットのデータの排他的論理和で計算される第1の横方向FEC用中間データとし、
S′を、シーケンス番号(i−L)までのメディアパケットのデータの排他的論理和で計算される第2の横方向FEC用中間データとしたときに、
前記2次元FECデータを生成する前記手段は、第pの端末装置が要求する2次元FECデータの横方向FECデータRを、シーケンス番号iが横サイズLのJ倍であるときに、前記第1の横方向FEC用中間データSと前記第2の横方向FEC用中間データS′との排他的論理和によって計算する
ことを特徴とする請求項3に記載のFECデータ生成装置。
S is the first intermediate FEC intermediate data calculated by exclusive OR of media packet data up to sequence number i,
When S ′ is the second intermediate data for FEC in the horizontal direction calculated by exclusive OR of media packet data up to the sequence number (i−L p ),
Said means for generating said two-dimensional FEC data, the lateral FEC data R p of the two-dimensional FEC data first p terminal device requests, when the sequence number i is J times the lateral size L p, wherein 4. The FEC data generation apparatus according to claim 3, wherein calculation is performed by an exclusive OR of the first horizontal FEC intermediate data S and the second horizontal FEC intermediate data S ′. 5.
JP2008198262A 2008-07-31 2008-07-31 FEC data generation method and FEC data generation apparatus Active JP5256915B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008198262A JP5256915B2 (en) 2008-07-31 2008-07-31 FEC data generation method and FEC data generation apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008198262A JP5256915B2 (en) 2008-07-31 2008-07-31 FEC data generation method and FEC data generation apparatus

Publications (2)

Publication Number Publication Date
JP2010041084A true JP2010041084A (en) 2010-02-18
JP5256915B2 JP5256915B2 (en) 2013-08-07

Family

ID=42013216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008198262A Active JP5256915B2 (en) 2008-07-31 2008-07-31 FEC data generation method and FEC data generation apparatus

Country Status (1)

Country Link
JP (1) JP5256915B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004153471A (en) * 2002-10-29 2004-05-27 Sanyo Electric Co Ltd Method for calculating checksum, method for recording checksum, and communication apparatus capable of utilizing the methods
JP2006067072A (en) * 2004-08-25 2006-03-09 Fujitsu Ltd Generation method, generator, generation program for error correction data, and computer readable recording medium storing the same
JP2007509557A (en) * 2003-10-23 2007-04-12 トムソン ライセンシング Method for reconstructing lost packets and apparatus for implementing the method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004153471A (en) * 2002-10-29 2004-05-27 Sanyo Electric Co Ltd Method for calculating checksum, method for recording checksum, and communication apparatus capable of utilizing the methods
JP2007509557A (en) * 2003-10-23 2007-04-12 トムソン ライセンシング Method for reconstructing lost packets and apparatus for implementing the method
JP2006067072A (en) * 2004-08-25 2006-03-09 Fujitsu Ltd Generation method, generator, generation program for error correction data, and computer readable recording medium storing the same

Also Published As

Publication number Publication date
JP5256915B2 (en) 2013-08-07

Similar Documents

Publication Publication Date Title
KR100742450B1 (en) Quantum key delivery method and communication device
US7516386B2 (en) System and method for transparent electronic data transfer using error correction to facilitate bandwidth-efficient data recovery
JP6730741B2 (en) Processing device, processing method, processing program, and cryptographic processing system
JP2020537191A5 (en)
CN106453285B (en) A kind of verification method and device that secret data is shared
Li et al. A lattice-based homomorphic proxy re-encryption scheme with strong anti-collusion for cloud computing
WO2007011071A1 (en) Time apparatus, encrypting apparatus, decrypting apparatus, and encrypting/decrypting system
CN117591886B (en) Method and device for quickly aggregating heterogeneous data based on cluster federation learning
JP5256915B2 (en) FEC data generation method and FEC data generation apparatus
TW201250629A (en) Method and apparatus for adjusting 3-D images converted from 2-D images
US10511434B2 (en) Method and encryption node for encrypting message
JP2011120227A (en) Data transmission method and network node
JPWO2019039383A1 (en) Share generator, restorer, secret calculation system, share generator, restore method, program, and recording medium
Barreto et al. Energy-efficient channel coding strategy for underwater acoustic networks
KR20150137490A (en) Method and apparatus for generating frame for error correction
CN111769945B (en) Auction processing method based on block chain and block chain link point
CN111125752B (en) Privacy protection method in edge computing environment
US10897371B2 (en) Information processing apparatus, system, and method transmitting a data list using a forwarding path or forwarding method
WO2021106143A1 (en) Shuffle system, shuffle method, and program
Lee et al. TensorCrypto
CN115033645B (en) Power data storage method and system based on block chain technology
Ding et al. Participants Increasing for Shamir’s Polynomial-Based Secret Image Sharing Scheme
Järpe An Alternative Diffie-Hellman Protocol
CN113360285B (en) Calculation method of distributed bilateral security matrix problem under arbitrary collusion mode
US9532089B2 (en) Session-based encryption for delivering content on-demand

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110322

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121025

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121106

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121219

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130408

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

Free format text: PAYMENT UNTIL: 20160502

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5256915

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150