TWI459757B - A interconnection management method and redundancy mechanism between a ring network and other networks - Google Patents

A interconnection management method and redundancy mechanism between a ring network and other networks Download PDF

Info

Publication number
TWI459757B
TWI459757B TW96144852A TW96144852A TWI459757B TW I459757 B TWI459757 B TW I459757B TW 96144852 A TW96144852 A TW 96144852A TW 96144852 A TW96144852 A TW 96144852A TW I459757 B TWI459757 B TW I459757B
Authority
TW
Taiwan
Prior art keywords
path
node
network
external
nodes
Prior art date
Application number
TW96144852A
Other languages
Chinese (zh)
Other versions
TW200924437A (en
Inventor
Jiunn Jer Sun
Yu Hung Liu
Min Lung Chen
Original Assignee
Korenix Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Korenix Technology Co Ltd filed Critical Korenix Technology Co Ltd
Priority to TW96144852A priority Critical patent/TWI459757B/en
Publication of TW200924437A publication Critical patent/TW200924437A/en
Application granted granted Critical
Publication of TWI459757B publication Critical patent/TWI459757B/en

Links

Description

網路間連結架構的運作方法 How to operate the inter-network link architecture

本發明係關於一種網路間連結架構的運作方法,特別適用於一環狀網路連結至至少一個外部網路的運作方法。 The invention relates to a method for operating an inter-network connection architecture, and is particularly suitable for a method for connecting a ring network to at least one external network.

請參照圖一,其係為習知環狀網路與一外部網路間連線的網路架構示意圖。如圖所示,環狀網路1係藉由複數條網路線(cable)將複數個節點(nodes)串連連結而構成。在環狀網路1中,封包訊息可透過環狀路徑(pathway),依序地傳向每個節點。 Please refer to FIG. 1 , which is a schematic diagram of a network architecture of a conventional ring network and an external network connection. As shown in the figure, the ring network 1 is constructed by connecting a plurality of nodes in series by a plurality of network cables. In the ring network 1, packet messages can be transmitted to each node sequentially through a ring path.

外部網路2,則可為單一網路設備、多個網路節點所連接起來的快速擴展樹協定(RAPID SPANNING TREE PROTOVOL,RSTP)網路或另一個環狀網路…等。 The external network 2 can be a single network device, a RAPID SPANNING TREE PROTOVOL (RSTP) network connected to multiple network nodes, or another ring network.

上述網路線在網路中係用來串聯網路裝置,且作為資料/訊息的傳輸路徑。網路線可為雙絞線(twisted pair cable)、同軸電纜線(coaxial cable)、光纖網路線(fiber optic cable)或者無線(wireless)之類的網路傳輸媒介。 The above network routes are used in the network to connect network devices and serve as a transmission path for data/messages. The network route may be a twisted pair cable, a coaxial cable, a fiber optic cable, or a network transmission medium such as wireless.

上述節點通常由電腦、終端設備或網路設備..等所構成。在網路的使用上,節點通常係指交換機。 The above nodes are usually composed of a computer, a terminal device, or a network device. In the use of the network, a node is usually referred to as a switch.

環狀網路1及外部網路2除了藉由內部的傳輸線路做資料傳輸之外,更可利用外部的連接線路來做環狀網路1與外部網路2間資料的傳輸。如圖所示,環狀網路1中之兩節點11、12分別透過兩連接線路連結至外部網路2之兩節點21、22。 In addition to the internal transmission line for data transmission, the ring network 1 and the external network 2 can use external connection lines to transmit data between the ring network 1 and the external network 2. As shown, the two nodes 11, 12 in the ring network 1 are respectively connected to the two nodes 21, 22 of the external network 2 through two connection lines.

其中,連接兩節點11、21的連接線路係為一被導通(forward)的主要路徑(active link)211,可用來傳輸資料 封包。連接兩節點12、22的連接線路係為一被阻隔(block)的備用路徑(standby link)212,係用來備援(redundancy)用,當主要路徑211斷線時才會被導通而啟用。 The connection line connecting the two nodes 11 and 21 is a forward active link 211, which can be used for transmitting data. Packet. The connection line connecting the two nodes 12, 22 is a blocked standby node 212, which is used for redundancy, and is enabled when the main path 211 is disconnected.

值得注意的是,上述網路架構在正常運作時,使用者必須設定由哪些節點去做連結動作,以及指定主要路徑及備用路徑。 It is worth noting that when the above network architecture is in normal operation, the user must set which nodes perform the linking action, and specify the primary path and the alternate path.

另外,備援機制的使用僅有一次,若啟用備援機制而導通備用路徑後,再發生斷線問題時,兩網路間就無法繼續進行資料的傳輸。而當主要路徑回復連線時,傳輸路徑會因使用者設定而由備用路徑轉換回主要路徑,導致網路拓墣改變。 In addition, the use of the backup mechanism is only one time. If the backup mechanism is enabled and the alternate path is turned on, and the disconnection problem occurs, the data cannot be transmitted between the two networks. When the primary path is replied to, the transmission path is switched back to the primary path by the alternate path due to user settings, resulting in a network topology change.

再者,環狀網路斷裂或外部網路斷裂時,亦無法進行修復。 Furthermore, when the ring network breaks or the external network breaks, it cannot be repaired.

因此,發明人有感於習知技術可以有更加精進之處,欲以改善。因此,便提出了一種更佳的兩網路間連結架構之運作方法。 Therefore, the inventor has a feeling that the prior art can be more refined and desired to be improved. Therefore, a better method of operating the inter-network connection architecture is proposed.

本發明之一目的係在於,藉由本發明之網路架構及其運作方法,可使兩網路間具有更強大更多層的備援能力(redundant ability)。 One of the objects of the present invention is that the network architecture of the present invention and its operation method can provide a more powerful and redundant capability between the two networks.

本發明之另一目的在於,藉由本發明之運作方法,當兩網路間加入新的外部線路時,網路拓璞結構不需再作轉變,不需任何回復時間(restore time=0),更不會有遺失封包的問題產生。 Another object of the present invention is that, by the operation method of the present invention, when a new external line is added between the two networks, the network topology does not need to be changed, and no recovery time (restore time=0) is required. There will be no problem with lost packets.

本發明提供一種網路間連結架構的運作方法,適用於一環狀網路(ring network)連結至至少一外部網路(foreign peer),其中環狀網路係藉由複數條網路線將複 數個節點串連連接而成。環狀網路至少藉由一條外部線路連結至外部網路,且每一外部線路係與環狀網路上之一節點連結,其運作方法包括耦合群組自動偵測、主要路徑與備援路徑之選定、耦合群組之維護、外部線路斷線與節點失效之修復、環狀網路破碎之修復、外部網路破碎之修復等。 The invention provides a method for operating an inter-network connection architecture, which is suitable for a ring network to be connected to at least one external peer. The ring network is complexed by a plurality of network routes. Several nodes are connected in series. The ring network is connected to the external network by at least one external line, and each external line is connected to one of the nodes on the ring network, and the operation method includes the automatic detection of the coupled group, the main path and the backup path. Maintenance of selected, coupled groups, repair of external line breaks and node failures, repair of ring network breaks, repair of external network breaks, etc.

其中,耦合群組自動偵測及主要路徑之選定至少包括下列步驟:當每一外部線路連結至每一節點時,每一節點隨即阻隔(block)連結至外部線路之埠。 The automatic detection of the coupling group and the selection of the main path include at least the following steps: when each external line is connected to each node, each node is then blocked and connected to the external line.

連結外部線路之節點週期性地透過外部線路發出問候(Hello)封包至外部網路。 The node connecting the external line periodically sends a hello packet to the external network through the external line.

連結外部線路之節點週期性地發出維持連線(keep alive)封包至環狀網路內之各節點。 The node connecting the external lines periodically issues a keep alive packet to each node in the ring network.

當連結外部線路之節點可同時接收到彼此所發送的問候(Hello)封包及維持連線(keep alive)封包時,上述這些節點所連結之外部線路係成為同一耦合群組(coupling group)內之備用路徑(standby path)。 When the node connecting the external line can simultaneously receive the hello packet and the keep alive packet sent by each other, the external circuit connected to the nodes is in the same coupling group. Standby path.

接著,選定耦合群組內之一備用路徑為一主要路徑(primary link),並予以導通(forward),而其他備用路徑則保持阻隔狀態。 Next, one of the alternate paths in the selected coupling group is a primary link and is forwarded, while the other alternate paths remain blocked.

關於本發明之優點與精神,以及更詳細的實施方式可以藉由以下的實施方式以及所附圖式得到進一步的瞭解。 The advantages and spirit of the present invention, as well as the more detailed embodiments, can be further understood from the following embodiments and the accompanying drawings.

耦合群組自動偵測: Coupling group auto detection:

請參照圖二A至圖二F,係為本發明網路間連結架構之自動偵測機制過程示意圖。如圖所示,本發明之網路間連結架構至少係由一環狀網路(ring network)3連結至至少一外部網路(foreign peer)2所構成。 Please refer to FIG. 2A to FIG. 2F, which are schematic diagrams of the automatic detection mechanism process of the inter-network connection architecture of the present invention. As shown in the figure, the inter-network connection architecture of the present invention is constructed by at least a ring network 3 connected to at least one foreign peer 2.

環狀網路3係藉由複數條網路線將複數個節點串連連接而成。環狀網路3至少藉由一條外部線路連結至外部網路。本發明實施例以三條線路說明,由321、322、323連結至外部網路2,且每一外部線路係與環狀網路3上之一節點連結。環狀網路3上的節點31、32、33分別藉由外部線路321、322、323連接至外部網路2的節點21、22、23。其中,外部網路2藉由多條外部線路與環狀網路3連接時,可形成迴圈路徑。也就是說,如本實施例所示,當封包經由三條外部線路321、322、323之其中之一傳輸至外部網路2時,封包會經由另外兩條外部線路回傳至環狀網路3。 The ring network 3 is formed by connecting a plurality of nodes in series by a plurality of network routes. The ring network 3 is connected to the external network by at least one external line. The embodiment of the present invention is illustrated by three lines, and is connected to the external network 2 by 321, 322, and 323, and each external line is connected to one of the nodes on the ring network 3. The nodes 31, 32, 33 on the ring network 3 are connected to the nodes 21, 22, 23 of the external network 2 by external lines 321, 322, 323, respectively. Wherein, when the external network 2 is connected to the ring network 3 by a plurality of external lines, a loop path can be formed. That is, as shown in this embodiment, when the packet is transmitted to the external network 2 via one of the three external lines 321, 322, 323, the packet is transmitted back to the ring network 3 via the other two external lines. .

在本發明實施例中,環狀網路3之一節點34更透過另一外部線路381連結至另一外部網路84。其中,外部網路84僅藉由一條外部線路381與環狀網路3連接,而無法形成迴圈路徑。也就是說,當封包經由外部線路381傳輸至外部網路84時,封包已無任何傳輸路徑可回傳至環狀網路3。 In the embodiment of the present invention, one node 34 of the ring network 3 is further connected to another external network 84 through another external line 381. The external network 84 is connected to the ring network 3 only by an external line 381, and a loop path cannot be formed. That is, when the packet is transmitted to the external network 84 via the external line 381, the packet has no transmission path back to the ring network 3.

在本發明實施例中,所述之外部網路2、84可包括單一網路設備、多個網路節點所連接起來的快速擴展樹協定(RAPID SPANNING TREE PROTOVOL,RSTP)網路或另一個環 狀網路…等。本發明所述之節點通常係由電腦、終端設備或網路設備..等所構成。一般來說,節點通常係指交換機。 In the embodiment of the present invention, the external network 2, 84 may include a single network device, a RAPID SPANNING TREE PROTOVOL (RSTP) network or another ring connected by multiple network nodes. Network...etc. The node according to the present invention is usually constituted by a computer, a terminal device or a network device. In general, a node is usually referred to as a switch.

如圖二A所示,當任一外部線路321、322、323、381連結至環狀網路3上任一節點31、32、33、34時,每一節點隨即阻隔(block)連結至外部線路321、322、323、381之埠。此時,所有外部線路321、322、323、381皆屬於僅能傳遞控制封包的傳輸路徑。 As shown in FIG. 2A, when any of the external lines 321, 322, 323, 381 is connected to any of the nodes 31, 32, 33, 34 on the ring network 3, each node is then blocked to the external line. 321, 322, 323, 381. At this time, all the external lines 321, 322, 323, and 381 belong to a transmission path that can only transmit the control packet.

值得注意的是,一般資料封包主要係經由未被阻隔的網路線路來傳遞,而被阻隔(block)的網路線路係不允許資料封包通過,只允許某些特定的控制封包通過。 It is worth noting that the general data packet is mainly transmitted through the unblocked network line, and the blocked network line does not allow the data packet to pass, and only certain specific control packets are allowed to pass.

接著,請參照圖二B至圖二E,連結外部線路321、322、323、381之節點31、32、33、34週期性地透過外部線路321、322、323、381發出問候(Hello)封包至外部網路2、84,以及週期性地發出維持連線(keep alive)封包至環狀網路3內之各節點。 Next, referring to FIG. 2B to FIG. 2E, the nodes 31, 32, 33, and 34 connecting the external lines 321, 322, 323, and 381 periodically issue a hello packet through the external lines 321, 322, 323, and 381. The external network 2, 84, and periodically a keep alive packet are sent to each node in the ring network 3.

其中,問候(Hello)封包及維持連線(keep alive)封包皆屬於控制封包,封包內容包含外部線路之使用者指定之優先等級、外部線路之連線速度、外部線路之埠號、節點之網路位址(mac address)。週期性發出問候(Hello)與維持連線(keep alive)封包的目地在於外部線路間之互相偵測與維護群組內之關係。 Among them, the hello packet and the keep alive packet belong to the control packet, and the packet content includes the priority level specified by the user of the external line, the connection speed of the external line, the nickname of the external line, and the network of the node. Path address (mac address). The purpose of periodically issuing hello and keep alive packets is the relationship between the mutual detection and maintenance of the external lines.

當數個節點可同時接收到彼此所發送的問候(Hello)封包及維持連線(keep alive)封包時,上述這些節點所連結之外部線路係成為同一耦合群組(coupling group)內之備用路徑(standby path)。 When several nodes can simultaneously receive the hello packets and the keep alive packets sent by each other, the external lines connected to the nodes are the alternate paths in the same coupling group. (standby path).

如圖二F所示,節點31、32、33皆可收到彼此發送到 環狀網路3之維持連線(keep alive)封包,以及彼此發送到外部網路2後回傳之問候(Hello)封包,故節點31、32、33所連結之外部線路321、322、323係成為同一耦合群組71內之備用路徑(standby path)。 As shown in Figure 2F, nodes 31, 32, and 33 can receive each other and send them to each other. The keep alive packet of the ring network 3 and the hello packet sent back to the external network 2, so the external lines 321 , 322 , 323 connected by the nodes 31 , 32 , 33 It becomes a standby path in the same coupling group 71.

當連結外部線路之節點在某一定時間之內未能收到其他外部線路所發送的問候(Hello)封包及維持連線(keep alive)封包之其中之一時,此外部線路會被視為獨立的外部線路(stand alone),該外部線路之埠會被直接導通(forward),允許資料封包通過。 When the node connecting the external line fails to receive one of the hello packet and the keep alive packet sent by the other external line within a certain period of time, the external line is regarded as independent. The external line (stand alone), the external line will be directly forwarded, allowing the data packet to pass.

如圖二E所示,環狀網路3之節點34與其他節點31、32、33皆可接收到彼此所發送的維持連線(keep alive)封包,但節點34不可接收到其他節點31、32、33之問候(Hello)封包,其他節點31、32、33亦無法接收到節點34所發出之問候(Hello)封包。因此,如圖二F所示,節點34所連結之外部線路381係自成另外一個耦合群組72。且由於此耦合群組72僅有自身一條外部線路381,故此外部線路381會直接導通,成為可傳輸資料封包之路徑。 As shown in FIG. 2E, the node 34 of the ring network 3 and the other nodes 31, 32, and 33 can receive the keep alive packets sent by each other, but the node 34 cannot receive other nodes 31, 32, 33 Hello (Hello) packet, other nodes 31, 32, 33 can not receive the hello packet sent by node 34. Thus, as shown in FIG. 2F, the external line 381 to which the node 34 is connected is self-contained into another coupling group 72. Moreover, since the coupling group 72 has only one external line 381 of its own, the external line 381 is directly turned on to become a path for transmitting data packets.

主要路徑與備援路徑之選定: Selection of primary and backup paths:

請參照圖三,其係為本發明網路間連結架構之主要路徑及第二路徑之選定示意圖。當上述耦合群組被偵測出來之後,接著便進行耦合群組中主要路徑(primary link)及第二路徑(secondary path)之選定。 Please refer to FIG. 3 , which is a schematic diagram of the main path and the second path of the inter-network connection architecture of the present invention. After the above coupling group is detected, the selection of the primary link and the secondary path in the coupling group is then performed.

如圖所示,本發明係選定耦合群組71內之一外部線路321為一主要路徑,並予以導通(forward),使得環狀網路 3與外部網路2間的資料封包可經由此主要路徑來傳輸。而耦合群組71內之其他備用路徑(外部線路322、323)則仍保持阻隔狀態。 As shown in the figure, the present invention selects one of the external lines 321 in the coupling group 71 as a main path and is forwarded to make a ring network. 3 Data packets with the external network 2 can be transmitted via this main path. The other alternate paths (external lines 322, 323) in the coupling group 71 remain in a blocking state.

選定耦合群組71內之主要路徑(外部線路321)後,接著便由耦合群組71內之備用路徑(外部線路322、323)選出一第二路徑(外部線路322)。當主要路徑(外部線路321)失效時,第二路徑(外部線路322)可隨即進行導通,以取代原本之主要路徑(外部線路321)而成為新的主要路徑。 After the main path (external line 321) in the coupling group 71 is selected, a second path (external line 322) is then selected by the alternate path (external lines 322, 323) in the coupling group 71. When the primary path (external line 321) fails, the second path (external line 322) can then be turned on to replace the original primary path (external line 321) to become the new primary path.

控制封包問候(Hello)與維持連線(keep alive)所攜帶的內容,提供上述主要路徑及第二路徑之選定條件,包括使用者設定的優先等級(User defined priority)、傳輸速度(link speed)、所連結之節點之網路實體位址(device MAC address)或連接埠的編號(port nimber)。依各外部線路提供之資訊相互比較以排定各線路之角色,其中排序在第一位即為主要路徑,第二位為第二路徑,其他則為備用路徑,而備用路徑也依序有其優先次序。 Controlling the content carried by the hello and keep alive, providing the selected conditions of the main path and the second path, including the user-defined priority (User defined priority) and the transmission speed (link speed). , the device MAC address of the connected node or the port nimber of the port. According to the information provided by each external line, the roles of each line are compared, wherein the first position is the primary path, the second is the second path, and the other is the alternate path, and the alternate path is also in order. Priorities.

耦合群組之維護: Maintenance of the coupled group:

上述選定主要路徑及第二路徑後,此網路間連結架構便進入正常運作的狀態。而且,連結外部線路321、322、323之節點31、32、33仍週期性地發出問候(Hello)封包及維持連線(keep alive)封包,以偵測各節點與各線路的連結狀態,維持耦合群組內各路徑的排序狀態(membership sorting order)。 After the selected primary path and the second path are selected, the inter-network connection architecture enters a normal state of operation. Moreover, the nodes 31, 32, and 33 connecting the external lines 321, 322, and 323 periodically issue Hello (Hello) packets and keep alive packets to detect the connection state of each node and each line, and maintain Coordinating the sorting order of each path within the group.

在某一特定的時間內,若一直未接收到耦合群組內某 一外部線路所連接之節點所發出的問候(Hello)封包或維持連線(keep alive)封包,則此外部線路將被移除在耦合群組71之外,並隨之進行耦合群組之路徑的重新排序(membership resort),產生新的角色關係。 In a certain period of time, if a certain group within the coupling group has not been received If a hello packet or a keep alive packet is sent by a node connected to the external line, the external line will be removed outside the coupling group 71, and the path of the coupling group will follow. The membership resort creates a new role relationship.

另外,本發明之實施例雖以三條外部線路為例,但實際上並不以此為限,且網路間連結架構之耦合群組內之路徑可為多條。而且,當網路間連結架構正常運作之後,仍可繼續增加外部線路來連接環狀網路與外部網路。 In addition, although the three external lines are taken as an example in the embodiment of the present invention, the present invention is not limited thereto, and the paths in the coupling group of the inter-network connection architecture may be multiple. Moreover, when the inter-network link architecture is functioning properly, external lines can continue to be added to connect the ring network to the external network.

新增之外部線路經上述自動偵測程序後,發現新增之外部線路屬於某一耦合群組時,此新增之外部線路即成為耦合群組內之另一新的備用路徑,並依照前述的路徑選定條件進行備援優先次序的排序。但當耦合群組內已有主要路徑時,主要路徑並不參與上述的排序,藉此可避免網路拓璞的變更。 After the newly added external line passes the above automatic detection procedure and finds that the newly added external line belongs to a certain coupling group, the newly added external line becomes another new alternate path in the coupled group, and according to the foregoing The path selects the condition for sorting the backup priorities. However, when there is a main path in the coupled group, the main path does not participate in the above sorting, thereby avoiding the change of the network topology.

外部線路斷線與節點失效之修復: Repair of external line breaks and node failures:

請參照圖四,其係為本發明網路間連結架構中主要路徑斷線時,啟動備援機制的示意圖。在網路間連結架構的運作過程中,當耦合群組內任一備用路徑斷線(link down)時,則連結此斷線之備用路徑之節點隨即發出一發出一上行連結斷線(uplink link down)封包,該斷線路徑會由耦合群組中移除,而耦合群組內之路徑則進行重新排序產生新的角色關係。 Please refer to FIG. 4 , which is a schematic diagram of starting a backup mechanism when the main path in the inter-network connection architecture of the present invention is disconnected. During the operation of the inter-network link architecture, when any alternate path in the coupling group is down, the node connecting the alternate path of the disconnection immediately sends an uplink disconnection (uplink link) Down) The packet is removed from the coupling group, and the paths within the coupling group are reordered to create a new role relationship.

如圖所示,當斷線之備用路徑為耦合群組之主要路徑(外部線路321)時,除了進行上述程序之外,更包括備援 機制的啟動。原第二路徑(外部線路322)因重新排序後變成為新的主要路徑,隨即導通該埠以保持環狀網路與外部網路之連通。 As shown in the figure, when the alternate path of the disconnection is the main path of the coupled group (external line 321), in addition to the above procedures, it also includes redundancy. The initiation of the mechanism. The original second path (external line 322) becomes a new primary path after reordering, and then the 埠 is turned on to maintain the connection between the ring network and the external network.

請參照圖五A至圖五C,其係為本發明網路間連結架構中,連結外部路徑之節點失效時,啟動備援機制的示意圖。在網路間連結架構的運作過程中,當耦合群組內任一路徑所連結之節點失效時,則鄰接失效節點之節點隨即發出環狀網路斷線(ring link down)封包至環狀網路上各節點,各耦合群組之節點收到該訊息之後,隨即發送問候(Hello)與維持連線(keep alive)封包,在某一特定時間內未收到者,將從耦合群組中移除並重新排序。 Please refer to FIG. 5A to FIG. 5C, which are diagrams showing the startup backup mechanism when the node connecting the external path fails in the inter-network connection architecture of the present invention. During the operation of the inter-network link architecture, when the node connected to any path in the coupled group fails, the node adjacent to the failed node immediately sends a ring link down packet to the ring network. On each node on the road, after receiving the message, each node of the coupled group sends a hello and keep alive packet, and if it is not received within a certain time, it will be moved from the coupled group. Except and reorder.

如圖五A所示,當失效之節點為連結主要路徑(外部線路321)之節點31時,鄰接失效節點31之節點隨即發出環狀網路斷線(ring link down)封包至環狀網路上各節點。 As shown in FIG. 5A, when the failed node is the node 31 connecting the main path (external line 321), the node adjacent to the failed node 31 immediately sends a ring link down packet to the ring network. Each node.

如圖五B所示,耦合群組內各路徑所連結之節點32、33隨即發出問候(Hello)封包及維持連線(keep alive)封包。當未收到主要路徑(外部線路321)所連結之節點31所發出之問候(Hello)封包及維持連線(keep alive)封包時,原本之主要路徑便移除於耦合群組71之外,而重新排序之結果,第二路徑(外部線路322)遞補為新的主要路徑,並選定另一備用路徑成為新的第二路徑。 As shown in FIG. 5B, the nodes 32 and 33 connected to the paths in the coupling group immediately issue a hello packet and a keep alive packet. When the hello packet and the keep alive packet sent by the node 31 connected to the primary path (external line 321) are not received, the original primary path is removed from the coupling group 71. As a result of the reordering, the second path (external line 322) is replenished as the new primary path and the other alternate path is selected as the new second path.

環狀網路破碎之修復: Repair of ring network breakage:

請參照圖六A至圖六D,其係為本發明網路間連結架構中,環狀網路發生一或兩個連結失效處時,啟動備援機 制的示意圖。 Please refer to FIG. 6A to FIG. 6D, which are the inter-network connection architectures of the present invention. When one or two connection failures occur in the ring network, the backup machine is started. Schematic diagram of the system.

如圖六A所示,此為網路間連結架構處於正常運作的狀態之示意圖。如圖六B所示,當環狀網路3發生一個連結失效處38時,鄰接連結失效處38之節點31、32隨即發出一環狀網路斷線(ring link down)封包至環狀網路3上之各節點。此時,耦合群組內之路徑所連結之各節點所發出之問候(Hello)封包及維持連線(keep alive)封包都還可正常接收到,並不需要做任何路徑變更,且資料封包亦可正常傳輸。 As shown in FIG. 6A, this is a schematic diagram of the state in which the inter-network connection architecture is in normal operation. As shown in FIG. 6B, when the ring network 3 has a link failure 38, the nodes 31, 32 adjacent to the link failure 38 then issue a ring link down packet to the ring network. Each node on the road 3. At this time, the hello packet and the keep alive packet sent by each node connected to the path in the coupling group can be normally received, and no path change is required, and the data packet is also Can be transmitted normally.

如圖六C所示,當環狀網路3發生第二個連結失效處39,此時環狀網路破碎為二,耦合群組中的部份備用路徑(外部線路322、323)所連結之節點32、33僅可收到主要路徑之問候(Hello)封包,而無法收到主要路徑(外部線路321)之維持連線(keep alive)封包,反之亦然。結果如圖六D所示,主要路徑(外部線路321)由耦合群組中被移除,另一主要路徑便從上述備用路徑(外部線路322、323)中選出,此時網路間連結架構便具有兩條主要路徑,連結破碎的環狀網路,以供資料的正常傳輸。 As shown in FIG. 6C, when the ring network 3 has a second connection failure 39, the ring network is broken into two, and some of the alternate paths (external lines 322, 323) in the coupling group are connected. The nodes 32, 33 can only receive the hello packet of the primary path and cannot receive the keep alive packet of the primary path (external line 321), and vice versa. As a result, as shown in FIG. 6D, the main path (external line 321) is removed from the coupling group, and the other main path is selected from the above-mentioned alternate path (external lines 322, 323). There are two main paths connecting the broken ring network for normal transmission of data.

外部網路破碎之修復: Repair of external network broken:

當斷裂發生於外部網路,使得耦合群組中的部份備用路徑(外部線路322、323)所連結之節點32、33僅可收到主要路徑(外部線路321)之維持連線(keep alive)封包,而無法收到主要路徑之問候(Hello)封包時,主要路徑(外部線路321)亦會被該耦合群組中移除,另一主要路徑便從上述備用路徑(外部線路322、323)中選出,此時網路間連 結架構便具有兩條主要路徑,以供資料的正常傳輸。 When the break occurs in the external network, the nodes 32, 33 connected to some of the alternate paths (external lines 322, 323) in the coupled group can only receive the connection of the main path (external line 321) (keep alive) When the packet is not received, the main path (external line 321) is also removed by the coupling group, and the other main path is from the above alternate path (external line 322, 323). ) selected, at this time, the Internet connection The junction architecture has two main paths for normal data transfer.

多樣的連結方式: Multiple ways to connect:

如圖六A所示,本實施例係由環狀網路之一個節點透過一條外部線路連接至外部網路的一個節點(一對一)。此外,請參照圖七A至圖七D,其係為本發明網路間連結架構之各種變化實施例。 As shown in FIG. 6A, this embodiment is connected to a node (one-to-one) of the external network by a node of the ring network through an external line. In addition, please refer to FIG. 7A to FIG. 7D, which are various modified embodiments of the inter-network connection architecture of the present invention.

如圖七A所示,其係為環狀網路之一個節點31透過三條外部線路分別連接至外部網路的三個節點21、22、23(一對多)。其中,此三條外部線路係為一耦合群組,可用來互相備援。 As shown in FIG. 7A, one node 31 of the ring network is respectively connected to three nodes 21, 22, 23 (one-to-many) of the external network through three external lines. The three external lines are a coupling group and can be used for mutual backup.

如圖七B所示,其係為環狀網路之三個節點31、32、33分別透過自身所連接之一條外部線路連接至外部網路的一個節點21(多對一)。其中,此三條外部線路係為一耦合群組,可用來互相備援。 As shown in FIG. 7B, the three nodes 31, 32, and 33 of the ring network are respectively connected to one node 21 (many to one) of the external network through one of the external lines connected thereto. The three external lines are a coupling group and can be used for mutual backup.

如圖七C所示,其係為環狀網路之三個節點31、32、33分別透過自身所連接之三條外部線路分別連接至外部網路的三個節點21、22、23(多對多)。其中,此九條外部線路係為一耦合群組,可用來互相備援。此實施例具有更多重的備援能力。 As shown in FIG. 7C, the three nodes 31, 32, and 33, which are ring networks, are respectively connected to the three nodes 21, 22, and 23 of the external network through three external lines connected thereto (multiple pairs) many). Among them, the nine external lines are a coupling group, which can be used for mutual backup. This embodiment has more heavy backup capabilities.

如圖七D所示,環狀網路3可連接至多個外部網路2、4、5、6而成為更大的網路架構。其中,環狀網路3之三個節點31、32、33分別透過外部線路321、322、323分別連接至外部網路2之三個節點21、22、23。此外,環狀網路3之同樣三個節點31、32、33亦分別透過外部線路341、 342、343分別連接至外部網路4之三個節點41、42、43。在此實施例中,外部線路321、322、323與外部線路341、342、343分屬兩個不同的群組。 As shown in Figure 7D, the ring network 3 can be connected to multiple external networks 2, 4, 5, 6 to become a larger network architecture. The three nodes 31, 32, and 33 of the ring network 3 are respectively connected to the three nodes 21, 22, and 23 of the external network 2 through the external lines 321, 322, and 323. In addition, the same three nodes 31, 32, and 33 of the ring network 3 also pass through the external line 341, 342, 343 are respectively connected to the three nodes 41, 42, 43 of the external network 4. In this embodiment, the external lines 321, 322, 323 and the external lines 341, 342, 343 belong to two different groups.

綜上所述,本發明之網路間連結架構的運作方法至少具有下列優點: In summary, the method for operating the inter-network connection architecture of the present invention has at least the following advantages:

一、藉由本發明之網路架構及其運作方法,可使兩網路間具有更強大更多次的備援能力(redundant ability)。 1. With the network architecture and operation method of the present invention, a stronger and more redundant capability can be obtained between the two networks.

二、運用本發明之網路架構不需額外設定節點角色、主要路徑及備用路徑,透過自動偵測機制即可自行完成設定。 Second, the network architecture using the present invention does not need to additionally set the node role, the main path and the alternate path, and the setting can be completed by the automatic detection mechanism.

三、當兩網路間加入新的外部線路作為備用路徑時,由於主要路徑不需參與重新排序,故網路拓璞結構不需再作轉變,不需任何回復時間(restore time=0),更不會有遺失封包的問題產生。 3. When a new external line is added as an alternate path between the two networks, since the main path does not need to participate in reordering, the network topology does not need to be changed, and no recovery time is required (restore time=0). There will be no problem with lost packets.

四、藉由本發明之技術與備援機制,當環狀網路產生兩個連結失效處,或者外部網路斷裂時,環狀網路與外部網路間的資料傳輸仍可正常運作。 4. With the technology and backup mechanism of the present invention, when the ring network generates two link failures, or the external network breaks, the data transmission between the ring network and the external network can still operate normally.

本發明雖以較佳實例闡明如上,然其並非用以限定本發明精神與發明實體僅止於上述實施例爾。對熟悉此項技術者,當可輕易了解並利用其它元件或方式來產生相同的功效。是以,在不脫離本發明之精神與範圍內所作之修改,均應包含在下述之申請專利範圍內。 The present invention has been described above by way of a preferred example, and it is not intended to limit the spirit of the invention and the inventive subject matter. Those skilled in the art can easily understand and utilize other components or means to produce the same effect. Modifications made within the spirit and scope of the invention are intended to be included within the scope of the appended claims.

1、3‧‧‧環狀網路 1, 3‧‧‧ ring network

2、4、5、6、84‧‧‧外部網路 2, 4, 5, 6, 84‧‧‧ external network

11、12、21、22、23、31、32、33、34、41、42、43‧‧‧節點 11, 12, 21, 22, 23, 31, 32, 33, 34, 41, 42, 43‧‧‧ nodes

211‧‧‧主要路徑 211‧‧‧ main path

212‧‧‧備用路徑 212‧‧‧Alternative path

321、322、323、341、342、343、381‧‧‧外部線路 321, 322, 323, 341, 342, 343, 381‧‧‧ external lines

