A kind of speed-measuring method that is applied to user terminal based on cloud computing
Technical field
The present invention relates to a plurality of technical fields such as cloud computing, network, Streaming Media, be specifically related to a kind of speed-measuring method that is applied to user terminal based on cloud computing.
Background technology
Cloud computing refers to payment and the use pattern of IT infrastructure, refer to by network with as required, the mode of easily expansion obtains resource requirement; Broad sense cloud computing refers to payment and the use pattern of service, refer to by network with as required, the mode of easily expansion obtains required service.It is relevant with software, the Internet that this service can be IT, also other services.Cloud computing (Cloud Computing) is the product that the traditional computers such as grid computing (Grid Computing), Distributed Calculation (DistributedComputing), parallel computation (Parallel Computing), effectiveness calculating (Utility Computing), the network storage (Network Storage Technologies), virtual (Virtualization), load balancing (Load Balance) and network technical development merge.
Yet first to determine in cloud computing system, whether user terminal possesses the primary condition that obtains cloud service, as the time delay of subscriber terminal equipment to Cloud Server, the decoding capability of terminal equipment and connection speed etc., these conditions all meet the requirements, and can meet the standard that user uses cloud service.
At present, in computer network field, the instrument that tests the speed, often by detecting the file size of downloading in the unit interval, calculates user's network to the bandwidth between server; Can this speed-measuring method can use conventional network application for user, as browsing page, download, video playback provide normative reference.But cannot can use the criterion of cloud service as user.And traditional speed-measuring method, owing to needing at the beginning to measure bandwidth from server download file, therefore, regardless of user's network, all needs within tens seconds, to a minutes, just can return to the result that tests the speed.
Apparently, provide a kind of this comprehensive speed-measuring method for cloud service, for cloud service is required, satisfied test the speed that to require that doing comprehensively tests the speed be the problem of needs solution at present.And the present invention mainly studies for cloud service, how to realize when comprehensively testing the speed the accuracy that raising is tested the speed greatly and comprehensive.
Summary of the invention
For addressing the above problem, the invention provides a kind of speed-measuring method that is applied to user terminal based on cloud computing, to reach, measure user terminal to the time delay of Cloud Server, and decoding terminals ability and bandwidth obtain the comprehensively object of the value of testing the speed.
The invention provides a kind of speed-measuring method that is applied to user terminal based on cloud computing, comprising: set up the mechanism that tests the speed, definition relevant parameter, speed-measuring method, exports the result that tests the speed; Specifically comprise:
One, set up the mechanism that tests the speed, definition relevant parameter:
First according to the selected COS sense terminals of user terminal equipment, to the delay value of destination server, be ping value;
The ultimate resolution of sense terminals device display, is defined as a;
The ultimate resolution of the video that sense terminals equipment can be decoded, is defined as b, and b≤a;
According to a, b, the single frames picture complexity of application content and video pictures pace of change are determined and are obtained code check required value, are defined as m;
Detection bandwidth, obtains bandwidth value, is defined as n;
The calculating value of testing the speed p, p=n-m, requires p > 0;
Two, speed-measuring method:
1) first, client, according to user-selected COS, to carrying out delay value test with the server (destination server) of terminal equipment pairing, requires delay value lower than the highest desired delay value;
2) when delay value returns to the result that tests the speed during higher than desired the highest delay value, notify user to wait for and again test the speed or exit; When delay value is during lower than desired most high-latency value, the ultimate resolution b of the video that the ultimate resolution a of sense terminals equipment sense terminals equipment can be decoded, require b≤a to pass through, according to a, b, the single frames picture complexity of application content and video pictures pace of change are determined and are obtained code check required value m;
3) terminal equipment user end to server speed measuring module downloading data, judges that according to file size and download time active user is to the bandwidth value n of destination server;
4) according to m value and n value, calculate the value of testing the speed; The value of testing the speed p=n-m, requires the value of testing the speed p > 0 to meet the minimum requirements value of testing the speed.
Three, export the result that tests the speed
The output result that tests the speed, p > 0 meets the minimum requirements value of testing the speed, and tests the speed by report server startup relative program; Test the speed and do not pass through, 0 of p < notifies user to wait for again to test the speed or exit.
Described terminal equipment can be PC, and any computing capabilitys such as mobile terminal or TV set-top box are the equipment of competent decoded video streams enough.
Described client is to operate on terminal equipment, to access the test the speed application program of decoding capability of having of the Internet.
The size of described the highest delay value is applied the requirement of real-time operation is determined according to user-selected COS;
Described m value is according to a, b, and single frames picture complexity and the video pictures pace of change of application content are determined; The in the situation that of definite a and b, m value with the single frames picture complexity of application content and video pictures pace of change wherein the variation of any one or its combination change, specifically the single frames picture complexity of application content is higher or video pictures pace of change is faster, m value is larger, otherwise m value is less.
Further, when being applied to game or video-see, in the step 2 of described speed-measuring method, a, b and m meet following rule,
As b≤a≤320*240, code check required value m is 300k;
As 320*240≤b≤a≤640*480, limiting code check m is 600k;
As 640*480≤b≤a≤1024*768, limiting code check m is 1000k.
Further, described client, obtains and tests the speed result by report the test downloader, and maximum speed of download is limited to p, the data of downloading for downloading request.
Preferably, a kind of speed-measuring method that is applied to user terminal based on cloud computing, comprises step:
1) first, client, according to user-selected COS, to carrying out delay value test with the server (destination server) of terminal equipment pairing, requires delay value lower than the highest desired delay value; The size of described the highest delay value is applied the requirement of real-time operation is determined according to user-selected COS;
2) when delay value returns to the result that tests the speed during higher than desired the highest delay value, notify user to wait for and again test the speed or exit; When delay value is during lower than desired most high-latency value, the ultimate resolution b of the video that the ultimate resolution a of sense terminals equipment sense terminals equipment can be decoded, requires b≤a to pass through,
3) client uploads onto the server the b value result recording by the Internet, and downloads to server speed measuring module the video file corresponding with user-selected application that meets b value resolution, has downloaded the described video file of analysis and has obtained code check required value m; And judge that according to file size and download time active user is to the bandwidth value n of destination server;
4) according to m value and n value, calculate the value of testing the speed; The i.e. value of testing the speed p=n-m, requires the value of testing the speed p > 0 to meet the minimum requirements value of testing the speed, and tests the speed by report server startup relative program; Test the speed and do not pass through, 0 of p < notifies user to wait for again to test the speed or exit.
beneficial effect of the present invention is:
1. the present invention first tests delay value, then the resolution of terminal equipment and decoding capability are tested, and then measuring tape obtains the value of testing the speed after wide, contrasts general this speed-measuring method of speed-measuring method and has more saved the time of testing the speed accurately simultaneously.
2. speed-measuring method of the present invention can first be measured the network delay of user and server before bandwidth detection, only needs the time in 1 second, can know whether user meets the necessary condition of using cloud service.
3. the present invention measures user terminal to the time delay of Cloud Server, and decoding terminals ability and bandwidth obtain the comprehensively value of testing the speed, and the result that tests the speed reference value is large.
Accompanying drawing explanation
Fig. 1 is the flow chart of the speed-measuring method that is applied to user terminal based on cloud computing;
Fig. 2 is the machine-processed schematic flow sheet that tests the speed;
Fig. 3 is a kind of embodiment schematic flow sheet of the speed-measuring method that is applied to user terminal based on cloud computing;
Fig. 4 is applied to game or the speed-measuring method specific embodiment schematic diagram of video-see for take mobile device as example.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in detail:
Fig. 1 is the flow chart of the speed-measuring method that is applied to user terminal based on cloud computing, as shown in Figure 1: the invention provides a kind of speed-measuring method that is applied to user terminal, comprising: set up the mechanism that tests the speed, definition relevant parameter, speed-measuring method, exports the result that tests the speed; Specifically comprise step:
One, set up the mechanism that tests the speed, definition relevant parameter, Fig. 2 is the machine-processed schematic flow sheet that tests the speed of the present invention, as shown in the figure:
First according to the selected COS sense terminals of user terminal equipment, to the delay value of destination server, be ping value;
The ultimate resolution of sense terminals device display, is defined as a;
The ultimate resolution of the video that sense terminals equipment can be decoded, is defined as b, and b≤a;
According to a, b, the single frames picture complexity of application content and video pictures pace of change are determined and are obtained code check required value, are defined as m;
Detection bandwidth, obtains bandwidth value, is defined as n;
The calculating value of testing the speed p, p=n-m, requires p > 0.
Two, speed-measuring method:
First, client, according to user-selected COS, to carrying out delay value test with the server (destination server) of terminal equipment pairing, requires delay value lower than the highest desired delay value; The size of described the highest delay value is applied the requirement of real-time operation is determined according to user-selected COS.When delay value returns to the result that tests the speed during higher than desired the highest delay value, notify user to wait for and again test the speed or exit.When delay value is during lower than desired most high-latency value, the ultimate resolution b of the video that the ultimate resolution a of sense terminals equipment sense terminals equipment can be decoded, require b≤a to pass through, according to a, b, the single frames picture complexity of application content and video pictures pace of change are determined and are obtained code check required value m; The in the situation that of definite a and b, m value with the single frames picture complexity of application content and video pictures pace of change wherein the variation of any one or its combination change, specifically the single frames picture complexity of application content is higher or video pictures pace of change is faster, m value is larger, otherwise m value is less.Terminal equipment user end to server speed measuring module downloading data, judges that according to file size and download time active user is to the bandwidth value n of destination server; According to m value and n value, calculate the value of testing the speed; The value of testing the speed p=n-m, requires the value of testing the speed p > 0 to meet the minimum requirements value of testing the speed.
Three, export the result that tests the speed
The output result that tests the speed, p > 0 meets the minimum requirements value of testing the speed, and tests the speed by report server startup relative program; Test the speed and do not pass through, 0 of p < notifies user to wait for again to test the speed or exit.
Described terminal equipment can be PC, and any computing capabilitys such as mobile terminal or TV set-top box are the equipment of competent decoded video streams enough.
Described client is to operate on terminal equipment, to access the test the speed application program of decoding capability of having of the Internet.
When being applied to game or video-see, in the step 2 of described speed-measuring method, a, b and m meet following rule:
As b≤a≤320*240, code check required value m is 300k;
As 320*240≤b≤a≤640*480, code check required value m is 600k;
As 640*480≤b≤a≤1024*768, code check required value m is 1000k.
Another kind of situation is that client tests the speed result by report the test downloader in acquisition, and maximum speed of download is limited to p, the data of downloading for downloading request; Can realize as functions such as the following objects for appreciation in the limit of game.
Embodiment 1
Fig. 3 is a kind of embodiment schematic flow sheet of the speed-measuring method that is applied to user terminal based on cloud computing; As shown in the figure, a kind of speed-measuring method that is applied to user terminal based on cloud computing, comprises step:
1) first, client is selected document browsing according to user-selected COS as user,, to carrying out delay value test with the server (destination server) of terminal equipment pairing, according to user-selected COS, apply the requirement of real-time operation is determined to the highest delay value is 2s;
2) when delay value returns to the result that tests the speed during higher than desired the highest delay value, notify user to wait for and again test the speed or exit; Recording delay value is 1s, and when delay value is lower than desired most high-latency value, the ultimate resolution a of sense terminals equipment is the ultimate resolution b≤a≤640*480 of the video that can decode of 640*480 sense terminals equipment, requires b≤a to pass through;
3) client uploads onto the server the b value result recording by the Internet, and downloads to server speed measuring module the video file corresponding with user-selected application that meets b value resolution, has downloaded the described video file of analysis and has obtained code check required value m; And judge that according to file size and download time active user is to the bandwidth value n of destination server;
4) according to m value and n value, calculate the value of testing the speed; The i.e. value of testing the speed p=n-m, requires the value of testing the speed p > 0 to meet the minimum requirements value of testing the speed, and tests the speed by report server startup relative program; Test the speed and do not pass through, 0 of p < notifies user to wait for again to test the speed or exit.
When play below on the limit that is applied to play, client tests the speed result by report the test downloader in acquisition, and maximum speed of download is limited to p, the data of downloading for downloading request; When game has downloaded and installed, client stops being connected of the current game disconnection of user and server in real time, and starts local game and realize limit and play below.
Embodiment 2
Fig. 4 take mobile device to be applied to game or the speed-measuring method specific embodiment schematic diagram of video-see as example, as shown in the figure:
Take terminal equipment as mobile device be example.First, client is carried out delay value test according to user-selected COS pair with the server (destination server) of terminal equipment pairing, client pair is carried out delay value test with the server (destination server) of terminal equipment pairing, require delay value lower than the highest desired delay value, require ping value≤30ms; Recording delay value is 10ms, delay value is lower than desired most high-latency value, the ultimate resolution a of sense terminals equipment is the ultimate resolution b of the video that can decode of 320*240 sense terminals equipment, b≤a≤320*240, according to a, b, the single frames picture complexity of application content and video pictures pace of change determine that obtaining code check required value m is 300k; Terminal equipment client is downloaded the file data of a 512k to the server that tests the speed, download and take as 10s, according to file size and download time, judges that active user is 1000k to the bandwidth value n of destination server; According to m value and n value, calculate the value of testing the speed; The value of testing the speed p=n-m=1000-300=700k, requires the value of testing the speed p > 0 to meet the minimum requirements value of testing the speed; Test the speed and start relative program by, report server.
When play below on the limit that is applied to play, client tests the speed result by report the test downloader in acquisition, and maximum speed of download is limited to p=700k, the data of downloading for downloading request; When game has downloaded and installed, client stops being connected of the current game disconnection of user and server in real time, and starts local game and realize limit and play below.
Above combination specific embodiments of the invention are described in detail, but are not limitation of the present invention.Every foundation technical spirit of the present invention, to any simple modification made for any of the above embodiments, all still belongs to the scope of technical solution of the present invention.