TWI474678B - Communication management device and data communication method - Google Patents
Communication management device and data communication method Download PDFInfo
- Publication number
- TWI474678B TWI474678B TW102104749A TW102104749A TWI474678B TW I474678 B TWI474678 B TW I474678B TW 102104749 A TW102104749 A TW 102104749A TW 102104749 A TW102104749 A TW 102104749A TW I474678 B TWI474678 B TW I474678B
- Authority
- TW
- Taiwan
- Prior art keywords
- frame
- network
- communication
- presence confirmation
- slave station
- Prior art date
Links
Landscapes
- Small-Scale Networks (AREA)
Description
本發明係關於一種在以傳輸路連接成環(ring)狀之通信節點間使用符記訊框(token frame)而進行通信之通信管理裝置及資料通信方法。The present invention relates to a communication management apparatus and a data communication method for performing communication using a token frame between communication nodes connected in a ring shape by a transmission path.
已提案有一種通信系統,其係由:具有用以切換使資訊向右轉或向左轉流通於傳輸路之第1與第2埠(port)及用以控制第1與第2埠之導通(on)/關斷(off)狀態之控制手段之母台、以及具有用以切換使資訊向右轉或向左轉流通於傳輸路之第1與第2埠之子台構成通信裝置,該通信裝置係以將第1埠及鄰接之其他通信裝置之第2埠連接之方式,以傳輸路將各通信裝置間連接成環狀(迴圈(loop)狀),該系統中,母台之控制手段係將任一個通信裝置之第1或第2埠設為關斷狀態,藉此可以匯流排(bus)型之架構進行通信之技術(參照例如專利文獻1)。A communication system has been proposed which has a first and a second port for switching information to be turned right or left to the left and for controlling the conduction of the first and second turns. a base station of the (on)/off state control means and a sub-unit having first and second turns for switching the information to the right or left to the transmission path, the communication device The device connects the communication devices to a ring shape (loop shape) by connecting the first port and the second port of the other communication device adjacent to each other by a transmission path. In the system, the control of the master station is performed. The means is a technique in which the first or second 任 of any one of the communication devices is turned off, whereby communication can be performed by a bus-type architecture (see, for example, Patent Document 1).
在此通信系統中,係於開始通信之前,先檢查是否有產生斷線及子台是否有故障,而進行對於適當之匯流排型傳輸路進行再構成之處理。首先,母台之控制手段係將第 1埠設為關斷狀態、第2埠設為導通狀態,將環狀之傳輸路強制性地形成匯流排型傳輸路,且將所有子台之第1埠設為導通狀態,第2埠設為關斷狀態。在此狀態下,母台之控制手段係當發送傳送指令時,僅從與母台之第2埠連接之第1子台返回響應。因此,為使明瞭連接順序,係將此第1子台之編號儲存於子台位置辨識區域(area)。In this communication system, before starting communication, it is checked whether there is a disconnection and whether the sub-station is faulty, and the processing for reconfiguring the appropriate bus-type transmission path is performed. First of all, the control method of the mother station will be the first 1埠 is set to the off state, and the second block is set to the on state, and the looped transmission path is forcibly formed into the busbar type transmission path, and the first turn of all the substations is turned on, and the second set is set. It is in the off state. In this state, the parent station's control means returns a response only from the first sub-station connected to the second node of the parent station when transmitting the transfer command. Therefore, in order to clarify the connection order, the number of the first sub-station is stored in the sub-location identification area (area).
接著,母台之控制手段會對於返回響應之第1子台,將已設為關斷之第2埠控制為設為導通狀態,且重新發送傳輸指令。結果,由於僅從與第1子台之第2埠連接之第2子台返回響應,因此母台之控制手段會將接著第1子台之後連接有第2子台之情形儲存於子台位置辨識區域。在重複進行此種處理,而無來自子台之新的響應時,即判斷最後返回響應之子台為終端之子台。之後,母台之控制手段係將第1埠設為導通狀態、第2埠設為關斷狀態,而進行相同處理,以掌握通信系統之架構。Next, the control means of the parent station controls the second slave that has been turned off to be in the on state for the first slave that returns the response, and retransmits the transmission command. As a result, since only the second sub-station connected to the second sub-stage of the first sub-station returns a response, the control means of the parent station stores the second sub-station after the first sub-station is stored in the sub-station position. Identify the area. When such processing is repeated, and there is no new response from the sub-station, it is judged that the sub-station that finally returns the response is the sub-station of the terminal. After that, the control method of the master station is to set the first state to the on state and the second to the off state, and perform the same processing to grasp the architecture of the communication system.
(專利文獻1)日本特開2000-278295號公報(Patent Document 1) Japanese Patent Laid-Open Publication No. 2000-278295
然而,在專利文獻1所記載之技術中,於進行再架構處理時,如上所述,在1次處理中僅能辨識1台與母台連接之子台。因此,例如通信系統為由數十台或數百台以上之通信裝置所構成時,會有再架構處理所需之時間 大增之問題。因此,會有難以將此種通信系統應用在相互連接有數十台或數百台單位之通信裝置之FA(Factory Automation,工廠自動化)系統之問題。此外,關於各通信裝置,需設置向右轉傳送資訊之線路與向左轉傳送資訊之線路,而有硬體之製造成本變高之問題。However, in the technique described in Patent Document 1, when performing the re-architecture processing, as described above, only one sub-station connected to the parent station can be recognized in one processing. Therefore, for example, when the communication system is composed of tens or hundreds of communication devices, there is a time required for re-architecture processing. The problem of big increase. Therefore, there is a problem that it is difficult to apply such a communication system to an FA (Factory Automation) system in which communication devices of dozens or hundreds of units are connected to each other. Further, regarding each communication device, it is necessary to provide a route for transmitting information to the right and a route for transmitting information to the left, and the manufacturing cost of the hardware becomes high.
此外,在專利文獻1所記載之通信系統中,並未揭示在纜線(cable)將要斷線之狀態下,關於斷線(異所)及活線(正常)狀態交替短時間變化之纜線狀態不穩定狀態時之因應對策。因此,此時會有無法確實控制網路之問題。Further, in the communication system described in Patent Document 1, there is no disclosure of a cable in which a disconnection (exception) and a live (normal) state alternately change for a short period of time in a state where a cable is to be disconnected. Countermeasures when the state is unstable. Therefore, there is a problem that the network cannot be controlled properly at this time.
本發明係有鑑於上述問題而研創者,其目的為提供一種在通信裝置係以傳輸路連接成環狀,且可與線(line)型連接之情形同樣進行資料訊框之傳送接收之通信系統中,可將用以掌握網路架構之處理所需之時間減縮得較習知為短,並且將裝置構成簡單化之通信管理裝置、通信節點及資料通信方法。此外,其目的亦為提供一種即使纜線狀態為不穩定狀態亦可確實控制網路之通信管理裝置、通信節點及資料通信方法。The present invention has been made in view of the above problems, and an object of the present invention is to provide a communication system for transmitting and receiving data frames in the same manner as in a case where a communication device is connected in a ring shape by a transmission path and can be connected to a line type. The communication management device, the communication node, and the data communication method for shortening the time required for the processing of the network architecture to be shorter than the conventional one can be simplified. Further, it is also an object of the present invention to provide a communication management apparatus, a communication node, and a data communication method which can surely control a network even if the state of the cable is unstable.
為了達成上述目的,本發明之通信管理裝置,係用以管理在複數個通信節點經由傳輸路連接成環狀之網路內以符記傳遞(token passing)方式進行資料之傳送者,其特徵為包括:2個埠,經由傳輸路與鄰接之前述通信節點連接;連接管理手段,賦予將包含自身裝置之前述網路上之通信節點之任一埠切換為不可進行訊框傳送接收之無效之狀 態、及可進行訊框傳送接收之有效之狀態之指示;網路存在確認手段,以廣播(broadcast)方式傳送用以辨識前述網路內所存在之前述通信節點之網路存在確認訊框,且接收包含與前述通信節點鄰接之通信節點與該埠之關係之網路存在確認響應訊框,而進行用以產生顯示前述通信節點間之連接狀態之網路連接資訊之網路存在確認處理;符記巡迴順序決定手段,使用前述網路連接資訊而決定符記巡迴順序;設置(set up)處理手段,根據前述符記巡迴順序,對前述網路內之前述各通信節點,進行通知接著該通信節點之後賦予前述傳送權之通信節點之設置處理;及資料訊框通信處理手段,進行使用符記訊框之資料訊框之傳送接收;而前述線連接管理手段係於依據前述網路連接資訊而辨識前述網路為環架構時,係以前述網路之連接狀態不成為環狀之方式,使前述網路內之任一個通信節點之任一個埠無效化。In order to achieve the above object, a communication management apparatus according to the present invention is for managing a data transfer by a token passing method in a network in which a plurality of communication nodes are connected in a ring via a transmission path, and is characterized in that The method includes: connecting two 埠, connecting to the adjacent communication node via a transmission path; and connecting the management means, and switching to any one of the communication nodes on the network including the own device to be incapable of transmitting and receiving the frame. And an indication of a state in which the frame transmission and reception is valid; the network presence confirmation means transmits, by means of a broadcast, a network presence confirmation frame for identifying the communication node existing in the network, And receiving a network presence confirmation response frame including a relationship between the communication node adjacent to the communication node and the UI, and performing network presence confirmation processing for generating network connection information indicating a connection state between the communication nodes; Determining a tour order determining means, using the network connection information to determine a tour sequence; setting up processing means, notifying the communication nodes in the network according to the foregoing tour sequence The communication node is configured to perform the setting process of the communication node that transmits the foregoing transmission right; and the data frame communication processing means performs the transmission and reception of the data frame of the use of the message frame; and the wire connection management means is based on the network connection information according to the foregoing When the network is identified as a ring architecture, the connection state of the network is not a ring, and the network is Any one of the communication nodes in the road is invalidated.
依據本發明,係在通信裝置以傳輸路連接成環狀,且可與線型連接之情形同樣進行資料訊框之傳送接收處理之通信系統中,可將掌握網路架構成之處理所需之時間較習知更為縮短,並且具有可將裝置架構成較習知技術更為簡化之效果。According to the present invention, in a communication system in which a communication device is connected in a ring shape by a transmission path and can be connected and received in a line type, the time required for processing the network frame can be grasped. It is more shortened than conventionally, and has the effect of simplifying the structure of the device frame by conventional techniques.
11-1、11-2、51-1、51-2‧‧‧埠11-1, 11-2, 51-1, 51-2‧‧‧埠
20、20A、60、60A‧‧‧通信處理部20, 20A, 60, 60A‧‧‧Communication Processing Department
21‧‧‧計時器21‧‧‧Timer
22‧‧‧網路存在確認處理部22‧‧‧Network Presence Confirmation Processing Department
23‧‧‧網路連接資訊記憶部23‧‧‧Network Connection Information Memory
24‧‧‧線連接管理部24‧‧‧Wire Connection Management Department
25‧‧‧符記巡迴順序決定部25‧‧‧Responsible Circuit Order Determination Department
26‧‧‧符記巡迴順序資訊記憶部26‧‧‧Meeting Tour Order Information Memory Department
27‧‧‧設置處理部27‧‧‧Set Processing Department
28、64‧‧‧符記訊框處理部28, 64‧‧‧Function Frame Processing Department
29、65‧‧‧資料訊框通信處理部29, 65‧‧‧Information Frame Communication Processing Department
30‧‧‧網路監視部30‧‧‧Network Monitoring Department
61‧‧‧控制訊框響應部61‧‧‧Control Frame Response Department
62‧‧‧埠傳送接收控制部62‧‧‧埠Transmission and reception control department
63‧‧‧符記巡迴目的地資訊記憶部63‧‧‧Responsible Travel Information Memory Department
66‧‧‧鏈結狀態確認部66‧‧‧Link Status Confirmation Department
101‧‧‧傳輸路101‧‧‧Transportation
101A、101B‧‧‧纜線101A, 101B‧‧‧ cable
110‧‧‧集線器110‧‧‧ hub
200‧‧‧網路存在確認訊框200‧‧‧Network presence confirmation frame
201‧‧‧目的地MAC位址(DA)201‧‧‧ Destination MAC Address (DA)
202‧‧‧傳送來源MAC位址(SA)202‧‧‧Transmission Source MAC Address (SA)
204、224‧‧‧資料204, 224‧‧‧Information
205、225‧‧‧訊框種類資訊205, 225‧‧‧ Frame information
206‧‧‧MAC位址資訊206‧‧‧MAC address information
207‧‧‧傳送埠資訊207‧‧‧Transfer information
220、220A、604‧‧‧網路存在確認響應訊框220, 220A, 604‧‧‧ Network presence confirmation response frame
226‧‧‧SA資訊226‧‧‧SA Information
227‧‧‧埠資訊227‧‧‧埠Information
228‧‧‧鏈結狀態資訊228‧‧‧ Link Status Information
501、502、503、601、602‧‧‧網路存在確認訊框501, 502, 503, 601, 602‧‧‧ network presence confirmation frame
701、702、705‧‧‧記錄701, 702, 705‧‧ records
A、B、C、D‧‧‧從屬台A, B, C, D‧‧‧ subordinate stations
X‧‧‧管理台X‧‧‧Management Desk
第1圖係為示意性顯示實施形態1之使用符記進行通信之通信系統之一例圖。Fig. 1 is a view showing an example of a communication system for schematically communicating the use of the first embodiment.
第2-1圖係為示意性顯示管理台之功能構成之方塊圖。Figure 2-1 is a block diagram showing the functional configuration of the management station.
第2-2圖係為示意性顯示從屬台之功能構成之方塊圖。Fig. 2-2 is a block diagram schematically showing the functional configuration of the slave station.
第3-1圖係為顯示網路存在確認訊框之格式之一例圖。Figure 3-1 shows an example of the format of a network presence confirmation frame.
第3-2圖係為顯示網路存在確認響應訊框之格式之一例圖。Figure 3-2 shows an example of the format of a network presence confirmation response frame.
第4圖係為顯示實施形態1之啟動時之資料通信方法之一例之序列(sequence)圖。Fig. 4 is a sequence diagram showing an example of a data communication method at the time of activation of the first embodiment.
第5圖係為顯示網路存在確認訊框之一例圖。Figure 5 is a diagram showing an example of a network presence confirmation frame.
第6圖係為顯示網路存在確認響應訊框之一例圖。Figure 6 is a diagram showing an example of a network presence confirmation response frame.
第7圖係為顯示所產生之網路存在資訊之一例圖。Figure 7 is a diagram showing an example of the generated network presence information.
第8-1圖係為示意性顯示網路連接資訊之產生方法之順序之一例圖(其1)。Fig. 8-1 is a diagram (1) showing a sequence of a method of generating network connection information.
第8-2圖係為示意性顯示網路連接資訊之產生方法之順序之一例圖(其2)。Fig. 8-2 is a diagram (2) showing a sequence of a method of generating network connection information.
第8-3圖係為示意性顯示網路連接資訊之產生方法之順序之一例圖(其3)。Fig. 8-3 is a diagram (Fig. 3) showing an example of a method of generating a network connection information.
第8-4圖係為示意性顯示網路連接資訊之產生方法之順序之一例圖(其4)。Fig. 8-4 is a diagram (Fig. 4) showing an example of a sequence of methods for generating network connection information.
第9圖係為顯示網路存在確認訊框之一例圖。Figure 9 is a diagram showing an example of a network presence confirmation frame.
第10圖係為顯示網路存在確認響應訊框之一例圖。Figure 10 is a diagram showing an example of a network presence confirmation response frame.
第11圖係為顯示網路連接資訊之一例圖。Figure 11 is a diagram showing an example of network connection information.
第12圖係為示意性顯示實施形態2之從屬台之功能構成之方塊圖。Fig. 12 is a block diagram schematically showing the functional configuration of the slave station of the second embodiment.
第13圖係為顯示網路存在確認響應訊框之一例圖。Figure 13 is a diagram showing an example of a network presence confirmation response frame.
第14圖係為示意性顯示實施形態2之啟動時之資料通信方法之一例之序列圖。Fig. 14 is a sequence diagram schematically showing an example of a data communication method at the time of activation of the second embodiment.
第15圖係為顯示通信節點當機(down)時之鏈結再構成處理之順序之序列圖。Figure 15 is a sequence diagram showing the sequence of chain reconfiguration processing when the communication node is down.
第16圖係為顯示纜線斷線時之鏈結再構成處理之順序之一例之序列圖。Fig. 16 is a sequence diagram showing an example of the sequence of the chain reconstitution processing when the cable is broken.
第17圖係為示意性顯示實施形態4之管理台之功能構成之一例圖。Fig. 17 is a view schematically showing an example of the functional configuration of the management station of the fourth embodiment.
第18圖係為顯示通信節點當機時之鏈結再構成處理之順序之一例之序列圖。Fig. 18 is a sequence diagram showing an example of the sequence of the chain reconfiguration processing when the communication node is down.
第19圖係為顯示纜線斷線時之鏈結再構成處理之順序之一例圖。Fig. 19 is a view showing an example of the sequence of the chain reconstitution process when the cable is broken.
第20圖係為顯示從屬台復原時之資料通信方法之處理順序之一例之序列圖。Fig. 20 is a sequence diagram showing an example of the processing procedure of the data communication method when the slave station is restored.
第21圖係為顯示藉由符記方式傳送資料訊框中之狀態圖。Figure 21 is a diagram showing the state of the data frame transmitted by means of a token.
第22圖係為示意性顯示從第21圖之狀態變更纜線之連接之狀態圖。Fig. 22 is a view schematically showing a state in which the connection of the cable is changed from the state of Fig. 21.
以下參照所附圖式詳細說明本發明之通信管理裝置、通信節點及資料通信方法之較佳實施形態。另外,本發明 並不限定於此等實施形態。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the communication management apparatus, communication node, and data communication method of the present invention will be described in detail with reference to the accompanying drawings. In addition, the present invention It is not limited to these embodiments.
第1圖係為示意性顯示本實施形態1之使用符記進行通信之通信系統之一例圖。此通信系統係由複數個通信節點X、A至D以傳輸路101連接成環狀之相同區間(segment)之網路所構成。此外,通信節點X、A至D係分別具有2個埠,且各通信節點之埠間,係經由同軸纜線等可進行半雙工通信或雙絞線纜線(twisted pair cable)及光纖(fiber)等可進行全雙工通信之纜線而連接。在此,藉由乙太網路(ethernet)(註冊商標,以下亦同)連接各通信節點X、A至D間。此外,在此例中,係顯示設置作為管理相同區間之網路內之資料(訊框)之傳送接收之通信管理裝置之1台管理台X、及根據管理台X之設定而進行資料(訊框)之傳送之4台從屬台A至D之情形作為通信節點X、A至D。Fig. 1 is a view showing an example of a communication system for schematically communicating the use of the first embodiment. This communication system is constituted by a network in which a plurality of communication nodes X, A to D are connected in the same segment in which the transmission path 101 is connected in a ring shape. In addition, the communication nodes X, A to D each have two turns, and each of the communication nodes can perform half-duplex communication or twisted pair cable and optical fiber via a coaxial cable or the like ( Fiber) can be connected by a cable that can perform full-duplex communication. Here, each communication node X, A to D is connected by an ethernet (registered trademark, the same applies hereinafter). In addition, in this example, a management station X that is a communication management device that transmits and receives data (frames) in the network that manages the same section is displayed, and data is transmitted according to the setting of the management station X. The case of the four slave stations A to D transmitted by the block is taken as the communication node X, A to D.
如該第1圖所示,在管理台X之第1埠X1係連接有從屬台A之第2埠A2。此外,在從屬台A之第1埠A1係連接有從屬台B之第2埠B2,在從屬台B之第1埠B1係連接有從屬台C之第2埠C2,在從屬台C之第1埠C1係連接有從屬台D之第2埠D2。再者,在從屬台D之第1埠D1連接有管理台之第2埠X2,而成為各通信節點連接成環狀之構成。以其他觀點而言,管理台X與從屬台A至D係連接成線狀,而成為在管理台X與從屬台D之間設有冗餘之傳輸路101之構成。As shown in the first figure, the second 埠A2 of the slave station A is connected to the first 埠X1 of the management station X. Further, in the first node A1 of the slave station A, the second port B2 of the slave station B is connected, and the first port B1 of the slave station B is connected to the second port C2 of the slave station C, and the slave station C is connected. The first 埠C1 is connected to the second 埠D2 of the slave station D. Further, the second node X1 of the slave station D is connected to the second node X2 of the management station, and the communication nodes are connected in a ring shape. From another point of view, the management station X and the slave stations A to D are connected in a line shape, and a redundant transmission path 101 is provided between the management station X and the slave station D.
此外,在此,各通信節點之MAC(Media Access Control,媒體存取控制)位址(圖中係標記為MAC_AD)係設定如下。In addition, here, the MAC of each communication node (Media Access The Control (Media Access Control) address (marked as MAC_AD in the figure) is set as follows.
管理台X=100Management station X=100
從屬台A=1Subordinate station A=1
從屬台B=2Subordinate station B=2
從屬台C=3Subordinate station C=3
從屬台D=4Subordinate station D=4
在此實施形態1中,係在各通信節點X、A至D間以乙太網路連接成環(迴圈)狀之通信系統中,於啟動時由管理台X掌握各通信節點(管理台X與從屬台A至D)之連接關係,於通信系統為環狀時,使任一通信節點之一埠為無效而強制性作成線型連接構成以進行通信者。另外,在此通信系統中,係以將用以獲得稱為符記(token)之資料傳送權之訊框(符記訊框)依序傳送於通信系統內之各通信節點,且由獲得該符記之通信節點對其他通信節點進行資料之傳送之情形為例進行說明。In the first embodiment, in the communication system in which each communication node X, A to D is connected in a ring (loop) manner via Ethernet, each communication node is mastered by the management station X at the time of startup (the management station) The connection relationship between X and the slave stations A to D) is such that when one of the communication nodes is inactive, one of the communication nodes is disabled and forced to form a line type connection to perform communication. In addition, in the communication system, a frame (a message frame) for obtaining a data transmission right called a token is sequentially transmitted to each communication node in the communication system, and the The case where the communication node of the token transmits data to other communication nodes will be described as an example.
如此,通信系統在實體網路構成中雖具有環架構,惟藉由將其中至少一個通信節點之埠為無效化,資料之傳送處理即可將各通信節點作為連接成線狀者以進行處理。In this way, the communication system has a ring architecture in the physical network configuration, but by invalidating at least one of the communication nodes, the data transmission processing can connect the communication nodes as a line for processing.
第2-1圖係為示意性顯示管理台之功能構成之方塊圖。管理台係包括:2個埠11-1、11-2,用以在鄰接之通信節點(從屬台)之間連接乙太網路纜線;及通信處理部20,用以進行經由埠11-1、11-2之訊框之傳送接收處理、及辨識網路之連接構成,而確立符記訊框之傳送順序之處 理等。Figure 2-1 is a block diagram showing the functional configuration of the management station. The management station includes: two 埠 11-1, 11-2 for connecting an Ethernet cable between adjacent communication nodes (slave stations); and a communication processing unit 20 for performing via 埠 11- 1. The transmission and reception processing of the frame of 11-2, and the connection of the identification network, and the order of transmission of the identifier frame is established. And so on.
埠11-1、11-2係由第1埠11-1與第2埠11-2之2個埠所構成。此等2個埠11-1、11-2均係與鄰接之從屬台之埠連接。埠 11-1 and 11-2 are composed of two 第 of the first 埠 11-1 and the second 埠 11-2. These two 埠11-1, 11-2 are connected to the adjacent slave stations.
通信處理部20係包括:計時器(timer)21、網路存在確認處理部22、網路連接資訊記憶部23、線連接管理部24、符記巡迴順序決定部25、符記巡迴順序資訊記憶部26、設置處理部27、符記訊框處理部28、及資料訊框通信處理部29。The communication processing unit 20 includes a timer 21, a network presence confirmation processing unit 22, a network connection information storage unit 23, a line connection management unit 24, a token tour order determination unit 25, and a token tour order information memory. The unit 26, the setting processing unit 27, the character frame processing unit 28, and the data frame communication processing unit 29.
計時器21係藉由通信處理部20內之處理部而啟動,具有測量預定時間之功能。在本實施形態1中,係計算在埠11-1、11-2接收來自從屬台之網路存在確認響應訊框之後,是否已經過預定時間以上。The timer 21 is activated by the processing unit in the communication processing unit 20, and has a function of measuring a predetermined time. In the first embodiment, it is calculated whether or not a predetermined time period has elapsed after the 埠 11-1 and 11-2 receive the network presence confirmation response frame from the slave station.
網路存在確認處理部22係於自身裝置之電源導通之後,或是如在後面的實施形態所說明者,在產生預定之狀態之後,進行用以檢測構成通信系統(相同區間之網路)之通信節點之連接狀態的網路存在確認處理,而進行辨識網路內之通信節點之連接狀態之處理。具體而言,係作成網路存在確認訊框以廣播方式進行傳送,且屬於從對於來自通信系統內所存在之通信節點之網路存在確認訊框之響應而包含在網路存在確認響應訊框之資訊,產生網路所存在之通信節點間之連接狀態之網路連接資訊。另外,在本說明書中,網路連接資訊之產生,係設成每當接收網路存在確認響應訊框時即會發生。The network presence confirmation processing unit 22 performs detection of the communication system (network of the same section) after the power supply of the own apparatus is turned on, or as described in the following embodiments, after the predetermined state is generated. The network presence confirmation process of the connection state of the communication node performs processing for identifying the connection state of the communication node in the network. Specifically, the network presence confirmation frame is transmitted in a broadcast manner, and belongs to a network presence confirmation response frame in response to a network presence confirmation frame from a communication node existing in the communication system. The information, the network connection information of the connection state between the communication nodes existing in the network. In addition, in this specification, the generation of network connection information is set to occur whenever there is a confirmation response frame on the receiving network.
第3-1圖係為顯示網路存在確認訊框之格式之一例圖。網路存在確認訊框200係為乙太網路訊框,具有目的地MAC位址(以下稱DA)201、傳送來源MAC位址(以下稱SA)202、乙太網路型態(type)203、儲存上位層之資料之資料204、用以儲存在自身訊框之DA201至資料204所儲存之資訊是否存在有錯誤(error)之檢查(check)結果之FCS(Frame Check Sequence,訊框檢查序列)208。Figure 3-1 shows an example of the format of a network presence confirmation frame. The network presence confirmation frame 200 is an Ethernet frame with a destination MAC address (hereinafter referred to as DA) 201, a transmission source MAC address (hereinafter referred to as SA) 202, and an Ethernet type (type). 203. The data of the data stored in the upper layer 204, the FCS (Frame Check Sequence) for storing the check result of the error stored in the information stored in the DA201 to the data 204 of the self frame. Sequence) 208.
在本實施形態1中,係於資料204之一部分儲存訊框種類資訊205、管理台之MAC位址資訊206、及自台之網路存在確認訊框之傳送埠資訊207。In the first embodiment, the frame type information 205, the MAC address information 206 of the management station, and the transmission information 207 of the network presence confirmation frame are stored in one part of the data 204.
訊框種類資訊205係為用以辨識自身乙太網路訊框為何種訊框之資訊。在此,在訊框種類資訊205係儲存顯示屬於網路存在確認訊框200之資訊。在此例中,係將網路存在確認訊框標示為「TestData」。The frame type information 205 is information for identifying the frame of the Ethernet frame. Here, the frame type information 205 stores and displays information belonging to the network presence confirmation frame 200. In this example, the network presence confirmation frame is labeled "TestData".
在管理台之MAC位址資訊206係儲存管理台X之MAC位址。此外,在自台之網路存在確認訊框之傳送埠資訊207,係儲存顯示通信節點從哪一埠傳送網路存在確認訊框200之埠資訊。The MAC address information 206 of the management station is the MAC address of the management station X. In addition, there is a confirmation message transmission information 207 in the network of the self-service network, which stores information about which communication network node has the confirmation frame 200 from which the communication node exists.
第3-2圖係為顯示網路存在確認響應訊框之格式之一例圖。此網路存在確認響應訊框220亦為乙太網路訊框,對於資料224定義本實施形態1所使用之資訊。亦即,在資料224之一部分,儲存訊框種類資訊225、所接收之網路存在確認訊框內之SA資訊226、已傳送網路存在確認訊框之台的埠資訊227。Figure 3-2 shows an example of the format of a network presence confirmation response frame. The network presence confirmation response frame 220 is also an Ethernet frame, and the information used in the first embodiment is defined for the data 224. That is, in a portion of the data 224, the frame type information 225 is stored, the SA information 226 in the received network presence confirmation frame, and the information 227 of the station on which the network presence confirmation frame has been transmitted.
在此,在訊框種類資訊225係儲存顯示為網路存在確認響應訊框220之資訊。在本說明書中,係將網路存在確認響應訊框標記為「TestDataACK」。此外,在「所接收之網路存在確認訊框內之SA資訊」226中,係儲存通信節點(從屬台)所接收之網路存在確認訊框200之SA202區域所儲存之MAC位址。再者,在「已傳送網路存在確認訊框之台的埠資訊」227中,係儲存通信節點(從屬台)所接收之網路存在確認訊框200中之資料204區域之「自台之網路存在確認訊框之傳送埠資訊」207所儲存的埠資訊。Here, the frame type information 225 stores information displayed as the network presence confirmation response frame 220. In this specification, the network presence confirmation response frame is marked as "TestDataACK". In addition, in the "SA information in the received network presence confirmation frame" 226, the MAC address stored in the SA202 area of the network presence confirmation frame 200 received by the communication node (slave station) is stored. Furthermore, in the "Information of the station where the network has a confirmation frame" 227, the data of the data 204 area in the confirmation frame 200 received by the communication node (slave station) is stored. The network stores the information stored in the confirmation message 207.
網路存在確認處理部22係當接收網路存在確認響應訊框220時,產生與已接收資料224內之「所接收之網路存在確認訊框內之SA資訊」226與「已傳送網路存在確認訊框之台的埠資訊」227之網路存在確認響應訊框220之「SA」222建立對應關係之網路存在資訊。再使用網路存在資訊,將包含與自台連接之通信節點之埠之聯繫關係,作成作為網路連接資訊。The network presence confirmation processing unit 22 generates the "SA information in the received network presence confirmation frame" 226 and the "transmitted network" in the received data 224 when receiving the network presence confirmation response frame 220. There is a network presence information in which the "SA" 222 of the network presence confirmation response frame 220 of the confirmation message box 227 establishes a correspondence relationship. Then, using the network presence information, the connection relationship with the communication node connected to the self is established as the network connection information.
網路連接資訊記憶部23係用以記憶由網路存在確認處理部22所產生之網路連接資訊。網路連接資訊係包括與自身裝置之第1埠11-1之先前連接之通信節點列、及與第2埠11-2之先前連接之通信節點列。或者,將此等通信節點列彙整為1個者。在此等通信節點列中,亦包括網路內之通信節點之埠間的連接關係。The network connection information storage unit 23 is for storing the network connection information generated by the network presence confirmation processing unit 22. The network connection information includes a communication node column of the previous connection with the first device 11-1 of the own device, and a communication node column of the previous connection with the second port 11-2. Alternatively, the number of communication nodes is aggregated into one. In these columns of communication nodes, the connection relationship between the communication nodes in the network is also included.
線連接管理部24係為了防止訊框在實體連接成環狀之網路繞巡,而以根據網路連接資訊成為線狀連接之方 式,進行通信節點之埠之有效化/無效化。自身裝置以外之通信節點之埠的有效化/無效化之處理,係藉由將指定哪一埠有效化/無效化之埠控制訊框傳輸至該通信節點目的地來進行。另外,在此實施形態1中,於網路構成依據網路連接資訊為環狀時,線連接管理部24係使自台之第1及第2埠11-1、11-2之任一方為無效化。在此,當埠藉由線連接管理部24無效化時,無法再進行在該埠之訊框(資料鏈結(datalink)層之訊框)之傳送接收。此外,網路依據網路連接資訊非為環狀時,以成為線狀之連接之方式控制各通信節點之埠的有效化/無效化。The line connection management unit 24 is configured to prevent the frame from being circumscribed in a network that is physically connected in a ring shape, and to become a line connection according to the network connection information. For the purpose of validating/invalidating the communication nodes. The process of validating/invalidating the communication nodes other than the own device is performed by transmitting the control frame specifying which one is validated/invalidated to the destination of the communication node. Further, in the first embodiment, when the network configuration is based on the network connection information, the line connection management unit 24 sets one of the first and second ports 11-1 and 11-2 of the own station. Invalidation. Here, when the line connection management unit 24 is invalidated, the transmission and reception of the frame (the data link layer frame) of the frame cannot be performed. Further, when the network is not ring-shaped according to the network connection information, the connection between the communication nodes is controlled to be effective or invalidated in a linear connection.
符記巡迴順序決定部25係於藉由網路存在確認處理部22所進行之網路存在確認處理之後,使用網路連接資訊記憶部23所記憶之網路連接資訊,進行構成邏輯環之處理,亦即決定符記訊框之巡迴順序之處理。符記訊框之巡迴順序,係可以任何方式決定,例如可設為與在決定符記巡迴順序之時點有效化之管理台之埠連接之從屬台之順序。所決定之符記訊框之巡迴順序,係記憶於符記巡迴順序資訊記憶部26作為符記巡迴順序資訊。The token tour order determining unit 25 performs the processing of the logical loop by using the network connection information stored in the network connection information storage unit 23 after the network presence confirmation processing by the network presence confirmation processing unit 22. , that is, to determine the processing order of the record box. The order of the tour of the character frame can be determined in any manner, for example, in the order of the slave stations connected to the management station that is validated at the time of determining the tour sequence. The polling order of the determined character frame is stored in the inscription tour order information memory unit 26 as the inscription tour order information.
設置處理部27係當藉由符記巡迴順序決定部25決定符記巡迴順序資訊時,使用該符記巡迴順序資訊,對於通信系統內之各通信節點(從屬台),產生包含接著該通信節點之後賦予傳送權之通信節點之資訊之設置訊框,而傳送至各通信節點。此外,設置處理部27係判定相對於設置訊框之響應之設置響應訊框是否已從所有通信節點接收,而 於從所有通信節點接收設置響應訊框時,將該內容通知符記訊框處理部28。The setting processing unit 27 uses the characterizing the tour order information when the tracking order determining unit 25 determines the tracking order information, and generates and includes the communication node for each communication node (slave station) in the communication system. The setting frame of the information of the communication node to which the transfer right is given is then transmitted to each communication node. Further, the setting processing unit 27 determines whether the setting response frame with respect to the response of the setting frame has been received from all the communication nodes, and When the setting response frame is received from all the communication nodes, the content is notified to the message frame processing unit 28.
要確認是否已從所有通信節點接收設置訊框,例如可藉由在網路連接資訊記憶部23之網路連接資訊所對應之從屬台,豎立表示已接收設置響應訊框之旗標(flag)來進行。To confirm whether the setting frame has been received from all the communication nodes, for example, by using the slave station corresponding to the network connection information in the network connection information memory unit 23, the flag indicating that the setting response frame has been received is erected. Come on.
符記訊框處理部28係當藉由設置處理部27從通信系統內之所有通信節點接收設置響應訊框之內容之通知時,依據符記巡迴順序資訊記憶部26之符記巡迴順序資訊,產生符記訊框,且從自台設定為有效之埠傳送。When the setting processing unit 27 receives the notification of setting the content of the response frame from all the communication nodes in the communication system, the information processing unit 28 records the tour order information according to the information of the tour order information storage unit 26. A message frame is generated and transmitted from the time when the self is set to be valid.
此外,符記訊框處理部28係當接收從其他通信節點所傳送之符記訊框時,判定是否為賦予傳送權至自台者。結果,為賦予傳送權至自台者時,係進行藉由資料訊框通信處理部29之資料訊框之傳送處理,而於資料訊框之傳送處理後,根據符記巡迴順序資訊,以使接著獲得傳送權之通信節點取得符記訊框之方式傳送。此外,非為賦予傳送權至自台者時,判定為尚未獲得傳送權,而所接收之符記訊框係從非為所接收之埠之其他埠進行轉送(重送)。Further, the character frame processing unit 28 determines whether or not the transfer right is assigned to the self-station when receiving the character frame transmitted from the other communication node. As a result, in order to give the transmission right to the self-station, the data frame transmission processing by the data frame communication processing unit 29 is performed, and after the data frame transmission processing, the information is recorded in accordance with the tracking order information. Then, the communication node that obtains the transmission right transmits the message frame. In addition, when the transfer right is not granted to the self-station, it is determined that the transfer right has not been obtained, and the received message frame is transferred (re-sent) from other ports that are not received.
資料訊框通信處理部29係進行資料訊框之傳送接收處理。例如,在FA網路中,與管理台連接之控制器(controller)係以預定之周期運算設定於各從屬台A至D之資料,且將該資料予以資料訊框化而傳送至各從屬台A至D。此外,亦具有接收從從屬台A至D所傳送之資料訊框、或轉送(重送)從屬台A至D給其他從屬台之資料訊框之功 能。The data frame communication processing unit 29 performs transmission and reception processing of the data frame. For example, in the FA network, a controller connected to the management station calculates the data set in each of the slave stations A to D in a predetermined cycle, and transmits the data to each slave station. A to D. In addition, it also has the capability to receive data frames transmitted from slave stations A to D, or to transfer (re-send) slave stations A to D to other slave stations. can.
另外,在上述之第3-1至第3-2圖所示之各訊框之訊框種類資訊205、225中,為了辨識各個訊框,雖係顯示儲存「TestData」及「TestDataACK」等之情形,惟對於各個訊框,亦可設為設定專門識別該訊框之數值,且在訊框種類資訊205、225儲存該數值。In addition, in the frame type information 205, 225 of each of the frames shown in the above-mentioned 3-1 to 3-2, in order to identify each frame, "TestData" and "TestDataACK" are stored. In the case, for each frame, it is also possible to set a value for specifically identifying the frame, and store the value in the frame type information 205, 225.
第2-2圖係為示意性顯示從屬台之功能構成之方塊圖。從屬台係包括:在鄰接之通信節點(管理台或從屬台)之間用以連接乙太網路纜線之2個埠51-1、51-2、及用以進行經由埠51-1、51-2之訊框之傳送接收處理之通信處理部60。Fig. 2-2 is a block diagram schematically showing the functional configuration of the slave station. The slave station includes: two 埠51-1, 51-2 for connecting an Ethernet cable between adjacent communication nodes (management station or slave station), and for performing via 埠51-1, The communication processing unit 60 of the transmission and reception processing of the frame of 51-2.
埠51-1、51-2與管理台同樣,係由第1埠51-1與第2埠51-2之2個埠所構成。此等2個埠51-1、51-2係與其他通信節點連接。埠51-1 and 51-2 are composed of two 第51-1 and 埠51-2 同样, similar to the management station. These two 埠51-1, 51-2 are connected to other communication nodes.
通信處理部60係包括:控制訊框響應部61、埠傳送接收控制部62、符記巡迴目的地資訊記憶部63、符記訊框處理部64、資料訊框通信處理部65。The communication processing unit 60 includes a control frame response unit 61, a UI transmission and reception control unit 62, a token tour destination information storage unit 63, a character frame processing unit 64, and a data frame communication processing unit 65.
控制訊框響應部61係進行對於來自管理台之網路存在確認訊框200及埠控制訊框、設置訊框等之控制訊框之響應。例如,當接收網路存在確認訊框200時,產生第3-2圖所示之網路存在確認響應訊框220,而回傳至管理台。此外,當接收給自台之埠控制訊框時,將關於埠控制訊框內之埠的有效/無效之指示交付至埠傳送接收控制部62,當在埠傳送接收控制部62之埠之有效/無效處理結 束,則產生埠控制響應訊框而回傳至管理台。The control frame response unit 61 performs a response to the control frame of the network presence confirmation frame 200 and the control frame, the setting frame, and the like from the management station. For example, when the receiving network presence confirmation frame 200 is generated, the network presence confirmation response frame 220 shown in FIG. 3-2 is generated and transmitted back to the management station. Further, when receiving the control frame from the station, the indication of the validity/invalidity of the defect in the frame is delivered to the transmission reception control unit 62, and is effective after being transmitted to the reception control unit 62. / invalid processing knot The bundle generates a control response frame and transmits it back to the management station.
再者,當接收給自台之設置訊框時,從設置訊框內取得顯示傳送符記訊框之通信節點之符記巡迴目的地資訊,而記憶於符記巡迴目的地資訊記憶部63,並且產生設置響應訊框,而回傳至管理台。另外,在本說明書中,係將網路存在確認處理及邏輯環架構處理時在管理台與從屬台之間進行交換之訊框稱為控制訊框,且將構成邏輯環之後,藉由獲得符記訊框所傳送之訊框稱為資料訊框。In addition, when receiving the setting frame of the self-receiving frame, the information of the tour destination information of the communication node displaying the transmission symbol frame is obtained from the setting frame, and is stored in the inscription tour destination information storage unit 63. And the setup response frame is generated and passed back to the management station. In addition, in the present specification, the frame exchanged between the management station and the slave station when the network presence confirmation process and the logical ring architecture process are performed is referred to as a control frame, and after the logical ring is formed, the obtainer is obtained. The frame transmitted by the message box is called the data frame.
此外,控制訊框響應部61亦具有依據從管理台或其他從屬台所接收之控制訊框之訊框種類,再構成訊框進行傳送,或單純進行重送之功能。例如,當從管理台或其他從屬台接收網路存在確認訊框200時,進行將接收之網路存在確認訊框之第3-1圖所示之SA202、與資料204內之自台之網路存在確認訊框之傳送埠資訊207予以重寫之處理,再構成網路存在確認訊框,且從接收埠以外之埠輸出。In addition, the control frame response unit 61 also has a function of reconstructing the frame according to the type of the frame received from the management station or other slave stations, or simply performing the resend. For example, when receiving the network presence confirmation frame 200 from the management station or other slave stations, the SA 202 shown in Figure 3-1 of the received network presence confirmation frame and the self-network in the data 204 are performed. The path of the confirmation message is transmitted and the information 207 is rewritten, and then the network presence confirmation frame is constructed and outputted from the UI other than the reception frame.
再者,具有例如在接收包括來自管理台之設置訊框或來自其他從屬台之網路存在確認響應訊框220、埠控制響應訊框、設置響應訊框之控制訊框時,不對於該訊框進行任何處理,僅單純進行重送之功能。Moreover, when there is a control frame for receiving a confirmation message frame 220 including a setting frame from the management station or a network from another slave station, a control response frame, and a response frame, the message is not received. The box performs any processing and only performs the function of resending.
埠傳送接收控制部62係具有當藉由來自管理台之埠控制訊框接收埠之有效/無效之指示時,根據該指示控制埠之有效/無效之功能。藉由此埠傳送接收控制部62,當埠無效化時,在該埠無法再進行資料訊框(資料鏈結層之訊框)之傳送接收。當根據來自管理台之指示進行埠之有效/ 無效時,通知控制訊框響應部61該處理已完成。The transmission/reception control unit 62 has a function of controlling the validity/invalidity of the UI based on the indication of the validity/invalidation received by the control panel from the management station. By this transmission/reception control unit 62, when the buffer is invalidated, the transmission and reception of the data frame (frame of the data link layer) can no longer be performed. When valid according to instructions from the management station / When it is invalid, the notification control frame response section 61 has completed the processing.
符記巡迴目的地資訊記憶部63係用以記憶接著自身通信節點(從屬台)之後獲得傳送權之通信節點之MAC位址。此係如上所述,從接收自管理台之設置訊框取得。在此,僅記憶接著應傳送符記之通信節點之MAC位址。藉此,即可相較於管理台X所保持之符記巡迴順序記憶資訊將資料量抑制為較少。The token tour destination information storage unit 63 is for storing the MAC address of the communication node that obtains the transfer right after the own communication node (slave station). This is obtained from the setup frame received from the management station as described above. Here, only the MAC address of the communication node to which the token is to be transmitted is memorized. Thereby, the amount of data can be suppressed to be less than the memory tracking order memory information held by the management station X.
符記訊框處理部64係當接收從其他通信節點所傳送之符記訊框時,判定是否賦予傳送權至自台。結果,為賦予傳送權至自台者時,進行藉由資料訊框通信處理部65之資料訊框之傳送處理,而於資料訊框之傳送處理後,根據符記巡迴順序資訊以在接著獲得傳送權之通信節點取得符記訊框之方式傳送。此外,非為賦予傳送權至自台者時,判定為尚未獲得傳送權,而所接收之符記訊框係從非為所接收之埠之其他埠進行轉送(重送)。The character frame processing unit 64 determines whether or not to assign a transfer right to the own station when receiving the character frame transmitted from the other communication node. As a result, in order to give the transmission right to the self-station, the data frame transmission processing by the data frame communication processing unit 65 is performed, and after the data frame transmission processing, the information is recorded in accordance with the tracking sequence information to be obtained next. The communication node of the transmission right transmits the message frame. In addition, when the transfer right is not granted to the self-station, it is determined that the transfer right has not been obtained, and the received message frame is transferred (re-sent) from other ports that are not received.
資料訊框通信處理部65係進行資料訊框之傳送接收處理。具體而言,係進行與管理台或其他從屬台之間之資料訊框之傳送接收處理。The data frame communication processing unit 65 performs transmission and reception processing of the data frame. Specifically, the transmission and reception processing of the data frame with the management station or other slave stations is performed.
接著說明此種通信系統中之資料通信方法。第4圖係為顯示實施形態1之啟動時之資料通信方法之一例之序列圖。另外,在此雖係顯示4台從屬台A至D連接於管理台X成環狀之構成,惟此係為例示,於任意台數之從屬台連接於管理台X時,亦可以與以下所說明之處理相同之方法進行資料通信。Next, a data communication method in such a communication system will be described. Fig. 4 is a sequence diagram showing an example of a data communication method at the time of activation of the first embodiment. In addition, although the configuration in which four slave stations A to D are connected to the management station X in a ring shape is shown here, for example, when any number of slave stations are connected to the management station X, the following may be used. The description deals with the same method for data communication.
首先,管理台X與從屬台A至D以乙太網路纜線連接之後,使從屬台A至D之電源為導通。在此狀態下,從屬台A至D係成為等待接收來自管理台X的網路存在確認訊框之狀態。此外,此等從屬台A至D之第1與第2埠均設為有效。First, after the management station X and the slave stations A to D are connected by the Ethernet cable, the power sources of the slave stations A to D are turned on. In this state, the slave stations A to D are in a state of waiting to receive the network presence confirmation frame from the management station X. Further, the first and second turns of the slave stations A to D are both enabled.
之後,當管理台X之電源成為導通時,管理台X為了辨識包含管理台X之相同區間之網路上所連接之從屬台,係進行以下之處理。首先,管理台X之通信處理部20之線連接管理部24,係設為使自台之一方埠無效化,在此係使第2埠X2無效化,僅在第1埠X1才可進行訊框之傳送接收之狀態(步驟S11)。Thereafter, when the power of the management station X is turned on, the management station X performs the following processing in order to identify the slave station connected to the network including the same section of the management station X. First, the line connection management unit 24 of the communication processing unit 20 of the management station X is configured to invalidate one of the units, thereby invalidating the second 埠X2, and only performing the first 埠X1. The status of the transmission of the frame is received (step S11).
接著,管理台X之網路存在確認處理部22係產生網路存在確認訊框,且從第1埠X1以廣播方式進行傳送(步驟S12)。第5圖係為顯示網路存在確認訊框之一例圖。在從管理台X之第1埠X1所傳送之網路存在確認訊框501中,係於「DA」設定廣播位置(例如以2位元組(byte)標記則為「FFFF(全部F)」,且於「SA」設定管理台X之MAC位址「100」,而於「訊框識別資訊」儲存「TestData」,在「管理台之MAC位址資訊」儲存自台之MAC位址「100」,在「自台之網路存在確認訊框之傳送埠資訊」設定顯示第1埠之「X1」。Next, the network presence confirmation processing unit 22 of the management station X generates a network presence confirmation frame and transmits it by broadcast from the first UI X1 (step S12). Figure 5 is a diagram showing an example of a network presence confirmation frame. In the network presence confirmation frame 501 transmitted from the first node X1 of the management station X, the broadcast position is set in "DA" (for example, "FFFF (all F)" is marked with a 2-byte (byte). And set the MAC address of the management station X to "100" in "SA", and "TestData" in the "frame identification information", and store the MAC address "100" in the "MAC address information of the management station". The "X1" of the first page is displayed in the "Transmission Information of the Confirmation Frame on the Network" setting.
如上所述,由於各通信節點係連接成環狀,因此網路存在確認訊框501最初到達從屬台A。從屬台A係當在第2埠A2接收網路存在確認訊框時,控制訊框響應部61係 產生網路存在確認響應訊框,而從已接收網路存在確認訊框501之第2埠A2對管理台X進行回傳(步驟S13)。As described above, since each communication node is connected in a ring shape, the network presence confirmation frame 501 initially arrives at the slave station A. The slave station A system controls the frame response unit 61 when the second network A2 receives the network presence confirmation frame. A network presence confirmation response frame is generated, and the management station X is returned from the second node A2 of the received network presence confirmation frame 501 (step S13).
第6圖係為顯示網路存在確認響應訊框之一例圖。在從從屬台A之第2埠A2所傳送之網路存在確認響應訊框601中,係於「DA」設定管理台X之MAC位址「100」,於「SA」設定自台之MAC位址「1」,於「訊框識別資訊」儲存「TestDataACK」,在「所接收之網路存在確認訊框內之SA資訊」、與「已傳送網路存在確認訊框之台之埠資訊」中,參照所接收之第5圖之網路存在確認訊框501之「SA」與「自台之網路存在確認訊框之傳送埠資訊」分別設定「100」與「X1」。Figure 6 is a diagram showing an example of a network presence confirmation response frame. In the network presence confirmation response frame 601 transmitted from the second node A2 of the slave station A, the MAC address "100" of the management station X is set in "DA", and the MAC address of the self station is set in "SA". "1", "TestDataACK" in "Frame Identification Information", "SA information in the confirmation message box of the received network", and "Information on the station where the confirmation message has been transmitted on the network" In the network, the "SA" of the confirmation frame 501 and the "transmission information of the network presence confirmation frame" of the network of the received Figure 5 are set to "100" and "X1", respectively.
之後,從屬台A之控制訊框響應部61係產生將從第2埠A2所接收之網路存在確認訊框501重寫之網路存在確認訊框502,且從第1埠A1傳送所重寫之網路存在確認訊框502(步驟S14)。如第5圖所示,網路存在確認訊框502係將所接收之網路存在確認訊框501之「SA」重寫為自台之MAC位址「2」,且將「自台之網路存在確認訊框之傳送埠資訊」覆寫為「A1」者。Thereafter, the control frame response unit 61 of the slave station A generates a network presence confirmation frame 502 that is rewritten from the network presence confirmation frame 501 received by the second port A2, and transmits the weight from the first frame A1. The written network presence confirmation frame 502 (step S14). As shown in FIG. 5, the network presence confirmation frame 502 rewrites the received "SA" of the network presence confirmation frame 501 to the self-placed MAC address "2", and will If there is a message in the Confirmation Frame, the message is overwritten as "A1".
之後,網路存在確認訊框係依從屬台B、C、D順序重送。再者,各從屬台B、C、D係當接收網路存在確認訊框502至504時,進行與在上述從屬台A之處理相同之處理。換言之,接收了網路存在確認訊框502至504之各從屬台B、C、D之控制訊框響應部61,係產生網路存在確認訊框602至604,且從已接收網路存在確認訊框502至504之第 2埠對管理台X進行回傳(步驟S15、S17、S19)。此外,從屬台B、C、D之控制訊框響應部61,係產生將從第2埠所接收之網路存在確認訊框502至504之「SA」、與「自台之網路存在確認訊框之傳送埠資訊」予以重寫之網路存在確認訊框503至504,且從第1埠傳送所重寫之網路存在確認訊框(步驟S16、S18、S20)。After that, the network presence confirmation frame is resent in the order of the subordinate stations B, C, and D. Further, when each of the slave stations B, C, and D receives the network presence confirmation frames 502 to 504, the same processing as that of the slave station A is performed. In other words, the control frame response unit 61 of each of the slave stations B, C, and D receiving the network presence confirmation frames 502 to 504 generates the network presence confirmation frames 602 to 604 and confirms from the received network presence. Frames 502 to 504 2埠 The management station X is returned (steps S15, S17, and S19). In addition, the control frame response unit 61 of the slave stations B, C, and D generates the "SA" and the "self-established network presence confirmation" from the network presence confirmation frames 502 to 504 received from the second node. The frame transmission information "rewrites the network presence confirmation frames 503 to 504, and transmits the rewritten network presence confirmation frame from the first frame (steps S16, S18, S20).
在此,管理台X之網路存在確認處理部22係當接收網路存在確認響應訊框時啟動計時器21,而判定在預定時間內是否接收來自其他從屬台之網路存在確認響應訊框。再者,在預定時間內已接收網路存在確認響應訊框時,重設計時器21,且重新進行計時。在此,由於在從屬台D之前端未連接有其他從屬台(由於在從屬台D之前端連接有自台已無效化之第2埠),因此在接收來自從屬台D之網路存在確認響應訊框604之後不接收網路存在確認響應訊框。換言之,當接收來自從屬台D之網路存在確認響應訊框604而重設計時器21時,係成為時間暫停(步驟S21)。Here, the network presence confirmation processing unit 22 of the management station X starts the timer 21 when receiving the network presence confirmation response frame, and determines whether or not the network presence confirmation response frame from other slave stations is received within a predetermined time. . Furthermore, when the network presence confirmation response frame has been received within the predetermined time, the timer 21 is reset and the timing is re-timed. Here, since the other slave stations are not connected to the front end of the slave station D (because the second port of the slave station D is connected to the second station), the presence confirmation response is received on the slave station D. The frame 604 does not receive a network presence confirmation response frame. In other words, when the network presence confirmation response frame 604 from the slave station D is received and the timer 21 is reset, the time pause is made (step S21).
此外,網路存在確認處理部22係每當從各從屬台A至D接收網路存在確認響應訊框時,就產生網路存在資訊,且進而產生及更新網路連接資訊,而記憶於網路連接資訊記憶部23。In addition, the network presence confirmation processing unit 22 generates network presence information every time receiving the network presence confirmation response frame from each of the slave stations A to D, and further generates and updates the network connection information, and then memorizes the network. The road is connected to the information storage unit 23.
第7圖係為顯示所產生之網路存在資訊之一例圖。此網路存在資訊係包括:SA、所接收之網路存在確認訊框內之網路存在確認訊框內之SA資訊、及已傳送網路存在確認訊框之台之埠資訊之各項目。管理台X之網路存在確認 處理部22,係從所接收之網路存在確認響應訊框,由上述各項目所定義之區域(area)取得各個資訊。Figure 7 is a diagram showing an example of the generated network presence information. The information about the existence of the network includes: SA, the SA information in the confirmation message frame of the network in the received network presence confirmation box, and the information about the information on the network where the confirmation frame of the network is transmitted. Management station X network presence confirmation The processing unit 22 acquires each piece of information from the received area presence confirmation response frame from the area defined by each item.
第8-1圖至第8-4圖係示意性顯示網路連接資訊之產生方法之順序之一例圖。從從屬台A接收網路存在確認響應訊框601之時點之網路存在資訊,係僅第7圖之記錄(record)701。因此,網路存在確認處理部22係產生如第8-1圖所示之網路連接資訊。換言之,選擇自台之MAC位址「100」、及自台所具有之埠中之第1埠「X1」,而從第7圖之記錄701取得與自台之第1埠X1連接之通信節點之MAC位址「1(從屬台A)」。再者,例如將第8-1圖所示之連接關係記錄作為網路連接資訊。Figs. 8-1 to 8-4 are diagrams showing an example of a sequence of methods for generating network connection information. The network presence information at the time of receiving the network presence confirmation response frame 601 from the slave station A is only the record 701 of FIG. Therefore, the network presence confirmation processing unit 22 generates the network connection information as shown in Fig. 8-1. In other words, the MAC address "100" from the station and the first "X1" in the header of the station are selected, and the communication node connected to the first node X1 of the station is obtained from the record 701 of FIG. The MAC address is "1 (subordinate station A)". Furthermore, for example, the connection relationship shown in Fig. 8-1 is recorded as the network connection information.
此外,從從屬台B接收網路存在確認響應訊框601之時點之網路存在資訊,係為第7圖之記錄701、702。因此,網路存在確認處理部22係檢查是否有與網路連接資訊之終端之通信節點之MAC位址「1」相同之「所接收之網路存在確認訊框內之SA資訊」,而取得該記錄702之「SA」之值「2」作為與終端之通信節點連接之通信節點之MAC位址。此外,取得該記錄702之以「傳送網路存在確認訊框之台的埠資訊」之值「A1」作為與上述所取得之新的終端之通信節點連接之側之埠。再者,例如將包括第8-2圖所示之埠之位置之連接關係更新記錄作為網路連接資訊。Further, the network presence information at the time when the slave station B receives the network presence confirmation response frame 601 is the records 701 and 702 of FIG. Therefore, the network presence confirmation processing unit 22 checks whether the SA information in the received network presence confirmation frame is the same as the MAC address "1" of the communication node of the terminal to which the network connection information is obtained. The value "2" of the "SA" of the record 702 serves as the MAC address of the communication node connected to the communication node of the terminal. Further, the value "A1" of the "record information of the station transmitting the network presence confirmation frame" of the record 702 is obtained as the side connected to the communication node of the acquired new terminal. Further, for example, the connection relationship update record including the position of the 所示 shown in FIG. 8-2 is used as the network connection information.
當接收網路存在確認響應訊框時進行相同之處理,且於從從屬台D接收網路存在確認響應訊框之時點,使用第7圖之記錄701至704,產生第8-3圖所示之網路連接資訊。The same process is performed when the receiving network presence confirmation response frame is received, and when the network presence confirmation response frame is received from the slave station D, the records 701 to 704 of FIG. 7 are used to generate the picture shown in FIG. 8-3. Network connection information.
管理台X之線連接管理部24,係當藉由來自從屬台D之網路存在確認響應訊框接收後所設定之計時器21而檢測出時間暫停(步驟S21)時,進行使第1埠X1無效化,第2埠X2有效之處理(步驟S31)。再者,對於第2埠X2,亦進行與就於第1埠X1所進行之上述之步驟S12至S20相同之處理(步驟S32至S40)。The line connection management unit 24 of the management station X detects the time suspension by the timer 21 set after receiving the network presence confirmation response frame from the slave station D (step S21), and performs the first time. X1 is invalidated, and the second 埠X2 is processed (step S31). Further, for the second 埠X2, the same processing as the above-described steps S12 to S20 performed for the first 埠X1 is performed (steps S32 to S40).
換言之,管理台之網路存在確認處理部22係產生網路存在確認訊框,且從第2埠以廣播方式傳送(步驟S32)。此時,網路存在確認訊框係依從屬台D、C、B、A之順序到達。已接收網路存在確認訊框之各從屬台A、B、C、D之控制訊框響應部61係產生網路存在確認響應訊框,而從已接收網路存在確認訊框之第1埠對管理台X進行回傳(步驟S33、S35、S37、S39)。此外,從屬台A、B、C、D之控制訊框響應部61係產生將從第2埠所接收之網路存在確認訊框之SA、與自台之網路存在確認訊框之傳送埠資訊予以重寫之網路存在確認訊框,而從第1埠傳送所重寫之網路存在確認訊框(步驟S34、S36、S38、S40)。第9圖係為顯示網路存在確認訊框之一例圖,第10圖係為顯示網路存在確認響應訊框之一例圖。作成如圖所示之網路存在確認訊框與網路存在確認響應訊框而流通。In other words, the network presence confirmation processing unit 22 of the management station generates a network presence confirmation frame and transmits it by broadcast from the second page (step S32). At this time, the network presence confirmation frame arrives in the order of the subordinate stations D, C, B, and A. The control frame response unit 61 of each of the slave stations A, B, C, and D having received the network presence confirmation frame generates a network presence confirmation response frame, and the first frame from the received network presence confirmation frame The management station X is returned (steps S33, S35, S37, and S39). In addition, the control frame response unit 61 of the slave stations A, B, C, and D generates a transmission confirmation message frame SA from the second network and a network confirmation message frame. The network in which the information is rewritten has a confirmation frame, and the network rewritten by the first transmission has a confirmation frame (steps S34, S36, S38, and S40). Figure 9 is a diagram showing an example of a network presence confirmation frame, and Figure 10 is an example of a network presence confirmation response frame. The network presence confirmation frame and the network presence confirmation response frame are displayed as shown in the figure.
此外,網路存在確認處理部22係每當從各從屬台D至A接收網路存在確認響應訊框,就產生網路存在資訊,進而產生網路連接資訊,而記憶於網路連接資訊記憶部23。此時所產生之網路存在資訊,係顯示於第7圖之記錄 705至708,而從此網路存在資訊所產生之網路連接資訊,係顯示於第8-4圖。另外,網路連接資訊之作成係與上述之方法相同,故說明從略。In addition, the network presence confirmation processing unit 22 generates network presence information every time receiving the network presence confirmation response frame from each of the slave stations D to A, thereby generating network connection information, and memorizing the network connection information memory. Part 23. The network presence information generated at this time is shown in the record in Figure 7. 705 to 708, and the network connection information generated from the information stored on this network is shown in Figure 8-4. In addition, the network connection information is created in the same manner as the above method, and therefore the description is omitted.
再者,網路存在確認處理部22係使用第8-3圖與第8-4圖之結果而建構最終之網路連接資訊。第11圖係為顯示網路連接資訊之一例圖。從第8-3圖與第8-4圖之各通信節點與節點之連接關係,可獲得第11圖所示之連接關係。另外,由於使第2埠X2無效化時之網路連接資訊(第8-3圖)、與使第1埠X1無效化時之網路連接資訊(第8-4圖)之通信節點之排列順序一致,因此管理台X之網路存在確認處理部22係辨識網路為冗長之環架構。此外,作成網路連接資訊時,通信節點係亦以僅具有2個埠為前提,而附加無法從第8-3圖與第8-4圖之結果可獲得之埠。Furthermore, the network presence confirmation processing unit 22 constructs the final network connection information using the results of Figs. 8-3 and 8-4. Figure 11 is a diagram showing an example of network connection information. The connection relationship shown in Fig. 11 can be obtained from the connection relationship between the communication nodes and the nodes in Figs. 8-3 and 8-4. In addition, the arrangement of the communication nodes (Fig. 8-3) when the second 埠X2 is invalidated and the network connection information (Fig. 8-4) when the first 埠X1 is invalidated is arranged. Since the order is the same, the network presence confirmation processing unit 22 of the management station X recognizes that the network is a redundant ring architecture. In addition, when making network connection information, the communication node is premised on having only two defects, and the additional information that cannot be obtained from the results of Figs. 8-3 and 8-4 is added.
另外,在決定使一方之埠無效化時之第1網路連接資訊之後,於決定使另一方之埠無效化時之第2網路連接資訊之際,與管理台X連接之從屬台為第1網路連接資訊之最後(終端)從屬台時,符記巡迴順序決定部25亦可辨識網路係為環架構而進行處理。In addition, after determining the first network connection information when invalidating one party, and determining the second network connection information when the other party is invalidated, the slave station connected to the management station X is the first 1 When the last (terminal) slave station of the network connection information, the token tour order determining unit 25 can also recognize that the network is processed by the ring architecture.
此外,使第2埠X2無效化時之網路連接資訊、及使第1埠X1無效化時之網路連接資訊不一致時,網路存在確認處理部22係判定未成為環架構。此時,線連接管理部24係使第1與第2埠X1、X2有效化而進行通信。Further, when the network connection information when the second 埠X2 is invalidated and the network connection information when the first 埠X1 is invalidated do not match, the network presence confirmation processing unit 22 determines that the ring structure is not the ring architecture. At this time, the line connection management unit 24 performs communication by activating the first and second 埠X1 and X2.
在步驟S41檢測出時間暫停之後,符記巡迴順序決定部25係從第11圖所示之網路連接資訊,決定符記巡迴順 序(步驟S51)。在此實施形態1中,係以網路為環架構之情形為前提,因此以符記巡迴順序而言,係設為以管理台X為起點,與目前有效化之埠(第2埠X2)連接之從屬台之順序。換言之,在此例中,係設為管理台X→從屬台D→從屬台C→從屬台B→從屬台A→管理台X之順序。然而,此係為一例,亦可藉由其他方法決定符記巡迴順序。所決定之符記巡迴順序係記憶於符記巡迴順序資訊記憶部26。After detecting the timeout in step S41, the token tour order determining unit 25 determines the token tour from the network connection information shown in FIG. Order (step S51). In the first embodiment, the network is used as a ring structure. Therefore, in the order of the tour, the management station X is used as the starting point, and the current effective (埠2X2) is used. The order of the connected subordinate stations. In other words, in this example, the order of the management station X → the slave station D → the slave station C → the slave station B → the slave station A → the management station X is set. However, this is an example, and the order of the tour can be determined by other methods. The determined tour sequence is stored in the note tour order information storage unit 26.
接著,管理台X之設置處理部27係使用記憶於符記巡迴順序資訊記憶部26之符記巡迴順序而進行用以通知各通信節點之傳送權之巡迴資訊(顯示接著接收符記訊框而獲得傳送權之通信節點之後賦予傳送權之通信節點之資訊)之設置處理(步驟S52)。在此實施形態1中,管理台X係使用設置訊框通知符記巡迴順序至各從屬台A至D,而各從屬台A至D係使用設置響應訊框,而通知管理台X已接收設置訊框。Next, the setting processing unit 27 of the management station X performs the tour information for notifying the transmission right of each communication node by using the characterizing tour order stored in the characterizing the tour order information storage unit 26 (displaying the subsequent reception message frame) The setting process of the information of the communication node to which the transfer right is given after the transfer node is obtained (step S52). In the first embodiment, the management station X uses the setting frame notification to record the tour sequence to each of the slave stations A to D, and each of the slave stations A to D uses the setting response frame, and notifies the management station X that the setting has been received. Frame.
之後,管理台X之符記訊框處理部28與資料訊框通信處理部29係當正常結束設置處理時,根據符記巡迴順序資訊,開始使用符記訊框之通信(步驟S53)。在此,管理台X係在使第1埠X1無效化之狀態下直接從第2埠X2進行使用符記訊框之通信。藉此,管理台X之第1埠X1與從屬台A之第2埠A2係成為與未以纜線連接者相同狀態,而可進行與線型拓撲結構(topology)之連接相同之傳送接收處理。After that, the character frame processing unit 28 and the data frame communication processing unit 29 of the management station X start communication of the user information frame based on the tracking history information when the normal end setting processing is performed (step S53). Here, the management station X performs the communication of the user information frame directly from the second 埠X2 in a state where the first 埠X1 is invalidated. Thereby, the first 埠X1 of the management station X and the second 埠A2 of the slave station A are in the same state as those of the cableless connection, and the same transmission and reception processing as the connection of the line topology can be performed.
另外,以上之步驟S11至步驟S41之處理,係為用以 確認構成網路之通信節點與其排列狀態之網路存在確認處理。In addition, the processing of the above steps S11 to S41 is used to Confirm the network presence confirmation processing of the communication node constituting the network and its arrangement state.
依據此實施形態1,在具有環型拓撲結構之乙太網路中,由於啟動時使任一方之埠無效化,僅在一方之埠通信,因此實際上具有可使用線型拓撲結構之通信協定(protocol)進行環型拓撲結構之網路之通信之效果。According to the first embodiment, in the Ethernet network having the ring topology, since any one of the parties is invalidated at the time of startup and communicates only in one party, there is actually a communication protocol that can use the line topology ( Protocol) The effect of the communication of the network of the ring topology.
此外,管理台X係只要在網路存在確認處理時,從各個埠僅傳送一次網路存在確認訊框即可,而不需如先前技術所說明之專利文獻1之情形,要針對與網路連接之通信節點之1台1台都傳送用以確認是否有與網路連接之資訊。結果,具有相較於專利文獻1之情形可在短時間內結束網路存在確認處理之效果。In addition, the management station X is only required to transmit the network presence confirmation frame only once in the network when there is a confirmation process on the network, and does not need to be directed to the network as in the case of the patent document 1 described in the prior art. One of the connected communication nodes transmits information for confirming whether or not there is a connection with the network. As a result, there is an effect that the network presence confirmation processing can be ended in a short time as compared with the case of Patent Document 1.
再者,如專利文獻1所示,不需構成用以使資料向右轉或向左轉之線路,因此亦具有可較習知抑制構成裝置之成本之效果。Further, as shown in Patent Document 1, it is not necessary to constitute a line for turning the data to the right or to the left, and therefore it is possible to suppress the cost of the constituent device more conventionally.
在本實施形態2中,係就藉由與實施形態1不同之方法進行啟動時之系統構成辨識處理之情形進行說明。In the second embodiment, a case where the system configuration identification processing at the time of startup is performed by a method different from that of the first embodiment will be described.
第12圖係為示意性顯示實施形態2之從屬台之功能構成之方塊圖。此從屬台在實施形態1之構成中,於通信處理部60A復包括鏈結狀態確認部66。此鏈結狀態確認部66係具有依每一埠使用鏈結狀態信號確認與埠連接之傳輸路狀態是否正常,亦即鏈結狀態在與鄰接之通信節點之間是否正常之功能。另外,此鏈結狀態之確認,係於使用 例如10Mbps之乙太網路纜線時,可藉由在實體層進行交換之鏈結脈衝(link pulse)來進行。在鏈結狀態中,係有可在與鄰接之通信節點之間進行鏈結狀態信號之交換,而可進行屬於通信之狀態之正常狀態、及無法在與鄰接之通信節點之間進行鏈結狀態信號之交換,而不可進行通信之狀態之異常狀態的2個狀態。Fig. 12 is a block diagram schematically showing the functional configuration of the slave station of the second embodiment. In the configuration of the first embodiment, the slave station includes the link state confirming unit 66 in the communication processing unit 60A. The link state confirming unit 66 has a function of confirming whether or not the state of the transmission path connected to the UI is normal, that is, whether the link state is normal with the adjacent communication node. In addition, the confirmation of this link status is used For example, an Ethernet cable of 10 Mbps can be performed by a link pulse that is exchanged at the physical layer. In the link state, the link state signal can be exchanged with the adjacent communication node, and the normal state of the state belonging to the communication can be performed, and the link state with the adjacent communication node cannot be performed. The two states of the abnormal state of the state in which the signal is exchanged.
此外,控制訊框響應部61係具有當接收網路存在確認訊框時,將在所接收之時點之鏈結狀態確認部66所確認之各埠51-1、51-2之鏈結狀態設定於網路存在確認響應訊框,而傳送至管理台之功能。第13圖係為顯示網路存在確認響應訊框之一例圖。如此圖所示,在網路存在確認響應訊框220A之資料224之一部分,係設置鏈結狀態資訊228,且於此鏈結狀態資訊228儲存由鏈結狀態確認部66所確認之鏈結狀態。另外,對於與實施形態1相同之構成要素賦予相同符號且省略其說明。此外,實施形態2所使用之管理台係與實施形態1所使用者相同,故省略其說明。Further, the control frame response unit 61 has a link state setting of each of the 埠51-1 and 51-2 confirmed by the link state confirming unit 66 at the time of reception when the receiving network presence confirmation frame is received. A function of confirming the response frame on the network and transmitting it to the management station. Figure 13 is a diagram showing an example of a network presence confirmation response frame. As shown in the figure, in one of the data 224 of the network presence confirmation response frame 220A, the link status information 228 is set, and the link status information 228 stores the link status confirmed by the link status confirmation unit 66. . The same components as those in the first embodiment are denoted by the same reference numerals, and their description will be omitted. Further, since the management station used in the second embodiment is the same as that of the user in the first embodiment, the description thereof will be omitted.
接著說明此種通信系統中之資料通信方法。第14圖係為示意性顯示實施形態2之啟動時之資料通信方法之一例之序列圖。另外,在此雖係顯示4台從屬台A至D連接成環狀於管理台X之構成,惟此係為例示,任意台數從屬台連接於管理台X之情形,亦可以與以下所說明之處理相同之方法來進行資料通信。Next, a data communication method in such a communication system will be described. Fig. 14 is a sequence diagram schematically showing an example of a data communication method at the time of activation of the second embodiment. In addition, although the configuration in which four slave stations A to D are connected in a ring shape to the management station X is shown here, the case where any number of slave stations is connected to the management station X is also exemplified as follows. The same method is used for data communication.
管理台X與從屬台A至D以乙太網路纜線連接之後,從屬台A至D之電源導通,進而在之後,當管理台X之電 源導通時,管理台X為了辨識連接在包含管理台X之相同區間之網路上之從屬台,係進行以下之處理。首先,管理台X之通信處理部之線連接管理部24,係設為使自台之一方之埠無效化,在此係設為使第2埠X2無效化,僅在第1埠X1可進行訊框之傳送接收之狀態(步驟S111)。After the management station X and the slave stations A to D are connected by the Ethernet cable, the power sources of the slave stations A to D are turned on, and then, when the management station X is powered When the source is turned on, the management station X performs the following processing in order to recognize the slave stations connected to the network including the same section of the management station X. First, the line connection management unit 24 of the communication processing unit of the management station X is configured to invalidate one of the units, and here the system is set to invalidate the second 埠X2, and only the first 埠X1 can be performed. The status of the transmission and reception of the frame (step S111).
接著,管理台X之網路存在確認處理部22係產生網路存在確認訊框,且從第1埠X1以廣播方式進行傳送(步驟S112)。如上所述,在此,由於各通信節點係連接成環狀,因此網路存在確認訊框最初係到達從屬台A。Next, the network presence confirmation processing unit 22 of the management station X generates a network presence confirmation frame and transmits it by broadcast from the first UI X1 (step S112). As described above, since each communication node is connected in a ring shape, the network presence confirmation frame first arrives at the slave station A.
從屬台A之控制訊框響應部61係當在第2埠A2接收網路存在確認訊框時,產生網路存在確認響應訊框,且從已接收網路存在確認訊框之第2埠A2對管理台X進行回傳(步驟S113)。另外,此時,在所傳送之網路存在確認響應訊框220A之鏈結狀態資訊228中,係設定有直到鏈結狀態確認部66傳送網路存在確認響應訊框為止之間所取得之第1與第2埠A1、A2之鏈結狀態。The control frame response unit 61 of the slave station A generates a network presence confirmation response frame when the second network A2 receives the network presence confirmation frame, and the second frame A2 from the received network presence confirmation frame. The management station X is returned (step S113). Further, at this time, in the link state information 228 of the transmitted network presence confirmation response frame 220A, the number obtained between the link state confirmation unit 66 and the network presence confirmation response frame is set. 1 and the link state of the second 埠A1, A2.
此外,從屬台A之控制訊框響應部61,係將所接收之網路存在確認訊框之內部進行一部分重寫,且從第1埠A1傳送所重寫之網路存在確認訊框(步驟S114)。In addition, the control frame response unit 61 of the slave station A partially rewrites the inside of the received network presence confirmation frame, and transmits the rewritten network presence confirmation frame from the first port A1 (step S114).
之後,網路存在確認訊框係依從屬台B、C、D順序到達,各從屬台B、C、D係當接收網路存在確認訊框時,進行與在上述之從屬台A之處理相同之處理。換言之,已接收網路存在確認訊框之各從屬台B、C、D之控制訊框響應部61,係產生網路存在確認響應訊框220A,且從已接收 網路存在確認訊框之第2埠對管理台X進行回傳(步驟S115、S117、S119)。此外,從屬台B、C、D之控制訊框響應部61係從第1埠傳送將從第2埠所接收之網路存在確認訊框之內部一部分予以重寫之網路存在確認訊框(步驟S116、S118、S120)。After that, the network presence confirmation frame arrives in the order of the subordinate stations B, C, and D, and each of the subordinate stations B, C, and D performs the same processing as the above-mentioned subordinate station A when the receiving network presence confirmation frame is received. Processing. In other words, the control frame response unit 61 of each of the slave stations B, C, and D having received the network presence confirmation frame generates a network presence confirmation response frame 220A and receives from the received The second layer of the network presence confirmation frame returns to the management station X (steps S115, S117, and S119). Further, the control frame response unit 61 of the slave stations B, C, and D transmits a network presence confirmation frame from the first frame to rewrite the internal portion of the network presence confirmation frame received from the second frame ( Steps S116, S118, and S120).
在此,管理台X之網路存在確認處理部22係當接收網路存在確認響應訊框220A時啟動計時器21,而判定在預定時間內是否接收網路存在確認響應訊框220A。再者,在預定時間內已接收網路存在確認響應訊框220A時,係重設計時器21進行重新計時。在此,由於在從屬台D之前端未連接有其他從屬台(由於從屬台D之前端之管理台X之第2埠X2係設為無效),因此當接收來自從屬台D之網路存在確認響應訊框220A而重設計時器時,係成為時間暫停(步驟S121)。Here, the network presence confirmation processing unit 22 of the management station X starts the timer 21 when receiving the network presence confirmation response frame 220A, and determines whether or not the network presence confirmation response frame 220A is received within a predetermined time. Furthermore, when the network presence confirmation response frame 220A has been received within the predetermined time, the timer 21 is reset to perform the re-clocking. Here, since the other slave stations are not connected to the front end of the slave station D (because the second node X2 of the management station X at the front end of the slave station D is disabled), the network presence confirmation from the slave station D is received. When the timer is reset in response to the frame 220A, the time is paused (step S121).
此外,網路存在確認處理部22係每當從各從屬台A至D接收網路存在確認響應訊框220A時,如在實施形態1所說明,就產生網路連接資訊,且記憶於網路連接資訊記憶部23。此時,來自所有從屬台A至D之鏈結狀態為正常時,管理台X係掌握網路構成為冗長環架構(步驟S122)。Further, when the network presence confirmation processing unit 22 receives the network presence confirmation response frame 220A from each of the slave stations A to D, as described in the first embodiment, the network connection information is generated and stored in the network. The information storage unit 23 is connected. At this time, when the link state from all the slave stations A to D is normal, the management station X grasps that the network is configured as a redundant ring structure (step S122).
之後,與實施形態1相同,管理台X係於決定符記巡迴順序(步驟S123),進行設置處理之後(步驟S124),開始使用符記訊框之資料訊框之通信處理(步驟S125)。Thereafter, in the same manner as in the first embodiment, the management station X determines the order of the tour (step S123), and after performing the setting process (step S124), the communication processing of the data frame of the character frame is started (step S125).
依據此實施形態2,由於設為從屬台在網路存在確認響應訊框220A儲存2個埠51-1、51-2之鏈結狀態,因此 可僅藉由從管理台X之一方之埠11-1、11-2所送出之網路存在確認訊框之響應而判定是否為環架構。換言之,用以辨識網路狀態之網路存在確認訊框之發行次數成為1次,而具有可較實施形態1之情形縮短網路存在確認處理所需之時間之效果。According to the second embodiment, since the slave station stores the link state of the two ports 51-1 and 51-2 in the network presence confirmation response frame 220A, It can be determined whether or not the ring architecture is only by the response of the confirmation frame of the network sent from the ports 11-1, 11-2 of one of the management stations X. In other words, the number of times the network has a confirmation frame issued to identify the state of the network is one, and the effect of shortening the time required for the network presence confirmation processing can be achieved in the case of the first embodiment.
在此實施形態3中,係就使用符記之通信中通信節點當機之情形或產生纜線斷線時之環再構成處理(網路存在確認處理)進行說明。In the third embodiment, the ring reconfiguration processing (network presence confirmation processing) when the communication node is down in the communication using the token or when the cable is broken is described.
在此實施形態3所使用之管理台,係與實施形態1所使用者相同,而從屬台係為與實施形態2所使用者相同。然而,各從屬台之資料訊框通信處理部65,係具有將直到傳送資料訊框為止之間由鏈結狀態確認部66所確認之2個埠51-1、51-2之鏈結狀態埋入於資料訊框並輸出之功能。另外,此時之資料訊框,係如在實施形態2之第13圖之網路存在確認響應訊框之格式之處所說明,在資料之一部分,設有用以儲存由鏈結狀態確認部66所確認之鏈結狀態之鏈結狀態資訊。The management station used in the third embodiment is the same as the user in the first embodiment, and the slave station is the same as the user in the second embodiment. However, the data frame communication processing unit 65 of each of the slave stations has the link state of the two 埠51-1 and 51-2 confirmed by the link state confirming unit 66 until the data frame is transmitted. The function of entering the data frame and outputting it. In addition, the data frame at this time is as described in the format of the network presence confirmation response frame in the 13th embodiment of Embodiment 2, and is provided in a part of the data for storage by the link status confirmation unit 66. Confirm the link status information of the link status.
首先,針對通信節點當機時之環再構成處理(網路存在確認處理)進行說明。第15圖係為顯示通信節點當機時之環再構成處理之順序之一例之序列圖。另外,在此,雖係顯示4台從屬台A至D連接成環狀於管理台X之構成,惟此係為例示,任意台數之從屬台連接於管理台X時,亦可藉由與以下所說明之處理相同之方法進行資料通信。First, the ring reconfiguration processing (network presence confirmation processing) when the communication node is down will be described. Fig. 15 is a sequence diagram showing an example of the sequence of loop reconstruction processing when the communication node is down. In addition, although the configuration in which four slave stations A to D are connected in a ring shape to the management station X is shown here, for example, when any number of slave stations are connected to the management station X, The same method as described below is used for data communication.
首先,在此網路中,管理台X與從屬台A至D雖係藉由纜線而連接成環型,惟設為藉由使管理台X之第1埠X1無效化(步驟S211),進行使用以下(1)之順序之符記訊框之資料訊框之傳送接收,作為管理台X-從屬台D-從屬台C-從屬台B-從屬台A之線型拓撲結構。First, in this network, the management station X and the slave stations A to D are connected to each other by a cable, but by invalidating the first 埠X1 of the management station X (step S211), The transmission and reception of the data frame using the symbol frame of the following sequence (1) is performed as the line topology of the management station X-subordinate station D-subordinate station C-subordinate station B-subordinate station A.
管理台X-從屬台D-從屬台C-從屬台B-從屬台A-管理台X………(1)Management station X-subordinate station D-subordinate station C-subordinate station B-subordinate station A-management station X...(1)
假設在從屬台D剛要獲得符記訊框之前,從屬台C由於某種原因而當機(電源關斷)(步驟S212)。此時,從屬台D之鏈結狀態確認部66由於不能從從屬台C獲得在實體層定期性地與鄰接之通信節點之間進行交換之鏈結脈衝等之鏈結確認信號,因此辨識從屬台C鏈結斷線(亦即從屬台C之電源關斷、或產生與從屬台C之間之纜線斷線)(步驟S213)。另外,從屬台B亦同樣辨識從屬台C係為鏈結斷線。It is assumed that the slave station C is down for some reason (power is turned off) just before the slave station D is about to obtain the character frame (step S212). At this time, the link state confirming unit 66 of the slave station D cannot obtain the link confirmation signal of the link pulse or the like that is periodically exchanged with the adjacent communication node from the slave station C, and thus recognizes the slave station. The C-link disconnection (i.e., the power supply of the slave station C is turned off, or the cable disconnection with the slave station C is generated) (step S213). In addition, the slave station B also recognizes that the slave station C is a link disconnection.
之後,當從屬台D依據預定之符記巡迴順序而獲得符記訊框時,從屬台D之資料訊框通信處理部65係將顯示從屬台C為鏈結斷線之資訊儲存於資料訊框中之鏈結狀態資訊,而傳送至管理台X(步驟S214)。具體而言,係在資料訊框之鏈結狀態資訊,儲存第1埠D1係為正常而第2埠D2為異常,並傳送至管理台X。Then, when the slave station D obtains the character frame according to the predetermined order of the tour, the data frame communication processing unit 65 of the slave station D stores the information indicating that the slave station C is disconnected from the link in the data frame. The link status information is transmitted to the management station X (step S214). Specifically, in the link state information of the data frame, the first D1 is stored as normal and the second D2 is abnormal, and transmitted to the management station X.
接著,管理台X雖係接收來自從屬台D之資料訊框,且進行通常之接收處理,惟此時由於鏈結狀態資訊包含有顯示從屬台C為鏈結斷線之資訊,因此辨識從屬台C已脫離(步驟S215)。Then, the management station X receives the data frame from the slave station D and performs normal reception processing. However, since the link status information includes information indicating that the slave station C is disconnected from the link, the slave station is identified. C has detached (step S215).
再者,管理台X之線連接管理部24係將通知從屬台C之鏈結斷線的從屬台D之從屬台C側之第2埠D2設為無效之埠控制訊框,對從屬台D進行傳送(步驟S221)。從屬台D之埠傳送接收控制部62係當接收埠控制訊框時,依據其內容,進行使第2埠D2無效化之處理(步驟S222)。再者,從屬台D之控制訊框響應部61係將顯示第2埠D2之無效化結束之埠控制響應訊框,對管理台X進行傳送(步驟S223)。Further, the line connection management unit 24 of the management station X sets the second frame D2 on the slave station C side of the slave station D that notifies the link disconnection of the slave station C to the invalid control frame, and the slave station D The transfer is performed (step S221). The transmission/reception control unit 62 of the slave station D performs a process of invalidating the second UI D2 based on the content when receiving the control frame (step S222). Further, the control frame response unit 61 of the slave station D displays the control response frame after the invalidation of the second frame D2 is completed, and transmits it to the management station X (step S223).
管理台X之線連接管理部24係當從從屬台D接收埠控制響應訊框時,使第1埠X1有效(步驟S224)。此係由於當使第1埠X1繼續無效時,管理台X僅可與從屬台D通信之故。藉此,管理台X係第1與第2埠X1、X2均為有效,且成為除從屬台D之外,與從屬台A、B均可通信之狀態。The line connection management unit 24 of the management station X activates the first 埠X1 when receiving the 埠 control response frame from the slave station D (step S224). This is because the management station X can only communicate with the slave station D when the first 埠X1 continues to be invalidated. Thereby, the management station X is in the first and second 埠X1 and X2, and is in a state in which it can communicate with the slave stations A and B except for the slave station D.
之後,管理台X之網路存在確認處理部22係從第1與第2埠X1、X2以廣播方式傳送網路存在確認訊框(步驟S231、S233)。Thereafter, the network presence confirmation processing unit 22 of the management station X broadcasts the network presence confirmation frame from the first and second UIs X1 and X2 (steps S231 and S233).
從第2埠X2所傳送之網路存在確認訊框,係在從屬台D接收,且從從屬台D回傳網路存在確認響應訊框(步驟S232)。在此網路存在確認響應訊框中,係包含有在接收由鏈結狀態確認部66所確認之網路存在確認訊框之時點之各埠之鏈結狀態。此外,在從屬台D中,由於第2埠D2係為無效化,因此所接收之網路存在確認訊框,不會傳送至與從屬台D之第2埠D2之前端連接之從屬台C。The network presence confirmation frame transmitted from the second port X2 is received by the slave station D, and the network presence confirmation response frame is returned from the slave station D (step S232). In the network presence confirmation response frame, the link state of each of the points at the time of receiving the network presence confirmation frame confirmed by the link status confirming unit 66 is included. Further, in the slave station D, since the second port D2 is invalidated, the received network has a confirmation frame and is not transmitted to the slave station C connected to the front end of the second port D2 of the slave station D.
另外,此時,亦可考慮從屬台C一瞬間復原之情形。此時,在從屬台D之第2埠D2與從屬台C之第1埠C1之間之傳輸路中,雖係於實體層進行鏈結確認信號之交換,惟由於從屬台D之第2埠D2在資料鏈結層係被無效化,因此網路存在確認訊框不會重送至從屬台C。因此,可防止不穩定之動作之從屬台C於環再構成處理時進入網路內。此外,未使從屬台D之第2埠D2無效化時,係成為管理台X與從屬台A至D之所有埠為有效之環架構,且訊框永遠持續繞行於網路內,因此亦可防止此種事態之產生。In addition, at this time, it is also possible to consider the case where the slave station C is instantaneously restored. At this time, in the transmission path between the second 埠D2 of the slave station D and the first 埠C1 of the slave station C, the link confirmation signal is exchanged in the physical layer, but the second 从 of the slave station D D2 is invalidated in the data link layer, so the network presence confirmation frame will not be resent to the slave station C. Therefore, the slave station C that can prevent the unstable operation enters the network during the loop reconstruction processing. In addition, when the second parameter D2 of the slave station D is not invalidated, it becomes a ring structure in which all the management stations X and the slave stations A to D are valid, and the frame always continues to bypass the network, and thus This kind of state of affairs can be prevented.
另一方面,從管理台X之第1埠X1所傳送之網路存在確認訊框,係在從屬台A接收,且從從屬台A將網路存在確認響應訊框回傳至管理台X(步驟S234)。此外,從屬台A係將網路存在確認訊框之內容一部分重寫,而從第2埠A2重送至第1埠A1(步驟S235)。同樣地,在從屬台B,當接收網路存在確認訊框時,亦將網路存在確認響應訊框傳送至管理台X(步驟S236),且將網路存在確認訊框之內容一部分重寫而從第2埠B2重送至第1埠B1(步驟S237)。然而,由於從屬台C係當機,因此來自從屬台C之網路存在確認響應訊框不會送出。此外,在從屬台A、B所傳送之網路存在確認響應訊框中,係包含有直到網路存在確認響應訊框送出時為止由鏈結狀態確認部66所確認之各埠之鏈結狀態。On the other hand, the network presence confirmation frame transmitted from the first node X1 of the management station X is received by the slave station A, and the network presence confirmation response frame is transmitted back from the slave station A to the management station X ( Step S234). Further, the slave station A rewrites a part of the network presence confirmation frame and retransmits it from the second A2 to the first node A1 (step S235). Similarly, in the slave station B, when the receiving network presence confirmation frame, the network presence confirmation response frame is also transmitted to the management station X (step S236), and the content of the network presence confirmation frame is partially rewritten. On the other hand, it is sent from the second 埠B2 to the first 埠B1 (step S237). However, since the slave station C is down, the network presence confirmation response frame from the slave station C is not sent. In addition, the network presence confirmation response frame transmitted by the slave stations A and B includes the link status of each link confirmed by the link state confirming unit 66 until the network presence confirmation response frame is sent. .
從從屬台B接收網路存在確認響應訊框之管理台X, 係以計時器21開始計時。此例之情形,如上所述,由於從當機之從屬台C不會送出網路存在確認響應訊框,因此接收來自從屬台B之網路存在確認響應訊框之後經過預定之時間,計時器21即時間暫停(步驟S238)。結果,管理台X之網路存在確認處理部22係辨識從屬台C(與從屬台B鄰接之從屬台)從網路脫離(步驟S239)。Receiving the management station X of the network presence confirmation response frame from the slave station B, The timer 21 starts counting. In this case, as described above, since the slave station C from the downtime does not send the network presence confirmation response frame, the timer expires after receiving the network presence confirmation response frame from the slave station B. 21 is time suspension (step S238). As a result, the network presence confirmation processing unit 22 of the management station X recognizes that the slave station C (the slave station adjacent to the slave station B) is detached from the network (step S239).
另外,管理台X係當從各從屬台A、B、D接收網路存在確認響應訊框時,產生接收之時點之通信節點間之連接狀態之網路連接資訊。Further, when the management station X receives the network presence confirmation response frame from each of the slave stations A, B, and D, it generates network connection information of the connection state between the communication nodes at the time of reception.
之後,管理台X之線連接管理部24係將使最後接收之網路存在確認響應訊框之傳送來源之從屬台B之第1埠B1無效之埠控制訊框,對從屬台B進行傳送(步驟S241)。從屬台B之埠傳送接收控制部62,係當接收埠控制訊框時,依據其內容,進行使第1埠B1無效化之處理(步驟S242)。再者,從屬台B之控制訊框響應部,係將顯示第1埠B1之無效化結束之埠控制響應訊框,對管理台X進行傳送(步驟S243)。Thereafter, the line connection management unit 24 of the management station X transmits the control frame to the slave station B that invalidates the first frame B1 of the slave station B of the transmission source of the last received network existence confirmation frame. Step S241). The transmission/reception control unit 62 of the slave station B performs a process of invalidating the first 埠B1 based on the content when receiving the control frame (step S242). Further, the control frame response unit of the slave station B displays the control response frame after the invalidation of the first frame B1, and transmits it to the management station X (step S243).
之後,如實施形態1所說明,管理台X係決定符記巡迴順序(步驟S251),且進行對各通信節點設定符記訊框之傳送順序之設置處理(步驟S252)。之後,開始在網路內使用符記訊框之資料訊框之傳送處理(步驟S253)。此時,從從屬台B之第1埠B1至從屬台D之第2埠D2,係成為與未連接相同之動作,在除掉從屬台C之管理台X從屬台A、B、D進行資料訊框之通信。Thereafter, as described in the first embodiment, the management station X determines the registration order (step S251), and performs setting processing for the transmission order of each communication node setting flag frame (step S252). Thereafter, the transmission processing of the data frame of the character frame is started in the network (step S253). At this time, from the first 埠B1 of the slave station B to the second 埠D2 of the slave station D, the same operation as the unconnected operation is performed, and the slave station A, B, and D of the slave station C are removed. Frame communication.
以上雖已說明節點當機時之環再構成處理,惟纜線切斷時基本上亦與上述環再構成處理相同。第16圖係為顯示纜線斷線時之環再構成處理之順序之一例之序列圖。另外,在此,雖係顯示4台從屬台A至D連接成環狀於管理台X之構成,惟此係為例示,任意台數之從屬台連接於管理台X時,亦可與以下所說明之處理相同之方法進行資料通信。Although the loop reconfiguration process when the node is down is described above, the cable is basically cut off in the same manner as the loop reconstitution process described above. Fig. 16 is a sequence diagram showing an example of the sequence of loop reconstruction processing when the cable is broken. In addition, although the configuration in which four slave stations A to D are connected in a ring shape to the management table X is shown here, for example, when any number of slave stations are connected to the management station X, the following may be used. The description deals with the same method for data communication.
首先,在此網路中,管理台X與從屬台A至D雖係藉由纜線連接成環型,惟藉由使管理台X之第1埠X1無效化(步驟S311),使用符記訊框作為管理台X-從屬台D-從屬台C-從屬台B-從屬台A之線型拓撲結構,而以上述(1)所示之順序進行資料訊框之傳送接收。First, in this network, the management station X and the slave stations A to D are connected by a cable to form a ring type, but by invalidating the first 埠X1 of the management station X (step S311), the use of the token The frame is used as the line topology of the management station X-subordinate station D-subordinate station C-subordinate station B-subordinate station A, and the data frame is transmitted and received in the order shown in the above (1).
假設在從屬台D剛要獲得符記訊框之前,從屬台D與從屬台C之間之纜線係因為某種原因而斷線(步驟S312)。此時,由於從屬台D之鏈結狀態確認部66係無法從從屬台C獲得在實體層定期性地與鄰接之通信節點之間交換之鏈結脈衝等之鏈結確認信號,因此辨識從屬台C為鏈結斷線(亦即,從屬台C當機、或纜線產生斷線)(步驟S313)。另外,同樣地從屬台C之鏈結狀態確認部66亦辨識從屬台D為鏈結斷線(亦即從屬台D當機、或纜線產生斷線)。It is assumed that the cable between the slave station D and the slave station C is disconnected for some reason before the slave station D is just about to obtain the character frame (step S312). At this time, since the link state confirming unit 66 of the slave station D cannot obtain the link confirmation signal such as the link pulse that is periodically exchanged with the adjacent communication node in the physical layer from the slave station C, the slave station is recognized. C is a link disconnection (that is, the slave station C is down, or the cable is broken) (step S313). Further, similarly, the link state confirming unit 66 of the slave station C also recognizes that the slave station D is a link disconnection (that is, the slave station D is down, or the cable is broken).
之後,當從屬台D依據預定之符記巡迴順序(1)獲得符記訊框時,從屬台D之資料訊框通信處理部65,係將顯示從屬台C已脫離之資訊儲存於資料訊框中之鏈結狀態資訊,而傳送至管理台X(步驟S315)。具體而言,係將第1 埠D1為正常而第2埠D2為異常之資料儲存於資料訊框之鏈結狀態資訊,而傳送至管理台X。Then, when the slave station D obtains the character frame according to the predetermined order of the tour (1), the data frame communication processing unit 65 of the slave station D stores the information indicating that the slave station C has been detached in the data frame. The link state information is transmitted to the management station X (step S315). Specifically, the department will be the first 埠D1 is normal and the data of the second 埠D2 is abnormal is stored in the link state information of the data frame and transmitted to the management station X.
接著管理台X雖係接收來自從屬台D之資料訊框,且進行通常之接收處理,惟此時由於在鏈結狀態資訊包含有顯示從屬台C已連結斷線之資訊,因此線連接管理部24係辨識從屬台C已脫離(步驟S316),而移至環再構成處理。Then, the management station X receives the data frame from the slave station D and performs normal reception processing. However, since the link status information includes information indicating that the slave station C has been disconnected, the line connection management unit The 24th system recognizes that the slave station C has detached (step S316), and moves to the loop reconstruction processing.
因此,首先,管理台X之線連接管理部24係將通知從屬台C脫離之從屬台D之使從屬台C側之第2埠D2設為無效之埠控制訊框,對從屬台D進行傳送(步驟S321)。從屬台D之埠傳送接收控制部62係當接收埠控制訊框時,依據其內容,進行使第2埠D2無效化之處理(步驟S322)。再者,從屬台D之控制訊框響應部61係將顯示第2埠D2之無效化完成之埠控制響應訊框,對管理台X進行傳送(步驟S323)。Therefore, first, the line connection management unit 24 of the management station X transmits the slave frame D to the slave station D that has notified the slave station C that the second node D2 on the slave station C side is invalid. (Step S321). When the slave station D receives and receives the control frame, the process of invalidating the second file D2 is performed based on the content (step S322). Further, the control frame response unit 61 of the slave station D displays the control response frame after the invalidation of the second frame D2 is completed, and transmits it to the management station X (step S323).
此外,管理台X之線連接管理部24係當從從屬台D接收埠控制響應訊框時,使自台之第1埠X1有效(步驟S324)。藉此,管理台X係第1與第2埠X1、X2均成為有效。之後,管理台X之網路存在確認處理部22係從第1與第2埠X1、X2將網路存在確認訊框以廣播方式進行傳送(步驟S331、S333)。Further, when the line connection management unit 24 of the management station X receives the 埠 control response frame from the slave station D, it activates the first 埠X1 of the own station (step S324). Thereby, the first and second 埠X1 and X2 of the management station X are effective. Thereafter, the network presence confirmation processing unit 22 of the management station X transmits the network presence confirmation frame from the first and second UIs X1 and X2 in a broadcast manner (steps S331 and S333).
管理台X之第2埠X2所傳送之網路存在確認訊框,係在從屬台D接收,且從從屬台D回傳網路存在確認響應訊框(步驟S332)。在此網路存在確認響應訊框中,係包含有直到傳送網路存在確認響應訊框為止之間由鏈結狀態確 認部66所確認之各埠之鏈結狀態。此外,在從屬台D中,由於第2埠D2係被無效化,因此所接收之網路存在確認訊框不會重送至與從屬台D之第2埠D2之前端連接之從屬台C。The network presence confirmation frame transmitted by the second node X2 of the management station X is received by the slave station D, and the network presence confirmation response frame is returned from the slave station D (step S332). In this network presence confirmation response frame, the link status is confirmed until the transmission network has a confirmation response frame. The status of each link confirmed by the recognition unit 66. Further, in the slave station D, since the second node D2 is invalidated, the received network presence confirmation frame is not retransmitted to the slave station C connected to the second terminal D2 of the slave station D.
另外,此時,亦可考慮與從屬台C之間之纜線一瞬間復原之情形。此時,在從屬台D之第2埠D2與從屬台C之第1埠C1之間之傳輸路中,雖係於實體層進行確認信號之交換,惟在資料鏈結層中從屬台D之第2埠D2係被無效化,因此網路存在確認訊框不會重送至從屬台C。因此,可防止從屬台C於環再構成處理時從從屬台D之側進入。假使第2埠D2未被無效化時,管理台X與從屬台A至D係成為環架構,且訊框永遠持續繞行於網路內。換言之,藉由使第2埠D2無效化,即可防止此種事態之產生。In addition, at this time, it is also conceivable that the cable between the slave station C and the slave station C is restored instantaneously. At this time, in the transmission path between the second 埠D2 of the slave station D and the first 埠C1 of the slave station C, the acknowledgment signal is exchanged in the physical layer, but the slave station D is in the data link layer. The second parameter D2 is invalidated, so the network presence confirmation frame will not be resent to the slave station C. Therefore, it is possible to prevent the slave station C from entering from the side of the slave station D at the time of the loop reconstruction processing. If the second D2 is not invalidated, the management station X and the subordinate stations A to D become the ring architecture, and the frame always continues to bypass the network. In other words, by invalidating the second 埠D2, it is possible to prevent such a situation from occurring.
另一方面,從管理台X之第1埠X1所傳送之網路存在確認訊框,係在從屬台A接收,且從從屬台A回傳網路存在確認響應訊框(步驟S334)。此外,從屬台A係將網路存在確認訊框之內容一部分重寫,而從第2埠A2重送至第1埠A1(步驟S335)。同樣地,在從屬台B、C,當接收網路存在確認訊框時,亦將網路存在確認響應訊框傳送至管理台X(步驟S336、S338),且將網路存在確認訊框之內容一部分重寫,而從第2埠重送至第1埠(步驟S337、S339)。另外,由於從屬台C與從屬台D之間之纜線為斷線之狀態,因此網路存在確認訊框不會到達從屬台D,而來自從屬台D之網路存在確認響應訊框不會送出。此外, 在從各從屬台A、B、C所傳送之網路存在確認響應訊框中,係包含有直到傳送網路存在確認響應訊框為止之間由鏈結狀態確認部66所確認之各埠之鏈結狀態。On the other hand, the network presence confirmation frame transmitted from the first node X1 of the management station X is received by the slave station A, and the network presence confirmation response frame is returned from the slave station A (step S334). Further, the slave station A rewrites a part of the contents of the network presence confirmation frame and transfers it from the second volume A2 to the first volume A1 (step S335). Similarly, in the slave stations B and C, when the receiving network presence confirmation frame, the network presence confirmation response frame is also transmitted to the management station X (steps S336, S338), and the network presence confirmation frame is The content is partially rewritten and sent from the second page to the first frame (steps S337, S339). In addition, since the cable between the slave station C and the slave station D is in a disconnected state, the network presence confirmation frame does not reach the slave station D, and the network presence confirmation response frame from the slave station D does not. Send it out. In addition, The network presence confirmation response frame transmitted from each of the slave stations A, B, and C includes each of the confirmations confirmed by the link status confirming unit 66 until the transmission network presence confirmation response frame. Link status.
從從屬台C接收網路存在確認響應訊框之管理台X之網路存在確認處理部22,係以計時器21開始計時。此例之情形,如上所述,由於從屬台C與從屬台D之間之纜線斷線,因此來自從屬台D之網路存在確認響應訊框不會送出。結果,從接收來自從屬台C之網路存在確認響應訊框之後經過預定之時間,計時器21係時間暫停(步驟S340)。再者,管理台X之線連接管理部24係從目前為止所接收之網路存在確認響應訊框中之資訊,辨識從屬台C與從屬台D之間之纜線斷線(步驟S341)。The network presence confirmation processing unit 22 of the management station X that receives the network presence confirmation response frame from the slave station C starts counting with the timer 21. In this case, as described above, since the cable between the slave station C and the slave station D is disconnected, the network presence confirmation response frame from the slave station D is not sent. As a result, the timer 21 is time-scheduled after a predetermined time elapses after receiving the network presence confirmation response frame from the slave station C (step S340). Further, the line connection management unit 24 of the management station X recognizes the disconnection of the cable between the slave station C and the slave station D from the information in the network presence confirmation response frame received so far (step S341).
另外,管理台X係當從各從屬台A至D接收網路存在確認響應訊框時,產生所接收之時點中通信節點間之連接狀態之網路連接資訊。Further, the management station X generates network connection information of the connection state between the communication nodes at the time of reception when receiving the network presence confirmation response frame from each of the slave stations A to D.
之後,線連接管理部24係將最後接收網路存在確認響應訊框之從屬台C之使第1埠C1無效之埠控制訊框對從屬台C進行傳送(步驟S351)。從屬台C之埠傳送接收控制部62,係當接收埠控制訊框時,依據其內容,進行使第1埠C1無效化之處理(步驟S352)。再者,從屬台C之控制訊框響應部61,係將顯示第1埠C1之無效化完成之埠控制響應訊框對管理台X進行傳送(步驟S353)。Thereafter, the line connection management unit 24 transmits the control frame of the slave station C that has received the network presence confirmation response frame to the slave station C by the first control unit C (step S351). The transmission/reception control unit 62 of the slave station C performs processing for invalidating the first cassette C1 based on the content when receiving the control frame (step S352). Further, the control frame response unit 61 of the slave station C transmits the control message frame indicating that the invalidation of the first CPU C1 is completed to the management station X (step S353).
之後,如實施形態1所說明,管理台X係決定符記巡迴順序(步驟S361),且進行對各通信節點設定符記訊框之 傳送順序之設置處理(步驟S362)。之後,開始使用符記訊框之資料訊框之通信(步驟S363)。此時,與障礙產生前相同地,在管理台X、從屬台A至D雖進行資料訊框之通信,惟連接成線型之路徑係與障礙產生前不同。換言之,從從屬台D之第2埠D2至從屬台C之第1埠C1為止係成為與未連接相同之動作。Thereafter, as described in the first embodiment, the management station X determines the order of the tour (step S361), and performs the setting of the message box for each communication node. The setting process of the transfer order (step S362). Thereafter, communication of the data frame of the character frame is started (step S363). At this time, in the same manner as before the occurrence of the obstacle, although the management station X and the slave stations A to D perform communication of the data frame, the path line connected to the line type is different from that before the occurrence of the obstacle. In other words, the same operation as the unconnected is performed from the second 埠D2 of the slave station D to the first 埠C1 of the slave station C.
另外,在上述之說明中,雖係設成於資料訊框儲存由鏈結狀態確認部66所確認之鏈結狀態,惟不限定於資料訊框,亦可儲存於符記訊框或其他訊框。In addition, in the above description, the data frame is stored in the link state confirmed by the link state confirming unit 66, but is not limited to the data frame, and may be stored in the message frame or other information. frame.
依據此實施形態3,係於符記訊框接收時,由各從屬台將所有埠之鏈結狀態埋入於資料訊框而通知管理台X。藉此,在與接收符記訊框之從屬台鄰接之通信節點(從屬台)當機,或纜線切斷而產生傷害時,相較於符記訊框在障礙產生部分消失直到經過預定時間時,可迅速將異常通知管理台X,而進行環再構成處理。此外,由於傳送網路存在確認訊框之次數為1次,因此具有可謀求環再構成處理之時間縮短之效果。According to the third embodiment, when the symbol frame is received, each of the slave stations buryes all the link states in the data frame to notify the management station X. Thereby, when the communication node (slave station) adjacent to the slave station of the receiver frame is down, or the cable is cut to cause damage, the obstacle occurs in the obstacle portion until the predetermined time elapses. At this time, the management station X can be quickly notified of the abnormality, and the loop reconstruction processing can be performed. Further, since the number of times the confirmation frame exists in the transmission network is once, there is an effect that the time for the loop reconstruction processing can be shortened.
此外,在進行環再構成處理之際,由於係設為使與產生障礙之部分相接之通信節點之埠無效化,因此即使是在環再構成處理中產生障礙之通信節點復原,或纜線狀態不穩定之狀態(斷線(異常)或活線(正常))之狀態交替在短時間內變化之狀態,或纜線將斷線之狀態)之情形,均可不包括產生障礙之部分而進行環再構成處理。結果,具有在環再構成處理中,包括復原之通信節點、及與纜線狀態不穩 定之纜線鄰接之通信節點,使所有通信節點之埠均有效化,而可防止訊框持續流通於網路內之情形之效果。Further, when the loop reconfiguration processing is performed, since the communication node that is in contact with the obstacle portion is invalidated, the communication node that is in the loop reconfiguration process is restored, or the cable is restored. The state in which the state is unstable (the state in which the disconnection (abnormal) or the live line (normal) is alternately changed in a short period of time, or the state in which the cable is broken) may be performed without including the obstacle portion. The loop is reconstructed. As a result, there is a communication node in the ring reconstitution process, including recovery, and the state of the cable is unstable. The communication nodes adjacent to the cable enable the communication of all the communication nodes to be effective, and the effect of the continuous circulation of the frame in the network can be prevented.
以實施形態3之情形而言,在符記訊框傳送於與產生障礙之位置鄰接之從屬台時雖係為有效,惟在接收符記訊框之際在該從屬台及纜線產生故障時、或連結已接收符記訊框之從屬台與管理台之路徑上之從屬台當機或纜線斷線時,於實施形態3之情形無法對應。因此,在此實施形態4中,係就此種情形之環再構成處理進行說明。In the case of Embodiment 3, it is effective when the symbol frame is transmitted to the slave station adjacent to the position where the obstacle is generated, but when the slave station and the cable are in trouble at the time of receiving the message frame In the case of the third embodiment, it is not possible to correspond to the case where the slave station or the cable on the path of the slave station and the management station are disconnected. Therefore, in the fourth embodiment, the loop reconstruction processing in this case will be described.
第17圖係為示意性顯示實施形態4之管理台之功能構成之一例之方塊圖。管理台係在實施形態1之第2-1圖之構成中,於通信處理部20A復包括網路監視部30。Fig. 17 is a block diagram schematically showing an example of the functional configuration of the management station of the fourth embodiment. In the configuration of the first to fourth embodiments of the first embodiment, the management station includes the network monitoring unit 30 in the communication processing unit 20A.
網路監視部30係當檢測流通於網路內之訊框時,啟動計時器21,且監視流通於網路內之訊框。在啟動計時器21之後直到經過預定時間為止之間,於訊框輸入於第1埠11-1或第2埠11-2時,係重設計時器21重新進行計時。此外,在啟動計時器21之後直到經過預定時間為止之間,訊框未輸入於第1埠11-1或第2埠11-2時,亦即檢測出時間暫停時,係判斷訊框在網路(通信系統)內消失,且給予網路存在確認處理部22指示要進行網路存在確認處理。在此,以監視對象之訊框而言,係可以所有訊框為對象,亦可以符記訊框為對象。The network monitoring unit 30 activates the timer 21 when detecting a frame circulating in the network, and monitors the frame circulating in the network. After the start of the timer 21 until the predetermined time elapses, when the frame is input to the first 埠 11-1 or the second 埠 11-2, the reset timer 21 is re-timed. In addition, after the timer 21 is started until the predetermined time elapses, the frame is not input in the first 11-1 or the second 埠 11-2, that is, when the time pause is detected, the frame is judged to be in the network. The route (communication system) disappears, and the network presence confirmation processing unit 22 is instructed to perform the network presence confirmation process. Here, in the frame of the monitoring object, all the frames can be targeted, and the frame can be the object.
另外,對於與實施形態1相同之構成要素係賦予相同符號而省略其說明。此外,在此實施形態4所使用之從屬 台之構成,係與實施形態1所說明者相同,因此省略其說明。The same components as those in the first embodiment are denoted by the same reference numerals and will not be described. In addition, the subordinates used in the fourth embodiment The configuration of the station is the same as that described in the first embodiment, and thus the description thereof will be omitted.
接著,雖將就此實施形態4之資料通信方法進行說明,惟首先係就網路中之通信節點當機時之環再構成處理進行說明。第18圖係為顯示通信節點當機時之環再構成處理之順序之一例之序列圖。另外,在此,雖係顯示4台從屬台A至D連接成環狀於管理台X之構成,惟此係為例示,任意台數之從屬台連接於管理台X之情形,亦可以與以下所說明之處理相同之方法進行資料通信。Next, the data communication method of the fourth embodiment will be described. First, the loop reconfiguration processing when the communication node in the network is down will be described. Fig. 18 is a sequence diagram showing an example of the sequence of loop reconstruction processing when the communication node is down. In addition, although the configuration in which four slave stations A to D are connected in a ring shape to the management station X is shown here, for example, in the case where any number of slave stations are connected to the management station X, the following may be used. The same method is described for data communication.
首先,在此網路中,管理台X與從屬台A至D雖係藉由纜線連接成環型,惟藉由使管理台X之第1埠X1無效化(步驟S411),而進行依據上述(1)之順序使用符記訊框之資料訊框之傳送接收,作為管理台X-從屬台D-從屬台C-從屬台B-從屬台A之線型拓撲結構。First, in this network, the management station X and the slave stations A to D are connected by a cable to form a ring type, but by invalidating the first 埠X1 of the management station X (step S411), The sequence of the above (1) uses the transmission and reception of the data frame of the symbol frame as a line topology of the management station X-subordinate station D-subordinate station C-subordinate station B-subordinate station A.
從屬台C係設為在獲得符記訊框之後,電源因為某種原因而關斷(步驟S412)。此時,從屬台D之第2埠D2係成為無法通信之狀態(步驟S413)。從屬台B亦同樣,與從屬台C連接之第1埠B1係成為無法通信之狀態。The slave station C is set to be turned off for some reason after the character frame is obtained (step S412). At this time, the second node D2 of the slave station D is in a state in which communication is impossible (step S413). Similarly, in the slave station B, the first port B1 connected to the slave station C is in a state in which communication is impossible.
此外,在符記訊框繞行於從屬台C之際,該符記訊框亦流通於整體網路上。因此,管理台X之網路監視部30,係當檢測出符記訊框流通於網路上時,設定計時器21。再者,由於獲得符記訊框之從屬台C之電源關斷,因此直到計時器21時間暫停為止之間,其他訊框不會再流通於網路上。In addition, when the character frame bypasses the slave station C, the character frame is also circulated on the entire network. Therefore, the network monitoring unit 30 of the management station X sets the timer 21 when it detects that the character frame is circulating on the network. Moreover, since the power of the slave station C of the character frame is turned off, the other frames will not flow on the network until the time of the timer 21 is suspended.
管理台X之網路監視部30係當檢測出由於時間暫停而訊框不流通預定時間於網路上時(步驟S414),係辨識符記訊框在網路上消失,且對網路存在確認處理部22作出指示要進行網路存在確認處理。再者,網路存在確認處理部22係在目前埠之有效/無效狀態下,亦即第1埠X1為無效而第2埠X2為有效之狀態下直接將網路存在確認訊框以廣播方式進行傳送(步驟S421)。When the network monitoring unit 30 of the management station X detects that the frame does not flow for a predetermined time on the network due to the timeout (step S414), the identifier frame disappears on the network, and the network presence confirmation processing is performed. The department 22 makes an instruction to perform a network presence confirmation process. Furthermore, the network presence confirmation processing unit 22 directly broadcasts the network presence confirmation frame in a state in which the first 埠X1 is invalid and the second 埠X2 is valid. The transfer is performed (step S421).
從管理台X之第2埠X2所傳送之網路存在確認訊框,係在從屬台D接收,且從從屬台D回傳網路存在確認響應訊框(步驟S422)。此外,在從屬台D中,雖係將網路存在確認訊框之內容一部分重寫而從第1埠D1重送至第2埠D2(步驟S423),惟從屬台C係處於電源關斷之狀態,因此網路存在確認響應訊框係成為不會從與從屬台D之第2埠D2之前端連接之從屬台C回傳之狀態。The network presence confirmation frame transmitted from the second node X2 of the management station X is received by the slave station D, and the network presence confirmation response frame is returned from the slave station D (step S422). Further, in the slave station D, although the content of the network presence confirmation frame is partially rewritten and retransmitted from the first port D1 to the second port D2 (step S423), the slave station C is in the power-off state. The status is such that the network presence confirmation response frame is in a state of not being transmitted back from the slave station C connected to the second terminal of the slave station D.
管理台X係當接收來自從屬台D之網路存在確認響應訊框時,啟動計時器21,且開始預定時間之計時。然而,由於接著從屬台D之後所連接之從屬台C之電源惟關斷狀態,因此來自從屬台C之網路存在確認響應訊框不會到達。結果,經過預定時間而成為時間暫停(步驟S424)。藉此,管理台X之網路存在確認處理部22係辨識從屬台C為鏈結斷線,亦即僅可將資料訊框傳送至從屬台D之狀態(步驟S425)。The management station X starts the timer 21 when receiving the network presence confirmation response frame from the slave station D, and starts counting the predetermined time. However, since the power of the slave station C connected after the slave station D is next turned off, the network presence confirmation response frame from the slave station C does not arrive. As a result, the time lapse becomes a predetermined time (step S424). Thereby, the network presence confirmation processing unit 22 of the management station X recognizes that the slave station C is a link disconnection, that is, only the data frame can be transmitted to the slave station D (step S425).
之後,線連接管理部24係將使最後接收網路存在確認響應訊框之從屬台D之第2埠D2無效之埠控制訊框對從 屬台D進行傳送(步驟S431)。接收埠控制訊框之從屬台D之埠傳送接收控制部62,係依據埠控制訊框之指示,將第2埠D2進行使資料鏈結層以上之資料訊框之通信無效化之處理(步驟S432)。當此第2埠D2之無效化處理結束時,控制訊框響應部61係將埠控制響應訊框對管理台X進行傳送(步驟S433)。Thereafter, the line connection management unit 24 invalidates the second control frame of the slave station D of the last received network presence confirmation response frame. The station D transmits (step S431). The transmission/reception control unit 62, which receives the slave station D of the control frame, performs the process of invalidating the communication of the data frame above the data link layer by the second parameter D2 according to the instruction of the control frame (step S432). When the invalidation processing of the second parameter D2 is completed, the control frame response unit 61 transmits the UI control response frame to the management station X (step S433).
另外,在此一連串處理中,亦可考慮從屬台C一瞬間復原之情形。此時,在從屬台D之第2埠D2與從屬台C之第1埠C1之間之傳輸路中,雖係於實體層進行鏈結確認信號之交換,惟由於從屬台D之第2埠D2在資料鏈結層係被無效化,因此網路存在確認訊框不會重送至從屬台C。因此,可防止不穩定之動作之從屬台C於環再構成處理時進入網路內。此外,未使從屬台D之第2埠D2無效化時,由於管理台X與從屬台A至D成為環架構,而在環再構成處理所流通之訊框將會永遠繼續繞行於網路內,因此亦可防止此種情形之發生。In addition, in this series of processing, it is also possible to consider the situation in which the slave station C is instantaneously restored. At this time, in the transmission path between the second 埠D2 of the slave station D and the first 埠C1 of the slave station C, the link confirmation signal is exchanged in the physical layer, but the second 从 of the slave station D D2 is invalidated in the data link layer, so the network presence confirmation frame will not be resent to the slave station C. Therefore, the slave station C that can prevent the unstable operation enters the network during the loop reconstruction processing. In addition, when the second 埠D2 of the slave station D is not invalidated, since the management station X and the slave stations A to D become the ring architecture, the frames circulated in the loop reconstruction processing will continue to bypass the network forever. Therefore, it can also prevent this from happening.
已接收埠控制響應訊框之管理台X之線連接管理部24,係進行使自台之第1埠X1有效之處理(步驟S434)。藉此,管理台X係成為可在2個埠X1、X2進行資料訊框之傳送接收之狀態。The line connection management unit 24 of the management station X that has received the control response frame performs processing for validating the first 埠X1 of the own station (step S434). As a result, the management station X is in a state in which data frames can be transmitted and received in two frames X1 and X2.
接著,管理台X之網路存在確認處理部22係將網路存在確認訊框以廣播方式對相同區間之網路上之從屬台進行傳送(步驟S441、S443)。從第2埠X2傳送之網路存在確認訊框,係在從屬台D接收,而從屬台D係將網路存在確 認響應訊框傳送至管理台X(步驟S442)。另外,由於從屬台D之第2埠D2係被無效化,因此不進行網路存在確認訊框之重送。Next, the network presence confirmation processing unit 22 of the management station X transmits the network presence confirmation frame to the slave stations on the network of the same section in a broadcast manner (steps S441 and S443). The acknowledgement frame exists on the network transmitted from the second 埠X2, and is received at the slave station D, and the slave station D system has the network presence. The response frame is transmitted to the management station X (step S442). Further, since the second node D2 of the slave station D is invalidated, the network presence confirmation frame is not retransmitted.
從管理台X之第1埠X1所傳送之網路存在確認訊框,係在從屬台A接收,且從從屬台A回傳網路存在確認響應訊框(步驟S444)。此外,從屬台A係將網路存在確認訊框之內容之一部分重寫而從第2埠A2重送至第1埠A1(步驟S445)。同樣地,當在從屬台B亦接收網路存在確認訊框時,將網路存在確認響應訊框傳送至管理台X(步驟S446),且將網路存在確認訊框之內容之一部分重寫而從第2埠B2重送至第1埠B1(步驟S447)。然而,由於從屬台C係當機,因此網路存在確認訊框不會到達從屬台C,此外來自從屬台C之網路存在確認響應訊框不會送出。The network presence confirmation frame transmitted from the first node X1 of the management station X is received by the slave station A, and the network presence confirmation response frame is returned from the slave station A (step S444). Further, the slave station A rewrites one of the contents of the network presence confirmation frame and transfers it from the second volume A2 to the first volume A1 (step S445). Similarly, when the slave station B also receives the network presence confirmation frame, the network presence confirmation response frame is transmitted to the management station X (step S446), and a part of the content of the network presence confirmation frame is partially rewritten. On the other hand, it is sent from the second 埠B2 to the first 埠B1 (step S447). However, since the slave station C is down, the network presence confirmation frame does not reach the slave station C, and the network presence confirmation response frame from the slave station C is not sent.
從從屬台B已接收網路存在確認響應訊框之管理台X,係以計時器21開始計時。以此例之情形而言,如上所述,由於從屬台C係當機,因此來自從屬台C之網路存在確認響應訊框不會送出,故在接收來自從屬台B之網路存在確認響應訊框之後經過預定時間,計時器21係時間暫停(步驟S448)。結果,管理台X之線連接管理部24係辨識從屬台C(與從屬台B鄰接之從屬台)從網路脫離(步驟S449)。The management station X, which has received the network presence confirmation response frame from the slave station B, starts counting with the timer 21. In the case of this example, as described above, since the slave station C is down, the network presence confirmation response frame from the slave station C is not sent, so the network presence confirmation response is received from the slave station B. After a predetermined time elapses after the frame, the timer 21 is time-scheduled (step S448). As a result, the line connection management unit 24 of the management station X recognizes that the slave station C (the slave station adjacent to the slave station B) is detached from the network (step S449).
之後,線連接管理部24係將使最後已接收網路存在確認響應訊框之從屬台B之第1埠B1無效之埠控制訊框對從屬台B進行傳送(步驟S451)。從屬台B之埠傳送接收控制部62係當接收埠控制訊框時,依據其內容,進行使第1 埠B1無效化之處理(步驟S452)。再者,從屬台B之控制訊框響應部61係將顯示第1埠B1之無效化完成之埠控制響應訊框對管理台X進行傳送(步驟S453)。Thereafter, the line connection management unit 24 transmits the control frame to the slave station B that invalidates the first frame B1 of the slave station B that has received the network presence confirmation response frame (step S451). When the slave station B transmits and receives the control frame, the first control unit 62 performs the first control based on the content. The process of invalidating B1 is performed (step S452). Further, the control frame response unit 61 of the slave station B transmits the control message frame indicating that the invalidation of the first frame B1 is completed to the management station X (step S453).
另外,管理台X係當從各從屬台接收網路存在確認響應訊框時,產生在所接收之時點中通信節點間之連接狀態之網路連接資訊。Further, the management station X generates network connection information of the connection state between the communication nodes at the time of reception when receiving the network presence confirmation response frame from each of the slave stations.
之後,如實施形態1所說明,管理台X係決定符記巡迴順序(步驟S461),且進行對各從屬台A、B、C設定符記訊框之傳送順序之設置處理(步驟S462)。再者,開始使用符記訊框之資料訊框之通信(步驟S463)。此時,於除從屬台C以外之管理台X、從屬台A、B、D進行資料訊框之通信。Thereafter, as described in the first embodiment, the management station X determines the order of the tour (step S461), and performs a process of setting the transfer order of the set cells of the respective slave stations A, B, and C (step S462). Furthermore, communication of the data frame of the character frame is started (step S463). At this time, the management station X and the slave stations A, B, and D other than the slave station C perform communication of the data frame.
接著雖就纜線切斷時之環再構成處理進行說明,惟基本上係與通信節點當機時相同之處理。第19圖係為顯示纜線斷線時之環再構成處理之順序之一例之序列圖。另外,在此,雖係顯示4台從屬台A至D連接成環狀於管理台X之構成,惟此係為例示,任意台數之從屬台連接於管理台X時,亦可以與以下所說明之處理相同之方法進行資料通信。Next, the loop reconfiguration process at the time of cable disconnection will be described, but basically the same processing as when the communication node is down. Fig. 19 is a sequence diagram showing an example of the sequence of loop reconstruction processing when the cable is broken. In addition, although the configuration in which four slave stations A to D are connected in a ring shape to the management station X is shown here, for example, when any number of slave stations are connected to the management station X, the following may be used. The description deals with the same method for data communication.
首先,在此網路中,管理台X與從屬台A至D雖係藉由纜線連接成環型,惟設為藉由使管理台X之第1埠X1無效化(步驟S511),進行依據上述(1)之順序使用符記訊框之資料訊框之傳送接收,作為管理台X-從屬台D-從屬台C-從屬台B-從屬台A之線型拓撲結構。First, in this network, the management station X and the slave stations A to D are connected by a cable to form a ring type, but by invalidating the first 埠X1 of the management station X (step S511), According to the above (1), the transmission and reception of the data frame of the character frame is used as the line topology of the management station X-subordinate station D-subordinate station C-subordinate station B-subordinate station A.
茲設從屬台A至C之任一從屬台獲得符記訊框時,從屬台D與從屬台C之間之纜線因為某原因而斷線(步驟S512)。此時,從屬台D之第2埠D2係成為無法通信之狀態(步驟S513)。此外,從屬台B亦同樣,與從屬台C連接之第1埠B1係成為無法通信之狀態(步驟S514)。再者,管理台X之網路監視部30係當檢測出最後流通於網路上之訊框時,使用計時器21進行計時。之後,在此,由於纜線切斷,因此其他訊框不流通於網路上之狀態會持續預定時間以上。When any of the slave stations A to C obtains the character frame, the cable between the slave station D and the slave station C is disconnected for some reason (step S512). At this time, the second node D2 of the slave station D is in a state in which communication is impossible (step S513). Further, in the slave station B, the first port B1 connected to the slave station C is in a state in which communication is impossible (step S514). Further, the network monitoring unit 30 of the management station X counts the time using the timer 21 when detecting the frame that finally flows on the network. After that, since the cable is cut off, the state in which the other frames do not flow on the network continues for a predetermined time or longer.
管理台X之網路監視部30係當檢測出由於時間暫停而訊框不流通預定時間於網路上時(步驟S515),辨識符記訊框在網路上消失,而對網路存在確認處理部22作出指示要進行網路存在確認處理。再者,網路存在確認處理部22係在目前埠之有效/無效狀態,亦即第1埠X1為無效而第2埠X2為有效之狀態下直接將網路存在確認訊框以廣播方式進行傳送(步驟S521)。The network monitoring unit 30 of the management station X detects that the frame does not flow for a predetermined time on the network due to the timeout (step S515), the identifier frame disappears on the network, and the network presence confirmation processing unit 22 instructed to perform network presence confirmation processing. Furthermore, the network presence confirmation processing unit 22 directly performs the network presence confirmation frame in a broadcast mode in a state in which the current 埠X1 is invalid and the second 埠X2 is valid. Transfer (step S521).
從管理台X之第2埠X2所傳送之網路存在確認訊框,係在從屬台D接收,且從從屬台D回傳網路存在確認響應訊框(步驟S522)。此外,在從屬台D,雖係將網路存在確認訊框之內容之一部份重寫而從第1埠D1重送至第2埠D2(步驟S523),惟由於從屬台D與從屬台C之間之纜線處於切斷之狀態,因此網路存在確認響應訊框成為不會從與從屬台D之第2埠D2之前端連接之從屬台C回傳之狀態。The network presence confirmation frame transmitted from the second node X2 of the management station X is received by the slave station D, and the network presence confirmation response frame is returned from the slave station D (step S522). Further, in the slave station D, although one of the contents of the network presence confirmation frame is rewritten and transferred from the first node D1 to the second node D2 (step S523), since the slave station D and the slave station The cable between C is in a disconnected state, so the network presence confirmation response frame is in a state of not being transmitted back from the slave station C connected to the front end of the second terminal D2 of the slave station D.
管理台X係當接收來自從屬台D之網路存在確認響應 訊框時,啟動計時器21,開始預定時間之計時。然而,由於從屬台D與從屬台C之纜線處於切斷之狀態,因此來自從屬台C之網路存在確認訊框不會到達。結果,經過預定時間,成為時間暫停(步驟S524)。管理台X之網路存在確認處理部22,係辨識從屬台C為鏈結斷線、亦即辨識僅可傳送資料訊框至從屬台D之狀態(步驟S525)。Management Desk X is when receiving a network presence confirmation response from slave station D. At the time of the frame, the timer 21 is started to start the timing of the predetermined time. However, since the cable of the slave station D and the slave station C is in a disconnected state, the network presence confirmation frame from the slave station C does not arrive. As a result, the time lapse becomes a predetermined time (step S524). The network presence confirmation processing unit 22 of the management station X recognizes that the slave station C is disconnected from the link, that is, recognizes that only the data frame can be transmitted to the slave station D (step S525).
之後,線連接管理部24係將使最後接收有網路存在確認響應訊框之從屬台D之第2埠D2無效之埠控制訊框對從屬台D進行傳送(步驟S531)。已接收埠控制訊框之從屬台D之埠傳送接收控制部62,係依據埠控制訊框,針對第2埠D2,進行使資料鏈結層以上之資料訊框之通信無效化之處理(步驟S532)。當此第2埠D2之無效化處理結束時,控制訊框響應部係將埠控制響應訊框對管理台X進行傳送(步驟S533)。Thereafter, the line connection management unit 24 transmits the UI control frame invalidating the second frame D2 of the slave station D that has received the network presence confirmation response frame to the slave station D (step S531). The transmission/reception control unit 62 of the slave station D that has received the control frame performs processing for invalidating the communication of the data frame above the data link layer for the second frame D2 according to the control frame (step S532). When the invalidation processing of the second 埠D2 is completed, the control frame response unit transmits the 埠 control response frame to the management station X (step S533).
另外,在此一連串處理中,亦可考慮從屬台C與從屬台D之間之纜線一瞬間復原之情形。此時,在從屬台D之第2埠D2與從屬台C之第1埠C1之間之傳輸路中,雖係於實體層進行鏈結確認信號之交換,惟由於從屬台D之第2埠D2在資料鏈結層係被無效化,因此網路存在確認訊框不會重送至從屬台C。因此,可防止管理台X之第2埠X2之環再構成處理時從屬台C進入網路內。此外,未使第2埠D2無效化時,係管理台X與從屬台A至D成為環架構,而在環再構成處理流通之訊框永遠繼續繞行於網路內,因此亦可防止此種事態之產生。In addition, in this series of processes, it is also conceivable that the cable between the slave station C and the slave station D is restored instantaneously. At this time, in the transmission path between the second 埠D2 of the slave station D and the first 埠C1 of the slave station C, the link confirmation signal is exchanged in the physical layer, but the second 从 of the slave station D D2 is invalidated in the data link layer, so the network presence confirmation frame will not be resent to the slave station C. Therefore, it is possible to prevent the slave station C from entering the network when the loop of the second loop X2 of the management station X is reconstructed. In addition, when the second 埠D2 is not invalidated, the management station X and the slave stations A to D become the ring structure, and the frame in the loop reconfiguration processing always continues to bypass the network, thereby preventing this. The emergence of a state of affairs.
之後,已接收埠控制響應訊框之管理台X之線連接管理部24,係進行使自台之第1埠X1有效之處理(步驟S534)。藉此,管理台X係成為可在2個埠X1、X2進行資料訊框之傳送接收之狀態。Thereafter, the line connection management unit 24 of the management station X that has received the control response frame performs processing for validating the first 埠X1 of the own station (step S534). As a result, the management station X is in a state in which data frames can be transmitted and received in two frames X1 and X2.
接著,網路存在確認處理部22係將網路存在確認訊框以廣播方式對相同區間之網路上之從屬台進行傳送(步驟S541、S543)。關於從管理台X之第2埠X2傳送之網路存在確認訊框之處理,係與上述第18圖之步驟S441至S442相同(步驟S541至S542)。Next, the network presence confirmation processing unit 22 broadcasts the network presence confirmation frame to the slave stations on the network in the same section in a broadcast manner (steps S541 and S543). The processing of the presence confirmation frame from the second transmission X2 of the management station X is the same as steps S441 to S442 of the above-described 18th drawing (steps S541 to S542).
從管理台X之第1埠X1所傳送之網路存在確認訊框,係在從屬台A接收,且從從屬台A回傳網路存在確認響應訊框(步驟S544)。此外,從屬台A係將網路存在確認訊框之內容之一部分重寫而從第2埠A2重送至第1埠A1(步驟S545)。同樣地,在從屬台B、C,當接收網路存在確認訊框時,亦將網路存在確認響應訊框傳送至管理台X(步驟S546、S548),且將網路存在確認訊框之內容之一部分重寫而從第2埠重送至第1埠(步驟S547、S549)。另外,由於從屬台C與從屬台D之間之纜線係為斷線之狀態,因此網路存在確認訊框不會到達從屬台D,而來自從屬台D之網路存在確認響應訊框不會送出。The network presence confirmation frame transmitted from the first node X1 of the management station X is received by the slave station A, and the network presence confirmation response frame is returned from the slave station A (step S544). Further, the slave station A rewrites one of the contents of the network presence confirmation frame and transfers it from the second volume A2 to the first volume A1 (step S545). Similarly, in the slave stations B and C, when the receiving network presence confirmation frame, the network presence confirmation response frame is also transmitted to the management station X (steps S546, S548), and the network presence confirmation frame is One of the contents is partially rewritten and sent from the second page to the first frame (steps S547 and S549). In addition, since the cable between the slave station C and the slave station D is in a disconnected state, the network presence confirmation frame does not reach the slave station D, and the network presence confirmation response frame from the slave station D does not. Will be sent out.
從從屬台C已接收網路存在確認響應訊框之管理台X之網路存在確認處理部22,係以計時器21開始計時。以此例之情形而言,如上所述,由於從屬台C與從屬台D之間之纜線斷線,因此來自從屬台D之網路存在確認響應訊 框不會送出。結果,從接收來自從屬台C之網路存在確認響應訊框之後經過預定時間,計時器21係時間暫停(步驟S550)。再者,管理台X之線連接管理部24係從至目前為止所接收之網路存在確認響應訊框中之資訊,辨識從屬台C與從屬台D之間之纜線為斷線(步驟S551)。The network presence confirmation processing unit 22 of the management station X that has received the network presence confirmation response frame from the slave station C starts counting by the timer 21. In the case of this example, as described above, since the cable between the slave station C and the slave station D is disconnected, the network from the slave station D has a confirmation response message. The box will not be sent. As a result, the timer 21 is time-scheduled after a predetermined time elapses after receiving the network presence confirmation response frame from the slave station C (step S550). Furthermore, the line connection management unit 24 of the management station X recognizes that the cable between the slave station C and the slave station D is disconnected from the information in the network presence confirmation response frame received so far (step S551). ).
另外,管理台X係當從各從屬台接收網路存在確認響應訊框時,產生屬於接收時刻之通信節點間之連接狀態的網路連接資訊。Further, when the management station X receives the network presence confirmation response frame from each of the slave stations, it generates network connection information belonging to the connection state between the communication nodes at the reception time.
之後,線連接管理部24係將使最後接收網路存在確認響應訊框之從屬台C之第1埠C1無效之埠控制訊框對從屬台C進行傳送(步驟S561)。從屬台C之埠傳送接收控制部62係當接收埠控制訊框時,依據其內容,進行使第1埠C1無效化之處理(步驟S562)。再者,從屬台C之控制訊框響應部,係將顯示第1埠C1之無效化完成之埠控制響應訊框對管理台X進行傳送(步驟S563)。Thereafter, the line connection management unit 24 transmits the control frame for invalidating the first frame C1 of the slave station C of the last received network presence confirmation response frame to the slave station C (step S561). When the slave station C transmits and receives the control frame, the process of invalidating the first port C1 is performed in accordance with the content (step S562). Further, the control frame response unit of the slave station C transmits the control response frame to the management station X after the completion of the invalidation of the first CPU C (step S563).
之後,如實施形態1所說明,管理台X係決定符記巡迴順序(步驟S571),且進行對各從屬台A至D設定符記訊框之傳送順序之設置處理(步驟S572)。之後,開始使用符記訊框之資料訊框之通信處理(步驟S573)。此時,雖與障礙產生前相同地,在管理台X、從屬台A至D進行資料訊框之通信,惟連接成線型之路徑係與障礙產生前不同。換言之,從從屬台D之第2埠D2至從屬台C之第1埠C1係成為與未連接相同之動作。Thereafter, as described in the first embodiment, the management station X determines the order of the tour (step S571), and performs the setting process of the transfer order of the slave stations A to D of the setter frame (step S572). Thereafter, the communication processing of the data frame of the character frame is started (step S573). At this time, the communication between the management station X and the slave stations A to D is performed in the same manner as before the occurrence of the obstacle, but the path line connected to the line type is different from that before the occurrence of the obstacle. In other words, the second operation from the second 埠D2 of the slave station D to the first 埠C1 of the slave station C is the same as the unconnected operation.
另外,在此,在實施形態1時,雖顯示在管理台X設 置網路監視部30之情形,惟在實施形態2、3之情形,亦可在管理台X設置網路監視部30。Here, in the first embodiment, it is displayed on the management station X. In the case of the network monitoring unit 30, in the case of the second and third embodiments, the network monitoring unit 30 may be provided in the management station X.
依據此實施形態4,管理台X在最後檢測出訊框之後未在預定時間內檢測出下一個訊框時,係設為在網路產生異常,而進行網路存在確認處理(環再構成處理)。藉此,在與產生障礙之位置鄰接之通信節點獲得傳送權時以外時,亦具有可檢測出符記訊框消失之效果。此外,即使是以較短之周期重複網路內之通信節點之電源導通狀態與關斷狀態,或電源一度關斷之通信節點成為再度迅速導通狀態時,於網路存在確認處理中,由於係設成使與不穩定之通信節點相接之從屬台之埠無效,因此,具有既可防止訊框繼續流通於連接成環狀之網路內之訊框風暴的產生,又可進行復原(recovery)之效果。According to the fourth embodiment, when the management station X does not detect the next frame within the predetermined time after the last detection of the frame, it is set to generate an abnormality in the network, and the network presence confirmation processing (ring reconstruction processing) ). Thereby, when the communication node adjacent to the position where the obstacle is generated obtains the transmission right, the effect of detecting the disappearance of the symbol frame is also obtained. In addition, even if the power-on state and the off state of the communication node in the network are repeated in a short period, or the communication node once turned off is once again in a fast-on state, in the network presence confirmation process, It is set to make the slave station connected to the unstable communication node invalid. Therefore, it can prevent the frame from continuing to flow through the framed storm in the network connected to the ring, and can recover (recovery) ) The effect.
此外,在進行環再構成處理之際,由於係使與產生障礙之部分相接之通信節點之埠無效化,因此環再構成處理中產生障礙之通信節點復原、或纜線狀態成為不穩定之狀態(斷線(異所)或活線(正常)之狀態交替在短時間內變化之狀態,纜線將斷線之狀態)時,除障礙產生之部分以外亦可進行環再構成處理。結果,具有可防止在環再構成處理中,包括復原之通信節點、及與纜線狀態不穩定之纜線鄰接之通信節點,所有通信節點之埠均有效化,而使訊框持續流通於網路內之情形之效果。Further, when the loop reconfiguration processing is performed, since the communication node that is in contact with the obstacle portion is invalidated, the communication node that is in trouble in the loop reconstruction processing is restored, or the cable state becomes unstable. In the state (the state in which the disconnection (exception) or the live line (normal) alternates in a short period of time and the state in which the cable is disconnected), the loop reconstruction processing can be performed in addition to the portion in which the obstacle is generated. As a result, it is possible to prevent the communication node including the restored communication node and the cable which is unstable in the cable state in the loop reconfiguration processing, and all the communication nodes are validated, and the frame continues to flow through the network. The effect of the situation inside the road.
在實施形態3、4中,係就網路內之通信節點(從屬台) 由於某原因而從網路脫離時之環再構成處理。在此實施形態5中,係相反就脫離之通信節點(從屬台)復原時之網路存在確認處理進行說明。In Embodiments 3 and 4, it is a communication node (slave station) in the network. The ring is detached from the network for some reason. In the fifth embodiment, the network presence confirmation processing at the time of restoration of the disconnected communication node (slave station) will be described.
實施形態5中之管理台與從屬台之構成,係設為與實施形態2、3所說明者相同之構成。The configuration of the management station and the slave station in the fifth embodiment is the same as that described in the second and third embodiments.
第20圖係為顯示從屬台復原時之資料通信方法之處理順序之一例之序列圖。另外,在此,雖係顯示4台從屬台A至D連接成環狀於管理台X之構成,惟此係為例示,任意台數之從屬台連接於管理台X時,亦可以與以下所說明之處理相同之方法進行資料通信。Fig. 20 is a sequence diagram showing an example of the processing procedure of the data communication method when the slave station is restored. In addition, although the configuration in which four slave stations A to D are connected in a ring shape to the management station X is shown here, for example, when any number of slave stations are connected to the management station X, the following may be used. The description deals with the same method for data communication.
首先,在此網路中,管理台X與從屬台A至D雖係藉由纜線連接成環型,惟設為從屬台C由於障礙成為電源關斷之狀態(步驟S611),進行在管理台X與從屬台A、B、D之間使用符記訊框之資料訊框之傳送接收。換言之,從屬台B之第1埠B1係被無效化,而第2埠B2係被有效化,從屬台D之第1埠D1係被有效化,第2埠D2係被無效化,此等從屬台B、D成為終端之通信節點(步驟S612)。First, in this network, although the management station X and the slave stations A to D are connected by a cable to form a ring type, it is assumed that the slave station C is in a state in which the power source is turned off due to the obstacle (step S611), and management is performed. The transmission and reception of the data frame of the station X and the slave station A, B, and D are recorded. In other words, the first 埠B1 of the slave station B is invalidated, and the second 埠B2 system is activated, the first 埠D1 system of the slave station D is activated, and the second 埠D2 system is invalidated, and these slaves are invalidated. The stations B and D become communication nodes of the terminal (step S612).
茲設在從屬台D或從屬台B獲得符記訊框之前,從屬台C復原,而電源成為導通(步驟S613)。此時,從屬台D、B之鏈結狀態確認部66,係藉由從從屬台C獲得與在實體層定期性鄰接之通信節點之間進行交換之鏈結脈衝等之鏈結確認信號,而辨識從屬台C已從電源關斷之狀態復原(步驟S614)。It is assumed that before the slave station D or the slave station B obtains the character frame, the slave station C is restored and the power source is turned on (step S613). At this time, the link state confirming unit 66 of the slave stations D and B obtains the link confirmation signal such as the link pulse exchanged with the communication node periodically adjacent to the physical layer from the slave station C. It is recognized that the slave station C has recovered from the state in which the power is turned off (step S614).
之後,從屬台D或從屬台B雖依據預定之符記巡迴順 序而獲得符記訊框,且傳送資料訊框,惟此時資料訊框通信處理部65係將顯示從屬台C復原之資訊儲存於資料訊框中之鏈結狀態資訊(步驟S615)。具體而言,從屬台D、B獲得符記時,係儲存第1及第2埠為正常於資料訊框之鏈結狀態資訊,且傳送至管理台X。After that, the slave station D or the slave station B is honoured according to the predetermined schedule. The message frame is obtained in sequence, and the data frame is transmitted. However, at this time, the data frame communication processing unit 65 displays the link state information in which the information restored by the slave station C is stored in the data frame (step S615). Specifically, when the slave stations D and B obtain the tokens, the first and second magazines are stored as the link state information normal to the data frame, and are transmitted to the management station X.
接著,管理台X雖係接收來自從屬台D或從屬台B之資料訊框,且進行通常之接收處理,惟此時,由於在鏈結狀態資訊包含顯示從屬台C已復原之資訊,因此線連接管理部24係辨識從屬台C已復原。另外,以下係就從屬台D獲得符記訊框,且對於管理台X通知從屬台C之復原之情形進行說明。Next, the management station X receives the data frame from the slave station D or the slave station B, and performs normal reception processing. However, at this time, since the link status information includes information indicating that the slave station C has been restored, the line The connection management unit 24 recognizes that the slave station C has been restored. In addition, in the following, the slave station D obtains the character frame, and the case where the management station X notifies the slave station C of the restoration is described.
管理台X之線連接管理部24係將使通知從屬台C之復原之從屬台D之從屬台C側之第2埠D2有效之埠控制訊框對從屬台D進行傳送(步驟S621)。從屬台D之埠傳送接收控制部62係當接收埠控制訊框時,依據其內容,進行使第2埠D2有效化之處理(步驟S622)。再者,從屬台D之控制訊框響應部61,係將顯示第2埠D2之有效化完成之埠控制響應訊框對管理台X進行傳送(步驟S623)。The line connection management unit 24 of the management station X transmits the second control unit D of the slave station C side of the slave station D that has notified the slave station C to the slave station D (step S621). When the slave station D receives and receives the control frame, the process of validating the second file D2 is performed based on the content (step S622). Further, the control frame response unit 61 of the slave station D transmits the control response frame to the management station X after the activation of the second page D2 is completed (step S623).
管理台X之網路存在確認處理部,係當從從屬台D接收埠控制響應訊框時,從第1與第2埠X1、X2將網路存在確認訊框以廣播方式進行傳送(步驟S631、S635)。The network presence confirmation processing unit of the management station X transmits the network presence confirmation frame from the first and second frames X1 and X2 in a broadcast manner when receiving the frame control response frame from the slave station D (step S631). , S635).
從管理台X之第1埠X1所傳送之網路存在確認訊框,係在從屬台A接收,且從從屬台A回傳網路存在確認響應訊框(步驟S632)。此外,在從屬台A中,係將網路存在確 認訊框之內容一部分重寫而從第2埠A2重送至第1埠A1(步驟S633)。在從屬台B,當接收網路存在確認訊框時,雖亦將網路存在確認響應訊框對管理台X進行傳送(步驟S634),惟由於從屬台B之第1埠B1係被無效化,因此網路存在確認訊框之重送不進行。另外,在從從屬台A、B傳送之網路存在確認響應訊框中,係包含有直到傳送網路存在確認響應訊框為止之間由鏈結狀態確認部66所確認之各埠之鏈結狀態。The network presence confirmation frame transmitted from the first node X1 of the management station X is received by the slave station A, and the network presence confirmation response frame is returned from the slave station A (step S632). In addition, in the subordinate station A, the network is indeed present. The content of the frame is partially rewritten and retransmitted from the second 埠A2 to the first 埠A1 (step S633). At the slave station B, when the receiving network presence confirmation frame, the network presence confirmation response frame is transmitted to the management station X (step S634), but the first node B1 of the slave station B is invalidated. Therefore, the network does not send the confirmation frame. In addition, in the network presence confirmation response frame transmitted from the slave stations A and B, the link of each link confirmed by the link state confirming unit 66 until the transmission network presence confirmation response frame is included. status.
另一方面,從管理台X之第2埠X2所傳送之網路存在確認訊框,係在從屬台D接收,且從從屬台D回傳網路存在確認響應訊框(步驟S636)。此外,在從屬台D中,係將網路存在確認訊框之內容一部分重寫而從第1埠D1重送至第2埠D2(步驟S637)。同樣地,在從屬台C,當接收網路存在確認訊框時,亦將網路存在確認響應訊框傳送至管理台X(步驟S638),且將網路存在確認訊框之內容之一部分重寫而從第1埠C1重送至第2埠C2(步驟S639)。然而,由於從屬台B之第1埠B1係被無效化,因此所接收之網路存在確認訊框,並未到達從屬台B。另外,在從從屬台C、D傳送之網路存在確認響應訊框中,係包含有直到傳送網路存在確認響應訊框為止之間由鏈結狀態確認部66所確認之各埠之鏈結狀態。On the other hand, the network presence confirmation frame transmitted from the second node X2 of the management station X is received by the slave station D, and the network presence confirmation response frame is returned from the slave station D (step S636). Further, in the slave station D, a part of the content of the network presence confirmation frame is rewritten and retransmitted from the first 埠D1 to the second 埠D2 (step S637). Similarly, in the slave station C, when the receiving network presence confirmation frame, the network presence confirmation response frame is also transmitted to the management station X (step S638), and part of the content of the network presence confirmation frame is heavy. The write is repeated from the first 埠C1 to the second 埠C2 (step S639). However, since the first node B1 of the slave station B is invalidated, the received network has a confirmation frame and does not reach the slave station B. In addition, in the network presence confirmation response frame transmitted from the slave stations C and D, the link of each link confirmed by the link state confirming unit 66 until the transmission network presence confirmation response frame is included. status.
在此,管理台X之網路存在確認處理部22,係當接收網路存在確認響應訊框時啟動計時器21,且判定在預定時間內是否接收網路存在確認響應訊框。再者,於預定時間 內已接收網路存在確認響應訊框時,係重設計時器21,且進行重新計時。在此,在從屬台C之前端係未連接有其他從屬台(從屬台C之前端之從屬台B之第1埠B1係設為無效),因此當接收來自從屬台C之網路存在確認響應訊框而重設計時器時,成為時間暫停(步驟S640)。Here, the network presence confirmation processing unit 22 of the management station X starts the timer 21 when receiving the network presence confirmation response frame, and determines whether or not the network presence confirmation response frame is received within a predetermined time. Again, at the scheduled time When the network has received the confirmation response frame, the timer 21 is reset and the timer is re-timed. Here, the other slave stations are not connected to the slave station C (the first slave B of the slave station B at the front end of the slave station C is invalid), so when receiving the network presence confirmation response from the slave station C When the timer is reset and the timer is reset, the time pause is made (step S640).
此外,網路存在確認處理部22係每當從各從屬台A至D接收網路存在確認響應訊框時,如實施形態1所說明,就產生網路連接資訊,且記憶於網路連接資訊記憶部23。此時,來自所有從屬台A至D之鏈結狀態資訊為正常時,管理台X即可掌握網路構成為屬於冗餘環架構之情形(步驟S641)。In addition, when the network presence confirmation processing unit 22 receives the network presence confirmation response frame from each of the slave stations A to D, as described in the first embodiment, the network connection information is generated and stored in the network connection information. Memory unit 23. At this time, when the link state information from all the slave stations A to D is normal, the management station X can grasp that the network is configured to belong to the redundant ring architecture (step S641).
之後,管理台X之符記巡迴順序決定部25係使用網路連接資訊而決定符記巡迴順序(步驟S651),且記憶於符記巡迴順序資訊記憶部26。接著,管理台X之設置處理部27係使用記憶在符記巡迴順序資訊記憶部26之符記巡迴順序,產生用以通知各通信節點之符記巡迴目的地資訊之設置訊框,且對於各從屬台A至D進行傳送(步驟S652)。之後,各從屬台A至D之控制訊框響應部61係產生相對於所接收之設置訊框之設置響應訊框,且對管理台X進行傳送(步驟S653)。Thereafter, the schedule order determining unit 25 of the management station X determines the tour sequence using the network connection information (step S651), and stores it in the note tour order information storage unit 26. Next, the setting processing unit 27 of the management station X generates a setting frame for notifying the communication destination information of each communication node by using the characterizing the tour sequence stored in the characterizing the tour order information storage unit 26, and The slave stations A to D perform transmission (step S652). Thereafter, the control frame response unit 61 of each of the slave stations A to D generates a setting response frame with respect to the received setting frame, and transmits to the management station X (step S653).
接著,管理台X係當接收來自所有從屬台A至D之設置響應訊框,且辨識管理台X所發行之設置訊框已正常到達從屬台A至D時,線連接管理部24係使自台(管理台)之第2埠X2無效化(步驟S661),並且傳送使從屬台B之 第1埠B1有效化之埠控制訊框(步驟S662)。之後,從屬台B之埠傳送接收控制部62,係當接收埠控制訊框時,依據其內容,進行使第1埠B1有效化之處理(步驟S663)。再者,從屬台B之控制訊框響應部,係將顯示第1埠B1之有效化完成之埠控制響應訊框對管理台X進行傳送(步驟S664)。再者,管理台X係開始使用符記訊框之通信(步驟S671)。Then, when the management station X receives the setting response frame from all the slave stations A to D, and the setting frame issued by the identification management station X has arrived at the slave stations A to D normally, the line connection management unit 24 The second node X2 of the station (the management station) is invalidated (step S661), and the slave station B is transferred. The first frame B1 is activated by the control frame (step S662). Thereafter, the slave station B transmits and receives the control unit 62, and when receiving the frame control frame, performs processing for validating the first frame B1 based on the content (step S663). Further, the control frame response unit of the slave station B transmits the control response frame to the management station X after the activation of the first page B1 is completed (step S664). Furthermore, the management station X starts communication using the character frame (step S671).
另外,在上述之說明中,雖係就從屬台之電源復原時進行了說明,惟在纜線復原時亦可以同樣方式進行處理。Further, in the above description, although the power supply of the slave station has been restored, the processing can be performed in the same manner when the cable is restored.
依據此實施形態5,具有在由於某原因而使從網路脫離之從屬台復原時,可迅速檢測該復原而進行網路存在確認處理之效果。According to the fifth embodiment, when the slave station that has detached from the network is restored for some reason, it is possible to quickly detect the restoration and perform the network presence confirmation processing.
第21圖係為顯示以符記方式進行資料訊框之傳送中之狀態圖。在此第21圖中,1台管理台X與5台從屬台A至E係處於以傳輸路連接成環狀之狀態,而從屬台C之第1埠C1與從屬台D之第2埠D2係被無效化,且作為線型進行資料訊框之傳送接收。Figure 21 is a diagram showing the state of the data frame transmitted in the form of a symbol. In Fig. 21, one management station X and five slave stations A to E are in a state of being connected in a ring shape by a transmission path, and the first port C1 of the slave station C and the second port D2 of the slave station D. It is invalidated, and the data frame is transmitted and received as a line type.
第22圖係為示意性顯示從第21圖之狀態變更纜線之連接之狀態圖。在此,係顯示從第21圖之狀態,將與從屬台D之第1埠D1連接之纜線101A、及與從屬台C之第2埠C2連接之纜線101B同時迅速切換於集線器(hub)110之各自不同之埠之情形。以此種情形而言,會有纜線101A、101B之切換,在由鏈結確認信號檢測出纜線拔除之前完成 之情形、及雖檢測出纜線101A、101B之切換,惟鏈結確認信號在往管理台X之路徑之途中消失之情形等。在第21圖之網路狀態中,由於從屬台E之第2埠E2、及從屬台B之第1埠B1分別有效,因此在第22圖中從屬台E之第2埠E2、與從屬台B之第1埠B1亦有效。結果,網路係成為線型拓撲結構,產生相同訊框持續繞行於環型傳輸路之訊框風暴。Fig. 22 is a view schematically showing a state in which the connection of the cable is changed from the state of Fig. 21. Here, in the state shown in Fig. 21, the cable 101A connected to the first port D1 of the slave station D and the cable 101B connected to the second port C2 of the slave station C are quickly switched to the hub (hub). ) 110 different situations. In this case, there will be a switch of the cables 101A, 101B, which is completed before the cable is detected by the link confirmation signal. In the case of detecting the switching of the cables 101A and 101B, the link confirmation signal disappears on the way to the path of the management station X. In the network state of FIG. 21, since the second 埠E2 of the slave station E and the first 埠B1 of the slave station B are respectively valid, the second 埠E2 of the slave station E in FIG. 22 and the slave station The first 埠B1 of B is also valid. As a result, the network becomes a linear topology that produces a frame storm that continues to bypass the ring-shaped transmission path for the same frame.
此種訊框風暴在符記訊框消失,時間暫停產生時,或接收符記訊框時,均為存在傳送至管理台X之訊框之狀態。成為此種狀態時,傳輸路係經常成為使用中,因此網路不再發揮功能。因此,在此實施形態6中,係針對亦可對應成為此種訊框風暴狀態之情形之通信系統進行說明。Such a frame storm disappears in the character frame, when the time is paused, or when the message frame is received, there is a state of the frame transmitted to the management station X. When this state is reached, the transmission path is often in use, so the network is no longer functioning. Therefore, in the sixth embodiment, a communication system that can also respond to the situation of such a frame storm state will be described.
此實施形態6之管理台X,雖具有與第17圖相同構成,惟在網路監視部30具有監視訊框風暴狀態之產生之功能,及在線連接管理部24具有在網路監視部30檢測出訊框風暴之產生時,使第1與第2埠11-1、11-2間之重送功能停止之功能。此外,網路監視部30亦具有在停止第1與第2埠11-1、11-2間之重送功能之後,當確認於預定之時間未傳送管理台之訊框時,將該內容通知線連接管理部24與網路存在確認處理部22之功能。當接收來自網路監視部30之訊框風暴已結束之內容之通知時,線連接管理部24係解除第1與第2埠11-1、11-2間之重送功能之停止,此外網路存在確認處理部22係開始網路存在確認處理。另外,關於其他構成,係與上述實施形態相同,故省略其說 明。The management station X of the sixth embodiment has the same configuration as that of the seventeenth diagram, but the network monitoring unit 30 has a function of monitoring the occurrence of the frame storm state, and the online connection management unit 24 has the network monitoring unit 30 detecting The function of stopping the resending function between the first and second ports 11-1 and 11-2 when the frame storm occurs. Further, the network monitoring unit 30 also notifies that the content of the management station is not transmitted after the predetermined time has elapsed after the retransmission function between the first and second ports 11-1 and 11-2 is stopped. The line connection management unit 24 and the network presence confirmation processing unit 22 have functions. When receiving the notification of the content of the frame storm from the network monitoring unit 30, the line connection management unit 24 cancels the stop of the resending function between the first and second ports 11-1 and 11-2. The road presence confirmation processing unit 22 starts the network presence confirmation process. In addition, since the other configuration is the same as that of the above embodiment, the description thereof is omitted. Bright.
接著說明實施形態6之避免訊框風暴之處理之順序。首先,從第21圖之狀態如第22圖所示,藉由纜線101A、101B之替換,所有通信節點之所有埠成為有效狀態之環型拓撲結構。之後,管理台X之網路監視部30即使產生符記訊框消失之時間暫停,或即使接收符記訊框,由於存在傳送至管理台X之訊框,因此亦辨識成為訊框風暴狀態。Next, the sequence of the processing for avoiding frame storms in Embodiment 6 will be described. First, from the state of Fig. 21, as shown in Fig. 22, by the replacement of the cables 101A, 101B, all the turns of all the communication nodes become the ring topology of the active state. Thereafter, the network monitoring unit 30 of the management station X is suspended even if the time at which the character frame disappears, or even if the frame is received, since it is transmitted to the management station X, it is recognized as a frame storm state.
之後,當由網路監視部30檢測出訊框風暴之狀態之產生時,線連接管理部24係停止第1埠X1與第2埠X2之間之重送功能。Thereafter, when the network monitoring unit 30 detects the occurrence of the state of the frame storm, the line connection management unit 24 stops the resending function between the first 埠X1 and the second 埠X2.
之後,網路監視部30係當確認預定時間未存在傳送至管理台X之訊框時,線連接管理部24係解除第1埠X1與第2埠X2之間之重送功能的停止,而網路存在確認處理部22係進行網路存在確認處理。另外,網路存在確認處理係以實施形態1、2所說明之順序進行,因此在此省略其詳細內容。After that, when the network monitoring unit 30 confirms that there is no frame transmitted to the management station X for a predetermined period of time, the line connection management unit 24 cancels the stop of the resending function between the first 埠X1 and the second 埠X2. The network presence confirmation processing unit 22 performs network presence confirmation processing. In addition, the network presence confirmation processing is performed in the order described in the first and second embodiments, and thus the detailed description thereof is omitted here.
依據此實施形態6,係具有以無效化之埠不存在於網路內之方式迅速進行纜線之切換,即使產生訊框風暴時,亦可恢復網路至正常狀態之效果。According to the sixth embodiment, the cable is quickly switched in such a manner that the invalidation does not exist in the network, and the effect of restoring the network to the normal state can be restored even if a frame storm occurs.
如上所述,本發明之通信系統係適用於在以傳輸路連接成環狀之通信節點間呈連接成線狀之網路之形態進行通信之情形。As described above, the communication system of the present invention is suitable for communication in the form of a network connected in a line shape between communication nodes connected in a ring shape by a transmission path.
11-1、11-2‧‧‧埠11-1, 11-2‧‧‧埠
20‧‧‧通信處理部20‧‧‧Communication Processing Department
21‧‧‧計時器21‧‧‧Timer
22‧‧‧網路存在確認處理部22‧‧‧Network Presence Confirmation Processing Department
23‧‧‧網路連接資訊記憶部23‧‧‧Network Connection Information Memory
24‧‧‧線連接管理部24‧‧‧Wire Connection Management Department
25‧‧‧符記巡迴順序決定部25‧‧‧Responsible Circuit Order Determination Department
26‧‧‧符記巡迴順序資訊記憶部26‧‧‧Meeting Tour Order Information Memory Department
27‧‧‧設置處理部27‧‧‧Set Processing Department
28‧‧‧符記訊框處理部28‧‧‧Function Frame Processing Department
29‧‧‧資料訊框通信處理部29‧‧‧Information Frame Communication Processing Department
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW102104749A TWI474678B (en) | 2009-06-12 | 2009-06-12 | Communication management device and data communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW102104749A TWI474678B (en) | 2009-06-12 | 2009-06-12 | Communication management device and data communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201330552A TW201330552A (en) | 2013-07-16 |
TWI474678B true TWI474678B (en) | 2015-02-21 |
Family
ID=49225899
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW102104749A TWI474678B (en) | 2009-06-12 | 2009-06-12 | Communication management device and data communication method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI474678B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW308767B (en) * | 1995-03-13 | 1997-06-21 | Ibm | |
TW545014B (en) * | 1999-09-10 | 2003-08-01 | Matsushita Electric Ind Co Ltd | Network bus bridge and system |
TWI236813B (en) * | 2002-01-23 | 2005-07-21 | Ibm | Method and system for simultaneous management of multiple tokens on a communication ring |
TWI280007B (en) * | 2003-06-18 | 2007-04-21 | Diseno Sistemas Silicio Sa | Transmission medium access procedure of multiple communication nodes over the electrical network |
WO2007126571A2 (en) * | 2006-03-31 | 2007-11-08 | Symbol Technologies, Inc. | Token passing protocol rfid systems |
-
2009
- 2009-06-12 TW TW102104749A patent/TWI474678B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW308767B (en) * | 1995-03-13 | 1997-06-21 | Ibm | |
TW545014B (en) * | 1999-09-10 | 2003-08-01 | Matsushita Electric Ind Co Ltd | Network bus bridge and system |
TWI236813B (en) * | 2002-01-23 | 2005-07-21 | Ibm | Method and system for simultaneous management of multiple tokens on a communication ring |
TWI280007B (en) * | 2003-06-18 | 2007-04-21 | Diseno Sistemas Silicio Sa | Transmission medium access procedure of multiple communication nodes over the electrical network |
WO2007126571A2 (en) * | 2006-03-31 | 2007-11-08 | Symbol Technologies, Inc. | Token passing protocol rfid systems |
Also Published As
Publication number | Publication date |
---|---|
TW201330552A (en) | 2013-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101357449B1 (en) | Communication managing apparatus, communication nodes, and data communication method | |
KR102374677B1 (en) | Method and apparatus for managing terminal using wireless communication | |
CN102307131B (en) | Double ring network system, communication control method thereof, and transmission station | |
TWI483586B (en) | Communication management device, communication node, and data communication method | |
JP2006510181A (en) | System and method for lighting control network recovery from master failure | |
CN102394787A (en) | Dual-link redundancy control method based on EPA switch | |
JP2009237936A (en) | Information collection apparatus, method and program | |
EP0877322B1 (en) | State information managing method and communication system | |
JPWO2014184952A1 (en) | Communication device and vehicle transmission system | |
TWI474678B (en) | Communication management device and data communication method | |
JP5165093B2 (en) | Communication management apparatus and data communication method | |
TWI422190B (en) | Communication management device, communication node, and data communication method | |
CN103220201B (en) | A kind of method and device of detection and protection of ring network faults | |
CN103139034B (en) | Communications Management Units and data communications method | |
JP5308299B2 (en) | Wireless communication network system and wireless data communication apparatus | |
JP2016139285A (en) | Radio disaster prevention system and relay node | |
JPH10150457A (en) | Monitoring method for transmission device | |
JPH11177550A (en) | Monitor system for network | |
JP6620641B2 (en) | Management system, switch, management method and management program | |
JP4725271B2 (en) | Ring network monitoring method, network device, and ring network system | |
JPH1117713A (en) | Multicast communication processing system | |
JP2009159080A (en) | Remote monitoring control system | |
JP4823946B2 (en) | Transmission control system and transmission control method | |
JP2005191909A (en) | Communication controller and communication control method | |
JP2000049838A (en) | Alarm collection system and its collection method |