Link load balancing method, device, electronic device and storage medium based on SDWAN
Through the collaborative work of intelligent routing functions and POP devices, SDWAN link load balancing is achieved, which solves the load sharing and link quality requirements when multiple outbound interfaces have different bandwidths, improves the transmission stability and user experience of applications, and reduces cost.
Patent Information
- Application Number
- CN202211733566.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-12-30
AI Technical Summary
Existing SDWAN load balancing technology cannot effectively meet the load sharing needs of multiple outbound interfaces with different bandwidths, and cannot meet the high requirements for link quality of applications such as video conferencing, especially in terms of packet loss, delay and jitter. .
An SDWAN link load balancing solution based on intelligent routing function is designed. Through the collaborative work of intelligent gateways and POP devices, identity information identification of users and applications is realized, available outbound interfaces are filtered, and loads are carried out according to bandwidth and quality requirements. Balancing ensures that data is transmitted through the available outbound interface with the highest priority to achieve flow-by-flow load balancing.
This solution not only achieves load balancing of multiple outgoing interfaces, meets the load balancing requirements of uplink and downlinks, improves the transmission stability and user experience of applications, reduces usage costs, and through link quality detection and virtual channels Built to ensure a high quality transfer.
Smart Images

Figure CN116233006B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a link load balancing method, device, electronic device and storage medium based on SDWAN. Background Art
[0002] With the rapid development of SDWAN (Software Defined Wide Area Network), more and more enterprises choose to use SDWAN to build their own enterprise intranet. SDWAN can easily realize the cloud access of enterprise applications and the interconnection of branches. Enterprise users in different regions can use the SDWAN network to achieve remote interaction, for example, remote interaction through video conferencing through the SDWAN network. However, with the continuous increase of enterprise applications, in the process of realizing various businesses, the amount of data that needs to be transmitted is increasing, which at least causes the following problems:
[0003] On the one hand, there is a demand for bandwidth expansion. The site of the corporate headquarters needs to use multiple outbound interfaces to meet the large bandwidth needs of users. On the other hand, there is a demand for link quality. For example, applications such as video conferencing have high requirements for packet loss, latency, and jitter. Among them, in the scenario of multiple outbound interfaces, it is necessary to ensure that business data is transmitted on a link that meets the needs of the application.
[0004] The inventor found that load balancing the user's multi-outlet traffic through the SDWAN system is crucial for users to accept SDWAN products. The current mainstream networking mode of SDWAN is the mode of terminal devices plus core devices. Devices are uniformly managed through controllers and connected to core devices.
[0005] The current load balancing methods mainly include:
[0006] One way: By establishing multiple BGP sessions between the terminal device and the core device, the load balancing function of unequal-cost lines can be achieved.
[0007] Another way: Use the extended attributes of BGP to establish a two-dimensional border gateway protocol connection between two devices. When performing load balancing, use the source address to split the data traffic and balance the link utilization.
[0008] However, the above two methods of load balancing SDWAN traffic have defects:
[0009] For example, in one of the above methods, the BGP multi-session function is used to achieve load balancing, and the bandwidth limit of the transmission line for creating multiple session connections is reasonably allocated to multiple session connections for data transmission, so that based on the equal-cost load balancing rule, when data is transmitted through all session connections, the data traffic to be transmitted can be evenly distributed on all session connections for data transmission, thereby achieving load balancing of non-equal-cost lines. However, the above method is to achieve traffic distribution based on bandwidth, and cannot achieve accurate load balancing function.
[0010] For another example, in the above-mentioned another method, user-based load sharing can be achieved based on the routing of source and destination addresses. The extended protocol requires modification of the BGP module and the underlying forwarding module, which is complex to implement and more troublesome to use, and cannot meet the requirements of applications such as video conferencing for packet loss, delay, and jitter. Summary of the invention
[0011] In view of the defects of the current SDWAN load balancing technology, the goal of the present invention is to design a link load balancing solution based on SDWAN based on the intelligent routing function. The solution of the present application can not only solve the load sharing problem when the bandwidth of different output interfaces is different, but also meet the quality requirements of different applications for transmission links. In the load sharing scenario, not only the load balancing requirements of the uplink are considered, but also the load balancing requirements of the downlink can be met at the same time, so that the business data of the same connection can be transmitted through the same transmission link, the transmission stability of the business data of the application is improved, and the user experience is guaranteed. The solution of the present application can simultaneously meet the bandwidth load requirements and the load requirements of the application, improve the transmission quality of the application, reduce the user's usage cost, and improve the SDWAN network service quality for users.
[0012] For example, the present application illustrates a link load balancing method, device, electronic device and storage medium based on SDWAN.
[0013] In a first aspect, the present application shows a link load balancing method based on SDWAN, which is applied to a smart gateway on the user side, and the method includes:
[0014] receiving a data packet sent by a user device of a user based on an application;
[0015] Determining the identity information of the user and the identification information of the application according to the data packet;
[0016] According to the identity information and the identification information, determining at least two outbound interfaces suitable for the user and the application from among a plurality of outbound interfaces of the intelligent gateway for interfacing with a POP device in a software-defined wide area network SDWAN;
[0017] Screening an available output interface from the at least two output interfaces, wherein the communication link based on the available output interface between the intelligent gateway and the POP device is unblocked, the bandwidth of the communication link based on the available output interface between the intelligent gateway and the POP device does not exceed a preset threshold, and the communication quality of the communication link based on the available output interface between the intelligent gateway and the POP device meets preset requirements;
[0018] The data packet is forwarded to the POP device via a communication link between the intelligent gateway and the POP device based on an available output interface.
[0019] In an optional implementation, forwarding the data packet to the POP device through a communication link based on an available outbound interface between the intelligent gateway and the POP device includes:
[0020] When there are more than two available outbound interfaces, obtaining the priority order of each available outbound interface set in advance by the user;
[0021] The available output interface with the highest priority is screened from more than two available output interfaces, and the data packet is forwarded to the POP device through a communication link between the intelligent gateway and the POP device based on the available output interface with the highest priority.
[0022] In the second aspect, the present application shows a link load balancing method based on SDWAN, which is applied to a POP device in SDWAN, and the method includes:
[0023] receiving a data packet of an application, wherein the data packet is used to be sent to a user equipment of a user via an intelligent gateway;
[0024] Determining the identity information of the user according to the data packet;
[0025] According to the identity information, searching the POP device for a session table applicable to the user, wherein the session table records an input interface, wherein the input interface includes an input interface based on which the POP device receives historical data packets sent by the intelligent gateway in a historical process; the historical data packets are sent by the user device of the user to the intelligent gateway based on the application;
[0026] When a session table suitable for the user is found in the POP device, the data packet is forwarded to the intelligent gateway via a communication link based on the input interface between the POP device and the intelligent gateway.
[0027] In an optional implementation, the method further includes:
[0028] In the historical process, receiving a historical data packet sent by the user equipment of the user based on the application;
[0029] Determining the identity information of the user according to the historical data packet;
[0030] According to the identity information, searching in the POP device whether there is a session table applicable to the user;
[0031] When a session table applicable to the user is found in the POP device, determining whether the input interface based on which the POP device receives the historical data packet is the same as the input interface recorded in the session table;
[0032] In the case that the input interface based on which the POP device receives the historical data packet is different from the input interface recorded in the session table, the input interface recorded in the session table is changed to the input interface based on which the POP device receives the historical data packet.
[0033] In an optional implementation, the method further includes:
[0034] In the case that no session table suitable for the user is found in the POP device, a session table suitable for the user is created, and the inbound interface based on which the POP device receives the historical data packet is recorded in the created session table.
[0035] In an optional implementation, forwarding the data packet to the intelligent gateway through the communication link based on the inbound interface between the POP device and the intelligent gateway includes:
[0036] According to the identity information, searching the POP device for a recorded central processing unit (CPU) core suitable for the user;
[0037] The data packet is forwarded to the intelligent gateway using the CPU core found in the POP device through the communication link between the POP device and the intelligent gateway based on the input interface.
[0038] In a third aspect, the present application shows a link load balancing device based on SDWAN, which is applied to a smart gateway on the user side, and the device includes:
[0039] A first receiving unit, configured to receive a data packet sent by a user equipment based on an application;
[0040] A first determining unit, configured to determine the identity information of the user and the identification information of the application according to the data packet;
[0041] A second determination unit is used to determine, according to the identity information and the identification information, at least two outbound interfaces suitable for the user and the application from a plurality of outbound interfaces of the intelligent gateway for docking with a POP device in a software defined wide area network SDWAN;
[0042] A screening unit, configured to screen an available output interface from the at least two output interfaces, wherein a communication link based on the available output interface between the intelligent gateway and the POP device is unblocked, a bandwidth of a communication link based on the available output interface between the intelligent gateway and the POP device does not exceed a preset threshold, and a communication quality of a communication link based on the available output interface between the intelligent gateway and the POP device meets a preset requirement;
[0043] The first forwarding unit is used to forward the data packet to the POP device through a communication link based on an available output interface between the intelligent gateway and the POP device.
[0044] In an optional implementation, the first forwarding unit includes:
[0045] an acquisition subunit, configured to acquire, when there are more than two available outbound interfaces, the priority order of each available outbound interface set in advance by the user;
[0046] The first forwarding subunit is used to screen the available output interface with the highest priority among more than two available output interfaces, and forward the data packet to the POP device through the communication link between the intelligent gateway and the POP device based on the available output interface with the highest priority.
[0047] In a fourth aspect, the present application shows a link load balancing device based on SDWAN, which is applied to a POP device in SDWAN, and the device includes:
[0048] A second receiving unit, configured to receive a data packet of an application, wherein the data packet is used to be sent to a user equipment of a user via an intelligent gateway;
[0049] A third determining unit, configured to determine the identity information of the user according to the data packet;
[0050] A first search unit is used to search for a session table applicable to the user in the POP device according to the identity information, wherein the session table records an input interface, and the input interface includes an input interface based on which the POP device receives historical data packets sent by the intelligent gateway in a historical process; the historical data packets are sent by the user device of the user to the intelligent gateway based on the application;
[0051] The second forwarding unit is used to forward the data packet to the intelligent gateway through the communication link based on the input interface between the POP device and the intelligent gateway when a session table suitable for the user is found in the POP device.
[0052] In an optional implementation, the device further includes:
[0053] A third receiving unit, configured to receive, during a historical process, a historical data packet sent by a user equipment of the user based on the application;
[0054] A fourth determining unit, configured to determine the identity information of the user according to the historical data packet;
[0055] A second search unit, configured to search, based on the identity information, whether there is a session table applicable to the user in the POP device;
[0056] a fifth determining unit, configured to determine, when a session table applicable to the user is found in the POP device, whether an input interface based on which the POP device receives the historical data packet is the same as an input interface recorded in the session table;
[0057] A changing unit is used to change the input interface recorded in the session table to the input interface based on which the POP device receives the historical data packet when the input interface based on which the POP device receives the historical data packet is different from the input interface recorded in the session table.
[0058] In an optional implementation, the device further includes:
[0059] a creating unit, configured to create a session table applicable to the user if no session table applicable to the user is found in the POP device;
[0060] The recording unit is used to record in the created session table the input interface based on which the POP device receives the historical data packet.
[0061] In an optional implementation, the second forwarding unit includes:
[0062] A search subunit, used to search the POP device for a recorded central processing unit CPU core suitable for the user according to the identity information;
[0063] The second forwarding subunit is used to use the CPU core found in the POP device to forward the data packet to the intelligent gateway through the communication link based on the input interface between the POP device and the intelligent gateway.
[0064] In a fifth aspect, the present application illustrates an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method described in any of the above aspects.
[0065] In a sixth aspect, the present application illustrates a non-temporary computer-readable storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute a method as described in any of the above aspects.
[0066] In a seventh aspect, the present application illustrates a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in any of the above aspects.
[0067] The technical solution provided by this application may have the following beneficial effects:
[0068] The link load balancing solution based on SDWAN in this application does not need to change the terminal function, does not need to modify the user's networking topology, and does not need to add additional equipment to achieve the load balancing effect of SDWAN multiple output interfaces. The solution of this application uses the intelligent routing function of the intelligent gateway and the downlink load balancing function of the POP device to achieve flow-by-flow load balancing. Both are simple to configure, do not require the participation of the controller during operation, and have good stability.
[0069] This application uses the POP downlink load balancing function to record the session for each data flow separately. The recorded session bypasses the traditional routing function and directly performs routing forwarding. The flow-by-flow load function can be implemented on the core network equipment, and the same load balancing effect can be guaranteed on both the uplink and the downlink. During the session processing, the forwarding core is redistributed to ensure that the session of the same user is processed on the same CPU, and lock-free resource access is achieved in multi-core forwarding. This lock-free structure can ensure the throughput capacity of the core device.
[0070] This application combines the intelligent routing function of the intelligent gateway with the downlink load balancing function of the POP device to build a virtual transmission channel on a stateless forwarding network. Based on the link quality detection and the provided virtual channel, end-to-end multi-channel link quality detection can be achieved. Users can make better routing configurations based on the link quality of different channels and the link quality requirements of the application. This solution not only provides a flow-by-flow load effect, but also can achieve better routing effects through the intelligent routing function, ensuring high-quality transmission of the user's core applications.
[0071] The solution of this application includes a variety of anomaly detection to ensure the optimal effect of traffic. For example, link disconnection detection, bandwidth detection and link quality detection functions are used during the transmission process. These detections will be combined with the intelligent routing of the smart gateway and the downlink load balancing function of the POP device to participate in the routing. When the link is disconnected, the bandwidth exceeds the limit or the link quality decreases, the user's traffic will be switched to other links in time without the participation of other people or other devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 This is a structural diagram of a link load balancing system based on SDWAN in the present application.
[0073] Figure 2 This is a step flow chart of a link load balancing method based on SDWAN of the present application.
[0074] Figure 3 This is a step flow chart of a link load balancing method based on SDWAN of the present application.
[0075] Figure 4 This is a structural diagram of an SDWAN of the present application.
[0076] Figure 5 This is a step flow chart of a link load balancing method based on SDWAN of the present application.
[0077] Figure 6 This is a step flow chart of a link load balancing method based on SDWAN of the present application.
[0078] Figure 7 This is a structural block diagram of a link load balancing device based on SDWAN in the present application.
[0079] Figure 8 This is a structural block diagram of a link load balancing device based on SDWAN in the present application.
[0080] Fig. 9 It is a block diagram of an electronic device of the present application.
[0081] Fig.10 It is a block diagram of an electronic device of the present application. DETAILED DESCRIPTION
[0082] 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 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.
[0083] See also Figure 1 , showing a structural diagram of a link load balancing system based on SDWAN of the present application. The SDWAN configuration management platform is used to configure different types of intelligent routing strategies, link detection strategies, bandwidth detection strategies and link quality detection strategies, and the configuration is sent to the intelligent gateway on the user side through the controller.
[0084] The SDWAN configuration management platform will also send POP downstream load balancing strategy and link detection strategy to the POP device.
[0085] The controller command configuration interface shares variables with the intelligent gateway and each module process in the POP device.
[0086] The user's cloud access and Internet traffic data packets will be connected to the intelligent gateway on the user side. The intelligent gateway first uses the data transceiver module under the data plane development kit (dpdk) framework to store the user's data packets into the Linux user space memory through zero-copy technology.
[0087] The application identification module will identify the traffic type of the user's data packets. The identified data packets will be tagged with the application program for subsequent module policy matching.
[0088] When a data packet reaches the intelligent routing module, it can match the traffic according to the policy set by the user and select a route among multiple links at the same time.
[0089] The link detection module detects the link connectivity from the smart gateway to the POP device and returns the detection result to the smart routing module.
[0090] The bandwidth detection module detects the usage of the user's upstream and downstream bandwidths and returns the detection results to the intelligent routing module.
[0091] The link quality detection module detects the end-to-end link quality and returns the detection result to the intelligent routing module.
[0092] The intelligent gateway and POP devices are interconnected through multiple links. The POP device uses the data transceiver module under the data plane development kit (dpdk) framework to store the user's data packet into the Linux user space memory through zero-copy technology.
[0093] The POP downstream load balancing module implements the flow-by-flow routing function. For the same traffic, it can determine which interface the return traffic comes from and which interface the return traffic goes back from.
[0094] The link detection module detects the on / off information of the link between the intelligent gateway and the POP device, and feeds the result back to the POP downstream load balancing module.
[0095] The intelligent routing module is used to select the appropriate outbound interface from multiple links. The intelligent routing module supports multiple routing algorithms, such as priority routing algorithm and weight routing algorithm. Taking the priority routing algorithm of bandwidth detection as an example, there are many configurations of intelligent routing to share traffic on multiple links. The user's multi-link exit has a natural priority attribute. The link quality of the dedicated line access is the best, 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. Among operators, the link quality of China Unicom and China Telecom is higher than that of China Mobile. The quality of fixed Internet links is higher than that of 4G / 5G links. The priority relationship of the link is determined by the user's access quality, which can be reflected in the priority of intelligent routing. Using the priority algorithm, users give priority to the link with the best quality. Links have bandwidth restrictions. The better the quality of the link, the more expensive it is and the smaller the bandwidth. When the bandwidth occupancy of the high-quality link reaches the threshold, intelligent routing can forward the application traffic through the low-quality link. The difference in link quality will affect the user experience. The core business of the user should be distributed on high-quality links as much as possible.
[0096] The link detection module is responsible for the on / off detection of multiple links between the smart gateway and the POP device. This module runs on the smart gateway and the POP device. On the smart gateway side, the link detection module feeds back the detection results to the smart routing module. On the POP device side, the link detection module feeds back the detection results to the POP downstream load balancing module. The detection results will affect the routing logic at both ends.
[0097] The link quality detection module needs to support multi-path end-to-end detection. In an interconnected environment, each peer device needs to be continuously detected. If there are multiple redundant links, each link needs to be detected. During the link quality detection process, the Kalman filter model can be used to process the detection data to obtain more accurate data. The link quality detection module can run on the intelligent gateway.
[0098] The bandwidth detection module runs on the intelligent gateway to detect the uplink and downlink bandwidth of multiple links. If the bandwidth used exceeds the threshold set by the user, the detection result will be reported to the intelligent routing module. The detection result will affect the routing logic of the intelligent gateway.
[0099] Reference Figure 2 , shows a flow chart of a link load balancing method based on SDWAN of the present application, which can be applied to the intelligent gateway in the cloud network, for example, it can be applied to the intelligent gateway on the edge side of SDWAN, and the intelligent gateway is used for user devices on the user side to access the cloud network, etc.
[0100] In the framework of SDWAN edge-side intelligent gateway, this method can be deployed before the interface sends packets.
[0101] When users use SDWAN edge nodes to access the cloud network through their own user devices, or different users use SDWAN edge nodes to interconnect with each other through their own user devices, the link load balancing method of the present application can be used to optimize the load balancing of the transmission of the business traffic of the application programs therein.
[0102] Among them, the method includes:
[0103] In step S101, a data packet sent by a user equipment based on an application is received.
[0104] The data packets need to be forwarded by the smart gateway to the POP device in the SDWAN.
[0105] In step S102, the user's identity information and the identification information of the application are determined according to the data packet.
[0106] The header of the data packet includes a quintuple, which includes the source IP (Internet Protocol) address, source port number, destination IP address, destination port number and protocol name. The source IP address and source port number are the IP address and port number of the user's user device. In this way, the user's identity information can be determined based on the source IP address and source port number.
[0107] In addition, since the data packet is sent by the user equipment based on the application, the header of the data packet includes identification information of the application, so the identification information of the application can be extracted from the header of the data packet.
[0108] In step S103, based on the identity information and the identification information, at least two output interfaces suitable for users and applications are determined among the multiple output interfaces of the intelligent gateway for docking with the POP devices in the SDWAN.
[0109] The intelligent gateway has multiple output interfaces for connecting to the POP devices in the network SDWAN. The user sets the output interfaces suitable for users and applications in advance as part of the multiple output interfaces. The setting information can be located in the intelligent gateway. In this way, the intelligent gateway can determine at least two output interfaces suitable for users and applications in advance from the multiple output interfaces. The output interfaces include output interfaces provided by multiple network service providers, etc.
[0110] In step S104, an available output interface is screened from at least two output interfaces, wherein the communication link based on the available output interface between the intelligent gateway and the POP device is unobstructed, the bandwidth of the communication link based on the available output interface between the intelligent gateway and the POP device does not exceed a preset threshold, and the communication quality of the communication link based on the available output interface between the intelligent gateway and the POP device meets preset requirements.
[0111] Some of the at least two outbound interfaces are available, and some of the outbound interfaces are currently unavailable. Thus, it is necessary to screen available outbound interfaces from the at least two outbound interfaces.
[0112] The preset threshold may include 95%, 90%, or 85% of the rated bandwidth, etc.
[0113] Communication quality includes delay, jitter, packet loss rate, etc. The specific requirements for delay, jitter, and packet loss rate can be determined according to actual conditions, and this application does not limit this.
[0114] In step S105, the data packet is forwarded to the POP device via a communication link between the intelligent gateway and the POP device based on an available outbound interface.
[0115] In one embodiment, when there are more than two available output interfaces, the priority order of each available output interface set in advance by the user is obtained; the available output interface with the highest priority order is screened out from the more than two available output interfaces, and the data packet is forwarded to the POP device through the communication link between the intelligent gateway and the POP device based on the available output interface with the highest priority order.
[0116] If the bandwidth of the communication link based on the highest priority available output interface does not exceed the preset threshold, the communication link based on the second best priority available output interface between the intelligent gateway and the POP device is selected to forward the data packet to the POP device.
[0117] The link load balancing solution based on SDWAN in this application does not need to change the terminal function, does not need to modify the user's networking topology, and does not need to add additional equipment to achieve the load balancing effect of SDWAN multiple output interfaces. The solution of this application uses the intelligent routing function of the intelligent gateway and the downlink load balancing function of the POP device to achieve flow-by-flow load balancing. Both are simple to configure, do not require the participation of the controller during operation, and have good stability.
[0118] This application uses the POP downlink load balancing function to record the session for each data flow separately. The recorded session bypasses the traditional routing function and directly performs routing forwarding. The flow-by-flow load function can be implemented on the core network equipment, and the same load balancing effect can be guaranteed on both the uplink and the downlink. During the session processing, the forwarding core is redistributed to ensure that the session of the same user is processed on the same CPU, and lock-free resource access is achieved in multi-core forwarding. This lock-free structure can ensure the throughput capacity of the core device.
[0119] This application combines the intelligent routing function of the intelligent gateway with the downlink load balancing function of the POP device to build a virtual transmission channel on a stateless forwarding network. Based on the link quality detection and the provided virtual channel, end-to-end multi-channel link quality detection can be achieved. Users can make better routing configurations based on the link quality of different channels and the link quality requirements of the application. This solution not only provides a flow-by-flow load effect, but also can achieve better routing effects through the intelligent routing function, ensuring high-quality transmission of the user's core applications.
[0120] The solution of this application includes a variety of anomaly detection to ensure the optimal effect of traffic. For example, link disconnection detection, bandwidth detection and link quality detection functions are used during the transmission process. These detections will be combined with the intelligent routing of the smart gateway and the downlink load balancing function of the POP device to participate in the routing. When the link is disconnected, the bandwidth exceeds the limit or the link quality decreases, the user's traffic will be switched to other links in time without the participation of other people or other devices.
[0121] This embodiment is used to illustrate the present solution, but it is not intended to limit the protection scope of the present solution. Figure 3 , the embodiment comprises:
[0122] The first step is to match the user's strategy.
[0123] When the intelligent gateway receives the user's data packet and needs to send the data packet outward, it can extract the five-tuple information in the data packet. The five-tuple information includes the source IP address, source port number, destination IP address, destination port number and protocol name, etc. The user's identity information can be determined through the five-tuple information.
[0124] The application to which the packet belongs is then identified.
[0125] Then, a policy configured in advance by the user is obtained according to the user's identity information and the application to which the data packet belongs. The policy may include an output interface in the intelligent gateway that is applicable to the user's identity information and the application to which the data packet belongs.
[0126] The second step is to traverse the outbound interfaces.
[0127] Users will configure multiple next-hop outbound interfaces for their policies in advance. These outbound interfaces may not be available at the moment and need to be determined based on the current detection status.
[0128] For any outbound interface matched by the policy, whether the outbound interface is available can be determined according to the third step, the fourth step, and the fifth step. If the outbound interface is available, the outbound interface can be regarded as an available outbound interface.
[0129] The third step is to determine whether the link status of the interface is connected.
[0130] Determining whether the link status of the outbound interface is connected includes two parts: one is to determine whether the physical connection of the link where the outbound interface is located is connected and available, and the other is to determine whether the logical status of the physical connection of the link where the outbound interface is located is normal, for example, whether the network port is normal.
[0131] If both aspects are normal, it can be determined that the link state of the outbound interface is connected; otherwise, it is determined that the link state of the outbound interface is disconnected.
[0132] The fourth step is to determine whether the bandwidth of the interface exceeds the limit.
[0133] The bandwidth of the outbound interface is limited. When the traffic exceeds the usage limit, even if the traffic is sent out from the smart gateway, it will cause packet loss. Therefore, when the outbound bandwidth of the outbound interface reaches the usage threshold, data can no longer be sent out through the link where the outbound interface is located.
[0134] The fifth step is to determine whether the quality of the link where the interface is located meets the requirements.
[0135] Users can set link quality requirements for link transmission. Quality can be measured by packet loss rate, latency, and jitter.
[0136] When the link quality is lower than the minimum quality requirement, data may not be sent out through the link where the outbound interface is located.
[0137] Step 6: Get the available outbound interface.
[0138] If the link status of the outbound interface is connected, the bandwidth of the outbound interface does not exceed the limit, and the quality of the link where the outbound interface is located meets the requirement, the outbound interface is an available outbound interface.
[0139] Step 7: Select the outbound interface according to the algorithm selected by the user.
[0140] The outbound interface with the highest priority configured by the user can be selected from the available outbound interfaces.
[0141] When there are multiple available outbound interfaces, the links involved in the highest priority outbound interface can be used first to transmit data outward. If the bandwidth usage of the links involved in the highest priority outbound interface reaches the limit, the links involved in the second priority outbound interface can be used to transmit data outward, and so on.
[0142] Alternatively, an outbound interface may be randomly selected from multiple outbound interfaces, and then the link involved in the randomly selected outbound interface is used to transmit data outward.
[0143] On the other hand, this application also provides a downlink load balancing function for POP devices, making full use of the redundant bandwidth of SDWAN to achieve better load balancing effects while satisfying bandwidth load and upstream and downstream symmetry.
[0144] Reference Figure 4 , showing a structural block diagram of SDWAN.
[0145] The smart gateway is connected to the nearby POP devices through multiple links. The POP devices and EGW devices form the core network of SDWAN, and the core networks are interconnected through dedicated links. The smart gateway can be connected to other smart gateways or to the cloud by accessing the core network.
[0146] After the smart gateway is connected to the POP device, it can realize the interconnection and cloud access operations in different regions.
[0147] Further, see Figure 5 , shows a flow chart of a link load balancing method based on SDWAN of the present application, which can be applied to a POP device in a cloud network, wherein the method includes:
[0148] In step S201, a data packet of an application is received, and the data packet is used to be sent to a user equipment of a user via an intelligent gateway.
[0149] In step S202, the user's identity information is determined according to the data packet.
[0150] The header of the data packet includes a quintuple, which includes the source IP address, source port number, destination IP address, destination port number and protocol name. The destination IP address and destination port number are the IP address and port number of the user's user device. In this way, the user's identity information can be determined based on the destination IP address and destination port number.
[0151] In step S203, based on the identity information, a session table applicable to the user is searched in the POP device. The session table records the input interface, which includes the input interface based on which the POP device receives historical data packets sent by the intelligent gateway in the historical process; the historical data packets are sent by the user's user device to the intelligent gateway based on the application.
[0152] The process of generating a session table in advance includes: receiving historical data packets sent by the user device of the user based on the application in the historical process; the historical data packets need to be forwarded by the intelligent gateway to the POP device in the SDWAN. Determine the user's identity information based on the historical data packets (the determination method can refer to the description of step S102, which is not described in detail here); according to the identity information, find out whether there is a session table applicable to the user in the POP device, and if a session table applicable to the user is found in the POP device, determine whether the input interface based on which the POP device receives the historical data packets is the same as the input interface recorded in the session table; if the input interface based on which the POP device receives the historical data packets is different from the input interface recorded in the session table, change the input interface recorded in the session table to the input interface based on which the POP device receives the historical data packets. Alternatively, if a session table applicable to the user is not found in the POP device, create a session table applicable to the user, and record the input interface based on which the POP device receives the historical data packets in the created session table.
[0153] In step S204, when a session table suitable for the user is found in the POP device, the data packet is forwarded to the intelligent gateway through the communication link based on the input interface between the POP device and the intelligent gateway.
[0154] In the present application, the POP device has multiple CPU cores. In order to ensure that the data packets of the same user are processed by the same CPU core in the POP device, the recorded CPU core suitable for the user can be searched in the POP device according to the identity information (the CPU core suitable for the user can be configured in the POP device in advance, etc.); the data packets are forwarded to the intelligent gateway using the CPU core found in the POP device through the communication link based on the input interface between the POP device and the intelligent gateway.
[0155] The link load balancing solution based on SDWAN in this application does not need to change the terminal function, does not need to modify the user's networking topology, and does not need to add additional equipment to achieve the load balancing effect of SDWAN multiple output interfaces. The solution of this application uses the intelligent routing function of the intelligent gateway and the downlink load balancing function of the POP device to achieve flow-by-flow load balancing. Both are simple to configure, do not require the participation of the controller during operation, and have good stability.
[0156] This application uses the POP downlink load balancing function to record the session for each data flow separately. The recorded session bypasses the traditional routing function and directly performs routing forwarding. The flow-by-flow load function can be implemented on the core network equipment, and the same load balancing effect can be guaranteed on both the uplink and the downlink. During the session processing, the forwarding core is redistributed to ensure that the session of the same user is processed on the same CPU, and lock-free resource access is achieved in multi-core forwarding. This lock-free structure can ensure the throughput capacity of the core device.
[0157] This application combines the intelligent routing function of the intelligent gateway with the downlink load balancing function of the POP device to build a virtual transmission channel on a stateless forwarding network. Based on the link quality detection and the provided virtual channel, end-to-end multi-channel link quality detection can be achieved. Users can make better routing configurations based on the link quality of different channels and the link quality requirements of the application. This solution not only provides a flow-by-flow load effect, but also can achieve better routing effects through the intelligent routing function, ensuring high-quality transmission of the user's core applications.
[0158] The solution of this application includes a variety of anomaly detection to ensure the optimal effect of traffic. For example, link disconnection detection, bandwidth detection and link quality detection functions are used during the transmission process. These detections will be combined with the intelligent routing of the smart gateway and the downlink load balancing function of the POP device to participate in the routing. When the link is disconnected, the bandwidth exceeds the limit or the link quality decreases, the user's traffic will be switched to other links in time without the participation of other people or other devices.
[0159] This embodiment is used to illustrate the present solution, but it is not intended to limit the protection scope of the present solution. Figure 6 , the embodiment comprises:
[0160] Step 1: The POP device supports multiple users. The traffic processed by the POP downstream load balancing module is the data packet from which the user encapsulation information has been stripped, and its packet receiving module is a different virtual interface.
[0161] Step 2: In order to handle large concurrent traffic, the POP device runs in multi-core mode, and concurrent resource access is the focus of processing. If the locking method is used to protect critical resources, it will cause multi-core waiting and reduce processing performance. A lock-free model is used to protect critical resources. All access to the same resource is processed by the same CPU (central processing unit), and no locking is required for additional protection. The CPU is reallocated according to the user for the received data packets. The traffic of the same user will only be processed on one CPU.
[0162] Step 3: Extract the five-tuple information of the data packet and query the session table based on the five-tuple information and user information. The session table is the core data structure of the processing and is also a critical resource. Each CPU has its own separate session table, and creation and deletion are handled by this CPU.
[0163] Step 4: For traffic that has not created a session, you need to create a new session. The new session is stored using the bihash structure to facilitate subsequent quick search.
[0164] Step 5: After associating the session, check whether the incoming interface of the data packet is consistent with the session record. If the recorded incoming interface is consistent with the current receiving interface, no action is required.
[0165] Step 6: Update the inbound interface. There are two situations where you need to update the inbound interface. One is when a new session is created, and the inbound interface of the data packet needs to be recorded. The other is when the inbound interface changes. When the smart gateway reselects the route due to changes in link status or link quality, the inbound interface of the data packet will change. In this case, you need to re-update the inbound interface.
[0166] Step 7: Check whether there is a record of the outbound interface. For upstream and downstream traffic, the inbound interface in this direction is the outbound interface of the other end. If the outbound interface, that is, the inbound interface of the reverse traffic, cannot be found, the normal traffic forwarding logic will be used directly.
[0167] Step 8: Determine whether the outbound interface is available. The availability of the outbound interface is determined by the link detection module. When the link detection module detects that the link is disconnected, it directly follows the normal traffic forwarding logic.
[0168] Step 9: Forward the message according to the outbound interface. When the recorded outbound interface is found and the outbound interface is available, the message can be forwarded directly from the outbound interface.
[0169] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions involved are not necessarily required by the present application.
[0170] Reference Figure 7 , shows a structural block diagram of a link load balancing device based on SDWAN of the present application, which is applied to the intelligent gateway on the user side, and the device includes:
[0171] The first receiving unit 11 is used to receive a data packet sent by a user equipment based on an application;
[0172] A first determining unit 12, configured to determine the identity information of the user and the identification information of the application according to the data packet;
[0173] A second determination unit 13 is used to determine, according to the identity information and the identification information, at least two outbound interfaces suitable for the user and the application from a plurality of outbound interfaces of the intelligent gateway for docking with a POP device in a software defined wide area network SDWAN;
[0174] The screening unit 14 is used to screen the available output interfaces from the at least two output interfaces, wherein the communication link based on the available output interface between the intelligent gateway and the POP device is unblocked, the bandwidth of the communication link based on the available output interface between the intelligent gateway and the POP device does not exceed a preset threshold, and the communication quality of the communication link based on the available output interface between the intelligent gateway and the POP device meets preset requirements;
[0175] The first forwarding unit 15 is used to forward the data packet to the POP device through the communication link based on the available output interface between the intelligent gateway and the POP device.
[0176] In an optional implementation, the first forwarding unit includes:
[0177] an acquisition subunit, configured to acquire, when there are more than two available outbound interfaces, the priority order of each available outbound interface set in advance by the user;
[0178] The first forwarding subunit is used to screen the available output interface with the highest priority among more than two available output interfaces, and forward the data packet to the POP device through the communication link between the intelligent gateway and the POP device based on the available output interface with the highest priority.
[0179] The link load balancing solution based on SDWAN in this application does not need to change the terminal function, does not need to modify the user's networking topology, and does not need to add additional equipment to achieve the load balancing effect of SDWAN multiple output interfaces. The solution of this application uses the intelligent routing function of the intelligent gateway and the downlink load balancing function of the POP device to achieve flow-by-flow load balancing. Both are simple to configure, do not require the participation of the controller during operation, and have good stability.
[0180] This application uses the POP downlink load balancing function to record the session for each data flow separately. The recorded session bypasses the traditional routing function and directly performs routing forwarding. The flow-by-flow load function can be implemented on the core network equipment, and the same load balancing effect can be guaranteed on both the uplink and the downlink. During the session processing, the forwarding core is redistributed to ensure that the session of the same user is processed on the same CPU, and lock-free resource access is achieved in multi-core forwarding. This lock-free structure can ensure the throughput capacity of the core device.
[0181] This application combines the intelligent routing function of the intelligent gateway with the downlink load balancing function of the POP device to build a virtual transmission channel on a stateless forwarding network. Based on the link quality detection and the provided virtual channel, end-to-end multi-channel link quality detection can be achieved. Users can make better routing configurations based on the link quality of different channels and the link quality requirements of the application. This solution not only provides a flow-by-flow load effect, but also can achieve better routing effects through the intelligent routing function, ensuring high-quality transmission of the user's core applications.
[0182] The solution of this application includes a variety of anomaly detection to ensure the optimal effect of traffic. For example, link disconnection detection, bandwidth detection and link quality detection functions are used during the transmission process. These detections will be combined with the intelligent routing of the smart gateway and the downlink load balancing function of the POP device to participate in the routing. When the link is disconnected, the bandwidth exceeds the limit or the link quality decreases, the user's traffic will be switched to other links in time without the participation of other people or other devices.
[0183] Reference Figure 8 , shows a structural block diagram of a link load balancing device based on SDWAN of the present application, which is applied to a POP device in SDWAN, and the device includes:
[0184] A second receiving unit 21, configured to receive a data packet of an application, wherein the data packet is used to be sent to a user equipment of a user via an intelligent gateway;
[0185] A third determining unit 22, configured to determine the identity information of the user according to the data packet;
[0186] A first search unit 23 is used to search for a session table applicable to the user in the POP device according to the identity information, wherein the session table records an input interface, and the input interface includes an input interface based on which the POP device receives historical data packets sent by the intelligent gateway in the historical process; the historical data packets are sent by the user device of the user to the intelligent gateway based on the application;
[0187] The second forwarding unit 24 is used to forward the data packet to the intelligent gateway through the communication link based on the input interface between the POP device and the intelligent gateway when a session table suitable for the user is found in the POP device.
[0188] In an optional implementation, the device further includes:
[0189] A third receiving unit, configured to receive, during a historical process, a historical data packet sent by a user equipment of the user based on the application;
[0190] A fourth determining unit, configured to determine the identity information of the user according to the historical data packet;
[0191] A second search unit, configured to search, based on the identity information, whether there is a session table applicable to the user in the POP device;
[0192] a fifth determining unit, configured to determine, when a session table applicable to the user is found in the POP device, whether an input interface based on which the POP device receives the historical data packet is the same as an input interface recorded in the session table;
[0193] A changing unit is used to change the input interface recorded in the session table to the input interface based on which the POP device receives the historical data packet when the input interface based on which the POP device receives the historical data packet is different from the input interface recorded in the session table.
[0194] In an optional implementation, the device further includes:
[0195] a creating unit, configured to create a session table applicable to the user if no session table applicable to the user is found in the POP device;
[0196] The recording unit is used to record in the created session table the input interface based on which the POP device receives the historical data packet.
[0197] In an optional implementation, the second forwarding unit includes:
[0198] A search subunit, used to search the POP device for a recorded central processing unit CPU core suitable for the user according to the identity information;
[0199] The second forwarding subunit is used to use the CPU core found in the POP device to forward the data packet to the intelligent gateway through the communication link based on the input interface between the POP device and the intelligent gateway.
[0200] The link load balancing solution based on SDWAN in this application does not need to change the terminal function, does not need to modify the user's networking topology, and does not need to add additional equipment to achieve the load balancing effect of SDWAN multiple output interfaces. The solution of this application uses the intelligent routing function of the intelligent gateway and the downlink load balancing function of the POP device to achieve flow-by-flow load balancing. Both are simple to configure, do not require the participation of the controller during operation, and have good stability.
[0201] This application uses the POP downlink load balancing function to record the session for each data flow separately. The recorded session bypasses the traditional routing function and directly performs routing forwarding. The flow-by-flow load function can be implemented on the core network equipment, and the same load balancing effect can be guaranteed on both the uplink and the downlink. During the session processing, the forwarding core is redistributed to ensure that the session of the same user is processed on the same CPU, and lock-free resource access is achieved in multi-core forwarding. This lock-free structure can ensure the throughput capacity of the core device.
[0202] This application combines the intelligent routing function of the intelligent gateway with the downlink load balancing function of the POP device to build a virtual transmission channel on a stateless forwarding network. Based on the link quality detection and the provided virtual channel, end-to-end multi-channel link quality detection can be achieved. Users can make better routing configurations based on the link quality of different channels and the link quality requirements of the application. This solution not only provides a flow-by-flow load effect, but also can achieve better routing effects through the intelligent routing function, ensuring high-quality transmission of the user's core applications.
[0203] The solution of this application includes a variety of anomaly detection to ensure the optimal effect of traffic. For example, link disconnection detection, bandwidth detection and link quality detection functions are used during the transmission process. These detections will be combined with the intelligent routing of the smart gateway and the downlink load balancing function of the POP device to participate in the routing. When the link is disconnected, the bandwidth exceeds the limit or the link quality decreases, the user's traffic will be switched to other links in time without the participation of other people or other devices.
[0204] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0205] Optionally, an embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0206] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0207] Fig. 9 800 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0208] Reference Fig. 9 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0209] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0210] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, images, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0211] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0212] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0213] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0214] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0215] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0216] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0217] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0218] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0219] Fig.101 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.
[0220] Reference Fig.10 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0221] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
[0222] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0223] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0224] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
[0225] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0226] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0227] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0228] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0229] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0230] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0231] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A link load balancing method based on SDWAN, characterized in that: The method comprises: The smart gateway on the user side performs the following operations: receiving a data packet sent by a user device of a user based on an application; Determining the identity information of the user and the identification information of the application according to the data packet; According to the identity information and the identification information, determining at least two outbound interfaces suitable for the user and the application from among a plurality of outbound interfaces of the intelligent gateway for interfacing with a POP device in a software-defined wide area network SDWAN; Screening an available output interface from the at least two output interfaces, wherein the communication link based on the available output interface between the intelligent gateway and the POP device is unblocked, the bandwidth of the communication link based on the available output interface between the intelligent gateway and the POP device does not exceed a preset threshold, and the communication quality of the communication link based on the available output interface between the intelligent gateway and the POP device meets preset requirements; Forwarding the data packet to the POP device via a communication link between the intelligent gateway and the POP device based on an available outbound interface; The POP device in SDWAN performs the following operations: receiving a data packet of an application, wherein the data packet is used to be sent to a user equipment of a user via an intelligent gateway; Determining the identity information of the user according to the data packet; According to the identity information, searching the POP device for a session table applicable to the user, wherein the session table records an input interface, wherein the input interface includes an input interface based on which the POP device receives historical data packets sent by the intelligent gateway in a historical process; the historical data packets are sent by the user device of the user to the intelligent gateway based on the application; When a session table suitable for the user is found in the POP device, the data packet is forwarded to the intelligent gateway via a communication link based on the input interface between the POP device and the intelligent gateway.
2. The method according to claim 1, characterized in that The method of forwarding the data packet to the POP device through a communication link between the intelligent gateway and the POP device based on an available outbound interface includes: When there are more than two available outbound interfaces, obtaining the priority order of each available outbound interface set in advance by the user; The available output interface with the highest priority is screened from more than two available output interfaces, and the data packet is forwarded to the POP device through a communication link between the intelligent gateway and the POP device based on the available output interface with the highest priority.
3. The method according to claim 1, characterized in that The method further comprises: The POP device in the SDWAN also performs the following operations: In the historical process, receiving a historical data packet sent by the user equipment of the user based on the application; Determining the identity information of the user according to the historical data packet; According to the identity information, searching in the POP device whether there is a session table applicable to the user; When a session table applicable to the user is found in the POP device, determining whether the input interface based on which the POP device receives the historical data packet is the same as the input interface recorded in the session table; In the case that the input interface based on which the POP device receives the historical data packet is different from the input interface recorded in the session table, the input interface recorded in the session table is changed to the input interface based on which the POP device receives the historical data packet.
4. The method according to claim 3, characterized in that The method further comprises: The POP device in the SDWAN also performs the following operations: In the case that no session table suitable for the user is found in the POP device, a session table suitable for the user is created, and the inbound interface based on which the POP device receives the historical data packet is recorded in the created session table.
5. The method according to claim 1, characterized in that The method of forwarding the data packet to the intelligent gateway through the communication link between the POP device and the intelligent gateway based on the inbound interface includes: According to the identity information, searching the POP device for a recorded central processing unit (CPU) core suitable for the user; The data packet is forwarded to the intelligent gateway using the CPU core found in the POP device through the communication link between the POP device and the intelligent gateway based on the input interface.
6. A link load balancing system based on SDWAN, characterized in that: The system comprises: The user-side intelligent gateway includes: A first receiving unit, configured to receive a data packet sent by a user equipment based on an application; A first determining unit, configured to determine the identity information of the user and the identification information of the application according to the data packet; A second determination unit is used to determine, according to the identity information and the identification information, at least two outbound interfaces suitable for the user and the application from a plurality of outbound interfaces of the intelligent gateway for docking with a POP device in a software defined wide area network SDWAN; A screening unit, configured to screen an available output interface from the at least two output interfaces, wherein a communication link based on the available output interface between the intelligent gateway and the POP device is unblocked, a bandwidth of a communication link based on the available output interface between the intelligent gateway and the POP device does not exceed a preset threshold, and a communication quality of a communication link based on the available output interface between the intelligent gateway and the POP device meets a preset requirement; A first forwarding unit, configured to forward the data packet to the POP device through a communication link based on an available outbound interface between the intelligent gateway and the POP device; POP devices in SDWAN include: A second receiving unit, configured to receive a data packet of an application, wherein the data packet is used to be sent to a user equipment of a user via an intelligent gateway; A third determining unit, configured to determine the identity information of the user according to the data packet; A first search unit is used to search for a session table applicable to the user in the POP device according to the identity information, wherein the session table records an input interface, and the input interface includes an input interface based on which the POP device receives historical data packets sent by the intelligent gateway in a historical process; the historical data packets are sent by the user device of the user to the intelligent gateway based on the application; The second forwarding unit is used to forward the data packet to the intelligent gateway through the communication link based on the input interface between the POP device and the intelligent gateway when a session table suitable for the user is found in the POP device.
7. The system according to claim 6, characterized in that The first forwarding unit includes: an acquisition subunit, configured to acquire, when there are more than two available outbound interfaces, the priority order of each available outbound interface set in advance by the user; The first forwarding subunit is used to screen the available output interface with the highest priority among more than two available output interfaces, and forward the data packet to the POP device through the communication link between the intelligent gateway and the POP device based on the available output interface with the highest priority.
8. The system according to claim 6, characterized in that The POP device also includes: A third receiving unit, configured to receive, during a historical process, a historical data packet sent by a user equipment of the user based on the application; A fourth determining unit, configured to determine the identity information of the user according to the historical data packet; A second search unit, configured to search, based on the identity information, whether there is a session table applicable to the user in the POP device; a fifth determining unit, configured to determine, when a session table applicable to the user is found in the POP device, whether an input interface based on which the POP device receives the historical data packet is the same as an input interface recorded in the session table; A changing unit is used to change the input interface recorded in the session table to the input interface based on which the POP device receives the historical data packet when the input interface based on which the POP device receives the historical data packet is different from the input interface recorded in the session table.
9. The system according to claim 8, characterized in that The POP device also includes: a creating unit, configured to create a session table applicable to the user if no session table applicable to the user is found in the POP device; The recording unit is used to record in the created session table the input interface based on which the POP device receives the historical data packet.
10. The system according to claim 7, characterized in that The second forwarding unit includes: A search subunit, used to search the POP device for a recorded central processing unit CPU core suitable for the user according to the identity information; The second forwarding subunit is used to use the CPU core found in the POP device to forward the data packet to the intelligent gateway through the communication link based on the input interface between the POP device and the intelligent gateway.
11. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 5 when executed by the processor.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
13. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor, the method according to any one of claims 1 to 5 is implemented.
