CN110769031A - Data acquisition method and device - Google Patents

Data acquisition method and device Download PDF

Info

Publication number
CN110769031A
CN110769031A CN201910876183.6A CN201910876183A CN110769031A CN 110769031 A CN110769031 A CN 110769031A CN 201910876183 A CN201910876183 A CN 201910876183A CN 110769031 A CN110769031 A CN 110769031A
Authority
CN
China
Prior art keywords
address
physical machine
public service
cloud host
image file
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.)
Granted
Application number
CN201910876183.6A
Other languages
Chinese (zh)
Other versions
CN110769031B (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.)
Excellent Polytron Technologies Inc
Original Assignee
Excellent Polytron Technologies Inc
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 Excellent Polytron Technologies Inc filed Critical Excellent Polytron Technologies Inc
Priority to CN201910876183.6A priority Critical patent/CN110769031B/en
Publication of CN110769031A publication Critical patent/CN110769031A/en
Application granted granted Critical
Publication of CN110769031B publication Critical patent/CN110769031B/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
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a data acquisition method and a device, wherein a cloud host sends a dhcp request for requesting an IP address, an intelligent network card corresponding to the cloud host receives the dhcp request and feeds back a VPC address and a public service address to the dhcp request, wherein a physical machine using the public service address stores an installed image file, the physical machine and the cloud host belong to the same local area network, the VPC address is used for accessing the physical machine to acquire the installed image file, and the installation operation is carried out based on the installed image file. Because the physical machine and the cloud host belong to the same local area network, the problem that the physical machine and the cloud host do not belong to the same layer network does not exist during communication, and the installed image file of the physical machine can be accessed to perform installation operation.

Description

Data acquisition method and device
Technical Field
The present invention relates to the field of PXE (preboot execution environment) installation, and more particularly, to a data acquisition method and apparatus.
Background
In a cloud computing environment, tenant networks are all using a virtual network of tunnel tunnels. The cloud host, that is, the virtual network card of the physical machine, is connected to the openvswitch bridge of the host in the open virtual switching standard and then sent out from the physical network card through the tunnel port.
The PXE installation must be on a two-layer network, but in the mode, the physical network port of the host and the virtual network port of the cloud host are not on the same two-layer network, so that the cloud host cannot be installed through the PXE.
Disclosure of Invention
In view of this, the present invention provides a data acquisition method and apparatus, so as to solve the problem that in the foregoing mode, a physical network port on a host and a virtual network port of a cloud host are not on the same two layers, which results in that the cloud host cannot be installed through PXE.
In order to solve the technical problems, the invention adopts the following technical scheme:
a data acquisition method is applied to a cloud host, and comprises the following steps:
sending a dhcp request for requesting an IP address of an Internet protocol address;
receiving a VPC address and a public service address which are received by the intelligent network card corresponding to the cloud host and feed back the dhcp request; a physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network;
accessing the physical machine by using the VPC address to acquire the installed image file;
and performing installation operation based on the installation image file.
Optionally, the public service address comprises a tftp public service address and an http public service address; the installed image file comprises a boot image and an installation image.
Optionally, accessing the physical machine using the VPC address to obtain the installed image file includes:
accessing the tftp public service address of the physical machine using the VPC address to obtain the boot image;
and accessing the http public service address of the physical machine by using the VPC address to obtain the installation mirror image.
A data acquisition method is applied to an intelligent network card, and comprises the following steps:
acquiring a dhcp request which is sent by a cloud host and used for requesting an IP address of an Internet protocol address;
searching and feeding back a VPC address and a public service address corresponding to the dhcp request; and the physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network.
A data acquisition device is applied to a cloud host, and comprises:
the request sending module is used for sending a dhcp request for requesting an IP address of an Internet protocol address;
the data receiving module is used for receiving the VPC address and the public service address which are received by the intelligent network card corresponding to the cloud host and feed back the dhcp request; a physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network;
the data acquisition module is used for accessing the physical machine by using the VPC address to acquire the installed image file;
and the installation module is used for performing installation operation based on the installation mirror image file.
Optionally, the public service address comprises a tftp public service address and an http public service address; the installed image file comprises a boot image and an installation image.
Optionally, the data obtaining module is configured to, when accessing the physical machine using the VPC address to obtain the installed image file, specifically:
and accessing the tftp public service address of the physical machine by using the VPC address to acquire the boot image, and accessing the http public service address of the physical machine by using the VPC address to acquire the installation image.
A data acquisition device is applied to an intelligent network card, and comprises:
the request acquisition module is used for acquiring a dhcp request which is sent by a cloud host and used for requesting an IP address of an Internet protocol address;
the feedback module is used for feeding back a VPC address and a public service address corresponding to the dhcp request to the cloud host; and the physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a data acquisition method and a device, wherein a cloud host sends a dhcp request for requesting an IP address, an intelligent network card corresponding to the cloud host receives the dhcp request and feeds back a VPC address and a public service address to the dhcp request, wherein a physical machine using the public service address stores an installed image file, the physical machine and the cloud host belong to the same local area network, the VPC address is used for accessing the physical machine to acquire the installed image file, and the installation operation is carried out based on the installed image file. Because the physical machine and the cloud host belong to the same local area network, the problem that the physical machine and the cloud host do not belong to the same layer network does not exist during communication, and the installed image file of the physical machine can be accessed to perform installation operation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method of a data acquisition method applied to a cloud host according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a data acquisition device applied to a cloud host according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
Pxe the installation process can be split into dhcp (Dynamic Host Configuration Protocol) service, tftp (simple File Transfer Protocol) and http (HyperText Transfer Protocol) service. Firstly, the cloud host sends out a dhcp request to a host (also called an installation server) to request an internet protocol address IP address, and the dhcp service allocates the IP address and tells subsequent tftp and http service addresses. After the cloud host acquires the address, the cloud host accesses an installation server (possibly different from the installation server) through tftp to download a starting mirror image, and downloads an installation mirror image through http service to start and install the system.
However, there is a problem in that the cloud host, that is, the virtual network card of the physical machine, is connected to the openvswitch bridge of the host and then sent out from the physical network card through the tunnel port. In the mode, the physical network port of the host and the virtual network port of the cloud host are not on the same two layers, so that the cloud host cannot be installed through the PXE.
In order to solve the above problem, an embodiment of the present invention provides a data acquisition method, which is applied to a cloud host, and with reference to fig. 1, the data acquisition method includes:
s11, sending the dhcp request for requesting the IP address.
In this embodiment, the cloud host, which may also be referred to as a physical machine, is in a bare machine state before the PXE installation, and at this time, the cloud host needs to acquire data required by the installation and perform the PXE installation operation.
First, the cloud host sends a dhcp request, which is used to request an IP address for the cloud host.
And S12, receiving the VPC address and the public service address which are received by the intelligent network card corresponding to the cloud host and fed back to the dhcp request.
The embodiment splits the acquired installed data into two parts of dhcp based on two-layer forwarding and TFTP and http based on three-layer forwarding. Specifically, the intelligent network card corresponding to the cloud host, that is, the host, receives the dhcp request and assigns a vpc address to the cloud host by replying the dhcp request instead, and specifies a tftp public service address and an http public service address. It is assigned a vpc address because only the vpc address has access to the public service. Wherein the public service address comprises the tftp public service address and the http public service address; the installed image file comprises a boot image and an installation image.
And the host machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network. I.e., Tftp and http services are deployed to public services. And the cloud host accesses the tftp and http services through the public service. The physical machine used by the public service and the cloud host belong to the same user network, and the same network can be accessed mutually.
And S13, accessing the physical machine by using the VPC address to acquire the installed image file.
In practical application, the VPC address is used for accessing the tftp public service address of the physical machine to obtain the boot image, and the VPC address is used for accessing the http public service address of the physical machine to obtain the installation image. That is, the installed image file is available through a physical machine having a public service.
And S14, performing installation operation based on the installation image file.
After the starting mirror image and the installation mirror image are obtained, system starting and installation can be carried out so as to guarantee normal work of the cloud host.
In this embodiment, a cloud host sends a dhcp request for requesting an IP address, an intelligent network card corresponding to the cloud host receives the dhcp request and feeds back a VPC address and a public service address to the dhcp request, where a physical machine using the public service address stores an installed image file, the physical machine and the cloud host belong to the same local area network, the VPC address is used to access the physical machine to obtain the installed image file, and an installation operation is performed based on the installed image file. Because the physical machine and the cloud host belong to the same local area network, the problem that the physical machine and the cloud host do not belong to the same layer network does not exist during communication, and the installed image file of the physical machine can be accessed to perform installation operation.
In another implementation manner of the present invention, a data acquisition method is provided, which is applied to an intelligent network card, and the data acquisition method includes:
acquiring a dhcp request which is sent by a cloud host and used for requesting an IP address of an Internet protocol address;
feeding back a VPC address and a public service address corresponding to the dhcp request; and the physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network.
In this embodiment, after receiving the dhcp request sent by the cloud host, the intelligent network card directly responds, informs the VPC address and the public service address of the cloud host, and further the cloud host can access the public service address through the VPC address, obtain the installed image file, and perform the installation operation.
It should be noted that, for the specific explanation of the steps in this embodiment, please refer to the corresponding explanation in the above embodiments, which is not repeated herein.
Optionally, on the basis of the embodiment of the data obtaining method, another embodiment of the present invention provides a data obtaining apparatus, which is applied to a cloud host, and with reference to fig. 2, the data obtaining apparatus includes:
a request sending module 101, configured to send a dhcp request for requesting an IP address of an internet protocol address;
a data receiving module 102, configured to receive a VPC address and a public service address, where the dhcp request is received by an intelligent network card corresponding to the cloud host and the VPC address and the public service address are fed back to the dhcp request; a physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network;
a data obtaining module 103, configured to access the physical machine using the VPC address to obtain the installed image file;
and the installation module 104 is used for performing installation operation based on the installation image file.
Further, the public service address comprises a tftp public service address and an http public service address; the installed image file comprises a boot image and an installation image.
Further, the data obtaining module is configured to access the physical machine using the VPC address to obtain the installed image file, and specifically configured to:
and accessing the tftp public service address of the physical machine by using the VPC address to acquire the boot image, and accessing the http public service address of the physical machine by using the VPC address to acquire the installation image.
In this embodiment, a cloud host sends a dhcp request for requesting an IP address, an intelligent network card corresponding to the cloud host receives the dhcp request and feeds back a VPC address and a public service address to the dhcp request, where a physical machine using the public service address stores an installed image file, the physical machine and the cloud host belong to the same local area network, the VPC address is used to access the physical machine to obtain the installed image file, and an installation operation is performed based on the installed image file. Because the physical machine and the cloud host belong to the same local area network, the problem that the physical machine and the cloud host do not belong to the same layer network does not exist during communication, and the installed image file of the physical machine can be accessed to perform installation operation.
It should be noted that, for the specific explanation of each module in this embodiment, please refer to the corresponding explanation in the above embodiments, which is not described herein again.
Optionally, on the basis of the embodiment of the data obtaining method, another embodiment of the present invention provides a data obtaining apparatus, which is applied to an intelligent network card, where the data obtaining apparatus includes:
the request acquisition module is used for acquiring a dhcp request which is sent by a cloud host and used for requesting an IP address of an Internet protocol address;
the feedback module is used for feeding back a VPC address and a public service address corresponding to the dhcp request to the cloud host; and the physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network.
In this embodiment, after receiving the dhcp request sent by the cloud host, the intelligent network card directly responds, informs the VPC address and the public service address of the cloud host, and further the cloud host can access the public service address through the VPC address, obtain the installed image file, and perform the installation operation.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. 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 invention. Thus, the present invention 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 (8)

1. A data acquisition method is applied to a cloud host, and the data acquisition method comprises the following steps:
sending a dhcp request for requesting an IP address of an Internet protocol address;
receiving a VPC address and a public service address which are received by the intelligent network card corresponding to the cloud host and feed back the dhcp request; a physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network;
accessing the physical machine by using the VPC address to acquire the installed image file;
and performing installation operation based on the installation image file.
2. The data acquisition method according to claim 1, wherein the public service address includes a tftp public service address and an http public service address; the installed image file comprises a boot image and an installation image.
3. The data acquisition method of claim 2, wherein accessing the physical machine using the VPC address to acquire the installed image file comprises:
accessing the tftp public service address of the physical machine using the VPC address to obtain the boot image;
and accessing the http public service address of the physical machine by using the VPC address to obtain the installation mirror image.
4. A data acquisition method is applied to an intelligent network card, and comprises the following steps:
acquiring a dhcp request which is sent by a cloud host and used for requesting an IP address of an Internet protocol address;
searching and feeding back a VPC address and a public service address corresponding to the dhcp request; and the physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network.
5. A data acquisition device is applied to a cloud host, and the data acquisition device comprises:
the request sending module is used for sending a dhcp request for requesting an IP address of an Internet protocol address;
the data receiving module is used for receiving the VPC address and the public service address which are received by the intelligent network card corresponding to the cloud host and feed back the dhcp request; a physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network;
the data acquisition module is used for accessing the physical machine by using the VPC address to acquire the installed image file;
and the installation module is used for performing installation operation based on the installation mirror image file.
6. The data acquisition device according to claim 5, wherein the public service address comprises a tftp public service address and an http public service address; the installed image file comprises a boot image and an installation image.
7. The data acquisition device of claim 6, wherein the data acquisition module, when accessing the physical machine using the VPC address to acquire the mounted image file, is specifically configured to:
and accessing the tftp public service address of the physical machine by using the VPC address to acquire the boot image, and accessing the http public service address of the physical machine by using the VPC address to acquire the installation image.
8. The utility model provides a data acquisition device which characterized in that is applied to intelligent network card, data acquisition device includes:
the request acquisition module is used for acquiring a dhcp request which is sent by a cloud host and used for requesting an IP address of an Internet protocol address;
the feedback module is used for feeding back a VPC address and a public service address corresponding to the dhcp request to the cloud host; and the physical machine using the public service address stores an installed image file, and the physical machine and the cloud host belong to the same local area network.
CN201910876183.6A 2019-09-17 2019-09-17 Data acquisition method and device Active CN110769031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910876183.6A CN110769031B (en) 2019-09-17 2019-09-17 Data acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910876183.6A CN110769031B (en) 2019-09-17 2019-09-17 Data acquisition method and device

Publications (2)

Publication Number Publication Date
CN110769031A true CN110769031A (en) 2020-02-07
CN110769031B CN110769031B (en) 2022-07-29

Family

ID=69329922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910876183.6A Active CN110769031B (en) 2019-09-17 2019-09-17 Data acquisition method and device

Country Status (1)

Country Link
CN (1) CN110769031B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1283464A1 (en) * 2001-08-06 2003-02-12 Hewlett-Packard Company A boot process for a computer, a boot ROM and a computer having a boot ROM
US20070157016A1 (en) * 2005-12-29 2007-07-05 Dayan Richard A Apparatus, system, and method for autonomously preserving high-availability network boot services
CN103984575A (en) * 2014-05-28 2014-08-13 浪潮电子信息产业股份有限公司 Rapid deployment method of cluster Linux operation system in cloud-computing environment
CN109819027A (en) * 2019-01-21 2019-05-28 郑州云海信息技术有限公司 A kind of server system remote start-up method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1283464A1 (en) * 2001-08-06 2003-02-12 Hewlett-Packard Company A boot process for a computer, a boot ROM and a computer having a boot ROM
US20070157016A1 (en) * 2005-12-29 2007-07-05 Dayan Richard A Apparatus, system, and method for autonomously preserving high-availability network boot services
CN103984575A (en) * 2014-05-28 2014-08-13 浪潮电子信息产业股份有限公司 Rapid deployment method of cluster Linux operation system in cloud-computing environment
CN109819027A (en) * 2019-01-21 2019-05-28 郑州云海信息技术有限公司 A kind of server system remote start-up method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110769031B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
US9191460B2 (en) Selective sub-net filtering in a pre-boot execution environment (PXE)
US10187445B2 (en) System, method and browser client for enabling browser data synchronization
WO2021057889A1 (en) Data processing method and apparatus, electronic device, and storage medium
US10686755B2 (en) Assigning IP addresses and configuration parameters in hyper-converged infrastructure
US20060155838A1 (en) Program installation system and method using the same
US10762160B2 (en) Delivering content to electronic devices using local caching servers
CN106549789B (en) Method and system for realizing server installation
WO2015081709A1 (en) Method, terminal device, and system for implementing network test based on reverse proxy
US10075410B2 (en) Apparatus and methods for assigning internetwork addresses
CN107547274B (en) Multi-network-port aggregation method and device
CN104104720A (en) Server cluster management method and system
CN105183529A (en) Method for refreshing server firmware, target server, source server and system
CN112333017B (en) Service configuration method, device, equipment and storage medium
CN107071043A (en) The collocation method and device of a kind of network information
EP2693691A1 (en) Method and apparatus for initializing gateway in device management system
CN1571350A (en) A method for triggering user terminal online via data message
CN104717312A (en) Method and device for determining network resource access interfaces
CN115333933B (en) Automatic management method, medium and equipment for servers on machine room
CN113268254A (en) Cluster system installation method and device, electronic equipment and storage medium
CN110769031B (en) Data acquisition method and device
CN109617817B (en) Method and device for generating forwarding table entry of MLAG networking
CN114615285B (en) Physical machine deployment method and device, electronic equipment and storage medium
CN112822299B (en) RDMA (remote direct memory Access) -based data transmission method and device and electronic equipment
CN112367415B (en) Generation method and device of attribute information, electronic equipment and computer readable medium
CN114363204A (en) Request monitoring method, network device and storage medium

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