TWI697782B - Baseboard management controller switching method for sharing network protocol - Google Patents

Baseboard management controller switching method for sharing network protocol Download PDF

Info

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
Application number
TW107128843A
Other languages
Chinese (zh)
Other versions
TW202009721A (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 TW107128843A priority Critical patent/TWI697782B/en
Publication of TW202009721A publication Critical patent/TW202009721A/en
Application granted granted Critical
Publication of TWI697782B publication Critical patent/TWI697782B/en

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

A switching method for a shared network protocol of a baseboard management controller comprises: determining whether a mainboard is connected with an external network card via a baseboard management controller; determining whether the external network card is connected with a network cable via the baseboard management controller if the mainboard is connected with the external network card; connecting a physical link of a shared network protocol of the baseboard management controller with an external network card network port if the external network card network port is connected with the network cable; and connecting the physical link of the shared network protocol of the baseboard management controller with a mainboard network port if the external network card network port is not connected with the network cable. As a result, the shared network protocol can be maintained in normal operation.

Description

基板管理控制器切換共享網路通訊協定的方法Method for switching shared network communication protocol by substrate management controller

本發明有關於一種網路通訊協定切換方法,尤指一種基板管理控制器的網路通訊協定切換方法。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 server 100 includes a motherboard 10 and an external network card 20. The motherboard 10 includes a baseboard management controller 12 (Baseboard Management Controller) and an integrated circuit bus 14 (I-squared-C). , A motherboard network interface 16 and a network card slot 18. The baseboard management controller 12 is coupled to the integrated circuit bus 14, and the integrated circuit bus 14 is coupled to the network card slot 18. The motherboard network The road interface 16 is an RJ45 type network interface, and in other embodiments, the motherboard network interface 16 can be an RJ11 type or a USB type network interface. The baseboard management controller 12 includes a judgment circuit 121, a general-purpose input/output unit 122 (GPIO), a network protocol driver 123 (NCSI driver), a first switching circuit 124, and a second switching circuit 125. The judgment circuit 121 is respectively coupled to the universal input and output unit 122, the network communication protocol driver 123, and the integrated circuit bus 14. The network communication protocol driver 123 is respectively coupled to the first switching circuit 124 and the second switching circuit 125, the first switching circuit 124 is coupled to the motherboard network interface 16, and the second switching circuit 125 is connected to the network card slot 18 Phase coupling. In this embodiment, the first switching circuit 124 and the second switching circuit 125 are implemented using npn-type BJT. In other embodiments, the implementation of the first switching circuit 124 and the second switching circuit 125 can also be implemented using npn-type NMOS or PMOS. , Or use pnp type BJT, NMOS or PMOS.

外接網卡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的積體電路匯流排訊號

Figure 02_image001
的內容判斷外接網卡網路接口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 external network card 20 includes an electrical connection part 22 corresponding to the network card slot 18 and an external network card network interface 24, and the electrical connection part 22 is coupled to the external network card network interface 24, the external network card network interface 24 is an RJ45 type network In other embodiments, the external network card network interface 24 can be an RJ11 type or USB type network interface. When the electrical connection portion 22 of the external network card 20 is plugged into the network card slot 18 of the motherboard 10 and an electrical connection is achieved, the universal input and output portion 122 of the baseboard management controller 12 has a first voltage level, and vice versa. When the electrical connection portion 22 of the network card 20 is separated from the network card slot 18 of the motherboard 10, the universal input and output portion 122 has a second voltage level different from the first voltage level. In this embodiment, the second voltage The level is less than the first voltage level. In this way, the judgment circuit 121 of the baseboard management controller 12 can know whether an external network card 20 is electrically connected to the motherboard 10 by detecting the difference in the voltage level of the universal input and output unit 122. Furthermore, under the condition that the external network card 20 is electrically connected to the motherboard 10, the judgment circuit 121 transmits the integrated circuit bus signal to the integrated circuit bus 14
Figure 02_image001
Determine whether the external network card network interface 24 is connected to the network cable. If the external network card network interface 24 is not connected to the network cable, the determining circuit 121 will command the network protocol driver 123 to output the first signal to the first switching circuit 124 so that the first switching circuit 124 is in a conducting state, and also command the network The communication protocol driver 123 outputs the second signal to the second switching circuit 125 to make the second switching circuit 125 in the off state. In this way, the physical link of the shared network communication protocol of the baseboard management controller 12 is connected to the motherboard network interface 16 of the motherboard 10 and disconnected from the external network interface 24 of the external network card 20. Conversely, if the external network card network interface 24 has a network connection route, the judgment circuit 121 instructs the network protocol driver 123 to output the second signal to the first switching circuit 124 so that the first switching circuit 124 is in the off state, and also commands the network The communication protocol driver 123 outputs the first signal to the second switching circuit 125, so that the second switching circuit 125 is in a conducting state. In this way, the physical link of the shared network communication protocol of the baseboard management controller 12 is disconnected from the motherboard network interface 16 of the motherboard 10 and connected to the external network interface 24 of the external network card 20.

圖2為繪示本發明第一實施例的基板管理控制器切換共享網路通訊協定的方法的流程圖。如圖2所示,基板管理控制器切換共享網路通訊協定的方法包括以下步驟:在步驟S101,以基板管理控制器12的判斷電路121偵測基板管理控制器12的通用型輸入輸出部122的電壓位準,若偵測到的通用型輸入輸出部122的電壓位準為第一電壓位準,表示主機板10與外接網卡20有電性連接。在步驟S102,當主機板10與外接網卡20有電性連接,則基板管理控制器12的判斷電路121依據傳輸於積體電路匯流排14的積體電路匯流排訊號

Figure 02_image003
的內容判斷外接網卡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 determination circuit 121 of the baseboard management controller 12 detects the universal input and output unit 122 of the baseboard management controller 12 If the detected voltage level of the universal input and output unit 122 is the first voltage level, it means that the motherboard 10 and the external network card 20 are electrically connected. In step S102, when the motherboard 10 is electrically connected to the external network card 20, the judgment circuit 121 of the baseboard management controller 12 is based on the integrated circuit bus signal transmitted to the integrated circuit bus 14.
Figure 02_image003
Determine whether an external network interface 24 of the external network card 20 is connected to a network cable. In step S103, when the external network card network interface 24 is connected to the network cable, the judgment circuit 121 of the BMC 12 commands the network communication protocol driver 123 of the BMC 12 to output the second signal and the first signal to the second signal. A switching circuit 124 and a second switching circuit 125, wherein the voltage level of the first signal makes the second switching circuit 125 conductive, and the voltage level of the second signal cannot make the first switching circuit 124 conductive, which means the baseboard management controller The physical link of the shared network communication protocol 12 is connected to the external network interface 24 of the external network card 20 and disconnected from the motherboard network interface 16 of the motherboard 10. In step S104, when the second switching circuit 125 is turned on, the first signal is transmitted to the external network interface 24 of the external network card 20 to enable the external network interface 24 of the external network card.

若在步驟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 judgment circuit 121 of the baseboard management controller 12 detects that the voltage level of the universal input and output section 122 of the baseboard management controller 12 is the second voltage level, it means that the motherboard 10 is not connected to the external If the network card 20 is electrically connected, step S105 is continued. In step S105, the judgment circuit 121 of the baseboard management controller 12 commands the network protocol driver 123 to output the first signal to the first switching circuit 124, wherein the voltage level of the enable signal turns on the first switching circuit 124, which means The physical link of the shared network communication protocol of the baseboard management controller 12 is connected to the mainboard network interface 16 of the mainboard 10. If in step S102, when the judgment circuit 121 of the baseboard management controller 12 judges that the external network card network interface 24 is not connected to the network cable, step S105 is continued.

圖3為繪示本發明第二實施例的基板管理控制器切換共享網路通訊協定的方法的流程圖。圖3的實施例與圖2的實施例的差異在於:外接網卡網路接口24以及主機板網路接口16的數量為複數個,在步驟S202中,基板管理控制器12的判斷電路121依據傳輸於積體電路匯流排14的積體電路匯流排訊號

Figure 02_image003
的內容來判斷外接網卡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 card network interface 24 and the motherboard network interface 16 is plural. In step S202, the judgment circuit 121 of the baseboard management controller 12 is based on the transmission Integrated circuit bus signal on integrated circuit bus 14
Figure 02_image003
To determine whether each external network interface 24 of the external network card 20 is connected to a network cable. In step S203, when at least one external network card network interface 24 is connected to the network cable, the judgment circuit 121 of the baseboard management controller 12 commands the network protocol driver 123 to output the first signal and the second signal to the second switch The circuit 125 and the first switching circuit 124 enable the second switching circuit 125 and the first switching circuit 124 to be in an on state and an off state, respectively, which means that the physical link of the BMC 12 and the external network card 20 are shared by the network communication protocol. Each external network card network interface 24 is connected to each motherboard network interface 16 of the motherboard 10 and disconnected from each motherboard network interface 16. In step S204, when the second switching circuit 125 is in the conducting state, the first signal is transmitted to the external network card network interface 24 connected to the network line so as to enable the external network card network interface 24.

若在步驟S202中,當基板管理控制器12的判斷電路121判斷每一外接網卡網路接口24未與網路線有連接時,則接續步驟S205。在步驟S205中,基板管理控制器12的判斷電路121命令網路通訊協定驅動器123輸出第一訊號至第一切換電路124以使得第一切換電路124處於導通狀態,意即基板管理控制器12的共享網路通訊協定的物理鏈路與主機板10的每一主機板網路接口16連接。If in step S202, when the judgment circuit 121 of the baseboard management controller 12 judges that each external network card network interface 24 is not connected to the network cable, step S205 is continued. In step S205, the judgment circuit 121 of the baseboard management controller 12 instructs the network protocol driver 123 to output the first signal to the first switching circuit 124 so that the first switching circuit 124 is in a conducting state, which means that the baseboard management controller 12 The physical link of the shared network communication protocol is connected to each motherboard network interface 16 of the motherboard 10.

在本發明的一實施例中,當外接網卡20與主機板10電性連接後,基板管理控制器12會持續監控外接網卡20的網路連接狀態。圖4為繪示本發明第一實施例的基板管理控制器監控外接網卡的網路連接狀態的流程圖。如圖4所示,在步驟S401中,當主機板電性連接於外接網卡時,以基板管理控制器透過積體電路匯流排持續監控至少一外接網卡網路接口是否與網路線有連接。在步驟S402中,當基板管理控制器監控到至少一個外接網卡網路接口與網路線有連接時,基板管理控制器設定一網路狀態參數為真。在步驟S403中,當網路狀態參數被設定為真之後,若基板管理控制器監控到外接網卡網路接口均未與網路線有連接時,則重新設定網路狀態參數為偽。In an embodiment of the present invention, after the external network card 20 is electrically connected to the motherboard 10, the baseboard management controller 12 continuously monitors the network connection status of the external network card 20. 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. As shown in FIG. 4, in step S401, when the motherboard is electrically connected to the external network card, the baseboard management controller continuously monitors whether the network interface of at least one external network card is connected to the network cable through the integrated circuit bus. In step S402, when the baseboard management controller monitors that at least one external network card network interface is connected to the network cable, the baseboard management controller sets a network status parameter to be true. In step S403, after the network status parameter is set to true, if the baseboard management controller monitors that none of the external network card network interfaces are connected to the network cable, the network status parameter is reset to false.

圖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‧‧‧外接網卡網路接口

Figure 02_image005
‧‧‧積體電路匯流排訊號100‧‧‧Server 10‧‧‧Motherboard 20‧‧‧External network card 12‧‧‧Baseboard management controller 14‧‧‧Integrated circuit bus 16‧‧‧Motherboard network interface 18‧‧‧Network card plug Slot 121‧‧‧Judging circuit 122‧‧‧Universal input and output unit 123‧‧‧Network communication protocol driver 124‧‧‧First switching circuit 125‧‧‧Second switching circuit 22‧‧‧Electrical connection part 24‧ ‧‧External network card network interface
Figure 02_image005
‧‧‧Integrated circuit bus signal

圖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)

一種基板管理控制器切換共享網路通訊協定的方法,包括:以一基板管理控制器判斷一主機板是否連接有一外接網卡;若該主機板連接有該外接網卡,以該基板管理控制器判斷該外接網卡的一外接網卡網路接口是否與一網路線連接;若該外接網卡網路接口與該網路線有連接時,以該基板管理控制器的一共享網路通訊協定的物理鏈路連接於該外接網卡網路接口;以及若該外接網卡網路接口沒有與該網路線連接時,將該基板管理控制器的該共享網路通訊協定的該物理鏈路連接至該主機板的一主機板網路接口。A method for switching a shared network communication protocol by a baseboard management controller includes: judging by a baseboard management controller whether a motherboard is connected with an external network card; if the motherboard is connected with the external network card, the baseboard management controller determines the Whether an external network interface of the external network card is connected to a network cable; if the external network interface of the external network card is connected to the network cable, it is connected to the baseboard management controller via a physical link of a shared network communication protocol The external network card network interface; and if the external network card network interface is not connected to the network cable, connect the physical link of the shared network communication protocol of the baseboard management controller to a motherboard of the motherboard Network interface. 如請求項1所述之基板管理控制器切換共享網路通訊協定的方法,其中該基板管理控制器設置在該主機板。The method for switching a shared network communication protocol by a baseboard management controller according to claim 1, wherein the baseboard management controller is disposed on the motherboard. 如請求項1所述之基板管理控制器切換共享網路通訊協定的方法,其中該基板管理控制器具有一通用型輸入輸出(GPIO),該主機板上設有一網卡插槽,該通用型輸入輸出與該網卡插槽電性連接,當該外接網卡插接於該網卡插槽時,該通用型輸入輸出具有一第一電壓位準,當該外接網卡沒有插接於該網卡插槽時,該通用型輸入輸出具有一異於該第一電壓位準的第二電壓位準。The method for switching a shared network communication protocol by a baseboard management controller according to claim 1, wherein the baseboard management controller has a general-purpose input and output (GPIO), the motherboard is provided with a network card slot, and the general-purpose input and output It is electrically connected to the network card slot. When the external network card is plugged into the network card slot, the universal input and output has a first voltage level. When the external network card is not plugged into the network card slot, the The universal input and output have a second voltage level different from the first voltage level. 如請求項1所述之基板管理控制器切換共享網路通訊協定的方法,更包括當該外接網卡網路接口與該網路線有連接時,以該基板管理控制器的一網路通訊協定驅動器(NCSI driver) 致能該外接網卡網路接口。The method for switching a shared network communication protocol by a baseboard management controller as described in claim 1, further comprising using a network communication protocol driver of the baseboard management controller when the external network interface is connected to the network cable (NCSI driver) Enable the network interface of the external network card. 如請求項1所述之基板管理控制器切換共享網路通訊協定的方法,更包括當該主機板網路接口與該網路線有連接時,以該基板管理控制器的一網路通訊協定驅動器致能該主機板網路接口。The method for switching the shared network communication protocol of the baseboard management controller according to claim 1, further comprising using a network communication protocol driver of the baseboard management controller when the motherboard network interface is connected to the network cable Enable the network interface of the motherboard. 如請求項1所述之基板管理控制器切換共享網路通訊協定的方法,更包括當該主機板連接有該外接網卡時,以該基板管理控制器透過一積體電路匯流排(I-squared-C) 監控該外接網卡網路接口是否與該網路線連接。As described in claim 1, the method for switching the shared network communication protocol of the baseboard management controller further includes when the motherboard is connected to the external network card, using the baseboard management controller through an integrated circuit bus (I-squared -C ) Monitor whether the network interface of the external network card is connected to the network cable. 如請求項6所述之基板管理控制器切換共享網路通訊協定的方法,其中當該基板管理控制器監控到該外接網卡網路接口與該網路線連接時,以該基板管理控制器設定一網路狀態參數為真。The method for switching a shared network communication protocol by a baseboard management controller according to claim 6, wherein when the baseboard management controller monitors that the external network interface is connected to the network cable, the baseboard management controller sets a The network status parameter is true. 如請求項7所述之基板管理控制器切換共享網路通訊協定的方法,更包括當該網路狀態參數為真之後,若該基板管理控制器監控到該網路線脫離該外接網卡網路接口,則重新設定該網路狀態參數為偽。The method for switching the shared network communication protocol of the baseboard management controller as described in claim 7, further comprising when the network status parameter is true, if the baseboard management controller monitors that the network line is out of the network interface of the external network card , Then reset the network status parameter to false. 如請求項6所述之基板管理控制器切換共享網路通訊協定的方法,其中當該基板管理控制器監控到該外接網卡網路接口沒有與該網路線連接時,以該基板管理控制器設定一網路狀態參數為偽。The method for switching a shared network communication protocol by a baseboard management controller according to claim 6, wherein when the baseboard management controller monitors that the external network interface is not connected to the network cable, the baseboard management controller sets A network status parameter is false. 如請求項9所述之基板管理控制器切換共享網路通訊協定的方法,更包括當該網路狀態參數為偽之後,若該基板管理控制器監控到該外接網卡網路接口與該網路線連接,則重新設定該網路狀態參數為真。The method for switching the shared network communication protocol of the baseboard management controller as described in claim 9, further comprising when the network status parameter is false, if the baseboard management controller monitors the external network interface and the network line If connected, reset the network status parameter to true.
TW107128843A 2018-08-17 2018-08-17 Baseboard management controller switching method for sharing network protocol TWI697782B (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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