TWI573421B - Relay devices and communication systems - Google Patents

Relay devices and communication systems Download PDF

Info

Publication number
TWI573421B
TWI573421B TW104126045A TW104126045A TWI573421B TW I573421 B TWI573421 B TW I573421B TW 104126045 A TW104126045 A TW 104126045A TW 104126045 A TW104126045 A TW 104126045A TW I573421 B TWI573421 B TW I573421B
Authority
TW
Taiwan
Prior art keywords
port
detection frame
loop detection
loop
relay device
Prior art date
Application number
TW104126045A
Other languages
Chinese (zh)
Other versions
TW201631928A (en
Inventor
Toshiyuki Nakayasu
Sachiko Taniguchi
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of TW201631928A publication Critical patent/TW201631928A/en
Application granted granted Critical
Publication of TWI573421B publication Critical patent/TWI573421B/en

Links

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

Description

中繼裝置及通訊系統 Relay device and communication system

本發明係關於一種檢測通訊系統內之迴圈(loop)之中繼裝置及通訊系統。 The present invention relates to a relay device and a communication system for detecting a loop in a communication system.

近年來,在產業領域中已見乙太網路(Ethernet)(註冊商標)化的進展,而於製造現場中,則已建構了屬於連結PLC(Programmable Logic Controller,可程式邏輯控制器)、變頻器(inverter)、感測器(sensor)等之FA(Factory Automation,工廠自動化)機器之通訊網路(Network)的產業用網路。在產業用網路中,為了提升處理精確度,極為重要的是由複數個FA機器使時刻同步,且協同作業進行動作。作為實現時刻同步的手段,已使用一種由屬於輸出控制命令之通訊裝置的主設備(Master)將自身的時刻資訊傳送至屬於控制對象之通訊裝置的從設備(Slave),而在從設備中則係將所接收的時刻資訊經過以來自主設備之轉送延遲時間修正後的值,作為自身的時刻資訊予以更新的方法等。在上述的時刻同步方法中,當主設備-從設備間的轉送延遲時間隨著網路的拓樸(Topology),亦即連接形態的變化而改變時,在FA機器間的時刻同步精確度上就會出現影響。 In recent years, the progress of Ethernet (registered trademark) has been seen in the industrial field, and in the manufacturing field, a PLC (Programmable Logic Controller) has been constructed. Industrial network of the communication network of FA (Factory Automation) machines such as inverters and sensors. In the industrial network, in order to improve the processing accuracy, it is extremely important that the time is synchronized by a plurality of FA machines, and the operations are performed in coordination. As means for realizing time synchronization, a master device (Master) belonging to a communication device that outputs an output command is used to transmit its own time information to a slave device (Slave) belonging to a communication device to be controlled, and in the slave device A method in which the received time information is passed through a value corrected by the transfer delay time of the own device, and is updated as its own time information. In the above-described time synchronization method, when the transfer delay time between the master device and the slave device changes with the topology of the network, that is, the change of the connection mode, the time synchronization accuracy between the FA machines is improved. There will be an impact.

另一方面,在將複數個FA機器連接於第二層交換 (Layer 2 Switch)等的中繼裝置而建構的產業用網路中,有時會因為人為的疏失(Mistake)等而產生通訊路徑的誤連接而形成迴圈路徑。當風暴(Storm)隨著迴圈路徑的形成而產生時,會對於產業網路的運用帶來障礙。所謂風暴係指廣播訊框(Broadcast Frame)或多播訊框(Multicast Frame)的轉送及複製處理在迴圈路徑上被無限次重複,而壓迫到網路的頻帶。 On the other hand, connecting multiple FA machines to the second layer of switching In an industrial network constructed by a relay device such as (Layer 2 Switch), a communication path may be erroneously connected due to a human misplaced (Mistake) or the like to form a loop path. When the storm is generated along with the formation of the loop path, it will cause obstacles to the use of the industrial network. The so-called storm refers to the transmission and copy processing of a broadcast frame or a multicast frame, which is repeated indefinitely on the loop path and is pressed to the frequency band of the network.

為了要避免上述的風暴,只要由中繼裝置檢測迴圈路徑而將迴圈路徑上的端口(Port)封閉即可。作為習知的迴圈檢測方式,已知有一種非專利文獻1所揭示之藉由STP(Spanning Tree Protocol,擴充樹協定)所進行之端口的阻斷(blocking)。在STP中,係根據從連結(Link)速度或中繼裝置之優先順位設定所決定的路徑成本(Path Cost)而選擇通訊路徑,且藉由封閉冗長路徑上的端口來解除迴圈路徑。 In order to avoid the above-mentioned storm, it is only necessary to close the port on the loop path by detecting the loop path by the relay device. As a conventional loop detection method, there is known a blocking of a port by STP (Spanning Tree Protocol) disclosed in Non-Patent Document 1. In the STP, the communication path is selected based on the path cost determined from the link speed or the priority order setting of the relay device, and the loop path is released by closing the port on the redundant path.

此外,專利文獻1中已揭示一種藉由通訊裝置將儲存有自身裝置之MAC(Media Access Control,媒體存取控制)位址(Address)的試驗訊框(Frame)傳送至傳送目的地MAC位址及傳送來源MAC位址,且接收由自身裝置所傳送的試驗訊框來檢測出迴圈的技術。此外,專利文獻2中已揭示一種在將所接收之訊框之傳送來源MAC位址與接收端口的資訊建立關聯而登錄的轉送表格(Table)中,於接收端口相對於MAC位址的更新次數為所設定之臨限值以上時即檢測迴圈的技術。 Further, Patent Document 1 discloses that a test frame (Frame) in which a MAC (Media Access Control) address of a device is stored is transmitted to a transmission destination MAC address by a communication device. And transmitting the source MAC address, and receiving the test frame transmitted by the own device to detect the loop technology. In addition, Patent Document 2 discloses a number of times of update of a receiving port with respect to a MAC address in a transfer table (Table) in which a transmission source MAC address of a received frame is associated with information of a receiving port. The technique of detecting the loop when it is above the set threshold.

[先前技術文獻] [Previous Technical Literature] [專利文獻] [Patent Literature]

專利文獻1:日本特開2012-44384號公報 Patent Document 1: Japanese Laid-Open Patent Publication No. 2012-44384

專利文獻2:日本特許第4879279號公報 Patent Document 2: Japanese Patent No. 4879279

[非專利文獻] [Non-patent literature]

非專利文獻1:IEEE Std 802. ID-2004、“IEEE Standard for Local and Metropolitan Area Networks:Media Access Control (MAC) Bridges” IEEE、2004、pp.57-65 Non-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 Non-Patent Document 1, since the path cost is always the smallest path since the communication path is not fixed, the topology dynamically changes when the new path is connected. When STP is used in an industrial network, the transfer delay time between the master device and the slave device due to the above-described topology change has an influence on the accuracy of the time synchronization and becomes a problem.

另一方面,在專利文獻1及專利文獻2所記載的技術中,雖可檢測出迴圈路徑,但由於通訊裝置不會自律性地解除迴圈路徑,因此會有必須由網路管理者切斷迴圈路徑上之通訊路徑的問題。 On the other hand, in the techniques described in Patent Document 1 and Patent Document 2, although the loop path can be detected, since the communication device does not automatically cancel the loop path, it is necessary to be cut by the network administrator. The problem of the communication path on the loop path.

本發明係有鑑於上述問題而研創者,其目的在獲得一種不使連接形態變化即可自律性地解除迴圈路徑的中繼裝置。 The present invention has been made in view of the above problems, and an object thereof is to obtain a relay device capable of autonomously releasing a loop path without changing a connection form.

為了解決上述的問題而達成目的,本發明之中繼裝置係包括:複數個端口;及迴圈檢測部,管理每一端口的優 先順位,且定期地產生設有供儲存顯示進行傳送之端口的端口資訊且供儲存顯示優先順位之優先順位資訊之區域的迴圈檢測訊框並予以輸出,當接收從自身裝置以外所傳送的迴圈檢測訊框時,在端口的優先順位比所接收之迴圈檢測訊框的優先順位資訊所顯示之優先順位更低的情形下,以端口之優先順位更新所接收之迴圈檢測訊框的優先順位資訊,且輸出已更新了優先順位資訊的迴圈檢測訊框,而於接收到從自身裝置所傳送之迴圈檢測訊框之情形下,根據儲存於從自身裝置以外所傳送之迴圈檢測訊框的優先順位資訊與每一端口的優先順位而控制是否要封閉端口。此外,該中繼裝置係包括輸出控制部,其係將從迴圈檢測部所輸出的迴圈檢測訊框送出至端口。 In order to solve the above problems, the relay device of the present invention includes: a plurality of ports; and a loop detecting unit that manages the superiority of each port. Firstly, a loop detection frame having an area for storing port information for displaying the port for transmission and storing priority information for displaying the priority is generated and outputted when receiving the transmission from the device other than the device itself. When loop detection frame, when the priority order of the port is lower than the priority order of the received priority information of the received loop detection frame, the received loop detection frame is updated with the priority order of the port. Priority information, and output a loop detection frame in which the priority information has been updated, and in the case of receiving the loop detection frame transmitted from the own device, according to the stored back from the device The priority information of the circle detection frame and the priority order of each port control whether the port is to be closed. Further, the relay device includes an output control unit that sends a loop detection frame output from the loop detecting unit to the port.

本發明之中繼裝置係可達成不使連接形態變化即可自律性地解除迴圈路徑的效果。 The relay device of the present invention can achieve the effect of autonomously releasing the loop path without changing the connection form.

1、1-1至1-N、4‧‧‧中繼裝置 1, 1-1 to 1-N, 4‧‧‧ relay devices

2‧‧‧主站裝置 2‧‧‧Master station installation

3‧‧‧子站裝置 3‧‧‧Substation installation

10-1至10-N‧‧‧端口 Port 10-1 to 10-N‧‧‧

11‧‧‧FDB表格記憶部 11‧‧‧FDB Form Memory

12-1至12-N‧‧‧訊框接收部 12-1 to 12-N‧‧‧ Frame Receiver

13‧‧‧多工化部 13‧‧‧Multi-industry

14‧‧‧輸出控制部 14‧‧‧Output Control Department

15‧‧‧迴圈檢測部 15‧‧‧Circle Detection Department

21‧‧‧連結監視部 21‧‧‧Link Monitoring Department

22‧‧‧訊框識別部 22‧‧‧ Frame Identification Department

23‧‧‧迴圈檢測訊框產生部 23‧‧‧Circle detection frame generation unit

24‧‧‧轉送訊框產生部 24‧‧‧Transfer Frame Generation Department

25‧‧‧多工部 25‧‧‧Multi-work

26‧‧‧狀態控制部 26‧‧‧State Control Department

27‧‧‧迴圈管理表格記憶部 27‧‧‧Circle Management Form Memory

28‧‧‧端口狀態管理狀態機 28‧‧‧Port State Management State Machine

40-1、40-2、40-3‧‧‧端口 40-1, 40-2, 40-3‧‧‧ ports

100‧‧‧控制電路 100‧‧‧Control circuit

101‧‧‧輸入部 101‧‧‧ Input Department

102‧‧‧處理器 102‧‧‧Processor

103‧‧‧記憶體 103‧‧‧ memory

104‧‧‧輸出部 104‧‧‧Output Department

200‧‧‧通訊控制電路 200‧‧‧Communication control circuit

300至303‧‧‧路徑 300 to 303‧‧ path

400‧‧‧新連結 400‧‧‧New link

500‧‧‧通訊系統 500‧‧‧Communication system

第1圖係顯示實施形態1之中繼裝置之構成例的圖。 Fig. 1 is a view showing a configuration example of a relay device according to the first embodiment.

第2圖係顯示實施形態1之迴圈檢測部之構成例的圖。 Fig. 2 is a view showing a configuration example of a loop detecting unit in the first embodiment.

第3圖係顯示實施形態1之中繼裝置之硬體(Hardware)構成例的圖。 Fig. 3 is a view showing an example of a hardware configuration of the relay device of the first embodiment.

第4圖係顯示實施形態1之控制電路之構成例的圖。 Fig. 4 is a view showing a configuration example of a control circuit of the first embodiment.

第5圖係顯示實施形態1之記憶於FDB(Forwarding Database,轉發資料庫)表格記憶部之FDB表格之構成例的圖。 Fig. 5 is a view showing an example of the configuration of an FDB table stored in the FDB (Forwarding Database) table memory unit in the first embodiment.

第6圖係顯示實施形態1之迴圈檢測訊框之構成例的圖。 Fig. 6 is a view showing an example of the configuration of a loop detection frame in the first embodiment.

第7圖係顯示實施形態1之端口狀態之定義的圖。 Fig. 7 is a view showing the definition of the port state in the first embodiment.

第8圖係顯示實施形態1之迴圈管理表格之構成例的圖。 Fig. 8 is a view showing a configuration example of a loop management table in the first embodiment.

第9圖係顯示實施形態1之接收迴圈檢測部中之迴圈檢測訊框時之處理順序之一例的流程圖(Flowchart)。 Fig. 9 is a flowchart (Flowchart) showing an example of the processing procedure when the loop detection frame in the loop detecting unit of the first embodiment is received.

第10圖係顯示實施形態1之迴圈檢測部中之迴圈檢測訊框傳送及端口封閉處理順序之一例的流程圖。 Fig. 10 is a flow chart showing an example of a loop detection frame transmission and a port closing processing procedure in the loop detecting unit of the first embodiment.

第11圖係顯示實施形態1之通訊系統之構成例的圖。 Fig. 11 is a view showing a configuration example of a communication system according to the first embodiment.

第12圖係顯示藉由實施形態1之封閉處理而避免迴圈路徑之例的圖。 Fig. 12 is a view showing an example in which the loop path is avoided by the closing process of the first embodiment.

第13圖係顯示實施形態2之通訊系統之構成例的圖。 Fig. 13 is a view showing a configuration example of a communication system of the second embodiment.

第14圖係顯示實施形態2之接收迴圈檢測部中之迴圈檢測訊框時之處理順序之一例的流程圖。 Fig. 14 is a flow chart showing an example of the processing procedure in the case where the loop detection frame in the loop detecting unit of the second embodiment is received.

第15圖係顯示實施形態2之迴圈管理表格之構成例的圖。 Fig. 15 is a view showing an example of the configuration of a loop management table in the second embodiment.

第16圖係顯示實施形態2之迴圈檢測部中之迴圈檢測訊框傳送及端口封閉處理順序之一例的流程圖。 Fig. 16 is a flow chart showing an example of a loop detection frame transmission and a port closing processing procedure in the loop detecting unit of the second embodiment.

4第17圖係顯示實施形態3之端口封閉解除處理順序之一例的流程圖。 Fig. 17 is a flow chart showing an example of the procedure of the port closure release processing in the third embodiment.

以下根據圖式詳細說明本發明之中繼裝置及通訊系統的實施形態。另外,本發明並不限定於該實施形態。 Hereinafter, embodiments of the relay device and communication system of the present invention will be described in detail based on the drawings. Further, the present invention is not limited to the embodiment.

實施形態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係相同的端口。 Fig. 1 is a view showing a configuration example of the relay device 1 according to the first embodiment of the present invention. The relay device 1 includes a port as a transmission port and as a reception port 10-1 to 10-N. Further, N is an integer of 2 or more. The FDB table storage unit 11 of the relay device 1 is configured to store an FDB (Forwarding Database) table registered in association with the transmission source address of the received frame and the information of the receiving port. The frame receiving units 12-1 to 12-N are connected to corresponding ones of the ports 10-1 to 10-N, and are determined to be sent from the frame received via the connected port according to the transfer destination address. The transmission port of the frame. The multiplexer 13 multiplexes the frames input from the frame receiving units 12-1 to 12-N. The output control unit 14 allocates a frame and transmits a frame according to each transmission destination of the received frame. The loop detecting unit 15 manages the priority order of each port 10-1 to 10-N, and periodically generates port information and display with ports 10-1 to 10-N for storing and displaying the transmission to update the loop. The loop detection frame of the priority order information of the lowest priority port information on the path is outputted, and when receiving the loop detection frame transmitted from the device, the frame is transmitted and received in the frame. When the priority order of the port is lower than the priority order displayed by the priority information of the received loop detection frame, the priority order information of the received loop detection frame is updated with its own priority order, and the output is output. The updated loop detection frame, and in the case of receiving the loop detection frame transmitted from the own device, according to the priority order information stored in the loop detection frame and the priority order of the transmission and reception port of the frame To control whether you want to close the port. In addition, in the first figure, although the port on the receiving side is separated from the port on the receiving side, actually the port 10-i (i=1, ̇ ̇ ̇, N) on the left side of the first figure and the right side are shown. Port 10-i is the same port.

第2圖係顯示迴圈檢測部15之構成例的圖。迴圈檢測部15係包括:連結監視部21,用以檢測連結建立,且當 檢測出連結建立時,輸出顯示連結建立為有意義的連結檢測訊號;訊框識別部22,根據迴圈檢測訊框之傳送來源的位址而識別訊框;及屬於訊框產生部的迴圈檢測訊框產生部23,以連結檢測訊號為有意義地變化為契機,產生從建立了連結的端口傳送的迴圈檢測訊框。此外,迴圈檢測部15係包括:屬於轉送部的轉送訊框產生部24,比較儲存於迴圈檢測訊框之後述的優先順位資訊與自身裝置之端口的優先順位,且於自身裝置之端口的優先順位較低之情形下,將屬於已更新了所接收之訊框的優先順位資訊之訊框的轉送訊框予以輸出;及多工部25,將從轉送訊框產生部24所輸出之轉送訊框與藉由迴圈檢測訊框產生部23所產生的迴圈檢測訊框予以多工化。此外,迴圈檢測部15係包括:狀態控制部26,比較儲存於所接收之迴圈檢測訊框的優先順位資訊與自身裝置之端口之優先順位而判斷自身裝置在迴圈路徑上是否為最低優先的中繼裝置;迴圈管理表格記憶部27,用以記憶屬於後述之迴圈管理資訊的迴圈管理表格;及屬於管理部的端口狀態管理狀態機(State Machine)28,依每一端口管理端口狀態並且管理對應於端口狀態的優先順位,藉此管理每一端口的優先順位。 FIG. 2 is a view showing a configuration example of the loop detecting unit 15. The loop detecting unit 15 includes a link monitoring unit 21 for detecting a link establishment and when When it is detected that the connection is established, the output display link is established as a meaningful link detection signal; the frame recognition unit 22 identifies the frame according to the address of the transmission source of the loop detection frame; and the loop detection belonging to the frame generation unit The frame generation unit 23 generates a loop detection frame transmitted from the port in which the connection is established, by causing the connection detection signal to change meaningfully. Further, the loop detecting unit 15 includes a transfer frame generating unit 24 belonging to the transfer unit, and compares the priority order information described later in the loop detecting frame with the priority order of the port of the own device, and is at the port of the own device. In the case where the priority order is lower, the transfer frame belonging to the frame in which the priority order information of the received frame has been updated is output; and the multiplex unit 25 outputs the frame from the transfer frame generating unit 24. The transfer frame and the loop detection frame generated by the loop detection frame generating unit 23 are multiplexed. In addition, the loop detecting unit 15 includes a state control unit 26 that compares the priority order information stored in the received loop detection frame with the priority order of the port of the own device to determine whether the device is the lowest on the loop path. a priority relay device; a loop management table storage unit 27 for storing a loop management table belonging to the loop management information to be described later; and a port state management state machine 28 belonging to the management unit, per port The port status is managed and the priority order corresponding to the port status is managed, thereby managing the priority order of each port.

第3圖係顯示本實施形態之中繼裝置1之硬體構成例的圖。如第3圖所示,中繼裝置1係例如由屬於傳送接收端口的端口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個電子電路。 Fig. 3 is a view showing an example of the hardware configuration of the relay device 1 of the embodiment. As shown in FIG. 3, the relay device 1 is constituted by, for example, ports 10-1 to 10-N belonging to a transmission receiving port and a communication control circuit 200. Ports 10-1 to 10-N are ports 10-1 to 10-N in Fig. 1. Further, in the communication control circuit 200, the FDB table storage unit 11, the frame receiving units 12-1 to 12-N, the multiplex unit 13, the output control unit 14, and the loop shown in Fig. 1 are mounted. Detection unit 15. Each of the components may be mounted as one electronic circuit in the communication control circuit 200, or may be configured as a single electronic circuit in a plurality of constituent elements in the first embodiment.

此外,第1圖及第2圖所示之構成要素中之1個以上的構成要素亦可藉由軟體(Software)來安裝。在具有藉由軟體安裝的構成要素時,該構成要素係例如藉由第4圖所示的控制電路來實現。第4圖係顯示控制電路100之構成例的圖。如第4圖所示,控制電路100係包括:屬於接收部的輸入部101,接收從控制電路100之外部所輸入的資料(Data);處理器(Processor)102;記憶體(Memory)103;及屬於傳送部的輸出部104,將資料傳送至外部。輸入部101係為接收從控制電路100之外部所輸入的資料並賦予至處理器102的介面(Interface)電路,而輸出部104係為將來自處理器102或記憶體103的資料傳送至控制電路100之外部的介面電路。第1圖或第2圖所示的構成要素藉由第4圖所示之控制電路100實現時,由處理器102讀取對應於記憶於記憶體103之各者的程式(Program)來執行而實現。此外,記憶體103在處理器102執行各處理時亦作為暫時記憶體來使用。 Further, one or more of the constituent elements shown in FIGS. 1 and 2 may be attached by software. When a component mounted by a software is provided, the component is realized by, for example, a control circuit shown in FIG. Fig. 4 is a view showing a configuration example of the control circuit 100. As shown in FIG. 4, the control circuit 100 includes an input unit 101 belonging to the receiving unit, and receives data (Data) input from the outside of the control circuit 100; a processor 102; a memory 103; And the output unit 104 belonging to the transfer unit transfers the data to the outside. The input unit 101 is an interface circuit that receives data input from the outside of the control circuit 100 and is supplied to the processor 102, and the output unit 104 transmits data from the processor 102 or the memory 103 to the control circuit. Interface circuit of 100 external. When the components shown in FIG. 1 or FIG. 2 are realized by the control circuit 100 shown in FIG. 4, the processor 102 reads a program corresponding to each of the memories 103 and executes it. achieve. Further, the memory 103 is also used as a temporary memory when the processor 102 executes each process.

接著說明本實施形態之中繼裝置1的動作。第5圖係顯示記憶於FDB表格記憶部11之FDB表格之構成例的圖。如第5圖所示,在FDB表格中,係供儲存位址與對應於該位址的端口編號。端口編號係顯示端口10-1至10-N的編號,而在第5圖中,係將端口10-i的端口編號記載為端口#i。i係1以上的整數。另外,本實施形態中的位址,係指顯示傳 送來源及傳送目的地的裝置等的識別資訊,例如為MAC位址。 Next, the operation of the relay device 1 of the present embodiment will be described. Fig. 5 is a view showing an example of the configuration of an FDB table stored in the FDB table storage unit 11. As shown in Figure 5, in the FDB table, the address for storing the address and the port number corresponding to the address are used. The port number indicates the number of the ports 10-1 to 10-N, and in Fig. 5, the port number of the port 10-i is described as the port #i. i is an integer of 1 or more. In addition, the address in this embodiment refers to display transmission. The identification information of the source and the destination device is, for example, a MAC address.

訊框接收部12-1至12-N係當經由所連接的端口10-1至10-N接收訊框時,抽出所接收之訊框之傳送來源的位址,且參照FDB表格內,檢索是否有與所抽出之位址一致的位址,在FDB表格內沒有與所抽出之位址一致的位址之情形下,訊框接收部12-1至12-N係將所抽出的位址與接收到與該位址對應之訊框之端口的端口編號作為登入資訊(Entry)而追加於FDB表格。藉由此方式,中繼裝置1學習位址與端口的對應,且將所學習的結果儲存於FDB表格。 The frame receiving units 12-1 to 12-N extract the address of the transmission source of the received frame when receiving the frame via the connected ports 10-1 to 10-N, and refer to the FDB table for retrieval. Whether there is an address that is consistent with the extracted address, and in the case where there is no address in the FDB table that matches the extracted address, the frame receiving units 12-1 to 12-N will extract the extracted address. The port number of the port that received the frame corresponding to the address is added to the FDB table as the login information (Entry). In this way, the relay device 1 learns the correspondence between the address and the port, and stores the learned result in the FDB table.

此外,訊框接收部12-1至12-N係抽出所接收之訊框之傳送目的地的位址,且參照FDB表格內,而檢索在FDB表格內是否有與所抽出之位址一致的位址,在有與所抽出之位址一致的位址之情形下,決定對應於該位址的端口編號作為傳送目的地的端口編號。此外,在記憶於FDB表格記憶部11之FDB表格內沒有與上述所抽出之傳送目的地之位址一致的位址之情形下,訊框接收部12-1至12-N係將與除了接收到該訊框之端口以外所有端口對應的端口編號,決定作為傳送目的地的端口編號。 In addition, the frame receiving units 12-1 to 12-N extract the address of the transmission destination of the received frame, and refer to the FDB table to retrieve whether there is an address in the FDB table that is consistent with the extracted address. The address, in the case where there is an address that coincides with the extracted address, determines the port number corresponding to the address as the port number of the transfer destination. Further, in the case where the FDB table stored in the FDB table storage unit 11 does not have an address matching the address of the extracted transfer destination, the frame receiving sections 12-1 to 12-N are to receive and receive The port number corresponding to all ports except the port of the frame determines the port number to be the destination.

此外,訊框接收部12-1至12-N係在接收訊框之傳送目的地端口或對應於自身之接收端口從迴圈檢測部15所輸入之端口封閉指示顯示無意義,亦即未被迴圈檢測部15指示端口封閉之情形下,將以上所述顯示所決定之傳送目的地之端口編號的端口資訊附加在所接收的訊框並轉送至多工化部13。訊框接收部12-1至12-N係在接收訊框之傳送目的地端口 或對應於自身之接收端口從迴圈檢測部15所輸入之端口封閉指示顯示有意義,亦即被迴圈檢測部15指示端口封閉之情形下,將接收訊框廢除。藉由進行此動作,即可避免訊框相對於迴圈路徑上之封閉端口的傳送接收,而避免風暴。 Further, the frame receiving sections 12-1 to 12-N are meaningless, that is, not displayed, by the port closing instruction input from the loop detecting section 15 at the transmission destination port of the receiving frame or the receiving port corresponding to itself. When the loop detecting unit 15 instructs the port to be closed, the port information of the port number of the transfer destination determined by the above display is added to the received frame and transferred to the multiplexer 13. The frame receiving sections 12-1 to 12-N are at the transmission destination port of the receiving frame. Alternatively, the port closing instruction input from the loop detecting unit 15 corresponding to its own receiving port is meaningful, that is, when the loop detecting unit 15 instructs the port to be closed, the receiving frame is abolished. By performing this action, the transmission and reception of the frame relative to the closed port on the loop path can be avoided, and the storm can be avoided.

多工化部13係將從訊框接收部12-1至12-N所輸入之端口數份之訊框中之除迴圈檢測訊框外之訊框的主訊號訊框予以多工化,且將經多工化之訊框隨著顯示傳送目的地之端口編號的端口資訊一同轉送至輸出控制部14。此外,多工化部13係將從訊框接收部12-1至12-N所輸入的迴圈檢測訊框,隨著顯示所接收之端口編號與傳送目的地之端口編號的端口資訊一同轉送至迴圈檢測部15。 The multiplexer 13 multiplexes the main signal frame of the frame other than the loop detection frame in the frame of the number of ports input by the frame receiving units 12-1 to 12-N, The multiplexed frame is transferred to the output control unit 14 along with the port information indicating the port number of the transfer destination. Further, the multiplex processing unit 13 transfers the loop detection frame input from the frame receiving units 12-1 to 12-N together with the port information indicating the port number received and the port number of the transmission destination. To the loop detecting unit 15.

輸出控制部14係根據端口資訊將從多工化部13所輸入之主訊號訊框與從迴圈檢測部15所輸入之迴圈檢測訊框依傳送目的地之每一端口分配,且將訊框輸出至傳送目的地的端口10-1至10-N。 The output control unit 14 allocates the main signal frame input from the multiplexing unit 13 and the loop detection frame input from the loop detecting unit 15 according to the port information to each port of the transmission destination, and transmits the signal. The box is output to the ports 10-1 to 10-N of the transfer destination.

在迴圈檢測部15中,係由第2圖所示之連結監視部21,依每一端口檢測出是否有連結建立,在連結建立時將顯示有意義的連結檢測訊號輸出至迴圈檢測訊框產生部23及狀態控制部26。另外,連結建立的檢測方法,雖可使用任何的方法,但例如由連結監視部21監視要接收的訊框,且接收顯示依據通訊協定(Protocol)的連結建立的訊框,藉此檢測出連結的建立。 In the loop detecting unit 15, the connection monitoring unit 21 shown in FIG. 2 detects whether or not a connection is established for each port, and outputs a meaningful connection detection signal to the loop detection frame at the time of connection establishment. The generating unit 23 and the state control unit 26. Further, although any method can be used for the connection establishment method, for example, the connection monitoring unit 21 monitors the frame to be received, and receives a frame created by the connection of the protocol, thereby detecting the link. The establishment of.

迴圈檢測訊框產生部23係以變化為連結檢測訊號顯示有意義的值為契機,而從建立了連結的端口產生要傳送的 迴圈檢測訊框。迴圈檢測訊框產生部23係將所產生的迴圈檢測訊框,隨著顯示傳送目的地的端口編號,亦即顯示上述之建立了連結之端口的端口編號的端口資訊一同輸出至輸出控制部14。另外,迴圈檢測訊框產生部23係依每一端口,於連結建立後,為了定期地確認是否有迴圈路徑,而定期地產生迴圈檢測訊框。 The loop detection frame generating unit 23 changes the value of the connection detection signal to display a meaningful value, and generates a transmission from the port where the connection is established. Loop detection frame. The loop detection frame generating unit 23 outputs the generated loop detection frame together with the port number indicating the transmission destination, that is, the port information indicating the port number of the port on which the connection is established, to the output control. Part 14. Further, the loop detection frame generating unit 23 periodically generates a loop detection frame for periodically checking whether or not there is a loop path after the connection is established for each port.

第6圖係顯示迴圈檢測訊框之構成例的圖。如第6圖所示,在迴圈檢測訊框中包含有:傳送目的地位址;傳送來源位址;屬於顯示傳送迴圈檢測訊框之端口之資訊的傳送端口資訊;及屬於顯示迴圈路徑內之最低優先順位之端口之優先順位之資訊的優先順位資訊。在迴圈檢測訊框之傳送來源的中繼裝置中,特別有意義的資訊不插入於優先順位資訊的區域而進行傳送。再者,最初接收到迴圈檢測訊框的中繼裝置,將接收端口或傳送端口中之較低優先順位之端口的優先順位儲存於優先順位資訊的區域並進行轉送。或者,迴圈檢測訊框之傳送來源的中繼裝置亦可儲存自身之傳送端口的優先順位作為優先順位資訊並進行傳送。另外,第6圖所示之構成例係一例,各資訊的順序並不限定於第6圖之例。在迴圈檢測訊框之傳送目的地位址中雖可設定任意的值,但在迴圈路徑產生的情形下,需要有返回自身裝置的傳送目的地位址。例如,使用多播位址或廣播位址作為迴圈檢測訊框的傳送目的地位址。再者,中繼裝置係當以多播位址或廣播位址作為傳送目的地接收訊框時,將該訊框傳送至接收到該訊框之端口以外的所有端口。因此,當形成有迴圈路徑時,該中繼裝置所傳送的迴圈檢測訊 框即返回自身裝置。如此,在本實施形態中,係設置在傳送端口資訊與迴圈檢測訊框儲存顯示迴圈路徑內之最低優先順位之端口之優先順位資訊的區域。儲存於傳送端口資訊的資訊,係設為亦可就具有對應之端口的中繼裝置進行識別的資訊。例如,亦可將端口固有的編號分配於各中繼裝置的各端口而使用該編號,亦可為顯示中繼裝置的資訊、與在該中繼裝置內之端口之編號的組合。 Fig. 6 is a view showing a configuration example of a loop detection frame. As shown in FIG. 6, the loop detection frame includes: a transmission destination address; a transmission source address; a transmission port information indicating information of a port transmitting the loop detection frame; and a display loop path The priority order information of the priority order of the lowest priority port within the port. In the relay device that transmits the source of the loop detection frame, particularly meaningful information is transmitted without being inserted in the area of the priority order information. Furthermore, the relay device that first receives the loop detection frame stores the priority order of the lower priority port of the receiving port or the transmitting port in the area of the priority order information and transfers the same. Alternatively, the relay device of the transmission source of the loop detection frame may also store the priority order of its own transmission port as the priority order information and transmit it. Further, the configuration example shown in Fig. 6 is an example, and the order of each information is not limited to the example of Fig. 6. Although an arbitrary value can be set in the transfer destination address of the loop detection frame, in the case where the loop path is generated, it is necessary to have a transfer destination address returning to the own device. For example, a multicast address or a broadcast address is used as a transfer destination address of the loop detection frame. Furthermore, when the relay device receives the frame with the multicast address or the broadcast address as the transmission destination, the frame transmits the frame to all ports except the port that received the frame. Therefore, when a loop path is formed, the loop detection signal transmitted by the relay device The box returns to its own device. As described above, in the present embodiment, an area in which the transmission port information and the loop detection frame store the priority order information of the port of the lowest priority order in the loop path is set. The information stored in the transmission port information is information that can be identified by the relay device having the corresponding port. For example, the number unique to the port may be assigned to each port of each relay device, and the number may be used, or the combination of the information of the relay device and the number of the port in the relay device may be used.

訊框識別部22係確認所接收之迴圈檢測訊框之傳送來源位址,且於傳送來源位址為自身裝置之位址以外的情形下,將所接收之迴圈檢測訊框,隨著顯示接收到該迴圈檢測訊框的端口的資訊一同轉送至轉送訊框產生部24,且於傳送來源位址為自身裝置的位址之情形下,將所接收到的迴圈檢測訊框轉送至狀態控制部26。 The frame identification unit 22 confirms the transmission source address of the received loop detection frame, and if the transmission source address is outside the address of the own device, the received loop detection frame is followed by The information indicating the port receiving the loop detection frame is transferred to the transfer frame generating unit 24, and the received loop detection frame is forwarded in the case where the transmission source address is the address of the own device. To the state control unit 26.

端口狀態管理狀態機28係依每一端口管理端口狀態。在本實施形態中,由於係選出在要迴圈路徑上封閉的端口,因此定義3種端口狀態。端口狀態管理狀態機28係當有來自狀態控制部26、轉送訊框產生部24詢問優先順位時,即將對應端口狀態的優先順位通知詢問來源。第7圖係顯示本實施形態之端口狀態之定義的圖。如第7圖所示,在本實施形態中,係定義屬於第1狀態的運用、屬於第2狀態的主訊號過濾器(filter)、屬於第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 the present embodiment, since the ports closed on the loop to be looped are selected, three kinds of port states are defined. The port state management state machine 28 notifies the source of the priority of the corresponding port state when the state control unit 26 and the transfer frame generating unit 24 inquire about the priority order. Fig. 7 is a view showing the definition of the port state in the present embodiment. As shown in Fig. 7, in the present embodiment, the operation belonging to the first state, the main signal filter belonging to the second state, and the three states belonging to the closed state of the third state are defined as ports. Furthermore, the correspondence between these states and the priority order is managed in the order of priority > high signal in the order of operation > main signal filter > closed. In Figure 7, the port status, priority order, main signal transfer, and loop detection frame are displayed. 4 examples. The port status in Fig. 7 shows the three states of the operation, the main signal filter, and the closed operation, and the priority order system displays the priority order corresponding to each state. In addition, the smaller the priority display value is, the higher the priority is. The main signal transmission in Figure 7 shows whether the main signal frame is to be forwarded, Yes indicates that the main signal frame is forwarded, and No indicates that the main signal frame is not forwarded. In the loop detection frame of Figure 7, it is displayed whether the loop detection frame is to be forwarded and whether the loop detection frame is to be transmitted. Yes indicates that the loop detection frame is transferred or transmitted, and the No system display is not transferred or transmitted back. Circle detection frame. In addition, the merits of the ports having the same port state in the relay device are determined by the size of the port number. For example, if the lower number is used as the priority, if the port status of both port 1 and port 2 is used, it is determined that the priority order of port 1 is higher. On the other hand, the merits of the ports having the same port state between the two relay devices are judged by the value inherent to the device such as the MAC address. Along with the above situation, it is possible to determine the merits of the ports in the network, that is, the priority of the ports.

在本實施形態中,係使用端口的優先順位,來選出要封閉的端口,藉此而避免拓樸的變化。端口狀態管理狀態機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 priority of the port is used to select the port to be closed, thereby avoiding the change of topology. The port state management state machine 28 uses the state of the port as the main signal filter when detecting a new connection establishment based on the connection detection signal input from the state control unit 26. In the port where the port status is the main signal filter, the transfer of the main signal frame is not performed, and the transmission and transfer of the loop detection frame are implemented. In this way, in the case of establishing a new link, it is possible to confirm whether there is a loop path before forwarding the main signal frame. Thereafter, the port state management state machine 28 switches the port state to operation when the state control unit 26 is not notified of the detection of the loop path for a predetermined period of time or more after the connection establishment is detected. In addition, the state control unit 26 is identified by the frame. When the unit 22 inputs the frame and detects the loop path, the information indicating that the loop path has been detected is notified to the port state management state machine 28. The state control unit 26 does not receive the loop detection frame transmitted by the own device over the port 10-i for a certain period of time, or does not receive the transmission from the port 10-i after a certain period of time by the own device. In the case of the circle detection frame, it is determined that the loop path is not detected at the port 10-i, and the content is notified to the port state management state machine 28. Further, the port state management state machine 28 switches the port state to closed when the state control unit 26 notifies that it is closed. Further, the port state management state machine 28 outputs a display portless indication indicating that the port is not closed, for the frame receiving sections 12-1 to 12-N connected to the port whose port state is the port of operation. In addition, the port state management state machine 28 notifies the frame receiving units 12-1 to 12-N of the port status of all the ports, and controls whether the port status is the main signal filter or the closed port does not transmit the main signal. frame.

狀態控制部26係當從連結監視部21接收連結檢測訊號時,將該連結檢測訊號轉送至端口狀態管理狀態機28。此外,狀態控制部26係將顯示屬於傳送出迴圈檢測訊框之端口之傳送端口、與屬於接收到迴圈檢測訊框的端口之接收端口之對應的資訊,作為迴圈管理表格而儲存於迴圈管理表格記憶部27。第8圖係顯示本實施形態之迴圈管理表格之構成例的圖。如第8圖所示,在迴圈管理表格中,係依傳送迴圈檢測訊框的每一傳送端口,將顯示已接收到從該傳送端口所傳送之訊框的接收端口的資訊,作為接收端口位元映像(Bitmap)儲存。在接收端口位元映像中,0係顯示未接收,而1係顯示已接收。因此,儲存有1時,係顯示在對應於1的組合的路徑中產生了 迴圈路徑。例如,在第8圖之例中,傳送端口為1,接收端口為2的組合成為1。此係顯示從端口10-1所傳送的迴圈檢測訊框已在端口10-2被接收。亦即,在第8圖所示之接收端口位元映像中存在1的登入資訊,係為具有迴圈路徑,亦即產生了迴圈路徑的登入資訊。 When receiving the connection detection signal from the connection monitoring unit 21, the state control unit 26 transfers the connection detection signal to the port state management state machine 28. Further, the state control unit 26 stores information corresponding to the transmission port belonging to the port transmitting the loop detection frame and the reception port belonging to the port receiving the loop detection frame as a loop management table. The loop manages the table storage unit 27. Fig. 8 is a view showing a configuration example of a loop management table of the embodiment. As shown in FIG. 8, in the loop management table, according to each transmission port of the transmission loop detection frame, information of the receiving port that has received the frame transmitted from the transmission port is displayed as receiving. Port bitmap (Bitmap) storage. In the receive port bit map, the 0 system shows that it has not been received, and the 1 system shows that it has been received. Therefore, when there is 1 stored, the display is generated in the path corresponding to the combination of 1. Loop path. For example, in the example of Fig. 8, the transmission port is 1, and the combination of the reception port 2 is 1. This shows that the loop detection frame transmitted from port 10-1 has been received at port 10-2. That is, the login information of 1 in the receiving port bit map shown in FIG. 8 is a log information having a loop path, that is, a loop path is generated.

此外,在迴圈管理表格中,係於迴圈路徑中,儲存顯示自身裝置是否為最低優先順位之中繼裝置的資訊。狀態控制部26係當從訊框識別部22輸入迴圈檢測訊框時,由於自身裝置接收到從自身裝置所傳送之迴圈檢測訊框,因此判斷為具有迴圈路徑,亦即產生了迴圈路徑,且根據所輸入之迴圈檢測訊框而更新迴圈管理表格。具體而言,係根據儲存於所接收之迴圈檢測訊框的傳送端口資訊、與接收到迴圈檢測訊框的端口的資訊而更新迴圈管理表格之接收端口位元映像中之對應的登入資訊。此外,狀態控制部26除上述以外,還向端口狀態管理狀態機28詢問所接收之迴圈檢測訊框之傳送接收端口的優先順位而取得該端口的優先順位,且根據所取得的優先順位、及儲存於所接收之迴圈檢測訊框的優先順位資訊,而判斷在迴圈路徑上自身裝置是否為最低優先的中繼裝置,且根據判斷結果而更新迴圈管理表格內之最低優先之中繼裝置的資訊。具體而言,狀態控制部26係在從端口狀態管理狀態機28所取得之端口,亦即傳送出迴圈檢測訊框之端口的優先順位比儲存於所接收之迴圈檢測訊框的優先順位資訊所顯示的優先順位更低之情形下,判斷為自身裝置在迴圈路徑內為最低優先,亦即低優先的裝置。此外,狀態控制部26係將傳送出所 接收之迴圈檢測訊框的端口及所接收的端口、與顯示自身裝置是否為在迴圈路徑內之最低優先的裝置的資訊建立對應關係而記憶於迴圈管理表格。 Further, in the loop management table, information indicating whether or not the own device is the lowest priority relay device is stored in the loop path. When the loop detection frame is input from the frame recognition unit 22, the state control unit 26 determines that the loop detection frame transmitted from the own device is received by the own device, and thus determines that the loop detection path has a loop path, that is, a loop is generated. Loop path, and update the loop management table according to the input loop detection frame. Specifically, the corresponding login in the receiving port bit image of the loop management table is updated according to the information of the transmission port stored in the received loop detection frame and the information of the port receiving the loop detection frame. News. Further, in addition to the above, the state control unit 26 inquires of the port state management state machine 28 about the priority order of the transmission/reception port of the received loop detection frame, and obtains the priority order of the port, and based on the obtained priority order, And the priority order information stored in the received loop detection frame, and determining whether the own device is the lowest priority relay device in the loop path, and updating the lowest priority in the loop management table according to the judgment result Follow the device information. Specifically, the state control unit 26 is the port that is acquired from the port state management state machine 28, that is, the priority order of the port that transmits the loop detection frame is stored in the priority position of the received loop detection frame. In the case where the priority displayed by the information is lower, it is determined that the device is the lowest priority in the loop path, that is, the device with low priority. In addition, the state control unit 26 will transmit the office The port of the received loop detection frame and the received port are associated with the information indicating whether the own device is the lowest priority device in the loop path, and are stored in the loop management table.

此外,狀態控制部26係以自身裝置定期地傳送之迴圈檢測訊框的傳送時序(timing),讀取對應迴圈管理表格中之傳送迴圈檢測訊框之端口的登入資訊,並且清除(Clear)迴圈管理表格的該登入資訊。狀態控制部26係根據所讀取的登入資訊,在自身裝置為迴圈路徑內最低優先順位的中繼裝置之情形下,判斷為封閉構成迴圈路徑之自身裝置所具有之端口中之最高優先順位的端口以外,且與顯示要封閉之端口的資訊一同將端口封閉指示端口狀態管理狀態機28。端口狀態管理狀態機28係根據該指示將對應之端口的狀態變更為封閉。另外,迴圈檢測部15之狀態控制部26及訊框識別部22係設為掌握了每一端口的迴圈檢測訊框的傳送時序。例如,亦可設為狀態控制部26管理每一端口之迴圈檢測訊框的傳送時序,而對迴圈檢測訊框產生部23及訊框識別部22進行通知,亦可由迴圈檢測訊框產生部23管理每一端口之迴圈檢測訊框的傳送時序而對狀態控制部26及訊框識別部22進行通知。狀態控制部26係依每一端口於從該端口傳送出迴圈檢測訊框之後,在傳送下一個迴圈檢測訊框為止的期間,未接收到所傳送之迴圈檢測訊框之情形下,判定為未檢測出迴圈路徑。 Further, the state control unit 26 reads the transmission timing of the loop detection frame periodically transmitted by the own device, and reads the login information of the port corresponding to the transmission loop detection frame in the loop management table, and clears ( Clear) This login information for the loop management form. The state control unit 26 determines, based on the read login information, that the own device is the lowest priority device in the loop path, and determines that the highest priority among the ports of the device that constitutes the loop path is closed. The port status management state machine 28 is indicated by a port closure, in addition to the port that displays the port to be closed. The port state management state machine 28 changes the state of the corresponding port to closed based on the instruction. Further, the state control unit 26 and the frame recognition unit 22 of the loop detecting unit 15 are configured to grasp the transfer timing of the loop detection frame for each port. For example, the state control unit 26 may be configured to notify the loop detection frame generation unit 23 and the frame recognition unit 22 of the transmission timing of the loop detection frame of each port, or may be detected by the loop detection frame. The generating unit 23 manages the transmission timing of the loop detection frame for each port, and notifies the state control unit 26 and the frame recognition unit 22. The state control unit 26 does not receive the transmitted loop detection frame during the period of transmitting the next loop detection frame after transmitting the loop detection frame from the port for each port. It is determined that the loop path is not detected.

轉送訊框產生部24係當接受迴圈檢測訊框輸入時,向端口狀態管理狀態機28詢問自身裝置的端口狀態而取得端口狀態,且依該訊框的每一傳送接收端口,比較自身裝置 的端口狀態、與儲存於所輸入之迴圈檢測訊框的優先順位資訊。再者,轉送訊框產生部24係依該訊框的每一傳送接收端口,在自身裝置之端口的優先順位較低時,將所輸入之訊框的優先順位資訊,更新為顯示自身裝置之端口的資訊,且將更新過優先順位資訊之後的訊框,隨著顯示傳送目的地之端口的資訊一同輸出至多工部25。 When receiving the loop detection frame input, the transfer frame generating unit 24 queries the port state management state machine 28 for the port state of the own device to obtain the port state, and compares the own device according to each of the transmission and reception ports of the frame. The port status and the priority information stored in the input loop detection frame. Furthermore, the transfer frame generating unit 24 updates the priority order information of the input frame to the display device according to each of the transmission and reception ports of the frame, when the priority of the port of the device is low. The information of the port, and the frame after the priority order information is updated, is output to the multiplex unit 25 along with the information indicating the port of the transfer destination.

多工部25係將從轉送訊框產生部24所輸出的轉送訊框與藉由迴圈檢測訊框產生部23所產生的迴圈檢測訊框予以多工化,且將多工化後的訊框隨著顯示傳送目的地之端口的資訊一同輸出至輸出控制部14。另外,所謂多工係指將複數個訊框匯集於1個路徑。 The multiplex unit 25 multiplexes the transfer frame output from the transfer frame generating unit 24 and the loop detection frame generated by the loop detection frame generating unit 23, and multiplexes the multiplexed frame. The frame is output to the output control unit 14 along with the information indicating the port of the transfer destination. In addition, the multiplex means that a plurality of frames are collected in one path.

第9圖係顯示接收迴圈檢測部15中之迴圈檢測訊框時之處理順序之一例的流程圖。第10圖係顯示迴圈檢測部15中之迴圈檢測訊框傳送及端口封閉處理順序之一例的流程圖。迴圈檢測部15係依據檢測出連結建立的每一端口定期地傳送迴圈檢測訊框。傳送迴圈檢測訊框後,迴圈檢測部15係實施第9圖所示的處理。訊框識別部22係判斷是否從多工化部13輸入有迴圈檢測訊框,亦即是否已接收到迴圈檢測訊框(步驟(Step)S1)。未接收到迴圈檢測訊框時(步驟S1,No),訊框識別部22係判斷是否為下一次迴圈檢測訊框的傳送時序(步驟S2)。非為下一次迴圈檢測訊框的傳送時序時(步驟S2,No),返回步驟S1。若為下一次迴圈檢測訊框的傳送時序時(步驟S2,Yes),結束處理。 Fig. 9 is a flowchart showing an example of a processing procedure when receiving a loop detection frame in the loop detecting unit 15. Fig. 10 is a flow chart showing an example of the loop detection frame transmission and port closing processing procedure in the loop detecting unit 15. The loop detecting unit 15 periodically transmits a loop detecting frame based on each port in which the link establishment is detected. After the loop detection frame is transmitted, the loop detecting unit 15 performs the processing shown in FIG. The frame recognition unit 22 determines whether or not the loop detection frame is input from the multiplex unit 13, that is, whether or not the loop detection frame has been received (step S1). When the loop detection frame is not received (step S1, No), the frame recognition unit 22 determines whether or not it is the transmission timing of the next loop detection frame (step S2). When it is not the transmission timing of the next loop detection frame (step S2, No), the process returns to step S1. If it is the transmission timing of the next loop detection frame (step S2, Yes), the processing ends.

接收到迴圈檢測訊框時(步驟S1,Yes),訊框識 別部22係判斷所接收之迴圈檢測訊框內的傳送來源位址是否等於自身裝置的位址,亦即自身位址(步驟S3)。另外,在第9圖中,係將傳送來源位址簡稱為SA(Source Address,源位址)。所接收之迴圈檢測訊框內的傳送來源位址等於自身裝置的位址,亦即自身裝置時(步驟S3,Yes),狀態控制部26係更新迴圈管理表格(步驟S4)。具體而言,係從訊框識別部22輸入迴圈檢測訊框至狀態控制部26,而狀態控制部26係如上所述根據所輸入的迴圈檢測訊框,按上述方式更新迴圈檢測訊框。 When receiving the loop detection frame (step S1, Yes), the frame is recognized. The part 22 determines whether the transmission source address in the received loop detection frame is equal to the address of the own device, that is, the own address (step S3). In addition, in FIG. 9, the transmission source address is simply referred to as SA (Source Address). When the transmission source address in the received loop detection frame is equal to the address of the own device, that is, the own device (step S3, Yes), the state control unit 26 updates the loop management table (step S4). Specifically, the loop detection frame is input from the frame recognition unit 22 to the state control unit 26, and the state control unit 26 updates the loop detection signal in the above manner based on the input loop detection frame as described above. frame.

之後,狀態控制部26係判斷是否為下一次迴圈檢測訊框的傳送時序(步驟S8)。非為下一次迴圈檢測訊框的傳送時序時(步驟S8,No),返回步驟S1,而為下一次迴圈檢測訊框的傳送時序時(步驟S8,Yes),結束處理。 Thereafter, the state control unit 26 determines whether or not it is the transmission timing of the next loop detection frame (step S8). When it is not the transmission timing of the next loop detection frame (No in step S8), the process returns to step S1, and when the transmission timing of the next loop detection frame is (step S8, Yes), the processing ends.

另一方面,在步驟S3中,所接收之迴圈檢測訊框內之傳送來源位址不等於自身裝置的位址亦即自身位址時(步驟S3,No),轉送訊框產生部24係判斷自身端口亦即傳送出迴圈檢測訊框之端口的優先順位,是否較儲存於迴圈檢測訊框的優先順位資訊為低(步驟S5)。另外,如上所述,在本實施形態中,由於優先順位愈高就使用愈小的值作為優先順位的數值,因此顯示儲存作為優先順位的值愈小優先順位就愈高。自身端口的優先順位較儲存於迴圈檢測訊框的優先順位資訊為低時(步驟S5,Yes),將所接收之迴圈檢測訊框的優先順位資訊,更新為顯示自身裝置之端口之優先順位的資訊(步驟S6),且前進至步驟S7。 On the other hand, in step S3, when the transmission source address in the received loop detection frame is not equal to the address of the own device, that is, the own address (step S3, No), the transfer frame generating unit 24 It is determined whether the priority port of the port that transmits the loop detection frame is lower than the priority order information stored in the loop detection frame (step S5). Further, as described above, in the present embodiment, since the smaller the priority is, the smaller the value is used as the priority value. Therefore, the smaller the value of the display storage as the priority order, the higher the priority. When the priority order of the own port is lower than the priority order information stored in the loop detection frame (step S5, Yes), the priority order information of the received loop detection frame is updated to display the priority of the port of the own device. The information is in the order (step S6), and proceeds to step S7.

自身端口的優先順位較儲存於迴圈檢測訊框的優先順位資訊為低時(步驟S5,No),轉送訊框產生部24係將所接收的迴圈檢測訊框經由多工部25、輸出控制部14進行轉送(步驟S7),且前進至步驟S8。 When the priority order of the own port is lower than the priority order information stored in the loop detection frame (step S5, No), the transfer frame generating unit 24 passes the received loop detection frame via the multiplex unit 25 and outputs The control unit 14 performs transfer (step S7), and proceeds to step S8.

接著使用第10圖來說明迴圈檢測訊框的傳送與端口封閉處理。迴圈檢測部15係依已建立連結的每一端口,實施第10圖的處理。狀態控制部26係判斷是否為迴圈檢測訊框的傳送時序(步驟S11)。非為迴圈檢測訊框的傳送時序時(步驟S11,No),返回步驟S11。 Next, the transmission and port closing processing of the loop detection frame will be described using FIG. The loop detecting unit 15 performs the processing of Fig. 10 in accordance with each port to which the connection has been established. The state control unit 26 determines whether or not it is the transfer timing of the loop detection frame (step S11). When it is not the transfer timing of the loop detection frame (step S11, No), the process returns to step S11.

為迴圈檢測訊框的傳送時序時(步驟S11,Yes),狀態控制部26係從迴圈管理表格,讀取傳送端口的登入資訊,亦即對應傳送迴圈檢測訊框之端口的登入資訊,並且清除迴圈管理表格內的該登入資訊(步驟S12)。接著,狀態控制部26係判斷傳送端口亦即傳送迴圈檢測訊框的端口是否為迴圈路徑的最低優先端口(步驟S13)。具體而言,狀態控制部26係參照在步驟S12中所讀取的登入資訊,而在顯示於接收端口位元映像部分中有1亦即自身裝置接收到從自身裝置所傳送之訊框的狀態,而且登入資訊之最低優先的中繼裝置的欄位為於迴圈路徑內最低優先順位之中繼裝置的值的情形下,判斷為傳送端口為最低優先端口。 When the transmission timing of the frame is detected (step S11, Yes), the state control unit 26 reads the login information of the transmission port from the loop management table, that is, the login information corresponding to the port transmitting the loop detection frame. And clearing the login information in the loop management table (step S12). Next, the state control unit 26 determines whether or not the transmission port, that is, the port transmitting the loop detection frame is the lowest priority port of the loop path (step S13). Specifically, the state control unit 26 refers to the login information read in step S12, and the state displayed on the receiving port bit map portion, that is, the state in which the own device receives the frame transmitted from the own device. If the field of the lowest priority relay device of the login information is the value of the lowest priority relay device 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。 When the transmission port is the lowest priority port (Yes in step S13), the loop detecting unit 15 refers to the receiving port bit map read from the loop management table, and in the port of the own device in the loop path. The port other than the highest priority port is closed (step S14). Specifically, the state control unit 26 is Referring to the receiving port bit map read from the loop detection frame, it is determined that the port other than the highest priority port among the ports of the own device in the loop path is closed, and the content is notified to the port status. Management state machine 28. In addition, the highest priority port refers to the port with the highest priority in the determination of the priority order of the above port. In addition, even if the relay device is the lowest priority in the loop path, when the loop path is generated, there are two paths of right turn and left turn, and which one is used. The possibility of the path above. Therefore, in order to not close the port corresponding to the path used for the operation, it is determined that the port immediately after the connection is established as the main signal filter, and the port is not the highest in step S14. The port of the priority port. 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 receiving sections 12-1 to 12-N of the port states of all the ports.

再者,迴圈檢測部15係經由輸出控制部14傳送迴圈檢測訊框(步驟S15),且結束處理。此外,在步驟S13中,傳送端口非為最低優先端口時(步驟S13,No),前進至步驟S15。第10圖之A所示之部分成為封閉端口的封閉處理。 Further, the loop detecting unit 15 transmits a loop detecting frame via the output control unit 14 (step S15), and ends the processing. Further, in step S13, when the transfer port is not the lowest priority port (step S13, No), the process proceeds to step S15. The portion shown in A of Fig. 10 becomes a closed process of the closed port.

另外,在本實施形態中,雖設為根據端口狀態而決定優先順位,但亦可設為藉由各中繼裝置之位址的大小來變更優先順位。例如,係使用將依照端口狀態所決定的優先順位乘上根據位址的權重者作為優先順位。此外,亦可設為在相同的中繼裝置內依每一端口變更優先順位。例如,亦可使用將依據端口狀態所決定的優先順位乘上在自身裝置內的端口編號者作為優先順位。 Further, in the present embodiment, the priority order is determined based on the port state, but the priority order may be changed by the size of the address of each relay device. For example, a weighting according to the priority of the port state is multiplied by the weight according to the address as a priority order. In addition, it is also possible to change the priority order for each port in the same relay device. For example, it is also possible to use a priority number that is determined by the port status to be multiplied by the port number in the own device as a priority order.

接著說明本實施形態之中繼裝置之應用於通訊系統之例。第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 example in which the relay device of the embodiment is applied to a communication system will be described. Fig. 11 is a view showing a configuration example of a communication system of the embodiment. As shown in Fig. 11, the communication system of the present embodiment includes: a master station device 2 that is a master device for time synchronization; and relay devices 1-1 to 1-5 of the relay device 1 of the present embodiment; And the substation device 3 belonging to the slave device that is synchronized at the time. The master station device 2 is connected to the relay device 1-1, the relay device 1-1 is connected to the master station device 2 and the relay device 1-2, and the relay device 1-2 is connected to the relay device 1-1. Relay device 1-3 and relay device 1-5, relay device 1-3 is connected to relay device 1-2 and relay device 1-4, and relay device 1-4 is connected to substation device 3. The relay device 1-4 and the relay device 1-5 are not connected first, and communication using the path 300 and communication using the path 301 are performed, and there is no loop path. It is assumed that in this state, the relay device 1-4 and the relay device 1-5 are connected to establish a new link 400.

在迴圈路徑形成之前,主站裝置2與子站裝置3係在經由了中繼裝置1-1至1-4的路徑300進行通訊,而時刻同步亦在此路徑進行。當迴圈路徑因為新連結400的追加而產生時,本實施形態之中繼裝置1-4係檢測出連結建立,而中繼裝置1-4的端口10-2的端口狀態即成為主訊號過濾器。 Before the loop path is formed, the master station device 2 and the slave station device 3 communicate on the path 300 via the relay devices 1-1 to 1-4, and the time synchronization is also performed on this path. When the loop path is generated by the addition of the new link 400, the relay device 1-4 of the present embodiment detects the connection establishment, and the port state of the port 10-2 of the relay device 1-4 becomes the main signal filter. Device.

第12圖係顯示藉由本實施形態之封閉處理而避免了迴圈路徑之例的圖。由於與中繼裝置1-4及中繼裝置1-5的新連結400相接之端口的端口狀態係主訊號過濾器,因此優先順位較運用中的路徑為低,而藉由迴圈檢測訊框的傳送及接收處理,將中繼裝置1-4與中繼裝置1-5之優先順位較低側的端口封閉。因此,端口封閉後的路徑成為路徑302,且成為與第 11圖之狀態,亦即與迴圈路徑形成前相同的路徑。另一方面,假定藉由STP進行避免迴圈路徑的情形下,當路徑303的路徑成本較路徑302小時,避免迴圈後的路徑即成為路徑303。在路徑303中,轉送延遲時間隨著主站裝置2與子站裝置3之間的拓樸的變化而變化,而影響時刻同步精確度。相對於此,在本實施形態中,由於係將運用狀態之端口的優先順位設為較高,且封閉優先順位較低的端口,因此迴圈路徑形成前用在運用上的端口不會被封閉,而是與優先順位較低的新連結400相接的端口被封閉。因此,在本實施形態中,避免主站裝置2與子站裝置3之間之迴圈後的路徑會成為與迴圈路徑形成前的路徑相同,而主站裝置2與子站裝置3之間的拓樸不會變化,因此不會對時刻同步精確度造成影響。此外,管理者不需要進行用以解除迴圈路徑的路徑切換,中繼裝置1可自律性地解除迴圈路徑。 Fig. 12 is a view showing an example in which the loop path is avoided by the closing process of the embodiment. Since the port status of the port connected to the new connection 400 of the relay device 1-4 and the relay device 1-5 is the main signal filter, the priority order is lower than the path in the application, and the loop detection signal is detected by the loop. The transmission and reception processing of the frame closes the relay device 1-4 and the port on the lower side of the priority of the relay device 1-5. Therefore, the path after the port is closed becomes the path 302, and becomes the same as The state of Fig. 11, that is, the same path as before the loop path is formed. On the other hand, in the case where the loop avoidance path is assumed by STP, when the path cost of the path 303 is smaller than the path 302, the path after the loop is avoided becomes the path 303. In the path 303, the transfer delay time varies with the topology change between the primary station device 2 and the secondary station device 3, and affects the time synchronization accuracy. On the other hand, in the present embodiment, since the priority of the port in the operating state is set to be high and the port with the lower priority is closed, the port used for the operation before the loop path is formed is not closed. Instead, the port that is connected to the new link 400 with the lower priority is closed. Therefore, in the present embodiment, the path after the loop between the primary station device 2 and the substation device 3 is prevented from being the same as the path before the loop path is formed, and between the primary station device 2 and the secondary station device 3 The topology does not change, so it does not affect the timing synchronization accuracy. Further, the manager does not need to perform path switching for canceling the loop path, and the relay device 1 can autonomously cancel the loop path.

綜上所述,在本實施形態中,當中繼裝置1依每一端口管理端口狀態且建立連結時,即使端口狀態轉換至主訊號過濾器亦即進行迴圈檢測訊框的傳送接收、不進行主訊號訊框之轉送的狀態,且在檢測出從自身裝置所傳送的迴圈檢測訊框後經一定時間以上未接收到從自身裝置所傳送之迴圈檢測訊框時使端口狀態轉換為運用,且將顯示傳送出要從自身裝置傳送之迴圈檢測訊框之端口的資訊與依據端口狀態所決定的優先順位作為優先順位資訊予以儲存。再者,從自身裝置以外的中繼裝置接收到迴圈檢測訊框時,自身裝置之端口的優先順位較低情形下,係以對應自身裝置之端口的優先順位來更新所 接收之訊框的優先順位資訊並進行轉送。此外,根據所接收的迴圈檢測訊框,更新儲存有在從自身裝置所傳送之迴圈檢測訊框的傳送端口與接收端口與迴圈路徑中顯示自身裝置是否為最低優先順位之中繼裝置的資訊的迴圈管理表格。再者,係構成為根據迴圈管理表格,自身裝置為最低優先順位的中繼裝置時,封閉自身裝置的端口。因此,不使連接形態變化即可自律性地解除迴圈路徑。 As described above, in the present embodiment, when the relay device 1 manages the port state and establishes a connection according to each port, even if the port state is switched to the main signal filter, the loop detection frame is transmitted and received, and the connection is not performed. The status of the transfer of the main signal frame, and after detecting the loop detection frame transmitted from the own device, after receiving the loop detection frame transmitted from the own device for a certain period of time or more, the port state is converted into operation. And the information indicating the port transmitting the loop detection frame to be transmitted from the own device and the priority order determined according to the port status are stored as the priority order information. Furthermore, when receiving a loop detection frame from a relay device other than the own device, when the priority of the port of the own device is low, the priority is updated with the port corresponding to the port of the own device. The priority information of the received frame is forwarded and forwarded. In addition, according to the received loop detection frame, the relay port storing the loop detection frame transmitted from the own device and the relay port and the loop path indicating whether the device is the lowest priority are updated. The loop management form of the information. Further, when the own device is the lowest priority relay device according to the loop management table, the port of the own device is closed. Therefore, the loop path can be released autonomously without changing the connection form.

實施形態2 Embodiment 2

第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相同的符號。 Fig. 13 is a view showing a configuration example of a communication system 500 according to the second embodiment of the present invention. As shown in FIG. 13, the communication system 500 of the present embodiment includes the relay devices 1-1 and 1-2 having the same configuration as the relay device 1 described in the first embodiment; and does not have an embodiment. The relay device 4 of the function of the relay device 1 described in 1. In the present embodiment, the additional relay devices 1-1 and 1-2 are stored in the information of the loop management table storage unit 27 shown in FIG. 2, and the relay device of the present embodiment is added to determine whether or not the relay device is present. The operation of the processing on the loop path, but the operations and configurations other than the above are the same as those in the first embodiment. Points different from the first embodiment will be described below. In addition, since the configuration of the relay devices 1-1 and 1-2 of the present embodiment is the same as that of the first embodiment, the same components as those of the first embodiment will be described. symbol.

實施形態1之中繼裝置係藉由在迴圈路徑形成時不使路徑形成前的拓樸變化而檢測迴圈路徑,且封閉迴圈路徑上的端口,而解除了迴圈路徑。然而,也有具有此種功能的中繼裝置與不包括此種功能的中繼裝置混合存在的情形。例如, 第13圖所示之構成的情形下,由於中繼裝置4無法自律性地檢測出迴圈路徑,因此形成有包含中繼裝置4的路徑之情形下,當迴圈路徑內不存在有與實施形態1相同的中繼裝置時,就無法檢測出路徑。在本實施形態中,係就此種構成中的路徑檢測處理進行說明。 In the relay device according to the first embodiment, the loop path is detected by not changing the topology before the path formation, and the port on the loop path is closed, and the loop path is released. However, there are cases where a relay device having such a function is mixed with a relay device not including such a function. E.g, In the case of the configuration shown in Fig. 13, since the relay device 4 cannot detect the loop path autonomously, when the path including the relay device 4 is formed, there is no implementation and implementation in the loop path. In the case of the relay device of the same form 1, the path cannot be detected. In the present embodiment, the path 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之間形成有迴圈路徑。此情形下,需由最接近迴圈路徑的中繼裝置1-2檢測迴圈而封閉端口10-2,以取代不具有迴圈檢測部15的中繼裝置4。此外,在與迴圈路徑之間存在中繼裝置1-2的中繼裝置1-1中,即使於延伸目的地檢測出迴圈,也必須控制成不封閉連接於中繼裝置1-2的端口10-1。以下將具有迴圈檢測部15的中繼裝置1-1、1-2等,稱為具有迴圈檢測部的中繼裝置或本實施形態之中繼裝置或可更新優先順位的中繼裝置,且將中繼裝置4稱為不具有迴圈檢測部的中繼裝置。 As shown in Fig. 13, the relay device 4 has ports 40-1, 40-2, and 40-3. The port 40-1 of the relay device 4 is connected to the port 10-2 of the relay device 1-2. A loop path is formed between the port 40-2 of the relay device 4 and the port 40-3. In this case, it is necessary to detect the loop by the relay device 1-2 closest to the loop path to close the port 10-2 instead of the relay device 4 having no loop detecting portion 15. Further, in the relay device 1-1 in which the relay device 1-2 exists between the loop path and the loop, even if the loop is detected at the extension destination, it is necessary to control not to be closed to the relay device 1-2. Port 10-1. Hereinafter, the relay devices 1-1, 1-2 and the like having the loop detecting unit 15 are referred to as a relay device having a loop detecting unit, a relay device of the present embodiment, or a relay device capable of updating a priority order. Further, the relay device 4 is referred to as a relay device having no loop detecting portion.

在本實施形態中,自身裝置所傳送之迴圈檢測訊框的傳送端口與接收端口相同時,為了判別自身裝置是否為具有迴圈檢測部的中繼裝置中之最接近迴圈路徑的中繼裝置,乃使用儲存於迴圈檢測訊框之迴圈路徑內的優先順位資訊。由於可更新迴圈路徑內的優先順位資訊者僅為具有迴圈檢測部的中繼裝置,因此可藉由是否有優先順位資訊的更新來判別在延伸目的地是否存在具有迴圈檢測部的中繼裝置。 In the present embodiment, when the transmission port of the loop detection frame transmitted by the own device is the same as the reception port, it is determined whether or not the own device is the relay closest to the loop path among the relay devices having the loop detection unit. The device uses the priority information stored in the loop path of the loop detection frame. Since the priority order information in the updateable loop path is only the relay device having the loop detection unit, whether or not there is a loop detection unit in the extension destination can be determined by whether or not there is update of the priority order information. Following the device.

因此,本實施形態之中繼裝置1-1、1-2之迴圈檢 測部15的狀態控制部26,在接收到自身裝置所傳送的迴圈檢測訊框時,參照該迴圈檢測訊框的優先順位資訊,且判斷是否已更新了優先順位資訊。另外,迴圈檢測部15係保持傳送出自身裝置所傳送之迴圈檢測訊框時所設定的優先順位資訊。或者,除與實施形態1之優先順位相同的資訊作為優先順位資訊以外,還可儲存顯示是否已更新的資訊。 Therefore, the loop detection of the relay devices 1-1 and 1-2 of the present embodiment When receiving the loop detection frame transmitted by the own device, the state control unit 26 of the measuring unit 15 refers to the priority order information of the loop detection frame and determines whether the priority order information has been updated. Further, the loop detecting unit 15 holds the priority order information set when the loop detecting frame transmitted by the own device is transmitted. Alternatively, information other than the priority order of the first embodiment may be stored as priority information, and information indicating whether or not the information has been updated may be stored.

第14圖係顯示本實施形態之迴圈檢測部15中之迴圈檢測訊框之接收時之處理順序之一例的流程圖。如第14圖所示,除將步驟S4更換為步驟S4a以外,均與實施形態1的第9圖相同。在步驟S4a中,狀態控制部26係在更新迴圈管理表格時,進行與實施形態1之步驟S4相同的更新,並且根據是否更新了所接收之迴圈檢測訊框的優先順位資訊而亦更新顯示是否有本實施形態的中繼裝置亦即可更新優先順位資訊的中繼裝置的資訊。第15圖係顯示本實施形態之迴圈管理表格之構成例的圖。如第15圖所示,在本實施形態之迴圈管理表格中,係追加了顯示是否有本實施形態之中繼裝置的欄位,亦即是否有在迴圈路徑上具有迴圈檢測部的中繼裝置的資訊。 Fig. 14 is a flow chart showing an example of the processing procedure at the time of receiving the loop detection frame in the loop detecting 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 replaced with step S4a. In step S4a, when the loop management table is updated, the state control unit 26 performs the same update as step S4 of the first embodiment, and also updates based on whether or not the priority ranking information of the received loop detection frame is updated. It is displayed whether or not the relay device of the present embodiment can update the information of the relay device of the priority order information. Fig. 15 is a view showing an example of the configuration of a loop management table of the present embodiment. As shown in Fig. 15, in the loop management table of the present embodiment, it is added whether or not the field of the relay device of the present embodiment is displayed, that is, whether or not there is a loop detecting portion on the loop path. Information about the relay device.

第16圖係顯示本實施形態之迴圈檢測部15中之迴圈檢測訊框傳送及端口封閉處理順序之一例的流程圖。本實施形態之迴圈檢測部15中之迴圈檢測訊框傳送及端口封閉處理,係將步驟S12更換為步驟S12a,且追加步驟S21、步驟S22、步驟S23以外,均與實施形態1之迴圈檢測部15中之迴圈檢測訊框傳送及端口封閉處理相同。在步驟S12a中,與實 施形態1同樣地,雖由迴圈檢測部15讀取傳送端口的登入資訊並且清除迴圈管理表格內之該登入資訊,但此時,如上所述亦讀取顯示在迴圈路徑上是否有本實施形態之中繼裝置的資訊。在步驟S12a之後,於步驟S21中,狀態控制部26係根據所讀取之登入資訊的接收端口位元映像,而判斷迴圈檢測訊框的傳送端口與接收端口是否相同(步驟S21)。另外,在步驟S21中,所謂迴圈檢測訊框的傳送端口與接收端口相同,係指接收到從自身裝置所傳送之迴圈檢測訊框的端口、與傳送出該迴圈檢測訊框的端口相同。另外,顯示傳送出迴圈檢測訊框之端口的傳送端口資訊係儲存於迴圈檢測訊框,可使用此資訊而識別已傳送的端口。 Fig. 16 is a flow chart showing an example of a loop detection frame transmission and a port closing processing procedure in the loop detecting unit 15 of the present embodiment. In the loop detecting frame transmission and port closing processing in the loop detecting unit 15 of the present embodiment, the step S12 is replaced with the step S12a, and the steps S21, S22, and S23 are added, and the back of the first embodiment is performed. The loop detection frame transmission and the port closing processing in the circle detecting unit 15 are the same. In step S12a, Similarly, in the first embodiment, the loop detection unit 15 reads the login information of the transmission port and clears the login information in the loop management table, but at this time, as described above, it is also read whether or not the loop is displayed on the loop path. The information of the relay device of this embodiment. After step S12a, in step S21, the state control unit 26 determines whether the transmission port of the loop detection frame is identical to the reception port based on the received port bit map of the read login information (step S21). In addition, in step S21, the transmission port of the loop detection frame is the same as the receiving port, and refers to the port that receives the loop detection frame transmitted from the own device and the port that transmits the loop detection frame. the same. In addition, the transmission port information indicating the port transmitting the loop detection frame is stored in the loop detection frame, and the information can be used to identify the transmitted port.

迴圈檢測訊框之傳送端口與接收端口相同時(步驟S21,Yes),狀態控制部26係根據從迴圈管理表格所讀取之在迴圈路徑上是否有本實施形態之中繼裝置1的登入資訊來判斷(步驟S22)。在迴圈路徑上有本實施形態之中繼裝置1時(步驟S22,Yes),前進至步驟S15。在迴圈路徑上沒有本實施形態之中繼裝置1時(步驟S22,No),迴圈檢測部15係封閉迴圈檢測訊框的傳送端口(步驟S23),且前進至步驟S15。在步驟S23中,具體而言,狀態控制部26係判斷為封閉迴圈檢測訊框的傳送端口,且將其內容通知端口狀態管理狀態機28。之後,端口狀態管理狀態機28係根據來自狀態控制部26的通知,更新所管理的端口狀態,且將顯示端口封閉為有意義的端口封閉指示傳送至對應於要封閉之端口的訊框接收部12-1至12-N。藉此,端口即成為封閉狀態。 When the transmission port of the loop detection frame is the same as the reception port (Yes in step S21), the state control unit 26 determines whether or not the relay device 1 of the present embodiment is on the loop path read from the loop management table. The login information is judged (step S22). When the relay device 1 of the present embodiment is provided on the loop path (step S22, Yes), the process proceeds to step S15. When the relay device 1 of the present embodiment is not provided in the loop path (step S22, No), the loop detecting unit 15 closes the transmission port of the loop detection frame (step S23), and proceeds to step S15. In step S23, specifically, the state control unit 26 determines that the transmission port of the loop detection frame is closed, and notifies the port state management state machine 28 of the content thereof. Thereafter, the port state management state machine 28 updates the managed port state based on the notification from the state control unit 26, and closes the display port to a meaningful port close indication to the frame receiving portion 12 corresponding to the port to be closed. -1 to 12-N. Thereby, the port becomes closed.

迴圈檢測訊框的傳送端口與接收端口不相同時(步驟S21,No),前進至步驟S13。 When the transmission port of the loop detection frame is different from the reception port (step S21, No), the process proceeds to step S13.

綜上所述,根據是否有儲存於迴圈檢測訊框之優先順位資訊的更新,而判斷在迴圈路徑上是否存在本實施形態的中繼裝置,而於在迴圈路徑上不存在本實施形態之中繼裝置而且接收到從自身裝置所傳送之迴圈檢測訊框的端口、與傳送出該迴圈檢測訊框的端口相同時,進行了根據實施形態1之優先順位資訊的端口封閉處理。因此,獲得與實施形態1相同的效果,而且即使在迴圈路徑內不存在本實施形態的中繼裝置之情形下,亦可由本實施形態之中繼裝置中之最接近迴圈路徑的中繼裝置封閉端口。 In summary, whether or not there is an update of the priority information stored in the loop detection frame determines whether the relay device of the embodiment exists on the loop path, and the present embodiment does not exist on the loop path. The port relay processing according to the priority order information according to the first embodiment is performed when the port of the relay device of the form receives the loop detection frame transmitted from the own device and the port that transmits the loop detection frame. . Therefore, the same effect as in the first embodiment is obtained, and even in the case where the relay device of the present embodiment does not exist in the loop path, the relay that is closest to the loop path in the relay device of the present embodiment can be obtained. The device is closed to the port.

實施形態3 Embodiment 3

接著說明實施形態3的中繼裝置。本實施形態之中繼裝置1的構成係與實施形態1的中繼裝置1相同。以下說明與實施形態1不同的點。在實施形態1及實施形態2中,雖已說明了封閉端口的處理,但亦可考慮端口封閉之後解除迴圈路徑。此時,係在封閉端口於一定時間期間,在未接收到自身裝置所傳送之迴圈檢測訊框的情形下,藉由將該端口轉換為運用來解除端口封閉,而使不需要的端口封閉狀態不會產生。 Next, the relay device of the third embodiment will be described. The configuration of the relay device 1 of the present embodiment is the same as that of the relay device 1 of the first embodiment. Points different from the first embodiment will be described below. In the first embodiment and the second embodiment, the processing of the closed port has been described. However, it is also conceivable to cancel the loop path after the port is closed. At this time, in a case where the closed port is not received for a certain period of time, the port is closed by switching the port into an operation without receiving the loop detection frame transmitted by the own device, so that the unnecessary port is closed. The status does not occur.

第17圖係顯示本實施形態之端口封閉解除處理順序之一例的流程圖。如第17圖所示,迴圈檢測部15的狀態控制部26,係判斷在封閉端口,是否經一定期間未接收到從自身裝置所傳送的迴圈檢測訊框(步驟S31)。端口封閉之後,在封閉端口,經一定期間未接收到從自身裝置所傳送的迴圈檢測 訊框時(步驟S31,Yes),將封閉端口的端口狀態變更為運用(步驟S32),且結束處理。端口封閉之後,在封閉端口,直到經過一定期間為止的期間接收到從自身裝置所傳送的迴圈檢測訊框時(步驟S31,No),結束處理。以上所述以外之本實施形態的動作及構成係與實施形態1相同。此外,在實施形態2的中繼裝置中,亦可追加以上所述之本實施形態的動作。 Fig. 17 is a flow chart showing an example of the procedure of the port closing release processing in the embodiment. As shown in Fig. 17, the state control unit 26 of the loop detecting unit 15 determines whether or not the loop detection frame transmitted from the own device has not been received in the closed port for a certain period of time (step S31). After the port is closed, the closed port is not received for loop detection transmitted from its own device for a certain period of time. At the time of the frame (Yes in step S31), the port state of the closed port is changed to the operation (step S32), and the processing ends. After the port is closed, the loop is closed until the loop detection frame transmitted from the own device is received until a certain period of time has elapsed (step S31, No), and the processing is terminated. The operation and configuration of this embodiment other than the above are the same as those of the first embodiment. Further, in the relay device of the second embodiment, the operation of the above-described embodiment described above may be added.

以上之實施形態所示的構成係顯示本發明之內容的一例,亦可與其他公知的技術組合,亦可在不脫離本發明之要旨的範圍內,省略、變更構成的一部分。 The configuration shown in the above embodiment is an example of the present invention, and may be combined with other known techniques, and a part of the configuration may be omitted or changed without departing from the gist of the present invention.

10-1至10-N‧‧‧端口 Port 10-1 to 10-N‧‧‧

11‧‧‧FDB表格記憶部 11‧‧‧FDB Form Memory

12-1至12-N‧‧‧訊框接收部 12-1 to 12-N‧‧‧ Frame Receiver

13‧‧‧多工化部 13‧‧‧Multi-industry

14‧‧‧輸出控制部 14‧‧‧Output Control Department

15‧‧‧迴圈檢測部 15‧‧‧Circle Detection Department

Claims (24)

一種中繼裝置,包括:複數個端口;迴圈檢測部,管理每一前述端口的優先順位,且定期地產生設有供儲存顯示進行傳送之端口的端口資訊且供儲存顯示優先順位之優先順位資訊之區域的迴圈檢測訊框並予以輸出,當接收從自身裝置以外所傳送的迴圈檢測訊框時,在前述端口的優先順位比所接收之迴圈檢測訊框的優先順位資訊所顯示之優先順位更低的情形下,以前述端口之優先順位更新所接收之迴圈檢測訊框的前述優先順位資訊,且輸出已更新了前述優先順位資訊的迴圈檢測訊框,而於接收到從自身裝置所傳送之迴圈檢測訊框之情形下,根據儲存於從自身裝置以外所傳送之迴圈檢測訊框的前述優先順位資訊與前述每一端口的優先順位而控制是否要封閉前述端口;及輸出控制部,將從前述迴圈檢測部所輸出的迴圈檢測訊框送出至前述端口。 A relay device includes: a plurality of ports; a loop detection unit that manages a priority order of each of the ports, and periodically generates a port order information for storing a port for display transmission and a priority order for storing a display priority The loop detection frame of the information area is outputted. When receiving the loop detection frame transmitted from the device, the priority order of the port is displayed as the priority information of the received loop detection frame. If the priority is lower, the priority information of the received loop detection frame is updated with the priority of the port, and the loop detection frame that has updated the priority information is output, and is received. In the case of the loop detection frame transmitted by the own device, it is controlled whether to close the port according to the priority order information stored in the loop detection frame transmitted from the device and the priority order of each port. And an output control unit that sends the loop detection frame output from the loop detecting unit to the port. 根據申請專利範圍第1項之中繼裝置,其中前述迴圈檢測部係於接收到從自身裝置所傳送之迴圈檢測訊框之情形下,判斷為迴圈路徑已產生,而於傳送出迴圈檢測訊框的前述端口的優先順位比儲存於所接收之迴圈檢測訊框的前述優先順位資訊所顯示的優先順位更低的情形下,判斷為自身裝置在前述迴圈路徑內為低優先的裝置,且將所接收的前述迴圈檢測訊框,以將所傳送之前述端口及所接收之 前述端口、以及顯示自身裝置是否為前述低優先的裝置的資訊建立對應關係之方式予以記憶作為迴圈管理資訊,而於根據前述迴圈管理資訊而判斷為自身裝置為前述低優先之裝置的情形下,封閉前述迴圈路徑內的前述端口。 According to the relay device of claim 1, wherein the loop detecting unit determines that the loop path has been generated and receives the loop detection frame after receiving the loop detection frame transmitted from the own device. If the priority of the port of the circle detection frame is lower than the priority order of the priority information stored in the received loop detection frame, it is determined that the device is low priority in the loop path. Device, and the received loop detection frame is received to transmit the aforementioned port and received The port and the information indicating whether the own device is associated with the information of the low priority device are stored as the loop management information, and the device is determined to be the low priority device according to the loop management information. Next, the aforementioned port in the aforementioned loop path is closed. 根據申請專利範圍第1項之中繼裝置,其中前述迴圈檢測部係於判斷為前述迴圈路徑已產生的情形下,於接收到從自身裝置所傳送的迴圈檢測訊框時,根據儲存於所接收之迴圈檢測訊框的前述優先順位資訊,而判斷在前述迴圈路徑內是否有可更新前述優先順位資訊的中繼裝置,而於接收到從自身裝置所傳送之迴圈檢測訊框的端口與傳送出該迴圈檢測訊框的前述端口為相同而且在前述迴圈路徑內沒有可更新前述優先順位資訊的中繼裝置的情形下,封閉傳送出該迴圈檢測訊框的前述端口。 According to the relay device of claim 1, wherein the loop detecting unit determines that the loop path has been generated, and receives the loop detecting frame transmitted from the own device, according to the storage. And determining, by the received priority information of the loop detection frame, whether there is a relay device that can update the priority information in the loop path, and receiving a loop detection signal transmitted from the device The port of the frame is the same as the port that transmits the loop detection frame, and in the case that there is no relay device in the loop path that can update the priority information, the aforementioned detection of the loop detection frame is closed. port. 根據申請專利範圍第2項之中繼裝置,其中前述迴圈檢測部係於判斷為前述迴圈路徑已產生的情形下,於接收到從自身裝置所傳送的迴圈檢測訊框時,根據儲存於所接收之迴圈檢測訊框的前述優先順位資訊,而判斷在前述迴圈路徑內是否有可更新前述優先順位資訊的中繼裝置,而於接收到從自身裝置所傳送之迴圈檢測訊框的端口與傳送出該迴圈檢測訊框的前述端口為相同而且在前述迴圈路徑內沒有可更新前述優先順位資訊的中繼裝置的情形下,封閉傳送出該迴圈檢測訊框的前述端口。 The relay device according to claim 2, wherein the loop detecting unit determines that the loop path has been generated, and receives the loop detecting frame transmitted from the own device, according to the storage. And determining, by the received priority information of the loop detection frame, whether there is a relay device that can update the priority information in the loop path, and receiving a loop detection signal transmitted from the device The port of the frame is the same as the port that transmits the loop detection frame, and in the case that there is no relay device in the loop path that can update the priority information, the aforementioned detection of the loop detection frame is closed. port. 根據申請專利範圍第1至4項中任一項之中繼裝置,其中前述迴圈檢測部係於自封閉前述端口起經一定時間未接收 到自身裝置所傳送之迴圈檢測訊框之情形下,解除前述端口的封閉。 The relay device according to any one of claims 1 to 4, wherein the aforementioned loop detecting portion is not received after a certain period of time from the closing of the aforementioned port In the case of the loop detection frame transmitted by the own device, the closing of the aforementioned port is released. 根據申請專利範圍第1至4項中任一項之中繼裝置,其中前述迴圈檢測部係依每一前述端口,管理前述端口之狀態為進行所有訊框之傳送接收的第1狀態、進行迴圈檢測訊框的傳送接收且不傳送迴圈檢測訊框以外之訊框的第2狀態、及屬於封閉狀態之第3狀態之中的哪一種狀態,且管理前述端口之狀態與優先順位的對應。 The relay device according to any one of claims 1 to 4, wherein the loop detecting unit manages the state of the port as a first state for performing transmission and reception of all frames according to each of the ports. The detection and reception of the loop detection frame does not transmit which of the second state of the frame other than the loop detection frame and the third state of the closed state, and manages the state of the port and the priority order correspond. 根據申請專利範圍第5項之中繼裝置,其中前述迴圈檢測部係依每一前述端口,管理前述端口之狀態為進行所有訊框之傳送接收的第1狀態、進行迴圈檢測訊框的傳送接收且不傳送迴圈檢測訊框以外之訊框的第2狀態、及屬於封閉狀態之第3狀態之中的哪一種狀態,且管理前述端口之狀態與優先順位的對應。 The relay device according to claim 5, wherein the loop detecting unit manages the state of the port as a first state for transmitting and receiving all frames and performing a loop detection frame according to each of the ports. The second state of the frame other than the loop detection frame and the third state belonging to the closed state are transmitted and received, and the state of the port and the priority order are managed. 根據申請專利範圍第6項之中繼裝置,其中對應於前述第1狀態的優先順位係較對應於前述第2狀態的優先順位為高,而對應於前述第2狀態的優先順位係較對應前述第3狀態的優先順位為高。 According to the relay device of claim 6, wherein the priority order corresponding to the first state is higher than the priority order corresponding to the second state, and the priority order corresponding to the second state corresponds to the aforementioned The priority of the third state is high. 根據申請專利範圍第7項之中繼裝置,其中對應於前述第1狀態的優先順位係較對應於前述第2狀態的優先順位為高,而對應於前述第2狀態的優先順位係較對應前述第3狀態的優先順位為高。 According to the relay device of claim 7, wherein the priority order corresponding to the first state is higher than the priority order corresponding to the second state, and the priority order corresponding to the second state corresponds to the aforementioned The priority of the third state is high. 根據申請專利範圍第6項之中繼裝置,其中前述迴圈檢測部係依前述每一端口,當檢測出連結建立時,使前述端口 轉換為前述第2狀態,在轉化為前述第2狀態之後,經一定時間未在前述端口接收到自身裝置所傳送之迴圈檢測訊框時,或經一定時間自身裝置未接收到從前述端口所傳送之迴圈檢測訊框時,使前述端口轉換為前述第1狀態。 According to the relay device of claim 6, wherein the loop detecting unit causes the port to be detected when the connection is established according to each of the ports described above. Converting to the second state, after the conversion to the second state, the loop detection frame transmitted by the own device is not received at the port for a certain period of time, or the device does not receive the port from the port after a certain period of time When the loop detection frame is transmitted, the port is switched to the first state. 根據申請專利範圍第7項之中繼裝置,其中前述迴圈檢測部係依前述每一端口,當檢測出連結建立時,使前述端口轉換為前述第2狀態,在轉化為前述第2狀態之後,經一定時間未在前述端口接收到自身裝置所傳送之迴圈檢測訊框時,或經一定時間自身裝置未接收到從前述端口所傳送之迴圈檢測訊框時,使前述端口轉換為前述第1狀態。 The relay device according to claim 7, wherein the loop detecting unit converts the port to the second state when the connection establishment is detected, and after converting to the second state, When the loop detection frame transmitted by the own device is not received at the port for a certain period of time, or when the loop detection frame transmitted from the port is not received by the device for a certain period of time, the port is converted into the foregoing The first state. 根據申請專利範圍第8項之中繼裝置,其中前述迴圈檢測部係依前述每一端口,當檢測出連結建立時,使前述端口轉換為前述第2狀態,在轉化為前述第2狀態之後,經一定時間未在前述端口接收到自身裝置所傳送之迴圈檢測訊框時,或經一定時間自身裝置未接收到從前述端口所傳送之迴圈檢測訊框時,使前述端口轉換為前述第1狀態。 According to the relay device of the eighth aspect of the invention, the loop detection unit converts the port to the second state when the connection establishment is detected, and after converting to the second state, When the loop detection frame transmitted by the own device is not received at the port for a certain period of time, or when the loop detection frame transmitted from the port is not received by the device for a certain period of time, the port is converted into the foregoing The first state. 根據申請專利範圍第9項之中繼裝置,其中前述迴圈檢測部係依前述每一端口,當檢測出連結建立時,使前述端口轉換為前述第2狀態,在轉化為前述第2狀態之後,經一定時間未在前述端口接收到自身裝置所傳送之迴圈檢測訊框時,或經一定時間自身裝置未接收到從前述端口所傳送之迴圈檢測訊框時,使前述端口轉換為前述第1狀態。 The relay device according to claim 9, wherein the loop detecting unit converts the port to the second state when the connection is established, and after converting to the second state, When the loop detection frame transmitted by the own device is not received at the port for a certain period of time, or when the loop detection frame transmitted from the port is not received by the device for a certain period of time, the port is converted into the foregoing The first state. 根據申請專利範圍第1至4項中任一項之中繼裝置,其中在屬於前述迴圈檢測訊框之傳送來源的前述中繼裝置之情 形下,不在要進行傳送之前述迴圈檢測訊框之前述優先順位資訊的區域插入有意義的資訊而進行傳送,而在屬於最初接收到前述迴圈檢測訊框的前述中繼裝置之情形下,儲存接收端口或傳送端口中之更低優先順位之端口的優先順位作為前述優先順位資訊而轉送該迴圈檢測訊框。 The relay device according to any one of claims 1 to 4, wherein the foregoing relay device belongs to a transmission source of the aforementioned loop detection frame In the case where the information of the priority information of the loop detection frame to be transmitted is inserted, meaningful information is inserted and transmitted, and in the case of the relay device that originally received the loop detection frame, The priority order of the port storing the lower priority of the receiving port or the transmitting port is forwarded to the loop detection frame as the priority order information. 根據申請專利範圍第5項之中繼裝置,其中在屬於前述迴圈檢測訊框之傳送來源的前述中繼裝置之情形下,不在要進行傳送之前述迴圈檢測訊框之前述優先順位資訊的區域插入有意義的資訊而進行傳送,而在屬於最初接收到前述迴圈檢測訊框的前述中繼裝置之情形下,儲存接收端口或傳送端口中之更低優先順位之端口的優先順位作為前述優先順位資訊而轉送該迴圈檢測訊框。 According to the relay device of claim 5, in the case of the aforementioned relay device belonging to the transmission source of the aforementioned loop detection frame, the priority information of the aforementioned loop detection frame to be transmitted is not present. The area is inserted with meaningful information for transmission, and in the case of the aforementioned relay device that originally received the aforementioned loop detection frame, the priority order of the port of the lower priority order in the storage port or the transmission port is stored as the priority. The loop detection frame is forwarded by the information. 根據申請專利範圍第6項之中繼裝置,其中在屬於前述迴圈檢測訊框之傳送來源的前述中繼裝置之情形下,不在要進行傳送之前述迴圈檢測訊框之前述優先順位資訊的區域插入有意義的資訊而進行傳送,而在屬於最初接收到前述迴圈檢測訊框的前述中繼裝置之情形下,儲存接收端口或傳送端口中之更低優先順位之端口的優先順位作為前述優先順位資訊而轉送該迴圈檢測訊框。 According to the relay device of claim 6, wherein in the case of the aforementioned relay device belonging to the transmission source of the aforementioned loop detection frame, the priority information of the aforementioned loop detection frame to be transmitted is not present. The area is inserted with meaningful information for transmission, and in the case of the aforementioned relay device that originally received the aforementioned loop detection frame, the priority order of the port of the lower priority order in the storage port or the transmission port is stored as the priority. The loop detection frame is forwarded by the information. 根據申請專利範圍第7項之中繼裝置,其中在屬於前述迴圈檢測訊框之傳送來源的前述中繼裝置之情形下,不在要進行傳送之前述迴圈檢測訊框之前述優先順位資訊的區域插入有意義的資訊而進行傳送,而在屬於最初接收到前述迴圈檢測訊框的前述中繼裝置之情形下,儲存接收端口或 傳送端口中之更低優先順位之端口的優先順位作為前述優先順位資訊而轉送該迴圈檢測訊框。 According to the relay device of claim 7, wherein in the case of the foregoing relay device belonging to the transmission source of the aforementioned loop detection frame, the priority information of the aforementioned loop detection frame to be transmitted is not present. The area is inserted with meaningful information for transmission, and in the case of the aforementioned relay device that originally received the aforementioned loop detection frame, the storage receiving port or The priority order of the lower priority port in the transmit port is forwarded to the loop detection frame as the priority order information. 根據申請專利範圍第8項之中繼裝置,其中在屬於前述迴圈檢測訊框之傳送來源的前述中繼裝置之情形下,不在要進行傳送之前述迴圈檢測訊框之前述優先順位資訊的區域插入有意義的資訊而進行傳送,而在屬於最初接收到前述迴圈檢測訊框的前述中繼裝置之情形下,儲存接收端口或傳送端口中之更低優先順位之端口的優先順位作為前述優先順位資訊而轉送該迴圈檢測訊框。 According to the relay device of claim 8, wherein in the case of the relay device belonging to the transmission source of the loop detection frame, the priority information of the loop detection frame to be transmitted is not The area is inserted with meaningful information for transmission, and in the case of the aforementioned relay device that originally received the aforementioned loop detection frame, the priority order of the port of the lower priority order in the storage port or the transmission port is stored as the priority. The loop detection frame is forwarded by the information. 根據申請專利範圍第9項之中繼裝置,其中在屬於前述迴圈檢測訊框之傳送來源的前述中繼裝置之情形下,不在要進行傳送之前述迴圈檢測訊框之前述優先順位資訊的區域插入有意義的資訊而進行傳送,而在屬於最初接收到前述迴圈檢測訊框的前述中繼裝置之情形下,儲存接收端口或傳送端口中之更低優先順位之端口的優先順位作為前述優先順位資訊而轉送該迴圈檢測訊框。 According to the relay device of claim 9, wherein in the case of the relay device belonging to the transmission source of the loop detection frame, the priority information of the loop detection frame to be transmitted is not The area is inserted with meaningful information for transmission, and in the case of the aforementioned relay device that originally received the aforementioned loop detection frame, the priority order of the port of the lower priority order in the storage port or the transmission port is stored as the priority. The loop detection frame is forwarded by the information. 根據申請專利範圍第10項之中繼裝置,其中在屬於前述迴圈檢測訊框之傳送來源的前述中繼裝置之情形下,不在要進行傳送之前述迴圈檢測訊框之前述優先順位資訊的區域插入有意義的資訊而進行傳送,而在屬於最初接收到前述迴圈檢測訊框的前述中繼裝置之情形下,儲存接收端口或傳送端口中之更低優先順位之端口的優先順位作為前述優先順位資訊而轉送該迴圈檢測訊框。 According to the relay device of claim 10, in the case of the aforementioned relay device belonging to the transmission source of the aforementioned loop detection frame, the priority information of the aforementioned loop detection frame to be transmitted is not present. The area is inserted with meaningful information for transmission, and in the case of the aforementioned relay device that originally received the aforementioned loop detection frame, the priority order of the port of the lower priority order in the storage port or the transmission port is stored as the priority. The loop detection frame is forwarded by the information. 根據申請專利範圍第11項之中繼裝置,其中在屬於前述迴 圈檢測訊框之傳送來源的前述中繼裝置之情形下,不在要進行傳送之前述迴圈檢測訊框之前述優先順位資訊的區域插入有意義的資訊而進行傳送,而在屬於最初接收到前述迴圈檢測訊框的前述中繼裝置之情形下,儲存接收端口或傳送端口中之更低優先順位之端口的優先順位作為前述優先順位資訊而轉送該迴圈檢測訊框。 According to the relay device of claim 11 of the scope of the patent application, which belongs to the aforementioned In the case of the relay device of the transmission source of the detection frame, the meaningful information is not transmitted in the region of the priority information of the loop detection frame to be transmitted, and the transmission is initially received. In the case of the aforementioned relay device of the circle detection frame, the priority order of the port of the lower priority order in the storage receiving port or the transmission port is transferred to the loop detection frame as the priority order information. 根據申請專利範圍第12項之中繼裝置,其中在屬於前述迴圈檢測訊框之傳送來源的前述中繼裝置之情形下,不在要進行傳送之前述迴圈檢測訊框之前述優先順位資訊的區域插入有意義的資訊而進行傳送,而在屬於最初接收到前述迴圈檢測訊框的前述中繼裝置之情形下,儲存接收端口或傳送端口中之更低優先順位之端口的優先順位作為前述優先順位資訊而轉送該迴圈檢測訊框。 According to the relay device of claim 12, in the case of the aforementioned relay device belonging to the transmission source of the aforementioned loop detection frame, the priority information of the aforementioned loop detection frame to be transmitted is not present. The area is inserted with meaningful information for transmission, and in the case of the aforementioned relay device that originally received the aforementioned loop detection frame, the priority order of the port of the lower priority order in the storage port or the transmission port is stored as the priority. The loop detection frame is forwarded by the information. 根據申請專利範圍第13項之中繼裝置,其中在屬於前述迴圈檢測訊框之傳送來源的前述中繼裝置之情形下,不在要進行傳送之前述迴圈檢測訊框之前述優先順位資訊的區域插入有意義的資訊而進行傳送,而在屬於最初接收到前述迴圈檢測訊框的前述中繼裝置之情形下,儲存接收端口或傳送端口中之更低優先順位之端口的優先順位作為前述優先順位資訊而轉送該迴圈檢測訊框。 According to the relay device of claim 13, wherein in the case of the aforementioned relay device belonging to the transmission source of the aforementioned loop detection frame, the priority information of the aforementioned loop detection frame to be transmitted is not The area is inserted with meaningful information for transmission, and in the case of the aforementioned relay device that originally received the aforementioned loop detection frame, the priority order of the port of the lower priority order in the storage port or the transmission port is stored as the priority. The loop detection frame is forwarded by the information. 一種通訊系統,包括複數個申請專利範圍第1至23項中任一項之中繼裝置;且包括:主站裝置;及子站裝置,透過複數個前述中繼裝置而與前述主站裝置進行通訊。 A communication system comprising a plurality of relay devices of any one of claims 1 to 23; and comprising: a master station device; and a slave station device, performing the foregoing plurality of relay devices with the master station device communication.
TW104126045A 2015-02-23 2015-08-11 Relay devices and communication systems TWI573421B (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
TW201631928A TW201631928A (en) 2016-09-01
TWI573421B true TWI573421B (en) 2017-03-01

Family

ID=56788302

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104126045A TWI573421B (en) 2015-02-23 2015-08-11 Relay devices and communication systems

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
US11782857B2 (en) 2020-05-19 2023-10-10 Mitsubishi Electric Corporation Expansion base unit, control device, control system, and control method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030021235A1 (en) * 2001-07-24 2003-01-30 Matsushita Electric Industrial Co., Ltd. Bus optimizing method and communication node
TW200516906A (en) * 2003-11-12 2005-05-16 Solustek Corp Topology loop detection mechanism
JP2006217496A (en) * 2005-02-07 2006-08-17 Nippon Telegr & Teleph Corp <Ntt> Loop controlling bridge apparatus based on priority and system including it
TW201023563A (en) * 2008-12-08 2010-06-16 Moxa Inc Processing method of ring network redundancy checking
US20130077622A1 (en) * 2011-09-27 2013-03-28 Hitachi Cable, Ltd. Network system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030021235A1 (en) * 2001-07-24 2003-01-30 Matsushita Electric Industrial Co., Ltd. Bus optimizing method and communication node
TW200516906A (en) * 2003-11-12 2005-05-16 Solustek Corp Topology loop detection mechanism
JP2006217496A (en) * 2005-02-07 2006-08-17 Nippon Telegr & Teleph Corp <Ntt> Loop controlling bridge apparatus based on priority and system including it
TW201023563A (en) * 2008-12-08 2010-06-16 Moxa Inc Processing method of ring network redundancy checking
US20130077622A1 (en) * 2011-09-27 2013-03-28 Hitachi Cable, Ltd. Network system

Also Published As

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

Similar Documents

Publication Publication Date Title
TWI573421B (en) Relay devices and communication systems
US11134012B2 (en) Communication system, communication device, controller, and method and program for controlling forwarding path of packet flow
US9525591B2 (en) Relay system and switching device
US9794194B2 (en) Relay system and switching device
US9787496B2 (en) Communication system, communication apparatus, and protection method
EP2874354B1 (en) A network element and a controller for managing the network element
US20070147231A1 (en) Path protection method and layer-2 switch
JP2009010668A (en) Communication apparatus, communicating method, communication interface, and program
JP6295137B2 (en) Relay system and switch device
US8767736B2 (en) Communication device, communication method, and recording medium for recording communication program
JP6383232B2 (en) Relay system and switch device
JP2019134216A (en) Communication device and communication system
US20110128892A1 (en) Avoiding high-speed network partitions in favor of low-speed links
KR101544592B1 (en) Dynamic Queue Allocation Scheme Method and Apparatus for High Availability Distributed Embedded Network Transmission
US9001646B2 (en) Information transmission device, information transmission system and information transmission method
JP2017108247A (en) Communication system
JP2018117195A (en) Communication device and communication method
KR102111330B1 (en) Method for processing path failure in communication networks
JP2017041823A (en) Relay system and switch device
JP2018142824A (en) Communication device and communication method
JP2012044614A (en) Repeating device
WO2016135829A1 (en) Transfer apparatus
JP2011030059A (en) Method, device and communication system for confirming connection to other communication devices