Movatterモバイル変換


[0]ホーム

URL:


CN107656877B - Information processing method and apparatus thereof - Google Patents

Information processing method and apparatus thereof
Download PDF

Info

Publication number
CN107656877B
CN107656877BCN201710839502.7ACN201710839502ACN107656877BCN 107656877 BCN107656877 BCN 107656877BCN 201710839502 ACN201710839502 ACN 201710839502ACN 107656877 BCN107656877 BCN 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 LtdfiledCriticalLenovo Beijing Ltd
Priority to CN201710839502.7ApriorityCriticalpatent/CN107656877B/en
Publication of CN107656877ApublicationCriticalpatent/CN107656877A/en
Application grantedgrantedCritical
Publication of CN107656877BpublicationCriticalpatent/CN107656877B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

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 thesystem 500 may include afirst receiving module 510 and afirst processing module 520. Wherein:
thefirst receiving module 510 is configured to receive a first data request sent by a client for instructing to obtain a specified data file.
Thefirst 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 thefirst receiving module 510 and thefirst 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 thefirst receiving module 510 and thefirst 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 thefirst receiving module 510 and thefirst 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, thefirst processing module 520 in reference to fig. 5A may include a first acquiringunit 521, a second acquiringunit 522, and a returningunit 523. As shown in fig. 5B, wherein: the first obtainingunit 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 obtainingunit 522 is configured to obtain a logical address of the specified data file on the virtual machine according to the obtained identification information. Thereturn 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 thesystem 600 may include afirst transmitting module 610, asecond receiving module 620, asecond transmitting module 630, and areceiving module 640. Wherein:
thefirst 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.
Thesecond 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.
Thesecond 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 receivingmodule 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 thefirst sending module 610, thesecond receiving module 620, thesecond sending module 630 and the receivingmodule 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 thefirst transmitting module 610, thesecond receiving module 620, thesecond transmitting module 630 and the receivingmodule 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 thefirst transmitting module 610, thesecond receiving module 620, thesecond transmitting module 630 and the receivingmodule 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, theinformation processing system 700, which is applied to a physical machine installed with a virtual machine capable of providing an FTP service, may include anacquisition module 710, asecond processing module 720, and athird transmission module 730. Wherein:
the obtainingmodule 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.
Thesecond 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.
Thethird 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 obtainingmodule 710, thesecond processing module 720 and thethird 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 obtainingmodule 710, thesecond processing module 720 and thethird 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 acquiringmodule 710, thesecond processing module 720 and thethird 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, thesecond processing module 720 in fig. 7A may include a third obtainingunit 720, aprocessing unit 722, and a transmittingunit 723. As shown in fig. 7B, wherein: the third obtainingunit 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. Theprocessing unit 722 is used to find a specified data file corresponding to the physical address. The sendingunit 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, acomputer system 800 according to an embodiment of the disclosure includes aprocessor 810, areadable storage medium 820. Thecomputer 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. Theprocessor 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 acomputer program 821, whichcomputer program 821 may include code/computer-executable instructions that, when executed by theprocessor 510, cause theprocessor 810 to perform a method flow, such as described above in connection with fig. 2A, 2B, 3, 4A, 4B, and any variations thereof.
Thecomputer program 821 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code incomputer 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 theprocessor 810, theprocessor 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)

CN201710839502.7A2017-09-152017-09-15Information processing method and apparatus thereofActiveCN107656877B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710839502.7ACN107656877B (en)2017-09-152017-09-15Information processing method and apparatus thereof

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710839502.7ACN107656877B (en)2017-09-152017-09-15Information processing method and apparatus thereof

Publications (2)

Publication NumberPublication Date
CN107656877A CN107656877A (en)2018-02-02
CN107656877Btrue CN107656877B (en)2021-06-15

Family

ID=61130634

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710839502.7AActiveCN107656877B (en)2017-09-152017-09-15Information processing method and apparatus thereof

Country Status (1)

CountryLink
CN (1)CN107656877B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109976876B (en)*2019-03-202021-11-16联想(北京)有限公司Accelerator management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102571904A (en)*2011-10-112012-07-11浪潮电子信息产业股份有限公司Construction method of NAS cluster system based on modularization design
CN103389884A (en)*2013-07-292013-11-13华为技术有限公司Method for processing input/output request, host, server and virtual machine
CN104238955A (en)*2013-06-202014-12-24杭州迪普科技有限公司Device and method for allocating storage resources on demand in virtual manner
US9241044B2 (en)*2013-08-282016-01-19Hola Networks, Ltd.System and method for improving internet communication by using intermediate nodes
CN106161640A (en)*2016-07-242016-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 numberPriority datePublication dateAssigneeTitle
US7562203B2 (en)*2006-09-272009-07-14Network Appliance, Inc.Storage defragmentation based on modified physical address and unmodified logical address

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102571904A (en)*2011-10-112012-07-11浪潮电子信息产业股份有限公司Construction method of NAS cluster system based on modularization design
CN104238955A (en)*2013-06-202014-12-24杭州迪普科技有限公司Device and method for allocating storage resources on demand in virtual manner
CN103389884A (en)*2013-07-292013-11-13华为技术有限公司Method for processing input/output request, host, server and virtual machine
US9241044B2 (en)*2013-08-282016-01-19Hola Networks, Ltd.System and method for improving internet communication by using intermediate nodes
CN106161640A (en)*2016-07-242016-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 numberPublication date
CN107656877A (en)2018-02-02

Similar Documents

PublicationPublication DateTitle
CN105740048B (en) An image management method, device and system
CN104951252B (en)A kind of data access method and PCIe storage devices
CN110401724B (en)File management method, file transfer protocol server and storage medium
CN104020961B (en)Distributed data storage method, apparatus and system
KR20130135134A (en)Installing application remotely
KR20140101370A (en)Autonomous network streaming
KR20160014043A (en)Efficient programmatic memory access over network file access protocols
CN110196843B (en)File distribution method based on container cluster and container cluster
CN110276194B (en)Information processing method, information processing apparatus, and electronic device
CN103248695A (en)File downloading method and system and server node in CDN
CN106598692A (en)Method for creating mirror image file in logical volume and starting virtual machine, and server
CN106817388B (en)Method and device for acquiring data by virtual machine and host machine and system for accessing data
CN113468445B (en)Request processing method, apparatus, electronic device and computer readable medium
CN110928557A (en)Method, device and system for realizing migration of operating system
WO2024217333A1 (en)Io access method and apparatus based on block storage, and electronic device and medium
CN113422669B (en)Data transmission method, device and system, electronic equipment and storage medium
US20160132522A1 (en)Local content sharing through edge caching and time-shifted uploads
US10382575B2 (en)Program execution system, method of executing program, and computer-readable storage medium
CN107656877B (en)Information processing method and apparatus thereof
US11722368B2 (en)Setting change method and recording medium recording setting change program
US10735514B2 (en)Remote application configuration on network-attached storage
US9854053B1 (en)Providing faster data access using multiple caching servers
CN117938830A (en) File sharing method, communication system and electronic device
CN117633392A (en)Page publishing method and device
CN113726838B (en)File transmission method, device, equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp