Communication method and device based on server

By combining the fiber optic gigabit Ethernet protocol and the simplified gigabit media independent interface mode in the server, the problem of the dedicated network port and the shared port being the same network port is solved, realizing normal communication of multiple network functions and the effectiveness of BMC remote management function.

WO2025228001A1PCT designated stage Publication Date: 2025-11-06INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/084503
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-29
Filing Date
2025-03-24
Publication Date
2025-11-06

AI Technical Summary

Technical Problem

In servers, dedicated network ports and shared network ports operate in different modes even though they are the same network port. This makes it difficult to adapt to scenarios with multiple network functions, resulting in the failure of BMC remote management functions and IPMI protocol interaction failures.

Method used

By employing different communication modes between the baseboard management controller and the target chip and the network switching chip, including fiber optic mode and simplified gigabit media independent interface mode, normal communication between at least two network ports can be achieved. Specifically, this includes the combined use of fiber optic gigabit Ethernet protocol and simplified gigabit media independent interface mode.

Benefits of technology

The system enables the baseboard management controller to provide external services through at least two network ports, adapting to scenarios with multiple network functions and ensuring the normal operation of BMC remote management functions and IPMI protocol interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025084503_06112025_PF_FP_ABST
    Figure CN2025084503_06112025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a communication method and device based on a server, which are applied to the technical field of servers. A baseboard management controller communicates with a network switch chip by means of a target chip, and the network switch chip provides at least two network ports. The method comprises: detecting a connection mode of a management data input / output protocol in a target chip; and when the connection mode is that the target chip is connected to a baseboard management controller, controlling the baseboard management controller to communicate with the target chip by using an optical fiber gigabit Ethernet protocol in an optical fiber mode, and controlling the target chip to communicate with a network switch chip by using an optical fiber gigabit Ethernet protocol in a reduced gigabit media independent interface mode. In this way, a network switch chip provides at least two network ports for a baseboard management controller, and normal communication of the at least two network ports is guaranteed, so that the method is suited to scenarios where a plurality of network functions are required.
Need to check novelty before this filing date? Find Prior Art

Description

Server-based communication method and device

[0001] Cross-reference to related applications

[0002] The present application claims priority to the Chinese patent application No. 202410525152.7, filed on April 29, 2024, and entitled "Server-based communication method and device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] The present application relates to the technical field of servers, and particularly relates to a server-based communication method and device. BACKGROUND

[0004] In a server, a network is a very important function, especially in a data center, functions such as interaction with external users and information storage usually cannot be separated from the network function. Moreover, the server also involves a remote management function, which is realized based on a management chip of a server mainboard and depends on the control of a management firmware BMC (Baseboard Management Controller).

[0005] When the remote network function of the management chip is controlled through the baseboard management controller, the functions of a network special port and a network shared port are involved, but the network special port and the network shared port are the same network port, only the working mode is different, and for a scene in which multiple network functions need to be used, this mode is difficult to apply. SUMMARY

[0006] In view of the above problems, a server-based communication method and device are provided to overcome the above problems or at least partially solve the above problems, comprising:

[0007] A server-based communication method, a baseboard management controller in the server communicates with a network switching chip end through a target chip end, the network switching chip end provides at least two network ports, and the baseboard management controller provides external services through the at least two network ports, comprising:

[0008] Detecting a link mode of a management data input / output protocol in the target chip end;

[0009] In a case where the link mode is that the target chip end is linked with the baseboard management controller, controlling the baseboard management controller and the target chip end to communicate through a fiber gigabit Ethernet protocol in a fiber mode, and the target chip end and the network switching chip end to communicate through a fiber gigabit Ethernet protocol in a reduced gigabit media independent interface mode.

[0010] In some embodiments of the present application, in the case of the linking mode being the target chip end linked with the baseboard management controller, the baseboard management controller and the target chip end are controlled to communicate by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and the target chip end and the network switch chip end are controlled to communicate by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, comprising:

[0011] A terminal request for the server is received through the network port provided by the network switch chip end;

[0012] In the case of the linking mode being the target chip end linked with the baseboard management controller, the network switch chip end is controlled to send the terminal request to the target chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, and the target chip end is controlled to send the terminal request to the baseboard management controller by using the optical fiber gigabit Ethernet protocol in the optical fiber mode;

[0013] The baseboard management controller is controlled to send a reply message fed back to the terminal request to the target chip end by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and the target chip end is controlled to send the reply message to the network switch chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, so that the network switch chip end provides a network port to feed back the reply message to the terminal.

[0014] In some embodiments of the present application, further comprising:

[0015] In the case of the linking mode being the target chip end linked with the network switch chip end, the baseboard management controller and the target chip end are controlled to communicate by using the serial gigabit media independent interface mode, and the target chip end and the network switch chip end are controlled to communicate by using the reduced gigabit media independent interface mode.

[0016] In some embodiments of the present application, before the baseboard management controller and the target chip end are controlled to communicate by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and the target chip end and the network switch chip end are controlled to communicate by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, further comprising:

[0017] In the case of the linking mode being the target chip end linked with the baseboard management controller, the baseboard management controller is set to be linked with the uplink port of the target chip end by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and the downlink port of the target chip end is set to be linked with the network switch chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

[0018] In some embodiments of the present application, the baseboard management controller and the target chip end communicate in the fiber mode of the fiber gigabit Ethernet protocol, and before the target chip end and the network switch chip end communicate in the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, further comprising:

[0019] In the process of starting the server, the working mode of the target chip end is set so that the working mode of the target chip end supports communication in the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol.

[0020] In some embodiments of the present application, in the process of starting the server, the working mode of the target chip end is set so that the working mode of the target chip end supports communication in the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, comprising:

[0021] In the process of starting the server, the baseboard management controller sets the parameters in the register of the target chip end so that the working mode of the target chip end supports communication in the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol.

[0022] In some embodiments of the present application, in the process of starting the server, the baseboard management controller sets the parameters in the register of the target chip end so that the working mode of the target chip end supports communication in the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, further comprising:

[0023] The baseboard management controller reads back the parameters in the register of the target chip end to confirm whether the working mode of the target chip end is set correctly.

[0024] In some embodiments of the present application, further comprising:

[0025] In the case that the working mode of the target chip end is not set correctly, feedback the message of communication failure.

[0026] In some embodiments of the present application, in the process of starting the server, the working mode of the target chip end is set so that the working mode of the target chip end supports communication in the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, comprising:

[0027] In response to the input instruction, the server is started, and in the process of starting the server, it is detected whether to enter the starting stage for the baseboard management controller;

[0028] When it is detected that the booting phase for the baseboard management controller is entered, the working mode of the target chip end is set so that the working mode of the target chip end supports communication using the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol.

[0029] In some embodiments of the present application, after the working mode of the target chip end is set so that the working mode of the target chip end supports communication using the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol during the process of starting the server, the method further comprises:

[0030] The network switching chip end is set to adapt to the working mode of the target chip end.

[0031] In some embodiments of the present application, the network switching chip end is set to adapt to the working mode of the target chip end, comprising:

[0032] Parameters in the register of the network switching chip end are set by the baseboard management controller to adapt to the working mode of the target chip end;

[0033] The parameters in the register of the network switching chip end are set, specifically comprising:

[0034] The working mode of the network switching chip end is set by the baseboard management controller to support communication using the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol;

