CN114070841B - Server filling method, device, equipment and product - Google Patents

Server filling method, device, equipment and product Download PDF

Info

Publication number
CN114070841B
CN114070841B CN202111149693.7A CN202111149693A CN114070841B CN 114070841 B CN114070841 B CN 114070841B CN 202111149693 A CN202111149693 A CN 202111149693A CN 114070841 B CN114070841 B CN 114070841B
Authority
CN
China
Prior art keywords
server
pxe
filled
file
filling
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
CN202111149693.7A
Other languages
Chinese (zh)
Other versions
CN114070841A (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.)
Inspur Software Technology Co Ltd
Original Assignee
Inspur Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Software Technology Co Ltd filed Critical Inspur Software Technology Co Ltd
Priority to CN202111149693.7A priority Critical patent/CN114070841B/en
Publication of CN114070841A publication Critical patent/CN114070841A/en
Application granted granted Critical
Publication of CN114070841B publication Critical patent/CN114070841B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a server filling method, a device, equipment and a product, and relates to the technical field of communication, wherein the method comprises the following steps: acquiring a filling request of a server to be filled, and distributing an IP address and appointed PXE information for the server to be filled; the PXE information comprises a PXE file position and a PXE file name; the edge side provides a PXE guide file for the server to be filled in a TFTP mode according to the IP address and the PXE information and provides an operating system file for the server to be filled in an HTTP mode based on the filling request; and filling the server to be filled based on the PXE guide file and the operating system file. The invention provides technical support for filling of a large number of server operating systems, solves the problems of large workload of filling, maintenance and flexible deployment of machine positions of the operating systems in the production process of commercial servers, and improves the filling capacity.

Description

Server filling method, device, equipment and product
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a server filling method, device, equipment, and product.
Background
The Pre-boot execution environment (Pre-boot Execution Environment, PXE) is a network mode operated by a network start technology in Client/Server, the PXE supports a workstation to download an image from a remote Server through a network, and thus supports an operating system to be started through the network, during the start process, a terminal requests the Server to allocate an IP address, and then downloads a start software package to a local memory for execution by using a simple file transfer protocol (Trivial File Transfer Protocol, TFTP) or a multi-point simple file transfer protocol (Multicast Trivial File Transfer Protocol, MTFTP), and the start software package completes terminal basic software setting, thereby guiding installation of the terminal operating system.
TFTP, a protocol in the TCP/IP protocol family that is used for simple file transfer between clients and servers, provides a file transfer service that is not complex and does not cost much. TFTP is based on user datagram protocol (User Datagram Protocol, UDP) and uses a simple stop-and-wait protocol, where outgoing UDP packets must wait for the other party to answer or timeout before the next UDP transmission or retransmission can begin.
The filling method of the industrial operating system is mainly based on the PXE technology, a local area network is built, a commercial server (bare machine)) is accessed into the local area network through a network cable and a switch, and dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) service, TFTP service and other services are deployed in the local area network. The DHCP service allocates internet protocol (Internet Protocol, IP) addresses, TFTP service storage boot software, operating system images, etc. files for bare machine boot, providing TFTP download services for the bare machine. Because of different network port configuration requirements of various commercial servers (bare computers), the filling machine frame needs to provide three network cables of gigabit network cable, gigabit network cable and optical fiber for each machine position. After the system is filled to the upper scale, the problems are as follows: on the one hand, the network cable needs very much, and the interface is frequent to plug extremely fragile, and the fortune dimension cost is high, work load is big, the network cable is difficult to comb and is not pleasing to the eye enough. On the other hand, because the wiring is fixed, the filling machine frame is difficult to move, and the flexible production requirement cannot be met.
Disclosure of Invention
The invention provides a server filling method, device, equipment and product, which are used for solving the defects that the server filling maintenance cost is high and the flexible production requirement cannot be met in the prior art, providing technical support for filling of a large number of server operating systems, solving the problems of large operating system filling maintenance workload and difficult machine flexible deployment in the production process of commercial servers, and improving the filling capacity.
The invention provides a server filling method, which comprises the following steps:
acquiring a filling request of a server to be filled, and distributing an IP address and appointed PXE information for the server to be filled; the PXE information comprises a PXE file position and a PXE file name;
the edge side provides a PXE guide file for the server to be filled in a TFTP mode according to the IP address and the PXE information and provides an operating system file for the server to be filled in an HTTP mode based on the filling request;
and filling the server to be filled based on the PXE guide file and the operating system file.
According to the server filling method provided by the invention, the obtaining the filling request of the server to be filled, distributing the IP address and the appointed PXE information for the server to be filled, comprises the following steps:
and acquiring the filling request of the server to be filled by using the 5G Dongle as a server network card, and distributing the IP address and designating the PXE information for the server to be filled as a DHCP server.
According to the server filling method provided by the invention, the obtaining the filling request of the server to be filled, distributing the IP address and the appointed PXE information for the server to be filled, specifically comprises:
the server to be filled is based on 5G Dongle and accesses the edge side through the IP address and the PXE information.
According to the server filling method provided by the invention, the filling request of the server to be filled is obtained, the edge side is based on the filling request, and according to the IP address and the designated PXE information, a TFTP mode is adopted to provide the PXE guide file for the server to be filled, and an HTTP mode is adopted to provide the operating system file for the server to be filled, and the method specifically comprises the following steps:
the edge side obtains a first filling request and a second filling request in the filling requests; the first filling request is for obtaining a PXE guide file, the second filling request is for obtaining an operating system file, the PXE guide file comprises a PXE guide loader file and a configuration file, and the operating system file comprises a system kernel file and a system mirror file;
according to the IP address and the PXE information, the edge side provides a PXE guide file for the server to be filled in a TFTP mode based on the first filling request; and providing an operating system file for the server to be filled in an HTTP mode based on the second filling request.
According to the server filling method provided by the invention, the edge side provides the PXE guide file for the server to be filled in a TFTP mode based on the first filling request, and the method specifically comprises the following steps:
the resource block size of TFTP is set to 20480 and the buffer size is set to 40960.
According to the server filling method provided by the invention, the IP address and the PXE information are used for providing the PXE guide file for the server to be filled in a TFTP mode based on the first filling request by the edge side; based on the second filling request, providing an operating system file for the server to be filled in an HTTP mode, wherein the method specifically comprises the following steps:
the TCP/IP protocol stack adopted by the edge side is an open source protocol stack lwip.
The invention also provides a server filling device, which comprises:
the request module is used for acquiring a filling request of a server to be filled, distributing an IP address and appointed PXE information for the server to be filled; the PXE information comprises a PXE file position and a PXE file name;
the transmission module is used for providing a PXE guide file for the server to be filled in a TFTP mode according to the IP address and the PXE information and providing an operating system file for the server to be filled in an HTTP mode on the basis of the filling request at the edge side;
and the filling module is used for filling the server to be filled based on the PXE guide file and the operating system file.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any one of the server filling methods described above when executing the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a server filling method as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of a server filling method as described in any of the above.
The server filling method, device, equipment and product provided by the invention are based on technologies such as a 5G network and MEC, PXE, TFTP, HTTP, a server wireless filling operating system scheme which is convenient, rapid and flexible to deploy is provided, wireless and flexible production of server operating system filling is realized, technical support is provided for filling of a large number of server operating systems, the problems of large operating system filling and maintenance workload and difficult flexible deployment of machine positions in the commercial server production process are solved, and filling capacity is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a server filling method provided by the invention;
FIG. 2 is a second flowchart of step S200 in the server filling method according to the present invention;
fig. 3 is a schematic structural diagram of a server filling device provided by the invention;
fig. 4 is a schematic structural diagram of a transmission module in the server filling device provided by the invention;
fig. 5 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The server filling method of the present invention is described below with reference to fig. 1, and includes the steps of:
s100, acquiring a filling request of a server to be filled, distributing an IP address and appointed PXE information for the server to be filled, wherein the PXE information comprises a PXE file position and a PXE file name.
And S200, providing a PXE guide file to a server to be filled in a TFTP mode according to the IP address and the PXE information and providing an operating system file to the server to be filled in a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) mode on the edge (Mobile Edge Computing, MEC) side based on the filling request. The PXE boot files include a PXE boot loader file and a configuration file, and the operating system file includes a system kernel file and a system image file.
I.e., the edge side needs to provide TFTP services required for PXE boot file downloads and HTTP services required for operating system downloads. The TFTP service root directory places the PXE boot loader files and configuration files, and the HTTP service directory places the system kernel files and system image files.
S300, filling the server to be filled based on the PXE guide file and the operating system file.
MEC is mobile edge calculation, namely edge calculation, and is a technology based on a 5G evolution architecture and used for deeply fusing a mobile access network and Internet services. The MEC can provide services and cloud computing functions required by telecommunication users IT nearby by utilizing the wireless access network, so that a carrier service environment with high performance, low delay and high bandwidth is created, the rapid downloading of various contents, services and applications in the network is accelerated, and consumers enjoy uninterrupted high-quality network experience. The MEC can improve user experience and save bandwidth resources on one hand, and provide third-party application integration by sinking computing power to the mobile edge node on the other hand, so that infinite possibility is provided for service innovation of the mobile edge portal. The seamless integration of mobile networks and mobile applications will provide a powerful weapon against a variety of OTT (OverTheTop) applications.
5G is a new generation broadband mobile communication technology with high speed, low time delay and large connection characteristics, and is a network infrastructure for realizing man-machine object interconnection. With the development of 5G technology, 5G is being rapidly applied to various fields, enabling thousands of industries to digitally transform. The high-speed characteristic of 5G, the wireless connection advantage provides new thinking and scheme for operating system filling.
The server filling method provided by the invention is based on technologies such as a 5G network and MEC, PXE, TFTP, HTTP, provides a server wireless filling operating system scheme which is convenient, quick and flexible to deploy, realizes wireless and flexible production of server operating system filling, provides technical support for filling of a large number of server operating systems, solves the problems of large loading and maintenance workload and difficult flexible deployment of machine positions of the operating systems in the production process of commercial servers, and improves the filling capacity.
Taking a filling room capable of simultaneously filling 400 commercial server operating systems as an example, 1200 net wires exist in a traditional wired filling mode, according to actual production statistics, net wire carding replacement needs to be carried out once every three months, three workers can complete the operation in three days, and in the three months, replacement needs to be carried out according to the damage condition of a crystal head of the net wires, which is time-consuming and labor-consuming. The server filling method can solve the dilemma brought by the operation and maintenance of the network cable in the traditional scheme and improve the filling productivity.
In this embodiment, a 5G file is used as a server network card to obtain a filling request of a server to be filled, and as a DHCP server, an IP address and specified PXE information are allocated to the server to be filled. Meanwhile, the 5G Dongle is used as the CPE, so that the server to be filled can access the 5G network and the edge side, namely, the server to be filled is based on the 5G Dongle and accesses the edge side through the IP address and the PXE information.
The 5G Dongle is hardware inserted on a USB port of a computer, and is internally provided with a 5G module, an Ethernet card, a DHCP service and other modules. The commercial server may connect to the 5G network via a 5G Dongle to communicate with other services on the network. Therefore, the Ethernet network card module in the 5G Dongle in the server filling method provided by the invention needs to be provided with a PXE chip to support PXE starting. When 5G Dongle is burnt, the name of the PXE file and the IP of the PXE file on the MEC side server need to be written.
The server filling method of the present invention is described below with reference to fig. 2, and step S200 includes the following steps:
s210, acquiring a first filling request and a second filling request in the filling requests at the edge side, wherein the first filling request is a 1PXE guide file acquisition, and the second filling request is an operating system file acquisition;
s220, providing a PXE guide file to a server to be filled in a TFTP mode by the edge side based on the first filling request according to the IP address and the PXE information; and providing an operating system file for the server to be filled in an HTTP mode based on the second filling request.
In this embodiment, the resource block size of TFTP is set to 20480 and the buffer size is set to 40960. Due to the TFTP protocol principle, the downloading speed is lower in the default condition, and the speed is improved by adjusting the size of the block and the size of the receiving buffer zone.
The system kernel file and the system mirror image file are relatively large, the whole traditional system filling process is carried out in a local area network, the speed meets the production requirement, but the speed cannot meet the generation requirement after being reduced due to the fact that the speed spans the local area network under a 5G network. Therefore, in the invention, the download speed is improved by using HTTP to replace TFTP protocol for downloading the system kernel file and the system image file.
In this embodiment, the TCP/IP protocol stack adopted at the edge side is an open source protocol stack lwip, and the following adjustments are made on the basis of lwip:
1. signal quantity processing: the semaphore structure struct sys_semt and the processing functions sys_sum_new, sys_sum_free, sys_sum_signal and sys_arch_sum_wait should be implemented in sys_arch;
2. message queue implementation: implementing a message queue structure sys_mbox_t, and corresponding operating functions: sys_mbox_new, sys_mbox_free, sys_mbox_post, and sys_arch_mbox_fetch;
3. timer function: realizing a struct sys_timeouts_ timeouts (void) function, wherein the function returns a timeout queue pointer corresponding to a thread in a running state;
4. creating a new thread function: implementing the sys_thread_new function while assigning the highest priority to threads created in LwIP;
5. sliding window: the lwip sliding window switch is started, and the number of message segments MEMP_NUM_TCP_SEG in the TCP buffer queue and the size of a TCP receiving window TCP_WND are adjusted.
The server filling device provided by the invention is described below, and the server filling device described below and the server filling method described above can be referred to correspondingly.
The server filling device of the present invention is described below with reference to fig. 3, and includes:
the request module 100 is configured to obtain a filling request of a server to be filled, allocate an IP address to the server to be filled, and assign PXE information, where it is understood that the PXE information includes a PXE file location and a PXE file name.
The transmission module 200 is configured to provide a PXE boot file to a server to be filled in a TFTP manner according to the IP address and the PXE information, and provide an operating system file to the server to be filled in a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) manner. The PXE boot files include a PXE boot loader file and a configuration file, and the operating system file includes a system kernel file and a system image file.
I.e., the edge side needs to provide TFTP services required for PXE boot file downloads and HTTP services required for operating system downloads. The TFTP service root directory places the PXE boot loader files and configuration files, and the HTTP service directory places the system kernel files and system image files.
The filling module 300 is configured to perform filling of the server to be filled based on the PXE boot file and the operating system file.
MEC is mobile edge calculation, namely edge calculation, and is a technology based on a 5G evolution architecture and used for deeply fusing a mobile access network and Internet services. The MEC can provide services and cloud computing functions required by telecommunication users IT nearby by utilizing the wireless access network, so that a carrier service environment with high performance, low delay and high bandwidth is created, the rapid downloading of various contents, services and applications in the network is accelerated, and consumers enjoy uninterrupted high-quality network experience. The MEC can improve user experience and save bandwidth resources on one hand, and provide third-party application integration by sinking computing power to the mobile edge node on the other hand, so that infinite possibility is provided for service innovation of the mobile edge portal. The seamless integration of mobile networks and mobile applications will provide a powerful weapon against a variety of OTT (OverTheTop) applications.
5G is a new generation broadband mobile communication technology with high speed, low time delay and large connection characteristics, and is a network infrastructure for realizing man-machine object interconnection. With the development of 5G technology, 5G is being rapidly applied to various fields, enabling thousands of industries to digitally transform. The high-speed characteristic of 5G, the wireless connection advantage provides new thinking and scheme for operating system filling.
The server filling device provided by the invention is based on technologies such as a 5G network and MEC, PXE, TFTP, HTTP, provides a server wireless filling operating system scheme which is convenient, quick and flexible to deploy, realizes wireless and flexible production of server operating system filling, provides technical support for filling of a large number of server operating systems, solves the problems of large loading and maintenance workload and difficult flexible deployment of machine positions of the operating systems in the production process of commercial servers, and improves the filling capacity.
Taking a filling room capable of simultaneously filling 400 commercial server operating systems as an example, 1200 net wires exist in a traditional wired filling mode, according to actual production statistics, net wire carding replacement needs to be carried out once every three months, three workers can complete the operation in three days, and in the three months, replacement needs to be carried out according to the damage condition of a crystal head of the net wires, which is time-consuming and labor-consuming. The server filling device can solve the dilemma brought by the operation and maintenance of the network cable in the traditional scheme, and improves the filling productivity.
In this embodiment, a 5G file is used as a server network card to obtain a filling request of a server to be filled, and as a DHCP server, an IP address and specified PXE information are allocated to the server to be filled. Meanwhile, the 5G Dongle is used as the CPE, so that the server to be filled can access the 5G network and the edge side, namely, the server to be filled is based on the 5G Dongle and accesses the edge side through the IP address and the PXE information.
The 5G Dongle is hardware inserted on a USB port of a computer, and is internally provided with a 5G module, an Ethernet card, a DHCP service and other modules. The commercial server may connect to the 5G network via a 5G Dongle to communicate with other services on the network. Therefore, the Ethernet network card module in the 5G Dongle in the server filling device provided by the invention needs to be provided with a PXE chip to support PXE starting. When 5G Dongle is burnt, the name of the PXE file and the IP of the PXE file on the MEC side server need to be written.
The server filling device of the present invention is described below with reference to fig. 4, and the transmission module 200 specifically includes:
an obtaining unit 210, configured to obtain a first filling request and a second filling request from the edge side, where the first filling request is a PXE boot file, and the second filling request is an operating system file;
the response unit 220 is configured to provide a PXE boot file to a server to be filled in a TFTP manner based on the first filling request according to the IP address and the PXE information; and providing an operating system file for the server to be filled in an HTTP mode based on the second filling request.
In this embodiment, the resource block size of TFTP is set to 20480 and the buffer size is set to 40960. Due to the TFTP protocol principle, the downloading speed is lower in the default condition, and the speed is improved by adjusting the size of the block and the size of the receiving buffer zone.
The system kernel file and the system mirror image file are relatively large, the whole traditional system filling process is carried out in a local area network, the speed meets the production requirement, but the speed cannot meet the generation requirement after being reduced due to the fact that the speed spans the local area network under a 5G network. Therefore, in the invention, the download speed is improved by using HTTP to replace TFTP protocol for downloading the system kernel file and the system image file.
In this embodiment, the TCP/IP protocol stack adopted by the edge side is an open source protocol stack lwip, and fig. 5 illustrates a schematic entity structure of an electronic device, as shown in fig. 5, where the electronic device may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. The processor 810 may call logic instructions in the memory 830 to perform a server filling method comprising the steps of:
s100, acquiring a filling request of a server to be filled, and distributing an IP address and appointed PXE information for the server to be filled; the PXE information comprises a PXE file position and a PXE file name;
s200, providing a PXE guide file for the server to be filled in a TFTP mode according to the IP address and the PXE information and providing an operating system file for the server to be filled in an HTTP mode by the edge side based on the filling request;
s300, filling the server to be filled based on the PXE guide file and the operating system file.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of performing the server filling method provided by the above methods, the method comprising the steps of:
s100, acquiring a filling request of a server to be filled, and distributing an IP address and appointed PXE information for the server to be filled; the PXE information comprises a PXE file position and a PXE file name;
s200, providing a PXE guide file for the server to be filled in a TFTP mode according to the IP address and the PXE information and providing an operating system file for the server to be filled in an HTTP mode by the edge side based on the filling request;
s300, filling the server to be filled based on the PXE guide file and the operating system file.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the server filling method provided by the above methods, the method comprising the steps of:
s100, acquiring a filling request of a server to be filled, and distributing an IP address and appointed PXE information for the server to be filled; the PXE information comprises a PXE file position and a PXE file name;
s200, providing a PXE guide file for the server to be filled in a TFTP mode according to the IP address and the PXE information and providing an operating system file for the server to be filled in an HTTP mode by the edge side based on the filling request;
s300, filling the server to be filled based on the PXE guide file and the operating system file.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A server filling method, comprising the steps of:
acquiring a filling request of a server to be filled, and distributing an IP address and appointed PXE information for the server to be filled; the PXE information comprises a PXE file position and a PXE file name;
the edge side provides a PXE guide file for the server to be filled in a TFTP mode according to the IP address and the PXE information and provides an operating system file for the server to be filled in an HTTP mode based on the filling request;
filling the server to be filled based on the PXE guide file and the operating system file;
the obtaining the filling request of the server to be filled, distributing an IP address and designated PXE information for the server to be filled, specifically includes:
the 5G Dongle is used as a server network card to acquire a filling request of the server to be filled, and is used as a DHCP server to allocate the IP address and assign the PXE information to the server to be filled;
the method comprises the steps that a filling request of a server to be filled is obtained, the edge side is based on the filling request, a TFTP mode is adopted to provide a PXE guide file for the server to be filled according to the IP address and specified PXE information, an HTTP mode is adopted to provide an operating system file for the server to be filled, and the method specifically comprises the following steps:
the edge side obtains a first filling request and a second filling request in the filling requests; the first filling request is for obtaining a PXE guide file, the second filling request is for obtaining an operating system file, the PXE guide file comprises a PXE guide loader file and a configuration file, and the operating system file comprises a system kernel file and a system mirror file;
according to the IP address and the PXE information, the edge side provides a PXE guide file for the server to be filled in a TFTP mode based on the first filling request; providing an operating system file for the server to be filled in an HTTP mode based on the second filling request;
the edge side provides a PXE guide file for the server to be filled in a TFTP mode based on the first filling request according to the IP address and the PXE information; based on the second filling request, providing an operating system file for the server to be filled in an HTTP mode, wherein the method specifically comprises the following steps:
the TCP/IP protocol stack adopted by the edge side is an open source protocol stack lwip.
2. The server filling method according to claim 1, wherein the obtaining the filling request of the server to be filled, and allocating an IP address and specified PXE information to the server to be filled, specifically includes:
the server to be filled is based on 5G Dongle and accesses the edge side through the IP address and the PXE information.
3. The server filling method according to claim 1, wherein the edge side provides the PXE boot file to the server to be filled in a TFTP manner based on the first filling request, and specifically includes:
the resource block size of TFTP is set to 20480 and the buffer size is set to 40960.
4. A server filling apparatus, comprising:
the request module is used for acquiring a filling request of a server to be filled, distributing an IP address and appointed PXE information for the server to be filled; the PXE information comprises a PXE file position and a PXE file name;
the transmission module is used for providing a PXE guide file for the server to be filled in a TFTP mode according to the IP address and the PXE information and providing an operating system file for the server to be filled in an HTTP mode on the basis of the filling request at the edge side;
the filling module is used for filling the server to be filled based on the PXE guide file and the operating system file;
the obtaining the filling request of the server to be filled, distributing an IP address and designated PXE information for the server to be filled, specifically includes:
the 5G Dongle is used as a server network card to acquire a filling request of the server to be filled, and is used as a DHCP server to allocate the IP address and assign the PXE information to the server to be filled;
the method comprises the steps that a filling request of a server to be filled is obtained, the edge side is based on the filling request, a TFTP mode is adopted to provide a PXE guide file for the server to be filled according to the IP address and specified PXE information, an HTTP mode is adopted to provide an operating system file for the server to be filled, and the method specifically comprises the following steps:
the edge side obtains a first filling request and a second filling request in the filling requests; the first filling request is for obtaining a PXE guide file, the second filling request is for obtaining an operating system file, the PXE guide file comprises a PXE guide loader file and a configuration file, and the operating system file comprises a system kernel file and a system mirror file;
according to the IP address and the PXE information, the edge side provides a PXE guide file for the server to be filled in a TFTP mode based on the first filling request; providing an operating system file for the server to be filled in an HTTP mode based on the second filling request;
the edge side provides a PXE guide file for the server to be filled in a TFTP mode based on the first filling request according to the IP address and the PXE information; based on the second filling request, providing an operating system file for the server to be filled in an HTTP mode, wherein the method specifically comprises the following steps:
the TCP/IP protocol stack adopted by the edge side is an open source protocol stack lwip.
5. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the server filling method according to any one of claims 1 to 3 when the program is executed.
6. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the server filling method according to any one of claims 1 to 3.
CN202111149693.7A 2021-09-29 2021-09-29 Server filling method, device, equipment and product Active CN114070841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111149693.7A CN114070841B (en) 2021-09-29 2021-09-29 Server filling method, device, equipment and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111149693.7A CN114070841B (en) 2021-09-29 2021-09-29 Server filling method, device, equipment and product

Publications (2)

Publication Number Publication Date
CN114070841A CN114070841A (en) 2022-02-18
CN114070841B true CN114070841B (en) 2023-07-14

Family

ID=80233823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111149693.7A Active CN114070841B (en) 2021-09-29 2021-09-29 Server filling method, device, equipment and product

Country Status (1)

Country Link
CN (1) CN114070841B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174556A (en) * 2022-06-29 2022-10-11 浪潮云信息技术股份公司 Configuration method and system of server operating system, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522028A (en) * 2018-11-15 2019-03-26 郑州云海信息技术有限公司 A kind of installation method and system of operating system
CN112256288A (en) * 2020-10-23 2021-01-22 苏州浪潮智能科技有限公司 Linux system batch installation method, device and medium
CN112527328A (en) * 2020-12-03 2021-03-19 曙光信息产业(北京)有限公司 System cloning method, device, electronic equipment and computer readable storage medium
CN113064602A (en) * 2021-03-08 2021-07-02 山东英信计算机技术有限公司 Method, system and medium for filling operation system based on NFS

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050132360A1 (en) * 2003-12-11 2005-06-16 Chu Simon C. Network boot sequence in the absence of a DHCP server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522028A (en) * 2018-11-15 2019-03-26 郑州云海信息技术有限公司 A kind of installation method and system of operating system
CN112256288A (en) * 2020-10-23 2021-01-22 苏州浪潮智能科技有限公司 Linux system batch installation method, device and medium
CN112527328A (en) * 2020-12-03 2021-03-19 曙光信息产业(北京)有限公司 System cloning method, device, electronic equipment and computer readable storage medium
CN113064602A (en) * 2021-03-08 2021-07-02 山东英信计算机技术有限公司 Method, system and medium for filling operation system based on NFS

Also Published As

Publication number Publication date
CN114070841A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN108809722B (en) Method, device and storage medium for deploying Kubernetes cluster
EP3343364A1 (en) Accelerator virtualization method and apparatus, and centralized resource manager
US10754686B2 (en) Method and electronic device for application migration
CN107547629B (en) Method and device for downloading client static resources, electronic equipment and readable medium
CN107210924B (en) Method and apparatus for configuring a communication system
CN110308986B (en) Method for distributed training data communication on container cloud based on optimal scheduling
CN112333017B (en) Service configuration method, device, equipment and storage medium
US20210373928A1 (en) Method, system and apparatus for sharing of fpga board by multiple virtual machines
CN111105006A (en) Deep learning network training system and method
CN114070841B (en) Server filling method, device, equipment and product
CN109218356A (en) The method and apparatus of stateful application in management server
JP2021518955A (en) Processor core scheduling method, equipment, terminals and storage media
CN111756776A (en) Server, message distribution device, program handover system, and program handover method
CN112104679B (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
CN110198364B (en) Container cloud distributed training data communication method based on designated DNS analysis
CN115268949A (en) Mirror preheating method, device, equipment and storage medium
CN114296953A (en) Multi-cloud heterogeneous system and task processing method
CN110113176B (en) Information synchronization method and device for configuration server
CN113268254A (en) Cluster system installation method and device, electronic equipment and storage medium
CN113760461A (en) Version upgrading method and computer readable storage medium
CN112491978A (en) Scheduling method and device
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
CN115562887A (en) Inter-core data communication method, system, device and medium based on data package
CN103856531A (en) Local area network downloading device and method based on multiple collaborators
CN112398896B (en) Apparatus, method, device and computer readable storage medium for providing service

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