JP2007067887A - Communications system, communication device, and line control method - Google Patents

Communications system, communication device, and line control method Download PDF

Info

Publication number
JP2007067887A
JP2007067887A JP2005252016A JP2005252016A JP2007067887A JP 2007067887 A JP2007067887 A JP 2007067887A JP 2005252016 A JP2005252016 A JP 2005252016A JP 2005252016 A JP2005252016 A JP 2005252016A JP 2007067887 A JP2007067887 A JP 2007067887A
Authority
JP
Japan
Prior art keywords
line
data
switching
control information
working
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.)
Withdrawn
Application number
JP2005252016A
Other languages
Japanese (ja)
Inventor
Tsutomu Nakamura
努 中村
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.)
NEC Saitama Ltd
Original Assignee
NEC Saitama 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 NEC Saitama Ltd filed Critical NEC Saitama Ltd
Priority to JP2005252016A priority Critical patent/JP2007067887A/en
Publication of JP2007067887A publication Critical patent/JP2007067887A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communications system capable of switching lines without producing data duplication or missing, even when transmitting asynchronous data. <P>SOLUTION: A higher-level device 1 inserts a control information, indicative of a switching timing into data for both of a working line of a switching source and a reserved line of a switching destination, when the status of transmitting data by the working line is switched to a status of transmitting data by the reserved line. A lower-level device 2 adjusts the timing so that the order of data is maintained, and switches from the working line to the reserved line, based on a position of the control information of the working line and the position of the control information of the reserved circuit inserted by the higher-level device 1. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、冗長を構成する複数の回線で装置間を接続する通信システムに関する。   The present invention relates to a communication system in which apparatuses are connected by a plurality of lines constituting redundancy.

従来、冗長を有する複数の回線で装置間を接続した通信システムが用いられている(例えば、特許文献1参照)。冗長構成には1:1冗長、N:1冗長などがある。   Conventionally, a communication system in which devices are connected by a plurality of redundant lines has been used (see, for example, Patent Document 1). Redundant configurations include 1: 1 redundancy and N: 1 redundancy.

N:1冗長は、N本の現用回線に対して1本の予備回線を備える構成である。障害の発生した現用回線で伝送されていたデータを予備回線に切り替えて伝送することにより、障害時にもデータ伝送を継続することができる。以下、この切り替えを「予備切り替え」という。   N: 1 redundancy is a configuration in which one protection line is provided for N working lines. By switching the data transmitted on the working line where the failure has occurred to the protection line and transmitting the data, data transmission can be continued even in the event of a failure. Hereinafter, this switching is referred to as “preliminary switching”.

N:1冗長では複数の現用回線が1つの予備回線を共有するので、他の現用回線で更に重大な障害が発生したときや、切り替えの原因となった現用回線の障害が復旧したときには、予備回線に切り替えていたデータを元の現用回線へ戻すことも考えられる。以下、この切り替えを「復旧切り替え」という。   In N: 1 redundancy, a plurality of working lines share one protection line. Therefore, when a more serious failure occurs in another working line or when the failure of the working line that caused the switching is recovered, It is also conceivable to return the data switched to the line to the original working line. Hereinafter, this switching is referred to as “recovery switching”.

また、一般に回線の切り替えでは、データを欠落させることなく無瞬断で切り替えを完了させることが望ましい。   Also, in general, in line switching, it is desirable to complete the switching without interruption without losing data.

図21は、N:1冗長回線を備えた従来の通信システムに用いられる中継装置の構成を示すブロック図である。この中継装置は前後両方の回線にN:1冗長を備える構成である。   FIG. 21 is a block diagram showing a configuration of a relay apparatus used in a conventional communication system having an N: 1 redundant line. This relay apparatus is configured to have N: 1 redundancy on both the front and rear lines.

図21を参照すると、中継装置は、切替部905、選択回路911〜91N、遅延回路921〜92N、主信号インタフェース931〜93N、バッファメモリ部941〜94N、位相調整部91S、遅延回路部92Y、主信号インタフェース部93Y、バッファメモリ部94Yを有している。   Referring to FIG. 21, the relay device includes a switching unit 905, selection circuits 911 to 91N, delay circuits 921 to 92N, main signal interfaces 931 to 93N, buffer memory units 941 to 94N, a phase adjustment unit 91S, a delay circuit unit 92Y, It has a main signal interface section 93Y and a buffer memory section 94Y.

現用系回線#1のデータは主信号として、遅延回路部921を経由して、また直接に選択回路部911に入力される。選択回路部911は、遅延回路部921を経由して入力したデータと、直接に入力したデータのいずれかを選択して出力する。通常、直接に入力したデータが選択される。選択回路部911からの主信号は主信号インタフェース931およびバッファメモリ部941を経由して切替部905に入力される。   The data of the working line # 1 is input as a main signal to the selection circuit unit 911 via the delay circuit unit 921 and directly. The selection circuit unit 911 selects and outputs either the data input via the delay circuit unit 921 or the directly input data. Usually, the directly input data is selected. A main signal from the selection circuit unit 911 is input to the switching unit 905 via the main signal interface 931 and the buffer memory unit 941.

バッファメモリ部941へのデータの書き込みは主信号インタフェース931からの書き込み制御信号で制御される。また、バッファメモリ部941からのデータの読み出しは主信号インタフェース931からの読み出し制御信号で制御される。主信号インタフェース931は、主信号の基準フレームから書き込み制御信号および読み出し制御信号を生成する。   Data writing to the buffer memory unit 941 is controlled by a write control signal from the main signal interface 931. Further, reading of data from the buffer memory unit 941 is controlled by a read control signal from the main signal interface 931. The main signal interface 931 generates a write control signal and a read control signal from the reference frame of the main signal.

同様に、現用系回線#Nのデータは主信号として、遅延回路部92Nを経由して、あるいは直接に選択回路部91Nに入力される。その主信号は、選択回路部91Nから主信号インタフェース93Nおよびバッファメモリ部94Nを経由して切替部905に入力される。   Similarly, the data on the working line #N is input as a main signal to the selection circuit unit 91N via the delay circuit unit 92N or directly. The main signal is input from the selection circuit unit 91N to the switching unit 905 via the main signal interface 93N and the buffer memory unit 94N.

また、予備系回線のデータは主信号として遅延回路部92Yに入力される。その主信号は、遅延回路部92Yから主信号インタフェース93Yおよびバッファメモリ部94Yを経由して切替部905に入力される。   In addition, the data on the standby system line is input to the delay circuit unit 92Y as a main signal. The main signal is input from the delay circuit unit 92Y to the switching unit 905 via the main signal interface 93Y and the buffer memory unit 94Y.

遅延回路部92Yは、本中継装置の前段(上位側)のいずれかの現用系回線を予備系回線に切り替える際に、位相調整部91Sからの指示に従って主信号のデータを遅延させる。   The delay circuit unit 92Y delays the data of the main signal in accordance with an instruction from the phase adjustment unit 91S when switching any of the working lines on the upstream side (upper side) of the relay apparatus to the protection line.

位相調整部91Sは、予備系回線に切り替えようとする現用系回線の主信号に合わせて予備系の主信号を遅延させることにより、予備系のバッファメモリ部94Yにおいて現用系と同一タイミングでの読み出しができるようにする。   The phase adjustment unit 91S delays the standby main signal in accordance with the main signal of the active line to be switched to the standby line, so that the standby buffer memory unit 94Y reads data at the same timing as the active line. To be able to.

バッファメモリ部94Yは、予備系回線に切り替えようとする現用系回線に対応する主信号インタフェースからの読み出し制御信号を用いることにより読み出しタイミングをその現用系のバッファメモリ部と一致させる。   The buffer memory unit 94Y uses the read control signal from the main signal interface corresponding to the active line to be switched to the protection line to match the read timing with that of the active buffer memory part.

切替部905は、本中継装置の上位側の各回線からの主信号のデータを所望の後段(下位側)の回線に出力する。   The switching unit 905 outputs the main signal data from each higher-order line of the relay apparatus to a desired subsequent (lower-order) line.

次に、一例として、上位側の現用系回線#1のデータを予備系回線に切り替えるときの動作について説明する。   Next, as an example, the operation when the data on the higher-side working line # 1 is switched to the protection line will be described.

通常の状態として、上位側の現用系回線#1からの主信号は選択回路部911および遅延回路921に入力される。選択回路部911は現用系主信号を遅延させるか否か選択するが、ここでは遅延させないものとする。そのため、現用系主信号は主信号インタフェース部931に直接入力される。主信号インタフェース部931に入力された現用系主信号は主信号インタフェース部931からの書き込み制御信号によってバッファメモリ部941に一時的に記憶される。   As a normal state, the main signal from the upper working system line # 1 is input to the selection circuit unit 911 and the delay circuit 921. The selection circuit unit 911 selects whether or not to delay the active main signal, but here it is not delayed. Therefore, the working main signal is directly input to the main signal interface unit 931. The working main signal input to the main signal interface unit 931 is temporarily stored in the buffer memory unit 941 by a write control signal from the main signal interface unit 931.

一方、予備系回線からの主信号は遅延回路部92Yに入力される。遅延回路部92Yは、切り替え対象となる現用系#1と同一タイミングで正常にバッファメモリ部94Yのデータを読み出すことができるように、位相調整部91Sからの制御により予備系回線からの主信号を遅延させる。   On the other hand, the main signal from the protection line is input to the delay circuit unit 92Y. The delay circuit unit 92Y receives the main signal from the standby system line under the control of the phase adjustment unit 91S so that the data in the buffer memory unit 94Y can be normally read out at the same timing as the active system # 1 to be switched. Delay.

遅延回路92Yにより遅延された予備系主信号は主信号インタフェース部93Yに入力される。主信号インタフェース部93Yは、入力された予備系主信号と共に書き込み制御信号をバッファメモリ部94Yに送り、予備系主信号のデータをバッファメモリ部94Yに一時的に記録する。   The standby main signal delayed by the delay circuit 92Y is input to the main signal interface unit 93Y. The main signal interface unit 93Y sends a write control signal to the buffer memory unit 94Y together with the input standby system main signal, and temporarily records the data of the standby system main signal in the buffer memory unit 94Y.

バッファメモリ部941、94Yの各々に記憶された現用系主信号と予備系主信号とは、現用系#1の主信号インタフェース部931にて基準フレームから生成された読み出し制御信号によって同一タイミングで読み出される。同一のタイミングでバッファメモリ部941、94Yから読み出された現用系主信号と予備系主信号との間に時間差は無くなる。そのため、切り替え部905は、現用系#1の主信号と予備系主信号との間の無瞬断での切り替えを行うことができる。   The active main signal and the standby main signal stored in each of the buffer memory units 941 and 94Y are read at the same timing by the read control signal generated from the reference frame by the main signal interface unit 931 of the active # 1. It is. There is no time difference between the active main signal and the standby main signal read from the buffer memory units 941 and 94Y at the same timing. Therefore, the switching unit 905 can perform switching without interruption between the main signal of the active system # 1 and the standby system main signal.

このような構成により、上位側の装置により現用系回線から予備系回線に切り替えて送信されたデータを下位側の装置にて無瞬断で切り替えて受信することを可能としている。
特開平4−266233号公報
With such a configuration, it is possible to switch and receive the data transmitted by switching the working line from the working line to the protection line by the upper apparatus without interruption in the lower apparatus.
JP-A-4-266233

しかし、従来の中継装置は、基準フレームから生成された読み出し制御信号で2つのバッファメモリ部の読み出しタイミングを一致させている。そのため、フレーム同期した連続信号を伝送する回線では有効であるが、遅延の変動する非同期のデータがフレーム内に伝送される回線では、データの重複または抜けのない無瞬断の切り替えを保証することができない。   However, the conventional relay apparatus matches the read timings of the two buffer memory units with the read control signal generated from the reference frame. Therefore, it is effective for lines that transmit frame-synchronized continuous signals, but for lines where asynchronous data with varying delays is transmitted within a frame, it is ensured that there is no data duplication or lossless switching. I can't.

本発明の目的は、非同期データを伝送する場合でもデータの重複または抜けを生じさせることなく回線の切り替えが可能な通信システム、通信装置、および回線制御方法を提供することである。   An object of the present invention is to provide a communication system, a communication apparatus, and a line control method capable of switching lines without causing duplication or omission of data even when asynchronous data is transmitted.

上記目的を達成するために、本発明の通信システムは、現用回線と予備回線からなる冗長構成を装置間の接続に用いた通信システムであって、
現用回線でデータを伝送している状態から予備回線へ切り替えるとき、切り替えタイミングを示す制御情報を切り替え元の現用回線と切り替え先の予備回線の双方のデータに挿入して送信する上位装置と、
上位装置から現用回線で送信されたデータと予備回線で送信されたデータのいずれも受信可能であり、上位装置により挿入された現用回線の制御情報の位置と上位装置により挿入された予備回線の制御情報の位置を元にデータの順序を維持するようにタイミングを調整して現用回線から予備回線へ切り替える下位装置とを有している。
In order to achieve the above object, a communication system of the present invention is a communication system using a redundant configuration consisting of a working line and a protection line for connection between devices,
When switching from a state in which data is transmitted on the working line to the protection line, a host device that inserts control information indicating switching timing into data of both the switching source working line and the switching destination protection line and transmits the control information;
It is possible to receive both data transmitted from the host device on the working line and data transmitted on the protection line, and the position of the control information of the working line inserted by the host device and the control of the protection line inserted by the host device. A subordinate device that adjusts the timing so as to maintain the data order based on the position of the information and switches from the working line to the protection line.

本発明によれば、回線切り替えを行う際、上位装置が切り替えのタイミングを示す制御情報を切り替え元と切り替え先の双方の回線のデータに挿入し、下位装置が切り替え元の回線からの制御情報と切り替え先の回線からの制御情報の挿入された位置を元に、切り替え元の回線のデータと切り替え先の回線のデータとのタイミングを調整して順序を復元するので、非同期データが伝送されていてもデータの重複または抜けを生じさせることなく回線の切り替えを行うことができる。また、本発明によれば、上位装置と下位装置は、制御情報の送受信に予備回線をも用いるので、現用回線が障害でデータを疎通できない状態となっても互いに制御のための情報を共有することができ、信頼性の高い回線切り替えを行うことができる。   According to the present invention, when line switching is performed, the upper apparatus inserts control information indicating the switching timing into the data of both the switching source and switching destination lines, and the lower apparatus transmits control information from the switching source line. As the order is restored by adjusting the timing of the data of the switching source line and the data of the switching destination line based on the position where the control information from the switching destination line is inserted, asynchronous data is transmitted. Also, line switching can be performed without causing duplication or omission of data. In addition, according to the present invention, since the higher-level device and the lower-level device also use the protection line for transmission and reception of control information, even if the working line becomes incapable of communicating data due to a failure, it shares information for control with each other. Therefore, highly reliable line switching can be performed.

また、上位装置は、現用回線の制御情報の前までのデータと、予備回線の制御情報の後のデータとが連続するように、現用回線のデータと予備回線のデータの対応する切り替え位置に制御情報をそれぞれ挿入し、
下位装置は、
現用回線からの制御情報が予備回線からの制御情報よりも先に届いた場合には、現用回線からの制御情報の前までで現用回線からのデータの取得を停止しておき、予備回線からの制御情報が届いたら予備回線からのデータの取得を開始し、
予備回線からの制御情報が現用回線からの制御情報よりも先に届いた場合には、予備回線の制御情報の後のデータを一時的に保持しておき、現用回線からの制御情報が届いたら、その制御情報の前までの現用回線からのデータの後に、保持しておいた予備回線のデータを接続することとしてもよい。
In addition, the host device controls the switching position corresponding to the data of the working line and the data of the protection line so that the data before the control information of the working line and the data after the control information of the protection line are continuous. Insert each information,
Subordinate device is
If the control information from the working line arrives before the control information from the protection line, the acquisition of data from the working line is stopped before the control information from the working line. When control information arrives, start acquiring data from the protection line,
If the control information from the protection line arrives before the control information from the working line, temporarily store the data after the protection information of the protection line and receive the control information from the working line. The data of the reserved line that has been held may be connected after the data from the working line before the control information.

また、前記上位装置は、前記現用回線の前記切り替え位置以降に前記制御情報を所定数連続して挿入し、
前記下位装置は、前記予備回線から前記制御情報を受信してから所定時間が経過しても前記現用回線から前記制御情報を受信できないとき、前記保持しておいたデータから始まる前記予備回線のデータに切り替えることとしてもよい。
In addition, the higher-order device inserts a predetermined number of the control information continuously after the switching position of the working line,
When the subordinate apparatus cannot receive the control information from the working line even after a predetermined time has elapsed since receiving the control information from the protection line, the data of the protection line starting from the stored data It is good also as switching to.

これによれば、制御情報の伝送が阻害される程に現用回線の品質が低下しても、制御情報の再送およびタイムアウトによる切り替えにより確実に切り替えを完了させることができる。   According to this, even if the quality of the working line is lowered to such an extent that the transmission of control information is hindered, the switching can be reliably completed by the retransmission of the control information and the switching due to timeout.

また、前記予備回線への切り替えが行われている状態から元の前記現用回線に戻すための切り替えにおいて、
前記上位装置は、切り替えタイミングを示す制御情報を切り替え元の前記予備回線と切り替え先の前記現用回線の双方のデータに挿入して送信し、
前記下位装置は、前記上位装置により挿入された前記現用回線の前記制御情報の位置と前記上位装置により挿入された前記予備回線の前記制御情報の位置を元にデータの順序を維持するようにタイミングを調整して前記予備回線から前記現用回線へ切り替えることとしてもよい。
In addition, in switching to return to the original working line from the state where switching to the protection line is performed,
The host device inserts control information indicating switching timing into data of both the protection line of the switching source and the working line of the switching destination, and transmits the data.
The subordinate apparatus performs timing so as to maintain the order of data based on the position of the control information of the working line inserted by the upper apparatus and the position of the control information of the protection line inserted by the upper apparatus. May be switched to switch from the protection line to the working line.

また、前記下位装置は、前記現用回線のエラーチェックを行っており、検出したエラーレベルに基づいて生成した、前記現用回線の切り替えを指示する制御情報を、前記予備回線を介して前記上位装置に送信し、
前記上位装置は、前記下位装置から前記制御情報を受信すると、該制御情報にて指示された現用回線の切り替えを開始することとしてもよい。
In addition, the lower-level device performs an error check on the working line, and sends control information for instructing switching of the working line, generated based on the detected error level, to the higher-level device via the protection line. Send
When the upper apparatus receives the control information from the lower apparatus, the upper apparatus may start switching of the working line instructed by the control information.

また、前記現用回線が複数で前記予備回線が1本であり、複数の前記現用回線と1本の前記予備回線でN:1冗長を構成しており、
前記下位装置は、複数の前記現用回線の各々のエラーチェックをしており、エラーレベルの最も高い現用回線を切り替え対象に選択することとしてもよい。
In addition, there are a plurality of working lines and one protection line, and the plurality of working lines and one protection line constitute N: 1 redundancy,
The lower-level device may check each of the plurality of working lines and select a working line having the highest error level as a switching target.

これによれば、下位装置は、複数の現用回線の障害を検出すると、最もエラーレベルの高い回線を選択し、その回線の切り替えを上位装置に指示するので、最もエラーレベルの高い現用回線を予備回線に切り替えることができ、現用回線の運用を可能な限りの維持をすることができる。   According to this, when detecting a failure in a plurality of working lines, the lower level apparatus selects the line with the highest error level and instructs the higher order apparatus to switch the line, so that the working line with the highest error level is reserved. It is possible to switch to the line and maintain the operation of the working line as much as possible.

また、前記下位装置は、いずれかの現用回線を前記予備回線に切り替えている状態で、該現用回線のエラーレベルよりレベルの高いエラーが他の現用回線に発生すると、前記予備回線に切り替えている前記現用回線を元に戻した後に、レベルの高いエラーの発生した前記現用回線を前記予備回線に切り替えることとしてもよい。   In addition, the lower-level device switches to the protection line when an error having a higher level than the error level of the working line occurs in a state where any of the working lines is switched to the protection line. After the working line is restored, the working line in which a high level error has occurred may be switched to the protection line.

これによれば、下位装置は、ある現用回線が予備切り替えしている状態で、エラーレベルのより高い障害が他の現用回線に発生すると、エラーレベルの高い障害が起きている現用回線を予備切り替えの対象とするので、最もエラーレベルの高い現用回線を予備切り替えすることができ、現用回線の運用を可能な限りの維持をすることができる。   According to this, when a failure with a higher error level occurs in another working line while a certain working line is in standby switching, the lower-level device performs standby switching for the working line in which a failure with a higher error level occurs. Therefore, the working line with the highest error level can be switched over, and the working line operation can be maintained as much as possible.

また、前記上位装置は、前記現用回線のエラーレベルを示す制御情報を疑似的に生成して該現用回線を介して前記下位装置に送信し、
前記下位装置は、前記エラーレベルを示す制御情報を前記現用回線から受信すると、該現用回線の切り替えを指示する制御情報を前記予備回線を介して前記上位装置に送信することとしてもよい。
In addition, the higher-level device pseudo-generates control information indicating the error level of the working line and transmits the control information to the lower-level device via the working line,
When the lower level device receives control information indicating the error level from the working line, the lower level device may transmit control information instructing switching of the working line to the higher level device via the protection line.

これによれば、下位装置は、自身の検出したエラー状態に基づく切り替えに加え、上位装置からの制御情報の入力による切り替えも起動することができるので、各装置に大掛かりな特別装備を追加することなく遠隔での切り替え制御の実行が可能である。   According to this, in addition to the switching based on the error state detected by the lower level device, the lower level device can also start switching based on the input of control information from the higher level device, so it is necessary to add large special equipment to each device. Remote switching control can be executed.

本発明によれば、回線切り替えを行う際、上位装置が切り替えのタイミングを示す制御情報を切り替え元と切り替え先の双方の回線のデータに挿入し、下位装置が切り替え元の回線からの制御情報と切り替え先の回線からの制御情報の挿入された位置を元に、切り替え元の回線のデータと切り替え先の回線のデータとのタイミングを調整して順序を復元するので、非同期データが伝送されていてもデータの重複または抜けを生じさせることなく回線の切り替えを行うことができる。   According to the present invention, when line switching is performed, the upper apparatus inserts control information indicating the switching timing into the data of both the switching source and switching destination lines, and the lower apparatus transmits control information from the switching source line. As the order is restored by adjusting the timing of the data of the switching source line and the data of the switching destination line based on the position where the control information from the switching destination line is inserted, asynchronous data is transmitted. Also, line switching can be performed without causing duplication or omission of data.

本発明を実施するための形態について図面を参照して詳細に説明する。   Embodiments for carrying out the present invention will be described in detail with reference to the drawings.

図1は、本実施形態による通信システムの概略構成を示すブロック図である。図1を参照すると、本通信システムは上位中継装置1と下位中継装置2を有している。上位中継装置1と下位中継装置2の間はN本の現用系の回線#1〜#Nと1本の予備回線で接続されている。これらの回線はN:1冗長を構成しており、現用系のいずれかの回線に障害が発生すると、その回線で伝送されていたデータは予備回線に切り替わる。現用回線と予備回線のデータはフレームに非同期に伝送されており、本実施形態ではパケットにより伝送されるものとする。   FIG. 1 is a block diagram showing a schematic configuration of a communication system according to the present embodiment. Referring to FIG. 1, the communication system includes an upper relay device 1 and a lower relay device 2. The upper relay apparatus 1 and the lower relay apparatus 2 are connected to N active lines # 1 to #N by one protection line. These lines constitute N: 1 redundancy, and when a failure occurs in any of the working lines, the data transmitted on the line is switched to the protection line. The data on the working line and the protection line are transmitted asynchronously to the frame, and in this embodiment, are transmitted by packets.

図2は、図1に示した上位中継装置および下位中継装置の構成を示すブロック図である。ここでは、上位中継装置1から下位中継装置2へ向かう方向のデータに関する構成が示されている。また、ここでは一例として現用系の回線は3本としてある。   FIG. 2 is a block diagram illustrating a configuration of the upper relay apparatus and the lower relay apparatus illustrated in FIG. Here, a configuration related to data in a direction from the higher-level relay device 1 to the lower-level relay device 2 is shown. Here, as an example, there are three active lines.

図2を参照すると、上位中継装置1は、出力切替部10〜12、選択機能部13、送信機能部14〜16、受信機能部17、および送信機能部18を有している。また、下位中継装置2は、受信機能部20〜23および送信機能部24を有している。   Referring to FIG. 2, the upper relay apparatus 1 includes output switching units 10 to 12, a selection function unit 13, transmission function units 14 to 16, a reception function unit 17, and a transmission function unit 18. In addition, the lower relay apparatus 2 includes reception function units 20 to 23 and a transmission function unit 24.

上位中継装置1の出力切替部10は、通常時には、上位側(図中の左側)の回線#0のデータを受信し、送信機能部14へ受信データを送る。通常時とは予備回線への切り替えが行われていない状態を指す。   The output switching unit 10 of the higher-level relay apparatus 1 receives data on the higher-order side (left side in the drawing) line # 0 and sends the received data to the transmission function unit 14 in a normal state. Normal time refers to a state where switching to the protection line is not performed.

また、出力切替部10は、受信機能部17から回線#0の「予備切り替え」を示す制御パケットを受けると、受信データの出力先を選択機能部13に切り替え、その制御パケットを先頭として受信データを選択切替部13に送る。また、それと同時に出力切替部10は送信機能部14へ受信データではなく、回線#0の「予備切り替え」を示す制御パケットを連続して送る。   When the output switching unit 10 receives a control packet indicating “preliminary switching” of the line # 0 from the reception function unit 17, the output switching unit 10 switches the output destination of the reception data to the selection function unit 13, and receives the control data as the head. Is sent to the selection switching unit 13. At the same time, the output switching unit 10 continuously sends a control packet indicating “preliminary switching” of the line # 0 to the transmission function unit 14 instead of the reception data.

送信機能部14は、出力切替部10からのデータあるいは制御パケットを回線#0を介して下位中継装置2に送信する。   The transmission function unit 14 transmits the data or control packet from the output switching unit 10 to the lower level relay apparatus 2 via the line # 0.

出力切替部11、12は、それぞれ回線#1、#2に対応し、上述した出力切替部10と同様に動作する。送信機能部15、16はそれぞれ回線#1、#2に対応し、上述した送信機能部14と同様に動作する。   The output switching units 11 and 12 correspond to the lines # 1 and # 2, respectively, and operate in the same manner as the output switching unit 10 described above. The transmission function units 15 and 16 correspond to the lines # 1 and # 2, respectively, and operate in the same manner as the transmission function unit 14 described above.

受信機能部17は、下位中継装置2から予備回線を介してデータを受信する。受信データに制御パケットがあれば、受信機能部17は、その制御パケットを出力切替部10〜12へ送信する。   The reception function unit 17 receives data from the lower relay apparatus 2 via the protection line. If there is a control packet in the received data, the reception function unit 17 transmits the control packet to the output switching units 10 to 12.

選択機能部13は、出力切替部10〜12のいずれかからのデータを選択して送信機能部18に送る。出力切替部10〜12からのデータの先頭には「予備切り替え」を示す制御パケットがあるので、選択機能部13は、その制御パケットを検出したときその回線を選択し、それ以降その回線のデータを送信機能部18に送ればよい。なお、他の制御パケットを検出しても、選択機能部13は切り替えを行わない。   The selection function unit 13 selects data from any of the output switching units 10 to 12 and sends it to the transmission function unit 18. Since there is a control packet indicating “preliminary switching” at the head of the data from the output switching units 10 to 12, the selection function unit 13 selects the line when detecting the control packet, and thereafter the data of the line May be sent to the transmission function unit 18. Even if another control packet is detected, the selection function unit 13 does not perform switching.

送信機能部18は、選択機能部13からのデータを予備回線を介して下位中継装置2に送信する。   The transmission function unit 18 transmits the data from the selection function unit 13 to the lower level relay apparatus 2 via the protection line.

下位中継装置2の受信機能部20は、上位中継装置1から上位側の回線#0を経由して受信したデータ、または予備回線を経由して受信機能部23で受信され、受信機能部23から送られてきたデータのいずれかを選択して下位側の回線#0へ出力する。通常時には、受信機能部20は、上位側の回線#0を経由して受信したデータを下位側の回線#0へ出力する。   The reception function unit 20 of the lower level relay apparatus 2 receives data received from the higher level relay apparatus 1 via the higher-order line # 0, or is received by the reception function part 23 via the protection line. One of the sent data is selected and output to the lower line # 0. At normal time, the reception function unit 20 outputs the data received via the upper line # 0 to the lower line # 0.

また、受信機能部20は、回線#0から受信したパケットに含まれているCRC符号(巡回冗長検査符号)によりデータエラーの有無を検査する。エラーを検出すると、「エラー状態」を示す制御パケットを生成し、送信機能部24に送る。   The reception function unit 20 also checks for the presence of a data error by using a CRC code (cyclic redundancy check code) included in the packet received from the line # 0. When an error is detected, a control packet indicating an “error state” is generated and sent to the transmission function unit 24.

また、受信機能部20は、予備回線の受信機能部23から回線#0の「予備切り替え」を示す制御パケットまたは「復旧切り替え」を示す制御パケットを受けると、その制御パケットの指示に応じて回線選択状態を切り替える。例えば、受信機能部23から回線#0の「予備切り替え」を示す制御パケットを受けると、受信機能部20は、予備回線の受信機能部23からのデータを下位側の回線#0に出力する。また、受信機能部23から回線#0の「復旧切り替え」を示す制御パケットを受けると、受信機能部20は、上位側の回線#0からのデータを下位側の回線#0に出力する。   When receiving the control packet indicating “standby switching” or the control packet indicating “recovery switching” of the line # 0 from the reception function unit 23 of the protection line, the reception function unit 20 receives the line according to the instruction of the control packet. Switch the selection state. For example, when receiving a control packet indicating “standby switching” of the line # 0 from the reception function unit 23, the reception function unit 20 outputs the data from the reception function unit 23 of the protection line to the lower line # 0. When receiving a control packet indicating “recovery switching” of the line # 0 from the reception function unit 23, the reception function unit 20 outputs the data from the higher-order line # 0 to the lower-order line # 0.

受信機能部21、22はそれぞれ回線#1、#2に対応し、上述した受信機能部20と同様に動作する。   The reception function units 21 and 22 correspond to the lines # 1 and # 2, respectively, and operate in the same manner as the reception function unit 20 described above.

受信機能部23は、上位中継装置1から予備回線を介してデータを受信し、受信機能部20〜22に送る。なお、その際、受信機能部23は、制御パケットだけでなく、受信した全てのデータを受信機能部20〜22に送る。   The reception function unit 23 receives data from the higher-level relay device 1 via the protection line and sends the data to the reception function units 20 to 22. At that time, the reception function unit 23 sends not only the control packet but also all received data to the reception function units 20 to 22.

送信機能部24は、受信機能部20〜22からの、「エラー状態」を示す制御パケットに基づき回線#0〜#2の各々の回線品質を求め、それら回線品質から予備回線に切り替えるべき回線を判断する。例えば、最もエラーレベルの高い(回線品質の低い)回線を切り替えることとすればよい。いずれかの回線を予備回線に切り替えるべきであると判断すれば、送信機能部24は、その回線の「予備切り替え」を示す制御パケットを生成し、予備回線を介して上位中継装置1に送信する。   The transmission function unit 24 obtains the line quality of each of the lines # 0 to # 2 based on the control packet indicating the “error state” from the reception function units 20 to 22, and determines the line to be switched from the line quality to the protection line. to decide. For example, the line with the highest error level (low line quality) may be switched. If it is determined that one of the lines should be switched to the protection line, the transmission function unit 24 generates a control packet indicating “protection switching” of the line, and transmits the control packet to the upper relay apparatus 1 via the protection line. .

また、送信機能部24は、予備切り替え中の回線以外の回線の回線品質が予備切り替え中の回線よりも劣化したことを検出すると、上位中継装置1に対して、予備切り替え中の回線の「復旧切り替え」を示す制御パケットを送信した後に、品質の劣化した回線の「予備切り替え」を示す制御パケットを送信する。   Further, when the transmission function unit 24 detects that the line quality of the lines other than the line under standby switching has deteriorated as compared with the line under standby switching, the transmission function unit 24 “restores” the line under standby switching to the upper relay apparatus 1. After transmitting a control packet indicating “switching”, a control packet indicating “preliminary switching” of a line with degraded quality is transmitted.

図3は、図2に示した上位中継装置1の出力切替部10と下位中継装置2の受信機能部20の構成を示すブロック図である。図3を参照すると、上位中継装置1の出力切替部10は出力制御部101およびフレーム検出部102を有している。下位中継装置2の受信機能部20はERR(エラー)検出部201、選択部202、およびフレーム生成部203を有している。   FIG. 3 is a block diagram illustrating the configuration of the output switching unit 10 of the higher-level relay device 1 and the reception function unit 20 of the lower-level relay device 2 illustrated in FIG. Referring to FIG. 3, the output switching unit 10 of the upper relay apparatus 1 includes an output control unit 101 and a frame detection unit 102. The reception function unit 20 of the lower level relay apparatus 2 includes an ERR (error) detection unit 201, a selection unit 202, and a frame generation unit 203.

フレーム検出部102は、受信機能部17から回線#0に関する制御パケットを受信すると、その制御パケットを出力制御部101に送る。   When the frame detection unit 102 receives a control packet related to the line # 0 from the reception function unit 17, the frame detection unit 102 sends the control packet to the output control unit 101.

出力制御部101は、通常時には、上位側の回線#0からのデータを送信機能部14へ送っている。しかし、フレーム検出部102から「予備切り替え」を示す制御パケットを受けると、出力制御部101は、上位側の回線#0からのデータに含まれるパケットの間に「予備切り替え」を示す制御パケットを挿入し、その制御パケット以降のデータを選択機能部13に送る。また、それと同時に、出力制御部101は、送信機能部14には、制御パケット以降のデータを送らず、「予備切り替え」を示す制御パケットを連続して送る。   The output control unit 101 normally sends data from the upper line # 0 to the transmission function unit 14. However, when receiving the control packet indicating “preliminary switching” from the frame detection unit 102, the output control unit 101 transmits a control packet indicating “preliminary switching” between the packets included in the data from the upper line # 0. The data after the control packet is sent to the selection function unit 13. At the same time, the output control unit 101 does not send data after the control packet to the transmission function unit 14 and continuously sends control packets indicating “preliminary switching”.

また、回線#0の予備切り替え中に、回線#0の「復旧切り替え」を示す制御パケットを受けると、出力制御部101は、上位側の回線#0からのデータに含まれるパケットの間に「復旧切り替え」を示す制御パケットを挿入し、その制御パケット以降のデータを送信機能部14へ送る。また、それと同時に、出力制御部101は、選択機能部13には、制御パケット以降のデータを送らず、「復旧切り替え」を示す制御パケットを1つだけ送る。   Further, when a control packet indicating “recovery switching” of the line # 0 is received during the preliminary switching of the line # 0, the output control unit 101 receives “in between packets included in the data from the upper line # 0”. A control packet indicating “recovery switching” is inserted, and data after the control packet is sent to the transmission function unit 14. At the same time, the output control unit 101 does not send data after the control packet to the selection function unit 13 but sends only one control packet indicating “recovery switching”.

下位中継装置2のERR検出部201は、上位中継装置1から回線#0を介して受信したデータのエラーをCRCにより検査する。そして、エラーを検出すると、ERR検出部201は、その旨をフレーム生成部203に通知する。また、ERR検出部203はCRCにより訂正可能なビット誤りを修復し、データを選択部202に転送する。   The ERR detection unit 201 of the lower relay apparatus 2 checks the error of the data received from the upper relay apparatus 1 via the line # 0 by CRC. When an error is detected, the ERR detection unit 201 notifies the frame generation unit 203 to that effect. Further, the ERR detection unit 203 repairs a bit error that can be corrected by CRC, and transfers the data to the selection unit 202.

フレーム生成部203は、ERR検出部201からの通知に基づきエラーレベルを求め、そのエラーレベルに応じて「エラー状態」を示す制御パケットを生成し、送信機能部24に送る。レラーレベルは、例えば、エラー検出回数の平均値を定期的に算出することにより求めることができる。   The frame generation unit 203 obtains an error level based on the notification from the ERR detection unit 201, generates a control packet indicating an “error state” according to the error level, and sends the control packet to the transmission function unit 24. The error level can be obtained, for example, by periodically calculating an average value of the number of error detections.

選択部202は、上位中継装置1から回線#0およびERR検出部201を経由して受信したデータ、または予備回線および受信機能部23を経由して受信したデータのいずれかを選択して出力する。その際、選択部202は、受信機能部23から回線#0の制御パケットを受けると、その制御パケットの内容に従って選択を行う。例えば、「予備切り替え」を示す制御パケットを受けると、選択部202は、予備回線および受信機能部23を経由したデータを選択する。また、「復旧切り替え」を示す制御パケットを受けると、選択部202は、回線#0およびERR検出部201を経由したデータを選択する。   The selection unit 202 selects and outputs either data received from the higher-level relay apparatus 1 via the line # 0 and the ERR detection unit 201 or data received via the protection line and the reception function unit 23. . At that time, when receiving a control packet of line # 0 from the reception function unit 23, the selection unit 202 performs selection according to the content of the control packet. For example, upon receiving a control packet indicating “standby switching”, the selection unit 202 selects data via the protection line and the reception function unit 23. When receiving the control packet indicating “recovery switching”, the selection unit 202 selects data via the line # 0 and the ERR detection unit 201.

「予備切り替え」時の選択部202の詳細な動作について説明する。   A detailed operation of the selection unit 202 at the “preliminary switching” will be described.

「予備切り替え」を示す制御パケットは、現用の回線#0と予備回線の双方から送られてくる。   A control packet indicating “standby switching” is sent from both the working line # 0 and the protection line.

回線#0およびERR検出部201を経由した「予備切り替え」を示す制御パケットが、予備回線および受信機能部23を経由した制御パケットよりも先に選択部202に到着したとき、選択部202は、ERR検出部201からの制御パケットを全て破棄し、受信機能部23から制御パケットを受けた後、その制御パケットを除いたデータを下位側の回線#0へ出力する。   When the control packet indicating “standby switching” via the line # 0 and the ERR detection unit 201 arrives at the selection unit 202 before the control packet via the protection line and the reception function unit 23, the selection unit 202 All control packets from the ERR detection unit 201 are discarded, and after receiving the control packet from the reception function unit 23, data excluding the control packet is output to the lower line # 0.

一方、予備回線および受信機能部23を経由した「予備切り替え」を示す制御パケットが、回線#0およびERR検出部201を経由した制御パケットよりも先に選択部202に到着したとき、選択部202は、受信機能部23からの制御パケットを除くそれ以降のデータを一時的に保持しておき、ERR検出部201からの制御パケットが到着した後に、保持しておいたデータを下位側の回線#0に出力する。   On the other hand, when the control packet indicating “standby switching” via the protection line and the reception function unit 23 arrives at the selection unit 202 prior to the control packet via the line # 0 and the ERR detection unit 201, the selection unit 202 Temporarily stores the data other than the control packet from the reception function unit 23, and stores the stored data after the arrival of the control packet from the ERR detection unit 201. Output to 0.

なお、選択部202は、受信機能部23から制御パケットを受信すると、そのパケットに記録されたタイムアウト時間のタイマーのカウントを開始する。ERR検出部201からの制御パケットが到着しない状態でタイマーがタイムアウトすると、選択部202は、一時的に保持しておいたデータを下位側の回線#0に出力し始める。   When the selection unit 202 receives a control packet from the reception function unit 23, the selection unit 202 starts counting a timer for a timeout time recorded in the packet. When the timer times out in a state where the control packet from the ERR detection unit 201 has not arrived, the selection unit 202 starts to output the temporarily held data to the line # 0 on the lower side.

「復旧切り替え」時の選択部202の詳細な動作について説明する。   A detailed operation of the selection unit 202 at the time of “recovery switching” will be described.

「復旧切り替え」を示す制御パケットも、現用の回線#0と予備回線の双方から送られてくる。   A control packet indicating “recovery switching” is also sent from both the working line # 0 and the protection line.

回線#0およびERR検出部201を経由した「復旧切り替え」を示す制御パケットが、予備回線および受信機能部23を経由した制御パケットよりも先に選択部202に到着したとき、選択部202は、その制御パケットを除いたデータを一時的に保持することで滞留させる。そして、受信機能部23からの制御パケットを受けた後、選択部202は、保持しておいたデータを下位側の回線#0に出力し始める。   When the control packet indicating “recovery switching” via the line # 0 and the ERR detection unit 201 arrives at the selection unit 202 prior to the control packet via the protection line and the reception function unit 23, the selection unit 202 The data excluding the control packet is retained by temporarily holding it. Then, after receiving the control packet from the reception function unit 23, the selection unit 202 starts to output the stored data to the lower line # 0.

一方、予備回線および受信機能部23を経由した「復旧切り替え」を示す制御パケットが、回線#0およびERR検出部201を経由した制御パケットよりも先に選択部202に到着したとき、選択部202は、ERR検出部201からの制御パケットを受けた後、その制御パケットを除くそれ以降のデータを下位側の回線#0に出力する。   On the other hand, when the control packet indicating “recovery switching” via the protection line and the reception function unit 23 arrives at the selection unit 202 prior to the control packet via the line # 0 and the ERR detection unit 201, the selection unit 202 After receiving the control packet from the ERR detector 201, the subsequent data excluding the control packet is output to the lower line # 0.

次に、本実施形態の通信システムにおいて、現用の回線#0で伝送するデータを予備回線へ切り替える際の動作について説明する。   Next, in the communication system according to the present embodiment, an operation for switching data transmitted on the working line # 0 to a protection line will be described.

図4は、本実施形態による通信システムにおける予備切り替え時の動作を示すフローチャートである。図4を参照すると、上位中継装置1と下位中継装置2の回線#0に障害が発生し、通信データにエラーが生じると(ステップA1)、下位中継装置2の受信機能部20内にあるERR検出部201がCRCによりエラーを検出する(ステップA2)。エラーを検出したERR検出部201はその旨をフレーム生成部203へ通知する。   FIG. 4 is a flowchart showing an operation at the time of preliminary switching in the communication system according to the present embodiment. Referring to FIG. 4, when a failure occurs in the line # 0 between the upper relay apparatus 1 and the lower relay apparatus 2 and an error occurs in communication data (step A1), the ERR in the reception function unit 20 of the lower relay apparatus 2 The detection unit 201 detects an error by CRC (step A2). The ERR detection unit 201 that has detected the error notifies the frame generation unit 203 to that effect.

通知を受けたフレーム生成部203は、「エラー状態」を示す制御パケットを生成し(ステップA3)、送信機能部24へ送る。   Receiving the notification, the frame generation unit 203 generates a control packet indicating an “error state” (step A3) and sends it to the transmission function unit 24.

図5は、本実施形態における制御パケットの実装例を示す図である。図5を参照すると、制御パケットには、宛先情報を含むヘッダ情報部301、有意情報を含むペイロード情報部302、およびエラー検出/訂正のためのCRC情報部303がある。   FIG. 5 is a diagram illustrating an implementation example of the control packet in the present embodiment. Referring to FIG. 5, the control packet includes a header information part 301 including destination information, a payload information part 302 including significant information, and a CRC information part 303 for error detection / correction.

ヘッダ情報部301にはパケットの種別を示す識別ビットがある。識別ビットは、“0”で転送パケットを示し、“1”で制御パケットを示す。   The header information portion 301 has an identification bit indicating the type of packet. In the identification bit, “0” indicates a transfer packet, and “1” indicates a control packet.

また、ペイロード情報部302には、回線番号を示す回線番号ビットや制御パケットの種別を示す種別ビットの他に情報ビット304がある。回線番号ビットは、“00”で回線#0を示し、“01”で回線#1を示し、“10”で回線#2を示す。種別ビットは、“01”で予備切り替えを示し、“10”で復旧切り替えを示し、“00”でエラー状態等の通知を示す。フレーム生成部203が生成する、回線#0の「エラー状態」を示す制御パケットは、識別ビットが“1”、回線番号が“00”、種別ビットが“00”となる。また、情報ビット304には、図6のように「エラーレベル」を示す情報が格納される。エラーレベルはエラー検出数の平均値を示し、例えば、1秒間当たりのCRCエラー検出数である。   The payload information section 302 includes an information bit 304 in addition to a line number bit indicating a line number and a type bit indicating the type of a control packet. In the line number bit, “00” indicates the line # 0, “01” indicates the line # 1, and “10” indicates the line # 2. In the type bit, “01” indicates preliminary switching, “10” indicates recovery switching, and “00” indicates notification of an error state or the like. The control packet indicating the “error state” of the line # 0 generated by the frame generation unit 203 has the identification bit “1”, the line number “00”, and the type bit “00”. The information bit 304 stores information indicating “error level” as shown in FIG. The error level indicates an average value of the number of error detections, and is, for example, the number of CRC error detections per second.

図4の説明に戻り、送信機能部24は、他の回線#1〜#2とエラーレベルを比較し、回線#0の予備切り替えが必要か否か判定する(ステップA4)。予備切り替えが不要であれば、ステップA2の処理に戻る。   Returning to the description of FIG. 4, the transmission function unit 24 compares the error level with the other lines # 1 to # 2 and determines whether or not the preliminary switching of the line # 0 is necessary (step A4). If preliminary switching is not necessary, the process returns to step A2.

予備切り替えが必要と判断すると、送信機能部24は、回線#0の「予備切り替え」を示す制御パケットを生成し(ステップA5)、予備回線を介して上位中継装置1に送信する。回線#0の「予備切り替え」を示す制御パケットは、図5において、識別ビット“1”、回線番号ビットが“00”、種別ビットが“01”となる。また、情報ビット304には、図7のように「タイムアウト時間」を示す情報が格納される。タイムアウト時間は、後述する選択部202の切り替え動作において待ち時間の最大値となる。   If it is determined that the standby switching is necessary, the transmission function unit 24 generates a control packet indicating “standby switching” of the line # 0 (step A5), and transmits the control packet to the higher-level relay apparatus 1 via the backup line. The control packet indicating “preliminary switching” of the line # 0 has the identification bit “1”, the line number bit “00”, and the type bit “01” in FIG. The information bit 304 stores information indicating “time-out time” as shown in FIG. The timeout time is the maximum value of the waiting time in the switching operation of the selection unit 202 described later.

上位中継装置1の受信機能部17は制御パケットを受信すると、その制御パケットを出力切替部10〜12へ転送する(ステップA6)。回線#1の出力切替部11と回線#2の出力切替部12は、回線番号ビットが自身の回線番号と一致しないため、この制御パケットを無視する。   When receiving the control packet, the reception function unit 17 of the higher-level relay apparatus 1 transfers the control packet to the output switching units 10 to 12 (step A6). The output switching unit 11 of the line # 1 and the output switching unit 12 of the line # 2 ignore this control packet because the line number bits do not match their own line numbers.

出力切替部10内のフレーム検出部102は、回線#0の「予備切り替え」を示す制御パケットを検出すると(ステップA7)、その制御パケットを出力制御部101へ送る。回線#0の「予備切り替え」を示す制御パケットを受けた出力制御部101は、所定の予備切り替え動作を行う。   When the frame detection unit 102 in the output switching unit 10 detects a control packet indicating “preliminary switching” of the line # 0 (step A7), the frame detection unit 102 sends the control packet to the output control unit 101. The output control unit 101 that has received the control packet indicating “standby switching” of the line # 0 performs a predetermined standby switching operation.

図8は、予備切り替え動作について説明するための図である。図8を参照すると、上から、出力制御部101へ入力される回線#0のデータ、出力制御部101から選択機能部13に送られるデータ、出力制御部101から送信機能部14に送られるデータが示されている。   FIG. 8 is a diagram for explaining the preliminary switching operation. Referring to FIG. 8, from the top, data of line # 0 input to output control unit 101, data sent from output control unit 101 to selection function unit 13, and data sent from output control unit 101 to transmission function unit 14 It is shown.

出力制御部101は、上位側の回線#0からのデータを送信機能部14へ出力していたが、回線#0の「予備切り替え」を示す制御パケットを受けると、それ以降のデータを選択機能部13に送るようになる。図8では、データ401までは送信機能部14に送られ、データ402以降は選択機能部13に送られている。その際、出力制御部101は、選択機能部13に対しては、データ402の前に、回線#0の「予備切り替え」を示す制御パケット405を挿入し、送信機能部14に対しては、データ401の後に、回線#0の「予備切り替え」を示す制御パケットを連続送信する。   The output control unit 101 outputs data from the higher-order line # 0 to the transmission function unit 14, but when it receives a control packet indicating "preliminary switching" on the line # 0, it selects the subsequent data. Part 13 will be sent. In FIG. 8, data 401 is sent to the transmission function unit 14, and data 402 and later are sent to the selection function unit 13. At that time, the output control unit 101 inserts a control packet 405 indicating “preliminary switching” of the line # 0 before the data 402 for the selection function unit 13, and for the transmission function unit 14, After the data 401, a control packet indicating “preliminary switching” of the line # 0 is continuously transmitted.

図4の説明に戻り、選択機能部13は、出力制御部101から回線#0の「予備切り替え」を示す制御パケット(図8の制御パケット405)を受けると、回線#0の出力制御部101からの制御パケット405およびそれ以降のデータを選択して送信機能部18に送る(ステップA9)。送信機能部18は、選択機能部13からのデータを予備回線へ出力する。   Returning to the description of FIG. 4, when the selection function unit 13 receives a control packet (control packet 405 in FIG. 8) indicating “preliminary switching” of the line # 0 from the output control unit 101, the output control unit 101 of the line # 0. The control packet 405 and the subsequent data are selected and sent to the transmission function unit 18 (step A9). The transmission function unit 18 outputs the data from the selection function unit 13 to the protection line.

以上のようにして上位中継装置1の切り替えが行われる。以下、下位中継装置2の切り替え動作について説明する。   As described above, switching of the upper relay apparatus 1 is performed. Hereinafter, the switching operation of the lower relay apparatus 2 will be described.

図8の送信機能部14に送られたデータは回線#0を経由して下位中継装置2に送られ、下位中継装置2においてERR検出部201を経由して選択部202に到達する。また、図8の選択信機能部13に送られたデータは送信機能部18から予備回線を経由して下位中継装置2に送られ、下位中継装置2において受信機能部23を経由して選択部202に到達する。どちらの制御パケットが先に到達するかにより下位中継装置2の切り替え動作が異なる。   The data sent to the transmission function unit 14 in FIG. 8 is sent to the lower level relay device 2 via the line # 0, and reaches the selection unit 202 via the ERR detection unit 201 in the lower level relay device 2. Also, the data sent to the selection signal function unit 13 in FIG. 8 is sent from the transmission function unit 18 to the lower level relay device 2 via the protection line, and in the lower level relay device 2 via the reception function unit 23, the selection unit. 202 is reached. The switching operation of the lower relay apparatus 2 differs depending on which control packet arrives first.

図9は、回線#0の制御パケットが先に到達した場合の下位中継装置の予備切り替え動作を示すフローチャートである。図10は、回線#0の制御パケットが先に到達した場合の下位中継装置の復旧切り替え動作を説明するための図である。   FIG. 9 is a flowchart showing the preliminary switching operation of the lower level relay apparatus when the control packet on line # 0 arrives first. FIG. 10 is a diagram for explaining the recovery switching operation of the lower relay apparatus when the control packet on line # 0 arrives first.

図9を参照すると、選択部202は回線#0から制御パケット406を受信すると、データ401を境に回線#0からのデータの転送を停止する(ステップB1)。それ以降も回線#0からは制御パケットが入力されるが、選択部202は、それらを下位側に転送しない。図10を参照すると、上から、選択部202が回線#0を経由して受信したデータ、選択部202が予備回線を経由して受信したデータ、選択部202が下位側に転送するデータが示されている。回線#0からのデータ401は下位側に転送されるが、制御パケット406以降は転送されない。   Referring to FIG. 9, upon receiving control packet 406 from line # 0, selection unit 202 stops transferring data from line # 0 with data 401 as a boundary (step B1). Thereafter, control packets are input from the line # 0, but the selection unit 202 does not transfer them to the lower side. Referring to FIG. 10, from the top, data received by the selection unit 202 via line # 0, data received by the selection unit 202 via the protection line, and data transferred to the lower side by the selection unit 202 are shown. Has been. Data 401 from line # 0 is transferred to the lower side, but is not transferred after control packet 406.

図9に戻り、次に、選択部202は、予備回線から制御パケット405を受信すると、それ以降、データ402を先頭に予備回線からのデータを下位側に転送し始める(ステップB2)。図10を参照すると、予備回線を経由して受信された制御パケット405に続くデータ402、403は下位側に転送される。これにより下位中継装置2の予備切り替え動作が完了する(ステップB3)。   Returning to FIG. 9, next, when receiving the control packet 405 from the protection line, the selection unit 202 starts to transfer data from the protection line to the lower side with the data 402 as the head (step B2). Referring to FIG. 10, data 402 and 403 following the control packet 405 received via the protection line are transferred to the lower side. Thereby, the preliminary switching operation of the lower relay apparatus 2 is completed (step B3).

図11は、予備回線の制御パケットが先に到達した場合の下位中継装置の予備切り替え動作を示すフローチャートである。図12は、予備回線の制御パケットが先に到達した場合の下位中継装置の予備切り替え動作を説明するための図である。   FIG. 11 is a flowchart showing the standby switching operation of the lower level relay apparatus when the control packet of the backup line arrives first. FIG. 12 is a diagram for explaining the standby switching operation of the lower level relay apparatus when the control packet for the backup line arrives first.

図11を参照すると、選択部202は、予備回線から制御パケット405を受信すると、それ以降のデータ402〜404を一時的に保持しつつ、タイマーのカウントを開始する(ステップC1)。図12を参照すると、上から、選択部202が回線#0を経由して受信したデータ、選択部202が予備回線を経由して受信したデータ、選択部202が下位側に転送するデータが示されている。制御パケット405が制御パケット406よりも先に到達しているので、選択部202は、データ402〜404を一時的に保持しておく。   Referring to FIG. 11, when receiving the control packet 405 from the protection line, the selection unit 202 starts counting the timer while temporarily holding the subsequent data 402 to 404 (step C1). Referring to FIG. 12, from the top, data received by the selection unit 202 via line # 0, data received by the selection unit 202 via the protection line, and data transferred to the lower side by the selection unit 202 are shown. Has been. Since the control packet 405 has arrived before the control packet 406, the selection unit 202 temporarily holds the data 402 to 404.

次に、選択部202は、回線#0から制御パケットが受信されたか否か判定する(ステップC2)。回線#0から制御パケット406が受信されれば、選択部202は、回線#0からのデータの転送を停止し、保持しておいた予備回線からのデータ402〜404を下位側に転送し始め(ステップC3)、予備切り替えを完了する(ステップC4)。   Next, the selection unit 202 determines whether or not a control packet has been received from the line # 0 (step C2). When the control packet 406 is received from the line # 0, the selection unit 202 stops transferring the data from the line # 0 and starts to transfer the data 402 to 404 from the reserved line that has been held to the lower side. (Step C3), the preliminary switching is completed (Step C4).

ステップC2において、回線#0からの制御パケット406が受信されなければ、選択部202は、次に、タイマーがタイムアウトしているか否か判定する(ステップC5)。回線#0のエラーが増大した場合、制御パケット406が正常に伝送されず欠落することが考えられる。それでも確実に切り替えを完了させるために、上位中継装置1の出力制御部101は同じ制御パケットを連続送信し、また下位中継装置2はタイマーによる判定を行っている。   If the control packet 406 from line # 0 is not received in step C2, the selection unit 202 next determines whether or not the timer has timed out (step C5). When the error of the line # 0 increases, it is considered that the control packet 406 is not transmitted normally and is lost. Even so, in order to reliably complete the switching, the output control unit 101 of the higher-level relay device 1 continuously transmits the same control packet, and the lower-level relay device 2 performs determination by a timer.

タイマーがタイムアウトしていれば、選択部202は、回線#0からのデータの転送を停止し、保持しておいた予備回線からのデータ402〜404を下位側に転送し始め(ステップC6)、予備切り替えを完了する(ステップC4)。ステップC5においてタイマーがタイムアウトしていなければ、選択部202はステップC2の処理に戻る。なお、回線#1の受信機能部21と回線#2の受信機能部22も制御パケット405を受信するが、回線番号ビットが自身の回線番号と一致しないため無視する。   If the timer has timed out, the selection unit 202 stops transferring the data from the line # 0 and starts transferring the data 402 to 404 from the reserved protection line to the lower side (step C6), The preliminary switching is completed (step C4). If the timer has not timed out in step C5, the selection unit 202 returns to the process of step C2. The reception function unit 21 of the line # 1 and the reception function unit 22 of the line # 2 also receive the control packet 405, but ignore it because the line number bit does not match their own line number.

次に、本実施形態の通信システムにおいて、回線#0が予備回線に切り替えられている状態で、回線#1のエラーレベルが回線#0よりも高くなったときの動作について説明する。その場合、本実施形態の通信システムは、回線#0の復旧切り替えを行った後に、回線#1の予備切り替えを行う。   Next, in the communication system of this embodiment, an operation when the error level of the line # 1 becomes higher than the line # 0 in a state where the line # 0 is switched to the protection line will be described. In that case, the communication system of the present embodiment performs preliminary switching of line # 1 after performing recovery switching of line # 0.

図13は、本実施形態による通信システムにおける予備切り替え対象の回線を変更する時の動作を示すフローチャートである。初期の状態として、回線#0を予備回線へ切り替えて運用中であるとする(ステップD1)。その状態で、上位中継装置1と下位中継装置2の間の回線#1に障害が発生してデータがエラーすると、下位中継装置2の受信機能部21はCRCによりそのエラーを検出する(ステップD2)。   FIG. 13 is a flowchart showing an operation when changing a line to be switched for standby in the communication system according to the present embodiment. As an initial state, it is assumed that line # 0 is switched to a protection line and is in operation (step D1). In this state, when a failure occurs in the line # 1 between the higher-level relay device 1 and the lower-level relay device 2 and the data has an error, the reception function unit 21 of the lower-level relay device 2 detects the error by CRC (Step D2). ).

受信機能部21は、回線#1の「エラー状態」を示す制御パケットを生成し、それによりエラーレベルを送信機能部24へ通知する(ステップD3)。   The reception function unit 21 generates a control packet indicating the “error state” of the line # 1, thereby notifying the transmission function unit 24 of the error level (step D3).

制御パケットを受けた送信機能部24は、回線#0のエラーレベルと回線#1のエラーレベルを比較し、予備回線への切り替え対象を回線#1に変更するか否か判定する(ステップD4)。回線#0を予備切り替えしたままでよければステップD2の処理に戻る。   Upon receiving the control packet, the transmission function unit 24 compares the error level of the line # 0 and the error level of the line # 1, and determines whether or not to change the switch target to the protection line to the line # 1 (step D4). . If it is okay to keep the line # 0 preliminarily switched, the process returns to step D2.

回線#1のエラーレベルが回線#0よりも高ければ、送信機能部24は、切り替え対象を変更すると判断し、回線#0の「復旧切り替え」を示す制御パケットを送出し、その後回線#1の「予備切り替え」を示す制御パケットを送出する(ステップD5)。   If the error level of the line # 1 is higher than that of the line # 0, the transmission function unit 24 determines to change the switching target, sends a control packet indicating “recovery switching” of the line # 0, and then the line # 1. A control packet indicating “preliminary switching” is transmitted (step D5).

上位中継装置1の受信機能部17は、予備回線を経由して受信した制御パケットを出力切替部10のフレーム検出部102に転送する(ステップD6)。   The reception function unit 17 of the higher-level relay apparatus 1 transfers the control packet received via the protection line to the frame detection unit 102 of the output switching unit 10 (step D6).

予備回線を経由して、回線#0の「復旧切り替え」を示す制御パケットを受けた出力切替部10は、回線#0の復旧切り替えの動作を行う(ステップD7)。また、予備回線を経由して、回線#1の「予備切り替え」を示す制御パケットを受けた出力切替部11は、回線#1の予備切り替えの動作を行う(ステップD8)。   Upon receiving the control packet indicating the “recovery switching” of the line # 0 via the protection line, the output switching unit 10 performs the recovery switching operation of the line # 0 (step D7). Further, the output switching unit 11 that has received the control packet indicating “standby switching” of the line # 1 via the protection line performs the operation of the protection switching of the line # 1 (step D8).

図14は、図13の動作において制御パケットを受信した回線#0の出力切替部と回線#1の出力切替部の動作を説明するための図である。図14を参照すると、上から、回線#0から出力切替部10に入力されるデータ、出力切替部10から選択機能部13に送られるデータ、出力切替部10から送信機能部14に送られるデータ、回線#1から出力切替部11に入力されるデータ、出力切替部11から選択機能部13に送られるデータ、出力切替部11から送信機能部15に送られるデータ、選択機能部13から送信機能部18に送られるデータが示されている。   FIG. 14 is a diagram for explaining the operations of the output switching unit of line # 0 and the output switching unit of line # 1 that have received a control packet in the operation of FIG. Referring to FIG. 14, data input from line # 0 to output switching unit 10, data sent from output switching unit 10 to selection function unit 13, and data sent from output switching unit 10 to transmission function unit 14 from above. , Data input from the line # 1 to the output switching unit 11, data sent from the output switching unit 11 to the selection function unit 13, data sent from the output switching unit 11 to the transmission function unit 15, and transmission function from the selection function unit 13 Data sent to the unit 18 is shown.

出力切替部10は、回線#0の「復旧切り替え」を示す制御パケットを受信機能部17から受けると、選択機能部13に対して、データ501の後に「復旧切り替え」を示す制御パケット505を送出してデータの送出を停止する。また、出力切替部10は、送信機能部14に対して、「復旧切り替え」を示す制御パケット506を送出し、その後から回線#0のデータ502〜504を転送し始める。   When the output switching unit 10 receives a control packet indicating “recovery switching” on the line # 0 from the reception function unit 17, the output switching unit 10 transmits a control packet 505 indicating “recovery switching” after the data 501 to the selection function unit 13. To stop sending data. Further, the output switching unit 10 sends a control packet 506 indicating “recovery switching” to the transmission function unit 14, and thereafter starts to transfer the data 502 to 504 of the line # 0.

出力切替部11は、回線#1の「予備切り替え」を示す制御パケットを受信機能部17から受けると、選択機能部13に対して、「予備切り替え」を示す制御パケット605を送出し、その後から回線#1のデータ603〜604を転送し始める。また、出力切替部11は、送信機能部15に対して、データ602の後に「予備切り替え」を示す制御パケット606を1つ送出する。   When the output switching unit 11 receives a control packet indicating “preliminary switching” of the line # 1 from the reception function unit 17, the output switching unit 11 transmits a control packet 605 indicating “preliminary switching” to the selection function unit 13. Transfer of data 603 to 604 of line # 1 is started. Further, the output switching unit 11 sends one control packet 606 indicating “preliminary switching” after the data 602 to the transmission function unit 15.

これらの動作の結果、選択機能部13は、回線#0からのデータについてはデータ501で転送を停止し、回線#1のデータについてデータ603から転送を開始することとなる(ステップD9)。   As a result of these operations, the selection function unit 13 stops transferring the data from the line # 0 at the data 501 and starts transferring the data from the line # 1 from the data 603 (step D9).

下位中継装置2の回線#1における受信機能部21の予備切り替え動作は、図9および図11に示したフローチャートと同じである。   The standby switching operation of the reception function unit 21 in the line # 1 of the lower level relay apparatus 2 is the same as the flowcharts shown in FIGS.

一方、図14の送信機能部14に送られたデータは回線#0を経由して下位中継装置2に送られ、下位中継装置2において選択部202に到達する。また、図14の選択信機能部13に送られたデータは送信機能部18から予備回線を経由して下位中継装置2に送られ、下位中継装置2において受信機能部23を経由して選択部202に到達する。どちらの制御パケットが先に到達するかにより下位中継装置2の復旧切り替え動作が異なる。   On the other hand, the data sent to the transmission function unit 14 in FIG. 14 is sent to the lower level relay device 2 via the line # 0, and reaches the selection unit 202 in the lower level relay device 2. Further, the data sent to the selection signal function unit 13 of FIG. 14 is sent from the transmission function unit 18 to the lower level relay device 2 via the protection line, and in the lower level relay device 2 via the reception function unit 23, the selection unit. 202 is reached. The restoration switching operation of the lower level relay apparatus 2 differs depending on which control packet arrives first.

図15は、回線#0の制御パケットが先に到達した場合の下位中継装置の復旧切り替え動作を示すフローチャートである。図16は、回線#0の制御パケットが先に到達した場合の下位中継装置の復旧切り替え動作を説明するための図である。   FIG. 15 is a flowchart showing the recovery switching operation of the lower level relay apparatus when the control packet on line # 0 arrives first. FIG. 16 is a diagram for explaining the recovery switching operation of the lower relay apparatus when the control packet on line # 0 arrives first.

図15を参照すると、選択部202は回線#0から制御パケット506を受信すると、データ502以降のデータを一時的に保持することで滞留させる(ステップE1)。図16を参照すると、上から、選択部202が予備回線を経由して受信したデータ、選択部202が回線#0を経由して受信したデータ、選択部202が下位側に転送するデータが示されている。制御パケット506を受信した以降のデータ502〜504はすぐには下流側に転送されていない。   Referring to FIG. 15, upon receiving control packet 506 from line # 0, selection unit 202 temporarily retains data after data 502 (step E1). Referring to FIG. 16, from the top, data received by the selection unit 202 via the protection line, data received by the selection unit 202 via the line # 0, and data transferred by the selection unit 202 to the lower side are shown. Has been. Data 502 to 504 after receiving the control packet 506 is not immediately transferred to the downstream side.

図15に戻り、次に、選択部202は、予備回線から制御パケット505を受信すると、それ以降の予備回線からのデータの転送を停止し、保持しておいたデータ502〜504から回線#0のデータを下位側に転送し始める(ステップE2)。図16を参照すると、制御パケット505の受信により予備回線のデータの転送がデータ501で停止し、その後は回線#1からのデータ502〜504が転送されている。これにより下位中継装置2の復旧切り替え動作が完了する(ステップE3)。   Returning to FIG. 15, next, when the selection unit 202 receives the control packet 505 from the protection line, the selection unit 202 stops the transfer of data from the protection line thereafter and the line # 0 from the stored data 502 to 504. Starts to be transferred to the lower side (step E2). Referring to FIG. 16, the transfer of the protection line data is stopped at the data 501 by the reception of the control packet 505, and thereafter, the data 502 to 504 from the line # 1 are transferred. Thereby, the restoration switching operation of the lower relay apparatus 2 is completed (step E3).

図17は、予備回線の制御パケットが先に到達した場合の下位中継装置の復旧切り替え動作を示すフローチャートである。図18は、予備回線の制御パケットが先に到達した場合の下位中継装置の復旧切り替え動作を説明するための図である。   FIG. 17 is a flowchart showing the recovery switching operation of the lower relay apparatus when the control packet for the protection line arrives first. FIG. 18 is a diagram for explaining the recovery switching operation of the lower relay apparatus when the protection packet for the protection line arrives first.

図17を参照すると、選択部202は、予備回線から制御パケット505を受信すると、それ以降のデータの転送を停止し、タイマーのカウントを開始する(ステップF1)。図18を参照すると、上から、選択部202が予備回線を経由して受信したデータ、選択部202が回線#1を経由して受信したデータ、選択部202が下位側に転送するデータが示されている。制御パケット505が制御パケット506よりも先に到達しているので、選択部202は、予備回線からのデータの転送を停止している。   Referring to FIG. 17, when receiving the control packet 505 from the protection line, the selection unit 202 stops the subsequent data transfer and starts counting the timer (step F1). Referring to FIG. 18, from the top, data received by the selection unit 202 via the protection line, data received by the selection unit 202 via the line # 1, and data transferred to the lower side by the selection unit 202 are shown. Has been. Since the control packet 505 arrives before the control packet 506, the selection unit 202 stops transferring data from the protection line.

次に、選択部202は、回線#0から制御パケットが受信されたか否か判定する(ステップF2)。回線#0から制御パケット506が受信されれば、選択部202は、回線か#1らのデータ502〜503を下位側に転送し始め(ステップF3)、予備切り替えを完了する(ステップF4)。   Next, the selection unit 202 determines whether or not a control packet has been received from the line # 0 (step F2). If the control packet 506 is received from the line # 0, the selection unit 202 starts to transfer the data 502 to 503 from the line # 1 to the lower side (step F3) and completes the preliminary switching (step F4).

ステップF2において、回線#0からの制御パケット506が受信されなければ、選択部202は、次に、タイマーがタイムアウトしているか否か判定する(ステップF5)。   If the control packet 506 from the line # 0 is not received in step F2, the selection unit 202 next determines whether or not the timer has timed out (step F5).

タイマーがタイムアウトしていれば、選択部202は、回線#0からのデータの転送を開始し(ステップF6)、復旧切り替えを完了する(ステップF4)。ステップF5においてタイマーがタイムアウトしていなければ、選択部202はステップF2の処理に戻る。なお、回線#1の受信機能部21と回線#2の受信機能部22も制御パケット405を受信するが、回線番号ビットが自身の回線番号と一致しないため無視する。   If the timer has timed out, the selection unit 202 starts data transfer from the line # 0 (step F6) and completes the recovery switching (step F4). If the timer has not timed out in step F5, the selection unit 202 returns to the process in step F2. The reception function unit 21 of the line # 1 and the reception function unit 22 of the line # 2 also receive the control packet 405, but ignore it because the line number bit does not match their own line number.

以上説明したように、本実施形態によれば、回線切り替えを行う際、上位中継装置1が切り替えのタイミングを示す制御パケットを切り替え元と切り替え先の双方の回線のデータに挿入する。そして、下位中継装置2が切り替え元の回線からの制御パケットと切り替え先の回線からの制御パケットの挿入された位置を元に、切り替え元の回線のデータと切り替え先の回線のデータとのタイミングを調整して順序を復元する。そのため、非同期データが伝送されていてもデータの重複または抜けを生じさせることなく回線の切り替えを行うことができる。   As described above, according to the present embodiment, when line switching is performed, the upper relay apparatus 1 inserts a control packet indicating the switching timing into the data of both the switching source and switching destination lines. Then, based on the position where the control packet from the switching source line and the control packet from the switching destination line are inserted, the subordinate relay device 2 determines the timing of the switching source line data and the switching destination line data. Adjust to restore order. Therefore, even if asynchronous data is transmitted, the line can be switched without causing data duplication or omission.

また、本実施形態によれば、上位中継装置1と下位中継装置2は、予備回線をも用いて制御パケットを送受信する。そのため、現用回線が障害でデータを疎通できない状態となっても互いに制御のための情報を共有することができ、信頼性の高い回線切り替えを行うことができる。   Further, according to this embodiment, the upper relay apparatus 1 and the lower relay apparatus 2 transmit and receive control packets using the protection line. Therefore, even if the working line is in a state where data cannot be communicated due to a failure, information for control can be shared with each other, and line switching with high reliability can be performed.

また、本実施形態によれば、下位中継装置2は、複数の現用回線の障害を検出すると、最もエラーレベルの高い回線を選択し、その回線の予備切り替えを上位中継装置1に指示する。そのため、最もエラーレベルの高い現用回線を予備回線に切り替えることができ、現用回線の運用を可能な限りの維持をすることができる。   Further, according to the present embodiment, when detecting a failure in a plurality of working lines, the lower relay apparatus 2 selects a line with the highest error level and instructs the upper relay apparatus 1 to perform preliminary switching of the lines. Therefore, the working line with the highest error level can be switched to the protection line, and the operation of the working line can be maintained as much as possible.

また、本実施形態によれば、下位中継装置2は、ある現用回線が予備切り替えしている状態で、エラーレベルのより高い障害が他の現用回線に発生すると、エラーレベルの高い障害が起きている現用回線を予備切り替えの対象とする。そのため、最もエラーレベルの高い現用回線を予備切り替えすることができ、現用回線の運用を可能な限りの維持をすることができる。   Further, according to the present embodiment, when a failure with a higher error level occurs in another active line in a state where a certain active line is switched to standby, the lower-level repeater 2 causes a failure with a high error level. The existing working line is the target of standby switching. Therefore, the working line with the highest error level can be switched over, and the working line can be maintained as much as possible.

本発明の他の実施形態について説明する。他の実施形態の通信システムは図1および図2に示したものと同様の構成である。   Another embodiment of the present invention will be described. The communication system according to another embodiment has the same configuration as that shown in FIGS.

図19は、他の実施形態の上位中継装置1の出力切替部10と下位中継装置2の受信機能部20の構成を示すブロック図である。図19によれば、図3に示した構成と同様に、上位中継装置1の出力切替部10は出力制御部101およびフレーム検出部102を有している。また、下位中継装置2の受信機能部20はERR検出部201、選択部202、およびフレーム生成部203を有している。   FIG. 19 is a block diagram illustrating configurations of the output switching unit 10 of the higher-level relay device 1 and the reception function unit 20 of the lower-level relay device 2 according to another embodiment. According to FIG. 19, the output switching unit 10 of the higher-level relay device 1 includes the output control unit 101 and the frame detection unit 102 as in the configuration illustrated in FIG. 3. The reception function unit 20 of the lower level relay apparatus 2 includes an ERR detection unit 201, a selection unit 202, and a frame generation unit 203.

ただし、図19では、現用の回線#0からのデータをERR検出部201を経由せず直接にフレーム生成部203に入力する接続路204がある点で図3と異なる。   However, FIG. 19 differs from FIG. 3 in that there is a connection path 204 through which data from the working line # 0 is directly input to the frame generation unit 203 without passing through the ERR detection unit 201.

図20は、他の実施形態のフレーム生成部203の構成を示すブロック図である。図20を参照すると、フレーム生成部203は、通知パケット生成部211および通知パケット検出部212を有している。   FIG. 20 is a block diagram illustrating a configuration of the frame generation unit 203 according to another embodiment. Referring to FIG. 20, the frame generation unit 203 includes a notification packet generation unit 211 and a notification packet detection unit 212.

通知パケット生成部211は、ERR検出部201からの通知に基づきエラーレベルを求め、そのエラーレベルに応じた「エラー状態」を示す制御パケットを生成し、通知パケット検出回路212に送る。   The notification packet generation unit 211 obtains an error level based on the notification from the ERR detection unit 201, generates a control packet indicating an “error state” corresponding to the error level, and sends the control packet to the notification packet detection circuit 212.

通知パケット検出回路212は、通知パケット生成回路211で生成された制御パケットを送信機能部24に送ることに加え、接続路204からのデータより制御パケットを検出し、検出した制御パケットも送信機能部24に送る。   The notification packet detection circuit 212 detects the control packet from the data from the connection path 204 in addition to sending the control packet generated by the notification packet generation circuit 211 to the transmission function unit 24, and the detected control packet is also transmitted by the transmission function unit. Send to 24.

これにより、下位中継装置2は、自身の検出したエラー状態に基づく切り替えに加え、上位中継装置1からの「エラー状態」を示す制御パケットの入力による切り替えも起動することができる。これを利用して遠隔からの切り替え制御の実行が可能となる。   Thereby, the lower relay apparatus 2 can also start switching based on the input of the control packet indicating the “error state” from the upper relay apparatus 1 in addition to the switching based on the error state detected by itself. Using this, it is possible to execute switching control from a remote location.

なお、上位中継装置1は、例えば、「エラー状態」を示す制御パケットを疑似的に生成し送出する機能を送信機能部14に備えることとしてもよい。   For example, the higher-level relay device 1 may include a function for generating and transmitting a control packet indicating an “error state” in a pseudo manner in the transmission function unit 14.

また、上位中継装置1からの制御より下位中継装置2にて発生した障害による切り替えを優先させたい場合には、上位中継装置1からの「エラー状態」を示す制御パケットのエラーレベルを切り替えの発生する最低レベルとしておけばよい。そうすれば、他の現用回線の障害による予備切り替えが行われていれば、上位中継装置1からの制御で障害の起きている回線の復旧切り替えが行われることはない。また、上位中継装置1からの制御で予備切り替えが行われていても、他のいずれかの回線に障害が発生すれば、障害回線を優先的に予備切り替えすることができる。   In addition, when priority is given to switching due to a failure that has occurred in the lower relay apparatus 2 over control from the upper relay apparatus 1, the error level of the control packet indicating the “error state” from the upper relay apparatus 1 is switched. The minimum level to do is good. In this case, if the standby switching due to the failure of another active line is performed, the recovery switching of the failed line is not performed by the control from the higher-level relay device 1. Further, even if the standby switching is performed by the control from the upper relay apparatus 1, if a failure occurs in any of the other lines, the failed line can be preferentially switched.

また、予備切り替えの起きた現用回線の障害を修復した後に、上位中継装置1から「復旧切り替え」を示す制御パケットを挿入することで、遠隔から復旧切り替えを起動することができる。   Further, after repairing the failure of the working line in which the standby switching has occurred, the recovery switching can be remotely activated by inserting a control packet indicating “recovery switching” from the higher-level relay apparatus 1.

本実施形態によれば、上位中継装置1からデータに挿入された制御パケットに反応して下位中継装置2が動作する構成なので、各装置に大掛かりな特別装備を追加することなく遠隔での切り替え制御の実行が可能である。   According to the present embodiment, since the lower level relay device 2 operates in response to the control packet inserted in the data from the higher level relay device 1, remote switching control without adding large special equipment to each device Can be executed.

本実施形態による通信システムの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the communication system by this embodiment. 図1に示した上位中継装置および下位中継装置の構成を示すブロック図である。FIG. 2 is a block diagram illustrating configurations of an upper relay device and a lower relay device illustrated in FIG. 1. 図2に示した上位中継装置の出力切替部と下位中継装置の受信機能部の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of an output switching unit of the higher-order relay device and a reception function unit of the lower-level relay device illustrated in FIG. 2. 本実施形態による通信システムにおける予備切り替え時の動作を示すフローチャートである。It is a flowchart which shows the operation | movement at the time of the preliminary | backup switch in the communication system by this embodiment. 本実施形態における制御パケットの実装例を示す図である。It is a figure which shows the example of mounting of the control packet in this embodiment. 「エラー状態」を示す制御パケットの情報ビットを示す図である。It is a figure which shows the information bit of the control packet which shows "error state". 「予備切り替え」を示す制御パケットの情報ビットを示す図である。It is a figure which shows the information bit of the control packet which shows "preliminary switching." 予備切り替え動作について説明するための図である。It is a figure for demonstrating preliminary | backup switching operation | movement. 回線#0の制御パケットが先に到達した場合の下位中継装置の予備切り替え動作を示すフローチャートである。It is a flowchart which shows the preliminary | backup switching operation | movement of a low-order relay apparatus when the control packet of line | wire # 0 arrives first. 回線#0の制御パケットが先に到達した場合の下位中継装置の復旧切り替え動作を説明するための図である。It is a figure for demonstrating the recovery switching operation | movement of a low-order relay apparatus when the control packet of line | wire # 0 arrives first. 予備回線の制御パケットが先に到達した場合の下位中継装置の予備切り替え動作を示すフローチャートである。It is a flowchart which shows the backup switching operation | movement of a low-order relay apparatus when the control packet of a protection line arrives first. 予備回線の制御パケットが先に到達した場合の下位中継装置の予備切り替え動作を説明するための図である。It is a figure for demonstrating the backup switching operation | movement of a low-order relay apparatus when the control packet of a protection line arrives first. 本実施形態による通信システムにおける予備切り替え対象の回線を変更する時の動作を示すフローチャートである。It is a flowchart which shows the operation | movement at the time of changing the line | wire for the standby switching in the communication system by this embodiment. 図13の動作において制御パケットを受信した回線#0の出力切替部と回線#1の出力切替部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the output switching part of the line # 0 which received the control packet in the operation | movement of FIG. 13, and the output switching part of the line # 1. 回線#0の制御パケットが先に到達した場合の下位中継装置の復旧切り替え動作を示すフローチャートである。It is a flowchart which shows the recovery switching operation | movement of a low-order relay apparatus when the control packet of circuit | line # 0 arrives first. 回線#0の制御パケットが先に到達した場合の下位中継装置の復旧切り替え動作を説明するための図である。It is a figure for demonstrating the recovery switching operation | movement of a low-order relay apparatus when the control packet of line | wire # 0 arrives first. 予備回線の制御パケットが先に到達した場合の下位中継装置の復旧切り替え動作を示すフローチャートである。It is a flowchart which shows the recovery switching operation | movement of a low-order relay apparatus when the control packet of a protection line arrives first. 予備回線の制御パケットが先に到達した場合の下位中継装置の復旧切り替え動作を説明するための図である。It is a figure for demonstrating the recovery switching operation | movement of a low-order relay apparatus when the control packet of a protection line arrives first. 他の実施形態の上位中継装置の出力切替部と下位中継装置の受信機能部の構成を示すブロック図である。It is a block diagram which shows the structure of the output switching part of the high-order relay apparatus of another embodiment, and the receiving function part of a low-order relay apparatus. 他の実施形態のフレーム生成部203の構成を示すブロック図である。It is a block diagram which shows the structure of the frame generation part 203 of other embodiment. N:1冗長回線を備えた従来の通信システムに用いられる中継装置の構成を示すブロック図である。It is a block diagram which shows the structure of the relay apparatus used for the conventional communication system provided with N: 1 redundant line.

符号の説明Explanation of symbols

1 上位中継装置
2 下位中継装置
10〜12 出力切替部
13 選択機能部
14〜16 送信機能部
17 受信機能部
18 送信機能部
20〜23 受信機能部
24 送信機能部
101 出力制御部
102 フレーム検出部
201 ERR(エラー)検出部
202 選択部
203 フレーム生成部
204 接続路
211 通知パケット生成部
212 通知パケット検出部
301 ヘッダ情報部
302 ペイロード情報部
303 CRC情報部
304 情報ビット
401〜404、501〜504、601〜604 データ
405、406、505、506、605、606 制御パケット
A1〜A9、B1〜B3、C1〜C6、D1〜D9、E1〜E3、F1〜F4 ステップ
DESCRIPTION OF SYMBOLS 1 Upper relay apparatus 2 Lower relay apparatus 10-12 Output switching part 13 Selection function part 14-16 Transmission function part 17 Reception function part 18 Transmission function part 20-23 Reception function part 24 Transmission function part 101 Output control part 102 Frame detection part 201 ERR (error) detection unit 202 selection unit 203 frame generation unit 204 connection path 211 notification packet generation unit 212 notification packet detection unit 301 header information unit 302 payload information unit 303 CRC information unit 304 information bits 401 to 404, 501 to 504, 601-604 data 405, 406, 505, 506, 605, 606 control packet A1-A9, B1-B3, C1-C6, D1-D9, E1-E3, F1-F4 steps

Claims (11)

現用回線と予備回線からなる冗長構成を装置間の接続に用いた通信システムであって、
前記現用回線でデータを伝送している状態から前記予備回線へ切り替えるとき、切り替えタイミングを示す制御情報を切り替え元の前記現用回線と切り替え先の前記予備回線の双方のデータに挿入して送信する上位装置と、
前記上位装置から前記現用回線で送信されたデータと前記予備回線で送信されたデータのいずれも受信可能であり、前記上位装置により挿入された前記現用回線の前記制御情報の位置と前記上位装置により挿入された前記予備回線の前記制御情報の位置を元にデータの順序を維持するようにタイミングを調整して前記現用回線から前記予備回線へ切り替える下位装置とを有する通信システム。
A communication system using a redundant configuration consisting of a working line and a protection line for connection between devices,
When switching from the state in which data is transmitted on the working line to the protection line, the control information indicating the switching timing is inserted into the data of both the switching source working line and the switching destination protection line and transmitted. Equipment,
Both the data transmitted on the working line and the data transmitted on the protection line can be received from the upper apparatus, and the position of the control information on the working line inserted by the upper apparatus and the upper apparatus A communication system comprising: a subordinate device that adjusts timing so as to maintain the data order based on the position of the control information of the inserted protection line and switches from the working line to the protection line.
前記上位装置は、前記現用回線の前記制御情報の前までのデータと、前記予備回線の前記制御情報の後のデータとが連続するように、前記現用回線のデータと前記予備回線のデータの対応する切り替え位置に前記制御情報をそれぞれ挿入し、
前記下位装置は、
前記現用回線からの前記制御情報が前記予備回線からの前記制御情報よりも先に届いた場合には、前記現用回線からの前記制御情報の前までで前記現用回線からのデータの取得を停止しておき、前記予備回線からの前記制御情報が届いたら該予備回線からのデータの取得を開始し、
前記予備回線からの前記制御情報が前記現用回線からの前記制御情報よりも先に届いた場合には、前記予備回線の前記制御情報の後のデータを一時的に保持しておき、前記現用回線からの前記制御情報が届いたら該制御情報の前までの前記現用回線からのデータの後に、保持しておいた前記予備回線のデータを接続する、
請求項1に記載の通信システム。
The higher-level device is configured to correspond the data on the working line and the data on the protection line so that the data before the control information on the working line and the data after the control information on the protection line are continuous. Insert the control information at the switching position to be
The subordinate device is:
When the control information from the working line arrives before the control information from the protection line, the acquisition of data from the working line is stopped before the control information from the working line. In addition, when the control information from the protection line arrives, acquisition of data from the protection line is started,
When the control information from the protection line arrives before the control information from the working line, the data after the control information of the protection line is temporarily stored, and the working line When the control information from is received, after the data from the working line before the control information, the data of the retained protection line is connected,
The communication system according to claim 1.
前記上位装置は、前記現用回線の前記切り替え位置以降に前記制御情報を所定数連続して挿入し、
前記下位装置は、前記予備回線から前記制御情報を受信してから所定時間が経過しても前記現用回線から前記制御情報を受信できないとき、前記保持しておいたデータから始まる前記予備回線のデータに切り替える、
請求項2に記載の通信システム。
The host device continuously inserts the control information after the switching position of the working line a predetermined number of times,
When the lower-level device cannot receive the control information from the active line even after a predetermined time has elapsed after receiving the control information from the protection line, data on the protection line starting from the stored data Switch to
The communication system according to claim 2.
前記予備回線への切り替えが行われている状態から元の前記現用回線に戻すための切り替えにおいて、
前記上位装置は、切り替えタイミングを示す制御情報を切り替え元の前記予備回線と切り替え先の前記現用回線の双方のデータに挿入して送信し、
前記下位装置は、前記上位装置により挿入された前記現用回線の前記制御情報の位置と前記上位装置により挿入された前記予備回線の前記制御情報の位置を元にデータの順序を維持するようにタイミングを調整して前記予備回線から前記現用回線へ切り替える、請求項1〜3のいずれか1項に記載の通信システム。
In switching to return to the original working line from the state where switching to the protection line is performed,
The host device inserts control information indicating switching timing into data of both the protection line of the switching source and the working line of the switching destination, and transmits the data.
The subordinate apparatus performs timing so as to maintain the order of data based on the position of the control information of the working line inserted by the upper apparatus and the position of the control information of the protection line inserted by the upper apparatus. The communication system according to claim 1, wherein the communication line is switched from the protection line to the working line.
前記下位装置は、前記現用回線のエラーチェックを行っており、検出したエラーレベルに基づいて生成した、前記現用回線の切り替えを指示する制御情報を、前記予備回線を介して前記上位装置に送信し、
前記上位装置は、前記下位装置から前記制御情報を受信すると、該制御情報にて指示された現用回線の切り替えを開始する、
請求項1〜4のいずれか1項に記載の通信システム。
The lower-level device performs an error check on the working line, and transmits control information that is generated based on the detected error level to instruct switching of the working line to the higher-level device via the protection line. ,
When the higher order device receives the control information from the lower order device, it starts switching the working line instructed by the control information.
The communication system according to any one of claims 1 to 4.
前記現用回線が複数で前記予備回線が1本であり、複数の前記現用回線と1本の前記予備回線でN:1冗長を構成しており、
前記下位装置は、複数の前記現用回線の各々のエラーチェックをしており、エラーレベルの最も高い現用回線を切り替え対象に選択する、
請求項5に記載の通信システム。
A plurality of the working lines and one protection line, and a plurality of the working lines and one protection line constitute N: 1 redundancy;
The lower device is performing an error check of each of the plurality of working lines, and selects the working line with the highest error level as a switching target.
The communication system according to claim 5.
前記下位装置は、いずれかの現用回線を前記予備回線に切り替えている状態で、該現用回線のエラーレベルよりレベルの高いエラーが他の現用回線に発生すると、前記予備回線に切り替えている前記現用回線を元に戻した後に、レベルの高いエラーの発生した前記現用回線を前記予備回線に切り替える、請求項6に記載の通信システム。   In the state where one of the working lines is switched to the protection line, when the error having a level higher than the error level of the working line occurs in another working line, the subordinate apparatus switches to the protection line. The communication system according to claim 6, wherein after the line is restored, the working line in which a high level error has occurred is switched to the protection line. 前記上位装置は、前記現用回線のエラーレベルを示す制御情報を疑似的に生成して該現用回線を介して前記下位装置に送信し、
前記下位装置は、前記エラーレベルを示す制御情報を前記現用回線から受信すると、該現用回線の切り替えを指示する制御情報を前記予備回線を介して前記上位装置に送信する、
請求項5〜7のいずれか1項に記載の通信システム。
The higher-level device artificially generates control information indicating an error level of the working line and transmits the control information to the lower-level device via the working line,
When the lower device receives control information indicating the error level from the working line, the lower device transmits control information instructing switching of the working line to the upper device via the protection line.
The communication system according to any one of claims 5 to 7.
現用回線と予備回線からなる冗長構成を上位装置と下位装置の間の接続に用いた通信システムにおいて上位装置として用いられる通信装置であって、
前記現用回線でデータを伝送している状態から前記予備回線へ切り替えるとき、切り替えタイミング前には前記現用回線向けに、前記切り替えタイミング後には前記予備回線向けにデータを切り替え、前記切り替えタイミングを示す制御情報を切り替え元の前記現用回線と切り替え先の前記予備回線の双方のデータに挿入する出力切替部と、
前記出力切替部からの前記現用回線向けのデータを前記現用回線を介して前記下位装置に送信する第1の送信機能部と、
前記出力切替部からの前記予備回線向けのデータを前記予備回線を介して前記下位装置に送信する第2の送信機能部と、
を有する通信装置。
A communication device used as a host device in a communication system using a redundant configuration composed of a working line and a protection line for connection between a host device and a host device,
When switching from the state in which data is transmitted on the working line to the protection line, control is performed to switch data to the working line before the switching timing and to the protection line after the switching timing, and to indicate the switching timing An output switching unit that inserts information into the data of both the working line of the switching source and the protection line of the switching destination;
A first transmission function unit that transmits data for the working line from the output switching unit to the lower-level device via the working line;
A second transmission function unit that transmits data for the protection line from the output switching unit to the lower-level device via the protection line;
A communication device.
現用回線と予備回線からなる冗長構成を上位装置と下位装置の間の接続に用いた通信システムにおいて下位装置として用いられる通信装置であって、
前記上位装置から前記予備回線で送信されたデータを受信する第1の受信機能部と、
前記上位装置から前記現用回線で送信されたデータを受信し、前記第1の受信機能部で受信されたデータを受け、前記上位装置により切り替え元の前記現用回線と切り替え先の前記予備回線の双方のデータに挿入された切り替えタイミングを示す制御情報の双方の位置を元にデータの順序を維持するようにタイミングを調整して前記現用回線から前記予備回線へ切り替える第2の受信機能部と、
を有する通信装置。
A communication device used as a lower-level device in a communication system using a redundant configuration consisting of a working line and a protection line for connection between a higher-level device and a lower-level device,
A first reception function unit for receiving data transmitted from the host device via the protection line;
Receives data transmitted from the higher-level device through the working line, receives data received by the first reception function unit, and both the working line as a switching source and the protection line as a switching destination are received by the higher-level device. A second reception function unit for adjusting the timing so as to maintain the order of the data based on both positions of the control information indicating the switching timing inserted in the data, and switching from the working line to the protection line;
A communication device.
現用回線と予備回線からなる冗長を上位装置と下位装置の間の接続に用いた通信システムにおける回線制御方法であって、
前記現用回線でデータを伝送している状態から前記予備回線へ切り替えるとき、前記上位装置が、切り替えタイミングを示す制御情報を切り替え元の前記現用回線と切り替え先の前記予備回線の双方のデータに挿入して前記下位装置に送信するステップと、
前記下位装置が、前記上位装置により挿入された前記現用回線の前記制御情報の位置と前記上位装置により挿入された前記予備回線の前記制御情報の位置を元にデータの順序を維持するようにタイミングを調整して前記現用回線から前記予備回線へ切り替えるステップとを有する方法。
A line control method in a communication system using redundancy consisting of a working line and a protection line for connection between a higher-level device and a lower-level device,
When switching from the state in which data is transmitted on the working line to the protection line, the higher-level device inserts control information indicating switching timing into data on both the switching source working line and the switching destination protection line. And transmitting to the lower device,
Timing is set so that the lower order apparatus maintains the data order based on the position of the control information of the working line inserted by the higher order apparatus and the position of the control information of the protection line inserted by the higher order apparatus. And switching from the working line to the protection line.
JP2005252016A 2005-08-31 2005-08-31 Communications system, communication device, and line control method Withdrawn JP2007067887A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005252016A JP2007067887A (en) 2005-08-31 2005-08-31 Communications system, communication device, and line control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005252016A JP2007067887A (en) 2005-08-31 2005-08-31 Communications system, communication device, and line control method

Publications (1)

Publication Number Publication Date
JP2007067887A true JP2007067887A (en) 2007-03-15

Family

ID=37929543

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005252016A Withdrawn JP2007067887A (en) 2005-08-31 2005-08-31 Communications system, communication device, and line control method

Country Status (1)

Country Link
JP (1) JP2007067887A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010187297A (en) * 2009-02-13 2010-08-26 Fujitsu Ltd Data transfer system, data transfer apparatus, and data transfer method
JP2020013446A (en) * 2018-07-20 2020-01-23 富士通株式会社 Processor and information processing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010187297A (en) * 2009-02-13 2010-08-26 Fujitsu Ltd Data transfer system, data transfer apparatus, and data transfer method
JP2020013446A (en) * 2018-07-20 2020-01-23 富士通株式会社 Processor and information processing device
JP7044974B2 (en) 2018-07-20 2022-03-31 富士通株式会社 Processor and information processing equipment

Similar Documents

Publication Publication Date Title
JP4308287B2 (en) Redundant gateway system
JP5233165B2 (en) Data transmission device
RU2635263C2 (en) Method of reservation for communication networks
JPS58172050A (en) Station operating method
US8155156B2 (en) Synchronization recovery for multiple-link communications
US7715374B2 (en) Redundancy gateway system
WO2013145240A1 (en) Information processing device and information processing device control method
JP2007067887A (en) Communications system, communication device, and line control method
JP5019984B2 (en) Communication device and source clock recovery method
JP5176623B2 (en) Ethernet transmission method, transmission apparatus and system
US8788914B2 (en) Transmission system
JP6394727B1 (en) Control device, control method, and fault tolerant device
JP4673697B2 (en) Digital delay buffer and related method
EP1838054B1 (en) Method of hitless radio protection switching over ethernet and a system for carrying out the method
US7418036B2 (en) Method and circuit for timing pulse generation
JPH08223130A (en) Switching system without short break
JP4679090B2 (en) Transmission end switching method and set spare terminal equipment
JP3577008B2 (en) Data guarantee circuit and data guarantee method for hot standby wireless device
JPH10322379A (en) Clock path changeover method
JP3950741B2 (en) Non-instantaneous switching method
JPH05244127A (en) Circuit switching system
JP5925662B2 (en) Packet transmission apparatus and packet transmission control method
JP2009246678A (en) Hit-less switching method and hit-less switching system in optical network
JP3852599B2 (en) Relay device and remote replication system
JPH10154972A (en) Uninterruptible switching system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080715

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20100223