A streaming media transmission optimization method based on fountain code drive

By adopting a fountain code-driven streaming media transmission optimization method in the SAGI network, using the margin factor and pause time mechanism, combined with the upper bound of the confidence interval and the K-arm gambling machine strategy, the long propagation delay caused by fountain code transmission is solved. It solves the problem of invalid packet transmission, achieves efficient streaming media transmission, avoids waste of link bandwidth and adapts to dynamic link conditions.

CN115665442BActive Publication Date: 2024-10-18NANTONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211307393.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-24
Publication Date
2024-10-18
Estimated Expiration
2042-10-24

AI Technical Summary

Technical Problem

In SAGI networks, fountain code transmission causes a large number of invalid packets to be sent due to long propagation delays, causing waste of link bandwidth and congestion, especially under high link bandwidth conditions.

Method used

Adopting the streaming media transmission optimization method based on fountain code driver, by encoding the video clips at the sending end and determining the margin factor η, setting the pause time Tw to be greater than the round-trip time RTT, listening for the stop information of the receiving end, and supplementing it if not received Groups are sent until a stop message is received, and the confidence interval upper bound algorithm and K-arm bandit strategy are combined for online learning to dynamically adjust the number of encoding groups.

Benefits of technology

It effectively reduces the number of invalid packets of traditional fountain codes in long propagation delay links, avoids waste of link bandwidth, and maintains a transmission completion time close to that of traditional fountain codes, making it suitable for dynamically changing link conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115665442B_ABST
    Figure CN115665442B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of wireless communication technology, and discloses a method for optimizing streaming media transmission driven by fountain codes. The present invention adopts fountain codes to realize packet transmission. Since fountain codes do not require feedback or retransmission, the completion time can be significantly reduced. The present invention also adopts a 'pause-listen' packet transmission method based on a multi-armed bandit model, which determines whether a packet needs to be resent by judging whether the sending end receives the stop sending information of the receiving end. At the same time, the number of resent packets, the total number of packets sent by the sending end, and the number of packets received by the receiving end are evaluated and learned to dynamically adjust the number of packets transmitted at one time for the next video clip, which effectively reduces the waste of sending packets and can well select the optimal number of sending packets according to changes in the network environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of wireless communications, and in particular relates to a streaming media transmission optimization method based on fountain code driving. Background Art

[0002] Adaptive streaming media (ABS) is one of the most popular Internet applications, and its traffic accounts for more than 80% of the network. In today's ABS systems, such as HTTP Live Streaming (HLS) and HTTP Dynamic Adaptive Streaming (DASH), a video is divided into multiple playable video segment files, each of which is encoded into multiple versions with different bit rates and then stored on the server. The client requests segments with different bit rates based on the adaptive bit rate (ABR) algorithm.

[0003] As next-generation wireless systems evolve toward space-air-ground-integrated (SAGI) scale, the need for ABS in SAGI networks becomes increasingly important. However, in SAGI networks, links are often lossy and have long propagation delays. This poses a challenge to ABS because feedback and retransmission become expensive. Fountain code transmission is an effective way to solve this problem. In fountain code transmission, some form of rateless code, such as Raptor and random linear network code (RLNC), is used, which have a common feature that an infinite number of encoded packets can be generated from the source file. The server continuously sends encoded packets, and the receiver can recover the file as long as a sufficient number of packets are collected, regardless of which packets are collected. The receiver only confirms completion, and the server stops sending when it receives a stop message. However, although fountain codes support unlimited back-to-back transmission, there is a problem in practice, that is, the receiver has completed recovery, but due to the long propagation delay of the link, the server is still sending until the stop message arrives. If the link bandwidth is high, this will result in a large number of invalid packets being sent, resulting in a waste of expensive bandwidth (such as the cost of leasing a satellite link) and possibly causing congestion on the link shared with other services. Specifically, the number of wasted packets is approximately equal to the link bandwidth-delay product (BDP) in packets. Summary of the invention

[0004] The present invention adopts a streaming media transmission optimization method based on fountain code driving, which can avoid the waste of a large number of packets while maintaining the key advantages of fountain code transmission, namely, no feedback / retransmission and lower completion time.

[0005] The technical solution provided by the present invention is as follows:

[0006] A method for optimizing streaming media transmission based on fountain code drive, wherein the streaming media transmission is that a receiving end sends a video request to a sending end, the sending end divides the video into L video segments and transmits them to the receiving end in sequence, and the sending end sends the / th video segment The process of transmitting to the receiving end, l=0, ..., L-1, comprises the following steps:

[0007] S1. The sending end sends the video clip Encode each source group in and determine the margin factor η, η is selected from the set Then send it to the receiving end Code groups, where For video clips Number of source groups;

[0008] S2. The sender pauses after sending the number of coded packets, setting the pause time T w The stop message sent by the receiving end is listened to. If the stop message is received before the pause ends, the video clip If the transmission is completed and the stop information is not received, proceed to step S3;

[0009] Among them, set the pause time T w Greater than the round-trip time RTT; the stop information is to stop sending the video clip Information of the coded grouping;

[0010] S3. The sending end sends additional coded packets, where δ is the ratio of supplementary transmission, and the set described in step S1 is taken The minimum value of the difference between η, and then go to step S2.

[0011] Further, in step S1, the margin factor η is determined by: using the confidence interval upper bound (UCB) algorithm from the set according to historical data Select a value as the margin factor η, the historical data includes the reward value R l and collection The number of times each value is selected as the margin factor, the reward value R l The calculation formula is as follows:

[0012]

[0013] Among them, N r N is the number of coded packets received by the receiver when the previous video segment transmission is completed. sentis the total number of coded packets of the video segment transmitted when the sender receives the stop message of the previous video segment, and W is the number of times the sender pauses when the transmission of the previous video segment is completed.

[0014] Furthermore, in step S2, the preset time T w It is 1.05*RTT.

[0015] Compared with the prior art, the present invention has the following technical effects:

[0016] 1) This method has a transmission completion time close to that of the traditional fountain code scheme, while significantly reducing the number of invalid packets sent by the traditional fountain code in the long propagation delay link, avoiding the waste of link bandwidth.

[0017] 2) This method is implemented in an online learning manner and does not require the establishment of a mathematical model in advance to analyze the number of coding packets required to achieve the transmission target. It can be applied to any ABS system that uses rateless codes and can adapt well to scenarios where link conditions change dynamically. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The ABS system model used in the embodiment of the present invention is

[0019] Figure 2 A schematic diagram of a streaming media transmission optimization method process provided by an embodiment of the present invention;

[0020] Figure 3 is the N of each transmission scheme under the condition of 1% packet loss rate sent and T comp Comparison chart of

[0021] Figure 4 is the N of each transmission scheme under dynamic packet loss rate conditions sent and T comp Comparison chart. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] The present invention provides a method for optimizing streaming media transmission based on fountain code driving, wherein the streaming media transmission is that a receiving end sends a video request to a sending end, the sending end divides the video into L video segments and transmits them to the receiving end in sequence, and the sending end sends the lth video segment to the receiving end. The process of transmitting to the receiving end, l=0, ..., L-1, comprises the following steps:

[0024] S1. The sending end sends the video clip Encode each source group in and determine the margin factor η, η is selected from the set Then send it to the receiving end Code groups, where For video clips Number of source groups;

[0025] S2. The sender pauses after sending the number of coded packets, setting the pause time T w , T w The pause time is greater than the round-trip time RTT, preferably 1.05*RTT. The pause time is used to listen to the stop message sent by the receiving end. If the stop message is received before the pause ends, the video clip If the transmission of the video clip is completed, if the stop message is not received, the process proceeds to step S3; wherein the stop message is to stop sending the video clip. The information of the coded packets, specifically, refers to the stop information sent by the receiving end to the sending end after the coded packets are received and restored into video segments;

[0026] The margin factor η is determined as follows:

[0027] According to historical data, the UCB algorithm is used to Select a value as the margin factor η, the historical data includes the reward value R l and collection The number of times each value is selected as the margin factor, the reward value R l The calculation formula is as follows:

[0028]

[0029] Among them, N r N is the number of coded packets received by the receiver when the previous video segment transmission is completed. sent is the total number of coded packets of the video segment transmitted when the sender receives the stop message of the previous video segment, and W is the number of times the sender pauses when the transmission of the previous video segment is completed.

[0030] S3. The sending end sends additional coded packets, where δ is the ratio of supplementary transmission, and the set described in step S1 is taken The minimum value of the difference between η, and then go to step S2.

[0031] In one embodiment of the present invention, the following ABS system model is considered.

[0032] like Figure 1 As shown in Figure 2, assume that the receiving end (client) requests a video from the remote server (sender). On the server, the video is divided into L segments, denoted as Each segment is encoded into N versions with a bit rate of Corresponding to different resolutions. Represents a fragment with resolution Qn Size Bytes. The ABS client requests where b l ∈{1,...,N} is the corresponding segment The index of the requested resolution, determined by the client's specific ABR algorithm.

[0033] Consider that the link between the server and the client has a long propagation delay T p and random packet loss rate p e When sending the requested video clip files to the client, fountain code transmission is used: on the server, each requested file is regarded as a number of packets of size K bytes. That is, assuming that the video clip The requested file is Then the corresponding The number of source groups is expressed as Then The source packet uses a rateless code to generate a coded message. Taking RLNC as an example, the coded packet with index j can be expressed as

[0034]

[0035] Each group can be regarded as from a finite field elements of , q is a finite field Size, g i,j From The coding coefficients are randomly selected from . For example, if q = 2 s , then K byte groups can be represented by K finite field elements. Vector The generated coded packets are sent over a long-delay lossy link. When the decoder collects enough coded packets, there is Linearly independent packets, the decoder can successfully decode and reconstruct the file (RLNC can use Gaussian elimination decoding algorithm). At this point, the client sends a stop message to the server, and then the system enters the request and transmission of the next segment.

[0036] For fountain code transmission, the total number of packets transmitted before the stop message arrives is recorded as N sent, the completion time of the segment is recorded as T comp These are two key performance indicators. comp Defined as the time that elapses between the time the server receives a fragment request and the time the server receives a stop message.

[0037] In traditional fountain code transmission, the server keeps sending coded packets until a stop message arrives, so it is essentially a large number of N sent Minimize T at the cost of comp In this invention, we consider N sent Optimize to minimize N sent And keep the T short comp .

[0038] The embodiment of the present invention proposes a streaming media transmission optimization method based on fountain code drive. In this scheme, the sending end (server) first sends the most coded packets, then pause T w Time to listen for the stop message. Here T w Slightly longer than the RTT of the link, so that the client has enough time to collect all the encoded packets that have been transmitted, and if the file can be resumed, enough time to send a stop message and reach the server before the pause timer expires. On the server side, if the stop message arrives before the pause expires, it means that the segment transfer is complete and the system will start the next segment If the stop message does not arrive when the pause expires, the server considers that the previously transmitted coded packets are insufficient and sends additional packets. groups, and then pause T again w The above process is repeated until a stop message is received. An example of this process is Figure 2 As shown, a complementary send occurs and the fragment transfer is completed before the second pause expires.

[0039] Let W ≥ 1 be the number of “pause-listen” times the video segment completes transmission. sent Approximately equal to:

[0040]

[0041] The approximation here is because the stop message may arrive before the supplementary transmission is completed. Let T D is the transmission time of each packet, which is related to the transmission rate of the server. comp Approx.

[0042] T comp ≈N sent T D +WT w

[0043] Obviously, the choice of η is critical, as it not only determines N sent , and also affects W, thus affecting T comp Note that a larger η falls back to the traditional fountain scheme.

[0044] In one embodiment of the present invention, the selection of η is modeled as a K-armed bandit problem. Let η be selected from the set η1<η2<…<η k ,δ=min j>i (η j -η i ) is the ratio of supplementary sending. Here, it is assumed that and are all integers. The basic idea of ​​the bandit problem is to adopt the "exploration-exploitation" trade-off method. In "exploitation", take the action with the highest current value, and in "exploration", select some other actions. The action value is used to measure the "quality" of the action and is gradually updated (i.e., learning) during the action. In the ABS system, the action corresponding to each video clip selects the appropriate η, and the goal is to make the average N sent Minimize, while avoiding additional supplementary sending as much as possible. To this end, define the following reward

[0045]

[0046] Where N r The number of packets received when the client completes the video segment l can be carried to the server in the stop message. This function will use -1 to penalize supplementary sending; in the case of no supplementary sending, the fewer packets sent, the greater the reward given.

[0047] In one embodiment of the present invention, based on the general gambling machine algorithm, a complete program (i.e., Algorithm 1) on the fountain code ABS system server is designed to learn across segments. In the "exploration-exploitation" trade-off, an action selection strategy based on the upper-confidence-bound (UCB) is adopted.

[11] , that is, the video segment l selects the action according to the following formula

[0048]

[0049] Where N l (a) is the action η a The number of times the video clip has been selected before. Note that when N lWhen (a) = 0, a is considered to be the action that satisfies the maximization condition. Compared with another commonly used ε-greedy strategy, our experiments show that UCB has better adaptability when the link condition is non-stationary. In Algorithm 1, N sbp is a counter indicating the number of packets sent between two pauses. The update of the action value Q(a), a=1,...,k occurs after the transmission of each video segment is completed. Here, a constant learning rate a is used to track possible non-stationary link conditions.

[0050] It is important to point out that the bandit algorithm itself does not require explicit RTT information. This is a major benefit of learning-based modeling. However, in practice, setting the pause timer does require RTT. The designed system can estimate the RTT by carrying a timestamp when the client sends the stop message.

[0051] The present invention implements a client and server prototype based on the user datagram protocol (UDP), where the ABS video segments are specified by the m3u8 file on the server. The client initiates a play request by requesting this file, and issues consecutive requests for each video segment based on this file. For each video segment, the server uses a sparse variant of RLNC called band code as the encoding scheme for fountain code transmission. The width of the band is 64, and the finite field is taken as The server sends encoded packets at a constant rate over the UDP socket. Note that in a real-world scenario, the sending rate might be determined by a flow (congestion) control algorithm.

[0052] The experiment was evaluated by deploying the server and client on two Ubuntu 20.04LTS nodes, where the connection conditions between the nodes were simulated by the Linux tc tool. The one-way propagation delay was set to 250ms. The server sending rate was 25Mbps. This setting simulates the geosynchronous satellite link that plays a core role in the SAGI network. The maximum transmission unit is 1500 bytes, so the transmission time of each packet is T D =1500×8 / 25 / 10 6 =0.00048s, other parameters are set to a=0.1,δ=0.01,T w =1.05·RTT, c=1.

[0053] First, the evaluation is performed on a link with a constant packet loss rate of 1%. The present invention selects the traditional fountain code transmission and the multiple requests with the minimum number of linearly independent packets required (referred to as multiple requests) as the reference scheme. For simplicity, each segment in the calculation consists of the same number of Composition, bl = 236 packets, size K = 1280 bytes, which is equivalent to a 360p video segment of about 5 seconds. Figure 3 The following table shows the N obtained by using various schemes to transmit 600 video clips. sent and T comp The sliding window is 20. In this specific scenario, since a) the number of packets in each video clip is small and the same, b) the link conditions are known and stable, and c) the performance of the rateless code is roughly the same as that of the RLNC, the scheme proposed by Lucani et al. in DELucani, M.Stojanovic, and M.Medard, “Random linear network coding for time division duplexing: When to stop talking and start listening,” in IEEEINFOCOM, pp.1800-1808, 2009 is also included in the reference, hereinafter referred to as the Lucani et al. scheme. This scheme is based on the mathematical model of the RLNC decoding probability. Under the conditions of known number of data packets and link packet loss rate, the optimal number of requests when implementing fountain codes in the RLNC mode can be calculated. The offline calculation corresponds to The complexity of finding the optimal number of requests for grouping is acceptable. However, it is emphasized here that if the video segments are large and of different sizes, the computational complexity of the Lucani et al. scheme will be unbearable. For example, when It took nearly 12 hours to calculate using Matlab 2020a on a MAC mini 2018.

[0054] The disadvantages of the traditional fountain code scheme are Figure 3 The traditional fountain code scheme is very effective in achieving the minimum T comp , 5 times more packets than required are sent, wasting a lot of resources. This shows that traditional fountain code transmission is not suitable for transmitting relatively small files over links with long propagation delays. On the other hand, as expected, multiple requests send the least number of packets, but take a long time to complete because multiple requests may be required to complete a fragment. Calculations using the scheme of Lucani et al. show that 245 packets should be sent in the evaluated scenario. From Figure 3 It can be seen that it can indeed complete the fragment transfer in one go (i.e., no supplement is required) and achieve the minimum T comp The K-armed bandit scheme proposed in this paper uses a slightly higher T comp The cost is N sentThe value is very close to the minimum. Note that at the beginning of a transmission, UCB-based exploration will try all available actions at least once, so more packets will be sent during this period.

[0055] Next, we evaluate the performance of the scheme under the link condition where the packet loss rate is 2% for the first 300 segments and then jumps to 4% for the next 300 segments. In this case, since the packet loss rate is variable, the scheme of Lucani et al. is no longer applicable. Figure 4 The N of the other three schemes is shown sent and T comp The sliding window is still 20. Similarly, the traditional fountain sent Achieve the minimum T comp , while multiple requests are made through higher T comp Achieving the minimum N sent As can be seen from the figure, our proposed scheme has a good balance between the advantages and disadvantages of traditional fountain code transmission and multiple requests. When the link condition is stable, the scheme only sends a few more packets than multiple requests, and the completion time is very close to that of traditional fountain code transmission. At the 300th segment, when p e When T changes from 2% to 4%, comp will rise sharply, because the previously learned strategy is no longer suitable. However, the K-armed bandit-based solution is able to adapt to the changes after a few episodes, showing the advantage of online learning methods.

Claims

1. A method for optimizing streaming media transmission based on fountain code driving, wherein the streaming media transmission is that a receiving end sends a video request to a sending end, and the sending end divides the video into L video segments and transmits them to the receiving end in sequence, characterized in that: The sending end sends the lth video segment The process of transmitting to the receiving end, l=0, ..., L-1, comprises the following steps: S1. The sending end sends the video clip The source groups in are encoded, and the margin factor l is determined by the K-armed bandit algorithm, and η is selected from the set Then send it to the receiving end Code groups, where For video clips The number of source packets in the source, the number of times the sender pauses when the previous video clip is transmitted is recorded as W, W is greater than or equal to 1; the K-armed bandit algorithm adopts an action selection strategy based on the upper bound of the confidence interval; S2. The sender pauses after sending the coded packet and sets the pause time T w To listen to the stop information sent by the receiving end, N sent T is the total number of coded packets transmitted before the sender receives a stop message after the previous video segment is transmitted. comp is the time elapsed between when the sender receives the video clip and when the sender receives the stop message. If the stop message is received before the pause ends, the video clip s ι If the transmission is completed and the stop information is not received, proceed to step S3; Among them, set the pause time T w Greater than the round-trip time RTT; the stop information is to stop sending the video clip Information of the coded grouping; S3. The sending end sends additional Then, the process goes to step S2, where δ is the ratio of supplementary transmission. The set of The minimum value of the difference between the middle η, δ = min j>i (η j -η i ), 1≤i≤k, 1≤j≤k in, T comp ≈N sent T D +WT w , T D The transmission time of each packet.

2. The streaming media transmission optimization method according to claim 1, characterized in that: In step S1, the margin factor η is determined by: using the confidence interval upper bound algorithm from the set according to historical data Select a value as the margin factor η, the historical data includes the reward value R l and collection The number of times each value is selected as the margin factor, the reward value R l The calculation formula is as follows: Among them, N r It is the number of coded packets received by the receiver when the transmission of the previous video segment is completed.

3. The streaming media transmission optimization method according to claim 1, characterized in that: In step S2, the preset time T w It is 1.05*RTT.

Citation Information

Patent Citations

  • Quadruped robot path planning method based on DRL

    CN114859911A

  • Intelligent multi-beam medium access control in ku-band for mission-oriented mobile mesh networks

    US20160381596A1