JP3230550B2 - Phase control circuit - Google Patents

Phase control circuit

Info

Publication number
JP3230550B2
JP3230550B2 JP18817493A JP18817493A JP3230550B2 JP 3230550 B2 JP3230550 B2 JP 3230550B2 JP 18817493 A JP18817493 A JP 18817493A JP 18817493 A JP18817493 A JP 18817493A JP 3230550 B2 JP3230550 B2 JP 3230550B2
Authority
JP
Japan
Prior art keywords
data
stuff
frame
clock
input
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
Application number
JP18817493A
Other languages
Japanese (ja)
Other versions
JPH0746213A (en
Inventor
政彦 岩切
俊行 酒井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP18817493A priority Critical patent/JP3230550B2/en
Publication of JPH0746213A publication Critical patent/JPH0746213A/en
Application granted granted Critical
Publication of JP3230550B2 publication Critical patent/JP3230550B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、位相制御回路に関
し、特に、送信装置から入力されたNNI方式(Networ
k Node Interface)によるSTMフレーム(Syncronous
Transfer Mode)形式のデータの位相制御を行い、その
データを受信装置へ出力する位相制御回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a phase control circuit, and more particularly, to an NNI system (Networ system) input from a transmission device.
k Node Interface) STM frame (Syncronous
The present invention relates to a phase control circuit that controls the phase of data in a transfer mode and outputs the data to a receiving device.

【0002】[0002]

【従来の技術】従来、データ通信システムで伝送される
データを中継するような中継装置において、データの伝
送クロックと中継装置内で基準となる装置クロックの周
波数が異なる場合、デュアルポートRAMなどからなる
フレームメモリを用いて伝送データのクロック乗換えが
行われ伝送データが送信される。
2. Description of the Related Art Conventionally, in a relay apparatus for relaying data transmitted in a data communication system, when the frequency of a data transmission clock differs from that of a reference apparatus clock in the relay apparatus, the relay apparatus comprises a dual port RAM or the like. The transmission data is clock-switched using the frame memory, and the transmission data is transmitted.

【0003】また、特に、NNI方式を利用したデータ
転送においては、伝送されるデータに異常が発生した場
合にも、NNI方式の規定に従ったフォーマット形式で
伝送データを対向する受信装置へ伝送する必要がある。
これは、ある伝送データの異常を他のフレームへ伝播さ
せないようにするためであり、対向する受信装置へは、
適当な警報転送用データを用いて異常が通知される。
[0003] In particular, in data transfer using the NNI system, even when an error occurs in the data to be transmitted, the transmission data is transmitted to the opposing receiving apparatus in a format conforming to the NNI system. There is a need.
This is to prevent an abnormality of certain transmission data from being propagated to another frame.
The abnormality is notified using appropriate alarm transfer data.

【0004】図9に、従来の位相制御回路を用いたシス
テム構成例の概略を示す。ここで、81及び82は端末
装置(DTE)であり、81はデータを出力する送信装
置とし、82はデータを受信する受信装置とする。83
は中継装置であり、オーバーヘッド(OH)識別部8
4、位相制御回路85、及びオーバーヘッド(OH)挿
入部86とから構成される。オーバーヘッド識別部84
は、NNI方式によるSTMフレームに含まれるデータ
の伝送制御又は誤り制御に利用するデータなどからなる
オーバーヘッドデータと有効データであるペイロードデ
ータとを区別し、さらに伝送クロックからフレームメモ
リに書込む基準となるタイミング信号を生成する動作を
行う部分である。
FIG. 9 schematically shows a system configuration example using a conventional phase control circuit. Here, 81 and 82 are terminal devices (DTE), 81 is a transmitting device for outputting data, and 82 is a receiving device for receiving data. 83
Denotes an overhead (OH) identification unit 8
4, a phase control circuit 85, and an overhead (OH) insertion unit 86. Overhead identification unit 84
Is used to distinguish between overhead data including data used for transmission control or error control of data included in an STM frame according to the NNI system and payload data which is valid data, and is a reference for writing from a transmission clock to a frame memory. This is a part for performing an operation of generating a timing signal.

【0005】位相制御回路85は、オーバーヘッド識別
部84から入力されたタイミング信号によって、ペイロ
ードデータをフレームメモリに書込み、伝送クロックと
受信側クロックの周波数の違いを吸収するためのNNI
方式で決められたスタッフ操作を行って、受信側クロッ
クに同期した位相でペイロードデータをフレームメモリ
から読み出す部分である。ここで、伝送クロックは送信
装置81からデータと同期して送られてくるクロックで
あり、受信側クロックは装置内部で生成されるか又は受
信装置82から送られてくるクロックである。
[0005] The phase control circuit 85 writes the payload data into the frame memory in accordance with the timing signal input from the overhead identification section 84 and absorbs the difference between the frequency of the transmission clock and the frequency of the receiving clock.
This section performs a stuff operation determined by the method and reads payload data from the frame memory at a phase synchronized with the receiving clock. Here, the transmission clock is a clock transmitted from the transmission device 81 in synchronization with the data, and the reception clock is a clock generated inside the device or transmitted from the reception device 82.

【0006】オーバーヘッド挿入部86は、ペイロード
データにオーバーヘッドデータを加えてNNI方式の規
定に従ったフォーマット形式に組み立てて、受信装置8
2へ伝送する部分である。以上がデータ伝送システムの
構成の概略であるが、位相制御回路を用いて、入出力間
の位相のずれを吸収してNNI方式で規定された形式の
データを出力しようとするものである。
The overhead insertion unit 86 adds the overhead data to the payload data, assembles the data into a format conforming to the specification of the NNI system, and
2 is a part to be transmitted. The outline of the configuration of the data transmission system has been described above. The data transmission system uses a phase control circuit to absorb a phase shift between input and output and output data in a format defined by the NNI system.

【0007】図7に、STM方式の1フレームのフォー
マットを示す。同図に示すように、9バイトのオーバー
ヘッドデータ(SOH)と261バイトのペイロードデ
ータからなる行を最小単位として、9行分連続して構成
された(9+261)×9=2430バイトが1フレー
ムを形成する。すなわち、1フレームは、9バイト×9
行のSOH部と、261バイト×9行のペイロード部か
ら構成される。
FIG. 7 shows a format of one frame of the STM system. As shown in the figure, the minimum unit is a row composed of 9 bytes of overhead data (SOH) and 261 bytes of payload data, and (9 + 261) × 9 = 2430 bytes formed continuously for 9 rows constitute one frame. Form. That is, one frame is 9 bytes × 9
It is composed of an SOH part of a row and a payload part of 261 bytes × 9 rows.

【0008】また、STMフレーム中の第4行目におい
て、SOH部の最初の6バイトはペイロードデータの先
頭位置を示すアドレスが書き込まれており、またSOH
部の残りの3バイトはデータの送出位相を調するため
のスタッフ用領域であり、必要に応じてデータが書き込
まれる。
In the fourth line of the STM frame, the first six bytes of the SOH portion contain an address indicating the head position of the payload data.
The remaining 3 bytes of the parts are the staff area for adjust the delivery phase of the data, the data is written as required.

【0009】例えば、入力される伝送クロックの方が受
信側クロックよりも早い場合には、タイミング調整して
位相を合わせるために、スタッフ用領域に実際に伝送さ
れてきたデータの一部が書込まれてクロックの違いを吸
収させる。また、第4行目の10バイト目は通常データ
の先頭位置であり、この位置をポインタ点と呼ぶこと
にする。図8は、時間軸上に展開したSTMフレームの
構成を示したものであり、1フレーム分のデータは12
5μsで伝送される。
For example, when the input transmission clock is faster than the reception clock, a part of the data actually transmitted is written to the stuff area in order to adjust the timing and the phase. Rarely absorbs clock differences. The 10th byte in the fourth line is the start position of the normal data, and this position is called a pointer point. FIG. 8 shows the structure of an STM frame developed on the time axis.
It is transmitted in 5 μs.

【0010】次に、図10に従来の位相制御回路の例を
示す。ここでフレーム同期部91は、図9におけるオー
バーヘッド識別部84に相当する部分であり、送信装置
から送られる伝送クロックに基づいて、STMフレーム
形式の入力データを検出・解析して、STMフレーム中
のペイロードデータとオーバーヘッドデータを区別する
ためのタイミングを与える信号であるペイロード情報信
号及びオーバーヘッド情報信号と、STMフレームの第
4行目のポインタ点を示すポインタパルス信号を生成
する。
Next, FIG. 10 shows an example of a conventional phase control circuit. Here, the frame synchronization unit 91 is a part corresponding to the overhead identification unit 84 in FIG. 9, detects and analyzes input data in the STM frame format based on the transmission clock transmitted from the transmission device, and A payload information signal and an overhead information signal, which are timing signals for distinguishing the payload data from the overhead data, and a pointer pulse signal indicating a pointer point in the fourth row of the STM frame are generated.

【0011】図11に、従来における位相制御回路のタ
イムチャートの例を示す。ここで、ペイロード情報信号
及びオーバーヘッド情報信号はSTMフレームのSOH
部及びペイロード部に同期した信号であり、ポインタ点
を示すポインタパルス信号はSTMフレームの先頭に
立ち上がる信号である。
FIG. 11 shows an example of a time chart of a conventional phase control circuit. Here, the payload information signal and the overhead information signal are the SOH of the STM frame.
A pointer pulse signal indicating a pointer point is a signal that rises at the beginning of the STM frame.

【0012】フレームメモリ90は入力されたデータの
うちペイロードデータのみに対して書き込み及び読み出
しが行われるメモリである。ペイロードカウンタ92及
びオーバーヘッドカウンタ93は、ペイロードデータを
フレームメモリ90へ書込む書き込み制御部を構成す
る。
The frame memory 90 is a memory for writing and reading only the payload data of the input data. The payload counter 92 and the overhead counter 93 constitute a write control unit that writes the payload data to the frame memory 90.

【0013】ペイロードカウンタ92は、前記したペイ
ロード情報信号がイネーブル(EN)端子に入力され、
ペイロードデータを受信している期間はイネーブル状態
となり、前記したポインタパルス信号によりカウンタの
開始がセットされ、入力される伝送クロックをカウント
してフレームメモリ90の書込みアドレスを発生するも
のである。
The payload counter 92 inputs the above-mentioned payload information signal to an enable (EN) terminal,
While the payload data is being received, the enable state is enabled, the start of the counter is set by the pointer pulse signal, and the input transmission clock is counted to generate the write address of the frame memory 90.

【0014】オーバーヘッドカウンタ93は、前記した
オーバーヘッド情報信号をイネーブル入力とし、前記し
たポインタパルス信号によりカウンタの開始がセットさ
れて伝送クロックをカウントし、オーバーヘッド部に相
当するバイト数のカウント値を出力するものである。
The overhead counter 93 receives the overhead information signal as an enable input, sets the start of the counter by the pointer pulse signal, counts the transmission clock, and outputs a count value of the number of bytes corresponding to the overhead section. Things.

【0015】比較器94、スタッフカウンタ95及びフ
レームカウンタ96は、フレームメモリ90からペイロ
ードデータを読み出す読み出し制御部を構成する。ここ
で、比較器94は、前記したパルス信号によりセットさ
れ、カウンタ93からのカウント値をしきい値(Th)
と比較し、その差すなわち1フレーム中のスタッフ量を
出力するものである。しきい値(Th)としては、スタ
ッフが発生していない場合のオーバーヘッド部のバイト
数である81が設定されている。
The comparator 94, the stuff counter 95, and the frame counter 96 constitute a read control unit for reading the payload data from the frame memory 90. Here, the comparator 94 is set by the pulse signal described above, and counts the count value from the counter 93 to a threshold value (Th).
And outputs the difference, that is, the stuff amount in one frame. As the threshold value (Th), 81, which is the number of bytes of the overhead portion when no stuff is generated, is set.

【0016】図11に示すように、スタッフされていな
い場合には、1フレーム終了時のカウンタ93からのカ
ウント値は81であり、比較器94から出力される数値
は0である。また図12に示すように、伝送クロックの
方が受信側クロックより遅い場合には、たとえば、ペイ
ロード部に3バイト分無効データが挿入されて、この部
分もオーバーヘッド部とみなされるため、1フレーム終
了時のカウンタ93からのカウント値は84となり、比
較器94から出力される数値は+3となる。
As shown in FIG. 11, when there is no stuffing, the count value from the counter 93 at the end of one frame is 81, and the numerical value output from the comparator 94 is 0. Further, as shown in FIG. 12, when the transmission clock is slower than the reception clock, for example, three bytes of invalid data are inserted into the payload part, and this part is also regarded as an overhead part. The count value from the counter 93 at the time is 84, and the numerical value output from the comparator 94 is +3.

【0017】また、オーバーヘッド部の3バイトのスタ
ッフ用領域に有効なペイロードデータが書き込まれる場
合には、1フレーム終了時のカウンタ93からのカウン
タ値は78となり、比較器94から出力される数値は−
3となる。
When valid payload data is written in the 3-byte stuff area of the overhead section, the counter value from the counter 93 at the end of one frame is 78, and the numerical value output from the comparator 94 is −
It becomes 3.

【0018】スタッフカウンタ95は、比較器94から
出力される数値に従って読み出し禁止用のインヒビット
信号を生成するものである。スタッフがなく数値0が入
力された場合には、図11に示すように、オーバーヘッ
ド部の9バイト分に相当する期間だけ読み出し禁止する
ようなインヒビット信号が送出される。数値+3の場合
には、図12に示すように9+3=12バイト分に相当
する期間、又は、数値−3の場合には、9−3=6バイ
ト分に相当する期間だけ読み出しを禁止するようなイン
ヒビット信号が送出される。
The stuff counter 95 generates an inhibit signal for inhibiting reading in accordance with a numerical value output from the comparator 94. When there is no stuff and a numerical value 0 is input, as shown in FIG. 11, an inhibit signal for prohibiting reading for a period corresponding to 9 bytes of the overhead portion is transmitted. In the case of the numerical value +3, as shown in FIG. 12, reading is prohibited only for the period corresponding to 9 + 3 = 12 bytes, or in the case of the numerical value-3, for the period corresponding to 9-3 = 6 bytes. An inhibit signal is transmitted.

【0019】フレームカウンタ96は、前記スタッフカ
ウンタ95からのインヒビット信号をイネーブル入力と
し、装置内部の受信側クロックをカウントしてフレーム
メモリ90の読み出しアドレスを発生するものである。
The frame counter 96 receives the inhibit signal from the stuff counter 95 as an enable input, counts a receiving clock inside the apparatus, and generates a read address of the frame memory 90.

【0020】以上が従来における位相制御回路の構成例
であるが、これはNNI方式のSTMフレームの1フレ
ームごとにスタッフの有無の監視を行い、入力されたフ
レームのペイロードデータの位置を示す位相の変動に応
じて、出力されるペイロードデータの位相を調整するも
のである。
The above is an example of the configuration of the conventional phase control circuit, which monitors the presence / absence of stuff for each NNI STM frame and determines the phase of the payload indicating the position of the payload data of the input frame. The phase of the output payload data is adjusted according to the fluctuation.

【0021】[0021]

【発明が解決しようとする課題】しかし、伝送路上での
ノイズや瞬断等によって異常が発生した場合、スタッフ
が起こっていないにもかかわらず、“スタッフ有り”と
誤検出してしまうような状態がごくまれであるが存在
し、従来の位相制御回路ではスタッフの有無の検出を1
フレームごとに行っているため、このような場合にはN
NI方式で規定されているスタッフ許容量以上のスタッ
フを挿入したデータを対向する受信装置へ送出してしま
うことがあった。
However, when an abnormality occurs due to noise or instantaneous interruption on the transmission line, a situation is erroneously detected as "staff present" even though no staff has occurred. Although it is very rare, existing phase control circuits detect the presence or absence of stuff by one.
In such a case, N
In some cases, data in which stuff exceeding the stuff allowance specified by the NI system is inserted is transmitted to the opposite receiving device.

【0022】NNI方式の規定では連続する4フレーム
の中で1回のみスタッフの発生が許されているが、4フ
レーム中に2回以上スタッフが発生することは許されて
ない。もし、4フレーム中に2回以上スタッフが発生し
た場合には、受信側では正常にデータを受信できない。
According to the provisions of the NNI system, stuffing is allowed only once in four consecutive frames, but stuffing is not allowed twice or more in four frames. If the stuff occurs twice or more in four frames, the receiving side cannot normally receive data.

【0023】図13は、従来例において規定回数以上の
スタッフが発生しているとみなされるような異常が発生
した場合の従来の位相制御回路のタイムチャートであ
る。同図においては、毎フレームごとに3バイトの無効
データを挿入する正スタッフ制御が行われるような異常
状態が示されており、従来の位相制御回路では、1フレ
ームごとにオーバーヘッド部のバイト数をカウントして
比較器のしきい値81と比較するので、入力データの1
フレーム中にスタッフが発生しているとみなされた場合
には、必ずそのフレームに対応する出力データはスタッ
フ制御されて出力される。したがって、このような場
合、対向する受信装置において受信できないことにな
る。
FIG. 13 is a time chart of a conventional phase control circuit in the case where an abnormality occurs in which the stuff is considered to have occurred more than a specified number of times in the conventional example. In the figure, an abnormal state is shown in which normal stuff control for inserting invalid data of 3 bytes is performed for each frame. In the conventional phase control circuit, the number of bytes of the overhead part is determined for each frame. Since it is counted and compared with the threshold value 81 of the comparator, one of the input data
When it is determined that stuff occurs in a frame, the output data corresponding to that frame is always output under stuff control. Therefore, in such a case, the receiving device cannot receive the signal.

【0024】この発明は、以上のような事情を考慮して
なされたものであり、入力データの異常等によりスタッ
フが誤検出された場合に、NNI方式の規定回数すなわ
ち4フレームあたり1回のスタッフを越えるスタッフ制
御を行わないように保護をかける位相制御回路を提供す
ることを目的とする。
The present invention has been made in view of the above circumstances, and when a stuff is erroneously detected due to an abnormality in input data or the like, the stuff is performed a prescribed number of times in the NNI system, ie, one stuff per four frames. It is an object of the present invention to provide a phase control circuit for protecting the stuff control from exceeding the stuff control.

【0025】[0025]

【課題を解決するための手段】図1に、この発明の基本
構成のブロック図を示す。この発明は、送信装置から入
力されたNNI方式によるSTMフレーム形式のデータ
の位相制御を行い、受信装置へ前記データを出力する位
相制御回路において、送信装置から入力される伝送クロ
ックに同期した前記入力データを受信側クロックに同期
するようにクロック乗換えを行うクロック乗換手段4
と、前記STMフレーム形式の有効データ部が記憶され
る情報記憶手段1と、有効データ部が入力されているこ
とを監視し、この有効データ部が書き込まれる前記情報
記憶手段1のアドレスを生成し、生成されたアドレスに
前記有効データ部を順次書き込む制御を行う書込み制御
手段2と、前記STMフレーム形式の制御用データ部の
バイト数を8フレームの期間にわたってカウントした
後、そのカウント値を出力するオーバーヘッド計数手段
5と、前記カウント値を所定のしきい値と比較すること
によって、受信装置へ伝送するデータの位相を制御する
ための8フレーム当りのスタッフ量を検出するスタッフ
制御手段6と、前記スタッフ量に対応してデータを読み
出す位相を調整し、前記有効データ部を読み出す前記情
報記憶手段1のアドレスを生成し、生成されたアドレス
に格納された有効データ部を順次読み出す制御を行う読
み出し制御部3とを備えたことを特徴とする位相制御回
路を提供するものである。
FIG. 1 is a block diagram showing the basic configuration of the present invention. According to the present invention, in a phase control circuit for performing phase control of STM frame format data according to the NNI system input from a transmission device and outputting the data to a reception device, the phase control circuit synchronizes with the transmission clock input from the transmission device. Clock changing means 4 for changing the clock so that the data is synchronized with the receiving clock
And an information storage means 1 for storing the valid data part in the STM frame format, and monitoring that the valid data part is input, and generating an address of the information storage means 1 in which the valid data part is written. Writing control means 2 for sequentially writing the valid data portion to the generated address, and counting the number of bytes of the control data portion in the STM frame format over a period of eight frames, and then outputting the count value. An overhead counting means 5, a stuff control means 6 for detecting a stuff amount per eight frames for controlling a phase of data transmitted to the receiving device by comparing the count value with a predetermined threshold value, The phase of reading data is adjusted according to the amount of stuff, and the address of the information storage means 1 for reading the effective data portion is adjusted. Generates a scan, there is provided a phase control circuit, characterized in that a read control section 3 for sequentially reading control valid data portion stored in the generated address.

【0026】ここでクロック乗換手段4は、フリップフ
ロップ及びAND又はOR等の論理回路から構成される
公知の回路であり、伝送クロックと受信側クロックとの
位相差を吸収して受信側クロックに同期した入力データ
を生成するものである。
Here, the clock transfer means 4 is a known circuit comprising a flip-flop and a logic circuit such as AND or OR, and absorbs the phase difference between the transmission clock and the reception clock to synchronize with the reception clock. To generate input data.

【0027】情報記憶手段1はたとえばデュアルポート
RAMやIFOが用いられ、書込みアドレスと読み出
しアドレスを与えることによりデータの書込みと読み出
しを同時に行うことができるものである。これは、一般
にフレームメモリと呼ばれる。書き込み制御手段2は、
主として数値を計数するカウンタから構成され、計数さ
れた数値に対応した所定の書き込みアドレスを出力する
ものである。読み出し制御手段3は、数値を計数するカ
ウンタから構成され、計数された数値に対応した所定の
読み出しアドレスを出力するものである。
The information storage means 1, for example a dual-port RAM and F IFO is used, it is capable of writing and reading of data at the same time by providing a write address and the read address. This is generally called a frame memory. The writing control means 2
It mainly comprises a counter for counting numerical values, and outputs a predetermined write address corresponding to the counted numerical value. The read control means 3 is composed of a counter for counting numerical values, and outputs a predetermined read address corresponding to the counted numerical values.

【0028】オーバーヘッド計数手段5は、1/8分周
回路及びカウンタから構成されることが望ましい。ここ
で1/8分周回路とは、フリップフロップ又はカウンタ
によって構成され、入力された信号の出力期間を8倍に
引き延ばすものであり、カウントすべきタイミングの設
定を行うものである。ここでは制御用データ部のバイト
数を8フレーム間にわたってカウントするためのタイミ
ングの開始と終了を与える動作を行う。
It is desirable that the overhead counting means 5 comprises a 1/8 frequency dividing circuit and a counter. Here, the 1 / frequency divider circuit is configured by a flip-flop or a counter, extends the output period of the input signal by eight times, and sets the timing to be counted. Here, an operation for giving a start and an end of timing for counting the number of bytes of the control data portion over eight frames is performed.

【0029】スタッフ制御手段6は、比較器及びカウン
タから構成されることが望ましい。比較器は、AND又
はOR等の論理回路やカウンタから構成され、入力され
た計数値と内部にあらかじめ記憶されたしきい値とを比
較して、その差に相当する数値を出力するものである。
The stuff control means 6 preferably comprises a comparator and a counter. The comparator is composed of a logic circuit such as AND or OR or a counter, compares the input count value with a threshold value stored in advance therein, and outputs a numerical value corresponding to the difference. .

【0030】[0030]

【作用】この発明のクロック乗換手段4には、外部から
伝送クロックとこの伝送クロックに同期したNNI方式
のSTMフレーム形式のデータが入力される。クロック
乗換手段4には受信側クロックも入力され、クロック乗
換手段4は、STMフレーム形式のデータをこの受信側
クロックに同期するようにクロック乗換え動作を行う。
A transmission clock and NNI STM frame data synchronized with the transmission clock are input from the outside to the clock transfer means 4 of the present invention. A clock on the receiving side is also input to the clock changing means 4, and the clock changing means 4 performs a clock changing operation so that the data in the STM frame format is synchronized with the receiving clock.

【0031】書込み制御手段2は、前記STMフレー
ム形式の入力データのうち有効データ部が入力されてい
るかどうかを監視し、前記有効データ部を情報記憶手段
1へ書込むためのアドレスを生成する。これにより、生
成されたアドレスに前記有効データ部が順次書き込まれ
る。
[0031] Form-out write control unit 2, generates an address for one monitors whether valid data unit is input, writing the valid data portion into the information storage means 1 of the input data of the STM frame format I do. Thus, the valid data portion is sequentially written to the generated address.

【0032】オーバーヘッド計数手段5は、前記STM
フレーム形式の制御用データ部のバイト数を8フレーム
の期間にわたってカウントした後、そのカウント値を出
力する。
The overhead counting means 5 includes the STM
After counting the number of bytes of the control data section in the frame format over a period of 8 frames, the count value is output.

【0033】次に、スタッフ制御手段6は、前記カウン
ト値を所定のしきい値と比較することによって受信装置
へ伝送するデータの位相を制御するための8フレーム当
りのスタッフ量を検出する。
Next, the stuff control means 6 detects the amount of stuff per eight frames for controlling the phase of data transmitted to the receiving device by comparing the count value with a predetermined threshold value.

【0034】読み出し制御部3は、検出された前記スタ
ッフ量に対応してデータを読み出す位相を調整し、前記
有効データ部を読み出す前記情報記憶手段1のアドレス
を生成し、生成したアドレスに格納された有効データ部
を読み出す。
The read control unit 3 adjusts the phase of reading data in accordance with the detected stuff amount, generates an address of the information storage unit 1 for reading the valid data portion, and stores the address in the generated address. Read the valid data section.

【0035】このように、この発明によれば、STMフ
レーム形式の入力データの中の8フレーム当りの制御用
データ部をカウントし、このカウント値と所定のしきい
値とを比較して8フレーム当りのスタッフ量を検出し、
このスタッフ量に対応してデータの読み出しの制御を8
フレーム単位で行うようにしているので、入力データの
位相の変化に合わせて出力データの位相を変化させるこ
とができ、また入力データの異常時にも8フレーム単位
でスタッフの誤検出が自動的にキャンセルされるため、
NNI方式の規定回数のスタッフすなわち4フレーム当
り1回のスタッフを越えるスタッフ制御が行われないよ
うにでき、NNI方式に従ったデータを出力することが
できる。
As described above, according to the present invention, the control data portion per 8 frames in the input data in the STM frame format is counted, and the counted value is compared with a predetermined threshold value to compare 8 frames. Per staff amount,
Data read control is controlled in accordance with this stuff amount.
Since the operation is performed in units of frames, the phase of output data can be changed according to the change in the phase of input data. Also, when input data is abnormal, erroneous staff detection is automatically canceled in units of 8 frames. To be
It is possible to prevent stuff control exceeding the specified number of stuffs of the NNI method, that is, stuff control exceeding one stuffing per four frames, and to output data according to the NNI method.

【0036】[0036]

【実施例】以下、図面に示す実施例に基づいてこの発明
を詳述する。なお、これによってこの発明が限定される
ものではない。図2に、この発明の一実施例の構成ブロ
ック図を示す。ここで、フレーム同期部29は、従来例
で述べたものと同じ構成を持つ。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the embodiments shown in the drawings. Note that the present invention is not limited to this. FIG. 2 is a block diagram showing the configuration of an embodiment of the present invention. Here, the frame synchronization section 29 has the same configuration as that described in the conventional example.

【0037】フレーム同期部2では、STMフレーム
形式の入力データを検出・解析して、スタッフの有無を
判断しSTMフレーム中の有効データであるペイロード
データの先頭位置を探し出す。同図に示すように、フレ
ーム同期部29は、ペイロードデータに同期してペイロ
ードデータが入力される期間中“H”レベルを出力する
ペイロード情報信号と、オーバーヘッドデータ(SOH
データ)に同期してSOHデータが入力される期間中
“H”レベルを出力するオーバーヘッド情報(SOH情
報)信号を生成する。
[0037] The frame synchronization unit 2 9, to detect and analyze the input data of the STM frame format, find the head position of the payload data is valid data in the STM frame to determine whether the staff. As shown in the figure, the frame synchronization unit 29 includes a payload information signal that outputs an “H” level during a period in which the payload data is input in synchronization with the payload data, and an overhead data (SOH).
Data signal), and generates an overhead information (SOH information) signal that outputs an “H” level during a period in which the SOH data is input.

【0038】さらに、フレーム同期部29は、図7に示
したSTMフレームの第4行目のポインタ先頭位置すな
わちポインタ点を示すポインタパルス信号を生成す
る。フレーム同期部29で生成されたペイロード情報信
号、SOH情報信号及びポインタパルス信号は、この発
明の位相制御回路のビットバッファ24に入力される。
Further, the frame synchronizer 29 generates a pointer pulse signal indicating the pointer start position, that is, the pointer point in the fourth row of the STM frame shown in FIG. The payload information signal, the SOH information signal, and the pointer pulse signal generated by the frame synchronization section 29 are input to the bit buffer 24 of the phase control circuit of the present invention.

【0039】ビットバッファ24は、いわゆるクロック
乗換手段であり、伝送クロックと受信側クロックとの位
相差を吸収してフレーム同期部29から入力されたペイ
ロードデータを受信側クロックに同期させて出力するも
のである。伝送クロックとは、入力データと共に、送信
装置側から入力されるクロックであり、受信側クロック
とは、入力したデータを受信装置へ伝送するための基準
となるクロックであり、位相制御回路で生成されるか、
又は受信装置から送られてくるクロックが利用される。
The bit buffer 24 is a so-called clock transfer means for absorbing the phase difference between the transmission clock and the reception clock and outputting the payload data input from the frame synchronization section 29 in synchronization with the reception clock. It is. The transmission clock is a clock input from the transmission device side together with the input data, and the reception clock is a clock serving as a reference for transmitting the input data to the reception device, and is generated by the phase control circuit. Or
Alternatively, a clock sent from the receiving device is used.

【0040】一般に、STMフレームのデータは、送信
装置から出力される際と、このビットバッファ24での
クロック乗換動作の際に、出力データのタイミング調整
のためのスタッフ制御が行われる。
In general, when the data of the STM frame is output from the transmitting device and when the clock is switched by the bit buffer 24, stuff control for adjusting the timing of the output data is performed.

【0041】それぞれのスタッフ制御は、NNI方式の
規定にしたがって4フレームに1回を越えることなく行
われるが、送信装置でのスタッフ制御とビットバッファ
24でのスタッフ制御は互いに独立して行われるため、
任意の4フレーム中に両者が同時に起こることがあり、
この場合には、4フレーム中に2回のスタッフが発生す
ることになる。しかし、それに続くフレーム中にはN
NI方式の規格上スタッフが発生することはないため、
8フレーム中に2回を越えてスタッフが発生することは
ない。したがってスタッフの有無の検出は8フレーム単
位で行えばよく、8フレーム中に2回を越えてスタッフ
を検出した場合は異常として扱われる。
Although each stuff control is performed not more than once in four frames in accordance with the provisions of the NNI system, the stuff control in the transmission device and the stuff control in the bit buffer 24 are performed independently of each other. ,
Both may occur simultaneously during any four frames,
In this case, stuffing occurs twice in four frames. However, during the next three frames, N
Because there is no staff in the NI standard,
No stuffing occurs more than twice in eight frames. Therefore, the presence or absence of the stuff may be detected in units of eight frames. If the stuff is detected more than twice in eight frames, it is treated as abnormal.

【0042】ペイロードカウンタ22は、ペイロードデ
ータをフレームメモリ21に書き込むアドレスを生成す
るものである。ペイロードカウンタ22は、ビットバッ
ファ24を通して入力されるポインタパルス信号によっ
て初期セットされ、ペイロードデータが入力されている
ことを示すペイロード情報の“H”レベル出力期間中イ
ネーブルとされる。
The payload counter 22 generates an address for writing the payload data to the frame memory 21. The payload counter 22 is initially set by a pointer pulse signal input through the bit buffer 24, and is enabled during an “H” level output period of payload information indicating that payload data is being input.

【0043】そしてその間受信側クロックをカウントす
ることにより、ペイロードデータの先頭を示すポインタ
点のデータから順に書き込むアドレスをフレームメモ
リ21に与える。以上の動作により、ペイロードデータ
がフレームメモリ21の所定のアドレスに順次書き込ま
れる。ここで、フレームメモリ21は、デュアルポート
メモリのようなRAMであり、読み出し及び書込みが別
のポートを通して行えるメモリである。
By counting the clocks on the receiving side during that time, addresses to be written in order from the data at the pointer point indicating the head of the payload data are given to the frame memory 21. Through the above operation, the payload data is sequentially written to a predetermined address of the frame memory 21. Here, the frame memory 21 is a RAM such as a dual-port memory, and is a memory from which reading and writing can be performed through another port.

【0044】1/8分周回路25とオーバーヘッド(O
H)カウンタ26は、STMフレームのうち、オーバー
ヘッド部のバイト数をカウントするオーバーヘッド計数
手段を構成する。1/8分周回路25は、ポインタパル
ス信号を入力とし、8フレーム分のタイミングを生成
し、オーバーヘッドカウンタ26に対して8フレーム分
のカウントの開始の指示を与えるものである。
The 1/8 frequency divider 25 and the overhead (O
H) The counter 26 constitutes overhead counting means for counting the number of bytes of the overhead part in the STM frame. The 8 frequency dividing circuit 25 receives the pointer pulse signal, generates timing for eight frames, and gives an instruction to the overhead counter 26 to start counting for eight frames.

【0045】オーバーヘッドカウンタ26は、1/8分
周回路25によってカウントの開始を指示された後、S
OH情報信号で示されるオーバーヘッドデータの入力期
間中、受信側クロックの数をカウントするものである。
すなわち、オーバーヘッドカウンタ26は、SOH情報
信号が“H”レベルとなっている期間中、オーバーヘッ
ド(SOH)データのバイト数を8フレームに渡ってカ
ウントする。
After the overhead counter 26 is instructed to start counting by the 8 frequency dividing circuit 25,
During the input period of the overhead data indicated by the OH information signal, the number of receiving-side clocks is counted.
That is, the overhead counter 26 counts the number of bytes of overhead (SOH) data over eight frames while the SOH information signal is at the “H” level.

【0046】たとえば、図3に示すように、スタッフが
ない場合には、1フレーム期間中では、STMフレーム
は1行あたり9バイトのSOHデータからなるため、9
×9行=81(バイト)がカウントされ、8フレーム期
間では、81×8=648(バイト)がカウントされ
る。
For example, as shown in FIG. 3, when there is no stuff, the STM frame is composed of 9 bytes of SOH data per line during one frame period.
× 9 rows = 81 (bytes) are counted, and 81 × 8 = 648 (bytes) are counted in the eight frame period.

【0047】この8フレームに渡ってカウントされたS
OHデータのバイト数のカウント値は比較器27に送ら
れて所定のしきい値Th“648”と比較される。図3
1に示すように、スタッフがない場合には、オーバーヘ
ッドカウンタ26から出力されたカウント値は648で
あり、しきい値Thと等しいため、スタッフがないこと
を示すデータとして“0”が比較器27から出力され
る。
S counted over the eight frames
The count value of the number of bytes of the OH data is sent to the comparator 27 and compared with a predetermined threshold value Th “648”. FIG.
As shown in FIG. 1, when there is no stuff, the count value output from the overhead counter 26 is 648, which is equal to the threshold value Th. Output from

【0048】比較器27からの出力値“0”はスタッフ
カウンタ28に与えられるが、この出力値は検出された
スタッフ量のデコード信号であり、スタッフカウンタ2
8から出力されるインヒビット信号の出力期間を定める
ものである。スタッフカウンタ28は、フレームメモリ
21からペイロードデータを読み出すタイミングを指示
するためのインヒビット信号をフレームカウンタ23に
与えるものである。
The output value "0" from the comparator 27 is given to the stuff counter 28. This output value is a decoded signal of the detected stuff amount.
8 determines the output period of the inhibit signal output from the control signal 8. The stuff counter 28 supplies the frame counter 23 with an inhibit signal for instructing the timing of reading the payload data from the frame memory 21.

【0049】SOHデータとスタッフ制御された期間は
ペイロードデータを読み出してはいけないタイミングで
あるので、インヒビット信号は、ペイロードデータを読
み出すタイミングを指示すると共に、ペイロードデータ
を読み出してはいけないタイミングを指示するものであ
る。たとえば、図3に示すように、スタッフがない場合
には、インヒビット信号はSOHデータに相当する9バ
イトの期間だけ“L”レベルが出力され、ペイロードデ
ータに相当する261バイトの期間は“H”レベルが出
力される。
Since the period during which the stuff control is performed with the SOH data is the timing at which the payload data must not be read, the inhibit signal indicates the timing at which the payload data is to be read and the timing at which the payload data is not to be read. It is. For example, as shown in FIG. 3, when there is no stuff, the inhibit signal is output at "L" level only for a period of 9 bytes corresponding to SOH data, and is set to "H" for a period of 261 bytes corresponding to payload data. The level is output.

【0050】このインヒビット信号は、フレームカウン
タ23のイネーブル信号として入力され、フレームカウ
ンタ23は、このイネーブル期間中受信側クロックをカ
ウントして、フレームメモリ21に対して所定の読み出
しアドレスを与える。これにより、フレームメモリ21
の所定のアドレスに書き込まれたペイロードデータが順
次受信側クロックに同期して、さらにSTMフレームの
所定のタイミング位置にペイロードデータが乗せられて
読み出される。
The inhibit signal is input as an enable signal of the frame counter 23, and the frame counter 23 counts the clock on the receiving side during the enable period and gives a predetermined read address to the frame memory 21. Thereby, the frame memory 21
The payload data written to the predetermined address is sequentially read in synchronization with the clock on the receiving side, and further loaded with the payload data at a predetermined timing position of the STM frame.

【0051】以上がスタッフがない場合の動作例である
が、スタッフがある場合には、オーバーヘッドカウンタ
26でのカウント値が異なり、これにより、ペイロード
データの読み出しタイミングすなわち位相が変化する。
このスタッフがある場合の例を図4及び図6に示す。
The above is an example of the operation when there is no stuff. When there is stuff, the count value of the overhead counter 26 is different, whereby the read timing of the payload data, that is, the phase is changed.
FIGS. 4 and 6 show examples in the case where the staff is present.

【0052】図4は、第1フレームから第7フレームま
ではスタッフがなく第8フレームに正スタッフ、すなわ
ち、ペイロード部に3バイト分のスタッフ制御を行って
いる場合の例である。
FIG. 4 shows an example in which the first frame to the seventh frame have no stuff and the eighth frame performs the normal stuff control, that is, the stuff control for the payload portion for 3 bytes.

【0053】ここでは、第8フレームの最後尾において
3バイト分のスタッフが発生し、スタッフのない場合に
は、オーバーヘッドカウンタ26のカウンタ値が639
であるべきところ、3バイトのスタッフ分だけ長くSO
H情報信号が出力されてオーバーヘッドカウンタ26の
カウント値が642となったことを示している。このと
き、8フレーム分のカウント終了時においては、オーバ
ーヘッドカウンタ26からSOHカウント値として64
8+3=651が出力されて比較器27に入力される。
Here, a 3-byte stuff occurs at the end of the eighth frame, and when there is no stuff, the counter value of the overhead counter 26 is 639.
Should be SO long by 3 bytes of staff
This indicates that the H information signal has been output and the count value of the overhead counter 26 has reached 642. At this time, when the counting of eight frames is completed, the overhead counter 26 sets the SOH count value to 64.
8 + 3 = 651 is output and input to the comparator 27.

【0054】図6に示したスタッフ動作の説明図におい
ては、(a)及び(b)がこの図4のスタッフ制御に対
応する。すなわち、スタッフがないときには、SOH部
の直後の3バイトにはペイロードデータが入り、(b)
で示したポインタパルス信号の生成位置は点線で示した
スタッフ前の位置であるべきであるが、3バイト分のス
タッフが発生したときには、SOH部の直後の3バイト
にスタッフに相当する無効データが挿入され、ペイロー
ドデータの先頭位置は4バイト目以降となるため、ポイ
ンタパルス信号の生成位置は3バイトのスタッフ分だけ
遅れる。
In the illustration of the stuff operation shown in FIG. 6, (a) and (b) correspond to the stuff control of FIG. That is, when there is no stuff, the payload data is stored in the 3 bytes immediately after the SOH section, and (b)
The generation position of the pointer pulse signal indicated by 線 should be the position before the stuff indicated by the dotted line. However, when 3 bytes of stuff are generated, invalid data corresponding to the stuff is stored in 3 bytes immediately after the SOH section. Since the data is inserted and the head position of the payload data is the fourth byte and thereafter, the generation position of the pointer pulse signal is delayed by the stuff of 3 bytes.

【0055】なお、スタッフが発生していることは、フ
レーム同期部29で検出されており、このスタッフ量に
応じて、ポインタパルス信号のほかペイロード情報信号
及びSOH情報信号もフレーム同期部29で生成され
る。また、スタッフによって挿入される3バイトの無効
データとしては、たとえばFFHが用いられる。
The occurrence of the stuff is detected by the frame synchronizing unit 29, and in addition to the pointer pulse signal, the payload synchronizing signal and the SOH information signal are generated by the frame synchronizing unit 29 according to the amount of the stuff. Is done. For example, FFH is used as the 3-byte invalid data inserted by the stuff.

【0056】このように、図4および図6(a)で示さ
れたようなスタッフが発生している場合には、比較器2
7では入力されたカウンタ値“651”と所定のしきい
値“648”が比較され、比較器27から“+3”の数
値がスタッフカウンタ28にスタッフのデコード信号と
して与えられる。
As described above, when the stuff is generated as shown in FIGS. 4 and 6A, the comparator 2
In step 7, the input counter value "651" is compared with a predetermined threshold value "648", and the value of "+3" is supplied from the comparator 27 to the stuff counter 28 as a stuff decode signal.

【0057】スタッフカウンタ28は、“+3”の数値
が入力された場合、スタッフ制御によって挿入された3
バイトの無効データ分に相当する期間だけオーバーヘッ
ド部が延びたようなインヒビット信号を送出する。
When the numerical value of “+3” is input, the stuff counter 28 stores the value of 3 inserted by the stuff control.
An inhibit signal is transmitted such that the overhead part is extended for a period corresponding to the invalid data of the byte.

【0058】次にこのインヒビット信号をイネーブル信
号として受信したフレームカウンタ23はオーバーヘッ
ド部に相当する9+3=12バイト分はデータの読み出
しを禁止し、これに続くタイミングで258バイト分の
ペイロードデータを読み出すように、読み出しアドレス
をフレームメモリ21に対して出力する。
Next, the frame counter 23 which receives the inhibit signal as an enable signal inhibits reading of data for 9 + 3 = 12 bytes corresponding to the overhead portion, and reads 258 bytes of payload data at the subsequent timing. Then, the read address is output to the frame memory 21.

【0059】以上のように、8フレームのデータ入力期
間中に、図4に示したようなスタッフが1回発生してい
るような場合には、8フレーム期間終了時にはオーバー
ヘッドカウンタ26のカウント値は、468+3=45
1となり、次の4フレームのデータ出力期間中に1回ス
タッフを発生させるように比較器27から“+3”のデ
コード信号がスタッフカウンタ28に与えられる。
As described above, in the case where the stuff occurs once as shown in FIG. 4 during the data input period of eight frames, the count value of the overhead counter 26 at the end of the eight frame period is 468 + 3 = 45
The decoded signal of "+3" is supplied from the comparator 27 to the stuff counter 28 so that the stuff is generated once during the data output period of the next four frames.

【0060】すなわち、従来のように1フレームごと
に、スタッフの有無の検出をして、読み出し側のスタッ
フを制御するのではなく、8フレーム間にわたってスタ
ッフの量を検出して、8フレームの入力データを受信後
に、読み出し側のスタッフを制御しているので、入力デ
ータの異常時にも、スタッフの誤検出がキャンセルされ
てNNI方式に従ったスタッフ量のデータを出力するこ
とができる。
That is, instead of detecting the presence / absence of stuff for each frame and controlling the stuff on the reading side as in the prior art, the amount of stuff is detected over eight frames and input of eight frames is performed. Since the read-side stuff is controlled after receiving the data, even if the input data is abnormal, erroneous detection of the stuff is canceled and the stuff amount data according to the NNI method can be output.

【0061】図6(c)、(d)は、オーバーヘッド部
の3バイトのスタッフ領域に、有効データが挿入される
ようなスタッフが発生している場合を示している。この
例では、有効データであるペイロードデータが3バイト
増加し、オーバーヘッドデータが3バイト減少している
ので、図6(c)、(d)に示すように、ペイロードデ
ータの先頭位置を示すポインタ点は3バイト分オーバ
ーヘッド部へずれ、ポインタパルス信号の生成位置は3
バイト分だけ早くなる。
FIGS. 6 (c) and 6 (d) show a case where a stuff is inserted in the 3-byte stuff area of the overhead part such that valid data is inserted. In this example, since the payload data, which is valid data, has increased by 3 bytes and the overhead data has decreased by 3 bytes, the pointer points to the head position of the payload data as shown in FIGS. Shifts to the overhead part by 3 bytes, and the generation position of the pointer pulse signal is 3 bytes.
Faster by bytes.

【0062】したがってオーバーヘッドカウンタ26に
入力されるSOH情報信号は3バイト分だけ短く、8フ
レーム期間終了時には出力カウンタ値は648−3=6
45が出力される。
Therefore, the SOH information signal input to the overhead counter 26 is shorter by 3 bytes, and the output counter value is 648-3 = 6 at the end of the 8 frame period.
45 is output.

【0063】比較器27では、8フレーム期間終了時
に、この入力されたカウント値“645”としきい値T
h“648”を比較し、“−3”のデコード信号がスタ
ッフカウンタ28へ送出され、次の4フレームのデータ
出力期間中に、オーバーヘッド部が3バイト分少なくな
ったようなインヒビット信号がスタッフカウンタ28か
らフレームカウンタ23へ送出される。
In the comparator 27, at the end of the eight frame period, the input count value “645” and the threshold value T
h "648" is compared, a "-3" decoded signal is sent to the stuff counter 28, and during the data output period of the next four frames, an inhibit signal whose overhead part is reduced by 3 bytes is sent to the stuff counter 28. 28 to the frame counter 23.

【0064】また、NNI方式では、4フレーム中に1
回のスタッフが許されているため、オーバーヘッドカウ
ンタ26で監視する8フレーム中において、2回のスタ
ッフが検出される場合もあるが、図6(a)のような+
側へのスタッフが2回発生している場合には、オーバー
ヘッドカウンタ26の出力カウンタ値は648+3+3
=654となり、比較器27からは“+6”のデコード
信号が出力される。
In the NNI system, one out of four frames
Since two stuffs are allowed, two stuffs may be detected in eight frames monitored by the overhead counter 26. However, as shown in FIG.
When the stuff to the side occurs twice, the output counter value of the overhead counter 26 is 648 + 3 + 3.
= 654, and the comparator 27 outputs a decode signal of “+6”.

【0065】そして、次の4フレーム期間において1回
のスタッフが行われ、さらに次の4フレーム期間におい
て1回のスタッフが行われるように、スタッフカウンタ
28からインヒビット信号が出力されてペイロードデー
タが読み出される。
Then, an inhibit signal is output from the stuff counter 28 and the payload data is read out so that one stuff is performed in the next four frame periods and one stuff is performed in the next four frame periods. It is.

【0066】また、図6(c)のような−側へのスタッ
フが8フレーム中に2回発生している場合には、オーバ
ーヘッドカウンタ26の出力カウンタ値は648−3−
3=642となり、比較器27からは“−6”のデコー
ド信号が出力され、次の4フレーム期間と、さらにその
次の4フレーム期間において各1回ずつのスタッフが行
われるようにスタッフカウンタ28からインヒビット信
号が出力される。
When the negative stuff occurs twice in eight frames as shown in FIG. 6C, the output counter value of the overhead counter 26 becomes 648-3-.
3 = 642, and the comparator 27 outputs a decoded signal of “−6”, and the stuff counter 28 performs stuffing once in the next four frame periods and further in the next four frame periods. Outputs an inhibit signal.

【0067】このように、入力データの8フレームの期
間中に、スタッフが1回又は2回発生している場合に
は、読み出し側において各スタッフ量に対応するスタッ
フ制御が行われ、データが正常にNNI方式の規定にし
たがって読み出されるが、伝送回路異常のため入力デー
タにエラーが発生し、規定以上のスタッフが発生してい
るとみなされる場合には、比較器27からは“0”のデ
コード信号を出力させる。
As described above, when the stuff occurs once or twice during the period of eight frames of the input data, the stuff control corresponding to each stuff amount is performed on the reading side, and the data becomes normal. Is read in accordance with the NNI specification, but if an error occurs in the input data due to a transmission circuit error and it is considered that stuff exceeding the specification has occurred, the comparator 27 decodes “0”. Output a signal.

【0068】すなわち、8フレームあたり、3回以上の
スタッフが検出された場合には、読み出し側でスタッフ
制御を行わないようにさせ、スタッフの誤検出が8フレ
ーム単位でキャンセルさせるようにする。これによって
NNI方式の規定にしたがったペイロードデータを出力
することができるようになる。
[0068] That is, or 8 frame Moore, when staff three or more is detected, is not performed stuff control the reading side, staff erroneous detection so as to cancel at 8 frames . This makes it possible to output payload data in accordance with the NNI standard.

【0069】図5は、入力データの8フレーム期間中、
各フレームごとに図6(a)のスタッフが発生している
場合を示したものであり、8フレーム期間終了時には、
オーバーヘッドカウンタ26から出力されるカウント値
は648+24=672となり、比較器27において、
しきい値Th=648との比較結果は+24となる。
FIG. 5 shows that during eight frames of input data,
FIG. 6A shows a case where the stuff of FIG. 6A is generated for each frame. At the end of the eight frame period,
The count value output from the overhead counter 26 is 648 + 24 = 672.
The comparison result with the threshold value Th = 648 is +24.

【0070】しかし、8フレーム期間中でスタッフ制御
可能な数値である±3、±6のどれとも一致しないた
め、スタッフ異常とみなし、スタッフ制御をさせないよ
うに、比較器27の出力値としては“0”を出力させ
る。
However, since it does not match any of the stuff controllable values ± 3 and ± 6 during the eight frame period, the stuff is considered to be abnormal and the output value of the comparator 27 is set to " 0 "is output.

【0071】以上のように、入力データのスタッフ量の
変化を8フレーム単位で検出することにより、入力デー
タの有効データの位置の変化すなわち位相の変化に対応
して読み出し側の位相を調整することができ、スタッフ
が誤検出された場合でもNNI方式の規定に従ったデー
タを出力することができる。
As described above, by detecting a change in the stuff amount of input data in units of eight frames, the phase on the read side can be adjusted in response to a change in the position of valid data of the input data, that is, a change in phase. Thus, even if the stuff is erroneously detected, it is possible to output data according to the NNI standard.

【0072】[0072]

【発明の効果】この発明によれば、STMフレーム形式
の入力データの中の8フレーム当りの制御用データ部を
カウントし、このカウント値と所定のしきい値とを比較
して8フレーム当りのスタッフ量を検出し、このスタッ
フ量に対応してデータの読み出しの制御を8フレーム単
位で行うようにしているので、入力データの位相の変化
に合わせて出力データの位相を変化させることができ、
また入力データの異常時にも8フレーム単位でスタッフ
の誤検出が自動的にキャンセルされるため、NNI方式
の規定回数のスタッフすなわち4フレーム当り1回のス
タッフを越えるスタッフ制御が行われないようにでき、
NNI方式に従ったデータを出力することができる。
According to the present invention, the control data portion per 8 frames in the input data in the STM frame format is counted, and this count value is compared with a predetermined threshold value to compare the control data portion per 8 frames. Since the stuff amount is detected and the data reading control is performed in units of eight frames in accordance with the stuff amount, the phase of the output data can be changed in accordance with the change in the phase of the input data.
In addition, even when the input data is abnormal, the erroneous detection of the stuff is automatically canceled in units of eight frames, so that the stuff control exceeding the specified number of stuffs of the NNI system, that is, the stuff control exceeding one stuffing per four frames can be prevented. ,
Data according to the NNI method can be output.

【図面の簡単な説明】[Brief description of the drawings]

【図1】この発明の基本構成を示すブロック図である。FIG. 1 is a block diagram showing a basic configuration of the present invention.

【図2】この発明の一実施例の構成を示すブロック図で
ある。
FIG. 2 is a block diagram showing a configuration of an embodiment of the present invention.

【図3】この発明の一実施例におけるスタッフ無しの場
合のタイムタイチャートである。
FIG. 3 is a time tie chart in a case where there is no staff in one embodiment of the present invention.

【図4】この発明の一実施例におけるスタッフが発生し
ている場合のタイムチャートである。
FIG. 4 is a time chart when a staff is generated according to the embodiment of the present invention.

【図5】この発明の一実施例におけるスタッフ検出異常
の場合のタイムチャートである。
FIG. 5 is a time chart in the case of a staff detection abnormality in one embodiment of the present invention.

【図6】この発明の一実施例におけるスタッフ動作の説
明図である。
FIG. 6 is an explanatory diagram of a stuff operation in one embodiment of the present invention.

【図7】STMフレームのフォーマット構成の説明図で
ある。
FIG. 7 is an explanatory diagram of a format configuration of an STM frame.

【図8】時間軸上に展開したSTMフレームの構成説明
図である。
FIG. 8 is an explanatory diagram of a configuration of an STM frame developed on a time axis.

【図9】従来におけるシステム構成を示すブロック図で
ある。
FIG. 9 is a block diagram showing a conventional system configuration.

【図10】従来例における位相制御回路の構成ブロック
図である。
FIG. 10 is a configuration block diagram of a phase control circuit in a conventional example.

【図11】従来例におけるスタッフ無しの場合のタイム
チャートである。
FIG. 11 is a time chart when there is no staff in the conventional example.

【図12】従来例におけるスタッフが発生している場合
のタイムチャートである。
FIG. 12 is a time chart when a staff member occurs in the conventional example.

【図13】従来において、スタッフ検出が毎フレームこ
どに行われる場合のタイムチャートである。
FIG. 13 is a time chart in the case where stuff detection is performed for each frame in the related art.

【符号の説明】[Explanation of symbols]

1 情報記憶手段 2 書き込み制御手段 3 読み出し制御手段 4 クロック乗換え手段 5 オーバーヘッド(OH)計数手段 6 スタッフ制御手段 21 フレームメモリ 22 ペイロードカウンタ 23 フレームカウンタ 24 ビットバッファ 25 1/8分周回路 26 オーバーヘッド(OH)カウンタ 27 比較器 28 スタッフカウンタ 29 フレーム同期部 DESCRIPTION OF SYMBOLS 1 Information storage means 2 Write control means 3 Read control means 4 Clock transfer means 5 Overhead (OH) counting means 6 Stuff control means 21 Frame memory 22 Payload counter 23 Frame counter 24 Bit buffer 25 1/8 frequency divider 26 Overhead (OH) ) Counter 27 Comparator 28 Stuff counter 29 Frame synchronization unit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平5−30098(JP,A) 特開 平6−6331(JP,A) 特開 平1−293032(JP,A) 特開 平3−278734(JP,A) 特開 平4−220827(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04J 3/00 - 3/26 H04L 5/22 - 5/26 H04L 7/00 - 7/10 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-5-30098 (JP, A) JP-A-6-6331 (JP, A) JP-A 1-293032 (JP, A) JP-A-3-300 278734 (JP, A) JP-A-4-220827 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04J 3/00-3/26 H04L 5/22-5/26 H04L 7/00-7/10

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 送信装置から入力されたNNI方式によ
るSTMフレーム形式のデータの位相制御を行い、受信
装置へ前記データを出力する位相制御回路において、送
信装置から入力される伝送クロックに同期した前記入力
データを受信側クロックに同期するようにクロック乗換
えを行うクロック乗換手段(4)と、前記STMフレー
ム形式の有効データ部が記憶される情報記憶手段(1)
と、有効データ部が入力されていることを監視し、この
有効データ部が書き込まれる前記情報記憶手段(1)の
アドレスを生成し、生成されたアドレスに前記有効デー
タ部を順次書き込む制御を行う書込み制御手段(2)
と、前記STMフレーム形式の制御用データ部のバイト
数を8フレームの期間にわたってカウントした後、その
カウント値を出力するオーバーヘッド計数手段(5)
と、前記カウント値を所定のしきい値と比較することに
よって、受信装置へ伝送するデータの位相を制御するた
めの8フレーム当りのスタッフ量を検出するスタッフ制
御手段(6)と、前記スタッフ量に対応してデータを読
み出す位相を調整し、前記有効データ部を読み出す前記
情報記憶手段(1)のアドレスを生成し、生成されたア
ドレスに格納された有効データ部を順次読み出す制御を
行う読み出し制御部(3)とを備えたことを特徴とする
位相制御回路。
1. A phase control circuit for controlling the phase of STM frame data according to an NNI system input from a transmission device and outputting the data to a reception device, wherein the phase control circuit synchronizes with a transmission clock input from the transmission device. Clock changing means (4) for changing the clock so that the input data is synchronized with the clock on the receiving side, and information storage means (1) for storing the effective data portion in the STM frame format
Monitor that the valid data portion is input, generate an address of the information storage means (1) to which the valid data portion is written, and control to sequentially write the valid data portion to the generated address. Writing control means (2)
Overhead counting means for counting the number of bytes of the control data portion in the STM frame format over a period of eight frames and outputting the count value (5)
A stuff control means (6) for detecting a stuff amount per eight frames for controlling a phase of data transmitted to the receiving device by comparing the count value with a predetermined threshold value; A read control for adjusting a phase of reading data in accordance with the above, generating an address of the information storage means (1) for reading the valid data portion, and sequentially reading the valid data portion stored at the generated address. A phase control circuit, comprising:
JP18817493A 1993-07-29 1993-07-29 Phase control circuit Expired - Fee Related JP3230550B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18817493A JP3230550B2 (en) 1993-07-29 1993-07-29 Phase control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18817493A JP3230550B2 (en) 1993-07-29 1993-07-29 Phase control circuit

Publications (2)

Publication Number Publication Date
JPH0746213A JPH0746213A (en) 1995-02-14
JP3230550B2 true JP3230550B2 (en) 2001-11-19

Family

ID=16219060

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18817493A Expired - Fee Related JP3230550B2 (en) 1993-07-29 1993-07-29 Phase control circuit

Country Status (1)

Country Link
JP (1) JP3230550B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011101195A (en) * 2009-11-06 2011-05-19 Nec Engineering Ltd Transmission device and transmission system

Also Published As

Publication number Publication date
JPH0746213A (en) 1995-02-14

Similar Documents

Publication Publication Date Title
US4592072A (en) Decoder for self-clocking serial data communications
GB1566320A (en) Data transmission system
US5339307A (en) Data communication system with a local network interface
EP0459686A2 (en) Digital signal synchronization employing single elastic store
EP0486072A2 (en) Interface for serial data communications link
EP0430051B1 (en) Byte wide elasticity buffer
JP3230550B2 (en) Phase control circuit
US5179664A (en) Symbol-wide elasticity buffer with a read-only section and a read-write section
US5107495A (en) Frame synchronization system
EP0534030B1 (en) A frame transfer device for a fixed format frame transmission network
US5056119A (en) Adaptive frame resynchronizer apparatus
US6108352A (en) Circuit and method for synchronizing outputs of two simultaneously transmitting devices in a multiplexed communication system
JP4183535B2 (en) Optical signal transmission device for speed conversion processing of frame signal
JPH0621929A (en) Transmission apparatus and equalization circuit device
JP2003158511A (en) Detection circuit for out of clock synchronism and optical receiver employing the same
JPH09270779A (en) Data synchronization system
JP3027652B2 (en) Phase control circuit
JP2602738B2 (en) Output disconnection detection circuit
GB2292871A (en) Resynchronization of a data receiver
JP2954424B2 (en) Synchronous signal correction circuit
JP3010634B2 (en) Frame synchronous multiplex processing
JP2672737B2 (en) Control method of multi-frame synchronization circuit
JP2944420B2 (en) Transmission unit mismatch detection method and transmission unit mismatch detection device
JP3456009B2 (en) Communication method
JPS63214037A (en) Frame synchronizing system for pcm transmission

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010821

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

Free format text: PAYMENT UNTIL: 20080914

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080914

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090914

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees