CN104580019B - Network service provider method and device - Google Patents
Network service provider method and device Download PDFInfo
- Publication number
- CN104580019B CN104580019B CN201410828129.1A CN201410828129A CN104580019B CN 104580019 B CN104580019 B CN 104580019B CN 201410828129 A CN201410828129 A CN 201410828129A CN 104580019 B CN104580019 B CN 104580019B
- Authority
- CN
- China
- Prior art keywords
- network
- terminal
- server
- service
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The disclosure discloses a kind of network service provider method and device, belongs to network technique field.The method includes:Obtain the network connection quality of terminal;The network classes of service of the terminal is determined according to the network connection quality;When receiving the network request that the terminal is sent, according to the network classes of service, provide the network request corresponding network service to the terminal.Method shown in the disclosure, by the network connection quality for obtaining terminal, the network classes of service of the terminal is determined according to the network connection quality, according to the network classes of service network service is provided to the terminal, server can provide a user the network service being adapted with the network capabilities of user terminal, when the network connection quality of user terminal is poor, more smooth network service is also capable of providing, achievees the effect that improve user experience.
Description
Technical field
This disclosure relates to network technique field, more particularly to a kind of network service providing method and device.
Background technology
With the continuous development of network technology, internet has been increasingly becoming indispensable part in people's life.Mutually
The Internet services quotient can develop and provide network application either website be carried by network application or website to user
For network service.
In the related art, in order to provide a user better service, user experience is improved, Internet service quotient would generally
Selection provides a user top quality network service.For example, user developed using Internet service quotient the client of application when,
The Server Default of Internet service quotient to the highest video of client push clarity, the picture of size maximum or quality most
High audio etc.;Alternatively, Internet service quotient provide website design when, can be inserted into as possible most clearly video or
Picture.
Invention content
Present disclose provides a kind of network service provider method and devices.The technical solution is as follows:
In a first aspect, provide a kind of network service provider method, in server, the method includes:
Obtain the network connection quality of terminal;
The network classes of service of the terminal is determined according to the network connection quality, and sends to refer to the terminal
Show second network information of the network connection quality, the terminal is used to set the terminal according to the network connection quality
Largest request number of concurrent when sending from network request to the server and/or, the terminal is for detecting the network
When quality of connection is less than preset quality standard, request operation is not yet received into the server acquisition request current interface
Basic data;
When receiving the network request that the terminal is sent, according to the network classes of service, to the terminal
There is provided the network request corresponding network service.
Optionally, the network connection quality for obtaining terminal, including:
The average throughput of the server is sent to the terminal, the average throughput is used to indicate the server
The average quantity for the terminal supported simultaneously;
It receives what the terminal was sent, is used to indicate the first network information of the network connection quality, the network connects
It is that the terminal is determined according to the round-trip delay of the average throughput and the terminal to connect quality, and the round-trip delay is institute
State the time delay that terminal is transmit a request to the server between the response for receiving the server.
Optionally, the network connection quality for obtaining terminal, including:
The round-trip delay that the terminal is sent is received, the round-trip delay sends to the server for the terminal and asks
Time delay between the response for receiving the server;
The network connection quality is determined according to the average throughput of the server and the round-trip delay, it is described average
Handling capacity is used to indicate the average quantity of the server while the terminal supported.
Optionally, the network classes of service that the terminal is determined according to the network connection quality, including:
When the network service includes photo services, determine that the photo services correspond to according to the network connection quality
Dimension of picture;
When the network service includes Video service, determine that the Video service corresponds to according to the network connection quality
Video clarity;
When the network service includes audio service, determine that the audio service corresponds to according to the network connection quality
Audio code check;
When the network service includes template loading service, determining that the template loads according to the network connection quality takes
It is engaged in the type of corresponding template file, the type of the template file includes compiled template file or non-compiled template
File.
Second aspect provides a kind of network service provider method, in terminal, the method includes:
Network request is sent to server;
Receive what the server was provided according to the network classes of service of terminal, the corresponding network clothes of the network request
Business;The network classes of service is the network connection quality that the server obtains the terminal, and according to the network connection
What quality determined;
Second network information that the server is sent is received, second network information is used to indicate the network connection
Quality;
The maximum when terminal being set to the server transmission network request according to the network connection quality
Request Concurrency number and/or, whether the network connection quality is detected less than preset quality standard, if testing result is described
Network connection quality is less than the preset quality standard, then is not yet received into the server acquisition request current interface
Ask the basic data of operation.
Optionally, the method further includes:
Receiving what the server was provided according to the network classes of service of the terminal, the corresponding net of the network request
Before network service, the round-trip delay of the terminal is obtained, the round-trip delay sends to the server for the terminal and asks
Time delay between the response for receiving the server;
Receive what the server was sent, the average throughput of the server, the average throughput is used to indicate institute
State the average quantity of server while the terminal supported;
The network connection quality is determined according to the average throughput and the round-trip delay;
First network information is sent to the server, the first network information is used to indicate the network connection matter
Amount.
Optionally, the method further includes:
Receiving what the server was provided according to the network classes of service of the terminal, the corresponding net of the network request
Before network service, the round-trip delay of the terminal is obtained, the round-trip delay sends to the server for the terminal and asks
Time delay between the response for receiving the server;
The round-trip delay is sent to the server.
The third aspect provides a kind of network service and provides device, in server, described device to include:
Quality of connection acquisition module, for obtaining the network connection quality of terminal;
Level determination module, for determining the network classes of service of the terminal according to the network connection quality;
Service providing module, for when receiving the network request that the terminal is sent, according to described network service etc.
Grade provides the network request corresponding network service to the terminal;
First information sending module, for being used to indicate the second network of the network connection quality to terminal transmission
Information, the terminal are used to the terminal be set to send the network request to the server according to the network connection quality
When largest request number of concurrent and/or, the terminal be used for detecting the network connection quality be less than preset quality mark
On time, the basic data of request operation is not yet received into the server acquisition request current interface.
Optionally, the quality of connection acquisition module, including:
Handling capacity sending submodule, it is described averagely to gulp down for sending the average throughput of the server to the terminal
The amount of spitting is used to indicate the average quantity of the server while the terminal supported;
Information receiving submodule for receiving the terminal transmission, is used to indicate the first of the network connection quality
The network information, the network connection quality are that the terminal is determined according to the round-trip delay of the average throughput and the terminal
, the round-trip delay for the terminal to the server transmit a request to the response for receiving the server between when
Prolong.
Optionally, the quality of connection acquisition module, including:
Time delay receiving submodule, for receiving the round-trip delay that the terminal is sent, the round-trip delay is the terminal
The time delay between the response for receiving the server is transmit a request to the server;
Quality of connection determination sub-module determines institute for the average throughput according to the server and the round-trip delay
Network connection quality is stated, the average throughput is used to indicate the average quantity of the server while the terminal supported.
Optionally, the level determination module, including:
Dimension of picture determination sub-module, for when the network service include photo services when, according to the network connection
Quality determines the corresponding dimension of picture of the photo services;
Video definition determination sub-module, for when the network service includes Video service, being connected according to the network
Connect the clarity that quality determines the corresponding video of the Video service;
Audio code rate determination sub-module, for when the network service include audio service when, according to the network connection
Quality determines the code check of the corresponding audio of the audio service;
File type determination sub-module includes template loading service for working as the network service, is connected according to the network
It connects quality and determines that the template loading services the type of corresponding template file, the type of the template file is including compiled
Template file or non-compiled template file.
Fourth aspect provides a kind of network service and provides device, in terminal, described device to include:
Request sending module, for sending network request to server;
Network service receiving module is provided according to the network classes of service of terminal for receiving the server, described
The corresponding network service of network request;The network classes of service is the network connection matter that the server obtains the terminal
Amount, and determined according to the network connection quality;
Information receiving module, for receiving second network information that the server is sent, second network information is used
In the instruction network connection quality;
Number of concurrent setup module, for the terminal being set to send institute to the server according to the network connection quality
State largest request number of concurrent during network request;And/or detection module, for detecting whether the network connection quality is less than
Preset quality standard, basic data request module, if default less than described for the network connection quality for testing result
Quality standard, then into the server acquisition request current interface not yet receive request operation basic data, it is described
Basic data includes application programming interface data, masterplate data or pattern file data.
Optionally, described device further includes:
First time delay acquisition module, for receiving the server according to the terminal in the network service receiving module
Network classes of service provide, before the corresponding network service of the network request, obtain the round-trip delay of the terminal, institute
State the time delay that round-trip delay is transmit a request to for the terminal to the server between the response for receiving the server;
Throughput reception module, for receiving the server transmission, the average throughput of the server is described flat
Equal handling capacity is used to indicate the average quantity of the server while the terminal supported;
Quality of connection determining module, for determining the network connection according to the average throughput and the round-trip delay
Quality;
Second information sending module, for sending first network information to the server, the first network information is used
In the instruction network connection quality.
Optionally, described device further includes:
Second time delay acquisition module, for receiving the server according to the terminal in the network service receiving module
Network classes of service provide, before the corresponding network service of the network request, obtain the round-trip delay of the terminal, institute
State the time delay that round-trip delay is transmit a request to for the terminal to the server between the response for receiving the server;
Time delay sending module, for sending the round-trip delay to the server.
5th aspect provides a kind of network service and provides device, and described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Obtain the network connection quality of terminal;
The network classes of service of the terminal is determined according to the network connection quality, and sends to refer to the terminal
Show second network information of the network connection quality, the terminal is used to set the terminal according to the network connection quality
Largest request number of concurrent when sending from network request to the server and/or, the terminal is for detecting the network
When quality of connection is less than preset quality standard, request operation is not yet received into the server acquisition request current interface
Basic data;
When receiving the network request that the terminal is sent, according to the network classes of service, to the terminal
There is provided the network request corresponding network service.
6th aspect provides a kind of network service and provides device, and described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Network request is sent to server;
Receive what the server was provided according to the network classes of service of terminal, the corresponding network clothes of the network request
Business;The network classes of service is the network connection quality that the server obtains the terminal, and according to the network connection
What quality determined;
Second network information that the server is sent is received, second network information is used to indicate the network connection
Quality;
The maximum when terminal being set to the server transmission network request according to the network connection quality
Request Concurrency number and/or, whether the network connection quality is detected less than preset quality standard, if testing result is described
Network connection quality is less than the preset quality standard, then is not yet received into the server acquisition request current interface
Ask the basic data of operation.
7th aspect, provides a kind of computer readable storage medium, which is characterized in that the computer-readable storage medium
It has program stored therein in matter, described program is executed by processor to realize method as described in relation to the first aspect.
Eighth aspect provides a kind of computer readable storage medium, which is characterized in that the computer-readable storage medium
It has program stored therein in matter, described program is executed by processor to realize the method as described in second aspect.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By obtaining the network connection quality of terminal, network service of the terminal etc. is determined according to the network connection quality
Grade provides network service according to the network classes of service to the terminal, and server can provide a user the net with user terminal
The network service that network ability is adapted when the network connection quality of user terminal is poor, is also capable of providing more smooth net
Network service achievees the effect that improve user experience.
It should be understood that above general description and following detailed description is only exemplary, this can not be limited
It is open.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and in specification together principle for explaining the present invention.
Fig. 1 is the implementation environment involved by the network service provider method exemplified according to the implementation of disclosure exemplary partial
Schematic diagram.
Fig. 2 is the flow chart according to a kind of network service provider method shown in an exemplary embodiment;
Fig. 3 is the flow chart of a kind of network service provider method shown according to another exemplary embodiment;
Fig. 4 is the flow chart of a kind of network service provider method shown according to a further exemplary embodiment;
Fig. 5 is the flow chart according to a kind of network service provider method shown in an exemplary embodiment;
Fig. 6 is the flow chart of a kind of network service provider method shown according to another exemplary embodiment;
Fig. 7 is the block diagram that device is provided according to a kind of network service shown in an exemplary embodiment;
Fig. 8 is that a kind of network service shown according to another exemplary embodiment provides the block diagram of device;
Fig. 9 is the block diagram that device is provided according to a kind of network service shown in an exemplary embodiment;
Figure 10 is that a kind of network service shown according to another exemplary embodiment provides the block diagram of device;
Figure 11 is the block diagram that device is provided according to a kind of network service shown in an exemplary embodiment;
Figure 12 is the block diagram that device is provided according to a kind of network service shown in an exemplary embodiment.
Specific embodiment
Here explanation will be performed to exemplary embodiment in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is the implementation environment involved by the network service provider method exemplified according to the implementation of disclosure exemplary partial
Schematic diagram.The implementation environment includes:Server 120 and terminal 140.
Server 120 can be a server or the server cluster or one being made of several servers
A cloud computing service center.
Terminal 140 can be the network terminals such as smart mobile phone, tablet computer, E-book reader or PC.
Wherein, server 120 and terminal 140 access internet by wired or wireless network respectively, by means of interconnection
Real-time performance connects.
Fig. 2 is the flow chart according to a kind of network service provider method shown in an exemplary embodiment.The network service
Providing method is used in the server 120 in implementation environment as shown in Figure 1.As shown in Fig. 2, the network service provider method can
To include the following steps.
In step 202, the network connection quality of terminal is obtained.
In step 204, the network classes of service of the terminal is determined according to the network connection quality.
In step 206, in the network request for receiving terminal transmission, according to the network classes of service, to the end
End provides the network request corresponding network service.
In conclusion in the network service provider method that the embodiment of the present disclosure provides, by the network connection for obtaining terminal
Quality determines the network classes of service of the terminal according to the network connection quality, is carried according to the network classes of service to the terminal
For network service, server can provide a user the network service being adapted with the network capabilities of user terminal, when user's end
When the network connection quality at end is poor, more smooth network service is also capable of providing, achievees the effect that improve user experience.
In the corresponding embodiments of above-mentioned Fig. 2, network connection quality can voluntarily be determined by server, alternatively, in order to slow
The calculating pressure of server is solved, which can also be determined by terminal, and by terminal notification server.This public affairs
The following examples are opened will to be respectively illustrated by taking both situations as an example.
Fig. 3 is the flow chart of a kind of network service provider method shown according to another exemplary embodiment.The network takes
Providing method of being engaged in is in the server 120 in implementation environment as shown in Figure 1.As shown in Fig. 2, the network service provider method
It may comprise steps of.
In step 302, the average throughput of the server is sent to terminal, which is used to indicate the service
The average quantity for the terminal that device is supported simultaneously.
The terminal quantity that server is supported simultaneously has the network quality between server and terminal critically important influence,
When the terminal quantity that server is supported simultaneously is more, the network quality between server and each terminal is poor, and when service
When the terminal quantity that device is supported simultaneously is less, the network quality between server and each terminal is preferable.Therefore, in estimation terminal
Network connection quality when, it is also desirable to consider server and meanwhile support terminal quantity.
When being performed by terminal the step of network connection quality for determining terminal, server and terminal establish network connection it
Afterwards, the average throughput of server can be sent to terminal.
In step 304, terminal transmission is received, is used to indicate the first network information of the network connection quality.
Wherein, which is that the terminal is determined according to the round-trip delay of the average throughput and the terminal,
The round-trip delay transmit a request to the time delay between the response for receiving the server for the terminal to the server.
After terminal to server sends a request, server would generally return to a response to terminal, be sent from terminal
The request, the time delay returned between the corresponding response of the request to server are round-trip delay (English full name:Round-Trip
Time, abbreviation:RTT).Round-trip delay is an important performance indicator in computer network, can be by terminal according to server
Relevant parameter in HTTP (Hypertext transfer protocol, hypertext transfer protocol) head of the response of return into
Row estimation.The height of round-trip delay directly affects the network connection quality between terminal and server.
Terminal receives server transmission, after the average throughput of the server, according to what is locally estimated, and the terminal
Round-trip delay and the average throughput determine the network connection quality of the terminal, and the net is used to indicate to server transmission
The first network information of network quality of connection.
Wherein it is possible to network connection quality is classified, for example, network connection quality is divided into four etc.:It is outstanding, good
It is good, general and poor.Terminal, can be first by the average throughput of the server and the terminal when determining network connection quality
Round-trip delay the numerical value of a quantization is calculated according to different weighting schemes, and determined according to the size of the numerical value of the quantization
Which etc. the network connection quality be in.
Within step 306, the network classes of service of the terminal is determined according to the network connection quality.
After server receives first network information, corresponding network classes of service is determined according to network connection quality.It presses
According to the difference of the type of network service, each network classes of service can be as follows:
1) when the network service includes photo services, the corresponding figure of the photo services is determined according to the network connection quality
Chip size.
For the identical picture of content, server can pre-set different dimension of pictures, and by each dimension of picture
Corresponding different network connection quality.It is true according to the network connection quality when server gets the network connection quality of terminal
Orient the dimension of picture corresponding to the picture of terminal transmission.For example, when the network connection quality of the terminal is outstanding, determine
It is dimension of picture maximum in pre-set dimension of picture to the dimension of picture that the terminal is sent;When the network connection of the terminal
When quality is difference, determine that the dimension of picture that the terminal is sent be dimension of picture minimum in pre-set dimension of picture.
2) it when the network service includes Video service, determines that the Video service is corresponding according to the network connection quality and regards
The clarity of frequency.
For the identical video of content, server can pre-set the video file of different clarity, such as 1080P,
720P, 480P and 360P etc., and each video definition is corresponded to different network connection qualities.Server gets terminal
Network connection quality when, the clarity according to corresponding to the network connection quality determines the video provided to the terminal.For example,
When the network connection quality of the terminal is outstanding, the clarity for determining the video provided to the terminal is 1080P;When the terminal
Network connection quality for it is good when, determine the video provided to the terminal clarity be 720P;When the network of the terminal connects
Connect quality for it is general when, determine the video provided to the terminal clarity be 480P;When the network connection quality of the terminal is
When poor, the clarity for determining the video provided to the terminal is 360P.
3) when the network service includes audio service, the corresponding sound of the audio service is determined according to the network connection quality
The code check of frequency.
For the identical audio of content, server can pre-set the audio file of different code checks, such as 512kbps,
256kbps, 192kbps and 128kbps etc., and the code check of each audio is corresponded to different network connection qualities.Server
When getting the network connection quality of terminal, the code according to corresponding to the network connection quality determines the audio provided to the terminal
Rate.For example, when the network connection quality of the terminal is outstanding, the code check for determining the audio provided to the terminal is 512kbps;
When the network connection quality of the terminal is good, the code check for determining the audio provided to the terminal is 256kbps;When the terminal
Network connection quality for it is general when, determine the audio provided to the terminal code check be 192kbps;When the network of the terminal connects
When connecing quality as difference, the code check for determining the audio provided to the terminal is 128kbps.
4) it is serviced when the network service includes template loading, template loading service pair is determined according to the network connection quality
The type for the template file answered, the type of the template file include compiled template file or non-compiled template file.
The masterplate of Webpage or application interface is loaded, it is generally the case that template file is carried out by server
Compiling, is sent to terminal by the template file after compiling and loads.Since compiled template file is usually than non-compiled
Template file is big, in the embodiments of the present disclosure, when server gets the network connection quality of terminal, according to the network connection matter
Amount determines that the template file that the terminal provides be compiled template file or non-compiled template file.For example, when should
When the network connection quality of terminal is outstanding or good, determine that the template file that the terminal provides be compiled template text
Part;When the network connection quality of the terminal is general or poor, determine to the template file that the terminal provides to be non-compiled
Template file.
In step 308, in the network request for receiving terminal transmission, according to the network classes of service, to the end
End provides the network request corresponding network service.
When the terminal to server sends the network request for obtaining a certain item network service, server is according to the terminal
Network classes of service, determine the corresponding file of the network service, for example the file of which size, which clarity regard
Frequently, the template file of the audio of which code check or which type, and determining file is sent to terminal.
In conclusion in the network service provider method that the embodiment of the present disclosure provides, by the network connection for obtaining terminal
Quality determines the network classes of service of the terminal according to the network connection quality, is carried according to the network classes of service to the terminal
For network service, server can provide a user the network service being adapted with the network capabilities of user terminal, when user's end
When the network connection quality at end is poor, more smooth network service is also capable of providing, achievees the effect that improve user experience.
Fig. 4 is the flow chart of a kind of network service provider method shown according to a further exemplary embodiment.The network takes
Providing method of being engaged in is in the server 120 in implementation environment as shown in Figure 1.As shown in figure 4, the network service provider method
It may comprise steps of.
In step 402, the round-trip delay of terminal transmission is received, which sends for the terminal to the server
Ask to receive the time delay between the response of the server.
After terminal to server sends a request, server would generally return to a response to terminal, be sent from terminal
The request, it is round-trip delay to return to the time delay between the corresponding response of the request to server.Round-trip delay is computer network
An important performance indicator in network, the relevant parameter in the HTTP of the response heads that can be returned by terminal according to server carry out
Estimation.The height of round-trip delay directly affects the network connection quality between terminal and server.
When being performed by server the step of network connection quality for determining terminal, server establishes network connection with terminal
Later, the round-trip delay of the terminal can be sent to server by terminal.
In step 404, which is determined according to the average throughput of the server and the round-trip delay, it should
Average throughput is used to indicate the average quantity of the server while the terminal supported.
The terminal quantity that server is supported simultaneously has the network quality between server and terminal critically important influence,
When the terminal quantity that server is supported simultaneously is more, the network quality between server and each terminal is poor, and when service
When the terminal quantity that device is supported simultaneously is less, the network quality between server and each terminal is preferable.Therefore, in estimation terminal
Network connection quality when, it is also desirable to consider server and meanwhile support terminal quantity.
It, can be according to the round-trip delay of the terminal and the server after server receives the round-trip delay of terminal transmission
Average throughput determine the network connection quality of the terminal.
Wherein it is possible to network connection quality is classified, for example, network connection quality is divided into four etc.:It is outstanding, good
It is good, general and poor.Server, can be first by the average throughput of the server and the end when determining network connection quality
The round-trip delay at end calculates the numerical value of a quantization according to different weighting schemes, and true according to the size of the numerical value of the quantization
Which etc. the fixed network connection quality be in.
In a step 406, second network information is sent to the terminal, which is used to indicate the network connection
Quality.
In the embodiments of the present disclosure, server, can also be by the network after the network connection quality of the terminal is determined
Quality of connection notifies to give the terminal, to be optimized in end side, for example, it is most to limit to server transmission service request
Big request Concurrency number, alternatively, choosing whether to preload part basic data.
In a step 408, the network classes of service of the terminal is determined according to the network connection quality.
After server obtains the network connection quality of the terminal, corresponding network service etc. is determined according to network connection quality
Grade.According to the difference of the type of network service, each network classes of service can be as follows:
1) when the network service includes photo services, the corresponding figure of the photo services is determined according to the network connection quality
Chip size.
For the identical picture of content, server can pre-set different dimension of pictures, and by each dimension of picture
Corresponding different network connection quality.It is true according to the network connection quality when server gets the network connection quality of terminal
Orient the dimension of picture corresponding to the picture of terminal transmission.For example, when the network connection quality of the terminal is outstanding, determine
It is dimension of picture maximum in pre-set dimension of picture to the dimension of picture that the terminal is sent;When the network connection of the terminal
When quality is difference, determine that the dimension of picture that the terminal is sent be dimension of picture minimum in pre-set dimension of picture.
2) it when the network service includes Video service, determines that the Video service is corresponding according to the network connection quality and regards
The clarity of frequency.
For the identical video of content, server can pre-set the video file of different clarity, such as 1080P,
720P, 480P and 360P etc., and each video definition is corresponded to different network connection qualities.Server gets terminal
Network connection quality when, the clarity according to corresponding to the network connection quality determines the video provided to the terminal.For example,
When the network connection quality of the terminal is outstanding, the clarity for determining the video provided to the terminal is 1080P;When the terminal
Network connection quality for it is good when, determine the video provided to the terminal clarity be 720P;When the network of the terminal connects
Connect quality for it is general when, determine the video provided to the terminal clarity be 480P;When the network connection quality of the terminal is
When poor, the clarity for determining the video provided to the terminal is 360P.
3) when the network service includes audio service, the corresponding sound of the audio service is determined according to the network connection quality
The code check of frequency.
For the identical audio of content, server can pre-set the audio file of different code checks, such as 512kbps,
256kbps, 192kbps and 128kbps etc., and the code check of each audio is corresponded to different network connection qualities.Server
When getting the network connection quality of terminal, the code according to corresponding to the network connection quality determines the audio provided to the terminal
Rate.For example, when the network connection quality of the terminal is outstanding, the code check for determining the audio provided to the terminal is 512kbps;
When the network connection quality of the terminal is good, the code check for determining the audio provided to the terminal is 256kbps;When the terminal
Network connection quality for it is general when, determine the audio provided to the terminal code check be 192kbps;When the network of the terminal connects
When connecing quality as difference, the code check for determining the audio provided to the terminal is 128kbps.
4) it is serviced when the network service includes template loading, template loading service pair is determined according to the network connection quality
The type for the template file answered, the type of the template file include compiled template file or non-compiled template file.
The masterplate of Webpage or application interface is loaded, it is generally the case that template file is carried out by server
Compiling, is sent to terminal by the template file after compiling and loads.Since compiled template file is usually than non-compiled
Template file is big, in the embodiments of the present disclosure, when server gets the network connection quality of terminal, according to the network connection matter
Amount determines that the template file that the terminal provides be compiled template file or non-compiled template file.For example, when should
When the network connection quality of terminal is outstanding or good, determine that the template file that the terminal provides be compiled template text
Part;When the network connection quality of the terminal is general or poor, determine to the template file that the terminal provides to be non-compiled
Template file.
In step 410, in the network request for receiving terminal transmission, according to the network classes of service, to the end
End provides the network request corresponding network service.
When the terminal to server sends the network request for obtaining a certain item network service, server is according to the terminal
Network classes of service, determine the corresponding file of the network service, for example the file of which size, which clarity regard
Frequently, the template file of the audio of which code check or which type, and determining file is sent to terminal.
In conclusion in the network service provider method that the embodiment of the present disclosure provides, by the network connection for obtaining terminal
Quality determines the network classes of service of the terminal according to the network connection quality, is carried according to the network classes of service to the terminal
For network service, server can provide a user the network service being adapted with the network capabilities of user terminal, when user's end
When the network connection quality at end is poor, more smooth network service is also capable of providing, achievees the effect that improve user experience.
Fig. 5 is the flow chart according to a kind of network service provider method shown in an exemplary embodiment.The network service
Providing method is used in the terminal 140 in implementation environment as shown in Figure 1.As shown in figure 5, the network service provider method can be with
Include the following steps.
In step 502, network request is sent to server.
In step 504, receive what the server was provided according to the network classes of service of the terminal, which corresponds to
Network service;The network classes of service is the network connection quality that the server obtains terminal, and according to the network connection matter
What amount determined.
In conclusion in the network service provider method that the embodiment of the present disclosure provides, by receiving server according to end
After the network connection quality at end determines the network classes of service of the terminal, network is provided to the terminal according to the network classes of service
Service, server can provide a user the network service being adapted with the network capabilities of user terminal, when the net of user terminal
When network quality of connection is poor, more smooth network service is also capable of providing, achievees the effect that improve user experience.
Fig. 6 is the flow chart of a kind of network service provider method shown according to another exemplary embodiment.The network takes
Providing method of being engaged in is in the terminal 140 in implementation environment as shown in Figure 1.As shown in fig. 6, the network service provider method can
To include the following steps.
In step 602, the round-trip delay of terminal is obtained, which transmit a request to for the terminal to the server
Receive the time delay between the response of the server.
After terminal to server sends a request, server would generally return to a response to terminal, be sent from terminal
The request, it is round-trip delay to return to the time delay between the corresponding response of the request to server.Round-trip delay is computer network
An important performance indicator in network, the relevant parameter in the HTTP of the response heads that can be returned by terminal according to server carry out
Estimation.The height of round-trip delay directly affects the network connection quality between terminal and server.
In step 604, the average throughput of server transmission is received, according to the average throughput and the round-trip delay
It determines the network connection quality, and the first network information of the network connection quality is used to indicate to server transmission.
Wherein, which is used to indicate the average quantity of the server while the terminal supported.
The terminal quantity that server is supported simultaneously has the network quality between server and terminal critically important influence,
When the terminal quantity that server is supported simultaneously is more, the network quality between server and each terminal is poor, and when service
When the terminal quantity that device is supported simultaneously is less, the network quality between server and each terminal is preferable.Therefore, in estimation terminal
Network connection quality when, it is also desirable to consider server and meanwhile support terminal quantity.
When being performed by terminal the step of network connection quality for determining terminal, server and terminal establish network connection it
Afterwards, the average throughput of server can be sent to terminal.Terminal receives server transmission, and being averaged for the server gulps down
After the amount of spitting, according to what is locally estimated, the round-trip delay of the terminal and the average throughput determine the network connection of the terminal
Quality, and the first network information for being used to indicate the network connection quality is sent to server.
Wherein it is possible to network connection quality is classified, for example, network connection quality is divided into four etc.:It is outstanding, good
It is good, general and poor.Terminal, can be first by the average throughput of the server and the terminal when determining network connection quality
Round-trip delay the numerical value of a quantization is calculated according to different weighting schemes, and determined according to the size of the numerical value of the quantization
Which etc. the network connection quality be in.
In step 606, the round-trip delay is sent to server, and receives second network information of server transmission,
Second network information is used to indicate the network connection quality.
When being performed by server the step of network connection quality for determining terminal, server establishes network connection with terminal
Later, the round-trip delay of the terminal can be sent to server by terminal.
Wherein, server determines the method for the network connection quality of terminal with determining network by terminal in above-mentioned steps 604
The method of quality of connection is similar, and details are not described herein again.
It, can also be by second network information by the network connection after server determines the network connection quality of the terminal
Quality notification is to terminal.
In step 608, according to the network connection quality set the terminal to the server send network request when most
Big request Concurrency number.
It, can if excessive to the network request quantity of server transmission simultaneously when the network connection quality of terminal is poor
The corresponding network service of each network request can be caused not smooth, so as to influence the usage experience of user.In the disclosure
In embodiment, terminal determines network connection quality or knows network connection matter by second network information that server is sent
After amount, largest request number of concurrent when can be set according to the network connection quality to server transmission network request.For example, work as
When network connection quality is outstanding, setting largest request number of concurrent is 15;When network connection quality is good, setting is maximum please
It is 10 to seek number of concurrent;When network connection quality is general, setting largest request number of concurrent is 6;When network connection quality is poor
When, setting largest request number of concurrent is 4.
In step 610, whether the network connection quality is detected less than preset quality standard;If testing result is the net
Network quality of connection is less than preset quality standard, then request operation is not yet received into the server acquisition request current interface
Basic data.
Wherein, which includes application programming interface data, masterplate data or pattern file data.
During the page of the interface of the corresponding application of the terminal loads server or the webpage of website, in the page usually
The content of loading is not yet requested by a user there are some.For example, in the display portion of application interface or Webpage, it can
There can be an embedded video playback window, the video in the video playback window works as user in broadcast state is not started
When clicking broadcasting button, terminal can just ask the video file played in the video playback window to server;Alternatively, terminal
Screen illustrates only the top half of current page, and the lower half portion of the page is in except screen, is answered when user drags upwards
During with the action of interface or slide downward Webpage, terminal just can be into the lower half portion that server asks the page
Hold.
It, can basis after terminal knows the network connection quality of the terminal in the scheme shown in the embodiment of the present disclosure
The network connection quality determines the need for the basic data in pre-loaded current interface, for example, pre-setting network connection
The quality standard of quality is good, when the network connection quality of terminal is outstanding or good, determines not needing to be pre-loaded
Basic data, when the network connection quality of terminal is to determine to need pre-loaded basic data for general or difference.
When loading basic data, terminal can ask the corresponding application programming of display portion content to server
Interface data, such as the corresponding application programming interface data of above-mentioned video playback window are somebody's turn to do to determine to play in user
During file in video playback window, the quick calling application programming interface data.Alternatively, terminal can also be to server
The masterplate data or pattern file data of the non-display portion content of request, before user determines to show the non-display portion,
The masterplate frame of the pre-loaded non-display portion and the pattern of application interface or Webpage, to determine to show in user
When showing the non-display portion, quickly show the pattern of the part and masterplate frame, further improve user experience.
In step 612, network request is sent to server, receives network classes of service of the server according to the terminal
It provides, the corresponding network service of the network request;The network classes of service is that the server is true according to the network connection quality
Fixed.
Wherein, server determines network classes of service according to the network connection quality of terminal, and according to network classes of service
The content of offer network service please refers to the description in the corresponding embodiments of above-mentioned Fig. 3 or Fig. 4, and details are not described herein again.
In conclusion in the network service provider method that the embodiment of the present disclosure provides, by receiving server according to end
After the network connection quality at end determines the network classes of service of the terminal, network is provided to the terminal according to the network classes of service
Service, server can provide a user the network service being adapted with the network capabilities of user terminal, when the net of user terminal
When network quality of connection is poor, more smooth network service is also capable of providing, achievees the effect that improve user experience.
In addition, the network service provider method that the embodiment of the present disclosure provides, terminal are determined also according to the network connection quality
Largest request number of concurrent avoids, because the network request quantity sent to server simultaneously is excessive, leading to each network request
The all slack problem of corresponding network service achievees the effect that improve the fluency of network service.
In addition, the network service provider method that the embodiment of the present disclosure provides, terminal are also determining that the network connection quality is low
When preset quality standard, ask not yet to receive the basic data of request operation in current interface to the server, so as to
The corresponding network service of these basic datas is subsequently quickly shown according to user's operation, further improves user experience.
Following is embodiment of the present disclosure, can be used for performing embodiments of the present disclosure.For disclosure device reality
The details not disclosed in example is applied, please refers to embodiments of the present disclosure.
Fig. 7 is the block diagram that device is provided according to a kind of network service shown in an exemplary embodiment.The network service carries
It can be used for for device in server 120 as shown in Figure 1, perform the network service provider method as shown in Fig. 2 to 4 is any.
Include but not limited to as shown in fig. 7, the network service provides device:Quality of connection acquisition module 701, level determination module 702
And service providing module 703;
The quality of connection acquisition module 701 is arranged to be used for obtaining the network connection quality of terminal;
The level determination module 702 is arranged to be used for determining the network of the terminal according to the network connection quality
The grade of service;
When the service providing module 703 is arranged in use in the network request for receiving the terminal transmission, according to
The network classes of service provides the network request corresponding network service to the terminal.
In conclusion device is provided in the network service that the embodiment of the present disclosure provides, by the network connection for obtaining terminal
Quality determines the network classes of service of the terminal according to the network connection quality, is carried according to the network classes of service to the terminal
For network service, server can provide a user the network service being adapted with the network capabilities of user terminal, when user's end
When the network connection quality at end is poor, more smooth network service is also capable of providing, achievees the effect that improve user experience.
Fig. 8 is that a kind of network service shown according to another exemplary embodiment provides the block diagram of device.The network service
It provides device to can be used in server 120 as shown in Figure 1, performs the network service provider as shown in Fig. 2 to 4 is any
Method.Include but not limited to as shown in fig. 7, the network service provides device:Quality of connection acquisition module 701, level determination module
702 and service providing module 703;
The quality of connection acquisition module 701 is arranged to be used for obtaining the network connection quality of terminal;
The level determination module 702 is arranged to be used for determining the network of the terminal according to the network connection quality
The grade of service;
When the service providing module 703 is arranged in use in the network request for receiving the terminal transmission, according to
The network classes of service provides the network request corresponding network service to the terminal.
Optionally, the quality of connection acquisition module 701, including:Handling capacity sending submodule 701a and information receive
Submodule 701b;
The handling capacity sending submodule 701a is arranged to be used for gulping down to terminal transmission being averaged for server
The amount of spitting, the average throughput are used to indicate the average quantity of the server while the terminal supported;
Described information receiving submodule 701b is arranged to be used for receiving what the terminal was sent, is used to indicate the network
The first network information of quality of connection, the network connection quality are the terminals according to the average throughput and the terminal
Round-trip delay determine that the round-trip delay transmit a request to the server for the terminal and receives the server
Response between time delay.
Optionally, the quality of connection acquisition module 701, including:Time delay receiving submodule 701c and quality of connection are true
Stator modules 701d;
The time delay receiving submodule 701c is arranged to be used for receiving the round-trip delay that the terminal is sent, described round-trip
Time delay transmit a request to the time delay between the response for receiving the server for the terminal to the server;
The quality of connection determination sub-module 701d is arranged to be used for the average throughput according to the server and institute
It states round-trip delay and determines the network connection quality, the average throughput is used to indicate the server while the terminal supported
Average quantity.
Optionally, described device includes:First information sending module 704;
The first information sending module 704 is arranged to be used for sending second network information to the terminal, and described the
Two network informations are used to indicate the network connection quality.
Optionally, the level determination module 702, including:Dimension of picture determination sub-module 702a, video definition determine
Submodule 702b, audio code rate determination sub-module 702c and file type determination sub-module 702d;
The dimension of picture determination sub-module 702a is arranged to be used for when the network service includes photo services, root
The corresponding dimension of picture of the photo services is determined according to the network connection quality;
The video definition determination sub-module 702b is arranged to be used for when the network service includes Video service,
The clarity of the corresponding video of the Video service is determined according to the network connection quality;
The audio code rate determination sub-module 702c is arranged to be used for when the network service includes audio service, root
The code check of the corresponding audio of the audio service is determined according to the network connection quality;
The file type determination sub-module 702d is arranged to be used for including template loading service when the network service,
Determine that the template loading services the type of corresponding template file, the class of the template file according to the network connection quality
Type includes compiled template file or non-compiled template file.
In conclusion device is provided in the network service that the embodiment of the present disclosure provides, by the network connection for obtaining terminal
Quality determines the network classes of service of the terminal according to the network connection quality, is carried according to the network classes of service to the terminal
For network service, server can provide a user the network service being adapted with the network capabilities of user terminal, when user's end
When the network connection quality at end is poor, more smooth network service is also capable of providing, achievees the effect that improve user experience.
Fig. 9 is the block diagram that device is provided according to a kind of network service shown in an exemplary embodiment.The network service carries
It can be used for for device in terminal 140 as shown in Figure 1, perform the network service provider method as shown in Fig. 5 or 6.Such as Fig. 9 institutes
Show, which provides device and include but not limited to:Request sending module 901 and network service receiving module 902;
The request sending module 901 is arranged to be used for sending network request to server;
The network service receiving module 902 is arranged to be used for receiving the server according to the network of terminal clothes
What grade of being engaged in provided, the corresponding network service of the network request;The network classes of service is that the server obtains terminal
Network connection quality, and determined according to the network connection quality.
In conclusion device is provided in the network service that the embodiment of the present disclosure provides, by receiving server according to end
After the network connection quality at end determines the network classes of service of the terminal, network is provided to the terminal according to the network classes of service
Service, server can provide a user the network service being adapted with the network capabilities of user terminal, when the net of user terminal
When network quality of connection is poor, more smooth network service is also capable of providing, achievees the effect that improve user experience.
Figure 10 is that a kind of network service shown according to another exemplary embodiment provides the block diagram of device.The network service
It provides device to can be used in terminal 140 as shown in Figure 1, performs the network service provider method as shown in Fig. 5 or 6.Such as figure
Shown in 10, which provides device and includes but not limited to:Request sending module 901 and network service receiving module 902;
The request sending module 901 is arranged to be used for sending network request to server;
The network service receiving module 902 is arranged to be used for receiving the server according to the network of terminal clothes
What grade of being engaged in provided, the corresponding network service of the network request;The network classes of service is that the server obtains terminal
Network connection quality, and determined according to the network connection quality.
Optionally, described device further includes:First time delay acquisition module 903, throughput reception module 904, quality of connection
905 and second information sending module 906 of determining module;
The first time delay acquisition module 903 be arranged in use in the network service receiving module 902 receive it is described
Server is provided according to the network classes of service of the terminal, before the corresponding network service of the network request, obtains institute
The round-trip delay of terminal is stated, the round-trip delay transmit a request to the server for the terminal and receives the server
Response between time delay;
The throughput reception module 904 is arranged to be used for receiving what the server was sent, and the server is put down
Equal handling capacity, the average throughput are used to indicate the average quantity of the server while the terminal supported;
The quality of connection determining module 905 is arranged to be used for true according to the average throughput and the round-trip delay
The fixed network connection quality;
Second information sending module 906 is arranged to be used for sending first network information to the server, described
First network information is used to indicate the network connection quality.
Optionally, described device further includes:Second time delay acquisition module 907 and time delay sending module 908;
The second time delay acquisition module 907 be arranged in use in the network service receiving module 902 receive it is described
Server is provided according to the network classes of service of the terminal, before the corresponding network service of the network request, obtains institute
The round-trip delay of terminal is stated, the round-trip delay transmit a request to the server for the terminal and receives the server
Response between time delay;
The time delay sending module 908 is arranged to be used for sending the round-trip delay to the server.
Optionally, described device further includes:Information receiving module 909;
Described information receiving module 909 is arranged to be used for receiving second network information that the server is sent, described
Second network information is used to indicate the network connection quality.
Optionally, described device further includes:Number of concurrent setup module 910;
The number of concurrent setup module 910 is arranged to be used for setting the terminal to institute according to the network connection quality
State largest request number of concurrent when server sends network request.
Optionally, described device further includes:Detection module 911 and basic data request module 912;
Whether the detection module 911 is arranged to be used for detecting the network connection quality less than preset quality mark
It is accurate;
It is less than in advance for the network connection quality if the basic data request module 912 is arranged to be used for testing result
If quality standard, then into the server acquisition request current interface not yet receive request operation basic data;
The basic data includes application programming interface data, masterplate data or pattern file data.
In conclusion device is provided in the network service that the embodiment of the present disclosure provides, by receiving server according to end
After the network connection quality at end determines the network classes of service of the terminal, network is provided to the terminal according to the network classes of service
Service, server can provide a user the network service being adapted with the network capabilities of user terminal, when the net of user terminal
When network quality of connection is poor, more smooth network service is also capable of providing, achievees the effect that improve user experience.
In addition, the network service that the embodiment of the present disclosure provides provides device, terminal is determined also according to the network connection quality
Largest request number of concurrent avoids, because the network request quantity sent to server simultaneously is excessive, leading to each network request
The all slack problem of corresponding network service achievees the effect that improve the fluency of network service.
In addition, the network service that the embodiment of the present disclosure provides provides device, terminal is also determining that the network connection quality is low
When preset quality standard, ask not yet to receive the basic data of request operation in current interface to the server, so as to
The corresponding network service of these basic datas is subsequently quickly shown according to user's operation, further improves user experience.
Figure 11 is the block diagram that device 1100 is provided according to a kind of network service shown in an exemplary embodiment.The device
1100 can generate bigger difference due to configuration or different performance, can include one or more central processing units
(central processing units, CPU) 1122 (for example, one or more processors) and memory 1132, one
A or storage medium 1130 of more than one storage application program 1142 or data 1144 (such as one or more magnanimity are deposited
Store up equipment).Wherein, memory 1132 and storage medium 1130 can be of short duration storage or persistent storage.It is stored in storage medium
1130 program can include one or more modules (diagram does not mark), and each module can include to one in device
Series of instructions operates, this series of instruction operation can be used to implement all or part of step of the method as shown in Fig. 2 to 4 is any
Suddenly.Further, central processing unit 1122 could be provided as communicating with storage medium 1130, and storage is performed on device 1100
Series of instructions operation in medium 1130.
Device 1100 can also include one or more power supplys 1126, one or more wired or wireless networks
Interface 1150, one or more input/output interfaces 1158, one or more keyboards 1156 and/or, one or one
A Yi Shang operating system 1141, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc.
Deng.
Figure 12 is the block diagram that device 1200 is provided according to a kind of network service shown in an exemplary embodiment.For example, dress
It can be mobile phone to put 1200, computer, digital broadcast terminal, messaging devices, game console, tablet device, doctor
Treat equipment, body-building equipment, personal digital assistant etc..
With reference to Figure 12, device 1200 can include following one or more components:Processing component 1202, memory 1204,
Power supply module 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module
1214 and communication component 1216.
The integrated operation of 1202 usual control device 1200 of processing component, such as with display, call, data communication,
Camera operation and record operate associated operation.Processing component 1202 can be performed including one or more processors 1218
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 can include one or more moulds
Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 can include multi-media module,
To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in device 1200.These data
Example is included for the instruction of any application program or method that is operated on device 1200, contact data, telephone book data,
Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.One or more modules are also stored in memory 1204, the one or more module be configured to by
The one or more processors 1220 perform, to complete all or part of step of the method shown in above-mentioned Fig. 5 or 6.
Power supply module 1206 provides electric power for the various assemblies of device 1200.Power supply module 1206 can include power management
System, one or more power supplys and other generate, manage and distribute electric power associated component with for device 1200.
Multimedia component 1208 is included in the screen of one output interface of offer between described device 1200 and user.
In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch and passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or slide dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, it is more
Media component 1208 includes a front camera and/or rear camera.When device 1200 is in operation mode, mould is such as shot
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat
Gram wind (MIC), when device 1200 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 1204 or via communication
Component 1216 is sent.In some embodiments, audio component 1210 further includes a loud speaker, for exports audio signal.
I/O interfaces 1212 provide interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module
Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and
Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented
Estimate.For example, sensor module 1214 can detect opening/closed state of device 1200, the relative positioning of component, such as institute
The display and keypad that component is device 1200 are stated, sensor module 1214 can be with detection device 1200 or device 1,200 1
The position change of a component, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and dress
Put 1200 temperature change.Sensor module 1214 can include proximity sensor, be configured in no any physics
It is detected the presence of nearby objects during contact.Sensor module 1214 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by putting 1200,2G or 3G or combination thereof.It is exemplary at one
In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1216 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application application-specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other-end element are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 1204 of instruction, above-metioned instruction can be performed to complete the above method by the processor 1218 of device 1200.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method
Embodiment in perform detailed description, explanation will be not set forth in detail herein.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and change can be being performed without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (18)
1. a kind of network service provider method, in server, which is characterized in that the method includes:
Obtain the network connection quality of terminal;
The network classes of service of the terminal is determined according to the network connection quality, and institute is used to indicate to terminal transmission
Second network information of network connection quality is stated, the terminal is used to set the terminal to institute according to the network connection quality
State largest request number of concurrent when server sends network request and/or, the terminal is for detecting the network connection
When quality is less than preset quality standard, the base of request operation is not yet received into the server acquisition request current interface
Plinth data;
When receiving the network request that the terminal is sent, according to the network classes of service, provided to the terminal
The corresponding network service of the network request.
2. according to the method described in claim 1, it is characterized in that, it is described obtain terminal network connection quality, including:
The average throughput of the server is sent to the terminal, the average throughput is used to indicate the server simultaneously
The average quantity of the terminal of support;
It receives what the terminal was sent, is used to indicate the first network information of the network connection quality, the network connection matter
Amount is that the terminal is determined according to the round-trip delay of the average throughput and the terminal, and the round-trip delay is the end
Hold the time delay being transmit a request to the server between the response for receiving the server.
3. according to the method described in claim 1, it is characterized in that, it is described obtain terminal network connection quality, including:
The round-trip delay that the terminal is sent is received, the round-trip delay transmit a request to the server for the terminal and connects
Receive the time delay between the response of the server;
The network connection quality, the average throughput are determined according to the average throughput of the server and the round-trip delay
Amount is used to indicate the average quantity of the server while the terminal supported.
4. according to the method described in claim 1, it is characterized in that, described determine the terminal according to the network connection quality
Network classes of service, including:
When the network service includes photo services, the corresponding figure of the photo services is determined according to the network connection quality
Chip size;
When the network service includes Video service, determine that the Video service is corresponding according to the network connection quality and regard
The clarity of frequency;
When the network service includes audio service, the corresponding sound of the audio service is determined according to the network connection quality
The code check of frequency;
When the network service includes template loading service, the template loading service is determined according to the network connection quality
The type of corresponding template file, the type of the template file include compiled template file or non-compiled template text
Part.
5. a kind of network service provider method, in terminal, which is characterized in that the method includes:
Network request is sent to server;
Receive what the server was provided according to the network classes of service of terminal, the corresponding network service of the network request;Institute
It is the network connection quality that the server obtains the terminal to state network classes of service, and true according to the network connection quality
Fixed;
Second network information that the server is sent is received, second network information is used to indicate the network connection matter
Amount;
The largest request when terminal being set to the server transmission network request according to the network connection quality
Number of concurrent and/or, whether the network connection quality is detected less than preset quality standard, if testing result is the network
Quality of connection is less than the preset quality standard, then not yet receives request into the server acquisition request current interface
The basic data of operation.
6. according to the method described in claim 5, it is characterized in that, the method further includes:
Receiving what the server was provided according to the network classes of service of the terminal, the corresponding network of the network request takes
Before business, the round-trip delay of the terminal is obtained, the round-trip delay transmit a request to the server for the terminal and connects
Receive the time delay between the response of the server;
Receive what the server was sent, the average throughput of the server, the average throughput is used to indicate the clothes
The average quantity for device while the terminal supported of being engaged in;
The network connection quality is determined according to the average throughput and the round-trip delay;
First network information is sent to the server, the first network information is used to indicate the network connection quality.
7. according to the method described in claim 5, it is characterized in that, the method further includes:
Receiving what the server was provided according to the network classes of service of the terminal, the corresponding network of the network request takes
Before business, the round-trip delay of the terminal is obtained, the round-trip delay transmit a request to the server for the terminal and connects
Receive the time delay between the response of the server;
The round-trip delay is sent to the server.
8. a kind of network service provides device, in server, which is characterized in that described device includes:
Quality of connection acquisition module, for obtaining the network connection quality of terminal;
Level determination module, for determining the network classes of service of the terminal according to the network connection quality;
Service providing module, for when receiving the network request that the terminal is sent, according to the network classes of service, to
The terminal provides the network request corresponding network service;
First information sending module, the second network for being used to indicate the network connection quality to terminal transmission are believed
Breath, when the terminal is used to set the terminal to the server transmission network request according to the network connection quality
Largest request number of concurrent and/or, the terminal be used for detecting the network connection quality be less than preset quality standard
When, the basic data that request operates not yet is received into the server acquisition request current interface.
9. device according to claim 8, which is characterized in that the quality of connection acquisition module, including:
Handling capacity sending submodule, for sending the average throughput of the server, the average throughput to the terminal
It is used to indicate the average quantity of the server while the terminal supported;
Information receiving submodule for receiving the terminal transmission, is used to indicate the first network of the network connection quality
Information, the network connection quality are that the terminal is determined according to the round-trip delay of the average throughput and the terminal,
The round-trip delay transmit a request to the time delay between the response for receiving the server for the terminal to the server.
10. device according to claim 8, which is characterized in that the quality of connection acquisition module, including:
Time delay receiving submodule, for receiving the round-trip delay that the terminal is sent, the round-trip delay is the terminal to institute
State the time delay that server is transmit a request between the response for receiving the server;
Quality of connection determination sub-module determines the net for the average throughput according to the server and the round-trip delay
Network quality of connection, the average throughput are used to indicate the average quantity of the server while the terminal supported.
11. device according to claim 8, which is characterized in that the level determination module, including:
Dimension of picture determination sub-module, for when the network service include photo services when, according to the network connection quality
Determine the corresponding dimension of picture of the photo services;
Video definition determination sub-module, for when the network service include Video service when, according to the network connection matter
Amount determines the clarity of the corresponding video of the Video service;
Audio code rate determination sub-module, for when the network service include audio service when, according to the network connection quality
Determine the code check of the corresponding audio of the audio service;
File type determination sub-module, for when the network service include template loading service when, according to the network connection
Quality determines that the template loading services the type of corresponding template file, and the type of the template file includes compiled mould
Plate file or non-compiled template file.
12. a kind of network service provides device, in terminal, which is characterized in that described device includes:
Request sending module, for sending network request to server;
Network service receiving module is provided according to the network classes of service of terminal for receiving the server, the network
Ask corresponding network service;The network classes of service is the network connection quality that the server obtains the terminal, and
It is determined according to the network connection quality;
Information receiving module, for receiving second network information that the server is sent, second network information is used to refer to
Show the network connection quality;
Number of concurrent setup module, for the terminal being set to send the net to the server according to the network connection quality
Largest request number of concurrent when network is asked;And/or detection module, for whether detecting the network connection quality less than default
Quality standard, basic data request module, if for testing result for the network connection quality be less than the preset matter
Amount standard then not yet receives the basic data of request operation, the basis into the server acquisition request current interface
Data include application programming interface data, masterplate data or pattern file data.
13. device according to claim 12, which is characterized in that described device further includes:
First time delay acquisition module, for receiving net of the server according to the terminal in the network service receiving module
What the network grade of service provided, before the corresponding network service of the network request, the round-trip delay of the terminal is obtained, it is described past
Return the time delay that time delay is transmit a request to for the terminal to the server between the response for receiving the server;
Throughput reception module, for receiving the server transmission, the average throughput of the server is described averagely to gulp down
The amount of spitting is used to indicate the average quantity of the server while the terminal supported;
Quality of connection determining module, for determining the network connection matter according to the average throughput and the round-trip delay
Amount;
Second information sending module, for sending first network information to the server, the first network information is used to refer to
Show the network connection quality.
14. device according to claim 12, which is characterized in that described device further includes:
Second time delay acquisition module, for receiving net of the server according to the terminal in the network service receiving module
What the network grade of service provided, before the corresponding network service of the network request, the round-trip delay of the terminal is obtained, it is described past
Return the time delay that time delay is transmit a request to for the terminal to the server between the response for receiving the server;
Time delay sending module, for sending the round-trip delay to the server.
15. a kind of network service provides device, which is characterized in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Obtain the network connection quality of terminal;
The network classes of service of the terminal is determined according to the network connection quality, and institute is used to indicate to terminal transmission
Second network information of network connection quality is stated, the terminal is used to set the terminal to institute according to the network connection quality
State largest request number of concurrent when server sends network request and/or, the terminal is for detecting the network connection
When quality is less than preset quality standard, the base of request operation is not yet received into the server acquisition request current interface
Plinth data;
When receiving the network request that the terminal is sent, according to the network classes of service, provided to the terminal
The corresponding network service of the network request.
16. a kind of network service provides device, which is characterized in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Network request is sent to server;
Receive what the server was provided according to the network classes of service of terminal, the corresponding network service of the network request;Institute
It is the network connection quality that the server obtains the terminal to state network classes of service, and true according to the network connection quality
Fixed;
Second network information that the server is sent is received, second network information is used to indicate the network connection matter
Amount;
The largest request when terminal being set to the server transmission network request according to the network connection quality
Number of concurrent and/or, whether the network connection quality is detected less than preset quality standard, if testing result is the network
Quality of connection is less than the preset quality standard, then not yet receives request into the server acquisition request current interface
The basic data of operation.
17. a kind of computer readable storage medium, which is characterized in that it has program stored therein in the computer readable storage medium,
Described program is performed to realize such as Claims 1-4 any one of them method by processor.
18. a kind of computer readable storage medium, which is characterized in that it has program stored therein in the computer readable storage medium,
Described program is performed to realize such as claim 5 to 7 any one of them method by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410828129.1A CN104580019B (en) | 2014-12-26 | 2014-12-26 | Network service provider method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410828129.1A CN104580019B (en) | 2014-12-26 | 2014-12-26 | Network service provider method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104580019A CN104580019A (en) | 2015-04-29 |
CN104580019B true CN104580019B (en) | 2018-06-12 |
Family
ID=53095238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410828129.1A Active CN104580019B (en) | 2014-12-26 | 2014-12-26 | Network service provider method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104580019B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105530292A (en) * | 2015-12-01 | 2016-04-27 | 小米科技有限责任公司 | Page image display method and device |
CN107132990B (en) * | 2016-02-26 | 2021-05-04 | 深信服科技股份有限公司 | Read IO scheduling method and device based on super-fusion storage |
US10958695B2 (en) * | 2016-06-21 | 2021-03-23 | Google Llc | Methods, systems, and media for recommending content based on network conditions |
CN106162261A (en) * | 2016-07-28 | 2016-11-23 | 王晓光 | Different delay is strategy method and system in video ads receives |
CN108512864B (en) * | 2017-02-23 | 2021-07-27 | 腾讯科技(深圳)有限公司 | Network request scheduling method and device |
CN109660412A (en) * | 2017-10-10 | 2019-04-19 | 中兴通讯股份有限公司 | A kind of terminal chat method, device, equipment and storage medium |
CN109218759A (en) * | 2018-09-27 | 2019-01-15 | 广州酷狗计算机科技有限公司 | Push method, apparatus, server and the storage medium of Media Stream |
CN109561457B (en) * | 2018-12-21 | 2022-07-19 | 海南新软软件有限公司 | Method, device and system for optimizing client network |
CN109951341B (en) * | 2019-04-01 | 2022-03-25 | 北京达佳互联信息技术有限公司 | Content acquisition method, device, terminal and storage medium |
CN110312272B (en) * | 2019-07-23 | 2021-01-15 | 中南大学 | Network service block resource allocation method and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1655547A (en) * | 2004-09-09 | 2005-08-17 | 上海川海信息科技有限公司 | A speed control method in stream media transmission system |
CN103347056A (en) * | 2013-06-19 | 2013-10-09 | 百度在线网络技术(北京)有限公司 | Webpage access method, system and server of mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200405187A (en) * | 2002-09-11 | 2004-04-01 | Matsushita Electric Ind Co Ltd | Service providing method |
-
2014
- 2014-12-26 CN CN201410828129.1A patent/CN104580019B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1655547A (en) * | 2004-09-09 | 2005-08-17 | 上海川海信息科技有限公司 | A speed control method in stream media transmission system |
CN103347056A (en) * | 2013-06-19 | 2013-10-09 | 百度在线网络技术(北京)有限公司 | Webpage access method, system and server of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104580019A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104580019B (en) | Network service provider method and device | |
CN106970754B (en) | Screen capture processing method and device | |
CN110868626B (en) | Method and device for preloading content data | |
EP3128411B1 (en) | Interface display method, terminal, computer program and recording medium | |
CN104486451B (en) | Application program recommends method and device | |
EP3316136A1 (en) | Method and device for evaluating system fluency, and ue | |
CN109639896A (en) | Block object detecting method, device, storage medium and mobile terminal | |
CN104216630A (en) | Interface sharing method and interface sharing device | |
CN104464674B (en) | Liquid crystal display method of adjustment and device | |
CN104020924A (en) | Label establishing method and device and terminal | |
CN105159676B (en) | The loading method of progress bar, device and system | |
CN108804179A (en) | Show method, apparatus, terminal and the storage medium of notification bar message | |
CN104951445B (en) | Webpage processing method and device | |
CN108629814B (en) | Camera adjusting method and device | |
CN111079040B (en) | Resource sniffing method, device, terminal, server and storage medium | |
CN107679205B (en) | Multimedia data playing method and device, computer equipment and storage medium | |
CN107704489B (en) | Processing method and device for read-write timeout and computer readable storage medium | |
CN107203315B (en) | Click event processing method and device and terminal | |
CN104537111B (en) | The loading method and device of Web page picture | |
CN105045510B (en) | Realize that video checks the method and device of operation | |
CN106302000A (en) | Access based reminding method, device and the terminal of webpage | |
CN116347060A (en) | Camera performance evaluation method, device, readable storage medium and system | |
CN106484259A (en) | Input method, device and equipment | |
CN113190302A (en) | Information display method and device, electronic equipment and storage medium | |
CN112230982A (en) | Material processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |