CN108989272A - A kind of data processing method, device and electronic equipment - Google Patents

A kind of data processing method, device and electronic equipment Download PDF

Info

Publication number
CN108989272A
CN108989272A CN201710425340.2A CN201710425340A CN108989272A CN 108989272 A CN108989272 A CN 108989272A CN 201710425340 A CN201710425340 A CN 201710425340A CN 108989272 A CN108989272 A CN 108989272A
Authority
CN
China
Prior art keywords
rate
downloading
client
data
read
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
CN201710425340.2A
Other languages
Chinese (zh)
Other versions
CN108989272B (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.)
Beijing Visionvera International Information Technology Co Ltd
Original Assignee
Beijing Visionvera International Information Technology 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 Beijing Visionvera International Information Technology Co Ltd filed Critical Beijing Visionvera International Information Technology Co Ltd
Priority to CN201710425340.2A priority Critical patent/CN108989272B/en
Publication of CN108989272A publication Critical patent/CN108989272A/en
Application granted granted Critical
Publication of CN108989272B publication Critical patent/CN108989272B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/23805Controlling the feeding rate to the network, e.g. by controlling the video pump
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists

Abstract

The embodiment of the invention provides a kind of data processing method, device and electronic equipments, wherein the method is applied in view networking, comprising: after server receives the downloading request of client transmission, obtains the pre-set downloading rate of the client;According to the downloading rate, calculation server read rate and writing speed;According to the read rate, the downloading is read from database and requests corresponding data;According to the writing speed, the data of reading are back in client;So as to which by presetting downloading rate in client, then the mode according to pre-set downloading rate adjustment server read and write rate, realizes that limitation client downloads the rate of resource from view networking, reduces the occupied bandwidth of client downloads data.

Description

A kind of data processing method, device and electronic equipment
Technical field
The present invention relates to technical field of data processing, fill more particularly to a kind of data processing method, a kind of data processing It sets and a kind of electronic equipment.
Background technique
It is the important milestone of network Development depending on networking, is the more advanced form of internet, is a real-time network, it can It realizes the whole network HD video real-time Transmission that current internet cannot achieve, pushes numerous Internet applications to HD video; To realize the service of large-scale high-definition video synthesis on a platform, for example, HD video meeting, video monitoring, intelligence Monitoring analysis, emergency command etc..
Downloading data such as video, audio, picture etc. in view intranet network, it is certain will necessarily to occupy view networked server Bandwidth, and depending on network network bandwidth be realize HD video integrated service guarantee;If the data that downloading user needs at full speed, It then will affect and be normally carried out depending on other HD video business in networking.
Summary of the invention
The embodiment of the present invention the technical problem to be solved is that providing a kind of data processing method, with solve the prior art without Method limits downloading rate when client networks downloading data from view.
Correspondingly, the embodiment of the invention also provides a kind of data processing equipment and a kind of electronic equipment, on guaranteeing State the realization and application of method.
To solve the above-mentioned problems, the invention discloses a kind of data processing methods, are applied in view networking, specific to wrap It includes: after server receives the downloading request of client transmission, obtaining the pre-set downloading rate of the client;According to institute State downloading rate, calculation server read rate and writing speed;According to the read rate, the downloading request is read from database Corresponding data;According to the writing speed, the data of reading are back in client.
The invention discloses a kind of data processing equipments, are applied in view networked server, specifically include: data acquisition mould Block obtains the pre-set downloading rate of the client after the downloading request for receiving client transmission;Rate calculations Module, for according to the downloading rate, calculation server read rate and writing speed;Data read module, for according to described Read rate reads the downloading from database and requests corresponding data;Data return module is used for according to the writing speed, The data of reading are back in client.
The embodiment of the invention also discloses a kind of electronic equipment, specifically included memory and one or one with On program, one of them perhaps more than one program be stored in memory and be configured to by one or more than one Processor executes data processing method described in one or more in the embodiment of the present invention.
A kind of readable storage medium storing program for executing, when the instruction in the storage medium is executed by the processor of electronic equipment, so that Electronic equipment is able to carry out the data processing method as described in one or more in the embodiment of the present invention.
Compared with prior art, the embodiment of the present invention includes following advantages:
The server of the embodiment of the present invention obtains the client and sets in advance after receiving the downloading request of client transmission The downloading rate set, and then according to the pre-set downloading rate of client, the read rate and writing speed of server itself are set; Then according still further to the data of read rate reading client request, and data are back in client according to writing speed;To this Then inventive embodiments can be adjusted according to pre-set downloading rate and be serviced by presetting downloading rate in client The mode of device read and write rate realizes that limitation client downloads the rate of resource from view networking, reduces client downloads data institute The bandwidth of occupancy.
Detailed description of the invention
Fig. 1 is a kind of network topology structure schematic diagram of view networking of the invention;
Fig. 2 is a kind of step flow chart of data processing method embodiment of the invention;
Fig. 3 is the system structure diagram of client and server data interaction in a kind of view networking of the invention;
Fig. 4 is the step flow chart of another data processing method embodiment of the invention;
Fig. 5 is a kind of structural block diagram of data processing equipment embodiment of the invention;
Fig. 6 is a kind of structural block diagram of data processing equipment embodiment of the invention;
Fig. 7 is a kind of structural block diagram of electronic equipment for data processing shown according to an exemplary embodiment.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
A kind of data processing method provided in an embodiment of the present invention is applied in view networking, is joined with solving client from view When downloading resource in the network of net, the problem of can not showing the downloading rate of client.
For the ease of the explanation to subsequent embodiment, networks to view and carry out simple illustration.It is a kind of concentration control depending on networking The network structure of system, the network can be Tree Network, Star network, ring network etc. type, but need in network on this basis There is centralized control node to control whole network.It is divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.Access net includes node clothes Business device, access switch and terminal (including various set-top boxes, encoding board, memory etc.), Metropolitan Area Network (MAN) include metropolitan area server, section Point server and node switch;It can refer to Fig. 1, Fig. 1 shows a kind of network topology structure signal of view networking of the invention Figure, wherein metropolitan area server can be deployed in different provinces, autonomous region etc., node server can be deployed in each province it is each not Same city and different regions;Metropolitan area server can directly be connect with node server, can also by node switch with Node server connection, similar, node server can be directly connected to terminal device, can also pass through access switch and end End equipment connection.
Wherein, turn gateway by Ethernet association with existing Ethernet depending on networking to connect, Ethernet assists the effect for turning gateway Similar to the effect of interchanger, i.e., will depending on networking data carry out conversion be sent in Ethernet so that view networking data by with Too net transmission;And Ethernet data is subjected to conversion and is sent in view networking, so that Ethernet data passes through view networking transport. Specifically, when Ethernet association turns the data packet or protocol package that gateway reception is sent depending on networking, in the data packet or protocol package Middle addition Ethernet assists (Media Access Control, the media access control) address MAC and target terminal for turning gateway Then MAC Address is sent to Ethernet, transmitted in ethernet networks using Ethernet protocol;It is received when Ethernet association turns gateway When data packet or protocol package that Ethernet is sent, remove the MAC Address that Ethernet association in the data packet or protocol package turns gateway With the MAC Address of source terminal, it is then sent to view networking, is transmitted in depending on networking using depending on networking protocol.
Referring to Fig. 2, a kind of step flow chart of data processing method embodiment of the invention is shown, is specifically included:
Step 201, server receive client transmission downloading request after, obtain the client it is pre-set under Carry rate.
In the embodiment of the present invention, the client can be limited from view networking in client setting in advance, under downloading data Rate is carried, can be such as configured in the client into administration page;Wherein, client refers to above-mentioned terminal, comprising: various machines Top box, encoding board, memory etc., the data include various types of data, such as video data, audio data, textual data According to image data etc., the downloading rate can be arranged according to demand such as 1M/s.It, can be in client in the embodiment of the present invention Unified downloading rate is arranged in each application program, downloading rate can also be respectively set for application program variant in client, This is not restricted.Referring to Fig. 3, Fig. 3 is shown of the invention a kind of is depending on client and server data interaction in networking Structural block diagram of uniting can send downloading request, the server may include above-mentioned when client needs downloading data to server Metropolitan area server and node server;After server receives the downloading request that client is sent, it can request to obtain according to the downloading Take the pre-set downloading rate of client.
Step 202, according to the downloading rate, calculation server read rate and writing speed.
The server of the embodiment of the present invention customer in response end downloading request before, can according to the downloading rate of acquisition, By the way that downloading rate is converted, the read rate and writing speed of calculation server.Wherein, the read rate refer to server from The rate of byte is read in database, the writing speed refers to that server sends the rate of byte to client;The read rate Unit with writing speed is KB/s, indicates the byte of multiple K per second, 1K=1024Byte.
Step 203, according to the read rate, the downloading is read from database and requests corresponding data.
Step 204, according to the writing speed, the data of reading are back in client.
Server is for this downloading request, after calculating its read rate and writing speed, can make for downloading request Response reads the downloading from database and requests corresponding data that is, according to the read rate;Then speed is write according to described The data of reading are back in client by rate.In the embodiment of the present invention, server can be written and read simultaneously as read one A byte sends a byte to client;Execution write operation such as first reads 100 bytes after read operation can also be first carried out, This 100 bytes are returned to client again, the embodiment of the present invention is not defined the mode of server read-write data.
The server of the embodiment of the present invention obtains the client and sets in advance after receiving the downloading request of client transmission The downloading rate set, and then according to the pre-set downloading rate of client, the read rate and writing speed of server itself are set; Then according still further to the data of read rate reading client request, and data are back in client according to writing speed;To this Then inventive embodiments can be adjusted according to pre-set downloading rate and be serviced by presetting downloading rate in client The mode of device read and write rate realizes that limitation client downloads the rate of resource from view networking, reduces client downloads data institute The bandwidth of occupancy.
In another embodiment of the invention, the maximum limitation of Parallel download task can also be set in the client Number, and then by the maximum limitation number of limitation client Parallel download, it further saves client and downloads number from depending on networking According to when the bandwidth that occupies.
Referring to Fig. 4, the step flow chart of another data processing method embodiment of the invention is shown, specifically can wrap Include following steps:
After step 401, server receive the downloading request of client transmission, requested according to the downloading, described in determination The ID of corresponding application program is requested in the corresponding IP address of client and the downloading.
In the embodiment of the present invention, in the downloading request can include: the data information of source information and request, wherein the letter of source Breath may include the ID for the application program for sending the downloading request and the IP address for sending the client for downloading request.Therefore After server receives the downloading request of client transmission, the corresponding IP address of the client is obtained from downloading request The ID of application program corresponding with the downloading request, and then according to the IP address and the ID, obtain pre-set downloading Rate, specific as follows:
Step 402 is inquired in the application program according to the ID just in the quantity of downloading task;And according to the IP Address determines the maximum limitation number of pre-set Parallel download task.
The embodiment of the present invention can also preset the maximum limitation number of client Parallel download task, further to save About client bandwidth for occupying when downloading data from depending on networking.It wherein, can be unified for application program all in client The maximum limitation number is set, for example, the maximum limitation number of system setting is 5, then the maximum limitation number of A browser is 5, The maximum limitation number of B browser is also 5;Maximum limitation number can also be respectively set for each application program in client, It is such as 5 for the maximum limitation number of A browser setting, is set as 3 etc. for B browser maximum limitation number.
It, can in the server, by the downloading after server is to any downloading request returned data in the embodiment of the present invention Corresponding application program is requested just to add 1 in the quantity of downloading task;After the completion of corresponding data downloading is requested in any downloading, Corresponding application program is requested just to subtract 1 in the quantity of downloading task the downloading;And then server is in the ID for obtaining application program Afterwards, corresponding application program can be inquired according to the ID just in the quantity of downloading task.And it is determined according to the IP address preparatory The maximum limitation number of the Parallel download task of setting, it is different since the mode of maximum limitation number of each application program is arranged, Therefore, for different set-up modes, the mode for obtaining maximum limitation number is different;Specifically, if the maximum of each application program Limitation number is unified setting, then server can obtain maximum limitation number according to the IP address;If each application program Maximum limitation number be it is respectively arranged, then server it is corresponding using journey can to obtain the ID according to the IP address and ID The maximum limitation number of sequence.
Step 403 judges whether the quantity is less than the maximum limitation number.
Server is obtaining application program just after the quantity of downloading task, and maximum limitation number, can be by the quantity With the maximum limitation number comparison, judge whether the quantity is less than the maximum limitation number, if the quantity is less than institute Maximum limitation number is stated, thens follow the steps 404, if the quantity is equal to the maximum limitation number, thens follow the steps 405.
Certainly, above-mentioned steps 402- step 403, the i.e. every downloading one of the application program of client can also be completed by client When task, a cookie is recorded, then client can be determined according to the quantity of the cookie of record just in downloading task Quantity;But cookie is easy to be tampered in client, so that ought just be tampered in the quantity of downloading service, leads to not limit The number of Parallel download task, so that the bandwidth that downloading request occupies can not be limited;Therefore, above-mentioned steps are completed by server 402- step 403, can be improved safety.
Step 404 obtains pre-set downloading rate.
If it is determined that application program is currently just being less than maximum limitation number in the quantity of downloading task, then it can obtain and preset Downloading rate.In the embodiment of the present invention, since the downloading rate of each application program can be unified to be arranged, it can also be respectively set;Cause This, for different set-up modes, the mode for obtaining downloading rate is also different;If the downloading rate of each application program is uniformly to set It sets, then server obtains the corresponding downloading rate of the IP address;If the downloading rate of each application program be it is respectively arranged, Then server obtains the ID and corresponds to the corresponding downloading rate of application program according to IP address and ID.
Step 405 returns to the prompt information of failed download into client.
If it is determined that application program is currently just limiting number more than maximum in the quantity of downloading task, in order to limit client simultaneously The quantity of row downloading service, server can be not responding to the downloading request, i.e., not request returned data for the downloading;It is optional Ground, server can return to the prompt information of failed download to client.
In the embodiment of the present invention, after server obtains pre-set downloading rate, it can be calculated according to the downloading rate Server read rate and writing speed, specific as follows:
Step 406, according to the downloading rate and preset relation, the read rate of calculation server.
Step 407, the writing speed that the value of the read rate is assigned to server.
Server can be according to the downloading rate and preset relation of acquisition, the read rate of calculation server, wherein described default Relationship is the transformational relation between downloading rate and read rate, the transformational relation are as follows: 1M/s=128KB/s.The present invention is implemented In example, the rule for calculating the read rate and writing speed according to downloading rate include it is a variety of, such as can be according to complete downloading rate Value, calculate the read rate and writing speed, certainly can also downloading rate according to a certain percentage value, calculate the read rate And writing speed, it can be arranged according to the demand to server bandwidth.Since the read rate and writing speed of server carry out simultaneously, If the value according to complete downloading rate calculates the read rate and writing speed, for server, under server returns Carry twice for requesting corresponding bandwidth to be the downloading rate;It therefore, can be according to certain in order to save the bandwidth that server occupies The value of the downloading rate of ratio calculates the read rate and writing speed.Optionally, can be used downloading rate respective value two/ One, read rate is calculated, and the value of read rate is assigned to writing speed, i.e. the read rate of server and writing speed is equal;For example, under if Load rate is 1M/s, then can use 0.5M/s, calculates read rate, that is, the read rate being calculated is 64KB/s, equally writes speed Rate is also 64KB/s;And for client, actual download rate is also 0.5M/s.
Step 408 searches the storage location of the downloading request corresponding data in the database.
Step 409, according to the storage location, the data are read from database according to the read rate.
After server calculates read rate and writing speed, the data letter of corresponding requests can be obtained from the downloading request Breath, and then downloading request corresponding data, the position stored in the database are determined according to the data information of request;Then according to institute Storage location is stated, reads the data from database according to the read rate.
Step 410, according to the writing speed, the data of reading are back in client.
Server is after reading one or more bytes, according to the IP address determined, according to the writing speed, by reading Data are back in client.
The embodiment of the present invention is according to the downloading rate and preset relation, the read rate of calculation server, and by the reading The value of rate is assigned to the writing speed of server, to save the bandwidth of server occupancy;Further, it is also possible to which client is arranged simultaneously The maximum limitation number of row downloading task, when the service just when the quantity of downloading task is less than the maximum limitation number that determines Device just obtain client pre-set downloading rate and it is subsequent corresponding quantity is back in client, thus Further save the bandwidth that client occupies when downloading data from depending on networking;And by acquisition client maximum limitation number and just In the quantity of downloading task, the safety of data is improved, ensure that the quantity of client Parallel download task.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 5, a kind of structural block diagram of data processing equipment embodiment of the present invention is shown, can specifically include as follows Module: data acquisition module 501, rate calculation module 502, data read module 503 and data return module 504, wherein
Data acquisition module 501 obtains the client and sets in advance after the downloading request for receiving client transmission The downloading rate set;
Rate calculation module 502, for according to the downloading rate, calculation server read rate and writing speed;
Data read module 503 requests corresponding number for according to the read rate, reading the downloading from database According to;
Data return module 504, for according to the writing speed, the data of reading to be back in client.
Referring to Fig. 6, the structural block diagram of another data processing equipment embodiment of the invention is shown, specifically,
In another embodiment of the invention, the data acquisition module 501 includes: that information determines submodule 5011 and speed Rate acquisition submodule 5012, wherein
Information determines submodule 5011, for according to the downloading request, determine the corresponding IP address of the client with The ID of corresponding application program is requested in the downloading;
Rate acquisition submodule 5012, for obtaining pre-set downloading rate according to the IP address and the ID.
Optionally, in another embodiment of the invention, the rate calculation module 502 is specifically used for according under described It carries rate and preset relation, the read rate of calculation server, the preset relation is the conversion between downloading rate and read rate Relationship;The value of the read rate is assigned to the writing speed of server.
Optionally, in another embodiment of the invention, the data read module 503 is asked for searching the downloading Seek the storage location of corresponding data in the database;According to the storage location, read from database according to the read rate The data.
Optionally, in another embodiment of the invention, the rate acquisition submodule 5012 is specifically used for according to described in ID is inquired in the application program just in the quantity of downloading task;And according to the IP address determine it is pre-set it is parallel under The maximum limitation number of load task;Judge whether the quantity is less than the maximum limitation number;If the quantity is less than described Maximum limitation number, then obtain pre-set downloading rate;If the quantity is equal to the maximum limitation number, under returning The prompt information of failure is carried into client.
The server of the embodiment of the present invention obtains the client and sets in advance after receiving the downloading request of client transmission The downloading rate set, and then according to the pre-set downloading rate of client, the read rate and writing speed of server itself are set; Then according still further to the data of read rate reading client request, and data are back in client according to writing speed;To this Then inventive embodiments can be adjusted according to pre-set downloading rate and be serviced by presetting downloading rate in client The mode of device read and write rate realizes that limitation client downloads the rate of resource from view networking, reduces client downloads data institute The bandwidth of occupancy.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
Fig. 7 is a kind of the application knot of the electronic equipment 700 for data processing shown according to an exemplary embodiment Structure schematic diagram.The electronic equipment 700 can be server, which can generate bigger difference because configuration or performance are different It is different, it may include one or more central processing units (central processing units, CPU) 722 (for example, one A or more than one processor) and memory 732, storage Jie of one or more storage application programs 742 or data 744 Matter 730 (such as one or more mass memory units).Wherein, memory 732 and storage medium 730 can be of short duration deposit Storage or persistent storage.The program for being stored in storage medium 730 may include one or more modules (diagram does not mark), often A module may include to the series of instructions operation in server.Further, central processing unit 722 can be set to Storage medium 730 communicates, and executes the series of instructions operation in storage medium 730 on the server.
Server can also include one or more power supplys 726, one or more wired or wireless networks connect Mouthfuls 750, one or more input/output interfaces 758, one or more keyboards 756, and/or, one or one with Upper operating system 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
In the exemplary embodiment, server is configured to by one or more than one central processing unit 722 executes one A or more than one program includes the instruction for performing the following operation: after the downloading request for receiving client transmission, being obtained Take the pre-set downloading rate of the client;According to the downloading rate, calculation server read rate and writing speed;According to The read rate reads the downloading from database and requests corresponding data;According to the writing speed, the data of reading are returned It is back in client.
Optionally, according to the downloading rate, the step of the read rate and writing speed of calculation server, comprising: according to institute Downloading rate and preset relation, the read rate of calculation server are stated, the preset relation is between downloading rate and read rate Transformational relation;The value of the read rate is assigned to the writing speed of server.
Optionally, the step of corresponding data are requested in the downloading is read from read rate described in database, comprising: search The storage location of the downloading request corresponding data in the database;According to the storage location, according to the read rate from number According to reading the data in library.
Optionally, the step of obtaining the client pre-set downloading rate, comprising: it is requested according to the downloading, Determine that the corresponding IP address of the client and the downloading request the ID of corresponding application program;According to the IP address and described ID obtains pre-set downloading rate.
Optionally, according to the IP address and the ID, the step of obtaining pre-set downloading rate, comprising: foundation The ID is inquired in the application program just in the quantity of downloading task;And according to the IP address determine it is pre-set simultaneously The maximum limitation number of row downloading task;Judge whether the quantity is less than the maximum limitation number;If the quantity is less than The maximum limitation number, then obtain pre-set downloading rate;If the quantity is equal to the maximum limitation number, return The prompt information of failed download is returned into client.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In the computer-readable memory to work in a predictive manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
A kind of data processing method and device provided by the present invention and a kind of electronic equipment have been carried out in detail above It introduces, used herein a specific example illustrates the principle and implementation of the invention, the explanation of above embodiments It is merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this The thought of invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered It is interpreted as limitation of the present invention.

Claims (12)

1. a kind of data processing method, which is characterized in that be applied in view networking, the method includes:
After server receives the downloading request of client transmission, the pre-set downloading rate of the client is obtained;
According to the downloading rate, calculation server read rate and writing speed;
According to the read rate, the downloading is read from database and requests corresponding data;
According to the writing speed, the data of reading are back in client.
2. the method according to claim 1, wherein according to the downloading rate, the read rate of calculation server And the step of writing speed, comprising:
According to the downloading rate and preset relation, the read rate of calculation server, the preset relation is downloading rate and reading Transformational relation between rate;
The value of the read rate is assigned to the writing speed of server.
3. the method according to claim 1, wherein reading the downloading request from read rate described in database The step of corresponding data, comprising:
Search the storage location of the downloading request corresponding data in the database;
According to the storage location, the data are read from database according to the read rate.
4. the method according to claim 1, wherein obtaining the step of the pre-set downloading rate of the client Suddenly, comprising:
It is requested according to the downloading, determines that the corresponding IP address of the client and the downloading request corresponding application program ID;
According to the IP address and the ID, pre-set downloading rate is obtained.
5. according to the method described in claim 4, it is characterized in that, according to the IP address and the ID, acquisition is preset Downloading rate the step of, comprising:
It inquires in the application program according to the ID just in the quantity of downloading task;And it is determined according to the IP address preparatory The maximum limitation number of the Parallel download task of setting;
Judge whether the quantity is less than the maximum limitation number;
If the quantity is less than the maximum limitation number, pre-set downloading rate is obtained;
If the quantity is equal to the maximum limitation number, the prompt information of failed download is returned into client.
6. a kind of data processing equipment, which is characterized in that be applied in view networked server, the device includes:
Data acquisition module, for receive client transmission downloading request after, obtain the client it is pre-set under Carry rate;
Rate calculation module, for according to the downloading rate, calculation server read rate and writing speed;
Data read module requests corresponding data for according to the read rate, reading the downloading from database;
Data return module, for according to the writing speed, the data of reading to be back in client.
7. device according to claim 6, which is characterized in that
The rate calculation module is specifically used for according to the downloading rate and preset relation, the read rate of calculation server, institute Stating preset relation is the transformational relation between downloading rate and read rate;Speed is write by what the value of the read rate was assigned to server Rate.
8. device according to claim 6, which is characterized in that
The data read module, for searching the storage location of the downloading request corresponding data in the database;According to institute Storage location is stated, reads the data from database according to the read rate.
9. device according to claim 6, which is characterized in that the data acquisition module includes:
Information determines submodule, for requesting according to the downloading, determines the corresponding IP address of the client and the downloading Request the ID of corresponding application program;
Rate acquisition submodule, for obtaining pre-set downloading rate according to the IP address and the ID.
10. device according to claim 9, which is characterized in that
The rate acquisition submodule, specifically for inquiring in the application program according to the ID just in the number of downloading task Amount;And the maximum limitation number of pre-set Parallel download task is determined according to the IP address;Judging the quantity is It is no to be less than the maximum limitation number;If the quantity is less than the maximum limitation number, pre-set downloading speed is obtained Rate;If the quantity is equal to the maximum limitation number, the prompt information of failed download is returned into client.
11. a kind of electronic equipment, which is characterized in that include memory and one or more than one program, wherein one A perhaps more than one program is stored in memory and is configured to execute such as right by one or more than one processor It is required that data processing method described in one or more in 1-5.
12. a kind of readable storage medium storing program for executing, which is characterized in that when the instruction in the storage medium is held by the processor of electronic equipment When row, so that electronic equipment is able to carry out the data processing method as described in one or more in claim 1-5.
CN201710425340.2A 2017-06-07 2017-06-07 Data processing method and device and electronic equipment Active CN108989272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710425340.2A CN108989272B (en) 2017-06-07 2017-06-07 Data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710425340.2A CN108989272B (en) 2017-06-07 2017-06-07 Data processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108989272A true CN108989272A (en) 2018-12-11
CN108989272B CN108989272B (en) 2022-05-17

Family

ID=64502655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710425340.2A Active CN108989272B (en) 2017-06-07 2017-06-07 Data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108989272B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547163A (en) * 2018-12-12 2019-03-29 视联动力信息技术股份有限公司 A kind of control method and device of message transmission rate
CN109684026A (en) * 2019-01-14 2019-04-26 武汉斗鱼鱼乐网络科技有限公司 APP replacing skins method, apparatus, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039187A (en) * 2006-03-17 2007-09-19 腾讯科技(深圳)有限公司 Method for downloading data and system thereof
CN101945082A (en) * 2009-07-09 2011-01-12 联想(北京)有限公司 Method for automatically adjusting network downloading speed and network downloading equipment thereof
US20110099372A1 (en) * 2009-10-23 2011-04-28 Siddhartha Annapureddy Method and system for providing peer-to-peer video on demand
CN102164157A (en) * 2010-02-24 2011-08-24 腾讯科技(深圳)有限公司 Downloading speed limiting method and system
CN102724231A (en) * 2011-03-31 2012-10-10 腾讯科技(深圳)有限公司 Resource downloading method, server and user terminals
CN103402120A (en) * 2009-03-13 2013-11-20 索尼公司 Information processing device and information processing method
CN103686448A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Video transcoding download speed limiting method and system
CN104079615A (en) * 2013-03-29 2014-10-01 联想(北京)有限公司 File downloading method and information processing device
CN104796351A (en) * 2015-03-16 2015-07-22 广东欧珀移动通信有限公司 Network data downloading method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039187A (en) * 2006-03-17 2007-09-19 腾讯科技(深圳)有限公司 Method for downloading data and system thereof
CN103402120A (en) * 2009-03-13 2013-11-20 索尼公司 Information processing device and information processing method
CN101945082A (en) * 2009-07-09 2011-01-12 联想(北京)有限公司 Method for automatically adjusting network downloading speed and network downloading equipment thereof
US20110099372A1 (en) * 2009-10-23 2011-04-28 Siddhartha Annapureddy Method and system for providing peer-to-peer video on demand
CN102164157A (en) * 2010-02-24 2011-08-24 腾讯科技(深圳)有限公司 Downloading speed limiting method and system
CN102724231A (en) * 2011-03-31 2012-10-10 腾讯科技(深圳)有限公司 Resource downloading method, server and user terminals
CN104079615A (en) * 2013-03-29 2014-10-01 联想(北京)有限公司 File downloading method and information processing device
CN103686448A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Video transcoding download speed limiting method and system
CN104796351A (en) * 2015-03-16 2015-07-22 广东欧珀移动通信有限公司 Network data downloading method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547163A (en) * 2018-12-12 2019-03-29 视联动力信息技术股份有限公司 A kind of control method and device of message transmission rate
CN109684026A (en) * 2019-01-14 2019-04-26 武汉斗鱼鱼乐网络科技有限公司 APP replacing skins method, apparatus, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108989272B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
US20180322419A1 (en) Model Driven Modular Artificial Intelligence Learning Framework
US10754869B2 (en) Managing data format of data received from devices in an internet of things network
US8938495B2 (en) Remote management system with adaptive session management mechanism
JP6314252B2 (en) Network video playback method and apparatus
US10630573B2 (en) Machine learning for quality of experience optimization
CN110196715A (en) A kind of code generating system and method
CN110297944B (en) Distributed XML data processing method and system
CN111026982A (en) Intelligent contract processing method, computer equipment and storage medium
CN106533713A (en) Application deployment method and device
CN104348793B (en) The storage method of storage server system and data message
CN111966289A (en) Partition optimization method and system based on Kafka cluster
CN103713935A (en) Method and device for managing Hadoop cluster resources in online manner
CN109561054A (en) A kind of data transmission method, controller and access device
CN108989272A (en) A kind of data processing method, device and electronic equipment
EP3078169B1 (en) Method for measuring end-to-end internet application performance
CN108093036A (en) A kind of method and device for obtaining resource
US10516628B2 (en) Transfer device, transfer system, and transfer method
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
CN108462897B (en) Data collection method and device for network faults
CN109698774A (en) Method and device for monitoring device working condition
US10397254B2 (en) Method and system of monitoring network
CN111479140B (en) Data acquisition method, data acquisition device, computer device and storage medium
CN114449026A (en) Method for recording online learning duration and related equipment
CN114285774A (en) Flow recording method and device, electronic equipment and storage medium
CN113852551A (en) Message processing method and device

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
CB02 Change of applicant information

Address after: 100000 Dongcheng District, Beijing, Qinglong Hutong 1, 1103 house of Ge Hua building.

Applicant after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113

Applicant before: BEIJING VISIONVERA INTERNATIONAL INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant