CN104348645A - Server and data transmission method of server - Google Patents
Server and data transmission method of server Download PDFInfo
- Publication number
- CN104348645A CN104348645A CN201310328906.1A CN201310328906A CN104348645A CN 104348645 A CN104348645 A CN 104348645A CN 201310328906 A CN201310328906 A CN 201310328906A CN 104348645 A CN104348645 A CN 104348645A
- Authority
- CN
- China
- Prior art keywords
- server
- management controller
- data
- baseboard management
- microsoft loopback
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Small-Scale Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种服务器管理数据的方法,尤其涉及一种服务器和利用该服务器传送数据的方法。The invention relates to a method for managing data by a server, in particular to a server and a method for transmitting data by using the server.
背景技术Background technique
服务器一般有两个网络接口,其中,一个网络接口为系统数据网络接口,用于服务器与外接设备的数据通信。另一个为网络接口为管理接口,用于服务器的健康状态的监控及远端电源管理等。系统数据网络接口在运行时通常会遇到网络堵塞,或由于交换机出现故障而使得数据无法传送。The server generally has two network interfaces, one of which is a system data network interface for data communication between the server and external devices. The other is the network interface, which is the management interface, which is used for server health monitoring and remote power management. The system data network interface usually encounters network congestion during operation, or data cannot be transmitted due to a switch failure.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种服务器传送数据的方法,可以在服务器的系统数据网络接口无法工作时利用基板管理控制器传送数据。In view of the above, it is necessary to provide a method for the server to transmit data, which can use the baseboard management controller to transmit data when the system data network interface of the server fails to work.
还有必要提供一种服务器,可以在服务器的系统数据网络接口无法工作时利用基板管理控制器传送数据。It is also necessary to provide a server that can use the baseboard management controller to transmit data when the system data network interface of the server fails to work.
一种服务器接收数据的方法,该方法包括:建立步骤,在服务器中建立虚拟网卡和虚拟网卡驱动;获取步骤,当远端网络设备发送数据给虚拟网卡时,基板管理控制器根据虚拟网卡的IP地址获取该IP地址对应的MAC地址;调用步骤,所述虚拟网卡驱动调用服务器的智能平台管理接口,该智能平台管理接口将所述虚拟网卡接收的数据传送给基板管理控制器;及发送步骤,所述基板管理控制器将所述数据传送至基板管理控制器网卡,该基板管理控制器网卡将数据发送给与基板管理控制器连接的交换机。A method for receiving data by a server, the method comprising: establishing a virtual network card and a virtual network card driver in the server; obtaining a step, when a remote network device sends data to the virtual network card, the baseboard management controller according to the IP address of the virtual network card The address obtains the MAC address corresponding to the IP address; the calling step, the virtual network card driver calls the intelligent platform management interface of the server, and the intelligent platform management interface transmits the data received by the virtual network card to the baseboard management controller; and the sending step, The baseboard management controller transmits the data to the network card of the baseboard management controller, and the network card of the baseboard management controller sends the data to a switch connected to the baseboard management controller.
一种服务器发送数据的方法,该方法包括:建立步骤,在服务器中建立虚拟网卡和虚拟网卡驱动;中断步骤,当交换机发送数据包至基板管理控制器且所述数据包对应的MAC地址为所述虚拟网卡的MAC地址时,所述基板管理控制器发送系统中断信号给服务器的BIOS,该BIOS根据该系统中断信号产生中断请求;请求步骤,所述虚拟网卡驱动向服务器的智能平台管理接口驱动发送读取数据请求;读取步骤,所述智能平台管理接口驱动访问所述基板管理控制器,所述基板管理控制器将所述数据包传送给智能平台管理接口驱动;传送步骤,所述智能平台管理接口驱动将所述数据包传送给所述虚拟网卡。A method for a server to send data, the method comprising: an establishment step, establishing a virtual network card and a virtual network card driver in the server; an interruption step, when the switch sends a data packet to a baseboard management controller and the MAC address corresponding to the data packet is the When the MAC address of the virtual network card is described, the baseboard management controller sends a system interrupt signal to the BIOS of the server, and the BIOS generates an interrupt request according to the system interrupt signal; in the request step, the virtual network card is driven to the intelligent platform management interface of the server. sending a read data request; in the reading step, the intelligent platform management interface driver accesses the baseboard management controller, and the baseboard management controller transmits the data packet to the intelligent platform management interface driver; in the transmitting step, the intelligent The platform management interface driver transmits the data packet to the virtual network card.
一种服务器,该服务器包括智能平台管理接口,该服务器与远端网络设备和基板管理控制器连接,在该服务器中建立虚拟网卡和虚拟网卡驱动,当所述远端网络设备发送数据给所述虚拟网卡时,所述基板管理控制器根据虚拟网卡的IP地址获取该IP地址对应的MAC地址,所述虚拟网卡驱动调用所述智能平台管理接口,该智能平台管理接口将所述虚拟网卡接收的数据传送给基板管理控制器,该基板管理控制器将所述数据传送至基板管理控制器网卡,该基板管理控制器网卡将数据发送给与基板管理控制器连接的交换机。A server, the server includes an intelligent platform management interface, the server is connected to a remote network device and a baseboard management controller, a virtual network card and a virtual network card driver are established in the server, when the remote network device sends data to the When using a virtual network card, the baseboard management controller obtains the MAC address corresponding to the IP address according to the IP address of the virtual network card, and the virtual network card driver calls the intelligent platform management interface, and the intelligent platform management interface receives the information received by the virtual network card. The data is transmitted to the baseboard management controller, and the baseboard management controller transmits the data to the network card of the baseboard management controller, and the network card of the baseboard management controller sends the data to a switch connected to the baseboard management controller.
一种服务器,该服务器包括智能平台管理接口及BIOS,该服务器与基板管理控制器连接,在服务器中建立虚拟网卡和虚拟网卡驱动,当与所述基板管理控制器连接的交换机发送数据包至基板管理控制器且所述数据包对应的MAC地址为所述虚拟网卡的MAC地址时,所述基板管理控制器发送系统中断信号给所述BIOS,该BIOS根据该系统中断信号产生中断请求,所述虚拟网卡驱动向服务器的智能平台管理接口驱动发送读取数据请求,所述智能平台管理接口驱动访问所述基板管理控制器,该基板管理控制器将所述数据包传送给智能平台管理接口驱动,该智能平台管理接口驱动将所述数据包传送给所述虚拟网卡。A server, the server includes an intelligent platform management interface and BIOS, the server is connected to a baseboard management controller, a virtual network card and a virtual network card driver are established in the server, when a switch connected to the baseboard management controller sends a data packet to the baseboard When the management controller and the MAC address corresponding to the data packet is the MAC address of the virtual network card, the baseboard management controller sends a system interrupt signal to the BIOS, and the BIOS generates an interrupt request according to the system interrupt signal, and the The virtual network card driver sends a read data request to the intelligent platform management interface driver of the server, the intelligent platform management interface driver accesses the baseboard management controller, and the baseboard management controller transmits the data packet to the intelligent platform management interface driver, The intelligent platform management interface driver transmits the data packet to the virtual network card.
相较于现有技术,本发明在服务器中建立虚拟网卡和虚拟网卡驱动,并利用基板管理控制器与交换机通信,避免因为服务器的网络问题使得数据不能传输。Compared with the prior art, the present invention establishes a virtual network card and a virtual network card driver in the server, and utilizes a baseboard management controller to communicate with a switch, so as to avoid data transmission failure due to network problems of the server.
附图说明Description of drawings
图1是本发明服务器传送数据的方法较佳实施例的运行环境图。FIG. 1 is an operating environment diagram of a preferred embodiment of the method for transmitting data by a server in the present invention.
图2是本发明服务器传送数据的方法较佳实施例的作业流程图。FIG. 2 is a flow chart of a preferred embodiment of the method for transmitting data by a server in the present invention.
图3是本发明服务器传送数据的方法另一较佳实施例的作业流程图。FIG. 3 is a flow chart of another preferred embodiment of the method for transmitting data by a server in the present invention.
主要元件符号说明Description of main component symbols
如下具体实施方式将结合上述附图进一步说明本发明。The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.
具体实施方式Detailed ways
如图1所示,是本发明服务器传送数据的方法较佳实施例的运行环境图。该服务器传送数据的方法运行于服务器1和基板管理控制器(baseboard management controller,BMC)2(以下简称为:BMC2)。As shown in FIG. 1 , it is an operating environment diagram of a preferred embodiment of the method for transmitting data by a server in the present invention. The method for the server to transmit data runs on the server 1 and the baseboard management controller (baseboard management controller, BMC) 2 (hereinafter referred to as: BMC2).
所述服务器1包括:智能平台管理接口(intelligent platformmanagement interface,IPMI)驱动11(以下简称为:IPMI驱动11)、基本输入输出系统(basic input output system,BIOS)12(以下简称为:BIOS12)及高级配置和电源管理接口(advanced configuration andpower management interface,ACPI)驱动13(以下简称为:ACPI驱动13)。The server 1 includes: an intelligent platform management interface (intelligent platform management interface, IPMI) driver 11 (hereinafter referred to as: IPMI driver 11), a basic input output system (basic input output system, BIOS) 12 (hereinafter referred to as: BIOS12) and Advanced configuration and power management interface (advanced configuration and power management interface, ACPI) driver 13 (hereinafter referred to as: ACPI driver 13).
所述BMC2包括BMC网卡20,所述BMC2通过该网卡20与交换机3进行数据交换。The BMC2 includes a BMC network card 20 through which the BMC2 exchanges data with the switch 3 .
所述服务器1接收远端网络设备4发送的数据,并将该接收到的数据通过所述IPMI驱动11发送给BMC2,该BMC2利用所述BMC网卡20将该数据传送给交换机3。当所述交换机3需要通过BMC2发送数据至服务器1时,所述服务器1通过所述BIOS12、ACPI驱动13及IPMI驱动11从BMC2获取到所述数据,并将该数据发送到远端网络设备4。The server 1 receives the data sent by the remote network device 4, and sends the received data to the BMC2 through the IPMI driver 11, and the BMC2 uses the BMC network card 20 to transmit the data to the switch 3. When the switch 3 needs to send data to the server 1 through the BMC2, the server 1 obtains the data from the BMC2 through the BIOS 12, the ACPI driver 13 and the IPMI driver 11, and sends the data to the remote network device 4 .
如图2所示,是本发明服务器传送数据的方法较佳实施例的作业流程图。As shown in FIG. 2 , it is a flow chart of a preferred embodiment of the method for transmitting data by a server in the present invention.
步骤S30,在服务器1中建立虚拟网卡14和虚拟网卡驱动15(如图1所示),该虚拟网卡14通过IPMI驱动11与BMC2通信连接。所述虚拟网卡驱动15为所述虚拟网卡14分配一个MAC(media accesscontrol)地址,并将该虚拟网卡14的MAC地址通过IPMI驱动11发送给BMC2。Step S30 , establishing a virtual network card 14 and a virtual network card driver 15 (as shown in FIG. 1 ) in the server 1 , and the virtual network card 14 communicates with the BMC2 through the IPMI driver 11 . The virtual network card driver 15 distributes a MAC (media access control) address for the virtual network card 14, and sends the MAC address of the virtual network card 14 to the BMC2 through the IPMI driver 11.
步骤S31,当远端网络设备4通过TCP/IP协议发送数据给虚拟网卡14时,所述BMC2根据该虚拟网卡14的IP地址获取该IP地址对应的MAC地址。具体而言,所述虚拟网卡14通过IPMI驱动11发送地址解析协议(Address Resolution Protocol,ARP)请求到BMC2,该ARP请求中包括所述虚拟网卡14的IP地址。所述BMC2利用ARP协议解析所述ARP请求,将所述虚拟网卡14的IP地址转换为MAC地址。当BMC2获取到所述虚拟网卡14的IP地址对应的MAC地址时,所述远端网络设备4才可以将所述数据传送给BMC2。Step S31 , when the remote network device 4 sends data to the virtual network card 14 through the TCP/IP protocol, the BMC2 obtains the MAC address corresponding to the IP address according to the IP address of the virtual network card 14 . Specifically, the virtual network card 14 sends an Address Resolution Protocol (Address Resolution Protocol, ARP) request to the BMC2 through the IPMI driver 11, and the ARP request includes the IP address of the virtual network card 14. The BMC2 uses the ARP protocol to resolve the ARP request, and converts the IP address of the virtual network card 14 into a MAC address. When the BMC2 obtains the MAC address corresponding to the IP address of the virtual network card 14, the remote network device 4 can transmit the data to the BMC2.
步骤S32,所述虚拟网卡驱动15调用所述IPMI驱动11,该IPMI驱动11将所述虚拟网卡14接收的数据传送给BMC2。Step S32, the virtual network card driver 15 invokes the IPMI driver 11, and the IPMI driver 11 transmits the data received by the virtual network card 14 to the BMC2.
步骤S33,所述BMC2存储所述数据,并将该数据传送至BMC网卡20,该BMC网卡20将该数据发送给交换机3。Step S33 , the BMC2 stores the data, and transmits the data to the BMC network card 20 , and the BMC network card 20 sends the data to the switch 3 .
如图3所示,是本发明服务器传送数据的方法另一较佳实施例的作业流程图。As shown in FIG. 3 , it is a flow chart of another preferred embodiment of the method for transmitting data by a server in the present invention.
步骤S40,当BMC网卡20接收到交换机3发送的数据包时,所述BMC2判断该数据包中的MAC地址是否为所述虚拟网卡14的MAC地址。当所述数据包中的MAC地址不是所述虚拟网卡14的MAC地址时,执行步骤S41。当所述数据包中的MAC地址是所述虚拟网卡14的MAC地址时,执行步骤S42。Step S40 , when the BMC network card 20 receives the data packet sent by the switch 3 , the BMC2 judges whether the MAC address in the data packet is the MAC address of the virtual network card 14 . When the MAC address in the data packet is not the MAC address of the virtual network card 14, step S41 is performed. When the MAC address in the data packet is the MAC address of the virtual network card 14, step S42 is executed.
步骤S41,所述BMC2接收该数据包并处理该数据包,并结束流程。该数据包中的MAC地址不是所述虚拟网卡14的MAC地址,表示该数据包为交换机3传送给BMC2的数据包,该BMC2读取该数据包中的数据。Step S41, the BMC2 receives the data packet and processes the data packet, and ends the process. The MAC address in the data packet is not the MAC address of the virtual network card 14, indicating that the data packet is a data packet transmitted by the switch 3 to the BMC2, and the BMC2 reads the data in the data packet.
步骤S42,所述BMC2发送系统中断信号(system interrupt signal,SMI)给BIOS12,该BIOS12根据该SMI产生中断请求(interruptrequest,IRQ)。Step S42, the BMC2 sends a system interrupt signal (system interrupt signal, SMI) to the BIOS12, and the BIOS12 generates an interrupt request (interruptrequest, IRQ) according to the SMI.
步骤S43,所述ACPI驱动13获取所述中断请求,根据该中断请求生成一个请求事件(Q-event),并将该请求事件发送给所述虚拟网卡驱动15。所述请求事件中包括了该请求事件的内容,如:所述BMC2接收到交换机3发送的数据包,该数据包对应的MAC地址为所述虚拟网卡14的MAC地址。Step S43 , the ACPI driver 13 acquires the interrupt request, generates a request event (Q-event) according to the interrupt request, and sends the request event to the virtual network card driver 15 . The content of the request event is included in the request event, for example: the BMC2 receives the data packet sent by the switch 3 , and the MAC address corresponding to the data packet is the MAC address of the virtual network card 14 .
步骤S44,所述虚拟网卡驱动15接收到所述请求事件之后,向所述IPMI驱动11发送一个读取数据请求。Step S44 , after the virtual network card driver 15 receives the request event, it sends a data read request to the IPMI driver 11 .
步骤S45,所述IPMI驱动11访问所述BMC2,所述BMC2将所述数据包传送给IPMI驱动11。Step S45, the IPMI driver 11 accesses the BMC2, and the BMC2 transmits the data packet to the IPMI driver 11.
步骤S46,所述IPMI驱动11将所述数据包传送给所述虚拟网卡14。Step S46 , the IPMI driver 11 transmits the data packet to the virtual network card 14 .
步骤S47。所述所述虚拟网卡14将接收的数据包传送给远端网络设备4。Step S47. The virtual network card 14 transmits the received data packet to the remote network device 4 .
最后所应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be The scheme shall be modified or equivalently replaced without departing from the spirit and scope of the technical scheme of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310328906.1A CN104348645A (en) | 2013-07-31 | 2013-07-31 | Server and data transmission method of server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310328906.1A CN104348645A (en) | 2013-07-31 | 2013-07-31 | Server and data transmission method of server |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104348645A true CN104348645A (en) | 2015-02-11 |
Family
ID=52503523
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310328906.1A Pending CN104348645A (en) | 2013-07-31 | 2013-07-31 | Server and data transmission method of server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104348645A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106326063A (en) * | 2015-06-29 | 2017-01-11 | 联想(北京)有限公司 | Baseboard management control card and baseboard |
| CN107783920A (en) * | 2016-08-25 | 2018-03-09 | 联想企业解决方案(新加坡)有限公司 | System, method and computer program for communicating between a software driver and a baseboard management controller |
| CN108768730A (en) * | 2018-05-31 | 2018-11-06 | 北京百度网讯科技有限公司 | Method and apparatus for operating intelligent network adapter |
| CN111177053A (en) * | 2019-12-28 | 2020-05-19 | 山东英信计算机技术有限公司 | A data communication method, apparatus, system and computer-readable storage medium |
| CN112367183A (en) * | 2020-09-30 | 2021-02-12 | 新华三云计算技术有限公司 | Server maintenance method, device, equipment and machine readable storage medium |
-
2013
- 2013-07-31 CN CN201310328906.1A patent/CN104348645A/en active Pending
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106326063A (en) * | 2015-06-29 | 2017-01-11 | 联想(北京)有限公司 | Baseboard management control card and baseboard |
| CN106326063B (en) * | 2015-06-29 | 2019-02-05 | 联想(北京)有限公司 | A kind of substrate management control card and substrate |
| CN107783920A (en) * | 2016-08-25 | 2018-03-09 | 联想企业解决方案(新加坡)有限公司 | System, method and computer program for communicating between a software driver and a baseboard management controller |
| CN107783920B (en) * | 2016-08-25 | 2021-01-08 | 联想企业解决方案(新加坡)有限公司 | System, method and computer program for communicating between a software driver and a baseboard management controller |
| CN108768730A (en) * | 2018-05-31 | 2018-11-06 | 北京百度网讯科技有限公司 | Method and apparatus for operating intelligent network adapter |
| CN111177053A (en) * | 2019-12-28 | 2020-05-19 | 山东英信计算机技术有限公司 | A data communication method, apparatus, system and computer-readable storage medium |
| CN112367183A (en) * | 2020-09-30 | 2021-02-12 | 新华三云计算技术有限公司 | Server maintenance method, device, equipment and machine readable storage medium |
| CN112367183B (en) * | 2020-09-30 | 2022-07-12 | 新华三云计算技术有限公司 | A server maintenance method, apparatus, device and machine-readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10986171B2 (en) | Method for unified communication of server, baseboard management controller, and server | |
| CN101488884B (en) | Network multi-computer controller, data processing device and application method | |
| CN101527715B (en) | A server that controls multiple remote peripheral devices with the remote control function | |
| TWI321731B (en) | Device connection system and device connection method | |
| CN111656336B (en) | PCIE sending and receiving method, device, equipment and system | |
| US9129064B2 (en) | USB 3.0 link layer timer adjustment to extend distance | |
| CN104348645A (en) | Server and data transmission method of server | |
| CN102984237B (en) | A kind of data transmission system and method connecting based on socket | |
| US8155024B2 (en) | System and method for managing network connectivity of a CPE using a CMTS | |
| CN115514682B (en) | A data transmission method, device, equipment and storage medium | |
| US20090144479A1 (en) | Computer switcher and method for matching with a plurality of servers | |
| CN103905268B (en) | GRE chain circuit detecting methods, master control borad, device and communication guard system | |
| CN104102607A (en) | CAN (controlled area network) bus driving method and system based on VxWorks operating system environment | |
| CN104270452B (en) | A kind of tele-medicine data management system and its wireless network communication method | |
| JP2018510538A (en) | Network sharing method and apparatus | |
| JP5084782B2 (en) | Apparatus, method, and program for detecting a repeater | |
| US20150350014A1 (en) | Networking implementation using a converged high speed input/output fabric technology | |
| CN104683130A (en) | Method and device for configuring stack ports | |
| EP2439889A1 (en) | Method and system for realizing transmission of message between an extended processor and a switch chip | |
| US20040172473A1 (en) | Wireless modem simulation of a LAN card | |
| CN108880761A (en) | Server network card information obtains system | |
| TW201514716A (en) | Server and method for transferring data | |
| CN103973485A (en) | Operation and maintenance management system and method based on fixed ports | |
| US20130198548A1 (en) | Apparatus and method for saving power of usb device | |
| WO2014063543A1 (en) | Implementation method and device for virtual southbound interface and internet of things management platform |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| WD01 | Invention patent application deemed withdrawn after publication | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150211 |