JP2022055738A - Communication system, master station device, slave station device, and computer program - Google Patents

Communication system, master station device, slave station device, and computer program Download PDF

Info

Publication number
JP2022055738A
JP2022055738A JP2020163324A JP2020163324A JP2022055738A JP 2022055738 A JP2022055738 A JP 2022055738A JP 2020163324 A JP2020163324 A JP 2020163324A JP 2020163324 A JP2020163324 A JP 2020163324A JP 2022055738 A JP2022055738 A JP 2022055738A
Authority
JP
Japan
Prior art keywords
station device
vlan
frame
specific control
control frame
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.)
Pending
Application number
JP2020163324A
Other languages
Japanese (ja)
Inventor
淳一 道又
Junichi Michimata
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP2020163324A priority Critical patent/JP2022055738A/en
Publication of JP2022055738A publication Critical patent/JP2022055738A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

To reduce VLAN setting work.SOLUTION: There is provided a communication system comprising a master station device and slave station devices connected to the master station device via a VLAN. The master station device includes a storage unit for storing, for each slave station device, a VLAN ID for identifying the VLAN which the slave station device belongs to, and a first control unit for creating a specific control frame for controlling the slave station device, the specific control frame including a VLAN tag in which the VLAN ID is stored. The slave station devices include a second control unit for processing the specific control frame and creating a response frame, the second control unit referring to a destination address and Ethertype, irrespective of information of the VLAN tag in a received frame, and thereby assessing whether the received frame is the specific control frame.SELECTED DRAWING: Figure 1

Description

本開示は、通信システム、親局装置、子局装置、及びコンピュータプログラムに関する。 The present disclosure relates to communication systems, master station devices, slave station devices, and computer programs.

IEEE 802.1Qには、VLAN(仮想ローカルエリアネットワーク)が規定されている(非特許文献1)。VLANでは、1つのネットワークが複数のネットワークセグメントに論理的に分割される。VLANに属する各通信装置のVLAN IDは事前に登録され、フレーム内のVLAN IDによって特定されるVLANに属する通信装置に当該フレームが転送される。 VLAN (Virtual Local Area Network) is defined in IEEE 802.1Q (Non-Patent Document 1). In a VLAN, one network is logically divided into a plurality of network segments. The VLAN ID of each communication device belonging to the VLAN is registered in advance, and the frame is transferred to the communication device belonging to the VLAN specified by the VLAN ID in the frame.

IEEE Standard for Local and metropolitan area networks - Virtual Bridged Local Area Networks,(米),IEEE,2006年5月IEEE Standard for Local and metropolitan area networks --Virtual Bridged Local Area Networks, (US), IEEE, May 2006

1つの親局装置と多数の子局装置とをVLANで接続し、親局装置がVLANを介して各子局装置を制御する場合、子局装置において、当該子局装置が属するVLANのVLAN IDが登録されていた。しかし、多数の子局装置のそれぞれに対してVLAN IDを設定する作業は煩雑であり、多くのコストがかかるという問題がある。 When one master station device and a large number of slave station devices are connected by a VLAN and the master station device controls each slave station device via the VLAN, in the slave station device, the VLAN ID of the VLAN to which the slave station device belongs is It was registered. However, there is a problem that the work of setting the VLAN ID for each of a large number of slave station devices is complicated and costs a lot.

本開示の一態様に係る通信システムは、親局装置と、前記親局装置とVLANを介して接続される子局装置と、を備える通信システムであって、前記親局装置は、前記子局装置毎に、前記子局装置が属するVLANを識別するためのVLAN IDを記憶する記憶部と、前記子局装置を制御するための特定制御フレームを作成する第1制御部と、を含み、前記特定制御フレームは、前記VLAN IDが格納されたVLANタグを含み、前記子局装置は、前記特定制御フレームを処理し、応答フレームを作成する第2制御部を含み、前記第2制御部は、受信フレームにおけるVLANタグの情報に関わらず、宛先アドレス及びイーサタイプを参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定する。 The communication system according to one aspect of the present disclosure is a communication system including a master station device and a slave station device connected to the master station device via a VLAN, and the master station device is the slave station. Each device includes a storage unit that stores a VLAN ID for identifying the VLAN to which the slave station device belongs, and a first control unit that creates a specific control frame for controlling the slave station device. The specific control frame includes a VLAN tag in which the VLAN ID is stored, the slave station device includes a second control unit that processes the specific control frame and creates a response frame, and the second control unit includes a second control unit. Regardless of the information of the VLAN tag in the receiving frame, it is determined whether or not the receiving frame is the specific control frame by referring to the destination address and the ether type.

本開示の一態様に係る親局装置は、VLANを介して子局装置と接続される親局装置であって、前記子局装置毎に、前記子局装置が属するVLANを識別するためのVLAN IDを記憶する記憶部と、前記子局装置を制御するための特定制御フレームを作成する制御部と、を含み、前記特定制御フレームは、前記VLAN IDが格納されたVLANタグを含み、前記特定制御フレームを前記子局装置へ送信する前に、前記子局装置に前記VLAN IDを設定しない。 The master station device according to one aspect of the present disclosure is a master station device connected to a slave station device via a VLAN, and is a VLAN for identifying the VLAN to which the slave station device belongs for each slave station device. The specific control frame includes a storage unit for storing an ID and a control unit for creating a specific control frame for controlling the slave station device, and the specific control frame includes a VLAN tag in which the VLAN ID is stored, and the specific control frame is included. The VLAN ID is not set in the slave station device before the control frame is transmitted to the slave station device.

本開示の一態様に係る子局装置は、VLANを介して親局装置と接続される子局装置であって、前記親局装置から送信される特定制御フレームを処理し、応答フレームを作成する制御部を備え、前記特定制御フレームは、前記子局装置が属するVLANを識別するためのVLAN IDが格納されたVLANタグを含み、前記制御部は、受信フレームにおけるVLANタグの情報に関わらず、宛先アドレス及びイーサタイプを参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定する。 The slave station device according to one aspect of the present disclosure is a slave station device connected to the master station device via a VLAN, and processes a specific control frame transmitted from the master station device to create a response frame. The specific control frame includes a VLAN tag containing a VLAN ID for identifying the VLAN to which the slave station device belongs, and the control unit includes the VLAN tag information in the receiving frame regardless of the information of the VLAN tag. By referring to the destination address and the ether type, it is determined whether or not the received frame is the specific control frame.

本開示の一態様に係るコンピュータプログラムは、VLANを介して親局装置と接続される子局装置としてコンピュータを機能させるためのコンピュータプログラムであって、コンピュータに、前記親局装置から送信される特定制御フレームを処理し、応答フレームを作成するステップを実行させ、前記ステップは、受信フレームにおけるVLANタグの情報に関わらず、宛先アドレス及びイーサタイプを参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定することを含む。 The computer program according to one aspect of the present disclosure is a computer program for operating a computer as a slave station device connected to a master station device via a VLAN, and is a specific specification transmitted to the computer from the master station device. A step of processing a control frame and creating a response frame is executed, and the received frame refers to the destination address and the ether type regardless of the information of the VLAN tag in the received frame, so that the received frame is the specific control frame. Includes determining whether or not.

本開示は、上記のような特徴的な構成を備える親局装置として実現することができるだけでなく、親局装置における特徴的な処理をステップとする方法として実現したり、コンピュータを親局装置として機能させるコンピュータプログラムとして実現したりすることができる。さらに、本開示は、上記のような特徴的な構成を備える子局装置として実現することができるだけでなく、子局装置における特徴的な処理をステップとする方法として実現したり、コンピュータを子局装置として機能させるコンピュータプログラムとして実現したりすることができる。本開示は、親局装置の一部又は全部を半導体集積回路として実現したり、子局装置の一部又は全部を半導体集積回路として実現したり、親局装置と子局装置とを含む通信システムとして実現したりすることができる。 The present disclosure can be realized not only as a master station apparatus having the above-mentioned characteristic configuration, but also as a method in which characteristic processing in the master station apparatus is a step, or a computer as a master station apparatus. It can be realized as a functioning computer program. Further, the present disclosure can be realized not only as a slave station device having the above-mentioned characteristic configuration, but also as a method in which characteristic processing in the slave station device is a step, or a computer as a slave station. It can be realized as a computer program that functions as a device. In the present disclosure, a part or all of a master station device is realized as a semiconductor integrated circuit, a part or all of a slave station device is realized as a semiconductor integrated circuit, and a communication system including a master station device and a slave station device is included. Can be realized as.

本開示によれば、子局装置においてVLANの情報を設定する必要がない。 According to the present disclosure, it is not necessary to set the VLAN information in the slave station device.

実施形態に係る通信システムの構成の一例を示す図である。It is a figure which shows an example of the structure of the communication system which concerns on embodiment. 親局装置の内部構成の一例を示すブロック図である。It is a block diagram which shows an example of the internal structure of a master station apparatus. 親局装置の制御部のハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware composition of the control part of a master station apparatus. Information OAMフレームである特定制御フレームの構成の一例を示す図である。It is a figure which shows an example of the structure of the specific control frame which is an Information OAM frame. VLANリストの一例を示す図である。It is a figure which shows an example of a VLAN list. Organization Specific OAMフレームである特定制御フレームの構成の一例を示す図である。It is a figure which shows an example of the structure of the specific control frame which is the Organization Specific OAM frame. 子局装置の内部構成の一例を示すブロック図である。It is a block diagram which shows an example of the internal structure of a slave station apparatus. 子局装置の制御部のハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware composition of the control part of a slave station apparatus. 実施形態に係る親局装置における動作の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the operation procedure in the master station apparatus which concerns on embodiment. 実施形態に係る子局装置における動作の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the operation procedure in the slave station apparatus which concerns on embodiment. イーサネットVSMフレームである特定制御フレームの構成の一例を示す図である。It is a figure which shows an example of the structure of the specific control frame which is an Ethernet VSM frame.

<本開示の実施形態の概要>
以下、本開示の実施形態の概要を列記して説明する。
<Summary of Embodiments of the present disclosure>
Hereinafter, the outlines of the embodiments of the present disclosure will be described in a list.

(1) 本実施形態に係る通信システムは、親局装置と、前記親局装置とVLANを介して接続される子局装置と、を備える通信システムであって、前記親局装置は、前記子局装置毎に、前記子局装置が属するVLANを識別するためのVLAN IDを記憶する記憶部と、前記子局装置を制御するための特定制御フレームを作成する第1制御部と、を含み、前記特定制御フレームは、前記VLAN IDが格納されたVLANタグを含み、前記子局装置は、前記特定制御フレームを処理し、応答フレームを作成する第2制御部を含み、前記第2制御部は、受信フレームにおけるVLANタグの情報に関わらず、宛先アドレス及びイーサタイプを参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定する。子局装置において特定制御フレームの識別にVLANタグが使用されないため、子局装置においてVLANの情報が設定されている必要がない。したがって、VLANの設定作業を軽減することができる。 (1) The communication system according to the present embodiment is a communication system including a master station device and a slave station device connected to the master station device via a VLAN, and the master station device is the child. Each station device includes a storage unit that stores a VLAN ID for identifying the VLAN to which the slave station device belongs, and a first control unit that creates a specific control frame for controlling the slave station device. The specific control frame includes a VLAN tag in which the VLAN ID is stored, the slave station device includes a second control unit that processes the specific control frame and creates a response frame, and the second control unit includes the second control unit. , Regardless of the information of the VLAN tag in the received frame, it is determined whether or not the received frame is the specific control frame by referring to the destination address and the ether type. Since the VLAN tag is not used to identify the specific control frame in the slave station device, it is not necessary to set the VLAN information in the slave station device. Therefore, it is possible to reduce the work of setting the VLAN.

(2) 前記特定制御フレームは、イーサネットOAM(「イーサネット」は登録商標。OAM:Operations, Administration, Maintenance)用に予約されたマルチキャスト宛先アドレスを、宛先アドレスとして含んでもよい。制御フレームをユニキャストで送信する場合、親局装置において子局装置のアドレスを管理しなければならない。Link OAM用に予約されたマルチキャスト宛先アドレスを持つフレームは、L2スイッチ(レイヤ2スイッチ)によって廃棄されるように非特許文献1において規定されているため、VLANネットワークを通ることができない。よって、このようなフレームを特定制御フレームに使用することはできない。そのような廃棄規定がないイーサネットOAM用に予約されたマルチキャスト宛先アドレスを使うことで、親局装置において子局装置のアドレスを管理する必要がなく、VLANの設定作業をより一層軽減することができる。 (2) The specific control frame may include a multicast destination address reserved for Ethernet OAM (“Ethernet” is a registered trademark. OAM: Operations, Administration, Maintenance) as a destination address. When transmitting a control frame by unicast, the address of the slave station device must be managed by the master station device. A frame having a multicast destination address reserved for Link OAM cannot pass through a VLAN network because it is specified in Non-Patent Document 1 to be discarded by an L2 switch (Layer 2 switch). Therefore, such a frame cannot be used as a specific control frame. By using the multicast destination address reserved for Ethernet OAM without such a disposal rule, it is not necessary to manage the address of the slave station device in the master station device, and the work of setting the VLAN can be further reduced. ..

(3) 前記特定制御フレームは、Link OAMに規定されたイーサタイプ、又は、イーサネットOAMに規定されたイーサタイプを含んでもよい。これにより、子局装置は、受信フレームのタイプフィールドに、Link OAMに規定されたイーサタイプ(0x8809)、又は、イーサネットOAMに規定されたイーサタイプ(0x8902)が格納されているか否かに基づいて、特定制御フレームを識別することができる。 (3) The specific control frame may include an ether type specified in Link OAM or an Ethernet type specified in Ethernet OAM. As a result, the slave station device is based on whether or not the ether type (0x8809) specified in the Link OAM or the ether type (0x8902) specified in the Ethernet OAM is stored in the type field of the received frame. , Specific control frame can be identified.

(4) 前記特定制御フレームは、前記イーサタイプのサブタイプとして、OAMのサブタイプを含み、前記第2制御部は、前記サブタイプをさらに参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定してもよい。子局装置における特定制御フレームの識別に、OAMのサブタイプ(0x03)が使用されることにより、さらに正確な特定制御フレームの識別が可能となる。 (4) The specific control frame includes an OAM subtype as a subtype of the ether type, and the second control unit further refers to the subtype so that the reception frame is the specific control frame. It may be determined whether or not there is. By using the OAM subtype (0x03) for the identification of the specific control frame in the slave station device, more accurate identification of the specific control frame becomes possible.

(5) 前記第2制御部は、特定制御フレームに含まれるベンダーコードに基づいて、前記特定制御フレームが真正の特定制御フレームであるか否かを判定してもよい。これにより、子局装置において不正な特定制御フレームを識別することができ、子局装置が不正に設定されることを抑制することができる。 (5) The second control unit may determine whether or not the specific control frame is a genuine specific control frame based on the vendor code included in the specific control frame. As a result, an illegal specific control frame can be identified in the slave station device, and it is possible to prevent the slave station device from being illegally set.

(6) 前記特定制御フレームは、真正の特定制御フレームを証明するための証明書情報が格納されるフィールドを含み、前記第2制御部は、特定制御フレームに含まれる前記フィールドに格納された情報にさらに基づいて、前記特定制御フレームが真正の特定制御フレームであるか否かを判定してもよい。これにより、子局装置において不正な特定制御フレームをより一層正確に識別することができる。 (6) The specific control frame includes a field in which certificate information for proving a genuine specific control frame is stored, and the second control unit includes information stored in the field included in the specific control frame. Further, it may be determined whether or not the specific control frame is a genuine specific control frame. As a result, it is possible to more accurately identify an illegal specific control frame in the slave station device.

(7) 前記第2制御部は、前記特定制御フレームの送信元アドレスを宛先アドレスとして含み、前記特定制御フレームのVLANタグと同一のVLANタグを含む前記応答フレームを作成してもよい。子局装置においてVLAN IDが事前に設定されていなくても、子局装置において応答フレームを作成し、当該応答フレームを子局装置から親局装置へ送信することができる。 (7) The second control unit may create the response frame including the source address of the specific control frame as the destination address and the same VLAN tag as the VLAN tag of the specific control frame. Even if the VLAN ID is not set in advance in the slave station device, the slave station device can create a response frame and transmit the response frame from the slave station device to the master station device.

(8) 前記第1制御部は、前記親局装置とセッションが確立している子局装置のVLAN IDが変更された場合、セッション状態を維持したまま、変更後のVLAN IDが格納されたVLANタグを含む特定制御フレームを作成してもよい。本開示では、子局装置においてVLAN IDを使用せずに特定制御フレームを識別する。したがって、VLAN IDが変更されたとしても、子局装置において親局装置とのセッション状態を変化させる必要がない。上記構成とすることにより、子局装置に割り当てられるVLAN IDが変化した場合に、親局装置と子局装置との間で新たにセッション確立のための通信処理(ハンドシェイク)を行う必要がない。 (8) When the VLAN ID of the slave station device for which a session has been established with the master station device is changed, the first control unit keeps the session state and stores the changed VLAN ID. A specific control frame containing a tag may be created. In the present disclosure, a specific control frame is identified without using a VLAN ID in the slave station device. Therefore, even if the VLAN ID is changed, it is not necessary to change the session state with the master station device in the slave station device. With the above configuration, when the VLAN ID assigned to the slave station device changes, it is not necessary to perform a new communication process (handshake) between the master station device and the slave station device to establish a session. ..

(9) 前記子局装置は、記憶部をさらに含み、前記第2制御部は、前記親局装置から送信された前記特定制御フレームを受信した場合、受信された前記特定制御フレームに含まれるVLAN IDを前記記憶部に記憶させ、前記第2制御部は、前記子局装置から前記親局装置へ送信する制御フレームを作成する場合、前記記憶部に記憶された前記VLAN IDが格納されたVLANタグを含む制御フレームを作成してもよい。これにより、オペレータが子局装置にVLAN IDを設定しなくても、子局装置においてVLANタグを含む制御フレームを作成し、当該制御フレームを子局装置から親局装置へ送信することができる。 (9) The slave station device further includes a storage unit, and when the second control unit receives the specific control frame transmitted from the master station device, the VLAN included in the received specific control frame. When the ID is stored in the storage unit and the second control unit creates a control frame to be transmitted from the slave station device to the master station device, the VLAN ID stored in the storage unit is stored in the VLAN. You may create a control frame containing tags. As a result, even if the operator does not set the VLAN ID in the slave station device, the slave station device can create a control frame including the VLAN tag and transmit the control frame from the slave station device to the master station device.

(10) 前記特定制御フレームは、Link OAMフレーム又はイーサネットOAMフレームであってもよい。これにより、子局装置においてVLANの情報を設定することなく、Link OAMフレーム又はイーサネットOAMフレームを用いて親局装置が子局装置を制御することができる。 (10) The specific control frame may be a Link OAM frame or an Ethernet OAM frame. As a result, the master station device can control the slave station device by using the Link OAM frame or the Ethernet OAM frame without setting the VLAN information in the slave station device.

(11) 本実施形態に係る親局装置は、VLANを介して子局装置と接続される親局装置であって、前記子局装置毎に、前記子局装置が属するVLANを識別するためのVLAN IDを記憶する記憶部と、前記子局装置を制御するための特定制御フレームを作成する制御部と、を含み、前記特定制御フレームは、前記VLAN IDが格納されたVLANタグを含み、前記特定制御フレームを前記子局装置へ送信する前に、前記子局装置に前記VLAN IDを設定しない。子局装置においてVLANの情報が設定されないため、VLANの設定作業を軽減することができる。 (11) The master station device according to the present embodiment is a master station device connected to the slave station device via a VLAN, and for each of the slave station devices, a VLAN to which the slave station device belongs is identified. The specific control frame includes a storage unit for storing a VLAN ID and a control unit for creating a specific control frame for controlling the slave station device, and the specific control frame includes a VLAN tag in which the VLAN ID is stored. The VLAN ID is not set in the slave station device before the specific control frame is transmitted to the slave station device. Since the VLAN information is not set in the slave station device, it is possible to reduce the work of setting the VLAN.

(12) 本実施形態に係る子局装置は、VLANを介して親局装置と接続される子局装置であって、前記親局装置から送信される特定制御フレームを処理し、応答フレームを作成する制御部を備え、前記特定制御フレームは、前記子局装置が属するVLANを識別するためのVLAN IDが格納されたVLANタグを含み、前記制御部は、受信フレームにおけるVLANタグの情報に関わらず、宛先アドレス及びイーサタイプを参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定する。子局装置において特定制御フレームの識別にVLANタグが使用されないため、子局装置においてVLANの情報が設定されている必要がない。したがって、VLANの設定作業を軽減することができる。 (12) The slave station device according to the present embodiment is a slave station device connected to the master station device via a VLAN, and processes a specific control frame transmitted from the master station device to create a response frame. The specific control frame includes a VLAN tag in which a VLAN ID for identifying the VLAN to which the slave station device belongs is stored, and the control unit includes the information of the VLAN tag in the receiving frame. , The destination address and the ether type are used to determine whether or not the received frame is the specific control frame. Since the VLAN tag is not used to identify the specific control frame in the slave station device, it is not necessary to set the VLAN information in the slave station device. Therefore, it is possible to reduce the work of setting the VLAN.

(13) 本実施形態に係るコンピュータプログラムは、VLANを介して親局装置と接続される子局装置としてコンピュータを機能させるためのコンピュータプログラムであって、コンピュータに、前記親局装置から送信される特定制御フレームを処理し、応答フレームを作成するステップを実行させ、前記ステップは、受信フレームにおけるVLANタグの情報に関わらず、宛先アドレス及びイーサタイプを参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定することを含む。子局装置において特定制御フレームの識別にVLANタグが使用されないため、子局装置においてVLANの情報が設定されている必要がない。したがって、VLANの設定作業を軽減することができる。 (13) The computer program according to the present embodiment is a computer program for operating a computer as a slave station device connected to a master station device via a VLAN, and is transmitted to the computer from the master station device. The receiving frame is controlled by the specific control frame by processing the specific control frame and executing a step of creating a response frame, and the step refers to the destination address and the ether type regardless of the information of the VLAN tag in the receiving frame. Includes determining whether or not it is a frame. Since the VLAN tag is not used to identify the specific control frame in the slave station device, it is not necessary to set the VLAN information in the slave station device. Therefore, it is possible to reduce the work of setting the VLAN.

<本開示の実施形態の詳細>
以下、図面を参照しつつ、本発明の実施形態の詳細を説明する。なお、以下に記載する実施形態の少なくとも一部を任意に組み合わせてもよい。
<Details of Embodiments of the present disclosure>
Hereinafter, the details of the embodiment of the present invention will be described with reference to the drawings. In addition, at least a part of the embodiments described below may be arbitrarily combined.

本実施形態では、Link OAMによる通信を行う通信システムについて説明する。 In this embodiment, a communication system that communicates by Link OAM will be described.

[1.通信システムの構成]
図1は、本実施形態に係る通信システムの構成の一例を示す図である。図1に示すように、通信システム10は、親局装置1と、子局装置2と、ネットワーク3と、管理サーバ7とを備える。
[1. Communication system configuration]
FIG. 1 is a diagram showing an example of a configuration of a communication system according to the present embodiment. As shown in FIG. 1, the communication system 10 includes a master station device 1, a slave station device 2, a network 3, and a management server 7.

ネットワーク3は、子局装置2と同数のVLANを含む。子局装置2とVLANとは一対一に対応する。各VLANは互いに異なるVLAN IDを有する。つまり、子局装置2のそれぞれには、ユニークなVLAN IDが割り当てられている。本実施形態では、子局装置2には、自装置に割り当てられたVLAN IDが設定されない。ネットワーク3は、少なくとも1つのL2スイッチ4を含む。 The network 3 includes the same number of VLANs as the slave station device 2. The slave station device 2 and the VLAN have a one-to-one correspondence. Each VLAN has a different VLAN ID from each other. That is, a unique VLAN ID is assigned to each of the slave station devices 2. In the present embodiment, the VLAN ID assigned to the own device is not set in the slave station device 2. The network 3 includes at least one L2 switch 4.

ネットワーク3は、光ファイバ又は同軸ケーブルなどの通信ケーブルを含む。通信回線の代わりに、無線通信の伝送路を採用することもできる。
通信システム10の上位側に位置する親局装置1は、上位網5と通信可能に接続され、通信システム10の下位側に位置する子局装置2は、下位網6と通信可能に接続されている。下位網6は、例えば、宅内LAN(Local Area Network)又は社内LANなどよりなる。
The network 3 includes a communication cable such as an optical fiber or a coaxial cable. A wireless communication transmission line can be adopted instead of the communication line.
The master station device 1 located on the upper side of the communication system 10 is communicably connected to the upper network 5, and the slave station device 2 located on the lower side of the communication system 10 is communicably connected to the lower network 6. There is. The lower network 6 is composed of, for example, a home LAN (Local Area Network) or an in-house LAN.

親局装置1及び子局装置2は、イーサネット(登録商標)フレーム、IPパケット等のPDU(Protocol Data Unit)である通信データを送受信可能であり、イーサネットOAMに対応する通信機器である。また、親局装置1及び子局装置2は、IEEE802.3ahに規定するLink OAMの機能を有する。
Link OAMは、対向するイーサネット機器間の物理回線や通信状態の監視などを目的とする、P2P(Point to Point)での利用を前提とするOAM機能であり、制御プロトコルである。
The master station device 1 and the slave station device 2 are communication devices that can transmit and receive communication data that are PDUs (Protocol Data Units) such as Ethernet (registered trademark) frames and IP packets, and are compatible with Ethernet OAM. Further, the master station device 1 and the slave station device 2 have the function of Link OAM specified in IEEE802.3ah.
Link OAM is an OAM function and a control protocol that is premised on use in P2P (Point to Point) for the purpose of monitoring physical lines and communication status between opposing Ethernet devices.

親局装置1は、管理サーバ7に接続される。管理サーバ7は、親局装置1に対して種々の指令を送信することができる。 The master station device 1 is connected to the management server 7. The management server 7 can transmit various commands to the master station device 1.

[2.親局装置の内部構成]
図2は、親局装置1の内部構成の一例を示すブロック図である。図2に示すように、本実施形態の親局装置1は、上位側インタフェース部11、制御部(第1制御部)12、第1処理部13、第2処理部14、下位側インタフェース部15、上りバッファ16、下りバッファ17、記憶部18、及び外部インタフェース部19を備える。
[2. Internal configuration of master station device]
FIG. 2 is a block diagram showing an example of the internal configuration of the master station device 1. As shown in FIG. 2, the master station apparatus 1 of the present embodiment has an upper interface unit 11, a control unit (first control unit) 12, a first processing unit 13, a second processing unit 14, and a lower interface unit 15. , Uplink buffer 16, downlink buffer 17, storage unit 18, and external interface unit 19.

上位側インタフェース部11は、上り方向及び下り方向の電気信号に対して、レイヤ1及びレイヤ2の通信処理を実行する集積回路を含む。
制御部12、第1処理部13及び第2処理部14は、上り方向及び下り方向の通信データに対して、IEEE 802.3ahなどの所定の通信規格に則った通信処理を実行する集積回路(例えば、MACチップ)よりなる。
The upper interface unit 11 includes an integrated circuit that executes communication processing of layer 1 and layer 2 with respect to electrical signals in the upstream direction and the downstream direction.
The control unit 12, the first processing unit 13, and the second processing unit 14 execute an integrated circuit (integrated circuit) that executes communication processing in accordance with a predetermined communication standard such as IEEE 802.3ah for the communication data in the uplink direction and the downlink direction. For example, it consists of a MAC chip).

図3は、制御部12のハードウェア構成の一例を示すブロック図である。具体的な一例では、制御部12は、プロセッサ12aと、ROM(Read Only Memory)からなる不揮発性メモリ12bと、RAM(Random Access Memory)からなる揮発性メモリ12cと、通信データ及び制御信号の入出力を行う入出力部12dとを有する。プロセッサ12aは、例えばCPU(Central Processing Unit)よりなる。 FIG. 3 is a block diagram showing an example of the hardware configuration of the control unit 12. In a specific example, the control unit 12 inputs a processor 12a, a non-volatile memory 12b composed of a ROM (Read Only Memory), a volatile memory 12c composed of a RAM (Random Access Memory), and communication data and a control signal. It has an input / output unit 12d for outputting. The processor 12a includes, for example, a CPU (Central Processing Unit).

不揮発性メモリ12bには、親局プログラム12eが記憶される。親局装置1は、コンピュータを備えて構成され、親局装置1の機能は、前記コンピュータの記憶装置に記憶されたコンピュータプログラムである親局プログラム12eがプロセッサ12aによって実行されることで発揮される。親局プログラム12eは、CD-ROM、フラッシュメモリなどの記録媒体に記憶させることができる。親局プログラム12eは、記録媒体又は通信手段によって流通し、入出力部12dを経由して不揮発性メモリ12bにダウンロードすることが可能である。プロセッサ12aは、親局プログラム12eを実行することができる。プロセッサ12aが親局プログラム12eを実行することにより、親局装置1は後述するような処理を実行することができる。 The master station program 12e is stored in the non-volatile memory 12b. The master station apparatus 1 is configured to include a computer, and the function of the master station apparatus 1 is exhibited by executing the master station program 12e, which is a computer program stored in the storage device of the computer, by the processor 12a. .. The master station program 12e can be stored in a recording medium such as a CD-ROM or a flash memory. The master station program 12e can be distributed by a recording medium or a communication means and downloaded to the non-volatile memory 12b via the input / output unit 12d. The processor 12a can execute the master station program 12e. When the processor 12a executes the master station program 12e, the master station apparatus 1 can execute a process as described later.

なお、制御部12の構成は上記に限られない。制御部12は、例えば、ASIC(Application Specific Integrated Circuit)であってもよいし、ゲートアレイ、FPGA(Field Programmable Gate Array)等のプログラマブルロジックデバイスであってもよい。この場合、ASIC又はプログラマブルロジックデバイスは、親局プログラム12eと同様の処理を実行可能に構成される。 The configuration of the control unit 12 is not limited to the above. The control unit 12 may be, for example, an ASIC (Application Specific Integrated Circuit) or a programmable logic device such as a gate array or FPGA (Field Programmable Gate Array). In this case, the ASIC or the programmable logic device is configured to be able to execute the same processing as the master station program 12e.

再び図2を参照する。第1処理部13及び第2処理部14は、特定の情報処理が可能となるように設計された論理回路デバイスよりなり、例えば、ASIC及びプログラマブルロジッデバイスのうちの少なくとも1つを含む。 See FIG. 2 again. The first processing unit 13 and the second processing unit 14 consist of logic circuit devices designed to enable specific information processing, and include, for example, at least one of an ASIC and a programmable logic device.

下位側インタフェース部15は、電気信号又は光信号を送受信する素子を含む通信デバイスよりなる。
下位側インタフェース部15は、ネットワーク3から受信した信号を電気信号よりなる通信データ(フレーム)に変換し、変換した通信データを第1処理部13に出力する。下位側インタフェース部15は、下りバッファ17に通信データがあれば、当該通信データを電気信号又は光信号に変換し、変換した信号をネットワーク3に送出する。
The lower interface unit 15 includes a communication device including an element for transmitting and receiving an electric signal or an optical signal.
The lower interface unit 15 converts the signal received from the network 3 into communication data (frame) composed of electric signals, and outputs the converted communication data to the first processing unit 13. If there is communication data in the downlink buffer 17, the lower interface unit 15 converts the communication data into an electric signal or an optical signal, and sends the converted signal to the network 3.

第1処理部13は、VLAN判定部13a及び制御フレーム判定部13bの機能を有する。 The first processing unit 13 has the functions of the VLAN determination unit 13a and the control frame determination unit 13b.

VLAN判定部13aは、受信された通信データ(受信フレーム)がユーザフレームであるか制御フレームであるかを問わず、通信データにVLANタグが含まれているか否かを判定する。さらにVLAN判定部13aは、受信フレームがVLANタグを含んでいる場合、当該受信フレームが転送すべき通信データであるか否かを判定する。記憶部18には転送すべきVLAN IDが登録されたVLANテーブルが記憶されている。VLAN判定部13aは、VLANテーブルを参照し、受信フレームが転送されるべきものであるか否かを判定する。受信フレームが転送されるべき通信データである場合、当該通信データは制御フレーム判定部13bに与えられる。受信フレームが転送されるべき通信データでない場合、当該通信データは廃棄される。 The VLAN determination unit 13a determines whether or not the communication data includes a VLAN tag regardless of whether the received communication data (received frame) is a user frame or a control frame. Further, when the receiving frame includes a VLAN tag, the VLAN determination unit 13a determines whether or not the receiving frame is communication data to be transferred. The storage unit 18 stores a VLAN table in which a VLAN ID to be transferred is registered. The VLAN determination unit 13a refers to the VLAN table and determines whether or not the received frame should be transferred. When the received frame is communication data to be transferred, the communication data is given to the control frame determination unit 13b. If the received frame is not the communication data to be transferred, the communication data is discarded.

制御フレーム判定部13bは、VLAN判定部13aから与えられた受信フレームが制御フレームであるか否かを判定する。制御フレームには、Link OAM、LACP、及びイーサネットOAMそれぞれの通信フレームが含まれる。特に、Link OAMの制御フレームには、Information OAMの制御フレームとOrganization Specific OAMの制御フレームとが含まれる。本実施形態では、Link OAMの制御フレームを、後述のように定義された特定制御フレームとする。制御フレーム判定部13bは、入力された通信データが、特定制御フレームを含む制御フレーム(例えば、特定制御フレーム以外にも、LACPによる制御フレーム等が含まれる)であるか、制御フレーム以外のPDU(Protocol Data Unit)であるかを判定する。 The control frame determination unit 13b determines whether or not the reception frame given by the VLAN determination unit 13a is a control frame. The control frame includes each communication frame of Link OAM, LACP, and Ethernet OAM. In particular, the Link OAM control frame includes an Information OAM control frame and an Organization Specific OAM control frame. In the present embodiment, the control frame of Link OAM is a specific control frame defined as described later. The control frame determination unit 13b indicates whether the input communication data is a control frame including a specific control frame (for example, a control frame by LACP is included in addition to the specific control frame), or a PDU other than the control frame (for example, a PDU other than the control frame). Protocol Data Unit).

第1処理部13は、入力された通信データが制御フレームであると判定された場合に、当該制御フレームを制御部12に出力する。第1処理部13は、入力された通信データが制御フレームでないと判定された場合に、当該通信データを上りバッファ16に出力する。 When the input communication data is determined to be a control frame, the first processing unit 13 outputs the control frame to the control unit 12. When it is determined that the input communication data is not a control frame, the first processing unit 13 outputs the communication data to the uplink buffer 16.

上位側インタフェース部11は、上位網5から受信した伝送信号を通信データに変換し、変換した通信データを第2処理部14に出力する。
上位側インタフェース部11は、上りバッファ16に通信データがあれば、その通信データを伝送信号に変換し、変換した伝送信号を上位網5に送出する。
The upper interface unit 11 converts the transmission signal received from the upper network 5 into communication data, and outputs the converted communication data to the second processing unit 14.
If there is communication data in the uplink buffer 16, the upper interface unit 11 converts the communication data into a transmission signal and sends the converted transmission signal to the upper network 5.

第2処理部14は、VLAN判定部14a及び合流部14bの機能を有する。 The second processing unit 14 has the functions of the VLAN determination unit 14a and the merging unit 14b.

VLAN判定部14aは、受信された通信データにVLANタグが含まれているか否かを判定する。さらにVLAN判定部14aは、受信データがVLANタグを含んでいる場合、記憶部18のVLANテーブルを参照し、受信データが転送されるべきものであるか否かを判定する。受信データが転送されるべき通信データである場合、当該通信データは合流部14bに与えられる。受信データが転送されるべき通信データでない場合、当該通信データは廃棄される。 The VLAN determination unit 14a determines whether or not the received communication data includes a VLAN tag. Further, when the received data includes a VLAN tag, the VLAN determination unit 14a refers to the VLAN table of the storage unit 18 and determines whether or not the received data should be transferred. If the received data is communication data to be transferred, the communication data is given to the merging unit 14b. If the received data is not the communication data to be transferred, the communication data is discarded.

制御部12は、後述するように特定制御フレームを作成し、当該特定制御フレームを第2処理部14へ出力する。出力された特定制御フレームは、合流部14bに与えられる。制御部12は、特定制御フレーム以外の制御フレーム(例えば、LACPによる制御フレーム)を作成し、合流部14bへ出力することもできる。合流部14bは、制御部12から与えられた制御フレーム(特定制御フレームを含む)を出力する。さらに合流部14bは、VLAN判定部14aから与えられた通信データを出力する。合流部14bから出力された通信データ(制御フレームを含む)は、下りバッファ17に書き込まれる。 The control unit 12 creates a specific control frame as described later, and outputs the specific control frame to the second processing unit 14. The output specific control frame is given to the merging unit 14b. The control unit 12 can also create a control frame other than the specific control frame (for example, a control frame by LACP) and output it to the merging unit 14b. The merging unit 14b outputs a control frame (including a specific control frame) given by the control unit 12. Further, the merging unit 14b outputs the communication data given by the VLAN determination unit 14a. The communication data (including the control frame) output from the merging unit 14b is written in the downlink buffer 17.

外部インタフェース部19は、通信線を介して管理サーバ7に接続される。外部インタフェース部19は、管理サーバ7から送信された指令を受信することができる。外部インタフェース部19は、制御部12に接続されている。管理サーバ7から外部インタフェース部19が受信した指令は、制御部12に与えられる。 The external interface unit 19 is connected to the management server 7 via a communication line. The external interface unit 19 can receive the command transmitted from the management server 7. The external interface unit 19 is connected to the control unit 12. The command received by the external interface unit 19 from the management server 7 is given to the control unit 12.

制御部12は、子局装置を制御するための特定制御フレームを作成する。特定制御フレームは、Link OAMフレームである。さらに具体的には、特定制御フレームは、Information OAMフレーム、又は、Organization Specific OAMフレームである。Information OAMフレームはLink OAMフレームの一種であり、Organization Specific OAMフレームもLink OAMフレームの一種である。 The control unit 12 creates a specific control frame for controlling the slave station device. The specific control frame is a Link OAM frame. More specifically, the specific control frame is an Information OAM frame or an Organization Specific OAM frame. The Information OAM frame is a kind of Link OAM frame, and the Organization Specific OAM frame is also a kind of Link OAM frame.

図4は、Information OAMフレームである特定制御フレームの構成の一例を示す図である。Information OAMフレームは、宛先アドレス101、送信元アドレス102、長さ/タイプ104、サブタイプ105、フラグ106、データ等のフィールドを有する。Link OAMではVLANの使用が想定されていないため、一般的なInformation OAMフレームにはVLANタグが含まれていない。しかし、本実施形態に係る特定制御フレームとしてのInformation OAMレームは、送信元アドレス102と長さ/タイプ104の間に、VLANタグ103のフィールドを有する。なお、図4の例では、2段のVLANタグフィールドが設けられているが、1段であってもよい。ただし、1段のVLANタグで指定可能なVLAN IDは0-4095であるため、使用されるVLAN IDの数は4096個以下に限られる。 FIG. 4 is a diagram showing an example of the configuration of a specific control frame which is an Information OAM frame. The Information OAM frame has fields such as a destination address 101, a source address 102, a length / type 104, a subtype 105, a flag 106, and data. Since the use of VLAN is not assumed in Link OAM, a general Information OAM frame does not include a VLAN tag. However, the Information OAM frame as the specific control frame according to the present embodiment has a field of the VLAN tag 103 between the source address 102 and the length / type 104. In the example of FIG. 4, the two-stage VLAN tag field is provided, but it may be one-stage. However, since the VLAN ID that can be specified by the one-stage VLAN tag is 0-4095, the number of VLAN IDs used is limited to 4096 or less.

宛先アドレス101には、イーサネットOAMのマルチキャスト宛先アドレスが格納される。イーサネットOAM用に予約されるマルチキャスト宛先アドレスは、01-80-C2-00-00-3x(xは16進数で0~Fの中の任意の値)である。Link OAM用に予約されるマルチキャスト宛先アドレス(01-80-C2-00-00-02)が宛先アドレス101に格納されたフレームは、L2スイッチ4(図1参照)において廃棄されてしまう。これに対して、イーサネットOAMのマルチキャスト宛先アドレスが宛先アドレス101に格納されたフレームは、L2スイッチ4において転送される。したがって、特定制御フレームを目的の子局装置へ送信することができる。 The destination address 101 stores the multicast destination address of the Ethernet OAM. The multicast destination address reserved for Ethernet OAM is 01-80-C2-00-00-3x (x is a hexadecimal number between 0 and F). The frame in which the multicast destination address (01-80-C2-00-00-02) reserved for Link OAM is stored in the destination address 101 is discarded by the L2 switch 4 (see FIG. 1). On the other hand, the frame in which the multicast destination address of the Ethernet OAM is stored in the destination address 101 is forwarded by the L2 switch 4. Therefore, the specific control frame can be transmitted to the target slave station device.

送信元アドレス102には、親局装置1のMACアドレスが格納される。 The MAC address of the master station device 1 is stored in the source address 102.

VLANタグ103には、VLAN IDが格納される。上述したように、各子局装置2には、ユニークなVLAN IDが割り当てられている。制御部12は、目的の子局装置2に割り当てられたVLAN IDを、特定制御フレームのVLANタグ103に格納する。 The VLAN ID is stored in the VLAN tag 103. As described above, each slave station device 2 is assigned a unique VLAN ID. The control unit 12 stores the VLAN ID assigned to the target slave station device 2 in the VLAN tag 103 of the specific control frame.

記憶部18にはVLANリスト18aが記憶されている。VLANリスト18aは、目的の子局装置2に割り当てられたVLAN IDの特定に用いられる。図5は、VLANリストの一例を示す図である。図5に示される例では、子局装置2の番号と、2段のVLAN IDとが対応づけられている。つまり、本例では、VLAN ID1及びVLAN ID2を含む二重のVLAN IDが定められている。例えば、制御部12は、#1の子局装置2に特定制御フレームを送信する場合、VLANリスト18aを参照して子局装置番号#1に対応するVLAN ID1及びVLAN ID2として1及び101をそれぞれ特定する。制御部12は、同様に、#2の子局装置2に特定制御フレームを送信する場合、VLANリスト18aを参照して子局装置番号#2に対応するVLAN ID1及びVLAN ID2として1及び102をそれぞれ特定する。制御部12は、特定されたVLAN ID(VLAN ID1及びVLAN ID2)を特定制御フレームのVLANタグ103に格納する。 The VLAN list 18a is stored in the storage unit 18. The VLAN list 18a is used to identify the VLAN ID assigned to the target slave station device 2. FIG. 5 is a diagram showing an example of a VLAN list. In the example shown in FIG. 5, the number of the slave station device 2 and the two-stage VLAN ID are associated with each other. That is, in this example, a dual VLAN ID including the VLAN ID 1 and the VLAN ID 2 is defined. For example, when the control unit 12 transmits a specific control frame to the slave station device 2 of # 1, the control unit 12 refers to the VLAN list 18a and sets 1 and 101 as the VLAN ID 1 and the VLAN ID 2 corresponding to the slave station device number # 1, respectively. Identify. Similarly, when the control unit 12 transmits the specific control frame to the slave station device 2 of # 2, the control unit 12 refers to the VLAN list 18a and sets 1 and 102 as the VLAN ID 1 and the VLAN ID 2 corresponding to the slave station device number # 2. Identify each. The control unit 12 stores the specified VLAN IDs (VLAN ID1 and VLAN ID2) in the VLAN tag 103 of the specific control frame.

再び図4を参照する。長さ/タイプ104は、イーサタイプを指定するフィールドである。長さ/タイプ104には、Link OAMに規定されたイーサタイプ「0x8809」が格納される。 See FIG. 4 again. Length / type 104 is a field that specifies the ether type. The length / type 104 stores the ether type "0x8809" specified in the Link OAM.

サブタイプ105には、OAMを示すサブタイプの値「0x03」が格納される。 The subtype 105 stores a subtype value "0x03" indicating OAM.

Link OAMのセッションには2つの状態がある。1つの状態はセッションが切断された状態(以下、「セッション切断状態」という)であり、もう1つの状態はセッションが確立された状態(以下、「セッション確立状態」という)である。フラグ106には、親局装置1と子局装置2とのセッションの状態を示す値が格納される。例えば、両装置のセッションが確立していない場合、フラグ106には「40」が格納される。送信装置(この場合は親局装置1)のセッションが確立しており、対向装置(この場合は子局装置2)のセッションが未確立の場合、フラグ106には「72」が格納される。両装置のセッションが確立している場合、フラグ106には「80」が格納される。 There are two states in a Link OAM session. One state is a state in which the session is disconnected (hereinafter referred to as "session disconnected state"), and the other state is a state in which the session is established (hereinafter referred to as "session established state"). The flag 106 stores a value indicating the state of the session between the master station device 1 and the slave station device 2. For example, if the sessions of both devices have not been established, "40" is stored in the flag 106. If the session of the transmitting device (in this case, the master station device 1) is established and the session of the opposite device (in this case, the slave station device 2) is not established, "72" is stored in the flag 106. If a session of both devices is established, "80" is stored in the flag 106.

