JP2016092521A - Relay device and communication system - Google Patents

Relay device and communication system Download PDF

Info

Publication number
JP2016092521A
JP2016092521A JP2014222706A JP2014222706A JP2016092521A JP 2016092521 A JP2016092521 A JP 2016092521A JP 2014222706 A JP2014222706 A JP 2014222706A JP 2014222706 A JP2014222706 A JP 2014222706A JP 2016092521 A JP2016092521 A JP 2016092521A
Authority
JP
Japan
Prior art keywords
control
unit
relay device
packet
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2014222706A
Other languages
Japanese (ja)
Other versions
JP6393586B2 (en
Inventor
裕司 大石
Yuji Oishi
裕司 大石
澤口 力
Tsutomu Sawaguchi
力 澤口
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.)
Proterial Ltd
Original Assignee
Hitachi Metals 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 Hitachi Metals Ltd filed Critical Hitachi Metals Ltd
Priority to JP2014222706A priority Critical patent/JP6393586B2/en
Publication of JP2016092521A publication Critical patent/JP2016092521A/en
Application granted granted Critical
Publication of JP6393586B2 publication Critical patent/JP6393586B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a technique capable of achieving high-speed control of a relay device, with the reduction of a packet memory use capacity for storing a control packet.SOLUTION: A relay device includes a function mounting unit and a transfer unit. The function mounting unit includes a first control unit and a first storage unit, whereas the transfer unit includes a second control unit and a second storage unit. The first storage unit stores, as a list, a plurality of types of control packets to cope with a plurality of control states associated with a function. The second storage unit stores setting information associated with each control state. According to the control state, the first control unit reads out a set of a plurality of control packets from the list in the first storage unit, to transmit to the second control unit. The second control unit rewrites the setting information in the second storage unit, according to the plurality of control packets in the set.SELECTED DRAWING: Figure 2

Description

本発明は、通信網における中継装置の技術に関し、特に、制御パケットを格納するメモリの技術に関する。   The present invention relates to a technology of a relay device in a communication network, and more particularly to a technology of a memory that stores a control packet.

リング型ネットワーク等の通信網を構成する中継装置は、プロトコルに応じた制御機能を備える。中継装置は、制御機能に係わる制御状態に応じて、内部の設定情報を設定する。従来の中継装置は、制御状態を切り替える場合、ソフトウェア処理により、内部の設定情報を書き替える。   A relay device constituting a communication network such as a ring network has a control function corresponding to a protocol. The relay device sets internal setting information according to the control state related to the control function. The conventional relay apparatus rewrites internal setting information by software processing when switching the control state.

通信装置におけるパケットを格納するメモリに関する先行技術例として、特開2013−46173号公報(特許文献1)が挙げられる。特許文献1には、通信装置の制御装置において、TCP/IP処理に係わり、ヘッダ情報をキューに蓄積し、ペイロードとの組合せによりパケットを合成して送信する構成により、メモリの量を削減する旨が記載されている。   JP, 2013-46173, A (patent documents 1) is mentioned as a prior art example about a memory which stores a packet in a communication apparatus. Japanese Patent Application Laid-Open No. 2004-228561 relates to TCP / IP processing in a control device of a communication device, and reduces the amount of memory by a configuration in which header information is accumulated in a queue, and packets are combined and transmitted in combination with a payload. Is described.

特開2013−46173号公報JP 2013-46173 A

従来の中継装置は、ソフトウェア処理により内部の設定情報を書き替える構成の場合、高速な制御を実現しにくい。高速な制御を実現するためには、ハードウェア処理により内部の設定情報を書き替える構成を採用することが挙げられる。   The conventional relay apparatus is difficult to realize high-speed control in the case where the internal setting information is rewritten by software processing. In order to realize high-speed control, it is possible to employ a configuration in which internal setting information is rewritten by hardware processing.

ハードウェア処理により内部の設定情報を書き替える構成の場合、中継装置は、複数の制御状態に対応できるように、予め、複数の制御パケットを内部のメモリに格納しておく。なお、制御パケットを格納するメモリを、パケットメモリと呼ぶ場合がある。中継装置は、制御状態に応じてパケットメモリから制御パケットを読み出し、当該制御パケットを用いて設定情報を書き替える。   In the case of a configuration in which internal setting information is rewritten by hardware processing, the relay device stores a plurality of control packets in an internal memory in advance so that it can cope with a plurality of control states. Note that a memory that stores control packets may be referred to as a packet memory. The relay device reads the control packet from the packet memory according to the control state, and rewrites the setting information using the control packet.

しかし、パケットメモリの容量は限られている。パケットメモリに複数の制御パケットを格納しておく構成とする場合、パケットメモリの使用容量が多くなる。   However, the capacity of the packet memory is limited. When the configuration is such that a plurality of control packets are stored in the packet memory, the use capacity of the packet memory increases.

本発明の目的は、中継装置に関して、高速な制御を実現でき、制御パケットを格納するパケットメモリにおける使用容量を削減できる技術を提供することである。   An object of the present invention is to provide a technique that can realize high-speed control and reduce the use capacity in a packet memory that stores control packets, with respect to a relay device.

本発明のうち代表的な実施の形態は、中継装置及び通信システムであって、以下に示す構成を有することを特徴とする。   A typical embodiment of the present invention is a relay apparatus and a communication system, and has the following configuration.

一実施の形態の中継装置は、フレームの転送に関する機能が実装された機能実装部と、複数のポート間でのフレームの転送を行う転送部と、を備え、機能実装部は、第1制御部、及び第1記憶部を有し、転送部は、第2制御部、及び第2記憶部を有し、第1記憶部は、機能に係わる複数の制御状態に対応するための、複数の種類の制御パケットを、リストとして格納し、第2記憶部は、制御状態に応じた設定情報を格納し、第1制御部は、制御状態に応じて、第1記憶部のリストから、複数の制御パケットからなるセットを読み出し、第2制御部へ送信し、第2制御部は、セットの複数の制御パケットに従い、第2記憶部の設定情報を書き替える。   A relay apparatus according to an embodiment includes a function mounting unit in which a function related to frame transfer is mounted, and a transfer unit that transfers a frame between a plurality of ports. The function mounting unit is a first control unit. And the first storage unit, the transfer unit has a second control unit and a second storage unit, and the first storage unit has a plurality of types to correspond to a plurality of control states related to the function. The control packet is stored as a list, the second storage unit stores setting information according to the control state, and the first control unit stores a plurality of control packets from the list of the first storage unit according to the control state. A set of packets is read and transmitted to the second control unit, and the second control unit rewrites the setting information in the second storage unit in accordance with the plurality of control packets of the set.

一実施の形態の通信システムは、第1の中継装置と第2の中継装置とを備える通信システムであって、第1の中継装置は、フレームの転送に関する機能が実装された機能実装部を備え、機能実装部は、第1制御部、及び第1記憶部を有し、第2の中継装置は、複数のポート間でのフレームの転送を行う転送部を備え、転送部は、第2制御部、及び第2記憶部を有し、第1記憶部は、機能に係わる複数の制御状態に対応するための、複数の種類の制御パケットを、リストとして格納し、第2記憶部は、制御状態に応じた設定情報を格納し、第1の中継装置の第1制御部は、制御状態に応じて、第1記憶部のリストから、複数の制御パケットからなるセットを読み出し、第2の中継装置へ送信し、第2の中継装置の第2制御部は、セットの複数の制御パケットに従い、第2記憶部の設定情報を書き替える。   A communication system according to an embodiment is a communication system including a first relay device and a second relay device, and the first relay device includes a function mounting unit in which a function related to frame transfer is mounted. The function implementation unit includes a first control unit and a first storage unit, and the second relay device includes a transfer unit that transfers frames between a plurality of ports, and the transfer unit includes a second control unit. And a second storage unit, wherein the first storage unit stores a plurality of types of control packets to correspond to a plurality of control states related to the function as a list, and the second storage unit The setting information corresponding to the state is stored, and the first control unit of the first relay device reads a set of a plurality of control packets from the list of the first storage unit according to the control state, and the second relay The second control unit of the second relay device transmits a plurality of sets to the device. According your packet, it rewrites the setting information in the second storage unit.

本発明のうち代表的な実施の形態によれば、中継装置に関して、高速な制御を実現でき、制御パケットを格納するパケットメモリにおける使用容量を削減できる。   According to the representative embodiment of the present invention, high-speed control can be realized for the relay device, and the used capacity in the packet memory storing the control packet can be reduced.

本発明の実施の形態1の中継装置を含む通信システムの構成例を示す図である。It is a figure which shows the structural example of the communication system containing the relay apparatus of Embodiment 1 of this invention. 本発明の実施の形態1の中継装置の構成を示す図である。It is a figure which shows the structure of the relay apparatus of Embodiment 1 of this invention. 実施の形態1の中継装置の制御LSIの構成を示す図である。FIG. 3 is a diagram illustrating a configuration of a control LSI of the relay device according to the first embodiment. 実施の形態1における、制御LSIの第1制御部の処理例として、選択表を参照するまでの処理例を示す図である。FIG. 10 is a diagram illustrating a processing example until a selection table is referred to as a processing example of the first control unit of the control LSI in the first embodiment. 実施の形態1における、パケットメモリの構成を示す図である。FIG. 3 is a diagram illustrating a configuration of a packet memory in the first embodiment. 実施の形態1における、制御LSIの第1制御部の処理例として、パケットメモリから制御パケットを読み出す処理例を示す図である。FIG. 7 is a diagram illustrating a processing example of reading a control packet from a packet memory as a processing example of a first control unit of a control LSI in the first embodiment. 実施の形態1における、フィルタの構成例を示す図である。3 is a diagram illustrating a configuration example of a filter in the first embodiment. FIG. 実施の形態1における、フィルタの設定の切り替えの例を示す図である。6 is a diagram illustrating an example of switching of filter settings in Embodiment 1. FIG. 比較例の中継装置における、パケットメモリの構成を示す図である。It is a figure which shows the structure of the packet memory in the relay apparatus of a comparative example.

以下、本発明の実施の形態を図面に基づいて詳細に説明する。なお、実施の形態を説明するための全図において同一部には原則として同一符号を付し、その繰り返しの説明は省略する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Note that components having the same function are denoted by the same reference symbols throughout the drawings for describing the embodiment, and the repetitive description thereof will be omitted.

(実施の形態1)
図1〜図8を用いて、本発明の実施の形態1の中継装置について説明する。
(Embodiment 1)
A relay apparatus according to the first embodiment of the present invention will be described with reference to FIGS.

[通信システム]
図1は、本発明の実施の形態1の中継装置を含む通信システムの構成例を示す。通信システムは、実施の形態1の中継装置である4台の中継装置100A〜100Dにより構成されるリング型ネットワークである。なお、リング型ネットワークをリングと称する場合がある。
[Communications system]
FIG. 1 shows a configuration example of a communication system including a relay device according to Embodiment 1 of the present invention. The communication system is a ring network composed of four relay devices 100A to 100D that are the relay devices of the first embodiment. A ring network may be referred to as a ring.

実施の形態1の中継装置は、レイヤ2のフレームを中継するスイッチであり、プロトコルに応じた制御機能として、リング冗長機能を備える。リング冗長機能は、冗長の経路を含むリングの構成に基づいて、リングの状態を制御する機能であり、障害時の経路の切り替えを高速に実現する。リング冗長機能は、リングの各中継装置の各ポートを所定の状態に制御することにより、通常時の経路や、障害時の代替の経路を構成する。リング冗長機能は、データのループが発生しない経路を設定する。   The relay apparatus according to the first embodiment is a switch that relays layer 2 frames, and includes a ring redundancy function as a control function according to a protocol. The ring redundancy function is a function for controlling the state of the ring based on the ring configuration including the redundant path, and realizes high-speed path switching at the time of failure. The ring redundancy function configures a normal route and an alternative route in the event of a failure by controlling each port of each relay device of the ring to a predetermined state. The ring redundancy function sets a path in which no data loop occurs.

中継装置100Aは、ポート4a,4bを含む複数のポートを有する。中継装置100Bは、ポート4c,4dを含む複数のポートを有する。中継装置100Cは、ポート4e,4fを含む複数のポートを有する。中継装置100Dは、ポート4g,4hを含む複数のポートを有する。   The relay device 100A has a plurality of ports including the ports 4a and 4b. The relay device 100B has a plurality of ports including the ports 4c and 4d. The relay device 100C has a plurality of ports including the ports 4e and 4f. The relay device 100D has a plurality of ports including the ports 4g and 4h.

4台の中継装置100A〜100Dは、ポート間がリンク9a〜9dで接続される。中継装置100Aのポート4aと中継装置100Bのポート4cはリンク9aで接続される。中継装置100Bのポート4dと中継装置100Cのポート4fはリンク9bで接続される。中継装置100Cのポート4eと中継装置100Dのポート4gはリンク9cで接続される。中継装置100Dのポート4hと中継装置100Aのポート4bはリンク9dで接続される。   In the four relay apparatuses 100A to 100D, the ports are connected by links 9a to 9d. The port 4a of the relay device 100A and the port 4c of the relay device 100B are connected by a link 9a. The port 4d of the relay device 100B and the port 4f of the relay device 100C are connected by a link 9b. The port 4e of the relay device 100C and the port 4g of the relay device 100D are connected by a link 9c. The port 4h of the relay device 100D and the port 4b of the relay device 100A are connected by a link 9d.

各中継装置100A〜100Dは、各ポートでフレームの送受信を行う。フレームは、制御フレームやユーザデータフレームがある。なお、図1中、破線の矢印は制御フレームを示し、実線の矢印はユーザデータフレームを示す。   Each relay device 100A to 100D transmits and receives a frame at each port. The frame includes a control frame and a user data frame. In FIG. 1, a dashed arrow indicates a control frame, and a solid arrow indicates a user data frame.

各中継装置100A〜100Dは、リング冗長機能に係わるフィルタ6a〜6dを有する。例えば、フィルタ6aは、中継装置100Aのポート4a,4bを含む複数のポートに関するフィルタリングを規定する設定情報である。フィルタには、ポート毎にフレームに関する開閉状態が設定される。各フィルタ6a〜6dには、リング冗長機能による制御状態に応じたそれぞれの内容が設定される。   Each of the relay apparatuses 100A to 100D includes filters 6a to 6d related to the ring redundancy function. For example, the filter 6a is setting information that defines filtering related to a plurality of ports including the ports 4a and 4b of the relay device 100A. In the filter, an open / close state related to the frame is set for each port. In each of the filters 6a to 6d, the contents corresponding to the control state by the ring redundancy function are set.

通常時の経路に対応したフィルタの設定例は以下である。フィルタ6aにより、中継装置100Aのポート4aがフォワーディングポート、ポート4bがブロッキングポートに設定される。フィルタ6b〜6dにより、中継装置100Bのポート4c及びポート4d、中継装置100Cのポート4e及びポート4f、中継装置100Dのポート4g及びポート4hは、それぞれ、フォワーディングポートに設定される。   A filter setting example corresponding to a normal route is as follows. The filter 6a sets the port 4a of the relay device 100A as a forwarding port and the port 4b as a blocking port. By the filters 6b to 6d, the port 4c and the port 4d of the relay device 100B, the port 4e and the port 4f of the relay device 100C, and the port 4g and the port 4h of the relay device 100D are set as forwarding ports, respectively.

フォワーディングポートは、制御フレーム及びユーザデータフレームに関して開状態である。ブロッキングポートは、制御フレームに関して開状態、ユーザデータフレームに関して閉状態である。開状態は、ポートでフレームを通過させる状態である。閉状態は、ポートでフレームを通過させない状態、言い換えるとフレームを破棄する状態である。   The forwarding port is open for control frames and user data frames. The blocking port is open for control frames and closed for user data frames. The open state is a state in which a frame passes through the port. The closed state is a state in which no frame is allowed to pass through the port, in other words, a state in which the frame is discarded.

通常時の経路では、中継装置100Aのポート4bがブロッキングポートであるため、ポート4bでユーザデータフレーム106,108の送受信が禁止される。これにより、リングにおけるデータのループが防止される。   In the normal route, since the port 4b of the relay device 100A is a blocking port, transmission / reception of the user data frames 106 and 108 is prohibited at the port 4b. This prevents data loops in the ring.

[リング冗長機能]
リング冗長機能は、リングの障害を検出する機能、リングの障害を他の中継装置へ通知する機能、リングの障害やその復旧に応じて経路を切り替える機能、等を含む。経路を切り替える機能は、フィルタの設定を切り替える機能や、転送DBを更新する機能を含む。リング冗長機能は、障害検出時、リングの各中継装置の各ポートの状態を切り替えることにより、通常時の経路から代替の経路へ切り替える。リング冗長機能は、障害復旧時、リングの各中継装置の各ポートの状態を切り替えることにより、代替の経路から通常時の経路へ切り替える。
[Ring redundancy function]
The ring redundancy function includes a function for detecting a ring failure, a function for notifying a ring failure to another relay device, a function for switching a route according to a ring failure and recovery thereof, and the like. The function of switching the route includes a function of switching the filter setting and a function of updating the transfer DB. The ring redundancy function switches from a normal route to an alternative route by switching the state of each port of each ring relay device when a failure is detected. The ring redundancy function switches from an alternative route to a normal route by switching the state of each port of each relay device of the ring when a failure is recovered.

実施の形態1では、リング冗長機能は、フィルタを用いる機能として、機能51及び機能52を含む。   In the first embodiment, the ring redundancy function includes a function 51 and a function 52 as functions using a filter.

機能51は、隣接する中継装置間においてポートでリンクの障害を検出し、リンクの正常または障害の状態に応じて、フィルタを用いて、中継装置のポート毎のフレームに関する開閉状態を切り替える機能である。   The function 51 is a function of detecting a link failure at a port between adjacent relay devices, and switching an open / close state related to a frame for each port of the relay device using a filter according to a normal or failure state of the link. .

機能51による処理例は以下である。中継装置100Dのフィルタ6dに着目して説明する。通常時の経路において、中継装置100Dは、隣接する中継装置100Cとのリンク9cの状態を、開状態のポート4gで監視する。中継装置100Dは、ポート4gからリンク9cへ定期的に制御フレーム101を送信する。同様に、中継装置100Cは、ポート4eからリンク9cへ定期的に制御フレーム103を送信する。   A processing example by the function 51 is as follows. Description will be made by paying attention to the filter 6d of the relay device 100D. In the normal route, the relay device 100D monitors the state of the link 9c with the adjacent relay device 100C using the opened port 4g. The relay device 100D periodically transmits the control frame 101 from the port 4g to the link 9c. Similarly, the relay device 100C periodically transmits the control frame 103 from the port 4e to the link 9c.

図1で、リングに障害110が発生しているとする。中継装置100Dは、ポート4gでリンク9cからの制御フレーム103が受信できない場合、リンク9cの障害110として検出する。中継装置100Dは、リンク9cの障害110を検出した場合、ポート4gを開状態から閉状態へ切り替えるように、フィルタ6dの設定を切り替える。これにより、中継装置100Dは、リンク9cに対するフレームの送受信を停止する状態となる。   In FIG. 1, it is assumed that a failure 110 has occurred in the ring. When the control frame 103 from the link 9c cannot be received at the port 4g, the relay device 100D detects the failure 110 of the link 9c. When the relay device 100D detects the failure 110 of the link 9c, the relay device 100D switches the setting of the filter 6d so as to switch the port 4g from the open state to the closed state. As a result, the relay apparatus 100D enters a state in which frame transmission / reception with respect to the link 9c is stopped.

機能52は、リングの障害やその復旧の通知に基づいて、リングの状態に応じて、フィルタを用いて、経路を切り替える機能である。機能52は、経路の切り替えにおいて、所定の経路を含むリングの制御状態になるように、中継装置のポート毎の各種フレームに関する開閉状態を切り替える。この各種フレームは、制御フレームとユーザデータフレームとが区別される。すなわち、機能52は、制御フレームに関する制御機能と、ユーザデータフレームに関する制御機能とを含む。それらの制御機能による制御は、独立に実行可能である。   The function 52 is a function for switching a route using a filter according to a ring state based on a notification of a ring failure or its recovery. The function 52 switches the open / close state related to various frames for each port of the relay device so that the ring is in a control state including a predetermined route in switching the route. The various frames are distinguished from control frames and user data frames. That is, the function 52 includes a control function related to the control frame and a control function related to the user data frame. Control by these control functions can be performed independently.

機能52による処理例は以下である。中継装置100Aのフィルタ6aに着目して説明する。通常時の経路では、ポート4bがブロッキングポートである。図1で、リングに障害110が発生しているとする。中継装置100Dは、中継装置100Cとのリンク9cにおける障害110を、例えば前述の機能51を用いて検出する。中継装置100Dは、障害110を検出した場合、障害を通知するための制御フレーム107を、ポート4hからリンク9dへ送信する。中継装置100Aは、ポート4bで制御フレーム107を受信すると、リングの障害を認識し、フィルタ6aの設定の切り替えにより、通常時の経路から代替の経路へ切り替える。すなわち、中継装置100Aは、ポート4bをブロッキングポートからフォワーディングポートへ切り替えることにより、リンク9dに対するユーザデータフレーム106,108の送受信を可能な状態にする。   A processing example by the function 52 is as follows. Description will be made by paying attention to the filter 6a of the relay device 100A. In the normal route, the port 4b is a blocking port. In FIG. 1, it is assumed that a failure 110 has occurred in the ring. The relay device 100D detects the failure 110 in the link 9c with the relay device 100C using, for example, the function 51 described above. When the relay device 100D detects the failure 110, the relay device 100D transmits a control frame 107 for notifying the failure from the port 4h to the link 9d. When the relay device 100A receives the control frame 107 at the port 4b, the relay device 100A recognizes the failure of the ring and switches from the normal route to the alternative route by switching the setting of the filter 6a. That is, the relay device 100A switches the port 4b from the blocking port to the forwarding port, thereby enabling the transmission / reception of the user data frames 106 and 108 with respect to the link 9d.

同様に、中継装置100Aは、リングの障害復旧が通知された場合、フィルタ6aの設定の切り替えにより、代替の経路から通常時の経路へ切り替える。すなわち、中継装置100Aは、ポート4bをフォワーディングポートからブロッキングポートへ切り替えることにより、リンク9dに対するユーザデータフレーム106,108の送受信を禁止の状態にする。   Similarly, when the failure recovery of the ring is notified, the relay device 100A switches from the alternative route to the normal route by switching the setting of the filter 6a. That is, the relay device 100A switches the port 4b from the forwarding port to the blocking port, thereby prohibiting transmission / reception of the user data frames 106 and 108 for the link 9d.

上記例のように、リング冗長機能による制御のため、中継装置100A〜100D間では制御フレームが送受信される。そして、各中継装置100A〜100Dは、内部では、リング冗長機能による制御状態に応じて、制御パケットを用いて、フィルタの設定を切り替える。   As in the above example, control frames are transmitted and received between the relay apparatuses 100A to 100D for control by the ring redundancy function. And each relay apparatus 100A-100D switches the setting of a filter using a control packet according to the control state by a ring redundancy function inside.

[中継装置]
図2は、本発明の実施の形態1の中継装置の構成を示す。図2の実施の形態1の中継装置は、いわゆるボックス型の中継装置である。実施の形態1の中継装置は、制御LSI1、インタフェースLSI2、及び複数のポート4を備える。制御LSI1とインタフェースLSI2とは、端子間がパス211で接続され、パス211を通じて通信可能である。制御LSI1と複数のポート4とは、図示を省略するが、端子間がパス212により接続され、パス212を通じて通信可能である。インタフェースLSI2と複数のポート4とは、端子間がパス213により接続され、パス213を通じて通信可能である。
[Relay device]
FIG. 2 shows the configuration of the relay apparatus according to the first embodiment of the present invention. 2 is a so-called box-type relay device. The relay apparatus according to the first embodiment includes a control LSI 1, an interface LSI 2, and a plurality of ports 4. The control LSI 1 and the interface LSI 2 are connected to each other through a path 211 and can communicate through the path 211. Although not shown, the control LSI 1 and the plurality of ports 4 are connected to each other through a path 212 and can communicate with each other through the path 212. The interface LSI 2 and the plurality of ports 4 are connected to each other through a path 213 and can communicate with each other through the path 213.

制御LSI1は、中継装置の特有の機能が実装された機能実装部である。制御LSI1は、インタフェースLSI2と連携して中継制御処理を行う。実施の形態1では、制御LSI1に実装される機能は、図1のリング冗長機能を含む。制御LSI1は、第1制御部10、及びパケットメモリ30を含む。制御LSI1は、制御パケットを用いてインタフェースLSI2の内部の設定情報を書き替える機能を有する。   The control LSI 1 is a function mounting unit on which a specific function of the relay device is mounted. The control LSI 1 performs relay control processing in cooperation with the interface LSI 2. In the first embodiment, the functions implemented in the control LSI 1 include the ring redundancy function of FIG. The control LSI 1 includes a first control unit 10 and a packet memory 30. The control LSI 1 has a function of rewriting setting information inside the interface LSI 2 using a control packet.

第1制御部10は、機能に係わる制御処理を行う。第1制御部10は、ハードウェア回路により構成され、ハードウェア処理を行う。第1制御部10は、例えばASIC(Application Specific IC)やFPGA(Field Programmable Gate Array)で構成される。第1制御部10の処理は、パケットメモリ30のリスト7に格納されている制御パケットを読み出してインタフェースLSI2の第2制御部20へ送信する処理を含む。この制御パケットは、インタフェースLSI2の第2制御部20に対する制御用のパケットであり、より詳しくはメモリ40のフィルタ6の設定の切り替えの制御用のパケットである。   The first control unit 10 performs control processing related to functions. The first control unit 10 is configured by a hardware circuit and performs hardware processing. The first control unit 10 is configured by, for example, an application specific IC (ASIC) or a field programmable gate array (FPGA). The process of the first control unit 10 includes a process of reading a control packet stored in the list 7 of the packet memory 30 and transmitting it to the second control unit 20 of the interface LSI 2. This control packet is a control packet for the second control unit 20 of the interface LSI 2, and more specifically, a control packet for switching the setting of the filter 6 of the memory 40.

パケットメモリ30は、第1制御部10から直接アクセス可能な第1記憶部であり、複数のリスト7が格納される。パケットメモリ30は、所定の容量を有し、複数のリスト7を格納するために一定の容量が使用される。リスト7は、グループ毎のリストである。グループは、機能に対応付けられたグループである。パケットメモリ30の複数のリスト7には、リング冗長機能に係わる複数の全ての制御状態に対応するための、複数の種類の制御パケットが格納される。制御パケットは、制御状態に応じたフィルタ6の設定状態にするためのパケットである。複数のリスト7には、重複しないように分類及び整理された、必要最小限の複数の種類の制御パケットが格納される。複数の種類の制御パケットは、フィルタ6に設定する要素の組合せにより構成される。   The packet memory 30 is a first storage unit that is directly accessible from the first control unit 10 and stores a plurality of lists 7. The packet memory 30 has a predetermined capacity, and a certain capacity is used to store a plurality of lists 7. The list 7 is a list for each group. A group is a group associated with a function. The plurality of lists 7 in the packet memory 30 store a plurality of types of control packets for dealing with all the plurality of control states related to the ring redundancy function. The control packet is a packet for setting the filter 6 according to the control state. The plurality of lists 7 store a minimum number of types of control packets that are classified and arranged so as not to overlap. A plurality of types of control packets are configured by combinations of elements set in the filter 6.

インタフェースLSI2は、ハードウェア回路の処理により複数のポート4間でのフレームの転送を制御する転送部である。インタフェースLSI2は、第2制御部20、メモリ40、及び転送DB5を含む。インタフェースLSI2は、ポート4で受信するフレーム203や、ポート4から送信するフレーム204について、転送DB5の情報を読み書きしながら、複数のポート4間での転送を制御する。フレーム203,204は、制御フレームやユーザデータフレームがある。   The interface LSI 2 is a transfer unit that controls frame transfer between a plurality of ports 4 by processing of a hardware circuit. The interface LSI 2 includes a second control unit 20, a memory 40, and a transfer DB 5. The interface LSI 2 controls transfer between a plurality of ports 4 while reading and writing information in the transfer DB 5 for the frame 203 received at the port 4 and the frame 204 transmitted from the port 4. The frames 203 and 204 include a control frame and a user data frame.

第2制御部20は、フレームの転送に関する制御処理を行う。第2制御部20は、ハードウェア回路により構成され、ハードウェア処理を行う。第2制御部20は、例えばASICやFPGAで構成される。第2制御部20の処理は、メモリ40に格納されているフィルタ6を含む設定情報を読み書きする処理を含む。第2制御部20は、第1制御部10から受信した制御パケットに従い、フィルタ6の情報を書き替える。   The second control unit 20 performs control processing related to frame transfer. The second control unit 20 is configured by a hardware circuit and performs hardware processing. The second control unit 20 is composed of, for example, an ASIC or FPGA. The process of the second control unit 20 includes a process of reading and writing setting information including the filter 6 stored in the memory 40. The second control unit 20 rewrites the information of the filter 6 according to the control packet received from the first control unit 10.

メモリ40は、第2制御部20から直接アクセス可能な第2記憶部であり、フィルタ6を含む各種の設定情報が格納される。メモリ40は、例えばレジスタやRAMで構成される。   The memory 40 is a second storage unit that is directly accessible from the second control unit 20, and stores various setting information including the filter 6. The memory 40 is composed of a register and a RAM, for example.

フィルタ6は、後述の図7に示すが、リング冗長機能による制御状態に応じて、ポート4毎に、入口及び出口における各種フレームに関する開閉状態が設定される。フィルタ6は、例えば特定のレジスタまたは表で構成される。   As shown in FIG. 7 to be described later, the filter 6 is set to open / close states related to various frames at the entrance and the exit for each port 4 according to the control state by the ring redundancy function. The filter 6 is constituted by a specific register or table, for example.

複数のポート4は、イーサネット(登録商標)等の外部インタフェースに対応しており、フレームを送受信する機能を有し、図1のようにリンクを通じて他の中継装置のポートに接続される。   The plurality of ports 4 correspond to external interfaces such as Ethernet (registered trademark), have a function of transmitting and receiving frames, and are connected to ports of other relay apparatuses through links as shown in FIG.

転送DB5は、ポートとMACアドレスとの対応関係の情報が学習情報として格納されるデータベースである。インタフェースLSI2は、転送DB5に対する学習情報の書き込み、検索、消去、等を行う機能を有する。   The transfer DB 5 is a database in which information on correspondence between ports and MAC addresses is stored as learning information. The interface LSI 2 has a function of writing, searching, erasing, etc., learning information with respect to the transfer DB 5.

インタフェースLSI2は、外部からのフレーム203をポート4で受信すると、転送DB5に、フレーム203を受信したポート4のポートIDと、フレーム203の送信元MACアドレスとの対応関係の情報を格納して学習する。インタフェースLSI2は、フレーム203の宛先MACアドレスをキーに転送DB5を検索し、宛先MACアドレスに対応付けられたポートIDが得られた場合、当該ポートIDのポート4へフレーム203を転送し、当該ポート4から外部へ送信する。   When the interface LSI 2 receives the frame 203 from the outside at the port 4, it learns by storing the information on the correspondence between the port ID of the port 4 that received the frame 203 and the transmission source MAC address of the frame 203 in the transfer DB 5. To do. The interface LSI 2 searches the transfer DB 5 using the destination MAC address of the frame 203 as a key. When the port ID associated with the destination MAC address is obtained, the interface LSI 2 transfers the frame 203 to the port 4 of the port ID. 4 to send to the outside.

また、インタフェースLSI2や制御LSI1は、内部で生成した制御フレームを、パス212,213を通じてポート4から外部へ送信する。また、インタフェースLSI2や制御LSI1は、ポート4で受信した制御フレームを、パス212,213を通じて受け取り、制御フレームの内容に従い、処理を行う。   Further, the interface LSI 2 and the control LSI 1 transmit internally generated control frames from the port 4 to the outside through paths 212 and 213. Further, the interface LSI 2 and the control LSI 1 receive the control frame received at the port 4 through the paths 212 and 213 and perform processing according to the contents of the control frame.

インタフェースLSI2は、ポート4で受信するフレーム203やポート4から送信するフレーム204について、フィルタ6を参照して所定のフィルタリングを適用する処理を行う。インタフェースLSI2は、フィルタ6の設定内容において例えば当該ポート4の入口側が閉状態の場合、当該ポート4で受信するフレーム203を破棄し、当該ポート4の出口側が閉状態の場合、当該ポート4から送信するフレーム204を破棄する。   The interface LSI 2 refers to the filter 6 and applies predetermined filtering to the frame 203 received at the port 4 and the frame 204 transmitted from the port 4. The interface LSI 2 discards the frame 203 received at the port 4 when the entry side of the port 4 is closed in the setting contents of the filter 6, for example, and transmits from the port 4 when the exit side of the port 4 is closed. The frame 204 to be discarded is discarded.

中継装置の内部での処理概要は以下である。制御LSI1の第1制御部10は、リング冗長機能による制御状態に応じて、パケットメモリ30のリスト7から、フィルタ6の設定の切り替えのために必要な、複数の制御パケットからなるセットを選択して読み出す。第1制御部10は、読み出したセットを、要求のパケット201として、パス211を通じて、インタフェースLSI2の第2制御部20へ送信する。この要求は、制御状態に応じた設定の切り替えのためにフィルタ6の表の情報を書き替える指示に相当する。   The outline of processing inside the relay apparatus is as follows. The first control unit 10 of the control LSI 1 selects a set of a plurality of control packets necessary for switching the setting of the filter 6 from the list 7 of the packet memory 30 according to the control state by the ring redundancy function. Read out. The first control unit 10 transmits the read set as a request packet 201 to the second control unit 20 of the interface LSI 2 through the path 211. This request corresponds to an instruction to rewrite the information in the table of the filter 6 for switching the setting according to the control state.

インタフェースLSI2の第2制御部20は、制御LSI1の第1制御部10から、パス211を通じて、要求のパケット201を受信する。第2制御部20は、受信した要求のパケット201における、セットの複数の制御パケットに従い、メモリ40のフィルタ6の情報を書き替えることにより、制御状態に応じた設定状態へ切り替える。   The second control unit 20 of the interface LSI 2 receives the request packet 201 from the first control unit 10 of the control LSI 1 through the path 211. The second control unit 20 switches to the setting state corresponding to the control state by rewriting the information of the filter 6 of the memory 40 according to the plurality of sets of control packets in the received request packet 201.

第2制御部20は、フィルタ6の設定の切り替えの処理を成功した場合、成功を示す応答のパケット202を、パス211を通じて、制御LSI1の第1制御部10へ送信する。第1制御部10は、成功を示す応答のパケット202を受信し、一連の処理の完了を認識する。   When the switching of the setting of the filter 6 is successful, the second control unit 20 transmits a response packet 202 indicating success to the first control unit 10 of the control LSI 1 through the path 211. The first control unit 10 receives the response packet 202 indicating success and recognizes the completion of a series of processes.

第2制御部20は、フィルタ6の設定の切り替えの処理を失敗した場合、失敗を示す応答のパケット202を、パス211を通じて、制御LSI1の第1制御部10へ送信する。第1制御部10は、失敗を示す応答のパケット202を受信した場合、あるいは、応答のパケット202を受信できない場合、要求のパケット201の再送によるリトライを行う。第2制御部20は、リトライの要求のパケット201を受信した場合、設定の切り替えの処理をリトライする。   If the process of switching the setting of the filter 6 fails, the second control unit 20 transmits a response packet 202 indicating the failure to the first control unit 10 of the control LSI 1 through the path 211. When receiving the response packet 202 indicating failure, or when the first control unit 10 cannot receive the response packet 202, the first control unit 10 performs a retry by retransmitting the request packet 201. When the second control unit 20 receives the retry request packet 201, the second control unit 20 retries the setting switching process.

中継装置は、その他、図示しないが、設定機能に対応したユーザインタフェースを有する。例えば、管理者は、運用管理保守用の端末から中継装置にアクセスし、設定機能により提供される画面において、中継装置の設定の状態の確認や、設定の変更が可能である。   The relay device has a user interface corresponding to the setting function, although not shown. For example, the administrator can access the relay device from a terminal for operation management maintenance, and can check the setting state of the relay device and change the setting on the screen provided by the setting function.

上記のように、実施の形態1の中継装置は、制御LSI1のパケットメモリ30から読み出した制御パケットにより、インタフェースLSI2のフィルタ6の情報を書き替える構成である。これにより、実施の形態1の中継装置は、リング冗長機能に対応して、設定及び動作を高速に切り替え可能である。   As described above, the relay apparatus according to the first embodiment is configured to rewrite the information of the filter 6 of the interface LSI 2 with the control packet read from the packet memory 30 of the control LSI 1. Thereby, the relay apparatus of Embodiment 1 can switch a setting and operation | movement at high speed corresponding to a ring redundancy function.

[制御LSI]
図3は、実施の形態1の中継装置の制御LSI1の構成を示す。制御LSI1は、第1制御部10、パケットメモリ30、及びリング冗長機能処理部15を有する。
[Control LSI]
FIG. 3 shows a configuration of the control LSI 1 of the relay apparatus according to the first embodiment. The control LSI 1 includes a first control unit 10, a packet memory 30, and a ring redundancy function processing unit 15.

リング冗長機能処理部15は、図1のリング冗長機能に対応した処理が実装された部分である。リング冗長機能処理部15は、中継装置の外部から受信した制御フレームや、中継装置の内部で生成された情報に従い、リング冗長機能に対応した制御処理を行う。リング冗長機能処理部15は、制御状態301の情報を出力する。制御状態301の情報は、リング冗長機能のうちのどの機能によるどのような制御状態であるかを表す情報である。   The ring redundancy function processing unit 15 is a part on which processing corresponding to the ring redundancy function of FIG. 1 is implemented. The ring redundancy function processing unit 15 performs control processing corresponding to the ring redundancy function according to a control frame received from the outside of the relay device and information generated inside the relay device. The ring redundancy function processing unit 15 outputs information on the control state 301. The information of the control state 301 is information indicating what control state is based on which of the ring redundancy functions.

制御状態は、独立な機能ごとに複数のグループに分割される。実施の形態1では、次の3つの機能を3つのグループGR0〜GR2に分割する。第1グループGR0は、機能51に関するグループである。第2グループGR1は、機能52のうち制御フレームに関するグループである。第3グループGR2は、機能52のうちユーザデータフレームに関するグループである。   The control state is divided into a plurality of groups for each independent function. In the first embodiment, the following three functions are divided into three groups GR0 to GR2. The first group GR0 is a group related to the function 51. The second group GR1 is a group related to the control frame in the function 52. The third group GR2 is a group related to the user data frame in the function 52.

実施の形態1では、パケットメモリ30には、3つのリスト71〜73が格納されている。3つのリスト71〜73は、3つのグループGR0〜GR2に対応付けられる。リスト71は、第1グループGR0に対応した複数の種類の制御パケットを格納する。リスト72は、第2グループGR1に対応した複数の種類の制御パケットを格納する。リスト73は、第3グループGR2に対応した複数の種類の制御パケットを格納する。   In the first embodiment, the packet memory 30 stores three lists 71 to 73. The three lists 71 to 73 are associated with the three groups GR0 to GR2. The list 71 stores a plurality of types of control packets corresponding to the first group GR0. The list 72 stores a plurality of types of control packets corresponding to the second group GR1. The list 73 stores a plurality of types of control packets corresponding to the third group GR2.

実施の形態1の中継装置は、リング冗長機能及びその制御状態に応じて、対応するグループのリスト7を選択して、複数の制御パケットからなるセットを読み出し、フィルタ6の設定を切り替える。各グループのリスト7を用いた設定の切り替えは、独立に実行可能である。   The relay apparatus according to the first embodiment selects the corresponding group list 7 according to the ring redundancy function and the control state thereof, reads a set of a plurality of control packets, and switches the setting of the filter 6. Switching between settings using the list 7 of each group can be performed independently.

第1制御部10は、送信制御部11、送信部12、及び設定部13を有する。送信制御部11は、グループ分割部11A、検出部11B、及び優先度制御部11Cを含む。送信部12は、選択信号生成部12A、選択表8、及びパケット送信部12Cを含む。   The first control unit 10 includes a transmission control unit 11, a transmission unit 12, and a setting unit 13. The transmission control unit 11 includes a group division unit 11A, a detection unit 11B, and a priority control unit 11C. The transmission unit 12 includes a selection signal generation unit 12A, a selection table 8, and a packet transmission unit 12C.

第1制御部10は、リング冗長機能処理部15からの制御状態301の情報を送信制御部11に入力する。送信制御部11は、制御状態301の情報をグループ分割部11Aに入力する。   The first control unit 10 inputs information on the control state 301 from the ring redundancy function processing unit 15 to the transmission control unit 11. The transmission control unit 11 inputs information on the control state 301 to the group division unit 11A.

グループ分割部11Aは、制御状態301を所定のグループに分割し、グループ毎の状態を表す変換信号302として出力する。この変換は、送信部12での処理のために必要な変換であり、制御状態301に応じて選択表8の情報を選択するためのマッピングを含む。変換信号302は、検出部11Bに入力される。   The group division unit 11A divides the control state 301 into predetermined groups, and outputs it as a conversion signal 302 representing the state of each group. This conversion is necessary for processing in the transmission unit 12 and includes mapping for selecting information in the selection table 8 according to the control state 301. The conversion signal 302 is input to the detection unit 11B.

検出部11Bは、変換信号302に基づいて、グループ毎に状態変化を検出し、変換信号302及びそのグループを指定するグループ信号306を出力する。   The detection unit 11B detects a state change for each group based on the conversion signal 302, and outputs the conversion signal 302 and a group signal 306 that designates the group.

優先度制御部11Cには、変換信号302及びグループ信号306が入力される。優先度制御部11Cは、グループ信号306及び所定の優先度に応じて、変換信号302から最優先のグループの信号を選択して、その変換信号302を出力する。所定の優先度として、具体的には、グループGR0,GR1,GR2の順に優先度が高い。例えば、グループGR0の方が、グループGR1よりも優先される。送信制御部11は、変換信号302及びグループ信号306を、送信部12へ出力する。   The conversion signal 302 and the group signal 306 are input to the priority control unit 11C. The priority control unit 11C selects a signal of the highest priority group from the converted signal 302 according to the group signal 306 and a predetermined priority, and outputs the converted signal 302. As the predetermined priority, specifically, the priority is higher in the order of the groups GR0, GR1, and GR2. For example, the group GR0 has priority over the group GR1. The transmission control unit 11 outputs the converted signal 302 and the group signal 306 to the transmission unit 12.

送信部12は、制御状態301に応じた変換信号302及びグループ信号306を選択信号生成部12Aに入力する。選択信号生成部12Aは、変換信号302及びグループ信号306に基づいて、選択表8のインデックスを表す選択信号304を生成する。   The transmission unit 12 inputs the conversion signal 302 and the group signal 306 corresponding to the control state 301 to the selection signal generation unit 12A. The selection signal generation unit 12 </ b> A generates a selection signal 304 representing an index of the selection table 8 based on the converted signal 302 and the group signal 306.

また、第1制御部10は、外部から、機能あるいはグループの指定に関する指示310が入力された場合、指示310に従い、設定部13により、選択信号生成部12A(後述の図4の設定レジスタ12B)に、特定の機能に対応するグループを指定する設定ができる。指示310は、リング冗長機能処理部15からの指示、中継装置内の他の部位からの指示、管理者による指示、等が挙げられる。   In addition, when an instruction 310 regarding function or group designation is input from the outside, the first control unit 10 performs a selection signal generation unit 12A (setting register 12B in FIG. 4 described later) by the setting unit 13 in accordance with the instruction 310. In addition, it is possible to specify a group corresponding to a specific function. Examples of the instruction 310 include an instruction from the ring redundancy function processing unit 15, an instruction from another part in the relay device, and an instruction by an administrator.

送信部12は、選択信号304により選択表8を参照し、選択表8からパケットメモリ30のリスト7のアドレスを得る。そして、送信部12は、リスト7のアドレスから、複数の制御パケットからなるセット305を選択して読み出す。   The transmission unit 12 refers to the selection table 8 using the selection signal 304 and obtains the address of the list 7 in the packet memory 30 from the selection table 8. Then, the transmission unit 12 selects and reads out the set 305 including a plurality of control packets from the addresses in the list 7.

パケット送信部12Cは、読み出されたセット305を、図2の要求のパケット201として構成し、パス211を通じて、インタフェースLSI2の第2制御部20へ送信する。   The packet transmission unit 12 </ b> C configures the read set 305 as the request packet 201 in FIG. 2, and transmits the packet to the second control unit 20 of the interface LSI 2 through the path 211.

実施の形態1の中継装置は、パケットメモリ30の構成に合わせて、選択表8を設けている。選択表8には、制御状態301に応じてパケットメモリ30のリスト7から制御パケットを選択して読み出すための対応付けの情報が設定されている。選択表8の対応付けの情報は、機能に応じたグループのリスト7を選択し、そのリスト7から制御状態に応じた必要な制御パケットのセットを選択するための情報である。   The relay apparatus according to the first embodiment is provided with a selection table 8 in accordance with the configuration of the packet memory 30. In the selection table 8, association information for selecting and reading out control packets from the list 7 of the packet memory 30 according to the control state 301 is set. The association information in the selection table 8 is information for selecting a group list 7 corresponding to the function and selecting a necessary control packet set corresponding to the control state from the list 7.

更に、実施の形態1の中継装置は、パケットメモリ30及び選択表8の内容を可変に設定する設定機能を提供する。設定部13は、この設定機能に対応した処理機能も備える。設定部13は、パケットメモリ30のリスト7に登録する制御パケット、及びそれに合わせた選択表8の情報の設定が可能である。例えば、リング冗長機能やフィルタ6の構成が更新される場合、それに合わせて、フィルタ6の設定の切り替えのために必要な制御パケットの構成も変わる場合がある。その場合、管理者は、設定機能を利用する。管理者は、端末から中継装置にアクセスし、設定機能により提供される画面で、パケットメモリ30のリスト7の制御パケット及び選択表8の情報を表示して確認できる。そして、管理者は、画面で、パケットメモリ30のリスト7に登録する制御パケット、及び選択表8の情報を変更し、設定更新を実行する。これに従い、設定部13は、パケットメモリ30のリスト7の制御パケット及び選択表8の情報の設定を更新する処理を行う。   Furthermore, the relay apparatus according to the first embodiment provides a setting function for variably setting the contents of the packet memory 30 and the selection table 8. The setting unit 13 also includes a processing function corresponding to this setting function. The setting unit 13 can set control packets to be registered in the list 7 of the packet memory 30 and information in the selection table 8 corresponding to the control packets. For example, when the ring redundancy function or the configuration of the filter 6 is updated, the configuration of the control packet necessary for switching the setting of the filter 6 may change accordingly. In that case, the administrator uses the setting function. The administrator can access the relay apparatus from the terminal and display and check the control packet in the list 7 and the information in the selection table 8 on the screen provided by the setting function. Then, the administrator changes the control packet registered in the list 7 of the packet memory 30 and the information in the selection table 8 on the screen, and executes the setting update. In accordance with this, the setting unit 13 performs a process of updating the setting of the control packet in the list 7 and the information in the selection table 8 in the packet memory 30.

[第1制御部の処理例(1)]
図4は、第1制御部10の処理例として、選択表8を参照するまでの処理例を示す。本処理例では、制御状態301は、図1の機能51による、中継装置100Dの2個のポート4g,4hの制御状態とし、「第1状態」から「第2状態」へ変化する場合とする。「第1状態」は、通常時、リンク9cの正常の状態に応じて、ポート4gを開状態にする制御状態である。「第2状態」は、リンク9cの障害110の状態に応じて、ポート4gを閉状態にする制御状態である。なお、ポート4gの開閉状態の制御に合わせて、ポート4hも開閉状態が制御される。本処理例では、「第1状態」は、ポート4gを開状態、かつポート4hを開状態とし、「第2状態」は、ポート4gを閉状態、かつポート4hを開状態とする。
[Processing example of first control unit (1)]
FIG. 4 shows a processing example until the selection table 8 is referred to as a processing example of the first control unit 10. In this processing example, the control state 301 is a control state of the two ports 4g and 4h of the relay apparatus 100D by the function 51 of FIG. 1, and changes from the “first state” to the “second state”. . The “first state” is a control state in which the port 4g is opened in the normal state according to the normal state of the link 9c. The “second state” is a control state in which the port 4g is closed according to the state of the failure 110 of the link 9c. Note that the opening / closing state of the port 4h is also controlled in accordance with the control of the opening / closing state of the port 4g. In the present processing example, the “first state” makes the port 4g open and the port 4h open, and the “second state” makes the port 4g closed and the port 4h open.

送信制御部11には、リング冗長機能処理部15から、制御状態301として、機能51による「第2状態」が入力される。送信制御部11は、グループ分割部11Aにより「第2状態」を変換信号302へ変換し、検出部11Bへ出力する。このとき、「第1状態」から「第2状態」への変化により、機能51に対応付けられるグループにおける第1グループGR0のみが変化するとする。検出部11Bは、この第1グループGR0の変化を検出し、第1グループGR0を指定するグループ信号306を出力する。また、検出部11Bは、変換信号302をそのまま出力する。変換信号302及びグループ信号306は、優先度制御部11Cへ入力される。このグループ信号306が第1グループGR0を示しているため、優先度制御部11Cにより、変換信号302のうちの第1グループGR0の変換信号302のみが送信部12へ出力される。また、それに合わせて第1グループGR0を示すグループ信号306も送信部12へ出力される。   The “second state” by the function 51 is input as the control state 301 from the ring redundancy function processing unit 15 to the transmission control unit 11. The transmission control unit 11 converts the “second state” into the converted signal 302 by the group dividing unit 11A and outputs the converted signal 302 to the detecting unit 11B. At this time, it is assumed that only the first group GR0 in the group associated with the function 51 changes due to the change from the “first state” to the “second state”. The detection unit 11B detects the change in the first group GR0 and outputs a group signal 306 that designates the first group GR0. The detection unit 11B outputs the converted signal 302 as it is. The conversion signal 302 and the group signal 306 are input to the priority control unit 11C. Since this group signal 306 indicates the first group GR0, only the converted signal 302 of the first group GR0 of the converted signals 302 is output to the transmitting unit 12 by the priority control unit 11C. A group signal 306 indicating the first group GR0 is also output to the transmission unit 12 accordingly.

送信部12の選択信号生成部12Aは、設定レジスタ12B及び加算部12Dを含む。   The selection signal generation unit 12A of the transmission unit 12 includes a setting register 12B and an addition unit 12D.

送信部12の選択信号生成部12Aには、「第2状態」に応じた変換信号302及びグループ信号306が入力される。この変換信号302は、ポート制御状態に対応し、「GRn_REF_STAT(P2,P1)」といった形式である。P1,P2は、ポートIDを示す。例えば、図1の中継装置100D内において、ポート4gのポートIDが「P1」、ポート4hのポートIDが「P2」とする。ポート毎の状態の値として、例えば、値0を開状態、値1を閉状態とする。「STAT(P2,P1)」の各ポートIDの位置には、ポート毎の状態の値が格納される。「第1状態」の場合、「P1」の状態が値0、「P2」の状態が値0である。「第2状態」の場合、「P1」の状態が値1、「P2」の状態が値0である。「第2状態」の場合の変換信号302は、「GRn_REF_STAT(0,1)」のようになり、この値は十進数で例えば1になる。   A conversion signal 302 and a group signal 306 corresponding to the “second state” are input to the selection signal generation unit 12A of the transmission unit 12. The conversion signal 302 corresponds to the port control state and has a format of “GRn_REF_STAT (P2, P1)”. P1 and P2 indicate port IDs. For example, in the relay device 100D of FIG. 1, it is assumed that the port ID of the port 4g is “P1” and the port ID of the port 4h is “P2”. As the state value for each port, for example, a value 0 is an open state and a value 1 is a closed state. A state value for each port is stored at the position of each port ID of “STAT (P2, P1)”. In the case of the “first state”, the state of “P1” is 0, and the state of “P2” is 0. In the case of the “second state”, the state of “P1” is the value 1 and the state of “P2” is the value 0. The conversion signal 302 in the “second state” is like “GRn_REF_STAT (0, 1)”, and this value is, for example, 1 in decimal.

グループ信号306は、「GRn」で示すグループIDを含む。グループIDは、GR0〜GR2とする。グループ信号306は、GR0〜GR2のうち1つが指定される。本例では、グループ信号306は、機能51に応じた第1グループGR0が指定される。   Group signal 306 includes a group ID indicated by “GRn”. The group ID is GR0 to GR2. The group signal 306 is designated as one of GR0 to GR2. In this example, the group signal 306 designates the first group GR0 corresponding to the function 51.

送信部12は、入力されたグループ信号306に応じて、設定レジスタ12Bから、第1グループGR0に応じた選択表8のインデックスのオフセット信号303を読み出す。オフセット信号303は、「GRn_SEL_TBL_OFFSET」といった形式である。例えば、第1グループGR0に応じたオフセット信号303の値は十進数で0であり、第2グループGR1に応じたオフセット信号303の値は十進数で4である。   The transmission unit 12 reads the offset signal 303 of the index of the selection table 8 corresponding to the first group GR0 from the setting register 12B according to the input group signal 306. The offset signal 303 has a format such as “GRn_SEL_TBL_OFFSET”. For example, the value of the offset signal 303 corresponding to the first group GR0 is 0 in decimal, and the value of the offset signal 303 corresponding to the second group GR1 is 4 in decimal.

選択信号生成部12Aの設定レジスタ12Bには、予め、設定部13により、グループの指定に応じたオフセット信号303が設定可能である。第1制御部10は、例えば中継装置の起動時あるいは必要な時に、設定部13により、設定レジスタ12Bに、特定の機能に対応するグループを指定する設定を行う。   In the setting register 12B of the selection signal generating unit 12A, the setting unit 13 can set an offset signal 303 corresponding to the group designation in advance. For example, when the relay device is activated or necessary, the first control unit 10 performs setting for specifying a group corresponding to a specific function in the setting register 12B by the setting unit 13.

選択表8には、制御状態301及びグループに応じた選択信号304の値と、パケットメモリ30のリスト7のアドレスとの対応付けがビットマップで設定されている。選択表8は、インデックス81の列と、パケット選択ビット82の列とを含む。インデックス81毎の1行は、1つの制御状態に対応する情報である。インデックス81を十進数で示す。選択信号304の値は、インデックス81を選択する値となっている。パケット選択ビット82は、パケットメモリ30のリスト7の複数のアドレスを指し示す情報である。   In the selection table 8, the correspondence between the value of the selection signal 304 corresponding to the control state 301 and the group and the address of the list 7 of the packet memory 30 is set as a bitmap. The selection table 8 includes an index 81 column and a packet selection bit 82 column. One row for each index 81 is information corresponding to one control state. The index 81 is indicated by a decimal number. The value of the selection signal 304 is a value for selecting the index 81. The packet selection bit 82 is information indicating a plurality of addresses in the list 7 of the packet memory 30.

選択表8は、カバーする必要がある複数の制御状態に応じた分の情報が、インデックス81毎の行の情報として設定される。複数の制御状態は、選択表8のインデックス81の複数の値にマッピングされる。送信制御部11での変換は、このマッピングを含む。例えば、機能51に関して4つの制御状態がある。これら4つの制御状態は、機能51に対応するグループGR0の表401におけるインデックス81が「0」〜「3」の行にマッピングされている。   In the selection table 8, information corresponding to a plurality of control states that need to be covered is set as row information for each index 81. The plurality of control states are mapped to the plurality of values of the index 81 of the selection table 8. The conversion in the transmission control unit 11 includes this mapping. For example, there are four control states for function 51. In these four control states, the index 81 in the table 401 of the group GR0 corresponding to the function 51 is mapped to the rows “0” to “3”.

選択表8は、グループ毎の表が連結された構成である。図4の選択表8は、第1グループGR0の表401と第2グループGR1の表402との2つの表の部分を示す。オフセット信号303の値は、選択表8の中のグループ毎の表の先頭のインデックス81を指す値となっている。送信部12は、変換信号302とオフセット信号303とを加算部12Dで加算することにより、各グループにおける変換信号に対する、選択表8のインデックスを生成し、選択信号304とする。   The selection table 8 has a configuration in which tables for each group are linked. The selection table 8 in FIG. 4 shows two table parts, a table 401 of the first group GR0 and a table 402 of the second group GR1. The value of the offset signal 303 is a value indicating the head index 81 of the table for each group in the selection table 8. The transmission unit 12 adds the conversion signal 302 and the offset signal 303 by the addition unit 12D, thereby generating an index of the selection table 8 for the conversion signal in each group, and setting it as the selection signal 304.

送信部12は、選択信号304の値により、選択表8のインデックス81を検索し、該当するインデックス81の行から、パケット選択ビット82の値を読み出す。本例では、「第2状態」に応じて、変換信号302の値が1、オフセット信号303の値が0、選択信号304の値が1である。その選択信号304の値に応じて、第1グループGR0の表401におけるインデックス81が「1」の行が選択され、パケット選択ビット82の値(0,1,0,1)が読み出される。   The transmission unit 12 searches the index 81 of the selection table 8 based on the value of the selection signal 304, and reads the value of the packet selection bit 82 from the row of the corresponding index 81. In this example, the value of the conversion signal 302 is 1, the value of the offset signal 303 is 0, and the value of the selection signal 304 is 1 according to the “second state”. In accordance with the value of the selection signal 304, the row in which the index 81 in the table 401 of the first group GR0 is “1” is selected, and the value (0, 1, 0, 1) of the packet selection bit 82 is read out.

[パケットメモリの構成]
図5は、実施の形態1におけるパケットメモリ30の構成を示す。図5の(a)は、第1グループGR0に対応したリスト71の構成を示す。図5の(b)は、第2グループGR1に対応したリスト72の構成を示す。パケットメモリ30は、アドレス31毎の記憶領域に、制御パケット32を格納している。格納される制御パケット32のサイズは、制御内容及びフィルタ6の構成に応じた所定のサイズである。
[Configuration of packet memory]
FIG. 5 shows a configuration of the packet memory 30 according to the first embodiment. FIG. 5A shows the configuration of the list 71 corresponding to the first group GR0. FIG. 5B shows the configuration of the list 72 corresponding to the second group GR1. The packet memory 30 stores a control packet 32 in a storage area for each address 31. The size of the control packet 32 to be stored is a predetermined size according to the control content and the configuration of the filter 6.

リスト71には、4つのブロック511〜514に、パケット「A」〜「H」で示す8種類の8個の制御パケットが格納されている。第1のブロック511において、アドレス31が「0−0」の記憶領域には、パケット「A」が格納され、「0−1」の記憶領域には、パケット「B」が格納されている。パケット「A」とパケット「B」とは、関係する2種類の制御パケットである。パケット「A」は、「設定の無効化」の制御パケット501であり、パケット「B」は、「設定の有効化」の制御パケット502である。この「設定」とは、実施の形態1では、フィルタ6の所定の設定であり、具体的にはポートでのフレームの廃棄を指す。「設定の無効化」とは、廃棄を無効の状態にすること、すなわち開状態にすることに相当する。「設定の有効化」とは、廃棄を有効の状態にすること、すなわち閉状態にすることに相当する。   The list 71 stores eight control packets of eight types indicated by packets “A” to “H” in four blocks 511 to 514. In the first block 511, the packet “A” is stored in the storage area whose address 31 is “0-0”, and the packet “B” is stored in the storage area “0-1”. Packets “A” and “B” are two types of related control packets. The packet “A” is a control packet 501 for “setting invalidation”, and the packet “B” is a control packet 502 for “setting validating”. This “setting” is a predetermined setting of the filter 6 in the first embodiment, and specifically refers to discard of a frame at a port. “Disabling the setting” corresponds to disabling discarding, that is, opening. The “validation of setting” is equivalent to setting the discarding to a valid state, that is, a closed state.

同様に、他のブロック512〜514には、他のパケット「C」〜「H」が格納されている。これらのパケット「A」〜「H」は、それぞれ、「設定の無効化」の制御パケットと「設定の有効化」の制御パケットとの2種類に大別される。なお、「設定の無効化」の制御パケットを実線の四角、「設定の有効化」の制御パケットを破線の四角で示す。   Similarly, the other blocks 512 to 514 store other packets “C” to “H”. These packets “A” to “H” are roughly classified into two types, ie, “setting invalidation” control packets and “setting validation” control packets. The “setting invalidation” control packet is indicated by a solid square, and the “setting validating” control packet is indicated by a dashed square.

リスト72には、4つのブロック515〜518に、パケット「I」〜「P」で示す8種類の8個の制御パケットが格納されている。図示しないが、同様に、リスト73には、4つのブロックに、8種類の8個の制御パケットが格納されている。それらのパケットは、同様に、「設定の無効化」の制御パケットと「設定の有効化」の制御パケットとの2種類に大別される。   In the list 72, eight types of eight control packets indicated by packets “I” to “P” are stored in four blocks 515 to 518. Although not shown, similarly, the list 73 stores eight types of eight control packets in four blocks. Similarly, these packets are roughly classified into two types: a “setting invalidation” control packet and a “setting validation” control packet.

図5の(c)は、第1グループGR0のリスト71の場合における、複数の種類の制御パケット32の内容の具体例を表で示す。この表は、列として、「パケット」、「ポートID」、「イングレス/イーグレス」、「設定の無効化/設定の有効化」がある。「パケット」は、パケット「A」〜「H」を示す。「ポートID」は、例えば中継装置の2個のポート「P1」「P2」の区別を示す。「イングレス/イーグレス」は、当該ポートにおける、イングレスとイーグレスとの区別を示す。イングレスは入口及び受信側に対応し、イーグレスは出口及び送信側に対応する。「設定の無効化/設定の有効化」は、「設定の無効化」を値0で示し、「設定の有効化」を値1で示す。   FIG. 5C is a table showing specific examples of contents of a plurality of types of control packets 32 in the case of the list 71 of the first group GR0. This table includes, as columns, “packet”, “port ID”, “ingress / egress”, and “setting invalidation / setting validation”. “Packet” indicates packets “A” to “H”. “Port ID” indicates, for example, a distinction between two ports “P1” and “P2” of the relay apparatus. “Ingress / Egress” indicates a distinction between ingress and egress at the port. Ingress corresponds to the entrance and reception side, and egress corresponds to the exit and transmission side. “Invalidation of setting / validation of setting” indicates “invalidation of setting” with a value of 0 and “validation of setting” with a value of 1.

パケット「A」〜「H」は、中継装置の2個のポート「P1」「P2」の入口及び出口におけるフレームに関する開閉状態の組合せによる、8種類の制御パケットである。「P1」/「P2」、入口/出口、開状態(0)/閉状態(1)、という3つの要素の組合せで、2×2×2=8通りの状態がある。フレームは、制御フレーム及びユーザデータフレームを区別せずに含む。   Packets “A” to “H” are eight types of control packets based on combinations of open / close states related to frames at the entrance and exit of the two ports “P1” and “P2” of the relay apparatus. There are 2 × 2 × 2 = 8 states in combination of three elements of “P1” / “P2”, inlet / outlet, open state (0) / closed state (1). The frame includes a control frame and a user data frame without distinction.

パケット「A」は、「P1」の入口側の廃棄の無効化、パケット「B」は、「P1」の入口側の廃棄の有効化の制御パケットである。パケット「C」は、「P2」の入口側の無効化、パケット「D」は、「P2」の入口側の有効化の制御パケットである。パケット「E」は、「P1」の出口側の無効化、パケット「F」は、「P1」の出口側の有効化の制御パケットである。パケット「G」は、「P2」の出口側の無効化、パケット「H」は、「P2」の出口側の有効化の制御パケットである。   The packet “A” is a control packet for invalidating discard on the entrance side of “P1”, and the packet “B” is a control packet for validating discard on the entrance side of “P1”. The packet “C” is an invalidation control packet on the entrance side of “P2”, and the packet “D” is an validation control packet on the entrance side of “P2”. The packet “E” is an invalidation control packet on the exit side of “P1”, and the packet “F” is an validation control packet on the exit side of “P1”. The packet “G” is an invalidation control packet on the exit side of “P2”, and the packet “H” is an validation control packet on the exit side of “P2”.

同様に、リスト72,73についても、機能52の制御内容に応じた複数の種類の制御パケットが格納される。第2グループGR1のリスト72は、中継装置の2個のポート「P1」「P2」の入口及び出口における、制御フレームに関する開閉状態(廃棄の無効化または有効化)の組合せによる、8種類のパケット「I」〜「P」を格納する。第3グループGR2のリスト73は、中継装置の2個のポート「P1」「P2」の入口及び出口における、ユーザデータフレームに関する開閉状態の組合せによる、8種類のパケットを格納する。   Similarly, in the lists 72 and 73, a plurality of types of control packets corresponding to the control contents of the function 52 are stored. The list 72 of the second group GR1 includes eight types of packets according to combinations of open / close states (invalidation / validation of discard) regarding the control frame at the entrance and exit of the two ports “P1” and “P2” of the relay apparatus. “I” to “P” are stored. The list 73 of the third group GR2 stores eight types of packets according to combinations of open / close states related to user data frames at the entrance and exit of the two ports “P1” and “P2” of the relay device.

パケットメモリ30の使用容量は、必要な制御パケットの数に応じて決まる。リスト71の場合の使用容量は、[1個の制御パケットのサイズ]×8、の分の容量である。   The used capacity of the packet memory 30 is determined according to the number of necessary control packets. The used capacity in the case of the list 71 is a capacity of [size of one control packet] × 8.

[第1制御部の処理例(2)]
図6は、図4に続く第1制御部10による処理例として、選択表8に基づいてパケットメモリ30から制御パケットのセット305を読み出す処理例を示す。
[Processing example of first control unit (2)]
FIG. 6 shows a processing example of reading the control packet set 305 from the packet memory 30 based on the selection table 8 as a processing example by the first control unit 10 following FIG.

第1制御部10の送信部12は、図4のように選択表8から読み出したパケット選択ビット82の値(0,1,0,1)により、パケットメモリ30のリスト71から、複数の制御パケットを選択して読み出す。送信部12は、リスト71の開始位置のブロックSBであるブロック511から、終了位置のブロックEBであるブロック514までの記憶領域において、パケット選択ビット82の各ビットの値で指し示す各アドレス31に格納されている制御パケット32を読み出す。   The transmission unit 12 of the first control unit 10 controls a plurality of controls from the list 71 of the packet memory 30 according to the value (0, 1, 0, 1) of the packet selection bit 82 read from the selection table 8 as shown in FIG. Select and read a packet. In the storage area from the block 511 that is the block SB at the start position of the list 71 to the block 514 that is the block EB at the end position, the transmission unit 12 stores each address 31 indicated by the value of each bit of the packet selection bit 82. The control packet 32 being read is read out.

パケット選択ビット82は、それぞれ有効無効選択ビット83である複数のビットにより構成される。実施の形態1では、パケット選択ビット82は、リスト7から4個のパケットを選択することに対応した、4ビットの構成である。各ビットは、リスト7のブロックを指し示す。パケット選択ビット82の右端列の第1ビットは、リスト7の開始位置のブロックSBである第1のブロックを指し示し、左端列の第4ビットは、終了位置のブロックEBである第4のブロックを指し示す。   The packet selection bit 82 includes a plurality of bits that are valid / invalid selection bits 83. In the first embodiment, the packet selection bit 82 has a 4-bit configuration corresponding to selecting four packets from the list 7. Each bit points to a block in list 7. The first bit in the rightmost column of the packet selection bit 82 indicates the first block that is the block SB at the start position of the list 7, and the fourth bit in the leftmost column indicates the fourth block that is the block EB at the end position. Point to.

有効無効選択ビット83は、1つのブロックの2種類の制御パケットである「設定の無効化」の制御パケットと「設定の有効化」の制御パケットとの一方を選択するための情報である。有効無効選択ビット83における値0は、アドレス32の下位が「0」である奇数行の「設定の無効化」の制御パケットを指し、値1は、アドレス32の下位が「1」である偶数行の「設定の有効化」の制御パケットを指す。   The valid / invalid selection bit 83 is information for selecting one of two types of control packets of one block, a “setting invalidation” control packet and a “setting validating” control packet. A value 0 in the valid / invalid selection bit 83 indicates a control packet of “setting invalidation” in an odd row whose lower order of the address 32 is “0”, and a value 1 is an even number whose lower order of the address 32 is “1”. Refers to the control packet for “validate settings” on the line.

本例では、表401の「1」の行のパケット選択ビット82のうち、第1ビットは、リスト71の第1のブロック511を指す。第1ビットは、値1であるため、第1のブロック511のうちのアドレス31が「0−1」の記憶領域に格納されたパケット「B」を指す。同様に、第2ビットの値0は、第2のブロック512の「1−0」のパケット「C」を指す。第3ビットの値1は、第3のブロック513の「2−1」のパケット「F」を指す。第4ビットの値0は、第4のブロック514の「3−0」のパケット「G」を指す。   In this example, among the packet selection bits 82 in the row “1” of the table 401, the first bit indicates the first block 511 of the list 71. Since the first bit has the value 1, it indicates the packet “B” stored in the storage area in which the address 31 in the first block 511 is “0-1”. Similarly, the value 0 of the second bit indicates the packet “C” of “1-0” in the second block 512. The value 1 of the third bit indicates the packet “F” of “2-1” in the third block 513. The value 0 of the fourth bit indicates the packet “G” of “3-0” of the fourth block 514.

送信部12は、パケットメモリ30のリスト71から、セット305として、4個のパケット「B」「C」「F」「G」を、順に読み出す。このセット305は、「第2状態」に応じてフィルタ6の設定を切り替えるために必要なセットである。すなわち、このセット305は、中継装置100Dのフィルタ6dの設定として、「P1」の入口及び出口で閉状態にし、かつ、「P2」の入口及び出口で開状態にするためのセットである。   The transmission unit 12 sequentially reads four packets “B”, “C”, “F”, and “G” as a set 305 from the list 71 of the packet memory 30. This set 305 is a set necessary for switching the setting of the filter 6 in accordance with the “second state”. That is, this set 305 is a set for setting the filter 6d of the relay device 100D to be closed at the entrance and exit of “P1” and to be open at the entrance and exit of “P2”.

なお、インデックス81が「0」の行が選択された場合、パケット選択ビット82の値が(0,0,0,0)であり、パケット「A」「C」「E」「G」が選択される。このセットは、「P1」及び「P2」を開状態にする。「2」の行が選択された場合、パケット選択ビット82の値が(1,0,1,0)であり、パケット「A」「D」「E」「H」が選択される。このセットは、「P1」を開状態、「P2」を閉状態にする。「3」の行が選択された場合、パケット選択ビット82の値が(1,1,1,1)であり、パケット「B」「D」「F」「H」が選択される。このセットは、「P1」及び「P2」を閉状態にする。   When the row whose index 81 is “0” is selected, the value of the packet selection bit 82 is (0, 0, 0, 0), and the packets “A”, “C”, “E”, and “G” are selected. Is done. This set opens “P1” and “P2”. When the row “2” is selected, the value of the packet selection bit 82 is (1, 0, 1, 0), and packets “A”, “D”, “E”, and “H” are selected. In this set, “P1” is opened and “P2” is closed. When the row “3” is selected, the value of the packet selection bit 82 is (1, 1, 1, 1), and packets “B”, “D”, “F”, and “H” are selected. This set closes “P1” and “P2”.

他のリスト72,73が選択される場合も処理は同様である。例えば、機能52を用いた制御フレームに関する所定の制御状態に応じて、第2グループGR1の表402のインデックス81が「4」の行が選択される。この行のパケット選択ビット82の値は(1,1,0,0)であり、リスト72からパケット「I」「K」「N」「P」が選択される。このセットは、「P1」及び「P2」の入口側の制御フレームに関して開状態、出口側の制御フレームに関して閉状態にする。   The processing is the same when other lists 72 and 73 are selected. For example, in accordance with a predetermined control state related to a control frame using the function 52, a row having an index 81 of “4” in the table 402 of the second group GR1 is selected. The value of the packet selection bit 82 in this row is (1, 1, 0, 0), and packets “I”, “K”, “N”, and “P” are selected from the list 72. This set is open for the control frames on the inlet side of “P1” and “P2” and closed for the control frame on the outlet side.

なお、選択表8のサイズは、パケットメモリ30の制御パケットの数やグループの数に応じる。例えば、1つのグループのリスト7で8個の制御パケットを用いる場合、パケット選択ビット82は、4ビットが必要である。インデックス81のサイズは、カバーする制御状態の数に応じる。第1グループGR0の表401の場合、制御状態の数が4つであり、インデックス81として2ビットが必要であり、パケット選択ビット82として4×4=16ビットが必要である。また、グループの数が3つ、各グループで4つの制御状態がある場合、選択表8は、パケット選択ビット82として3×16=48ビットが必要である。選択表8のサイズは、パケットメモリ30のサイズに比べて十分に小さい。   Note that the size of the selection table 8 depends on the number of control packets and the number of groups in the packet memory 30. For example, when 8 control packets are used in the list 7 of one group, the packet selection bit 82 needs 4 bits. The size of the index 81 depends on the number of control states to be covered. In the case of the table 401 of the first group GR0, the number of control states is four, 2 bits are required as the index 81, and 4 × 4 = 16 bits are required as the packet selection bit 82. Further, when there are three groups and four control states in each group, the selection table 8 requires 3 × 16 = 48 bits as the packet selection bits 82. The size of the selection table 8 is sufficiently smaller than the size of the packet memory 30.

パケット送信部12Cは、読み出されたセット305の各制御パケットにトランザクションIDを付与する。トランザクションIDは、中継装置の内部での制御用のIDであり、例えばインクリメントによる連番である。例えば、第1パケットであるパケット「B」にはトランザクションID=「1」、第4パケットであるパケット「G」にはトランザクションID=「4」が付与される。パケット送信部12Cは、トランザクションIDが付与された複数の制御パケットからなるセット305を、図2の1つの要求のパケット201としてまとめた形として、インタフェースLSI2の第2制御部20へ送信する。第2制御部20は、トランザクションIDの順序で複数の制御パケットを受信し、設定情報の書き替えに使用する。   The packet transmission unit 12C gives a transaction ID to each control packet in the read set 305. The transaction ID is an ID for control inside the relay apparatus, and is a serial number by increment, for example. For example, the transaction ID = “1” is assigned to the packet “B” that is the first packet, and the transaction ID = “4” is assigned to the packet “G” that is the fourth packet. The packet transmission unit 12C transmits the set 305 composed of a plurality of control packets to which the transaction IDs are assigned as a single request packet 201 in FIG. The second control unit 20 receives a plurality of control packets in the order of transaction IDs and uses them for rewriting the setting information.

なお、変形例として、中継装置は、要求のパケット201の送信において、セット305のうちの各制御パケットを、個別の要求のパケット201として順に送信してもよい。また、中継装置は、トランザクションIDの付与を省略してもよい。   As a modification, the relay apparatus may sequentially transmit each control packet in the set 305 as an individual request packet 201 in transmission of the request packet 201. Further, the relay apparatus may omit the transaction ID.

[フィルタの構成例]
図7は、実施の形態1におけるフィルタ6の構成例である表を示す。図7の(a)は、中継装置100Dのフィルタ6dの設定例、図7の(b)は、中継装置100Aのフィルタ6aの設定例を示す。図7のフィルタ6の表は、列として、「ポートID」、「FP/BP」、「イングレス/イーグレス」、「開閉状態」がある。「開閉状態」列は、「全フレーム」列、「制御フレーム」列、「ユーザデータフレーム」列を含む。「全フレーム」は、制御フレーム及びユーザデータフレームの両方を含む。「FP/BP」は、FPで示すフォワーディングポートとBPで示すブロッキングポートとの区別を示す。なお、「FP/BP」の情報は、説明上わかりやすいように設けているが、省略可能である。「開閉状態」は、「制御フレーム」と「ユーザデータフレーム」とで区別して、それぞれ、フレームの廃棄の無効または有効を示す値が格納される。値0は、廃棄が無効の状態、すなわち開状態に相当する。値1は、廃棄が有効の状態、すなわち閉状態に相当する。
[Example of filter configuration]
FIG. 7 shows a table which is a configuration example of the filter 6 in the first embodiment. 7A shows a setting example of the filter 6d of the relay device 100D, and FIG. 7B shows a setting example of the filter 6a of the relay device 100A. The table of the filter 6 in FIG. 7 includes “port ID”, “FP / BP”, “ingress / egress”, and “open / closed state” as columns. The “open / closed state” column includes an “all frames” column, a “control frame” column, and a “user data frame” column. “All frames” includes both control frames and user data frames. “FP / BP” indicates a distinction between a forwarding port indicated by FP and a blocking port indicated by BP. Note that the information “FP / BP” is provided for easy understanding, but may be omitted. The “open / closed state” is distinguished by “control frame” and “user data frame”, and stores a value indicating invalidity or validity of discard of the frame. A value of 0 corresponds to an invalid discarding state, that is, an open state. A value of 1 corresponds to a state in which discarding is effective, that is, a closed state.

図7の(a)のフィルタ6dの設定例は、前述の機能51に関する「第1状態」に相当する。701の行は、中継装置100DのポートIDが「P1」であるポート4gの設定例を示す。「P1」は、フォワーディングポートの状態であり、入口及び出口の両方において、制御フレーム及びユーザデータフレームの両方について、開状態である。702の行は、ポートIDが「P2」であるポート4hの設定例を示す。「P2」は、同様に、フォワーディングポートの状態である。   The setting example of the filter 6d in FIG. 7A corresponds to the “first state” related to the function 51 described above. A row 701 shows a setting example of the port 4g whose port ID of the relay device 100D is “P1”. “P1” is the state of the forwarding port and is open for both control frames and user data frames at both ingress and egress. A row 702 shows a setting example of the port 4h whose port ID is “P2”. “P2” is also the state of the forwarding port.

図7の(b)のフィルタ6aの設定例は、前述の機能52に関する通常時の経路の状態に対応する。703の行は、中継装置100AのポートIDが「P1」であるポート4aの設定例を示す。「P1」は、フォワーディングポートの状態であり、入口及び出口の両方において、制御フレーム及びユーザデータフレームの両方について、開状態である。704の行は、ポートIDが「P2」であるポート4bの設定例を示す。「P2」は、ブロッキングポートの状態であり、入口及び出口の両方において、制御フレームについては開状態、ユーザデータフレームについては閉状態である。なお、この「P2」の設定状態では、「全フレーム」列では値0、「ユーザデータフレーム」列では値1となっている。このような場合、フィルタリングとしては、ユーザデータフレームに関し、値1による廃棄の方が優先的に適用される。   The setting example of the filter 6a in FIG. 7B corresponds to the normal path state related to the function 52 described above. A row 703 shows a setting example of the port 4a in which the port ID of the relay device 100A is “P1”. “P1” is the state of the forwarding port and is open for both control frames and user data frames at both ingress and egress. A row 704 shows a setting example of the port 4b whose port ID is “P2”. “P2” is the state of the blocking port, and is open for the control frame and closed for the user data frame at both the entrance and exit. In the setting state of “P2”, the value “0” is set in the “all frames” column and the value 1 is set in the “user data frame” column. In such a case, discarding with a value of 1 is preferentially applied to the user data frame as filtering.

[フィルタの設定の切り替えの例]
図8は、図7のフィルタ6の設定の切り替えの例を示す。図8の(a)は、機能51による制御に対応した例である。本例は、図1の中継装置100Dのリンク9cの障害110の状態に応じた「第1状態」から「第2状態」への切り替えに相当する。図7の(a)の「第1状態」に対応する設定状態から、第1グループGR0のリスト71の制御パケットのセット810により、801,802の行に示す「第2状態」に対応した設定状態に切り替えられる。セット810は、図6のパケット「B」「C」「F」「G」である。なお、この際、廃棄の無効化/有効化を設定する対象箇所、すなわち値が変更され得る箇所は、「全フレーム」列である。破線枠は、切り替え前後で異なる部分を示す。
[Example of switching filter settings]
FIG. 8 shows an example of switching the setting of the filter 6 of FIG. FIG. 8A shows an example corresponding to the control by the function 51. This example corresponds to switching from the “first state” to the “second state” according to the state of the failure 110 of the link 9c of the relay device 100D of FIG. From the setting state corresponding to the “first state” in FIG. 7A, the setting corresponding to the “second state” shown in the rows 801 and 802 by the control packet set 810 of the list 71 of the first group GR0. Switch to state. The set 810 is the packets “B”, “C”, “F”, and “G” in FIG. At this time, the target location for setting invalidation / validation of discard, that is, the location where the value can be changed is the “all frames” column. A broken line frame shows a different part before and after switching.

801の行のポート「P1」は、入口及び出口の両方において、制御フレーム及びユーザデータフレームの両方について、閉状態である。詳しく言えば、図1のポート4gの入口側で、リンク9cから受信した全フレームが破棄され、かつ、ポート4gの出口側で、リンク9cへ送信する全フレームが破棄される。802の行のポート「P2」の設定状態は、702と同じである。   Port “P1” in row 801 is closed for both control and user data frames at both the ingress and egress. More specifically, all frames received from the link 9c are discarded on the entrance side of the port 4g in FIG. 1, and all frames transmitted to the link 9c are discarded on the exit side of the port 4g. The setting state of the port “P2” in the row 802 is the same as that in 702.

図8の(b)は、機能52による制御フレームに関する制御に対応した例である。本例は、図1の中継装置100Aにおいて、リングの障害110の状態に応じて、通常時の経路から代替の経路へ切り替える場合に対応する。切り替え前の図7の(b)の設定状態から、第2グループGR1のリスト72の制御パケットのセット820により、803,804の行に示す設定状態に切り替えられる。セット820における4つの制御パケットは、「P1」及び「P2」の入口側及び出口側における制御フレームに関する廃棄の無効化を行うパケットである。対象箇所は、「制御フレーム」列である。   FIG. 8B is an example corresponding to control related to a control frame by the function 52. This example corresponds to a case where the relay apparatus 100A in FIG. 1 switches from a normal path to an alternative path according to the state of the ring failure 110. The setting state shown in FIG. 7B before switching is switched to the setting state shown in the rows 803 and 804 by the control packet set 820 in the list 72 of the second group GR1. The four control packets in the set 820 are packets for invalidating discards related to control frames on the entrance side and the exit side of “P1” and “P2”. The target location is a “control frame” column.

803の行のポート「P1」の設定状態は、703と同じである。804の行のポート「P2」の設定状態は、704と同じである。この処理例では、制御フレームに関して開状態のままであるため、結果的に設定状態は図7の(b)と同じである。   The setting state of the port “P1” in the row 803 is the same as that in 703. The setting state of the port “P2” in the row 804 is the same as that in 704. In this processing example, the control frame remains open, and as a result, the setting state is the same as FIG.

図8の(c)は、機能52によるユーザデータフレームに関する制御に対応した例である。本処理例は、図8の(b)の処理例と同じ場合であり、対象が制御フレームではなくユーザデータフレームである。切り替え前の図7の(b)の設定状態から、第3グループGR2のリスト73の制御パケットのセット830により、805,806の行に示す設定状態に切り替えられる。セット830における4つの制御パケットは、「P1」の入口側の廃棄の無効化、「P2」の入口側の廃棄の有効化、「P1」の出口側の廃棄の無効化、及び「P2」の出口側の廃棄の有効化、を行うパケットである。対象箇所は、「ユーザデータフレーム」列である。   (C) of FIG. 8 is an example corresponding to the control regarding the user data frame by the function 52. This processing example is the same as the processing example of FIG. 8B, and the target is not a control frame but a user data frame. The setting state shown in FIG. 7B before switching is switched to the setting state shown in the rows 805 and 806 by the control packet set 830 in the list 73 of the third group GR2. The four control packets in set 830 are: “P1” entry-side discard invalidation, “P2” entry-side discard validation, “P1” exit-side discard invalidation, and “P2” This packet is used to validate discard on the egress side. The target location is a “user data frame” column.

805の行のポート「P1」の設定状態は、703と同じである。806の行のポート「P2」の設定状態は、704のブロッキングポートから、フォワーディングポートに変更されており、入口及び出口の両方で、制御フレーム及びユーザデータフレームの両方について、開状態である。   The setting state of the port “P1” in the row 805 is the same as that in 703. The setting state of the port “P2” in the row 806 has been changed from the blocking port 704 to the forwarding port, and is open for both the control frame and the user data frame at both the entrance and the exit.

上記例のように、リングの所定の状態を実現するため、各中継装置は、内部の複数のポートを、所定の関係を持つ所定の制御状態になるように、フィルタ6の設定状態を切り替える。その際、中継装置は、フィルタ6の構成に合わせて、フィルタ6内の情報を書き替える。そのため、中継装置は、1つの制御状態に応じて、複数の制御パケットからなるセットを用いる。   As in the above example, in order to realize a predetermined state of the ring, each relay device switches the setting state of the filter 6 so that a plurality of internal ports are in a predetermined control state having a predetermined relationship. At that time, the relay device rewrites the information in the filter 6 in accordance with the configuration of the filter 6. For this reason, the relay apparatus uses a set of a plurality of control packets according to one control state.

[効果等]
以上説明したように、実施の形態1の中継装置によれば、高速な制御を実現でき、パケットメモリ30の使用容量を削減できる。
[Effects]
As described above, according to the relay apparatus of the first embodiment, high-speed control can be realized and the used capacity of the packet memory 30 can be reduced.

実施の形態1の中継装置は、制御LSI1からインタフェースLSI2に対してハードウェア処理により設定の切り替えを行う構成である。これにより、実施の形態1は、従来の中継装置でインタフェースLSIに対してソフトウェア処理により設定の切り替えを行う構成に比べて、高速に設定の切り替えが可能である。実施の形態1は、リング型ネットワークの障害時にも、リング冗長機能による高速な経路の切り替えが可能である。   The relay apparatus according to the first embodiment is configured to switch settings from the control LSI 1 to the interface LSI 2 by hardware processing. As a result, the first embodiment can switch the setting at a higher speed than the configuration in which the setting is switched by software processing for the interface LSI in the conventional relay device. In the first embodiment, high-speed path switching by the ring redundancy function is possible even when a failure occurs in the ring network.

実施の形態1の中継装置は、制御LSI1のパケットメモリ30において、リング冗長機能に対応するグループのリスト7に、重複しない必要最小限の複数の種類の制御パケットを設けた構成である。リスト7の複数の種類の制御パケットは、必要な複数の全ての制御状態に対応したフィルタ6の設定状態をカバーできるように、フィルタ6の設定の要素の組合せにより構成されている。そして、選択表8には、必要な制御状態に応じた情報が設定されている。これにより、実施の形態1の中継装置は、限られたパケットメモリ30の使用容量を少なくでき、空き容量を多くできる。空き容量を他の機能に使用することも容易になる。   The relay apparatus according to the first embodiment has a configuration in which a plurality of minimum necessary types of control packets that do not overlap are provided in the group list 7 corresponding to the ring redundancy function in the packet memory 30 of the control LSI 1. A plurality of types of control packets in the list 7 are configured by a combination of filter 6 setting elements so as to cover the filter 6 setting states corresponding to all necessary control states. In the selection table 8, information corresponding to a necessary control state is set. Thereby, the relay apparatus of Embodiment 1 can reduce the use capacity of the limited packet memory 30, and can increase free capacity. It becomes easy to use the free space for other functions.

また、実施の形態1は、設定機能により、パケットメモリ30の制御パケット及び選択表8の設定を更新できるので、プロトコルに応じた制御機能や設定情報の更新の際にも柔軟に対応できる。   Furthermore, since the control packet in the packet memory 30 and the setting in the selection table 8 can be updated by the setting function, the first embodiment can flexibly cope with the update of the control function and setting information according to the protocol.

(比較例)
図9を用いて、実施の形態1に対する比較例の中継装置におけるパケットメモリ30Bに関する構成を説明する。図9は、パケットメモリ30Bにおける複数の制御パケットを格納する構成例を示す。比較例の中継装置は、制御LSIに、パケットメモリ30Bを備える。制御LSIの第1制御部は、機能による制御状態に応じてフィルタの設定状態を切り替える際、パケットメモリ30Bから、設定の切り替えのために必要な複数の制御パケットからなるセットを読み出し、インタフェースLSIの第2制御部へ送信する。比較例の他の構成は、実施の形態1の構成と同様である。
(Comparative example)
The configuration related to the packet memory 30B in the relay device of the comparative example with respect to the first embodiment will be described with reference to FIG. FIG. 9 shows a configuration example for storing a plurality of control packets in the packet memory 30B. The relay device of the comparative example includes a packet memory 30B in the control LSI. The first control unit of the control LSI reads a set of a plurality of control packets necessary for switching the setting from the packet memory 30B when switching the setting state of the filter according to the control state by the function. It transmits to the 2nd control part. Other configurations of the comparative example are the same as the configurations of the first embodiment.

パケットメモリ30Bには、制御状態に対応した「状態」毎に、複数の制御パケットからなるセットが予め格納される。また、パケットメモリ30Bには、機能に対応付けられたグループ毎に、複数のセットが格納される。   The packet memory 30B stores in advance a set of a plurality of control packets for each “state” corresponding to the control state. The packet memory 30B stores a plurality of sets for each group associated with the function.

第1グループ910において、4つの制御状態として「状態A」〜「状態D」がある。制御状態毎のセットとして、セット901〜904がある。パケット「A」〜「H」は、制御パケットを示す。例えば、「状態A」用のセット901は、アドレス「0」〜「3」に格納される、4個のパケット「A」「E」「C」「G」からなる。「状態B」用のセット902は、パケット「B」「F」「C」「G」からなる。「状態C」用のセット903は、パケット「A」「E」「D」「H」からなる。「状態D」用のセット904は、パケット「B」「F」「D」「H」からなる。なお、このパケット「A」等の内容は、図5のパケット「A」等の内容と対応している。   In the first group 910, there are “state A” to “state D” as the four control states. There are sets 901 to 904 as sets for each control state. Packets “A” to “H” indicate control packets. For example, the set 901 for “state A” includes four packets “A”, “E”, “C”, and “G” stored in addresses “0” to “3”. A set 902 for “state B” includes packets “B”, “F”, “C”, and “G”. A set 903 for “state C” includes packets “A”, “E”, “D”, and “H”. A set 904 for “state D” includes packets “B”, “F”, “D”, and “H”. The contents of the packet “A” and the like correspond to the contents of the packet “A” and the like in FIG.

制御パケットのセットの内容の具体例は以下である。「状態A」用のセット901における4個のパケット「A」「E」「C」「G」は、中継装置の2個のポート「P1」及び「P2」における入口及び出口において開状態にするための制御パケットである。同様に、「状態B」用のセット902における4個のパケット「B」「F」「C」「G」は、「P1」の入口及び出口を閉状態にし、「P2」の入口及び出口を開状態にする。「状態C」用のセット903における4個のパケット「A」「E」「D」「H」は、「P1」の入口及び出口を開状態にし、「P2」の入口及び出口を閉状態にする。「状態D」用のセット904における4個のパケット「B」「F」「D」「H」は、「P1」及び「P2」の入口及び出口において閉状態にする。   A specific example of the contents of the set of control packets is as follows. The four packets “A”, “E”, “C”, and “G” in the set 901 for “state A” are opened at the entrance and exit at the two ports “P1” and “P2” of the relay device. Control packet. Similarly, the four packets “B”, “F”, “C”, and “G” in the set 902 for “state B” close the entrance and exit of “P1” and set the entrance and exit of “P2”. Open. The four packets “A”, “E”, “D”, and “H” in the set 903 for “state C” open the entrance and exit of “P1” and close the entrance and exit of “P2”. To do. The four packets “B”, “F”, “D”, and “H” in the set 904 for “state D” are closed at the entrance and exit of “P1” and “P2”.

第1グループ910において、「状態A」〜「状態D」は、2個のポート「P1」「P2」の入口及び出口の開閉状態の組合せのうちの、必要な4つの制御状態である。パケットメモリ30Bは、第1グループ910において、「状態A」〜「状態D」をカバーするために、4つのセット901〜904、合計16個の制御パケットを格納する。   In the first group 910, “state A” to “state D” are necessary four control states among the combinations of the opening and closing states of the inlets and outlets of the two ports “P1” and “P2”. In the first group 910, the packet memory 30B stores four sets 901 to 904, a total of 16 control packets, in order to cover “state A” to “state D”.

同様に、第2グループ920において、4つの制御状態として「状態E」〜「状態H」があり、これらをカバーするため、4つのセット905〜908がある。第2グループ920は、パケット「I」〜「P」を用いた合計16個の制御パケットを格納する。   Similarly, in the second group 920, there are four control states “state E” to “state H”, and there are four sets 905 to 908 to cover these. The second group 920 stores a total of 16 control packets using the packets “I” to “P”.

パケットメモリ30B内に格納される制御パケットは、重複する制御パケットが存在する。例えば、「状態A」用のセット901と「状態C」用のセット903とにおいて、パケット「A」「E」は、重複する同じ制御パケットである。「状態A」用のセット901と「状態B」用のセット902とにおいて、パケット「C」「G」は、重複する同じ制御パケットである。制御パケットの重複の分、パケットメモリ30Bの使用容量は多くなる。   The control packets stored in the packet memory 30B have overlapping control packets. For example, in the set 901 for “state A” and the set 903 for “state C”, the packets “A” and “E” are the same control packet. In the set 901 for “state A” and the set 902 for “state B”, the packets “C” and “G” are the same control packets that overlap. The use capacity of the packet memory 30B increases due to the overlap of control packets.

上記のように、比較例の中継装置は、予め、制御状態毎に複数の制御パケットからなるセットをパケットメモリ30Bに格納しておく構成である。これにより、比較例は、高速な設定の切り替えを実現できる。ただし、比較例は、カバーする制御状態の数に比例して、必要なセットが増える。これにより、パケットメモリ30Bの使用容量は増大する。   As described above, the relay device of the comparative example has a configuration in which a set of a plurality of control packets is stored in the packet memory 30B in advance for each control state. Thereby, the comparative example can realize high-speed setting switching. However, in the comparative example, a necessary set increases in proportion to the number of control states to be covered. Thereby, the used capacity of the packet memory 30B increases.

それに対し、実施の形態1の中継装置は、図5のように、パケットメモリ30に、重複しないように分類及び整理された、複数の種類の制御パケットをリスト7として格納する。実施の形態1は、カバーする機能、制御状態及び設定状態の数が増えても、必要な制御パケットは、比例して増大するわけではなく、必要最小限に抑えられる。実施の形態1のパケットメモリ30は、比較例のパケットメモリ30Bに比べて、格納する制御パケットの数が少なく、一定のエントリのみが使用されるので、使用容量を節約できる。   On the other hand, the relay apparatus according to the first embodiment stores, as a list 7, a plurality of types of control packets classified and arranged so as not to overlap in the packet memory 30 as shown in FIG. In the first embodiment, even if the number of functions, control states, and setting states to be covered increases, the necessary control packets do not increase proportionally, and can be suppressed to the minimum necessary. Compared with the packet memory 30B of the comparative example, the packet memory 30 according to the first embodiment has a smaller number of control packets to be stored and uses only certain entries, so that the used capacity can be saved.

比較例のパケットメモリ30Bの場合、第1グループ910の4つの制御状態に関して、16個の制御パケットを格納する分の使用容量が必要である。それに対し、実施の形態1のパケットメモリ30の場合、第1グループGR0の4つの制御状態に関して、リスト71の8個の制御パケットを格納する分の使用容量で済む。   In the case of the packet memory 30B of the comparative example, with respect to the four control states of the first group 910, a use capacity for storing 16 control packets is required. On the other hand, in the case of the packet memory 30 according to the first embodiment, the use capacity for storing the eight control packets in the list 71 is sufficient for the four control states of the first group GR0.

(実施の形態2)
本発明の実施の形態2の通信システムについて説明する。制御パケットの送受信は、単一の中継装置内に限らず、複数の中継装置間にまたがって行われてもよい。この場合、以下のような実施の形態2の通信システムの構成である。
(Embodiment 2)
A communication system according to Embodiment 2 of the present invention will be described. The transmission / reception of the control packet is not limited to a single relay apparatus, and may be performed across a plurality of relay apparatuses. In this case, it is the structure of the communication system of Embodiment 2 as follows.

実施の形態2の通信システムは、第1の中継装置と第2の中継装置とを備える通信システムである。第1の中継装置は、フレームの転送に関する機能が実装された機能実装部を備える。機能実装部は、第1制御部、及び第1記憶部を有する。第2の中継装置は、複数のポート間での前記フレームの転送を行う転送部を備える。転送部は、第2制御部、及び第2記憶部を有する。第1記憶部は、機能に係わる複数の制御状態に対応するための、複数の種類の制御パケットを、リストとして格納する。第2記憶部は、制御状態に応じた設定情報を格納する。第1の中継装置の第1制御部は、制御状態に応じて、第1記憶部のリストから、複数の制御パケットからなるセットを読み出し、第2の中継装置へ送信する。第2の中継装置の第2制御部は、セットの複数の制御パケットに従い、第2記憶部の設定情報を書き替える。   The communication system according to the second embodiment is a communication system including a first relay device and a second relay device. The first relay device includes a function mounting unit in which a function related to frame transfer is mounted. The function implementation unit includes a first control unit and a first storage unit. The second relay device includes a transfer unit that transfers the frame between a plurality of ports. The transfer unit includes a second control unit and a second storage unit. The first storage unit stores, as a list, a plurality of types of control packets that correspond to a plurality of control states related to functions. The second storage unit stores setting information corresponding to the control state. The first control unit of the first relay device reads a set including a plurality of control packets from the list of the first storage unit according to the control state, and transmits the set to the second relay device. The second control unit of the second relay device rewrites the setting information in the second storage unit according to the plurality of control packets in the set.

例えば、第1の中継装置は、リングの制御状態に応じて、第2の中継装置のフィルタの設定の切り替えを制御する。その場合、第1の中継装置の第1制御部は、実施の形態1と同様に、パケットメモリから必要な複数の制御パケットからなるセットを読み出し、これによる要求のパケットを、ポートから第2の中継装置へ向けて制御フレームとして送信する。第2の中継装置は、その制御フレームによる要求のパケットをポートで受信する。第2の中継装置の第2制御部は、その要求のパケットにおけるセットの複数の制御パケットに従い、フィルタの情報を書き替えることにより、設定状態を切り替える。そして、第2の中継装置は、応答のパケットを、第1の中継装置へ制御フレームとして送信する。   For example, the first relay device controls switching of the filter setting of the second relay device according to the control state of the ring. In this case, the first control unit of the first relay device reads a set including a plurality of necessary control packets from the packet memory, as in the first embodiment, and sends a request packet based on this to the second packet from the port. A control frame is transmitted to the relay apparatus. The second relay device receives the request packet by the control frame at the port. The second control unit of the second relay device switches the setting state by rewriting the filter information in accordance with the plurality of control packets in the request packet. Then, the second relay device transmits a response packet to the first relay device as a control frame.

実施の形態2の通信システムによれば、複数の中継装置間で制御パケットを送受信することにより、高速な制御を実現でき、パケットメモリにおける使用容量を削減できる。   According to the communication system of the second embodiment, high-speed control can be realized by transmitting and receiving control packets between a plurality of relay apparatuses, and the used capacity in the packet memory can be reduced.

(他の実施の形態)
他の実施の形態の中継装置として、以下が挙げられる。
(Other embodiments)
The following is mentioned as a relay apparatus of other embodiment.

実施の形態1の技術は、ボックス型の中継装置に限らず、シャーシ型の中継装置にも適用可能である。シャーシ型の中継装置は、ラインカードや管理カードを含む複数のカードが接続される構成である。例えば、ラインカードの内部において、図2と同様の構成を有してもよい。   The technique of Embodiment 1 is applicable not only to a box-type relay device but also to a chassis-type relay device. The chassis type relay device is configured to connect a plurality of cards including a line card and a management card. For example, you may have the structure similar to FIG. 2 inside a line card.

他の実施の形態の中継装置として、グループ毎のリスト7を設けない構成も可能である。その場合、パケットメモリ30には、1つのリスト7のみが格納され、グループを指定する手段は不要である。   As a relay apparatus according to another embodiment, a configuration in which the list 7 for each group is not provided is also possible. In that case, only one list 7 is stored in the packet memory 30, and means for designating a group is unnecessary.

実施の形態1の技術は、中継装置において制御状態に応じて制御パケットを用いて設定状態を切り替える用途に適用可能である。実施の形態1の技術は、図7のフィルタ6の構成に限らず、他のフィルタの構成の場合にも、適用可能である。実施の形態1の技術は、フィルタ6の設定を制御する場合に限らず、他の設定情報の設定を制御する場合にも、適用可能である。   The technique of the first embodiment can be applied to a use in which a setting state is switched using a control packet according to a control state in a relay device. The technique of the first embodiment is applicable not only to the configuration of the filter 6 in FIG. 7 but also to other filter configurations. The technique of the first embodiment is not limited to the case of controlling the setting of the filter 6, but can be applied to the case of controlling the setting of other setting information.

実施の形態1の技術は、リングを構成する中継装置や、リング冗長機能に限らず、適用可能である。実施の形態1の技術は、イーサネットOAMに対応した機能にも適用可能である。イーサネットOAMは、イーサネットの拡張仕様であり、ネットワークの運用管理保守を支援する機能である。   The technique of Embodiment 1 is applicable not only to the relay apparatus which comprises a ring, but a ring redundancy function. The technique of the first embodiment can also be applied to functions corresponding to Ethernet OAM. Ethernet OAM is an extended specification of Ethernet, and is a function that supports network operation management maintenance.

以上、本発明を実施の形態に基づき具体的に説明したが、本発明は前記実施の形態に限定されず、その要旨を逸脱しない範囲で種々変更可能である。   Although the present invention has been specifically described above based on the embodiments, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the invention.

1…制御LSI、2…インタフェースLSI、4…ポート、5…転送DB、6…フィルタ、7,71,72,73…リスト、8…選択表、10…第1制御部、11…送信制御部、11A…グループ分割部、11B…検出部、11C…優先度制御部、12…送信部、12A…選択信号生成部、12B…設定レジスタ、12C…パケット送信部、12D…加算部、13…設定部、15…リング冗長機能処理部、20…第2制御部、30…パケットメモリ、40…メモリ、51,52…機能、100A〜100D…中継装置、201,202…パケット、203,204…フレーム、301…制御状態、302…変換信号、303…オフセット信号、304…選択信号、305…セット、306…グループ信号   DESCRIPTION OF SYMBOLS 1 ... Control LSI, 2 ... Interface LSI, 4 ... Port, 5 ... Transfer DB, 6 ... Filter, 7, 71, 72, 73 ... List, 8 ... Selection table, 10 ... 1st control part, 11 ... Transmission control part , 11A ... group dividing unit, 11B ... detecting unit, 11C ... priority control unit, 12 ... transmitting unit, 12A ... selection signal generating unit, 12B ... setting register, 12C ... packet transmitting unit, 12D ... adding unit, 13 ... setting , 15 ... Ring redundancy function processing unit, 20 ... Second control unit, 30 ... Packet memory, 40 ... Memory, 51, 52 ... Function, 100A to 100D ... Relay device, 201, 202 ... Packet, 203, 204 ... Frame , 301 ... Control state, 302 ... Conversion signal, 303 ... Offset signal, 304 ... Selection signal, 305 ... Set, 306 ... Group signal

Claims (8)

フレームの転送に関する機能が実装された機能実装部と、
複数のポート間での前記フレームの転送を行う転送部と、
を備え、
前記機能実装部は、第1制御部、及び第1記憶部を有し、
前記転送部は、第2制御部、及び第2記憶部を有し、
前記第1記憶部は、前記機能に係わる複数の制御状態に対応するための、複数の種類の制御パケットを、リストとして格納し、
前記第2記憶部は、前記制御状態に応じた設定情報を格納し、
前記第1制御部は、前記制御状態に応じて、前記第1記憶部のリストから、複数の制御パケットからなるセットを読み出し、前記第2制御部へ送信し、
前記第2制御部は、前記セットの複数の制御パケットに従い、前記第2記憶部の設定情報を書き替える、
中継装置。
A function implementation unit that implements functions related to frame transfer;
A transfer unit for transferring the frame between a plurality of ports;
With
The function implementation unit includes a first control unit and a first storage unit,
The transfer unit includes a second control unit and a second storage unit,
The first storage unit stores, as a list, a plurality of types of control packets to correspond to a plurality of control states related to the function,
The second storage unit stores setting information according to the control state,
The first control unit reads a set of a plurality of control packets from the list of the first storage unit according to the control state, and transmits the set to the second control unit,
The second control unit rewrites the setting information of the second storage unit according to the plurality of control packets of the set;
Relay device.
請求項1記載の中継装置において、
前記第1制御部は、送信制御部、及び送信部を含み、
前記送信制御部は、前記制御状態に応じた変換信号を出力し、
前記送信部は、選択表を含み、
前記選択表には、前記変換信号の値に応じて前記第1記憶部のリストのアドレスから前記セットを選択して読み出すための、対応付けの情報が設定されている、
中継装置。
The relay device according to claim 1,
The first control unit includes a transmission control unit and a transmission unit,
The transmission control unit outputs a conversion signal corresponding to the control state,
The transmitter includes a selection table;
In the selection table, association information for selecting and reading the set from the address of the list of the first storage unit according to the value of the conversion signal is set.
Relay device.
請求項2記載の中継装置において、
前記機能実装部は、複数の機能が実装されており、
前記第1記憶部は、複数のリストを格納し、
前記リストは、複数の機能に対応付けられた複数のグループにおけるグループ毎のリストであり、
前記送信部は、前記グループを指定するオフセット信号が設定される設定レジスタを含み、
前記選択表には、前記オフセット信号の値に応じて、前記第1記憶部の複数のリストから、指定されたグループのリストを選択するための、対応付けの情報が設定されている、
中継装置。
The relay device according to claim 2,
The function implementation unit is implemented with a plurality of functions,
The first storage unit stores a plurality of lists,
The list is a list for each group in a plurality of groups associated with a plurality of functions,
The transmission unit includes a setting register in which an offset signal that specifies the group is set;
In the selection table, association information for selecting a list of designated groups from a plurality of lists in the first storage unit according to the value of the offset signal is set.
Relay device.
請求項2記載の中継装置において、
前記リストの複数の種類の制御パケットは、前記設定情報における所定の設定の有効化の制御パケットと無効化の制御パケットとの2種類の制御パケットに分類され、
前記選択表は、前記有効化の制御パケットまたは無効化の制御パケットを選択するための有効無効選択ビットを含む、
中継装置。
The relay device according to claim 2,
The plurality of types of control packets in the list are classified into two types of control packets, that is, a control packet for validating a predetermined setting and a control packet for invalidating in the setting information,
The selection table includes a valid / invalid selection bit for selecting the control packet for validation or the control packet for invalidation,
Relay device.
請求項1記載の中継装置において、
前記設定情報は、前記ポートでの前記フレームの転送に係わるフィルタリングを規定するフィルタを含み、
前記リストは、前記フィルタを書き替えるための制御パケットを含む、
中継装置。
The relay device according to claim 1,
The setting information includes a filter that defines filtering related to transfer of the frame at the port,
The list includes a control packet for rewriting the filter.
Relay device.
請求項5記載の中継装置において、
前記機能実装部の機能は、リング型ネットワークにおける経路の切り替えを含む制御処理を行うリング冗長機能を含み、
前記フィルタには、前記リング冗長機能による制御状態に応じて、前記ポート毎の前記フレームの廃棄の有効または無効の状態が設定され、
前記リストは、前記フレームの廃棄の有効化の制御パケットと無効化の制御パケットとを含む、
中継装置。
The relay device according to claim 5,
The function of the function implementation unit includes a ring redundancy function for performing control processing including switching of a route in a ring network,
In the filter, depending on the control state by the ring redundancy function, the frame discard valid or invalid state for each port is set,
The list includes a control packet for enabling the discarding of the frame and a control packet for disabling.
Relay device.
請求項2記載の中継装置において、
前記第1制御部は、設定部を有し、
前記設定部は、前記リストに格納される制御パケット、及び前記選択表に格納される情報を設定する、
中継装置。
The relay device according to claim 2,
The first control unit has a setting unit,
The setting unit sets a control packet stored in the list and information stored in the selection table;
Relay device.
第1の中継装置と第2の中継装置とを備える通信システムであって、
前記第1の中継装置は、フレームの転送に関する機能が実装された機能実装部を備え、
前記機能実装部は、第1制御部、及び第1記憶部を有し、
前記第2の中継装置は、複数のポート間での前記フレームの転送を行う転送部を備え、
前記転送部は、第2制御部、及び第2記憶部を有し、
前記第1記憶部は、前記機能に係わる複数の制御状態に対応するための、複数の種類の制御パケットを、リストとして格納し、
前記第2記憶部は、前記制御状態に応じた設定情報を格納し、
前記第1の中継装置の前記第1制御部は、前記制御状態に応じて、前記第1記憶部のリストから、複数の制御パケットからなるセットを読み出し、前記第2の中継装置へ送信し、
前記第2の中継装置の前記第2制御部は、前記セットの複数の制御パケットに従い、前記第2記憶部の設定情報を書き替える、
通信システム。
A communication system comprising a first relay device and a second relay device,
The first relay device includes a function mounting unit in which a function related to frame transfer is mounted;
The function implementation unit includes a first control unit and a first storage unit,
The second relay device includes a transfer unit that transfers the frame between a plurality of ports,
The transfer unit includes a second control unit and a second storage unit,
The first storage unit stores, as a list, a plurality of types of control packets to correspond to a plurality of control states related to the function,
The second storage unit stores setting information according to the control state,
The first control unit of the first relay device reads a set including a plurality of control packets from the list of the first storage unit according to the control state, and transmits the set to the second relay device.
The second control unit of the second relay device rewrites the setting information of the second storage unit according to the plurality of control packets of the set;
Communications system.
JP2014222706A 2014-10-31 2014-10-31 Relay device and communication system Active JP6393586B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014222706A JP6393586B2 (en) 2014-10-31 2014-10-31 Relay device and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014222706A JP6393586B2 (en) 2014-10-31 2014-10-31 Relay device and communication system

Publications (2)

Publication Number Publication Date
JP2016092521A true JP2016092521A (en) 2016-05-23
JP6393586B2 JP6393586B2 (en) 2018-09-19

Family

ID=56019850

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014222706A Active JP6393586B2 (en) 2014-10-31 2014-10-31 Relay device and communication system

Country Status (1)

Country Link
JP (1) JP6393586B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018073418A (en) * 2016-10-24 2018-05-10 フィッシャー−ローズマウント システムズ,インコーポレイテッド Apparatus and methods for communicatively coupling field devices to controllers in process control system using distributed marshaling architecture

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003018198A (en) * 2001-07-02 2003-01-17 Hitachi Ltd Packet transfer device having a plurality of kinds of packet control functions
WO2006027817A1 (en) * 2004-09-03 2006-03-16 Mitsubishi Denki Kabushiki Kaisha Communication system and node apparatus
JP2014158084A (en) * 2013-02-14 2014-08-28 Alaxala Networks Corp Packet relay device and packet relay method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003018198A (en) * 2001-07-02 2003-01-17 Hitachi Ltd Packet transfer device having a plurality of kinds of packet control functions
WO2006027817A1 (en) * 2004-09-03 2006-03-16 Mitsubishi Denki Kabushiki Kaisha Communication system and node apparatus
JP2014158084A (en) * 2013-02-14 2014-08-28 Alaxala Networks Corp Packet relay device and packet relay method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018073418A (en) * 2016-10-24 2018-05-10 フィッシャー−ローズマウント システムズ,インコーポレイテッド Apparatus and methods for communicatively coupling field devices to controllers in process control system using distributed marshaling architecture

Also Published As

Publication number Publication date
JP6393586B2 (en) 2018-09-19

Similar Documents

Publication Publication Date Title
US10541920B2 (en) Communication system, communication device, controller, and method and program for controlling forwarding path of packet flow
US20150312147A1 (en) Switching system, switching control system, and storage medium
JP5071200B2 (en) Signal transmission device
US8189589B2 (en) Apparatus and method for forwarding packet data
EP1713212B1 (en) Filtering frames at an input port of a switch
US7526676B2 (en) Slave device having independent error recovery
JP6007972B2 (en) Communication node, packet processing method and program
CN108696435A (en) For the single lookup table entries symmetrically flowed
JP5569272B2 (en) Relay system, relay device, and relay method
US10135761B2 (en) Switch device, control method, and storage medium
US20120177046A1 (en) Network node
JP2011103592A (en) Repeater
RU2641232C2 (en) Communication center, communication system, method of processing of packets and program
JP6393586B2 (en) Relay device and communication system
US7733857B2 (en) Apparatus and method for sharing variables and resources in a multiprocessor routing node
EP2916497A1 (en) Communication system, path information exchange device, communication node, transfer method for path information and program
CN113892248B (en) Automation network, network distributor and method for data transmission
KR100489945B1 (en) Apparatus and method for Synchronizing a Plurality of Processors in a Processor Array
EP1876773B1 (en) Method and arrangement for processing management and control messages
US20090073973A1 (en) Router having black box function and network system including the same
US11075835B2 (en) Distributed, packet-mediated, packet routing
US20070274330A1 (en) Network Bridge
JP2006165603A (en) Data transfer apparatus
US20150180775A1 (en) Communication System, Control Apparatus, Communication Method, and Program
JP2005072783A (en) Information processing content determining method, and information processing apparatus adopting the method

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20170512

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170605

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180424

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180612

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180814

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180827

R150 Certificate of patent or registration of utility model

Ref document number: 6393586

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250