Broadcast data transmission control method and system based on IP network
By selecting core clients in the IP network to forward broadcast data packets to other clients, the problem of delay and packet loss caused by network congestion is solved, the quality and efficiency of broadcast data transmission is improved, and the network overhead of the server is reduced.
Patent Information
- Application Number
- CN202410913747.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-11
AI Technical Summary
Existing broadcast data transmission methods based on IP networks have delays and packet loss problems under network congestion conditions, especially in real-time broadcast application scenarios with high concurrent requests, which affect service quality.
By selecting the core client within the service scope to forward broadcast data packets to other clients, the IP network is used to send forwarding control instructions to the core client, requiring it to forward the data packet to the slave client after receiving the data packet, thereby reducing the network load of the server. overhead and improve data transmission efficiency.
It effectively avoids the impact of network congestion on broadcast services, improves the fluency and quality of data transmission, and reduces the network pressure on the server.
Smart Images

Figure CN118764441A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of broadcast communication, and in particular to a broadcast data transmission control method and system based on IP network. Background Art
[0002] With the rapid development of information technology, IP networks have become the most widely used data transmission networks. Due to their openness, flexibility and cost-effectiveness, IP networks are widely used in various data transmission scenarios, including audio, video and other types of data broadcasting.
[0003] Although the existing broadcast data transmission methods based on IP networks have taken advantage of the advantages of IP networks, they still face various challenges. First, data transmission in IP networks is subject to delays and packet loss, which can significantly affect the quality of broadcast services, especially in the case of network congestion. Second, existing transmission control methods are not efficient in handling high-concurrency requests, especially in large-scale real-time broadcast application scenarios, such as live sports events or major news events. Summary of the invention
[0004] The purpose of the present invention is to provide a broadcast data transmission control method and system based on IP network, which improves the problems affecting broadcast services such as network congestion during broadcast data transmission by selecting core user terminals to forward broadcast data packets to subordinate user terminals of the service.
[0005] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:
[0006] The present invention provides a broadcast data transmission control method based on IP network, comprising:
[0007] Obtain the communication packet loss rate and communication bandwidth between user terminals within the service range;
[0008] Obtain the communication packet loss rate and communication bandwidth between the user end and the server end within the service range;
[0009] Selecting a number of candidate core user terminals from the user terminals according to the communication packet loss rate and communication bandwidth between the user terminals within the service range;
[0010] Selecting a number of core user terminals within the service range from among the candidate core user terminals;
[0011] Acquire several other clients served by each core client as subordinate clients and clients directly connected to the server;
[0012] Translate broadcast data into broadcast packets suitable for IP networks;
[0013] Sending the broadcast data packet and forwarding control instruction to each core user terminal through the IP network, wherein the forwarding control instruction requires the core user terminal to forward the broadcast data packet to the served slave user terminal after receiving the broadcast data packet;
[0014] The broadcast data packet is sent to each user terminal directly connected to the server terminal through the IP network.
[0015] The present invention also discloses a broadcast data transmission control method based on IP network, comprising:
[0016] Receive broadcast data packets sent by the server;
[0017] Receive the forwarding control instruction and parse it to obtain the subordinate user end served by the core user end;
[0018] The broadcast data packet is forwarded to a slave client of the service.
[0019] The present invention also discloses a broadcast data transmission control method based on IP network, comprising:
[0020] Receive broadcast data packets forwarded by the core user end.
[0021] The present invention also discloses a broadcast data transmission control system based on IP network, comprising:
[0022] The server is used to obtain the communication packet loss rate and communication bandwidth between the client and the server within the service range;
[0023] Obtain the communication packet loss rate and communication bandwidth between user terminals within the service range;
[0024] According to the communication packet loss rate and communication bandwidth between the user terminal and the server terminal within the service range, several candidate core user terminals within the service range are obtained;
[0025] Selecting a number of core user terminals from among a number of candidate core user terminals;
[0026] Acquire several other clients served by each core client as subordinate clients and clients directly connected to the server;
[0027] Translate broadcast data into broadcast packets suitable for IP networks;
[0028] Sending the broadcast data packet and forwarding control instruction to each core user terminal through the IP network, wherein the forwarding control instruction requires the core user terminal to forward the broadcast data packet to the served slave user terminal after receiving the broadcast data packet;
[0029] Sending the broadcast data packet to each user terminal directly connected to the server terminal via the IP network;
[0030] The core client is used to receive broadcast data packets sent by the server;
[0031] Receive the forwarding control instruction and parse it to obtain the subordinate user end served by the core user end;
[0032] forwarding the broadcast data packet to a slave client of the service; and
[0033] The slave client is used to receive broadcast data packets forwarded by the core client.
[0034] The present invention performs network analysis on the user terminals within the service range through the server, thereby screening out the core user terminals that use the forwarding broadcast data packets and the subordinate user terminals served by them. In this process, the server does not need to perform the real-time transmission task of broadcast data for each user terminal, thereby reducing the network overhead of the server. At the same time, since the network condition between the core user terminal and its corresponding subordinate client terminal is good, the network condition of the core user terminal itself is also good, so the subordinate client terminal can obtain smooth broadcast data transmission service, effectively avoiding problems that affect the broadcast service such as network congestion during the broadcast data transmission process.
[0035] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0037] Figure 1 A schematic diagram of functional modules and information flow of an IP network-based broadcast data transmission control system according to an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of a process flow of a server according to an embodiment of the present invention;
[0039] Figure 3 A schematic diagram of a process flow of a core user terminal according to an embodiment of the present invention;
[0040] Figure 4 A schematic diagram of a process flow of a slave user terminal according to an embodiment of the present invention;
[0041] Figure 5 A schematic diagram of a process flow of a direct connection to a user terminal according to an embodiment of the present invention;
[0042] Figure 6 This is a schematic diagram of the step flow of step S2 in one embodiment of the present invention;
[0043] Figure 7 This is a schematic diagram of the step flow of step S24 in one embodiment of the present invention;
[0044] Figure 8 This is a schematic diagram of the step flow of step S3 in one embodiment of the present invention;
[0045] Fig. 9 This is a schematic diagram of the step flow of step S33 in one embodiment of the present invention;
[0046] Fig.10 This is a schematic diagram of a step flow chart of step S331 in an embodiment of the present invention;
[0047] Fig.11 This is a schematic diagram of the step flow of step S4 in one embodiment of the present invention;
[0048] In the accompanying drawings, the components represented by the reference numerals are listed as follows:
[0049] 1-server, 2-core client, 3-slave client, 4-direct client. DETAILED DESCRIPTION
[0050] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0051] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0052] The IP network uses IP addresses to identify and connect various devices in the network. In the IP network, data is divided into data packets and transmitted interactively in the network, which is suitable for point-to-point data transmission. The broadcast data in the broadcast network is one-way transmission, which is suitable for large-capacity multimedia data. If the IP network transmits broadcast data, the server needs to provide network services to each user end, which will greatly increase the network overhead of the server and reduce the broadcast data service experience. In view of this, the present invention provides the following solution.
[0053] See also Figures 1 to 5As shown, the present invention provides a broadcast data transmission control system based on an IP network, and the system includes a server 1. Each server 1 will set the service range in advance, and the user terminals within the service range need to be subjected to network testing and network environment analysis in advance. First, the server 1 executes step S1 to obtain the communication packet loss rate and communication bandwidth between the user terminals within the service range. Next, step S2 can be executed to select a number of alternative core user terminals in the user terminal according to the communication packet loss rate and communication bandwidth between the user terminals within the service range. Next, step S3 can be executed to select a number of core user terminals within the service range from the alternative core user terminals. Next, step S4 can be executed to obtain a number of other user terminals served by each core user terminal as subordinate user terminals and user terminals directly connected to the server terminal.
[0054] In the above process, a core user terminal with good network connection with other user terminals is selected from among numerous user terminals, so that the core user terminal can play the role of network transfer, which can reduce the network pressure on the server.
[0055] It should be additionally noted that, since the core user end in this solution will be responsible for the forwarding network tasks of its subordinate user ends, it is necessary to inform the users of the core user end and obtain their permission.
[0056] When the service end provides broadcast data transmission service to all user terminals, for the core user terminal 2 and the slave user terminal 3, step S5 is first executed to translate the broadcast data into broadcast data packets suitable for the IP network. This is because the transmission data packets in the digital broadcast network and the IP network have different data formats, so conversion is required. Then step S6 can be executed to send the broadcast data packet and forwarding control instruction to each core user terminal through the IP network. The function of the forwarding control instruction is to require the core user terminal to forward the broadcast data packet to the slave user terminal of the service after receiving the broadcast data packet.
[0057] For the directly connected user terminal 4, step S7 may be executed to send a broadcast data packet to each directly connected user terminal of the server through the IP network.
[0058] When the core user terminal 2 performs the broadcast data forwarding task, it can first perform step S021 to receive the broadcast data packet sent by the server. Then it can perform step S022 to receive the forwarding control instruction and parse to obtain the subordinate user terminal served by the core user terminal. Finally, it can perform step S023 to forward the broadcast data packet to the subordinate user terminal served.
[0059] For the slave client 3, it is necessary to perform step S031 to receive the broadcast data packet forwarded by the core client. Since the IP protocol has a two-way communication function, the slave client 3 can forward the corresponding core client 2 to realize feedback communication from the slave client 3 to the server 1. Since the feedback communication bandwidth requirement is relatively low, the slave client 3 can also directly communicate with the server 1 for feedback.
[0060] For the directly connected user terminal 4, step S041 may be executed to receive the broadcast data packet sent by the server, thereby achieving the receiving task.
[0061] See also Figures 6 to 7 As shown, since the network conditions of different user terminals are different, the communication quality between them is also different. Selecting the user terminal with better network condition as the core user terminal to provide broadcast data forwarding service can improve the live broadcast experience of other subordinate user terminals. In view of this, in order to select the core user terminal with better connection condition with other user terminals, firstly, step S21 can be executed to select several user terminals as marked user terminals in the user terminals within the service range. This step can be a random selection or a user's own application. Next, step S22 can be executed to obtain the communication packet loss rate and communication bandwidth of each marked user terminal with other user terminals according to the communication packet loss rate and communication bandwidth between the user terminals within the service range. This step can be to issue an instruction to require network communication test between each other. Next, step S23 can be executed to add the reciprocal of the communication packet loss rate of the marked user terminal with other user terminals and the numerical value of the communication bandwidth to obtain the communication quality index of the marked user terminal with other user terminals, that is, to quantify the network communication condition between each other. Of course, other indicators such as network jitter can also be used.
[0062] Finally, step S24 can be executed to filter out candidate core user terminals according to the communication quality index of each marked user terminal and each other user terminal. Specifically, step S241 can be executed first to classify each other user terminal and the marked user terminal with the largest communication quality index into the same user terminal group. This step is to perform temporary grouping. Next, step S242 can be executed to calculate the cumulative sum of the communication quality index of each user terminal and all other user terminals in each user terminal group. Next, step S243 can be executed to use the user terminal with the largest cumulative sum of the communication quality index with all other user terminals in each user terminal group as the updated marked user terminal. Next, step S244 can be executed to determine whether the updated marked user terminal has changed, that is, to detect whether the temporary grouping is correct. If so, it means that the temporary grouping is incorrect, then steps S242 to S244 can be executed to continuously generate the updated user terminal group and marked user terminal. If otherwise, it means that the temporary grouping is correct, so step S245 can be executed next to use the updated marked user terminal as the candidate core user terminal.
[0063] In order to supplement the implementation process of the above steps S21 to S24, the source code of some functional modules is provided, and the explanation is compared in the comment section. In order to avoid the leakage of data involving commercial secrets, some data that does not affect the implementation of the solution are desensitized, the same below.
[0064]
[0065]
[0066]
[0067]
[0068]
[0069] This code searches for the best core user end through multiple rounds of calculations. In each round, it calculates the communication quality index between the marked user end and other users, and then updates the marked user end based on these indices. This process continues until the marked user end stops changing, indicating that the optimal set of core users has been found. The algorithm attempts to optimize the overall efficiency of data transmission in the network by selecting the users with the strongest communication performance as core nodes, thereby improving the transmission quality and speed of broadcast data.
[0070] See also Figures 8 to 9As shown, since the size of the user terminal group may be very large and exceed the network forwarding service capacity of a single core user terminal 1, it is necessary to divide it. Specifically, first, it can be detected whether the user terminal group exceeds the forwarding carrying capacity of the core user terminal, and firstly, step S31 is executed to obtain the minimum communication bandwidth required to complete the normal communication of the broadcast data packet as the unit bandwidth. Next, step S32 can be executed to determine in each user terminal group whether the number of other user terminals other than the candidate core user terminals multiplied by the unit bandwidth is greater than the upload bandwidth of the candidate core user terminal.
[0071] If it means that the forwarding carrying capacity of the core user terminal is exceeded, then step S33 can be executed to regroup the user terminal group to obtain multiple regrouped user terminal groups and corresponding alternative core user terminals. In the specific process of regrouping, step S331 can be executed to divide all user terminals in the user terminal group into multiple groups to obtain regrouped user terminal groups. Next, step S332 can be executed to select the user terminal with the largest cumulative sum of the communication quality index with all other user terminals in each regrouped user terminal group as the updated marked user terminal. Finally, step S333 can be executed to summarize and obtain multiple regrouped user terminal groups and corresponding alternative core user terminals.
[0072] Since the regrouped user terminal group may still exceed the forwarding carrying capacity of the corresponding core user terminal, step S33 can be executed next to continuously determine whether the number of other user terminals other than the alternative core user terminals in the regrouped user terminal group multiplied by the unit bandwidth is greater than the upload bandwidth of the alternative core user terminal, and obtain the core user terminal or regrouping based on the judgment result.
[0073] If not, it means that the forwarding bearing capacity of the core user terminal is not exceeded, so next step S34 can be executed to use the candidate core user terminal as the core user terminal.
[0074] In order to supplement the implementation process of the above steps S31 to S34, the source code of some functional modules is provided, and the explanation is compared in the comment section. In order to avoid the leakage of data involving commercial secrets, some data that does not affect the implementation of the solution are desensitized, the same below.
[0075]
[0076]
[0077]
[0078] This code mainly deals with the bandwidth configuration problem between the candidate core user end and its subordinate user ends. First, based on the comparison between the upload bandwidth of each candidate core user end and the unit bandwidth required by its subordinate user ends, it is determined whether regrouping is needed. If the upload bandwidth of a candidate core user cannot meet the needs of all its subordinate user ends, the code divides these subordinate user ends into multiple groups to balance the bandwidth allocation. On the contrary, if the bandwidth is sufficient, the original grouping is maintained. This method optimizes bandwidth-based user grouping and ensures more efficient and stable data transmission.
[0079] See also Fig.10 As shown, when the size of the user terminal group exceeds the forwarding carrying capacity of the core user terminal and needs to be grouped, in order to make the two groups of user terminal groups after grouping have similar network conditions, step S3311 can be first executed to calculate and obtain the cumulative sum of the communication quality index of each user terminal in the user terminal group and all other user terminals as the communication primacy of each user terminal. Next, step S3312 can be executed to sort each user terminal in the user terminal group from large to small according to the communication primacy to obtain a user terminal sequence. Finally, step S3313 can be executed to extract groups in the user terminal sequence at intervals in sequence to obtain two re-grouped user terminal groups. In the above manner, it is possible to avoid the user terminal groups after division from being too large or too small in size, so the grouping can be completed quickly.
[0080] See also Fig.11 As shown, since the above process can only cover some user terminals with high network association, that is, the core user terminal and the subordinate user terminals it serves, for these user terminals, the server can execute step S41 in each user terminal group and regard other user terminals other than the core user terminal as subordinate user terminals served by the core user terminal.
[0081] Meanwhile, some user terminals are covered by the core user terminal service forwarding, which requires the server to directly provide broadcast data transmission services. Therefore, step S42 can be executed to directly connect the user terminals that do not belong to any user terminal group to the server.
[0082] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, system, method and computer program product according to multiple embodiments of the present application. In this regard, each square frame in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the square frame can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square frames can actually be executed substantially in parallel, and they can also be executed in reverse order sometimes, depending on the functions involved.
[0083] It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented by hardware that performs the corresponding function or action, such as a circuit or ASIC (Application Specific Integrated Circuit), or can be implemented by a combination of hardware and software, such as firmware.
[0084] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0085] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes are obvious to those of ordinary skill in the art without departing from the scope of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A broadcast data transmission control method based on IP network, It is characterized in that include, Obtain the communication packet loss rate and communication bandwidth between user terminals within the service range; Selecting a number of candidate core user terminals from the user terminals according to the communication packet loss rate and communication bandwidth between the user terminals within the service range; Selecting a number of core user terminals within the service range from among the candidate core user terminals; Acquire several other clients served by each core client as subordinate clients and clients directly connected to the server; Translate broadcast data into broadcast packets suitable for IP networks; Sending the broadcast data packet and forwarding control instruction to each core user terminal through the IP network, wherein the forwarding control instruction requires the core user terminal to forward the broadcast data packet to the served slave user terminal after receiving the broadcast data packet; The broadcast data packet is sent to each user terminal directly connected to the server terminal through the IP network.
2. The method according to claim 1, It is characterized in that The step of selecting a plurality of candidate core user terminals in the user terminal according to the communication packet loss rate and communication bandwidth between the user terminals within the service range includes: Selecting a number of user terminals from the user terminals within the service range as marked user terminals; According to the communication packet loss rate and communication bandwidth between the user terminals within the service range, the communication packet loss rate and communication bandwidth of each marked user terminal and other user terminals are obtained; The communication quality index between the marked user end and other user ends is obtained by adding the inverse of the communication packet loss rate between the marked user end and other user ends to the value of the communication bandwidth; The candidate core user terminals are selected according to the communication quality index between each marked user terminal and each other user terminal.
3. The method according to claim 2, It is characterized in that The step of selecting candidate core user terminals according to the communication quality index between each marked user terminal and each other user terminal includes: Classify each other user terminal and the marked user terminal with the largest communication quality index into the same user terminal group; In each user terminal group, calculating the cumulative sum of the communication quality index of each user terminal and all other user terminals; The user terminal with the largest cumulative sum of the communication quality indexes with all other user terminals in each user terminal group is used as the updated marked user terminal; Determine whether the updated marked user end has changed; If yes, continue to generate updated client groups and mark clients; If not, the updated marked client is used as a candidate core client.
4. The method according to claim 3, It is characterized in that The step of selecting a plurality of core user terminals within the service range from the candidate core user terminals includes: Acquire the minimum communication bandwidth required to complete normal communication of the broadcast data packet as the unit bandwidth; In each user terminal group, determining whether the number of other user terminals other than the candidate core user terminals multiplied by the unit bandwidth is greater than the upload bandwidth of the candidate core user terminals; If yes, regroup the user terminal group to obtain a plurality of regrouped user terminal groups and corresponding candidate core user terminals; Continuously determine whether the number of other user terminals other than the candidate core user terminals in the regrouped user terminal group multiplied by the unit bandwidth is greater than the upload bandwidth of the candidate core user terminal, and obtain the core user terminal or regroup according to the determination result; If not, the candidate core user terminal is used as the core user terminal.
5. The method according to claim 4, It is characterized in that The step of regrouping the user terminal group to obtain a plurality of regrouped user terminal groups and corresponding candidate core user terminals includes: Dividing all the user terminals in the user terminal group into multiple groups to obtain regrouped user terminal groups; In each regrouped user terminal group, the user terminal with the largest cumulative sum of the communication quality indexes with all other user terminals in the user terminal group is used as an updated marked user terminal; A plurality of regrouped user terminal groups and corresponding candidate core user terminals are obtained by summarizing.
6. The method according to claim 3, It is characterized in that The step of dividing all the user terminals in the user terminal group into multiple groups to obtain regrouped user terminal groups, include, Calculate and obtain the cumulative sum of the communication quality indexes of each user terminal and all other user terminals in the user terminal group as the communication primacy of each user terminal; Sort each of the user terminals in the user terminal group according to the communication primacy from large to small to obtain a user terminal sequence; Groups are sequentially extracted at intervals in the user terminal sequence to obtain two regrouped user terminal groups.
7. The method according to claim 1, It is characterized in that The step of obtaining a plurality of other user terminals served by each core user terminal as subordinate user terminals and user terminals directly connected to the service terminal includes: In each user terminal group, other users other than the core user terminal are used as subordinate users served by the core user terminal; Directly connect a client that does not belong to any client group to the server.
8. A broadcast data transmission control method based on IP network, It is characterized in that include, Receive broadcast data packets sent by the server; Receiving a forwarding control instruction in a broadcast data transmission control system based on an IP network as described in any one of claims 1 to 7, parsing to obtain a subordinate user end served by a core user end; The broadcast data packet is forwarded to the slave client of the service.
9. A broadcast data transmission control method based on IP network, It is characterized in that include, Receive broadcast data packets forwarded by a core user terminal in a broadcast data transmission control system based on an IP network as described in any one of claims 1 to 7.
10. A broadcast data transmission control system based on IP network, It is characterized in that include, The server is used to obtain the communication packet loss rate and communication bandwidth between the user terminals within the service range; Selecting a number of candidate core user terminals from the user terminals according to the communication packet loss rate and communication bandwidth between the user terminals within the service range; Selecting a number of core user terminals within the service range from among the candidate core user terminals; Acquire several other clients served by each core client as subordinate clients and clients directly connected to the server; Translate broadcast data into broadcast packets suitable for IP networks; Sending the broadcast data packet and forwarding control instruction to each core user terminal through the IP network, wherein the forwarding control instruction requires the core user terminal to forward the broadcast data packet to the served slave user terminal after receiving the broadcast data packet; Sending the broadcast data packet to each user terminal directly connected to the server terminal via the IP network; The core client is used to receive broadcast data packets sent by the server; Receive the forwarding control instruction and parse it to obtain the subordinate user end served by the core user end; forwarding the broadcast data packet to the slave client of the service; and, The slave client is used to receive broadcast data packets forwarded by the core client.
