The method of reproducting content between desktop cloud system external equipment
Technical field
The present invention relates to cloud computing and technical field of virtualization, particularly a kind of method of reproducting content between desktop cloud system external equipment.
Background technology
In the desktop cloud system, terminal is connected to remote virtual machine by the network transmission protocol, operating remote virtual machine desktop, if use universal serial bus device, corresponding device is connected to the USB (universal serial bus) of terminal equipment, terminal equipment is used the corresponding network transmission protocol, perhaps this hanging equipment is arrived to remote virtual machine, perhaps the USB (universal serial bus) on terminal is redirected on the corresponding virtual interface of remote virtual machine, above two kinds of modes, can make the user access normally this equipment, operate.
Because the path between terminal equipment and remote virtual machine need to pass through network, so during the universal serial bus device on access terminal, need certain network capacity, so, in some basic operations, during such as copied files, not only need to consider the time delay that the literacy of universal serial bus device literacy and remote virtual machine is brought, also to consider the time delay that data are brought in transmission over networks, the extra time delay that this desktop cloud system is brought, unavoidable in the ordinary course of things, but at some in particular cases, but can reduce or even eliminate by optimizing, that is exactly that two universal serial bus devices on same terminal are when copying file mutually.
Referring to Fig. 1, in the situation that without optimizing, if another external equipment on from an external equipment copied files on terminal to this terminal, the network transmission protocol of mentioning before needing arrives data the dummy general serial bus interface of remote virtual machine by Internet Transmission, by the remote virtual machine computing capability, process, then by remote virtual machine by result from another dummy general serial bus interface by Internet Transmission to terminal equipment.There is much additional consumption obviously in this processing mode, and these consumption are all avoidable.
Because terminal equipment itself possesses certain computing capability, and these computing capabilitys fully enough are used for copied files, so optimal way that can be achieved as follows: if a plurality of memory devices on same terminal equipment are copied file mutually, selection gets around the step of Internet Transmission, by terminal equipment copy procedure by oneself, data are directly completed to copy procedure on terminal equipment.Like this, not only removed the time delay that twice Internet Transmission bring of having a try from, improved performance, the factors such as network failure of also having avoided Internet Transmission to bring, improved the reliability of data copies.
Summary of the invention
The method that the purpose of this invention is to provide reproducting content between a kind of desktop cloud system external equipment, solve defect and deficiency that prior art exists.
The invention provides the method for reproducting content between a kind of desktop cloud system external equipment, the remote virtual machine that described desktop cloud system comprises some terminals, is arranged on the some external equipments on described terminal and is connected with described terminal network, described external equipment connects described terminal by universal serial bus device, when described universal serial bus device carries out data copy operation, memory address to described data copy judges, if described memory address, in described terminal, completes described data copy procedure by described terminal by its equipment computing capability.
Described method judges described memory address by following steps: described terminal is when connecting described remote virtual machine by the network transmission protocol, generate corresponding information storage addresses table, preserve physical equipment position corresponding to described memory address, when described universal serial bus device carries out data copy operation, judge that physical equipment corresponding to its memory address is at described remote virtual machine or on described terminal.
Whenever there being new external universal serial bus device to be linked into described terminal, or original external universal serial bus device and described terminal are upgraded described information storage addresses table, the change of recording described information storage addresses table while disconnecting.
Described method also comprises: when described universal serial bus device carries out data copy operation, memory address to described data copy judges, if described memory address is at described remote virtual machine, by described terminal, transfer data to described remote virtual machine and process, described remote virtual machine completes described data copy procedure by its equipment computing capability.
The present invention has the determining step to the memory address of data copy, if the judgement memory address completes described data copy procedure by described terminal by its equipment computing capability, and needn't carry out data copy operation by remote virtual machine in described terminal.The present invention can reduce data copy time delay, because whole copies data process is all to complete in terminal equipment this locality, do not need the participation of remote virtual machine, can remove from and transfer data to remote virtual machine, and by remote virtual machine, transfer of data is returned to two sections network service processes of terminal equipment, also removed this two sections time delays that the network service process is brought simultaneously from.The present invention can also increase the reliability of data copy, due to the process of having removed network service from, has eliminated the impacts such as data transmission fails that unstable networks is brought fully.
The accompanying drawing explanation
Fig. 1 is the schematic diagram of reproducting content between current desktop cloud system external equipment;
Fig. 2 is the schematic diagram of reproducting content between the desktop cloud system external equipment of one embodiment of the invention.
Embodiment
Below in conjunction with drawings and embodiments, further illustrate technical scheme of the present invention.
The invention provides the method for reproducting content between a kind of desktop cloud system external equipment, the remote virtual machine that described desktop cloud system comprises some terminals, is arranged on the some external equipments on described terminal and is connected with described terminal network, described external equipment connects described terminal by universal serial bus device, when described universal serial bus device carries out data copy operation, memory address to described data copy judges, if described memory address, in described terminal, completes described data copy procedure by described terminal by its equipment computing capability.
As an embodiment, described method judges described memory address by following steps: described terminal is when connecting described remote virtual machine by the network transmission protocol, generate corresponding information storage addresses table, preserve physical equipment position corresponding to described memory address, when described universal serial bus device carries out data copy operation, judge that physical equipment corresponding to its memory address is at described remote virtual machine or on described terminal.
As an embodiment, whenever there being new external universal serial bus device to be linked into described terminal, or original external universal serial bus device and described terminal are upgraded described information storage addresses table, the change of recording described information storage addresses table while disconnecting.
As an embodiment, described method also comprises: when described universal serial bus device carries out data copy operation, memory address to described data copy judges, if described memory address is at described remote virtual machine, by described terminal, transfer data to described remote virtual machine and process, described remote virtual machine completes described data copy procedure by its equipment computing capability.
Method of the present invention, during by the universal serial bus device copies data file on terminal, copy the judgement of destination address, if the destination address of copy is also on terminal, remove by the process of Internet Transmission to remote virtual machine direct computing capability processed copy process by terminal equipment from.
Referring to Fig. 2, the present invention mainly contains following steps when implementing:
1, terminal equipment is when connecting remote virtual machine by the network transmission protocol, generate corresponding storage information address table, preserve the corresponding physical equipment position of corresponding memory address, mainly will determine corresponding physical equipment is at remote virtual machine place cluster, or on terminal equipment.
2, whenever there being new external universal serial bus device to be linked into terminal equipment, or original external universal serial bus device and terminal equipment upgrade the storage information address table, the change of record storage information address table while disconnecting.
When having the instruction of data copy to occur, differentiate, if the equipment connected from terminal equipment copies the equipment that another station terminal equipment connects to, directly by the computing capability of terminal equipment, to be processed, this locality directly completes copy function; If not, constant according to original logic, namely by described terminal, transfer data to described remote virtual machine and process, described remote virtual machine completes described data copy procedure by its equipment computing capability.。
Those of ordinary skill in the art will be appreciated that, above execution mode is only that the present invention is described, and not be used as limitation of the invention, as long as in connotation scope of the present invention, all will drop in claims scope of the present invention variation, the modification of above execution mode.