TWI756444B - Network interface cards, fabric cards, and line cards for loop avoidance in a chassis switch - Google Patents

Network interface cards, fabric cards, and line cards for loop avoidance in a chassis switch Download PDF

Info

Publication number
TWI756444B
TWI756444B TW107122591A TW107122591A TWI756444B TW I756444 B TWI756444 B TW I756444B TW 107122591 A TW107122591 A TW 107122591A TW 107122591 A TW107122591 A TW 107122591A TW I756444 B TWI756444 B TW I756444B
Authority
TW
Taiwan
Prior art keywords
card
switch
cards
network interface
mentioned
Prior art date
Application number
TW107122591A
Other languages
Chinese (zh)
Other versions
TW202002576A (en
Inventor
黃俊傑
Original Assignee
智邦科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 智邦科技股份有限公司 filed Critical 智邦科技股份有限公司
Priority to TW107122591A priority Critical patent/TWI756444B/en
Publication of TW202002576A publication Critical patent/TW202002576A/en
Application granted granted Critical
Publication of TWI756444B publication Critical patent/TWI756444B/en

Links

Images

Abstract

A network interface card disposed in a chassis switch, which includes a switch device and a controller, is provided. The switch device includes a plurality of port connected to a plurality of other network interface cards in the chassis switch. When the network interface card is a fabric card, the controller sets the ports to a forwarding state and sends a first control packet through each of the ports. In response to the network interface card being a root fabric card, the controller receives a plurality of second control packets from a plurality of line cards through the ports and determines one of the line cards as a designated line card according to a plurality of second IDs included in the second control packets. In response to the network interface card being a backup fabric card, the controller sets the ports other than the one connected to the designated line card to a listening state.

Description

避免在箱型交換機內形成迴圈之網路介面卡、交換卡、及線路卡 Network interface cards, switch cards, and line cards that avoid loops in box switches

本申請主要關於多張網路介面卡之間的路徑規劃技術,特別係有關於一種能夠避免在箱型交換機內形成迴圈之網路介面卡、交換卡、及線路卡。 The present application mainly relates to a path planning technology between a plurality of network interface cards, and particularly relates to a network interface card, a switch card, and a line card that can avoid the formation of loops in a box-type switch.

隨著網路技術的快速發展,人們對於網路頻寬的需求不僅開始逐年提高且對於網路環境的需求也時常有所變化,因此,在網路環境的架設方面需要考量到可動態且簡易地進行調整。 With the rapid development of network technology, people's demand for network bandwidth has not only begun to increase year by year, but also the demand for network environment has also changed from time to time. Therefore, the establishment of network environment needs to consider dynamic and simple make adjustments.

由於箱型交換機(switch chassis)可視不同的網路環境需求而選擇性地搭載不同的通訊元件,例如:一或多張網路介面等。因此,箱型交換機被廣泛地應用在網路環境的架設,而因為箱形交換器通常包含多張網路介面卡,所以衍生出管理這些網路介面卡的需求,通常是透過發送控制封包的方式來進行網路介面卡的管理。 Since the switch chassis can selectively carry different communication components, such as one or more network interfaces, depending on the requirements of different network environments. Therefore, box switches are widely used in the installation of network environments, and because box switches usually contain multiple network interface cards, the need to manage these network interface cards is derived, usually by sending control packets. way to manage the network interface card.

第1圖係顯示於傳統箱型交換機內各網路介面卡之間的控制封包傳送路徑示意圖。一般來說,箱型交換機中的每張網路介面卡可以是交換卡(Fabric card)或線路卡(Line card)。以第1圖為例,每張交換卡與每張線路卡係通訊連接,因而能彼此傳送控制封包而達到管理的目的。然而,由於任一交換卡及任一線路卡之間彼此互相通訊連結,控制封包的傳送路徑容易形成迴圈(Loop)。詳言之,這些網路介面卡之間的管理若是透過群播(Multicast)的方式來傳送控制封包以達成管理之目的,在傳送路徑上容易形成迴圈,而迴圈會進一步造成廣播風暴。廣播風暴不只會導致網路介面卡之間的通訊癱瘓(Traffic jam),也會因為處理重複的控制封包傳送而耗盡每張網路介面卡的資源,嚴重影響箱型交換機在管理上的效能。 FIG. 1 is a schematic diagram showing a transmission path of control packets between various network interface cards in a conventional box-type switch. Generally speaking, each network interface card in the box switch can be a switch card (Fabric card) or a line card (Line card). Taking Fig. 1 as an example, each switch card and each line card are connected in communication, so that they can transmit control packets to each other to achieve the purpose of management. However, since any switch card and any line card are connected to each other for communication, the transmission path of the control packet is likely to form a loop. To be more specific, if the management among these network interface cards is carried out by means of multicast (Multicast) to transmit control packets to achieve the purpose of management, loops are likely to be formed on the transmission path, and the loops will further cause broadcast storms. Broadcast storms will not only cause traffic jams between network interface cards, but also exhaust the resources of each network interface card due to the repeated transmission of control packets, which seriously affects the management performance of the box switch. .

此外,若為避免形成迴圈而進行控制封包的傳輸路徑規劃,因箱形交換機內各網路介面卡的動態變化特性(例如插入或拔出網路介面卡、故障等變化),不利於傳輸路徑的規劃,若再透過監控各網路介面卡的變化狀況來進行傳輸路徑的規劃,則額外使用控制器監控的方式,不僅增加箱形交換機的建置成本,更對其效能造成影響。 In addition, if the transmission path planning of control packets is carried out in order to avoid the formation of loops, it is not conducive to transmission due to the dynamic change characteristics of each network interface card in the box switch (such as changes in insertion or removal of network interface cards, failures, etc.). For path planning, if the transmission path is planned by monitoring the change status of each network interface card, the additional use of controller monitoring will not only increase the construction cost of the box switch, but also affect its performance.

本申請對實施例提出一種避免在箱型交換機內形成迴圈之網路介面卡、交換卡、及線路卡,除可在箱型交換機內避免封包傳輸路徑形成迴圈外,更可因應網路介面卡的各種狀態變化而自適應地(adaptive)完成避免形成迴圈的路徑規劃。 The present application proposes a network interface card, switch card, and line card that avoids forming loops in a box-type switch, in addition to avoiding loops in the packet transmission path in the box-type switch, it can also adapt to the network Various state changes of the interface card adaptively complete the path planning to avoid loop formation.

本申請之一實施例提供了一種網路介面卡,係可設置於一箱型交換機中。上述網路介面卡包括一交換裝置以及一控制器。上述交換裝置具有複數埠口,其中上述埠口連接到 上述箱型交換機中之複數其他網路介面卡,上述其他網路介面卡之每一者為一交換卡或一線路卡。當上述網路介面卡為交換卡時,控制器執行以下步驟:將上述埠口設定為一轉發(forwarding)狀態並透過每一上述埠口傳送一第一控制封包,因應上述網路介面卡被設定為一根源(root)交換卡而透過上述埠口接收來自複數線路卡之複數第二控制封包,並根據上述第二控制封包所包括之複數第二識別碼決定上述線路卡之一者為一指定(designated)線路卡,以及因應上述網路介面卡被設定為一後備交換卡而將上述埠口中除了連接至上述指定線路卡以外者設定為一聆聽(listening)狀態。另外,當上述網路介面卡為線路卡時,上述控制器更執行以下步驟:將上述埠口設定為上述聆聽狀態並透過上述埠口從複數交換卡之每一者接收上述第一控制封包,根據上述第一控制封包所包括之複數第一識別碼而決定上述交換卡之一者為上述根源交換卡以及決定上述交換卡之剩餘者為一或多張後備交換卡,以及因應上述網路介面卡為上述指定線路卡而將上述埠口設定為上述轉發狀態。 An embodiment of the present application provides a network interface card, which can be installed in a box-type switch. The above-mentioned network interface card includes a switching device and a controller. The switching device has a plurality of ports, wherein the ports are connected to a plurality of other network interface cards in the box-type switch, and each of the other network interface cards is a switch card or a line card. When the network interface card is a switch card, the controller executes the following steps: setting the ports to a forwarding state and transmitting a first control packet through each of the ports. Set as a root switch card and receive a plurality of second control packets from a plurality of line cards through the above-mentioned port, and determine one of the above-mentioned line cards according to the plurality of second identification codes included in the above-mentioned second control packets. Designating a line card, and setting the ports other than those connected to the designated line card to a listening state in response to the network interface card being set as a backup switch card. In addition, when the network interface card is a line card, the controller further performs the following steps: setting the port to the listening state and receiving the first control packet from each of the plurality of switching cards through the port, According to the plurality of first identification codes included in the first control packet, one of the above-mentioned exchange cards is determined as the above-mentioned source exchange card, and the remaining ones of the above-mentioned exchange cards are determined as one or more backup exchange cards, and according to the above-mentioned network interface The card is the designated line card and sets the port to the forwarding state.

本申請之另一實施例提供了一種交換卡,係可設置於一箱型交換機中。上述交換卡包括一交換裝置以及一控制器。上述交換裝置具有複數埠口,其中上述埠口連接到上述箱型交換機中之複數線路卡。上述控制器用以將上述埠口設定為一轉發狀態並透過每一上述埠口傳送包括一第一識別碼之一第一控制封包,因應在一時間區間內透過上述埠口接收來自上述線路卡之複數第二控制封包而執行以下步驟:根據上述第二 控制封包所包括之複數第二識別碼決定上述線路卡之一者為一指定線路卡,以及透過每一上述埠口傳送一第三控制封包,其中上述第三控制封包包括上述指定線路卡以及上述交換卡為一根源交換卡之資訊。 Another embodiment of the present application provides a switch card, which can be installed in a box-type switch. The above-mentioned switch card includes a switch device and a controller. The switching device has a plurality of ports, wherein the ports are connected to a plurality of line cards in the box-type switch. The controller is used for setting the ports to a forwarding state and transmitting a first control packet including a first identification code through each of the ports, in response to receiving a message from the line card through the port within a time interval. A plurality of second control packets are executed to perform the following steps: determining one of the line cards as a designated line card according to the plurality of second identification codes included in the second control packets, and transmitting a third control packet through each of the ports , wherein the third control packet includes the information of the designated line card and the switch card being a source switch card.

本申請之又一實施例提供了一種線路卡,係可設置於一箱型交換機中。上述線路卡包括一交換裝置以及一控制器。上述交換裝置具有複數埠口,其中上述埠口連接到上述箱型交換機中之複數交換卡。上述控制器用以將上述埠口設定為一聆聽狀態並透過上述埠口從上述交換卡之接收複數第一控制封包,根據上述第一控制封包所包括之複數第一識別碼而決定上述交換卡之一者為一根源交換卡,以及將上述埠口中連接至上述根源交換卡之一者設定為一轉發狀態以傳送包括一第二識別碼之一第二控制封包。 Yet another embodiment of the present application provides a line card, which can be installed in a box-type switch. The above-mentioned line card includes a switching device and a controller. The switching device has a plurality of ports, wherein the ports are connected to a plurality of switching cards in the box-type switch. The above-mentioned controller is used for setting the above-mentioned port to a listening state and receiving a plurality of first control packets from the above-mentioned switching card through the above-mentioned port, and determining the above-mentioned switching card according to the plurality of first identification codes included in the above-mentioned first control packet. One is a source switch card, and one of the ports connected to the source switch card is set to a forwarding state to transmit a second control packet including a second identification code.

關於本申請其他附加的特徵與優點,此領域之熟習技術人士,在不脫離本申請之精神和範圍內,當可根據本案實施方法中所揭露之網路介面卡、交換卡、以及線路卡做些許的更動與潤飾而得到。 Regarding other additional features and advantages of the present application, those skilled in the art, without departing from the spirit and scope of the present application, can make use of the network interface cards, switch cards, and line cards disclosed in the implementation method of the present application. Obtained with a few alterations and refinements.

100‧‧‧箱型交換機 100‧‧‧Box Switch

11~14‧‧‧交換卡 11~14‧‧‧Exchange Card

21~28‧‧‧線路卡 21~28‧‧‧Line Card

310、410‧‧‧控制器 310, 410‧‧‧Controller

320、420‧‧‧儲存裝置 320, 420‧‧‧ storage device

330、430‧‧‧交換裝置 330, 430‧‧‧Switch

340-1~340-8、440-1~440-4‧‧‧埠口 340-1~340-8, 440-1~440-4‧‧‧Port

S501~S522‧‧‧步驟編號 S501~S522‧‧‧Step No.

第1圖係顯示於傳統箱型交換機內各網路介面卡之間的控制封包傳送路徑示意圖。 FIG. 1 is a schematic diagram showing a transmission path of control packets between various network interface cards in a conventional box-type switch.

第2圖係根據本申請一實施例所述之一箱型交換機之內複數張網路介面卡之間的控制封包傳送路徑示意圖。 FIG. 2 is a schematic diagram of a control packet transmission path between a plurality of network interface cards in a box-type switch according to an embodiment of the present application.

第3圖係根據第2圖之實施例所述之一交換卡之示意圖。 FIG. 3 is a schematic diagram of an exchange card according to the embodiment of FIG. 2 .

第4圖係根據第2圖之實施例所述之一線路卡之示意圖。 FIG. 4 is a schematic diagram of a line card according to the embodiment of FIG. 2 .

第5A~5D圖係根據本申請一實施例所述避免廣播風暴之方法流程圖。 FIGS. 5A to 5D are flowcharts of a method for avoiding broadcast storms according to an embodiment of the present application.

本章節所敘述的是實施本申請之較佳方式,目的在於說明本申請之精神而非用以限定本申請之保護範圍,當可理解的是,使用於本說明書中的「包含」、「包括」等詞,係用以表示存在特定的技術特徵、數值、方法步驟、作業處理、元件以及/或組件,但並不排除可加上更多的技術特徵、數值、方法步驟、作業處理、元件、組件,或以上的任意組合。 What is described in this chapter is the best way to implement the application, the purpose is to illustrate the spirit of the application but not to limit the scope of protection of the application. "" is used to indicate the existence of specific technical features, values, method steps, operation processes, elements and/or components, but does not exclude the possibility of adding more technical features, values, method steps, operation processes, elements , components, or any combination of the above.

第2圖係根據本申請一實施例所述之一箱型交換機之內複數張網路介面卡之間的控制封包傳送路徑示意圖。箱型交換機100包括複數張網路介面卡,其中每張網路介面卡可為一交換卡或一線路卡。 FIG. 2 is a schematic diagram of a control packet transmission path between a plurality of network interface cards in a box-type switch according to an embodiment of the present application. The box-type switch 100 includes a plurality of network interface cards, wherein each network interface card can be a switch card or a line card.

一般來說,箱型交換機100可針對區域網路提供網路架構的可調變性,透過箱型交換機100內部的網路介面卡的組態,可動態適應區域網路的網路架構改變,以容納更多或更少的網路終端裝置。舉例來說,區域網路可以是由乙太網、無線保真(Wireless Fidelity,WiFi)網路、雙絞線(Twisted Pair)網路、或同軸電纜(Coaxial cable)網路等所建構的網路,又可稱為內網,其通常覆蓋局部區域,例如:辦公室、或建築物內的某樓層。箱型交換機100之中的每一張網路介面卡(如:線路卡)皆可進一步耦接至一網路終端裝置,例如:筆記型電腦、桌上型電腦、智慧型手機、平板電腦、工作站、或伺服器 等。 Generally speaking, the box-type switch 100 can provide the flexibility of the network structure for the local area network. Through the configuration of the network interface card inside the box-type switch 100, it can dynamically adapt to the change of the network structure of the local area network. Accommodates more or fewer network termination devices. For example, the local area network can be a network constructed by Ethernet, Wireless Fidelity (WiFi) network, Twisted Pair network, or Coaxial cable network, etc. A road, also known as an intranet, usually covers a local area, such as an office, or a certain floor in a building. Each network interface card (such as a line card) in the box switch 100 can be further coupled to a network terminal device, such as a notebook computer, a desktop computer, a smart phone, a tablet computer, workstation, or server, etc.

為方便說明,在此實施例中,箱型交換機100包括了4張交換卡11~14、以及8張線路卡21~28,其中每張交換卡都連接到所有的線路卡,但不與其他交換卡相連,同樣地,每張線路卡都連接到所有的交換卡,但不與其他線路卡相連。惟需注意的是,第2圖所示的網路介面卡數量僅用以提供一說明之範例,並非用以限制本申請之保護範圍。也就是說,箱型交換機100所包括的交換卡數量可以少於或多於4張,而線路卡的數量可以少於或多於8張。 For the convenience of description, in this embodiment, the box-type switch 100 includes 4 switching cards 11-14 and 8 line cards 21-28, wherein each switching card is connected to all the line cards, but not connected with other Switch cards are connected, and likewise, each line card is connected to all switch cards, but not to other line cards. However, it should be noted that the number of network interface cards shown in FIG. 2 is only for providing an illustrative example, and is not intended to limit the protection scope of this application. That is, the number of switch cards included in the box-type switch 100 may be less than or more than 4, and the number of line cards may be less than or more than 8.

雖未繪示,箱型交換機100具有多個插槽(slot),每個插槽可供一網路介面卡的接入。明確來說,插槽還可再細分為交換卡插槽以及線路卡插槽,分別用以供交換卡及線路卡的接入。特別是,每張網路介面卡會根據其插槽位置而被配置各別之一識別碼,該識別碼可用於網路介面卡之間的管理。 Although not shown, the box-type switch 100 has a plurality of slots, and each slot can be accessed by a network interface card. Specifically, the slot can be further subdivided into a switch card slot and a line card slot, which are respectively used for the access of the switch card and the line card. In particular, each network interface card is configured with a respective identification code according to its slot position, and the identification code can be used for management among the network interface cards.

值得注意的是,本實施例在管理這些網路介面卡時,為了避免廣播風暴的發生,每張網路介面卡會依其卡別(例如:為交換卡或線路卡)執行相應的動作,以完成網路介面卡之間的控制封包傳送路徑規劃。如第2圖所示,路徑規劃的結果將得到交換卡11~14之一者(如:交換卡11)為根源(root)交換卡,而其餘交換卡則為後備(backup)交換卡;此外,線路卡21~28之一者(如:線路卡21)為指定(designated)線路卡,而其餘交換卡則為後備線路卡。此外,唯有根源交換卡(如:交換卡11)可將連往所有線路卡的埠口設定為轉發狀態,也唯有指定線路卡(如:線路卡21)可將連往所有交換卡 的埠口設定為轉發狀態,而後備交換卡及後備線路卡則必須將連往彼此的埠口設定為聆聽(listening)狀態,使得後備交換卡及後備線路卡之間不得進行傳送作業(即第2圖中被打叉的連線),避免傳送路徑形成迴圈,而發生廣播風暴。 It is worth noting that, when managing these network interface cards in this embodiment, in order to avoid the occurrence of broadcast storms, each network interface card will perform corresponding actions according to its card type (for example, a switch card or a line card). To complete the control packet transmission path planning between network interface cards. As shown in Figure 2, the result of the path planning will obtain one of the switching cards 11 to 14 (eg, switching card 11) as the root switching card, and the other switching cards are backup switching cards; in addition, , one of the line cards 21 to 28 (eg, the line card 21 ) is a designated (designated) line card, and the other switch cards are backup line cards. In addition, only the source switch card (eg: switch card 11) can set the ports connected to all line cards to the forwarding state, and only the designated line card (eg: line card 21) can switch the ports connected to all switch cards to the forwarding state. The port is set to the forwarding state, and the backup switch card and the backup line card must set the ports connected to each other to the listening state, so that no transmission operation can be performed between the backup switch card and the backup line card (that is, the second The crossed line in the figure) prevents the transmission path from forming a loop and causing a broadcast storm.

第3圖係根據第2圖之實施例所述之一交換卡之示意圖。在此實施例,箱型交換機100包括4張交換卡以及8張線路卡,其中每張交換卡的硬體架構如第3圖所示,包括控制器310、儲存裝置320、交換裝置330、以及埠口340-1~340-8。 FIG. 3 is a schematic diagram of an exchange card according to the embodiment of FIG. 2 . In this embodiment, the box-type switch 100 includes 4 switching cards and 8 line cards, wherein the hardware structure of each switching card is shown in FIG. 3 , including a controller 310 , a storage device 320 , a switching device 330 , and Port 340-1~340-8.

控制器310可為通用處理器、中央處理器(Central Processing Unit,CPU)、微處理器(Micro Control Unit,MCU)、應用處理器(Application Processor,AP)、或數位訊號處理器(Digital Signal Processor,DSP)等,其可包括各式電路邏輯,用以提供數據處理及運算之功能、從儲存裝置320讀取或寫入指令/程式碼及數據、控制交換裝置330的運作以執行控制封包的傳送及接收作業、以及控制埠口340-1~340-8的狀態設定。 The controller 310 can be a general-purpose processor, a central processing unit (CPU), a micro control unit (MCU), an application processor (AP), or a digital signal processor (Digital Signal Processor). , DSP), etc., which may include various circuit logics to provide data processing and operation functions, read or write instructions/codes and data from the storage device 320, control the operation of the switching device 330 to execute control packets. Send and receive operations, and control the status settings of ports 340-1 to 340-8.

特別是,控制器310係用以協調儲存裝置320、交換裝置330、以及埠口340-1~340-8之運作,以執行本申請的避免廣播風暴之方法。 In particular, the controller 310 is used for coordinating the operations of the storage device 320, the switching device 330, and the ports 340-1 to 340-8, so as to implement the method for avoiding broadcast storms of the present application.

該領域之熟習技藝人士當可理解,控制器310中的電路邏輯通常可包括多個電晶體,用以控制該電路邏輯之運作以提供所需之功能及作業。更進一步的,電晶體的特定結構及其之間的連結關係通常是由編譯器所決定,例如:暫存器轉移語言(Register Transfer Language,RTL)編譯器可由處理器所運作,將類似組合語言碼的指令檔(script)編譯成適用於 設計或製造該電路邏輯所需之形式。 It should be understood by those skilled in the art that the circuit logic in the controller 310 may generally include a plurality of transistors to control the operation of the circuit logic to provide required functions and operations. Furthermore, the specific structure of the transistor and the connection relationship between them are usually determined by the compiler. For example, the Register Transfer Language (RTL) compiler can be operated by the processor, which is similar to the assembly language. A script of code is compiled into a form suitable for designing or manufacturing the circuit logic.

儲存裝置320可以是隨機存取記憶體(Random Access Memory,RAM)、快閃(flash)記憶體、快取(cache)記憶體、或其他類型的記憶體、或其他儲存媒體,用以儲存機器可讀取之指令或程式碼(如:本申請的避免廣播風暴之方法之程式碼)、以及數據,例如:每張網路介面卡自己的管理紀錄(record)。 The storage device 320 may be random access memory (RAM), flash memory, cache memory, or other types of memory, or other storage media for storing the machine Readable instructions or code (eg, the code of the method for avoiding broadcast storms of the present application), and data, such as the management record (record) of each network interface card.

