A sideband management message processing method and circuit
By designing independent data paths and management paths in the server and isolating them on the clock and reset, ensuring that management messages are sent with absolute priority, solving the problem of management messages communication interruption in server exceptions, and achieving low latency Quickly send and receive and promptly understand the equipment status.
Patent Information
- Application Number
- CN202311806562.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2043-12-26
AI Technical Summary
When an abnormality or reset occurs on the server, the management packet cannot be sent normally, resulting in communication interruption and loss, and timely understanding of the device status cannot be achieved.
设计了独立的数据通路和管理通路,分别用于数据报文和管理报文的传输,并在时钟和复位上进行隔绝,确保管理报文以绝对优先级发送,避免主机侧异常影响管理通道。
It realizes normal communication of managed packets when server abnormalities, avoids loss and delay, ensures fast transmission and reception of low-latency, and can timely understand the device status and perform remote processing.
Smart Images

Figure CN117793021B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of network communication, and in particular relates to a sideband management message processing method and circuit. Background Art
[0002] When the server accesses management devices such as the baseboard management controller (BMC), there will be a single network port. You can also access the BMC through a common network port, that is, a shared network. The shared network can reduce network cable connections, reduce labor maintenance costs, and also reduce switch port connections. When the host is in a reset or abnormal state, the network card serves as an interface to connect to the BMC device to obtain the corresponding device information and device status information.
[0003] However, when the server is abnormal or the corresponding link is blocked, all messages cannot be sent. Even if they are in the first queue with priority, normal communication of management messages cannot be achieved. In addition, management messages and other messages are in different queues. When the management message is in the host reset stage, the corresponding management message will be lost. Summary of the invention
[0004] The object of the present invention is to provide a sideband management message processing method and circuit, aiming to ensure that the corresponding management channel is not affected when the server is reset or abnormal.
[0005] According to a first aspect of the present invention, a sideband management message processing method is provided, comprising:
[0006] The host server and the message transceiver module form a data path, and the management interface and the message transceiver module form a management path, the data path and the management path are used for the transmission of data messages and management messages respectively, and independent clocks and resets are set for the data path and the management path;
[0007] When the message transceiver module receives an external message, if the message type obtained by parsing is a management message, the management message is sent to the message transceiver module with an absolute priority.
[0008] Preferably, if the message type obtained by parsing is a data message, the data message is sent to the host server through a PCIE interface.
[0009] Preferably, the management interface is connected to a baseboard management controller to send the management message to the baseboard management controller.
[0010] Preferably, both the data path and the management path respond to flow control commands.
[0011] According to a second aspect of the present invention, there is provided a sideband management message processing circuit, comprising a host server, a management interface and a message transceiver module, wherein the host server and the message transceiver module constitute a data path, the management interface and the message transceiver module constitute a management path, the data path and the management path are respectively used for the transmission of data messages and management messages, and independent clocks and resets are set for the data path and the management path. The message transceiver module is used for, when receiving an external message, if the parsed message type is a management message, sending the management message to the message transceiver module with absolute priority.
[0012] Compared with the related art, the technical solution of the present invention has the following advantages:
[0013] By processing the management channel separately, management message communication is given absolute priority. When an abnormality occurs on the server, the management device can communicate normally and is not affected by the abnormality on the host side. Management messages do not enter the corresponding big data cache, so fast transmission and reception with low latency can be achieved. You can timely understand the first-hand situation of the device and handle related operations remotely, avoiding the need to perform related operations on site, providing greater convenience.
[0014] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures and processes indicated in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. It is obvious that the drawings described below are certain embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 It is an overall flow chart of the sideband management message processing method according to the present invention.
[0017] Figure 2 is a message processing circuit diagram according to the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] Based on the above analysis, the present invention proposes a sideband management message processing method and circuit, which distinguishes the corresponding management message-related processing units in terms of clock and reset, and provides a separate channel, so that when the server host encounters an abnormality or is in the reset stage, the network card can continue to send and receive sideband management messages.
[0020] See also Figure 1 The sideband management message processing method provided by the present invention includes:
[0021] Step 101: The host server and the message transceiver module form a data path, and the management interface and the message transceiver module form a management path. The data path and the management path are used for the transmission of data messages and management messages respectively, and independent clocks and resets are set for the data path and the management path.
[0022] The overall design is as follows Figure 2 As shown in the figure, the interface MNG on the management side is connected to the BMC and the PC. The BMC and chip communication protocol uses the network controller sideband interface NSCI, and the PC and chip communication uses the UART serial port. When accessing the local server remotely, if a PCIE exception occurs or when the PCIE is in a reset state, in order to prevent the interaction between the BMC and the remote end from being affected, the management message channel and data path need to be separated. At the same time, isolation is achieved in the clock and reset to avoid the reset of the management side message due to some abnormalities of the host, which causes the loss or blockage of the management message.
[0023] Step 102: When the message transceiver module receives an external message, if the message type obtained by parsing is a management message, the management message is sent to the message transceiver module with an absolute priority.
[0024] When the message transceiver module receives an external message, the data is sent to the host data path and the management data path at the same time. The host and management data paths cannot back pressure the receiving direction message parsing module RX_FT. If the parsed message type is a management message, the management channel message is not discarded, but the host data path is discarded. Similarly, when RX_FT parses the message as a non-management message, the corresponding management message is discarded, but the host data path message is not discarded. When there is a management message to be sent on the management interface, according to the principle of sending the whole packet, if there is a message to be sent at present, the current whole packet sending is completed, and then the management message is sent directly. If there is no whole packet message to be sent at present, the management message and the host data path are scheduled according to the SP priority (i.e., the absolute priority of the management message), and the management message is sent directly to the message transceiver module.
[0025] The receiving direction receives external messages from the media access controller receiving module MAC_RX. The parsed messages have two paths, namely the data path and the management path. On the one hand, they are sent to the data receiving cache DB_RX direction corresponding to the server host, and on the other hand, they are sent to the management interface MNG direction. When the data path is reset or abnormal by PCIE and causes the data path to be stuck, the reset and clock corresponding to the management path in the MNG direction are independent and not affected by the host side, so normal reception can be achieved.
[0026] The sending direction corresponds to the data message of the server host and the management message of MNG. Both messages are cached by the data sending buffer DB_TX, and each has a separate storage. The message corresponding to the host direction is stored in the large buffer of DB_TX, and the buffer corresponding to the management message is stored inside the MNG. The data paths of the two directions are merged in the DB_TX module. In the internal processing, it is processed according to the management message SP (absolute priority). After the processing is completed, it is sent to the media access controller sending module MAC_TX. When flow control is generated, both the MNG direction and the host direction are affected by the corresponding flow control and respond to the flow control command. The management message is bound to a corresponding traffic category TC, and the corresponding flow control is responded to according to the TC. The traffic category TC is used to indicate different service levels. However, when the host is abnormal or reset, the reset and clock corresponding to the management path in the MNG direction are independent and are not affected by the host side, so that normal transmission can be achieved.
[0027] In terms of clock and reset processing, the corresponding management channel message RST_A, in the data path of the reset domain, is not affected by the PCIe reset of the corresponding host. However, the data in the host direction needs to be affected by RST_B. This is because after the host is reset or started, the corresponding data sent to the host needs to be cleaned up. The messages in the management direction should not be affected.
[0028] In the application scenario, when only the host data path is reset, the management message may not be reset. According to the priority of the management message, the entire circuit is reset, or the data path is reset without resetting the management message.
[0029] It can be seen that the sideband management message processing method proposed in the present invention has the following advantages compared with the related art:
[0030] By processing the management channel separately, management message communication is given absolute priority. When an abnormality occurs, the management device can communicate normally and is not affected by the abnormality on the host side. Management messages do not enter the corresponding big data cache, so fast transmission and reception with low latency can be achieved. You can timely understand the first-hand situation of the device and handle related operations remotely, avoiding the need to perform related operations on site, providing greater convenience.
[0031] Correspondingly, in a second aspect, the present invention provides a sideband management message processing circuit, comprising a host server, a management interface and a message transceiver module, wherein the host server and the message transceiver module constitute a data path, the management interface and the message transceiver module constitute a management path, the data path and the management path are respectively used for the transmission of data messages and management messages, and independent clocks and resets are set for the data path and the management path. The message transceiver module is used to send the management message to the message transceiver module with absolute priority when receiving an external message if the parsed message type is a management message.
[0032] The above-mentioned device can be implemented by the sideband management message processing method provided by the embodiment of the first aspect above. The specific implementation method can be found in the description of the embodiment of the first aspect, and will not be repeated here.
[0033] It is understood that the circuit structures, names and parameters described in the above embodiments are only examples. Those skilled in the art can also make easily conceivable combinations and adjustments to the structural features of the above embodiments according to the use requirements, and the concept of the present invention should not be limited to the specific details of the above examples.
[0034] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A sideband management message processing method, characterized in that: include: The host server and the message transceiver module form a data path, and the management interface and the message transceiver module form a management path, the data path and the management path are used for the transmission of data messages and management messages respectively, and independent clocks and resets are set for the data path and the management path; When a PCIE exception occurs or the PCIE is in a reset state, the data path is reset and the reset of the management path is prohibited; When the message transceiver module receives an external message, if the message type obtained by parsing is a management message, the management message is sent to the message transceiver module with an absolute priority; The step of sending the management message to the message transceiver module with an absolute priority further includes: If a message is currently being sent in full package, complete the sending of the current message in full package, and then send the management message directly; If no message is currently being sent, the management message is directly sent to the message transceiver module; The data path and the management path both respond to flow control commands, wherein the management message responds to the corresponding flow control command according to the traffic category TC to which it is bound, and the traffic category TC is used to indicate different service levels.
2. The sideband management message processing method according to claim 1, characterized in that: If the parsed message type is a data message, the data message is sent to the host server through the PCIE interface.
3. The sideband management message processing method according to claim 1, characterized in that: The management interface is connected to a baseboard management controller to send the management message to the baseboard management controller.
4. A sideband management message processing circuit, characterized in that: It includes a host server, a management interface and a message transceiver module, wherein the host server and the message transceiver module form a data path, the management interface and the message transceiver module form a management path, the data path and the management path are used for the transmission of data messages and management messages respectively, and independent clocks and resets are set for the data path and the management path; When a PCIE exception occurs or the PCIE is in a reset state, the data path is reset and the reset of the management path is prohibited; The message transceiver module is used for, when receiving an external message, if the message type obtained by parsing is a management message, sending the management message to the message transceiver module with an absolute priority; both the data path and the management path respond to the flow control command, wherein the management message responds to the corresponding flow control command according to the traffic category TC to which it is bound, and the traffic category TC is used to indicate different service levels; The message transceiver module is further used for: If a message is currently being sent in full package, complete the sending of the current message in full package, and then send the management message directly; If no message is currently being sent, the management message is directly sent to the message transceiver module.
5. The sideband management message processing circuit according to claim 4, characterized in that: When the message type obtained by parsing is a data message, the message transceiver module sends the data message to the host server through the PCIE interface.
6. The sideband management message processing circuit according to claim 4, characterized in that: The management interface is connected to a baseboard management controller to send the management message to the baseboard management controller.
