CN111092929B - File issuing method and device and electronic equipment - Google Patents

File issuing method and device and electronic equipment Download PDF

Info

Publication number
CN111092929B
CN111092929B CN201911088196.3A CN201911088196A CN111092929B CN 111092929 B CN111092929 B CN 111092929B CN 201911088196 A CN201911088196 A CN 201911088196A CN 111092929 B CN111092929 B CN 111092929B
Authority
CN
China
Prior art keywords
file
target
issued
code rate
issuing
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
CN201911088196.3A
Other languages
Chinese (zh)
Other versions
CN111092929A (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201911088196.3A priority Critical patent/CN111092929B/en
Publication of CN111092929A publication Critical patent/CN111092929A/en
Application granted granted Critical
Publication of CN111092929B publication Critical patent/CN111092929B/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
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure provides a file issuing method, a file issuing device and electronic equipment, belonging to the field of computer application, wherein the method comprises the following steps: acquiring a downloading request of a target terminal, wherein the downloading request comprises identification information of a target file requested to be downloaded; searching whether the target file is stored in advance or not according to the identification information; if the target file is stored in advance, determining an issuing parameter according to the code rate of the target file, and issuing the target file to the target terminal according to the issuing parameter; if the target file is not stored in advance, the target file is obtained according to a conventional scheduling rule, and the target file is issued to the target terminal. By the scheme provided by the embodiment of the disclosure, the adaptability of the speed limiting scheme during file issuing is improved, and the resource waste rate and the issuing operation fluency are improved.

Description

File issuing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to a file issuing method and apparatus, and an electronic device.
Background
In the prior art, full speed download is common for on demand, or an undifferentiated speed limit is made only during peak hours. The former will cause resource waste, and the latter will cause partial jam. Most Content Delivery Network (CDN) companies cannot sense the code rate of audio and video in most cases; some manufacturers are unable to provide code rates in real time. Therefore, for CDN suppliers, effective speed limiting is required according to CDN characteristics.
Therefore, the existing file issuing scheme has the technical problems of resource waste or flow blockage.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a file issuing method, device and electronic device, which at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides a file issuing method, including:
acquiring a downloading request of a target terminal, wherein the downloading request comprises identification information of a target file requested to be downloaded;
searching whether the target file is stored in advance or not according to the identification information;
if the target file is stored in advance, determining an issuing parameter according to the code rate of the target file, and issuing the target file to the target terminal according to the issuing parameter;
and if the target file is not stored in advance, obtaining the target file according to a conventional scheduling rule, and issuing the target file to the target terminal.
According to a specific implementation manner of the embodiment of the present disclosure, the step of determining the issuing parameter according to the code rate of the target file includes:
determining a target node for executing the task of issuing the target file;
acquiring the code rate of the target file and the current hotspot parameter of the target node;
and determining the speed limit parameter of the target file issued by the target node according to the code rate of the target file and the current hotspot parameter of the target node.
According to a specific implementation manner of the embodiment of the present disclosure, before the step of obtaining the code rate of the target file, the method further includes:
periodically collecting log data of at least one edge node;
acquiring file parameters of each issued file according to the log data;
and calculating and storing the code rate of the issued file according to the file parameter of the issued file.
According to a specific implementation manner of the embodiment of the present disclosure, before the step of calculating the bit rate of the issued file according to the file parameter of the issued file, the method further includes:
judging whether the code rate of the issued file is calculated or not;
and if the code rate of the issued file is not calculated, calculating and storing the code rate of the issued file.
According to a specific implementation manner of the embodiment of the present disclosure, the file download parameter includes a streaming media file encapsulation format corresponding to the issued file;
the step of calculating and storing the code rate of the issued file according to the file parameters of the issued file comprises the following steps:
sampling and extracting and calculating the code rate of the issued file according to the streaming media file packaging format corresponding to the issued file.
According to a specific implementation manner of the embodiment of the present disclosure, the file download parameter further includes a download address of the issued file;
the step of calculating and storing the code rate of the issued file according to the file parameters of the issued file comprises the following steps:
downloading the issued file again according to the download address of the issued file, and calculating the check code rate of the issued file;
if the code rate of the issued file obtained by sampling extraction is the same as the check code rate of the issued file, storing the code rate of the issued file extracted by sampling and the identification information of the issued file;
and if the code rate of the issued file extracted according to sampling is different from the check code rate of the issued file, replacing the code rate of the issued file extracted according to sampling with the check code rate to correspondingly store the code rate of the issued file and the identification information of the issued file.
According to a specific implementation manner of the embodiment of the present disclosure, the log data includes file uniform resource locator information in the log.
In a second aspect, an embodiment of the present disclosure provides a file issuing apparatus, including:
the first acquisition module is used for acquiring a downloading request of a target terminal, wherein the downloading request comprises identification information of a target file requested to be downloaded;
the searching module is used for searching whether the target file is stored in advance according to the identification information;
the issuing module is used for:
if the target file is stored in advance, determining an issuing parameter according to the code rate of the target file, and issuing the target file to the target terminal according to the issuing parameter;
and if the target file is not stored in advance, obtaining the target file according to a conventional scheduling rule, and issuing the target file to the target terminal.
According to a specific implementation manner of the embodiment of the present disclosure, the issuing module is configured to:
determining a target node for executing the task of issuing the target file;
acquiring the code rate of the target file and the current hotspot parameter of the target node;
and determining the speed limit parameter of the target file issued by the target node according to the code rate of the target file and the current hotspot parameter of the target node.
According to a specific implementation manner of the embodiment of the present disclosure, the apparatus further includes:
the acquisition module is used for periodically acquiring the log data of at least one edge node;
the second acquisition module is used for acquiring the file parameters of each issued file according to the log data;
and the calculation module is used for calculating and storing the code rate of the issued file according to the file parameter of the issued file.
According to a specific implementation manner of the embodiment of the present disclosure, the apparatus further includes:
the judging module is used for judging whether the code rate of the issued file is calculated or not;
and if the code rate of the issued file is not calculated, enabling the calculation module to calculate and store the code rate of the issued file.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the file delivery method of the first aspect or any implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present disclosure further provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are configured to enable the computer to execute the file issuing method in the foregoing first aspect or any implementation manner of the first aspect.
In a fifth aspect, the disclosed embodiments also provide a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the file delivery method in the foregoing first aspect or any implementation manner of the first aspect.
The file issuing scheme in the embodiment of the disclosure includes: acquiring a downloading request of a target terminal, wherein the downloading request comprises identification information of a target file requested to be downloaded; searching whether the target file is stored in advance or not according to the identification information; if the target file is stored in advance, determining an issuing parameter according to the code rate of the target file, and issuing the target file to the target terminal according to the issuing parameter; and if the target file is not stored in advance, obtaining the target file according to a conventional scheduling rule, and issuing the target file to the target terminal. By the scheme, the adaptability of the speed limiting scheme during file issuing is improved, and the resource waste rate and the issuing operation smoothness are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a file issuing method according to an embodiment of the present disclosure;
fig. 2 is a schematic partial flowchart of another file issuing method according to an embodiment of the present disclosure;
fig. 3 is a schematic partial flowchart of another file issuing method according to an embodiment of the present disclosure;
fig. 4 is a schematic partial flowchart of another file issuing method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a file issuing device according to an embodiment of the present disclosure;
fig. 6 is a schematic partial structure diagram of another file issuing device according to the embodiment of the present disclosure;
fig. 7 is a schematic view of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be carried into practice or applied to various other specific embodiments, and various modifications and changes may be made in the details within the description and the drawings without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. In addition, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to or other than one or more of the aspects set forth herein.
It should be further noted that the drawings provided in the following embodiments are only schematic illustrations of the basic concepts of the present disclosure, and the drawings only show the components related to the present disclosure rather than the numbers, shapes and dimensions of the components in actual implementation, and the types, the numbers and the proportions of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to provide a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a file issuing method. The file issuing method provided by the embodiment may be executed by a computing device, where the computing device may be implemented as software, or implemented as a combination of software and hardware, and the computing device may be integrally disposed in a server, a terminal device, or the like.
Referring to fig. 1, a file issuing method provided in the embodiment of the present disclosure includes:
s101, acquiring a downloading request of a target terminal, wherein the downloading request comprises identification information of a target file requested to be downloaded;
the file Delivery method provided in this embodiment is applied to a bypass system of a Content Delivery Network (CDN) and specially used for scheduling file Delivery, and does not affect the CDN. The CDN is an intelligent virtual network constructed on the basis of the existing network, and by means of edge node servers (edge nodes for short) deployed in various places, through functional modules such as load balancing, content distribution, scheduling and the like of a central platform, a user terminal obtains required content nearby, so that network congestion is reduced, and the access response speed and hit rate of a user are improved. The key technology of the CDN is mainly content storage and distribution technology. The file delivery method provided by this embodiment schedules the file delivery process through the central platform of the CDN.
Specifically, the central platform first obtains a download request for requesting to download the file from the CDN. The method comprises the steps of defining a terminal which initiates a downloading request at present as a target terminal, defining a file requested to be downloaded as a target file, wherein the downloading request initiated by the target terminal comprises identification information of the target file requested to be downloaded, such as a file name, a file unique identification code, a file downloading address and other information.
S102, searching whether the target file is stored in advance or not according to the identification information;
the delivered files are stored in the storage space of the CDN, so that the files can be directly acquired and delivered in the subsequent repeated requests, and the operation of rescheduling is omitted. During specific storage, the identification information of the file can be stored in correspondence with the file, and the identification information of the file is used as an index ID for searching the file. After analyzing and acquiring the identification information of the target file requested to be downloaded, the central platform searches whether the target file is stored in advance according to the identification information.
S103, if the target file is stored in advance, determining an issuing parameter according to the code rate of the target file, and issuing the target file to the target terminal according to the issuing parameter;
and S104, if the target file is not stored in advance, obtaining the target file according to a conventional scheduling rule, and issuing the target file to the target terminal.
If the central platform does not find the target file or determines that the target file is not stored in advance, the central platform indicates that the target file has not been issued and cannot acquire the code rate of the target file, and the central platform can directly schedule and acquire the target file according to a conventional scheduling rule and issue the target file to the target terminal.
If the central platform finds or determines that the target file is stored in advance, the central platform indicates that the target file is issued before the request. At this time, the code rate of the target file can be directly obtained, an appropriate downloading parameter is determined according to the code rate of the target file, and the target file is issued according to the determined downloading parameter, so that resource waste or downloading stagnation is avoided.
According to a specific implementation manner of the embodiment of the present disclosure, as shown in fig. 2, the step of determining an issuing parameter according to the code rate of the target file may include:
s201, determining a target node for executing a task of issuing the target file;
s202, acquiring the code rate of the target file and the current hotspot parameters of the target node;
s203, determining the speed limit parameter of the target file issued by the target node according to the code rate of the target file and the current hotspot parameter of the target node.
And firstly determining a target node for executing the target task issued this time, wherein the target node can be a node closest to a target terminal or a node which is closer to the target terminal and stores the target file. And determining a better speed limit parameter according to the determined current hot spot parameter of the target node and the code rate of the target file, and issuing the target file according to the determined speed limit parameter.
Optionally, as shown in fig. 3, before the step of obtaining the code rate of the target file, the method may further include:
s301, periodically collecting log data of at least one edge node;
s302, acquiring file parameters of each issued file according to the log data;
and S303, calculating the code rate of the issued file according to the file parameter of the issued file and storing the code rate.
The method comprises the steps that a log acquisition module Agent of a central platform is deployed on each edge CDN node to periodically acquire log data of the edge CDN nodes, for example, file Uniform Resource Locator (URL) information in logs, then the log acquisition module pushes the acquired information such as URLs to the central platform in batch, and the central platform calculates the code rate of issued files according to the received information.
Further, as shown in fig. 4, before the step of calculating the bit rate of the issued file according to the file parameter of the issued file, the method may further include:
s401, judging whether the code rate of the issued file is calculated or not;
s402, if the code rate of the issued file is not calculated, calculating and storing the code rate of the issued file.
The central platform can search whether a certain issued file calculates the code rate according to the database of the stored code rate information. And if not, the issued computing task calculates the code rate of the issued file. If the code rate is calculated, the code rate calculation operation can not be repeated, and the overall calculation amount is reduced.
According to a specific implementation manner of the embodiment of the present disclosure, the file downloading parameter includes a streaming media file packaging format corresponding to the issued file;
the step of calculating and storing the code rate of the issued file according to the file parameters of the issued file comprises the following steps:
sampling, extracting and calculating the code rate of the issued file according to the streaming media file packaging format corresponding to the issued file.
According to another specific implementation manner of the embodiment of the present disclosure, the file download parameter further includes a download address of the issued file;
the step of calculating and storing the code rate of the issued file according to the file parameters of the issued file comprises the following steps:
downloading the issued file again according to the download address of the issued file, and calculating the check code rate of the issued file;
if the code rate of the issued file obtained by sampling extraction is the same as the verification code rate of the issued file, storing the code rate of the issued file extracted by sampling and the identification information of the issued file;
and if the code rate of the issued file extracted according to sampling is different from the check code rate of the issued file, replacing the code rate of the issued file extracted according to sampling with the check code rate to correspondingly store the code rate of the issued file and the identification information of the issued file.
The central platform or the Cluster can sample, extract and calculate the code rate of the issued file according to different streaming media file packaging formats, and push the calculated code rate to the DB storage center of the database. The edge CDN may periodically push a file list to the Cluster, the file list containing video file addresses. When the Cluster calculates the code rate, the check code rate can be calculated according to the downloaded address file, namely the file fragment. If the terminal or the Cluster and the like find that code rate data in the database has problems, the data can be directly gathered and processed in the database.
The file issuing method provided by the embodiment of the invention aims at the characteristics of the on-demand audio/video file and the hot spot existing in the CDN service, calculates the code rate in a delayed manner, and realizes targeted speed limit and scheduling by combining the daily peak value characteristic, thereby saving bandwidth resources and avoiding blockage.
In correspondence with the above method embodiment, referring to fig. 5, an embodiment of the present disclosure also provides an image quality evaluation apparatus 50 including:
a first obtaining module 501, configured to obtain a download request of a target terminal, where the download request includes identification information of a target file requested to be downloaded;
a searching module 502, configured to search whether the target file is stored in advance according to the identification information;
the issuing module 503 is configured to:
if the target file is stored in advance, determining an issuing parameter according to the code rate of the target file, and issuing the target file to the target terminal according to the issuing parameter;
and if the target file is not stored in advance, obtaining the target file according to a conventional scheduling rule, and issuing the target file to the target terminal.
According to a specific implementation manner of the embodiment of the present disclosure, the issuing module 503 is configured to:
determining a target node for executing the task of issuing the target file;
acquiring the code rate of the target file and the current hotspot parameter of the target node;
and determining the speed limit parameter of the target file issued by the target node according to the code rate of the target file and the current hotspot parameter of the target node.
According to a specific implementation manner of the embodiment of the present disclosure, as shown in fig. 6, the apparatus 50 further includes:
an acquisition module 504, configured to periodically acquire log data of at least one edge node;
a second obtaining module 505, configured to obtain a file parameter of each issued file according to the log data;
and the calculating module 506 is configured to calculate and store the bit rate of the issued file according to the file parameter of the issued file.
According to a specific implementation manner of the embodiment of the present disclosure, as shown in fig. 6, the apparatus 50 further includes:
a judging module 507, configured to judge whether the code rate of the issued file has been calculated;
and if the code rate of the issued file is not calculated, enabling the calculation module to calculate and store the code rate of the issued file.
The apparatus shown in fig. 5 and fig. 6 may correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Referring to fig. 7, an embodiment of the present disclosure also provides an electronic device 70, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the file delivery method of the above method embodiments.
The embodiment of the present disclosure further provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the file issuing method in the foregoing method embodiment.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, which when executed by a computer, cause the computer to execute the file delivery method in the aforementioned method embodiments.
Referring now to FIG. 7, a schematic diagram of an electronic device 70 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, the electronic device 70 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 701 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 70 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, or the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 70 to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device 70 having various means, it is understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs, which when executed by the electronic device, enable the electronic device to implement the schemes provided by the method embodiments.
Alternatively, the computer readable medium carries one or more programs, which when executed by the electronic device, enable the electronic device to implement the schemes provided by the method embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first obtaining unit may also be described as a "unit obtaining at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (11)

1. A file issuing method is characterized by comprising the following steps:
acquiring a downloading request of a target terminal, wherein the downloading request comprises identification information of a target file requested to be downloaded;
searching whether the target file is stored in advance or not according to the identification information;
if the target file is stored in advance, determining an issuing parameter according to the code rate of the target file, and issuing the target file to the target terminal according to a speed limiting parameter contained in the issuing parameter; the step of determining the issuing parameters according to the code rate of the target file comprises the following steps:
determining a target node for executing the task of issuing the target file;
acquiring the code rate of the target file and the current hotspot parameter of the target node;
determining a speed limit parameter of the target file issued by the target node according to the code rate of the target file and the current hotspot parameter of the target node;
and if the target file is not stored in advance, obtaining the target file according to a conventional scheduling rule, and issuing the target file to the target terminal.
2. The method of claim 1, wherein the step of obtaining the bitrate of the target file is preceded by the method further comprising:
periodically collecting log data of at least one edge node;
acquiring file parameters of each issued file according to the log data;
and calculating and storing the code rate of the issued file according to the file parameter of the issued file.
3. The method of claim 2, wherein before the step of calculating the bit rate of the issued file according to the file parameter of the issued file, the method further comprises:
judging whether the code rate of the issued file is already calculated;
and if the code rate of the issued file is not calculated, calculating and storing the code rate of the issued file.
4. The method of claim 2, wherein the file download parameters include a streaming media file package format corresponding to the issued file;
the step of calculating and storing the code rate of the issued file according to the file parameters of the issued file comprises the following steps:
sampling, extracting and calculating the code rate of the issued file according to the streaming media file packaging format corresponding to the issued file.
5. The method of claim 4, wherein the file download parameters further comprise a download address of the issued file;
the step of calculating and storing the code rate of the issued file according to the file parameters of the issued file comprises the following steps:
downloading the issued file again according to the download address of the issued file, and calculating the check code rate of the issued file;
if the code rate of the issued file obtained by sampling extraction is the same as the check code rate of the issued file, storing the code rate of the issued file extracted by sampling and the identification information of the issued file;
and if the code rate of the issued file extracted according to sampling is different from the check code rate of the issued file, replacing the code rate of the issued file extracted according to sampling with the check code rate to correspondingly store the code rate of the issued file and the identification information of the issued file.
6. The method of any of claims 2 to 5, wherein the log data comprises file uniform resource locator information in the log.
7. A file issuing device is characterized by comprising:
the first acquisition module is used for acquiring a downloading request of a target terminal, wherein the downloading request comprises identification information of a target file requested to be downloaded;
the searching module is used for searching whether the target file is stored in advance according to the identification information;
the issuing module is used for:
if the target file is stored in advance, determining issuing parameters according to the code rate of the target file, and issuing the target file to the target terminal according to the speed limiting parameters contained in the issuing parameters; determining a target node for executing the task of issuing the target file;
acquiring the code rate of the target file and the current hotspot parameter of the target node;
determining a speed limit parameter of the target node for issuing the target file according to the code rate of the target file and the current hot spot parameter of the target node;
and if the target file is not stored in advance, obtaining the target file according to a conventional scheduling rule, and issuing the target file to the target terminal.
8. The apparatus of claim 7, further comprising:
the acquisition module is used for periodically acquiring the log data of at least one edge node;
the second acquisition module is used for acquiring the file parameters of each issued file according to the log data;
and the calculation module is used for calculating and storing the code rate of the issued file according to the file parameter of the issued file.
9. The apparatus of claim 8, further comprising:
the judging module is used for judging whether the code rate of the issued file is calculated or not;
and if the code rate of the issued file is not calculated, enabling the calculation module to calculate and store the code rate of the issued file.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the file delivery method of any of the preceding claims 1-6.
11. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the file delivery method of any one of the preceding claims 1-6.
CN201911088196.3A 2019-11-08 2019-11-08 File issuing method and device and electronic equipment Active CN111092929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911088196.3A CN111092929B (en) 2019-11-08 2019-11-08 File issuing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911088196.3A CN111092929B (en) 2019-11-08 2019-11-08 File issuing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111092929A CN111092929A (en) 2020-05-01
CN111092929B true CN111092929B (en) 2022-11-18

Family

ID=70393942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911088196.3A Active CN111092929B (en) 2019-11-08 2019-11-08 File issuing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111092929B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790779A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and device for downloading live video resources
CN106254548A (en) * 2016-09-29 2016-12-21 天脉聚源(北京)科技有限公司 A kind of method and device downloading stream medium data
CN110087109A (en) * 2019-04-19 2019-08-02 中国科学院信息工程研究所 Video code rate adaptive approach and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790779A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and device for downloading live video resources
CN106254548A (en) * 2016-09-29 2016-12-21 天脉聚源(北京)科技有限公司 A kind of method and device downloading stream medium data
CN110087109A (en) * 2019-04-19 2019-08-02 中国科学院信息工程研究所 Video code rate adaptive approach and device

Also Published As

Publication number Publication date
CN111092929A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CN111198859B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110097397B (en) Feedback-based information pushing method and device and electronic equipment
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN111784380B (en) Advertisement putting attribution method and device
CN110545472B (en) Video data processing method and device, electronic equipment and computer readable medium
CN112433920A (en) Buried point data reporting method, device, equipment and medium
CN110781437A (en) Method and device for acquiring webpage image loading duration and electronic equipment
CN109902726B (en) Resume information processing method and device
CN110740174A (en) File downloading speed limiting method and device and electronic equipment
CN112291121B (en) Data processing method and related equipment
CN111540344B (en) Acoustic network model training method and device and electronic equipment
CN111274104B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN111092929B (en) File issuing method and device and electronic equipment
CN111708680A (en) Error reporting information analysis method and device, electronic equipment and storage medium
CN111290861A (en) Message processing method and device and electronic equipment
CN112688793B (en) Data packet obtaining method and device and electronic equipment
CN115543409A (en) Application installation source determining method and device, readable medium and electronic equipment
CN111198853A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN111368557B (en) Video content translation method, device, equipment and computer readable medium
CN114611483A (en) Method and device for automatically upgrading nuclear power DCS control logic diagram and function diagram association
CN112887349B (en) Method and device for distributing files
CN109522133B (en) Data splicing method and device, electronic equipment and storage medium
CN113660699A (en) Intelligent cluster networking method and device and electronic equipment
CN112799863A (en) Method and apparatus for outputting information
CN111259174B (en) Multimedia transmission method, device, electronic equipment and medium

Legal Events

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