交換裝置330係用以接收控制器310的控制信號以設定埠口340-1~340-8的轉發/聆聽狀態,並透過埠口340-1~340-8進行控制封包的傳送及接收,也就是說,交換裝置330的主要功能是負責處理以管理網路介面卡為目的之控制封包之交換。在一實施例,交換裝置330可以是依循IEEE 802.3、802.3u、802.3ab、以及802.3x等標準規格的(千兆)乙太網((Gibabit)Ethernet)交換器。 The switching device 330 is used for receiving the control signal from the controller 310 to set the forwarding/listening state of the ports 340-1 to 340-8, and to transmit and receive control packets through the ports 340-1 to 340-8, and also That is, the main function of the switching device 330 is to process the switching of control packets for the purpose of managing the network interface card. In one embodiment, the switch device 330 may be a (Gibabit) Ethernet switch conforming to standard specifications such as IEEE 802.3, 802.3u, 802.3ab, and 802.3x.

埠口340-1~340-8係分別用以耦接至箱型交換機100內所有線路卡21~28,並根據被設定之轉發/聆聽狀態以傳送/轉送控制封包到線路卡21~28、以及/或接收來自線路卡21~28的控制封包。 The ports 340-1 to 340-8 are respectively used to be coupled to all the line cards 21 to 28 in the box switch 100, and to transmit/forward control packets to the line cards 21 to 28, and/or receiving control packets from line cards 21-28.

當可理解的是,第3圖所示之元件僅用以提供一說明之範例,並非用以限制本申請之保護範圍。舉例來說,交換卡還可包括另一交換裝置,用以處理資料封包的轉送作業,其不同於交換裝置330;或者,交換卡所包括的埠口數量可依照箱型交換機100內的實際線路卡數量而相應調整。 It should be understood that the elements shown in FIG. 3 are only used to provide an illustrative example, and are not used to limit the protection scope of the present application. For example, the switch card may further include another switch device for processing data packet transfer operations, which is different from the switch device 330 ; or, the number of ports included in the switch card may be in accordance with the actual lines in the box-type switch 100 . The number of cards is adjusted accordingly.

第4圖係根據第2圖之實施例所述之一線路卡之示 意圖。在此實施例,箱型交換機100包括4張交換卡11~14以及8張線路卡21~28,其中每張線路卡的硬體架構如第4圖所示,包括控制器410、儲存裝置420、交換裝置430、以及埠口440-1~440-4。 FIG. 4 is a schematic diagram of a line card according to the embodiment of FIG. 2. FIG. In this embodiment, the box-type switch 100 includes four switching cards 11-14 and eight line cards 21-28, wherein the hardware structure of each line card is as shown in FIG. 4, including a controller 410 and a storage device 420 , the switching device 430, and the ports 440-1 to 440-4.

控制器410可為通用處理器、中央處理器、微處理器、應用處理器、或數位訊號處理器等,其可包括各式電路邏輯,用以提供數據處理及運算之功能、從儲存裝置420讀取或寫入指令/程式碼及數據、控制交換裝置430以執行控制封包的傳送及接收作業、以及控制埠口440-1~440-4的狀態設定。 The controller 410 can be a general-purpose processor, a central processing unit, a microprocessor, an application processor, or a digital signal processor. Read or write commands/codes and data, control the switching device 430 to perform the transmission and reception of control packets, and control the status settings of the ports 440-1 to 440-4.

特別是,控制器410係用以協調儲存裝置420、交換裝置430、以及埠口440-1~440-4之運作,以執行本申請的避免廣播風暴之方法。 In particular, the controller 410 is used for coordinating the operations of the storage device 420, the switching device 430, and the ports 440-1 to 440-4, so as to implement the method for avoiding broadcast storms of the present application.

該領域之熟習技藝人士當可理解,控制器410中的電路邏輯通常可包括多個電晶體,用以控制該電路邏輯之運作以提供所需之功能及作業。更進一步的,電晶體的特定結構及其之間的連結關係通常是由編譯器所決定,例如:暫存器轉移語言編譯器可由處理器所運作,將類似組合語言碼的指令檔編譯成適用於設計或製造該電路邏輯所需之形式。 It should be understood by those skilled in the art that the circuit logic in the controller 410 may generally include a plurality of transistors to control the operation of the circuit logic to provide required functions and operations. Furthermore, the specific structure of the transistor and the connection relationship between them are usually determined by the compiler. For example, the register transfer language compiler can be operated by the processor to compile the instruction file similar to the assembly language code into suitable in the form required to design or manufacture the logic of the circuit.

儲存裝置420可以是隨機存取記憶體、快閃記憶體、快取記憶體、或其他類型的記憶體、或其他儲存媒體,用以儲存機器可讀取之指令或程式碼(如:本申請的避免廣播風暴之方法之程式碼)、以及數據,例如:每張網路介面卡自己的管理紀錄。 The storage device 420 may be random access memory, flash memory, cache memory, or other types of memory, or other storage media for storing machine-readable instructions or code (eg, this application the code for methods to avoid broadcast storms), and data such as each network interface card's own management record.

交換裝置430係用以接收控制器410的控制信號以 設定埠口440-1~440-4的轉發/聆聽狀態,並透過埠口440-1~440-4進行控制封包的傳送及接收,也就是說,交換裝置430的主要功能是負責處理以管理網路介面卡為目的之控制封包之交換。在一實施例,交換裝置430可以是依循IEEE 802.3、802.3u、802.3ab、以及802.3x等標準規格的(千兆)乙太網交換器。 The switching device 430 is used for receiving the control signal from the controller 410 to set the forwarding/listening state of the ports 440-1 to 440-4, and to transmit and receive control packets through the ports 440-1 to 440-4, and also That is, the main function of the switching device 430 is to process the switching of control packets for the purpose of managing the network interface card. In one embodiment, the switching device 430 may be a (Gigabit) Ethernet switch conforming to standard specifications such as IEEE 802.3, 802.3u, 802.3ab, and 802.3x.

對內埠口440-1~440-4係分別用以耦接至箱型交換機100內的所有交換卡11~14,並根據被設定之轉發/聆聽狀態以傳送/轉送控制封包到交換卡11~14、以及/或接收來自交換卡11~14的控制封包。 The internal ports 440-1 to 440-4 are respectively used to be coupled to all the switch cards 11 to 14 in the box switch 100, and transmit/forward control packets to the switch card 11 according to the set forwarding/listening state. ~14, and/or receiving control packets from the switch cards 11~14.

當可理解的是,第4圖所示之元件僅用以提供一說明之範例,並非用以限制本申請之保護範圍。舉例來說,線路卡還可包括另一交換裝置,用以處理資料封包的轉送作業,其功能不同於交換裝置430;或者,線路卡所包括的埠口數量可依照箱型交換機100內的實際交換卡數量而相應調整。 It should be understood that the elements shown in FIG. 4 are only used to provide an illustrative example, and are not used to limit the protection scope of the present application. For example, the line card may further include another switching device for processing data packet forwarding, and its function is different from that of the switching device 430; The number of swap cards is adjusted accordingly.

第5A~5D圖係根據本申請一實施例所述避免形成迴圈之方法流程圖。在此實施例,避免形成迴圈之方法可適用於箱型交換機內的任一網路介面卡(如:交換卡或線路卡)。 FIGS. 5A to 5D are flowcharts of a method for avoiding loop formation according to an embodiment of the present application. In this embodiment, the method of avoiding the formation of loops can be applied to any network interface card (eg, switch card or line card) in the box-type switch.

首先,網路介面卡會依其插槽位置決定被配置的識別碼(步驟S501),接著決定其卡別為交換卡或線路卡(步驟S502)。 First, the network interface card determines the configured identification code according to its slot position (step S501 ), and then determines whether the card is a switch card or a line card (step S502 ).

接續步驟S502,當網路介面卡為交換卡時,會將所有的埠口設定為轉發狀態(步驟S503)。明確來說,當一埠口被設為轉發狀態時,則表示網路介面卡(如:交換卡或線路 卡)可透過該埠口進行傳送與接收作業,例如:傳送/轉送控制封包到其他網路介面卡、或從其他網路介面卡接收控制封包。接著,交換卡透過每一埠口傳送包括該網路介面卡的識別碼之一第一控制封包並開始計時一段時間區間(步驟S504)。在一實施例,第一控制封包可以是一橋接協定資料單元(Bridge Protocol Data Unit,BPDU)。 Following step S502, when the network interface card is a switch card, all ports are set to the forwarding state (step S503). Specifically, when a port is set to the forwarding state, it means that a network interface card (such as a switch card or a line card) can transmit and receive operations through this port, such as sending/forwarding control packets to other NIC, or receive control packets from other NICs. Next, the exchange card transmits a first control packet including the identification code of the network interface card through each port and starts timing a period of time (step S504 ). In one embodiment, the first control packet may be a bridge protocol data unit (Bridge Protocol Data Unit, BPDU).

接續步驟S502,當網路介面卡為線路卡時,會將所有的埠口設定為聆聽狀態並開始計時一段時間區間(步驟S505)。明確來說,當一埠口被設為聆聽狀態時,則表示網路介面卡(如:交換卡或線路卡)不被允許透過該埠口進行傳送作業,而僅能透過該埠口進行接收作業。接著,線路卡檢查是否透過任一埠口接收到上述第一控制封包(步驟S506),若是,則在第一控制封包中所帶的識別碼小於管理紀錄中的根源交換卡識別碼時,以第一控制封包中所帶的識別碼去取代管理紀錄中的根源交換卡識別碼(步驟S507)。換句話說,在此實施例係以所有的第一控制封包所帶的識別碼中的最小者所對應到的交換卡為根源交換卡。然而,在另一實施例,可以所有的第一控制封包所帶的識別碼中的最大者所對應到的交換卡為根源交換卡。 Continuing with step S502, when the network interface card is a line card, all ports are set to the listening state and a period of time is started (step S505). Specifically, when a port is set to the listening state, it means that the network interface card (such as a switch card or line card) is not allowed to transmit through the port, but can only receive through the port. Operation. Next, the line card checks whether the above-mentioned first control packet is received through any port (step S506 ). The identification code carried in the first control packet replaces the source exchange card identification code in the management record (step S507). In other words, in this embodiment, the switch card corresponding to the smallest of the identification codes carried by all the first control packets is used as the source switch card. However, in another embodiment, the switch card corresponding to the largest one of the identification codes carried in all the first control packets may be the source switch card.

在一實施例,每張網路介面卡都會儲存一份自己的管理紀錄,其中包括:根源交換卡的識別碼、指定線路卡的識別碼、以及自己的識別碼。 In one embodiment, each network interface card stores its own management record, which includes: the identification code of the source switch card, the identification code of the designated line card, and its own identification code.

接續步驟S506的「否」支路以及步驟S507,線路卡進一步檢查計時的時間區間是否已屆期(步驟S508),若否, 則流程回到步驟S506;反之,若是,則可合理認定該線路卡在計時的時間區間內已接收到來自所有交換卡的第一控制封包,因此,該線路卡即可根據目前儲存的管理紀錄來決定哪一張交換卡為根源交換卡,並且將連接到根源交換卡的埠口設定為轉發狀態(步驟S509),然後透過連接到根源交換卡的埠口傳送包括自己的識別碼以及管理紀錄的第二控制封包(步驟S510)。 Continuing with the "No" branch of step S506 and step S507, the line card further checks whether the time interval has expired (step S508). The card has received the first control packet from all switch cards within the time interval. Therefore, the line card can determine which switch card is the root switch card according to the management record currently stored, and will connect to the root switch card. The port of the switch card is set to the forwarding state (step S509 ), and then a second control packet including its own identification code and management record is transmitted through the port connected to the source switch card (step S510 ).

接續步驟S504,交換卡在傳送第一控制封包後,檢查是否透過任一埠口接收到上述第二控制封包(步驟S511),若是,則表示該交換卡為根源交換卡,並且在第二控制封包中所帶的識別碼小於交換卡自己的管理紀錄中的指定線路卡識別碼時,以第二控制封包中所帶的識別碼去取代交換卡自己的管理紀錄中的指定線路卡識別碼(步驟S512)。換句話說,在此實施例係以所有的第二控制封包所帶的識別碼中的最小者所對應到的線路卡為指定線路卡。然而,在另一實施例,可以所有的第二控制封包所帶的識別碼中的最大者所對應到的線路卡為指定線路卡。 Continue to step S504, after the switch card transmits the first control packet, it checks whether the second control packet is received through any port (step S511). When the identification code carried in the packet is smaller than the designated line card identification code in the management record of the switching card, the identification code carried in the second control packet is used to replace the designated line card identification code in the management record of the switching card ( Step S512). In other words, in this embodiment, the line card corresponding to the smallest of the identification codes carried by all the second control packets is used as the designated line card. However, in another embodiment, the line card corresponding to the largest one of the identification codes carried by all the second control packets may be the designated line card.

接續步驟S511的「否」支路以及步驟S512,交換卡進一步檢查計時的時間區間是否已屆期(步驟S513),若否,則流程回到步驟S511;反之,若是,則可合理認定根源交換卡在計時的時間區間內已接收到來自所有線路卡的第二控制封包。接著,以是否曾收到第二控制封包來判斷該交換卡是否為根源交換卡(步驟S514),若是,則根據其儲存的管理紀錄來決定哪一張線路卡為指定線路卡(步驟S515),然後,透過每 一埠口傳送包括根源交換卡及指定線路卡之資訊的一第三控制封包(步驟S516)。 Continuing the "No" branch of step S511 and step S512, the exchange card further checks whether the time interval has expired (step S513). The card has received the second control packet from all line cards within the timed interval. Next, it is judged whether the switch card is the source switch card according to whether the second control packet has been received (step S514 ), and if so, which line card is determined as the designated line card according to the management record stored therein (step S515 ) , and then transmit a third control packet including the information of the source switch card and the designated line card through each port (step S516 ).

接續步驟S510,線路卡在傳送第二控制封包後,接收到上述第三控制封包(步驟S517),接著根據第三控制封包所帶的資訊決定其為指定線路卡或後備線路卡(步驟S518)。 Following step S510, after transmitting the second control packet, the line card receives the above-mentioned third control packet (step S517), and then determines whether it is a designated line card or a backup line card according to the information carried in the third control packet (step S518) .

接續步驟S518,當決定為指定線路卡時,該線路卡會將所有埠口設定為轉發狀態,並且透過連接到根源交換卡以外的每一埠口轉送第三控制封包(步驟S519),流程結束。 Continue to step S518, when it is determined to be the designated line card, the line card will set all ports to the forwarding state, and forward the third control packet through each port other than the source switch card (step S519), and the process ends .

接續步驟S518,當決定為後備線路卡時,該線路卡會丟棄第三控制封包不進行轉送(步驟S520),流程結束。 Following step S518, when it is determined to be the backup line card, the line card will discard the third control packet and not forward it (step S520), and the process ends.

接續步驟S514,當該交換卡並非根源交換卡時,則等待接收由指定線路卡所轉送的第三控制封包(步驟S521),明確來說,當該交換卡接收到轉送的第三控制封包時,即可根據第三控制封包確認哪一張交換卡為根源交換卡及哪一張線路卡為指定線路卡,同時也就決定了自己為後備交換卡。之後,後備交換卡將所有埠口中除了連接到指定線路卡以外者皆設定為聆聽狀態(步驟S522),流程結束。 Following step S514, when the switch card is not the source switch card, it waits to receive the third control packet forwarded by the designated line card (step S521). Specifically, when the switch card receives the forwarded third control packet , it is possible to confirm which switching card is the source switching card and which line card is the designated line card according to the third control packet, and at the same time it is determined that it is the backup switching card. After that, the backup switch card sets all ports except those connected to the designated line card to the listening state (step S522 ), and the process ends.

根據前述之實施例可知,本發明實施例藉由執行特定流程而進行路徑規劃,使控制封包的傳輸路徑避免形成迴圈,因此提升了網路介面卡的資源使用效率,同時,也改善箱型交換機的管理效能。此外,值得注意的是,本發明實施例能因應箱形交換機內網路介面卡的狀態變化而有效地完成控制封包傳送路徑的規劃,不需額外監控網路介面卡變化即能自適應地進行封包傳送路徑的規劃,因此不需額外的建置成本。 According to the foregoing embodiments, the embodiments of the present invention perform path planning by executing a specific process, so that the transmission path of the control packet avoids forming loops, thereby improving the resource utilization efficiency of the network interface card, and at the same time improving the box shape. Switch management efficiency. In addition, it is worth noting that the embodiment of the present invention can effectively complete the planning of the control packet transmission path in response to the state change of the network interface card in the box-type switch, and it can be adaptively carried out without additional monitoring of the network interface card change. The planning of the packet transmission path, so no additional construction cost is required.

本申請雖以各種實施例揭露如上,然而其僅為範例參考而非用以限定本申請的範圍,任何熟習此項技藝者,在不脫離本申請之精神和範圍內,當可做些許的更動與潤飾。因此上述實施例並非用以限定本申請之範圍,本申請之保護範圍當視後附之申請專利範圍所界定者為準。 Although various embodiments are disclosed as above in this application, they are only for reference and are not used to limit the scope of this application. Anyone who is familiar with the art can make some changes without departing from the spirit and scope of this application. with retouch. Therefore, the above embodiments are not intended to limit the scope of the present application, and the protection scope of the present application should be determined by the scope of the appended patent application.

於申請專利範圍中所使用的「第一」、「第二」、「第三」等詞係用來修飾權利要求中的元件,並非用來表示之間具有優先權順序,先行關係,或者是一個元件先於另一個元件,或者是執行方法步驟時的時間先後順序,僅用來區別具有相同名字的元件。 Words such as "first", "second" and "third" used in the scope of the patent application are used to modify the elements in the claims, and are not used to indicate that there is a priority order, an antecedent relationship between them, or The precedence of one element over another, or the chronological order in which method steps are performed, is only used to distinguish elements with the same name.

100‧‧‧箱型交換機 100‧‧‧Box Switch

11~14‧‧‧交換卡 11~14‧‧‧Exchange Card

21~28‧‧‧線路卡 21~28‧‧‧Line Card

Claims (16)

