CN108989272B - Data processing method and device and electronic equipment - Google Patents

Data processing method and device and electronic equipment Download PDF

Info

Publication number
CN108989272B
CN108989272B CN201710425340.2A CN201710425340A CN108989272B CN 108989272 B CN108989272 B CN 108989272B CN 201710425340 A CN201710425340 A CN 201710425340A CN 108989272 B CN108989272 B CN 108989272B
Authority
CN
China
Prior art keywords
rate
downloading
client
reading
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710425340.2A
Other languages
Chinese (zh)
Other versions
CN108989272A (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera 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 Visionvera Information Technology Co Ltd filed Critical Visionvera 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

Images

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 data processing method, a data processing device and electronic equipment, wherein the method is applied to a video network and comprises the following steps: after receiving a downloading request sent by a client, a server acquires a downloading rate preset by the client; calculating the reading rate and the writing rate of the server according to the downloading rate; reading data corresponding to the downloading request from a database according to the reading rate; returning the read data to the client according to the write rate; therefore, the downloading rate of the client side from the video network can be limited by presetting the downloading rate at the client side and then adjusting the reading and writing rate of the server according to the preset downloading rate, and the bandwidth occupied by the client side for downloading data is reduced.

Description

Data processing method and device and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method, a data processing apparatus, and an electronic device.
Background
The video networking is an important milestone for network development, is a higher-level form of the Internet, is a real-time network, can realize the real-time transmission of full-network high-definition videos which cannot be realized by the existing Internet, and pushes a plurality of Internet applications to high-definition video; therefore, large-scale high-definition video comprehensive services such as high-definition video conferences, video monitoring, intelligent monitoring analysis, emergency command and the like are realized on one platform.
Downloading data such as video, audio, pictures and the like in the video networking network inevitably occupies a certain bandwidth of a video networking server, and the network bandwidth of the video networking is guaranteed for realizing high-definition video comprehensive service; if the data required by the user is downloaded at full speed, normal operation of other high-definition video services in the video network is affected.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a data processing method to solve the problem that the prior art cannot limit the download rate of a client when downloading data from a video network.
Correspondingly, the embodiment of the invention also provides a data processing device and electronic equipment, which are used for ensuring the realization and application of the method.
In order to solve the above problems, the present invention discloses a data processing method, which is applied to a video network and specifically includes: after receiving a downloading request sent by a client, a server acquires a downloading rate preset by the client; calculating the reading rate and the writing rate of the server according to the downloading rate; reading data corresponding to the downloading request from a database according to the reading rate; and returning the read data to the client according to the writing rate.
The invention discloses a data processing device, which is applied to a video network server and specifically comprises the following components: the data acquisition module is used for acquiring a downloading rate preset by a client after receiving a downloading request sent by the client; the speed calculation module is used for calculating the reading speed and the writing speed of the server according to the downloading speed; the data reading module is used for reading data corresponding to the downloading request from a database according to the reading rate; and the data returning module is used for returning the read data to the client according to the writing rate.
The embodiment of the invention also discloses an electronic device, which specifically comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to execute one or more data processing methods in the embodiment of the invention.
A readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a data processing method as described in one or more of the embodiments of the invention.
Compared with the prior art, the embodiment of the invention has the following advantages:
after receiving a download request sent by a client, a server of the embodiment of the invention acquires a download rate preset by the client, and further sets the read rate and write rate of the server according to the download rate preset by the client; then reading the data requested by the client according to the reading rate, and returning the data to the client according to the writing rate; therefore, the embodiment of the invention can limit the rate of downloading resources from the video network by the client in a mode of presetting the downloading rate at the client and then adjusting the reading and writing rate of the server according to the preset downloading rate, thereby reducing the bandwidth occupied by the client for downloading data.
Drawings
FIG. 1 is a schematic diagram of a network topology of a visual network of the present invention;
FIG. 2 is a flow chart of the steps of one data processing method embodiment of the present invention;
FIG. 3 is a block diagram of a system architecture for client and server data interaction in a video network according to the present invention;
FIG. 4 is a flow chart of the steps of another data processing method embodiment of the present invention;
FIG. 5 is a block diagram of an embodiment of a data processing apparatus of the present invention;
FIG. 6 is a block diagram of an embodiment of a data processing apparatus according to the present invention;
FIG. 7 is a block diagram illustrating an electronic device for data processing in accordance with an exemplary embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The data processing method provided by the embodiment of the invention is applied to the video network, and is used for solving the problem that the downloading rate of the client cannot be displayed when the client downloads resources from the network of the video network.
For convenience of description of the subsequent embodiments, the view network is briefly described. The video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network. The video network is divided into an access network and a metropolitan area network. The access network comprises a node server, an access switch and a terminal (comprising various set top boxes, coding boards, memories and the like), and the metropolitan area network comprises a metropolitan area server, a node server and a node switch; referring to fig. 1, fig. 1 shows a schematic diagram of a network topology of an internet of view according to the present invention, wherein a metropolitan area server may be deployed in different provinces, autonomous areas, etc., and a node server may be deployed in different cities and different areas of each province; the metropolitan area server can be directly connected with the node server, and can also be connected with the node server through the node switch.
The video network is connected with the existing Ethernet through an Ethernet protocol conversion gateway, the function of the Ethernet protocol conversion gateway is similar to that of a switch, namely, video network data is converted and sent to the Ethernet, so that the video network data is transmitted through the Ethernet; and converting the Ethernet data and sending the Ethernet data to the video network, so that the Ethernet data is transmitted through the video network. Specifically, when the ethernet protocol conversion gateway receives a data packet or a protocol packet sent from the internet of things, a Media Access Control (MAC) address of the ethernet protocol conversion gateway and a MAC address of a target terminal are added to the data packet or the protocol packet, and then the data packet or the protocol packet is sent to the ethernet network, and an ethernet protocol is adopted in the ethernet network for transmission; when the Ethernet protocol conversion gateway receives a data packet or a protocol packet sent by the Ethernet, the MAC address of the Ethernet protocol conversion gateway and the MAC address of the source terminal in the data packet or the protocol packet are removed, and then the data packet or the protocol packet is sent to the video network, and the video network protocol is adopted for transmission in the video network.
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a data processing method of the present invention specifically includes:
step 201, after receiving a download request sent by a client, a server acquires a download rate preset by the client.
In the embodiment of the invention, the download rate of downloading data from the video network by the client can be limited by setting the client in advance, for example, the client can enter a management page for setting; wherein, the client is the above terminal, including: various set-top boxes, code boards, memories, etc., the data including various types of data such as video data, audio data, text data, picture data, etc., and the download rate may be set as desired, such as 1M/s. In the embodiment of the present invention, a uniform download rate may be set for each application program in the client, and a download rate may also be set for each different application program in the client, which is not limited herein. Referring to fig. 3, fig. 3 is a block diagram illustrating a system structure of data interaction between a client and a server in a video network, according to the present invention, when the client needs to download data, a download request may be sent to the server, which may include the above-mentioned metropolitan area server and node server; after receiving a download request sent by a client, the server can acquire a download rate preset by the client according to the download request.
Step 202, calculating the reading rate and the writing rate of the server according to the downloading rate.
Before responding to the downloading request of the client, the server of the embodiment of the invention can calculate the reading rate and the writing rate of the server by converting the downloading rate according to the acquired downloading rate. The reading rate refers to the rate of reading bytes from a database by a server, and the writing rate refers to the rate of sending bytes to a client by the server; the unit of the read rate and the write rate is KB/s, which represents a number of K bytes per second, 1K 1024 bytes.
And 203, reading the data corresponding to the downloading request from the database according to the reading rate.
And step 204, returning the read data to the client according to the write rate.
After calculating the reading rate and the writing rate of the downloading request, the server can respond to the downloading request, namely, the server reads the data corresponding to the downloading request from the database according to the reading rate; and then returning the read data to the client according to the writing rate. In the embodiment of the invention, the server can simultaneously carry out read-write operation, such as reading one byte and sending one byte to the client; or, after the read operation is performed, the write operation may be performed, for example, first 100 bytes are read, and then the 100 bytes are returned to the client.
After receiving a download request sent by a client, a server of the embodiment of the invention acquires a download rate preset by the client, and further sets the read rate and write rate of the server according to the download rate preset by the client; then reading the data requested by the client according to the reading rate, and returning the data to the client according to the writing rate; therefore, the embodiment of the invention can limit the rate of downloading resources from the video network by the client and reduce the bandwidth occupied by the client for downloading data by the client in a mode of presetting the downloading rate at the client and then adjusting the reading and writing rate of the server according to the preset downloading rate.
In another embodiment of the invention, the maximum limit number of the parallel downloading tasks can be set in the client, and further, the bandwidth occupied by the client when downloading data from the video network is further saved by limiting the maximum limit number of the parallel downloading tasks of the client.
Referring to fig. 4, a flowchart illustrating steps of another embodiment of a data processing method according to the present invention is shown, which may specifically include the following steps:
step 401, after receiving a download request sent by a client, a server determines, according to the download request, an IP address corresponding to the client and an ID of an application program corresponding to the download request.
In this embodiment of the present invention, the download request may include: source information and requested data information, wherein the source information may include an ID of an application program that transmitted the download request and an IP address of a client that transmitted the download request. Therefore, after receiving a download request sent by a client, a server obtains an IP address corresponding to the client and an ID of an application program corresponding to the download request from the download request, and further obtains a preset download rate according to the IP address and the ID, which is specifically as follows:
step 402, inquiring the number of downloading tasks in the application program according to the ID; and determining the maximum limit number of the preset parallel downloading tasks according to the IP address.
The embodiment of the invention can also preset the maximum limit number of the parallel downloading tasks of the client so as to further save the bandwidth occupied by the client when downloading the data from the video network. The maximum limit number may be uniformly set for all application programs in the client, for example, if the system sets the maximum limit number to 5, the maximum limit number of the browser a is 5, and the maximum limit number of the browser B is also 5; the maximum limit number may be set for each application in the client, for example, the maximum limit number is set to 5 for the a browser, and the maximum limit number is set to 3 for the B browser.
In the embodiment of the invention, after the server returns data to any download request, the number of the downloading tasks of the application program corresponding to the download request can be added by 1 in the server; after the data corresponding to any download request is downloaded, subtracting 1 from the number of the downloading tasks of the application program corresponding to the download request; and after acquiring the ID of the application program, the server can inquire the number of the tasks being downloaded by the corresponding application program according to the ID. Determining the maximum limit number of the preset parallel downloading tasks according to the IP address, wherein the maximum limit number of each application program is set in different modes, so that the modes for acquiring the maximum limit number are different according to different setting modes; specifically, if the maximum limit number of each application program is uniformly set, the server can obtain the maximum limit number according to the IP address; if the maximum limit number of each application program is set respectively, the server can acquire the maximum limit number of the application program corresponding to the ID according to the IP address and the ID.
And 403, judging whether the number is smaller than the maximum limit number.
After obtaining the number of the tasks being downloaded by the application program and the maximum limit number, the server may compare the number with the maximum limit number, determine whether the number is smaller than the maximum limit number, if the number is smaller than the maximum limit number, execute step 404, and if the number is equal to the maximum limit number, execute step 405.
Of course, the above steps 402-403 may also be completed by the client, that is, each time an application program of the client downloads a task, a cookie is recorded, and then the client may determine the number of the downloading tasks according to the number of the recorded cookies; but the cookie in the client is easy to be tampered, so that when the number of the downloading services is tampered, the number of parallel downloading tasks cannot be limited, and the bandwidth occupied by the downloading request cannot be limited; therefore, the server completes the steps 402 to 403, and the security can be improved.
Step 404, obtaining a preset download rate.
If the number of the tasks currently downloaded by the application program is smaller than the maximum limit number, the preset downloading rate can be obtained. In the embodiment of the invention, the download rate of each application program can be set uniformly or respectively; therefore, the manner of acquiring the download rate is different for different setting manners; if the downloading rate of each application program is uniformly set, the server acquires the downloading rate corresponding to the IP address; and if the downloading rate of each application program is set respectively, the server acquires the downloading rate corresponding to the application program corresponding to the ID according to the IP address and the ID.
And step 405, returning prompt information of download failure to the client.
If the number of the current downloading tasks of the application program is determined to exceed the maximum limit number, in order to limit the number of the parallel downloading services of the client, the server does not respond to the downloading request, namely, does not return data aiming at the downloading request; optionally, the server may return a prompt to the client that the download failed.
In the embodiment of the present invention, after the server obtains the preset download rate, the read rate and the write rate of the server can be calculated according to the download rate, which is specifically as follows:
and step 406, calculating the reading rate of the server according to the downloading rate and the preset relation.
Step 407, assigning the value of the read rate to the write rate of the server.
The server can calculate the reading rate of the server according to the acquired downloading rate and a preset relation, wherein the preset relation is a conversion relation between the downloading rate and the reading rate, and the conversion relation is as follows: and 1M/s is 128 KB/s. In the embodiment of the present invention, the rules for calculating the read rate and the write rate according to the download rate include multiple rules, for example, the read rate and the write rate may be calculated according to the value of the complete download rate, or the read rate and the write rate may be calculated according to the value of the download rate in a certain proportion, and may be set according to the requirement for the bandwidth of the server. Because the reading rate and the writing rate of the server are carried out simultaneously, if the reading rate and the writing rate are calculated according to the value of the complete downloading rate, compared with the server, the bandwidth corresponding to the downloading request returned by the server is twice of the downloading rate; therefore, in order to save the bandwidth occupied by the server, the read rate and the write rate can be calculated according to the value of a certain proportion of the download rate. Optionally, a half of the value corresponding to the download rate may be adopted to calculate the read rate, and the value of the read rate is assigned to the write rate, that is, the read rate and the write rate of the server are equal; for example, if the download rate is 1M/s, 0.5M/s may be adopted to calculate the read rate, that is, the calculated read rate is 64KB/s, and the write rate is also 64 KB/s; and the actual download rate is also 0.5M/s relative to the client.
And step 408, searching the storage position of the data corresponding to the downloading request in the database.
And 409, reading the data from the database according to the reading rate according to the storage position.
After the server calculates the reading rate and the writing rate, the server can acquire the data information corresponding to the request from the downloading request, and further determine the position of the data corresponding to the downloading request, which is stored in the database, according to the requested data information; and then reading the data from the database according to the storage position and the reading rate.
And step 410, returning the read data to the client according to the write rate.
And after reading one or more bytes, the server returns the read data to the client according to the determined IP address and the write rate.
According to the embodiment of the invention, the reading rate of the server is calculated according to the downloading rate and the preset relation, and the value of the reading rate is assigned to the writing rate of the server, so that the bandwidth occupied by the server is saved; in addition, the maximum limit number of the parallel downloading tasks of the client can be set, when the number of the downloading tasks is determined to be smaller than the maximum limit number, the server obtains the preset downloading rate of the client, and then returns the corresponding number to the client, so that the bandwidth occupied by the client when downloading data from the video network is further saved; and the maximum limit number of the clients and the number of the tasks being downloaded are obtained, so that the data security is improved, and the number of the parallel downloading tasks of the clients is ensured.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, a block diagram of a data processing apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules: a data acquisition module 501, a rate calculation module 502, a data reading module 503, and a data return module 504, wherein,
a data obtaining module 501, configured to obtain a downloading rate preset by a client after receiving a downloading request sent by the client;
a rate calculating module 502, configured to calculate a server reading rate and a server writing rate according to the downloading rate;
a data reading module 503, configured to read data corresponding to the download request from a database according to the read rate;
and a data returning module 504, configured to return the read data to the client according to the write rate.
Referring to fig. 6, a block diagram of another data processing apparatus embodiment of the present invention is shown, in particular,
in another embodiment of the present invention, the data obtaining module 501 includes: an information determination submodule 5011 and a rate acquisition submodule 5012, wherein,
an information determining submodule 5011, configured to determine, according to the download request, an IP address corresponding to the client and an ID of an application program corresponding to the download request;
and the rate obtaining submodule 5012 is configured to obtain a preset downloading rate according to the IP address and the ID.
Optionally, in another embodiment of the present invention, the rate calculating module 502 is specifically configured to calculate a reading rate of the server according to the downloading rate and a preset relationship, where the preset relationship is a conversion relationship between the downloading rate and the reading rate; and assigning the value of the read rate to the write rate of the server.
Optionally, in another embodiment of the present invention, the data reading module 503 is configured to search a storage location of the data corresponding to the download request in a database; and reading the data from the database according to the storage position and the reading rate.
Optionally, in another embodiment of the present invention, the rate obtaining sub-module 5012 is specifically configured to query, according to the ID, the number of tasks being downloaded in the application program; determining the maximum limit number of the preset parallel downloading tasks according to the IP address; judging whether the number is smaller than the maximum limit number; if the number is smaller than the maximum limit number, acquiring a preset downloading rate; and if the number is equal to the maximum limit number, returning prompt information of download failure to the client.
After receiving a download request sent by a client, a server of the embodiment of the invention acquires a download rate preset by the client, and further sets the read rate and write rate of the server according to the download rate preset by the client; then reading the data requested by the client according to the reading rate, and returning the data to the client according to the writing rate; therefore, the embodiment of the invention can limit the rate of downloading resources from the video network by the client and reduce the bandwidth occupied by the client for downloading data by the client in a mode of presetting the downloading rate at the client and then adjusting the reading and writing rate of the server according to the preset downloading rate.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 7 is a schematic structural diagram of an electronic device 700 for data processing according to an exemplary embodiment of the present application. The electronic device 700 may be a server, which may vary significantly depending on configuration or performance, and may include one or more Central Processing Units (CPUs) 722 (e.g., one or more processors) and memory 732, one or more storage media 730 (e.g., one or more mass storage devices) storing applications 742 or data 744. Memory 732 and storage medium 730 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 730 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Further, the central processor 722 may be configured to communicate with the storage medium 730, and execute a series of instruction operations in the storage medium 730 on the server.
The server may also include one or more power supplies 726, one or more wired or wireless network interfaces 750, one or more input-output interfaces 758, one or more keyboards 756, and/or one or more operating systems 741, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
In an exemplary embodiment, the server is configured to execute the one or more programs by the one or more central processors 722 including instructions for: after receiving a downloading request sent by a client, acquiring a downloading rate preset by the client; calculating the reading rate and the writing rate of the server according to the downloading rate; reading data corresponding to the downloading request from a database according to the reading rate; and returning the read data to the client according to the writing rate.
Optionally, the step of calculating a read rate and a write rate of the server according to the download rate includes: calculating the reading rate of the server according to the downloading rate and a preset relation, wherein the preset relation is a conversion relation between the downloading rate and the reading rate; and assigning the value of the read rate to the write rate of the server.
Optionally, the step of reading the data corresponding to the download request from the database at the read rate includes: searching the storage position of the data corresponding to the downloading request in a database; and reading the data from the database according to the storage position and the reading speed.
Optionally, the step of obtaining the download rate preset by the client includes: determining an IP address corresponding to the client and an ID of an application program corresponding to the downloading request according to the downloading request; and acquiring a preset downloading rate according to the IP address and the ID.
Optionally, the step of obtaining a preset download rate according to the IP address and the ID includes: inquiring the number of downloading tasks in the application program according to the ID; determining the maximum limit number of the preset parallel downloading tasks according to the IP address; judging whether the number is smaller than the maximum limit number; if the number is smaller than the maximum limit number, acquiring a preset downloading rate; and if the number is equal to the maximum limit number, returning prompt information of download failure to the client.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a predictive manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data processing method and apparatus, and the electronic device provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A data processing method is applied to a video network, and the method comprises the following steps:
the method comprises the steps that after a server receives a downloading request sent by a client, a downloading rate preset for each application program in the client is obtained;
calculating the reading rate by adopting one half of the corresponding value of the downloading rate, and assigning the value of the reading rate to the writing rate; the reading rate is the rate of reading bytes from a database by the server, and the writing rate is the rate of sending bytes to the client by the server;
reading data corresponding to the downloading request from a database according to the reading rate;
and returning the read data to the client according to the writing rate.
2. The method of claim 1, wherein the step of reading the data corresponding to the download request from the database at the read rate comprises:
searching the storage position of the data corresponding to the downloading request in a database;
and reading the data from the database according to the storage position and the reading rate.
3. The method according to claim 1, wherein the step of obtaining the download rate preset by the client comprises:
determining an IP address corresponding to the client and an ID of an application program corresponding to the downloading request according to the downloading request;
and acquiring a preset downloading rate according to the IP address and the ID.
4. The method of claim 3, wherein the step of obtaining a preset download rate according to the IP address and the ID comprises:
inquiring the number of downloading tasks in the application program according to the ID; determining the maximum limit number of the preset parallel downloading tasks according to the IP address;
judging whether the number is smaller than the maximum limit number;
if the number is smaller than the maximum limit number, acquiring a preset downloading rate;
and if the number is equal to the maximum limit number, returning prompt information of download failure to the client.
5. A data processing apparatus, for use in a server of a video network, the apparatus comprising:
the data acquisition module is used for acquiring a preset download rate for each application program in the client after receiving a download request sent by the client;
the rate calculation module is used for calculating the reading rate by adopting one half of the corresponding value of the downloading rate and assigning the value of the reading rate to the writing rate; the reading rate is the rate of reading bytes from a database by the server, and the writing rate is the rate of sending bytes to the client by the server;
the data reading module is used for reading data corresponding to the downloading request from a database according to the reading rate;
and the data returning module is used for returning the read data to the client according to the writing rate.
6. The apparatus of claim 5,
the data reading module is used for searching the storage position of the data corresponding to the downloading request in a database; and reading the data from the database according to the storage position and the reading rate.
7. The apparatus of claim 5, wherein the data acquisition module comprises:
the information determining submodule is used for determining the IP address corresponding to the client and the ID of the application program corresponding to the downloading request according to the downloading request;
and the rate obtaining submodule is used for obtaining the preset downloading rate according to the IP address and the ID.
8. The apparatus of claim 7,
the rate obtaining submodule is specifically used for inquiring the number of downloading tasks in the application program according to the ID; determining the maximum limit number of the preset parallel downloading tasks according to the IP address; judging whether the number is smaller than the maximum limit number; if the number is smaller than the maximum limit number, acquiring a preset downloading rate; and if the number is equal to the maximum limit number, returning prompt information of download failure to the client.
9. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors to perform the data processing method of one or more of claims 1-4.
10. A readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a data processing method according to one or more of claims 1-4.
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 CN108989272A (en) 2018-12-11
CN108989272B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547163B (en) * 2018-12-12 2021-02-12 视联动力信息技术股份有限公司 Method and device for controlling data transmission rate
CN109684026B (en) * 2019-01-14 2022-02-22 武汉斗鱼鱼乐网络科技有限公司 APP skin replacement method and device, electronic equipment and storage medium

Citations (8)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110099372A1 (en) * 2009-10-23 2011-04-28 Siddhartha Annapureddy Method and system for providing peer-to-peer video on demand

Patent Citations (8)

* 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
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

Also Published As

Publication number Publication date
CN108989272A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
KR102305064B1 (en) Video live broadcasting method and device
CN111970315A (en) Method, device and system for pushing message
US10754869B2 (en) Managing data format of data received from devices in an internet of things network
US20040249965A1 (en) Node caching system for streaming media applications
CN108737467B (en) Server log viewing method, device and system
JP6859340B2 (en) Equipment, systems and methods for retrieving, processing and updating global information
US10212236B2 (en) Information transmitting method and apparatus in robot operating system
US10516856B2 (en) Network video recorder cluster and method of operation
CN107146623B (en) Speech recognition method, device and system based on artificial intelligence
CN107566477B (en) Method and device for acquiring files in distributed file system cluster
CN110996066B (en) Accident backtracking method and device
CN106533713A (en) Application deployment method and device
JP6972714B2 (en) Data acquisition programs, equipment, and methods
CN106657182B (en) Cloud file processing method and device
CN108989272B (en) Data processing method and device and electronic equipment
CN111431813A (en) Access current limiting method, device and storage medium
CN110943876B (en) URL state detection method, device, equipment and system
CN108600147B (en) Downloading speed prediction method and device
CN114245182A (en) Live video stream acquisition method and device
CN109618187B (en) Video data acquisition method and device
CN110149219B (en) Shooting equipment configuration method and device
CN109922120B (en) Method and terminal for improving DNS availability
CN110557679A (en) video content identification method, device, medium and system
CN113709232A (en) Data packet loading method, client agent, device and storage medium
CN108881939B (en) Video CDN processing method and system

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
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.

GR01 Patent grant
GR01 Patent grant