CN112838952B - Data transmission method of baseboard management controller, BMC, server and medium - Google Patents

Data transmission method of baseboard management controller, BMC, server and medium Download PDF

Info

Publication number
CN112838952B
CN112838952B CN202110002915.6A CN202110002915A CN112838952B CN 112838952 B CN112838952 B CN 112838952B CN 202110002915 A CN202110002915 A CN 202110002915A CN 112838952 B CN112838952 B CN 112838952B
Authority
CN
China
Prior art keywords
port
bmc
request
address
server
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.)
Active
Application number
CN202110002915.6A
Other languages
Chinese (zh)
Other versions
CN112838952A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110002915.6A priority Critical patent/CN112838952B/en
Publication of CN112838952A publication Critical patent/CN112838952A/en
Application granted granted Critical
Publication of CN112838952B publication Critical patent/CN112838952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]

Abstract

The application discloses a data transmission method of a substrate management controller, a BMC, a server and a medium, wherein an electronic device is connected with the BMC through a network interface, the electronic device can operate the BMC, if the server OS is required to be operated, the physical connection with the network interface is not required to be disconnected, the electronic device can send a first request to a first port of the BMC, the BMC obtains configuration information corresponding to the first port from configuration information corresponding to at least one preset port, if the configuration information corresponding to the first port comprises a target IP address of the server OS and a port number of a second port of the server OS, the fact that the electronic device needs the BMC to forward the first request to the server OS is indicated, namely the BMC only serves as a data forwarding medium in the process, so that the electronic device is equivalent to be directly connected with the server OS through the network interface, and the operation of the server OS by the electronic device is realized, the server OS and the BMC do not need to be physically connected respectively, and the operation is simple and convenient.

Description

Data transmission method of baseboard management controller, BMC, server and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data transmission method, a BMC, a server, and a medium for a baseboard management controller.
Background
The server includes a server OS (Operating System) and a BMC (baseboard management Controller), and when Operating on the server OS, the server OS needs to be operated by connecting a network interface corresponding to the server OS; when the BMC is operated, the BMC is operated by connecting the network interface corresponding to the BMC, and the operation is complex.
Disclosure of Invention
In view of the above, the present application provides a data transmission method of a baseboard management controller, a BMC, a server, and a medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
according to a first aspect of the embodiments of the present disclosure, a data transmission method for a baseboard management controller BMC is provided, including:
receiving a first request sent by an electronic device connected with a network interface of the BMC through a first port, wherein a destination address of the first request comprises an Internet Protocol (IP) address of the BMC and a port number of the first port, the first request comprises an operation instruction for the server OS, and the operation instruction comprises at least one of an operation instruction for downloading information stored by the server OS and an operation instruction for uploading the information stored by the electronic device to the server OS;
obtaining configuration information corresponding to the first port from configuration information corresponding to at least one preset port;
if the configuration information corresponding to the first port comprises a target IP address of the server OS and a port number of a second port of the server OS, sending the first request to the second port of the server OS with the target IP address;
and the IP address of the BMC, the target IP address and the IP address of the electronic equipment are different.
With reference to the first aspect, in a first possible implementation manner, the method further includes:
receiving a second request sent by an electronic device connected with a network interface of the BMC through a third port, wherein a destination address of the second request comprises an IP address of the BMC and a port number of the third port, and the second request comprises one of a request for logging in a global wide area network (WWAN) Web page of the BMC and an operation instruction input in the Web page and aiming at a server OS;
acquiring configuration information corresponding to a third port from configuration information corresponding to at least one preset port;
if the configuration information corresponding to the third port represents that the BMC responds to the second request received by the third port, response information aiming at the second request is obtained from the server OS through a communication bus, and the server OS is connected with the BMC through the communication bus;
displaying the response information on the Web page;
and controlling the electronic equipment to display the Web page.
With reference to the first aspect, in a second possible implementation manner, if the configuration information corresponding to the first port includes a destination IP address of the server OS and a port number of a second port of the server OS, the step of sending the first request to the second port of the server OS having the destination IP address includes:
if the configuration information corresponding to the first port includes the target IP address of the server OS and the port number of the second port of the server OS, determining a fourth port and a fifth port from a plurality of ports in an idle state;
sending the port number of the fifth port and the first request to a second port of the server OS with the target IP address through the fourth port, wherein the fifth port is used for receiving response information of the server OS for the first request.
With reference to the first aspect, in a third possible implementation manner, the method further includes:
receiving response information aiming at the first request sent by the server OS through the fifth port, wherein the destination address of the response information of the first request comprises an IP address of the BMC and a port number of the fifth port;
and sending response information of the first request to the electronic device through a sixth port, wherein the sixth port is a port which is determined by the BMC from at least one port in an idle state after receiving the first request and is used for sending the response information aiming at the first request to the electronic device.
With reference to the first aspect, in a fourth possible implementation manner, the second port is a 22 port or a 3389 port; and/or the first port is a virtual port, and/or the second port is a virtual port, and/or the third port is a virtual port.
According to a second aspect of the embodiments of the present disclosure, there is provided a baseboard management controller BMC, including:
a receiving module, configured to receive, through a first interface included in the receiving module, a first request sent by an electronic device connected to a network interface of the BMC, where a destination address of the first request includes an internet protocol IP address of the BMC and a port number of the first port, the first request includes an operation instruction for the server OS, and the operation instruction includes at least one of an operation instruction for downloading information stored by a server operating system OS and an operation instruction for uploading information stored by the electronic device to the server OS;
the acquisition module is used for acquiring configuration information corresponding to the first port from configuration information corresponding to at least one preset port;
a sending module, configured to send the first request to a second port of the server OS having a target IP address if configuration information corresponding to the first port includes the target IP address of the server OS and a port number of the second port of the server OS;
and the IP address of the BMC, the target IP address and the IP address of the electronic equipment are different.
With reference to the second aspect, in a first implementation manner, wherein,
the receiving module is further configured to receive, through a third port included in the receiving module, a second request sent by an electronic device connected to a network interface of the BMC, where a destination address of the second request includes an IP address of the BMC and a port number of the third port, and the second request includes one of a request for logging in a global wide area network Web page of the BMC and an operation instruction for a server OS input in the Web page;
the baseboard management controller BMC further comprises:
the configuration information acquisition module is used for acquiring configuration information corresponding to a third port from configuration information corresponding to at least one preset port;
a response information obtaining module, configured to obtain, if the configuration information corresponding to the third port indicates that the BMC responds to the second request received by the third port, response information for the second request from the server OS through a communication bus, where the server OS is connected to the BMC through the communication bus;
the layout module is used for displaying the response information on the Web page;
and the control module is used for controlling the electronic equipment to display the Web page.
According to a third aspect of the embodiments of the present disclosure, there is provided a baseboard management controller BMC, including:
a first interface, configured to receive a first request sent by an electronic device connected to a network interface of the BMC, where a destination address of the first request includes an internet protocol IP address of the BMC and a port number of the first port, and the first request includes an operation instruction for the server OS, where the operation instruction includes at least one of an operation instruction for downloading information stored by the server operating system OS and an operation instruction for uploading the information stored by the electronic device to the server OS;
a memory for storing a program;
a processor configured to execute the program, the program specifically configured to:
after the first interface receives the first request, configuration information corresponding to the first port is obtained from configuration information corresponding to at least one preset port;
if the configuration information corresponding to the first port comprises a target IP address of the server OS and a port number of a second port of the server OS, sending the first request to the second port of the server OS with the target IP address;
and the IP address of the BMC, the target IP address and the IP address of the electronic equipment are different.
According to a fourth aspect of embodiments of the present disclosure, there is provided a server, including:
a network interface for connecting with an electronic device;
a baseboard management controller BMC coupled to the network interface for performing the method of data transfer of the baseboard management controller BMC of any of claims 1-5;
and a server Operating System (OS) connected to the BMC.
According to a fifth aspect of the embodiments of the present disclosure, a readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the steps in the data transmission method of the baseboard management controller BMC according to the first aspect.
As can be seen from the foregoing technical solutions, in the data transmission method of the BMC according to the embodiment of the present application, an electronic device is connected to the BMC through a network interface of the BMC, the electronic device may operate the BMC, and if the electronic device needs to operate a server OS, the electronic device does not need to disconnect a physical connection with the network interface, that is, the electronic device may be connected to the server OS through the network interface of the BMC and the BMC, and the BMC plays a role of a data forwarding medium between the electronic device and the server OS The port number of the port indicates that the electronic device needs the BMC to forward the first request to the server OS, and the BMC is not required to process the first request, and since the BMC only serves as a data forwarding medium, the electronic device is equivalent to the electronic device being directly connected to the server OS through a network interface, so that the electronic device operates the server OS, and the server OS and the BMC do not need to be physically connected, respectively, and the operation is simple and convenient.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic view of a related art to which an embodiment of the present application relates;
fig. 2 is a signaling diagram of a data transmission method of a BMC according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of an implementation manner of a remote access interface displayed by an electronic device according to an embodiment of the present application;
fig. 4 is a structural diagram of a BMC according to an embodiment of the present disclosure;
fig. 5 is another structural diagram of a baseboard management controller BMC according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Before introducing the technical solution provided in the embodiment of the present application, the data transmission method of the BMC of the baseboard management controller, the server, and the readable storage medium provided in the embodiment of the present application will be described in detail.
Fig. 1 is a schematic diagram of a related art according to an embodiment of the present application.
Hardware related to the related art is described with reference to fig. 1, and the hardware related to the related art includes a server 11 and at least one electronic device 12.
The server 11 includes a server OS 111 and a BMC 112.
For example, the server OS 111 and the BMC112 may be located on the same motherboard, or the server OS 111 and the BMC112 may be located on different motherboards.
Illustratively, the server OS 111 and the BMC112 may be connected and communicate via a communication bus.
For example, the electronic device 12 may be any electronic product capable of interacting with a user through one or more of a keyboard, a touch PAD, a touch screen, a remote controller, a voice interaction device, a handwriting device, and the like, for example, a mobile phone, a notebook computer, a tablet computer, a palm computer, a personal computer, a wearable device, a smart television, a PAD, and the like.
For example, the electronic device 12 may be connected to the network interface 113 of the server 11 corresponding to the BMC 112.
Illustratively, the BMC112 will power up after the server 11 powers up. After the electronic device 12 is connected to the network interface 113 corresponding to the BMC112, the electronic device 12 may be used to send a start command to the server OS 111 through the BMC112, so as to power on the server OS.
The electronic device in the related art according to the embodiment of the present application is configured to operate the server OS in two cases of the server 11, and the related art will be described below with reference to the corresponding cases.
In the first case, the server 11 is not provided with a network interface corresponding to the server OS 111.
The BMC may be logged in by the electronic device 12 based on the IP address of the BMC112 and the corresponding port so that the electronic device 12 may present a Web (World Wide Web) page of the BMC. For example, the following URL is entered in the browser presented by electronic device 12 to log onto the BMC, "https://" + IP + "/port number/v 1/Session service/Sessions".
If the user needs to operate the server OS, the BMC112 may input an operation instruction in the web page of the BMC displayed by the electronic device 12, receive the operation instruction for the server OS input by the user in the web page of the BMC, and send the operation instruction to the server OS 111. The BMC112 may receive information of the server OS in response to the operation instruction and present the web page of the BMC in a preset format.
Illustratively, the operating system type of the server OS may be a Windows system or a Linux system.
In the first case, the electronic device 12 is used to display a BMC web page and input an operation instruction for the server OS into the BMC web page, that is, for the server OS 111, the electronic device 12 corresponds to a display device and an input device (such as a mouse and a keyboard) of the server OS 111, and the BMC corresponds to a display card of the server OS. Electronic device 12 cannot upload information stored by itself to server OS 111, nor download information stored by server OS 111 to electronic device 12.
In summary, in the first case, the operation that can be implemented between electronic device 12 and the server OS is affected, for example, electronic device 12 cannot upload information stored by itself to server OS 111, nor download information stored by server OS 111 into electronic device 12.
In the second case, the server 11 is provided with a network interface 114 corresponding to the server OS 111.
The hardware related to the related art to which the embodiments of the present application relate may further include the electronic device 13.
For example, the electronic device 13 may be any electronic product capable of interacting with a user through one or more modes of a keyboard, a touch PAD, a touch screen, a remote controller, a voice interaction device, a handwriting device, and the like, for example, a mobile phone, a notebook computer, a tablet computer, a palm computer, a personal computer, a wearable device, a smart television, a PAD, and the like.
For example, the electronic device 12 and the electronic device 13 may be the same electronic device, or the electronic device 12 and the electronic device 13 may be different electronic devices.
If the electronic device 12 and the electronic device 13 are the same electronic device, the physical connection with the network interface 113 of the BMC112 needs to be disconnected first when the electronic device 12 is connected to the network interface 114 of the server OS 111.
The electronic device 13 may directly access the server OS via the network interface 114, in which case the electronic device 13 may download information stored by the server OS from the server OS or may upload information stored by the electronic device 13 itself to the server OS, i.e. in the second case, without affecting the operations that can be performed between the electronic device 13 and the server OS.
However, in the process of controlling the server 11, it is necessary to separately connect the network interface of the BMC and the network interface of the server OS, which is troublesome.
Based on this, the embodiment of the present application provides a data transmission method for the BMC, which is described below.
Referring to fig. 2, a signaling diagram of a data transmission method of a BMC according to an embodiment of the present disclosure is shown, where the method includes the following steps S201 to S205.
Step S201: the electronic device 12 sends a first request to the BMC112 via the network interface 113.
For example, the electronic device 12 may display a remote access interface through which the destination address of the first request may be obtained.
Illustratively, the electronic device 12 is installed with a remote access application, and the electronic device 12 may obtain the destination address of the first request through a remote access interface exposed by the remote access application.
Illustratively, the remote access application may be: a FinaLShell application, a button application, or an XShell application.
The remote access interface is described below with a specific example.
Fig. 3 is a schematic diagram illustrating an implementation manner of a remote access interface displayed for an electronic device according to an embodiment of the present application.
The interface shown in fig. 3 includes: a destination address 31 of the device to be connected is specified, which includes, for example, a port number and an IP address of the device to be connected.
Illustratively, the remote access interface may further include: a connection protocol type 32, wherein the connection protocol type 32 refers to a connection protocol type between the electronic device 12 and the device to which it is to be connected.
Exemplary, connection protocol types include, but are not limited to: RAW protocol, Telnet protocol, Rlogic protocol, SSH (secure Shell) protocol, and serial port protocol.
The user may enter the IP address of the BMC, such as 192.168.9.4, in the interface illustrated in fig. 3.
Illustratively, the Port number (Port) depends on the type of connection protocol used, the SSH protocol uses Port number 22 by default, the Telnet protocol uses Port number 23 by default, and the Rlogin protocol uses Port number 513 by default.
If the user clicks the "open" button in the interface shown in FIG. 3, electronic device 12 may obtain the destination address of the first request.
Illustratively, after obtaining the destination address of the first request, the BMC needs to be logged in based on the user name and the password.
It should be noted that fig. 3 is only an example, and the embodiment of the present application does not limit the content included in the remote access interface and the presentation form of each content.
For example, each time the electronic device 12 sends the first request to the BMC, the destination address needs to be set in the manner shown in fig. 3; for example, after electronic device 12 sets the destination address once, the destination addresses of the requests sent by subsequent electronic devices 12 are all the same as the last set destination address, and there is no need to repeat the setting.
For example, in this embodiment of the application, the destination address carried by the first request includes an internet protocol IP address of the BMC and a port number of the first port.
In an optional implementation, the first request includes an operating instruction for the server OS, the operating instruction including at least one of an operating instruction to download information stored by the server operating system OS and an operating instruction to upload information stored by the electronic device to the server OS.
For example, the electronic device may include an input device that: at least one of a mouse, a keyboard, a touch screen, and a voice device, and taking an input device as a mouse as an example, a manner of determining information to be uploaded or downloaded is described below.
For example, an Action of mouse buttons may be set in the button application to determine the way in which the mouse selects information to be uploaded or downloaded. The information to be transmitted can be selected by directly dragging the information to be transmitted by a left mouse button, and by dragging the beginning of an area to be selected by a single mouse button, dragging the information to be transmitted to the end expected to be selected by a scroll bar, and clicking the information in the middle of the mouse.
For example, if the selected information is information stored by the server OS exposed by the electronic device, the PSCP command may be used to generate an operation instruction for downloading the information stored by the server operating system OS (i.e., the selected information).
For example, if the selected information is information stored in the electronic device itself, the PSFTP command may be used to generate an operation instruction for uploading the information stored in the electronic device (i.e., the selected information) to the server OS.
Illustratively, the Plink command line tool may also be utilized to generate operational instructions for the server OS.
For example, the operating instructions for the server OS may also include, but are not limited to: the method comprises the steps of obtaining operation attribute parameters of a server OS, controlling an operation mode of the server OS, changing an operating system type of the server OS, and controlling the server OS to send corresponding interface information to the electronic equipment so that the electronic equipment can display at least one of corresponding interfaces.
Illustratively, the operational attribute parameters of the server OS include, but are not limited to: temperature, length of time of operation, number of loads.
Step S202: the BMC112 receives the first request, and obtains configuration information corresponding to the first port from configuration information corresponding to at least one preset port.
Illustratively, one network interface corresponds to a plurality of virtual ports, and illustratively, the network interface corresponds to 6553 ports.
Illustratively, the first port, the second port, the third port, the fourth port, the fifth port and the sixth port mentioned in the embodiments of the present application are all virtual ports.
Illustratively, since the destination address of the first request is the first interface of the BMC, the BMC112 receives the first information through the first interface.
Step S203: if the configuration information corresponding to the first port includes a target IP address of the server OS and a port number of a second port of the server OS, the BMC112 sends a first request to the second port of the server OS 111 having the target IP address.
And the IP address of the BMC, the target IP address and the IP address of the electronic equipment are different.
For example, if the configuration information corresponding to the first port does not include the target IP address of the server OS and the port number of the second port of the server OS, the corresponding operation may be executed according to the configuration information corresponding to the first port, and the BMC performs the processing by itself in fig. 2 as an example.
Illustratively, if the OS type of the server OS is Windows, the port number of the second port is 3389, and if the OS type of the server OS is Linux, the port number of the second port is 22.
In this embodiment, after receiving the first request, the BMC112 may determine whether the first request is processed by itself or whether the electronic device 12 merely uses itself as a data forwarding medium and needs to forward the first request to the server OS. If the configuration information corresponding to the first port includes the destination IP address of the server OS and the port number of the second port of the server OS, it indicates that the electronic device 12 only uses itself as a data forwarding medium, so the BMC forwards the first request to the server OS.
In this embodiment of the application, if the electronic device 12 needs to communicate with the server OS, when the destination address is set in the electronic device 12, the port number included in the destination address may be the port number of the first port, that is, the corresponding configuration information includes the destination IP address of the server OS and the port number of the second port of the server OS.
In the embodiment of the present disclosure, the electronic device 12 logs in the BMC based on the IP address of the BMC and the first port, instead of logging in the Web interface of the BMC, the BMC is regarded as a "network cable", which is different from the related art that the IP address based on the BMC112 logs in the BMC through the corresponding port, so that the electronic device 12 can display the Web page of the BMC.
For example, if the user needs to log in the Web interface of the BMC, the BMC may be logged in based on the IP address of the BMC and a port corresponding to the Web interface of the BMC, so that the electronic device 12 may display a Web page of the BMC.
Step S204: server OS 111 receives the first request, and obtains response information in response to the first request.
In the data transmission method of the BMC according to the embodiment of the application, an electronic device is connected to the BMC through a network interface of the BMC, the electronic device may operate the BMC, and if the electronic device needs to operate a server OS, the electronic device does not need to disconnect a physical connection with the network interface, the electronic device may be connected to the server OS through the network interface of the BMC and the BMC, the BMC plays a role of a data forwarding medium between the electronic device and the server OS, and in order to implement the BMC function, the electronic device may send a first request to the BMC, a destination address of the first request includes an internet protocol IP address of the BMC and a port number of a first port, the BMC obtains configuration information corresponding to the first port from configuration information corresponding to at least one preset port, and if the configuration information corresponding to the first port includes a target IP address of the server OS and a port number of a second port of the server OS, it is noted that the electronic device needs the BMC to forward the first request to the server OS, and does not need the BMC to process the first request, and since the BMC only functions as a data forwarding medium, the electronic device is equivalent to the electronic device being directly connected to the server OS through a network interface, that is, in this embodiment, the operation that can be implemented between the electronic device 13 and the server OS in the second case can be implemented between the electronic device and the server OS. In the embodiment of the application, the BMC is used as a data forwarding medium, so that the operation which can be realized between the electronic device and the server OS is not influenced, the server OS and the BMC do not need to be connected for operation respectively, and the operation is simple and convenient.
In an alternative implementation manner, the electronic device 12 in the embodiment of the present application may log in to a web page of the BMC, and the specific process includes the following steps a1 to a 5.
Step A1: receiving a second request sent by an electronic device connected with a network interface of the BMC through a third port, wherein a destination address of the second request comprises an IP address of the BMC and a port number of the third port, and the second request comprises one of a request for logging in a global area network (WWAN) Web page of the BMC and an operation instruction which is input in the Web page and aims at a server (OS).
Step A2: and acquiring configuration information corresponding to a third port from configuration information corresponding to at least one preset port.
Step A3: and if the configuration information corresponding to the third port represents that the BMC responds to the second request received by the third port, obtaining response information aiming at the second request from the server OS through a communication bus, wherein the server OS is connected with the BMC through the communication bus.
For example, if the second request is a request for logging in a Web page of a global wide area network of the BMC, the response information of the server OS to the second request is interface information of the server OS.
For example, if the operating system of the server OS is Windows, the interface information is interface information corresponding to the user interaction interface, and if the operating system of the server OS is Linux, the interface information is interface information corresponding to the text command line.
For example, if the second request is an operation instruction for the server OS input on the Web page, the response information of the second request is response information of the server OS for the operation instruction.
Step A4: and displaying the response information on the Web page.
Illustratively, the response information includes a position where each content included in the server OS is displayed on the Web page, a size of the display, a color of the display, and other preset formats.
Illustratively, the content contained by the server OS may be presented in a preset format in the Web page.
Step A5: and controlling the electronic equipment to display the Web page.
In the embodiment of the application, the electronic device can log in the Web page of the BMC.
In summary, in the embodiment of the present application, there are at least two ways for the electronic device to log in the BMC, and the first login way is: logging in the BMC through the IP address of the BMC and the first port, wherein the BMC has a function of serving as a data forwarding medium; the second login mode is as follows: and logging in the BMC through the IP address of the BMC and the second port, and at the moment, logging in the Web page of the BMC, wherein the BMC has the function of a display card.
The following describes in detail the data transmission process between the electronic device, the BMC, and the server OS in conjunction with the first login method. The step of sending the first request to the second port of the server OS having the target IP address if the configuration information corresponding to the first port includes the target IP address of the server OS and the port number of the second port of the server OS includes the following steps B1 to B2.
Step B1: and if the configuration information corresponding to the first port comprises the target IP address of the server OS and the port number of the second port of the server OS, determining a fourth port and a fifth port from the plurality of ports in the idle state.
For example, when the BMC interacts with the server OS, the BMC may determine a port (i.e., the fourth port) for sending data to the server OS and a port (i.e., the fifth port) for receiving data fed back by the server OS.
Since the BMC has set the first request to be sent to the server OS through the fourth port of the BMC and receives the response information of the server OS to the first request through the fifth port, the BMC can know that the response information is the response information to the first request after receiving the response information fed back by the server OS through the fifth interface.
Step B2: sending the port number of the fifth port and the first request to a second port of the server OS with the target IP address through the fourth port, wherein the fifth port is used for receiving response information of the server OS for the first request.
In this embodiment, in the process of sending the first request to the second port of the server OS, the port number of the fifth port of the BMC is also sent to the server OS to notify the server OS that the response information corresponding to the first request is sent to the fifth port of the BMC when the server OS feeds back the response information to the BMC.
In an alternative implementation manner, the data transmission method of the baseboard management controller BMC further includes the following steps B3 to B4.
Step B3: receiving, by the fifth port, response information for the first request sent by the server OS, where a destination address of the response information for the first request includes an IP address of the BMC and a port number of the fifth port.
Step B4: and sending response information of the first request to the electronic device through a sixth port, wherein the sixth port is a port which is determined by the BMC from at least one port in an idle state after receiving the first request and is used for sending the response information aiming at the first request to the electronic device.
Illustratively, the BMC already "knows" that the response message received through the fifth port is a response message for the first request, and therefore can send to the electronic device through the sixth port.
The method is described in detail in the embodiments disclosed in the present application, and the method of the present application can be implemented by using various types of apparatuses, so that various apparatuses are also disclosed in the present application, and specific embodiments are given below for detailed description.
As shown in fig. 4, a structure diagram of a BMC according to an embodiment of the present disclosure is shown, where the BMC includes: a receiving module 41, an obtaining module 42 and a sending module 43, wherein:
a receiving module 41, configured to receive, through a first interface included in the receiving module, a first request sent by an electronic device connected to a network interface of the BMC, where a destination address of the first request includes an internet protocol IP address of the BMC and a port number of the first port, the first request includes an operation instruction for the server OS, and the operation instruction includes at least one of an operation instruction for downloading information stored by the server OS and an operation instruction for uploading the information stored by the electronic device to the server OS;
an obtaining module 42, configured to obtain configuration information corresponding to the first port from configuration information corresponding to at least one preset port;
a sending module 43, configured to send the first request to the second port of the server OS having the target IP address if the configuration information corresponding to the first port includes the target IP address of the server OS and a port number of the second port of the server OS;
and the IP address of the BMC, the target IP address and the IP address of the electronic equipment are different.
In an optional implementation manner, the receiving module is further configured to receive, through a third port included in the receiving module, a second request sent by an electronic device connected to a network interface of the BMC, where a destination address of the second request includes an IP address of the BMC and a port number of the third port, and the second request includes one of a request to log in a global wide area network Web page of the BMC and an operation instruction input on the Web page for a server OS; the baseboard management controller BMC further includes: the configuration information acquisition module is used for acquiring configuration information corresponding to a third port from configuration information corresponding to at least one preset port; a response information obtaining module, configured to obtain, if the configuration information corresponding to the third port indicates that the BMC responds to the second request received by the third port, response information for the second request from the server OS through a communication bus, where the server OS is connected to the BMC through the communication bus; the layout module is used for displaying the response information on the Web page; and the control module is used for controlling the electronic equipment to display the Web page.
In an optional implementation manner, the sending module 43 specifically includes:
a determining unit, configured to determine a fourth port and a fifth port from a plurality of ports in an idle state if configuration information corresponding to the first port includes a target IP address of the server OS and a port number of a second port of the server OS;
the sending module is further configured to send, through the fourth port included in the sending module, the port number of the fifth port and the first request to the second port of the server OS having the target IP address, where the fifth port is configured to receive response information of the server OS for the first request.
In an alternative implementation form of the method,
a receiving module, further configured to receive, through the fifth port included in the receiving module, response information sent by the server OS for the first request, where a destination address of the response information of the first request includes an IP address of the BMC and a port number of the fifth port;
the sending module is further configured to send the response information to the electronic device through a sixth port included in the sending module, where the sixth port is a port determined by the BMC from at least one port in an idle state after receiving the first request and used for sending the response information for the first request to the electronic device.
As shown in fig. 5, in order to provide another structure diagram of the baseboard management controller BMC according to the embodiment of the present application, the baseboard management controller BMC includes:
a first interface 51, configured to receive a first request sent by an electronic device connected to a network interface of the BMC, where a destination address of the first request includes an internet protocol IP address of the BMC and a port number of the first port, and the first request includes an operation instruction for the server OS, where the operation instruction includes at least one of an operation instruction for downloading information stored by the server operating system OS and an operation instruction for uploading information stored by the electronic device to the server OS;
a memory 52 for storing programs;
a processor 53 configured to execute the program, where the program is specifically configured to:
after the first interface receives the first request, configuration information corresponding to the first port is obtained from configuration information corresponding to at least one preset port;
if the configuration information corresponding to the first port comprises a target IP address of the server OS and a port number of a second port of the server OS, sending the first request to the second port of the server OS with the target IP address;
and the IP address of the BMC, the target IP address and the IP address of the electronic equipment are different.
For example, the memory 52 may be used to store software programs and modules, and the processor 53 executes various functional applications and data processing of the BMC by operating the software programs and modules stored in the memory 52. The memory 52 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the BMC (for example, preset configuration information corresponding to at least one port), and the like. Further, the memory 52 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Illustratively, the processor 53 is a control center of the BMC, and is connected to various parts of the overall BMC by various interfaces and lines, and performs various functions of the BMC and processes data by running or executing software programs and/or modules stored in the memory 52 and calling data stored in the memory 52, thereby monitoring the overall BMC. Alternatively, processor 53 may include one or more processing units; preferably, the processor 53 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 53.
The processor 53 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention.
The BMC may further include a communication bus 54, wherein the memory 52, the processor 53 and the first interface 51 are communicated with each other via the communication bus 54.
In an optional implementation manner, an embodiment of the present application further provides a server, where the server includes: a network interface for connecting with an electronic device; the baseboard management controller BMC is connected with the network interface and is used for executing the data transmission method of any one of the baseboard management controllers BMC; and a server Operating System (OS) connected to the BMC.
In an optional implementation manner, an embodiment of the present application further provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements each step in the data transmission method of the baseboard management controller BMC according to any one of the above-mentioned embodiments.
In an exemplary embodiment, the disclosed embodiments also provide a computer program product comprising one or more instructions that can be executed by the processor 53 of the BMC to perform the method described above.
It should be noted that when the instructions in the readable storage medium or one or more instructions in the computer program product are executed by the processor 53, the processes of the method embodiments are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
Note that the features described in the embodiments in the present specification may be replaced with or combined with each other. For the device or system type embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is further noted that, herein, relational terms such as first and second, and the like may be 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A data transmission method of a Baseboard Management Controller (BMC) comprises the following steps:
receiving a first request sent by an electronic device connected with a network interface of the BMC through a first port, wherein a destination address of the first request comprises an Internet Protocol (IP) address of the BMC and a port number of the first port, the first request comprises an operation instruction for a server Operating System (OS), and the operation instruction comprises at least one of an operation instruction for downloading information stored by the server Operating System (OS) and an operation instruction for uploading the information stored by the electronic device to the server Operating System (OS);
obtaining configuration information corresponding to the first port from configuration information corresponding to at least one preset port;
if the configuration information corresponding to the first port comprises a target IP address of the server operating system OS and a port number of a second port of the server operating system OS, sending the first request to the second port of the server operating system OS with the target IP address;
and the IP address of the BMC, the target IP address and the IP address of the electronic equipment are different.
2. The method of claim 1, further comprising:
receiving a second request sent by an electronic device connected with a network interface of the BMC through a third port, wherein a destination address of the second request comprises an IP address of the BMC and a port number of the third port, and the second request comprises one of a request for logging in a global wide area network (WWAN) Web page of the BMC and an operation instruction input in the Web page and aiming at a server Operating System (OS);
acquiring configuration information corresponding to a third port from configuration information corresponding to at least one preset port;
if the configuration information corresponding to the third port represents that the BMC responds to the second request received by the third port, response information aiming at the second request is obtained from the server Operating System (OS) through a communication bus, and the server Operating System (OS) is connected with the BMC through the communication bus;
displaying the response information on the Web page;
and controlling the electronic equipment to display the Web page.
3. The method of claim 1 or 2, wherein if the configuration information corresponding to the first port includes a target IP address of the server operating system OS and a port number of a second port of the server operating system OS, the step of sending the first request to the second port of the server operating system OS having the target IP address includes:
if the configuration information corresponding to the first port includes a target IP address of the server operating system OS and a port number of a second port of the server operating system OS, determining a fourth port and a fifth port from a plurality of ports in an idle state;
sending the port number of the fifth port and the first request to a second port of the server operating system OS with the target IP address through the fourth port, wherein the fifth port is used for receiving response information of the server operating system OS for the first request.
4. The method of claim 3, further comprising:
receiving response information aiming at the first request sent by the server operating system OS through the fifth port, wherein the destination address of the response information of the first request comprises an IP address of the BMC and a port number of the fifth port;
and sending response information of the first request to the electronic device through a sixth port, wherein the sixth port is a port which is determined by the BMC from at least one port in an idle state after receiving the first request and is used for sending the response information aiming at the first request to the electronic device.
5. The baseboard management controller BMC of claim 1, 2, or 4, wherein the second port is a 22 port, a 3389 port, or a virtual port; and/or the first port is a virtual port.
6. The method of claim 2, wherein the third port is a virtual port.
7. A baseboard management controller, BMC, comprising:
a receiving module, configured to receive, through a first port included in the receiving module, a first request sent by an electronic device connected to a network interface of the BMC, where a destination address of the first request includes an internet protocol IP address of the BMC and a port number of the first port, the first request includes an operation instruction for a server operating system OS, and the operation instruction includes at least one of an operation instruction for downloading information stored by the server operating system OS and an operation instruction for uploading the information stored by the electronic device to the server operating system OS;
the acquisition module is used for acquiring configuration information corresponding to the first port from configuration information corresponding to at least one preset port;
a sending module, configured to send the first request to a second port of the server operating system OS having a target IP address if configuration information corresponding to the first port includes the target IP address of the server operating system OS and a port number of the second port of the server operating system OS;
and the IP address of the BMC, the target IP address and the IP address of the electronic equipment are different.
8. The baseboard management controller BMC of claim 7, wherein,
the receiving module is further configured to receive, through a third port included in the receiving module, a second request sent by an electronic device connected to a network interface of the BMC, where a destination address of the second request includes an IP address of the BMC and a port number of the third port, and the second request includes one of a request for logging in a global wide area network Web page of the BMC and an operation instruction input on the Web page and directed to a server operating system OS;
the baseboard management controller BMC further comprises:
the configuration information acquisition module is used for acquiring configuration information corresponding to a third port from configuration information corresponding to at least one preset port;
a response information obtaining module, configured to obtain, if the configuration information corresponding to the third port indicates that the BMC responds to the second request received by the third port, response information for the second request from the server operating system OS through a communication bus, where the server operating system OS is connected to the BMC through the communication bus;
the layout module is used for displaying the response information on the Web page;
and the control module is used for controlling the electronic equipment to display the Web page.
9. A baseboard management controller, BMC, comprising:
a first port, configured to receive a first request sent by an electronic device connected to a network interface of the BMC, where a destination address of the first request includes an internet protocol IP address of the BMC and a port number of the first port, and the first request includes an operation instruction for a server operating system OS, where the operation instruction includes at least one of an operation instruction for downloading information stored by the server operating system OS and an operation instruction for uploading the information stored by the electronic device to the server operating system OS;
a memory for storing a program;
a processor configured to execute the program, the program specifically configured to:
after the first port receives the first request, configuration information corresponding to the first port is obtained from configuration information corresponding to at least one preset port;
if the configuration information corresponding to the first port comprises a target IP address of the server operating system OS and a port number of a second port of the server operating system OS, sending the first request to the second port of the server operating system OS with the target IP address;
and the IP address of the BMC, the target IP address and the IP address of the electronic equipment are different.
10. A server, comprising:
a network interface for connecting with an electronic device;
a baseboard management controller BMC coupled to the network interface to perform the method of data transfer of the baseboard management controller BMC of any of claims 1-6;
and a server Operating System (OS) connected to the BMC.
11. A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of claims 1 to 6 in a baseboard management controller, BMC, data transmission.
CN202110002915.6A 2021-01-04 2021-01-04 Data transmission method of baseboard management controller, BMC, server and medium Active CN112838952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110002915.6A CN112838952B (en) 2021-01-04 2021-01-04 Data transmission method of baseboard management controller, BMC, server and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110002915.6A CN112838952B (en) 2021-01-04 2021-01-04 Data transmission method of baseboard management controller, BMC, server and medium

Publications (2)

Publication Number Publication Date
CN112838952A CN112838952A (en) 2021-05-25
CN112838952B true CN112838952B (en) 2022-05-31

Family

ID=75927391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110002915.6A Active CN112838952B (en) 2021-01-04 2021-01-04 Data transmission method of baseboard management controller, BMC, server and medium

Country Status (1)

Country Link
CN (1) CN112838952B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794786B (en) * 2021-08-25 2023-12-26 新华三大数据技术有限公司 Management equipment and service system
CN115080479B (en) * 2022-06-14 2024-03-26 阿里巴巴(中国)有限公司 Transmission method, server, device, bare metal instance and baseboard management controller
CN116599842B (en) * 2023-07-17 2023-09-19 北京中科睿信科技有限公司 Multi-module array system management method, equipment and medium
CN117395087B (en) * 2023-12-12 2024-02-20 湖南博盛芯微电子科技有限公司 BMC implementation method and system based on domestic processor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193768A (en) * 2019-11-25 2020-05-22 腾讯科技(深圳)有限公司 Network data processing method and device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210601A1 (en) * 2008-02-20 2009-08-20 Broadcom Corporation Systems and methods for providing a virtual network interface connection ("nic") with the baseboard management controller ("bmc")
CN108984466A (en) * 2018-06-29 2018-12-11 深圳市同泰怡信息技术有限公司 The exchange method of BMC and server OS, system
CN109150724B (en) * 2018-07-02 2021-06-29 新华三信息技术有限公司 Communication method and network card
US10884759B2 (en) * 2018-10-30 2021-01-05 Hewlett Packard Enterprise Development Lp Remote deployment of operating systems

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193768A (en) * 2019-11-25 2020-05-22 腾讯科技(深圳)有限公司 Network data processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112838952A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN112838952B (en) Data transmission method of baseboard management controller, BMC, server and medium
JP6306731B2 (en) Method, apparatus, and system for pushing an application program, and device
CN111343048B (en) Pressure testing method and device, computer device and storage medium
CN107274222B (en) Advertisement putting method and device
CN105389175A (en) Application program sharing method and mobile terminal
WO2016058133A1 (en) Software upgrading method and device
CN111629016A (en) Control method, device and system
US20120030746A1 (en) Devices and Methods for Using HTTP Encapsulation to Access Web Resources
TWI667574B (en) Method for accessing a web server, and associated apparatus
CN104462367A (en) Browser of computing device and thumbnail display method of browser
US20070199065A1 (en) Information processing system
CA2632510A1 (en) A method, system and devices for communicating between an internet browser and an electronic device
EP3979071A1 (en) Method, user equipment, and application server for downloading application
US8862683B2 (en) KVM switch and KVM system
US11265807B2 (en) Method for network sharing on a terminal, apparatus, air conditioner and storage medium
CN114285668B (en) Gate testing method and device, storage medium and electronic equipment
CN116132421A (en) Remote desktop connection method, system, device, computer equipment and storage medium
CN115599669A (en) Debugging method and device of microservice, electronic equipment and readable storage medium
CN115421841A (en) Notification processing method, terminal device, server and computer storage medium
CN112565458A (en) Platform remote control method and device, storage medium and electronic equipment
US9552078B2 (en) Safety navigation device and an executing method thereof
CN101005421A (en) Telnet control method for realizing multiple network system by single network port
US20190230146A1 (en) Communicating with a remote service through a hypertext transfer protocol (http) session
US11711239B2 (en) Communication system, VPN termination device, and storage medium
KR20120016744A (en) Personal computer system for mobile termial user and operating method thereof

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
GR01 Patent grant
GR01 Patent grant