TWI697782B - Baseboard management controller switching method for sharing network protocol - Google Patents
Baseboard management controller switching method for sharing network protocol Download PDFInfo
- Publication number
- TWI697782B TWI697782B TW107128843A TW107128843A TWI697782B TW I697782 B TWI697782 B TW I697782B TW 107128843 A TW107128843 A TW 107128843A TW 107128843 A TW107128843 A TW 107128843A TW I697782 B TWI697782 B TW I697782B
- Authority
- TW
- Taiwan
- Prior art keywords
- network
- management controller
- baseboard management
- communication protocol
- external
- Prior art date
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
本發明有關於一種網路通訊協定切換方法,尤指一種基板管理控制器的網路通訊協定切換方法。The present invention relates to a network communication protocol switching method, in particular to a network communication protocol switching method of a baseboard management controller.
伺服器通常會配置外接網卡,外接網卡例如PCIE網路卡或OCP網卡。伺服器的基板管理控制器的共享網路通訊協定可致能基板與外接網卡的網路接口。舉例來說,如果伺服器配置有OCP網卡,則基板管理控制器的共享網路通訊協定的物理鏈路將連接於OCP網卡的網路接口。如果伺服器沒有配置OCP卡,則基板管理控制器的共享網路通訊協定的物理鏈路則連接於基板的網路接口。目前基板管理控制器只能將共享網路通訊協定的物理鏈路切換於外接網卡的二個網路接口之間,或者切換於基板的二個網路接口之間,沒辦法切換於基板與外接網卡之網卡之間。如此一來,當外接網卡上的二個網路接口都發生故障或網路線拔出,則基板管理控制器無法將共享網路通訊協定的物理鏈路切換到基板的網路接口,導致共享網路通訊協定無法正常工作。Servers are usually equipped with external network cards, such as PCIE network cards or OCP network cards. The shared network communication protocol of the baseboard management controller of the server can enable the network interface between the baseboard and the external network card. For example, if the server is equipped with an OCP network card, the physical link of the shared network communication protocol of the baseboard management controller will be connected to the network interface of the OCP network card. If the server is not equipped with an OCP card, the physical link of the shared network communication protocol of the baseboard management controller is connected to the network interface of the baseboard. At present, the baseboard management controller can only switch the physical link of the shared network communication protocol between the two network interfaces of the external network card, or between the two network interfaces of the baseboard. There is no way to switch between the baseboard and the external Between the network cards of the network card. As a result, when the two network interfaces on the external network card are faulty or the network cable is unplugged, the baseboard management controller cannot switch the physical link of the shared network protocol to the network interface of the baseboard, resulting in the shared network The communication protocol is not working properly.
有鑑於此,目前的確有需要一種改良的網路通訊協定切換方法,至少可解決上述缺點。In view of this, there is indeed a need for an improved network protocol switching method that can at least solve the above shortcomings.
本發明的一實施例提供一種基板管理控制器切換共享網路通訊協定的方法,可確保共享網路通訊協定持續處於正常工作狀態。An embodiment of the present invention provides a method for a baseboard management controller to switch a shared network communication protocol, which can ensure that the shared network communication protocol continues to work normally.
本發明的一實施例提供一種基板管理控制器切換共享網路通訊協定的方法,包括:以基板管理控制器判斷主機板是否連接有外接網卡;若主機板連接有外接網卡,以基板管理控制器判斷外接網卡的外接網卡網路接口是否與網路線連接;若外接網卡網路接口與網路線有連接時,以基板管理控制器的共享網路通訊協定的物理鏈路連接於外接網卡網路接口;以及若外接網卡網路接口沒有與網路線連接時,將基板管理控制器的共享網路通訊協定的物理鏈路連接至主機板的主機板網路接口。An embodiment of the present invention provides a method for a baseboard management controller to switch a shared network communication protocol, including: using the baseboard management controller to determine whether the motherboard is connected with an external network card; if the motherboard is connected with an external network card, using the baseboard management controller Determine whether the external network interface of the external network card is connected to the network cable; if the external network interface of the external network card is connected to the network cable, use the physical link of the shared network protocol of the baseboard management controller to connect to the network interface of the external network card ; And if the network interface of the external network card is not connected to the network cable, connect the physical link of the shared network protocol of the baseboard management controller to the motherboard network interface of the motherboard.
依據本發明的一實施例所提供的基板管理控制器切換共享網路通訊協定的方法,當基板管理控制器透過積體電路匯流排偵測出所有的外接網卡網路接口都沒有連接網路線時,基板管理控制器會主動將共享網路通訊協定的物理鏈路從外接網卡網路接口切換至主機板網路接口。反之,若只要有一個外接網卡網路接口與網路線重新連接後,基板管理控制器會主動將共享網路通訊協定的物理鏈路從主機板網路接口切換至外接網卡網路接口,藉此使共享網路通訊協定能持續維持於正常工作狀態。According to the method for switching the shared network communication protocol of the baseboard management controller provided by an embodiment of the present invention, when the baseboard management controller detects through the integrated circuit bus that all the external network card network interfaces are not connected to the network line , The baseboard management controller will actively switch the physical link of the shared network communication protocol from the external network card network interface to the motherboard network interface. Conversely, if there is only one external network card network interface and the network cable is reconnected, the baseboard management controller will actively switch the physical link of the shared network protocol from the motherboard network interface to the external network card network interface, thereby The shared network communication protocol can continue to be maintained in a normal working state.
以上之關於本揭露內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。The above description of the disclosure and the following description of the implementation manners are used to demonstrate and explain the spirit and principle of the present invention, and to provide a further explanation of the patent application scope of the present invention.
以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。The detailed features and advantages of the present invention are described in detail in the following embodiments. The content is sufficient to enable anyone familiar with the relevant art to understand the technical content of the present invention and implement it accordingly, and according to the content disclosed in this specification, the scope of patent application and the drawings Anyone who is familiar with relevant skills can easily understand the purpose and advantages of the present invention. The following examples further illustrate the viewpoints of the present invention in detail, but do not limit the scope of the present invention by any viewpoint.
圖1為繪示本發明一實施例的伺服器的硬體裝置架構圖。如圖1所示,伺服器100包含有一主機板10與一外接網卡20,主機板10包含有一基板管理控制器12(Baseboard Management Controller)、一積體電路匯流排14(I-squared-C)、一主機板網路接口16以及一網卡插槽18,基板管理控制器12與積體電路匯流排14相耦接,而積體電路匯流排14與網卡插槽18相耦接,主機板網路接口16為RJ45型網路接口,而在其他實施例中,主機板網路接口16可為RJ11型或USB型網路接口。基板管理控制器12包含有一判斷電路121、一通用型輸入輸出部122(GPIO)、一網路通訊協定驅動器123(NCSI driver)、一第一切換電路124與一第二切換電路125。判斷電路121分別與通用型輸入輸出部122、網路通訊協定驅動器123以及積體電路匯流排14相耦接。網路通訊協定驅動器123分別與第一切換電路124與第二切換電路125相耦接,第一切換電路124與主機板網路接口16相耦接,而第二切換電路125與網卡插槽18相耦接。本實施例中,第一切換電路124與第二切換電路125採用npn型BJT來實施,在其他實施例中,第一切換電路124與第二切換電路125的實施還可採用npn型NMOS或PMOS,或採用pnp型BJT、NMOS或PMOS。FIG. 1 is a diagram showing the hardware device architecture of a server according to an embodiment of the invention. As shown in FIG. 1, the
外接網卡20包含有一對應於網卡插槽18的電連接部22以及一外接網卡網路接口24,而電連接部22與外接網卡網路接口24耦接,外接網卡網路接口24為RJ45型網路接口,而在其他實施例中,外接網卡網路接口24可為RJ11型或USB型網路接口。當外接網卡20的電連接部22插接於主機板10的網卡插槽18且達成電性連接時,基板管理控制器12的通用型輸入輸出部122具有一第一電壓位準,反之當外接網卡20的電連接部22脫離於主機板10的網卡插槽18時,則通用型輸入輸出部122具有異於第一電壓位準的第二電壓位準,在本實施例中,第二電壓位準小於第一電壓位準。如此一來,基板管理控制器12的判斷電路121透過偵測通用型輸入輸出部122的電壓位準的差異,即可知道是否有外接網卡20電性連接於主機板10。再者,在外接網卡20電性連接於主機板10的條件下,判斷電路121經由傳輸於積體電路匯流排14的積體電路匯流排訊號的內容判斷外接網卡網路接口24是否連接於網路線。如果外接網卡網路接口24未連接於網路線,判斷電路121會命令網路通訊協定驅動器123輸出第一訊號至第一切換電路124以使第一切換電路124處於導通狀態,且亦命令網路通訊協定驅動器123輸出第二訊號至第二切換電路125以使第二切換電路125處於截止狀態。如此一來,基板管理控制器12的共享網路通訊協定的物理鏈路與主機板10的主機板網路接口16相連接而與外接網卡20的外接網卡網路接口24斷開。反之,如果外接網卡網路接口24有連接網路線,判斷電路121則命令網路通訊協定驅動器123輸出第二訊號至第一切換電路124以使得第一切換電路124處於截止狀態,且亦命令網路通訊協定驅動器123輸出第一訊號至第二切換電路125,以使得第二切換電路125處於導通狀態。如此一來,基板管理控制器12的共享網路通訊協定的物理鏈路與主機板10的主機板網路接口16斷開而與外接網卡20的外接網卡網路接口24相連接。The
圖2為繪示本發明第一實施例的基板管理控制器切換共享網路通訊協定的方法的流程圖。如圖2所示,基板管理控制器切換共享網路通訊協定的方法包括以下步驟:在步驟S101,以基板管理控制器12的判斷電路121偵測基板管理控制器12的通用型輸入輸出部122的電壓位準,若偵測到的通用型輸入輸出部122的電壓位準為第一電壓位準,表示主機板10與外接網卡20有電性連接。在步驟S102,當主機板10與外接網卡20有電性連接,則基板管理控制器12的判斷電路121依據傳輸於積體電路匯流排14的積體電路匯流排訊號的內容判斷外接網卡20的一外接網卡網路接口24是否與一網路線連接。在步驟S103,當外接網卡網路接口24與網路線有連接時,基板管理控制器12的判斷電路121命令基板管理控制器12的網路通訊協定驅動器123輸出第二訊號與第一訊號至第一切換電路124與第二切換電路125,其中第一訊號的電壓位準使得第二切換電路125導通,而第二訊號的電壓位準無法使第一切換電路124導通,意即基板管理控制器12的共享網路通訊協定的物理鏈路與外接網卡20的外接網卡網路接口24相連接而與主機板10的主機板網路接口16斷開。在步驟S104中,當第二切換電路125導通時,第一訊號傳輸至外接網卡20的外接網卡網路接口24以致能外接網卡網路接口24。FIG. 2 is a flow chart showing a method for the baseboard management controller to switch shared network communication protocols according to the first embodiment of the present invention. As shown in FIG. 2, the method for the baseboard management controller to switch the shared network communication protocol includes the following steps: In step S101, the
若在步驟S101中,當基板管理控制器12的判斷電路121偵測到基板管理控制器12的通用型輸入輸出部122的電壓位準為第二電壓位準時,則表示主機板10沒有與外接網卡20電性連接,則接續步驟S105。在步驟S105中,基板管理控制器12的判斷電路121命令網路通訊協定驅動器123輸出第一訊號至第一切換電路124,其中致能訊號的電壓位準使第一切換電路124導通,意即基板管理控制器12的共享網路通訊協定的物理鏈路與主機板10的主機板網路接口16連接。若在步驟S102中,當基板管理控制器12的判斷電路121判斷外接網卡網路接口24未與網路線連接時,則接續步驟S105。If in step S101, when the
圖3為繪示本發明第二實施例的基板管理控制器切換共享網路通訊協定的方法的流程圖。圖3的實施例與圖2的實施例的差異在於:外接網卡網路接口24以及主機板網路接口16的數量為複數個,在步驟S202中,基板管理控制器12的判斷電路121依據傳輸於積體電路匯流排14的積體電路匯流排訊號的內容來判斷外接網卡20的每一個外接網卡網路接口24是否與網路線連接。在步驟S203中,當至少有一個外接網卡網路接口24與網路線有連接時,基板管理控制器12的判斷電路121命令網路通訊協定驅動器123輸出第一訊號與第二訊號至第二切換電路125與第一切換電路124以使得第二切換電路125與第一切換電路124分別處於導通狀態與截止狀態,意即基板管理控制器12的共享網路通訊協定的物理鏈路與外接網卡20的每一外接網卡網路接口24相連接而與主機板10的每一主機板網路接口16斷開。在步驟S204中,當第二切換電路125處於導通狀態時,第一訊號傳輸至與網路線有連接的外接網卡網路接口24以致能外接網卡網路接口24。3 is a flowchart showing a method for switching shared network communication protocols by a baseboard management controller according to a second embodiment of the present invention. The difference between the embodiment of FIG. 3 and the embodiment of FIG. 2 is that the number of the external network
若在步驟S202中,當基板管理控制器12的判斷電路121判斷每一外接網卡網路接口24未與網路線有連接時,則接續步驟S205。在步驟S205中,基板管理控制器12的判斷電路121命令網路通訊協定驅動器123輸出第一訊號至第一切換電路124以使得第一切換電路124處於導通狀態,意即基板管理控制器12的共享網路通訊協定的物理鏈路與主機板10的每一主機板網路接口16連接。If in step S202, when the
在本發明的一實施例中,當外接網卡20與主機板10電性連接後,基板管理控制器12會持續監控外接網卡20的網路連接狀態。圖4為繪示本發明第一實施例的基板管理控制器監控外接網卡的網路連接狀態的流程圖。如圖4所示,在步驟S401中,當主機板電性連接於外接網卡時,以基板管理控制器透過積體電路匯流排持續監控至少一外接網卡網路接口是否與網路線有連接。在步驟S402中,當基板管理控制器監控到至少一個外接網卡網路接口與網路線有連接時,基板管理控制器設定一網路狀態參數為真。在步驟S403中,當網路狀態參數被設定為真之後,若基板管理控制器監控到外接網卡網路接口均未與網路線有連接時,則重新設定網路狀態參數為偽。In an embodiment of the present invention, after the
圖5為繪示本發明第二實施例的基板管理控制器監控外接網卡的網路連接狀態的流程圖。如圖5所示,在步驟S501中,當主機板電性連接於外接網卡時,基板管理控制器透過積體電路匯流排持續監控至少一個外接網卡網路接口是否與網路線有連接。在步驟S502中,當基板管理控制器監控到所有外接網卡網路接口均未與網路線有連接時,基板管理控制器設定一網路狀態參數為偽。在步驟S503中,當網路狀態參數被設定為偽之後,若基板管理控制器監控到至少一個外接網卡網路接口與網路線有連接時,則重新設定網路狀態參數為真。FIG. 5 is a flow chart of the baseboard management controller monitoring the network connection status of the external network card according to the second embodiment of the present invention. As shown in FIG. 5, in step S501, when the motherboard is electrically connected to the external network card, the baseboard management controller continuously monitors whether at least one network interface of the external network card is connected to the network cable through the integrated circuit bus. In step S502, when the baseboard management controller monitors that all the external network card network interfaces are not connected to the network cable, the baseboard management controller sets a network status parameter to false. In step S503, after the network status parameter is set to false, if the baseboard management controller monitors that at least one external network card network interface is connected to the network cable, the network status parameter is reset to true.
依據本發明的一實施例所提供的基板管理控制器切換共享網路通訊協定的方法,當基板管理控制器透過積體電路匯流排偵測出所有的外接網卡網路接口都沒有連接網路線時,基板管理控制器會主動將共享網路通訊協定的物理鏈路從外接網卡網路接口切換至主機板網路接口。反之,若只要有一個外接網卡網路接口與網路線重新連接後,基板管理控制器會主動將共享網路通訊協定的物理鏈路從主機板網路接口切換至外接網卡網路接口,藉此使共享網路通訊協定能持續維持於正常工作狀態。According to the method for switching the shared network communication protocol of the baseboard management controller provided by an embodiment of the present invention, when the baseboard management controller detects through the integrated circuit bus that all the external network card network interfaces are not connected to the network line , The baseboard management controller will actively switch the physical link of the shared network communication protocol from the external network card network interface to the motherboard network interface. Conversely, if there is only one external network card network interface and the network cable is reconnected, the baseboard management controller will actively switch the physical link of the shared network protocol from the motherboard network interface to the external network card network interface, thereby The shared network communication protocol can continue to be maintained in a normal working state.
雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention is disclosed in the foregoing embodiments, it is not intended to limit the present invention. All changes and modifications made without departing from the spirit and scope of the present invention fall within the scope of patent protection of the present invention. For the scope of protection defined by the present invention, please refer to the attached patent scope.
100‧‧‧伺服器10‧‧‧主機板20‧‧‧外接網卡12‧‧‧基板管理控制器14‧‧‧積體電路匯流排16‧‧‧主機板網路接口18‧‧‧網卡插槽121‧‧‧判斷電路122‧‧‧通用型輸入輸出部123‧‧‧網路通訊協定驅動器124‧‧‧第一切換電路125‧‧‧第二切換電路22‧‧‧電連接部24‧‧‧外接網卡網路接口‧‧‧積體電路匯流排訊號100‧‧‧Server 10‧‧‧
圖1為繪示本發明一實施例的伺服器內的硬體裝置的架構圖。 圖2為繪示本發明第一實施例的基板管理控制器切換共享網路通訊協定的方法的流程圖。 圖3為繪示本發明第二實施例的基板管理控制器切換共享網路通訊協定的方法的流程圖。 圖4為繪示本發明第一實施例的基板管理控制器監控外接網卡的網路連接狀態的流程圖。 圖5為繪示本發明第二實施例的基板管理控制器監控外接網卡的網路連接狀態的流程圖。FIG. 1 is a structural diagram of a hardware device in a server according to an embodiment of the invention. FIG. 2 is a flowchart showing a method of switching shared network communication protocols by the baseboard management controller according to the first embodiment of the present invention. 3 is a flowchart showing a method for switching shared network communication protocols by a baseboard management controller according to a second embodiment of the present invention. FIG. 4 is a flow chart of the baseboard management controller monitoring the network connection status of the external network card according to the first embodiment of the present invention. FIG. 5 is a flow chart of the baseboard management controller monitoring the network connection status of the external network card according to the second embodiment of the present invention.
方法流程圖無標號 Method flow chart unlabeled
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107128843A TWI697782B (en) | 2018-08-17 | 2018-08-17 | Baseboard management controller switching method for sharing network protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107128843A TWI697782B (en) | 2018-08-17 | 2018-08-17 | Baseboard management controller switching method for sharing network protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202009721A TW202009721A (en) | 2020-03-01 |
TWI697782B true TWI697782B (en) | 2020-07-01 |
Family
ID=70766550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107128843A TWI697782B (en) | 2018-08-17 | 2018-08-17 | Baseboard management controller switching method for sharing network protocol |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI697782B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1295286A (en) * | 1999-11-04 | 2001-05-16 | 苏毅 | Switching method and device used between physically isolated network |
TW200619943A (en) * | 2004-12-10 | 2006-06-16 | Giga Byte Tech Co Ltd | Dynamic monitor and operation method of a physical network layer state |
TW200825762A (en) * | 2006-12-06 | 2008-06-16 | Inventec Corp | Apparatus and method for computer management |
TW200943074A (en) * | 2008-04-08 | 2009-10-16 | Mitac Int Corp | Flexible network switch fabric for clustering system |
TW201018137A (en) * | 2008-10-17 | 2010-05-01 | Giga Byte Tech Co Ltd | Device and method for automatically selecting network connection |
TW201114219A (en) * | 2009-10-14 | 2011-04-16 | Inventec Corp | Network connection test method |
TW201220078A (en) * | 2010-11-09 | 2012-05-16 | Wistron Neweb Corp | A wireless dongle and a driving method of wireless dongle |
US20150082063A1 (en) * | 2013-09-18 | 2015-03-19 | Lenovo (Singapore) Pte. Ltd. | Baseboard management controller state transitions |
-
2018
- 2018-08-17 TW TW107128843A patent/TWI697782B/en active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1295286A (en) * | 1999-11-04 | 2001-05-16 | 苏毅 | Switching method and device used between physically isolated network |
TW200619943A (en) * | 2004-12-10 | 2006-06-16 | Giga Byte Tech Co Ltd | Dynamic monitor and operation method of a physical network layer state |
TW200825762A (en) * | 2006-12-06 | 2008-06-16 | Inventec Corp | Apparatus and method for computer management |
TW200943074A (en) * | 2008-04-08 | 2009-10-16 | Mitac Int Corp | Flexible network switch fabric for clustering system |
TW201018137A (en) * | 2008-10-17 | 2010-05-01 | Giga Byte Tech Co Ltd | Device and method for automatically selecting network connection |
TW201114219A (en) * | 2009-10-14 | 2011-04-16 | Inventec Corp | Network connection test method |
TW201220078A (en) * | 2010-11-09 | 2012-05-16 | Wistron Neweb Corp | A wireless dongle and a driving method of wireless dongle |
US20150082063A1 (en) * | 2013-09-18 | 2015-03-19 | Lenovo (Singapore) Pte. Ltd. | Baseboard management controller state transitions |
Also Published As
Publication number | Publication date |
---|---|
TW202009721A (en) | 2020-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9696777B2 (en) | Computer port control | |
EP2854369B1 (en) | Method and apparatus for detecting interface connection between devices | |
US7792914B2 (en) | Server with network-based remote access and server management functions using reduced number of network connections | |
JP7481711B2 (en) | Status notification method in USB Type-C interface circuit, device having USB Type-C interface circuit, and information processing system | |
EP1139226A1 (en) | Method of emulating an attachment and detachment of a USB device | |
TW201140083A (en) | Determination of physical connectivity status of devices based on electrical measurement | |
US9336176B2 (en) | Remote access appliance with communication protocol autosensing feature | |
KR20120117645A (en) | Interface device and wiring board | |
WO2015153915A1 (en) | Detecting the orientation of a multimedia link connected to a device | |
CN109245950B (en) | Method for determining link failure position and related device | |
US20170371760A1 (en) | Advanced communication computer | |
US10802991B2 (en) | Pluggable module identification system | |
US9294604B1 (en) | Serial wrap-around redundancy system | |
CN114623756B (en) | Plug-in position detection device and electronic equipment | |
CN105703935B (en) | Tool automatically switches the server system of shared network function | |
TWI697782B (en) | Baseboard management controller switching method for sharing network protocol | |
US6675250B1 (en) | Fault tolerant communications using a universal serial bus | |
CN109274611B (en) | Method for switching sharing network protocol by baseboard management controller | |
US9811496B2 (en) | Method and apparatus for detecting interface connection between devices | |
EP3446443B1 (en) | Detection of non-powered device (non-pd) on a power-over-ethernet port based on the data link state information | |
TWI727155B (en) | Emarker and associated cable and power management method | |
TWI720912B (en) | Method for detection connection state between baseboard management control unit and switch and server device thereof | |
JP2013047994A5 (en) | ||
JP2001177543A (en) | Device and system for bus connection | |
US12101546B2 (en) | Hot-pluggable GMSL camera system |