CN106790428A - A kind of data transmission method and device - Google Patents

A kind of data transmission method and device Download PDF

Info

Publication number
CN106790428A
CN106790428A CN201611099879.5A CN201611099879A CN106790428A CN 106790428 A CN106790428 A CN 106790428A CN 201611099879 A CN201611099879 A CN 201611099879A CN 106790428 A CN106790428 A CN 106790428A
Authority
CN
China
Prior art keywords
data
real
server
time requirement
sent
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.)
Granted
Application number
CN201611099879.5A
Other languages
Chinese (zh)
Other versions
CN106790428B (en
Inventor
沈义鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Music Entertainment Technology Shenzhen Co Ltd
Original Assignee
Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Music Entertainment Technology Shenzhen Co Ltd filed Critical Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority to CN201611099879.5A priority Critical patent/CN106790428B/en
Publication of CN106790428A publication Critical patent/CN106790428A/en
Application granted granted Critical
Publication of CN106790428B publication Critical patent/CN106790428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing

Abstract

The embodiment of the invention discloses a kind of data transmission method and device, methods described includes:Acquisition needs to be sent to the data of server, and determines the real-time requirement grade of the data;When the real-time requirement grade of the data is less than predetermined level threshold value, the quantity of all data for needing the data acquisition system for being sent to server to be included is obtained;When the quantity of all data for needing the data acquisition system for being sent to server to be included is more than predetermined number threshold value, it would be desirable to be sent to all data is activations that the data acquisition system of server included to server.Using the embodiment of the present invention, the number of times that reports for reporting server can be reduced, reduce the load of server, lift network performance.

Description

A kind of data transmission method and device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of data transmission method and device.
Background technology
Client (Client), refers to corresponding with server (Server), provides the user the program of local service, is needed To be worked in coordination operation with service end.The network architecture of the network that at least one client and server are constituted can be based on From formula framework, abbreviation C/S structures, at least one client can send data to the server.User end to server sends The transmission times of data can be the number of times that reports for reporting server, and such as client often shows that a page or user pass through Client often clicks on a button, and client can all be reported to server, when client is reported it is too frequent when, will cause service Device load increases, and reduces network performance.
The content of the invention
Embodiment of the present invention technical problem to be solved is, there is provided a kind of data transmission method and device, can reduce The number of times that reports of server is reported, the load of server is reduced, network performance is lifted.
In order to solve the above-mentioned technical problem, a kind of data transmission method is the embodiment of the invention provides, methods described includes:
Acquisition needs to be sent to the data of server, and determines the real-time requirement grade of the data;
When the real-time requirement grade of the data is less than predetermined level threshold value, acquisition needs to be sent to the server The quantity of all data that data acquisition system is included;
When the quantity of all data for needing the data acquisition system for being sent to the server to be included is more than predetermined number threshold During value, it would be desirable to be sent to all data is activations that the data acquisition system of the server included to the server.
Correspondingly, the embodiment of the present invention additionally provides a kind of data transmission device, and described device includes:
Demand levels determining module, needs to be sent to the data of server, and determine the real-time of the data for obtaining Demand levels;
Quantity acquisition module, for when the real-time requirement grade of the data is less than predetermined level threshold value, obtaining to need It is sent to the quantity of all data that the data acquisition system of the server is included;
Data transmission blocks, for when the number of all data for needing the data acquisition system for being sent to the server to be included When amount is more than predetermined number threshold value, it would be desirable to be sent to all data is activations that the data acquisition system of the server included to institute State server.
Implement the embodiment of the present invention, need to be sent to the data of server by obtaining, and determine the real-time requirement of data Grade, when the real-time requirement grade of data is less than predetermined level threshold value, acquisition needs to be sent to the data acquisition system institute of server Comprising all data quantity, when the quantity of all data for needing the data acquisition system for being sent to server to be included is more than pre- If during amount threshold, it would be desirable to be sent to all data is activations that the data acquisition system of server included to server, can reduce The number of times that reports of server is reported, the load of server is reduced, network performance is lifted.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings;
Fig. 1 is a kind of schematic flow sheet of data transmission method of offer in the embodiment of the present invention;
Fig. 2 is a kind of structural representation of data transmission device of offer in the embodiment of the present invention;
Fig. 3 is a kind of structural representation of client of offer in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
A kind of data transmission method is the embodiment of the invention provides, client can be obtained needs the number for being sent to server According to, and determine the real-time requirement grade of the data, when the real-time requirement grade of the data is less than predetermined level threshold value, obtaining needs The quantity of all data that the data acquisition system of server is included is sent to, when the data acquisition system institute for needing to be sent to server Comprising all data quantity be more than predetermined number threshold value when, it would be desirable to be sent to the institute that the data acquisition system of server is included There is data is activation to server.Relatively conventional data transmission method does not get the data for needing to be sent to server When, server is sent the data in real time, the embodiment of the present invention is directed to the junior data of real-time requirement, is needing to send When the quantity of all data included to the data acquisition system of server is more than predetermined number threshold value, all batch datas are sent To server, the number of times that reports for reporting server can be reduced, reduce the load of server, lift network performance.
Above-mentioned data transmission method can apply in client, and client may operate in panel computer, mobile phone, individual In the terminals such as computer (Personal Computer, PC), notebook computer or Web TV.Can be run in one terminal At least one client, such as webpage (web) client, Mail Clients or multimedia client etc..
Fig. 1 is referred to, the embodiment of the invention discloses a kind of schematic flow sheet of the data transmission method shown in Fig. 1.Such as Shown in Fig. 1, the data transmission method may comprise steps of:
S101, acquisition needs to be sent to the data of server, and determines the real-time requirement grade of the data.
Client can obtain the data, and determine the real-time of the data in the presence of when needing the data for being sent to server Demand levels.Wherein, the number of clicks when data that client is sent to server can be client user's click button, or Login account number and password for being input when person client user is by accessing server by customer end, etc., specifically not by the present invention The restriction of embodiment.Wherein, real-time requirement grade can serve to indicate that the real-time requirement degree of corresponding data, and such as data are Game data or instant communication data, higher to requirement of real-time, then the real-time requirement of the data is higher ranked, and for example the number According to being button number of clicks or mail data etc., relatively low to requirement of real-time, then the real-time requirement grade of the data is relatively low.
Optionally, when the real-time requirement grade of the data is more than or equal to predetermined level threshold value, client can be by The data is activation is to server.Wherein, predetermined level threshold value can be grade threshold set in advance, for example real-time requirement grade The first real-time requirement grade, the second real-time requirement grade or the 3rd real-time requirement grade, first real-time requirement etc. can be included Level can be more than the second real-time requirement grade, and the second real-time requirement grade can be more than the 3rd real-time requirement grade, predetermined level Threshold value can be the second real-time requirement grade, then client gets real-time requirement grade more than or equal to the second real-time requirement After the data of grade, server can be in real time sent the data to.It should be noted that real-time requirement grade include but not The first real-time requirement grade, the second real-time requirement grade or the 3rd real-time requirement grade are confined to, predetermined level threshold value is included But the second real-time requirement grade is not limited to, research staff can be adjusted correspondingly with reference to different application scene.
In implementing, client is obtained after the real-time requirement grade of the data, it can be determined that the real-time need of the data Whether grade is sought more than predetermined level threshold value, when the real-time requirement grade of the data is more than or equal to predetermined level threshold value, Client can determine that requirement of the data to real-time is higher, and then the data are sent into server in real time, to ensure number According to the reliability of transmission.Exemplary, when client user logs in account number and password to client input, client can be obtained Take comprising logging in the data of account number and password, and determine that the real-time requirement grade of the data is the first real-time requirement grade, its Middle predetermined level threshold value is the second real-time requirement grade, then client can determine the real-time requirement grade of the data more than default Grade threshold, and then the data are sent to server in real time.
Optionally, client determines that the mode of the real-time requirement grade of the data is specifically as follows:Client obtains the number According to data type, and according to the data type and the corresponding relation of real-time requirement grade for pre-building, obtain the number of the data According to the corresponding real-time requirement grade of type.Wherein, client can classify to each data, obtain different classes of data Data type, for example client can be based on data purposes classified, obtain the data type of different classes of data It is game data, audio, video data, instant communication data or prompting data, points out data to can serve to indicate that client enters Number of clicks of target pages or button etc..
In implementing, client can pre-build the corresponding relation of data type and real-time requirement grade, for example visitor Family end can determine that the real-time requirement grade of the data that data type is game data is the first real-time requirement grade, data type For the real-time requirement grade of the data of audio, video data is the second real-time requirement grade, data type is the number of instant communication data According to real-time requirement grade be the second real-time requirement grade, data type is that the real-time requirement grade of the data for pointing out data is the Three real-time requirement grades.Client is obtained after the data type of the data, can be according to the data type and reality for pre-building When demand levels corresponding relation, obtain the corresponding real-time requirement grade of data type of the data, the data of such as data When type is game data, client can determine that the real-time requirement grade of the data is the first real-time requirement grade.
Optionally, client determines that the mode of the real-time requirement grade of the data is specifically as follows:Client output on The real-time requirement grade of the data obtains solicited message, and receives real-time requirement grade of the client user to the data configuration.
In implementing, client can obtain request to client user's real-time requirement grade of the output on the data Information, such as client show that the real-time requirement grade on the data obtains solicited message on the display screen of terminal, or Person's client plays the real-time requirement grade on the data and obtains solicited message etc. by Mike's wind direction client user.Client End subscriber can respond the real-time requirement grade and obtain solicited message, to the data configuration real-time requirement grade, and then client Receive real-time requirement grade of the client user to the data configuration.Such as client user combines practical application scene and determines to be somebody's turn to do Requirement of the data to real-time is higher, then client user can in real time need to the real-time requirement grade of the data configuration for first Grade, or client user is asked to determine that requirement of the data to real-time is relatively low with reference to practical application scene, then client is used Family can be second real-time requirement grade etc. to the real-time requirement grade of the data configuration.
S102, when the real-time requirement grade of the data is less than predetermined level threshold value, acquisition needs to be sent to server The quantity of all data that data acquisition system is included.
Client is obtained after the real-time requirement grade of the data, it can be determined that whether the real-time requirement grade of the data is big In predetermined level threshold value, when the real-time requirement grade of the data is less than predetermined level threshold value, client can cache the data, And obtain the quantity of all data for needing the data acquisition system for being sent to server to be included., wherein it is desired to be sent to server Data acquisition system can include at least one data, each data that the data acquisition system is included be client need be sent to clothes Business device and the current data for being not issued to server.Such as client determines that the real-time requirement grade of data is less than predetermined level threshold During value, can store that data into needs to be sent in the data acquisition system of server, and then obtains the data acquisition system and included All data quantity, such as data acquisition system includes the first data, the second data and the 3rd data, then client can be with The quantity of all data that the data acquisition system is included is got for three, and for example the data acquisition system includes the first data, second Data and the 3rd data, the data volume of the first data is 10KB, and the data volume of the second data is 50KB, the data of the 3rd data It is 70KB to measure, then the quantity that client can get all data that the data acquisition system is included is 10+50+70=130KB.
Optionally, client obtain all data for needing that the data acquisition system for being sent to server included quantity it Afterwards, when the quantity of all data for needing the data acquisition system for being sent to server to be included is less than or equal to predetermined number threshold value When, client by after preset duration to needing the data acquisition system for being sent to server to be updated, data after renewal When the quantity of all data that set is included is more than predetermined number threshold value, client can be wrapped the data acquisition system after renewal The all data is activations for containing are to server.
In implementing, client obtains the quantity of all data for needing the data acquisition system for being sent to server to be included Afterwards, it can be determined that whether need the quantity of all data that the data acquisition system for being sent to server included more than predetermined number Threshold value, when the quantity of all data for needing the data acquisition system for being sent to server to be included is less than or equal to predetermined number threshold During value, client can by after preset duration to needing the data acquisition system for being sent to server to be updated, after renewal The quantity of all data that is included of data acquisition system when being more than predetermined number threshold value, client can be by the data set after renewal All data is activations that conjunction is included are to server.Wherein, predetermined number threshold value can be amount threshold set in advance, for example Ten or 70KB etc..Preset duration can be time period set in advance, such as 10ms or 1s etc..
For example, predetermined number threshold value is ten, and when the real-time requirement grade of the data is less than predetermined level threshold value, client The quantity that end gets all data for needing the data acquisition system for being sent to server to be included is eight, and client can determine The quantity of all data that the data acquisition system is included is less than predetermined number threshold value, and then from determining that the data acquisition system is included The quantity of all data is begun to pass through in the time period of preset duration less than predetermined number threshold value, gets new real-time requirement etc. Level is less than the data of predetermined level threshold value, then client can be updated to the data acquisition system, real-time requirement that will be new etc. Less than in the data Cun Chudao of the predetermined level threshold value data acquisition systems, the data acquisition system that client can obtain after updating is wrapped level The quantity of all data for containing, when the quantity of all data that the data acquisition system after renewal is included is ten, client can To determine that the quantity of all data that the data acquisition system after updating is included is equal to predetermined number threshold value, and then by the number after renewal The all batch datas included according to set are sent to server.
And for example, predetermined number threshold value is 70KB, when the real-time requirement grade of the data is less than predetermined level threshold value, client The quantity that end gets all data for needing the data acquisition system for being sent to server to be included is 60KB, and client can determine The quantity of all data that the data acquisition system is included is less than predetermined number threshold value, and then from determining that the data acquisition system is included The quantity of all data is begun to pass through in the time period of preset duration less than predetermined number threshold value, gets new real-time requirement etc. Level is less than the data of predetermined level threshold value, then client can be updated to the data acquisition system, real-time requirement that will be new etc. Less than in the data Cun Chudao of the predetermined level threshold value data acquisition systems, the data acquisition system that client can obtain after updating is wrapped level The quantity of all data for containing, when the quantity of all data that the data acquisition system after renewal is included is 80KB, client can To determine the quantity of all data that the data acquisition system after updating included more than predetermined number threshold value, and then by the number after renewal The all batch datas included according to set are sent to server.
S103, when the quantity of all data for needing the data acquisition system for being sent to server to be included is more than predetermined number threshold During value, it would be desirable to be sent to all data is activations that the data acquisition system of server included to server.
Client is obtained after the quantity of all data for needing the data acquisition system for being sent to server to be included, and can be sentenced Whether the quantity of the disconnected all data for needing the data acquisition system for being sent to server to be included works as needs more than predetermined number threshold value When the quantity for being sent to all data that the data acquisition system of server is included is more than predetermined number threshold value, client can be needed It is sent to all batch datas that the data acquisition system of server included and is sent to server.
Optionally, client will need all batch datas that the data acquisition system for being sent to server is included to be sent to clothes After business device, if server is successfully received all data that the data acquisition system of client transmission is included, server can Successful information is received to be sent to client, client can be emptied according to the reception successful information to the data acquisition system, All data that the data acquisition system is included for example are deleted, to realize the renewal to the data acquisition system, client can be avoided to this The data that data acquisition system is included are retransmitted, and improve the reliability of data transfer.
In the embodiment of the present invention, acquisition needs to be sent to the data of server, and determines the real-time requirement grade of the data, When the real-time requirement grade of the data is less than predetermined level threshold value, acquisition needs the data acquisition system for being sent to server to be included All data quantity, when all data for needing the data acquisition system for being sent to server to be included quantity be more than present count During amount threshold value, it would be desirable to be sent to all data is activations that the data acquisition system of server included to server.Using the present invention Embodiment, can reduce the number of times that reports for reporting server, reduce the load of server, lift network performance.
Fig. 2 is referred to, Fig. 2 is a kind of structural representation of data transmission device of offer in the embodiment of the present invention, described Data transmission device can be used for implementing to combine the part or all of step in the embodiment of the method shown in Fig. 1, as shown in the figure originally Data transmission device in embodiment can at least include demand levels determining module 201, quantity acquisition module 202 and data Sending module 203, wherein:
Demand levels determining module 201, needs to be sent to the data of server, and determine the reality of the data for obtaining When demand levels., wherein it is desired to the number of clicks when data for being sent to server can be client user's click button, or Login account number and password for being input when person client user is by accessing server by customer end, etc., specifically not by the present invention The restriction of embodiment.Wherein, real-time requirement grade can serve to indicate that the real-time requirement degree of corresponding data, and such as data are Game data or instant communication data, higher to requirement of real-time, then the real-time requirement of the data is higher ranked, and for example the number According to being button number of clicks or mail data etc., relatively low to requirement of real-time, then the real-time requirement grade of the data is relatively low.
Quantity acquisition module 202, for when the real-time requirement grade of the data is less than predetermined level threshold value, obtaining to need It is sent to the quantity of all data that the data acquisition system of the server is included.Such as data acquisition system includes the first number According to, the second data and the 3rd data, then quantity acquisition module 202 can get all data that the data acquisition system is included Quantity be three, and for example the data acquisition system include the first data, the second data and the 3rd data, the data volume of the first data It is 10KB, the data volume of the second data is 50KB, and the data volume of the 3rd data is 70KB, then quantity acquisition module 202 can be obtained The quantity for getting all data that the data acquisition system is included is 10+50+70=130KB.
Data transmission blocks 203, for when all data for needing the data acquisition system for being sent to the server to be included Quantity be more than predetermined number threshold value when, it would be desirable to be sent to all data is activations that the data acquisition system of the server is included To the server.
Optionally, the data transmission blocks 203, are additionally operable to the demand levels determining module 201 and determine the data Real-time requirement grade after, when the data real-time requirement grade be more than or equal to the predetermined level threshold value when, will The data is activation gives the server.Wherein, predetermined level threshold value can be grade threshold set in advance, for example, need in real time Seeking grade can include the first real-time requirement grade, the second real-time requirement grade or the 3rd real-time requirement grade, and first is real-time Demand levels can be more than the second real-time requirement grade, and the second real-time requirement grade can be more than the 3rd real-time requirement grade, in advance If grade threshold can be the second real-time requirement grade, then data transmission blocks 203 get real-time requirement grade be more than or After data equal to the second real-time requirement grade, server can be in real time sent the data to.It should be noted that in real time Demand levels including but not limited to the first real-time requirement grade, the second real-time requirement grade or the 3rd real-time requirement grade, Predetermined level threshold value can carry out phase including but not limited to the second real-time requirement grade, research staff with reference to different application scene The adjustment answered.
Exemplary, when client user logs in account number and password to client input, demand levels determining module 201 Can obtain comprising logging in the data of account number and password, and determine that the real-time requirement grade of the data is first real-time requirement etc. Level, wherein predetermined level threshold value are the second real-time requirement grade, then data transmission blocks 203 can determine the real-time need of the data Grade is sought more than predetermined level threshold value, and then the data are sent to server in real time.
Optionally, the data transmission device in the embodiment of the present invention can also include:
Data acquisition system update module 204, being obtained for the quantity acquisition module 202 needs to be sent to the server After the quantity of all data that data acquisition system is included, when the institute for needing the data acquisition system for being sent to the server to be included Have data quantity be less than or equal to the predetermined number threshold value when, by after preset duration to needing to be sent to the clothes The data acquisition system of business device is updated.Wherein, predetermined number threshold value can be amount threshold set in advance, such as ten or 70KB etc..Preset duration can be time period set in advance, such as 10ms or 1s etc..
The data transmission blocks 203, the quantity for being additionally operable to all data that data acquisition system after updating is included is big When predetermined number threshold value, all data is activations that the data acquisition system after the renewal is included give the server.
For example, predetermined number threshold value is ten, and when the real-time requirement grade of the data is less than predetermined level threshold value, quantity The quantity that acquisition module 202 gets all data for needing the data acquisition system for being sent to server to be included is eight, data Set update module 204 can determine the quantity of all data that the data acquisition system is included less than predetermined number threshold value, and then The time of preset duration is begun to pass through less than predetermined number threshold value from the quantity for determining all data that the data acquisition system is included In section, data of the new real-time requirement grade less than predetermined level threshold value are got, and the data acquisition system is updated, will Less than in the data Cun Chudao of the predetermined level threshold value data acquisition systems, data transmission blocks 203 can be with for new real-time requirement grade Obtain the quantity of all data that the data acquisition system after updating is included, all data that data acquisition system after renewal is included Quantity when being ten, data transmission blocks 203 can determine the quantity of all data that the data acquisition system after updating is included Equal to predetermined number threshold value, and then all batch datas that the data acquisition system after renewal is included are sent to server.
And for example, predetermined number threshold value is 70KB, when the real-time requirement grade of the data is less than predetermined level threshold value, quantity The quantity that acquisition module 202 gets all data for needing the data acquisition system for being sent to server to be included is 60KB, data Set update module 204 can determine the quantity of all data that the data acquisition system is included less than predetermined number threshold value, and then The time of preset duration is begun to pass through less than predetermined number threshold value from the quantity for determining all data that the data acquisition system is included In section, data of the new real-time requirement grade less than predetermined level threshold value are got, and the data acquisition system is updated, will Less than in the data Cun Chudao of the predetermined level threshold value data acquisition systems, data transmission blocks 203 can be with for new real-time requirement grade Obtain the quantity of all data that the data acquisition system after updating is included, all data that data acquisition system after renewal is included Quantity when being 80KB, data transmission blocks 203 can determine the quantity of all data that the data acquisition system after updating is included More than predetermined number threshold value, and then all batch datas that the data acquisition system after renewal is included are sent to server.
Optionally, the demand levels determining module 201, specifically for:
Obtain the data type of the data.
According to the data type and the corresponding relation of real-time requirement grade that pre-build, the data type of the data is obtained Corresponding real-time requirement grade.
In implementing, demand levels determining module 201 can pre-build the right of data type and real-time requirement grade Should be related to, such as demand levels determining module 201 can determine the real-time requirement grade of the data that data type is game data It is the first real-time requirement grade, data type is second real-time requirement etc. for the real-time requirement grade of the data of audio, video data Level, data type is the second real-time requirement grade for the real-time requirement grade of the data of instant communication data, and data type is to carry The real-time requirement grade of the data of registration evidence is the 3rd real-time requirement grade.Demand levels determining module 201 obtains the data After data type, the data can be obtained according to the data type and the corresponding relation of real-time requirement grade for pre-building The corresponding real-time requirement grade of data type, such as when the data type of the data is game data, demand levels determining module 201 can determine the data real-time requirement grade be the first real-time requirement grade.
Optionally, the demand levels determining module 201, specifically for:
Export the real-time requirement grade on the data and obtain solicited message.
Receive real-time requirement grade of the client user to the data configuration.
In implementing, demand levels determining module 201 can export the real-time need on the data to client user Grade is asked to obtain solicited message, such as demand levels determining module 201 is shown on the data on the display screen of terminal Real-time requirement grade obtains solicited message, or demand levels determining module 201 is played by Mike's wind direction client user and closed Solicited message etc. is obtained in the real-time requirement grade of the data.Client user can respond the real-time requirement grade and obtain request Information, receives client user and the data is matched somebody with somebody to the data configuration real-time requirement grade, and then demand levels determining module 201 The real-time requirement grade put.Such as client user determines that requirement of the data to real-time is higher with reference to practical application scene, Then client user to the real-time requirement grade of the data configuration can be the first real-time requirement grade, or client user knot Close practical application scene and determine that requirement of the data to real-time is relatively low, then real-time requirement of the client user to the data configuration Grade can be second real-time requirement grade etc..
In the embodiment of the present invention, demand levels determining module 201 is obtained to be needed to be sent to the data of server, and determines institute The real-time requirement grade of data is stated, when the real-time requirement grade of the data is less than predetermined level threshold value, quantity acquisition module 202 quantity for obtaining all data for needing that the data acquisition system for being sent to the server included, it is described when needing to be sent to When the quantity of all data that the data acquisition system of server is included is more than predetermined number threshold value, data transmission blocks 203 need to All data is activations that the data acquisition system of the server included are sent to the server, can be reduced and be reported server The load for reporting number of times, reducing server, lift network performance.
Fig. 3 is referred to, Fig. 3 is a kind of structural representation of client of offer in the embodiment of the present invention, and the present invention is implemented The client that example is provided can be used for implementing the method that the embodiment of the present invention shown in above-mentioned Fig. 1 is realized, for convenience of description, only The part related to the embodiment of the present invention is shown, particular technique details is not disclosed, refer to the present invention implementation shown in Fig. 1 Example.
As shown in figure 3, the client includes:At least one processor 301, such as CPU, at least one input unit 303, At least one output device 304, memory 305, at least one communication bus 302.Wherein, communication bus 302 is used to realize this Connection communication between a little components.Wherein, input unit 303 is specifically as follows control panel or keyboard etc., for receiving visitor Real-time requirement grade of the family end subscriber to data configuration.Wherein, output device 304 is specifically as follows display screen or microphone Deng for exporting the real-time requirement grade acquisition solicited message on data.Optionally, output device 304 is specifically as follows net Network interface etc., for sending data to server.Wherein, memory 305 may include high-speed RAM memory, it is also possible to also wrap Non-labile memory is included, for example, at least one magnetic disk storage needs to be sent to the data of server specifically for storage Deng.Memory 305 can optionally include at least one storage device for being located remotely from aforementioned processor 301.In memory 305 Storage batch processing code, and processor 301, input unit 303 and output device 304 call what is stored in memory 305 Program code, for performing following operation:
Processor 301 is obtained to be needed to be sent to the data of server, and determines the real-time requirement grade of the data.
When the real-time requirement grade of the data is less than predetermined level threshold value, processor 301 is obtained to be needed to be sent to institute State the quantity of all data that the data acquisition system of server is included.
When the quantity of all data for needing the data acquisition system for being sent to the server to be included is more than predetermined number threshold During value, output device 304 will need all data is activations that the data acquisition system for being sent to the server is included to the clothes Business device.
Optionally, after processor 301 determines the real-time requirement grade of the data, can also carry out following operation:
When the real-time requirement grade of the data is more than or equal to the predetermined level threshold value, output device 304 will The data is activation gives the server.
Optionally, processor 301 obtains all data for needing that the data acquisition system for being sent to the server included After quantity, following operation is can also carry out:
When the quantity of all data for needing the data acquisition system for being sent to the server to be included is less than or equal to institute When stating predetermined number threshold value, processor 301 enters by after preset duration to the data acquisition system that needs to be sent to the server Row updates.
When the quantity of all data that the data acquisition system after renewal is included is more than predetermined number threshold value, output device The 304 all data is activations for being included the data acquisition system after the renewal give the server.
Optionally, processor 301 determines the real-time requirement grade of the data, is specifically as follows:
Processor 301 obtains the data type of the data.
Processor 301 obtains the data according to the data type for pre-building and the corresponding relation of real-time requirement grade The corresponding real-time requirement grade of data type.
Optionally, processor 301 determines the real-time requirement grade of the data, is specifically as follows:
Output device 304 exports the real-time requirement grade on the data and obtains solicited message.
Input unit 303 receives real-time requirement grade of the client user to the data configuration.
Specifically, the client introduced in the embodiment of the present invention can be used to implement the method that the present invention combines Fig. 1 introductions Part or all of flow in embodiment.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be The hardware of correlation is instructed to complete by computer program, described program can be stored in computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosed is only present pre-ferred embodiments, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (10)

1. a kind of data transmission method, it is characterised in that methods described includes:
Acquisition needs to be sent to the data of server, and determines the real-time requirement grade of the data;
When the real-time requirement grade of the data is less than predetermined level threshold value, acquisition needs to be sent to the data of the server The quantity of all data that set is included;
When the quantity of all data for needing the data acquisition system for being sent to the server to be included is more than predetermined number threshold value, All data is activations that the data acquisition system for being sent to the server is included will be needed to the server.
2. the method for claim 1, it is characterised in that after the real-time requirement grade of the determination data, also Including:
When the real-time requirement grade of the data is more than or equal to the predetermined level threshold value, institute is sent the data to State server.
3. the method for claim 1, it is characterised in that the acquisition needs to be sent to the data acquisition system of the server Comprising all data quantity after, also include:
When the quantity of all data for needing the data acquisition system for being sent to the server to be included is less than or equal to described pre- If during amount threshold, being updated to the data acquisition system that needs to be sent to the server by after preset duration;
When the quantity of all data that the data acquisition system after renewal is included is more than predetermined number threshold value, after the renewal All data is activations that data acquisition system is included give the server.
4. the method for claim 1, it is characterised in that the real-time requirement grade of the determination data, including:
Obtain the data type of the data;
According to the data type and the corresponding relation of real-time requirement grade that pre-build, the data type correspondence of the data is obtained Real-time requirement grade.
5. the method for claim 1, it is characterised in that the real-time requirement grade of the determination data, including:
Export the real-time requirement grade on the data and obtain solicited message;
Receive real-time requirement grade of the client user to the data configuration.
6. a kind of data transmission device, it is characterised in that described device includes:
Demand levels determining module, needs to be sent to the data of server, and determine the real-time requirement of the data for obtaining Grade;
Quantity acquisition module, for when the real-time requirement grade of the data is less than predetermined level threshold value, acquisition to need to send The quantity of all data included to the data acquisition system of the server;
Data transmission blocks, the quantity for working as all data for needing the data acquisition system for being sent to the server to be included is big When predetermined number threshold value, it would be desirable to be sent to all data is activations that the data acquisition system of the server included to the clothes Business device.
7. device as claimed in claim 6, it is characterised in that
The data transmission blocks, be additionally operable to the demand levels determining module determine the data real-time requirement grade it Afterwards, when the real-time requirement grade of the data is more than or equal to the predetermined level threshold value, institute is sent the data to State server.
8. device as claimed in claim 6, it is characterised in that described device also includes:
Data acquisition system update module, being obtained for the quantity acquisition module needs to be sent to the data acquisition system institute of the server Comprising all data quantity after, when the number of all data for needing the data acquisition system for being sent to the server to be included When amount is less than or equal to the predetermined number threshold value, by after preset duration to needing to be sent to the data of the server Set is updated;
The data transmission blocks, the quantity for being additionally operable to all data that data acquisition system after updating is included is more than present count During amount threshold value, all data is activations that the data acquisition system after the renewal is included give the server.
9. device as claimed in claim 6, it is characterised in that the demand levels determining module, specifically for:
Obtain the data type of the data;
According to the data type and the corresponding relation of real-time requirement grade that pre-build, the data type correspondence of the data is obtained Real-time requirement grade.
10. device as claimed in claim 6, it is characterised in that the demand levels determining module, specifically for:
Export the real-time requirement grade on the data and obtain solicited message;
Receive real-time requirement grade of the client user to the data configuration.
CN201611099879.5A 2016-12-01 2016-12-01 Data transmission method and device Active CN106790428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611099879.5A CN106790428B (en) 2016-12-01 2016-12-01 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611099879.5A CN106790428B (en) 2016-12-01 2016-12-01 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN106790428A true CN106790428A (en) 2017-05-31
CN106790428B CN106790428B (en) 2019-12-31

Family

ID=58884000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611099879.5A Active CN106790428B (en) 2016-12-01 2016-12-01 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN106790428B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023208142A1 (en) * 2022-04-29 2023-11-02 维沃移动通信有限公司 Data processing method and communication device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150106528A1 (en) * 2013-10-15 2015-04-16 Verizon Patent And Licensing Inc. Communication of data of a web real-time communication via a carrier-grade environment
CN105262629A (en) * 2015-11-18 2016-01-20 上海斐讯数据通信技术有限公司 Method and system enabling WebSocket in network management system to push alarm information
CN105897365A (en) * 2016-03-23 2016-08-24 京信通信技术(广州)有限公司 Anti-impact processing method and apparatus for processor
CN106169959A (en) * 2016-07-21 2016-11-30 柳州龙辉科技有限公司 A kind of log processing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150106528A1 (en) * 2013-10-15 2015-04-16 Verizon Patent And Licensing Inc. Communication of data of a web real-time communication via a carrier-grade environment
CN105262629A (en) * 2015-11-18 2016-01-20 上海斐讯数据通信技术有限公司 Method and system enabling WebSocket in network management system to push alarm information
CN105897365A (en) * 2016-03-23 2016-08-24 京信通信技术(广州)有限公司 Anti-impact processing method and apparatus for processor
CN106169959A (en) * 2016-07-21 2016-11-30 柳州龙辉科技有限公司 A kind of log processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023208142A1 (en) * 2022-04-29 2023-11-02 维沃移动通信有限公司 Data processing method and communication device

Also Published As

Publication number Publication date
CN106790428B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
US8320405B2 (en) Data management system and method
CN104144198B (en) Multimedia information sharing method, system and device
CN105611422A (en) Online live broadcast method based on multi-media list and apparatus thereof
CN102033943A (en) Multiwindow browse method and system based on mobile communication equipment terminal
CN104040995B (en) Multimedia redirection method, multimedia server, and computer system
CN107469350A (en) A kind of Card Games control method and device
CN109684805A (en) Voice technical ability sharing method and system for voice dialogue platform
CN106845267A (en) The processing method and mobile terminal of applicating history information
CN105227425A (en) The method of syndication message, equipment and network social intercourse system
CN102083244A (en) Mobile value added service system based on embedded type virtual machine mode
CN107959615A (en) A kind of method of data transfer, user equipment and business device
CN107979520A (en) Message treatment method and message processing apparatus
CN107070729A (en) Main equipment elects method and system in network linking
CN106933822A (en) A kind of content recommendation method and device
CN106790428A (en) A kind of data transmission method and device
CN104753884A (en) Method, system and server for verifying network services
CN112800410A (en) Multi-product login management method, device, equipment and storage medium
CN103078923B (en) The dynamic adjusting method of a kind of program login interface and internet terminal
CN106027303B (en) A kind of reference characteristic-acquisition method and its equipment
CN103179152B (en) Business information delivery method, system and business platform
CN106487653A (en) A kind of message treatment method and server
US20050015285A1 (en) Method and system for intelligent delivery of contents in a network
US20010039507A1 (en) Device, method, system, and program for executing questionnaire process for a client
CN107133245A (en) Presence information management system, method and electronic equipment
KR101363336B1 (en) Providing method of personalization image for preventing phishing and pharming, and providing system of personalization image for the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant