CN-116471162-B - Communication method and device
Abstract
The application provides a communication method and a communication device, wherein the method is applied to an out-of-band management application, the method comprises the steps of receiving a first in-band information acquisition request sent by an operation and maintenance application through a first interface, wherein the first in-band information acquisition request comprises a first destination address and a first destination port identifier, updating the first destination address into a second destination address if an interface indicated by the first destination port identifier is a second interface reaching the in-band management application, and sending a second in-band information acquisition request to the second interface, wherein the second in-band information acquisition request comprises the second destination address, so that the in-band management application acquires in-band information required by the operation and maintenance application according to the second in-band information acquisition request.
Inventors
- HUANG YI
- ZHOU XIAODONG
Assignees
- 新华三信息技术有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20230327
Claims (10)
- 1. A method of communication, the method being applied to an out-of-band management application, the method comprising: Receiving a first in-band information acquisition request sent by an operation and maintenance application through a first interface, wherein the first in-band information acquisition request comprises a first destination address and a first destination port identifier; If the interface indicated by the first destination port identifier is a second interface reaching the in-band management application, updating the first destination address to a second destination address; Sending a second in-band information acquisition request to the second interface, wherein the second in-band information acquisition request comprises the second destination address, so that the in-band management application acquires in-band information required by the operation and maintenance application according to the second in-band information acquisition request; The out-of-band management application is located in the BMC chip, the in-band management application is a tool under an operating system, and the operation and maintenance application is configured in the client.
- 2. The method according to claim 1, wherein the method further comprises: Receiving a first in-band information acquisition response sent by the in-band management application through a third interface, wherein the first in-band information acquisition response comprises a first source address and in-band information; updating the first source address to a second source address; And sending a second in-band information acquisition response to the operation and maintenance application through the first interface, wherein the second in-band information acquisition response comprises the second source address and the in-band information, so that the operation and maintenance application displays the in-band information to a user.
- 3. The method according to claim 1, wherein the method further comprises: Receiving an out-of-band information acquisition request sent by the operation and maintenance application through the first interface, wherein the out-of-band information acquisition request comprises a second destination port identifier; If the interface indicated by the second destination port identifier is not the second interface, transmitting the out-of-band information acquisition request to a program with a local interface number being the second destination port identifier, so that the program acquires out-of-band information required by the operation and maintenance application; And sending an out-of-band information acquisition response to the operation and maintenance application through the first interface, wherein the out-of-band information acquisition response comprises the out-of-band information, so that the operation and maintenance application displays the out-of-band information to a user.
- 4. The method of claim 2, wherein a physical channel has been established between the out-of-band management application and the in-band management application; the first interface is a physical interface included by the out-of-band management application, the second interface and the third interface are virtual interfaces in the physical channel, and the second destination address is a virtual IP address of the second interface.
- 5. The method of claim 4, wherein a virtual gateway address is configured within the out-of-band management application, wherein a virtual IP address of the second interface is assigned to the virtual gateway address, and wherein the virtual gateway address is an IP address of the third interface.
- 6. A communication apparatus, the apparatus being for use in an out-of-band management application, the apparatus comprising: The receiving unit is used for receiving a first in-band information acquisition request sent by the operation and maintenance application through a first interface, wherein the first in-band information acquisition request comprises a first destination address and a first destination port identifier; the updating unit is used for updating the first destination address into a second destination address if the interface indicated by the first destination port identifier is a second interface reaching the in-band management application; A sending unit, configured to send a second in-band information acquisition request to the second interface, where the second in-band information acquisition request includes the second destination address, so that the in-band management application acquires in-band information required by the operation and maintenance application according to the second in-band information acquisition request; The out-of-band management application is located in the BMC chip, the in-band management application is a tool under an operating system, and the operation and maintenance application is configured in the client.
- 7. The apparatus of claim 6, wherein the receiving unit is further configured to receive, via a third interface, a first in-band information acquisition response sent by the in-band management application, the first in-band information acquisition response including a first source address and in-band information; the updating unit is further used for updating the first source address to a second source address; The sending unit is further configured to send, through the first interface, a second in-band information acquisition response to the operation and maintenance application, where the second in-band information acquisition response includes the second source address and the in-band information, so that the operation and maintenance application displays the in-band information to a user.
- 8. The apparatus of claim 6, wherein the receiving unit is further configured to receive, via the first interface, an out-of-band information acquisition request sent by the operation and maintenance application, the out-of-band information acquisition request including a second destination port identifier; The device further comprises a transmission unit, a processing unit and a processing unit, wherein the transmission unit is used for transmitting the out-of-band information acquisition request to a program with a local interface number being the second destination port identifier if the interface indicated by the second destination port identifier is not the second interface, so that the program acquires out-of-band information required by the operation and maintenance application; the sending unit is further configured to send, through the first interface, an out-of-band information obtaining response to the operation and maintenance application, where the out-of-band information obtaining response includes the out-of-band information, so that the operation and maintenance application displays the out-of-band information to a user.
- 9. The apparatus of claim 7, wherein a physical channel has been established between the out-of-band management application and the in-band management application; the first interface is a physical interface included by the out-of-band management application, the second interface and the third interface are virtual interfaces in the physical channel, and the second destination address is a virtual IP address of the second interface.
- 10. The apparatus of claim 9, wherein a virtual gateway address is configured within the out-of-band management application, wherein a virtual IP address of the second interface is assigned to the virtual gateway address, and wherein the virtual gateway address is an IP address of the third interface.
Description
Communication method and device Technical Field The present application relates to the field of communications technologies, and in particular, to a communications method and apparatus. Background The baseboard management controller (English: baseboard Management Controller, abbreviated as BMC) is a management chip in the server motherboard. The server manufacturer develops BMC management software according to the BMC chip and burns the BMC management software into the BMC chip. The management of the server by the user using the BMC management software is called out-of-band management, and the functions of monitoring, configuring and the like of the server can be completed through the BMC management software (also called out-of-band management software). In the process of executing out-of-band management on the server, part of configuration or information viewing, for example, optical module information, control card firmware upgrading and the like, need to be realized through an operating system of the server. To remedy the limitations of out-of-band management, server vendors typically release tools within the operating system to help users monitor and configure the servers. The user uses some tool within the operating system (also referred to as in-band management software) to manage the server is referred to as in-band management. For different user requirements, for example, users with high security requirements, the management (in-band) network of the server may not be allowed to connect with the service (out-of-band) network. But the user desires to acquire in-band managed information through out-of-band management. In order to solve the above problem, the in-band environment and the out-of-band environment are connected through a physical channel in the server, and information is transmitted by using the physical channel. In-band management software (or IPMI driver) issued by a server manufacturer periodically transmits in-band information to out-of-band management software, so that a user can acquire in-band information from the out-of-band management software. However, the above-mentioned acquisition of in-band management software also has problems that 1) the in-band management software is used as a sender, a certain time interval is provided when the in-band management software sends the information, the user can acquire the information which may be lagged by the out-band management software, 2) a certain time interval is provided when the user receives the information, the in-band configuration sent by the out-band management software may not be issued in time, and 3) the out-band management function and the in-band management function cannot be completely decoupled, that is, if new in-band information or new in-band configuration needs to be acquired, in-band information needs to be correctly transmitted to the out-band management software, the out-band management software correctly displays the in-band information to a client, and the server manufacturer needs to issue new in-band management software (or IPMI drive), new IPMI command and new out-band management software. Disclosure of Invention In view of this, the application provides a communication method and device, which can reduce the coupling between the in-band management software and the out-of-band management software, improve the timeliness of information transfer, and enable a user to manage the out-of-band software and conveniently manage the in-band software. In a first aspect, the present application provides a communication method, the method being applied to an out-of-band management application, the method comprising: Receiving a first in-band information acquisition request sent by an operation and maintenance application through a first interface, wherein the first in-band information acquisition request comprises a first destination address and a first destination port identifier; If the interface indicated by the first destination port identifier is a second interface reaching the in-band management application, updating the first destination address to a second destination address; And sending a second in-band information acquisition request to the second interface, wherein the second in-band information acquisition request comprises the second destination address, so that the in-band management application acquires in-band information required by the operation and maintenance application according to the second in-band information acquisition request. In a second aspect, the present application provides a communications apparatus for use in an out-of-band management application, the apparatus comprising: The receiving unit is used for receiving a first in-band information acquisition request sent by the operation and maintenance application through a first interface, wherein the first in-band information acquisition request comprises a first destination address and a first destination port identifier; the updating unit