[0035] The port of the network switching chip end is enabled by the baseboard management controller;

[0036] The port read-write of the network switching chip end is set by the baseboard management controller;

[0037] The port time delay of the network switching chip end is set by the baseboard management controller.

[0038] In some embodiments of the present application, before the network switching chip end is set to adapt to the working mode of the target chip end, the method further comprises:

[0039] The setting result of the working mode of the target chip end is obtained;

[0040] When the setting result indicates that the working mode of the target chip end is set correctly, the network switching chip end is set to adapt to the working mode of the target chip end.

[0041] In some embodiments of the present application, the control baseboard management controller and the target chip end communicate by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and before the target chip end and the network switching chip end communicate by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, the method further comprises:

[0042] According to the clock frequency of the server mainboard, the network switching chip end is provided with the required clock frequency.

[0043] In some embodiments of the present application, the control baseboard management controller and the target chip end communicate by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and before the target chip end and the network switching chip end communicate by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, the method further comprises:

[0044] According to the input operation, the link mode of the management data input / output protocol in the target chip end is set.

[0045] In some embodiments of the present application, according to the input operation, the link mode of the management data input / output protocol in the target chip end is set, comprising:

[0046] The selection result of the option in the basic input / output system is obtained, and according to the selection result, the link mode of the management data input / output protocol in the target chip end is set;

[0047] Or, the control instruction of the baseboard management controller is received, and according to the control instruction, the link mode of the management data input / output protocol in the target chip end is set;

[0048] Or, the operation instruction of the mainboard end jump cap operation is received, and according to the operation instruction, the link mode of the management data input / output protocol in the target chip end is set.

[0049] In some embodiments of the present application, the at least two network ports provided by the network switching chip end include a network dedicated port and a network shared port.

[0050] A server-based communication device, a baseboard management controller in the server communicates with a network switching chip end through a target chip end, the network switching chip end provides at least two network ports, and the baseboard management controller provides external services through the at least two network ports, comprising:

[0051] The link mode detection module is used for detecting the link mode of the management data input / output protocol in the target chip end;

[0052] The first communication module is configured to control the substrate management controller and the target chip end to communicate with each other in the optical fiber gigabit Ethernet protocol in the optical fiber mode, and the target chip end and the network switch chip end to communicate with each other in the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode when the target chip end is linked with the substrate management controller.

[0053] An electronic device includes a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implements the method as above.

[0054] A computer non-volatile storage medium stores a computer program, the computer program, when executed by a processor, implements the method as above.

[0055] A computer program product includes a computer program, the computer program, when executed by a processor, implements the method as above.

[0056] The embodiments of the present application have the following advantages:

[0057] In the embodiments of the present application, the substrate management controller in the server communicates with the network switch chip end through the target chip end, the network switch chip end provides at least two network ports, the substrate management controller provides external services through the at least two network ports, and the communication mode of the management data input / output protocol in the target chip end is detected. When the target chip end is linked with the substrate management controller, the substrate management controller and the target chip end communicate with each other in the optical fiber gigabit Ethernet protocol in the optical fiber mode, and the target chip end and the network switch chip end communicate with each other in the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode. The network switch chip end provides at least two network ports for the substrate management controller, and the corresponding communication mode is provided to ensure the normal communication of the at least two network ports, thereby being suitable for the scene requiring multiple network functions. BRIEF DESCRIPTION OF DRAWINGS

[0058] In order to more clearly illustrate the technical solutions of the present application, the drawings needed in the description of the present application will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0059] Fig. 1 is a step flowchart of a communication method based on a server according to some embodiments of the present application;

[0060] Fig. 2 is a step flowchart of another communication method based on a server according to some embodiments of the present application;

[0061] FIG. 3a is a schematic diagram of a system architecture according to some embodiments of the present application;

[0062] FIG. 3b is a flow chart of another server-based communication method according to some embodiments of the present application;

[0063] FIG. 4 is a structural block diagram of a server-based communication device according to some embodiments of the present application. DETAILED DESCRIPTION

[0064] In order to make the above objectives, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below with reference to the drawings and specific embodiments. Obviously, the described embodiments are some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without any creative work, fall within the scope of protection of the present application.

[0065] For a scenario requiring the use of multiple network functions, the embodiments of the present application introduce a network switch chip end to support the implementation of at least two network port functions, such as a dual-network port chip. The BMC communicates with the network switch chip end through the target chip end to implement the function of the BMC managing at least two network ports.

[0066] As an example, the target chip can be an RTL (Realtek) chip, and of course, other chips can also be used. The present application does not limit the specific model of the chip.

[0067] In this embodiment, the MAC (Media Access Control Address) of the management chip end of the BMC in the server is linked to the target chip end through the SGMII (Serial Gigabit Media Independent Interface) mode, the target chip end is linked to the network switch chip end through the RGMII (Reduced Gigabit Media Independent Interface) mode, and the function of the BMC managing at least two network ports is implemented.

[0068] Wherein, MII (Media Independent Interface) is also called media independent interface. It is an Ethernet industry standard defined by IEEE-802.3. It includes a data interface and a management interface. The data interface includes two independent channels for the transmitter and receiver respectively. Each channel has its own data, clock and control signals. The MII data interface requires 16 signals in total. The management interface is a two-signal interface, one is a clock signal and the other is a data signal. Through the management interface, the upper layer can monitor and control the device.

[0069] GMII (Gigabit Media Independent Interface) is an 8-bit parallel synchronous transceiver interface, which uses 8-bit interface data and 125MHz working clock, and the transmission rate can reach 1000Mbps. It is compatible with the 10 / 100Mbps working mode specified by MII. The data structure of GMII conforms to the IEEE (Institute of Electrical and Electronics Engineers) Ethernet standard.

[0070] SGMII (Serial Gigabit Media Independent Interface) refers to the serial interface between a device and a high-integration network chip. SGMII Interface Specification 1.8 specifies the transmission rate, signaling format, timing requirements, impedance matching and other aspects of the SGMII interface. The specification requires that the SGMII interface must comply with the standard signaling format, including the composition of clock, data, control and other signals, to ensure normal communication between the device and the network chip. It also specifies the timing requirements of the SGMII interface, including the delay of data transmission and the accuracy of the clock signal. These timing requirements are very important to ensure the reliability and stability of data transmission. Impedance matching is specified in detail to ensure the quality of the signal and the stability of the transmission distance.

[0071] RGMII (Reduced Gigabit Media Independent Interface) uses a 4-bit data interface, with a working clock of 125MHz, and transmits data simultaneously on the rising and falling edges, so the transmission rate can reach 1000Mbps. It is compatible with the 10 / 100Mbps working mode specified by MII, and supports transmission rates of 10M / 100M / 1000Mb / s, with corresponding clk (Clock) signals of 2.5MHz / 25MHz / 125MHz. The RGMII data structure conforms to the IEEE Ethernet standard. The purpose of using RGMII is to reduce circuit cost, reducing the number of pins of the device implementing this interface from 25 to 14.

[0072] However, in the actual debugging process of the above architecture, it is found that the network address cannot be set, which causes the BMC remote management server to fail to function, and also causes the BMC to fail to normally interact with the BIOS through the IPMI (Intelligent Platform Management Interface) protocol, which will cause the above functions to completely fail.

[0073] Through analysis of the physical design scheme of the target chip, the network switching chip and the BMC, the reason is that the target chip end works in the in-band RGMII mode, and the network switching chip end needs to support the in-band adaptive function of the in-band RGMII mode, but the network switching chip end does not support the in-band adaptive function, thereby causing the target chip end and the network switching chip end to fail to normally communicate.

[0074] However, the target chip end supports the out-of-band adaptive function, and the network switching chip also supports the out-of-band adaptive function, and whether the network switching chip end can support the out-of-band adaptive function depends on the link mode of the MDIO (Management Data Input / Output) protocol of the target chip end.

[0075] The link mode of the MDIO protocol of the target chip end includes that the MDIO protocol link of the target chip end is linked with the network switching chip end, and the MDIO protocol link of the target chip end is linked with the BMC.

[0076] On the one hand, if the MDIO protocol link of the target chip end is linked with the network switching chip end, the out-of-band adaptive function of the network switching chip end is supported; on the other hand, if the MDIO protocol link of the target chip end is linked with the BMC, the out-of-band adaptive function of the network switching chip end cannot be supported.

[0077] Based on this, different network communication modes between the BMC end, the target chip and the network switching chip can be automatically set according to different situations of the physical link mode of the MDIO protocol of the target chip end, and effective setting of at least two network ports in the network switching chip is realized under different network communication modes.

[0078] For linking the MDIO protocol link with the network switching chip end, since the out-of-band adaptive function of the network switching chip end is supported, the out-of-band adaptive function of the network switching chip end can be used to realize SGMII mode-RGMII mode communication between the BMC and the network switching chip end through the target chip end.

[0079] For the case that the MDIO protocol link of the target chip end is linked with the BMC, the BMC cannot support the out-of-band adaptive function of the network switch chip end, and the BMC cannot communicate with the network switch chip end in SGMII mode-RGMII mode, but the target chip end supports the 1000base-X (fiber gigabit Ethernet) protocol, and the network switch chip end also supports the 1000base-X protocol, so the target chip end and the network switch chip end can communicate normally through the 1000base-X protocol.

[0080] It can be understood that, according to different ways of setting the physical link of the MDIO protocol of the target chip end, the network communication protocols supported by the BMC, the target chip end, and the network switch chip end are different, and are as follows:

[0081] When the physical link mode of the MDIO protocol of the target chip end is that the target chip end is linked with the network switch chip end, the BMC is physically linked with the target chip end in SGMII mode, the target chip end is linked with the network switch chip end in RGMII mode, the network switch chip supports the out-of-band adaptive mode, and the BMC communicates with the network switch chip end in SGMII mode-RGMII mode.

[0082] When the physical link mode of the MDIO protocol of the target chip end is that the target chip end is physically linked with the BMC, the network communication mode is adjusted to be the 1000base-X protocol in FIBER and RGMII mode for communication. When the server starts, the BMC reads whether the current mode of the target chip is the 1000base-X protocol through the MDIO protocol, if the current mode is not the 1000base-X protocol, the 1000base-X protocol is set, and the working mode of the network switch chip end, the port enable setting of the network switch chip end, the port read-write setting of the network switch chip end, and the port time delay setting of the network switch chip end are set through the MDIO protocol, so as to realize the network normal communication function of the 1000base-X protocol.

[0083] The application is further described below in combination with the drawings:

[0084] Referring to FIG. 1, a step flowchart of a communication method based on a server is shown, in which a baseboard management controller in the server communicates with a network switch chip end through a target chip end, the network switch chip end provides at least two network ports, such as a dual-network-port chip, in some examples, the at least two network ports provided by the network switch chip end include a network dedicated port and a network shared port, and the baseboard management controller can provide external services such as remote management server functions through the at least two network ports.

[0085] Specifically, the method can include the following steps:

[0086] In step 101, a link mode of a management data input / output (MDIO) protocol in a target chip end is detected.

[0087] In actual application, the link mode of the MDIO protocol in the target chip end can be detected.

[0088] The link mode of the MDIO protocol in the target chip end includes that the MDIO protocol link in the target chip end is linked with a network switch chip end or the MDIO protocol link in the target chip end is linked with a baseboard management controller (BMC).

[0089] On one hand, if the MDIO protocol link in the target chip end is linked with the network switch chip end, the out-of-band adaptive function of the network switch chip end is supported; on the other hand, if the MDIO protocol link in the target chip end is linked with the BMC, the out-of-band adaptive function of the network switch chip end cannot be supported.

[0090] In step 102, in a case where the link mode is that the target chip end is linked with the BMC, the baseboard management controller and the target chip end are controlled to communicate with each other by using a fiber gigabit Ethernet protocol in an optical fiber mode, and the target chip end and the network switch chip end are controlled to communicate with each other by using a fiber gigabit Ethernet protocol in a reduced gigabit media independent interface mode.

[0091] The fiber gigabit Ethernet protocol is a 1000BASE-X protocol, where 1000 indicates that the transmission rate is 1000M, BASE indicates baseband transmission, and X represents a single-mode or multi-mode optical fiber. In terms of the protocol, the 1000BASE-X protocol has two hot plug encapsulations, SFP (Small Form Pluggable) and GBIC (Gigabit Interface Converter), and also has a 1*9 pin type encapsulation. In terms of the encapsulation, the SFP is an interface of a device, and a product of the 1000BASE-X protocol can be encapsulated in the SFP.

[0092] For the case where the MDIO protocol link in the target chip end is linked with the BMC, because the out-of-band adaptive function of the network switch chip end cannot be supported, the BMC cannot communicate with the network switch chip end in an SGMII mode-RGMII mode through the target chip end, but the target chip end supports the 1000BASE-X protocol, and the network switch chip end also supports the 1000BASE-X protocol, so the target chip end and the network switch chip end can normally communicate with each other by using the 1000BASE-X protocol.

[0093] Specifically, between the BMC and the target chip end, the 1000Base-X protocol in the FIBER mode can be used for communication, and between the target chip end and the network switch chip end, the 1000Base-X protocol in the RGMII mode can be used for communication.

[0094] That is, the communication mode can include:

[0095] 1. BMC→1000Base-X protocol in the FIBER mode→target chip end→1000Base-X protocol in the RGMII mode→network switch chip end;

[0096] 2. network switch chip end→1000Base-X protocol in the RGMII mode→target chip end→1000Base-X protocol in the FIBER mode→BMC.

[0097] In some embodiments of the present application, in the case that the linking mode is that the target chip end is linked with the baseboard management controller, the baseboard management controller and the target chip end are controlled to communicate by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and the target chip end and the network switch chip end are controlled to communicate by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, and the method comprises the following steps:

[0098] Substep 11: receiving a terminal request for the server through the network port provided by the network switch chip end.

[0099] Substep 12: in the case that the linking mode is that the target chip end is linked with the baseboard management controller, controlling the network switch chip end to send the terminal request to the target chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, and controlling the target chip end to send the terminal request to the baseboard management controller by using the optical fiber gigabit Ethernet protocol in the optical fiber mode.

[0100] Substep 13: controlling the baseboard management controller to send a reply message fed back for the terminal request to the target chip end by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and controlling the target chip end to send the reply message to the network switch chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, so as to feed back the reply message to the terminal through the network port provided by the network switch chip end.

[0101] In actual application, the terminal can send a terminal request to the server, the terminal request can include a remote management request, that is, the terminal is a remote terminal, and the terminal sends the request by using the remote connection mode, the destination address of the terminal request can be the address of the network port provided by the network switch chip end, and the server can receive the terminal request through the network port provided by the network switch chip end.

[0102] Since the linking mode is that the target chip end is linked with the baseboard management controller, after receiving the terminal request, the network switching chip end can send the terminal request to the target chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, and the target chip end can send the terminal request to the baseboard management controller by using the optical fiber gigabit Ethernet protocol in the optical fiber mode.

[0103] After processing the terminal request, a reply message can be generated. Since the linking mode is that the target chip end is linked with the baseboard management controller, the baseboard management controller can send the reply message fed back in response to the terminal request to the target chip end by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, the target chip end can send the reply message to the network switching chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, and the network switching chip end can feed back the reply message to the terminal through the provided network port, so as to realize the whole communication interaction process and respond to the terminal request.

[0104] In some embodiments of the present application, the following are further included:

[0105] In the case where the linking mode is that the target chip end is linked with the network switching chip end, the baseboard management controller and the target chip end are controlled to communicate in the serial gigabit media independent interface mode, and the target chip end and the network switching chip end are controlled to communicate in the reduced gigabit media independent interface mode.

[0106] For linking the MDIO protocol link with the network switching chip end, since the out-of-band adaptive function of the network switching chip end is supported, the out-of-band adaptive function of the network switching chip end can be used to realize the SGMII mode-RGMII mode communication between the BMC and the network switching chip end through the target chip end.

[0107] Specifically, the SGMII mode can be used for communication between the BMC and the target chip end, and the RGMII mode can be used for communication between the target chip end and the network switching chip end.

[0108] That is, the communication mode can include:

[0109] 1. BMC→SGMII mode→target chip end→RGMII mode→network switching chip end.

[0110] 2. Network switching chip end→SGMII mode→target chip end→RGMII mode→BMC.

[0111] In the embodiments of the present application, different network communication modes between the BMC end, the target chip and the network switch chip are automatically set according to different situations of the physical link mode of the MDIO protocol of the target chip end, and the effective setting of at least two network ports in the network switch chip is realized in different network communication modes, which improves the compatibility and ensures the normal interaction of network communication.

[0112] In some embodiments of the present application, before the communication between the control baseboard management controller and the target chip end is performed by using the fiber gigabit Ethernet protocol in the fiber mode, and the communication between the target chip end and the network switch chip end is performed by using the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, the following steps are further included.

[0113] According to the input operation, the link mode of the management data input and output protocol in the target chip end is set.

[0114] Specifically, the MDIO protocol link of the target chip end can be set to link with the network switch chip end, or the MDIO protocol link of the target chip end can be set to link with the BMC.

[0115] In some embodiments of the present application, according to the input operation, the link mode of the management data input and output protocol in the target chip end is set, including:

[0116] The selection result of the option in the basic input and output system is obtained, and according to the selection result, the link mode of the management data input and output protocol in the target chip end is set; or the control instruction of the baseboard management controller is received, and according to the control instruction, the link mode of the management data input and output protocol in the target chip end is set; or the operation instruction of the motherboard end hat jump operation is received, and according to the operation instruction, the link mode of the management data input and output protocol in the target chip end is set.

[0117] In actual application, multiple ways can be provided for input operation, and then the link mode of the MDIO protocol in the target chip end is set. As some examples, the input operation includes any one of the following: input operation by the option in the basic input and output system (BIOS), input operation by the control of the baseboard management controller (BMC), and input operation by the motherboard end hat jump.

[0118] In some examples, the setting of the link mode of the MDIO protocol can be realized by an automatic script. For example, the automatic script can realize the setting of the link mode by automatically selecting the option in the BIOS. Through the execution of the automatic script, the operation can be simplified, the efficiency can be improved, and the operation threshold can be reduced.

[0119] In some embodiments of the present application, before the target chip end and the network switch chip end communicate with each other by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, the method further comprises:

[0120] In the case that the link mode is that the target chip end and the chip in the baseboard management controller are linked, the baseboard management controller is set to link with the uplink port of the target chip end by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and the downlink port of the target chip end is set to link with the network switch chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

[0121] When the physical link mode of the MDIO protocol of the target chip end is that the target chip end and the BMC are physically linked, the network communication mode is adjusted to the 1000base-X protocol in the FIBER and RGMII modes. Specifically, the BMC is set to link with the uplink port of the target chip end by using the 1000base-X protocol in the FIBER mode, and the downlink port of the target chip end is set to link with the network switch chip end by using the 1000base-X protocol in the RGMII mode.

[0122] In the embodiments of the present application, by setting the communication modes of the BMC, the target chip end and the network switch chip end on the server side according to the physical link mode of the MDIO protocol of the target chip end, it is ensured that the communication can be normally performed in the link mode of the MDIO protocol, and the BMC can manage at least two network ports provided by the network switch chip end, thereby adapting to the scene in which multiple network functions are required to be used.

[0123] In some embodiments of the present application, before the target chip end and the network switch chip end communicate with each other by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, the method further comprises:

[0124] According to the clock frequency of the server mainboard, the required clock frequency is provided to the network switch chip end.

[0125] In actual application, the 25M clock frequency can be introduced to the network switch chip end by the server mainboard, and then the required clock frequency can be provided to the network switch chip end, and the operation of the network switch chip end is ensured by providing the required clock frequency to the network switch chip end, and the clock frequency of the server mainboard is directly used as the required clock frequency of the network switch chip end, thereby simplifying the operation.

[0126] In some embodiments of the present application, the baseboard management controller and the target chip end communicate in the fiber mode of the fiber gigabit Ethernet protocol, and before the target chip end and the network switch chip end communicate in the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, the method further comprises:

[0127] In the process of starting the server, the working mode of the target chip end is set so that the working mode of the target chip end supports communication in the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol.

[0128] In actual application, the BMC can read whether the current mode of the target chip is the 1000base-X protocol through the MDIO protocol, and if the current mode is not the 1000base-X protocol, the 1000base-X protocol can be set through the MDIO protocol.

[0129] In some embodiments of the present application, in the process of starting the server, the working mode of the target chip end is set so that the working mode of the target chip end supports communication in the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, comprising:

[0130] In the process of starting the server, the parameter in the register of the target chip end is set by the baseboard management controller so that the working mode of the target chip end supports communication in the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol.

[0131] In actual application, the BMC can read the parameter in the register of the target chip, and if the parameter in the register is a non-designated parameter, such as the designated parameter is 0x01, indicating that the current mode is not the 1000base-X protocol, the parameter in the register can be modified to a designated parameter to set the 1000base-X protocol.

[0132] In some embodiments of the present application, in the process of starting the server, the parameter in the register of the target chip end is set by the baseboard management controller so that the working mode of the target chip end supports communication in the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, and the method further comprises:

[0133] The parameter in the register of the target chip end is read back by the baseboard management controller to confirm whether the working mode of the target chip end is set correctly.

[0134] In some embodiments of the present application, the method further comprises:

[0135] In the case that the working mode of the target chip end is not set correctly, a message of communication failure is fed back.

[0136] After setting the parameters in the register, the parameters in the register can be read back to determine whether the working mode of the target chip end is set correctly through the read-back parameters.

[0137] If the parameters in the register are non-designated parameters, for example, the designated parameter is 0x01, indicating that the current mode is not the 1000base-X protocol, i.e., the working mode is not set correctly, a message of communication failure can be fed back, so that the user can learn the communication situation in time; if the parameters in the register are designated parameters, indicating that the current mode is the 1000base-X protocol, i.e., the working mode is set correctly.

[0138] In the embodiments of the present application, the working mode of the target chip end is read back to ensure correct setting of the working mode, avoid the problem of being unable to communicate, and improve reliability.

[0139] In some embodiments of the present application, during the process of starting the server, the working mode of the target chip end is set to enable the working mode of the target chip end to support communication using the fiber mode under the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode under the fiber gigabit Ethernet protocol, including:

[0140] In response to an input instruction, the server is started, and during the process of starting the server, it is detected whether to enter the starting stage for the baseboard management controller; when it is detected that the starting stage for the baseboard management controller is entered, the working mode of the target chip end is set to enable the working mode of the target chip end to support communication using the fiber mode under the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode under the fiber gigabit Ethernet protocol.

[0141] In actual application, the server can be started in response to an input instruction, and since there are multiple starting stages in the process of starting the server, it can be detected whether to enter the starting stage for the baseboard management controller, and when it is detected that the starting stage for the baseboard management controller is entered, the working mode of the target chip end can be set to enable the working mode of the target chip end to support communication using the fiber mode under the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode under the fiber gigabit Ethernet protocol.

[0142] In some embodiments of the present application, after the working mode of the target chip end is set to enable the working mode of the target chip end to support communication using the fiber mode under the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode under the fiber gigabit Ethernet protocol during the process of starting the server, it further includes:

[0143] The network switch chip end is set to adapt to the working mode of the target chip end.

[0144] In some embodiments of the application, setting the network switch chip end to adapt to the working mode of the target chip end includes:

[0145] The network switch chip end is set to adapt to the working mode of the target chip end.

[0146] After confirming that the working mode of the target chip is correctly set, the BMC can perform a series of operations on the registers of the network chip end through the MDIO protocol to realize the normal communication function of the 1000base-X protocol network.

[0147] In the embodiments of the application, by setting the target chip and the network switch chip through the BMC when the server starts, it is ensured that the target chip and the network switch chip can adapt to the set communication mode, thereby guaranteeing the normal interaction of network communication.

[0148] As some examples, setting the parameters in the registers of the network switch chip end can include:

[0149] The network switch chip end is set to adapt to the working mode of the target chip end.

[0150] In some embodiments of the application, before setting the network switch chip end to adapt to the working mode of the target chip end, it further includes:

[0151] The setting result of the working mode of the target chip end is obtained; when the setting result indicates that the working mode of the target chip end is correctly set, the network switch chip end is set to adapt to the working mode of the target chip end.

[0152] In actual application, the setting of the network switch chip end depends on the setting of the working mode of the target chip end, so the setting result of the working mode of the target chip end can be obtained, and when the setting result indicates that the working mode of the target chip end is correctly set, the network switch chip end can be set, and when the setting result indicates that the working mode of the target chip end is incorrectly set, the network switch chip end is not set.

[0153] In the embodiments of the present application, the substrate management controller in the server communicates with the network switching chip through the target chip, the network switching chip provides at least two network ports, the substrate management controller provides external services through the at least two network ports, and the link mode of the management data input and output protocol in the target chip is detected. In the case of the link mode being that the target chip is linked with the substrate management controller, the substrate management controller and the target chip communicate through the optical fiber gigabit Ethernet protocol in the optical fiber mode, and the target chip and the network switching chip communicate through the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, thereby realizing that the network switching chip provides at least two network ports for the substrate management controller and providing a corresponding communication mode to ensure the normal communication of the at least two network ports, and further being able to adapt to a scenario in which multiple network functions are required.

[0154] Referring to FIG. 2, a flowchart of steps of another server-based communication method provided by some embodiments of the present application is shown. The substrate management controller in the server communicates with the network switching chip through the target chip, and the network switching chip provides at least two network ports. The substrate management controller provides external services through the at least two network ports.

[0155] Specifically, the following steps can be included:

[0156] Step 201: According to an input operation, a link mode of a management data input and output protocol in the target chip is set.

[0157] Specifically, the MDIO protocol link of the target chip can be linked with the network switching chip, or the MDIO protocol link of the target chip can be linked with the BMC.

[0158] In actual applications, multiple ways can be provided to perform the input operation, thereby setting the link mode of the MDIO protocol in the target chip. As some examples, the input operation includes any of the following: performing the input operation through an option in the basic input and output system (BIOS), performing the input operation through the control of the substrate management controller (BMC), and performing the input operation through a jumper cap on the motherboard.

[0159] In some examples, the setting of the link mode of the MDIO protocol can be realized through an automated script. For example, the automated script can set the link mode by automatically selecting an option in the BIOS. Through the execution of the automated script, the operation can be simplified, the efficiency can be improved, and the operation threshold can be reduced.

[0160] Step 202: The link mode of the management data input and output protocol in the target chip is detected.

[0161] In practical application, the linking mode of the MDIO protocol at the target chip end can be detected.

[0162] The linking mode of the MDIO protocol at the target chip end includes that the MDIO protocol link at the target chip end is linked with the network switch chip end and the MDIO protocol link at the target chip end is linked with the BMC.

[0163] On one hand, if the MDIO protocol link at the target chip end is linked with the network switch chip end, the out-of-band adaptive function of the network switch chip end is supported; on the other hand, if the MDIO protocol link at the target chip end is linked with the BMC, the out-of-band adaptive function of the network switch chip end cannot be supported.

[0164] In step 203, in the case that the linking mode is that the target chip end is linked with the BMC, the BMC is set to link with the uplink port of the target chip end in the optical fiber mode of the optical fiber gigabit Ethernet protocol, and the downlink port of the target chip end is set to link with the network switch chip end in the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

[0165] When the physical linking mode of the MDIO protocol at the target chip end is that the target chip end is physically linked with the BMC, the network communication mode is adjusted to be the 1000base-X protocol in the FIBER and RGMII modes for communication. Specifically, the BMC is set to link with the uplink port of the target chip end in the 1000base-X protocol in the FIBER mode, and the downlink port of the target chip end is set to link with the network switch chip end in the 1000base-X protocol in the RGMII mode.

[0166] In the embodiments of the present application, by setting the communication modes of the BMC, the target chip end and the network switch chip end at the server side according to the physical linking mode of the MDIO protocol at the target chip end, it is ensured that the communication can be normally performed under the linking mode of the MDIO protocol, and the BMC can manage at least two network ports provided by the network switch chip end, thereby adapting to the scene in which multiple network functions are required to be used.

[0167] In step 204, the required clock frequency is provided to the network switch chip end according to the clock frequency of the server motherboard.

[0168] In practical application, the 25M clock frequency can be introduced to the network switch chip end by the server motherboard, and then the required clock frequency can be provided to the network switch chip end, thereby guaranteeing the operation of the network switch chip end by providing the required clock frequency to the network switch chip end, and directly using the clock frequency of the server motherboard as the required clock frequency of the network switch chip end, thereby simplifying the operation.

[0169] Step 205, in the process of starting the server, the working mode of the target chip end is set to support the communication in the fiber mode under the fiber gigabit Ethernet protocol and the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, and the network switch chip end is set to adapt to the working mode of the target chip end.

[0170] In actual application, the BMC can read the parameters in the register of the target chip. If the parameters in the register are non-designated parameters, such as the designated parameter is 0x01, which represents that the current mode is not the 1000base-X protocol, the parameters in the register can be modified to the designated parameters to set the 1000base-X protocol.

[0171] If the parameters in the register are non-designated parameters, such as the designated parameter is 0x01, which represents that the current mode is not the 1000base-X protocol, i.e., the working mode is not set correctly, a message of communication failure can be fed back, so that the user can know the communication situation in time. If the parameters in the register are designated parameters, which represent that the current mode is the 1000base-X protocol, i.e., the working mode is set correctly.

[0172] In the embodiment of the present application, the working mode of the target chip end is read back to ensure the correct setting of the working mode, avoid the problem of no communication, and improve the reliability.

[0173] After confirming that the working mode of the target chip is set correctly, the BMC can perform a series of operations on the register of the network chip end through the MDIO protocol to realize the normal communication function of the 1000base-X protocol network.

[0174] In the embodiment of the present application, when the server starts, the target chip and the network switch chip are set by the BMC to ensure that the target chip and the network switch chip can adapt to the set communication mode, thereby ensuring the normal interaction of network communication.

[0175] Step 206, the baseboard management controller and the target chip end communicate in the fiber mode under the fiber gigabit Ethernet protocol, and the target chip end and the network switch chip end communicate in the reduced gigabit media independent interface mode under the fiber gigabit Ethernet protocol.

[0176] For the case that the MDIO protocol link of the target chip end is linked with the BMC, since the out-of-band adaptive function of the network switch chip end cannot be supported, the BMC cannot communicate with the network switch chip end in the SGMII mode-RGMII mode, and the target chip end supports the 1000base-X protocol, and the network switch chip end also supports the 1000base-X protocol, so the normal communication between the target chip end and the network switch chip end can be realized through the 1000base-X protocol.

[0177] Specifically, between the BMC and the target chip end, the 1000base-X protocol in the FIBER mode can be used for communication, and between the target chip end and the network switch chip end, the 1000base-X protocol in the RGMII mode can be used for communication.

[0178] The present application is exemplarily described below in combination with FIG. 3a and FIG. 3b:

[0179] As shown in FIG. 3a, the target chip is an RTL chip, and the network switch chip is a network Switch chip, so the input operation can be performed through BIOS control, that is, BIOS options, BMC control, and mainboard end hat, and then the link mode of the MDIO protocol of the RTL chip end is set. When the physical link mode of the MDIO protocol of the RTL chip end is that the RTL chip end is physically linked with the BMC, between the BMC and the target chip end, the 1000base-X protocol in the FIBER mode can be used for communication, and between the target chip end and the network Switch chip end, the 1000base-X protocol in the RGMII mode can be used for communication.

[0180] As shown in FIG. 3b, on the server side, the input operation can be performed through BIOS options, BMC control, and mainboard end hat, and then the link mode of the MDIO protocol of the RTL chip end is set.

[0181] For the case that the MDIO protocol link of the target chip end is physically linked with the network Switch chip end, since the out-of-band adaptive function of the network Switch chip end is supported, the out-of-band adaptive function of the network Switch chip end can be used, the BMC is connected and communicates with the RTL chip end in the SGMII mode, and the RTL chip end is connected and communicates with the network Switch chip end in the RGMII mode.

[0182] For the link mode of MDIO protocol, when the RTL chip end is physically linked with the BMC, the network switch chip does not support the RGMII out-of-band adaptive function, and can only support the FIBER mode-1000base-x mode. The BMC sets the FIBER 1000base-x mode to link with the uplink port of the RTL chip end, and the RTL chip end downlink port sets the 1000base-x mode of the RGMII to link with the network switch chip.

[0183] Further, the server motherboard can provide a 25Mhz clock frequency to the network switch chip.

[0184] When the server starts, the BMC configures the RTL chip end through the MDIO protocol, sets the working mode of the RTL chip end to the FBER-RGMIl mode, that is, the register is set to 1, and the BMC can read whether the working mode of the RTL chip end is correct through the MDIO protocol.

[0185] If the working mode of the RTL chip end is not correct, it indicates that the BMC management firmware network communication fails, and if the working mode of the RTL chip end is correct, the BMC sets the working mode, port enablement, network port read-write setting, and port time delay setting of the network switch chip through the MDIO protocol.

[0186] After the setting is completed, the BMC management motherboard network address communication function is normally used based on the working mode of the 1000base-x protocol.

[0187] It should be noted that, for the method embodiments, in order to simply describe, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited by the action order described, because according to the embodiments of the present application, certain steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily the necessary of the embodiments of the present application.

[0188] Referring to FIG. 4, a structure schematic diagram of a communication device based on a server is shown, the server motherboard management controller communicates with the network switch chip end through the target chip end, the network switch chip end provides at least two network ports, and the motherboard management controller provides external services through the at least two network ports.

[0189] Specifically, it can include the following modules:

[0190] The link mode detection module 401 is configured to detect the link mode of the management data input and output protocol in the target chip end.

[0191] The first communication module 402 is configured to, in the case of the linking mode being the target chip end linked with the baseboard management controller, control the baseboard management controller and the target chip end to communicate by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and control the target chip end and the network switch chip end to communicate by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

[0192] In some embodiments of the present application, in the case of the linking mode being the target chip end linked with the baseboard management controller, the baseboard management controller and the target chip end communicate by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and the target chip end and the network switch chip end communicate by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, which includes:

[0193] The terminal request for the server is received through the network port provided by the network switch chip end.

[0194] In the case of the linking mode being the target chip end linked with the baseboard management controller, the network switch chip end sends the terminal request to the target chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, and controls the target chip end to send the terminal request to the baseboard management controller by using the optical fiber gigabit Ethernet protocol in the optical fiber mode.

[0195] The baseboard management controller sends the reply message fed back to the terminal request to the target chip end by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and controls the target chip end to send the reply message to the network switch chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, so that the network switch chip end feeds back the reply message to the terminal through the network port.

[0196] In some embodiments of the present application, further comprising:

[0197] The first communication module is configured to, in the case of the linking mode being the target chip end linked with the network switch chip end, control the baseboard management controller and the target chip end to communicate by using the serial gigabit media independent interface mode, and control the target chip end and the network switch chip end to communicate by using the reduced gigabit media independent interface mode.

[0198] In some embodiments of the present application, further comprising:

[0199] The communication mode module is configured to, in the case of the linking mode being the target chip end linked with the baseboard management controller, set the baseboard management controller linked with the uplink port of the target chip end by using the optical fiber gigabit Ethernet protocol in the optical fiber mode, and set the downlink port of the target chip end linked with the network switch chip end by using the optical fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

[0200] In some embodiments of the present application, further comprising:

[0201] a clock frequency setting module, configured to provide a required clock frequency to the network switching chip end according to the clock frequency of the server motherboard.

[0202] In some embodiments of the present application, further comprising:

[0203] a target chip setting module, configured to set the working mode of the target chip end in the process of starting the server, so that the working mode of the target chip end supports communication using the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol.

[0204] In some embodiments of the present application, in the process of starting the server, the working mode of the target chip end is set so that the working mode of the target chip end supports communication using the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, comprising:

[0205] In the process of starting the server, parameters in the register of the target chip end are set by the baseboard management controller, so that the working mode of the target chip end supports communication using the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol.

[0206] In some embodiments of the present application, further comprising:

[0207] a working mode read-back module, configured to read back the parameters in the register of the target chip end by the baseboard management controller, to confirm whether the working mode of the target chip end is set correctly.

[0208] In some embodiments of the present application, further comprising:

[0209] a failure feedback module, configured to feed back a message of communication failure in the case that the working mode of the target chip end is not set correctly.

[0210] In some embodiments of the present application, in the process of starting the server, the working mode of the target chip end is set so that the working mode of the target chip end supports communication using the fiber mode of the fiber gigabit Ethernet protocol and the reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, comprising:

[0211] in response to an input instruction, starting the server, and in the process of starting the server, detecting whether to enter the starting stage for the baseboard management controller;

[0212] When it is detected that the start phase for the baseboard management controller is entered, the working mode of the target chip end is set so that the working mode of the target chip end supports communication using the fiber mode of the fiber gigabit Ethernet protocol and the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

[0213] In some embodiments of the present application, further comprising:

[0214] The network switch chip setting module is configured to set the network switch chip end to adapt to the working mode of the target chip end.

[0215] In some embodiments of the present application, the network switch chip end is set to adapt to the working mode of the target chip end, comprising:

[0216] The parameters in the register of the network switch chip end are set by the baseboard management controller to adapt to the working mode of the target chip end.

[0217] The parameters in the register of the network switch chip end are set by the baseboard management controller to adapt to the working mode of the target chip end.

[0218] The working mode of the network switch chip end is set by the baseboard management controller to support communication using the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

[0219] The port of the network switch chip end is enabled by the baseboard management controller.

[0220] The port read-write of the network switch chip end is set by the baseboard management controller.

[0221] The port time delay of the network switch chip end is set by the baseboard management controller.

[0222] In some embodiments of the present application, further comprising:

[0223] The setting result of the working mode of the target chip end is obtained by the setting result obtaining module, and the network switch chip setting module is called when the setting result indicates that the working mode of the target chip end is set correctly.

[0224] In some embodiments of the present application, further comprising:

[0225] The link mode setting module is configured to set the link mode of the management data input / output protocol in the target chip end according to the input operation.

[0226] In some embodiments of the present application, the link mode of the management data input / output protocol in the target chip end is set according to the input operation, comprising:

[0227] Obtaining a selection result of an option in a basic input and output system, and setting a link mode of a management data input and output protocol in a target chip end according to the selection result;

[0228] Alternatively, receiving a control instruction of a baseboard management controller, and setting the link mode of the management data input and output protocol in the target chip end according to the control instruction;

[0229] Alternatively, receiving an operation instruction of a hat jump operation of a mainboard end, and setting the link mode of the management data input and output protocol in the target chip end according to the operation instruction.

[0230] In some embodiments of the present application, the at least two network ports provided by the network switching chip end include a network dedicated port and a network shared port.

[0231] In the embodiments of the present application, the baseboard management controller in the server communicates with the network switching chip end through the target chip end, the network switching chip end provides at least two network ports, the baseboard management controller provides external services through the at least two network ports, and by detecting the link mode of the management data input and output protocol in the target chip end, in the case that the link mode is that the target chip end is linked with the baseboard management controller, the baseboard management controller and the target chip end are controlled to communicate in a fiber mode of a fiber gigabit Ethernet protocol, and the target chip end and the network switching chip end communicate in a reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, which realizes that the network switching chip end provides at least two network ports for the baseboard management controller, and provides corresponding communication modes to ensure the normal communication of the at least two network ports, and thus can adapt to a scenario in which multiple network functions are needed.

[0232] Some embodiments of the present application also provide a server, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the computer program is executed by the processor to implement the method as above.

[0233] Some embodiments of the present application also provide an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the computer program is executed by the processor to implement the method as above.

[0234] Some embodiments of the present application also provide a computer non-volatile storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method as above.

[0235] Some embodiments of the present application also provide a computer program product, which includes a computer program, and the computer program is executed by a processor to implement the method as above.

[0236] For the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts are referred to the part of the method embodiment.

[0237] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the country and region, and provide corresponding operation portal for the user to choose authorization or refusal.

[0238] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between each embodiment can be referred to each other.

[0239] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, apparatus or computer program product. Therefore, the embodiments of the present application can be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can be in the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.

[0240] The embodiments of the present application are described with reference to flowcharts and / or block diagrams according to the method, terminal device (system) and computer program product of the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of the flows and / or blocks in the flowchart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for realizing the functions specified in one or more flows in the flowchart and / or one or more blocks in the block diagram.

[0241] These computer program instructions can also be stored in a computer readable storage medium that can guide the computer or other programmable data processing terminal device to work in a specific way, so that the instructions stored in the computer readable storage medium generate a product including instruction devices, which realize the functions specified in one or more flows in the flowchart and / or one or more blocks in the block diagram.

[0242] These computer program instructions can also be loaded into a computer or other programmable data processing terminal device, so that a series of operational steps are performed on the computer or other programmable terminal device to generate a computer-implemented process, thus the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more flows of the flow chart and / or one or more blocks of the block diagram.

[0243] Although the preferred embodiments of the application have been described, those skilled in the art will be able to make additional changes and modifications to these embodiments once they have the basic inventive concept. Therefore, the appended claims are intended to cover all changes and modifications falling within the scope of the embodiments of the application.

[0244] Finally, it should also be noted that, in this document, relational terms such as first and second and the like can only be used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a list of elements does not only include those elements, but also includes other elements not explicitly listed or other elements inherent to such process, method, article or terminal device. Without more limitations, an element defined by the statement "including a..." does not exclude the presence of additional identical elements in the process, method, article or terminal device including the above element.

[0245] The above provides a detailed description of a server-based communication method and device, and the principles and implementation of the application are described in this document. The above description of the embodiments is only to help understand the method and its core idea; at the same time, for those skilled in the art, according to the idea of the application, there will be changes in the specific implementation and application range; in summary, the content of this specification should not be understood as a limitation of the application.

Claims

1. A server-based communication method, characterized by, The server is provided with a baseboard management controller, which communicates with a network switching chip through a target chip end, the network switching chip end provides at least two network ports, the baseboard management controller provides external services through the at least two network ports, including: Detecting a link mode of a management data input / output protocol in the target chip end; In a case where the link mode is that the target chip end is linked with the baseboard management controller, controlling the baseboard management controller and the target chip end to communicate through a fiber mode of a fiber gigabit Ethernet protocol, and the target chip end and the network switching chip end to communicate through a reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol.

2. The method of claim 1, wherein, The in a case where the link mode is that the target chip end is linked with the baseboard management controller, controlling the baseboard management controller and the target chip end to communicate through a fiber mode of a fiber gigabit Ethernet protocol, and the target chip end and the network switching chip end to communicate through a reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, includes: Receiving a terminal request for the server through the network port provided by the network switching chip end; In a case where the link mode is that the target chip end is linked with the baseboard management controller, controlling the network switching chip end to send the terminal request to the target chip end through a reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, and controlling the target chip end to send the terminal request to the baseboard management controller through a fiber mode of the fiber gigabit Ethernet protocol; Controlling the baseboard management controller to send a reply message fed back for the terminal request to the target chip end through a fiber mode of the fiber gigabit Ethernet protocol, and controlling the target chip end to send the reply message to the network switching chip end through a reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, so as to feed back the reply message to a terminal through the network port provided by the network switching chip end.

3. The method of claim 1, wherein, Further includes: In a case where the link mode is that the target chip end is linked with the network switching chip end, controlling the baseboard management controller and the target chip end to communicate through a serial gigabit media independent interface mode, and the target chip end and the network switching chip end to communicate through a reduced gigabit media independent interface mode.

4. The method according to claim 1 or 2, characterized in that, Before the controlling the baseboard management controller and the target chip end to communicate through a fiber mode of a fiber gigabit Ethernet protocol, and the target chip end and the network switching chip end to communicate through a reduced gigabit media independent interface mode of the fiber gigabit Ethernet protocol, further includes: In the case that the link mode is the chip end of the target chip and the chip in the baseboard management controller, the baseboard management controller is set to link with the uplink port of the target chip end by using the fiber mode of the fiber gigabit Ethernet protocol, and the downlink port of the target chip end is set to link with the network switch chip end by using the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

5. The method according to claim 1 or 2, characterized in that, Before the control of the communication between the baseboard management controller and the target chip end by using the fiber mode of the fiber gigabit Ethernet protocol, and the communication between the target chip end and the network switch chip end by using the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, the method further comprises: In the process of starting the server, the working mode of the target chip end is set so that the working mode of the target chip end supports the communication by using the fiber mode of the fiber gigabit Ethernet protocol and the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

6. The method of claim 5, wherein, The method of setting the working mode of the target chip end in the process of starting the server so that the working mode of the target chip end supports the communication by using the fiber mode of the fiber gigabit Ethernet protocol and the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode comprises: In the process of starting the server, the parameters in the register of the target chip end are set by the baseboard management controller so that the working mode of the target chip end supports the communication by using the fiber mode of the fiber gigabit Ethernet protocol and the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

7. The method of claim 6, wherein, After the process of setting the parameters in the register of the target chip end by the baseboard management controller so that the working mode of the target chip end supports the communication by using the fiber mode of the fiber gigabit Ethernet protocol and the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode in the process of starting the server, the method further comprises: The parameters in the register of the target chip end are read back by the baseboard management controller to confirm whether the working mode of the target chip end is set correctly.

8. The method of claim 7, wherein, The method further comprises: In the case that the working mode of the target chip end is not set correctly, a message of communication failure is fed back.

9. The method of claim 5, wherein, The method of setting the working mode of the target chip end in the process of starting the server so that the working mode of the target chip end supports the communication by using the fiber mode of the fiber gigabit Ethernet protocol and the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode comprises: In response to an input instruction, the server is started, and in the process of starting the server, it is detected whether the starting stage for the baseboard management controller is entered; When it is detected that the starting stage for the baseboard management controller is entered, the working mode of the target chip end is set so that the working mode of the target chip end supports the communication by using the fiber mode of the fiber gigabit Ethernet protocol and the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode.

10. The method of claim 5, wherein, In the process of starting the server, the working mode of the target chip end is set, so that the working mode of the target chip end supports the fiber gigabit Ethernet protocol in the fiber mode and the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode for communication, and further comprising: The network switching chip end is set to adapt to the working mode of the target chip end.

11. The method of claim 10, wherein, The network switching chip end is set to adapt to the working mode of the target chip end, comprising: The network switching chip end is set to adapt to the working mode of the target chip end, comprising: The network switching chip end is set to adapt to the working mode of the target chip end, comprising: The network switching chip end is set to adapt to the working mode of the target chip end, comprising: The network switching chip end is set to adapt to the working mode of the target chip end, comprising: The network switching chip end is set to adapt to the working mode of the target chip end, comprising: The network switching chip end is set to adapt to the working mode of the target chip end, comprising:

12. The method of claim 10, wherein, The network switching chip end is set to adapt to the working mode of the target chip end, comprising: Before the network switching chip end is set to adapt to the working mode of the target chip end, further comprising: Obtain the setting result of the working mode of the target chip end; 13. The method of claim 1 or 2, wherein, When the setting result indicates that the working mode of the target chip end is set correctly, the network switching chip end is set to adapt to the working mode of the target chip end. Before the baseboard management controller and the target chip end communicate with each other using the fiber gigabit Ethernet protocol in the fiber mode, and the target chip end and the network switching chip end communicate with each other using the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, further comprising:

14. The method of claim 1 or 2, wherein, According to the clock frequency of the server motherboard, the required clock frequency is provided to the network switching chip end. Before the baseboard management controller and the target chip end communicate with each other using the fiber gigabit Ethernet protocol in the fiber mode, and the target chip end and the network switching chip end communicate with each other using the fiber gigabit Ethernet protocol in the reduced gigabit media independent interface mode, further comprising:

15. The method of claim 14, wherein, According to the input operation, the link mode of the management data input / output protocol in the target chip end is set. The link mode of the management data input / output protocol in the target chip end is set according to the input operation, comprising: Obtain the selection result of the options in the basic input / output system, and set the link mode of the management data input / output protocol in the target chip end according to the selection result; Or, receive the control instruction of the baseboard management controller, and set the link mode of the management data input / output protocol in the target chip end according to the control instruction; Alternatively, an operation instruction of a host board end jump cap operation is received, and a link mode of a data input / output protocol in the target chip end is set according to the operation instruction.

16. The method of claim 1, wherein, The at least two network ports provided by the network switch chip end include a network dedicated port and a network shared port.

17. A server-based communication device, characterized by The baseboard management controller in the server communicates with the network switch chip end through the target chip end, the network switch chip end provides at least two network ports, and the baseboard management controller provides external services through the at least two network ports, including: A link mode detection module is configured to detect a link mode of a data input / output protocol in the target chip end; A first communication module is configured to, in a case where the link mode is that the target chip end is linked with the baseboard management controller, control the baseboard management controller and the target chip end to communicate in an optical fiber gigabit Ethernet protocol in an optical fiber mode, and the target chip end and the network switch chip end to communicate in an optical fiber gigabit Ethernet protocol in a reduced gigabit media independent interface mode.

18. An electronic device, comprising: A computer program is stored on the memory and can be run on the processor, and the computer program is executed by the processor to implement the method in any one of claims 1 to 16.

19. A computer non-volatile storage medium, characterized by A computer program is stored on the computer nonvolatile storage medium, and the computer program is executed by the processor to implement the method in any one of claims 1 to 16.

20. A computer program product, characterised in that, A computer program is stored on the computer nonvolatile storage medium, and the computer program is executed by the processor to implement the method in any one of claims 1 to 16.

Citation Information

Patent Citations

  • Server, cascade system between servers and method

    CN109218112A

  • Method, system and device for accessing DIMM in server and medium

    CN112653516A

  • Out-of-band Ethernet interface switching device, multi-node server system and server equipment

    CN115996204A

  • Communication method and device based on server

    CN118101599A

  • Flexible, high-bandwidth link management between system and subsystem baseboard management controllers

    US20230074345A1