CN118101599A - Communication method and device based on server - Google Patents

Communication method and device based on server Download PDF

Info

Publication number
CN118101599A
CN118101599A CN202410525152.7A CN202410525152A CN118101599A CN 118101599 A CN118101599 A CN 118101599A CN 202410525152 A CN202410525152 A CN 202410525152A CN 118101599 A CN118101599 A CN 118101599A
Authority
CN
China
Prior art keywords
chip end
mode
target chip
optical fiber
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410525152.7A
Other languages
Chinese (zh)
Inventor
孙秀强
王亚飞
郭金涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202410525152.7A priority Critical patent/CN118101599A/en
Publication of CN118101599A publication Critical patent/CN118101599A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention provides a communication method and a communication device based on a server, which are applied to the technical field of servers, wherein a substrate management controller communicates with a network exchange chip end through a target chip end, and the network exchange chip end provides at least two network ports and comprises the following steps: detecting a link mode of a management data input/output protocol in a target chip end; under the condition 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 by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode, and the target chip end and the network exchange chip end are communicated by adopting an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, so that at least two network ports are provided for the baseboard management controller through the network exchange chip end, normal communication of the at least two network ports is ensured, and the network management controller is further suitable for a scene requiring use of a plurality of network functions.

Description

Communication method and device based on server
Technical Field
The present invention relates to the field of server technologies, and in particular, to a communication method and apparatus based on a server.
Background
In a server, a network is a very important function, and in particular, in a data center, functions of interaction with external users, information storage and the like are generally separated from network functions. Moreover, the server also relates to a remote management function, which is implemented based on a management chip of the server motherboard and depends on the control of the management firmware BMC (Baseboard Management Controller ).
When the remote network function of the management chip is controlled by the baseboard management controller, the functions of the network dedicated port and the network shared port are involved, but the network dedicated port and the network shared port are the same network port, and only the working modes are different, so that the mode is difficult to be applied to a scene requiring a plurality of network functions.
Disclosure of Invention
In view of the above, it is proposed to provide a server-based communication method and apparatus that overcomes or at least partially solves the above-mentioned problems, comprising:
a communication method based on a server, wherein a baseboard management controller in the server communicates with a network exchange chip end through a target chip end, the network exchange chip end provides at least two network ports, and the baseboard management controller provides external service through the at least two network ports, comprising:
detecting a link mode of a management data input/output protocol in the target chip end;
And under the condition that the link mode is that the target chip end is linked with the baseboard management controller, controlling the baseboard management controller to communicate with the target chip end by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode, and communicating with the network exchange chip end by adopting the optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode.
Optionally, when the linking manner 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 adopting an optical fiber gigabit ethernet protocol in an optical fiber mode, and the target chip end and the network exchange chip end communicate by adopting an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, including:
receiving a terminal request aiming at the server through a network port provided by the network exchange chip end;
Under the condition that the link mode is that the target chip end is linked with the baseboard management controller, controlling the network exchange chip end to adopt an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, sending the terminal request to the target chip end, and controlling the target chip end to adopt the optical fiber gigabit Ethernet protocol in the optical fiber mode, and sending the terminal request to the baseboard management controller;
And controlling the baseboard management controller to adopt an optical fiber gigabit Ethernet protocol in an optical fiber mode, sending a reply message aiming at the terminal request feedback to the target chip end, controlling the target chip end to adopt the optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, sending the reply message to the network exchange chip end, and feeding the reply message back to the terminal through a network port provided by the network exchange chip end.
Optionally, the method further comprises:
And under the condition that the link mode is that the target chip end is linked with the network exchange chip end, controlling the baseboard management controller to communicate with the target chip end by adopting a serial gigabit media independent interface mode, and communicating with the network exchange chip end by adopting a simple gigabit media independent interface mode.
Optionally, before the controlling the communication between the baseboard management controller and the target chip end by adopting the optical fiber gigabit ethernet protocol in the optical fiber mode, and before the communication between the target chip end and the network switching chip end by adopting the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode, the method further includes:
And under the condition that the link mode is that the target chip end is linked with a chip in the baseboard management controller, setting the baseboard management controller to link with an uplink port of the target chip end by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode, and setting a downlink port of the target chip end to link with the network exchange chip end by adopting an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode.
Optionally, before the controlling the communication between the baseboard management controller and the target chip end by adopting the optical fiber gigabit ethernet protocol in the optical fiber mode, and before the communication between the target chip end and the network switching chip end by adopting the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode, the method further includes:
And setting the working mode of the target chip end in the starting process of the server so that the working mode of the target chip end supports the communication by adopting the optical fiber gigabit Ethernet protocol in the optical fiber mode and the optical fiber gigabit Ethernet protocol in the independent interface mode of the simple gigabit media.
Optionally, in the process of starting the server, setting a working mode of the target chip end, so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit ethernet protocol in an optical fiber mode and an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, including:
In the process of starting a server, setting parameters in a register of the target chip end through the baseboard management controller so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode and an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode.
Optionally, after setting, by the baseboard management controller, parameters in a register of the target chip end in the process of starting the server, so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit ethernet protocol in an optical fiber mode and an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, the method further includes:
And reading back parameters in a register of the target chip end through the baseboard management controller so as to confirm whether the working mode of the target chip end is set correctly.
Optionally, the method further comprises:
and feeding back a communication failure message under the condition that the working mode of the target chip end is not set to be correct.
Optionally, in the process of starting the server, setting a working mode of the target chip end, so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit ethernet protocol in an optical fiber mode and an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, including:
Responding to an input instruction, starting the server, and detecting whether to enter a starting stage aiming at the baseboard management controller in the process of starting the server;
And when the start-up stage aiming at the baseboard management controller is detected, setting the working mode of the target chip end so that the working mode of the target chip end supports the communication by adopting the optical fiber gigabit Ethernet protocol in the optical fiber mode and the optical fiber gigabit Ethernet protocol in the independent interface mode of the simple gigabit media.
Optionally, in the process of starting the server, setting a working mode of the target chip end, so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit ethernet protocol in an optical fiber mode and an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, and further includes:
And setting the network exchange chip end to be matched with the working mode of the target chip end.
Optionally, the setting the network switch chip end to adapt to the working mode of the target chip end includes:
Setting parameters in a register of the network exchange chip end through the baseboard management controller so as to be matched with the working mode of the target chip end;
The method for setting the parameters in the register of the network exchange chip specifically comprises the following steps:
setting the working mode of the network exchange chip end through the baseboard management controller, and supporting the communication by adopting the optical fiber gigabit Ethernet protocol under the independent interface mode of the simple gigabit media by the working mode of the network exchange chip end;
enabling a port of the network switching chip end through the baseboard management controller;
setting the port read-write of the network exchange chip end through the baseboard management controller;
And setting the port time delay of the network exchange chip end through the baseboard management controller.
Optionally, before the setting the network switch chip end to adapt to the working mode of the target chip end, the method further includes:
Obtaining a setting result of the working mode of the target chip end;
and executing the setting of the network exchange chip end to adapt to the working mode of the target chip end when the setting result indicates that the working mode of the target chip end is set correctly.
Optionally, before the controlling the communication between the baseboard management controller and the target chip end by adopting the optical fiber gigabit ethernet protocol in the optical fiber mode, and before the communication between the target chip end and the network switching chip end by adopting the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode, the method further includes:
and providing the required clock frequency for the network exchange chip end according to the clock frequency of the server main board.
Optionally, before the controlling the communication between the baseboard management controller and the target chip end by adopting the optical fiber gigabit ethernet protocol in the optical fiber mode, and before the communication between the target chip end and the network switching chip end by adopting the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode, the method further includes:
and setting a link mode for managing the data input and output protocol in the target chip end according to the input operation.
Optionally, the setting a link mode of managing the data input/output protocol in the target chip according to the input operation includes:
acquiring a selection result of options in a basic input/output system, and setting a link mode of a management data input/output protocol in the target chip end according to the selection result;
Or receiving a control instruction to the baseboard management controller, and setting a link mode of a management data input/output protocol in the target chip end according to the control instruction;
or receiving an operation instruction of the jump cap operation of the main board end, and setting a link mode of the management data input/output protocol in the target chip end according to the operation instruction.
Optionally, the at least two network ports provided by the network switching chip end include: a network-specific port and a network-shared port.
A communication device based on a server, in which a baseboard management controller communicates with a network exchange chip end through a target chip end, the network exchange chip end provides at least two network ports, and the baseboard management controller provides external services through the at least two network ports, comprising:
the link mode detection module is used for detecting the link mode of the management data input/output protocol in the target chip end;
And the first communication module is used for controlling the optical fiber gigabit Ethernet protocol to carry out communication in an optical fiber mode between the substrate management controller and the target chip end under the condition that the target chip end is linked with the substrate management controller in the linking mode, and adopting the optical fiber gigabit Ethernet protocol to carry out communication in a simple gigabit media independent interface mode between the target chip end and the network exchange chip end.
An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor implements a method as described above.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method as described above.
A computer program product comprising a computer program which, when executed by a processor, implements a method as described above.
The embodiment of the invention has the following advantages:
In the embodiment of the invention, a baseboard management controller in a server communicates with a network exchange chip end through a target chip end, the network exchange chip end provides at least two network ports, the baseboard management controller provides external service through the at least two network ports, and the baseboard management controller controls the baseboard management controller to communicate with the target chip end by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode under the condition that the target chip end is linked with the baseboard management controller by detecting a linking mode of a management data input/output protocol in the target chip end, and the target chip end and the network exchange chip end communicate by adopting the optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, thereby realizing the provision of at least two network ports for the baseboard management controller through the network exchange chip end, providing a corresponding communication mode to ensure the normal communication of the at least two network ports and further being suitable for a scene requiring the use of a plurality of network functions.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of steps of a server-based communication method provided by some embodiments of the present invention;
FIG. 2 is a flow chart of steps of another server-based communication method provided by some embodiments of the present invention;
FIG. 3a is a schematic diagram of a system architecture provided by some embodiments of the present invention;
FIG. 3b is a flow chart of steps of another server-based communication method provided by some embodiments of the present invention;
fig. 4 is a block diagram of a server-based communication device according to some embodiments of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For a scenario requiring multiple network functions, the embodiment of the invention introduces a network switching (Switch) chip end to support the realization of at least two network port functions, such as a dual-network port chip, and the BMC communicates with the network switching chip end through a target chip end to realize the function of managing at least two network ports by the BMC.
As an example, the target chip may be an RTL (re-i semiconductor) chip, and of course, other chips may be used, which is not limited by the specific model of the chip in the present invention.
The MAC (MEDIA ACCESS Control Address) of the management chip end of the BMC in the server links with the target chip end through SGMII (Serial Gigabit media independent interface) mode, and the target chip end links with the network exchange chip end through RGMII (Reduced Gigabit media independent interface) mode, so that the function of BMC management of at least two network ports is realized.
The MII is a media independent interface, and is also called a 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 comprises two separate channels for the transmitter and the receiver, respectively. Each channel has its own data, clock and control signals. The MII data interface requires a total of 16 signals. The management interface is a dual signal interface, one being a clock signal and the other being a data signal. Through the management interface, the upper layers can monitor and control the devices.
The GMII, gigabit media independent interface, is an 8-bit parallel synchronous transceiver interface, and adopts 8-bit interface data and a 125MHz working clock, and the transmission rate can reach 1000Mbps. And is compatible with the 10/100Mbps mode of operation specified by MII. The data structure of GMII conforms to the IEEE ethernet standard.
SGMII is a serial gigabit media independent interface, which refers to a serial interface between a device and a high-integration network chip. The SGMII interface specification 1.8 specifies the transmission rate, signaling format, timing requirements, impedance matching, etc. of the SGMII interface, and this specification requires that the SGMII interface must conform to standard signaling formats, including clock, data, control, etc. signal composition modes, to ensure normal communication between the device and the network chip, and specifies the timing requirements of the SGMII interface, including delay of data transmission, accuracy of clock signals, etc. These timing requirements are important to ensure reliability and stability of data transmission, and the impedance matching is specified to ensure the quality of the signal and stability of the transmission distance.
RGMII is a simple gigabit media independent interface, and adopts a 4-bit data interface, an operating clock is 125MHz, and data are transmitted simultaneously on the rising edge and the falling edge, so that the transmission rate can reach 1000Mbps. Meanwhile, the system is compatible with a 10/100Mbps working mode specified by MII, and supports the transmission rate: 10M/100M/1000Mb/s, which correspond to clk signals of: 2.5MHz/25MHz/125MHz. The RGMII data structure conforms to the IEEE Ethernet standard, and the purpose of the RGMII is to reduce the circuit cost, so that the pin number of a device for realizing the interface is reduced from 25 pins to 14 pins.
However, in the actual debugging process of the architecture, the problem that the network address cannot be set is found, which leads to the functional failure of the BMC remote management server, and also leads to the failure of normal interaction of the BMC with the data interacted with the BIOS (Basic Input Output System ) through the IPMI (INTELLIGENT PLATFORM MANAGEMENT INTERFACE, intelligent platform management interface) protocol, which leads to the complete failure of the functions.
Through analyzing the physical design scheme of the target chip, the network exchange chip and the BMC, the reason is that: when the target chip end works in the in-band RGMII mode, the downlink network exchange chip end is required to support the in-band self-adaptation function of the in-band RGMII mode, but the network exchange chip end does not support the in-band self-adaptation function, so that the target chip end and the network exchange chip end cannot normally communicate.
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 MDIO (MANAGEMENT DATA Input/Output ) protocol of the target chip end.
The link mode of the MDIO protocol of the target chip end comprises the link of the MDIO protocol of the target chip end and the network exchange chip end, and the link of the MDIO protocol of the target chip end and the BMC.
On the one hand, if the MDIO protocol link of the target chip end is linked with the network exchange chip end, the out-of-band self-adaptation function of the network exchange 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 self-adaptation function of the network switching chip end cannot be supported.
Based on the method, according to different conditions of the physical link modes of the MDIO protocol of the target chip end, different network communication modes among the BMC end, the target chip and the network switching chip can be automatically set, and effective setting of at least two network ports in the network switching chip is realized in the different network communication modes.
For linking the MDIO protocol link with the network exchange chip end, the out-of-band self-adaptation function of the network exchange chip end is supported, so that the BMC can communicate with the network exchange chip end in SGMII mode-RGMII mode through the target chip end by adopting the out-of-band self-adaptation function of the network exchange chip end.
For the condition that the MDIO protocol link of the target chip end is linked with the BMC, the BMC cannot carry out SGMII mode-RGMII mode communication with the network exchange chip end through the target chip end because the out-of-band self-adaption function of the network exchange chip end cannot be supported, the target chip end supports 1000base-X (optical fiber gigabit Ethernet) protocol, the network exchange chip end also supports 1000-BaseX protocol, and then normal communication between the target chip end and the network exchange chip end can be realized through 1000-BaseX protocol.
It can be understood that, according to different physical link setting manners of the MDIO protocol of the target chip end, the supported network communication protocols of the BMC, the target chip end, and the network exchange chip end are also different, which is specifically as follows:
When the MDIO protocol of the target chip end is linked with the network exchange chip end in a physical linking mode, the BMC is physically linked with the target chip end through an SGMII mode, the target chip end is linked with the network exchange chip end through an RGMII mode, the network exchange chip supports an out-of-band self-adaptive mode, and the BMC communicates with the network exchange chip end through the target chip end in the SGMII mode-RGMII mode.
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 communication mode of the configuration network is adjusted to be that the FIBER (optical FIBER) is communicated with the 1000Base-X protocol in the RGMII mode. When the server is started, the BMC reads whether the current mode of the target chip is 1000base-X protocol through the MDIO protocol, if the current mode is not 1000base-X protocol, the current mode is set to be 1000base-X protocol, and the working mode of the network exchange chip end, the port enabling setting of the network exchange chip end, the port reading and writing setting of the network exchange chip end and the port time delay setting of the network exchange chip end are set through the MDIO protocol, so that the normal network communication function of the 1000base-X protocol is realized.
The invention is further described below with reference to the accompanying drawings:
Referring to fig. 1, a flowchart illustrating steps of a server-based communication method according to some embodiments of the present invention is shown, where a baseboard management controller communicates with a network switch chip end through a target chip end, where the network switch chip end provides at least two network ports, such as a dual-port chip, and in some examples, the at least two network ports provided by the network switch chip end include: the baseboard management controller can provide external services, such as the function of a remote management server, through at least two network ports.
Specifically, the method comprises the following steps:
Step 101, detecting a link mode of managing a data input/output protocol in the target chip end.
In practical application, the link mode of the MDIO protocol in the target chip end can be detected.
The link mode of the MDIO protocol of the target chip end comprises the link of the MDIO protocol of the target chip end and the network exchange chip end, and the link of the MDIO protocol of the target chip end and the BMC.
On the one hand, if the MDIO protocol link of the target chip end is linked with the network exchange chip end, the out-of-band self-adaptation function of the network exchange 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 self-adaptation function of the network switching chip end cannot be supported.
Step 102, controlling the baseboard management controller to communicate with the target chip end by using an optical fiber gigabit ethernet protocol in an optical fiber mode when the link mode is that the target chip end is linked with the baseboard management controller, and communicating with the network switching chip end by using an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode.
Wherein, the gigabit ethernet protocol is 1000BASE-X protocol, 1000 means that the transmission rate is 1000m, BASE is baseband transmission, and X represents a single-mode or multimode fiber. In terms of protocols, 1000BASE-X has two hot-swappable packages, namely SFP (Small Form Pluggable, a small pluggable optical module package), GBIC (Gigabit Interface Converter, an optical module package with standardized package interface), and pin packages such as 1*9. From the packaging perspective, the SFP is an interface of the device, and the 1000BASE-X protocol product can be made into an SFP package.
For the condition that the MDIO protocol link of the target chip end is linked with the BMC, the BMC cannot carry out SGMII mode-RGMII mode communication with the network exchange chip end through the target chip end because the out-of-band self-adaption function of the network exchange chip end cannot be supported, the target chip end supports 1000base-X protocol, the network exchange chip end also supports 1000-BaseX protocol, and then normal communication between the target chip end and the network exchange chip end can be realized through 1000-BaseX protocol.
Specifically, 1000Base-X protocol in FIBER mode may be used for communication between the BMC and the target chip, and 1000Base-X protocol in RGMII mode may be used for communication between the target chip and the network switch chip.
That is, the communication means may include:
1. BMC-1000 Base-X protocol under FIBER mode-target chip end-1000 Base-X protocol under RGMII mode-network exchange chip end;
2. network exchange chip end-1000 Base-X protocol in RGMII mode-target chip end-1000 Base-X protocol in FIBER mode-BMC.
In some embodiments of the present invention, when the linking manner is that the target chip end is linked to the baseboard management controller, the baseboard management controller and the target chip end are controlled to communicate by using an optical fiber gigabit ethernet protocol in an optical fiber mode, and the target chip end and the network switch chip end communicate by using an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, including:
And step 11, receiving a terminal request aiming at the server through the network port provided by the network exchange chip end.
And step 12, controlling the network exchange chip end to adopt the optical fiber gigabit Ethernet protocol in the independent interface mode of the simple gigabit media to send the terminal request to the target chip end and controlling the target chip end to adopt the optical fiber gigabit Ethernet protocol in the optical fiber mode to send the terminal request to the baseboard management controller under the condition that the link mode is that the target chip end is linked with the baseboard management controller.
And 13, controlling the baseboard management controller to adopt an optical fiber gigabit Ethernet protocol in an optical fiber mode, sending a reply message aiming at the terminal request feedback to the target chip end, controlling the target chip end to adopt the optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, sending the reply message to the network exchange chip end, and feeding the reply message back to the terminal through a network port provided by the network exchange chip end.
In practical application, the terminal may send a terminal request to the server, where the terminal request may include a remote management request, that is, the terminal is a remote terminal, and the request is sent by a remote connection manner, a destination address of the terminal request may be an address of a network port provided by the network exchange chip end, and the server may receive the terminal request through the network port provided by the network exchange chip end.
Because the link mode is that the target chip end is linked with the baseboard management controller, after receiving the terminal request, the network exchange chip end can adopt the optical fiber gigabit Ethernet protocol in the independent interface mode of the simple gigabit media to send the terminal request to the target chip end, and the target chip end can adopt the optical fiber gigabit Ethernet protocol in the optical fiber mode to send the terminal request to the baseboard management controller.
After processing the terminal request, a reply message can be generated, and because the link mode is that the target chip end is linked with the baseboard management controller, the baseboard management controller can adopt an optical fiber gigabit Ethernet protocol in an optical fiber mode to send the reply message fed back for the terminal request to the target chip end, the target chip end can adopt the optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode to send the reply message to the network exchange chip end, and the network exchange chip end can feed back the reply message to the terminal through a provided network port, so that the whole communication interaction process is realized, and the terminal request is responded.
In some embodiments of the invention, further comprising:
And under the condition that the link mode is that the target chip end is linked with the network exchange chip end, controlling the baseboard management controller to communicate with the target chip end by adopting a serial gigabit media independent interface mode, and communicating with the network exchange chip end by adopting a simple gigabit media independent interface mode.
For linking the MDIO protocol link with the network exchange chip end, the out-of-band self-adaptation function of the network exchange chip end is supported, so that the BMC can communicate with the network exchange chip end in SGMII mode-RGMII mode through the target chip end by adopting the out-of-band self-adaptation function of the network exchange chip end.
Specifically, between the BMC and the target chip end, an SGMII mode may be used for communication, and between the target chip end and the network switch chip end, an RGMII mode may be used for communication.
That is, the communication means may include:
1. BMC-SGMII mode-target chip end-RGMII mode-network exchange chip end;
2. network switching chip side-SGMII mode-target chip side-RGMII mode-BMC.
In the embodiment of the invention, different network communication modes among the BMC end, the target chip and the network exchange chip are automatically set according to different conditions 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 exchange chip is realized under different network communication modes, so that the compatibility is improved, and the normal interaction of network communication is ensured.
In some embodiments of the present invention, before the controlling the communication between the baseboard management controller and the target chip end using the optical fiber gigabit ethernet protocol in the optical fiber mode, and the communicating between the target chip end and the network switching chip end using the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode, the method further includes:
and setting a link mode for managing the data input and output protocol in the target chip end according to the input operation.
Specifically, the MDIO protocol link of the target chip end can be set to be linked with the network exchange chip end, or the MDIO protocol link of the target chip end is linked with the BMC.
In some embodiments of the present invention, the setting a link manner of managing a data input/output protocol in the target chip according to an input operation includes:
Acquiring a selection result of options in a basic input/output system, and setting a link mode of a management data input/output protocol in the target chip end according to the selection result; or receiving a control instruction to the baseboard management controller, and setting a link mode of a management data input/output protocol in the target chip end according to the control instruction; or receiving an operation instruction of the jump cap operation of the main board end, and setting a link mode of the management data input/output protocol in the target chip end according to the operation instruction.
In practical applications, various ways may be provided to perform the input operation, so as to set a link way of the MDIO protocol in the target chip end, and as some examples, the input operation includes any one of the following: input operation is performed by an option mode in a Basic Input Output System (BIOS), input operation is performed by a mode controlled by a Baseboard Management Controller (BMC), and input operation is performed by a mode that a main board end jumps to a cap.
In some examples, the setting of the link mode of the MDIO protocol may be implemented through an automation script, for example, the automation script may automatically select an option in the BIOS to implement the setting of the link mode, and by executing the automation script, the operation may be simplified, the efficiency may be improved, and the operation threshold may be reduced.
In some embodiments of the present invention, before the controlling the communication between the baseboard management controller and the target chip end using the optical fiber gigabit ethernet protocol in the optical fiber mode, and the communicating between the target chip end and the network switching chip end using the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode, the method further includes:
And under the condition that the link mode is that the target chip end is linked with a chip in the baseboard management controller, setting the baseboard management controller to link with an uplink port of the target chip end by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode, and setting a downlink port of the target chip end to link with the network exchange chip end by adopting an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode.
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 be the communication between the FIBER and the 1000Base-X protocol in the RGMII mode. Specifically, the BMC is set to link with an uplink port of the target chip end by adopting a 1000Base-X protocol in the FIBER mode, and the downlink port of the target chip end is set to link with the network exchange chip end by adopting a 1000Base-X protocol in the RGMII mode.
In the embodiment of the invention, the communication modes of the BMC, the target chip end and the network exchange chip end are set on the server side according to the physical link mode of the MDIO protocol of the target chip end, so that normal communication can be ensured under the link mode of the MDIO protocol, at least two network ports provided by the BMC management network exchange chip end are further realized, and the network management system is suitable for scenes requiring the use of a plurality of network functions.
In some embodiments of the present invention, before the controlling the communication between the baseboard management controller and the target chip end using the optical fiber gigabit ethernet protocol in the optical fiber mode, and the communicating between the target chip end and the network switching chip end using the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode, the method further includes:
and providing the required clock frequency for the network exchange chip end according to the clock frequency of the server main board.
In practical application, the 25M clock frequency can be introduced into the network exchange chip end by the server main board, so that the required clock frequency can be provided for the network exchange chip end, the operation of the network exchange chip end is ensured by providing the required clock frequency for the network exchange chip end, and the clock frequency of the server main board is directly adopted as the required clock frequency of the network exchange chip end, so that the operation is simplified.
In some embodiments of the present invention, before the controlling the communication between the baseboard management controller and the target chip end using the optical fiber gigabit ethernet protocol in the optical fiber mode, and the communicating between the target chip end and the network switching chip end using the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode, the method further includes:
And setting the working mode of the target chip end in the starting process of the server so that the working mode of the target chip end supports the communication by adopting the optical fiber gigabit Ethernet protocol in the optical fiber mode and the optical fiber gigabit Ethernet protocol in the independent interface mode of the simple gigabit media.
In practical application, the BMC can read whether the current mode of the target chip is 1000base-X protocol through the MDIO protocol, and if the current mode is not 1000base-X protocol, the current mode can be set to 1000base-X protocol through the MDIO protocol.
In some embodiments of the present invention, in the process of starting the server, setting the working mode of the target chip end, so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit ethernet protocol in an optical fiber mode and an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, including:
In the process of starting a server, setting parameters in a register of the target chip end through the baseboard management controller so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode and an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode.
In practical application, the BMC may read the parameters in the register of the target chip, and if the parameters in the register are non-specified parameters, for example, the specified parameters are 0X01, and the current mode is not 1000base-X protocol, the parameters in the register may be modified to the specified parameters to be set to 1000base-X protocol.
In some embodiments of the present invention, after setting, by the baseboard management controller, parameters in a register of the target chip end in the process of starting the server, so that the working mode of the target chip end supports communication by adopting the optical fiber gigabit ethernet protocol in the optical fiber mode and the optical fiber gigabit ethernet protocol in the abbreviated gigabit media independent interface mode, the method further includes:
And reading back parameters in a register of the target chip end through the baseboard management controller so as to confirm whether the working mode of the target chip end is set correctly.
In some embodiments of the invention, further comprising:
and feeding back a communication failure message under the condition that the working mode of the target chip end is not set to be correct.
After setting the parameters in the register, the parameters in the register can be read back, and whether the working mode of the target chip end is set correctly is judged through the read-back parameters.
If the parameters in the register are non-specified parameters, and if the specified parameters are 0X01, the current mode is not 1000base-X protocol, namely the working mode is not set correctly, the message of communication failure can be fed back, and a user can further know the communication condition in time; if the parameters in the register are specified parameters, the current mode is represented as 1000base-X protocol, namely the working mode is set correctly.
In the embodiment of the invention, the working mode of the target chip end is read back, so that the correct setting of the working mode is ensured, the problem of incapability of communication is avoided, and the reliability is improved.
In some embodiments of the present invention, in the process of starting the server, setting the working mode of the target chip end, so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit ethernet protocol in an optical fiber mode and an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, including:
Responding to an input instruction, starting the server, and detecting whether to enter a starting stage aiming at the baseboard management controller in the process of starting the server; and when the start-up stage aiming at the baseboard management controller is detected, setting the working mode of the target chip end so that the working mode of the target chip end supports the communication by adopting the optical fiber gigabit Ethernet protocol in the optical fiber mode and the optical fiber gigabit Ethernet protocol in the independent interface mode of the simple gigabit media.
In practical application, the server can be started in response to the input instruction, and as a plurality of starting stages exist in the starting process of the server, whether the starting stage of the baseboard management controller is started or not can be detected, and when the starting stage of the baseboard management controller is detected, the working mode of the target chip end can be set, so that the working mode of the target chip end supports the communication by adopting the optical fiber gigabit Ethernet protocol in the optical fiber mode and the optical fiber gigabit Ethernet protocol in the independent interface mode of the compact gigabit media.
In some embodiments of the present invention, after 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 communication by adopting the optical fiber gigabit ethernet protocol in the optical fiber mode and the optical fiber gigabit ethernet protocol in the abbreviated gigabit media independent interface mode, the method further includes:
And setting the network exchange chip end to be matched with the working mode of the target chip end.
In some embodiments of the present invention, the setting the network switch chip end to adapt to the working mode of the target chip end includes:
And setting parameters in a register of the network exchange chip end through the baseboard management controller so as to adapt to the working mode of the target chip end.
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, and the network normal communication function of the 1000base-X protocol is realized.
In the embodiment of the invention, when the server is started, the target chip and the network exchange chip are set through the BMC, so that the target chip and the network exchange chip can be matched with the set communication mode, and the normal interaction of network communication is further ensured.
As some examples, setting parameters in registers of the network switch chip side may include:
Setting the working mode of the network exchange chip end through the baseboard management controller, and supporting the communication by adopting the optical fiber gigabit Ethernet protocol under the independent interface mode of the simple gigabit media by the working mode of the network exchange chip end; enabling a port of the network switching chip end through the baseboard management controller; setting the port read-write of the network exchange chip end through the baseboard management controller; and setting the port time delay of the network exchange chip end through the baseboard management controller.
In some embodiments of the present invention, before the setting the network switch chip end to adapt to the working mode of the target chip end, the method further includes:
Obtaining a setting result of the working mode of the target chip end; and executing the setting of the network exchange chip end to adapt to the working mode of the target chip end when the setting result indicates that the working mode of the target chip end is set correctly.
In practical application, the setting of the network exchange chip end depends on the setting of the working mode of the target chip end, so that the setting result of the working mode of the target chip end can be obtained, when the setting result indicates that the working mode of the target chip end is set correctly, the network exchange chip end can be set, and when the setting result indicates that the working mode of the target chip end is set incorrectly, the network exchange chip end is not set.
In the embodiment of the invention, a baseboard management controller in a server communicates with a network exchange chip end through a target chip end, the network exchange chip end provides at least two network ports, the baseboard management controller provides external service through the at least two network ports, and the baseboard management controller controls the baseboard management controller to communicate with the target chip end by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode under the condition that the target chip end is linked with the baseboard management controller by detecting a linking mode of a management data input/output protocol in the target chip end, and the target chip end and the network exchange chip end communicate by adopting the optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, thereby realizing the provision of at least two network ports for the baseboard management controller through the network exchange chip end, providing a corresponding communication mode to ensure the normal communication of the at least two network ports and further being suitable for a scene requiring the use of a plurality of network functions.
Referring to fig. 2, a flowchart illustrating steps of another communication method based on a server according to some embodiments of the present invention is shown, where a baseboard management controller in the server communicates with a network switching chip end through a target chip end, where 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.
Specifically, the method comprises the following steps:
Step 201, according to the input operation, setting a linking mode of managing the data input/output protocol in the target chip end.
Specifically, the MDIO protocol link of the target chip end can be set to be linked with the network exchange chip end, or the MDIO protocol link of the target chip end is linked with the BMC.
In practical applications, various ways may be provided to perform the input operation, so as to set a link way of the MDIO protocol in the target chip end, and as some examples, the input operation includes any one of the following: input operation is performed by an option mode in a Basic Input Output System (BIOS), input operation is performed by a mode controlled by a Baseboard Management Controller (BMC), and input operation is performed by a mode that a main board end jumps to a cap.
In some examples, the setting of the link mode of the MDIO protocol may be implemented through an automation script, for example, the automation script may automatically select an option in the BIOS to implement the setting of the link mode, and by executing the automation script, the operation may be simplified, the efficiency may be improved, and the operation threshold may be reduced.
Step 202, detecting a link mode of managing a data input/output protocol in the target chip end.
In practical application, the link mode of the MDIO protocol in the target chip end can be detected.
The link mode of the MDIO protocol of the target chip end comprises the link of the MDIO protocol of the target chip end and the network exchange chip end, and the link of the MDIO protocol of the target chip end and the BMC.
On the one hand, if the MDIO protocol link of the target chip end is linked with the network exchange chip end, the out-of-band self-adaptation function of the network exchange 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 self-adaptation function of the network switching chip end cannot be supported.
Step 203, in the case that the linking manner is that the target chip end is linked with the baseboard management controller, the baseboard management controller is set to link with the uplink port of the target chip end by adopting 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 switching chip end by adopting the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode.
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 be the communication between the FIBER and the 1000Base-X protocol in the RGMII mode. Specifically, the BMC is set to link with an uplink port of the target chip end by adopting a 1000Base-X protocol in the FIBER mode, and the downlink port of the target chip end is set to link with the network exchange chip end by adopting a 1000Base-X protocol in the RGMII mode.
In the embodiment of the invention, the communication modes of the BMC, the target chip end and the network exchange chip end are set on the server side according to the physical link mode of the MDIO protocol of the target chip end, so that normal communication can be ensured under the link mode of the MDIO protocol, at least two network ports provided by the BMC management network exchange chip end are further realized, and the network management system is suitable for scenes requiring the use of a plurality of network functions.
Step 204, providing the required clock frequency for the network switching chip according to the clock frequency of the server motherboard.
In practical application, the 25M clock frequency can be introduced into the network exchange chip end by the server main board, so that the required clock frequency can be provided for the network exchange chip end, the operation of the network exchange chip end is ensured by providing the required clock frequency for the network exchange chip end, and the clock frequency of the server main board is directly adopted as the required clock frequency of the network exchange chip end, so that the operation is simplified.
Step 205, in the process of starting the server, setting the working mode of the target chip end, so that the working mode of the target chip end supports the communication by adopting the optical fiber gigabit ethernet protocol in the optical fiber mode and the optical fiber gigabit ethernet protocol in the independent interface mode of the reduced gigabit media, and setting the network switching chip end to adapt to the working mode of the target chip end.
In practical application, the BMC may read the parameters in the register of the target chip, and if the parameters in the register are non-specified parameters, for example, the specified parameters are 0X01, and the current mode is not 1000base-X protocol, the parameters in the register may be modified to the specified parameters to be set to 1000base-X protocol.
If the parameters in the register are non-specified parameters, and if the specified parameters are 0X01, the current mode is not 1000base-X protocol, namely the working mode is not set correctly, the message of communication failure can be fed back, and a user can further know the communication condition in time; if the parameters in the register are specified parameters, the current mode is represented as 1000base-X protocol, namely the working mode is set correctly.
In the embodiment of the invention, the working mode of the target chip end is read back, so that the correct setting of the working mode is ensured, the problem of incapability of communication is avoided, and the reliability is improved.
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, and the network normal communication function of the 1000base-X protocol is realized.
In the embodiment of the invention, when the server is started, the target chip and the network exchange chip are set through the BMC, so that the target chip and the network exchange chip can be matched with the set communication mode, and the normal interaction of network communication is further ensured.
And 206, controlling the baseboard management controller and the target chip end to communicate by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode, and controlling the target chip end and the network exchange chip end to communicate by adopting an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode.
For the condition that the MDIO protocol link of the target chip end is linked with the BMC, the BMC cannot carry out SGMII mode-RGMII mode communication with the network exchange chip end through the target chip end because the out-of-band self-adaption function of the network exchange chip end cannot be supported, the target chip end supports 1000base-X protocol, the network exchange chip end also supports 1000-BaseX protocol, and then normal communication between the target chip end and the network exchange chip end can be realized through 1000-BaseX protocol.
Specifically, 1000Base-X protocol in FIBER mode may be used for communication between the BMC and the target chip, and 1000Base-X protocol in RGMII mode may be used for communication between the target chip and the network switch chip.
The invention is illustrated below in connection with fig. 3a and 3 b:
referring to fig. 3a, the target chip is an RTL chip, and the network Switch chip is a network Switch chip, input operation may be performed through options in the BIOS, BMC control, a motherboard end skip cap, etc., so as to set a link mode of an MDIO protocol at the RTL chip end. When the physical link mode of the MDIO protocol of the RTL chip end is that the RTL chip end and the BMC are physically linked, 1000Base-X protocol under the FIBER mode can be adopted for communication between the BMC and the target chip end, and 1000Base-X protocol under the RGMII mode can be adopted for communication between the target chip end and the network Switch chip end.
As shown in fig. 3b, on the server side, input operations may be performed through options in the BIOS, BMC control, a jump cap at the motherboard end, and so on, so as to set a link manner of the MDIO protocol at the RTL chip end.
The MDIO protocol is linked in a physical way that the RTL chip end and the network Switch chip end are linked physically, and the out-of-band self-adapting function of the network Switch chip end is supported, so that the out-of-band self-adapting function of the network Switch chip end can be adopted, the BMC is communicated with the RTL chip end through the SGMII mode in a connection mode, and the RTL chip end is communicated with the network Switch chip end through the RGMII mode in a connection mode.
When the MDIO protocol is linked physically between the RTL chip end and the BMC, the network Switch chip does not support the RGMII out-of-band self-adaption function, but only supports the FIBER mode-1000 Base-x mode, the BMC sets the FIBER 1000Base-x mode to be linked with the upstream port of the RTL chip end, and the downstream port of the RTL chip end sets the RGMII 1000BASE-x mode to be linked with the network Switch chip.
Further, the server motherboard may provide a 25Mhz clock frequency to the network Switch chip.
When the server is started, the BMC configures the RTL chip end through the MDIO protocol, the working mode of the RTL chip end is set to FBER-RGMIl mode, namely the register is set to 1, and whether the working mode of the RTL chip end is correct or not can be read through the MDIO protocol.
If the read RTL chip end working mode is incorrect, the BMC is characterized in that the network communication of the firmware is failed, and if the read RTL chip end working mode is correct, the BMC sets the network Switch chip working mode, the port enabling setting, the network port reading and writing setting and the port time delay setting through an MDIO protocol.
After the setting is completed, the communication function of the BMC for managing the network address of the main board is normally used based on the working mode of the 1000Base-x protocol.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 4, a schematic structural diagram of a communication device based on a server according to some embodiments of the present invention is shown, where a baseboard management controller in the server communicates with a network exchange chip end through a target chip end, where the network exchange chip end provides at least two network ports, and the baseboard management controller provides external services through the at least two network ports.
Specifically, the method can comprise the following modules:
A link mode detection module 401, configured to detect a link mode of a management data input/output protocol in the target chip end;
The first communication module 402 is configured to control, when the link mode is that the target chip end is linked to the baseboard management controller, to perform communication between the baseboard management controller and the target chip end by using an optical fiber gigabit ethernet protocol in an optical fiber mode, and to perform communication between the target chip end and the network switch chip end by using an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode.
In some embodiments of the present invention, when the linking manner is that the target chip end is linked to the baseboard management controller, the baseboard management controller and the target chip end are controlled to communicate by using an optical fiber gigabit ethernet protocol in an optical fiber mode, and the target chip end and the network switch chip end communicate by using an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, including:
receiving a terminal request aiming at the server through a network port provided by the network exchange chip end;
Under the condition that the link mode is that the target chip end is linked with the baseboard management controller, controlling the network exchange chip end to adopt an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, sending the terminal request to the target chip end, and controlling the target chip end to adopt the optical fiber gigabit Ethernet protocol in the optical fiber mode, and sending the terminal request to the baseboard management controller;
And controlling the baseboard management controller to adopt an optical fiber gigabit Ethernet protocol in an optical fiber mode, sending a reply message aiming at the terminal request feedback to the target chip end, controlling the target chip end to adopt the optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, sending the reply message to the network exchange chip end, and feeding the reply message back to the terminal through a network port provided by the network exchange chip end.
In some embodiments of the invention, further comprising:
The first communication module is used for controlling the baseboard management controller to communicate with the target chip end by adopting a serial gigabit media independent interface mode under the condition that the link mode is that the target chip end is linked with the network exchange chip end, and the target chip end and the network exchange chip end communicate by adopting a simple gigabit media independent interface mode.
In some embodiments of the invention, further comprising:
And the communication mode module is used for setting the optical fiber gigabit Ethernet protocol in the optical fiber mode to be linked with the uplink port of the target chip end by the baseboard management controller and setting the optical fiber gigabit Ethernet protocol in the simple gigabit media independent interface mode to be linked with the network exchange chip end by the downlink port of the target chip end under the condition that the link mode is that the target chip end is linked with the chip in the baseboard management controller.
In some embodiments of the invention, further comprising:
and the clock frequency setting module is used for providing the required clock frequency for the network exchange chip end according to the clock frequency of the server main board.
In some embodiments of the invention, further comprising:
And the target chip setting module is used for setting the working mode of the target chip end in the starting process of the server so that the working mode of the target chip end supports the communication by adopting the optical fiber gigabit Ethernet protocol in the optical fiber mode and the optical fiber gigabit Ethernet protocol in the independent interface mode of the simple gigabit media.
In some embodiments of the present invention, in the process of starting the server, setting the working mode of the target chip end, so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit ethernet protocol in an optical fiber mode and an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, including:
In the process of starting a server, setting parameters in a register of the target chip end through the baseboard management controller so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode and an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode.
In some embodiments of the invention, further comprising:
And the working mode reading module is used for reading back parameters in a register of the target chip end through the baseboard management controller so as to confirm whether the working mode of the target chip end is set correctly.
In some embodiments of the invention, further comprising:
And the failure feedback module is used for feeding back a communication failure message under the condition that the working mode of the target chip end is not set to be correct.
In some embodiments of the present invention, in the process of starting the server, setting the working mode of the target chip end, so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit ethernet protocol in an optical fiber mode and an optical fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, including:
Responding to an input instruction, starting the server, and detecting whether to enter a starting stage aiming at the baseboard management controller in the process of starting the server;
And when the start-up stage aiming at the baseboard management controller is detected, setting the working mode of the target chip end so that the working mode of the target chip end supports the communication by adopting the optical fiber gigabit Ethernet protocol in the optical fiber mode and the optical fiber gigabit Ethernet protocol in the independent interface mode of the simple gigabit media.
In some embodiments of the invention, further comprising:
and the network exchange chip setting module is used for setting the network exchange chip end so as to be matched with the working mode of the target chip end.
In some embodiments of the present invention, the setting the network switch chip end to adapt to the working mode of the target chip end includes:
Setting parameters in a register of the network exchange chip end through the baseboard management controller so as to be matched with the working mode of the target chip end;
The method for setting the parameters in the register of the network exchange chip specifically comprises the following steps:
setting the working mode of the network exchange chip end through the baseboard management controller, and supporting the communication by adopting the optical fiber gigabit Ethernet protocol under the independent interface mode of the simple gigabit media by the working mode of the network exchange chip end;
enabling a port of the network switching chip end through the baseboard management controller;
setting the port read-write of the network exchange chip end through the baseboard management controller;
And setting the port time delay of the network exchange chip end through the baseboard management controller.
In some embodiments of the invention, further comprising:
the setting junction acquisition module is used for acquiring a setting result of the working mode of the target chip end; and when the setting result indicates that the working mode setting of the target chip end is correct, calling the network switching chip setting module.
In some embodiments of the invention, further comprising:
And the link mode setting module is used for setting the link mode of the management data input/output protocol in the target chip end according to the input operation.
In some embodiments of the present invention, the setting a link manner of managing a data input/output protocol in the target chip according to an input operation includes:
acquiring a selection result of options in a basic input/output system, and setting a link mode of a management data input/output protocol in the target chip end according to the selection result;
Or receiving a control instruction to the baseboard management controller, and setting a link mode of a management data input/output protocol in the target chip end according to the control instruction;
or receiving an operation instruction of the jump cap operation of the main board end, and setting a link mode of the management data input/output protocol in the target chip end according to the operation instruction.
In some embodiments of the present invention, the at least two network ports provided by the network switch chip end include: a network-specific port and a network-shared port.
In the embodiment of the invention, a baseboard management controller in a server communicates with a network exchange chip end through a target chip end, the network exchange chip end provides at least two network ports, the baseboard management controller provides external service through the at least two network ports, and the baseboard management controller controls the baseboard management controller to communicate with the target chip end by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode under the condition that the target chip end is linked with the baseboard management controller by detecting a linking mode of a management data input/output protocol in the target chip end, and the target chip end and the network exchange chip end communicate by adopting the optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, thereby realizing the provision of at least two network ports for the baseboard management controller through the network exchange chip end, providing a corresponding communication mode to ensure the normal communication of the at least two network ports and further being suitable for a scene requiring the use of a plurality of network functions.
Some embodiments of the invention also provide a server comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program implementing the method as above when executed by the processor.
Some embodiments of the invention also provide an electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program implementing a method as above when executed by the processor.
Some embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as above.
Some embodiments of the invention also provide a computer program product comprising a computer program which, when executed by a processor, implements a method as above.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide corresponding operation entries for the user to select authorization or rejection.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or terminal device that comprises the element.
The foregoing has outlined rather broadly the more detailed description of a method and apparatus for server-based communication, and the detailed description of the principles and embodiments of the present invention that follows is provided herein as an aid to understanding the method and concepts of the present invention; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the idea of the present invention, the present disclosure should not be construed as limiting the present invention in summary.

Claims (20)

1. The communication method based on the server is characterized in that a substrate management controller in the server communicates with a network exchange chip end through a target chip end, the network exchange chip end provides at least two network ports, and the substrate management controller provides external services through the at least two network ports, and the communication method comprises the following steps:
detecting a link mode of a management data input/output protocol in the target chip end;
And under the condition that the link mode is that the target chip end is linked with the baseboard management controller, controlling the baseboard management controller to communicate with the target chip end by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode, and communicating with the network exchange chip end by adopting the optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode.
2. The method of claim 1, wherein, in the case that the linking manner is that the target chip end is linked to the baseboard management controller, controlling the baseboard management controller to communicate with the target chip end using a fiber gigabit ethernet protocol in a fiber mode, and the target chip end communicating with the network switch chip end using a fiber gigabit ethernet protocol in a reduced gigabit media independent interface mode, the method comprises:
receiving a terminal request aiming at the server through a network port provided by the network exchange chip end;
Under the condition that the link mode is that the target chip end is linked with the baseboard management controller, controlling the network exchange chip end to adopt an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, sending the terminal request to the target chip end, and controlling the target chip end to adopt the optical fiber gigabit Ethernet protocol in the optical fiber mode, and sending the terminal request to the baseboard management controller;
And controlling the baseboard management controller to adopt an optical fiber gigabit Ethernet protocol in an optical fiber mode, sending a reply message aiming at the terminal request feedback to the target chip end, controlling the target chip end to adopt the optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode, sending the reply message to the network exchange chip end, and feeding the reply message back to the terminal through a network port provided by the network exchange chip end.
3. The method as recited in claim 1, further comprising:
And under the condition that the link mode is that the target chip end is linked with the network exchange chip end, controlling the baseboard management controller to communicate with the target chip end by adopting a serial gigabit media independent interface mode, and communicating with the network exchange chip end by adopting a simple gigabit media independent interface mode.
4. The method of claim 1 or 2, further comprising, prior to said controlling communication between the baseboard management controller and the target chip side using a fiber gigabit ethernet protocol in a fiber-optic mode, and between the target chip side and the network switch chip side using a fiber-optic gigabit ethernet protocol in a reduced gigabit media independent interface mode:
And under the condition that the link mode is that the target chip end is linked with a chip in the baseboard management controller, setting the baseboard management controller to link with an uplink port of the target chip end by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode, and setting a downlink port of the target chip end to link with the network exchange chip end by adopting an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode.
5. The method of claim 1 or 2, further comprising, prior to said controlling communication between the baseboard management controller and the target chip side using a fiber gigabit ethernet protocol in a fiber-optic mode, and between the target chip side and the network switch chip side using a fiber-optic gigabit ethernet protocol in a reduced gigabit media independent interface mode:
And setting the working mode of the target chip end in the starting process of the server so that the working mode of the target chip end supports the communication by adopting the optical fiber gigabit Ethernet protocol in the optical fiber mode and the optical fiber gigabit Ethernet protocol in the independent interface mode of the simple gigabit media.
6. The method of claim 5, wherein setting the operating mode of the target chip side during the server start-up process so that the operating mode of the target chip side supports communication using the optical fiber gigabit ethernet protocol in the optical fiber mode and the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode comprises:
In the process of starting a server, setting parameters in a register of the target chip end through the baseboard management controller so that the working mode of the target chip end supports communication by adopting an optical fiber gigabit Ethernet protocol in an optical fiber mode and an optical fiber gigabit Ethernet protocol in a simple gigabit media independent interface mode.
7. The method of claim 6, wherein during the server start-up, setting, by the baseboard management controller, parameters in a register of the target chip side to enable the operation mode of the target chip side to support communication using the optical fiber gigabit ethernet protocol in the optical fiber mode and the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode, further comprising:
And reading back parameters in a register of the target chip end through the baseboard management controller so as to confirm whether the working mode of the target chip end is set correctly.
8. The method as recited in claim 7, further comprising:
and feeding back a communication failure message under the condition that the working mode of the target chip end is not set to be correct.
9. The method of claim 5, wherein setting the operating mode of the target chip side during the server start-up process so that the operating mode of the target chip side supports communication using the optical fiber gigabit ethernet protocol in the optical fiber mode and the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode comprises:
Responding to an input instruction, starting the server, and detecting whether to enter a starting stage aiming at the baseboard management controller in the process of starting the server;
And when the start-up stage aiming at the baseboard management controller is detected, setting the working mode of the target chip end so that the working mode of the target chip end supports the communication by adopting the optical fiber gigabit Ethernet protocol in the optical fiber mode and the optical fiber gigabit Ethernet protocol in the independent interface mode of the simple gigabit media.
10. The method of claim 5, wherein during the server-initiated process, setting the operating mode of the target chip side such that the operating mode of the target chip side supports communication using the optical fiber gigabit ethernet protocol in the optical fiber mode and the optical fiber gigabit ethernet protocol in the reduced gigabit media independent interface mode, further comprising:
And setting the network exchange chip end to be matched with the working mode of the target chip end.
11. The method of claim 10, wherein the setting the network switch chip side to adapt to the operation mode of the target chip side includes:
Setting parameters in a register of the network exchange chip end through the baseboard management controller so as to be matched with the working mode of the target chip end;
The method for setting the parameters in the register of the network exchange chip specifically comprises the following steps:
setting the working mode of the network exchange chip end through the baseboard management controller, and supporting the communication by adopting the optical fiber gigabit Ethernet protocol under the independent interface mode of the simple gigabit media by the working mode of the network exchange chip end;
enabling a port of the network switching chip end through the baseboard management controller;
setting the port read-write of the network exchange chip end through the baseboard management controller;
And setting the port time delay of the network exchange chip end through the baseboard management controller.
12. The method of claim 10, further comprising, prior to said setting the network switch chip side to adapt to the operation mode of the target chip side:
Obtaining a setting result of the working mode of the target chip end;
and executing the setting of the network exchange chip end to adapt to the working mode of the target chip end when the setting result indicates that the working mode of the target chip end is set correctly.
13. The method of claim 1 or 2, further comprising, prior to said controlling communication between the baseboard management controller and the target chip side using a fiber gigabit ethernet protocol in a fiber-optic mode, and between the target chip side and the network switch chip side using a fiber-optic gigabit ethernet protocol in a reduced gigabit media independent interface mode:
and providing the required clock frequency for the network exchange chip end according to the clock frequency of the server main board.
14. The method of claim 1 or 2, further comprising, prior to said controlling communication between the baseboard management controller and the target chip side using a fiber gigabit ethernet protocol in a fiber-optic mode, and between the target chip side and the network switch chip side using a fiber-optic gigabit ethernet protocol in a reduced gigabit media independent interface mode:
and setting a link mode for managing the data input and output protocol in the target chip end according to the input operation.
15. The method of claim 14, wherein the setting the link mode for managing the data input/output protocol in the target chip according to the input operation includes:
acquiring a selection result of options in a basic input/output system, and setting a link mode of a management data input/output protocol in the target chip end according to the selection result;
Or receiving a control instruction to the baseboard management controller, and setting a link mode of a management data input/output protocol in the target chip end according to the control instruction;
or receiving an operation instruction of the jump cap operation of the main board end, and setting a link mode of the management data input/output protocol in the target chip end according to the operation instruction.
16. The method of claim 1, wherein the at least two network ports provided by the network switch chip side comprise: a network-specific port and a network-shared port.
17. The utility model provides a communication device based on server, its characterized in that, base plate management controller communicates with network exchange chip end through target chip end in the server, network exchange chip end provides two at least net gapes, base plate management controller provides external service through two at least net gapes, includes:
the link mode detection module is used for detecting the link mode of the management data input/output protocol in the target chip end;
And the first communication module is used for controlling the optical fiber gigabit Ethernet protocol to carry out communication in an optical fiber mode between the substrate management controller and the target chip end under the condition that the target chip end is linked with the substrate management controller in the linking mode, and adopting the optical fiber gigabit Ethernet protocol to carry out communication in a simple gigabit media independent interface mode between the target chip end and the network exchange chip end.
18. An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor implements the method of any one of claims 1 to 16.
19. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method according to any of claims 1 to 16.
20. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1 to 16.
CN202410525152.7A 2024-04-29 2024-04-29 Communication method and device based on server Pending CN118101599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410525152.7A CN118101599A (en) 2024-04-29 2024-04-29 Communication method and device based on server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410525152.7A CN118101599A (en) 2024-04-29 2024-04-29 Communication method and device based on server

Publications (1)

Publication Number Publication Date
CN118101599A true CN118101599A (en) 2024-05-28

Family

ID=91165460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410525152.7A Pending CN118101599A (en) 2024-04-29 2024-04-29 Communication method and device based on server

Country Status (1)

Country Link
CN (1) CN118101599A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110040917A1 (en) * 2009-08-12 2011-02-17 +Dell Products L.P. System and method for enabling interchangeable dedicated management network interface card access via fabric controller
CN105471673A (en) * 2015-11-19 2016-04-06 浪潮电子信息产业股份有限公司 Batch automatic test method for server BMC dedicated network port and shared network port
CN109218110A (en) * 2018-10-22 2019-01-15 郑州云海信息技术有限公司 A kind of communication equipment and communication means
CN115842871A (en) * 2023-02-15 2023-03-24 四川华鲲振宇智能科技有限责任公司 Network port communication bridging and management method based on multi-type PHY chip
US20230195671A1 (en) * 2021-12-16 2023-06-22 Mitac Computing Technology Corporation Storage enclosure and system including the storage enclosure
CN117271178A (en) * 2023-08-31 2023-12-22 苏州浪潮智能科技有限公司 Parameter configuration method and board fault diagnosis method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110040917A1 (en) * 2009-08-12 2011-02-17 +Dell Products L.P. System and method for enabling interchangeable dedicated management network interface card access via fabric controller
CN105471673A (en) * 2015-11-19 2016-04-06 浪潮电子信息产业股份有限公司 Batch automatic test method for server BMC dedicated network port and shared network port
CN109218110A (en) * 2018-10-22 2019-01-15 郑州云海信息技术有限公司 A kind of communication equipment and communication means
US20230195671A1 (en) * 2021-12-16 2023-06-22 Mitac Computing Technology Corporation Storage enclosure and system including the storage enclosure
CN115842871A (en) * 2023-02-15 2023-03-24 四川华鲲振宇智能科技有限责任公司 Network port communication bridging and management method based on multi-type PHY chip
CN117271178A (en) * 2023-08-31 2023-12-22 苏州浪潮智能科技有限公司 Parameter configuration method and board fault diagnosis method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
玩转LINUX内核: ""趣谈网络协议栈,以太网基础MAC和PHY"", Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/498440071> *

Similar Documents

Publication Publication Date Title
US6681248B1 (en) Method for port connectivity discovery in transparent high bandwidth networks
EP2391061B1 (en) Method, apparatus and system for configuring master-slave network devices
CN108234301B (en) Data link switching method and device
US11128741B2 (en) Auto-negotiation over extended backplane
TWI535251B (en) Method and system for low-latency networking
CN112214441A (en) Communication switching method, equipment and system based on serial bus polling protocol
CN112468322B (en) Plug-and-play power grid stability control device communication test method and system
CN111541956A (en) Optical port self-adaption method, device, switch and computer readable storage medium
JP4351289B1 (en) Subscriber premises communication equipment
CN102595258A (en) Method and optical network unit equipment compatible with different passive optical network protocols
CN118101599A (en) Communication method and device based on server
CN114024598B (en) Forwarding interface test method and device
CN114401324B (en) Message forwarding method, network equipment and system
CN108599984B (en) Method for sharing port state, access equipment and system for supporting dual-homing protection
EP3618317A1 (en) Message sending method and message receiving method and apparatus
CN115941809A (en) Aggregation processing method and system for multiple Internet of Things terminal protocols for DCIM
CN116584078A (en) Method and apparatus for mobile communication system
US8233386B2 (en) Device that uses parameters to provide multi-channel serial data transmissions and method thereof
WO2017058071A1 (en) Addressing in a system of interconnected units
CN113037573B (en) Network management system and method
CN114143825B (en) RRU management method and system based on multimode base station
JP3917050B2 (en) Device management method using MAC control frame
CN114885043B (en) Interface system and method of self-adaptive forward protocol
US9473597B2 (en) Implementing multiple MAC protocols using a single wireless communication unit
CN113784379B (en) Network management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination