KR20170107486A - Relay device and communication system - Google Patents

Relay device and communication system Download PDF

Info

Publication number
KR20170107486A
KR20170107486A KR1020177022839A KR20177022839A KR20170107486A KR 20170107486 A KR20170107486 A KR 20170107486A KR 1020177022839 A KR1020177022839 A KR 1020177022839A KR 20177022839 A KR20177022839 A KR 20177022839A KR 20170107486 A KR20170107486 A KR 20170107486A
Authority
KR
South Korea
Prior art keywords
port
loop detection
priority
loop
detection frame
Prior art date
Application number
KR1020177022839A
Other languages
Korean (ko)
Other versions
KR101935188B1 (en
Inventor
도시유키 나카야스
사치코 다니구치
Original Assignee
미쓰비시덴키 가부시키가이샤
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 미쓰비시덴키 가부시키가이샤 filed Critical 미쓰비시덴키 가부시키가이샤
Publication of KR20170107486A publication Critical patent/KR20170107486A/en
Application granted granted Critical
Publication of KR101935188B1 publication Critical patent/KR101935188B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

본 발명에 따른 중계 장치(1)는 포트(10-1~10-N)마다의 우선도를 관리하고, 송신하는 포트를 나타내는 포트 정보가 격납되고 우선도를 나타내는 우선도 정보가 격납되기 위한 영역이 마련된 루프 검출 프레임을 정기적으로 생성하고, 자 장치 이외로부터 송신된 루프 검출 프레임을 수신하면, 수신한 프레임의 우선도 정보가 나타내는 우선도보다 포트의 우선도가 낮은 경우에, 수신한 루프 검출 프레임의 우선도 정보를 포트의 우선도로 갱신하여 출력하고, 자 장치로부터 송신한 루프 검출 프레임을 수신했을 경우, 자 장치 이외로부터 송신된 루프 검출 프레임에 격납된 우선도 정보와 포트마다의 우선도에 기초하여 포트를 폐색시킬지 여부를 제어하는 루프 검출부(15)와, 루프 검출부(15)로부터 출력되는 루프 검출 프레임을 포트로 송출하는 출력 제어부(14)를 구비한다. The relay apparatus 1 according to the present invention manages the priority for each of the ports 10-1 to 10-N, stores the port information indicating the port to be transmitted, stores the priority information indicating the priority, If the priority of the port is lower than the priority indicated by the priority information of the received frame when the loop detection frame transmitted from the self apparatus is received at regular intervals, And when receiving the loop detection frame transmitted from the self apparatus, the priority information stored in the loop detection frame transmitted from a device other than the self device and the priority for each port A loop detection unit 15 for controlling whether or not to close the port, and an output control unit (not shown) for outputting the loop detection frame output from the loop detection unit 15 to the port 14).

Description

중계 장치 및 통신 시스템Relay device and communication system

본 발명은 통신 시스템 내의 루프를 검출하는 중계 장치 및 통신 시스템에 관한 것이다. The present invention relates to a relay apparatus and a communication system for detecting a loop in a communication system.

근래, 산업 분야에 있어서 이더넷(ethernet)(등록상표)화가 진행되어, 제조 현장에서는 PLC(Programmable Logic Controller), 인버터, 센서 등의 FA(Factory Automation) 기기를 연결한 통신 네트워크인 산업용 네트워크가 구축되고 있다. 산업용 네트워크에서는, 처리 정밀도를 향상시키기 위해서 복수의 FA 기기가 시각을 동기시켜, 연계하여 동작하는 것이 중요하다. 시각 동기를 실현하는 수단으로서, 제어 명령을 출력하는 통신 장치인 마스터가, 자신의 시각 정보를 제어 대상의 통신 장치인 슬레이브에 송신하고, 슬레이브에서는 수신한 시각 정보를 마스터로부터의 전송 지연 시간으로 보정한 값을 자신의 시각 정보로서 갱신하는 방법 등이 이용되고 있다. 상술한 시각 동기 방식에서는, 네트워크의 토폴로지(topology) 즉 접속 형태의 변화에 따라서 마스터 슬레이브 사이의 전송 지연 시간이 변하면, FA 기기 사이의 시각 동기 정밀도에 영향이 나타난다. In recent years, ethernet (registered trademark) has been developed in the industrial field, and an industrial network, which is a communication network in which FA (Factory Automation) devices such as programmable logic controllers (PLCs) have. In the industrial network, it is important for a plurality of FA apparatuses to synchronously operate in synchronization with each other in order to improve processing precision. As a means for realizing the time synchronization, a master which is a communication device for outputting a control command transmits its own time information to a slave which is a communication device to be controlled, and the slave corrects the received time information to a transmission delay time from the master And a method of updating one value as its own time information. In the above-described time synchronization method, when the transmission delay time between master slaves changes according to the topology of the network, that is, the connection type, there is an influence on the time synchronization accuracy between FA devices.

한편, 레이어 2 스위치 등의 중계 장치에 복수의 FA 기기를 접속하여 구축하는 산업용 네트워크에서는 인위적인 미스 등으로 통신 경로의 오접속이 생겨, 루프(loop) 경로를 형성하는 경우가 있다. 루프 경로의 형성에 따라서 스톰(storm)이 발생하면, 산업 네트워크의 운용에 지장을 초래한다. 스톰이란, 브로드캐스트 프레임이나 멀티캐스트 프레임의 전송 및 복제 처리가 루프 경로상에서 무한으로 반복되어, 네트워크의 대역을 압박하는 것이다. On the other hand, in an industrial network in which a plurality of FA apparatuses are connected to a relay apparatus such as a layer 2 switch, an erroneous communication path may be formed due to an artificial mist or the like to form a loop path. If a storm occurs according to the formation of the loop path, the operation of the industrial network is hindered. The term "storm" means transmission and duplication processing of a broadcast frame or a multicast frame is repeated indefinitely on the loop path, thereby compressing the bandwidth of the network.

상술한 스톰을 회피하기 위해서는, 중계 장치가 루프 경로를 검출하여 루프 경로상의 포트를 폐색(閉塞)하면 된다. 종래의 루프 검출 방식으로서, 비특허 문헌 1에서 개시되어 있는 STP(Spanning Tree Protocol)에 의한 포트의 블로킹이 이미 알려져 있다. STP에서는, 링크 속도 또는 중계 장치의 우선도 설정으로부터 결정되는 패스 코스트에 기초하여 통신 경로를 선택하고, 중복 경로(redundant path)상의 포트를 폐색함으로써 루프 경로를 해소한다. In order to avoid the above-described storm, the relay device may detect the loop path and close the port on the loop path. As a conventional loop detection method, blocking of a port by STP (Spanning Tree Protocol) disclosed in Non-Patent Document 1 is already known. In the STP, the communication path is selected based on the path cost determined from the link speed or the priority setting of the relay apparatus, and the loop path is eliminated by blocking the port on the redundant path.

또, 통신 장치가 수신지 MAC(Media Access Control) 어드레스 및 송신원 MAC 어드레스에 자(自) 장치의 MAC 어드레스를 격납한 시험 프레임을 송신하고, 자 장치가 송신한 시험 프레임을 수신함으로써 루프를 검출하는 기술이 특허 문헌 1에서 개시되어 있다. 또, 수신한 프레임의 송신원 MAC 어드레스와 수신 포트의 정보를 관련지어 등록하고 있는 전송 테이블에 있어서, MAC 어드레스에 대한 수신 포트의 갱신 횟수가 설정한 임계치 이상이었을 경우에 루프를 검출하는 기술이 특허 문헌 2에서 개시되어 있다. In addition, the communication apparatus transmits a test frame in which the MAC address of its own apparatus is stored in the destination MAC address and the source MAC address, and detects the loop by receiving the test frame transmitted by the self apparatus Technology is disclosed in Patent Document 1. A technique for detecting a loop when the number of times of update of the receiving port with respect to the MAC address is equal to or greater than the set threshold in the transmission table in which the transmission source MAC address of the received frame is registered in association with the receiving port information, 2 < / RTI >

특허 문헌 1: 일본 특개 2012-44384호 공보Patent Document 1: Japanese Unexamined Patent Publication No. 2012-44384 특허 문헌 2: 일본 특허 제4879279호 공보Patent Document 2: Japanese Patent No. 4879279

비특허 문헌 1: IEEE Std 802. ID-2004, "IEEE Standard for Local and Metropolitan Area Networks:Media Access Control(MAC) Bridges" IEEE, 2004, pp.57-65Non-Patent Document 1: IEEE Std 802. ID-2004, "IEEE Standard for Local and Metropolitan Area Networks: Media Access Control (MAC) Bridges" IEEE, 2004, pp. 57-65

비특허 문헌 1에서 개시되어 있는 STP에서는, 통신 경로를 고정하지 않고 항상 패스 코스트가 최소가 되는 최적 경로를 사용하기 때문에, 신규 경로가 접속되었을 경우에 토폴로지가 동적으로 변화한다. 산업용 네트워크에서 STP를 사용했을 경우에는, 상술한 토폴로지의 변화에 따른 마스터 슬레이브 사이의 전송 지연 시간이, 시각 동기 정밀도에 영향을 주는 것이 문제가 된다. In the STP disclosed in the non-patent document 1, since the optimal path is always used which minimizes the path cost without fixing the communication path, the topology changes dynamically when the new path is connected. When STP is used in an industrial network, there is a problem that the transmission delay time between master slaves due to the above-mentioned change in topology affects the time synchronization accuracy.

한편, 특허 문헌 1 및 특허 문헌 2에 기재된 기술에서는, 루프 경로를 검출하는 것이 가능하지만, 통신 장치가 자율적으로 루프 경로를 해소할 수 없기 때문에, 네트워크 관리자가 루프 경로상의 통신 경로를 절단할 필요가 있다고 하는 문제가 있다. On the other hand, in the technologies described in Patent Documents 1 and 2, it is possible to detect the loop path, but since the communication device can not solve the loop path autonomously, it is necessary for the network manager to cut off the communication path on the loop path There is a problem.

본 발명은 상기를 감안하여 이루어진 것으로서, 접속 형태를 변화시키지 않고 자율적으로 루프 경로를 해소할 수 있는 중계 장치를 얻는 것을 목적으로 한다. SUMMARY OF THE INVENTION The present invention has been made in view of the above, and an object thereof is to obtain a repeater capable of autonomously eliminating a loop path without changing a connection form.

상술한 과제를 해결하여 목적을 달성하기 위해서, 본 발명의 중계 장치는 복수의 포트와, 포트마다의 우선도를 관리하고, 송신하는 포트를 나타내는 포트 정보가 격납되고 우선도를 나타내는 우선도 정보가 격납되기 위한 영역이 마련된 루프 검출 프레임을 정기적으로 생성하여 출력하고, 자 장치 이외로부터 송신된 루프 검출 프레임을 수신하면, 수신한 루프 검출 프레임의 우선도 정보가 나타내는 우선도보다 포트의 우선도가 낮은 경우에, 수신한 루프 검출 프레임의 우선도 정보를 포트의 우선도로 갱신하여, 우선도를 갱신한 루프 검출 프레임을 출력하고, 자 장치로부터 송신한 루프 검출 프레임을 수신했을 경우, 자 장치 이외로부터 송신된 루프 검출 프레임에 격납된 우선도 정보와 포트마다의 우선도에 기초하여 포트를 폐색시킬지 여부를 제어하는 루프 검출부를 구비한다. 또, 이 중계 장치는 루프 검출부로부터 출력되는 루프 검출 프레임을 포트로 송출하는 출력 제어부를 구비한다. In order to solve the above problems, the relay apparatus of the present invention is characterized in that the relay apparatus manages the priority levels of a plurality of ports and each port, stores the port information indicating the port to be transmitted, Periodically generates and outputs a loop detection frame provided with an area to be stored, and when a loop detection frame transmitted from a device other than the self device is received, the priority of the port is lower than the priority indicated by the priority information of the received loop detection frame , The priority information of the received loop detection frame is updated to the priority of the port and the loop detection frame whose priority has been updated is outputted and when the loop detection frame transmitted from the self apparatus is received, Whether or not to close the port based on the priority information stored in the loop detection frame and the priority for each port And a loop detection unit. The relay apparatus also includes an output control section for transmitting the loop detection frame output from the loop detection section to the port.

본 발명에 따른 중계 장치는, 접속 형태를 변화시키지 않고 자율적으로 루프 경로를 해소할 수 있다고 하는 효과를 달성한다. The relay apparatus according to the present invention achieves the effect that the loop path can be eliminated autonomously without changing the connection form.

도 1은 실시 형태 1의 중계 장치의 구성예를 나타내는 도면이다.
도 2는 실시 형태 1의 루프 검출부의 구성예를 나타내는 도면이다.
도 3은 실시 형태 1의 중계 장치의 하드웨어 구성예를 나타내는 도면이다.
도 4는 실시 형태 1의 제어 회로의 구성예를 나타내는 도면이다.
도 5는 실시 형태 1의 FDB 테이블 기억부에 기억되는 FDB 테이블의 구성예를 나타내는 도면이다.
도 6은 실시 형태 1의 루프 검출 프레임의 구성예를 나타내는 도면이다.
도 7은 실시 형태 1의 포트 상태의 정의를 나타내는 도면이다.
도 8은 실시 형태 1의 루프 관리 테이블의 구성예를 나타내는 도면이다.
도 9는 실시 형태 1의 루프 검출부에 있어서의 루프 검출 프레임의 수신시의 처리 절차의 일례를 나타내는 순서도이다.
도 10은 실시 형태 1의 루프 검출부에 있어서의 루프 검출 프레임 송신 및 포트 폐색 처리 절차의 일례를 나타내는 순서도이다.
도 11은 실시 형태 1의 통신 시스템의 구성예를 나타내는 도면이다.
도 12는 실시 형태 1의 폐색 처리에 의해 루프 경로를 회피한 예를 나타내는 도면이다.
도 13은 실시 형태 2의 통신 시스템의 구성예를 나타내는 도면이다.
도 14는 실시 형태 2의 루프 검출부에 있어서의 루프 검출 프레임의 수신시의 처리 절차의 일례를 나타내는 순서도이다.
도 15는 실시 형태 2의 루프 관리 테이블의 구성예를 나타내는 도면이다.
도 16은 실시 형태 2의 루프 검출부에 있어서의 루프 검출 프레임 송신 및 포트 폐색 처리 절차의 일례를 나타내는 순서도이다.
도 17은 실시 형태 3의 포트 폐색 해제 처리 절차의 일례를 나타내는 순서도이다.
1 is a diagram showing a configuration example of a relay apparatus according to the first embodiment.
2 is a diagram showing a configuration example of a loop detection unit according to the first embodiment.
3 is a diagram showing a hardware configuration example of the relay apparatus according to the first embodiment.
4 is a diagram showing a configuration example of a control circuit according to the first embodiment.
5 is a diagram showing a configuration example of an FDB table stored in the FDB table storage unit according to the first embodiment.
6 is a diagram showing a configuration example of a loop detection frame according to the first embodiment.
7 is a view showing the definition of the port state according to the first embodiment.
8 is a diagram showing a configuration example of a loop management table according to the first embodiment.
Fig. 9 is a flowchart showing an example of a processing procedure at the time of reception of a loop detection frame in the loop detection unit of the first embodiment. Fig.
10 is a flowchart showing an example of a loop detection frame transmission and a port blocking procedure in the loop detection unit according to the first embodiment.
11 is a diagram showing a configuration example of a communication system according to the first embodiment.
12 is a diagram showing an example in which the loop path is avoided by the occlusion processing according to the first embodiment.
13 is a diagram showing a configuration example of a communication system according to the second embodiment.
14 is a flowchart showing an example of a processing procedure upon reception of a loop detection frame in the loop detection unit of the second embodiment.
15 is a diagram showing a configuration example of a loop management table according to the second embodiment.
16 is a flowchart showing an example of a loop detection frame transmission and a port blocking procedure in the loop detection unit according to the second embodiment.
17 is a flowchart showing an example of a port closure release procedure according to the third embodiment.

이하에, 본 발명에 따른 중계 장치 및 통신 시스템의 실시 형태를 도면에 기초하여 상세하게 설명한다. 또한, 이 실시 형태에 의해 이 발명이 한정되는 것은 아니다. DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of a relay apparatus and a communication system according to the present invention will be described in detail with reference to the drawings. The present invention is not limited to these embodiments.

실시 형태 1.Embodiment 1

도 1은 본 발명에 따른 실시 형태 1의 중계 장치(1)의 구성예를 나타내는 도면이다. 중계 장치(1)는 송신 포트이면서 또한 수신 포트인 포트(10-1~10-N)를 구비한다. 또한, N은 2 이상의 정수이다. 중계 장치(1)의 FDB 테이블 기억부(11)는 수신한 프레임의 송신원 어드레스와 수신 포트의 정보가 관련지어 등록되는 FDB(Forwarding DataBase) 테이블을 기억한다. 프레임 수신부(12-1~12-N)는 포트(10-1~10-N) 중 대응하는 1개의 포트에 접속하고, 접속한 포트에 의해 수신된 프레임으로부터 수신지 어드레스에 기초하여 그 프레임을 송출하는 송신 포트를 결정한다. 다중화부(13)는 프레임 수신부(12-1~12-N)로부터 입력된 프레임을 다중화한다. 출력 제어부(14)는 수신 프레임의 수신지 포트마다 프레임을 배분하여, 프레임을 송출한다. 루프 검출부(15)는 포트(10-1~10-N)마다의 우선도를 관리하고, 송신하는 포트(10-1~10-N)를 나타내는 포트 정보와 루프 경로상의 최저 우선 포트 정보를 갱신하기 위한 우선도를 나타내는 우선도 정보를 격납하는 영역을 마련한 루프 검출 프레임을 정기적으로 생성하여 출력하고, 자 장치 이외로부터 송신된 루프 검출 프레임을 수신하면, 수신한 루프 검출 프레임의 우선도 정보가 나타내는 우선도보다 그 프레임의 송수신 포트의 우선도가 낮은 경우에, 수신한 루프 검출 프레임의 우선도 정보를 자신의 우선도로 갱신하여, 갱신한 루프 검출 프레임을 출력하고, 자 장치로부터 송신한 루프 검출 프레임을 수신했을 경우, 루프 검출 프레임에 격납된 우선도 정보와 그 프레임의 송수신 포트의 우선도에 기초하여 포트를 폐색시킬지 여부를 제어한다. 또한, 도 1에서는, 수신측의 포트와 수신측의 포트를 나누어 도시하고 있지만, 실제로는, 도 1의 좌측의 포트(10-i)(i=1, …, N)와 우측의 포트(10-i)는 동일한 포트이다. 1 is a diagram showing a configuration example of a relay apparatus 1 according to Embodiment 1 of the present invention. The relay apparatus 1 has ports 10-1 to 10-N that are both transmission ports and reception ports. Further, N is an integer of 2 or more. The FDB table storage unit 11 of the relay apparatus 1 stores an FDB (Forwarding Data Base) table in which the transmission source address of the received frame and the information of the reception port are registered in association with each other. The frame receiving units 12-1 to 12-N are connected to a corresponding one of the ports 10-1 to 10-N, and receive the frame from the frame received by the connected port based on the destination address And determines the transmission port to be transmitted. The multiplexer 13 multiplexes the frames input from the frame receivers 12-1 to 12-N. The output control unit 14 distributes the frame to each destination port of the received frame and transmits the frame. The loop detector 15 manages the priority for each of the ports 10-1 to 10-N and updates the port information indicating the ports 10-1 to 10-N to be transmitted and the lowest priority port information on the loop path The priority information of the received loop detection frame is indicated by the priority information of the received loop detection frame when the loop detection frame transmitted from a device other than the self apparatus is received. When the priority of the transmission / reception port of the frame is lower than that of the priority, the priority information of the received loop detection frame is updated to its own priority, the updated loop detection frame is output, It controls whether or not to close the port based on the priority information stored in the loop detection frame and the priority of the transmission / reception port of the frame. In FIG. 1, the port on the receiving side and the port on the receiving side are shown separately. Actually, the port 10-i (i = 1, ..., N) -i) are the same port.

도 2는 루프 검출부(15)의 구성예를 나타내는 도면이다. 루프 검출부(15)는 링크 확립을 검출하여, 링크 확립을 검출하면 링크 확립이 유의(有意)인 것을 나타내는 링크 검출 신호를 출력하는 링크 감시부(21)와, 루프 검출 프레임의 송신원의 어드레스에 기초하여 프레임을 식별하는 프레임 식별부(22)와, 링크 검출 신호가 유의로 변화한 것을 계기로 하여, 링크를 확립한 포트로부터 송신하는 루프 검출 프레임을 생성하는 프레임 생성부인 루프 검출 프레임 생성부(23)를 구비한다. 또, 루프 검출부(15)는 루프 검출 프레임에 격납되어 있는 후술하는 우선도 정보와 자 장치의 포트의 우선도를 비교하여, 자 장치의 포트의 우선도의 쪽이 낮은 경우에, 수신한 프레임의 우선도 정보를 갱신한 프레임인 전송 프레임을 출력하는 전송부인 전송 프레임 생성부(24)와, 전송 프레임 생성부(24)로부터 출력되는 전송 프레임과 루프 검출 프레임 생성부(23)에 의해 생성된 루프 검출 프레임을 다중하는 다중부(25)를 구비한다. 또, 루프 검출부(15)는 수신한 루프 검출 프레임에 격납되어 있는 우선도 정보와 자 장치의 포트의 우선도를 비교하여 자 장치가 루프 경로상에서 최저 우선의 중계 장치인지 여부를 판단하는 상태 제어부(26)와, 후술하는 루프 관리 정보인 루프 관리 테이블을 기억하는 루프 관리 테이블 기억부(27)와, 포트마다 포트 상태를 관리함과 아울러 포트 상태에 대응하는 우선도를 관리함으로써 포트마다의 우선도를 관리하는 관리부인 포트 상태 관리 스테이트 머신(28)을 구비한다. 2 is a diagram showing an example of the configuration of the loop detection unit 15. As shown in Fig. The loop detection unit 15 includes a link monitoring unit 21 for detecting a link establishment and detecting a link establishment and outputting a link detection signal indicating that the link establishment is significant, A loop detection frame generation unit 23 that is a frame generation unit that generates a loop detection frame to be transmitted from the port on which the link is established, on the occasion that the link detection signal is significantly changed, . The loop detection unit 15 compares priority information, which will be described later, stored in the loop detection frame with the priority of the port of the self apparatus. When the priority of the port of the self apparatus is low, A transmission frame generation unit 24 that is a transmission unit that outputs a transmission frame that is a frame in which the priority information has been updated; a transmission frame generation unit 24 that generates a loop generated by the transmission frame and loop detection frame generation unit 23 And a multiplexing unit 25 for multiplexing detection frames. The loop detection unit 15 compares the priority information stored in the received loop detection frame with the priority of the port of the self apparatus and determines whether the self apparatus is the lowest priority relay apparatus on the loop path 26, a loop management table storage unit 27 for storing a loop management table, which will be described later, and a priority management unit 26 for managing the port state for each port and managing the priority corresponding to the port state, And a port state management state machine 28 which manages a management state.

도 3은 본 실시 형태의 중계 장치(1)의 하드웨어 구성예를 나타내는 도면이다. 중계 장치(1)는, 예를 들면, 도 3에 나타내는 것처럼, 송수신 포트인 포트(10-1~10-N)와 통신 제어 회로(200)로 구성된다. 포트(10-1~10-N)는, 도 1에 있어서의 포트(10-1~10-N)이다. 또한, 통신 제어 회로(200)에는, 도 1에서 나타낸 FDB 테이블 기억부(11), 프레임 수신부(12-1~12-N), 다중화부(13), 출력 제어부(14) 및 루프 검출부(15)가, 실장된다. 각 부는, 각각이 통신 제어 회로(200) 내의 1개의 전자 회로로서 실장되어도 되고, 도 1의 복수의 구성요소로 1개의 전자 회로로서 구성되어도 된다. 3 is a diagram showing a hardware configuration example of the relay apparatus 1 of the present embodiment. As shown in Fig. 3, for example, the relay apparatus 1 includes ports 10-1 to 10-N serving as transmission / reception ports and a communication control circuit 200. [ The ports 10-1 to 10-N are the ports 10-1 to 10-N in FIG. The communication control circuit 200 is also connected to the FDB table storing unit 11, the frame receiving units 12-1 to 12-N, the multiplexing unit 13, the output control unit 14, and the loop detecting unit 15 Is mounted. Each of the units may be mounted as one electronic circuit in the communication control circuit 200, or may be configured as one electronic circuit with a plurality of components in Fig.

또, 도 1 및 도 2에 나타낸 구성요소 중, 1개 이상의 구성요소가 소프트웨어에 의해 실장되어도 된다. 소프트웨어에 의해 실장되는 구성요소가 있는 경우, 그 구성요소는, 예를 들면 도 4에 나타내는 제어 회로에 의해 실현된다. 도 4는 제어 회로(100)의 구성예를 나타내는 도면이다. 도 4에 나타내는 것처럼 제어 회로(100)는 제어 회로(100)의 외부로부터 입력된 데이터를 수신하는 수신부인 입력부(101)와, 프로세서(102)와, 메모리(103)와, 데이터를 외부로 송신하는 송신부인 출력부(104)를 구비한다. 입력부(101)는 제어 회로(100)의 외부로부터 입력된 데이터를 수신하여 프로세서(102)에 주는 인터페이스 회로이고, 출력부(104)는 프로세서(102) 또는 메모리(103)로부터의 데이터를 제어 회로(100)의 외부에 보내는 인터페이스 회로이다. 도 1 또는 도 2에 나타내는 구성요소가, 도 4에 나타내는 제어 회로(100)에 의해 실현되는 경우, 프로세서(102)가 메모리(103)에 기억된 각각에 대응하는 프로그램을 읽어내어 실행함으로써 실현된다. 또, 메모리(103)는 프로세서(102)가 각 처리를 실행할 때 일시 메모리로서도 사용된다. Note that one or more components among the components shown in Figs. 1 and 2 may be implemented by software. When there is a component to be mounted by software, the component is implemented by, for example, the control circuit shown in Fig. 4 is a diagram showing a configuration example of the control circuit 100. In Fig. 4, the control circuit 100 includes an input unit 101 as a receiving unit for receiving data input from the outside of the control circuit 100, a processor 102, a memory 103, And an output unit 104 serving as a transmitting unit. The input unit 101 is an interface circuit that receives data input from the outside of the control circuit 100 and gives the data to the processor 102. The output unit 104 outputs data from the processor 102 or the memory 103 to the control circuit 100. [ (100). When the components shown in Fig. 1 or 2 are implemented by the control circuit 100 shown in Fig. 4, the processor 102 is realized by reading and executing a program corresponding to each of the programs stored in the memory 103 . The memory 103 is also used as a temporary memory when the processor 102 executes each processing.

다음에, 본 실시 형태의 중계 장치(1)의 동작에 대해 설명한다. 도 5는 FDB 테이블 기억부(11)에 기억되는 FDB 테이블의 구성예를 나타내는 도면이다. 도 5에 나타내는 것처럼, FBD 테이블에는 어드레스와 그 어드레스에 대응하는 포트 번호가 격납된다. 포트 번호는 포트(10-1~10-N)의 번호를 나타내고, 도 5에서는, 포트(10-i)의 포트 번호를 포트 #i라고 기재하고 있다. i는 1 이상의 정수이다. 또한, 본 실시 형태에 있어서의 어드레스란, 송신원 및 수신지의 장치 등을 나타내는 식별 정보로서, 예를 들면, MAC 어드레스이다. Next, the operation of the relay apparatus 1 of the present embodiment will be described. 5 is a diagram showing an example of the configuration of the FDB table stored in the FDB table storage unit 11. Fig. As shown in Fig. 5, an address and a port number corresponding to the address are stored in the FBD table. The port number indicates the number of the port 10-1 to 10-N. In FIG. 5, the port number of the port 10-i is referred to as port #i. i is an integer of 1 or more. The address in the present embodiment is, for example, a MAC address as identification information indicating a device of a transmission source and a destination.

프레임 수신부(12-1~12-N)는 접속되는 포트(10-1~10-N) 경유로 프레임을 수신하면, 수신한 프레임의 송신원의 어드레스를 추출하고, FDB 테이블 내를 참조하여, 추출한 어드레스와 일치하는 어드레스가 있는지 여부를 검색하고, 추출한 어드레스와 일치하는 어드레스가 FDB 테이블 내에 없는 경우, 프레임 수신부(12-1~12-N)는 추출한 어드레스와 그 어드레스에 대응하는 프레임을 수신한 포트의 포트 번호를 새로운 엔트리로서 FDB 테이블에 추가한다. 이와 같이 하여, 중계 장치(1)는 어드레스와 포트의 대응을 학습하고, 학습한 결과가 FDB 테이블에 격납된다. When receiving frames through the connected ports 10-1 to 10-N, the frame reception units 12-1 to 12-N extract the addresses of the transmission source of the received frames, refer to the FDB table, If there is no address coinciding with the extracted address in the FDB table, the frame receivers 12-1 to 12-N extract the extracted address and the frame corresponding to the extracted address from the port To the FDB table as a new entry. In this manner, the relay apparatus 1 learns the correspondence between the address and the port, and the learned result is stored in the FDB table.

또, 프레임 수신부(12-1~12-N)는 수신한 프레임의 수신지의 어드레스를 추출하고, FDB 테이블 내를 참조하여, 추출한 어드레스와 일치하는 어드레스가 FDB 테이블 내에 있는지 여부를 검색하고, 추출한 어드레스와 일치하는 어드레스가 있는 경우, 그 어드레스에 대응하는 포트 번호를 수신지의 포트 번호로서 결정한다. 또, 상기의 추출한 수신지의 어드레스와 일치하는 어드레스가 FDB 테이블 기억부(11)에 기억되는 FDB 테이블 내에 없는 경우, 프레임 수신부(12-1~12-N)는 그 프레임을 수신한 포트를 제외한 모든 포트에 대응하는 포트 번호를 수신지의 포트 번호로서 결정한다. The frame receiving units 12-1 to 12-N extract the address of the destination of the received frame, refer to the FDB table, search whether or not the address coinciding with the extracted address is in the FDB table, When there is an address matching the address, the port number corresponding to the address is determined as the port number of the destination. If the address corresponding to the address of the extracted destination is not found in the FDB table stored in the FDB table storage unit 11, the frame receiving units 12-1 to 12-N extract the port from which the frame is received The port number corresponding to all the ports is determined as the port number of the destination.

또, 프레임 수신부(12-1~12-N)는 수신 프레임의 수신지 포트 혹은 자신에 대응하는 수신 포트가 루프 검출부(15)로부터 입력되는 포트 폐색 지시가 무의(無意)를 나타내는, 즉 루프 검출부(15)로부터 포트 폐색을 지시받지 않은 경우에, 수신한 프레임에 상기와 같이 결정한 수신지의 포트 번호를 나타내는 포트 정보를 부가하여 다중화부(13)에 전송한다. 프레임 수신부(12-1~12-N)는 수신 프레임의 수신지 포트 혹은 자신에 대응하는 수신 포트가 루프 검출부(15)로부터 입력되는 포트 폐색 지시가 유의를 나타내는, 즉 루프 검출부(15)로부터 포트 폐색을 지시받은 경우에는, 수신 프레임을 폐기한다. 프레임 수신부(12-1~12-N)가 루프 검출부(15)로부터의 폐색 지시에 기초하여, 이러한 동작을 행함으로써, 루프 경로상의 폐색 포트에 대한 프레임의 송수신을 방지하여, 스톰을 회피하는 것이 가능해진다. The frame receiving units 12-1 to 12-N receive the frame indicating that the destination port of the received frame or the receiving port corresponding to the received frame is in the no- Port information indicating the port number of the destination determined as described above is added to the received frame and transmitted to the multiplexer 13 when the port 15 is not instructed to be blocked by the detector 15. [ The frame receiving units 12-1 to 12-N receive the frame from the loop detecting unit 15 to indicate the port closing instruction input from the loop detecting unit 15, If the reception of the reception frame is instructed, the reception frame is discarded. The frame receivers 12-1 to 12-N perform such an operation based on the closing instruction from the loop detector 15 to prevent transmission and reception of frames to and from the closed port on the loop path, It becomes possible.

다중화부(13)는 프레임 수신부(12-1~12-N)로부터 입력되는 포트수 만큼의 프레임 중, 루프 검출 프레임을 제외한 프레임인 주신호 프레임을 다중화하고, 다중화한 프레임을 수신지의 포트 번호를 나타내는 포트 정보와 함께 출력 제어부(14)로 전송한다. 또, 다중화부(13)는 프레임 수신부(12-1~12-N)로부터 입력되는 루프 검출 프레임을 수신한 포트 번호와 수신지의 포트 번호를 나타내는 포트 정보와 함께 루프 검출부(15)에 전송한다. The multiplexing unit 13 multiplexes the main signal frame, which is a frame excluding the loop detection frame, out of the frames corresponding to the number of ports input from the frame receiving units 12-1 to 12-N, and outputs the multiplexed frame as the port number To the output control unit 14 together with the port information indicating the port number. The multiplexing unit 13 transmits the loop detection frame input from the frame receiving units 12-1 to 12-N to the loop detection unit 15 together with the port number indicating the port number and the port number of the destination that received the loop detection frame .

출력 제어부(14)는 다중화부(13)로부터 입력되는 주신호 프레임과 루프 검출부(15)로부터 입력되는 루프 검출 프레임을 포트 정보에 기초하여 수신지의 포트마다 배분하여, 수신지의 포트(10-1~10-N)로 프레임을 출력한다. The output control section 14 distributes the main signal frame input from the multiplexing section 13 and the loop detection frame input from the loop detecting section 15 to each port of the destination based on the port information, 1 to 10-N).

루프 검출부(15)에서는, 도 2에 나타내는 링크 감시부(21)가, 포트마다 링크 확립의 유무를 검출하여, 링크 확립시에 유의를 나타내는 링크 검출 신호를 루프 검출 프레임 생성부(23) 및 상태 제어부(26)로 출력한다. 또한, 링크 확립의 검출 방법은 어떠한 방법을 이용해도 되지만, 예를 들면, 링크 감시부(21)가 수신하는 프레임을 감시하여, 통신 프로토콜에 따른 링크 확립을 나타내는 프레임을 수신함으로써 링크의 확립을 검출한다. 2 detects the presence or absence of link establishment for each port and outputs a link detection signal indicating a note at the time of link establishment to the loop detection frame generation unit 23 and the state And outputs it to the control unit 26. For example, the link monitoring unit 21 monitors a frame received and detects a link establishment by receiving a frame indicating link establishment according to the communication protocol. do.

루프 검출 프레임 생성부(23)는 링크 검출 신호가 유의를 나타내는 값으로 변화한 것을 계기로 하여, 링크를 확립한 포트로부터 송신하는 루프 검출 프레임을 생성한다. 루프 검출 프레임 생성부(23)는 생성한 루프 검출 프레임을 수신지의 포트 번호 즉 상기의 링크를 확립한 포트의 포트 번호를 나타내는 포트 정보와 함께 출력 제어부(14)로 출력한다. 또한, 루프 검출 프레임 생성부(23)는, 포트마다, 링크 확립 후, 루프 경로의 유무를 정기적으로 확인하기 위해서, 루프 검출 프레임을 정기적으로 생성한다. The loop detection frame generator 23 generates a loop detection frame to be transmitted from the port on which the link is established, on the basis that the link detection signal has changed to a value indicating the significance. The loop detection frame generation unit 23 outputs the generated loop detection frame to the output control unit 14 together with the port number of the destination, that is, the port information indicating the port number of the port in which the above link is established. The loop detection frame generation unit 23 periodically generates a loop detection frame for periodically confirming whether there is a loop path after link establishment for each port.

도 6은 루프 검출 프레임의 구성예를 나타내는 도면이다. 도 6에 나타내는 것처럼, 루프 검출 프레임에는, 수신지 어드레스와, 송신원 어드레스와, 루프 검출 프레임을 송신하는 포트를 나타내는 정보인 송신 포트 정보와, 루프 경로 내의 최저 우선도의 포트의 우선도를 나타내는 정보인 우선도 정보가 포함된다. 루프 검출 프레임의 송신원인 중계 장치에서는, 우선도 정보의 영역에 특별히 유의한 정보는 삽입하지 않고 송신한다. 그리고 처음에 루프 검출 프레임을 수신한 중계 장치가, 수신 포트 또는 송신 포트 중 보다 낮은 우선도의 포트의 우선도를 우선도 정보의 영역에 격납하여 전송한다. 또는, 루프 검출 프레임의 송신원인 중계 장치가 자신의 송신 포트의 우선도를 우선도 정보로서 격납하여 송신해도 된다. 또한, 도 6에 나타낸 구성예는 일례이며, 각 정보의 순서는 도 6의 예로 한정되지 않는다. 루프 검출 프레임의 수신지 어드레스에는 임의의 값을 설정 가능하지만, 루프 경로가 발생했을 경우에 자 장치로 돌아오는 수신지 어드레스일 필요가 있다. 예를 들면, 루프 검출 프레임의 수신지 어드레스로서 멀티캐스트 어드레스 또는 브로드캐스트 어드레스를 이용한다. 그리고 중계 장치는 멀티캐스트 어드레스 또는 브로드캐스트 어드레스를 수신지로 하여 프레임을 수신하면 그 프레임을 수신한 포트 이외의 모든 포트로 그 프레임을 송신한다. 이 때문에, 루프 경로가 형성되어 있으면, 그 중계 장치가 송신한 루프 검출 프레임은 자 장치로 돌아온다. 이와 같이, 본 실시 형태에서는, 송신 포트 정보와 루프 검출 프레임에 루프 경로 내의 최저 우선도의 포트를 나타내는 우선도 정보를 격납하는 영역을 마련하다. 송신 포트 정보에 격납하는 정보는, 대응하는 포트를 가지는 중계 장치에 대해서도 식별 가능한 정보인 것으로 한다. 예를 들면, 각 중계 장치의 각 포트에 포트 고유의 번호를 할당하고, 이 번호를 이용해도 되고, 중계 장치를 나타내는 정보와, 그 중계 장치 내에서의 포트의 번호의 조합이어도 된다. 6 is a diagram showing a configuration example of a loop detection frame. As shown in Fig. 6, in the loop detection frame, transmission port information, which is information indicating a destination address, a source address, a port for transmitting a loop detection frame, and information indicating a priority of the lowest priority port in the loop path Priority information. The relay apparatus that is the transmission source of the loop detection frame transmits the information of the priority information without inserting any particularly significant information. The relay apparatus that has received the loop detection frame first stores the priority of the lower priority port among the reception port or the transmission port in the priority information area and transmits it. Alternatively, the relay device that is the transmission source of the loop detection frame may transmit the priority of its own transmission port by storing the priority as priority information. The configuration example shown in Fig. 6 is an example, and the order of each information is not limited to the example in Fig. An arbitrary value can be set to the destination address of the loop detection frame, but it is necessary to be the destination address to return to the self device when the loop path occurs. For example, a multicast address or a broadcast address is used as the destination address of the loop detection frame. When the relay device receives a frame with a multicast address or a broadcast address as a destination, the relay device transmits the frame to all the ports other than the port that received the frame. Therefore, if a loop path is formed, the loop detection frame transmitted by the relay apparatus returns to the self apparatus. As described above, in the present embodiment, the transmission port information and the loop detection frame are provided with an area for storing priority information indicating the lowest priority port in the loop path. The information to be stored in the transmission port information is information that is also identifiable for a relay apparatus having a corresponding port. For example, a port-specific number may be assigned to each port of each relay apparatus, and this number may be used, or a combination of information indicating the relay apparatus and a port number in the relay apparatus.

프레임 식별부(22)는 수신한 루프 검출 프레임의 송신원 어드레스를 확인하여, 송신원 어드레스가 자 장치의 어드레스 이외인 경우에는 수신한 루프 검출 프레임을, 그 루프 검출 프레임을 수신한 포트를 나타내는 정보와 함께 전송 프레임 생성부(24)로 전송하고, 송신원 어드레스가 자 장치의 어드레스인 경우에는 수신한 루프 검출 프레임을 상태 제어부(26)에 전송한다. The frame identification unit 22 confirms the transmission source address of the received loop detection frame. If the transmission source address is other than the address of the self apparatus, the frame identification unit 22 transmits the received loop detection frame together with the information indicating the port that received the loop detection frame And transmits the received loop detection frame to the state control unit 26 when the transmission source address is the address of the self apparatus.

포트 상태 관리 스테이트 머신(28)은, 포트마다 포트 상태를 관리한다. 본 실시 형태에서는, 루프 경로상에서 폐색할 포트를 선출하기 위해, 3 종류의 포트 상태를 정의한다. 포트 상태 관리 스테이트 머신(28)은 상태 제어부(26), 전송 프레임 생성부(24)로부터 우선도에 대한 문의가 있으면, 포트 상태에 대응하는 우선도를 문의한 곳으로 통지한다. 도 7은 본 실시 형태의 포트 상태의 정의를 나타내는 도면이다. 도 7에 나타내는 것처럼, 본 실시 형태에서는, 포트의 상태로서, 제1 상태인 운용, 제2 상태인 주신호 필터, 제3 상태인 폐색의 3개의 상태를 정의한다. 그리고 이러한 상태와 우선도의 대응을, 우선도가 높은 순으로 운용>주신호 필터>폐색으로 하여 관리한다. 도 7에서는, 포트 상태와, 우선도와, 주신호 전송과, 루프 검출 프레임에 대한 4개의 열을 나타내고 있다. 도 7의 포트 상태는, 운용, 주신호 필터, 폐색 운용의 3개의 상태를 나타내고, 우선도는 각 상태에 대응하는 우선도를 나타낸다. 또한, 우선도는 값이 작을수록 고우선도인 것을 나타낸다. 도 7의 주신호 전송은, 주신호 프레임을 전송할지 여부를 나타내고 있고, Yes는 주신호 프레임을 전송하는 것을 나타내고, No는 주신호 프레임을 전송하지 않는 것을 나타낸다. 도 7의 루프 검출 프레임은, 루프 검출 프레임을 전송할지 여부와 루프 검출 프레임을 송신할지 여부를 나타내고 있고, Yes는 루프 검출 프레임을 전송 또는 송신하는 것을 나타내고, No는 루프 검출 프레임을 전송 또는 송신하지 않는 것을 나타낸다. 또, 중계 장치 내에서 동일한 포트 상태를 가지는 포트 사이의 우열(優劣)은 포트 번호의 대소로 판단한다. 예를 들면, 작은 번호 포트를 우선으로 했을 경우, 포트 1과 포트 2의 포트 상태가 함께 운용이면 포트 1의 우선도가 높다고 판단한다. 한편, 2대의 중계 장치 사이에서 동일한 포트 상태를 가지는 포트 사이의 우열은 MAC 어드레스 등의 장치 고유한 값의 대소로 판단한다. 상기에 따라서, 네트워크 내의 포트의 우열 즉 포트의 우선도를 판정할 수 있다. The port state management state machine 28 manages the port state for each port. In this embodiment, three kinds of port states are defined in order to select ports to be closed on the loop path. The port state management state machine 28 notifies the inquiry about the priority corresponding to the port state when there is an inquiry about the priority from the state control section 26 and the transmission frame generation section 24. Fig. 7 is a view showing the definition of the port state according to the present embodiment. As shown in Fig. 7, in the present embodiment, three states are defined as a state of a port, namely, a first state of operation, a main signal filter of a second state, and a third state of occlusion. The correspondence between these states and priorities is managed in the order of higher priority> operation> main signal filter> closed. Fig. 7 shows four columns for port status, priority order, main signal transmission, and loop detection frame. The port state shown in Fig. 7 shows three states of operation, main signal filter, and closed operation, and the priority shows a priority corresponding to each state. In addition, the priority degree indicates a higher score as the value is smaller. 7 indicates whether or not to transmit a main call frame, Yes indicates that main signal frames are to be transmitted, and No indicates that main signal frames are not to be transmitted. 7 indicates whether to transmit a loop detection frame and whether to transmit a loop detection frame, Yes indicates transmission or transmission of a loop detection frame, and No indicates that a loop detection frame is to be transmitted or not . In addition, the superiority (superiority or inferiority) between the ports having the same port status in the relay apparatus is determined by the port number. For example, when priority is given to a small number port, if the port 1 and port 2 are in operation together, the priority of the port 1 is determined to be high. On the other hand, the rank between the ports having the same port state among the two relay apparatuses is judged as the magnitude of the device-specific value such as the MAC address. In accordance with the above, it is possible to determine the priority of the port in the network, that is, the priority of the port.

본 실시 형태에서는, 포트의 우선도를 이용하여, 폐색할 포트를 선출함으로써 토폴로지의 변화를 회피한다. 포트 상태 관리 스테이트 머신(28)은 상태 제어부(26)로부터 입력되는 링크 검출 신호에 기초하여, 새로운 링크 확립을 검출하면, 포트의 상태를 주신호 필터로 한다. 포트 상태가 주신호 필터인 포트에서는, 주신호 프레임의 전송은 행하지 않고, 루프 검출 프레임의 송신 및 전송을 실시한다. 이것에 의해, 새로운 링크가 확립되었을 경우에, 주신호 프레임을 전송하기 전에 루프 경로의 유무를 확인할 수 있다. 그 후, 포트 상태 관리 스테이트 머신(28)은 링크 확립을 검출하고 나서, 상태 제어부(26)로부터 일정시간 이상 루프 경로의 검출이 통지되지 않은 경우, 포트 상태를 운용으로 천이시킨다. 또한, 상태 제어부(26)는 프레임 식별부(22)로부터 프레임이 입력되는 것에 의해 루프 경로를 검출했을 경우, 루프 경로를 검출한 정보를 포트 상태 관리 스테이트 머신(28)에 통지한다. 상태 제어부(26)는 일정시간 자 장치가 송신한 루프 검출 프레임을 포트(10-i)에서 수신하지 않는 경우, 또는 일정시간 포트(10-i)로부터 송신한 루프 검출 프레임을 자 장치가 수신하지 않는 경우, 포트(10-i)에서는 루프 경로를 검출하고 있지 않다고 판단하고, 그 취지를 포트 상태 관리 스테이트 머신(28)에 통지한다. 또, 포트 상태 관리 스테이트 머신(28)은 상태 제어부(26)로부터 폐색이 통지되었을 경우에 포트 상태를 폐색으로 천이시킨다. 또, 포트 상태 관리 스테이트 머신(28)은 포트 상태가 운용인 포트에 접속하는 프레임 수신부(12-1~12-N)에 대해서 무의 즉 포트 폐색하지 않을 것을 나타내는 포트 폐색 지시를 출력한다. 또, 포트 상태 관리 스테이트 머신(28)은 모든 포트의 포트 상태를 프레임 수신부(12-1~12-N)에 대해서 통지하여, 포트 상태가 주신호 필터 또는 폐색인 포트에서 주신호 프레임이 송수신되지 않도록 제어한다. In the present embodiment, the port to be closed is selected using the priority of the port to avoid a change in the topology. When the port state management state machine 28 detects establishment of a new link based on the link detection signal input from the state control section 26, the state of the port is set as a main signal filter. In the port where the port status is the main call filter, transmission and transmission of the loop detection frame are performed without transferring the main call frame. Thus, when a new link is established, the presence or absence of the loop path can be confirmed before transmitting the main signal frame. Thereafter, the port state management state machine 28 transits the port state to operation when detection of the loop path is not notified from the state control section 26 for more than a predetermined time after detecting link establishment. The state control unit 26 also notifies the port state management state machine 28 of the information that detects the loop path when a frame is inputted from the frame identification unit 22 and detects the loop path. When the state control unit 26 does not receive the loop detection frame transmitted from the constant time slot apparatus on the port 10-i or the loop detection frame transmitted from the port 10-i for a predetermined time is not received by the child apparatus , It is determined that the loop path is not detected in the port 10-i, and the port status management state machine 28 is notified of this fact. The port state management state machine 28 changes the state of the port to the closed state when the state control section 26 is notified of the occlusion. In addition, the port state management state machine 28 outputs a port closing instruction indicating that the port state is not blocked, that is, the port is not closed to the frame receiving units 12-1 to 12-N connected to the port in which the port state is operative. The port state management state machine 28 notifies the port state of all the ports to the frame receiving units 12-1 to 12-N, so that the main signal frame is not transmitted or received from the main signal filter or the blocked port .

상태 제어부(26)는 링크 감시부(21)로부터 링크 검출 신호를 수신하면, 이 링크 검출 신호를 포트 상태 관리 스테이트 머신(28)로 전송한다. 또, 상태 제어부(26)는 루프 검출 프레임을 송신한 포트인 송신 포트와, 루프 검출 프레임을 수신한 포트인 수신 포트의 대응을 나타내는 정보를 루프 관리 테이블로서 루프 관리 테이블 기억부(27)에 격납한다. 도 8은 본 실시 형태의 루프 관리 테이블의 구성예를 나타내는 도면이다. 도 8에 나타내는 것처럼, 루프 관리 테이블에는, 루프 검출 프레임을 송신하는 송신 포트마다, 그 송신 포트로부터 송신한 프레임을 수신한 수신 포트를 나타내는 정보가 수신 포트 비트 맵으로서 격납된다. 수신 포트 비트 맵에서는, 0은 수신하고 있지 않은 것을 나타내고, 1은 수신한 것을 나타낸다. 따라서, 1이 격납되어 있는 경우에는, 1에 대응하는 조합의 경로에서 루프 경로가 생겨 있는 것을 나타낸다. 예를 들면, 도 8의 예에서는, 송신 포트가 1이고, 수신 포트가 2인 조합이 1이 되어 있다. 이것은 포트(10-1)로부터 송신한 루트 검출 프레임이 포트(10-2)에서 수신된 것을 나타내고 있다. 즉, 도 8에 나타내는 수신 포트 비트 맵에서 1이 존재하는 엔트리는 루프 경로가 있는 즉 루프 경로가 생겨 있는 엔트리이다. The state control unit 26, upon receiving the link detection signal from the link monitoring unit 21, transmits the link detection signal to the port state management state machine 28. The state control unit 26 stores information indicating the correspondence between the transmission port that is the port that transmitted the loop detection frame and the reception port that is the port that received the loop detection frame as the loop management table in the loop management table storage unit 27 do. 8 is a diagram showing a configuration example of the loop management table of the present embodiment. As shown in Fig. 8, in the loop management table, information indicating a receiving port for receiving a frame transmitted from the transmitting port is stored as a receiving port bitmap for each transmitting port for transmitting a loop detecting frame. In the receive port bitmap, 0 indicates that no data is received, and 1 indicates that data has been received. Therefore, when 1 is stored, it indicates that a loop path is generated in the path of the combination corresponding to 1. For example, in the example of Fig. 8, the combination of the transmission port of 1 and the reception port of 2 is 1. [ This indicates that the route detection frame transmitted from the port 10-1 is received at the port 10-2. That is, an entry in which 1 is present in the reception port bitmap shown in FIG. 8 is an entry in which a loop path exists, that is, a loop path is generated.

또, 루프 관리 테이블에는, 루프 경로에 있어서, 자 장치가 최저 우선도의 중계 장치인지 여부를 나타내는 정보가 격납된다. 상태 제어부(26)는 프레임 식별부(22)로부터 루프 검출 프레임이 입력되면, 자 장치로부터 송신된 루프 검출 프레임을 자 장치가 수신했기 때문에, 루프 경로가 있다 즉 루프 경로가 생겨 있다고 판단하고, 입력된 루프 검출 프레임에 기초하여 루프 관리 테이블을 갱신한다. 구체적으로는, 수신한 루프 검출 프레임에 격납되어 있는 송신 포트 정보와 루프 검출 프레임을 수신한 포트의 정보에 기초하여 루프 관리 테이블의 수신 포트 비트 맵 중 대응하는 엔트리를 갱신한다. 또, 상태 제어부(26)는 상기에 더하여, 포트 상태 관리 스테이트 머신(28)에, 수신한 루프 검출 프레임의 송수신 포트의 우선도를 문의하여 그 포트의 우선도를 취득하고, 취득한 우선도와, 수신한 루프 검출 프레임에 격납된 우선도 정보에 기초하여, 루프 경로상에서 자 장치가 최저 우선의 중계 장치인지 여부를 판단하고, 판단 결과에 기초하여 루프 관리 테이블 내의 최저 우선의 중계 장치의 정보를 갱신한다. 구체적으로는, 상태 제어부(26)는 수신한 루프 검출 프레임에 격납된 우선도 정보가 나타내는 우선도보다 포트 상태 관리 스테이트 머신(28)으로부터 취득한 포트 즉 루프 검출 프레임을 송신한 포트의 우선도가 낮은 경우에, 자 장치가 루프 경로 내에서 최저 우선 즉 저우선의 장치라고 판단한다. 또, 상태 제어부(26)는 수신한 루프 검출 프레임을 송신한 포트 및 수신한 포트와, 자 장치가 루프 경로 내에서의 최저 우선의 장치인지 여부를 나타내는 정보를 대응지어 루프 관리 테이블에 기억한다. In the loop management table, information indicating whether or not the self apparatus is the relay apparatus having the lowest priority is stored in the loop path. When the loop detection frame is input from the frame identification unit 22, the state control unit 26 determines that there is a loop path because the self apparatus has received the loop detection frame transmitted from the self apparatus, that is, And updates the loop management table based on the loop detection frame. Specifically, the corresponding entry in the reception port bitmap of the loop management table is updated based on the transmission port information stored in the received loop detection frame and the information of the port receiving the loop detection frame. In addition to the above, the state control unit 26 also inquires of the port state management state machine 28 about the priority of the transmission / reception port of the received loop detection frame, acquires the priority of the port, It is determined on the basis of the priority information stored in one loop detection frame whether or not the self apparatus is the lowest priority relay apparatus on the loop path and the information of the lowest priority relay apparatus in the loop management table is updated based on the determination result . Specifically, the state control unit 26 determines whether or not the port obtained from the port state management state machine 28, that is, the port having transmitted the loop detection frame, has a lower priority than the priority indicated by the priority information stored in the received loop detection frame In this case, it is determined that the self device is the lowest priority device in the loop path. The state control unit 26 stores the port in which the received loop detection frame is transmitted and the received port in the loop management table in association with information indicating whether or not the self apparatus is the lowest priority apparatus in the loop path.

또, 상태 제어부(26)는 자 장치가 정기적으로 송신하는 루프 검출 프레임의 송신 타이밍에서, 루프 관리 테이블 중 루프 검출 프레임을 송신하는 포트에 대응하는 엔트리를 읽어냄과 아울러 루프 관리 테이블의 그 엔트리를 클리어한다. 상태 제어부(26)는 읽어낸 엔트리에 기초하여, 자 장치가 루프 경로 내에서 최저 우선도의 중계 장치인 경우에, 루프 경로를 구성하는 자 장치가 가지는 포트 중 최고 우선도의 포트 이외를 폐색한다고 판단하고, 폐색할 포트를 나타내는 정보와 함께 포트 폐색을 포트 상태 관리 스테이트 머신(28)으로 지시한다. 포트 상태 관리 스테이트 머신(28)은, 이 지시에 기초하여 대응하는 포트의 상태를 폐색으로 변경한다. 또한, 루프 검출부(15)의 상태 제어부(26) 및 프레임 식별부(22)는, 포트마다의 루프 검출 프레임의 송신 타이밍을 파악하고 있는 것으로 한다. 예를 들면, 상태 제어부(26)가 포트마다의 루프 검출 프레임의 송신 타이밍을 관리하여, 루프 검출 프레임 생성부(23) 및 프레임 식별부(22)로 통지하도록 해도 되고, 루프 검출 프레임 생성부(23)가 포트마다의 루프 검출 프레임의 송신 타이밍을 관리하여 상태 제어부(26) 및 프레임 식별부(22)로 통지해도 된다. 상태 제어부(26)는 포트마다, 그 포트로부터 루프 검출 프레임을 송신한 후, 다음의 루프 검출 프레임을 송신할 때까지의 동안에, 송신한 루프 검출 프레임을 수신하지 않는 경우, 루프 경로를 미검출이라고 판정한다. The state control unit 26 reads the entry corresponding to the port for transmitting the loop detection frame in the loop management table at the transmission timing of the loop detection frame periodically transmitted by the self apparatus, Clear. On the basis of the read entry, the state control unit 26 closes the port of the highest priority among the ports of the self apparatus constituting the loop path, when the self apparatus is the lowest priority relay apparatus in the loop path And instructs the port state management state machine 28 of port closure with information indicating the port to be closed. The port state management state machine 28 changes the state of the corresponding port to the occlusion based on this instruction. It is assumed that the state control unit 26 and the frame identification unit 22 of the loop detection unit 15 grasp the transmission timing of the loop detection frame for each port. For example, the state control section 26 may manage the transmission timing of the loop detection frame for each port and notify the loop detection frame generation section 23 and the frame identification section 22, or the loop detection frame generation section 23 may manage the transmission timing of the loop detection frame for each port and notify the state control section 26 and the frame identification section 22. The state control unit 26 determines that the loop path is not detected when the transmitted loop detection frame is not received for each port until the next loop detection frame is transmitted after transmitting the loop detection frame from the port .

전송 프레임 생성부(24)는 루프 검출 프레임이 입력되면, 포트 상태 관리 스테이트 머신(28)에 자 장치의 포트 상태를 문의해서 포트 상태를 취득하여, 그 프레임의 송수신 포트마다, 자 장치의 포트 상태와, 입력된 루프 검출 프레임에 격납되어 있는 우선도 정보를 비교한다. 그리고 전송 프레임 생성부(24)는, 그 프레임의 송수신 포트마다, 자 장치의 포트의 우선도가 낮은 경우에, 입력된 프레임의 우선도 정보를, 자 장치의 포트를 나타내는 정보로 갱신하고, 우선도 정보를 갱신한 후의 프레임을 수신지의 포트를 나타내는 정보와 함께 다중부(25)로 출력한다. When the loop detection frame is input, the transmission frame generation unit 24 inquires of the port state management state machine 28 about the port state of the self apparatus and acquires the port state, and for each transmission / reception port of the frame, And the priority information stored in the input loop detection frame. When the priority of the port of the child apparatus is low for each transmission / reception port of the frame, the transmission frame generation unit 24 updates the priority information of the input frame to the information indicating the port of the child apparatus, And outputs the frame after updating the information to the multiplexer 25 together with the information indicating the port of the destination.

다중부(25)는 전송 프레임 생성부(24)로부터 출력되는 전송 프레임과 루프 검출 프레임 생성부(23)에 의해 생성된 루프 검출 프레임을 다중하여, 다중한 프레임을 수신지의 포트를 나타내는 정보와 함께 출력 제어부(14)로 출력한다. 또한, 다중이란 복수의 프레임을 1개의 경로에 집약하는 것이다. The multiplexing unit 25 multiplexes the transmission frame output from the transmission frame generating unit 24 and the loop detection frame generated by the loop detection frame generating unit 23, and outputs the multiplexed frame as information indicating the port of the destination and And outputs it to the output control unit 14. In addition, multiplex means to aggregate a plurality of frames into one path.

도 9는 루프 검출부(15)에 있어서의 루프 검출 프레임의 수신시의 처리 절차의 일례를 나타내는 순서도이다. 도 10은 루프 검출부(15)에 있어서의 루프 검출 프레임 송신 및 포트 폐색 처리 절차의 일례를 나타내는 순서도이다. 루프 검출부(15)는 링크 확립을 검출한 포트마다 정기적으로 루프 검출 프레임을 송신한다. 루프 검출 프레임 송신 후, 루프 검출부(15)는, 도 9에 나타내는 처리를 실시한다. 프레임 식별부(22)는 다중화부(13)로부터 루프 검출 프레임이 입력되었는지 여부 즉 루프 검출 프레임을 수신했는지 여부를 판단한다(스텝 S1). 루프 검출 프레임을 수신하고 있지 않은 경우(스텝 S1의 No), 프레임 식별부(22)는 차회의 루프 검출 프레임의 송신 타이밍인지 여부를 판단한다(스텝 S2). 차회의 루프 검출 프레임의 송신 타이밍이 아닌 경우(스텝 S2의 No), 스텝 S1로 돌아간다. 차회의 루프 검출 프레임의 송신 타이밍인 경우(스텝 S2의 Yes), 처리를 종료한다. Fig. 9 is a flowchart showing an example of a processing procedure at the time of reception of a loop detection frame in the loop detection section 15. Fig. 10 is a flowchart showing an example of a loop detection frame transmission and a port blocking procedure in the loop detection unit 15. In FIG. The loop detection unit 15 periodically transmits a loop detection frame for each port that detects link establishment. After transmitting the loop detection frame, the loop detection unit 15 performs the processing shown in Fig. The frame identifying unit 22 determines whether or not a loop detection frame has been input from the multiplexing unit 13, that is, whether or not a loop detection frame has been received (step S1). If the loop detection frame has not been received (No in step S1), the frame identification section 22 determines whether or not it is the transmission timing of the next loop detection frame (step S2). If it is not the transmission timing of the next loop detection frame (No in step S2), the process returns to step S1. If it is the transmission timing of the next loop detection frame (Yes at step S2), the processing is terminated.

루프 검출 프레임을 수신했을 경우(스텝 S1의 Yes), 프레임 식별부(22)는 수신한 루프 검출 프레임 내의 송신원 어드레스가 자 장치의 어드레스 즉 자 어드레스와 같은지 여부를 판단한다(스텝 S3). 또한, 도 9에서는, 송신원 어드레스를 SA(Source Address)라고 간단히 하고 있다. 수신한 루프 검출 프레임 내의 송신원 어드레스가 자 장치의 어드레스 즉 자 어드레스와 동일한 경우(스텝 S3의 Yes), 상태 제어부(26)는 루프 관리 테이블을 갱신한다(스텝 S4). 구체적으로는, 프레임 식별부(22)로부터 상태 제어부(26)에 루프 검출 프레임이 입력되고, 상태 제어부(26)는, 상술한 것처럼, 입력된 루프 검출 프레임에 기초하여, 상술한 대로 루프 검출 프레임을 갱신한다. When receiving the loop detection frame (Yes in step S1), the frame identification unit 22 determines whether the transmission source address in the received loop detection frame is the same as the address of the own apparatus (step S3). In Fig. 9, the source address is simply referred to as SA (Source Address). If the transmission source address in the received loop detection frame is the same as the address of the own device (i.e., the child address) (Yes in step S3), the state control section 26 updates the loop management table (step S4). More specifically, a loop detection frame is input from the frame identification unit 22 to the state control unit 26, and the state control unit 26, based on the input loop detection frame, .

그 후, 상태 제어부(26)는 차회의 루프 검출 프레임의 송신 타이밍인지 여부를 판단한다(스텝 S8). 차회의 루프 검출 프레임의 송신 타이밍이 아닌 경우(스텝 S8의 No), 스텝 S1로 돌아가고, 차회의 루프 검출 프레임의 송신 타이밍인 경우(스텝 S8의 Yes), 처리를 종료한다. Thereafter, the state control section 26 determines whether or not it is the transmission timing of the next loop detection frame (step S8). If it is not the transmission timing of the next loop detection frame (No at step S8), the process returns to step S1, and if it is the transmission timing of the next loop detection frame (Yes at step S8), the process is terminated.

한편, 스텝 S3에서, 수신한 루프 검출 프레임 내의 송신원 어드레스가 자 장치의 어드레스 즉 자 어드레스와 같지 않은 경우(스텝 S3의 No), 전송 프레임 생성부(24)는 자 포트 즉 루프 검출 프레임을 송신한 포트의 우선도가, 루프 검출 프레임에 격납되어 있는 우선도 정보보다 낮은지 여부를 판단한다(스텝 S5). 또한, 상술한 것처럼, 본 실시 형태에서는, 우선도가 높을수록 우선도의 수치로서는 작은 값을 이용하고 있기 때문에, 우선도로서 격납되어 있는 값이 작을수록 우선도가 높은 것을 나타낸다. 자 포트의 우선도가, 루프 검출 프레임에 격납되어 있는 우선도 정보보다 낮은 경우(스텝 S5의 Yes), 수신한 루프 검출 프레임의 우선도 정보를, 자 장치의 포트의 우선도를 나타내는 정보로 갱신하고(스텝 S6), 스텝 S7로 진행한다. On the other hand, if the transmission source address in the received loop detection frame is not the same as the address of the self-device (step S3) (No in step S3), the transmission frame generator 24 transmits the self- It is determined whether the priority of the port is lower than the priority information stored in the loop detection frame (step S5). In addition, as described above, in this embodiment, since a smaller value is used as the priority value as the priority is higher, the smaller the value stored as the priority, the higher the priority. If the priority of the child port is lower than the priority information stored in the loop detection frame (Yes in step S5), the priority information of the received loop detection frame is updated with information indicating the priority of the port of the child device (Step S6), and proceeds to step S7.

자 포트의 우선도가, 루프 검출 프레임에 격납되어 있는 우선도 정보보다 낮지 않은 경우(스텝 S5의 No), 전송 프레임 생성부(24)는 수신한 루프 검출 프레임을 다중부(25), 출력 제어부(14) 경유로 전송하고(스텝 S7), 스텝 S8로 진행한다. If the priority of the child port is not lower than the priority information stored in the loop detection frame (No in step S5), the transmission frame generation unit 24 outputs the received loop detection frame to the multiplexing unit 25, (Step S7), and the process proceeds to step S8.

다음에, 도 10을 이용하여, 포트 검출 프레임의 송신과 포트 폐색 처리에 대해 설명한다. 루프 검출부(15)는, 링크 확립한 포트마다, 도 10의 처리를 실시한다. 상태 제어부(26)는 루프 검출 프레임의 송신 타이밍인지 여부를 판단한다(스텝 S11). 루프 검출 프레임의 송신 타이밍이 아닌 경우(스텝 S11의 No), 스텝 S11로 돌아간다. Next, the port detection frame transmission and the port blocking process will be described with reference to Fig. The loop detection unit 15 performs the processing shown in Fig. 10 for each port to which the link is established. The state control section 26 determines whether or not the transmission timing of the loop detection frame is present (step S11). If it is not the transmission timing of the loop detection frame (No in step S11), the process returns to step S11.

루프 검출 프레임의 송신 타이밍인 경우(스텝 S11의 Yes), 상태 제어부(26)는 루프 관리 테이블로부터, 송신 포트의 엔트리 즉 루트 검출 프레임을 송신하는 포트에 대응하는 엔트리를 읽어냄과 아울러 루프 관리 테이블 내의 그 엔트리를 클리어한다(스텝 S12). 다음에, 상태 제어부(26)는 송신 포트 즉 루트 검출 프레임을 송신하는 포트가 루프 경로의 최저 우선 포트인지 여부를 판단한다(스텝 S13). 구체적으로는, 상태 제어부(26)는 스텝 S12에서 읽어낸 엔트리를 참조하여, 수신 포트 비트 맵 부분에 1이 있고 즉 자 장치로부터 송신한 프레임을 자 장치가 수신하고 있는 상태이고, 또한 엔트리의 최저 우선의 중계 장치의 란이 루프 경로 내에서 최저의 우선도의 중계 장치인 것을 나타내는 값이었을 경우에, 송신 포트가 최저 우선 포트라고 판단한다. In the case of the transmission timing of the loop detection frame (Yes in step S11), the state control unit 26 reads from the loop management table an entry corresponding to the entry of the transmission port, that is, the port for transmitting the route detection frame, (Step S12). Next, the state control unit 26 determines whether the port for transmitting the transmission port, that is, the route detection frame, is the lowest priority port of the loop path (step S13). More specifically, the state control unit 26 refers to the entry read in step S12, and determines whether the received port bitmap portion has a value of 1, that is, a state in which the self apparatus is receiving the frame transmitted from the self apparatus, When the column of the first relay apparatus is a value indicating that the relay apparatus has the lowest priority in the loop path, it is determined that the transmission port is the lowest priority port.

송신 포트가 최저 우선 포트인 경우(스텝 S13의 Yes), 루프 검출부(15)는 루프 관리 테이블로부터 읽어낸 송수신 포트 수신 포트 비트 맵을 참조하여, 루프 경로 내의 자 장치가 가지는 포트 중 최고 우선 포트 이외의 포트를 폐색한다(스텝 S14). 구체적으로는, 상태 제어부(26)가 루프 검출 프레임으로부터 읽어낸 송수신 포트 수신 포트 비트 맵을 참조하여, 루프 경로 내의 자 장치가 가지는 포트 중 최고 우선의 포트 이외의 포트를 폐색한다고 판단하고, 그 취지를 포트 상태 관리 스테이트 머신(28)으로 통지한다. 또한, 최고 우선의 포트란 상술한 포트의 우선도의 판정에 있어서 우선도가 가장 높은 포트이다. 또한, 루프 경로 내에서 최저의 우선도의 중계 장치였다고 하더라도, 루프 경로가 생겨 있으면 시계 방향과 반시계 방향의 2개의 방향의 경로가 있고, 그 중 어느 것이 운용에 이용되고 있던 경로일 가능성이 있다. 이 때문에, 운용에 이용되고 있던 경로에 대응하는 포트를 폐색시키지 않도록, 링크 확립 직후의 포트를 주신호 필터로 함으로써 운용 포트로 식별하고, 스텝 S14에서는 최고 우선 포트가 아닌 포트를 폐색하도록 하고 있다. 포트 상태 관리 스테이트 머신(28)은 상태 제어부(26)로부터의 통지에 기초하여, 관리하고 있는 포트 상태를 갱신하여, 프레임 수신부(12-1~12-N)에 모든 포트의 포트 상태를 통지한다.If the transmission port is the lowest priority port (Yes in step S13), the loop detection unit 15 refers to the transmission / reception port reception port bitmap read from the loop management table and selects a port other than the highest priority port (Step S14). Specifically, the state control unit 26 refers to the transmission / reception port reception port bitmap read from the loop detection frame to determine that a port other than the highest priority port among the ports of the child apparatuses in the loop path is blocked, To the port state management state machine 28. The highest priority port is the port with the highest priority in the determination of the priority of the above-described port. Even if the repeater has the lowest priority in the loop path, if there is a loop path, there are two directions of the clockwise and counterclockwise directions, and it is possible that one of them is the route used for the operation . For this reason, the ports immediately after the link establishment are identified as the operational ports by the main signal filter so as not to block the ports corresponding to the routes used for the operation, and the ports other than the highest priority ports are closed in step S14. The port state management state machine 28 updates the managed port state based on the notification from the state control unit 26 and notifies the frame reception units 12-1 to 12-N of the port states of all the ports .

그리고 루프 검출부(15)는 루프 검출 프레임을 출력 제어부(14) 경유로 송신하고(스텝 S15), 처리를 종료한다. 또, 스텝 S13에서, 송신 포트가 최저 우선 포트가 아닌 경우(스텝 S13의 No), 스텝 S15로 진행한다. 도 10의 A로 나타낸 부분이 포트를 폐색하는 폐색 처리가 된다. Then, the loop detection unit 15 transmits the loop detection frame via the output control unit 14 (step S15), and ends the processing. If it is determined in step S13 that the transmission port is not the lowest priority port (No in step S13), the flow advances to step S15. The portion indicated by A in Fig. 10 becomes a clogging process for closing the port.

또한, 본 실시 형태에서는, 포트 상태에 기초하여 우선도를 결정하도록 했지만, 각 중계 장치의 어드레스의 대소에 의해 우선도를 변경하도록 해도 된다. 예를 들면, 어드레스에 기초한 가중치를 포트 상태에 의해 정해지는 우선도에 곱한 것을 우선도로서 이용한다. 또, 동일한 중계 장치 내에서 포트마다 우선도를 바꾸도록 해도 된다. 예를 들면, 포트 상태에 의해 정해지는 우선도에 자 장치 내에서의 포트 번호를 곱한 것을 우선도로서 이용해도 된다. In the present embodiment, the priority is determined based on the port status. However, the degree of priority may be changed depending on the size of the address of each relay apparatus. For example, the priority based on the address is multiplied by the priority determined by the port state. Also, the priority may be changed for each port in the same relay apparatus. For example, the priority determined by the port status multiplied by the port number in the host apparatus may be used as the priority level.

다음에, 본 실시 형태의 중계 장치의 통신 시스템으로의 적용예에 대해 설명한다. 도 11은 본 실시 형태의 통신 시스템의 구성예를 나타내는 도면이다. 도 11에 나타내는 것처럼, 본 실시 형태의 통신 시스템은 시각 동기의 마스터가 되는 친국 장치(2), 각각이 본 실시 형태의 중계 장치(1)인 중계 장치(1-1~1-5)와, 시각 동기의 슬레이브인 자국 장치(3)를 구비한다. 친국 장치(2)는 중계 장치(1-1)에 접속되고, 중계 장치(1-1)는 친국 장치(2) 및 중계 장치(1-2)에 접속되고, 중계 장치(1-2)는 중계 장치(1-1), 중계 장치(1-3) 및 중계 장치(1-5)에 접속되고, 중계 장치(1-3)는 중계 장치(1-2) 및 중계 장치(1-4)에 접속되고, 중계 장치(1-4)는 자국 장치(3)에 접속되어 있다. 중계 장치(1-4)와 중계 장치(1-5)의 사이는, 처음에는 접속되어 있지 않고, 경로(300)를 이용한 통신과 경로(301)를 이용한 통신이 행해지고 있어, 루프 경로는 존재하지 않는다. 이 상태에서, 중계 장치(1-4)와 중계 장치(1-5)가 접속되어, 신규 링크(400)가 확립된 것으로 한다. Next, an application example to the communication system of the relay apparatus of the present embodiment will be described. 11 is a diagram showing a configuration example of the communication system of the present embodiment. As shown in Fig. 11, the communication system of the present embodiment includes a parent station 2 serving as a master of time synchronization, relay apparatuses 1-1 to 1-5, which are relay apparatuses 1 of the present embodiment, And a local station device 3 which is a slave of time synchronization. The relay apparatus 1-1 is connected to the host apparatus 2 and the relay apparatus 1-2 and the relay apparatus 1-2 is connected to the relay apparatus 1-2. The relay apparatus 1-3 is connected to the relay apparatus 1-1 and the relay apparatus 1-3 and the relay apparatus 1-5 is connected to the relay apparatus 1-2, And the relay apparatus 1-4 is connected to the local station apparatus 3. [ The relay device 1-4 and the relay device 1-5 are not initially connected and communications using the path 300 and communication using the path 301 are performed so that the loop path does not exist Do not. In this state, it is assumed that the relay apparatus 1-4 and the relay apparatus 1-5 are connected and the new link 400 is established.

루프 경로의 형성 전은, 친국 장치(2)와 자국 장치(3)는, 중계 장치(1-1~1-4)를 경유한 경로(300)로 통신을 행하고 있고, 시각 동기도 이 경로로 행해진다. 신규 링크(400)의 추가에 의해 루프 경로가 생기면, 본 실시 형태의 중계 장치(1-4)는, 링크 확립을 검출하여 중계 장치(1-4)의 포트(10-2)의 포트 상태는 주신호 필터가 된다. Prior to the formation of the loop path, the master station apparatus 2 and the local station apparatus 3 communicate with each other via the path 300 via the relay apparatuses 1-1 to 1-4, Is done. When the loop path is generated by the addition of the new link 400, the relay apparatus 1-4 of the present embodiment detects link establishment, and the port status of the port 10-2 of the relay apparatus 1-4 is It becomes a main signal filter.

도 12는 본 실시 형태의 폐색 처리에 의해 루프 경로를 회피한 예를 나타내는 도면이다. 중계 장치(1-4) 및 중계 장치(1-5)의 신규 링크(400)에 접하는 포트의 포트 상태는 주신호 필터이기 때문에, 운용 중의 경로보다도 우선도가 낮아지고, 루프 검출 프레임의 송신 및 수신 처리에 의해, 중계 장치(1-4)와 중계 장치(1-5)의 우선도가 낮은 측의 포트를 폐색한다. 따라서, 포트 폐색 후의 경로는, 경로(302)가 되어, 도 11의 상태 즉 루프 경로의 형성 전과 같은 경로가 된다. 한편, STP에 의해 루프 경로의 회피를 행하는 것을 가정했을 경우, 경로(302)보다 경로(303)의 패스 코스트가 작으면, 루프 회피 후의 경로는 경로(303)가 된다. 경로(303)에서는, 친국 장치(2)와 자국 장치(3) 사이의 토폴로지의 변화에 따라서 전송 지연 시간이 변화하여, 시각 동기 정밀도에 영향을 준다. 이것에 대해, 본 실시 형태에서는, 운용 상태인 포트의 우선도를 높게 하고, 우선도가 낮은 포트를 폐색시키고 있기 때문에, 루프 경로의 형성 전에 운용에 이용되고 있던 포트가 폐색되지 않고, 우선도가 낮은 신규 링크(400)에 접하는 포트가 폐색된다. 이 때문에, 본 실시 형태에서는, 친국 장치(2)와 자국 장치(3) 사이의 루프 회피 후의 경로가 루프 경로의 형성 전의 경로와 같게 되어, 친국 장치(2)와 자국 장치(3) 사이의 토폴로지가 변화하지 않기 때문에, 시각 동기 정밀도에 대한 영향은 없다. 또, 관리자가 루프 경로를 해소하기 위한 경로 전환을 행할 필요가 없고, 중계 장치(1)가 자율적으로 루프 경로를 해소할 수 있다. 12 is a diagram showing an example in which the loop path is avoided by the occlusion processing according to the present embodiment. Since the port state of the port in contact with the new link 400 of the relay apparatus 1-4 and the relay apparatus 1-5 is the main signal filter, the priority becomes lower than the path during operation, By the reception processing, the relay apparatuses 1-4 and the relay apparatuses 1-5 close the port on the lower priority level. Therefore, the path after the port closure becomes the path 302 and becomes the same path as before the state of FIG. 11, that is, before the formation of the loop path. On the other hand, if it is assumed that the loop path is avoided by the STP, if the path cost of the path 303 is smaller than the path 302, the path after the loop avoidance becomes the path 303. [ In the path 303, the transmission delay time changes in accordance with the change of the topology between the local station device 2 and the local station device 3, thereby affecting the time synchronization accuracy. On the other hand, in the present embodiment, since the priority of the port in the operational state is increased and the port having the lower priority is closed, the port used for the operation before the formation of the loop path is not closed, The port tangent to the new low link 400 is closed. Therefore, in this embodiment, the route after the loop avoidance between the parent station device 2 and the local station device 3 becomes the same as the route before the loop path is formed, and the topology between the parent station device 2 and the local station device 3 There is no influence on the time synchronization precision. In addition, it is not necessary for the manager to perform path switching to resolve the loop path, and the relay apparatus 1 can autonomously resolve the loop path.

이상과 같이, 본 실시 형태에서는, 중계 장치(1)가 포트마다 포트 상태를 관리하여, 링크를 확립하면, 포트 상태를 주신호 필터 즉 루프 검출 프레임의 송수신을 행하여 주신호 프레임의 전송을 행하지 않는 상태로 천이시키고, 자 장치로부터 송신한 루프 검출 프레임을 검출하여 일정시간 이상 자 장치로부터 송신한 루프 검출 프레임을 수신하지 않는 경우에 포트 상태를 운용으로 천이시키고, 자 장치로부터 송신하는 루프 검출 프레임을 송신한 포트를 나타내는 정보와 포트 상태에 따라 결정되는 우선도를 우선도 정보로서 격납한다. 그리고 자 장치 이외의 중계 장치로부터 루프 검출 프레임을 수신했을 경우, 자 장치의 포트의 우선도가 낮은 경우에, 수신한 프레임의 우선도 정보를 자 장치의 포트에 대응하는 우선도로 갱신하여 전송한다. 또, 수신한 루프 검출 프레임에 기초하여, 자 장치로부터 송신한 루프 검출 프레임의 송신 포트와 수신 포트와 루프 경로에 있어서 자 장치가 최저의 우선도의 중계 장치인지 여부를 나타내는 정보를 격납한 루프 관리 테이블을 갱신한다. 그리고 루프 관리 테이블에 기초하여, 자 장치가 최저의 우선도의 중계 장치인 경우에, 자 장치의 포트를 폐색시키도록 했다. 이 때문에, 접속 형태를 변화시키지 않고 자율적으로 루프 경로를 해소할 수 있다. As described above, in the present embodiment, when the relay apparatus 1 manages the port state for each port and establishes the link, the port state is set so that the transmission of the call frame through which the main signal filter, that is, And when the loop detection frame transmitted from the self apparatus is not received and the loop detection frame transmitted from the self apparatus is not received for a predetermined time or more, the port state is changed to the operation and the loop detection frame transmitted from the self apparatus is transmitted Information indicating the transmitted port and priority determined in accordance with the port status are stored as priority information. When a loop detection frame is received from a relay apparatus other than the self apparatus, if the priority of the port of the self apparatus is low, the priority information of the received frame is updated with priority corresponding to the port of the self apparatus and is transmitted. In addition, based on the received loop detection frame, information indicating whether the self apparatus is the relay apparatus with the lowest priority in the transmission port, the reception port and the loop path of the loop detection frame transmitted from the self apparatus is stored in the loop management Update the table. Then, based on the loop management table, when the self apparatus is the lowest priority relay apparatus, the port of the self apparatus is closed. Therefore, it is possible to solve the loop path autonomously without changing the connection form.

실시 형태 2.Embodiment 2 Fig.

도 13은 본 발명에 따른 실시 형태 2의 통신 시스템(500)의 구성예를 나타내는 도면이다. 도 13에 나타내는 것처럼, 본 실시 형태의 통신 시스템(500)은 실시 형태 1에서 기술한 중계 장치(1)와 마찬가지의 구성을 가지는 중계 장치(1-1, 1-2)와, 실시 형태 1에서 기술한 중계 장치(1)로서의 기능을 가지지 않는 중계 장치(4)를 구비한다. 본 실시 형태에서는, 중계 장치(1-1, 1-2)가 도 2에 나타내는 루프 관리 테이블 기억부(27)에 기억하는 정보가 추가되어, 본 실시 형태의 중계 장치가 루프 경로상에 존재하는지 여부를 판단하는 처리를 추가하는 동작을 행하지만, 이것들 이외의 동작 및 구성은, 실시 형태 1과 같다. 이하 실시 형태 1과 상이한 점을 설명한다. 또, 본 실시 형태의 중계 장치(1-1, 1-2)의 구성은 실시 형태 1과 같기 때문에, 실시 형태 1과 마찬가지의 기능을 가지는 구성요소를 이용하여 설명하는 경우에는, 실시 형태 1과 동일한 부호를 부여한다.13 is a diagram showing a configuration example of a communication system 500 according to Embodiment 2 of the present invention. As shown in FIG. 13, the communication system 500 of the present embodiment includes relay apparatuses 1-1 and 1-2 having the same configuration as the relay apparatus 1 described in Embodiment 1, And a relay apparatus 4 that does not have a function as the relay apparatus 1 described above. In the present embodiment, information stored in the loop management table storage unit 27 shown in FIG. 2 by the relay apparatuses 1-1 and 1-2 is added to determine whether the relay apparatus of the present embodiment exists on the loop path The operation and configuration other than the above operations are the same as those in the first embodiment. Hereinafter, differences from the first embodiment will be described. The configuration of the relay apparatuses 1-1 and 1-2 according to the present embodiment is the same as that in Embodiment 1, and therefore, in the case of using the constituent elements having the same functions as those in Embodiment 1, The same reference numerals are given.

실시 형태 1의 중계 장치는, 루프 경로가 형성되었을 경우에 루프 형성 전의 토폴로지를 변화시키지 않고 루프 경로를 검출하여, 루프 경로상의 포트를 폐색함으로써 루프 경로를 해소했다. 그렇지만, 이러한 기능을 가지는 중계 장치와 이러한 기능을 구비하지 않은 중계 장치가 혼재하는 경우도 있다. 예를 들면, 도 13에 나타내는 것 같은 구성의 경우, 중계 장치(4)는 자율적으로 루프 경로를 검출할 수 없으므로, 중계 장치(4)를 포함하는 루프가 형성되었을 경우에, 루프 경로 내에 실시 형태 1과 같은 중계 장치가 존재하지 않으면 루프 검출을 할 수 없다. 본 실시 형태에서는, 이러한 구성에 있어서의, 루프 검출 처리에 대해 설명한다. The relay apparatus of the embodiment 1 detects the loop path without changing the topology before forming the loop when the loop path is formed and closes the port on the loop path to eliminate the loop path. However, there are cases where a relay apparatus having such a function and a relay apparatus having no such function are mixed. For example, in the case of the configuration shown in Fig. 13, the relay apparatus 4 can not autonomously detect the loop path. Therefore, when the loop including the relay apparatus 4 is formed, Loop detection is not possible if there is no relay device such as 1. In the present embodiment, loop detection processing in such a configuration will be described.

도 13에 나타내는 것처럼, 중계 장치(4)는 포트(40-1, 40-2, 40-3)를 가진다. 중계 장치(4)의 포트(40-1)는 중계 장치(1-2)의 포트(10-2)에 접속되어 있다. 중계 장치(4)의 포트(40-2)와 포트(40-3) 사이에서 루프 경로가 형성되어 있다. 이러한 경우, 루프 검출부(15)를 가지고 있지 않는 중계 장치(4)를 대신하여, 루프 경로에 가장 가까운, 중계 장치(1-2)가 루프를 검출하여, 포트(10-2)를 폐색할 필요가 있다. 또, 루프 경로와의 사이에 중계 장치(1-2)가 존재하는 중계 장치(1-1)에서는, 연결처에 루프를 검출해도, 중계 장치(1-2)에 접속하는 포트(10-1)를 폐색하지 않도록 제어할 필요가 있다. 이하, 루프 검출부(15)를 가지고 있는 중계 장치(1-1, 1-2) 등을, 루프 검출부를 가지는 중계 장치 또는 본 실시 형태의 중계 장치 또는 우선도 정보를 갱신 가능한 중계 장치라고 부르고, 중계 장치(4)를 루프 검출부를 가지지 않은 중계 장치라고 부른다. As shown in Fig. 13, the relay apparatus 4 has ports 40-1, 40-2, and 40-3. The port 40-1 of the relay apparatus 4 is connected to the port 10-2 of the relay apparatus 1-2. And a loop path is formed between the port 40-2 and the port 40-3 of the relay apparatus 4. [ In this case, instead of the relay apparatus 4 having no loop detection unit 15, the relay apparatus 1-2 closest to the loop path needs to detect the loop and close the port 10-2 . In the relay apparatus 1-1 in which the relay apparatus 1-2 is located between the loop path and the relay apparatus 1-2, even if a loop is detected at the connection destination, It is necessary to control so as not to obstruct the operation of the vehicle. Hereinafter, the relay apparatuses 1-1 and 1-2 having the loop detection unit 15 are referred to as a relay apparatus having a loop detection section, a relay apparatus according to the present embodiment, or a relay apparatus capable of updating priority information, The apparatus 4 is referred to as a relay apparatus having no loop detection section.

본 실시 형태에서는, 자 장치가 송신한 루프 검출 프레임의 송신 포트와 수신 포트가 동일한 경우, 자 장치가 루프 검출부를 가지는 중계 장치 중 루프 경로에 가장 가까운 중계 장치인지 여부를 판별하기 위해서, 루프 검출 프레임에 격납되어 있는 루프 경로 내의 우선도 정보를 이용한다. 루프 경로 내의 우선도 정보를 갱신할 수 있는 것은 루프 검출부를 가지는 중계 장치뿐이기 때문에, 우선도 정보의 갱신의 유무로 연결처에 루프 검출부를 가지는 중계 장치가 존재하는지 여부에 대한 판별이 가능하다. In this embodiment, in order to determine whether the self apparatus is the relay apparatus closest to the loop path among the relay apparatuses having the loop detection section, when the transmission port and the reception port of the loop detection frame transmitted by the self apparatus are the same, The priority information in the loop path stored in the loop path is used. Since only the relay apparatus having the loop detection unit can update the priority information in the loop path, it is possible to determine whether or not there exists a relay apparatus having a loop detection unit at the connection destination due to the presence or absence of update of the priority information.

따라서, 본 실시 형태의 중계 장치(1-1, 1-2)의 루프 검출부(15)의 상태 제어부(26)는, 자 장치가 송신한 루프 검출 프레임을 수신했을 경우, 그 루프 검출 프레임의 우선도 정보를 참조하여, 우선도 정보가 갱신되어 있는지 여부를 판단한다. 또한, 루프 관리부(15)는 자 장치가 송신한 루프 검출 프레임을 송신했을 때 설정한 우선도 정보를 유지해 둔다. 또는, 우선도 정보로서 실시 형태 1의 우선도와 마찬가지의 정보에 더하여, 갱신했는지 여부를 나타내는 정보를 격납하도록 해도 된다.Therefore, when the state control unit 26 of the loop detection unit 15 of the relay apparatus 1-1 or 1-2 of the present embodiment receives the loop detection frame transmitted from the self apparatus, It is determined whether or not the priority information is updated with reference to the degree information. Further, the loop management unit 15 holds the priority information set when the loop detection frame transmitted by the self apparatus is transmitted. Alternatively, information indicating whether or not the update has been made may be stored in addition to the priority information of the first embodiment as the priority information.

도 14는 본 실시 형태의 루프 검출부(15)에 있어서의 루프 검출 프레임의 수신시의 처리 절차의 일례를 나타내는 순서도이다. 도 14에 나타내는 것처럼, 스텝 S4를 스텝 S4a로 바꾼 것 이외는, 실시 형태 1의 도 9와 같다. 스텝 S4a에서는, 상태 제어부(26)는 루프 관리 테이블의 갱신 시에, 실시 형태 1의 스텝 S4와 마찬가지의 갱신을 행함과 아울러, 수신한 루프 검출 프레임의 우선도 정보가 갱신되어 있는지 여부에 기초하여 본 실시 형태의 중계 장치 즉 우선도 정보를 갱신 가능한 중계 장치의 유무를 나타내는 정보도 갱신한다. 도 15는 본 실시 형태의 루프 관리 테이블의 구성예를 나타내는 도면이다. 도 15에 나타내는 것처럼, 본 실시 형태의 루프 관리 테이블에는, 본 실시 형태의 중계 장치의 유무의 란, 즉 루프 경로상에 루프 검출부를 가지는 중계 장치가 있는지 여부를 나타내는 정보가 추가되어 있다.14 is a flowchart showing an example of a processing procedure upon reception of a loop detection frame in the loop detection unit 15 of the present embodiment. As shown in Fig. 14, the same as Fig. 9 of the first embodiment except that step S4 is changed to step S4a. In step S4a, the state control unit 26 updates the loop management table in the same manner as in step S4 of the first embodiment, and based on whether or not the priority information of the received loop detection frame is updated The relay apparatus of the present embodiment, that is, the information indicating the presence or absence of the relay apparatus capable of updating the priority information is also updated. 15 is a diagram showing a configuration example of a loop management table according to the present embodiment. As shown in Fig. 15, in the loop management table of the present embodiment, information indicating whether there is a relay apparatus of the present embodiment, that is, information indicating whether or not there is a relay apparatus having a loop detection section is added to the loop path.

도 16은 본 실시 형태의 루프 검출부(15)에 있어서의 루프 검출 프레임 송신 및 포트 폐색 처리 절차의 일례를 나타내는 순서도이다. 본 실시 형태의 루프 검출부(15)에 있어서의 루프 검출 프레임 송신 및 포트 폐색 처리는, 스텝 S12를 스텝 S12a로 바꾸고, 스텝 S21, 스텝 S22, 스텝 S23를 추가하는 것 이외는, 실시 형태 1의 본 실시 형태의 루프 검출부(15)에 있어서의 루프 검출 프레임 송신 및 포트 폐색 처리와 같다. 스텝 S12a에서는, 실시 형태 1과 마찬가지로, 루프 검출부(15)가 송신 포트의 엔트리를 읽어냄과 아울러 루프 관리 테이블 내의 그 엔트리를 클리어 하지만, 이 때, 상술한 것처럼 루프 경로상에 본 실시 형태의 중계 장치가 있는지 여부를 나타내는 정보도 읽어내진다. 스텝 S12a의 후, 스텝 S21에서, 상태 제어부(26)는 읽어낸 엔트리의 수신 포트 비트 맵에 기초하여, 루프 검출 프레임의 송신 포트와 수신 포트가 동일한지 여부를 판단한다(스텝 S21). 또한, 스텝 S21에 있어서, 루프 검출 프레임의 송신 포트와 수신 포트가 동일하다는 것은, 자 장치로부터 송신한 루프 검출 프레임을 수신한 포트와, 그 루프 검출 프레임을 송신한 포트가 동일한 것을 의미한다. 또한, 루프 검출 프레임을 송신한 포트를 나타내는 송신 포트 정보는 루프 검출 프레임에 격납되어 있고, 이 정보를 이용하여 송신한 포트를 식별할 수 있다. 16 is a flowchart showing an example of loop detection frame transmission and port blocking processing procedures in the loop detection unit 15 of the present embodiment. The loop detection frame transmission and the port blocking processing in the loop detection unit 15 of the present embodiment are the same as those of the first embodiment except that step S12 is replaced by step S12a and steps S21, S22, and S23 are added. This is the same as the loop detection frame transmission and port blocking processing in the loop detection unit 15 of the embodiment. In step S12a, as in the first embodiment, the loop detector 15 reads the entry of the transmission port and clears the entry in the loop management table. At this time, on the loop path as described above, Information indicating whether or not the device is present is also read. After step S12a, in step S21, the state control unit 26 determines whether or not the transmission port and reception port of the loop detection frame are the same, based on the reception port bitmap of the read entry (step S21). The fact that the transmission port and the reception port of the loop detection frame are the same in step S21 means that the port receiving the loop detection frame transmitted from the child device and the port transmitting the loop detection frame are the same. The transmission port information indicating the port from which the loop detection frame is transmitted is stored in the loop detection frame, and the transmitted port can be identified using this information.

루프 검출 프레임의 송신 포트와 수신 포트가 동일한 경우(스텝 S21의 Yes), 상태 제어부(26)는 루프 경로상에 본 실시 형태의 중계 장치(1)가 있는지 여부를 루프 관리 테이블에서 읽어낸 엔트리에 기초하여 판단한다(스텝 S22). 루프 경로상에 본 실시 형태의 중계 장치(1)가 있는 경우(스텝 S22의 Yes), 스텝 S15로 진행한다. 루프 경로상에 본 실시 형태의 중계 장치(1)가 없는 경우(스텝 S22의 No), 루프 검출부(15)는 루프 검출 프레임의 송신 포트를 폐색하고(스텝 S23), 스텝 S15로 진행한다. 스텝 S23에서는, 구체적으로는, 상태 제어부(26)가 루프 검출 프레임의 송신 포트를 폐색한다고 판단하고, 그 취지를 포트 상태 관리 스테이트 머신(28)에 통지한다. 그 후, 포트 상태 관리 스테이트 머신(28)은 상태 제어부(26)로부터의 통지에 기초하여, 관리하고 있는 포트 상태를 갱신하여, 폐색할 포트에 대응하는 프레임 수신부(12-1~12-N)로, 포트 폐색이 유의인 것을 나타내는 포트 폐색 지시를 송신한다. 이것에 의해, 포트가 폐색 상태가 된다. If the transmission port and the reception port of the loop detection frame are the same (Yes in step S21), the state control unit 26 determines whether or not the relay apparatus 1 of the present embodiment is present on the loop path, in the entry read from the loop management table (Step S22). When there is the relay apparatus 1 of the present embodiment on the loop path (Yes in step S22), the flow advances to step S15. If there is no relay apparatus 1 of the present embodiment on the loop path (No in step S22), the loop detection unit 15 closes the transmission port of the loop detection frame (step S23) and proceeds to step S15. Specifically, in step S23, it is determined that the state control unit 26 closes the transmission port of the loop detection frame, and notifies the port state management state machine 28 of the fact. Thereafter, the port state management state machine 28 updates the managed port state based on the notification from the state control section 26, and updates the port state of the frame receiving sections 12-1 to 12-N corresponding to the port to be closed, , A port closure instruction indicating that the port closure is significant is transmitted. As a result, the port is closed.

루프 검출 프레임의 송신 포트와 수신 포트가 동일하지 않은 경우(스텝 S21의 No), 스텝 S13으로 진행한다. If the transmission port and the reception port of the loop detection frame are not the same (No in step S21), the flow advances to step S13.

이상과 같이, 루프 검출 프레임에 격납된 우선도 정보의 갱신의 유무에 기초하여, 루프 경로상에 본 실시 형태의 중계 장치가 존재하는지 여부를 판단하여, 루프 경로상에 본 실시 형태의 중계 장치가 존재하지 않고 또한 자 장치로부터 송신한 루프 검출 프레임을 수신한 포트와, 그 루프 검출 프레임을 송신한 포트가 동일한 경우에, 실시 형태 1의 우선도 정보에 기초한 포트 폐색 처리를 행하도록 했다. 이 때문에, 실시 형태 1과 마찬가지의 효과가 얻어짐과 아울러, 루프 경로 내에 본 실시 형태의 중계 장치가 존재하지 않는 경우에도, 본 실시 형태의 중계 장치 중 루프 경로에 가장 가까운 중계 장치가 포트를 폐색할 수 있다. As described above, based on the presence or absence of the update of the priority information stored in the loop detection frame, it is determined whether or not the relay apparatus of the present embodiment exists on the loop path, and the relay apparatus of the present embodiment The port blocking process based on the priority information of the first embodiment is performed when the port that received the loop detection frame and the port that transmitted the loop detection frame are the same. Therefore, even when the repeater of the present embodiment does not exist in the loop path, the repeater nearest to the loop path of the repeater of the present embodiment closes the port can do.

실시 형태 3.Embodiment 3:

다음에 실시 형태 3의 중계 장치에 대해 설명한다. 본 실시 형태의 중계 장치(1)의 구성은 실시 형태와의 중계 장치(1)와 같다. 이하, 실시 형태 1과 상이한 점을 설명한다. 실시 형태 1 및 실시 형태 2에서는, 포트를 폐색하는 처리에 대해 설명했지만, 포트의 폐색 후, 루프 경로가 해소되는 것도 생각할 수 있다. 이 경우, 폐색 포트에서 일정시간의 동안, 자 장치가 송신한 루프 검출 프레임을 미수신한 경우에는 당해 포트를 운용으로 천이시킴으로써 포트 폐색을 해제하여, 불필요한 포트 폐색 상태가 발생하지 않도록 한다. Next, a relay apparatus according to Embodiment 3 will be described. The configuration of the relay apparatus 1 of the present embodiment is the same as that of the relay apparatus 1 of the embodiment. Hereinafter, differences from the first embodiment will be described. In the first and second embodiments, the process of closing the port has been described, but it is also conceivable that the loop path is eliminated after the port is closed. In this case, if the loop detection frame transmitted from the self apparatus has not been received for a certain period of time at the blocking port, the port is switched to the operation so that the port blocking is canceled to prevent an unnecessary port blocking state from occurring.

도 17은 본 실시 형태의 포트 폐색 해제 처리 절차의 일례를 나타내는 순서도이다. 도 17에 나타내는 것처럼, 루트 관리부(15)의 상태 제어부(26)는, 폐색 포트이고, 일정기간 자 장치로부터 송신한 루프 검출 프레임을 미수신했는지 여부를 판단한다(스텝 S31). 포트 폐색의 후, 폐색 포트에서, 일정기간 자 장치로부터 송신한 루프 검출 프레임을 미수신한 경우(스텝 S31의 Yes), 폐색 포트의 포트 상태를 운용으로 변경하고(스텝 S32), 처리를 종료한다. 포트 폐색의 후, 폐색 포트에서, 일정기간 경과할 때까지의 동안에 자 장치로부터 송신한 루프 검출 프레임을 수신했을 경우(스텝 S31의 No), 처리를 종료한다. 이상 기술한 것 이외의 본 실시 형태의 동작 및 구성은 실시 형태 1과 같다. 또, 실시 형태 2의 중계 장치에, 이상 기술한 본 실시 형태의 동작을 추가해도 된다. 17 is a flowchart showing an example of a port closure release procedure according to the present embodiment. As shown in Fig. 17, the state control unit 26 of the route management unit 15 determines whether or not the loop detection frame transmitted from the self apparatus has not been received for a predetermined period of time (step S31). After the port is closed, if the loop detection frame transmitted from the self-device is not received at the blocking port (Yes at step S31), the port status of the blocking port is changed to operation (step S32) and the process is terminated. If the loop detection frame transmitted from the self apparatus is received during the period until the elapse of a predetermined period of time at the closed port after the port closure (No at step S31), the processing is terminated. The operation and configuration of the present embodiment other than those described above are the same as those of the first embodiment. The operation of the embodiment described above may be added to the relay apparatus of the second embodiment.

이상의 실시 형태에 나타낸 구성은, 본 발명의 내용의 일례를 나타내는 것이고, 다른 공지의 기술과 조합하는 것도 가능하고, 본 발명의 요지를 일탈하지 않는 범위에서, 구성의 일부를 생략, 변경하는 것도 가능하다. The configuration shown in the above embodiments represents one example of the content of the present invention and can be combined with other known technologies and a part of the configuration can be omitted or changed without departing from the gist of the present invention Do.

1, 1-1~1-N, 4: 중계 장치 10-1~10-N: 포트
11: FDB 테이블 기억부 12-1~12-N: 프레임 수신부
13: 다중화부 14: 출력 제어부
15: 루프 검출부 21: 링크 감시부
22: 프레임 식별부 23: 루프 검출 프레임 생성부
24: 전송 프레임 생성부 25: 다중부
26: 상태 제어부 27: 루프 관리 테이블 기억부
28: 포트 상태 관리 스테이트 머신 100: 제어 회로
101: 입력부 102: 프로세서
103: 메모리 104: 출력부
200: 통신 제어 회로
1, 1-1 to 1-N, 4: Relays 10-1 to 10-N:
11: FDB table storage unit 12-1 to 12-N: frame receiver
13: multiplexer 14: output controller
15: loop detection unit 21: link monitoring unit
22: frame identification unit 23: loop detection frame generation unit
24: transmission frame generation unit 25:
26: state control unit 27: loop management table storage unit
28: port state management state machine 100: control circuit
101: Input unit 102: Processor
103: memory 104: output section
200: Communication control circuit

Claims (9)

복수의 포트와,
상기 포트마다의 우선도를 관리하고, 송신하는 포트를 나타내는 포트 정보가 격납되고 우선도를 나타내는 우선도 정보가 격납되기 위한 영역이 마련된 루프 검출 프레임을 정기적으로 생성하여 출력하고, 자(自) 장치 이외로부터 송신된 루프 검출 프레임을 수신하면, 수신한 루프 검출 프레임의 우선도 정보가 나타내는 우선도보다 상기 포트의 우선도가 낮은 경우에, 수신한 루프 검출 프레임의 상기 우선도 정보를 상기 포트의 우선도로 갱신하여, 상기 우선도 정보를 갱신한 루프 검출 프레임을 출력하고, 자 장치로부터 송신한 루프 검출 프레임을 수신했을 경우, 자 장치 이외로부터 송신된 루프 검출 프레임에 격납된 상기 우선도 정보와 상기 포트마다의 우선도에 기초하여 상기 포트를 폐색(閉塞)시킬지 여부를 제어하는 루프 검출부와,
상기 루프 검출부로부터 출력되는 루프 검출 프레임을 상기 포트로 송출하는 출력 제어부를 구비하는 중계 장치.
A plurality of ports,
Periodically generates and outputs a loop detection frame in which priority information for each port is managed, port information indicating a port to be transmitted is stored, priority information indicating priority is stored, and the like, And when the priority of the port is lower than the priority indicated by the priority information of the received loop detection frame, the priority information of the received loop detection frame is assigned to the priority of the port And outputs the loop detection frame in which the priority information has been updated. When receiving the loop detection frame transmitted from the self apparatus, the priority information stored in the loop detection frame transmitted from a device other than the self device, A loop detection unit for controlling whether or not to close the port based on the priority of each port,
And an output control unit for transmitting a loop detection frame output from the loop detection unit to the port.
청구항 1에 있어서,
상기 루프 검출부는,
자 장치로부터 송신한 루프 검출 프레임을 수신했을 경우에, 루프 경로가 생겨 있다고 판단하고, 수신한 루프 검출 프레임에 격납된 상기 우선도 정보가 나타내는 우선도보다 루프 검출 프레임을 송신한 상기 포트의 우선도가 낮은 경우에, 자 장치가 상기 루프 경로 내에서 저우선의 장치라고 판단하고, 수신한 상기 루프 검출 프레임을 송신한 상기 포트 및 수신한 상기 포트와, 자 장치가 상기 저우선의 장치인지 여부를 나타내는 정보를 대응지어 루프 관리 정보로서 기억하고, 상기 루프 관리 정보에 기초하여 자 장치가 상기 저우선의 장치라고 판단했을 경우에, 상기 루프 경로 내의 상기 포트를 폐색시키는 것을 특징으로 하는 중계 장치.
The method according to claim 1,
The loop detection unit includes:
When the loop detection frame transmitted from the base station apparatus is received, it is determined that a loop path has occurred, and the priority of the port that transmitted the loop detection frame is higher than the priority indicated by the priority information stored in the received loop detection frame It is determined that the self apparatus is a low priority apparatus in the loop path, and the port in which the received loop detection frame is transmitted and the received port and whether or not the self apparatus is the low priority apparatus And stores the loop management information in association with the information indicating the loop management information, and closes the port in the loop path when it is determined that the self apparatus is the low-priority apparatus based on the loop management information.
청구항 1 또는 청구항 2에 있어서,
상기 루프 검출부는,
상기 루프 경로가 생겨 있다고 판단했을 경우에, 자 장치로부터 송신한 루프 검출 프레임을 수신했을 때, 수신한 루프 검출 프레임에 격납된 상기 우선도 정보에 기초하여, 상기 루프 경로 내에, 상기 우선도 정보를 갱신 가능한 중계 장치가 있는지 여부를 판단하고, 자 장치로부터 송신한 루프 검출 프레임을 수신한 포트와 그 루프 검출 프레임을 송신한 상기 포트가 동일하고 또한 상기 루프 경로 내에, 상기 우선도 정보를 갱신 가능한 중계 장치가 없는 경우에, 그 루프 검출 프레임을 송신한 상기 포트를 폐색시키는 것을 특징으로 하는 중계 장치.
The method according to claim 1 or 2,
The loop detection unit includes:
When receiving the loop detection frame transmitted from the self apparatus when it is determined that the loop path has occurred, the priority information is stored in the loop path on the basis of the priority information stored in the received loop detection frame Wherein the control unit determines whether or not there is an updateable relay apparatus, and determines whether or not there is an updateable relay apparatus, if the port receiving the loop detection frame transmitted from the child apparatus is the same as the port transmitting the loop detection frame, And closes the port that transmitted the loop detection frame when the device is not present.
청구항 1, 청구항 2 또는 청구항 3에 있어서,
상기 루프 검출부는,
상기 포트를 폐색시키고 나서 일정시간 자 장치가 송신한 루프 검출 프레임을 수신하지 않는 경우, 상기 포트의 폐색을 해제하는 것을 특징으로 하는 중계 장치.
The method according to claim 1, 2, or 3,
The loop detection unit includes:
And closes the port when the port does not receive the loop detection frame transmitted by the self-device after the port is closed.
청구항 1 내지 청구항 4 중 어느 한 항에 있어서,
상기 루프 검출부는, 상기 포트마다, 상기 포트의 상태가, 모든 프레임의 송수신을 행하는 제1 상태와, 루프 검출 프레임의 송수신을 행하고 루프 검출 프레임 이외의 프레임을 송신하지 않는 제2 상태와, 폐색 상태인 제3 상태 중 어느 상태인지를 관리하고, 상기 포트의 상태와 우선도의 대응을 관리하는 것을 특징으로 하는 중계 장치.
The method according to any one of claims 1 to 4,
Wherein the loop detection unit includes a first state in which the state of the port performs transmission and reception of all frames, a second state in which transmission and reception of a loop detection frame are performed and frames other than a loop detection frame are not transmitted, And the third state, and manages the correspondence between the state of the port and the priority.
청구항 5에 있어서,
상기 제1 상태에 대응하는 우선도는 상기 제2 상태에 대응하는 우선도보다 높고, 상기 제2 상태에 대응하는 우선도는 상기 제3 상태에 대응하는 우선도보다 우선도가 높은 것을 특징으로 하는 중계 장치.
The method of claim 5,
Wherein the priority corresponding to the first state is higher than the priority corresponding to the second state and the priority corresponding to the second state has a higher priority than the priority corresponding to the third state Relay device.
청구항 5 또는 청구항 6에 있어서,
상기 루프 검출부는, 상기 포트마다, 링크 확립을 검출하면 상기 포트를 상기 제2 상태로 천이시키고, 상기 제2 상태로 한 후, 일정시간 자 장치가 송신한 루프 검출 프레임을 상기 포트에서 수신하지 않는 경우, 또는 일정시간 상기 포트로부터 송신한 루프 검출 프레임을 자 장치가 수신하지 않는 경우, 상기 포트를 상기 제1 상태로 천이시키는 것을 특징으로 하는 중계 장치.
The method according to claim 5 or 6,
Wherein the loop detection unit transits the port to the second state upon detection of a link establishment for each of the ports and sets the loop state to the second state after the loop detection frame is not received at the port Or if the self apparatus does not receive the loop detection frame transmitted from the port for a predetermined time, transits the port to the first state.
청구항 1 내지 청구항 7 중 어느 한 항에 있어서,
상기 루프 검출 프레임의 송신원이 상기 중계 장치인 경우, 송신하는 상기 루프 검출 프레임의 상기 우선도 정보의 영역에 유의(有意)한 정보를 삽입하지 않고 송신하고, 처음에 상기 루프 검출 프레임을 수신한 상기 중계 장치인 경우, 상기 우선도 정보로서 수신 포트 또는 송신 포트 중 보다 낮은 우선도의 포트의 우선도를 격납하여 그 루프 검출 프레임을 전송하는 것을 특징으로 하는 중계 장치.
The method according to any one of claims 1 to 7,
When the transmission source of the loop detection frame is the relay apparatus, transmits information without inserting significant information into the region of the priority information of the loop detection frame to be transmitted, And when the relay apparatus is a relay apparatus, stores the priority of a lower priority port among the reception port or the transmission port as the priority information, and transmits the loop detection frame.
청구항 1 내지 청구항 8 중 어느 한 항에 기재된 중계 장치를 복수 개 구비하고,
친국(親局) 장치와,
복수의 상기 중계 장치를 통해서 상기 친국 장치와 통신을 행하는 자국(子局) 장치를 구비하는 것을 특징으로 하는 통신 시스템.
10. A relay apparatus comprising a plurality of relay apparatuses according to any one of claims 1 to 8,
(Parent station) apparatus,
And a local station (slave) apparatus for communicating with the parent station via a plurality of the relay apparatuses.
KR1020177022839A 2015-02-23 2015-02-23 Relay device and communication system KR101935188B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2015/055051 WO2016135828A1 (en) 2015-02-23 2015-02-23 Relay device and communication system

Publications (2)

Publication Number Publication Date
KR20170107486A true KR20170107486A (en) 2017-09-25
KR101935188B1 KR101935188B1 (en) 2019-01-03

Family

ID=56788302

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020177022839A KR101935188B1 (en) 2015-02-23 2015-02-23 Relay device and communication system

Country Status (5)

Country Link
JP (1) JP6275323B2 (en)
KR (1) KR101935188B1 (en)
CN (1) CN107251492A (en)
TW (1) TWI573421B (en)
WO (1) WO2016135828A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019069401A1 (en) * 2017-10-04 2019-04-11 三菱電機株式会社 Network management system and network management method
CN108712333A (en) * 2018-05-18 2018-10-26 河海大学 A kind of industrial network loop detecting method for preventing communication path from changing
US10516599B1 (en) 2018-08-31 2019-12-24 Hewlett Packard Enterprise Development Lp Link priority for loop-protect
JP6969528B2 (en) * 2018-09-25 2021-11-24 株式会社オートネットワーク技術研究所 Relay system
JP7036057B2 (en) * 2019-02-14 2022-03-15 日本電信電話株式会社 Signal transfer device, signal transfer method, signal transfer control device, signal transfer control method and signal transfer program
JP7437197B2 (en) * 2020-03-16 2024-02-22 住友電気工業株式会社 Switch device, in-vehicle communication system and communication method
CN115605814A (en) * 2020-05-19 2023-01-13 三菱电机株式会社(Jp) Additional foundation unit, control device, control system and control method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3523616B2 (en) * 2001-07-24 2004-04-26 松下電器産業株式会社 Bus optimization method and communication node
TWI229993B (en) * 2003-11-12 2005-03-21 Solustek Corp Topology loop detection mechanism
JP4429185B2 (en) * 2005-02-07 2010-03-10 日本電信電話株式会社 System including loop control bridge device based on priority
JP2009194768A (en) * 2008-02-15 2009-08-27 Fujitsu Telecom Networks Ltd Network communication system, loop detection method thereof, and relay apparatus of network communication system
TW201023563A (en) * 2008-12-08 2010-06-16 Moxa Inc Processing method of ring network redundancy checking
JP5704035B2 (en) * 2011-09-27 2015-04-22 日立金属株式会社 Network system
CN102347865B (en) * 2011-11-04 2015-02-25 华为技术有限公司 Ethernet ring path locating method as well as switching equipment and system
CN103763201B (en) * 2013-12-31 2017-07-18 深信服网络科技(深圳)有限公司 Loop cutting-off method and device based on STP/RSTP agreements

Also Published As

Publication number Publication date
KR101935188B1 (en) 2019-01-03
TWI573421B (en) 2017-03-01
CN107251492A (en) 2017-10-13
WO2016135828A1 (en) 2016-09-01
JPWO2016135828A1 (en) 2017-09-07
JP6275323B2 (en) 2018-02-07
TW201631928A (en) 2016-09-01

Similar Documents

Publication Publication Date Title
KR101935188B1 (en) Relay device and communication system
US10298380B2 (en) Method for transmitting data in a communication network of an industrial automation system and coupling communication device
US9066160B2 (en) Apparatus and method for protection in a data center
RU2625935C2 (en) Communication device for industrial communication network exploited with excess and method for communication device operating
CN104980349A (en) Relay System and Switching Device
CN104980372A (en) Relay System And Switching Device
US8737201B2 (en) Data relay apparatus, and ring-type communication system
KR101751195B1 (en) Relay device and communication network
CN113260934A (en) Method and communication device for operating a communication system for transmitting time-critical data
JP2009010668A (en) Communication apparatus, communicating method, communication interface, and program
JP4895972B2 (en) Ring protocol fast switching method and apparatus
JP5702708B2 (en) Packet control method and packet control apparatus
US11251991B2 (en) Communication system, communication apparatus, communication method, and program
US9762510B2 (en) Relay system and switching device
US20160056995A1 (en) Relay System and Relay Device
US9241203B2 (en) Apparatus for controlling a transmission path
CN111373700B (en) Communication system, controlled device, and control method of communication system
FI104593B (en) Hierarchical synchronization procedure
KR101544592B1 (en) Dynamic Queue Allocation Scheme Method and Apparatus for High Availability Distributed Embedded Network Transmission
JP2019134216A (en) Communication device and communication system
CN104780138A (en) Transparent transmission method and device for STP (Spanning Tree Protocol)/RSTP (Rapid Spanning Tree Protocol) message in private redundancy protocol network
CN112753206B (en) Method and communication device for data transmission in industrial communication network
US9001646B2 (en) Information transmission device, information transmission system and information transmission method
CN115668873A (en) Method for operating a communication system for transmitting time-critical data, switch and communication system
US11310854B2 (en) Industrial wireless network infrastructure supporting multiple subnets

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant