CN107656877B - Information processing method and apparatus thereof - Google Patents

Information processing method and apparatus thereof Download PDF

Info

Publication number
CN107656877B
CN107656877B CN201710839502.7A CN201710839502A CN107656877B CN 107656877 B CN107656877 B CN 107656877B CN 201710839502 A CN201710839502 A CN 201710839502A CN 107656877 B CN107656877 B CN 107656877B
Authority
CN
China
Prior art keywords
data file
client
specified data
virtual machine
data request
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
CN201710839502.7A
Other languages
Chinese (zh)
Other versions
CN107656877A (en
Inventor
孙宪武
李红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710839502.7A priority Critical patent/CN107656877B/en
Publication of CN107656877A publication Critical patent/CN107656877A/en
Application granted granted Critical
Publication of CN107656877B publication Critical patent/CN107656877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • 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]

Abstract

The present disclosure provides an information processing method applied to a virtual machine capable of providing an FTP service, the method including: receiving a first data request which is sent by a client and used for indicating to acquire a specified data file; and in response to the first data request, returning the logical address of the specified data file to the client, so that the client can send a second data request to the physical machine provided with the virtual machine based on the returned logical address, so that the physical machine can respond to the second data request and find the specified data file according to the physical address having a mirror image mapping relation with the logical address, and send the found specified data file to the client, wherein the second data request at least comprises the logical address. The present disclosure also provides an information processing system.

Description

Information processing method and apparatus thereof
Technical Field
The present disclosure relates to an information processing method and apparatus thereof.
Background
In the related art, to access a data File provided by a FTP service of a virtual machine through a File Transfer Protocol (FTP), a client needs to first send a data request to the virtual machine providing the FTP service, and the virtual machine forwards the data request to a host (a physical machine where the virtual machine is located), and the host responds to the data request and returns a corresponding data File to the virtual machine, and the data File is forwarded to the client by the virtual machine.
In the process of implementing the embodiments of the present disclosure, the inventors found that at least the following problems exist in the related art: the data file is read and copied twice, which takes long time and has low efficiency.
In view of the above problems in the related art, no effective solution has been proposed at present.
Disclosure of Invention
In view of the above, the present disclosure provides an information processing method and an apparatus thereof.
One aspect of the present disclosure provides an information processing method applied to a virtual machine capable of providing an FTP service, including: receiving a first data request which is sent by a client and used for indicating to acquire a specified data file; and returning the logical address of the specified data file to the client in response to the first data request, so that the client can send a second data request to a physical machine installed with the virtual machine based on the returned logical address, so that the physical machine can find the specified data file according to the physical address having a mirror mapping relation with the logical address in response to the second data request, and send the found specified data file to the client, wherein the second data request at least comprises the logical address.
Optionally, responding to the first data request and returning the specified logical address of the data file to the client includes: responding to the first data request, and acquiring identification information of the specified data file, wherein the identification information comprises an index node of the specified data file on the virtual machine; acquiring a logic address of the specified data file on the virtual machine according to the acquired identification information; and returning the logic address of the specified data file to the client.
Another aspect of the present disclosure provides an information processing method, including: sending a first data request to a virtual machine capable of providing FTP service to acquire a specified data file; receiving a logic address of the specified data file returned by the virtual machine in response to the first data request; sending a second data request to a physical machine installed with the virtual machine based on the logical address returned by the virtual machine, so that the physical machine can respond to the second data request and find out the specified data file according to a physical address having a mirror image mapping relation with the logical address, and sending the found specified data file to the client, wherein the second data request at least comprises the logical address; and receiving the designated data file sent by the physical machine.
Another aspect of the present disclosure provides an information processing method applied to a physical machine in which a virtual machine capable of providing an FTP service is installed, including: acquiring a second data request sent by a client, wherein the second data request at least comprises a logical address of a specified data file, which is sent by the client to the virtual machine for instructing to acquire the specified data file and returned by the virtual machine in response to the first data request; responding to the second data request, and finding out the specified data file according to a physical address having a mirror image mapping relation with the logical address; and sending the found designated data file to the client.
Optionally, in response to the second data request, finding the specified data file according to a physical address having a mirror mapping relationship with the logical address includes: in response to the second data request, obtaining the physical address of the specified data file on the physical machine in mirror mapping relation with the logical address of the specified data file on the virtual machine; finding out the specified data file corresponding to the physical address; and sending the found designated data file to the client.
Another aspect of the present disclosure provides an information processing system applied to a virtual machine capable of providing an FTP service, comprising: the first receiving module is used for receiving a first data request which is sent by a client and used for indicating to acquire a specified data file; and a first processing module, configured to, in response to the first data request, return a logical address of the specified data file to the client, so that the client can send a second data request to a physical machine on which the virtual machine is installed based on the returned logical address, so that the physical machine can find the specified data file according to a physical address having a mirror mapping relationship with the logical address in response to the second data request, and send the found specified data file to the client, where the second data request at least includes the logical address.
Optionally, the first processing module includes: a first obtaining unit, configured to obtain, in response to the first data request, identification information of the specified data file, where the identification information includes an index node of the specified data file on the virtual machine; a second obtaining unit, configured to obtain, according to the obtained identification information, a logical address of the specified data file on the virtual machine; and a return unit, configured to return the logical address of the specified data file to the client.
Another aspect of the present disclosure provides an information processing system including: the system comprises a first sending module, a second sending module and a sending module, wherein the first sending module is used for sending a first data request to a virtual machine capable of providing FTP service so as to acquire a specified data file; a second receiving module, configured to receive a logical address of the specified data file returned by the virtual machine in response to the first data request; a second sending module, configured to send a second data request to a physical machine installed with the virtual machine based on the logical address returned by the virtual machine, so that the physical machine can respond to the second data request and find the specified data file according to a physical address having a mirror mapping relationship with the logical address, and send the found specified data file to the client, where the second data request at least includes the logical address; and the receiving module is used for receiving the specified data file sent by the physical machine.
Another aspect of the present disclosure provides an information processing system applied to a physical machine in which a virtual machine capable of providing an FTP service is installed, including: an obtaining module, configured to obtain a second data request sent by a client, where the second data request at least includes a logical address of a specified data file that is sent by the client to the virtual machine to instruct the virtual machine to obtain the specified data file and returned by the virtual machine in response to the first data request; the second processing module is used for responding to the second data request and finding out the specified data file according to the physical address which has a mirror image mapping relation with the logical address; and a third sending module, configured to send the found designated data file to the client.
Optionally, the second processing module includes: a third obtaining unit, configured to obtain, in response to the second data request, the physical address of the specified data file on the physical machine in a mirror mapping relationship with the logical address of the specified data file on the virtual machine; a processing unit, configured to find the specified data file corresponding to the physical address; and a sending unit, configured to send the found designated data file to the client.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario of an information processing method and a system thereof according to an embodiment of the present disclosure;
FIG. 2A schematically illustrates a flow chart of an information processing method according to an embodiment of the present disclosure;
FIG. 2B schematically illustrates a flow diagram for responding to a first data request and returning a specified logical address of a data file to a client, in accordance with an embodiment of the present disclosure;
FIG. 3 schematically shows a flow chart of an information processing method according to another embodiment of the present disclosure;
FIG. 4A schematically illustrates a flow diagram of an information processing method according to yet another embodiment of the present disclosure;
FIG. 4B schematically illustrates a flow diagram for finding a specified data file from a physical address having a mirror mapping relationship with a logical address in response to a second data request according to yet another embodiment of the present disclosure;
FIG. 5A schematically illustrates a block diagram of an information handling system in accordance with an embodiment of the present disclosure;
FIG. 5B schematically shows a block diagram of a first processing module according to an embodiment of the disclosure;
FIG. 6 schematically shows a block diagram of an information handling system according to another embodiment of the present disclosure;
FIG. 7A schematically illustrates a block diagram of an information handling system in accordance with yet another embodiment of the present disclosure;
FIG. 7B schematically illustrates a block diagram of a second processing module according to yet another embodiment of the present disclosure; and
fig. 8 schematically shows a block diagram of a computer system suitable for implementing an information processing method to which an embodiment of the present disclosure is applied.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable medium having instructions stored thereon for use by or in connection with an instruction execution system. In the context of this disclosure, a computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the instructions. For example, the computer readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the computer readable medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). It will be further understood by those within the art that virtually any disjunctive word and/or phrase presenting two or more alternative terms, whether in the description, claims, or drawings, should be understood to contemplate the possibilities of including one of the terms, either of the terms, or both terms. For example, the phrase "a or B" should be understood to include the possibility of "a" or "B", or "a and B".
An embodiment of the present disclosure provides an information processing method applied to a virtual machine capable of providing an FTP service, including: receiving a first data request which is sent by a client and used for indicating to acquire a specified data file; and in response to the first data request, returning the logical address of the specified data file to the client, so that the client can send a second data request to the physical machine provided with the virtual machine based on the returned logical address, so that the physical machine can respond to the second data request and find the specified data file according to the physical address having a mirror image mapping relation with the logical address, and send the found specified data file to the client, wherein the second data request at least comprises the logical address.
Fig. 1 schematically illustrates an application scenario of an information processing method and a system thereof according to an embodiment of the present disclosure.
The information processing method and the system thereof provided by the embodiment of the disclosure can realize that the client accesses the data provided by the FTP service through the virtual machine. As shown in fig. 1, a virtual machine 102 is configured on a physical machine 101, and the virtual machine 102 can provide an FTP service to the outside, for example, a data file is provided on an FTP shared directory for access, where the data file is stored on a block device in the virtual machine 102, the block device is also referred to as a data block, the data block stores the data file in a block storage area with a fixed size, each data block has a corresponding address, and the data blocks are relatively independent, and the block device of the virtual machine 102 is correspondingly mapped to a file in a file system of the physical machine 101, that is, an image file of the virtual machine. The client 103 can access a specified data file among data files provided by the FTP service through the virtual machine 102.
It should be noted that the number of hosts, virtual machines, and data files in the application scenario of this embodiment is merely illustrative, and is not intended to limit or narrow the scope of the present disclosure, and any number of hosts, virtual machines, and data files may be provided according to implementation needs.
Fig. 2A schematically shows a flow chart of an information processing method according to an embodiment of the present disclosure.
As shown in fig. 2A, the information processing method of the embodiment of the present disclosure is applied to a virtual machine capable of providing an FTP service, and the method may include operations S210 to S220, in which:
in operation S210, a first data request sent by a client for instructing to acquire a specified data file is received.
In operation S220, in response to the first data request, the logical address of the specified data file is returned to the client, so that the client can send a second data request to the physical machine installed with the virtual machine based on the returned logical address, thereby enabling the physical machine to respond to the second data request and find the specified data file according to the physical address having a mirror mapping relationship with the logical address, and send the found specified data file to the client.
FTP is one of the protocols in the TCP/IP suite, and is an abbreviation of File Transfer Protocol in English. The protocol is the basis of Internet file transmission, and consists of a series of specification documents, and aims to improve the sharing of files, provide indirect use of remote computers and enable a storage medium to transmit data reliably and efficiently for users. In brief, FTP copies files from a remote computer (virtual machine) to its own computer (physical host), called "download" files. If a file is copied from its own computer to a remote computer, it is called an "upload" file. In the embodiment of the present disclosure, a client downloads a data file provided by an FTP service through a virtual machine, and the uploading process may be correspondingly expanded according to the spirit of the embodiment of the present disclosure, which is not described herein again.
For a virtual machine capable of providing an FTP service, taking an example that a client downloads a data file 1 in an FTP shared directory of the virtual machine as shown in fig. 1, a data file transmission process in the related art and a data file transmission process in an embodiment of the present disclosure are described in detail.
In the related art, a client downloads a data file 1 in a virtual machine FTP shared directory as shown in fig. 1, and the flow and specific steps of data file transmission are roughly as follows:
1. a client sends a data reading request for downloading a data file 1;
2. the FTP service sends a read request to a file system of the virtual machine;
3. a block device of a file system initiates a data reading request to a physical machine;
4. the physical machine reads data from the disk and returns the data to the virtual machine;
5. the virtual machine feeds the data back to the client to complete the data downloading task of the client.
In other words, in the related art, data read by the client needs to undergo one conversion from the virtual network card to the physical network card before being sent to the client, that is, the data undergoes two disk reads and two memory copies.
According to the embodiment of the disclosure, by extending the existing FTP protocol, the FTP service on the virtual machine provides the client with the location information of the data file to be accessed, that is, the logical address information, the logical address has a mirror image relationship with the physical address of the data file stored on the physical machine, when the client sends a second data request containing at least the logical address of the data file to the physical machine installed with the virtual machine based on the logical address returned by the virtual machine, the physical machine responds to the second data request, finds out the designated data file according to the physical address having a mirror image mapping relationship with the logical address, and sends the found designated data file to the client.
In the embodiment of the present disclosure, a client downloads a data file 1 in a virtual machine FTP shared directory as shown in fig. 1, and the flow and specific steps of data file transmission are substantially as follows:
1. a client sends a data reading request for downloading a data file 1;
2. the FTP service of the virtual machine feeds back the logic address information of the data to the client;
3. the client side directly sends a data reading request to the host according to the fed-back logical address information;
4. the host analyzes the physical address information according to the logical address information, and reads the data on the disk and sends the data to the client.
In other words, in the embodiment of the present disclosure, the data read by the client is that the physical host resolves the received logical address into a physical address, and the data is read out according to the physical address and sent to the client, so that a transmission process of the data from the host to the virtual machine is omitted.
According to the embodiment of the disclosure, after the data request sent by the client for indicating to acquire the designated data file is received, the technical scheme that the existing FTP protocol is expanded to enable the virtual machine to provide the client with the location information of the data file to be accessed is adopted, so that the client can directly send the data request to the physical machine based on the logical address, the technical problems that the data file needs to go from the host to the virtual machine in the data file transmission process and then from the virtual machine to the client for two times of reading and copying in the related technology are at least partially overcome, the processes of reading and copying the data from the host to the virtual machine can be at least saved, the data transmission time is effectively shortened, the technical effects of improving the data transmission speed and efficiency are achieved, and the user experience is greatly improved.
Fig. 2B schematically illustrates a flow diagram for responding to a first data request and returning a specified logical address of a data file to a client according to an embodiment of the present disclosure.
In this embodiment, operation S220 described with reference to fig. 2A (i.e., returning the logical address of the specified data file to the client in response to the first data request) may include operations S221 to S223. As shown in fig. 2B:
in operation S221, identification information of the designated data file is acquired in response to the first data request.
In operation S222, a logical address of the specified data file on the virtual machine is acquired according to the acquired identification information.
In operation S223, the logical address of the specified data file is returned to the client.
It should be noted that the identification information of the data file may include, but is not limited to, a name of the file and an identification (inode) of the file in the file system, and an address of the file in the underlying file system may be obtained according to the identification information, for example, an attribute extension interface may be called, the inode is used as an address of the data file in the file system for Key obtaining request, and a method of specifically obtaining a logical address of the data file on the virtual machine is not limited in this disclosure.
According to the embodiment of the disclosure, after receiving a data request sent by a client, a virtual machine does not send the data request to a file system any more, but feeds back a logical address of the data file on the virtual machine to the client, so that the client directly sends the data request and the logical address to a physical host based on the logical address, and the physical machine directly sends the data file to the client.
Fig. 3 schematically shows a flow chart of an information processing method according to another embodiment of the present disclosure.
As shown in fig. 3, the information processing method is applied to a client, and the method may include operations S310 to S340, in which:
in operation S310, a first data request is transmitted to a virtual machine capable of providing an FTP service to acquire a designated data file.
In operation S320, a logical address of a specified data file returned by the virtual machine in response to the first data request is received.
In operation S330, a second data request is sent to the physical machine installed with the virtual machine based on the logical address returned by the virtual machine, so that the physical machine can find out a specified data file according to the physical address having a mirror mapping relationship with the logical address in response to the second data request, and send the found specified data file to the client.
In operation S340, a designated data file transmitted by a physical machine is received.
It should be noted that, for the client, if the data file provided by the FTP is to be read by the virtual machine, two data requests need to be sent, where a first data request is sent to the virtual machine capable of providing the FTP service, a received logical address of a specified data file returned by the virtual machine in response to the first data request is received, a second data request is sent to the physical machine installed with the virtual machine capable of providing the FTP service, and the received data file is the specified data file found by the physical machine according to the second data request.
According to the embodiment of the disclosure, by adopting the technical scheme that the client sends the data request twice, the physical machine can find out the data file based on the logical address of the request data file sent by the client and directly sends the requested data file to the client, so that the technical problems of low efficiency, low speed and the like caused by the fact that the physical machine needs to send the data file to the virtual machine and then the virtual machine sends the data file to the client in the related technology can be at least overcome, and the technical effects of improving the data transmission efficiency and improving the user experience are achieved.
Fig. 4A schematically illustrates a flow chart of an information processing method according to still another embodiment of the present disclosure.
As shown in fig. 4A, the information processing method is applied to a physical machine in which a virtual machine capable of providing an FTP service is installed, and the method may include operations S410 to S430, in which:
in operation S410, a second data request sent by the client is obtained.
In operation S420, in response to the second data request, the specified data file is found according to the physical address having the mirror mapping relationship with the logical address.
In operation S430, the found designated data file is transmitted to the client.
It should be noted that, for a physical machine installed with a virtual machine capable of providing an FTP service, first, a data request of a logical address of a data file fed back by the virtual machine sent by a client needs to be acquired, and the logical address of the data file in the data request is analyzed to obtain a physical address having a mirror image mapping relationship with the logical address, that is, an address of a data block of the data file on a mirror image medium, and the data file is read and directly sent to the client instead of sending the data file to the virtual machine and sending the data file to the client by the virtual machine.
According to the embodiment of the disclosure, after the physical machine is used for acquiring the data request sent by the client, the logical address in the data request is analyzed, the physical address having a mirror image mapping relation with the logical address is acquired, and the data file is read according to the physical address and is directly sent to the client, so that the physical machine can directly speak the requested data file and send the requested data file to the client without passing through the intermediate transmission process of the virtual machine, the technical problems of slow data transmission and low efficiency caused by the fact that the data file needs to be transmitted twice in the related art are at least partially overcome, the technical effect of improving the data transmission efficiency is achieved, and meanwhile, the burden of equipment can be reduced.
FIG. 4B schematically illustrates a flow diagram for finding a specified data file from a physical address having a mirror mapping relationship with a logical address in response to a second data request according to yet another embodiment of the present disclosure.
In this embodiment, operation S420 (i.e., finding the specified data file from the physical address having the mirror mapping relationship with the logical address in response to the second data request) described with reference to FIG. 4A may include operations S421-S423. As shown in fig. 4B:
in operation S421, in response to the second data request, a physical address of the specified data file on the physical machine in a mirror mapping relationship with a logical address of the specified data file on the virtual machine is obtained.
In operation S422, a specified data file corresponding to the physical address is found.
In operation S423, the found designated data file is transmitted to the client.
After receiving a second data request sent by the client, the physical machine, according to the physical address of the specified data file on the physical machine in the logical address mirror mapping relationship of the data file specified by the data request on the virtual machine, for example, a standard extended data interface (getxattr) can be called, and according to key: the GET _ ADDR is in a local file system (EXT3/EXT4), the address, namely the physical address, of the data block of the data file on the mirror image medium is obtained, the corresponding data file can be found according to the physical address, and finally the found data file is sent to the client. It should be noted that, the embodiment of the present disclosure is not limited to a method for obtaining a physical address having a mirroring relationship corresponding to a logical address according to the logical address.
Through the embodiment of the disclosure, the physical host can obtain the physical address corresponding to the logical address of the data file on the virtual machine, and find the designated data file according to the physical address, and the physical machine can directly send the data file to the client without the transfer of the virtual machine, so that the frequency of data conversion from the virtual network card to the host physical network card when the virtual machine transmits data outwards is effectively reduced, the efficiency of data transmission is improved, and the user experience is better.
FIG. 5A schematically illustrates a block diagram of an information handling system according to an embodiment of the disclosure.
As shown in fig. 5A, the information processing system is applied to a virtual machine capable of providing an FTP service, and the system 500 may include a first receiving module 510 and a first processing module 520. Wherein:
the first receiving module 510 is configured to receive a first data request sent by a client for instructing to obtain a specified data file.
The first processing module 520 is configured to, in response to the first data request, return a logical address of the specified data file to the client, so that the client can send a second data request to the physical machine installed with the virtual machine based on the returned logical address, so that the physical machine can respond to the second data request and find the specified data file according to the physical address having a mirror mapping relationship with the logical address, and send the found specified data file to the client, where the second data request at least includes the logical address.
It is understood that the first receiving module 510 and the first processing module 520 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present invention, at least one of the first receiving module 510 and the first processing module 520 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in a suitable combination of three implementations of software, hardware, and firmware. Alternatively, at least one of the first receiving module 510 and the first processing module 520 may be at least partially implemented as a computer program module, which, when executed by a computer, may perform the functions of the respective module.
According to the embodiment of the disclosure, after the data request sent by the client for indicating to acquire the designated data file is received, the technical scheme that the existing FTP protocol is expanded to enable the virtual machine to provide the client with the location information of the data file to be accessed is adopted, so that the client can directly send the data request to the physical machine based on the logical address, the technical problems that the data file needs to go from the host to the virtual machine in the data file transmission process and then from the virtual machine to the client for two times of reading and copying in the related technology are at least partially overcome, the processes of reading and copying the data from the host to the virtual machine can be at least saved, the data transmission time is effectively shortened, the technical effects of improving the data transmission speed and efficiency are achieved, and the user experience is greatly improved.
Fig. 5B schematically illustrates a block diagram of a first processing module according to an embodiment of the disclosure.
In this embodiment, the first processing module 520 in reference to fig. 5A may include a first acquiring unit 521, a second acquiring unit 522, and a returning unit 523. As shown in fig. 5B, wherein: the first obtaining unit 521 is configured to obtain identification information of the specified data file in response to the first data request, where the identification information includes an inode of the specified data file on the virtual machine. The second obtaining unit 522 is configured to obtain a logical address of the specified data file on the virtual machine according to the obtained identification information. The return unit 523 is configured to return the specified logical address of the data file to the client.
According to the embodiment of the disclosure, after receiving a data request sent by a client, a virtual machine does not send the data request to a file system any more, but feeds back a logical address of the data file on the virtual machine to the client, so that the client directly sends the data request and the logical address to a physical host based on the logical address, and the physical machine directly sends the data file to the client.
FIG. 6 schematically shows a block diagram of an information handling system according to another embodiment of the present disclosure.
As shown in fig. 6, the information processing system is applied to a client, and the system 600 may include a first transmitting module 610, a second receiving module 620, a second transmitting module 630, and a receiving module 640. Wherein:
the first sending module 610 is configured to send a first data request to a virtual machine capable of providing the FTP service to obtain a specified data file.
The second receiving module 620 is configured to receive a logical address of a specified data file returned by the virtual machine in response to the first data request.
The second sending module 630 is configured to send a second data request to the physical machine installed with the virtual machine based on the logical address returned by the virtual machine, so that the physical machine can respond to the second data request and find out a specified data file according to the physical address having a mirror mapping relationship with the logical address, and send the found specified data file to the client, where the second data request at least includes the logical address.
The receiving module 640 is configured to receive a specified data file sent by a physical machine.
According to the embodiment of the disclosure, by adopting the technical scheme that the client sends the data request twice, the physical machine can find out the data file based on the logical address of the request data file sent by the client and directly sends the requested data file to the client, so that the technical problems of low efficiency, low speed and the like caused by the fact that the physical machine needs to send the data file to the virtual machine and then the virtual machine sends the data file to the client in the related technology can be at least overcome, and the technical effects of improving the data transmission efficiency and improving the user experience are achieved.
It is understood that the first sending module 610, the second receiving module 620, the second sending module 630 and the receiving module 640 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present invention, at least one of the first transmitting module 610, the second receiving module 620, the second transmitting module 630 and the receiving module 640 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in a suitable combination of three implementations, software, hardware and firmware. Alternatively, at least one of the first transmitting module 610, the second receiving module 620, the second transmitting module 630 and the receiving module 640 may be at least partially implemented as a computer program module, which when executed by a computer may perform the functions of the respective modules.
FIG. 7A schematically illustrates a block diagram of an information handling system according to yet another embodiment of the present disclosure.
As shown in fig. 7A, the information processing system 700, which is applied to a physical machine installed with a virtual machine capable of providing an FTP service, may include an acquisition module 710, a second processing module 720, and a third transmission module 730. Wherein:
the obtaining module 710 is configured to obtain a second data request sent by the client, where the second data request at least includes a logical address of a specified data file that is sent by the client to the virtual machine to instruct the virtual machine to obtain the specified data file and returned by the virtual machine in response to the first data request.
The second processing module 720 is configured to find the specified data file according to the physical address having the mirror mapping relationship with the logical address in response to the second data request.
The third sending module 730 is configured to send the found specified data file to the client.
According to the embodiment of the disclosure, after the physical machine is used for acquiring the data request sent by the client, the logical address in the data request is analyzed, the physical address having a mirror image mapping relation with the logical address is acquired, and the data file is read according to the physical address and is directly sent to the client, so that the physical machine can directly speak the requested data file and send the requested data file to the client without passing through the intermediate transmission process of the virtual machine, the technical problems of slow data transmission and low efficiency caused by the fact that the data file needs to be transmitted twice in the related art are at least partially overcome, the technical effect of improving the data transmission efficiency is achieved, and meanwhile, the burden of equipment can be reduced.
It is understood that the obtaining module 710, the second processing module 720 and the third sending module 730 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present invention, at least one of the obtaining module 710, the second processing module 720 and the third sending module 730 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in a suitable combination of three implementations of software, hardware and firmware. Alternatively, at least one of the acquiring module 710, the second processing module 720 and the third transmitting module 730 may be at least partially implemented as a computer program module, which, when executed by a computer, may perform the functions of the respective modules.
Fig. 7B schematically illustrates a block diagram of a second processing module according to yet another embodiment of the present disclosure.
In this embodiment, the second processing module 720 in fig. 7A may include a third obtaining unit 720, a processing unit 722, and a transmitting unit 723. As shown in fig. 7B, wherein: the third obtaining unit 720 is configured to obtain, in response to the second data request, a physical address of the specified data file on the physical machine in a mirror mapping relationship with a logical address of the specified data file on the virtual machine. The processing unit 722 is used to find a specified data file corresponding to the physical address. The sending unit 723 is configured to send the found specified data file to the client.
Through the embodiment of the disclosure, the physical host can obtain the physical address corresponding to the logical address of the data file on the virtual machine, and find the designated data file according to the physical address, and the physical machine can directly send the data file to the client without the transfer of the virtual machine, so that the frequency of data conversion from the virtual network card to the host physical network card when the virtual machine transmits data outwards is effectively reduced, the efficiency of data transmission is improved, and the user experience is better.
Fig. 8 schematically shows a block diagram of a computer system suitable for implementing an information processing method to which an embodiment of the present disclosure is applied. The computer system illustrated in FIG. 8 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 8, a computer system 800 according to an embodiment of the disclosure includes a processor 810, a readable storage medium 820. The computer system 800 may perform the information processing method described above with reference to fig. 2A, 2B, 3, 4A, 4B.
In particular, processor 810 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 810 may also include on-board memory for caching purposes. Processor 810 may be a single processing unit or a plurality of processing units for performing the different actions of the method flows described with reference to fig. 2A, 2B, 3, 4A, 4B according to embodiments of the present disclosure.
Computer-readable storage medium 820 may be, for example, any medium that can contain, store, communicate, propagate, or transport the instructions. For example, a readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the readable storage medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
The computer-readable storage medium 820 may include a computer program 821, which computer program 821 may include code/computer-executable instructions that, when executed by the processor 510, cause the processor 810 to perform a method flow, such as described above in connection with fig. 2A, 2B, 3, 4A, 4B, and any variations thereof.
The computer program 821 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 821 may include one or more program modules, including for example 821A, modules 821B, … …. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, when these program modules are executed by the processor 810, the processor 810 may execute the method flows described above in connection with fig. 2A, 2B, 3, 4A, 4B, and any variations thereof, for example.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. An information processing method is applied to a virtual machine capable of providing FTP service, and comprises the following steps:
receiving a first data request which is sent by a client and used for indicating to acquire a specified data file; and
and in response to the first data request, returning a logical address of the specified data file to the client, so that the client can send a second data request to a physical machine installed with the virtual machine based on the returned logical address, so that the physical machine can respond to the second data request and find the specified data file according to a physical address having a mirror image mapping relation with the logical address, and send the found specified data file to the client, wherein the second data request at least comprises the logical address.
2. The method of claim 1, wherein responding to the first data request and returning the logical address of the specified data file to the client comprises:
responding to the first data request, and acquiring identification information of the specified data file, wherein the identification information comprises an index node of the specified data file on the virtual machine;
acquiring a logic address of the specified data file on the virtual machine according to the acquired identification information; and
and returning the logic address of the specified data file to the client.
3. An information processing method comprising:
sending a first data request to a virtual machine capable of providing FTP service to acquire a specified data file;
receiving a logical address of the specified data file returned by the virtual machine in response to the first data request;
sending a second data request to a physical machine provided with the virtual machine based on the logical address returned by the virtual machine, so that the physical machine can respond to the second data request and find out the specified data file according to a physical address having a mirror image mapping relation with the logical address, and sending the found specified data file to a client, wherein the second data request at least comprises the logical address; and
and receiving the designated data file sent by the physical machine.
4. An information processing method is applied to a physical machine provided with a virtual machine capable of providing FTP service, and comprises the following steps:
acquiring a second data request sent by a client, wherein the second data request at least comprises a logical address of a specified data file, which is sent by the client to the virtual machine for indicating to acquire the first data request of the specified data file and returned by the virtual machine in response to the first data request;
in response to the second data request, finding the specified data file according to a physical address having a mirror image mapping relation with the logical address; and
and sending the found specified data file to the client.
5. The method of claim 4, wherein, in response to the second data request, finding the specified data file from a physical address having a mirror mapping relationship with the logical address comprises:
in response to the second data request, acquiring the physical address of the specified data file on the physical machine, wherein the specified data file has a mirror image mapping relation with the logical address of the specified data file on the virtual machine;
finding out the specified data file corresponding to the physical address; and
and sending the found specified data file to the client.
6. An information processing system applied to a virtual machine capable of providing an FTP service, comprising:
the first receiving module is used for receiving a first data request which is sent by a client and used for indicating to acquire a specified data file; and
the first processing module is used for responding to the first data request, returning the logic address of the specified data file to the client, so that the client can send a second data request to a physical machine provided with the virtual machine based on the returned logic address, so that the physical machine can respond to the second data request, find the specified data file according to a physical address with a mirror image mapping relation with the logic address, and send the found specified data file to the client, wherein the second data request at least comprises the logic address.
7. The system of claim 6, wherein the first processing module comprises:
a first obtaining unit, configured to obtain, in response to the first data request, identification information of the specified data file, where the identification information includes an index node of the specified data file on the virtual machine;
a second obtaining unit, configured to obtain, according to the obtained identification information, a logical address of the specified data file on the virtual machine; and
and the return unit is used for returning the logic address of the specified data file to the client.
8. An information processing system comprising:
the system comprises a first sending module, a second sending module and a sending module, wherein the first sending module is used for sending a first data request to a virtual machine capable of providing FTP service so as to acquire a specified data file;
a second receiving module, configured to receive a logical address of the specified data file returned by the virtual machine in response to the first data request;
a second sending module, configured to send a second data request to a physical machine on which the virtual machine is installed based on the logical address returned by the virtual machine, so that the physical machine can respond to the second data request and find out the specified data file according to a physical address having a mirror image mapping relationship with the logical address, and send the found specified data file to a client, where the second data request at least includes the logical address; and
and the receiving module is used for receiving the specified data file sent by the physical machine.
9. An information processing system applied to a physical machine in which a virtual machine capable of providing an FTP service is installed, comprising:
an obtaining module, configured to obtain a second data request sent by a client, where the second data request at least includes a logical address of a specified data file, where the logical address is sent by the client to the virtual machine, and the specified data file is returned by the virtual machine in response to a first data request indicating to obtain the specified data file;
the second processing module is used for responding to the second data request and finding out the specified data file according to the physical address which has a mirror image mapping relation with the logical address; and
and the third sending module is used for sending the found specified data file to the client.
10. The system of claim 9, wherein the second processing module comprises:
a third obtaining unit, configured to obtain, in response to the second data request, the physical address of the specified data file on the physical machine, where the specified data file has a mapping relationship with a logical address mirror of the specified data file on the virtual machine;
the processing unit is used for finding out the specified data file corresponding to the physical address; and
and the sending unit is used for sending the found specified data file to the client.
CN201710839502.7A 2017-09-15 2017-09-15 Information processing method and apparatus thereof Active CN107656877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710839502.7A CN107656877B (en) 2017-09-15 2017-09-15 Information processing method and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710839502.7A CN107656877B (en) 2017-09-15 2017-09-15 Information processing method and apparatus thereof

Publications (2)

Publication Number Publication Date
CN107656877A CN107656877A (en) 2018-02-02
CN107656877B true CN107656877B (en) 2021-06-15

Family

ID=61130634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710839502.7A Active CN107656877B (en) 2017-09-15 2017-09-15 Information processing method and apparatus thereof

Country Status (1)

Country Link
CN (1) CN107656877B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976876B (en) * 2019-03-20 2021-11-16 联想(北京)有限公司 Accelerator management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571904A (en) * 2011-10-11 2012-07-11 浪潮电子信息产业股份有限公司 Construction method of NAS cluster system based on modularization design
CN103389884A (en) * 2013-07-29 2013-11-13 华为技术有限公司 Method for processing input/output request, host, server and virtual machine
CN104238955A (en) * 2013-06-20 2014-12-24 杭州迪普科技有限公司 Device and method for allocating storage resources on demand in virtual manner
US9241044B2 (en) * 2013-08-28 2016-01-19 Hola Networks, Ltd. System and method for improving internet communication by using intermediate nodes
CN106161640A (en) * 2016-07-24 2016-11-23 成都育芽科技有限公司 A kind of virtual machine two-stage optimizing management and running platform based on cloud computing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7562203B2 (en) * 2006-09-27 2009-07-14 Network Appliance, Inc. Storage defragmentation based on modified physical address and unmodified logical address

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571904A (en) * 2011-10-11 2012-07-11 浪潮电子信息产业股份有限公司 Construction method of NAS cluster system based on modularization design
CN104238955A (en) * 2013-06-20 2014-12-24 杭州迪普科技有限公司 Device and method for allocating storage resources on demand in virtual manner
CN103389884A (en) * 2013-07-29 2013-11-13 华为技术有限公司 Method for processing input/output request, host, server and virtual machine
US9241044B2 (en) * 2013-08-28 2016-01-19 Hola Networks, Ltd. System and method for improving internet communication by using intermediate nodes
CN106161640A (en) * 2016-07-24 2016-11-23 成都育芽科技有限公司 A kind of virtual machine two-stage optimizing management and running platform based on cloud computing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
云计算中能耗和性能感知的虚拟机优化部署算法;房丙午等;《计算机工程与科学》;20161231;全文 *

Also Published As

Publication number Publication date
CN107656877A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
US11249937B1 (en) Storage adapter device for communicating with network storage
CN110401724B (en) File management method, file transfer protocol server and storage medium
JP6960993B2 (en) Data sharing method between applications and web browser
US9870374B2 (en) Replicating data across data centers
KR20130135134A (en) Installing application remotely
KR20160014043A (en) Efficient programmatic memory access over network file access protocols
CN110276194B (en) Information processing method, information processing apparatus, and electronic device
CN104205050A (en) Accessing a device on a remote machine
CN110928557B (en) Method, device and system for realizing migration of operating system
CN106817388B (en) Method and device for acquiring data by virtual machine and host machine and system for accessing data
CN110011933B (en) Method, apparatus and computer readable storage medium for transmitting data packet
KR20140101370A (en) Autonomous network streaming
CN106598692A (en) Method for creating mirror image file in logical volume and starting virtual machine, and server
CN112579311B (en) Method for accessing solid state disk and storage device
CN110196843B (en) File distribution method based on container cluster and container cluster
KR20210084417A (en) Method for monitoring web server based on cloud streaming service and apparatus for the same
CN115080479B (en) Transmission method, server, device, bare metal instance and baseboard management controller
CN104601666A (en) Log service method and cloud platform
CN107656877B (en) Information processing method and apparatus thereof
US10516628B2 (en) Transfer device, transfer system, and transfer method
CN113422669B (en) Data transmission method, device and system, electronic equipment and storage medium
US10735514B2 (en) Remote application configuration on network-attached storage
US10545667B1 (en) Dynamic data partitioning for stateless request routing
CN113468445A (en) Request processing method and device, electronic equipment and computer readable medium
WO2016075566A1 (en) Data upload in a network

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