CN113271261A - Data distribution method, terminal device, and computer-readable storage medium - Google Patents

Data distribution method, terminal device, and computer-readable storage medium Download PDF

Info

Publication number
CN113271261A
CN113271261A CN202110547344.4A CN202110547344A CN113271261A CN 113271261 A CN113271261 A CN 113271261A CN 202110547344 A CN202110547344 A CN 202110547344A CN 113271261 A CN113271261 A CN 113271261A
Authority
CN
China
Prior art keywords
data
receiving
audio
data request
distribution
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.)
Pending
Application number
CN202110547344.4A
Other languages
Chinese (zh)
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.)
Ater Technology Co ltd
Original Assignee
Ater 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 Ater Technology Co ltd filed Critical Ater Technology Co ltd
Priority to CN202110547344.4A priority Critical patent/CN113271261A/en
Publication of CN113271261A publication Critical patent/CN113271261A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • 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
    • H04L65/1069Session establishment or de-establishment
    • 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/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a data distribution method, terminal equipment and a computer readable storage medium, wherein the data distribution method is applied to a sending end of an audio and video transmission system, and the sending end is in communication connection with a plurality of first receiving ends and a plurality of second receiving ends; the data distribution method comprises the following steps: acquiring a first data request signal from a first receiving end; judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not; if so, returning request failure response information and a data request receiving address of a second receiving terminal which has distributed the audio and video data based on the first data request signal so that the second receiving terminal distributes the audio and video data to the first receiving terminal; if not, returning request success response information based on the first data request signal, and distributing the audio and video data to the first receiving end. According to the method and the device, data distribution is carried out through the second receiving end, the requirement of the distribution capacity of the sending end is reduced, and the hardware cost and the complexity of the audio and video transmission system are reduced.

Description

Data distribution method, terminal device, and computer-readable storage medium
Technical Field
The present application relates to the field of network audio and video transmission technologies, and in particular, to a data distribution method, a terminal device, and a computer-readable storage medium.
Background
The network-based audio and video transmission system is composed of a sending end and a receiving end, wherein the sending end samples and encodes audio and video signals to be transmitted into compressed audio and video data, then the compressed audio and video data are transmitted to the receiving end, and the compressed audio and video data are decoded and output by the receiving end. At present, more applications need to distribute audio and video data generated by one sending end to a plurality of receiving ends so as to realize one-to-many applications.
Then, currently, in a unicast distribution mode of a transmitting end, the transmitting end needs to establish a TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) unicast connection with each receiving end, copy multiple copies of audio and video data, and send the copies to the receiving ends through the connections. The audio and video data distribution mode has higher requirements on the capacity of a processor and a memory of a sending end and the network bandwidth of a network port, the video distribution quantity is limited, and further the maximum allowable receiving end quantity is limited, so that the distribution capacity requirement of the sending end is overlarge.
Disclosure of Invention
The application provides a data distribution method, a terminal device and a computer readable storage medium.
In order to solve the above technical problem, a first technical solution provided by the present application is: the data distribution method is applied to a sending end of an audio and video transmission system, and the sending end is in communication connection with a plurality of first receiving ends and a plurality of second receiving ends; the data distribution method comprises the following steps:
acquiring a first data request signal from the first receiving end;
judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;
if so, returning request failure response information and a data request receiving address of a second receiving terminal which has distributed the audio and video data based on the first data request signal, so that the second receiving terminal distributes the audio and video data to the first receiving terminal;
if not, returning request success response information based on the first data request signal, and distributing the audio and video data to the first receiving end.
In order to solve the above technical problem, a second technical solution provided by the present application is: providing another data distribution method, wherein the data distribution method is applied to an audio and video transmission system, and the audio and video transmission system comprises a sending end, a plurality of first receiving ends and a plurality of second receiving ends, wherein the first receiving ends and the second receiving ends are in communication connection with the sending end; the data distribution method comprises the following steps:
the first receiving end sends a first data request signal to the sending end to request for distributing audio and video data;
the sending end receives a first data request signal of the first receiving end and judges whether the occupied distribution capacity value reaches the maximum distribution capacity value;
if not, the sending end returns request success response information to the first receiving end based on the first data request signal, and distributes the audio and video data to the first receiving end;
if so, the sending end returns request failure response information and a data request receiving address of a second receiving end which distributes the audio and video data to the first receiving end based on the first data request signal;
the first receiving end sends a second data request signal based on the data request receiving address of the second receiving end;
and the second receiving terminal distributes the audio and video data to the first receiving terminal based on the second data request signal.
In order to solve the above technical problem, a third technical solution provided by the present application is: providing a terminal device, wherein the terminal device comprises a processor and a memory connected with the processor, and the memory stores program instructions; the processor is to execute the memory-stored program instructions to implement: acquiring a first data request signal from the first receiving end;
judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;
if so, returning request failure response information and a data request receiving address of a second receiving terminal which has distributed the audio and video data based on the first data request signal, so that the second receiving terminal distributes the audio and video data to the first receiving terminal;
if not, returning request success response information based on the first data request signal, and distributing the audio and video data to the first receiving end.
In order to solve the above technical problem, a fourth technical solution provided by the present application is: there is provided a computer readable storage medium storing program instructions that when executed implement: acquiring a first data request signal from the first receiving end;
judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;
if so, returning request failure response information and a data request receiving address of a second receiving terminal which has distributed the audio and video data based on the first data request signal, so that the second receiving terminal distributes the audio and video data to the first receiving terminal;
if not, returning request success response information based on the first data request signal, and distributing the audio and video data to the first receiving end.
According to the data distribution method, a first data request signal from a first receiving end is obtained; judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not, measuring the distribution capacity of the sending end through the distribution capacity value, facilitating management and control of the sending end, and preventing the problem of sending failure or sending error; if so, returning request failure response information and a data request receiving address of a second receiving terminal which has distributed the audio and video data based on the first data request signal so that the second receiving terminal distributes the audio and video data to the first receiving terminal; if not, returning request success response information based on the first data request signal, and distributing the audio and video data to the first receiving end. According to the method and the device, data distribution is carried out through the second receiving end, the requirement of the distribution capacity of the sending end is reduced, and the hardware cost and the complexity of the audio and video transmission system are reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a data distribution method provided herein;
fig. 2 is a schematic structural diagram of an embodiment of an audio/video transmission system provided in the present application;
FIG. 3 is a schematic flow chart diagram illustrating another embodiment of a data distribution method provided herein;
FIG. 4 is a schematic flow chart diagram illustrating a data distribution method according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of an embodiment of a terminal device provided in the present application;
fig. 6 is a schematic structural diagram of another embodiment of a terminal device provided in the present application;
fig. 7 is a schematic structural diagram of a computer-readable storage medium provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The present application will be described in detail with reference to the accompanying drawings and examples.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flowchart of an embodiment of a data distribution method provided by the present application, and fig. 2 is a schematic structural diagram of an embodiment of an audio/video transmission system provided by the present application.
The audio and video transmission system provided by the embodiment of the application is a one-to-many transmission system, and the audio and video transmission system is specifically composed of a sending terminal TX1, N receiving terminals RX1, RX2, … and RXN. The transmitting terminal TX1, the N receiving terminals RX1, RX2, …, RXN are respectively connected to the same network switch, and perform data communication and data transmission through the TCP ports of the network switch.
The network IP address of a sending terminal TX1 is IP0, the network IP addresses of N receiving terminals RX1, RX2 and … are respectively IP1, IP2 and …, and the IP addresses of the RXN are mutually accessed through the IP addresses. Both the sending end and the receiving end are provided with program controllers, and the process of the data distribution method in the embodiment of the application is realized by operating the program modules.
It should be noted that, in the following description of the embodiments, a sending end is used as an execution main body of the data distribution method, a first receiving end represents a receiving end to which audio and video data is to be distributed, and a second receiving end represents a receiving end to which audio and video data has been distributed.
As shown in fig. 1, the data distribution method according to the embodiment of the present application includes the following specific steps:
step S11: a first data request signal from a first receiver is obtained.
The transmitting end obtains audio and video signals to be transmitted through an audio and video source, samples and codes the audio and video signals to be transmitted, compresses the audio and video signals into audio and video data and then distributes the data. The transmitting end is provided with a data distribution program module, and after the transmitting end compresses and codes the audio and video signals into audio and video data, the data is distributed through the data distribution program module.
The receiving end of the embodiment of the application is provided with a data request program module and a data distribution program module, and the receiving end sends a first data request signal to the sending end through the data request program module so as to request the sending end to distribute audio and video data to the receiving end. Further, after the receiving end acquires the audio and video data, the acquired audio and video data can be decoded and output on one hand, and the acquired audio and video data can be distributed to other receiving ends through the data distribution program module on the other hand. Because the sending end and the receiving end are both provided with the data distribution program modules, the sending end or any one of the receiving ends can be used as data distribution equipment.
Specifically, the sending end listens to a program preset TCP port through a data distribution program module, and waits for and receives a first data request signal from a first receiving end. The first data request signal is a message sent by a receiving end of data to be acquired, the data request signal includes a data request receiving address of the first receiving end, and the data request receiving address of the first receiving end includes a network IP address of the first receiving end and a data request interception TCP port.
For example, a data request receiving address of a data distribution device whose network IP address is IP and whose TCP port is p is intercepted is denoted by (IP, p). In this embodiment of the application, data request receiving ports of a transmitting terminal TX1 and N receiving terminals RX1, RX2, …, and RXN are p0, p1, p2, and … pN, respectively, and corresponding data request receiving addresses are (ip0, p0), (ip1, p1), (ip2, p2), …, (ipN, and pN), respectively.
Step S12: and judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value.
The data distribution program module is provided with process parameters of currently occupied distribution capacity, and the currently occupied distribution capacity is a distribution capacity reduction value caused by the fact that the data distribution program module of one data distribution device distributes data to a data request end. The maximum distribution capacity value of the data distribution equipment is the maximum connection number which can be simultaneously kept by the distribution equipment and is used for audio and video data transmission, and the currently occupied distribution capacity value is the connection number which is currently kept by the distribution equipment and is used for audio and video data transmission. The embodiment of the application can take the maximum connection number of the TCP for audio and video data transmission which can be kept by a data distribution program module of the data distribution equipment as the maximum distribution capacity value, and the maximum connection number is marked as E; the number of TCP connections that have been established with the data requesting device is taken as the current occupied distribution capability value, denoted K.
Therefore, the occupied distribution capacity value of the data distribution equipment ranges from 0 to the maximum distribution capacity value, and the current occupied distribution capacity value can be used for measuring the real-time distribution capacity of the data distribution equipment.
Specifically, the distribution capability of the data distribution device may be determined through experiments or calculations and each data distribution device is allowed to have different distribution capabilities, for example, in the embodiment of the present application, the number of TCP links for establishing distribution data between the data distribution device and the receiving end is pre-stored in each data distribution device in a program preset manner.
The occupied distribution capacity and the quantity of the established data distribution links can have a transformation relation and are obtained by calculation in the process of processing the data request by the data distribution equipment. For example, in the embodiment of the present application, the number of established TCP connections for data distribution is used as the occupied distribution capability, and every time a data distribution connection is added, the number of TCP connections for data distribution is increased by 1, and the value of the occupied distribution capability is increased by 1.
When the sending end obtains a first data request signal of a first receiving end, whether the current occupied distribution capacity value of the sending end reaches the maximum distribution capacity value is detected. If the current occupied distribution capacity value of the sending end does not reach the maximum distribution capacity value, the step S14 is carried out; if the currently occupied distribution capability value of the sender reaches the maximum distribution capability value, the process proceeds to step S13.
Step S13: and returning request failure response information and a data request receiving address of a second receiving terminal which has distributed the audio and video data based on the first data request signal, so that the second receiving terminal distributes the audio and video data to the first receiving terminal.
The request result of the embodiment of the application comprises success of data request and failure of data request. When the current occupied distribution capacity value of the sending end reaches the maximum distribution capacity value, the sending end needs to return a request result of data request failure to the first receiving end.
Specifically, the request result of the data request failure includes request failure response information and a data request receiving address of one of the second receiving terminals, so that the first receiving terminal can request the second receiving terminal to distribute the audio and video data, and at this time, the second receiving terminal serves as data distribution equipment to distribute the audio and video data.
The data distribution program module also comprises process parameters of the record list of the active distribution equipment, and the sending end can select a proper second receiving end as the data distribution equipment of the first receiving end by means of the record list of the active distribution equipment. Specifically, the first entry of the record table of the active distribution device is the data request receiving address of the device where the data distribution program module is located, for example, the first entry of the record table of the active distribution device of the sending end is the data request receiving address of the sending end, and the remaining entries are the data request receiving addresses of all the second receiving ends that have been distributed from the data distribution program module to the audio and video data. Specifically, the record table of the active distribution device is denoted as a, the mth entry in the table is denoted by a (m), and a (0) is the data request receiving address of the device where the data distribution program module is located.
Taking a sending end as an example, please refer to fig. 3 continuously for a process of establishing a record table of an active distribution device and a process of distributing audio and video data by using the record table of the active distribution device, and fig. 3 is a schematic flow diagram of another embodiment of the data distribution method provided by the present application.
As shown in fig. 3, the data distribution method according to the embodiment of the present application includes the following specific steps:
step S21: and establishing an activity distribution equipment record table, wherein the activity distribution equipment record table at least comprises a data request receiving address of a receiving end.
The sending end establishes an activity distribution equipment recording table, and the first table entry is a data request receiving address of the sending end.
Step S22: second data request information is obtained from a second receiver.
Step S23: and distributing the audio and video data to the second receiving terminal based on the second data request information of the second receiving terminal, and recording the data request receiving address of the second receiving terminal in the record table of the active distribution equipment.
When the occupied distribution capacity value does not reach the maximum distribution capacity value, the sending end directly distributes the audio and video data to the second receiving end, and records the data request receiving address of the second receiving end in the record table of the active distribution equipment.
Step S24: and when the current occupied distribution capacity value reaches the maximum distribution capacity value, selecting a data request receiving address of any second receiving end in the record table of the active distribution equipment.
When the first data request information from the first receiving terminal is obtained and the current occupied distribution capacity value reaches the maximum distribution capacity value, the sending terminal selects any one second receiving terminal and the data request receiving address A (i) thereof in the record list of the active distribution equipment, wherein i is larger than 0.
Step S25: and returning request failure response information and a data request receiving address of the second receiving terminal to the first receiving terminal, so that the first receiving terminal sends a third data request signal to the second receiving terminal based on the data request receiving address of the second receiving terminal, and the second receiving terminal distributes audio and video data to the first receiving terminal based on the third data request signal.
The sending end returns the request result of data request failure to the first receiving end, and disconnects the TCP connection with the current data request of the first receiving end, and the request result includes A (i) and is recorded as Ack (Fail, A (i)). The first receiving end acquires A (i) in the Ack (Fail, A (i)), and sends a third data request signal to the second receiving end based on the A (i). And when the second receiving terminal is used as data distribution equipment to judge that the occupied distribution capacity value of the second receiving terminal does not reach the maximum distribution capacity value, the second receiving terminal can distribute the audio and video data to the first receiving terminal.
Step S14: and returning request success response information based on the first data request signal, and distributing the audio and video data to the first receiving end.
When the current occupied distribution capacity value of the sending end does not reach the maximum distribution capacity value, the data distribution program module of the sending end keeps the TCP connection with the data request of the first receiving end, returns a request result Ack (Success, A (0)) of data request Success to the first receiving end, and can directly distribute audio and video data after successful response.
In the process of distributing the audio and video data, the sending end needs to increase the current occupied distribution capacity value, and records the data request receiving address of the first receiving end in a record table of the active distribution equipment of the sending end. And after the pronunciation video data is divided, the sending end recalculates the current occupied distribution capacity value.
According to the embodiment of the application, the data distribution function is added at the receiving end, the sending end is used as primary data distribution equipment, the second receiving end is used as secondary data distribution equipment, a data distribution network is formed in a self-adaptive mode by utilizing the audio and video data request-response process between the receiving end and the sending end to distribute the audio and video data, and the audio and video data distribution capability of the whole audio and video transmission system is improved.
Further, the secondary data distribution device is a receiver, i.e. a second receiver, that has already distributed the audio-video data. The secondary data distribution equipment can also distribute data in a mode of forwarding the data step by step, and the secondary data distribution equipment is divided into first secondary data distribution equipment, second secondary data distribution equipment, … and nth secondary data distribution equipment; the first secondary data distribution equipment acquires audio and video data from the primary data distribution equipment, and the mth secondary data distribution equipment acquires the audio and video data from the (m-1) th secondary data distribution equipment respectively and distributes the acquired audio and video data to the (m + 1) th secondary data distribution equipment; the composition of the mth secondary data distribution device need not be specified in advance, but rather is dynamically generated during the course of a data request.
In the embodiment of the application, a sending end obtains a first data request signal from a first receiving end; judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not, and measuring the distribution capacity of the sending end through the distribution capacity value, so that the sending end is favorably controlled; if so, returning request failure response information and a data request receiving address of a second receiving terminal which has distributed the audio and video data based on the first data request signal so that the second receiving terminal distributes the audio and video data to the first receiving terminal; if not, returning request success response information based on the first data request signal, and distributing the audio and video data to the first receiving end. According to the method and the device, data distribution is carried out through the second receiving end, the requirement of the distribution capacity of the sending end is reduced, and the hardware cost and the complexity of the audio and video transmission system are reduced.
Referring to fig. 4, fig. 4 is a schematic flowchart of a data distribution method according to another embodiment of the present application. The data distribution method of the embodiment of the application is applied to the audio and video transmission system shown in fig. 2, and the specific structure of the audio and video transmission system is not described herein again.
As shown in fig. 4, the data distribution method according to the embodiment of the present application includes the following specific steps:
step S31: the first receiving end sends a first data request signal to the sending end to request for distributing the audio and video data.
The data request program module in the embodiment of the application has a preset initial data request receiving address, and the data distribution device corresponding to the initial data request address is the initial data distribution device. For example, the data request receiving address of the sending terminal TX1 in the embodiment of the present application is a preset initial request receiving address of all data request program modules in the audio/video transmission system.
Step S32: the sending end receives a first data request signal of a first receiving end and judges whether the occupied distribution capacity value reaches the maximum distribution capacity value.
Step S33: the sending end returns request success response information to the first receiving end based on the first data request signal, and distributes audio and video data to the first receiving end.
Step S34: and the sending end returns request failure response information and a data request receiving address of a second receiving end which has distributed the audio and video data to the first receiving end based on the first data request signal.
Step S35: the first receiving end transmits a second data request signal based on the data request receiving address of the second receiving end.
Step S36: and the second receiving terminal distributes the audio and video data to the first receiving terminal based on the second data request signal.
The process of the above steps has been described in detail in the above embodiments, and is not described herein again.
The data distribution method is suitable for distributing the audio and video data in a TCP or UDP unicast mode, has good network adaptability, and effectively avoids the adverse effect on the network possibly caused by a multicast distribution mode; the sending end does not need to directly distribute the generated audio and video data to all the receiving ends, the requirement of the sending end on distribution capacity is reduced, and the number of the receiving ends is not limited; and special distribution server equipment is not needed, and the hardware cost and the complexity of the transmitter system can be effectively reduced.
The above embodiments are only one of the common cases of the present application and do not limit the technical scope of the present application, so that any minor modifications, equivalent changes or modifications made to the above contents according to the essence of the present application still fall within the technical scope of the present application.
With continuing reference to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a terminal device provided in the present application. The terminal device in the embodiment of the present application is a data distribution device including a sending end and/or a receiving end and the like in the embodiment of the data distribution method, which have data distribution program modules.
The terminal device 50 includes a signal acquiring module 51, a capability judging module 52, and a data distributing module 53.
The signal obtaining module 51 is configured to obtain a first data request signal from the first receiving end.
And the capability judging module 52 is configured to judge whether the currently occupied dispensing capability value reaches the maximum dispensing capability value.
The data distribution module 53 is configured to return request failure response information and a data request receiving address of a second receiving end that has distributed the audio and video data based on the first data request signal when the currently occupied distribution capability value reaches the maximum distribution capability value, so that the second receiving end distributes the audio and video data to the first receiving end; and the device is also used for returning request success response information based on the first data request signal and distributing the audio and video data to the first receiving end when the current occupied distribution capacity value does not reach the maximum distribution capacity value.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another embodiment of the terminal device provided in the present application. The terminal device comprises a memory 62 and a processor 61 connected to each other.
The memory 62 is used to store program instructions implementing the data distribution method of any of the above.
The processor 61 is operative to execute program instructions stored in the memory 62.
The processor 61 may also be referred to as a CPU (Central Processing Unit). The processor 61 may be an integrated circuit chip having signal processing capabilities. The processor 61 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 62 may be a memory bank, a TF card, etc., and may store all information in the string matching prediction apparatus, including the input raw data, the computer program, the intermediate operation results, and the final operation results. It stores and retrieves information based on the location specified by the controller. With the memory, the string matching prediction device has a memory function, and normal operation can be guaranteed. The memory of the string matching prediction device can be classified into a main memory (internal memory) and an auxiliary memory (external memory) according to the use, and also into an external memory and an internal memory. The external memory is usually a magnetic medium, an optical disk, or the like, and can store information for a long period of time. The memory refers to a storage component on the main board, which is used for storing data and programs currently being executed, but is only used for temporarily storing the programs and the data, and the data is lost when the power is turned off or the power is cut off.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a system server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application.
Please refer to fig. 7, which is a schematic structural diagram of a computer-readable storage medium according to the present application. The storage medium of the present application stores a program file 71 capable of implementing all the data distribution methods, where the program file 71 may be stored in the storage medium in the form of a software product, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present application. The aforementioned storage device includes: various media capable of storing program codes, such as a usb disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or terminal devices, such as a computer, a server, a mobile phone, and a tablet.
The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (10)

1. A data distribution method is characterized in that the data distribution method is applied to a sending end of an audio and video transmission system, and the sending end is in communication connection with a plurality of first receiving ends and a plurality of second receiving ends; the data distribution method comprises the following steps:
acquiring a first data request signal from the first receiving end;
judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;
if so, returning request failure response information and a data request receiving address of a second receiving terminal which has distributed the audio and video data based on the first data request signal, so that the second receiving terminal distributes the audio and video data to the first receiving terminal;
if not, returning request success response information based on the first data request signal, and distributing the audio and video data to the first receiving end.
2. The data distribution method according to claim 1,
the maximum distribution capacity value is the maximum connection number which can be simultaneously kept by the sending end and is used for audio and video data transmission, and the currently occupied distribution capacity value is the connection number which is currently kept by the sending end and is used for audio and video data transmission.
3. The data distribution method according to claim 1,
the returning of the request success response information based on the first data request signal comprises:
and returning the request success response information and the data request receiving address of the sending end based on the first data request signal, so that the first receiving end receives the audio and video data based on the data request receiving address of the sending end.
4. The data distribution method according to claim 3,
after the audio and video data are distributed to the first receiving end, the data distribution method further includes:
increasing the current occupied dispensing capability value;
and recording the data request receiving address of the first receiving end in an active distribution equipment recording table.
5. The data distribution method according to claim 1,
the data distribution method further comprises the following steps:
establishing an activity distribution equipment record table, wherein the activity distribution equipment record table at least comprises a data request receiving address of the receiving end;
acquiring second data request information from the second receiving terminal;
distributing the audio and video data to the second receiving terminal based on second data request information of the second receiving terminal, and recording a data request receiving address of the second receiving terminal in the activity distribution equipment recording table;
when the current occupied distribution capacity value reaches the maximum distribution capacity value, selecting a data request receiving address of any second receiving end in the record table of the movable distribution equipment;
and returning the request failure response information and the data request receiving address of the second receiving terminal to the first receiving terminal, so that the first receiving terminal sends a third data request signal to the second receiving terminal based on the data request receiving address of the second receiving terminal, and the second receiving terminal distributes the audio and video data to the first receiving terminal based on the third data request signal.
6. A data distribution method is characterized in that the data distribution method is applied to an audio and video transmission system, wherein the audio and video transmission system comprises a sending end, a plurality of first receiving ends and a plurality of second receiving ends, wherein the first receiving ends and the second receiving ends are in communication connection with the sending end; the data distribution method comprises the following steps:
the first receiving end sends a first data request signal to the sending end to request for distributing audio and video data;
the sending end receives a first data request signal of the first receiving end and judges whether the occupied distribution capacity value reaches the maximum distribution capacity value;
if not, the sending end returns request success response information to the first receiving end based on the first data request signal, and distributes the audio and video data to the first receiving end;
if so, the sending end returns request failure response information and a data request receiving address of a second receiving end which distributes the audio and video data to the first receiving end based on the first data request signal;
the first receiving end sends a second data request signal based on the data request receiving address of the second receiving end;
and the second receiving terminal distributes the audio and video data to the first receiving terminal based on the second data request signal.
7. The data distribution method according to claim 6,
the data distribution method further comprises the following steps:
the sending end returns request success response information and a data request receiving address of the sending end to the first receiving end based on the first data request signal, and distributes the audio and video data to the first receiving end;
the first receiving end judges whether the received audio and video data come from a data request receiving address of the sending end;
if so, the first receiving end starts to receive the audio and video data distributed by the sending end;
if not, the first receiving end stops receiving the audio and video data.
8. The data distribution method according to claim 6,
the audio and video transmission system further comprises a network switch, and the sending end, the first receiving ends and the second receiving ends are respectively connected to the network switch.
9. A terminal device, characterized in that the terminal device comprises a processor, a memory connected to the processor, wherein,
the memory stores program instructions;
the processor is to execute the memory-stored program instructions to implement:
acquiring a first data request signal from the first receiving end;
judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;
if so, returning request failure response information and a data request receiving address of a second receiving terminal which has distributed the audio and video data based on the first data request signal, so that the second receiving terminal distributes the audio and video data to the first receiving terminal;
if not, returning request success response information based on the first data request signal, and distributing the audio and video data to the first receiving end.
10. A computer-readable storage medium, wherein the storage medium stores program instructions that, when executed, implement:
acquiring a first data request signal from the first receiving end;
judging whether the current occupied distribution capacity value reaches the maximum distribution capacity value or not;
if so, returning request failure response information and a data request receiving address of a second receiving terminal which has distributed the audio and video data based on the first data request signal, so that the second receiving terminal distributes the audio and video data to the first receiving terminal;
if not, returning request success response information based on the first data request signal, and distributing the audio and video data to the first receiving end.
CN202110547344.4A 2021-05-19 2021-05-19 Data distribution method, terminal device, and computer-readable storage medium Pending CN113271261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110547344.4A CN113271261A (en) 2021-05-19 2021-05-19 Data distribution method, terminal device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110547344.4A CN113271261A (en) 2021-05-19 2021-05-19 Data distribution method, terminal device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN113271261A true CN113271261A (en) 2021-08-17

Family

ID=77231878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110547344.4A Pending CN113271261A (en) 2021-05-19 2021-05-19 Data distribution method, terminal device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN113271261A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873338A (en) * 2021-09-17 2021-12-31 深圳爱特天翔科技有限公司 Data transmission method, terminal device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634224A (en) * 2012-08-22 2014-03-12 深圳市腾讯计算机***有限公司 Method and system for transmitting data in network
CN104284237A (en) * 2014-10-13 2015-01-14 中安消技术有限公司 Video transmission method and system
CN104602047A (en) * 2014-12-05 2015-05-06 海信集团有限公司 Share method of EPG (error pattern generator) data, server, terminal and system
CN105701168A (en) * 2015-12-31 2016-06-22 北京金山安全软件有限公司 Data storage method and device and electronic equipment
CN110290399A (en) * 2019-06-25 2019-09-27 深圳市网心科技有限公司 A kind of data distributing method, system, device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634224A (en) * 2012-08-22 2014-03-12 深圳市腾讯计算机***有限公司 Method and system for transmitting data in network
CN104284237A (en) * 2014-10-13 2015-01-14 中安消技术有限公司 Video transmission method and system
CN104602047A (en) * 2014-12-05 2015-05-06 海信集团有限公司 Share method of EPG (error pattern generator) data, server, terminal and system
CN105701168A (en) * 2015-12-31 2016-06-22 北京金山安全软件有限公司 Data storage method and device and electronic equipment
CN110290399A (en) * 2019-06-25 2019-09-27 深圳市网心科技有限公司 A kind of data distributing method, system, device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873338A (en) * 2021-09-17 2021-12-31 深圳爱特天翔科技有限公司 Data transmission method, terminal device, and computer-readable storage medium
CN113873338B (en) * 2021-09-17 2023-08-04 深圳爱特天翔科技有限公司 Data transmission method, terminal device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US9537786B2 (en) Method, device, and system for information processing based on distributed buses
US9332583B2 (en) Multipoint communication device and method of performing switching from multipoint communication to point-to-point communication
US8825807B2 (en) Delivery server, content delivery method of delivery server, booster server, content delivery method of booster server
CN106953797B (en) RDMA data transmission method and device based on dynamic connection
CN103731448A (en) Method and system for compressing picture
US11398233B2 (en) Smart service method, apparatus and device
CN113271261A (en) Data distribution method, terminal device, and computer-readable storage medium
CN112751748A (en) Session message management method, device, server and readable storage medium
JP2012083891A (en) Failover system, storage processor, and failover control method
US9641798B2 (en) Very large conference spanning multiple media servers in cascading arrangement
CN110826001A (en) Data acquisition request processing method and device, computer equipment and storage medium
CN112333690B (en) Data transmission method, device, storage medium, terminal and network access point equipment
CN102025730B (en) Data transmission device based on HTTP protocol and implementation method thereof
CN112771875B (en) Improving video bit rate while maintaining video quality
WO2022241675A1 (en) Data distribution method, terminal device and computer-readable storage medium
WO2016095510A1 (en) Path selection method, device and system
KR20080009858A (en) Multicasting system and network device for agency transmission of data, and method for agency transmission of data thereof
CN112533154B (en) Data processing method, device and storage medium
US9491287B2 (en) Ringtone assignment system and the method thereof
CN113873338B (en) Data transmission method, terminal device and computer readable storage medium
US20240089557A1 (en) Data transmission method, terminal device, and computer-readable storage medium
US20070263073A1 (en) System and method for identifying the reachability status of ip and sip based videoconferencing systems
KR102522585B1 (en) System for synchronizing data and method thereof
CN112367493B (en) Data transmission control method, device, mobile terminal and storage medium
CN101321108B (en) Method and apparatus for error messaging in a multimedia network

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210817