藉由以下詳細之描述結合所附圖示,將可輕易的了解上述內容及此項發明之諸多優點,其中:圖一 係為習知環狀網路與一外部網路間連線的網路架構示意圖;圖二A至圖二F 係為本發明網路間連結架構之自動偵測機制過程示意圖;圖三 係為本發明網路間連結架構之主要路徑及第二路徑之選定示意圖;圖四 係為本發明網路間連結架構中主要路徑斷線時,啟動備援機制的示意圖;圖五A至圖五C 係為本發明網路間連結架構中,連結至主要路徑之節點失效時,啟動備援機制的示意圖;圖六A至圖六D 係為本發明網路間連結架構中,環狀網路發生一或兩個連結失效處時,啟動備援機制的示意圖;以及圖七A至圖七D 係為本發明網路間連結架構之各種變化實施例。 The above and other advantages of the invention will be readily understood by the following detailed description in conjunction with the accompanying drawings in which: FIG. 1 is a schematic diagram of a network architecture of a conventional ring network and an external network connection. Figure 2A to Figure 2F are schematic diagrams of the automatic detection mechanism of the inter-network connection architecture of the present invention; Figure 3 is a schematic diagram of the main path and the second path of the inter-network connection architecture of the present invention; The schematic diagram of starting the backup mechanism when the main path in the inter-network connection architecture of the present invention is disconnected; FIG. 5A to FIG. 5C are the inter-network connection architecture of the present invention, when the node connected to the main path fails, the startup is started. Schematic diagram of the backup mechanism; Figure 6A to Figure 6D are diagrams showing the startup backup mechanism when one or two connection failures occur in the ring network in the inter-network connection architecture of the present invention; and Figure 7A to Figure 7D is a diagram showing various variations of the inter-network connection architecture of the present invention.

3‧‧‧環狀網路 3‧‧‧Ring network

2‧‧‧外部網路 2‧‧‧External network

21、22、23、31、32、33‧‧‧節點 21, 22, 23, 31, 32, 33‧‧‧ nodes

321、322、323‧‧‧外部線路 321, 322, 323‧‧‧ external lines

Claims (8)

一種網路間連結的運作方法,適用於一環狀網路(ring network)連結至至少一外部網路(foreign peer),其中該環狀網路係藉由複數條網路線將複數個節點串連連接而成,該環狀網路係藉由複數條外部線路連結至外部網路,且每一該外部線路係與該環狀網路上之一該節點連結,該運作方法包括下列步驟:當每一該外部線路連結至每一該節點時,每一該節點隨即阻隔(block)連結至該外部線路之埠;連結該些外部線路之該些節點週期性地透過該外部線路發出問候(Hello)封包至該外部網路;連結該些外部線路之該些節點週期性地發出維持連線(keep alive)封包至該環狀網路之各該節點;當連結該些外部線路之該些節點可同時接收到彼此所發送的問候(Hello)封包及維持連線(keep alive)封包時,此上述該些節點所連結之該些外部線路係成為同一耦合群組(coupling group)內之備用路徑(standby path);選定該耦合群組內之一該備用路徑為一主要路徑(primary link),並予以導通(forward),其他該些備用路徑則保持阻隔狀態;連結該些外部線路之該些節點週期性地發出問候(Hello)封包及維持連線(keep alive)封包,以偵測各該節點與各線路的連結狀態,以維持排序狀態;當該耦合群組內任一路徑所連結之該節點失效時,鄰接該失效節點之節點發出環狀網路斷線(ring link down)封包至該環狀網路上各該節點,並將該耦合群組進行重新排序;當失效之該節點為連結該主要路徑之節點,且各該備用路徑所連結之節點未收到該主要路徑之問候(Hello)封包及維持連線(keep alive)封包時,更藉由將該耦合群組 重新排序,使該第二路徑轉變為新的主要路徑,並選定另一該備用路徑成為新的第二路徑;當該環狀網路發生兩個連結失效處,且該耦合群組中的部份該些備用路徑所連結之該節點未收到該主要路徑之維持連線(keep alive)封包時,更從該些備用路徑中選出另一主要路徑;以及當外部網路發生斷裂,且該耦合群組中的部份該些備用路徑所連結之該節點未收到該主要路徑之問候(Hello)封包時,更從該些備用路徑中選出另一主要路徑;其中,當增加另一外部線路,且經偵測後此該外部線路屬於該耦合群組時,此該外部線路即成為耦合群組內之另一備用路徑。 An operation method of inter-network connection is applicable to a ring network connected to at least one foreign peer, wherein the ring network is a plurality of node strings by a plurality of network routes Connected to each other, the ring network is connected to the external network by a plurality of external lines, and each of the external lines is connected to one of the nodes on the ring network, and the operation method comprises the following steps: Each of the external lines is connected to each of the nodes, and each of the nodes is then blocked to be connected to the external line; the nodes connecting the external lines periodically send a greeting through the external line (Hello Encapsulating to the external network; the nodes connecting the external lines periodically issue a keep alive packet to each node of the ring network; and when connecting the nodes of the external lines When receiving the hello packet and the keep alive packet sent by each other at the same time, the external lines connected to the nodes are the alternate paths in the same coupling group. (s Tandby path); one of the selected ones in the coupling group is a primary link and is forwarded, and the other alternate paths are kept in a blocking state; the nodes connecting the external lines Periodically issuing a hello packet and a keep alive packet to detect a connection state of each node and each line to maintain a sorting state; when any path in the coupling group is connected When the node fails, the node adjacent to the failed node sends a ring link down packet to each node on the ring network, and reorders the coupled group; when the node that is invalid is the link The node of the primary path, and the node connected to the alternate path does not receive the hello packet and the keep alive packet of the primary path, Reordering, transforming the second path into a new primary path, and selecting another alternate path to become the new second path; when the ring network has two link failures, and the part in the coupled group And when the node connected to the backup path does not receive the keep alive packet of the primary path, further select another primary path from the spare paths; and when the external network breaks, and the node When the node connected to the alternate path does not receive the hello packet of the primary path, the other primary path is selected from the alternate paths; wherein, when another node is added After the line is detected and the external line belongs to the coupled group, the external line becomes another alternate path in the coupled group. 如申請專利範圍第1項所述之運作方法,其中連結該些外部線路之該些節點週期性地發出問候(Hello)封包及維持連線(keep alive)封包之步驟中,當一節點在某一特定時間內,未能收到其他該外部線路所發送的問候(Hello)封包及維持連線(keep alive)封包之其中之一時,則上述該節點所連結至該外部線路之埠會直接導通(forward)。 The operation method of claim 1, wherein the nodes connecting the external lines periodically issue a hello packet and a keep alive packet, when a node is in a certain If one of the hello packets and the keep alive packet sent by the other external line is not received within a certain period of time, then the node connected to the external line directly connects to the external line. (forward). 如申請專利範圍第1項所述之運作方法,其中該主要路徑之選定條件係包括使用者設定的優先等級、傳輸速度、所連結之節點之網路實體位址(MAC address)或連接埠的編號。 The method of operation of claim 1, wherein the selected condition of the primary path includes a user-set priority level, a transmission speed, a MAC address of the connected node, or a connection port. Numbering. 如申請專利範圍第1項所述之運作方法,其中選定該主要路徑之步驟後,當任一該備用路徑斷線(link down)時,更包括下列步驟:發出一上行連結斷線(uplink link down)封包;由該耦合群組中移除斷線之該備用路徑;以及將耦合群組進行重新排序(membership resort)。 For example, in the operation method described in claim 1, wherein after the step of selecting the main path, when any of the alternate paths is down, the following steps are further included: issuing an uplink link disconnection (uplink link) Down) the packet; the alternate path of the disconnection is removed from the coupled group; and the coupling group is re-scheduled. 如申請專利範圍第4項所述之運作方法,其中當斷線之該備用路徑為該主要路徑時,更包括下列步驟:該第二路徑遞補成為主要路徑,並導通該埠維持該環狀網路與該外部網路之連通。 The operation method of claim 4, wherein when the alternate path of the disconnection is the primary path, the method further includes the following steps: the second path is replenished as a primary path, and the ring is maintained to maintain the ring network The road is connected to the external network. 如申請專利範圍第1項所述之運作方法,其中當失效之該節點為連結該主要路徑之節點,且各該備用路徑所連結之節點未收到該主要路徑之問候(Hello)封包及維持連線(keep alive)封包時,更包括下列步驟:藉由將該耦合群組重新排序,使該第二路徑轉變為新的主要路徑;以及選定另一該備用路徑成為新的第二路徑。 The operating method of claim 1, wherein the node that is inactive is a node that connects the primary path, and the node connected to the alternate path does not receive the hello packet and maintenance of the primary path. When the keep alive packet is encapsulated, the method further includes the steps of: converting the second path to a new primary path by reordering the coupling group; and selecting the other alternate path to become the new second path. 如申請專利範圍第1項所述之運作方法,其中該節點係由交換機所構成。 The method of operation of claim 1, wherein the node is formed by a switch. 如申請專利範圍第1項所述之運作方法,其中該外部網路係包括單一網路設備、多個網路節點所連接起來的快速擴展樹協定(Rapid Spanning Tree Protocol,RSTP)網路或另一個環狀網路。 The method of operation of claim 1, wherein the external network comprises a single network device, a Rapid Spanning Tree Protocol (RSTP) network connected by multiple network nodes, or another A ring network.
TW96144852A 2007-11-26 2007-11-26 A interconnection management method and redundancy mechanism between a ring network and other networks TWI459757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96144852A TWI459757B (en) 2007-11-26 2007-11-26 A interconnection management method and redundancy mechanism between a ring network and other networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96144852A TWI459757B (en) 2007-11-26 2007-11-26 A interconnection management method and redundancy mechanism between a ring network and other networks

Publications (2)

Publication Number Publication Date
TW200924437A TW200924437A (en) 2009-06-01
TWI459757B true TWI459757B (en) 2014-11-01

Family

ID=44729006

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96144852A TWI459757B (en) 2007-11-26 2007-11-26 A interconnection management method and redundancy mechanism between a ring network and other networks

Country Status (1)

Country Link
TW (1) TWI459757B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167742A (en) * 2018-08-15 2019-01-08 北京东土科技股份有限公司 Dual-homed agreement deployment system, method, apparatus, interchanger and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167742A (en) * 2018-08-15 2019-01-08 北京东土科技股份有限公司 Dual-homed agreement deployment system, method, apparatus, interchanger and storage medium

Also Published As

Publication number Publication date
TW200924437A (en) 2009-06-01

Similar Documents

Publication Publication Date Title
JP5361794B2 (en) Method and apparatus for maintaining a port state table in the forwarding plane of a network element
CN102077521B (en) Method and system for link aggregation
KR101204130B1 (en) Fault processing method, system and exchanging device based on industry ethernet network
JP4459018B2 (en) Node equipment
US8203932B2 (en) Method and system for protection switching in ethernet ring
US20070047453A1 (en) Reliable message transfer over an unreliable network
US7719956B2 (en) Trunk network system for multipoint-to-multipoint relay
CN101652963B (en) Method for reconfiguring a communications network
WO2006102826A1 (en) A method for realizing the backup of the data service
WO2012068996A1 (en) Method and device for detecting link state
JP2007208369A (en) Network system and node redundancy method therefor
WO2017113929A1 (en) Method and controller for controlling forwarding device cluster in software-defined networking
JP2010263395A (en) Network relay device, and ring network
WO2011076024A1 (en) Transmission multi-protocol label switching network system and link protection method
US20130016617A1 (en) Network relay device and control method thereof
WO2011097893A1 (en) Method, device and system for transmitting e1 bidirectional looped network data
US20090103554A1 (en) Data transfer device for ring protocol high speed switching and method for the same
US6724734B1 (en) Creating a spanning tree of a network including clusters
CN101820376A (en) Method and system for realizing rapid convergence in ring network
CN102388580A (en) Methods and apparatus for protecting a communications network
TWI459757B (en) A interconnection management method and redundancy mechanism between a ring network and other networks
CN106533771A (en) Network device and control information transmission method
JP2007228293A (en) Node device and communication system
CN106961355B (en) Network system and method for realizing network fault recovery by using shared standby router
US20110090783A1 (en) Method and system for smart protection of ethernet virtual private-rooted multipoint service