Information OAMフレームのデータフィールドは、Local Information TLVフィールド、Remote Information TLVフィールド、及びInformation TLV #3フィールドを含む。Local Information TLVフィールドは、OUI(Organizationally Unique Identifier)107、及びVendor Specific Info108の各フィールドを含む。 The data fields of the Information OAM frame include the Local Information TLV field, the Remote Information TLV field, and the Information TLV # 3 field. The Local Information TLV field includes each field of OUI (Organizationally Unique Identifier) 107 and Vendor Specific Info 108.

OUI107には、ベンダー固有の識別番号が格納される。Vendor Specific Info108は、ベンダーによって定義される任意の情報が格納される。本実施形態では、Vendor Specific Info108に、暗号化された証明書情報が格納される。 The vendor-specific identification number is stored in the UI 107. The Vendor Specific Info 108 stores arbitrary information defined by the vendor. In this embodiment, encrypted certificate information is stored in Vendor Specific Info 108.

図6は、Organization Specific OAMフレームである特定制御フレームの構成の一例を示す図である。Organization Specific OAMフレームは、宛先アドレス201、送信元アドレス202、長さ/タイプ204、サブタイプ205、フラグ206、データ等のフィールドを有する。Information OAMフレームと同様、一般的なOrganization Specific OAMフレームにはVLANタグが含まれていない。しかし、本実施形態に係る特定制御フレームとしてのOrganization Specific OAMレームは、送信元アドレス202と長さ/タイプ204の間に、VLANタグ203のフィールドを有する。 FIG. 6 is a diagram showing an example of the configuration of a specific control frame which is an Organization Specific OAM frame. The Organization Specific OAM frame has fields such as destination address 201, source address 202, length / type 204, subtype 205, flag 206, and data. Like the Information OAM frame, the general Organization Specific OAM frame does not contain a VLAN tag. However, the Organization Specific OAM ram as the specific control frame according to this embodiment has a field of VLAN tag 203 between the source address 202 and the length / type 204.

宛先アドレス201、送信元アドレス202、VLANタグ203、長さ/タイプ204、サブタイプ205、フラグ206の各フィールドに格納される値は、Information OAMフレームと同様であるので、説明を省略する。 The values stored in the destination address 201, source address 202, VLAN tag 203, length / type 204, subtype 205, and flag 206 fields are the same as in the Information OAM frame, so the description thereof will be omitted.

Organization Specific OAMフレームのデータフィールドは、OUI207等の複数のフィールドを含む。OUI207には、ベンダー固有の識別番号が格納される。 The data field of the Organization Specific OAM frame includes a plurality of fields such as OUI207. The vendor-specific identification number is stored in the UI 207.

上記のような特定制御フレームは、下位側インタフェース部15からネットワーク3へ送出される(図2参照)。ネットワーク3に含まれるL2スイッチ4(図1参照)には、VLAN IDと、当該VLAN IDが割り当てられた子局装置2に接続されたポートの番号とが対応づけて記憶されている。L2スイッチ4は、特定制御フレームに含まれるVLANタグ103,203に格納されたVLAN IDに対応するポートを特定し、当該ポートから特定制御フレームを出力する。特定制御フレームは、当該ポートに接続された子局装置2、すなわちVLAN IDに対応する子局装置2によって受信される。上記のような構成とすることにより、親局装置1において子局装置2のMACアドレスを管理する必要がなく、VLANに関する設定作業が軽減される。 The specific control frame as described above is sent from the lower interface unit 15 to the network 3 (see FIG. 2). In the L2 switch 4 (see FIG. 1) included in the network 3, the VLAN ID and the number of the port connected to the slave station device 2 to which the VLAN ID is assigned are stored in association with each other. The L2 switch 4 identifies a port corresponding to the VLAN ID stored in the VLAN tags 103 and 203 included in the specific control frame, and outputs the specific control frame from the port. The specific control frame is received by the slave station device 2 connected to the port, that is, the slave station device 2 corresponding to the VLAN ID. With the above configuration, it is not necessary to manage the MAC address of the slave station device 2 in the master station device 1, and the setting work related to the VLAN is reduced.

[3.子局装置の内部構成]
図7は、子局装置2の内部構成の一例を示すブロック図である。図7に示すように、本実施形態の子局装置2は、下位側インタフェース部21、制御部(第2制御部)22、第1処理部23、第2処理部24、上位側インタフェース部25、上りバッファ26、下りバッファ27、及び記憶部28を備える。
[3. Internal configuration of slave station device]
FIG. 7 is a block diagram showing an example of the internal configuration of the slave station device 2. As shown in FIG. 7, the slave station device 2 of the present embodiment has a lower interface unit 21, a control unit (second control unit) 22, a first processing unit 23, a second processing unit 24, and an upper interface unit 25. , Upstream buffer 26, downlink buffer 27, and storage unit 28.

下位側インタフェース部21は、上り方向及び下り方向の電気信号に対して、レイヤ1及びレイヤ2の通信処理を実行する集積回路を含む。
制御部22、第1処理部23及び第2処理部24は、上り方向及び下り方向の通信データに対して、IEEE 802.3ahなどの所定の通信規格に則った通信処理を実行する集積回路(例えば、MACチップ)よりなる。
The lower interface unit 21 includes an integrated circuit that executes communication processing of layer 1 and layer 2 with respect to electrical signals in the upstream direction and the downstream direction.
The control unit 22, the first processing unit 23, and the second processing unit 24 are integrated circuits that execute communication processing in accordance with a predetermined communication standard such as IEEE 802.3ah for the communication data in the uplink direction and the downlink direction (the integrated circuit). For example, it consists of a MAC chip).

図8は、制御部22のハードウェア構成の一例を示すブロック図である。具体的な一例では、制御部22は、プロセッサ22aと、ROMからなる不揮発性メモリ22bと、RAMからなる揮発性メモリ22cと、通信データ及び制御信号の入出力を行う入出力部22dとを有する。プロセッサ22aは、例えばCPU(Central Processing Unit)よりなる。 FIG. 8 is a block diagram showing an example of the hardware configuration of the control unit 22. In a specific example, the control unit 22 includes a processor 22a, a non-volatile memory 22b composed of a ROM, a volatile memory 22c composed of a RAM, and an input / output unit 22d for inputting / outputting communication data and control signals. .. The processor 22a includes, for example, a CPU (Central Processing Unit).

不揮発性メモリ22bには、子局プログラム22eが記憶される。子局装置2は、コンピュータを備えて構成され、子局装置2の機能は、前記コンピュータの記憶装置に記憶されたコンピュータプログラムである子局プログラム22eがプロセッサ22aによって実行されることで発揮される。子局プログラム22eは、CD-ROM、フラッシュメモリなどの記録媒体に記憶させることができる。子局プログラム22eは、記録媒体又は通信手段によって流通し、入出力部22dを経由して不揮発性メモリ22bにダウンロードすることが可能である。プロセッサ22aは、子局プログラム22eを実行することができる。プロセッサ22aが子局プログラム22eを実行することにより、子局装置2は後述するような処理を実行することができる。 The slave station program 22e is stored in the non-volatile memory 22b. The slave station device 2 is configured to include a computer, and the function of the slave station device 2 is exhibited by executing the slave station program 22e, which is a computer program stored in the storage device of the computer, by the processor 22a. .. The slave station program 22e can be stored in a recording medium such as a CD-ROM or a flash memory. The slave station program 22e can be distributed by a recording medium or a communication means and downloaded to the non-volatile memory 22b via the input / output unit 22d. The processor 22a can execute the slave station program 22e. When the processor 22a executes the slave station program 22e, the slave station device 2 can execute a process as described later.

なお、制御部22の構成は上記に限られない。制御部22は、例えば、ASICであってもよいし、ゲートアレイ、FPGA等のプログラマブルロジックデバイスであってもよい。この場合、ASIC又はプログラマブルロジックデバイスは、子局プログラム22eと同様の処理を実行可能に構成される。 The configuration of the control unit 22 is not limited to the above. The control unit 22 may be, for example, an ASIC or a programmable logic device such as a gate array or FPGA. In this case, the ASIC or the programmable logic device is configured to be able to execute the same processing as the slave station program 22e.

再び図7を参照する。第1処理部23及び第2処理部24は、特定の情報処理が可能となるように設計された論理回路デバイスよりなり、例えば、ASIC及びプログラマブルロジックデバイスのうちの少なくとも1つを含む。 See FIG. 7 again. The first processing unit 23 and the second processing unit 24 consist of logic circuit devices designed to enable specific information processing, and include, for example, at least one of an ASIC and a programmable logic device.

上位側インタフェース部25は、電気信号又は光信号を送受信する素子を含む通信デバイスよりなる。
上位側インタフェース部25は、ネットワーク3から受信した信号を電気信号よりなる通信データ(フレーム)に変換し、変換した通信データを第1処理部23に出力する。上位側インタフェース部25は、上りバッファ26に通信データがあれば、当該通信データを電気信号又は光信号に変換し、変換した信号をネットワーク3に送出する。
The upper interface unit 25 includes a communication device including an element for transmitting and receiving an electric signal or an optical signal.
The upper interface unit 25 converts the signal received from the network 3 into communication data (frame) composed of electric signals, and outputs the converted communication data to the first processing unit 23. If there is communication data in the uplink buffer 26, the upper interface unit 25 converts the communication data into an electric signal or an optical signal, and sends the converted signal to the network 3.

第1処理部23は、制御フレーム判定部23a及びVLAN判定部23bの機能を有する。 The first processing unit 23 has the functions of the control frame determination unit 23a and the VLAN determination unit 23b.

制御フレーム判定部23aは、受信された通信データ(受信フレーム)が特定制御フレームを含む制御フレームであるか否かを判定する。具体的には、制御フレーム判定部23aは、入力された通信データが、Link OAMの制御フレーム(特定制御フレーム)、又はLink OAM以外の制御プロトコル(例えば、LACP)による制御フレームであるか、制御フレーム以外のPDUであるかを判定する。 The control frame determination unit 23a determines whether or not the received communication data (received frame) is a control frame including a specific control frame. Specifically, the control frame determination unit 23a controls whether the input communication data is a control frame of Link OAM (specific control frame) or a control frame by a control protocol other than Link OAM (for example, LACP). Determine if it is a PDU other than the frame.

第1処理部23は、入力された通信データが制御フレームであると判定された場合に、当該制御フレームを制御部22に出力する。入力された通信データが制御フレームでないと判定された場合、当該通信データはVLAN判定部23bに与えられる。 When the input communication data is determined to be a control frame, the first processing unit 23 outputs the control frame to the control unit 22. When it is determined that the input communication data is not a control frame, the communication data is given to the VLAN determination unit 23b.

VLAN判定部23bは、与えられた通信データにVLANタグが含まれているか否かを判定する。さらにVLAN判定部23bは、受信フレームがVLANタグを含んでいる場合、当該受信フレームが転送すべき通信データであるか否かを判定する。記憶部28には転送すべきVLAN IDが登録されたVLANテーブルが記憶されている。VLAN判定部23bは、VLANテーブルを参照し、受信フレームが転送されるべきものであるか否かを判定する。受信フレームが転送されるべき通信データである場合、当該通信データは下りバッファ27に出力される。受信フレームが転送されるべき通信データでない場合、当該通信データは廃棄される。 The VLAN determination unit 23b determines whether or not the given communication data includes a VLAN tag. Further, when the receiving frame includes a VLAN tag, the VLAN determination unit 23b determines whether or not the receiving frame is communication data to be transferred. The storage unit 28 stores a VLAN table in which a VLAN ID to be transferred is registered. The VLAN determination unit 23b refers to the VLAN table and determines whether or not the received frame should be transferred. If the received frame is communication data to be transferred, the communication data is output to the downlink buffer 27. If the received frame is not the communication data to be transferred, the communication data is discarded.

下位側インタフェース部21は、下位網6から受信した伝送信号を通信データに変換し、変換した通信データを第2処理部24に出力する。
下位側インタフェース部21は、下りバッファ27に通信データがあれば、その通信データを伝送信号に変換し、変換した伝送信号を下位網6に送出する。
The lower interface unit 21 converts the transmission signal received from the lower network 6 into communication data, and outputs the converted communication data to the second processing unit 24.
If there is communication data in the downlink buffer 27, the lower interface unit 21 converts the communication data into a transmission signal and sends the converted transmission signal to the lower network 6.

第2処理部24は、VLAN判定部24a及び合流部24bの機能を有する。 The second processing unit 24 has the functions of the VLAN determination unit 24a and the merging unit 24b.

VLAN判定部24aは、受信された通信データにVLANタグが含まれているか否かを判定する。さらにVLAN判定部24aは、受信データがVLANタグを含んでいる場合、記憶部28のVLANテーブルを参照し、受信データが転送されるべきものであるか否かを判定する。受信データが転送されるべき通信データである場合、当該通信データは合流部24bに与えられる。受信データが転送されるべき通信データでない場合、当該通信データは廃棄される。 The VLAN determination unit 24a determines whether or not the received communication data includes a VLAN tag. Further, when the received data includes a VLAN tag, the VLAN determination unit 24a refers to the VLAN table of the storage unit 28 and determines whether or not the received data should be transferred. When the received data is communication data to be transferred, the communication data is given to the merging unit 24b. If the received data is not the communication data to be transferred, the communication data is discarded.

制御部22は、特定制御フレームが受信された場合、特定制御フレームを処理し、後述するように応答フレームを作成し、当該応答フレームを第2処理部24へ出力する。出力された応答フレームは、合流部24bに与えられる。合流部24bは、制御部22から与えられた特定制御フレームを出力する。さらに合流部24bは、VLAN判定部24aから与えられた通信データを出力する。合流部24bから出力された通信データ(特定制御フレームを含む)は、上りバッファ26に書き込まれる。 When the specific control frame is received, the control unit 22 processes the specific control frame, creates a response frame as described later, and outputs the response frame to the second processing unit 24. The output response frame is given to the confluence portion 24b. The merging unit 24b outputs a specific control frame given by the control unit 22. Further, the merging unit 24b outputs the communication data given by the VLAN determination unit 24a. The communication data (including the specific control frame) output from the merging unit 24b is written in the uplink buffer 26.

記憶部28には、直近に受信された特定制御フレームに含まれるVLANタグ103,203に格納されたVLAN IDが記憶される。つまり、子局装置2において特定制御フレームが受信された場合、記憶部28のVLAN IDは、受信された特定制御フレームに含まれるVLAN IDで上書きされる。このVLAN IDは、当該子局装置2に割り当てられたVLAN IDである。つまり、記憶部28には、自装置に割り当てられたVLAN IDが記憶される。 The storage unit 28 stores the VLAN ID stored in the VLAN tags 103 and 203 included in the most recently received specific control frame. That is, when the slave station device 2 receives the specific control frame, the VLAN ID of the storage unit 28 is overwritten with the VLAN ID included in the received specific control frame. This VLAN ID is a VLAN ID assigned to the slave station device 2. That is, the storage unit 28 stores the VLAN ID assigned to the own device.

子局装置2において、自装置のVLAN ID以外の特定制御フレームのVLANに関する情報は予め記憶されない。子局装置2は、親局装置1から特定制御フレームを受信したとき、自装置に割り当てられたVLAN IDを学習(記憶)する。このため、VLANの設定作業が軽減される。 In the slave station device 2, information about the VLAN of the specific control frame other than the VLAN ID of the own device is not stored in advance. When the slave station device 2 receives the specific control frame from the master station device 1, the slave station device 2 learns (stores) the VLAN ID assigned to the own device. Therefore, the work of setting the VLAN is reduced.

記憶部28には、直近に受信された特定制御フレームに含まれる送信元アドレス102,202に格納されたMACアドレス、すなわち、親局装置1のMACアドレスが記憶される。記憶部28に記憶されたMACアドレスは、応答フレームの作成に使用される。 The storage unit 28 stores the MAC address stored in the source addresses 102 and 202 included in the most recently received specific control frame, that is, the MAC address of the master station device 1. The MAC address stored in the storage unit 28 is used to create a response frame.

制御部22は、受信フレームにおけるVLANタグの情報に関わらず、宛先アドレス及びイーサタイプを参照することにより、受信フレームが特定制御フレームであるか否かを判定する。この判定において、制御部22は、与えられた受信フレームにおけるVLANタグを参照しない。制御部22は、与えられた受信フレームにおける宛先アドレス及び長さ/タイプのフィールドの値を参照し、宛先アドレスがイーサネットOAMのマルチキャスト宛先アドレスであり、長さ/タイプの値がLink OAMに規定されたイーサタイプ「0x8809」であれば、特定制御フレームであると判定する。子局装置2における特定制御フレームの識別には、サブタイプの値が使用されてもよい。つまり、制御部22は、宛先アドレスがイーサネットOAMのマルチキャスト宛先アドレスであり、長さ/タイプの値が「0x8809」であるのに加え、サブタイプがOAMを示す値「0x03」であれば、受信フレームが特定制御フレームであると判定することができる。 The control unit 22 determines whether or not the received frame is a specific control frame by referring to the destination address and the ether type regardless of the information of the VLAN tag in the received frame. In this determination, the control unit 22 does not refer to the VLAN tag in the given receive frame. The control unit 22 refers to the destination address and the value of the length / type field in the given received frame, the destination address is the multicast destination address of the Ethernet OAM, and the value of the length / type is specified in the Link OAM. If it is an Ethernet type "0x8809", it is determined that it is a specific control frame. Subtype values may be used to identify the particular control frame in the slave station device 2. That is, if the destination address is the multicast destination address of Ethernet OAM, the length / type value is "0x8809", and the subtype is the value "0x03" indicating OAM, the control unit 22 receives. It can be determined that the frame is a specific control frame.

制御部22は、特定制御フレームを受信した場合、応答フレームを作成する。応答フレームの種別は、特定制御フレームと同一である。特定制御フレームがInformation OAMフレームである場合、Information OAMフレームである応答フレームが作成される。特定制御フレームがOrganization Specific OAMフレームである場合、Organization Specific OAMフレームである応答フレームが作成される。応答フレームには、特定制御フレームと同様に、VLANタグが含まれる。 When the control unit 22 receives the specific control frame, the control unit 22 creates a response frame. The type of response frame is the same as that of the specific control frame. If the specific control frame is an Information OAM frame, a response frame that is an Information OAM frame is created. If the specific control frame is an Organization Specific OAM frame, a response frame that is an Organization Specific OAM frame is created. The response frame includes a VLAN tag as in the specific control frame.

図4及び図6を参照する。応答フレームの宛先アドレス101,201には、記憶部28に記憶された親局装置1のMACアドレスが格納される。つまり、応答フレームはユニキャストで送信される。応答フレームの送信元アドレス102,202には、自装置(子局装置2)のMACアドレスが格納される。 See FIGS. 4 and 6. The MAC addresses of the master station device 1 stored in the storage unit 28 are stored in the destination addresses 101 and 201 of the response frame. That is, the response frame is transmitted unicast. The MAC address of the own device (slave station device 2) is stored in the source addresses 102 and 202 of the response frame.

応答フレームのVLANタグ103,203には、特定制御フレームのVLANタグ103,203に格納されていたVLAN IDと同一のVLAN IDが格納される。つまり、応答フレームのVLANタグ103,203には、自装置に割り当てられたVLAN IDが格納される。さらに、応答フレームの長さ/タイプ104,204及びサブタイプ105,205にも、特定制御フレームの長さ/タイプ104,204及びサブタイプ105,205と同一の値が格納される。つまり、応答フレームの長さ/タイプ104,204には、Link OAMに規定されたイーサタイプ「0x8809」が格納され、サブタイプ105,205には、OAMを示す値「0x03」が格納される。 The VLAN tags 103 and 203 of the response frame store the same VLAN ID as the VLAN ID stored in the VLAN tags 103 and 203 of the specific control frame. That is, the VLAN IDs assigned to the own device are stored in the VLAN tags 103 and 203 of the response frame. Further, the response frame lengths / types 104, 204 and subtypes 105, 205 also store the same values as the specific control frame lengths / types 104, 204 and subtypes 105, 205. That is, the response frame lengths / types 104 and 204 store the ether type "0x8809" specified in Link OAM, and the subtypes 105 and 205 store the value "0x03" indicating OAM.

制御部22は、応答フレームのフラグ106,206のフィールドに、その時点におけるセッションの状態を示す値を格納する。例えば、両装置のセッションが確立していない場合、フラグ106,206には「40」が格納される。送信装置(この場合は子局装置2)のセッションが確立しており、対向装置(この場合は親局装置1)のセッションが未確立の場合、フラグ106,206には「72」が格納される。両装置のセッションが確立している場合、フラグ106,206には「80」が格納される。 The control unit 22 stores a value indicating the state of the session at that time in the fields of the flags 106 and 206 of the response frame. For example, if the sessions of both devices have not been established, "40" is stored in flags 106 and 206. If the session of the transmitting device (in this case, the slave station device 2) is established and the session of the opposite device (in this case, the master station device 1) is not established, "72" is stored in the flags 106 and 206. To. If a session of both devices is established, "80" is stored in flags 106 and 206.

応答フレームがInformation OAMフレームである場合、OUI107及びVendor Specific Info108のそれぞれには、特定制御フレームと同一の値が格納される。つまり、OUI107にはベンダー固有の識別番号が格納され、Vendor Specific Info108には暗号化された証明書情報が格納される(図4参照)。なお、応答フレームにおけるVendor Specific Info108は、特定制御フレームのVendor Specific Infoと異なる値であってもよい。例えば、応答フレームにおけるVendor Specific Info108に、正当な子局装置であることを証明するための情報が格納されてもよい。 When the response frame is an Information OAM frame, the same value as the specific control frame is stored in each of the OUI 107 and the Vendor Specific Info 108. That is, the vendor-specific identification number is stored in the UI 107, and the encrypted certificate information is stored in the Vendor Specific Info 108 (see FIG. 4). The Vendor Specific Info 108 in the response frame may have a different value from the Vendor Specific Info in the specific control frame. For example, the Vendor Specific Info 108 in the response frame may store information for proving that the device is a legitimate slave station device.

応答フレームがOrganization Specific OAMフレームである場合、OUI207には、特定制御フレームと同一の値が格納される。つまり、OUI207にはベンダー固有の識別番号が格納される(図6参照)。 When the response frame is an Organization Specific OAM frame, the same value as the specific control frame is stored in the OUI 207. That is, the vendor-specific identification number is stored in the UI 207 (see FIG. 6).

上記のような応答フレームは、上位側インタフェース部25からネットワーク3へ送出される(図7参照)。応答フレームは、ネットワーク3を介して、宛先アドレスに指定されたMACアドレスを有する親局装置1へ送信される。 The response frame as described above is sent from the upper interface unit 25 to the network 3 (see FIG. 7). The response frame is transmitted to the master station device 1 having the MAC address specified as the destination address via the network 3.

さらに、制御部22は、応答フレームではない制御フレーム(子局装置2から発せられる制御フレーム。特定制御フレームとは異なる一般の制御フレーム)を作成することができる。この場合、制御部22は、記憶部28に記憶された親局装置1のMACアドレス及び自装置に割り当てられたVLAN IDを使用する。具体的には、制御部22は、Link OAMフレームである制御フレームの宛先アドレス101,201に親局装置1のMACアドレスを格納し、送信元アドレス102,202に自装置2のMACアドレスを格納する(図4及び図6参照)。さらに制御部22は、送信元アドレス102,202と長さ/タイプ104,204との間にVLANタグ103,203を追加し、VLANタグ103,203に自装置に割り当てられたVLAN IDを格納する。制御部22は、当該制御フレームの長さ/タイプ104,204に、Link OAMに規定されたイーサタイプ「0x8809」を格納し、サブタイプ105,205に、OAMを示す値「0x03」を格納する。制御部22は、当該制御フレームのフラグ106,206のフィールドに、その時点におけるセッションの状態を示す値を格納する。 Further, the control unit 22 can create a control frame (a control frame emitted from the slave station device 2, a general control frame different from the specific control frame) that is not a response frame. In this case, the control unit 22 uses the MAC address of the master station device 1 stored in the storage unit 28 and the VLAN ID assigned to the own device. Specifically, the control unit 22 stores the MAC address of the master station device 1 in the destination addresses 101 and 201 of the control frame which is the Link OAM frame, and stores the MAC address of the own device 2 in the source addresses 102 and 202. (See FIGS. 4 and 6). Further, the control unit 22 adds the VLAN tags 103 and 203 between the source addresses 102 and 202 and the length / type 104 and 204, and stores the VLAN ID assigned to the own device in the VLAN tags 103 and 203. .. The control unit 22 stores the ether type "0x8809" specified in Link OAM in the length / type 104 and 204 of the control frame, and stores the value "0x03" indicating OAM in the subtypes 105 and 205. .. The control unit 22 stores a value indicating the state of the session at that time in the fields of the flags 106 and 206 of the control frame.

制御フレームがInformation OAMフレームである場合、OUI107にはベンダー固有の識別番号が格納され、Vendor Specific Info108には暗号化された証明書情報が格納される(図4参照)。制御フレームがOrganization Specific OAMフレームである場合、OUI207にはベンダー固有の識別番号が格納される(図6参照)。 When the control frame is an Information OAM frame, the OUI 107 stores the vendor-specific identification number, and the Vendor Specific Info 108 stores the encrypted certificate information (see FIG. 4). When the control frame is an Organization Specific OAM frame, the vendor-specific identification number is stored in the OUI 207 (see FIG. 6).

[4.通信システムの動作]
以下に、本実施形態に係る通信システム10の動作を説明する。図9は、本実施形態に係る親局装置における動作の手順の一例を示すフローチャートであり、図10は、本実施形態に係る子局装置における動作の手順の一例を示すフローチャートである。以下の親局装置の動作は、プロセッサ12aが親局プログラム12eを実行することによって実現され、子局装置の動作は、プロセッサ22aが子局プログラム22eを実行することによって実現される。
[4. Operation of communication system]
The operation of the communication system 10 according to the present embodiment will be described below. FIG. 9 is a flowchart showing an example of the operation procedure in the master station apparatus according to the present embodiment, and FIG. 10 is a flowchart showing an example of the operation procedure in the slave station apparatus according to the present embodiment. The following operations of the master station apparatus are realized by the processor 12a executing the master station program 12e, and the operations of the slave station apparatus are realized by the processor 22a executing the slave station program 22e.

図9を参照する。特定制御フレームの送信は定期的に実行される。親局装置1では、子局装置2毎に、特定制御フレームの送信のための送信タイマと、応答フレームの受信のための受信タイマとを管理する。親局装置1のプロセッサ12aは、送信タイマに特定制御フレームの送信周期に対応した値セットする(ステップS101)。これにより、送信タイマがスタートする。 See FIG. The transmission of the specific control frame is executed periodically. The master station device 1 manages a transmission timer for transmitting a specific control frame and a reception timer for receiving a response frame for each slave station device 2. The processor 12a of the master station apparatus 1 sets a value corresponding to the transmission cycle of the specific control frame in the transmission timer (step S101). As a result, the transmission timer starts.

プロセッサ12aは、特定制御フレームの送信条件が満たされているか否かを判定する(ステップS102)。特定制御フレームの送信条件は、以下の3つの事項を含み、3つの事項のいずれか1つ以上が満たされた場合、送信条件が満たされる。
(1)親局装置1が管理サーバ7から子局装置2の設定を指示された。
(2)特定制御フレームの送信がタイムアウトした(送信タイマ満了)。
(3)応答フレームの受信がタイムアウトした(受信タイマ満了)。
The processor 12a determines whether or not the transmission condition of the specific control frame is satisfied (step S102). The transmission condition of the specific control frame includes the following three items, and when any one or more of the three items is satisfied, the transmission condition is satisfied.
(1) The master station device 1 is instructed by the management server 7 to set the slave station device 2.
(2) The transmission of the specific control frame has timed out (the transmission timer has expired).
(3) The reception of the response frame has timed out (the reception timer has expired).

特定制御フレームの送信条件が満たされていない場合(ステップS102においてNO)、プロセッサ12aは、ステップS102を再度実行する。 If the transmission condition of the specific control frame is not satisfied (NO in step S102), the processor 12a executes step S102 again.

特定制御フレームの送信条件が満たされている場合(ステップS102においてYES)、プロセッサ12aは、記憶部18に記憶されたVLANリスト18aから、特定制御フレームの送信対象の子局装置2に対応するVLAN IDを読み出す(ステップS103)。 When the transmission condition of the specific control frame is satisfied (YES in step S102), the processor 12a uses the VLAN list 18a stored in the storage unit 18 to indicate the VLAN corresponding to the slave station device 2 to be transmitted of the specific control frame. Read the ID (step S103).

次に、プロセッサ12aは、上述した構成の特定制御フレームを作成する(ステップS104)。この特定制御フレームのVLANタグ103,203には、読み出されたVLAN IDが格納される。プロセッサ12aは、作成された特定制御フレームをネットワーク3へ送信する(ステップS105)。プロセッサ12aは、受信タイマに応答フレームの受信期間に対応する値をセットする(ステップS106)。 Next, the processor 12a creates a specific control frame having the above-described configuration (step S104). The read VIN ID is stored in the VIN tags 103 and 203 of the specific control frame. The processor 12a transmits the created specific control frame to the network 3 (step S105). The processor 12a sets a value corresponding to the reception period of the response frame in the reception timer (step S106).

図10を参照する。親局装置1から送信された特定制御フレームは、L2スイッチ4によって対象の子局装置2へ転送される。子局装置2のプロセッサ22aは、特定制御フレームを受信したか否かを判定する(ステップS201)。この処理では、受信フレームが特定制御フレームであるか否かが判定される。判定には、宛先アドレス、長さ/タイプ、及びサブタイプのそれぞれの値が使用される。宛先アドレスがイーサネットOAM用に予約されたマルチキャスト宛先アドレスであり、且つ、長さ/タイプの値がLink OAMに規定されたイーサタイプであり、且つ、サブタイプがOAMを示す値であれば、受信フレームが特定制御フレームであると判定され、それ以外であれば、受信フレームは特定制御フレームではないと判定される。 See FIG. The specific control frame transmitted from the master station device 1 is transferred to the target slave station device 2 by the L2 switch 4. The processor 22a of the slave station device 2 determines whether or not a specific control frame has been received (step S201). In this process, it is determined whether or not the received frame is a specific control frame. The values of the destination address, length / type, and subtype are used for the determination. Receive if the destination address is a multicast destination address reserved for Ethernet OAM, the length / type value is the ether type specified in Link OAM, and the subtype is a value indicating OAM. It is determined that the frame is a specific control frame, and otherwise, the received frame is determined not to be a specific control frame.

特定制御フレームが受信されていない場合(ステップS201においてNO)、プロセッサ22aは、ステップS201を再度実行する。 If the specific control frame has not been received (NO in step S201), the processor 22a re-executes step S201.

特定制御フレームが受信された場合(ステップS201においてYES)、プロセッサ22aは、特定制御フレームの種別を判定する(ステップS202)。Information OAMフレームのCodeフィールドには、Information OAMを示す値「0x00」が格納される。Organization Specific OAMフレームのCodeフィールドには、Organization Specific OAMを示す値「0xFE」が格納される。プロセッサ22aは、フレーム内のCodeフィールドを参照し、特定制御フレームの種別がInformation OAMであるか、Organization Specific OAMであるかを判定する。 When the specific control frame is received (YES in step S201), the processor 22a determines the type of the specific control frame (step S202). The value "0x00" indicating Information OAM is stored in the Code field of the Information OAM frame. The value "0xFE" indicating Organization Specific OAM is stored in the Code field of the Organization Specific OAM frame. The processor 22a refers to the Code field in the frame, and determines whether the type of the specific control frame is Information OAM or Organization Specific OAM.

特定制御フレームの種別がInformation OAMである場合(ステップS202において「Information OAM」)、プロセッサ22aは、特定制御フレームが真正なフレームであるか否かを判定する(ステップS203)。この処理では、フレーム内のOUI107及びVendor Specific Info108の値が参照される。子局装置2の記憶部28には、真正なベンダーの識別番号及び真正な証明書情報が格納されている。記憶部28に格納された証明書情報は、復号化された情報である。プロセッサ22aは、フレーム内のOUI107の値と記憶部28に記憶されたベンダーの識別情報とを比較し、一致するか否かを判定する。さらにプロセッサ22aは、フレーム内のVendor Specific Info108の値を復号化し、復号化された値と記憶部28に記憶された証明書情報とを比較し、一致するか否かを判定する。プロセッサ22aは、ベンダーの識別情報及び証明書情報の両方が記憶部28に記憶された値と一致した場合、真正な特定制御フレームであると判定し、ベンダーの識別情報及び証明書情報の少なくとも一方が記憶部28に記憶された値と一致しない場合、不正な特定制御フレームであると判定する。 When the type of the specific control frame is Information OAM (“Information OAM” in step S202), the processor 22a determines whether or not the specific control frame is a genuine frame (step S203). In this process, the values of OUI 107 and Vendor Specific Info 108 in the frame are referred to. The storage unit 28 of the slave station device 2 stores a genuine vendor identification number and a genuine certificate information. The certificate information stored in the storage unit 28 is the decrypted information. The processor 22a compares the value of the UI 107 in the frame with the vendor's identification information stored in the storage unit 28, and determines whether or not they match. Further, the processor 22a decodes the value of Vendor Specific Info 108 in the frame, compares the decoded value with the certificate information stored in the storage unit 28, and determines whether or not they match. If both the vendor's identification information and the certificate information match the values stored in the storage unit 28, the processor 22a determines that it is a genuine specific control frame, and at least one of the vendor's identification information and the certificate information. Does not match the value stored in the storage unit 28, it is determined that the specific control frame is invalid.

受信された特定制御フレームが真正な特定制御フレームではない場合(ステップS203においてNO)、プロセッサ22aはステップS201へ戻る。 If the received specific control frame is not a genuine specific control frame (NO in step S203), the processor 22a returns to step S201.

受信された特定制御フレームが真正な特定制御フレームである場合(ステップS203においてYES)、プロセッサ22aは、特定制御フレームの送信元アドレス102,202に格納された親局装置1のMACアドレス及びVLANタグ103,203に格納されたVLAN ID(自装置に割り当てられたVLAN ID)を記憶部28に書き込む(ステップ204)。さらにプロセッサ22aは、Information OAMフレームである応答フレームを上述したように作成する(ステップS205)。 When the received specific control frame is a genuine specific control frame (YES in step S203), the processor 22a uses the MAC address and the VLAN tag of the master station device 1 stored in the source addresses 102 and 202 of the specific control frame. The VLAN ID (VLAN ID assigned to the own device) stored in 103 and 203 is written to the storage unit 28 (step 204). Further, the processor 22a creates a response frame, which is an Information OAM frame, as described above (step S205).

特定制御フレームの種別がOrganization Specific OAMである場合(ステップS202において「Organization Specific OAM」)、プロセッサ22aは、特定制御フレームが真正なフレームであるか否かを判定する(ステップS206)。この処理では、フレーム内のOUI207の値が参照される。プロセッサ22aは、フレーム内のOUI207の値と記憶部28に記憶されたベンダーの識別情報とを比較し、一致するか否かを判定する。プロセッサ22aは、ベンダーの識別情報が記憶部28に記憶された値と一致した場合、真正な特定制御フレームであると判定し、ベンダーの識別情報が記憶部28に記憶された値と一致しない場合、不正な特定制御フレームであると判定する。 When the type of the specific control frame is Organization Specific OAM (“Organization Specific OAM” in step S202), the processor 22a determines whether or not the specific control frame is a genuine frame (step S206). In this process, the value of UI207 in the frame is referred to. The processor 22a compares the value of the UI 207 in the frame with the vendor's identification information stored in the storage unit 28, and determines whether or not they match. When the vendor identification information matches the value stored in the storage unit 28, the processor 22a determines that it is a genuine specific control frame, and when the vendor identification information does not match the value stored in the storage unit 28. , It is determined that the specific control frame is invalid.

受信された特定制御フレームが真正な特定制御フレームではない場合(ステップS206においてNO)、プロセッサ22aはステップS201へ戻る。 If the received specific control frame is not a genuine specific control frame (NO in step S206), the processor 22a returns to step S201.

受信された特定制御フレームが真正な特定制御フレームである場合(ステップS206においてYES)、プロセッサ22aは、特定制御フレームの送信元アドレス102,202に格納された親局装置1のMACアドレス及びVLANタグ103,203に格納されたVLAN ID(自装置に割り当てられたVLAN ID)を記憶部28に書き込む(ステップ207)。 When the received specific control frame is a genuine specific control frame (YES in step S206), the processor 22a uses the MAC address and the VLAN tag of the master station device 1 stored in the source addresses 102 and 202 of the specific control frame. The VLAN ID (VLAN ID assigned to the own device) stored in 103 and 203 is written to the storage unit 28 (step 207).

プロセッサ22aは、特定制御フレームに含まれる設定情報に応じて、自装置の設定を変更する(ステップS208)。例えば、特定制御フレームのデータフィールドにおいて、ユーザフレーム用のVLAN IDが格納されている場合、プロセッサ22aは、記憶部28に記憶されたVLANテーブルのVLAN IDを更新する。 The processor 22a changes the setting of its own device according to the setting information included in the specific control frame (step S208). For example, when the VLAN ID for the user frame is stored in the data field of the specific control frame, the processor 22a updates the VLAN ID of the VLAN table stored in the storage unit 28.

プロセッサ22aは、Organization Specific OAMフレームである応答フレームを上述したように作成する(ステップS209)。例えば、この応答フレームのデータフィールドには、設定の成否の情報が格納される。 The processor 22a creates a response frame, which is an Organization Specific OAM frame, as described above (step S209). For example, the data field of this response frame stores information on the success or failure of the setting.

プロセッサ22aは、作成された応答フレームをネットワーク3へ送信する(ステップS210)。その後、プロセッサ22aは、ステップS201へ戻る。 The processor 22a transmits the created response frame to the network 3 (step S210). After that, the processor 22a returns to step S201.

再び図9を参照する。ステップS106の後、親局装置1のプロセッサ12aは、応答フレームを受信したか否かを判定する(ステップS107)。応答フレームが受信されていない場合(ステップS107においてNO)、プロセッサ12aは、受信タイマがタイムアウト時間に到達した、すなわちタイムアウトしたか否かを判定する(ステップS108)。受信タイマがタイムアウトしていない場合(ステップS108においてNO)、プロセッサ12aはステップS107へ戻る。 See FIG. 9 again. After step S106, the processor 12a of the master station apparatus 1 determines whether or not a response frame has been received (step S107). When the response frame has not been received (NO in step S107), the processor 12a determines whether the reception timer has reached the timeout time, that is, has timed out (step S108). If the receive timer has not timed out (NO in step S108), the processor 12a returns to step S107.

受信タイマがタイムアウトしている場合(ステップS108においてYES)、プロセッサ12aは、ステップS102へ戻る。この場合、上記の(3)応答フレームの受信がタイムアウトした、が満たされる。したがって、ステップS102においてYESへ進む。 If the receive timer has timed out (YES in step S108), the processor 12a returns to step S102. In this case, the above (3) Time-out for receiving the response frame is satisfied. Therefore, the process proceeds to YES in step S102.

応答フレームが受信された場合(ステップS107においてYES)、プロセッサ12aは、応答フレームが真正なフレームであるか否かを判定する(ステップS109)。この処理は、上述したステップS204及びS206と同様であるので、説明を省略する。 When the response frame is received (YES in step S107), the processor 12a determines whether or not the response frame is a genuine frame (step S109). Since this process is the same as the above-mentioned steps S204 and S206, the description thereof will be omitted.

受信された応答フレームが真正な応答フレームではない場合(ステップS109においてNO)、プロセッサ12aはステップS107へ戻る。 If the received response frame is not a genuine response frame (NO in step S109), the processor 12a returns to step S107.

受信された応答フレームが真正な応答フレームである場合(ステップS109においてYES)、プロセッサ12aは、応答フレームのVLANタグ103,203に格納されたVLAN IDが、記憶部18に記憶されたVLANリスト18aに登録されているVLAN IDと一致するか否かを判定する(ステップS110)。 When the received response frame is a genuine response frame (YES in step S109), the processor 12a has the VLAN ID stored in the VLAN tags 103 and 203 of the response frame stored in the storage unit 18 in the VLAN list 18a. It is determined whether or not it matches the VLAN ID registered in (step S110).

応答フレームのVLANタグ103,203に格納されたVLAN IDが、VLANリスト18aに登録されているVLAN IDと一致しない場合(ステップS110においてNO)、プロセッサ12aはステップS107へ戻る。 If the VLAN ID stored in the VLAN tags 103 and 203 of the response frame does not match the VLAN ID registered in the VLAN list 18a (NO in step S110), the processor 12a returns to step S107.

応答フレームのVLANタグ103,203に格納されたVLAN IDが、VLANリスト18aに登録されているVLAN IDと一致する場合(ステップS110においてYES)、プロセッサ12aはVLAN IDによって子局装置2を特定する(ステップS111)。さらにプロセッサ12aは、当該子局装置2の状態情報を、応答フレームに含まれる値によって更新する(ステップS112)。さらにプロセッサ12aは、ステップS101に戻る。 When the VLAN ID stored in the VLAN tags 103 and 203 of the response frame matches the VLAN ID registered in the VLAN list 18a (YES in step S110), the processor 12a identifies the slave station device 2 by the VLAN ID. (Step S111). Further, the processor 12a updates the state information of the slave station device 2 with the value included in the response frame (step S112). Further, the processor 12a returns to step S101.

[5.変形例]
[5-1.第1変形例]
第1変形例では、子局装置2のVLAN IDが変更可能である。例えば、管理サーバ7は、子局装置2のVLAN IDの変更を親局装置1に指示する。このとき、管理サーバ7は、VLAN IDの変更対象の子局装置2の番号と、新たなVLAN IDを指定する。親局装置1のプロセッサ12aは、記憶部18に記憶されたVLANリスト18aにおいて、指定された子局装置の番号に対応するVLAN IDを、新たなVLAN IDに書き換える。
[5. Modification example]
[5-1. First modification]
In the first modification, the VLAN ID of the slave station device 2 can be changed. For example, the management server 7 instructs the master station device 1 to change the VLAN ID of the slave station device 2. At this time, the management server 7 designates the number of the slave station device 2 whose VLAN ID is to be changed and the new VLAN ID. The processor 12a of the master station device 1 rewrites the VLAN ID corresponding to the number of the designated slave station device to a new VLAN ID in the VLAN list 18a stored in the storage unit 18.

親局装置1においては、VLAN IDが変更された子局装置2の状態情報は、VLAN IDの変更の前後で変化しない。例えば、親局装置1と子局装置2とのセッション状態が、両装置のセッションが確立している状態である場合において、VLAN IDの変更されるとき、親局装置1と子局装置2とのセッションが未確立の状態には変更されない。プロセッサ12aは、セッション状態を変更することなく、当該子局装置を送信対象とする特定制御フレームを作成し、当該特定制御フレームを送信することができる。この特定制御フレームのフラグ106,206には、両装置セッションが確立している状態を示す「80」が格納される。これにより、親局装置1と子局装置2との間で新たにセッション確立のための通信処理(ハンドシェイク)を行う必要がない。 In the master station device 1, the state information of the slave station device 2 whose VLAN ID has been changed does not change before and after the change of the VLAN ID. For example, when the session state between the master station device 1 and the slave station device 2 is a state in which the sessions of both devices are established and the VLAN ID is changed, the master station device 1 and the slave station device 2 Session is not changed to the unestablished state. The processor 12a can create a specific control frame for the slave station device to be transmitted and transmit the specific control frame without changing the session state. Flags 106 and 206 of this specific control frame store "80" indicating a state in which both device sessions have been established. As a result, it is not necessary to perform a new communication process (handshake) for establishing a session between the master station device 1 and the slave station device 2.

[5-2.第2変形例]
第2変形例では、特定制御フレームが、Link OAMフレームではなく、イーサネットOAMフレームとされる。具体的な一例では、イーサネットVSM(Vendor Specific OAM Message)フレームが使用される。
[5-2. Second variant]
In the second modification, the specific control frame is an Ethernet OAM frame instead of a Link OAM frame. As a specific example, an Ethernet VSM (Vendor Specific OAM Message) frame is used.

図11は、イーサネットVSMフレームである特定制御フレームの構成の一例を示す図である。イーサネットVSMフレームは、宛先アドレス301、送信元アドレス302、VLANタグ303、イーサタイプ304、サブタイプ(OpCode)305、及びVendor Specific Data306等のフィールドを有する。Vendor Specific Data306は、上述したLink OAMフレームのフラグ~データの各フィールドと同じフォーマットとされてもよい(図示省略)。 FIG. 11 is a diagram showing an example of the configuration of a specific control frame which is an Ethernet VSM frame. The Ethernet VSM frame has fields such as a destination address 301, a source address 302, a VLAN tag 303, an ether type 304, a subtype (OpCode) 305, and a Vendor Specific Data 306. The Vendor Specific Data 306 may have the same format as each field of the flag to data of the Link OAM frame described above (not shown).

親局装置1から送信される特定制御フレームでは、宛先アドレス301に、イーサネットOAMのマルチキャスト宛先アドレス(01-80-C2-00-00-3x)が格納される。さらに、送信元アドレス302には、親局装置1のMACアドレスが格納され、VLANタグ303には、目的の子局装置2に割り当てられたVLAN IDが格納される。イーサタイプ304には、イーサネットOAMに規定されたイーサタイプ「0x8902」が格納され、サブタイプ305には、VSMを示す値「0x51」が格納される。本変形例では、特定制御フレームの識別に、宛先アドレス301、イーサタイプ304、及びサブタイプ305の値が使用される。つまり、宛先アドレス301の値がイーサネットOAMのマルチキャスト宛先アドレスであり、イーサタイプの値がイーサネットOAMに規定されたイーサタイプ「0x8902」であり、サブタイプの値がVSMを示す「0x51」であるフレームは、特定制御フレームと判定される。 In the specific control frame transmitted from the master station apparatus 1, the multicast destination address (01-80-C2-00-00-3x) of the Ethernet OAM is stored in the destination address 301. Further, the source address 302 stores the MAC address of the master station device 1, and the VLAN tag 303 stores the VLAN ID assigned to the target slave station device 2. The ether type 304 stores the ether type "0x8902" specified in the Ethernet OAM, and the subtype 305 stores the value "0x51" indicating VSM. In this modification, the values of the destination address 301, the ether type 304, and the subtype 305 are used to identify the specific control frame. That is, the frame where the value of the destination address 301 is the multicast destination address of the Ethernet OAM, the value of the ether type is the ether type "0x8902" specified in the Ethernet OAM, and the value of the subtype is "0x51" indicating VSM. Is determined to be a specific control frame.

親局装置1から送信される特定制御フレームでは、Vendor Specific Data306に、上述したフラグ106,206に格納されるセッション状態を示す値と、OUI107に格納されるベンダー固有の識別情報と、Vendor Specific Info108に格納される暗号化された証明書情報が格納される。ベンダー固有の識別情報及び証明書情報は、真正な特定制御フレームであるか否かの判定に用いられる。 In the specific control frame transmitted from the master station device 1, the Vendor Specific Data 306 contains the value indicating the session state stored in the flags 106 and 206 described above, the vendor-specific identification information stored in the UI 107, and the Vendor Specific Info 108. The encrypted certificate information stored in is stored. Vendor-specific identification information and certificate information are used to determine whether or not the specific control frame is genuine.

子局装置2から送信される応答フレームでは、宛先アドレス301に、親局装置1のMACアドレスが格納される。さらに、送信元アドレス302には、応答フレームの送信元の子局装置2(自装置)のMACアドレスが格納される。VLANタグ303、イーサタイプ304、及びサブタイプ305のそれぞれの値は、特定制御フレームと同一である。つまり、VLANタグ303には、自装置に割り当てられたVLAN IDが格納され、イーサタイプ304には、イーサネットOAMに規定されたイーサタイプ「0x8902」が格納され、サブタイプ305には、VSMを示す値「0x51」が格納される。 In the response frame transmitted from the slave station device 2, the MAC address of the master station device 1 is stored in the destination address 301. Further, the source address 302 stores the MAC address of the slave station device 2 (own device) that is the source of the response frame. The values of the VLAN tag 303, the ether type 304, and the subtype 305 are the same as those of the specific control frame. That is, the VLAN tag 303 stores the VLAN ID assigned to the own device, the ether type 304 stores the ether type "0x8902" specified in the Ethernet OAM, and the subtype 305 indicates VSM. The value "0x51" is stored.

子局装置2から送信される応答フレームにおけるVendor Specific Data306の構成は、特定制御フレームにおけるVendor Specific Data306の構成と同様である。つまり、Vendor Specific Data306に、上述したフラグ106,206に格納されるセッション状態を示す値と、OUI107に格納されるベンダー固有の識別情報と、Vendor Specific Info108に格納される暗号化された証明書情報が格納される。セッション状態としては、その時点における最新の値が格納される。ベンダー固有の識別情報及び証明書情報は、特定制御フレームと同じ値が格納される。ただし、証明書情報は正当な子局装置であることを照明する情報であれば、特定制御フレームと同じ値でなくてもよい。 The configuration of the Vendor Specific Data 306 in the response frame transmitted from the slave station device 2 is the same as the configuration of the Vendor Specific Data 306 in the specific control frame. That is, in the Vendor Specific Data 306, the value indicating the session state stored in the flags 106 and 206 described above, the vendor-specific identification information stored in the UI 107, and the encrypted certificate information stored in the Vendor Specific Info 108. Is stored. As the session state, the latest value at that time is stored. The vendor-specific identification information and certificate information store the same values as the specific control frame. However, the certificate information does not have to be the same value as the specific control frame as long as it is information that illuminates that the device is a legitimate slave station device.

[5-3.その他の変形例]
MACアドレスの前半部分(上位3オクテット)は、ベンダー固有の識別情報である。このMACアドレスに含まれるベンダーの識別情報を、特定制御フレーム(応答フレームを含む)の識別に使用してもよい。この場合、OUI107,207の情報は、特定制御フレームの識別に使用されなくてもよい。
[5-3. Other variants]
The first half of the MAC address (top 3 octets) is vendor-specific identification information. The vendor identification information included in this MAC address may be used to identify a specific control frame (including a response frame). In this case, the information of OUI 107 and 207 may not be used for identifying the specific control frame.

上述した実施形態では、子局装置2が受信された特定制御フレームによって自装置のVLAN IDを認識したが、これに限定されない。子局装置2は、特定制御フレーム以外の制御フレームによって自装置のVLAN IDを認識してもよい。 In the above-described embodiment, the slave station device 2 recognizes the VLAN ID of its own device by the specific control frame received, but the present invention is not limited to this. The slave station device 2 may recognize the VLAN ID of its own device by a control frame other than the specific control frame.

上述した実施形態では、Information OAMフレームである特定制御フレームにおいて、Vendor Specific Info108に証明書情報を格納した。この証明書情報には、周知の認証技術を使用することができる。Vendor Specific Info108に格納される情報は証明書情報ではなく、例えばベンダーが定義した情報であってもよいし、Vendor Specific Info108に情報が格納されなくてもよい。 In the above-described embodiment, the certificate information is stored in the Vendor Specific Info 108 in the specific control frame which is the Information OAM frame. Well-known authentication techniques can be used for this certificate information. The information stored in the Vendor Specific Info 108 may not be the certificate information, but may be, for example, vendor-defined information, or the information may not be stored in the Vendor Specific Info 108.

[6.効果]
通信システム10は、親局装置1と、子局装置2とを備える。子局装置2は、親局装置1とVLANを介して接続される。親局装置1は、記憶部18と、制御部(第1制御部)12とを含む。記憶部18は、子局装置2毎に、子局装置2が属するVLANを識別するためのVLAN IDを記憶する。制御部12は、子局装置2を制御するための特定制御フレームを作成する。特定制御フレームは、VLAN IDが格納されたVLANタグ103,203を含む。子局装置2は、制御部(第2制御部)22を含む。制御部22は、特定制御フレームを処理し、応答フレームを作成する。制御部22は、受信フレームにおけるVLANタグ103,203の情報に関わらず、宛先アドレス101,201及び長さ/タイプ104,204を参照することにより、受信フレームが特定制御フレームであるか否かを判定する。子局装置2において特定制御フレームの識別にVLANタグ103,203が使用されないため、子局装置2においてVLANの情報が設定されている必要がない。したがって、VLANの設定作業を軽減することができる。
[6. effect]
The communication system 10 includes a master station device 1 and a slave station device 2. The slave station device 2 is connected to the master station device 1 via a VLAN. The master station device 1 includes a storage unit 18 and a control unit (first control unit) 12. The storage unit 18 stores a VLAN ID for identifying the VLAN to which the slave station device 2 belongs for each slave station device 2. The control unit 12 creates a specific control frame for controlling the slave station device 2. The specific control frame includes the VLAN tags 103 and 203 in which the VLAN ID is stored. The slave station device 2 includes a control unit (second control unit) 22. The control unit 22 processes the specific control frame and creates a response frame. The control unit 22 determines whether or not the receiving frame is a specific control frame by referring to the destination address 101, 201 and the length / type 104, 204 regardless of the information of the VLAN tags 103 and 203 in the receiving frame. judge. Since the VLAN tags 103 and 203 are not used for identifying the specific control frame in the slave station device 2, it is not necessary to set the VLAN information in the slave station device 2. Therefore, it is possible to reduce the work of setting the VLAN.

特定制御フレームは、イーサネットOAM用に予約されたマルチキャスト宛先アドレスを、宛先アドレスとして含んでもよい。VLANタグの使用が想定されたイーサネットOAMのマルチキャスト宛先アドレスを使用することで、L2スイッチ4で特定制御フレームが廃棄されることなく、VLANタグ103,203で指定されたVLAN IDが割り当てられた子局装置2に特定制御フレームが到達する。よって、親局装置1において子局装置2のアドレスを管理する必要がなく、VLANの設定作業をより一層軽減することができる。 The specific control frame may include a multicast destination address reserved for Ethernet OAM as the destination address. By using the multicast destination address of the Ethernet OAM that is supposed to use the VLAN tag, the child to which the VLAN ID specified by the VLAN tags 103 and 203 is assigned without discarding the specific control frame on the L2 switch 4. The specific control frame reaches the station device 2. Therefore, it is not necessary to manage the address of the slave station device 2 in the master station device 1, and it is possible to further reduce the work of setting the VLAN.

特定制御フレームは、Link OAMに規定されたイーサタイプ、又は、イーサネットOAMに規定されたイーサタイプを含んでもよい。これにより、子局装置は、受信フレームの長さ/タイプフィールドに、Link OAMに規定されたイーサタイプ(0x8809)、又は、イーサネットOAMに規定されたイーサタイプ(0x8902)が格納されているか否かに基づいて、特定制御フレームを識別することができる。 The specific control frame may include an ether type specified in Link OAM or an Ethernet type specified in Ethernet OAM. As a result, whether or not the slave station device stores the ether type (0x8809) specified in the Link OAM or the ether type (0x8902) specified in the Ethernet OAM in the length / type field of the received frame. A specific control frame can be identified based on.

特定制御フレームは、イーサタイプのサブタイプとして、OAMのサブタイプを含んでもよい。制御部22は、サブタイプをさらに参照することにより、受信フレームが特定制御フレームであるか否かを判定してもよい。子局装置2における特定制御フレームの識別に、OAMのサブタイプ(0x03)が使用されることにより、さらに正確な特定制御フレームの識別が可能となる。 The specific control frame may include an OAM subtype as an ether type subtype. The control unit 22 may determine whether or not the received frame is a specific control frame by further referring to the subtype. By using the OAM subtype (0x03) for identifying the specific control frame in the slave station device 2, more accurate identification of the specific control frame becomes possible.

制御部22は、特定制御フレームに含まれるベンダーコードに基づいて、特定制御フレームが真正の特定制御フレームであるか否かを判定してもよい。これにより、子局装置2において不正な特定制御フレームを識別することができ、子局装置2が不正に設定されることを抑制することができる。 The control unit 22 may determine whether or not the specific control frame is a genuine specific control frame based on the vendor code included in the specific control frame. As a result, the slave station device 2 can identify an illegal specific control frame, and it is possible to prevent the slave station device 2 from being illegally set.

特定制御フレームは、真正の特定制御フレームを証明するための証明書情報が格納されるVendor Specific Infoフィールドを含んでもよい。制御部22は、特定制御フレームに含まれるVendor Specific Infoフィールドに格納された情報にさらに基づいて、特定制御フレームが真正の特定制御フレームであるか否かを判定してもよい。これにより、子局装置2において不正な特定制御フレームをより一層正確に識別することができる。 The specific control frame may include a Vendor Specific Info field that contains certificate information for proving the authentic specific control frame. The control unit 22 may determine whether or not the specific control frame is a genuine specific control frame based on the information stored in the Vendor Specific Info field included in the specific control frame. As a result, the slave station device 2 can more accurately identify an illegal specific control frame.

制御部22は、特定制御フレームの送信元アドレス102,202を宛先アドレス101,201として含み、特定制御フレームのVLANタグ103,203と同一のVLANタグ103,203を含む応答フレームを作成してもよい。子局装置2においてVLAN IDが事前に設定されていなくても、子局装置2において応答フレームを作成し、当該応答フレームを子局装置2から親局装置1へ送信することができる。 Even if the control unit 22 includes the source addresses 102 and 202 of the specific control frame as the destination addresses 101 and 201 and creates a response frame including the same VLAN tags 103 and 203 as the VLAN tags 103 and 203 of the specific control frame. good. Even if the VLAN ID is not set in advance in the slave station device 2, the slave station device 2 can create a response frame and transmit the response frame from the slave station device 2 to the master station device 1.

制御部12は、親局装置1とセッションが確立している子局装置2のVLAN IDが変更された場合、セッション状態を維持したまま、変更後のVLAN IDが格納されたVLANタグ103,203を含む特定制御フレームを作成してもよい。本開示では、子局装置2においてVLAN IDを使用せずに特定制御フレームを識別する。したがって、VLAN IDが変更されたとしても、子局装置2において親局装置1とのセッション状態を変化させる必要がない。上記構成とすることにより、子局装置2に割り当てられるVLAN IDが変化した場合に、親局装置1と子局装置2との間で新たにセッション確立のための通信処理(ハンドシェイク)を行う必要がない。 When the VLAN ID of the slave station device 2 for which the session is established with the master station device 1 is changed, the control unit 12 maintains the session state and stores the changed VLAN IDs 103 and 203. You may create a specific control frame including. In the present disclosure, the slave station device 2 identifies a specific control frame without using a VLAN ID. Therefore, even if the VLAN ID is changed, it is not necessary to change the session state with the master station device 1 in the slave station device 2. With the above configuration, when the VLAN ID assigned to the slave station device 2 changes, communication processing (handshake) for establishing a new session is performed between the master station device 1 and the slave station device 2. No need.

子局装置2は、記憶部28をさらに含んでもよい。制御部22は、親局装置1から送信された特定制御フレームを受信した場合、受信された特定制御フレームに含まれるVLAN IDを記憶部28に記憶させてもよい。制御部22は、子局装置2から親局装置1へ送信する制御フレームを作成する場合、記憶部28に記憶されたVLAN IDが格納されたVLANタグ103,203を含む制御フレームを作成してもよい。これにより、オペレータが子局装置2にVLAN IDを設定しなくても、子局装置2においてVLANタグ103,203を含む制御フレームを作成し、当該制御フレームを子局装置2から親局装置1へ送信することができる。 The slave station device 2 may further include a storage unit 28. When the control unit 22 receives the specific control frame transmitted from the master station device 1, the control unit 22 may store the VLAN ID included in the received specific control frame in the storage unit 28. When the control unit 22 creates a control frame to be transmitted from the slave station device 2 to the master station device 1, the control unit 22 creates a control frame including the VLAN tags 103 and 203 in which the VLAN ID stored in the storage unit 28 is stored. May be good. As a result, even if the operator does not set the VLAN ID in the slave station device 2, the slave station device 2 creates a control frame including the VLAN tags 103 and 203, and the control frame is transferred from the slave station device 2 to the master station device 1. Can be sent to.

特定制御フレームは、Link OAMフレーム又はイーサネットOAMフレームであってもよい。これにより、子局装置2においてVLANの情報を設定することなく、Link OAMフレーム又はイーサネットOAMフレームを用いて親局装置1が子局装置2を制御することができる。 The specific control frame may be a Link OAM frame or an Ethernet OAM frame. As a result, the master station apparatus 1 can control the slave station apparatus 2 by using the Link OAM frame or the Ethernet OAM frame without setting the VLAN information in the slave station apparatus 2.

親局装置1は、VLANを介して子局装置2と接続される。親局装置1は、記憶部18と、制御部(第1制御部)12とを備える。記憶部18は、子局装置2毎に、子局装置が属するVLANを識別するためのVLAN IDを記憶する。制御部12は、子局装置2を制御するための特定制御フレームを作成する。特定制御フレームは、VLAN IDが格納されたVLANタグ103,203を含む。親局装置1は、特定制御フレームを子局装置2へ送信する前に、子局装置2にVLAN IDを設定しない。子局装置においてVLANの情報が設定されないため、VLANの設定作業を軽減することができる。 The master station device 1 is connected to the slave station device 2 via a VLAN. The master station device 1 includes a storage unit 18 and a control unit (first control unit) 12. The storage unit 18 stores a VLAN ID for identifying the VLAN to which the slave station device belongs for each slave station device 2. The control unit 12 creates a specific control frame for controlling the slave station device 2. The specific control frame includes the VLAN tags 103 and 203 in which the VLAN ID is stored. The master station device 1 does not set a VLAN ID in the slave station device 2 before transmitting the specific control frame to the slave station device 2. Since the VLAN information is not set in the slave station device, it is possible to reduce the work of setting the VLAN.

[7.補記]
今回開示された実施の形態はすべての点で例示であって、制限的ではない。本発明の権利範囲は、上述の実施形態ではなく特許請求の範囲によって示され、特許請求の範囲と均等の意味及びその範囲内でのすべての変更が含まれる。
[7. Supplement]
The embodiments disclosed this time are exemplary in all respects and are not restrictive. The scope of rights of the present invention is shown by the scope of claims, not the embodiments described above, and includes the meaning equivalent to the scope of claims and all modifications within the scope thereof.

1 親局装置
2 子局装置
3 ネットワーク
4 L2スイッチ
5 上位網
6 下位網
7 管理サーバ
10 通信システム
11 上位側インタフェース部
12 制御部(第1制御部)
12a,22a プロセッサ
12b,22b 不揮発性メモリ
12c,22c 揮発性メモリ
12d,22d 入出力部
12e 親局プログラム
13,23 第1処理部
13a,14a,23b,24a VLAN判定部
13b,23a 制御フレーム判定部
14,24 第2処理部
14b 合流部
15,25 対向側インタフェース部
16,26 上りバッファ
17,27 下りバッファ
18,28 記憶部
18a VLANリスト
19 外部インタフェース部
21 下位側インタフェース部
22 制御部(第2制御部)
22e 子局プログラム
24b 合流部
101,201,301 宛先アドレス
102,202,302 送信元アドレス
103,203,303 VLANタグ
104,204 長さ/タイプ
105,205,305 サブタイプ(OpCode)
106,206 フラグ
107,207 OUI(Organizationally Unique Identifier)
108 Vendor Specific Info
304 イーサタイプ
306 Vendor Specific Data
1 Master station device 2 Slave station device 3 Network 4 L2 switch 5 Upper network 6 Lower network 7 Management server 10 Communication system 11 Upper interface unit 12 Control unit (1st control unit)
12a, 22a Processor 12b, 22b Non-volatile memory 12c, 22c Volatile memory 12d, 22d Input / output unit 12e Master station program 13,23 First processing unit 13a, 14a, 23b, 24a VLAN determination unit 13b, 23a Control frame determination unit 14,24 2nd processing unit 14b Confluence unit 15,25 Opposite side interface unit 16,26 Upstream buffer 17,27 Downstream buffer 18,28 Storage unit 18a VLAN list 19 External interface unit 21 Lower side interface unit 22 Control unit (second) Control unit)
22e Slave station program 24b Confluence 101,201,301 Destination address 102,202,302 Source address 103,203,303 VLAN tag 104,204 Length / type 105,205,305 Subtype (OpCode)
106,206 Flag 107,207 OUI (Organizationally Unique Identifier)
108 Vendor Specific Info
304 Ethertype 306 Vendor Specific Data

Claims (13)

親局装置と、
前記親局装置とVLANを介して接続される子局装置と、
を備える通信システムであって、
前記親局装置は、
前記子局装置毎に、前記子局装置が属するVLANを識別するためのVLAN IDを記憶する記憶部と、
前記子局装置を制御するための特定制御フレームを作成する第1制御部と、
を含み、
前記特定制御フレームは、前記VLAN IDが格納されたVLANタグを含み、
前記子局装置は、前記特定制御フレームを処理し、応答フレームを作成する第2制御部を含み、
前記第2制御部は、受信フレームにおけるVLANタグの情報に関わらず、宛先アドレス及びイーサタイプを参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定する、
通信システム。
With the master station device,
A slave station device connected to the master station device via a VLAN,
It is a communication system equipped with
The master station device is
For each slave station device, a storage unit for storing a VLAN ID for identifying the VLAN to which the slave station device belongs, and a storage unit.
A first control unit that creates a specific control frame for controlling the slave station device, and
Including
The specific control frame includes a VLAN tag in which the VLAN ID is stored.
The slave station device includes a second control unit that processes the specific control frame and creates a response frame.
The second control unit determines whether or not the receiving frame is the specific control frame by referring to the destination address and the ether type regardless of the information of the VLAN tag in the receiving frame.
Communications system.
前記特定制御フレームは、イーサネットOAM用に予約されたマルチキャスト宛先アドレスを、宛先アドレスとして含む、
請求項1に記載の通信システム。
The specific control frame includes a multicast destination address reserved for Ethernet OAM as a destination address.
The communication system according to claim 1.
前記特定制御フレームは、Link OAMに規定されたイーサタイプ、又は、イーサネットOAMに規定されたイーサタイプを含む、
請求項1又は請求項2に記載の通信システム。
The specific control frame includes an ether type specified in Link OAM or an Ethernet type specified in Ethernet OAM.
The communication system according to claim 1 or 2.
前記特定制御フレームは、前記イーサタイプのサブタイプとして、OAMのサブタイプを含み、
前記第2制御部は、前記サブタイプをさらに参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定する、
請求項3に記載の通信システム。
The specific control frame includes a subtype of OAM as a subtype of the ether type.
The second control unit further refers to the subtype to determine whether or not the receiving frame is the specific control frame.
The communication system according to claim 3.
前記第2制御部は、特定制御フレームに含まれるベンダーコードに基づいて、前記特定制御フレームが真正の特定制御フレームであるか否かを判定する、
請求項1から請求項4のいずれか1項に記載の通信システム。
The second control unit determines whether or not the specific control frame is a genuine specific control frame based on the vendor code included in the specific control frame.
The communication system according to any one of claims 1 to 4.
前記特定制御フレームは、真正の特定制御フレームを証明するための証明書情報が格納されるフィールドを含み、
前記第2制御部は、特定制御フレームに含まれる前記フィールドに格納された情報に基づいて、前記特定制御フレームが真正の特定制御フレームであるか否かを判定する、
請求項1から請求項5のいずれか1項に記載の通信システム。
The specific control frame includes a field in which certificate information for certifying a genuine specific control frame is stored.
The second control unit determines whether or not the specific control frame is a genuine specific control frame based on the information stored in the field included in the specific control frame.
The communication system according to any one of claims 1 to 5.
前記第2制御部は、前記特定制御フレームの送信元アドレスを宛先アドレスとして含み、前記特定制御フレームのVLANタグと同一のVLANタグを含む前記応答フレームを作成する、
請求項1から請求項6のいずれか1項に記載の通信システム。
The second control unit creates the response frame including the source address of the specific control frame as a destination address and the same VLAN tag as the VLAN tag of the specific control frame.
The communication system according to any one of claims 1 to 6.
前記第1制御部は、前記親局装置とセッションが確立している子局装置のVLAN IDが変更された場合、セッション状態を維持したまま、変更後のVLAN IDが格納されたVLANタグを含む特定制御フレームを作成する、
請求項1から請求項7のいずれか1項に記載の通信システム。
The first control unit includes a VLAN tag in which the changed VLAN ID is stored while maintaining the session state when the VLAN ID of the slave station device having a session established with the master station device is changed. Create a specific control frame,
The communication system according to any one of claims 1 to 7.
前記子局装置は、記憶部をさらに含み、
前記第2制御部は、前記親局装置から送信された前記特定制御フレームを受信した場合、受信された前記特定制御フレームに含まれるVLAN IDを前記記憶部に記憶させ、
前記第2制御部は、前記子局装置から前記親局装置へ送信する制御フレームを作成する場合、前記記憶部に記憶された前記VLAN IDが格納されたVLANタグを含む制御フレームを作成する、
請求項1から請求項8のいずれか1項に記載の通信システム。
The slave station device further includes a storage unit and includes a storage unit.
When the second control unit receives the specific control frame transmitted from the master station device, the second control unit stores the received VLAN ID included in the specific control frame in the storage unit.
When the second control unit creates a control frame to be transmitted from the slave station device to the master station device, the second control unit creates a control frame including a VLAN tag in which the VLAN ID stored in the storage unit is stored.
The communication system according to any one of claims 1 to 8.
前記特定制御フレームは、Link OAMフレーム又はイーサネットOAMフレームである、
請求項1から請求項9のいずれか1項に記載の通信システム。
The specific control frame is a Link OAM frame or an Ethernet OAM frame.
The communication system according to any one of claims 1 to 9.
VLANを介して子局装置と接続される親局装置であって、
前記子局装置毎に、前記子局装置が属するVLANを識別するためのVLAN IDを記憶する記憶部と、
前記子局装置を制御するための特定制御フレームを作成する制御部と、
を含み、
前記特定制御フレームは、前記VLAN IDが格納されたVLANタグを含み、
前記特定制御フレームを前記子局装置へ送信する前に、前記子局装置に前記VLAN IDを設定しない、
親局装置。
A master station device that is connected to a slave station device via a VLAN.
For each slave station device, a storage unit for storing a VLAN ID for identifying the VLAN to which the slave station device belongs, and a storage unit.
A control unit that creates a specific control frame for controlling the slave station device, and
Including
The specific control frame includes a VLAN tag in which the VLAN ID is stored.
The VLAN ID is not set in the slave station device before the specific control frame is transmitted to the slave station device.
Master station device.
VLANを介して親局装置と接続される子局装置であって、
前記親局装置から送信される特定制御フレームを処理し、応答フレームを作成する制御部を備え、
前記特定制御フレームは、前記子局装置が属するVLANを識別するためのVLAN IDが格納されたVLANタグを含み、
前記制御部は、受信フレームにおけるVLANタグの情報に関わらず、宛先アドレス及びイーサタイプを参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定する、
子局装置。
It is a slave station device connected to the master station device via VLAN, and is a slave station device.
A control unit that processes a specific control frame transmitted from the master station device and creates a response frame is provided.
The specific control frame includes a VLAN tag containing a VLAN ID for identifying the VLAN to which the slave station device belongs.
The control unit determines whether or not the received frame is the specific control frame by referring to the destination address and the ether type regardless of the information of the VLAN tag in the received frame.
Slave device.
VLANを介して親局装置と接続される子局装置としてコンピュータを機能させるためのコンピュータプログラムであって、
コンピュータに、
前記親局装置から送信される特定制御フレームを処理し、応答フレームを作成するステップを実行させ、
前記ステップは、受信フレームにおけるVLANタグの情報に関わらず、宛先アドレス及びイーサタイプを参照することにより、前記受信フレームが前記特定制御フレームであるか否かを判定することを含む、
コンピュータプログラム。
A computer program for operating a computer as a slave station device connected to a master station device via a VLAN.
On the computer
A step of processing a specific control frame transmitted from the master station device and creating a response frame is executed.
The step includes determining whether or not the received frame is the specific control frame by referring to the destination address and the ether type regardless of the information of the VLAN tag in the received frame.
Computer program.
JP2020163324A 2020-09-29 2020-09-29 Communication system, master station device, slave station device, and computer program Pending JP2022055738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020163324A JP2022055738A (en) 2020-09-29 2020-09-29 Communication system, master station device, slave station device, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020163324A JP2022055738A (en) 2020-09-29 2020-09-29 Communication system, master station device, slave station device, and computer program

Publications (1)

Publication Number Publication Date
JP2022055738A true JP2022055738A (en) 2022-04-08

Family

ID=80998536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020163324A Pending JP2022055738A (en) 2020-09-29 2020-09-29 Communication system, master station device, slave station device, and computer program

Country Status (1)

Country Link
JP (1) JP2022055738A (en)

Similar Documents

Publication Publication Date Title
US10440068B2 (en) Service provisioning profile for a fabric network
US10541916B2 (en) Tunneled routing
EP3905600B1 (en) Efficient communication for devices of a home network
US10454710B2 (en) Virtual local area network mismatch detection in networks
EP2955874B1 (en) Link discovery method and device
US9258137B2 (en) Bridge apparatus and bridge system with a virtual device for protocol conversion
CN105050087B (en) A kind of method and system of multi-protocols compatible equipment access WiFi network
US20150245351A1 (en) Communicating data over a mesh network
KR20180021715A (en) Control of IoT devices using remote control proxy devices via infrastructure devices
US20150271022A1 (en) Configuration of networks using client device access of remote server
CN103118064A (en) Method and device of Portal centralized authentication
US20150271016A1 (en) Configuration of networks with server cluster device
CN107820262B (en) Parameter configuration method, device and system
US20170048103A1 (en) Communication apparatus, communication method, and communication system
US11652659B2 (en) Method and apparatus for providing a high security mode in a network
US7623666B2 (en) Automatic setting of security in communication network system
CN104506344A (en) Wireless communication network for intelligent household electrical appliance and communication method of wireless communication network
JP2022055738A (en) Communication system, master station device, slave station device, and computer program
WO2022022420A1 (en) Network distribution method and system
WO2011057544A1 (en) Method and system for implementing operation administration and maintenance (oam) from point to multi-points based on 802.3ah protocol
CN110891273B (en) Wireless transparent transmission module interconnection and intercommunication method based on ZigBee3.0
González González Study of the protocol for home automation Thread
CN108260179B (en) Access point AP access control method and device
Tanaka et al. Implementation of Secure End-to-End Remote Control System for Smart Home Appliances on Android

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230322

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240213

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240328