一種網路介面卡,係可設置於一箱型交換機(chassis switch)中,包括:一交換裝置,具有複數埠口,其中上述埠口連接到上述箱型交換機中之複數其他網路介面卡,上述其他網路介面卡之每一者為一交換卡或一線路卡;以及一控制器,用以當上述網路介面卡為交換卡(fabric card)時,執行以下步驟:將上述埠口設定為一轉發(forwarding)狀態並透過每一上述埠口傳送一第一控制封包,因應上述網路介面卡為一根源(root)交換卡而透過上述埠口接收來自複數線路卡(line card)之複數第二控制封包,並根據上述第二控制封包所包括之複數第二識別碼決定上述線路卡之一者為一指定(designated)線路卡,以及因應上述網路介面卡為一後備交換卡而將上述埠口中除了連接至上述指定線路卡以外者設定為一聆聽(listening)狀態;其中上述控制器更用以當上述網路介面卡為線路卡時,執行以下步驟:將上述埠口設定為上述聆聽狀態並透過上述埠口從複數交換卡之每一者接收上述第一控制封包,根據上述第一控制封包所包括之複數第一識別碼而決定上述交換卡之一者為上述根源交換卡,以及因應上述網路介面卡為上述指定線路卡而將上述埠口設定為上述轉發狀態。 A network interface card, which can be set in a chassis switch, includes: a switching device having a plurality of ports, wherein the ports are connected to a plurality of other network interface cards in the chassis switch, Each of the above-mentioned other network interface cards is a switch card or a line card; and a controller for performing the following steps when the above-mentioned network interface card is a switch card (fabric card): setting the above-mentioned ports is in a forwarding state and transmits a first control packet through each of the above-mentioned ports, in response to the above-mentioned network interface card being a root switch card, and receives the data from a plurality of line cards through the above-mentioned ports through the above-mentioned ports. A plurality of second control packets, and according to the plurality of second identification codes included in the second control packets, one of the line cards is determined as a designated (designated) line card, and the network interface card is a backup switch card according to the Setting the ports other than those connected to the designated line card to a listening state; wherein the controller is further configured to perform the following steps when the network interface card is a line card: set the port to a listening state. In the listening state, the first control packet is received from each of the plurality of switch cards through the port, and one of the switch cards is determined as the source switch card according to the plurality of first identification codes included in the first control packet. , and set the port to the forwarding state according to the network interface card being the designated line card. 如申請專利範圍第1項所述之網路介面卡,其中上述控制器更用以因應上述網路介面卡為上述根源交換卡而根據上述第二識別碼決定上述線路卡之剩餘者為一或多張後備 (backup)線路卡,以及當上述網路介面卡為線路卡時,根據上述第一識別碼決定上述交換卡之剩餘者為一或多張後備交換卡。 The network interface card as described in claim 1, wherein the controller is further configured to determine the remaining ones of the line cards according to the second identification code according to the network interface card is the root switch card as one or multiple backup (backup) a line card, and when the network interface card is a line card, according to the first identification code, it is determined that the rest of the exchange cards are one or more backup exchange cards. 如申請專利範圍第1項所述之網路介面卡,其中上述控制器更用以當上述網路介面卡為交換卡時,還執行以下步驟:因應上述網路介面卡為上述根源交換卡而透過每一上述埠口傳送一第三控制封包,上述第三控制封包包括上述根源交換卡以及上述指定線路卡之資訊。 The network interface card described in claim 1, wherein the controller is further configured to, when the network interface card is a switch card, further execute the following steps: according to the network interface card being the root switch card A third control packet is transmitted through each of the above-mentioned ports, and the above-mentioned third control packet includes the information of the above-mentioned source switch card and the above-mentioned designated line card. 如申請專利範圍第3項所述之網路介面卡,其中上述控制器更用以當上述網路介面卡為線路卡時,還執行以下步驟:將上述埠口中連接至上述根源交換卡之一者設定為上述轉發狀態以傳送上述第二控制封包,透過上述埠口接收上述第三控制封包,因應上述網路介面卡為上述指定線路卡而在上述埠口設定為上述轉發狀態後透過每一上述埠口轉送上述第三控制封包。 The network interface card of claim 3, wherein the controller is further configured to, when the network interface card is a line card, further perform the following steps: connecting the port to one of the root switch cards is set to the above-mentioned forwarding state to transmit the above-mentioned second control packet, and the above-mentioned third control packet is received through the above-mentioned port. Since the above-mentioned network interface card is the above-mentioned designated line card, after the above-mentioned port is set to the above-mentioned forwarding state, each The port forwards the third control packet. 如申請專利範圍第1項所述之網路介面卡,其中上述第二控制封包還包括一紀錄用以儲存上述第一識別碼中的最小者或最大者,上述控制器係以上述第一識別碼中的最小者或最大者所對應到的上述交換卡之一者為上述根源交換卡。 The network interface card as described in item 1 of the claimed scope, wherein the second control packet further includes a record for storing the smallest or the largest of the first identification codes, and the controller uses the first identification code One of the above-mentioned exchange cards corresponding to the smallest or the largest of the codes is the above-mentioned source exchange card. 如申請專利範圍第1項所述之網路介面卡,其中上述控制器係以上述第二識別碼中的最小者或最大者所對應到的上述線路卡之一者為上述指定線路卡。 The network interface card according to claim 1, wherein the controller uses one of the line cards corresponding to the smallest or largest of the second identification codes as the designated line card. 一種交換卡,係可設置於一箱型交換機中,包括: 一交換裝置,具有複數埠口,其中上述埠口連接到上述箱型交換機中之複數線路卡;以及一控制器,用以將上述埠口設定為一轉發(forwarding)狀態並透過每一上述埠口傳送包括一第一識別碼之一第一控制封包,因應在一時間區間內透過上述埠口接收來自上述線路卡之複數第二控制封包而執行以下步驟:根據上述第二控制封包所包括之複數第二識別碼決定上述線路卡之一者為一指定線路卡,以及透過每一上述埠口傳送一第三控制封包,其中上述第三控制封包包括上述指定線路卡以及上述交換卡為一根源交換卡之資訊。 A switch card, which can be set in a box-type switch, includes: a switching device having a plurality of ports, wherein the ports are connected to a plurality of line cards in the box switch; and a controller for setting the ports to a forwarding state and passing through each of the ports The port transmission includes a first control packet with a first identification code. In response to receiving a plurality of second control packets from the line card through the port within a time interval, the following steps are performed: according to the second control packet included in the second control packet. A plurality of second identification codes determine one of the line cards as a designated line card, and transmit a third control packet through each of the ports, wherein the third control packet includes the designated line card and the switch card as a source Exchange card information. 如申請專利範圍第7項所述之交換卡,其中上述控制器更用以因應在上述時間區間內透過上述埠口接收來自上述線路卡之上述第二控制封包而根據上述第二識別碼決定上述線路卡之剩餘者為一或多張後備線路卡。 The switching card as described in claim 7, wherein the controller is further configured to determine the second identification code according to the second identification code in response to receiving the second control packet from the line card through the port within the time interval The remainder of the line cards are one or more backup line cards. 如申請專利範圍第7項所述之交換卡,其中上述控制器更用以因應在上述時間區間內並未透過上述埠口接收上述第二控制封包而執行以下步驟:透過上述埠口接收上述線路卡所轉送之上述第三控制封包,根據上述第三控制封包決定上述交換卡為一後備交換卡,以及將上述埠口中除了連接至上述指定線路卡以外者設定為一聆聽狀態。 The switch card as described in claim 7, wherein the controller is further configured to perform the following step in response to not receiving the second control packet through the port within the time interval: receiving the line through the port The third control packet forwarded by the card determines that the switch card is a backup switch card according to the third control packet, and sets the ports other than those connected to the designated line card to a listening state. 如申請專利範圍第7項所述之交換卡,其中上述控制器係以上述第二識別碼中的最小者或最大者所對應到的上述線路卡之一者為上述指定線路卡。 The switch card according to claim 7, wherein the controller uses one of the line cards corresponding to the smallest or largest of the second identification codes as the designated line card. 一種線路卡,係可設置於一箱型交換機中,包括: 一交換裝置,具有複數埠口,其中上述埠口連接到上述箱型交換機中之複數交換卡;以及一控制器,用以將上述埠口設定為一聆聽狀態並透過上述埠口從上述交換卡接收複數第一控制封包,根據上述第一控制封包所包括之複數第一識別碼而決定上述交換卡之一者為一根源交換卡,以及將上述埠口中連接至上述根源交換卡之一者設定為一轉發狀態以傳送包括一第二識別碼之一第二控制封包。 A line card, which can be set in a box-type switch, includes: a switching device having a plurality of ports, wherein the ports are connected to a plurality of switching cards in the box-type switch; and a controller for setting the ports to a listening state and transferring the data from the switching cards through the ports Receive a plurality of first control packets, determine one of the above-mentioned switch cards as a source switch card according to the plurality of first identification codes included in the first control packets, and set one of the ports connected to one of the above-mentioned source switch cards In a forwarding state, a second control packet including a second identifier is transmitted. 如申請專利範圍第11項所述之線路卡,其中上述控制器更用以根據上述第一識別碼而決定上述交換卡之剩餘者為一或多張後備交換卡。 The line card according to claim 11, wherein the controller is further configured to determine the remaining exchange cards as one or more backup exchange cards according to the first identification code. 如申請專利範圍第11項所述之線路卡,其中上述控制器更用以透過上述埠口從上述根源交換卡接收包括上述根源交換卡以及一指定線路卡之資訊之一第三控制封包,以及根據上述第三控制封包決定上述線路卡為上述指定線路卡或一後備線路卡。 The line card of claim 11, wherein the controller is further configured to receive a third control packet including the information of the source switch card and a designated line card from the source switch card through the port, and According to the third control packet, it is determined that the line card is the designated line card or a backup line card. 如申請專利範圍第13項所述之線路卡,其中上述控制器更用以當上述線路卡為上述指定線路卡時,將所有埠口設定為上述轉發狀態後,並透過連接到上述根源交換卡以外的每一上述埠口轉送上述第三控制封包。 The line card of claim 13, wherein the controller is further configured to, when the line card is the designated line card, set all ports to the forwarding state, and connect to the source switch card through Each of the above-mentioned ports other than the above-mentioned port forwards the above-mentioned third control packet. 如申請專利範圍第13項所述之線路卡,其中上述控制器更用以當上述線路卡為上述後備線路卡時,丟棄上述第三控制封包。 The line card of claim 13, wherein the controller is further configured to discard the third control packet when the line card is the backup line card. 如申請專利範圍第11項所述之線路卡,其中上述控制器係 以上述第一識別碼中的最小者或最大者所對應到的上述交換卡之一者為上述根源交換卡。 The line card as described in claim 11, wherein the controller is a One of the above-mentioned exchange cards corresponding to the smallest or largest of the above-mentioned first identification codes is the above-mentioned source exchange card.
TW107122591A 2018-06-29 2018-06-29 Network interface cards, fabric cards, and line cards for loop avoidance in a chassis switch TWI756444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107122591A TWI756444B (en) 2018-06-29 2018-06-29 Network interface cards, fabric cards, and line cards for loop avoidance in a chassis switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107122591A TWI756444B (en) 2018-06-29 2018-06-29 Network interface cards, fabric cards, and line cards for loop avoidance in a chassis switch

Publications (2)

Publication Number Publication Date
TW202002576A TW202002576A (en) 2020-01-01
TWI756444B true TWI756444B (en) 2022-03-01

Family

ID=69941784

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107122591A TWI756444B (en) 2018-06-29 2018-06-29 Network interface cards, fabric cards, and line cards for loop avoidance in a chassis switch

Country Status (1)

Country Link
TW (1) TWI756444B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020120739A1 (en) * 2001-02-28 2002-08-29 Mccormack Michael S. System for isolating ethernet network traffic
US6731832B2 (en) * 2001-02-28 2004-05-04 Lambda Opticalsystems Corporation Detection of module insertion/removal in a modular optical network, and methods and apparatus therefor
TW201108668A (en) * 2009-04-27 2011-03-01 Lsi Corp Buffered crossbar switch system
US20150098338A1 (en) * 2013-10-07 2015-04-09 Ciena Corporation Energy efficient and energy-managed traffic engineering services in multiprotocol label switching and generalized multiprotocol label switching networks
US20170230294A1 (en) * 2016-02-04 2017-08-10 Ciena Corporation Port congestion resiliency in a multi-card and multi-switch link aggregation group

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020120739A1 (en) * 2001-02-28 2002-08-29 Mccormack Michael S. System for isolating ethernet network traffic
US6731832B2 (en) * 2001-02-28 2004-05-04 Lambda Opticalsystems Corporation Detection of module insertion/removal in a modular optical network, and methods and apparatus therefor
TW201108668A (en) * 2009-04-27 2011-03-01 Lsi Corp Buffered crossbar switch system
US20150098338A1 (en) * 2013-10-07 2015-04-09 Ciena Corporation Energy efficient and energy-managed traffic engineering services in multiprotocol label switching and generalized multiprotocol label switching networks
US20170230294A1 (en) * 2016-02-04 2017-08-10 Ciena Corporation Port congestion resiliency in a multi-card and multi-switch link aggregation group

Also Published As

Publication number Publication date
TW202002576A (en) 2020-01-01

Similar Documents

Publication Publication Date Title
WO2022105884A1 (en) Data transmission method and apparatus, network device, and storage medium
CN110661733B (en) Network interface card, exchange card and line card
JP5893762B2 (en) System and method for scheduling packet transmission on a client device
EP2479925B1 (en) Dynamic power management in a communications device
CN113852644B (en) Deterministic network equipment identification and authentication device and method
JP5159852B2 (en) Node, switch and system
WO2017028399A1 (en) Communication data transmission method and system
CN201639589U (en) Embedded dual-redundant network card based on ARM
CN108966046A (en) A kind of two based on FPGA kind communication interface fusion mac controller
WO2022089175A1 (en) Network congestion control method and apparatus
CN111181873A (en) Data transmission method, data transmission device, storage medium and electronic equipment
WO2017157065A1 (en) Method for managing address of meter device, and acquisition terminal and meter device
CN114827292B (en) Industrial heterogeneous protocol high-speed conversion optimization processing method and system
EP2699030B1 (en) Route switching device, network switching system and route switching method
CN102811152A (en) Method for realizing real-time transaction and data exchange of multiple main bus network communication
WO2015027738A1 (en) Metadata transmission and receiving method, and ofls
WO2023015644A1 (en) Planning method and system architecture for scheduling of chained service flow
JP2016515361A (en) Network transmission coordination based on transmission metadata provided by the application
WO2017097117A1 (en) Message scheduling method and apparatus
CN112929418B (en) Rapid IO high-speed communication method and system based on publish-subscribe
TWI756444B (en) Network interface cards, fabric cards, and line cards for loop avoidance in a chassis switch
CN112637251A (en) Deterministic data transmission method and device based on LLDP protocol
US20150106519A1 (en) Selective multiple-media access control
WO2009062351A1 (en) Method for stacking system merging
CN109542833A (en) A kind of server management method based on microserver framework, device, server

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees