A video transmission optimization method and device based on SDWAN
By configuring flow control and intelligent routing strategies, combined with adaptive forward error correction algorithms, the problem of poor network quality and expensive dedicated line broadband in SDWAN video transmission is solved, achieving high-quality video transmission and improving user experience.
Patent Information
- Application Number
- CN202211646230.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-12-21
AI Technical Summary
Existing SDWAN video transmission optimization methods have problems such as poor network quality, expensive dedicated broadband and low video transmission quality, which affects user experience.
By configuring different types of flow control strategies, intelligent routing strategies and link detection strategies, zero-copy technology is used to store data packets, and redundancy is updated in real time based on link quality to generate redundant data packets, giving priority to high-quality links. , combined with adaptive forward error correction algorithm and priority routing algorithm to ensure video data transmission priority and quality.
It achieves full utilization of SDWAN bandwidth without adding equipment or modifying the network topology, improving video transmission quality, reducing costs, avoiding expensive dedicated line broadband, and improving user experience.
Smart Images

Figure CN116170371B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer network video transmission, and in particular to a video transmission optimization method and device based on SDWAN. Background Art
[0002] With the development of SDWAN, more and more enterprises choose to use SDWAN to build their own enterprise intranet. SDWAN can easily realize enterprise application cloud access and branch interconnection. Enterprise users in different regions can use SDWAN network to achieve remote interaction through video conferencing. This makes the requirements for the stability of video conferencing connection gradually increase. However, due to the network congestion problem in the network, network jitter is very likely to occur, causing packet loss during transmission, greatly reducing the quality of video conferencing and affecting the user experience. Video conferencing as an efficient communication method is one of the core needs of enterprise users. As a cheap access method, SDWAN is much worse than traditional dedicated lines in terms of network stability. In summary, it can be seen that the transmission optimization of video conferencing through SDWAN intelligent gateway is crucial for users to accept SDWAN products. There are mainly the following existing video transmission optimization methods. The first method is to ensure the normal progress of video conferencing by deploying dedicated transmission lines. This method can improve line quality and transmission bandwidth. The second method is to achieve transmission optimization of video conferencing through video compression. Video compression can reduce the transmission size. When the bandwidth remains unchanged, the transmission data packet is small and the probability of problems is smaller. The third method is to use some video optimization methods, such as packet loss retransmission and forward error correction. Packet loss retransmission requires conversion of protocol implementation methods. Video conferencing is mostly transmitted using UDP. UDP is a best-effort transmission protocol that does not perform packet loss retransmission. To achieve packet loss retransmission for video conferencing, TCP protocol conversion is required, or packet loss statistics are performed on UDP. Forward error correction is the generation of redundant codes for data transmission. Even if a certain amount of data packets are lost during transmission, the original message can still be decoded at the receiving end through a fixed decoding method.
[0003] However, the above methods have the following limitations in optimizing video transmission: deploying dedicated lines based on SDWAN limits the location of video conferences and cannot reflect the superiority of SDWAN; video compression will reduce video quality and cannot cope with packet loss scenarios; packet loss retransmission is complex and has poor effects in scenarios with high latency; forward error correction is not convenient for determining data redundancy. In summary, traditional video traffic transmission optimization algorithms have problems such as poor network quality, expensive dedicated line broadband, and low video transmission quality, which leads to poor customer experience. Summary of the invention
[0004] Technical issues solved
[0005] In view of the deficiencies in the prior art, the present invention provides a video transmission optimization method based on SDWAN, which solves the problems of poor customer experience caused by poor network quality, expensive dedicated line broadband and low video transmission quality.
[0006] Technical Solution
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: a video transmission optimization method based on SDWAN, comprising the following steps:
[0008] S1, configure different types of flow control strategies, intelligent routing strategies and link detection strategies;
[0009] S2, send the configuration to the user-side intelligent gateway node, and the controller command configuration interface shares variables with each module process in the gateway node;
[0010] S3, stores the user data packet into Linux user space memory through zero-copy technology;
[0011] S4, traffic type identification is performed on each user data packet. The identified data packet is tagged with an application tag for subsequent module policy matching.
[0012] S5, matches the data packets according to the policies set by the user and selects the routes among multiple links;
[0013] S6, updating the link quality in real time according to the current link status of the local end and the peer end, and then determining the redundancy by the link quality to generate corresponding redundant data packets;
[0014] S7, ensure the transmission priority of video data through the flow control strategy set by the user;
[0015] S8, the intelligent gateway device at the other end receives the video data packet sent by the local end, decodes the data, and then transmits it to the end user.
[0016] Furthermore, the specific process of the route selection in S5 is as follows:
[0017] S51, according to the policy configured by the user from the cloud platform, the five-tuple and application information configured by the user are used as matching conditions, and the application label of each data packet is matched. The data packets that fail to match directly enter the forwarding logic;
[0018] S52, traverse the next hop interface of each policy, and determine whether the next hop link is available according to the current detection status;
[0019] S53, judging the link status of the interface, including judging whether the next-hop device negotiation and the network port startup are both normal. If both are normal, proceed to the next step;
[0020] S54, determining the usage of the outbound interface bandwidth. If the outbound bandwidth reaches the usage threshold, no more traffic is sent to this link.
[0021] S55: The link whose link quality exceeds the minimum link quality requirement set by the user is stopped from use;
[0022] S56, traverse all outbound interfaces, record the currently available outbound interfaces, and call the algorithm selected by the user to perform link selection;
[0023] S57: Select a route according to the algorithm selected by the user, including a priority route selection algorithm and a weight route selection algorithm:
[0024] The priority routing algorithm is to select the link with the highest priority configured by the user from the available links, and when the bandwidth occupancy of the link with the highest priority reaches a threshold, select the suboptimal link;
[0025] The weighted routing algorithm is a random allocation among available links.
[0026] Furthermore, the priority algorithm in S54 is combined with a bandwidth protection function, and after the bandwidth used by the high-priority link exceeds a threshold, subsequent traffic is automatically switched to the low-priority link.
[0027] Furthermore, the redundancy calculation method in S6 is:
[0028] In the first step, the number of forward error correction coded parity packets H=(NK) generated and transmitted on the network is adjusted between a low value Hmin of H and a high value Hmax of H, where N is the total number of packets of this coding block, including source packets and parity packets, and K is the number of blocks of the video source in the video stream, and K is determined according to the desired delay and coding complexity;
[0029] That is, the forward error correction code rate R = K / N = K / (K+H), which is adjusted between the high value of R Rmax = K / (K+Hmin) and the low value of R Rmin = K / (K+Hmax). Different code rates can cope with different link conditions.
[0030] In the second step, the redundancy S=1-R of the forward error correction code is obtained by code rate calculation.
[0031] Furthermore, the specific processing steps of S6 based on the adaptive forward error correction algorithm are:
[0032] S61: extracting the five-tuple information and outgoing interface information of the data packet from the traffic;
[0033] S62: Query the session table according to the quintuple information and the outgoing interface information;
[0034] S63: creating a new session for traffic that has not created a session, and storing the new session using a bihash structure;
[0035] S64: for the current traffic, query the channel link quality, the link quality is stored using a hash structure and is determined by the local device, the peer device and the corresponding link;
[0036] S65: periodically obtain the link packet loss rate and update it to the hash list. When the link packet loss rate is 0, the message is directly forwarded without adding additional redundant messages.
[0037] S66: obtain redundancy according to the link packet loss rate, and infer the code rate of the forward error correction code according to the redundancy;
[0038] S67: For messages that do not require forward error correction, directly send them; for messages that require forward error correction, generate corresponding redundant packets, and then send them together with the original messages;
[0039] S68: The receiving end receives the forward error correction message, needs to decode it according to the rules, and then sends it to the actual user.
[0040] Furthermore, when extracting features from traffic in S61, a hash structure is established, and when a data packet arrives, the data packet is processed immediately after querying the corresponding key-value value.
[0041] Furthermore, the process of obtaining the packet loss rate in S65 is: continuously detecting each peer device in the interconnected environment, and if there are multiple redundant links, detecting each link, and using the Kalman filter model to process the detection data during the link detection process to obtain a more accurate packet loss rate.
[0042] Furthermore, when the redundant messages in S65 are used in SDWAN as a backup of the dedicated line link, there is no need to add redundant messages on the dedicated line link to occupy additional bandwidth.
[0043] Furthermore, the flow control strategy in S7 needs to be set according to the matching rules set by the user to ensure that the data packets requiring forward error correction can be sent first;
[0044] Lower the priority of other messages and set a bandwidth usage cap to prevent bandwidth preemption.
[0045] A video transmission optimization device based on SDWAN, including an intelligent gateway configuration management platform, a controller, and an intelligent gateway dpdk data packet transceiver module:
[0046] Intelligent gateway configuration management platform: used to configure different types of flow control strategies, intelligent routing strategies and link detection strategies;
[0047] Controller: used to send configurations to the user-side intelligent gateway node. The controller commands the configuration interface to share variables with each module process in the gateway node.
[0048] Intelligent gateway dpdk data packet transceiver module: used to store user data packets into Linux user space memory through zero copy technology;
[0049] Application identification module: used to identify the traffic type of each user data packet. The identified data packet will be marked with an application tag for subsequent module policy matching;
[0050] Intelligent routing module: used to match the traffic of data packets according to the policies set by users and select routes among multiple links at the same time;
[0051] Adaptive forward error correction coding module: used to update the link quality in real time according to the current link status of the local end and the peer end, and then determine the redundancy through the link quality to generate corresponding redundant data packets;
[0052] Link detection module: used to continuously detect each peer device in the interconnected environment. If there are multiple redundant links, each link is detected. During the link detection process, the Kalman filter model is used to process the detection data to obtain a more accurate packet loss rate.
[0053] Hierarchical flow control module: used to ensure the transmission priority of video data through the flow control strategy set by the user;
[0054] Forward error correction decoding module: used to decode the video data packets sent by the local end to the intelligent gateway device at the other end and then pass the decoded data to the end user.
[0055] Beneficial Effects
[0056] The present invention has the following beneficial effects:
[0057] (1) The video transmission optimization method based on SDWAN integrates multiple links by combining an intelligent routing module and an adaptive forward error correction module, fully utilizing the SDWAN interconnection bandwidth, avoiding the use of expensive dedicated line broadband by traditional optimization technologies, giving priority to using links with high link quality, and performing bandwidth detection. When the bandwidth exceeds the limit, the backup link continues to be used for data transmission without using a compression algorithm, thus solving the problem of poor customer experience caused by poor network quality, expensive dedicated line broadband, and low video transmission quality.
[0058] (2) The video transmission optimization method based on SDWAN does not change the original terminal function, does not modify the user's network topology, and does not add additional equipment. It only combines the priority routing algorithm with the bandwidth protection function. After the bandwidth of the high-priority link exceeds the threshold, the subsequent traffic is switched to the low-priority link, making full use of the redundant bandwidth of SDWAN. The optimization function of video transmission in the SDWAN network can be realized. At the same time, the weight algorithm is used to share the load on multiple links, fully ensuring the quality of video transmission. The cost is very low and it is easy to use.
[0059] (3) The SDWAN-based video transmission optimization method adjusts the forward error correction redundancy according to the link quality. For links with good link quality, the forward error correction function is not used to reduce bandwidth utilization. For links with poor link quality, the forward error correction redundancy is determined according to the packet loss rate, thereby ensuring the quality of video transmission even on low-quality links.
[0060] (4) The SDWAN-based video transmission optimization method configures the video transmission traffic forwarding rate, forwarding priority and other flow control strategies through the intelligent gateway configuration management platform. The configuration is sent to the hierarchical flow control module through the controller. When the algorithm identifies a flow as video transmission traffic, the hierarchical flow control module configures its forwarding priority to achieve flow control of video traffic and ensure network service quality.
[0061] (5) The SDWAN-based video transmission optimization method realizes end-to-end detection through a link detection module. It can set the redundancy of forward error correction between different devices or even between different exports of the same device, which greatly improves the transmission performance. Link detection does not depend on the transmission message. It can add redundant messages before packet loss occurs, thereby improving the user experience.
[0062] 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
[0063] Figure 1 It is a flow chart of the video transmission optimization method based on SDWAN of the present invention;
[0064] Figure 2 It is a system structure diagram of the video transmission optimization device based on SDWAN of the present invention;
[0065] Figure 3 This is a processing flow chart of the intelligent routing module of the present invention;
[0066] Figure 4 is a processing flow chart of the adaptive forward error correction algorithm of the present invention;
[0067] Figure 5A schematic diagram of a forward error correction algorithm provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0069] In the description of the present invention, it should be understood that the terms "opening", "upper", "lower", "thickness", "top", "middle", "length", "inside", "all around" and the like indicating orientation or positional relationship are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the components or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0070] See also Figure 1-Figure 5 ,The embodiment of the present invention provides a technical solution: a video transmission optimization method based on SDWAN, such as Figure 1 , including the following steps:
[0071] S1, configure different types of flow control strategies, intelligent routing strategies and link detection strategies;
[0072] S2, send the configuration to the user-side intelligent gateway node, and the controller command configuration interface shares variables with each module process in the gateway node;
[0073] S3, stores the user data packet into Linux user space memory through zero-copy technology;
[0074] S4, traffic type identification is performed on each user data packet. The identified data packet is tagged with an application tag for subsequent module policy matching.
[0075] S5, matches the data packets according to the policies set by the user and selects the routes among multiple links;
[0076] S6, updating the link quality in real time according to the current link status of the local end and the peer end, and then determining the redundancy by the link quality to generate corresponding redundant data packets;
[0077] S7, ensure the transmission priority of video data through the flow control strategy set by the user;
[0078] S8, the intelligent gateway device at the other end receives the video data packet sent by the local end, decodes the data, and then transmits it to the end user.
[0079] Specifically, Figure 3 ,The specific process of route selection in S5 is as follows:
[0080] S51, according to the policy configured by the user from the cloud platform, the five-tuple and application information configured by the user are used as matching conditions, and the application label of each data packet is matched. The data packets that fail to match directly enter the forwarding logic;
[0081] S52, traverse the next hop interface of each policy, and determine whether the next hop link is available according to the current detection status;
[0082] S53, judging the link status of the interface, including judging whether the next-hop device negotiation and the network port startup are both normal. If both are normal, proceed to the next step;
[0083] S54, determining the usage of the outbound interface bandwidth, if the outbound bandwidth reaches the usage threshold, no longer sending traffic to this link;
[0084] S55: The link whose link quality exceeds the minimum link quality requirement set by the user is stopped from use;
[0085] S56, traverse all outbound interfaces, record the currently available outbound interfaces, and call the algorithm selected by the user to perform link selection;
[0086] S57: Select a route according to the algorithm selected by the user, including a priority route selection algorithm and a weight route selection algorithm:
[0087] The priority routing algorithm selects the link with the highest priority configured by the user from the available links. When the bandwidth usage of the link with the highest priority reaches the threshold, the suboptimal link is selected.
[0088] The weighted routing algorithm is a random allocation among available links.
[0089] In this implementation scheme, the user's multi-link exports have a natural priority attribute. The dedicated line access has the best link quality, followed by the SDWAN link built based on the Internet link. The quality of the underlying Internet link will affect the quality of the SDWAN link. The quality of the fixed Internet link is higher than that of the 4G / 5G link. The priority relationship of the link is determined by the user's access quality, which can be reflected in the priority of the intelligent routing. Using the priority routing algorithm, the user gives priority to the link with the best quality.
[0090] All links have bandwidth limitations. The better the quality of the link, the more expensive it is and the smaller the bandwidth. When the bandwidth occupancy of a high-quality link reaches the threshold, intelligent routing can forward the video transmission traffic through a low-quality link. The overall bandwidth can be expanded through a low-quality link, but the packet loss and delay of a low-quality link will be more serious. In order to ensure the quality of video transmission, it is necessary to obtain redundant data through an adaptive forward error correction algorithm.
[0091] Specifically, the priority algorithm in S54 is combined with the bandwidth protection function. After the bandwidth used by the high-priority link exceeds the threshold, the subsequent traffic is automatically switched to the low-priority link.
[0092] In this implementation scheme, the user's outbound interface bandwidth is limited. When the user traffic exceeds the usage limit, even if the traffic is sent from the device, the upper-level device will lose packets. Therefore, when the outbound bandwidth reaches the usage threshold, no traffic will be sent to this link.
[0093] Specifically, the calculation method of redundancy in S6 is:
[0094] In the first step, the number of forward error correction coded parity packets H=(NK) generated and transmitted on the network is adjusted between Hmin and Hmax, where N is the total number of packets of this coding block, including source packets and parity packets, and K is the number of blocks of the video source in the video stream, and K is determined according to the desired delay and coding complexity;
[0095] That is, the forward error correction code rate R = K / N = K / (K+H) is adjusted between Rmax = K / (K+Hmin) and Rmin = K / (K+Hmax), and different code rates can cope with different link conditions;
[0096] In the second step, the redundancy S=1-R of the forward error correction code is obtained by code rate calculation.
[0097] Specifically, Figure 4 , the specific processing steps of S6 based on the adaptive forward error correction algorithm are:
[0098] S61: extracting the five-tuple information and outgoing interface information of the data packet from the traffic;
[0099] S62: Query the session table according to the quintuple information and the outgoing interface information;
[0100] S63: Create a new session for traffic that has not created a session, and store the new session using a bihash structure;
[0101] S64: for the current traffic, query the channel link quality, the link quality is stored in a hash structure and is determined by the local device, the peer device and the corresponding link;
[0102] S65: periodically obtain the link packet loss rate and update it to the hash list. When the link packet loss rate is 0, the message is directly forwarded without adding additional redundant messages.
[0103] S66: obtain redundancy according to the link packet loss rate, and infer the code rate of the forward error correction code according to the redundancy;
[0104] S67: For messages that do not require forward error correction, directly send them; for messages that require forward error correction, generate corresponding redundant packets, and then send them together with the original messages;
[0105] S68: The receiving end receives the forward error correction message, needs to decode it according to the rules, and then sends it to the actual user.
[0106] In this embodiment, the capacity and overhead of forward error correction coding are adaptively changed according to the link quality to achieve efficient and robust video transmission over the network;
[0107] In S62, the session table can speed up the processing flow. The data packets of the same session have the same processing flow, and the specific processing flow is distinguished according to the drawn marks.
[0108] Specifically, when extracting features from traffic in S61, a hash structure is established, and when a data packet arrives, the corresponding key-value value is queried and the data packet is processed immediately.
[0109] In this implementation scheme, the key is the IP quintuple and outbound interface of the flow, and the value is the storage location of the flow. When a data packet arrives, the corresponding key-value value is queried and the data packet is processed immediately, thereby improving the message processing efficiency.
[0110] Specifically, the process of obtaining the packet loss rate in S65 is: continuously detecting each peer device in the interconnected environment. If there are multiple redundant links, each link is detected. During the link detection process, the Kalman filter model is used to process the detection data to obtain a more accurate packet loss rate.
[0111] In this implementation scheme, in order to prevent frequent updates of the forward error correction code rate, the link packet loss is not updated in real time in S65, so a timer is used to periodically detect and obtain the packet loss rate from the link and update it in the hash list.
[0112] Specifically, when the redundant messages in S65 are used in SDWAN as a backup of the dedicated line link, there is no need to add redundant messages on the dedicated line link to occupy additional bandwidth.
[0113] In this implementation, the redundancy is adjusted in a timely manner according to different link qualities to ensure the quality of video transmission in links of different qualities.
[0114] Specifically, the flow control strategy in S7 needs to be based on the matching rules set by the user to ensure that the data packets that require forward error correction can be sent first;
[0115] Lower the priority of other messages and set a bandwidth usage cap to prevent bandwidth preemption.
[0116] In this implementation scheme, the specific matching rules are the same as the matching conditions of forward error correction, and the existing bandwidth is fully utilized to ensure the priority transmission of high-value traffic.
[0117] A video transmission optimization device based on SDWAN, such as Figure 2 , including intelligent gateway configuration management platform, controller, intelligent gateway dpdk data packet transceiver module:
[0118] Intelligent gateway configuration management platform: used to configure different types of flow control strategies, intelligent routing strategies and link detection strategies;
[0119] Controller: used to send configurations to the user-side intelligent gateway node. The controller commands the configuration interface to share variables with each module process in the gateway node.
[0120] Intelligent gateway dpdk data packet transceiver module: used to store user data packets into Linux user space memory through zero copy technology;
[0121] Application identification module: used to identify the traffic type of each user data packet. The identified data packet will be marked with an application tag for subsequent module policy matching;
[0122] Intelligent routing module: used to match the traffic of data packets according to the policies set by users and select routes among multiple links at the same time;
[0123] Adaptive forward error correction coding module: used to update the link quality in real time according to the current link status of the local end and the peer end, and then determine the redundancy through the link quality to generate corresponding redundant data packets;
[0124] Link detection module: used to continuously detect each peer device in the interconnected environment. If there are multiple redundant links, each link is detected. During the link detection process, the Kalman filter model is used to process the detection data to obtain a more accurate packet loss rate.
[0125] Hierarchical flow control module: used to ensure the transmission priority of video data through the flow control strategy set by the user;
[0126] Forward error correction decoding module: used to decode the video data packets sent by the local end to the intelligent gateway device at the other end and then pass the decoded data to the end user.
[0127] In this implementation scheme, the intelligent gateway configuration management platform is used to configure different types of flow control strategies, intelligent routing strategies and link detection strategies. The configuration is sent to the user-side intelligent gateway node through the controller. The controller commands the configuration interface and the shared variables of each module process in the gateway node; the user's cloud access and interconnection traffic data packets will be connected to the user-side gateway node. The gateway node first uses the intelligent gateway dpdk data packet transceiver module to store the user data packet in the Linux user space memory through zero copy technology; the application identification module will identify the traffic type of each user data packet, and the identified data packet will be marked with an application tag for subsequent module strategy matching; when the data packet arrives at the intelligent routing module, it will match the traffic according to the strategy set by the user, and select the route in multiple links at the same time; the adaptive forward error correction coding module will update the link quality in real time according to the current link status of the local and opposite ends, and then determine the redundancy through the link quality to generate the corresponding redundant data packet; the hierarchical flow control module ensures the transmission priority of the video data through the flow control strategy set by the user. After the opposite end intelligent gateway device receives the video data packet sent by the local end, it will enter the forward error correction decoding module, and the decoded data will be passed to the end user.
[0128] When using, we take 10% redundancy as an example to illustrate the system's ability to resist various packet loss rates. When you choose to drop 1 packet for every 10 packets (packet loss rate 10%), at most 1 packet will be dropped in a GROUP. 10% redundancy is enough to resist this packet loss rate. The sequence numbers of all received media packets remain continuous, and the packet loss rate drops from 10% to 0%. When you choose to drop 1 packet for every 5 packets (packet loss rate 20%), the packet loss situation is as follows: Figure 5 shown.
[0129] For the second group, a total of two packets were lost, including media packets 9 and 14. Because the number of received media packets is 7 plus the number of received redundant packets is 1, the total number is less than the total number of media packets (9), so the forward error correction decoding at the receiving end fails and cannot be recovered. In order to ensure the recovery effect, the redundancy must be greater than the packet loss rate.
[0130] The present invention can be deployed in each main gateway node in the cloud network, and can be particularly applied to the SDWAN edge-side intelligent gateway access node. Under the framework of the SDWAN edge-side intelligent gateway node, the present invention can be deployed before the interface sends a packet. When a user uses the SDWAN edge node to enter the cloud or interconnect, the adaptive forward error correction method and system proposed in the present invention can be used to optimize the transmission of the video traffic therein. By combining intelligent routing and hierarchical flow control functions, the redundant bandwidth of SDWAN can be fully utilized to improve the network service quality without reducing the transmission quality, thereby improving user satisfaction.
[0131] In summary, the present invention integrates multiple links through the intelligent routing module combined with the adaptive forward error correction module, fully utilizes the redundant bandwidth of SDWAN, adjusts the redundancy in time according to different link qualities, gives priority to links with high link quality, and performs end-to-end broadband detection through the link detection module. When the bandwidth exceeds the limit, the backup data link continues to be used for data transmission, fully ensuring the quality of video transmission, reducing costs, and improving transmission stability.
[0132] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0133] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A video transmission optimization method based on SDWAN, characterized in that: The following steps are involved: S1, configure different types of flow control strategies, intelligent routing strategies and link detection strategies; S2, send the configuration to the user-side intelligent gateway node, and the controller command configuration interface shares variables with each module process in the gateway node; S3, stores the user data packet into Linux user space memory through zero-copy technology; S4, traffic type identification is performed on each user data packet. The identified data packet is tagged with an application tag for subsequent module policy matching. S5, matches the data packets according to the policies set by the user and selects the routes among multiple links; S6, updating the link quality in real time according to the current link status of the local end and the peer end, and then determining the redundancy by the link quality to generate corresponding redundant data packets; S7, ensure the transmission priority of video data through the flow control strategy set by the user; S8, the intelligent gateway device at the other end receives the video data packet sent by the local end, decodes the data, and then transmits it to the end user; The specific process of route selection in S5 is as follows: S51, according to the policy configured by the user from the cloud platform, the five-tuple and application information configured by the user are used as matching conditions, and the application label of each data packet is matched. The data packets that fail to match directly enter the forwarding logic; S52, traverse the next hop interface of each policy, and determine whether the next hop link is available according to the current detection status; S53, judging the link status of the interface, including judging whether the next-hop device negotiation and the network port startup are both normal. If both are normal, proceed to the next step; S54, determining the usage of the outbound interface bandwidth, if the outbound bandwidth reaches the usage threshold, no longer sending traffic to this link; S55: The link whose link quality exceeds the minimum link quality requirement set by the user is stopped from use; S56, traverse all outbound interfaces, record the currently available outbound interfaces, and call the algorithm selected by the user to perform link selection; S57: Select a route according to the algorithm selected by the user, including a priority route selection algorithm and a weight route selection algorithm: The priority routing algorithm is to select the link with the highest priority configured by the user from the available links, and when the bandwidth occupancy of the link with the highest priority reaches a threshold, select the suboptimal link; The weighted routing algorithm is a random allocation among available links; The specific processing steps of S6 include: S61: extracting the five-tuple information and outgoing interface information of the data packet from the traffic; S62: Query the session table according to the quintuple information and the outgoing interface information; S63: creating a new session for traffic that has not created a session, and storing the new session using a bihash structure; S64: for the current traffic, query the channel link quality, the link quality is stored using a hash structure and is determined by the local device, the peer device and the corresponding link; S65: periodically obtain the link packet loss rate and update it to the hash list. When the link packet loss rate is 0, the message is directly forwarded without adding additional redundant messages. S66: obtain redundancy according to the link packet loss rate, and infer the code rate of the forward error correction code according to the redundancy; S67: For messages that do not require forward error correction, directly send them; for messages that require forward error correction, generate corresponding redundant packets, and then send them together with the original messages; S68: The receiving end receives the forward error correction message, needs to decode it according to the rules, and then sends it to the actual user; When extracting features from traffic in S61, a hash structure is established. When a data packet arrives, the corresponding key-value value is queried and the data packet is processed immediately.
2. The method for optimizing video transmission based on SDWAN according to claim 1, characterized in that: In S54, after the bandwidth used by the high-priority link exceeds a threshold, subsequent traffic is automatically switched to the low-priority link.
3. The video transmission optimization method based on SDWAN according to claim 1, characterized in that: The calculation method of the redundancy in S6 is: In the first step, the number of forward error correction coded parity packets H=(NK) generated and transmitted on the network is adjusted between a low value Hmin of H and a high value Hmax of H, where N is the total number of packets of this coding block, including source packets and parity packets, and K is the number of blocks of the video source in the video stream, and K is determined according to the desired delay and coding complexity; That is, the forward error correction code rate R = K / N = K / (K+H), which is adjusted between the high value of R Rmax = K / (K+Hmin) and the low value of R Rmin = K / (K+Hmax). Different code rates can cope with different link conditions. The second step is to obtain the redundancy S=1-R of the forward error correction code through code rate calculation.
4. The method for optimizing video transmission based on SDWAN according to claim 1, characterized in that: The process of obtaining the packet loss rate in S65 is: continuously detecting each peer device in the interconnected environment. If there are multiple redundant links, each link is detected. During the link detection process, the Kalman filter model is used to process the detection data to obtain a more accurate packet loss rate.
5. The method for optimizing video transmission based on SDWAN according to claim 1, characterized in that: When the redundant messages in S65 are used in SDWAN as a backup of the dedicated line link, there is no need to add redundant messages to occupy additional bandwidth on the dedicated line link.
6. The video transmission optimization method based on SDWAN according to claim 1, characterized in that: The flow control strategy in S7 needs to be set according to the matching rules set by the user to ensure that the data packets requiring forward error correction can be sent first; Lower the priority of other messages and set a bandwidth usage cap to prevent bandwidth preemption.
7. A video transmission optimization device based on SDWAN, characterized in that: Including intelligent gateway configuration management platform, controller, intelligent gateway dpdk data packet transceiver module: Intelligent gateway configuration management platform: used to configure different types of flow control strategies, intelligent routing strategies and link detection strategies; Controller: used to send configurations to the user-side intelligent gateway node. The controller commands the configuration interface to share variables with each module process in the gateway node. Intelligent gateway dpdk data packet transceiver module: used to store user data packets into Linux user space memory through zero copy technology; Application identification module: used to identify the traffic type of each user data packet. The identified data packet will be marked with an application tag for subsequent module policy matching; Intelligent routing module: used to match the traffic of data packets according to the policies set by users and select routes among multiple links at the same time; Adaptive forward error correction coding module: used to update the link quality in real time according to the current link status of the local end and the peer end, and then determine the redundancy through the link quality to generate corresponding redundant data packets; Link detection module: used to continuously detect each peer device in the interconnected environment. If there are multiple redundant links, each link is detected. During the link detection process, the Kalman filter model is used to process the detection data to obtain a more accurate packet loss rate. Hierarchical flow control module: used to ensure the transmission priority of video data through the flow control strategy set by the user; Forward error correction decoding module: used for decoding the video data packets sent by the local end received by the intelligent gateway device at the other end and then passing the data to the end user; The specific process of the route selection is as follows: S51, according to the policy configured by the user from the cloud platform, the five-tuple and application information configured by the user are used as matching conditions, and the application label of each data packet is matched. The data packets that fail to match directly enter the forwarding logic; S52, traverse the next hop interface of each policy, and determine whether the next hop link is available according to the current detection status; S53, judging the link status of the interface, including judging whether the next-hop device negotiation and the network port startup are both normal. If both are normal, proceed to the next step; S54, determining the usage of the outbound interface bandwidth, if the outbound bandwidth reaches the usage threshold, no longer sending traffic to this link; S55: The link whose link quality exceeds the minimum link quality requirement set by the user is stopped from use; S56, traverse all outbound interfaces, record the currently available outbound interfaces, and call the algorithm selected by the user to perform link selection; S57: Select a route according to the algorithm selected by the user, including a priority route selection algorithm and a weight route selection algorithm: The priority routing algorithm is to select the link with the highest priority configured by the user from the available links, and when the bandwidth occupancy of the link with the highest priority reaches a threshold, select the suboptimal link; The weighted routing algorithm is a random allocation among available links; The specific processing steps of S6 include: S61: extracting the five-tuple information and outgoing interface information of the data packet from the traffic; S62: Query the session table according to the quintuple information and the outgoing interface information; S63: creating a new session for traffic that has not created a session, and storing the new session using a bihash structure; S64: for the current traffic, query the channel link quality, the link quality is stored using a hash structure and is determined by the local device, the peer device and the corresponding link; S65: periodically obtain the link packet loss rate and update it to the hash list. When the link packet loss rate is 0, the message is directly forwarded without adding additional redundant messages. S66: obtain redundancy according to the link packet loss rate, and infer the code rate of the forward error correction code according to the redundancy; S67: For messages that do not require forward error correction, directly send them; for messages that require forward error correction, generate corresponding redundant packets, and then send them together with the original messages; S68: The receiving end receives the forward error correction message, needs to decode it according to the rules, and then sends it to the actual user; When extracting features from traffic in S61, a hash structure is established. When a data packet arrives, the corresponding key-value value is queried and the data packet is processed immediately.
