JP5430477B2 - Multiplexing device and multiplexing method, separation device and separation method, and program - Google Patents
Multiplexing device and multiplexing method, separation device and separation method, and program Download PDFInfo
- Publication number
- JP5430477B2 JP5430477B2 JP2010087476A JP2010087476A JP5430477B2 JP 5430477 B2 JP5430477 B2 JP 5430477B2 JP 2010087476 A JP2010087476 A JP 2010087476A JP 2010087476 A JP2010087476 A JP 2010087476A JP 5430477 B2 JP5430477 B2 JP 5430477B2
- Authority
- JP
- Japan
- Prior art keywords
- multiplexed
- frame
- slot
- information
- slot allocation
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Time-Division Multiplex Systems (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Description
本発明は、複数のトランスポートストリーム(TS)を多重化する際に、トランスポートストリームの独立性を保った状態で、パケット単位に時分割多重する技術、及び、パケット単位に時分割多重されたトランスポートストリームを分離する技術に関する。 In the present invention, when multiplexing a plurality of transport streams (TS), a technique for time-division multiplexing in units of packets and time-division multiplexing in units of packets while maintaining the independence of the transport streams The present invention relates to a technique for separating a transport stream.
従来、複数のMPEG−2 TS(ISO/IEC(International Organization for standardization:国際標準化機構/International Electrotechnical Commission:国際電気標準会議)13818−1に規定されるトランスポートストリーム)を、独立性を保った状態で、単一のTSを想定した伝送路へ伝送させる方式が提案されている(例えば、特許文献1、非特許文献1を参照)。
Conventionally, a plurality of MPEG-2 TSs (transport streams defined in ISO / IEC (International Organization for Standardization: International Electrotechnical Commission) 13818-1) are kept independent. Thus, a method of transmitting a transmission line assuming a single TS has been proposed (see, for example,
この伝送方式は、多重化装置において、TSパケット(同期バイト(0x47)で始まる固定長(188バイト)のパケット、または、これに固定長のパリティバイトを追加したパケット)列にヘッダを付加して周期的なフレームを生成し、フレームのスロットに収容される各TSパケットについてのスロット位置の情報(以下、スロット割り当て情報という。)を利用することにより、TSパケット列を多重化するものである。また、分離装置において、多重化されたTSパケット列のフレームを受信し、スロット割り当て情報を利用することにより、TSパケット列を分離する。スロット割り当て情報及び必要な同期情報は、TSパケット形式のヘッダ内に格納して伝送される。以下、TSパケット形式のヘッダ及びTSパケットからなるフレームを多重フレームという。 In this transmission method, a multiplexing device adds a header to a TS packet (fixed length (188 bytes) packet starting with a synchronization byte (0x47) or a packet with a fixed length parity byte added thereto). A periodic frame is generated, and TS packet sequences are multiplexed by using slot position information (hereinafter referred to as slot allocation information) for each TS packet accommodated in the slot of the frame. Further, the demultiplexer receives the multiplexed TS packet sequence frame, and uses the slot allocation information to demultiplex the TS packet sequence. The slot allocation information and necessary synchronization information are transmitted in a TS packet format header. Hereinafter, a frame composed of a TS packet format header and a TS packet is referred to as a multiplexed frame.
多重フレームを用いて伝送するデータは、主にTSを対象とするが、TSと同様の同期バイトで始まる固定長パケット列のデータであれば、TSと同様に伝送可能である。そこで、「MPEG−2 TS」と「ISO/IEC 13818−1には準拠しないがTSと同様に同期バイト(0x47)で始まる固定長パケット列のデータ」とを区別しないで、どちらもTSと表記して説明する。 Data to be transmitted using multiple frames is mainly for TS, but can be transmitted in the same way as TS if it is data of a fixed-length packet sequence starting with the same synchronization byte as TS. Therefore, neither “MPEG-2 TS” nor “data of a fixed-length packet sequence starting with a synchronization byte (0x47) like TS, but not compliant with ISO / IEC 13818-1” is described as TS. To explain.
前述の伝送方式に適用される、各TSに対するスロット割り当て手法には、各TSが割り当てられるスロット数及びスロット位置を多重フレーム毎に固定とした静的割り当て法(fixed pre-assignment)、及び、各TSが割り当てられるスロット数及びスロット位置を必要に応じて変化させる動的割り当て法(demand assignment)が知られている(例えば、非特許文献2を参照)。 The slot assignment method applied to each TS applied to the above transmission scheme includes a static pre-assignment method in which the number of slots and slot positions to which each TS is assigned is fixed for each multiplex frame, and each A dynamic assignment method (demand assignment) is known in which the number of slots to which a TS is assigned and the slot position are changed as necessary (see, for example, Non-Patent Document 2).
(動的割り当て法)
動的割り当て法を実行する場合、多重化装置は、例えば、各TSを一旦バッファに蓄積し、バッファ残量の多いTSからスロットを割り当てる等、予め設定された規則に従って各TSにスロットを割り当て、TSを多重化する。動的割り当て法によれば、後述する静的割り当て法にて必要となるTSの速度変換が不要になり、伝送効率の低下を抑えることができる。
(Dynamic allocation method)
When executing the dynamic allocation method, the multiplexing apparatus, for example, temporarily stores each TS in a buffer and allocates a slot to each TS according to a preset rule, such as allocating a slot from a TS having a large remaining buffer capacity, Multiplex TS. According to the dynamic allocation method, TS speed conversion required in the static allocation method to be described later becomes unnecessary, and a decrease in transmission efficiency can be suppressed.
(静的割り当て法)
静的割り当て法を実行する場合、多重化装置は、TSに対してヌルパケットを挿入すると共に、TS内のPCR(プログラムクロックリファレンス)の値を書き換えることにより、TSの元の速度を、割り当てるスロット数によって決まる速度に変換する(例えば、非特許文献3を参照)。また、TSが「ISO/IEC 13818−1には準拠しないがTSと同様に同期バイト(0x47)で始まる固定長パケット列のデータ」である場合、同期バイトと適当なスタッフデータからなるパケットを挿入することにより、速度を変換する。以下、ヌルパケットと「同期バイトと適当なスタッフデータからなるパケット」とを区別しないで、ヌルパケットと表記する。速度変換時には、変換後のTSの速度が元の速度よりも高くなるように、整数個の割り当てるスロット数が決定される。これは、TSパケットがスロットを割り当てられないで破棄されることのないようにするためである。
(Static assignment method)
When executing the static allocation method, the multiplexing apparatus inserts a null packet into the TS and rewrites the value of the PCR (program clock reference) in the TS, thereby allocating the original speed of the TS. The speed is converted to a speed determined by the number (for example, see Non-Patent Document 3). Also, if the TS is “fixed-length packet string data that starts with a synchronization byte (0x47) as in the TS, but does not conform to ISO / IEC 13818-1”, a packet consisting of the synchronization byte and appropriate stuff data is inserted. By converting the speed. Hereinafter, the null packet and the “packet composed of the synchronization byte and appropriate stuff data” are not distinguished from each other and are referred to as a null packet. At the time of speed conversion, an integer number of slots to be allocated is determined so that the speed of the TS after conversion is higher than the original speed. This is to prevent the TS packet from being discarded without being assigned a slot.
静的割り当て法によれば、多重フレーム内のTSパケットが格納される全スロット数をNd、ヘッダが格納される全スロット数をNh、あるTSに割り当てるスロット数をnとすると、TSの速度は、多重フレームのヘッダを含む全データの伝送速度のn/(Nd+Nh)倍で表される。このため、多重フレームを受信する分離装置は、TSのクロックを再生する際に、PLL等を用いてクロック再生を容易に行うことができる。 According to the static allocation method, if the total number of slots storing TS packets in a multiplex frame is Nd, the total number of slots storing headers is Nh, and the number of slots allocated to a certain TS is n, the TS speed is , Expressed as n / (Nd + Nh) times the transmission rate of all data including the headers of multiple frames. For this reason, the demultiplexer that receives multiple frames can easily perform clock recovery using a PLL or the like when recovering the clock of the TS.
また、静的割り当て法によれば、多重フレーム毎に各TSのスロット数及びスロット位置が固定されているため、多重フレーム内における各TSの位置を示すスロット割り当て情報は変化しない。このため、仮に、伝送中に雑音等の影響を受けて、ある多重フレームヘッダ内のスロット割り当て情報に誤りが発生したとしても、多重フレームを受信する分離装置は、CRC等の誤り検出手段を備えることにより、誤りのあるスロット割り当て情報を破棄することができる。そして、その前に受信した正しいスロット割り当て情報を使用することにより、TSの分離を正しく行うことができる。 In addition, according to the static allocation method, since the number of slots and the slot position of each TS are fixed for each multiplex frame, the slot allocation information indicating the position of each TS in the multiplex frame does not change. Therefore, even if an error occurs in slot allocation information in a certain multiplex frame header due to the influence of noise or the like during transmission, the demultiplexer that receives the multiplex frame includes error detection means such as CRC. As a result, erroneous slot allocation information can be discarded. Then, TS can be correctly separated by using the correct slot allocation information received before that.
(スーパーフレームによる伝送)
ところで、多重フレーム毎に繰り返し伝送を行う伝送方式とは別に、予め設定された数の多重フレームによりスーパーフレームを構成し、スーパーフレーム毎に繰り返し伝送する伝送方式が知られている(例えば、非特許文献4を参照)。この伝送方式では、各TSに対して割り当てたスロット数及びスロット位置は、多重フレーム間で同一でないが、スーパーフレーム間では同一であり固定されている。スーパーフレームを受信する分離装置は、多重フレームの同期を確立し、スーパーフレームの同期を確立した後、スーパーフレーム内の各多重フレームヘッダからスロット割り当て情報を取得し、各TSに割り当てられたスロット数及びスロット位置を特定し、TSの分離を行う。
(Transmission by superframe)
By the way, apart from a transmission method that repeatedly transmits for each multiplex frame, a transmission method is known in which a superframe is configured with a preset number of multiplex frames and is repeatedly transmitted for each superframe (for example, non-patent). (Ref. 4). In this transmission method, the number of slots and the slot position assigned to each TS are not the same between multiple frames, but are the same and fixed between superframes. The demultiplexer that receives the superframe establishes synchronization of multiple frames, establishes superframe synchronization, acquires slot assignment information from each multiple frame header in the superframe, and assigns the number of slots assigned to each TS. Then, the slot position is specified and TS is separated.
スーパーフレームの伝送方式によれば、スーパーフレームを構成する多重フレームの数をMとすると、TSパケットが格納される全スロット(Nd×Mスロット)のうちのLスロットを割り当てるTSの速度が、スーパーフレームの伝送速度のL/{(Nd+Nh)×M}倍となるため、変換後の速度をより細かく設定することができる。したがって、各TSに対して挿入するヌルパケットの量がより少なくなるように速度変換することが可能となり、伝送効率の低下を抑えることができる。 According to the superframe transmission scheme, when the number of multiplexed frames constituting a superframe is M, the TS speed for assigning L slots among all slots (Nd × M slots) in which TS packets are stored is Since the frame transmission rate is L / {(Nd + Nh) × M} times, the post-conversion rate can be set more finely. Therefore, speed conversion can be performed so that the amount of null packets to be inserted into each TS becomes smaller, and a decrease in transmission efficiency can be suppressed.
また、スーパーフレームの伝送方式によれば、スーパーフレーム毎に各TSのスロット数及びスロット位置が固定されているため、スーパーフレームを構成するM個の多重フレームのスロット割り当て情報は変化しない。このため、仮に、伝送中に雑音等の影響を受けて、M個のうち1個以上のスロット割り当て情報に誤りが発生したとしても、スーパーフレームを受信する分離装置は、CRC等の誤り検出手段を備えることにより、誤りのあるスロット割り当て情報を破棄することができる。そして、その前に受信した正しいスロット割り当て情報を使用することにより、TSの分離を正しく行うことができる。 Also, according to the superframe transmission scheme, the slot number and slot position of each TS are fixed for each superframe, so that the slot allocation information of M multiplexed frames constituting the superframe does not change. For this reason, even if an error occurs in one or more of the M slot allocation information due to the influence of noise or the like during transmission, the separating apparatus that receives the superframe is provided with error detection means such as CRC. By providing the above, it is possible to discard erroneous slot allocation information. Then, TS can be correctly separated by using the correct slot allocation information received before that.
このように、動的割り当て法、静的割り当て法及びスーパーフレームによる伝送方式には様々な利点がある。しかしながら、動的割り当て法を実行した場合には、多重フレームを用いたときのヘッダを含む全データの伝送速度と、伝送される各TSの速度とが有理数比の関係にならない場合があるため、多重フレームを受信する分離装置において、TSのクロックを再生するクロック再生回路が複雑になるという問題があった。 As described above, the dynamic allocation method, the static allocation method, and the superframe transmission method have various advantages. However, when the dynamic allocation method is executed, the transmission rate of all data including the header when using multiple frames and the rate of each transmitted TS may not be in a rational number ratio relationship. There has been a problem that a clock recovery circuit for recovering a TS clock is complicated in a separation device that receives multiple frames.
また、多重フレーム毎に各TSのスロット数及びスロット位置が変化するため、スロット割り当て情報が多重フレーム毎に異なってしまう。このため、多重フレームを受信する分離装置では、静的割り当て法の場合と異なり、全てのスロット割り当て情報を正しく受信する必要がある。分離装置は、伝送中に雑音等の影響を受けた多重フレームを受信し、その多重フレーム内のスロット割り当て情報が誤っていたときに、その多重フレームについてTSの分離を正しく行うことができないという問題があった。 Further, since the number of slots and the slot position of each TS change for each multiplex frame, the slot allocation information differs for each multiplex frame. For this reason, unlike the case of the static allocation method, the demultiplexer that receives multiple frames needs to correctly receive all slot allocation information. The separation device receives a multiplex frame affected by noise or the like during transmission, and when the slot allocation information in the multiplex frame is incorrect, the TS cannot be correctly separated for the multiplex frame. was there.
これに対し、静的割り当て法を実行した場合には、各TSが割り当てられるスロット数及びスロット位置が多重フレーム毎に固定であるから、TSの速度に柔軟に対応することができないという問題があった。また、TSに対してヌルパケットを挿入し速度変換を行うため、伝送効率が低下するという問題があった。 On the other hand, when the static allocation method is executed, the number of slots to which each TS is allocated and the slot position are fixed for each multiplex frame, so that there is a problem that the TS speed cannot be flexibly handled. It was. In addition, since a null packet is inserted into the TS to perform speed conversion, there is a problem that transmission efficiency decreases.
スーパーフレームによる伝送方式では、スーパーフレームを構成する多重フレームの数が予め設定されている。このため、スーパーフレームを受信する分離装置は、各TSの速度及び多重化されるTSの数にかかわらず、スーパーフレームの同期を確立するまで一定の時間を必要とする。この同期確立までの時間が長いと、分離装置を起動してからサービスが開始されるまでの待ち時間(例えば、チャンネル配置が変わったり、チャンネルが増えたりしたときの待ち時間)が長くなり、サービスの提供を受けるユーザにとってストレスとなる。 In the transmission method using a super frame, the number of multiplexed frames constituting the super frame is set in advance. For this reason, the demultiplexer that receives the superframe requires a certain time until the synchronization of the superframe is established regardless of the speed of each TS and the number of TSs to be multiplexed. If the time until this synchronization is established is long, the waiting time (for example, the waiting time when the channel arrangement is changed or the number of channels is increased) from when the separation device is started to when the service is started increases. It will be stressful for the user who receives the service.
そこで、本発明は、以上の課題を鑑みてなされたものであり、その目的は、複数のTSに対して伝送路のタイムスロットを固定的に割り当て、時分割多重し、多重フレーム及びスーパーフレームを構成して伝送するシステムにおいて、伝送効率の低下を抑え、スーパーフレームの同期確立に要する時間を短縮可能な多重化装置及び多重化方法、分離装置及び分離方法、並びにプログラムを提供することにある。 Therefore, the present invention has been made in view of the above problems, and its purpose is to assign a time slot of a transmission path to a plurality of TSs in a fixed manner, time-division multiplex, and multiplex frames and superframes. An object of the present invention is to provide a multiplexing apparatus and multiplexing method, a demultiplexing apparatus and a demultiplexing method, and a program capable of suppressing a decrease in transmission efficiency and shortening the time required for establishing superframe synchronization in a system configured and transmitted.
上記目的を達成するために、請求項1の発明は、複数のトランスポートストリームに対して伝送路のタイムスロットを固定的に割り当て、前記トランスポートストリームを時分割多重し、1個以上の多重フレームからなるスーパーフレームを生成して前記伝送路へ出力する多重化装置において、前記複数のトランスポートストリームの速度に基づいて、前記スーパーフレームを構成する多重フレームの数を決定し、前記多重フレームのデータスロットに前記複数のトランスポートストリームを格納する際の、それぞれのトランスポートストリームに割り当てるスロットの数及び位置が規定されたスロット割り当て情報を生成するスロット割り当て部と、前記スロット割り当て情報に基づいて、前記トランスポートストリームの速度を変換する速度変換部と、前記スロット割り当て情報を含む多重フレームヘッダを生成するヘッダ生成部と、前記スロット割り当て情報に基づいて、前記速度変換されたトランスポートストリームを前記多重フレームのデータスロットに格納して多重化し、前記多重フレームヘッダを前記多重フレームのヘッダスロットに格納し、前記多重フレーム数分の多重フレームからなるスーパーフレームを生成する多重化部と、を備えたことを特徴とする。 In order to achieve the above object, according to the first aspect of the present invention, a time slot of a transmission path is fixedly assigned to a plurality of transport streams, the transport streams are time-division multiplexed, and one or more multiplexed frames are obtained. In the multiplexing apparatus that generates a superframe consisting of the above and outputs it to the transmission path, the number of multiplexed frames constituting the superframe is determined based on the speeds of the plurality of transport streams, and the data of the multiplexed frame is determined. Based on the slot allocation information, a slot allocation unit that generates slot allocation information in which the number and position of slots allocated to each transport stream when storing the plurality of transport streams in the slot, Convert the speed of the transport stream A degree conversion unit, a header generation unit that generates a multiplex frame header including the slot assignment information, and a rate-converted transport stream is stored in a data slot of the multiplex frame based on the slot assignment information and multiplexed. And a multiplexing unit that stores the multiplexed frame header in a header slot of the multiplexed frame and generates a super frame composed of multiplexed frames corresponding to the number of multiplexed frames.
また、請求項2の発明は、請求項1に記載の多重化装置において、前記速度変換部が、前記トランスポートストリームにヌルパケットを挿入して速度を変換し、前記スロット割り当て部が、前記多重化に伴ってトランスポートストリームが欠落しないように、かつ、前記速度変換時に挿入されるヌルパケットが最小になるように、前記多重フレーム数を決定し、前記スロット割り当て情報を生成する、ことを特徴とする。
Further, the invention of
また、請求項3の発明は、請求項2に記載の多重化装置において、前記トランスポートストリームの数をJ(Jは整数)とし、前記多重フレーム数の最大値をI(Iは整数)とし、A及びBをパラメータとし(Aは正の整数、BはI未満の正の整数)、1/Iスロット単位にスロットを割り当てるように前記トランスポートストリームが速度変換される場合に、前記スロット割り当て部が、前記多重化に伴ってトランスポートストリームが欠落しないように、かつ、前記速度変換時に挿入されるヌルパケットが最小になるように、J個のトランスポートストリームに割り当てるスロット数A1+B1/I〜AJ+BJ/Iをそれぞれ決定し、B1=・・・=BJ=0の場合(1)、前記多重フレーム数を1に決定し、0でないBj(jはJ以下の正の整数)が存在し、全ての0でないBjに対してI/Bjが整数の場合(2)、前記多重フレーム数をLCM{I/Bj}(LCM{}は最小公倍数を表す)に決定し、前記(1)及び(2)のいずれの条件も満たさない場合、前記多重フレーム数をIに決定する、ことを特徴とする。
The invention of claim 3 is the multiplexing device according to
また、請求項4の発明は、請求項3に記載の多重化装置において、前記スロット割り当て部が、前記(1)及び(2)のいずれの条件も満たさない場合、前記多重フレーム数をIに決定する代わりに、前記(1)または(2)の条件を満たすようにA及びBを新たに決定し、前記多重フレーム数をLCM{I/Bj}に決定する、ことを特徴とする。
Further, the invention of
また、請求項5の発明は、請求項1から4までのいずれか一項に記載の多重化装置において、前記ヘッダ生成部が、前記スロット割り当て情報に基づいて、スーパーフレームを構成する多重フレームの相対的な位置を示す位置情報を生成し、前記スロット割り当て情報及び前記位置情報を含む多重フレームヘッダを生成する、ことを特徴とする。
Further, the invention of claim 5 is the multiplexing device according to any one of
また、請求項6の発明は、請求項1から5までのいずれか一項に記載の多重化装置において、前記ヘッダ生成部が、前記スロット割り当て情報に基づいて、スロット割り当て情報が変化したか否かを示す更新情報を生成し、前記スロット割り当て情報及び前記更新情報を含む多重フレームヘッダを生成する、ことを特徴とする。
The invention according to claim 6 is the multiplexing device according to any one of
さらに、請求項7の発明は、請求項5に記載の多重化装置により出力されたスーパーフレームを入力し、前記スーパーフレームを構成する多重フレームから所定のトランスポートストリームを分離する分離装置であって、前記スーパーフレームを構成する多重フレームの同期を確立し、前記スーパーフレームの同期を確立し、前記スーパーフレームを構成する多重フレームの多重フレームヘッダから、前記多重フレームの相対的な位置を示す位置情報を取得し、前記位置情報に基づいて、多重フレーム数を求める同期確立部と、前記スーパーフレームを構成する多重フレームの多重フレームヘッダから、前記多重フレーム数分のスロット割り当て情報を取得するスロット割り当て情報取得部と、前記スロット割り当て情報に基づいて、前記スーパーフレームを構成する多重フレームから所定のトランスポートストリームを分離する分離部と、を備えたことを特徴とする。 Further, the invention of claim 7 is a separating apparatus for inputting a superframe output from the multiplexing apparatus according to claim 5 and separating a predetermined transport stream from the multiplexed frames constituting the superframe. Position information indicating a relative position of the multiplex frame from a multiplex frame header of the multiplex frame constituting the super frame, establishing synchronization of the multiplex frame constituting the super frame, establishing synchronization of the super frame Slot allocation information for acquiring slot allocation information for the number of multiplexed frames from a synchronization establishment unit for determining the number of multiplexed frames based on the position information and a multiplexed frame header of the multiplexed frames constituting the superframe Based on the acquisition unit and the slot allocation information, the slot A separation unit for separating a predetermined transport stream from the multiplex frames constituting the superframe, further comprising a characterized.
また、請求項8の発明は、請求項6に記載の多重化装置により出力されたスーパーフレームを入力し、前記スーパーフレームを構成する多重フレームから所定のトランスポートストリームを分離する分離装置であって、前記スーパーフレームを構成する多重フレームの多重フレームヘッダから、前記スロット割り当て情報が変化したか否かを示す更新情報を取得し、前記更新情報からスロット割り当て情報が変化していると判定した場合、前記多重フレームの同期及び前記スーパーフレームの同期を確立し、前記更新情報からスロット割り当て情報が変化していないと判定した場合、前記多重フレームの同期のみを確立する同期確立部と、前記多重フレームの同期及び前記スーパーフレームの同期が確立された場合、前記スーパーフレームを構成する多重フレームの多重フレームヘッダから、前記多重フレーム数分のスロット割り当て情報を取得して出力し、前記多重フレームの同期のみが確立された場合、既に取得しているスロット割り当て情報を出力するスロット割り当て情報取得部と、前記スロット割り当て情報取得部により出力されたスロット割り当て情報に基づいて、前記スーパーフレームを構成する多重フレームから所定のトランスポートストリームを分離する分離部と、を備えたことを特徴とする。
The invention according to
さらに、請求項9の発明は、複数のトランスポートストリームに対して伝送路のタイムスロットを固定的に割り当て、前記トランスポートストリームを時分割多重し、1個以上の多重フレームからなるスーパーフレームを生成して前記伝送路へ出力する多重化方法において、前記複数のトランスポートストリームの速度に基づいて、前記スーパーフレームを構成する多重フレームの数を決定するステップと、前記多重フレームのデータスロットに前記複数のトランスポートストリームを格納する際の、それぞれのトランスポートストリームに割り当てるスロットの数及び位置が規定されたスロット割り当て情報を生成するステップと、前記スロット割り当て情報に基づいて、前記トランスポートストリームの速度を変換するステップと、前記スロット割り当て情報を含む多重フレームヘッダを生成するステップと、前記スロット割り当て情報に基づいて、前記速度変換したトランスポートストリームを前記多重フレームのデータスロットに格納して多重化し、前記多重フレームヘッダを前記多重フレームのヘッダスロットに格納し、前記多重フレーム数分の多重フレームからなるスーパーフレームを生成するステップと、前記スーパーフレームを出力するステップと、を有することを特徴とする。 Furthermore, the invention of claim 9 assigns a time slot of a transmission path to a plurality of transport streams in a fixed manner, and time-division multiplexes the transport streams to generate a super frame composed of one or more multiplexed frames. Then, in the multiplexing method for outputting to the transmission path, a step of determining the number of multiplexed frames constituting the super frame based on the speed of the plurality of transport streams; Generating the slot allocation information in which the number and position of the slots allocated to each transport stream are stored, and the speed of the transport stream is determined based on the slot allocation information. Converting, and Generating a multiplex frame header including lot allocation information; and storing and multiplexing the rate-converted transport stream in a data slot of the multiplex frame based on the slot allocation information; The method includes a step of generating a super frame that is stored in a header slot of a frame and is composed of multiple frames corresponding to the number of multiplexed frames, and a step of outputting the super frame.
さらに、請求項10の発明は、請求項9の多重化方法により、複数のトランスポートストリームが多重化されてデータスロットに格納され、それぞれのトランスポートストリームに割り当てたスロットの数及び位置が規定されたスロット割り当て情報、及び多重フレームにより構成されたスーパーフレーム内の前記多重フレームの相対的な位置を示す位置情報を含む多重フレームヘッダがヘッダスロットに格納され、前記データスロット及びヘッダスロットを有する多重フレームにより構成されたスーパーフレームを入力し、前記多重フレームから所定のトランスポートストリームを分離する分離方法であって、前記スーパーフレームを構成する多重フレームの同期を確立するステップと、前記スーパーフレームを構成する多重フレームの多重フレームヘッダから位置情報を取得し、前記位置情報に基づいて、前記スーパーフレームの同期を確立し、多重フレーム数を求めるステップと、前記スーパーフレームを構成する多重フレームの多重フレームヘッダから、前記多重フレーム数分のスロット割り当て情報を取得するステップと、前記スロット割り当て情報に基づいて、前記スーパーフレームを構成する多重フレームから所定のトランスポートストリームを分離するステップと、を有することを特徴とする。
Furthermore, in the invention of
さらに、請求項11の発明は、コンピュータを、前記多重化装置として機能させるための多重化プログラムである。 The invention of claim 11 is a multiplexing program for causing a computer to function as the multiplexing device.
さらに、請求項12の発明は、コンピュータを、前記分離装置として機能させるための分離プログラムである。
The invention of
本発明によれば、多重化装置において、トランスポートストリームの速度に基づいて、多重フレームの数及びスロット割り当て情報を決定するようにした。これにより、スーパーフレームを構成する多重フレームは、トランスポートストリームの速度に基づいた適切な数となるから、スーパーフレームの数が予め設定されている場合に比べ、スーパーフレームのサイズを小さくすることができる。したがって、伝送効率の低下を抑えることができ、分離装置において、スーパーフレームの同期確立に要する時間を短縮することができる。 According to the present invention, the multiplexing apparatus determines the number of multiplexed frames and slot allocation information based on the speed of the transport stream. As a result, the number of multiplexed frames constituting the superframe is an appropriate number based on the speed of the transport stream, so the size of the superframe can be reduced compared to the case where the number of superframes is preset. it can. Therefore, a decrease in transmission efficiency can be suppressed, and the time required for establishing superframe synchronization in the separation device can be shortened.
また、本発明によれば、分離装置において、多重化装置により出力されたスーパーフレームを入力し、スーパーフレームを構成する多重フレームから、多重フレーム数分のスロット割り当て情報を取得し、所定のトランスポートストリームを分離するようにした。このスーパーフレームは、そのサイズが小さくなるように適切な数の多重フレームにより構成されているから、スーパーフレームの同期確立に要する時間を短縮することができる。 Further, according to the present invention, in the separation device, the superframe output from the multiplexing device is input, slot allocation information for the number of multiplexed frames is obtained from the multiplexed frames constituting the superframe, and a predetermined transport is obtained. The stream was separated. Since the super frame is composed of an appropriate number of multiplexed frames so that the size of the super frame is reduced, the time required for establishing synchronization of the super frame can be shortened.
以下、本発明を実施するための最良の形態について、図面を参照して説明する。
〔多重化装置〕
まず、本発明の実施形態による多重化装置について説明する。図1は、多重化装置の構成を示すブロック図である。この多重化装置1は、速度変換部10−1〜10−J、スロット割り当て部11、ヘッダ生成部12及び多重化部13を備えている。多重化装置1は、複数のTSに対して伝送路のタイムスロットを固定的に割り当て、すなわち、各TSについてスーパーフレーム毎の伝送量が同じになるように、スーパーフレーム内のスロットを各TSに割り当て、時分割多重し、多重フレーム及びスーパーフレームを構成し、伝送路を介して後述する分離装置へスーパーフレームを伝送する。
The best mode for carrying out the present invention will be described below with reference to the drawings.
[Multiplexer]
First, a multiplexing device according to an embodiment of the present invention will be described. FIG. 1 is a block diagram showing the configuration of the multiplexing apparatus. The
多重化装置1が送信すべきJ個(Jは整数)のTS1〜TSJを入力すると、速度変換部10−1〜10−Jは、TS1〜TSJをそれぞれ入力すると共に、スロット割り当て部11からTS1〜TSJに対する速度変換後の正規化速度(変換後の速度を、1スロットあたりの伝送速度で正規化した速度、すなわち1多重フレームあたりの割り当てスロット数)を入力する。そして、速度変換部10−1〜10−Jは、入力したTS1〜TSJの速度をそれぞれ測定し、測定した速度(元の速度)を正規化速度に換算し、換算した元の正規化速度と速度変換後の正規化速度との間の差分について、TS1〜TSJにヌルパケットをそれぞれ挿入し、PCRの値を書き換え、速度変換後のTS1〜TSJを多重化部13に出力する。例えば、入力したTS1に対して測定及び換算した正規化速度が4.134・・・であり、TS1の速度変換後の正規化速度が4.2の場合、速度変換部10−1は、これらの差分に相当する速度(4.2−4.134・・・)のヌルパケットを挿入し、速度変換後のTS1を出力する。尚、速度変換部10−1〜10−Jは、スロット割り当て部11から正規化速度の代わりにスロット割り当て情報を入力し、スロット割り当て情報から速度変換後の正規化速度を算出し、元の正規化速度と速度変換後の正規化速度との間の差分に相当するヌルパケットをTS1〜TSJに挿入するようにしてもよい。尚、正規化速度の詳細については後述する。
When J (J is an integer) TS1 to TSJ to be transmitted by the
スロット割り当て部11は、TS1〜TSJの速度情報(レート情報)1〜Jを入力し、速度情報1〜Jに基づいて、速度変換後の正規化速度を決定し、スーパーフレームを構成する多重フレームの数(多重フレーム数)を決定し、スーパーフレーム内の多重フレームに格納される各TSのスロット数及びスロット位置を示すスロット割り当て情報を生成する。そして、スロット割り当て部11は、速度変換後の正規化速度を速度変換部10−1〜10−Jに出力し、スロット割り当て情報をヘッダ生成部12及び多重化部13に出力し、多重フレーム数をヘッダ生成部12に出力する。
The slot allocating unit 11 inputs speed information (rate information) 1 to J of TS1 to TSJ, determines a normalized speed after speed conversion based on the
ここで、速度変換後の正規化速度、多重フレーム数及びスロット割り当て情報は、TS1〜TSJのTSパケットが多重化時に欠落しないように決定及び生成される。すなわち、スーパーフレーム内の多重フレームに格納される各TSの割り当てスロット数は、割り当てたスロット数によって決まる速度(速度変換部10−1〜10−Jにより変換される速度)が、元の速度以上になるように決定される。速度変換後の正規化速度及び多重フレーム数を決定する処理の詳細、スロット割り当て情報を生成する処理の詳細、及びスロット割り当て情報の詳細については後述する。 Here, the normalized speed after the speed conversion, the number of multiplexed frames, and the slot allocation information are determined and generated so that TS packets of TS1 to TSJ are not lost during multiplexing. That is, the number of assigned slots of each TS stored in the multiplex frame in the superframe is a speed determined by the number of assigned slots (speed converted by the speed converters 10-1 to 10-J) is higher than the original speed. It is decided to become. Details of processing for determining the normalized speed and the number of multiplexed frames after rate conversion, details of processing for generating slot allocation information, and details of slot allocation information will be described later.
尚、スロット割り当て部11は、TS1〜TSJが一定速度の場合、予め設定された速度情報1〜Jを入力するようにしてもよい。また、TS1〜TSJが可変速度の場合、速度変換部10−1〜10−Jまたは図示しない速度情報測定部により測定された速度情報1〜Jを入力するようにしてもよい。この場合、速度情報測定部は、TS1〜TSJを入力し、TS1〜TSJに基づいて速度情報1〜Jをそれぞれ測定する。
The slot allocation unit 11 may input
ヘッダ生成部12は、スロット割り当て部11からスロット割り当て情報及び多重フレーム数を入力し、スロット割り当て情報及び多重フレーム数に基づいて、スーパーフレームを構成する多重フレームの相対的な位置情報を生成し、スロット割り当て情報が変化したか否かを示す更新情報を生成する。そして、ヘッダ生成部12は、スーパーフレームを構成する多重フレーム毎に、パケット同期情報、多重フレーム同期情報、スロット割り当て情報、スーパーフレームを構成する多重フレームの相対的な位置情報、及び更新情報を含む多重フレームヘッダを生成して多重化部13に出力する。多重フレームヘッダの詳細については後述する。
The
多重化部13は、速度変換部10−1〜10−Jから速度変換後のTS1〜TSJを入力し、スロット割り当て部11からスロット割り当て情報を入力し、ヘッダ生成部12から多重フレームヘッダを入力する。そして、多重化部13は、スロット割り当て情報に基づいて、TS1〜TSJを多重フレームのデータスロットに格納して多重化し、多重フレームヘッダを多重フレームのヘッダスロットに格納し、多重フレーム及びスーパーフレームを生成し、スーパーフレームを出力する。多重化部13により出力されたスーパーフレームは、多重化装置1から放送網の伝送路を介して後述する分離装置へ、放送波として伝送される。スーパーフレームの構成の詳細については後述する。
(スロット割り当て部)
次に、図1に示したスロット割り当て部11について詳細に説明する。前述のとおり、スロット割り当て部11は、TS1〜TSJの速度情報1〜Jに基づいて、速度変換後の正規化速度及びスーパーフレームを構成する多重フレームの数を決定し、スロット割り当て情報を生成する。すなわち、スロット割り当て部11は、TS1〜TSJの速度情報1〜Jに基づいて、TS1〜TSJのTSパケットが多重化時に欠落しないように、すなわち、割り当てるスロット数によって決まるTSの速度(速度変換部10−1〜10−Jにより変換される速度)が元の速度以上になるように、速度変換後の正規化速度及び多重フレーム数を決定し、スロット割り当て情報を生成する。
(Slot allocation part)
Next, the slot allocation unit 11 shown in FIG. 1 will be described in detail. As described above, the slot assignment unit 11 determines the normalized speed after speed conversion and the number of multiplexed frames constituting the superframe based on the
図2は、スロット割り当て部11の処理を示すフローチャートである。スロット割り当て部11は、TS1〜TSJの速度情報1〜Jを入力し(ステップS201)、速度情報1〜Jに基づいて、割り当てスロット数を決定したときの割り当てスロット数によって決まる各TSの速度が元の速度以上になり、かつ、速度変換時に挿入されるヌルパケットが最小になるように、TS1〜TSJの割り当てスロット数A1+B1/I〜AJ+BJ/Iを決定する(ステップS202)。ここで、TS1〜TSJの割り当てスロット数A1+B1/I〜AJ+BJ/Iは、1多重フレームあたりの各TSの割り当てスロット数であり、速度変換後の正規化速度である。つまり、速度変換部10−1〜10−Jにおいて、1多重フレーム内のスロットが1/Iスロット単位に割り当てられるように、速度変換が行われる。Iは、スーパーフレームに含まれる多重フレームの数(整数)の最大値を示し、予め設定されているものとする。Aは、正の整数であり、BはI未満の正の整数である。これにより、速度情報1〜Jに応じて、TS毎にA及びBのパラメータが決定される。
FIG. 2 is a flowchart showing the processing of the slot allocation unit 11. The slot allocation unit 11
スロット割り当て部11は、以下の規則に従って、スーパーフレームに含まれる多重フレームの数を決定する。
(1)全てのB1〜BJが0である場合(B1=・・・=BJ=0の場合)、スーパーフレーム内の多重フレーム数を1とする。
(2)ゼロでないBj(jはJ以下の正の整数)が存在し、かつ、その全てのBjについてI/Bjが整数である場合、スーパーフレーム内の多重フレーム数をLCM{I/Bj}とする。LCM{ }は、最小公倍数を演算する関数である。
(3)前記(1)(2)のいずれにもあてはまらない場合、スーパーフレーム内の多重フレーム数をIとする。
The slot allocation unit 11 determines the number of multiplexed frames included in the superframe according to the following rules.
(1) When all of B 1 to B J are 0 (when B 1 =... = B J = 0), the number of multiplexed frames in the superframe is set to 1.
(2) When non-zero B j (j is a positive integer equal to or less than J) exists and I / B j is an integer for all B j , the number of multiplexed frames in the superframe is represented by LCM {I / B j }. LCM {} is a function for calculating the least common multiple.
(3) If none of the above (1) and (2) applies, the number of multiplexed frames in the superframe is I.
具体的には、スロット割り当て部11は、ステップS202で決定したB1〜BJがB1〜BJ=0であるか否かを判定し(ステップS203)、B1〜BJ=0であると判定した場合(ステップS203:Y)、多重フレーム数を1に決定する(ステップS204)。一方、B1〜BJ=0でないと判定した場合(ステップS203:N)、ステップS205へ移行する。 Specifically, the slot allocation unit 11 determines whether or not B 1 to B J determined in step S202 is B 1 to B J = 0 (step S203), and B 1 to B J = 0. When it is determined that there is a frame (step S203: Y), the number of multiplexed frames is determined to be 1 (step S204). On the other hand, when it is determined that B 1 to B J = 0 are not satisfied (step S203: N), the process proceeds to step S205.
スロット割り当て部11は、ゼロでないBjについて、全てのI/Bjが整数であるか否かを判定し(ステップS205)、ゼロでないBjについての全てのI/Bjが整数であると判定した場合(ステップS205:Y)、多重フレーム数をLCM{I/Bj}(I/Bjの最小公倍数)に決定する(ステップS206)。一方、ゼロでないBjについての全てのI/Bjが整数ではない、すなわち、いずれかのI/Bjが整数でないと判定した場合(ステップS205:N)、多数フレーム数をIに決定する(ステップS207)。ステップS204,S206,S207にて決定された多重フレーム数をNとする。 Slot allocation unit 11, the B j nonzero, all I / B j is equal to or an integer (step S205), when all of the I / B j for B j nonzero is an integer If it is determined (step S205: Y), the number of multiplexed frames is determined to be LCM {I / B j } (the least common multiple of I / B j ) (step S206). On the other hand, is not an integer all I / B j for B j is not zero, i.e., if any of the I / B j is determined not to be an integer (step S205: N), determines the number number of frames to I (Step S207). Let N be the number of multiplexed frames determined in steps S204, S206, and S207.
そして、スロット割り当て部11は、ステップS204,S206,S207から移行して、ステップS202にて決定された、TS1〜TSJの割り当てスロット数A1+B1/I〜AJ+BJ/I、及び、ステップS203〜S207にて決定された多重フレーム数Nに基づいて、スーパーフレームを構成するN個の多重フレームに格納されるTS1〜TSJのスロット数及びスロット位置を示すスロット割り当て情報を生成する(ステップS208)。ここで、スーパーフレームを構成するN個の多重フレームに格納されるTS1〜TSJのスロット数は、1多重フレームあたりの割り当てスロット数であるA1+B1/I〜AJ+BJ/Iに多重フレーム数Nをそれぞれ乗算することにより得られる。また、スーパーフレームを構成するN個の多重フレームにおいて、データが格納されるスロットのうち、TS1〜TSJが格納されるスロット以外の残りのスロットは空きスロットとなる。また、スーパーフレームを構成するN個の多重フレームに格納されるTS1〜TSJのスロット位置(及び空きスロット位置)は、任意に決定される。 Then, the slot assignment unit 11 shifts from step S204, S206, S207, determined at step S202, TS1~TSJ the assigned slot number A 1 + B 1 / I~A J + B J / I and, Based on the number N of multiplexed frames determined in steps S203 to S207, slot assignment information indicating the number of slots and slot positions of TS1 to TSJ stored in the N multiplexed frames constituting the superframe is generated (steps). S208). Here, the number of slots of TS1 to TSJ stored in N multiplexed frames constituting the superframe is multiplexed to A 1 + B 1 / I to A J + B J / I, which is the number of assigned slots per multiplexed frame. It is obtained by multiplying the number N of frames. In the N multiplexed frames constituting the superframe, among the slots storing data, the remaining slots other than the slots storing TS1 to TSJ are empty slots. Further, the slot positions (and empty slot positions) of TS1 to TSJ stored in N multiplexed frames constituting the superframe are arbitrarily determined.
スロット割り当て部11は、速度変換後の正規化速度を速度変換部10−1〜10−Jに出力し、スロット割り当て情報をヘッダ生成部12及び多重化部13に出力し、多重フレーム数をヘッダ生成部12に出力する(ステップS209)。
The slot allocation unit 11 outputs the normalized speed after the speed conversion to the speed conversion units 10-1 to 10-J, outputs the slot allocation information to the
このように、スロット割り当て部11は、図2に示した処理フローにより、TS1〜TSJの速度情報1〜Jに基づいて、速度変換後の正規化速度を決定し、スーパーフレームを構成する多重フレーム数を決定し、スロット割り当て情報を生成する。
As described above, the slot allocation unit 11 determines the normalized speed after the speed conversion based on the
〔具体例〕
次に、多重フレーム数を決定する処理、スロット割り当て情報を生成する処理、多重フレームヘッダを生成する処理、多重フレーム及びスーパーフレームを生成する処理の具体例について説明する。多重化装置1が入力するTSの数をJ=4とし、各TSにおいて、1スロットあたりの伝送速度で正規化した伝送速度をそれぞれTS1=4.134・・・、TS2=2.198・・・、TS3=2、TS4=0.111・・・とし、多重フレームは、11個のデータを格納するスロット(データスロット)と1個のヘッダを格納するスロット(ヘッダスロット)からなるものとする。つまり、1多重フレームにおけるデータを格納する全てのスロットに対する正規化した速度は11となる。ここで、1スロットあたりの伝送速度で正規化した伝送速度(正規化速度)とは、TSの伝送速度を1スロットあたりの伝送速度で除算した速度を示す。例えば、1スロットあたりの伝送速度が1Mbps、入力するTSの速度が2Mbpsのとき、正規化速度は2/1=2となる。
〔Concrete example〕
Next, specific examples of a process for determining the number of multiplexed frames, a process for generating slot allocation information, a process for generating a multiplexed frame header, and a process for generating a multiplexed frame and a superframe will be described. The number of TSs input by the
(従来の例1)
本発明の実施形態による多重化装置1の前記処理の具体例を説明する前に、従来技術における第1の例として、多重フレーム毎にスロットを固定的に割り当てる場合、すなわち、スーパーフレームを生成しない場合について説明する。この場合、各TSに割り当てるスロット数の最小単位は1であるから、速度変換後の各TSの正規化速度は、TS1=5、TS2=3、TS3=2、TS4=1となる。
(Conventional example 1)
Before explaining a specific example of the processing of the
図10は、従来技術による多重フレームの構成例(速度変換後の各TSの正規化速度がTS1=5、TS2=3、TS3=2、TS4=1のときの構成例)を示す図である。図10に示すように、速度変換後の各TSの正規化速度に従って、ヘッダが格納される1個のスロット、TS1が格納される5個のスロット、TS2が格納される3個のスロット、TS3が格納される2個のスロット、及び、TS4が格納される1個のスロットからなる多重フレームが生成される。多重フレームの全スロットのうちヘッダを除外したスロット数11に対して(多重フレームにおけるデータを格納する全てのスロットの正規化速度11に対して)、入力したTSを速度変換せずにスロットを割り当てた場合のスロット数の合計は(入力したTSにおける正規化速度の合計は)8.442・・・(=4.134・・・+2.198・・・+2+0.111・・・)である。残りの帯域2.557・・・(=11-8.442・・・)は、ヌルパケットが伝送されることになる。 FIG. 10 is a diagram showing a configuration example of a multiplex frame according to the prior art (configuration example when the normalized speed of each TS after rate conversion is TS1 = 5, TS2 = 3, TS3 = 2, TS4 = 1). . As shown in FIG. 10, according to the normalized speed of each TS after speed conversion, one slot for storing a header, five slots for storing TS1, three slots for storing TS2, TS3 Is generated, and a multi-frame consisting of one slot in which TS4 is stored is generated. All slots of the multiplex frame are assigned slots without converting the speed of the input TS with respect to the number of slots 11 excluding the header (for the normalized speed 11 of all slots storing data in the multiplex frame). In this case, the total number of slots (the sum of the normalized speeds in the input TS) is 8.442 (= 4.134 ... + 2.198 ... + 2 + 0.111 ...). Null packets are transmitted in the remaining band 2.557 (= 11-8.442).
(従来の例2)
次に、従来技術における第2の例(前述した非特許文献4の例)として、予め設定されたサイズのスーパーフレームを生成し、スーパーフレーム毎にスロットを固定的に割り当てる場合について説明する。スーパーフレームを構成する多重フレーム数として、M=10が予め設定されているものとする。この場合、各TSに割り当てるスロット数の最小単位は0.1(10個の多重フレーム内の1スロット)であるから、速度変換後の各TSの正規化速度は、TS1=4.2、TS2=2.2、TS3=2.0、TS4=0.2となる。
(Conventional example 2)
Next, as a second example of the prior art (example of
図11は、従来技術による多重フレーム及びスーパーフレームの構成例(速度変換後の各TSの正規化速度がTS1=4.2、TS2=2.2、TS3=2.0、TS4=0.2のときの構成例)を示す図である。多重化装置により、図11に示す多重フレーム及びスーパーフレームが生成される。多重フレームの全スロットのうちヘッダを除外したスロット数11に対して(多重フレームにおけるデータを格納する全てのスロットの正規化速度11に対して)、速度変換後のTSが格納されるスロット数の合計は(速度変換後のTSにおける正規化速度の合計は)8.6(=4.2+2.2+2.0+0.2)であり、1多重フレームあたり2.4個(1スーパーフレームあたり24個)の空きスロットが生成される。また、TSの速度変換に伴い挿入したヌルパケットの伝送速度は、0.157・・・(=8.6−8.442・・・)となる。空きスロットは別のTSを伝送するために利用することができるから、スーパーフレームを伝送しない場合と比べて伝送効率の低下を抑えられる。 FIG. 11 shows a configuration example of a multiplex frame and a superframe according to the prior art (normalized speeds of TS after speed conversion are TS1 = 4.2, TS2 = 2.2, TS3 = 2.0, TS4 = 0.2 It is a figure which shows the example of a structure at that time. The multiplexing apparatus generates a multiplexed frame and a super frame shown in FIG. Of all the slots of the multiplex frame, the number of slots in which the header is excluded (for the normalized speed 11 of all the slots storing data in the multiplex frame) The sum (the sum of normalized speeds in TS after speed conversion) is 8.6 (= 4.2 + 2.2 + 2.0 + 0.2), and 2.4 per multiplexed frame (24 per superframe) Empty slots are generated. Further, the transmission rate of the null packet inserted along with the TS rate conversion is 0.157 (= 8.6−8.442,...). Since the empty slot can be used to transmit another TS, a decrease in transmission efficiency can be suppressed as compared with a case where a superframe is not transmitted.
(実施例1:多重フレーム数Nを前記(2)により決定する場合、N=5)
次に、図1に示した多重化装置1による実施例について説明する。まず、多重フレーム数Nを決定する規則において、前記(2)の条件を満たす場合(スロット割り当て部11により多重フレーム数N=5が決定される例)について説明する。前述のとおり、TSの数をJ=4とし、多重化装置1が入力する各TSについて、正規化速度(1多重フレームあたりの割り当てスロット数)をそれぞれTS1=4.134・・・、TS2=2.198・・・、TS3=2、TS4=0.111・・・とし、多重フレームは11個のデータを格納するスロットと1個のヘッダを格納するスロットからなるものとし、スーパーフレームを構成する多重フレームの最大値I=10とする。
(Embodiment 1: N = 5 when the number N of multiplexed frames is determined by the above (2))
Next, an embodiment of the
スロット割り当て部11は、速度情報1〜Jである正規化速度TS1=4.134・・・、TS2=2.198・・・、TS3=2、TS4=0.111・・・に基づいて、割り当てスロット数を決定したときの割り当てスロット数によって決まる各TSの速度が元の速度以上になり、かつ、速度変換時に挿入されるヌルパケットが最小になるように、各TSの割り当てスロット数A1+B1/10〜A4+B4/10を決定する。すなわち、TS1の割り当てスロット数は4.2(=4+2/10)、TS2の割り当てスロット数は2.2(=2+2/10)、TS3の割り当てスロット数は2.0(=2+0/10)、TS4の割り当てスロット数は0.2(=0+2/10)となり、A1=4,B1=2,A2=2,B2=2,A3=2,B3=0,A4=0,B4=2となる。
The slot allocation unit 11 determines the number of allocated slots based on the normalized speeds TS1 = 4.134..., TS2 = 2.198..., TS3 = 2, TS4 = 0.111. speed of each TS becomes more original speed determined by the assigned number of slots of the time, and, as a null packet which is inserted when the rate conversion is minimized, the number of allocated slots each TS a 1 +
速度変換部10−1〜10−4は、スロット割り当て部11から、対応するTSの速度変換後の正規化速度(1多重フレームあたりのスロット割り当て数)を入力し(スロット割り当て情報を入力し、スロット割り当て情報から速度変換後の正規化速度を算出し)、対応するTSの元の正規化速度と、速度変換後の正規化速度との間の差分について、ヌルパケットを挿入する。例えば、速度変換部10−1は、TS1の速度変換後の正規化速度4.2を入力し、TS1の元の正規化速度TS1=4.134・・・と、速度変換後の正規化速度TS1=4.2との間の差分について、伝送速度4.2-4.134・・・分のヌルパケットを挿入することにより、速度変換を実現する。 The speed conversion units 10-1 to 10-4 input the normalized speed (number of slot allocations per multiplexed frame) after the speed conversion of the corresponding TS from the slot allocation unit 11 (input slot allocation information, The normalized speed after speed conversion is calculated from the slot allocation information), and a null packet is inserted for the difference between the original normalized speed of the corresponding TS and the normalized speed after speed conversion. For example, the speed conversion unit 10-1 inputs the normalized speed 4.2 after the speed conversion of TS1, and the original normalized speed TS1 = 4.134... Of TS1 and the normalized speed TS1 = after the speed conversion. For the difference from 4.2, rate conversion is realized by inserting null packets for the transmission rate of 4.2-4.134.
スロット割り当て部11は、決定したパラメータB1=2,B2=2,B3=0,B4=2から、図2に示したステップS203において全てのB1〜B4が0でなく、ステップS205においてI/B1=10/2=5、I/B2=10/2=5、I/B4=10/2=5であるから、前記(2)の条件を満たし、ステップS206の処理により、多重フレーム数N=5を決定する。 From the determined parameters B 1 = 2, B 2 = 2, B 3 = 0, and B 4 = 2, the slot allocator 11 determines that all B 1 to B 4 are not 0 in step S203 shown in FIG. Since I / B 1 = 10/2 = 5, I / B 2 = 10/2 = 5, and I / B 4 = 10/2 = 5 in step S205, the condition (2) is satisfied, and step S206 is satisfied. The number of multiplexed frames N = 5 is determined by the above process.
図3は、多重フレーム及びスーパーフレームの構成例(1)を示す図である。この多重フレーム及びスーパーフレームは、多重フレーム数N=5、TS1の割り当てスロット数4.2、TS2の割り当てスロット数2.2、TS3の割り当てスロット数2.0、TS4の割り当てスロット数0.2のときに、多重化部13により生成されるフレームである。スーパーフレームには、TS1が21個(割り当てスロット数4.2×多重フレーム数5)のスロットに格納され、TS2が11個(2.2×5)のスロットに格納され、TS3が10個(2.0×5)のスロットに格納され、TS4が1個(0.2×5)のスロットに格納されている。尚、各TSが格納されるスロットの位置については、必ずしも図3に示した配置である必要はなく、スーパーフレーム内に格納される各TSの数及び空きスロットの数が同じであれば、どのような配置であっても構わない。図6についても同じ。
FIG. 3 is a diagram illustrating a configuration example (1) of a multiplex frame and a super frame. This multiplex frame and superframe have a multiplex frame number N = 5, a TS1 allocation slot number 4.2, a TS2 allocation slot number 2.2, a TS3 allocation slot number 2.0, and a TS4 allocation slot number 0.2. At this time, the frame is generated by the multiplexing
このように、多重化部13により、図3に示した多重フレーム及びスーパーフレームが生成され、このスーパーフレームを構成する多重フレーム数はN=5であり、前述した従来の例2における非特許文献4の技術と比べて、スーパーフレームのサイズが1/2になっている。したがって、スーパーフレームを受信する、後述する分離装置において、スーパーフレームの同期確立のために必要な時間を短縮することができる。
As described above, the multiplexing
図4は、多重フレームヘッダの構成例を示す図である。この多重フレームヘッダは、多重フレーム数N=5、TS1の割り当てスロット数4.2、TS2の割り当てスロット数2.2、TS3の割り当てスロット数2.0、TS4の割り当てスロット数0.2のときに、ヘッダ生成部12により生成されるヘッダである。
FIG. 4 is a diagram illustrating a configuration example of a multiple frame header. This multiplex frame header has a multiplex frame number N = 5, a TS1 allocation slot number of 4.2, a TS2 allocation slot number of 2.2, a TS3 allocation slot number of 2.0, and a TS4 allocation slot number of 0.2. The header is generated by the
図4に示すように、多重フレームヘッダは、パケット同期情報、多重フレーム同期情報、スロット割り当て情報、位置情報、更新情報及びその他の情報により構成される。パケット同期情報(0x47)は、TSパケット形式のデータの先頭を示す情報であり、多重フレーム同期情報(0x1a86,0x0579)は、多重フレームの同期を確立させるための情報である。この多重フレーム同期情報は、ITU−T Rec.J.183の規定と同様に、多重フレーム毎に全ビットが反転する2種類の情報からなる。 As shown in FIG. 4, the multiplex frame header includes packet synchronization information, multiplex frame synchronization information, slot allocation information, position information, update information, and other information. The packet synchronization information (0x47) is information indicating the head of data in the TS packet format, and the multiplex frame synchronization information (0x1a86, 0x0579) is information for establishing synchronization of multiplex frames. This multi-frame synchronization information is stored in ITU-T Rec. J. et al. Similar to the provisions of H.183, it consists of two types of information in which all bits are inverted for each multiplexed frame.
スロット割り当て情報は、前述した非特許文献3と同様に、4ビットの相対TS_idを用いて表され、15個のTS_id(TSのID)、original_network_idと相対TS_idの対応表、及び相対TS_idの表により構成される。これら2つの表によって、各スロットに格納されるTSパケットが指定される。尚、割り当てのない相対TS_idに対応するTS_id、original_network_idは0xFFFFであり、空きスロットの相対TS_idは0x0である。このスロット割り当て情報は、図3に示したスーパーフレームを構成する各多重フレームに格納されるTS1〜TS4及び空きスロットに対応している。例えば、図3から、1番目の多重フレームのデータスロットには、5個のTS1、3個のTS2、2個のTS3及び1個のTS4がこの順序で格納されることがわかる。図4を参照して、これに対応した1番目の多重フレームヘッダ(ヘッダ1)において、スロット割り当て情報の相対TS_idの対応表は、5個の0x1、3個の0x2、2個の0x3及び1個の0x4の順序になっており、図3に対応していることがわかる。 Similar to Non-Patent Document 3 described above, the slot allocation information is represented by using a 4-bit relative TS_id, and includes 15 TS_ids (TS IDs), a correspondence table of original_network_id and relative TS_id, and a table of relative TS_id. Composed. These two tables specify the TS packet stored in each slot. Note that TS_id and original_network_id corresponding to the unassigned relative TS_id are 0xFFFF, and the relative TS_id of the empty slot is 0x0. This slot allocation information corresponds to TS1 to TS4 and empty slots stored in each multiplexed frame constituting the superframe shown in FIG. For example, it can be seen from FIG. 3 that 5 TS1, 3 TS2, 2 TS3, and 1 TS4 are stored in this order in the data slot of the first multiplexed frame. Referring to FIG. 4, in the first multiple frame header (header 1) corresponding to this, the correspondence table of relative TS_id of the slot allocation information is 5 0x1, 3 0x2, 2 0x3 and 1 It can be seen that this is in the order of 0x4, corresponding to FIG.
位置情報は、スーパーフレームを構成する多重フレーム(における多重フレームヘッダ)の相対的な位置を示す情報である。位置情報は、ビット数が4であり、多重フレーム(における多重フレームヘッダ)の伝送順に1〜5の番号が付与される。伝送順が変化しなければ、どのヘッダから付与を開始してもよい。また、前記例では多重フレームの最大値をI=10としたため、位置情報は、1〜10までの値をとり、最大で10までの値をとるから、位置情報のビット数は4ビット(=16)あれば十分である。更新情報は、スロット割り当て情報が変化したか否かを示す更新情報である。更新情報は、ビット数が8であり、位置情報に変化があった場合に1が加えられる。最大値(255)に達した場合は、1を加えた結果が0とされる。
The position information is information indicating a relative position of multiple frames (in the multiple frame header) constituting the super frame. The position information has a bit number of 4 and is assigned
(実施例2:多重フレーム数Nを前記(1)により決定する場合、N=1)
次に、図1に示した多重化装置1による他の実施例として、多重フレーム数Nを決定する規則において、前記(1)の条件を満たす場合(スロット割り当て部11により多重フレーム数N=1が決定される例)について説明する。多重化装置1が入力するTSの数をJ=4とし、多重化装置1が入力する各TSについて、正規化速度をそれぞれTS1=4、TS2=2、TS3=2、TS4=1とし(TS1,TS2,TS4の伝送速度が実施例1と異なっている)、多重フレームは11個のデータを格納するスロットと1個のヘッダを格納するスロットからなるものとし、スーパーフレームを構成する多重フレームの最大値I=10とする。
(Embodiment 2: When the number of multiplexed frames N is determined by the above (1), N = 1)
Next, as another embodiment of the
スロット割り当て部11は、速度情報1〜Jである正規化速度TS1=4、TS2=2、TS3=2、TS4=1に基づいて、各TSの割り当てスロット数A1+B1/10〜A4+B4/10を決定する。すなわち、TS1の割り当てスロット数は4.0(=4+0/10)、TS2の割り当てスロット数は2.0(=2+0/10)、TS3の割り当てスロット数は2.0(=2+0/10)、TS4の割り当てスロット数は1.0(=1+0/10)となり、A1=4,B1=0,A2=2,B2=0,A3=2,B3=0,A4=1,B4=0となる。
Slot allocation unit 11 based on the normalized speed TS1 = 4, TS2 = 2, TS3 = 2, TS4 = 1 is the
スロット割り当て部11は、決定したパラメータB1=0,B2=0,B3=0,B4=0から、図2に示したステップS203において全てのB1〜B4が0であるから、前記(1)の条件を満たし、前述したステップS204の処理により、多重フレーム数N=1を決定する。 Since the determined parameters B 1 = 0, B 2 = 0, B 3 = 0, and B 4 = 0, all the B 1 to B 4 are 0 in step S203 shown in FIG. The number of multiplexed frames N = 1 is determined by satisfying the condition (1) and performing the processing in step S204 described above.
図5は、多重フレーム及びスーパーフレームの構成例(2)を示す図である。この多重フレーム及びスーパーフレームは、多重フレーム数N=1、TS1の割り当てスロット数4.0、TS2の割り当てスロット数2.0、TS3の割り当てスロット数2.0、TS4の割り当てスロット数1.0のときに、多重化部13により生成されるフレームである。スーパーフレームには、TS1が4個(割り当てスロット数4.0×多重フレーム数1)のスロットに格納され、TS2が2個(2.0×1)のスロットに格納され、TS3が2個(2.0×1)のスロットに格納され、TS4が1個(1.0×1)のスロットに格納されている。
FIG. 5 is a diagram illustrating a configuration example (2) of the multiplex frame and the super frame. The multiplex frame and superframe have a multiplex frame number N = 1, a TS1 allocation slot number of 4.0, a TS2 allocation slot number of 2.0, a TS3 allocation slot number of 2.0, and a TS4 allocation slot number of 1.0. At this time, the frame is generated by the multiplexing
このように、多重化部13により、図5に示した多重フレーム及びスーパーフレームが生成され、このスーパーフレームを構成する多重フレーム数はN=1であり、前述した従来の例2における非特許文献4の技術と比べて、スーパーフレームの大きさが1/10になっている。したがって、スーパーフレームを受信する、後述する分離装置において、スーパーフレームの同期確立のために必要な時間を短縮することができる。
As described above, the multiplexing
(実施例3:多重フレーム数Nを前記(3)により決定する場合、N=10)
次に、図1に示した多重化装置1による他の実施例として、多重フレーム数Nを決定する規則において、前記(3)の条件を満たす場合(スロット割り当て部11により多重フレーム数N=10が決定される例)について説明する。多重化装置1が入力するTSの数をJ=4とし、多重化装置1が入力する各TSについて、正規化速度をそれぞれTS1=4.134・・・、TS2=2.198・・・、TS3=2、TS4=0.211・・・とし(TS4の伝送速度だけが実施例1と異なっている)、多重フレームは11個のデータを格納するスロットと1個のヘッダを格納するスロットからなるものとし、スーパーフレームを構成する多重フレームの最大値I=10とする。
(Third embodiment: N = 10 when the number N of multiplexed frames is determined by the above (3))
Next, as another embodiment of the
スロット割り当て部11は、速度情報1〜Jである正規化速度TS1=4.134・・・、TS2=2.198・・・、TS3=2、TS4=0.211・・・に基づいて、各TSの割り当てスロット数A1+B1/10〜A4+B4/10を決定する。すなわち、TS1の割り当てスロット数は4.2(=4+2/10)、TS2の割り当てスロット数は2.2(=2+2/10)、TS3の割り当てスロット数は2.0(=2+0/10)、TS4の割り当てスロット数は0.3(=0+3/10)となり、A1=4,B1=2,A2=2,B2=2,A3=2,B3=0,A4=0,B4=3となる(B4だけが実施例1と異なっている)。
The slot allocation unit 11 assigns the number of slots allocated to each TS based on the normalized speeds TS1 = 4.134..., TS2 = 2.198..., TS3 = 2, TS4 = 0.212. determining a 1 + B 1 / 10~A 4 +
スロット割り当て部11は、決定したパラメータB1=2,B2=2,B3=0,B4=3から、図2に示したステップS203において全てのB1〜B4が0でなく、ステップS205においてI/B4=10/3が整数でないから、前記(3)の条件を満たし、ステップS207の処理により、多重フレーム数N=I=10を決定する。 From the determined parameters B 1 = 2, B 2 = 2, B 3 = 0, and B 4 = 3, the slot allocating unit 11 determines that all B 1 to B 4 are not 0 in step S203 shown in FIG. Since I / B 4 = 10/3 is not an integer in step S205, the condition (3) is satisfied, and the number of multiplexed frames N = I = 10 is determined by the processing in step S207.
図6は、多重フレーム及びスーパーフレームの構成例(3)を示す図である。この多重フレーム及びスーパーフレームは、多重フレーム数N=10、TS1の割り当てスロット数4.2、TS2の割り当てスロット数2.2、TS3の割り当てスロット数2.0、TS4の割り当てスロット数0.3のときに、多重化部13により生成されるフレームである。スーパーフレームには、TS1が42個(割り当てスロット数4.2×多重フレーム数10)のスロットに格納され、TS2が22個(2.2×10)のスロットに格納され、TS3が20個(2.0×10)のスロットに格納され、TS4が3個(0.3×10)のスロットに格納されている。
FIG. 6 is a diagram illustrating a configuration example (3) of a multiplex frame and a super frame. This multiplex frame and superframe have a multiplex frame number N = 10, a TS1 allocation slot number of 4.2, a TS2 allocation slot number of 2.2, a TS3 allocation slot number of 2.0, and a TS4 allocation slot number of 0.3. At this time, the frame is generated by the multiplexing
以上のように、本発明の実施形態による多重化装置1によれば、複数のTSに対して伝送路のタイムスロットを固定的に割り当て、時分割多重し、多重フレーム及びスーパーフレームを構成して伝送するシステムにおいて、スロット割り当て部11が、TS1〜TSJの速度情報1〜Jに基づいて、割り当てスロット数を決定したときの各TS1〜TSJの速度が元の速度以上になり、かつ、速度変換時に挿入されるヌルパケットが最小になるように、多重フレーム数及びスロット割り当て情報を決定するようにした。また、ヘッダ生成部12が、多重フレーム数及びスロット割り当て情報に基づいて、位置情報及び更新情報を生成し、多重フレームヘッダを生成するようにした。また、多重化部13が、速度変換部10−1〜10−Jにおいて速度変換されたTS1〜TSJを入力し、スロット割り当て情報に基づいて、TS1〜TSJをデータスロットに格納して多重化し、多重フレームヘッダをヘッダスロットに格納し、多重フレーム及びスーパーフレームを生成して出力するようにした。
As described above, according to the
これにより、スーパーフレームは、TS1〜TSJの速度情報1〜Jに基づいた適切な数の多重フレームにより構成されるから、スーパーフレームのサイズを小さくすることができる。また、TSに挿入されるヌルパケットは最小になるから、各TSの速度変換を適切に行うことができる。したがって、伝送効率の低下を抑え、後述する分離装置においてスーパーフレームの同期確立に要する時間を短縮することができる。さらに、各TSに対して変換後の速度を適切に設定することにより、スーパーフレームのサイズを小さくすることができる等、伝送効率及び同期確立時間に要求される条件に応じて柔軟に対応することができる。
Thereby, since the super frame is composed of an appropriate number of multiplexed frames based on the
〔分離装置〕
次に、本発明の実施形態による分離装置について説明する。図7は、分離装置の構成を示すブロック図である。この分離装置2は、同期確立部20、スロット割り当て情報取得部21及び分離部22を備えている。分離装置2は、多重化装置1により出力されたスーパーフレームを、伝送路を介して入力し、多重フレームの同期を確立し、スーパーフレームの同期を確立し、多重フレームヘッダからスロット割り当て情報を抽出し、スロット割り当て情報に基づいて、スーパーフレームから、要求されたTSを分離して出力する。
[Separator]
Next, the separation apparatus according to the embodiment of the present invention will be described. FIG. 7 is a block diagram showing the configuration of the separation apparatus. The
同期確立部20は、スーパーフレームを入力し、多重フレームヘッダ内の更新情報が変化していないと判定した場合、スロット割り当て情報に変化がないとして、多重フレームの同期のみを確立する。また、同期確立部20は、更新情報が変化していると判定した場合、スロット割り当て情報に変化があるとして、多重フレームの同期及びスーパーフレームの同期を確立する。そして、同期確立部20は、多重フレームの同期のみを確立した場合、多重フレームの先頭を示す同期情報及びその多重フレームの位置情報をスロット割り当て情報取得部21に出力する。また、同期確立部20は、多重フレーム及びスーパーフレームの同期を確立した場合、スーパーフレームの先頭(例えば、位置情報が1である多重フレームの先頭)を示す同期情報及び多重フレーム数をスロット割り当て情報取得部21に出力する。同期確立部20の詳細については後述する。
When the
スロット割り当て情報取得部21は、スーパーフレームを入力すると共に、同期確立部20から、スーパーフレームの先頭を示す同期情報及び多重フレーム数、または多重フレームの先頭を示す同期情報及び位置情報を入力する。スロット割り当て情報取得部21は、スーパーフレームの先頭を示す同期情報及び多重フレーム数を入力した場合、スーパーフレームを構成する多重フレームの多重フレームヘッダから新たなスロット割り当て情報を取得し、分離部22に出力する。また、スロット割り当て情報取得部21は、多重フレームの先頭を示す同期情報及び位置情報を入力した場合、既に取得していたスロット割り当て情報(位置情報の示す多重フレームのスロット割り当て情報)を記憶手段(図示せず)から読み出し、分離部22に出力する。スロット割り当て情報取得部21の詳細については後述する。
The slot allocation
分離部22は、スーパーフレームを入力し、スロット割り当て情報取得部21からスロット割り当て情報を入力し、分離装置2において分離が要求されたTSの識別情報(TS_id(TSのID)及びoriginal_network_id(オリジナルネットワークID))を入力する。そして、分離部22は、スロット割り当て情報に基づいて、スーパーフレームを構成する多重フレームから、要求されたTSを分離して出力する。
The
(同期確立部)
次に、図7に示した同期確立部20について詳細に説明する。前述したとおり、同期確立部20は、スーパーフレームを入力し、多重フレームヘッダ内の更新情報が変化していないと判定した場合、スロット割り当て情報に変化がないとして、多重フレームの同期のみを確立する。また、同期確立部20は、更新情報が変化していると判定した場合、スロット割り当て情報に変化があるとして、多重フレームの同期及びスーパーフレームの同期を確立する。
(Synchronization establishment part)
Next, the
図8は、同期確立部20の処理を示すフローチャートである。同期確立部20は、多重フレームヘッダから取得した更新情報(多重フレーム毎の更新情報)を記憶する記憶手段(図示せず)を備えており、多重フレーム及びスーパーフレームの同期を確立し、既に更新情報を記憶しているものとする。同期確立部20は、スーパーフレームを入力し(ステップS801)、入力したスーパーフレームを構成する多重フレームの多重フレームヘッダから位置情報及び更新情報を取得し(ステップS802)、記憶手段から更新情報を読み出す(ステップS803)。
FIG. 8 is a flowchart showing the processing of the
同期確立部20は、多重フレーム毎に、取得した更新情報と読み出した更新情報とを比較し(ステップS804)、更新情報が同じであると判定した場合(ステップS804:Y)、スロット割り当て情報に変化がないと判定し、多重フレーム同期情報のパターンを取得することにより、多重フレームの同期を確立する(ステップS805)。そして、同期確立部20は、多重フレームの先頭を示す同期情報及びその多重フレームの位置情報をスロット割り当て情報取得部21に出力する(ステップS806)。前述したとおり、更新情報は、スロット割り当て情報が変化したか否かを示す情報であるから、取得した更新情報と読み出した更新情報とが同じである場合、スロット割り当て情報は変化していないことになる。一方、更新情報が同じでない場合、スロット割り当て情報は変化していることになるから、多重フレームヘッダから新たなスロット割り当て情報を取得する必要がある。
The
一方、同期確立部20は、ステップS804において、更新情報が同じでないと判定した場合(ステップS804:N)、多重フレーム同期情報のパターンを取得することにより、多重フレームの同期を確立する(ステップS807)。そして、同期確立部20は、多重フレームヘッダ内の位置情報に基づいて、スーパーフレームの同期を確立し(ステップS808)、スーパーフレームを構成する多重フレームの数(多重フレーム数)を決定する(ステップS809)。前述したとおり、位置情報は、スーパーフレームを構成する多重フレームの相対的な位置を示す情報であり、多重フレームの伝送順に番号が付与されている。したがって、スーパーフレームを構成する多重フレームの位置情報が示す番号のうち、最も大きい番号が多重フレーム数となる。
On the other hand, if the
同期確立部20は、取得した更新情報(新たな更新情報)を記憶手段に記憶し、既に記憶していた更新情報に上書きする(ステップS810)。そして、同期確立部20は、スーパーフレームの先頭を示す同期情報及び多重フレーム数をスロット割り当て情報取得部21に出力する(ステップS811)。
The
このように、同期確立部20は、更新情報が変化していないと判定した場合、スロット割り当て情報に変化がないとして、多重フレーム同期情報のパターンを取得することにより多重フレームの同期のみを確立し、多重フレームの先頭を示す同期情報及びその多重フレームの位置情報をスロット割り当て情報取得部21に出力する。また、同期確立部20は、更新情報が変化していると判定した場合、スロット割り当て情報に変化があるとして、多重フレームの同期を確立し、多重フレームヘッダ内の位置情報に基づいてスーパーフレームの同期を確立し、多重フレーム数を設定し、スーパーフレームの先頭を示す同期情報及び多重フレーム数をスロット割り当て情報取得部21に出力し、スロット割り当て情報取得部21に新たなスロット割り当て情報を取得させる。
As described above, when it is determined that the update information has not changed, the
(スロット割り当て情報取得部)
次に、図7に示したスロット割り当て情報取得部21について詳細に説明する。前述したとおり、スロット割り当て情報取得部21は、同期確立部20から、スーパーフレームの先頭を示す同期情報及び多重フレーム数を入力した場合、スーパーフレーム内の多重フレームヘッダから新たなスロット割り当て情報を取得する。また、スロット割り当て情報取得部21は、同期確立部20から、多重フレームの先頭を示す同期情報及び位置情報を入力した場合、スーパーフレーム内の多重フレームヘッダからスロット割り当て情報を取得しないで、既に取得していたスロット割り当て情報(位置情報の示す多重フレームのスロット割り当て情報)を記憶手段(図示せず)から読み出す。
(Slot allocation information acquisition unit)
Next, the slot allocation
図9は、スロット割り当て情報取得部21の処理を示すフローチャートである。スロット割り当て情報取得部21は、多重フレームヘッダから取得したスロット割り当て情報及び位置情報(多重フレーム毎のスロット割り当て情報及び位置情報)を記憶する記憶手段(図示せず)を備えており、スロット割り当て情報及び位置情報を既に記憶しているものとする。
FIG. 9 is a flowchart showing the processing of the slot allocation
スロット割り当て情報取得部21は、スーパーフレームを入力し(ステップS901)、同期確立部20からスーパーフレームの先頭を示す同期情報及び多重フレーム数を入力したか否かを判定する(ステップS902)。
The slot allocation
スロット割り当て情報取得部21は、ステップS902において、スーパーフレームの先頭を示す同期情報及び多重フレーム数を入力したことを判定した場合(ステップS902:Y)、スーパーフレームの先頭を示す同期情報に基づいてスーパーフレームを認識し、スーパーフレームを構成する多重フレーム数分の多重フレームについて、多重フレームヘッダから全ての多重フレームについてのスロット割り当て情報及び位置情報を取得し、記憶手段に記憶する(ステップS903)。この場合、既に記憶していたスロット割り当て情報及び位置情報を廃棄する。そして、スロット割り当て情報取得部21は、取得した全ての多重フレームについてのスロット割り当て情報を分離部22に出力する(ステップS904)。
If the slot allocation
一方、スロット割り当て情報取得部21は、ステップS902において、スーパーフレームの先頭を示す同期情報及び多重フレーム数を入力していないことを判定した場合(ステップS902:N)、同期確立部20から、多重フレームの先頭を示す同期情報及び位置情報を入力したか否かを判定する(ステップS905)。
On the other hand, if the slot allocation
スロット割り当て情報取得部21は、ステップS905において、多重フレームの先頭を示す同期情報及び位置情報を入力したことを判定した場合(ステップS905:Y)、多重フレームの先頭を示す同期情報及び位置情報に基づいて、位置情報の示す多重フレームを認識し、その多重フレームヘッダからスロット割り当て情報を取得することなく、入力した位置情報をキーにして、記憶手段からスロット割り当て情報を読み出す(ステップS906)。そして、スロット割り当て情報取得部21は、読み出したスロット割り当て情報を分離部22に出力する(ステップS907)。一方、スロット割り当て情報取得部21は、ステップS905において、多重フレームの先頭を示す同期情報及び位置情報を入力していないことを判定した場合(ステップS905:N)、異常処理を行う。
If the slot allocation
このように、スロット割り当て情報取得部21は、同期確立部20からスーパーフレームの先頭を示す同期情報及び多重フレーム数を入力した場合、スーパーフレーム内の多重フレームヘッダからスロット割り当て情報を取得する。また、スロット割り当て情報取得部21は、同期確立部20から多重フレームの先頭を示す同期情報及び位置情報を入力した場合、スーパーフレーム内の多重フレームヘッダからスロット割り当て情報を取得しないで、既に取得していたスロット割り当て情報を記憶手段から読み出す。
As described above, when the synchronization information indicating the head of the super frame and the number of multiplexed frames are input from the
〔具体例〕
次に、多重フレームの同期及びスーパーフレームの同期を確立する処理、並びにスロット割り当て情報を取得する処理の具体例について説明する。分離装置2には、図3に示したスーパーフレームが入力されるものとし、多重フレームには、図4に示した多重フレームヘッダが付加されているものとする。また、同期確立部20における多重フレーム同期及びスーパーフレーム同期の後方保護段数を3とし、前方保護は無いものとする。
〔Concrete example〕
Next, a specific example of processing for establishing synchronization of multiple frames and superframes and processing for acquiring slot allocation information will be described. It is assumed that the super frame shown in FIG. 3 is input to the
(実施例4:更新情報が変化した場合)
まず、更新情報が変化した場合(スロット割り当て情報が変化した場合)について説明する。例えば、同期確立部20の記憶手段には、更新情報0x7が記憶されており、同期確立部20が、スーパーフレーム内の多重フレームヘッダから更新情報0x8を取得したものとする。
(Example 4: When update information changes)
First, a case where update information changes (when slot allocation information changes) will be described. For example, it is assumed that update information 0x7 is stored in the storage unit of the
同期確立部20は、多重フレームヘッダから所得した更新情報0x8と、記憶手段から読み出した更新情報0x7とを比較し、更新情報が同じでないと判定し、多重フレームの同期及びスーパーフレームの同期を確立する。具体的には、同期確立部20は、多重フレーム同期情報(0x1a86,0x0579)のパターンを3回連続して正しいタイミングで受信したことを判定することにより、多重フレームの先頭位置を決定(確立)する。これにより、多重フレームの同期が確立する。そして、同期確立部20は、多重フレームヘッダから位置情報を取得し、1〜5の値を3周期連続して受信したことを判定することにより、5個の多重フレームによってスーパーフレームが構成されていると判断し、位置情報が1である多重フレームの先頭を、スーパーフレームの先頭位置であると決定(確立)する。これにより、スーパーフレームの同期が確立する。
The
同期確立部20は、記憶手段に記憶している更新情報0x7に、新しく取得した更新情報0x8を上書きする。そして、同期確立部20は、スーパーフレームの先頭位置が反映された同期情報(先頭を示す同期情報)及び多重フレーム数5をスロット割り当て情報取得部21に出力する。
The
スロット割り当て情報取得部21は、同期確立部20からスーパーフレームの先頭を示す同期情報及び多重フレーム数5を入力することにより、更新情報が変化しており、新たなスロット割り当て情報を取得する必要があることを判断し、スーパーフレーム内に5種類の多重フレームが存在することを判断する。スロット割り当て情報取得部21は、スーパーフレームの先頭を示す同期情報に基づいてスーパーフレームを認識し、スーパーフレーム内の多重フレームヘッダから、5個の多重フレームについてのスロット割り当て情報及び位置情報を取得し、記憶手段に記憶していたスロット割り当て情報及び位置情報を廃棄し、取得したスロット割り当て情報及び位置情報を記憶手段に記憶する。そして、スロット割り当て情報取得部21は、取得したスロット割り当て情報を分離部22に出力する。
The slot allocation
(実施例5:更新情報が変化していない場合)
次に、更新情報が変化していない場合(スロット割り当て情報が変化していない場合)について説明する。例えば、同期確立部20の記憶手段には、更新情報0x8が記憶されており、同期確立部20が、スーパーフレーム内の多重フレームヘッダから更新情報0x8を取得したものとする。
(Example 5: When update information has not changed)
Next, a case where update information has not changed (a case where slot allocation information has not changed) will be described. For example, it is assumed that the update information 0x8 is stored in the storage unit of the
同期確立部20は、多重フレームヘッダから所得した更新情報0x8と、記憶手段から読み出した更新情報0x8とを比較し、更新情報が同じであると判定し、多重フレームの同期のみを確立する。具体的には、同期確立部20は、多重フレーム同期情報(0x1a86,0x0579)のパターンを3回連続して正しいタイミングで受信したことを判定することにより、多重フレームの先頭位置を決定(確立)する。これにより、多重フレームの同期が確立する。そして、同期確立部20は、多重フレームヘッダから位置情報を取得し、多重フレームの先頭位置が反映された同期情報(先頭を示す同期情報)及び位置情報をスロット割り当て情報取得部21に出力する。
The
スロット割り当て情報取得部21は、同期確立部20から多重フレームの先頭を示す同期情報及び位置情報を入力することにより、更新情報が変化しておらず、新たなスロット割り当て情報を取得する必要がないことを判断する。スロット割り当て情報取得部21は、入力した位置情報と同じ位置情報に対応したスロット割り当て情報を記憶手段から読み出し、分離部22に出力する。
The slot allocation
以上のように、本発明の実施形態による分離装置2によれば、多重化装置1から、TSが元の速度以上になり、かつヌルパケットが最小になるようにTSのスロットが割り当てられ、所定数以下の多重フレームにより構成されたスーパーフレームを入力し、同期確立部20が、更新情報を記憶する記憶手段を備え、スーパーフレーム内の多重フレームヘッダの更新情報が変化している場合、多重フレーム及びスーパーフレームの同期を確立し、更新情報が変化していない場合、多重フレームの同期のみを確立するようにした。また、スロット割り当て情報取得部21が、スロット割り当て情報及び位置情報を記憶する記憶手段を備え、更新情報が変化していない場合、スーパーフレーム内の多重フレームヘッダからスロット割り当て情報を取得することなく、記憶手段からスロット割り当て情報を読み出すようにした。
As described above, according to the
多重化装置1から入力したスーパーフレームは、TS1〜TSJの速度情報1〜Jに基づいた適切な数の多重フレームにより構成されているから、スーパーフレームのサイズは、予め設定された固定サイズではなく、適切に小さくなっている。したがって、分離装置2は、スーパーフレームの同期確立に要する時間を短縮することができる。
Since the superframe input from the
また、同期確立部20が、取得した更新情報を記憶手段に記憶し、スロット割り当て情報取得部21が、取得したスロット割り当て情報及び位置情報を記憶手段に記憶するから、同期確立部20は、それ以降、入力したスーパーフレーム内の多重フレームヘッダの更新情報に変化がない限り、多重フレームの同期を確立する処理のみを行うことで、分離部22は、記憶手段に記憶された以前と同じスロット割り当て情報を用いてTSを分離することができる。つまり、スーパーフレームの同期を確立することなく、多重フレームの同期を確立するだけで、TSの分離処理が行われる。また、分離装置2がある多重フレーム内のスロット割り当て情報を誤って受信したとしても、記憶手段に記憶された以前と同じスロット割り当て情報を用いてTSを分離することができる。したがって、多重フレームの同期の確立に加えてスーパーフレームの同期を確立した後にTSの分離処理が行われる従来技術に比べ、TSの分離処理のための同期確立に要する時間を短縮することができる。
Further, since the
前述した実施例4,5において、更新情報が変化している場合及び更新情報が変化していない場合を、多重フレームの同期が確立していない状態から多重フレームヘッダ内の情報を取得するまでの間の所要時間で比較する。多重フレームの同期の確立に要する時間は、多重フレーム長×3であり、スーパーフレームの同期の確立に要する時間は、スーパーフレーム長×3である。したがって、更新情報が変化している場合の所要時間は、多重フレームの同期の確立に要する時間とスーパーフレームの同期の確立に要する時間とを加算した時間になる。一方、更新情報が変化していない場合の所要時間は、多重フレームの同期の確立に要する時間と等しくなる。これにより、更新情報が変化していない場合には、多重フレームヘッダ内の情報を取得しTSの分離処理を行うための同期確立に要する時間を、スーパーフレームの同期の確立に要する時間であるスーパーフレーム長×3の時間分短縮することができる。 In the above-described fourth and fifth embodiments, when the update information has changed and when the update information has not changed, the information in the multiplexed frame header is acquired from the state where the synchronization of the multiplexed frame is not established. Compare the required time between. The time required to establish synchronization of multiple frames is multiple frame length × 3, and the time required to establish synchronization of superframes is superframe length × 3. Therefore, the required time when the update information is changed is a time obtained by adding the time required for establishing synchronization of multiple frames and the time required for establishing synchronization of superframes. On the other hand, the time required when the update information has not changed is equal to the time required to establish synchronization of multiple frames. As a result, when the update information has not changed, the time required for establishing synchronization for acquiring information in the multiframe header and performing TS separation processing is the time required for establishing superframe synchronization. It can be shortened by the time of frame length × 3.
〔変形例1〕
次に、図1に示した多重化装置1における第1の変形例(変形例1)について説明する。変形例1は、多重フレーム数を決定する処理において、前述の(1)〜(3)の条件のうち(3)の条件を満たす場合(多重フレーム数が最大値Iに決定される場合)、強制的に(1)または(2)の条件を満たすようにパラメータA,Bを変更する。すなわち、多重フレーム数を小さくするため、最大値Iに決定されないように処理を行う。
[Modification 1]
Next, a first modified example (modified example 1) in the
変形例1の多重化装置1は、前述した処理とは異なる処理を行うスロット割り当て部11を備えている。図2に示した処理フローでは、スロット割り当て部11は、ステップS205において、ゼロでないBjについての全てのI/Bjが整数ではない、すなわち、いずれかのI/Bjが整数でないと判定した場合(ステップS205:N)、多数フレーム数を最大値Iに決定する(ステップS207)。これに対し、変形例1のスロット割り当て部11は、ステップS207の処理の代わりに、全てのBjを0にするためのAj,Bjを決定し、ステップS204の処理を行い、スーパーフレーム内の多重フレーム数を1に決定する。または、整数でないI/Bjを整数にするためのAj,Bjを決定し、新たなI/Bjを用いてステップS206の処理を行い、多重フレーム数をLCM{I/Bj}(I/Bjの最小公倍数)に決定する。
The
このように、変形例1の多重化装置1によれば、整数でないI/Bjを有するTSjについては、速度変換部10−jによる速度変換に伴って伝送効率が低下するが、スーパーフレームを構成する多重フレームの数が小さくなるから、スーパーフレームのサイズを小さくすることができ、スーパーフレームの同期確立に要する時間を短縮することができる。したがって、伝送効率及び同期確立時間に要求される条件に応じて柔軟に適用することが可能となる。
As described above, according to the
例えば、前述の実施例3では、TS1の割り当てスロット数(速度変換後の正規化速度)は4.2(=4+2/10)、TS2の割り当てスロット数は2.2(=2+2/10)、TS3の割り当てスロット数は2.0(=2+0/10)、TS4の割り当てスロット数は0.3(=0+3/10)であり、A1=4,B1=2,A2=2,B2=2,A3=2,B3=0,A4=0,B4=3であった。そして、ステップS205においてI/B4=10/3が整数でないから、前記(3)の条件を満たし、ステップS207の処理により、多重フレーム数は10(最大値I)に決定される。 For example, in Example 3 described above, the number of slots allocated to TS1 (normalized speed after speed conversion) is 4.2 (= 4 + 2/10), the number of slots allocated to TS2 is 2.2 (= 2 + 2/10), The number of slots allocated to TS3 is 2.0 (= 2 + 0/10), the number of slots allocated to TS4 is 0.3 (= 0 + 3/10), and A 1 = 4, B 1 = 2 and A 2 = 2, B 2 = 2, A 3 = 2, B 3 = 0, A 4 = 0, B 4 = 3. Since I / B 4 = 10/3 is not an integer in step S205, the condition (3) is satisfied, and the number of multiplexed frames is determined to be 10 (maximum value I) by the process in step S207.
これに対し、変形例1では、TS4の割り当てスロット数を0.3ではなく1.0とし、すなわち、A4=0,B4=3の代わりに、A4=1,B4=0とすることにより、前記(2)の条件を満たすことになり、多重フレーム数は5に決定される。つまり、TS4の速度変換後の正規化速度0.3を1.0に変更することにより、前記(2)の条件を満たすことになり、多重フレーム数が5に決定される。この場合、TS4の速度変換に伴う伝送効率の低下を許容することによって、スーパーフレームの同期確立に要する時間を短縮することができる。 On the other hand, in the first modification, the number of assigned slots of TS4 is set to 1.0 instead of 0.3, that is, A 4 = 1 and B 4 = 0 instead of A 4 = 0 and B 4 = 3. Thus, the condition (2) is satisfied, and the number of multiplexed frames is determined to be 5. That is, by changing the normalized speed 0.3 after the speed conversion of TS4 to 1.0, the condition (2) is satisfied, and the number of multiplexed frames is determined to be 5. In this case, the time required for establishing synchronization of the superframe can be shortened by allowing a decrease in transmission efficiency accompanying the speed conversion of TS4.
〔変形例2〕
次に、図1に示した多重化装置1における第2の変形例(変形例2)について説明する。変形例2は、多重フレーム数を決定する処理において、前述の(1)〜(3)の条件のうち、(3)の条件(ゼロでないBjについての全てのI/Bjが整数ではない、すなわち、いずれかのI/Bjが整数でない)を満たすことなく、(2)の条件(ゼロでないB1〜BJについて全てのI/B1〜I/BJが整数である)を満たすように、多重フレーム数の最大値Iを予め設定する。すなわち、多重フレーム数が最大値Iに決定される確率を下げ、多重フレーム数が1〜I−1に決定される確率を上げるように処理を行う。
[Modification 2]
Next, a second modification (modification 2) of the
具体的には、スロット割り当て部11は、以下に示す多重フレーム数の最大値Iを用いて処理を行う。多重フレーム内のスロットを割り当てる単位(1/Iスロット)は、多重フレーム数の最大値Iが素数以外の正の整数となる範囲内で、自由に設定することができる。つまり、多重フレーム数の最大値Iを、より多くの素因数を持つ値に設定する。多重フレーム数の最大値Iを素数に設定した場合は、I/BjがBj=Iのときに整数1になるが、それ以外のときは整数にならない。この場合、多重フレーム数の最大値Iを素数以外の値(より多くの素因数を持つ値)に設定した場合よりも、I/Bjが整数になる確率が低くなり、(3)の条件を満たす確率が高くなる。したがって、多重フレーム数の最大値Iを、より多くの素因数を持つ値に設定することにより、スーパーフレーム内の多重フレーム数を決定する前記(1)〜(3)の条件のうち、(2)の条件を満たす確率が高くなり、(3)の条件を満たす確率が低くなる。つまり、スーパーフレームのサイズを小さくすることができ、スーパーフレームの同期確立に要する時間を短縮することができる。
Specifically, the slot allocation unit 11 performs processing using the maximum value I of the number of multiplexed frames shown below. A unit (1 / I slot) for allocating a slot in a multiplexed frame can be freely set within a range in which the maximum value I of the number of multiplexed frames is a positive integer other than a prime number. That is, the maximum value I of the number of multiplexed frames is set to a value having more prime factors. When the maximum value I of the number of multiplexed frames is set to a prime number, the
本発明の実施形態による多重化装置1及び分離装置2のハード構成としては、通常のコンピュータを使用することができる。多重化装置1及び分離装置2は、CPU、RAM等の揮発性の記憶媒体、ROM等の不揮発性の記憶媒体、及びインターフェース等を備えたコンピュータによって構成される。多重化装置1に備えた速度変換部10−1〜10−J、スロット割り当て部11、ヘッダ生成部12及び多重化部13の各機能は、これらの機能を記述したプログラムをCPUに実行させることによりそれぞれ実現される。また、分離装置2に備えた同期確立部20、スロット割り当て情報取得部21及び分離部22の各機能も、これらの機能を記述したプログラムをCPUに実行させることによりそれぞれ実現される。これらのプログラムは、磁気ディスク(フロッピー(登録商標)ディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリ等の記憶媒体に格納して頒布することもできる。
As a hardware configuration of the
以上、実施形態を挙げて本発明を説明したが、本発明は前記実施形態に限定されるものではなく、その技術思想を逸脱しない範囲で種々変形可能である。 The present invention has been described with reference to the embodiment. However, the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the technical idea thereof.
1 多重化装置
2 分離装置
10−1〜10−J 速度変換部
11 スロット割り当て部
12 ヘッダ生成部
13 多重化部
20 同期確立部
21 スロット割り当て情報取得部
22 分離部
DESCRIPTION OF
Claims (12)
前記複数のトランスポートストリームの速度に基づいて、前記スーパーフレームを構成する多重フレームの数を決定し、前記多重フレームのデータスロットに前記複数のトランスポートストリームを格納する際の、それぞれのトランスポートストリームに割り当てるスロットの数及び位置が規定されたスロット割り当て情報を生成するスロット割り当て部と、
前記スロット割り当て情報に基づいて、前記トランスポートストリームの速度を変換する速度変換部と、
前記スロット割り当て情報を含む多重フレームヘッダを生成するヘッダ生成部と、
前記スロット割り当て情報に基づいて、前記速度変換されたトランスポートストリームを前記多重フレームのデータスロットに格納して多重化し、前記多重フレームヘッダを前記多重フレームのヘッダスロットに格納し、前記多重フレーム数分の多重フレームからなるスーパーフレームを生成する多重化部と、
を備えたことを特徴とする多重化装置。 Multiplexed transmission slots are fixedly assigned to a plurality of transport streams, the transport streams are time-division multiplexed, a superframe consisting of one or more multiplexed frames is generated and output to the transmission path In the device
Based on the speed of the plurality of transport streams, the number of multiplexed frames constituting the super frame is determined, and each of the transport streams when storing the plurality of transport streams in the data slot of the multiplexed frame A slot allocation unit for generating slot allocation information in which the number and position of slots to be allocated are defined;
A speed conversion unit that converts the speed of the transport stream based on the slot allocation information;
A header generation unit for generating a multi-frame header including the slot allocation information;
Based on the slot assignment information, the rate-converted transport stream is stored in the data slot of the multiplexed frame and multiplexed, the multiplexed frame header is stored in the header slot of the multiplexed frame, and the number of multiplexed frames A multiplexing unit that generates a superframe composed of multiple frames of
A multiplexing apparatus comprising:
前記速度変換部は、前記トランスポートストリームにヌルパケットを挿入して速度を変換し、
前記スロット割り当て部は、前記多重化に伴ってトランスポートストリームが欠落しないように、かつ、前記速度変換時に挿入されるヌルパケットが最小になるように、前記多重フレーム数を決定し、前記スロット割り当て情報を生成する、ことを特徴とする多重化装置。 The multiplexing device according to claim 1, wherein
The speed conversion unit converts the speed by inserting a null packet into the transport stream,
The slot allocation unit determines the number of multiplexed frames so that a transport stream is not lost along with the multiplexing, and a null packet inserted at the time of the speed conversion is minimized, and the slot allocation is performed. A multiplexing apparatus that generates information.
前記トランスポートストリームの数をJ(Jは整数)とし、前記多重フレーム数の最大値をI(Iは整数)とし、A及びBをパラメータとし(Aは正の整数、BはI未満の正の整数)、1/Iスロット単位にスロットを割り当てるように前記トランスポートストリームが速度変換される場合に、
前記スロット割り当て部は、
前記多重化に伴ってトランスポートストリームが欠落しないように、かつ、前記速度変換時に挿入されるヌルパケットが最小になるように、J個のトランスポートストリームに割り当てるスロット数A1+B1/I〜AJ+BJ/Iをそれぞれ決定し、
B1=・・・=BJ=0の場合(1)、前記多重フレーム数を1に決定し、0でないBj(jはJ以下の正の整数)が存在し、全ての0でないBjに対してI/Bjが整数の場合(2)、前記多重フレーム数をLCM{I/Bj}(LCM{}は最小公倍数を表す)に決定し、前記(1)及び(2)のいずれの条件も満たさない場合、前記多重フレーム数をIに決定する、ことを特徴とする多重化装置。 The multiplexing device according to claim 2, wherein
The number of transport streams is J (J is an integer), the maximum number of multiplexed frames is I (I is an integer), A and B are parameters (A is a positive integer, and B is a positive number less than I). ), When the transport stream is speed-converted to allocate slots in 1 / I slot units,
The slot allocation unit includes:
The number of slots A 1 + B 1 / I to be allocated to the J transport streams so that the transport stream is not lost with the multiplexing and the number of null packets inserted at the time of the speed conversion is minimized. Determine A J + B J / I respectively,
When B 1 =... = B J = 0 (1), the number of multiplexed frames is determined to be 1, and there is a non-zero B j (j is a positive integer less than or equal to J), and all non-zero B When I / B j is an integer with respect to j (2), the number of multiplexed frames is determined to be LCM {I / B j } (LCM {} represents the least common multiple), and (1) and (2) When neither of the conditions is satisfied, the multiplexing apparatus determines the number of multiplexed frames as I.
前記スロット割り当て部は、前記(1)及び(2)のいずれの条件も満たさない場合、前記多重フレーム数をIに決定する代わりに、前記(1)または(2)の条件を満たすようにA及びBを新たに決定し、前記多重フレーム数をLCM{I/Bj}に決定する、ことを特徴とする多重化装置。 The multiplexing device according to claim 3, wherein
If the slot allocation unit does not satisfy either of the conditions (1) and (2), instead of determining the number of multiplexed frames as I, the slot allocation unit A satisfies the condition (1) or (2). And B are newly determined, and the number of multiplexed frames is determined to be LCM {I / B j }.
前記ヘッダ生成部は、前記スロット割り当て情報に基づいて、スーパーフレームを構成する多重フレームの相対的な位置を示す位置情報を生成し、前記スロット割り当て情報及び前記位置情報を含む多重フレームヘッダを生成する、ことを特徴とする多重化装置。 In the multiplexing apparatus as described in any one of Claim 1-4,
The header generation unit generates position information indicating a relative position of multiple frames constituting a super frame based on the slot assignment information, and generates a multiple frame header including the slot assignment information and the position information. A multiplexing device characterized by that.
前記ヘッダ生成部は、前記スロット割り当て情報に基づいて、スロット割り当て情報が変化したか否かを示す更新情報を生成し、前記スロット割り当て情報及び前記更新情報を含む多重フレームヘッダを生成する、ことを特徴とする多重化装置。 In the multiplexing apparatus as described in any one of Claim 1-5,
The header generation unit generates update information indicating whether the slot allocation information has changed based on the slot allocation information, and generates a multi-frame header including the slot allocation information and the update information; A multiplexing device characterized.
前記スーパーフレームを構成する多重フレームの同期を確立し、前記スーパーフレームの同期を確立し、前記スーパーフレームを構成する多重フレームの多重フレームヘッダから、前記多重フレームの相対的な位置を示す位置情報を取得し、前記位置情報に基づいて、多重フレーム数を求める同期確立部と、
前記スーパーフレームを構成する多重フレームの多重フレームヘッダから、前記多重フレーム数分のスロット割り当て情報を取得するスロット割り当て情報取得部と、
前記スロット割り当て情報に基づいて、前記スーパーフレームを構成する多重フレームから所定のトランスポートストリームを分離する分離部と、
を備えたことを特徴とする分離装置。 A demultiplexer that inputs a superframe output by the multiplexing device according to claim 5 and demultiplexes a predetermined transport stream from the multiframe constituting the superframe,
Position information indicating the relative position of the multiple frame is established from the multiple frame header of the multiple frame constituting the super frame by establishing synchronization of the multiple frame constituting the super frame, establishing the synchronization of the super frame. A synchronization establishment unit that obtains and determines the number of multiplexed frames based on the position information;
A slot allocation information acquisition unit for acquiring slot allocation information for the number of multiplexed frames from a multiplexed frame header of the multiplexed frames constituting the superframe;
A separator that separates a predetermined transport stream from multiple frames constituting the superframe based on the slot allocation information;
A separation device comprising:
前記スーパーフレームを構成する多重フレームの多重フレームヘッダから、前記スロット割り当て情報が変化したか否かを示す更新情報を取得し、前記更新情報からスロット割り当て情報が変化していると判定した場合、前記多重フレームの同期及び前記スーパーフレームの同期を確立し、前記更新情報からスロット割り当て情報が変化していないと判定した場合、前記多重フレームの同期のみを確立する同期確立部と、
前記多重フレームの同期及び前記スーパーフレームの同期が確立された場合、前記スーパーフレームを構成する多重フレームの多重フレームヘッダから、前記多重フレーム数分のスロット割り当て情報を取得して出力し、前記多重フレームの同期のみが確立された場合、既に取得しているスロット割り当て情報を出力するスロット割り当て情報取得部と、
前記スロット割り当て情報取得部により出力されたスロット割り当て情報に基づいて、前記スーパーフレームを構成する多重フレームから所定のトランスポートストリームを分離する分離部と、
を備えたことを特徴とする分離装置。 A demultiplexer that inputs a superframe output by the multiplexing device according to claim 6 and demultiplexes a predetermined transport stream from the multiframe constituting the superframe,
When obtaining update information indicating whether or not the slot assignment information has changed from a multiplex frame header of a multiplex frame constituting the super frame, and when determining that the slot assignment information has changed from the update information, A synchronization establishment unit that establishes synchronization of multiple frames and synchronization of the super frame, and determines that slot assignment information has not changed from the update information; and
When synchronization of the multiplexed frame and synchronization of the superframe are established, slot allocation information corresponding to the number of multiplexed frames is obtained and output from the multiplexed frame header of the multiplexed frame constituting the superframe, and the multiplexed frame is output. Slot synchronization information acquisition unit for outputting the slot allocation information that has already been acquired,
A demultiplexing unit that demultiplexes a predetermined transport stream from multiple frames constituting the superframe based on the slot allocation information output by the slot allocation information acquisition unit;
A separation device comprising:
前記複数のトランスポートストリームの速度に基づいて、前記スーパーフレームを構成する多重フレームの数を決定するステップと、
前記多重フレームのデータスロットに前記複数のトランスポートストリームを格納する際の、それぞれのトランスポートストリームに割り当てるスロットの数及び位置が規定されたスロット割り当て情報を生成するステップと、
前記スロット割り当て情報に基づいて、前記トランスポートストリームの速度を変換するステップと、
前記スロット割り当て情報を含む多重フレームヘッダを生成するステップと、
前記スロット割り当て情報に基づいて、前記速度変換したトランスポートストリームを前記多重フレームのデータスロットに格納して多重化し、前記多重フレームヘッダを前記多重フレームのヘッダスロットに格納し、前記多重フレーム数分の多重フレームからなるスーパーフレームを生成するステップと、
前記スーパーフレームを出力するステップと、
を有することを特徴とする多重化方法。 Multiplexed transmission slots are fixedly assigned to a plurality of transport streams, the transport streams are time-division multiplexed, a superframe consisting of one or more multiplexed frames is generated and output to the transmission path In the conversion method,
Determining the number of multiplexed frames constituting the superframe based on the speeds of the plurality of transport streams;
Generating slot allocation information in which the number and position of slots allocated to each transport stream when the plurality of transport streams are stored in the data slots of the multiplex frame;
Converting the speed of the transport stream based on the slot allocation information;
Generating a multi-frame header including the slot allocation information;
Based on the slot allocation information, the speed-converted transport stream is stored and multiplexed in the data slot of the multiplexed frame, the multiplexed frame header is stored in the header slot of the multiplexed frame, and the number of multiplexed frames Generating a superframe consisting of multiple frames;
Outputting the superframe;
A multiplexing method characterized by comprising:
前記スーパーフレームを構成する多重フレームの同期を確立するステップと、
前記スーパーフレームを構成する多重フレームの多重フレームヘッダから位置情報を取得し、前記位置情報に基づいて、前記スーパーフレームの同期を確立し、多重フレーム数を求めるステップと、
前記スーパーフレームを構成する多重フレームの多重フレームヘッダから、前記多重フレーム数分のスロット割り当て情報を取得するステップと、
前記スロット割り当て情報に基づいて、前記スーパーフレームを構成する多重フレームから所定のトランスポートストリームを分離するステップと、
を有することを特徴とする分離方法。 According to the multiplexing method of claim 9, a plurality of transport streams are multiplexed and stored in a data slot, and slot allocation information in which the number and position of slots allocated to each transport stream is defined, and a multiplexed frame A multiplex frame header including position information indicating a relative position of the multiplex frame in the constituted super frame is stored in a header slot, and a super frame configured by the multiplex frame having the data slot and the header slot is input. A separation method for separating a predetermined transport stream from the multiplex frame,
Establishing synchronization of multiple frames making up the superframe;
Obtaining position information from multiple frame headers of multiple frames constituting the super frame, establishing synchronization of the super frame based on the position information, and determining the number of multiplexed frames;
Obtaining slot allocation information for the number of multiplexed frames from the multiplexed frame header of the multiplexed frames constituting the superframe;
Separating a predetermined transport stream from multiple frames constituting the superframe based on the slot allocation information;
A separation method characterized by comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010087476A JP5430477B2 (en) | 2010-04-06 | 2010-04-06 | Multiplexing device and multiplexing method, separation device and separation method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010087476A JP5430477B2 (en) | 2010-04-06 | 2010-04-06 | Multiplexing device and multiplexing method, separation device and separation method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011223131A JP2011223131A (en) | 2011-11-04 |
JP5430477B2 true JP5430477B2 (en) | 2014-02-26 |
Family
ID=45039573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010087476A Expired - Fee Related JP5430477B2 (en) | 2010-04-06 | 2010-04-06 | Multiplexing device and multiplexing method, separation device and separation method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5430477B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5578926B2 (en) * | 2010-05-07 | 2014-08-27 | 日本放送協会 | Digital data transmission device, reception device, transmission method, reception method, and program |
JP5535030B2 (en) * | 2010-10-22 | 2014-07-02 | 日本放送協会 | Digital data transmitting apparatus, receiving apparatus and program |
JP5642497B2 (en) * | 2010-10-25 | 2014-12-17 | 日本放送協会 | Digital data transmitting apparatus, receiving apparatus and program |
KR20140033256A (en) | 2012-07-11 | 2014-03-18 | 삼성전자주식회사 | Transport stream packet generating device and transport stream packet generating method thereof |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03270523A (en) * | 1990-03-20 | 1991-12-02 | Mitsubishi Electric Corp | Digital time division multiplexer |
JPH05308341A (en) * | 1992-04-30 | 1993-11-19 | Toshiba Corp | Multiplexing device |
JPH06252870A (en) * | 1993-02-24 | 1994-09-09 | Nec Corp | Data multiplexing transmission system |
JPH10233745A (en) * | 1997-02-18 | 1998-09-02 | Nec Corp | Multiplex transmission method and system |
JPH11177516A (en) * | 1997-12-16 | 1999-07-02 | Nippon Hoso Kyokai <Nhk> | Data transmission method, transmission device, and reception device |
JP3051729B1 (en) * | 1998-12-11 | 2000-06-12 | 日本放送協会 | Multiplexer and demultiplexer for multiple transport streams |
JP2002057636A (en) * | 2000-08-10 | 2002-02-22 | Sony Corp | Transmission system, transmission method, and broadcasting method |
JP2008118344A (en) * | 2006-11-02 | 2008-05-22 | Hitachi Kokusai Electric Inc | Broadcast transmitting device |
-
2010
- 2010-04-06 JP JP2010087476A patent/JP5430477B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2011223131A (en) | 2011-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240223633A1 (en) | Transmission method, reception method, transmission apparatus, and reception apparatus | |
EP3509245B1 (en) | Method, device and system for transferring synchronization information | |
CN109873692B (en) | Receiving method and receiving LSI | |
JP2019110554A (en) | Transmission method, reception method, transmission device, and reception device | |
JP2019062550A (en) | Transmission method, transmission device, and system | |
US7664139B2 (en) | Method and apparatus for using stuffing bytes over a G.709 signal to carry multiple streams | |
JP5430477B2 (en) | Multiplexing device and multiplexing method, separation device and separation method, and program | |
JP4733766B2 (en) | Jitter control device | |
JP2020174404A (en) | Decoding device and decoding method | |
US8867528B2 (en) | Method and apparatus for switching packet/time division multiplexing (TDM) including TDM circuit and carrier ethernet packet signal | |
KR20200100759A (en) | Data transmission method, transmission device, and reception device | |
JP2003101502A (en) | Multiplexing transmission system and apparatus | |
JP6182097B2 (en) | Transmission system and transmission apparatus | |
JP5578926B2 (en) | Digital data transmission device, reception device, transmission method, reception method, and program | |
JP5610510B2 (en) | Wireless transmission apparatus and wireless transmission method | |
JP5430487B2 (en) | Digital data transmitting apparatus, receiving apparatus and program | |
JP5827733B2 (en) | Transmitter | |
JP5467535B2 (en) | Multiplex transmission system, multiplexer, demultiplexer, and multiplex transmission method | |
JP7022936B2 (en) | Transmission method, reception method, transmitter and receiver | |
JP4616821B2 (en) | Signal transmission method and circuit emulation device | |
JP5642497B2 (en) | Digital data transmitting apparatus, receiving apparatus and program | |
JP2009159062A (en) | Data transmission apparatus, method, and program | |
JP5535030B2 (en) | Digital data transmitting apparatus, receiving apparatus and program | |
KR101290346B1 (en) | System and method for contents multiplexing and streaming | |
US20230318934A1 (en) | System and method for rate adaptation of packet-oriented client data for transmission over a metro transport network (mtn) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20121228 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131101 |
|
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: 20131108 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131203 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |