CN113810945B - Multi-path uplink load balancing method, device, computer equipment and storage medium - Google Patents

Multi-path uplink load balancing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113810945B
CN113810945B CN202111108231.0A CN202111108231A CN113810945B CN 113810945 B CN113810945 B CN 113810945B CN 202111108231 A CN202111108231 A CN 202111108231A CN 113810945 B CN113810945 B CN 113810945B
Authority
CN
China
Prior art keywords
wan port
wan
load balancing
strategy
cpe
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111108231.0A
Other languages
Chinese (zh)
Other versions
CN113810945A (en
Inventor
侯宇鑫
黄振江
王永勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Tongze Kangwei Technology Co ltd
Original Assignee
Guangzhou Tongze Kangwei Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Tongze Kangwei Intelligent Technology Co ltd filed Critical Guangzhou Tongze Kangwei Intelligent Technology Co ltd
Priority to CN202111108231.0A priority Critical patent/CN113810945B/en
Publication of CN113810945A publication Critical patent/CN113810945A/en
Application granted granted Critical
Publication of CN113810945B publication Critical patent/CN113810945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/0858Load balancing or load distribution among entities in the uplink
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/09Management thereof
    • H04W28/0925Management thereof using policies
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method, a device, computer equipment and a storage medium for balancing multi-path uplink loads. The method comprises the following steps: constructing a connection with a plurality of 5G CPEs and a connection with a terminal; configuring a checking strategy of each WAN port connected with the 5G CPE by using an mwan3 protocol; detecting connectivity of each WAN port at regular time according to the checking strategy, and opening the WAN port with normal connectivity; acquiring an internet surfing request of a terminal; forwarding a surfing request to a corresponding 5G CPE through the WAN port according to a load balancing strategy corresponding to the WAN port so as to acquire return data from the 5G CPE; and forwarding the return data to the terminal through the routing table. By implementing the method of the embodiment of the invention, the technical problems that 5G single operators are limited in coverage, the network is unstable, and multipath uplink load balancing of the multi-operator network cannot be achieved can be solved.

Description

Multi-path uplink load balancing method, device, computer equipment and storage medium
Technical Field
The present invention relates to a load balancing method, and more particularly, to a method, an apparatus, a computer device, and a storage medium for balancing a multi-path uplink load.
Background
With the rising of the live broadcast industry and the rapid discovery of a 5G network, more and more 5G live broadcast scenes are utilized outdoors, at this time, no wired broadband of operators exists, live broadcast work is more and more team-formed and multi-platform at the same time, a live broadcast event may exist under the current situation that multiple main broadcast multi-scene multi-platform exists at the same time, in the traditional live broadcast scene, one mobile phone or one internet surfing device is used for supporting one live broadcast, the live broadcast effect cannot be effectively ensured, and after the interruption of a single operator, live broadcast interruption can be caused.
Therefore, a new method is needed to be designed to solve the technical problems that 5G single operators have limited coverage and unstable networks, and multipath uplink load balancing of the multi-operator networks cannot be achieved.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a multi-uplink load balancing method, a multi-uplink load balancing device, computer equipment and a storage medium.
In order to achieve the above purpose, the present invention adopts the following technical scheme: the multi-path uplink load balancing method comprises the following steps:
constructing connection with a plurality of 5G CPEs and connection with a terminal, wherein the plurality of 5G CPEs form a wireless broadband;
configuring a checking strategy of each WAN port connected with the 5G CPE by using an mwan3 protocol;
detecting connectivity of each WAN port at regular time according to the checking strategy, and opening the WAN port with normal connectivity;
acquiring an internet surfing request of a terminal;
forwarding a surfing request to a corresponding 5G CPE through the WAN port according to a load balancing strategy corresponding to the WAN port so as to acquire return data from the 5G CPE;
and forwarding the return data to the terminal through the routing table.
The further technical scheme is as follows: the plurality of 5G CPEs form a wireless broadband, and the wireless broadband comprises:
and dialing the base station by the 5G CPE through a 5G wireless communication protocol to form a wireless broadband.
The further technical scheme is as follows: the timing detects connectivity of each WAN port according to the checking strategy, and opens the WAN port with normal connectivity, including:
judging whether all WAN ports are checked;
if all WAN ports are not verified, acquiring the WAN ports to be verified;
judging whether the WAN port to be checked is communicated with a checked link or IP;
if the WAN port to be checked is communicated with the checked link or IP, determining the WAN port to be checked as the WAN port with normal connectivity;
opening a WAN port with normal connectivity, and executing the judgment whether all WAN ports are verified;
if the WAN port to be checked is not communicated with the checked link or IP, determining that the WAN port to be checked is a WAN port with abnormal connectivity;
and closing the WAN ports with abnormal connectivity, and executing the judgment on whether all WAN ports are verified.
The further technical scheme is as follows: after the judging whether all WAN ports are verified, the method further comprises the following steps:
and if all WAN ports are verified, executing the Internet surfing request of the acquisition terminal.
The further technical scheme is as follows: the load balancing strategy comprises a master and slave strategy and a global load balancing strategy; the main and standby strategies are to forward the internet surfing request through the main WAN port preferentially according to the jump point priority of the WAN; the global load balancing strategy is to calculate the flow of each WAN port and distribute the load of the flow according to the flow statistics.
The further technical scheme is as follows: forwarding the internet surfing request to the corresponding 5G CPE through the WAN port according to the load balancing policy corresponding to the WAN port, so as to obtain the return data from the 5G CPE, including:
judging whether the load balancing strategy corresponding to the WAN port is a main and standby strategy or not;
if the load balancing strategy corresponding to the WAN port is a main and standby strategy, determining a main WAN port;
forwarding the internet surfing request to a corresponding 5G CPE by utilizing the main WAN port so as to acquire return data from the 5G CPE;
if the load balancing strategy corresponding to the WAN port is not the primary and secondary strategy, calculating the flow of the opened WAN port, distributing a surfing request to the WAN port according to the flow, and forwarding the surfing request to the corresponding 5G CPE through the WAN port so as to acquire return data from the 5G CPE.
The invention also provides a multi-path uplink load balancing device, which comprises:
the construction unit is used for constructing connection with a plurality of 5G CPEs and connection with a terminal, wherein the 5G CPEs form a wireless broadband;
a configuration unit for configuring a checking policy of each WAN port connected to the 5G CPE using mwan3 protocol;
the detection unit is used for detecting the connectivity of each WAN port according to the checking strategy at regular time and opening the WAN port with normal connectivity;
the request acquisition unit is used for acquiring a network surfing request of the terminal;
the forwarding unit is used for forwarding the internet surfing request to the corresponding 5G CPE through the WAN port according to the load balancing strategy corresponding to the WAN port so as to acquire return data from the 5G CPE;
and the return unit is used for forwarding the return data to the terminal through the routing table.
The further technical scheme is as follows: the detection unit includes:
the checking and judging subunit is used for judging whether all WAN ports are checked;
the WAN port acquisition subunit is used for acquiring WAN ports needing to be checked if all WAN ports are not checked;
a communication judging subunit, configured to judge whether the WAN port to be checked is connected to the checked link or IP;
a first determining subunit, configured to determine that the WAN port to be checked is a WAN port with normal connectivity if the WAN port to be checked is linked or IP;
opening a subunit, configured to open a WAN port with normal connectivity, and perform the determining whether all WAN ports are verified;
a second determining subunit, configured to determine that the WAN port to be checked is a WAN port with abnormal connectivity if the WAN port to be checked is not connected to the checked link or IP;
and the closing subunit is used for closing the WAN ports with abnormal connectivity and executing the judgment on whether all WAN ports are verified.
The invention also provides a computer device which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the method when executing the computer program.
The present invention also provides a storage medium storing a computer program which, when executed by a processor, performs the above-described method.
Compared with the prior art, the invention has the beneficial effects that: according to the invention, through constructing the connection between the load balancing router and a plurality of 5G CPEs and the connection between the load balancing router and the terminals, the connectivity of each WAN port is detected by using a mwan3 protocol by means of the load balancing router, and the WAN port with normal connectivity is opened, when an Internet surfing request is acquired, the Internet surfing request is forwarded to the corresponding 5G CPE through the WAN port according to a master-backup strategy or a global load balancing strategy, so that return data is acquired from the 5G CPE, and the return data is forwarded to the terminals through a routing table, so that the technical problems that the coverage of a 5G single operator is limited, the network is unstable, and the multipath uplink load balancing of the network of the plurality of operators cannot be realized are solved.
The invention is further described below with reference to the drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a multi-uplink load balancing method according to an embodiment of the present invention;
fig. 2 is a flow chart of a multi-uplink load balancing method according to an embodiment of the present invention;
fig. 3 is a schematic sub-flowchart of a multi-uplink load balancing method according to an embodiment of the present invention;
fig. 4 is a schematic sub-flowchart of a multi-uplink load balancing method according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a multi-uplink load balancing device according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a detection unit of a multi-uplink load balancing device according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a forwarding unit of the multi-uplink load balancing device according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic application scenario diagram of a multi-uplink load balancing method according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of a multi-uplink load balancing method according to an embodiment of the present invention. The multi-path uplink load balancing method is applied to the server. The server is a load balancing router, the server performs data interaction with a plurality of 5G CPEs and the terminals, the load balancing router is utilized to link the plurality of 5G CPEs and the terminals together, connectivity of each WAN port is detected at fixed time, internet surfing requests of the terminals are forwarded to the corresponding 5G CPEs through the WAN ports, and multi-uplink load balancing of the multi-operator network is achieved by means of a load balancing strategy.
Fig. 2 is a flow chart of a multi-uplink load balancing method according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S160.
S110, connection with a plurality of 5G CPEs and connection with a terminal are constructed.
In this embodiment, a plurality of 5G CPEs are connected to a plurality of WAN (wide area network ) ports of a load balancing router through gigabit network lines. The device that needs to Access the internet, i.e. the terminal, is connected to the load balancing router in a LAN (local area network) port or a wireless AP (Access Point) mode.
Wherein a plurality of 5G CPE (customer premise equipment ) constitute a wireless broadband; specifically, a plurality of 5G CPEs dial up to a base station through a 5G wireless communication protocol to form a wireless broadband. The dialing of multiple operators solves the defect of insufficient 5G wireless coverage signals of a single operator.
The 5G CPE is responsible for realizing 5G wireless broadband dialing, and the load balancing router is responsible for carrying out load balancing and disaster recovery processing on the connected wireless broadband.
S120, configuring the checking strategy of each WAN port connected with the 5G CPE by using the mwan3 protocol.
Combining a plurality of wireless broadband by using mwan3 protocol, and providing a network multipath load balancing function for the LAN connecting equipment and the AP connecting equipment of the load balancing router; the mwan3 protocol is utilized to provide the abnormal and rapid switching function of the network provider network for the LAN connecting equipment and the wireless AP connecting equipment of the load balancing router by combining a plurality of wireless broadband.
Developing and realizing a mwan3 protocol, namely a Load balancing/failover with multiple WAN interfaces protocol and the like on a Load balancing router, and routing a plurality of WAN ports and realizing Load balancing and rapid disaster recovery; the equipment connected to the LAN port of the load balancing router realizes the load balancing and quick disaster recovery effects of surfing the Internet; the equipment connected with the AP signals of the load balancing router realizes the load balancing and quick disaster recovery effects of surfing the Internet.
And S130, detecting connectivity of each WAN port according to the checking strategy at regular time, and opening the WAN port with normal connectivity.
In the present embodiment, the check policy refers to whether to connect the checked link or IP.
In one embodiment, referring to fig. 3, the step S130 may include steps S131 to S137.
S131, judging whether all WAN ports are verified;
s132, if all WAN ports are not verified, acquiring the WAN ports to be verified;
s133, judging whether a WAN port to be checked is communicated with a checked link or IP;
s134, if the WAN port to be checked is communicated with the checked link or IP, determining that the WAN port to be checked is a WAN port with normal connectivity;
s135, opening a WAN port with normal connectivity, and executing the judgment on whether all WAN ports are verified;
s136, if the WAN port to be checked is not communicated with the checked link or IP, determining that the WAN port to be checked is a WAN port with abnormal connectivity;
s137, closing the WAN ports with abnormal connectivity, and executing the judgment on whether all WAN ports are verified.
If all WAN ports are verified, the step S140 is executed.
Developing an implementation program of the mwan3 protocol on the load balancing router, wherein a plurality of WAN ports connected with the load balancing router can have multi-path internet surfing export capability; the mwan3 protocol realizes a WAN port abnormality checking strategy, configures the IP or connection of each WAN port for checking whether the connection is carried out, and the program periodically checks whether each WAN port is normal and effective, so that the connectivity of the WAN port is ensured; the load balancing router checks the wireless broadband state at regular time, judges the connection state of each WAN port at regular time according to the checking strategy, automatically eliminates the invalid WAN to access to the network routing strategy when the wireless broadband is dropped or the access to the network is abnormal, timely adjusts the WAN connection route capable of accessing the network, ensures that the access to the network can be rapidly switched to the wireless network of an operator, and achieves the disaster recovery effect.
S140, acquiring a network surfing request of the terminal.
In this embodiment, the internet surfing request refers to a request of the terminal to connect to the 5G CPE.
And S150, forwarding a surfing request to a corresponding 5G CPE through the WAN port according to a load balancing strategy corresponding to the WAN port so as to acquire return data from the 5G CPE.
In this embodiment, the return data refers to response data fed back by the 5G CPE according to the internet surfing request.
Specifically, the load balancing policy includes a master-slave policy and a global load balancing policy; the main and standby strategies are to forward the internet surfing request through the main WAN port preferentially according to the jump point priority of the WAN; the global load balancing strategy is to calculate the flow of each WAN port and distribute the load of the flow according to the flow statistics.
In addition, the main-standby strategy sets the jump point measurement of the main WAN port to be 1, the component value to be 1000, and the jump point measurement of other WAN ports to be 100; the global load balancing policy sets the hop metrics for all WAN ports to 1 and the component values to 1000.
In one embodiment, referring to fig. 4, the step S150 may include steps S151 to S154.
S151, judging whether the load balancing strategy corresponding to the WAN port is a master-slave strategy or not;
s152, if the load balancing strategy corresponding to the WAN port is a main and standby strategy, determining a main WAN port;
s153, forwarding the internet surfing request to a corresponding 5G CPE by utilizing the main WAN port so as to acquire return data from the 5 GCPE;
and S154, if the load balancing strategy corresponding to the WAN port is not the primary and secondary strategy, calculating the flow of the opened WAN port, distributing a surfing request to the WAN port according to the flow, and forwarding the surfing request to the corresponding 5G CPE through the WAN port so as to acquire return data from the 5G CPE.
Specifically, the terminal initiates a network surfing request to the load balancing router, and the load balancing router forwards the network surfing request from the effective wireless broadband connection through a load balancing algorithm, and when the request returns, forwards the returned data back to the network surfing equipment through the routing table.
And S160, forwarding the return data to the terminal through the routing table.
The embodiment can realize the effect of balancing the internet traffic load of a plurality of live broadcast devices; the wireless network fault of the operator is quickly recovered in the live broadcast process; fast recovery from single CPE device operation failure
The embodiment solves the problems of insufficient coverage of a single operator 5G base station and multi-path uplink load balancing, firstly, a wireless broadband formed by dialing of multiple operators is realized through a plurality of 5G CPEs and is connected to a WAN port on a load balancing router, the load balancing router performs load balancing on the multiple wireless broadband through development to realize mwan3 protocol, so that equipment connected with a LAN port and an AP of the load balancing router can share a 5G internet link and load balancing, and when the single operator breaks a line, a load balancing program can close the WAN port route, so that the single operator can be rapidly disconnected, a method for rapidly and automatically switching other operators in flow is realized, and smooth operation and fault switching of live broadcasting scenes are ensured.
According to the multi-uplink load balancing method, the connection between the load balancing router and the plurality of 5G CPEs and the connection between the load balancing router and the terminal are established, the connectivity of each WAN port is detected by means of the mwan3 protocol by means of the load balancing router, the WAN port with normal connectivity is opened, when an Internet surfing request is acquired, the Internet surfing request is forwarded to the corresponding 5G CPE through the WAN port according to a master-backup strategy or a global load balancing strategy, return data are acquired from the 5G CPE, and the return data are forwarded to the terminal through the routing table, so that the technical problems that the coverage of a 5G single operator is limited, the network is unstable, and multi-path uplink load balancing of a multi-operator network cannot be achieved are solved.
Fig. 5 is a schematic block diagram of a multi-path uplink load balancing apparatus 300 according to an embodiment of the present invention. As shown in fig. 5, the present invention further provides a multi-path uplink load balancing apparatus 300, corresponding to the above multi-path uplink load balancing method. The multi-path uplink load balancing apparatus 300 includes a unit for performing the above-described multi-path uplink load balancing method, and may be configured in a server. Specifically, referring to fig. 5, the multi-path uplink load balancing apparatus 300 includes a constructing unit 301, a configuring unit 302, a detecting unit 303, a request acquiring unit 304, a forwarding unit 305, and a returning unit 306.
A construction unit 301, configured to construct a connection with a plurality of 5G CPEs and a connection with a terminal, where the plurality of 5G CPEs form a wireless broadband; a configuration unit 302, configured to configure a checking policy of each WAN port connected to the 5G CPE using mwan3 protocol; a detecting unit 303, configured to detect connectivity of each WAN port according to the checking policy at regular time, and open a WAN port with normal connectivity; a request acquisition unit 304, configured to acquire an internet surfing request of a terminal; a forwarding unit 305, configured to forward, according to a load balancing policy corresponding to the WAN port, a surfing request to a corresponding 5G CPE through the WAN port, so as to obtain return data from the 5 GCPE; a return unit 306 for forwarding the return data to the terminal through the routing table.
In one embodiment, as shown in fig. 6, the detecting unit 303 includes a checking judging subunit 3031, a WAN port obtaining subunit 3032, a communication judging subunit 3033, a first determining subunit 3034, an opening subunit 3035, a second determining subunit 3036 and a closing subunit 3037.
A checking and judging subunit 3031, configured to judge whether all WAN ports are checked; and if all WAN ports are verified, executing the Internet surfing request of the acquisition terminal. A WAN port obtaining subunit 3032, configured to obtain a WAN port that needs to be checked if all WAN ports are not checked; a connectivity judging subunit 3033, configured to judge whether the WAN port to be checked is connected to the checked link or IP; a first determining subunit 3034, configured to determine that the WAN port to be checked is a WAN port with normal connectivity if the WAN port to be checked is linked or IP; the opening subunit 3035 is configured to open a WAN port with normal connectivity, and perform the determining whether all WAN ports are verified; a second determining subunit 3036, configured to determine that the WAN port to be checked is a WAN port with abnormal connectivity if the WAN port to be checked is not connected to the checked link or IP; and the closing subunit 3037 is configured to close the WAN ports with abnormal connectivity, and perform the determination whether all WAN ports are verified.
In an embodiment, referring to fig. 7, the forwarding unit 305 includes a policy determining subunit 3051, a main WAN port determining subunit 3052, a first forwarding subunit 3053, and a second forwarding subunit 3054.
A policy determining subunit 3051, configured to determine whether a load balancing policy corresponding to the WAN port is a master-slave policy; a main WAN port determining subunit 3052, configured to determine a main WAN port if the load balancing policy corresponding to the WAN port is a main-standby policy; a first forwarding sub-unit 3053, configured to forward the internet surfing request to a corresponding 5G CPE by using the main WAN port, so as to obtain return data from the 5G CPE; and the second forwarding subunit 3054 is configured to calculate, if the load balancing policy corresponding to the WAN port is not the primary and secondary policy, the open traffic of the WAN port, and distribute the internet surfing request to the WAN port according to the traffic, and forward the internet surfing request to the corresponding 5G CPE through the WAN port, so as to obtain the return data from the 5G CPE.
It should be noted that, as those skilled in the art can clearly understand, the specific implementation process of the above-mentioned multi-path uplink load balancing apparatus 300 and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, the description is omitted here.
The above-described multi-uplink load balancing apparatus 300 may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, where the server may be a stand-alone server or may be a server cluster formed by a plurality of servers.
With reference to FIG. 8, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a multi-path upstream load balancing method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a multi-way upstream load balancing method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 500 to which the present application is applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to implement the steps of:
constructing connection with a plurality of 5G CPEs and connection with a terminal, wherein the plurality of 5G CPEs form a wireless broadband; configuring a checking strategy of each WAN port connected with the 5G CPE by using an mwan3 protocol; detecting connectivity of each WAN port at regular time according to the checking strategy, and opening the WAN port with normal connectivity; acquiring an internet surfing request of a terminal; forwarding a surfing request to a corresponding 5G CPE through the WAN port according to a load balancing strategy corresponding to the WAN port so as to acquire return data from the 5G CPE; and forwarding the return data to the terminal through the routing table.
The load balancing strategy comprises a master and slave strategy and a global load balancing strategy; the main and standby strategies are to forward the internet surfing request through the main WAN port preferentially according to the jump point priority of the WAN; the global load balancing strategy is to calculate the flow of each WAN port and distribute the load of the flow according to the flow statistics.
In one embodiment, when the processor 502 implements the step of forming the wireless broadband by the plurality of 5G CPEs, the following steps are specifically implemented:
and dialing the base station by the 5G CPE through a 5G wireless communication protocol to form a wireless broadband.
In one embodiment, when the processor 502 detects connectivity of each WAN port according to the checking policy and opens the WAN port with normal connectivity during the timing implementation, the following steps are specifically implemented:
judging whether all WAN ports are checked; if all WAN ports are not verified, acquiring the WAN ports to be verified; judging whether the WAN port to be checked is communicated with a checked link or IP; if the WAN port to be checked is communicated with the checked link or IP, determining the WAN port to be checked as the WAN port with normal connectivity; opening a WAN port with normal connectivity, and executing the judgment whether all WAN ports are verified; if the WAN port to be checked is not communicated with the checked link or IP, determining that the WAN port to be checked is a WAN port with abnormal connectivity; and closing the WAN ports with abnormal connectivity, and executing the judgment on whether all WAN ports are verified.
In one embodiment, after implementing the step of determining whether all WAN ports are verified, the processor 502 further implements the following steps:
and if all WAN ports are verified, executing the Internet surfing request of the acquisition terminal.
In an embodiment, when implementing the step of forwarding the internet surfing request to the corresponding 5G CPE through the WAN port according to the load balancing policy corresponding to the WAN port to obtain the return data from the 5G CPE, the processor 502 specifically implements the following steps:
judging whether the load balancing strategy corresponding to the WAN port is a main and standby strategy or not; if the load balancing strategy corresponding to the WAN port is a main and standby strategy, determining a main WAN port; forwarding the internet surfing request to a corresponding 5G CPE by utilizing the main WAN port so as to acquire return data from the 5G CPE; if the load balancing strategy corresponding to the WAN port is not the primary and backup strategy, calculating the flow of the opened WAN port, distributing a surfing request to the WAN port according to the flow, and forwarding the surfing request to the corresponding 5GCPE through the WAN port so as to acquire return data from the 5G CPE.
It should be appreciated that in embodiments of the present application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program which, when executed by a processor, causes the processor to perform the steps of:
constructing connection with a plurality of 5G CPEs and connection with a terminal, wherein the plurality of 5G CPEs form a wireless broadband; configuring a checking strategy of each WAN port connected with the 5G CPE by using an mwan3 protocol; detecting connectivity of each WAN port at regular time according to the checking strategy, and opening the WAN port with normal connectivity; acquiring an internet surfing request of a terminal; forwarding a surfing request to a corresponding 5G CPE through the WAN port according to a load balancing strategy corresponding to the WAN port so as to acquire return data from the 5G CPE; and forwarding the return data to the terminal through the routing table.
The load balancing strategy comprises a master and slave strategy and a global load balancing strategy; the main and standby strategies are to forward the internet surfing request through the main WAN port preferentially according to the jump point priority of the WAN; the global load balancing strategy is to calculate the flow of each WAN port and distribute the load of the flow according to the flow statistics.
In one embodiment, when the processor executes the computer program to implement the steps of forming a wireless broadband by the plurality of 5 GCPEs, the steps are specifically implemented as follows:
and dialing the base station by the 5G CPE through a 5G wireless communication protocol to form a wireless broadband.
In one embodiment, when the processor executes the computer program to realize the steps of detecting connectivity of each WAN port according to the checking policy and opening the WAN port with normal connectivity, the steps are specifically implemented as follows:
judging whether all WAN ports are checked; if all WAN ports are not verified, acquiring the WAN ports to be verified; judging whether the WAN port to be checked is communicated with a checked link or IP; if the WAN port to be checked is communicated with the checked link or IP, determining the WAN port to be checked as the WAN port with normal connectivity; opening a WAN port with normal connectivity, and executing the judgment whether all WAN ports are verified; if the WAN port to be checked is not communicated with the checked link or IP, determining that the WAN port to be checked is a WAN port with abnormal connectivity; and closing the WAN ports with abnormal connectivity, and executing the judgment on whether all WAN ports are verified.
In one embodiment, after executing the computer program to implement the step of determining whether all WAN ports are verified, the processor further implements the steps of:
and if all WAN ports are verified, executing the Internet surfing request of the acquisition terminal.
In an embodiment, when the processor executes the computer program to implement the step of forwarding the internet surfing request to the corresponding 5GCPE through the WAN port according to the load balancing policy corresponding to the WAN port to obtain the return data from the 5G CPE, the method specifically includes the following steps:
judging whether the load balancing strategy corresponding to the WAN port is a main and standby strategy or not; if the load balancing strategy corresponding to the WAN port is a main and standby strategy, determining a main WAN port; forwarding the internet surfing request to a corresponding 5G CPE by utilizing the main WAN port so as to acquire return data from the 5G CPE; if the load balancing strategy corresponding to the WAN port is not the primary and backup strategy, calculating the flow of the opened WAN port, distributing a surfing request to the WAN port according to the flow, and forwarding the surfing request to the corresponding 5GCPE through the WAN port so as to acquire return data from the 5G CPE.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (6)

1. The multi-path uplink load balancing method is characterized by comprising the following steps:
constructing connection with a plurality of 5G CPEs and connection with a terminal, wherein the plurality of 5G CPEs form a wireless broadband;
configuring a checking strategy of each WAN port connected with the 5G CPE by using an mwan3 protocol;
detecting connectivity of each WAN port at regular time according to the checking strategy, and opening the WAN port with normal connectivity;
acquiring an internet surfing request of a terminal;
forwarding a surfing request to a corresponding 5G CPE through the WAN port according to a load balancing strategy corresponding to the WAN port so as to acquire return data from the 5G CPE;
forwarding the returned data to the terminal through the routing table;
the timing detects connectivity of each WAN port according to the checking strategy, and opens the WAN port with normal connectivity, including:
judging whether all WAN ports are checked;
if all WAN ports are not verified, acquiring the WAN ports to be verified;
judging whether the WAN port to be checked is communicated with a checked link or IP;
if the WAN port to be checked is communicated with the checked link or IP, determining the WAN port to be checked as the WAN port with normal connectivity;
opening a WAN port with normal connectivity, and executing the judgment whether all WAN ports are verified;
if the WAN port to be checked is not communicated with the checked link or IP, determining that the WAN port to be checked is a WAN port with abnormal connectivity;
closing WAN ports with abnormal connectivity, and executing the judgment whether all WAN ports are verified; the load balancing strategy comprises a master and slave strategy and a global load balancing strategy; the main and standby strategies are to forward the internet surfing request through the main WAN port preferentially according to the jump point priority of the WAN;
the global load balancing strategy is to calculate the flow of each WAN port and carry out load balancing distribution of the flow according to flow statistics;
forwarding the internet surfing request to the corresponding 5G CPE through the WAN port according to the load balancing policy corresponding to the WAN port, so as to obtain the return data from the 5G CPE, including:
judging whether the load balancing strategy corresponding to the WAN port is a main and standby strategy or not;
if the load balancing strategy corresponding to the WAN port is a main and standby strategy, determining a main WAN port;
forwarding the internet surfing request to a corresponding 5G CPE by utilizing the main WAN port so as to acquire return data from the 5G CPE;
if the load balancing strategy corresponding to the WAN port is not the primary and secondary strategy, calculating the flow of the opened WAN port, distributing a surfing request to the WAN port according to the flow, and forwarding the surfing request to the corresponding 5G CPE through the WAN port so as to acquire return data from the 5G CPE.
2. The method for multi-path uplink load balancing according to claim 1, wherein the plurality of 5G CPEs form a wireless broadband, comprising:
and dialing the base station by the 5G CPE through a 5G wireless communication protocol to form a wireless broadband.
3. The method for balancing multi-path uplink load according to claim 1, wherein after said determining whether all WAN ports are verified, further comprising:
and if all WAN ports are verified, executing the Internet surfing request of the acquisition terminal.
4. The utility model provides a load balancing device on multiple ways, its characterized in that includes:
the construction unit is used for constructing connection with a plurality of 5G CPEs and connection with a terminal, wherein the 5G CPEs form a wireless broadband;
a configuration unit for configuring a checking policy of each WAN port connected to the 5G CPE using mwan3 protocol;
the detection unit is used for detecting the connectivity of each WAN port according to the checking strategy at regular time and opening the WAN port with normal connectivity;
the request acquisition unit is used for acquiring a network surfing request of the terminal;
the forwarding unit is used for forwarding the internet surfing request to the corresponding 5G CPE through the WAN port according to the load balancing strategy corresponding to the WAN port so as to acquire return data from the 5G CPE;
the return unit is used for forwarding the return data to the terminal through the routing table;
the detection unit includes:
the checking and judging subunit is used for judging whether all WAN ports are checked;
the WAN port acquisition subunit is used for acquiring WAN ports needing to be checked if all WAN ports are not checked;
a communication judging subunit, configured to judge whether the WAN port to be checked is connected to the checked link or IP;
a first determining subunit, configured to determine that the WAN port to be checked is a WAN port with normal connectivity if the WAN port to be checked is linked or IP;
opening a subunit, configured to open a WAN port with normal connectivity, and perform the determining whether all WAN ports are verified;
a second determining subunit, configured to determine that the WAN port to be checked is a WAN port with abnormal connectivity if the WAN port to be checked is not connected to the checked link or IP;
the closing subunit is used for closing the WAN ports with abnormal connectivity and executing the judgment on whether all WAN ports are verified;
the load balancing strategy comprises a master and slave strategy and a global load balancing strategy; the main and standby strategies are to forward the internet surfing request through the main WAN port preferentially according to the jump point priority of the WAN;
the global load balancing strategy is to calculate the flow of each WAN port and carry out load balancing distribution of the flow according to flow statistics;
the forwarding unit comprises a strategy judging subunit, a main WAN port determining subunit, a first forwarding subunit and a second forwarding subunit;
the strategy judging subunit is used for judging whether the load balancing strategy corresponding to the WAN port is a master-slave strategy or not; a main WAN port determining subunit, configured to determine a main WAN port if a load balancing policy corresponding to the WAN port is a main/standby policy; the first forwarding subunit is configured to forward the internet surfing request to a corresponding 5G CPE by using the main WAN port, so as to obtain return data from the 5G CPE; and the second forwarding subunit is used for calculating the flow of the opened WAN port if the load balancing strategy corresponding to the WAN port is not the primary and secondary strategy, distributing the Internet surfing request to the WAN port according to the flow, and forwarding the Internet surfing request to the corresponding 5G CPE through the WAN port so as to acquire return data from the 5G CPE.
5. A computer device, characterized in that it comprises a memory on which a computer program is stored and a processor which, when executing the computer program, implements the method according to any of claims 1-3.
6. A storage medium storing a computer program which, when executed by a processor, performs the method of any one of claims 1 to 3.
CN202111108231.0A 2021-09-22 2021-09-22 Multi-path uplink load balancing method, device, computer equipment and storage medium Active CN113810945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111108231.0A CN113810945B (en) 2021-09-22 2021-09-22 Multi-path uplink load balancing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111108231.0A CN113810945B (en) 2021-09-22 2021-09-22 Multi-path uplink load balancing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113810945A CN113810945A (en) 2021-12-17
CN113810945B true CN113810945B (en) 2023-06-20

Family

ID=78939963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111108231.0A Active CN113810945B (en) 2021-09-22 2021-09-22 Multi-path uplink load balancing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113810945B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754434A (en) * 2010-01-20 2010-06-23 中兴通讯股份有限公司 Access method, system and device
CN106130913A (en) * 2016-09-08 2016-11-16 深圳市磊科实业有限公司 A kind of multi-operator is the route selecting method of many WAN mouth router based on strategy in the case of accessing
US9654331B1 (en) * 2011-07-27 2017-05-16 Cisco Technology, Inc. System and method for recovery of customer premise equipment information on an access concentrator
CN111491335A (en) * 2020-04-13 2020-08-04 中科芯集成电路有限公司 Channel load balancing method based on multi-path uplink L ora gateway
CN111510316A (en) * 2019-01-31 2020-08-07 丛林网络公司 Method for communication in SD-WAN, SD-WAN and service provider
CN112350845A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Wide area network port configuration method, network device and computer readable storage medium
CN112383933A (en) * 2020-11-27 2021-02-19 西安长焜智联科技有限公司 Wireless CPE (customer premises equipment) and method for realizing load balancing based on wireless CPE
CN112910794A (en) * 2021-01-07 2021-06-04 广州广哈通信股份有限公司 Load balancing system for multi-path E1 networking

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10433207B2 (en) * 2010-10-28 2019-10-01 Verizon Patent And Licensing Inc. Load balancing to provide a target grade of service (GOS)

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754434A (en) * 2010-01-20 2010-06-23 中兴通讯股份有限公司 Access method, system and device
US9654331B1 (en) * 2011-07-27 2017-05-16 Cisco Technology, Inc. System and method for recovery of customer premise equipment information on an access concentrator
CN106130913A (en) * 2016-09-08 2016-11-16 深圳市磊科实业有限公司 A kind of multi-operator is the route selecting method of many WAN mouth router based on strategy in the case of accessing
CN111510316A (en) * 2019-01-31 2020-08-07 丛林网络公司 Method for communication in SD-WAN, SD-WAN and service provider
CN112350845A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Wide area network port configuration method, network device and computer readable storage medium
CN111491335A (en) * 2020-04-13 2020-08-04 中科芯集成电路有限公司 Channel load balancing method based on multi-path uplink L ora gateway
CN112383933A (en) * 2020-11-27 2021-02-19 西安长焜智联科技有限公司 Wireless CPE (customer premises equipment) and method for realizing load balancing based on wireless CPE
CN112910794A (en) * 2021-01-07 2021-06-04 广州广哈通信股份有限公司 Load balancing system for multi-path E1 networking

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
5G CPE发展现状与展望;陈军俊;《科技传播》;全文 *

Also Published As

Publication number Publication date
CN113810945A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
CN111095869B (en) Method and system for high availability enhancement for computer networks
US9106528B2 (en) Link aggregation protection
US8438307B2 (en) Method and device of load-sharing in IRF stack
JP5913635B2 (en) Redundant network connection
US8825844B2 (en) Notifying network operator when virtual addresses do not match on network elements configured for interchassis redundancy
US20220174006A1 (en) Method for EVPN and VPLS Active-Active Integration, Device, and System
CN102006189B (en) Primary access server determination method and device for dual-machine redundancy backup
US8036106B1 (en) Distributed control packet transmission
GB2485024A (en) Providing failover for a Point to Point tunnel for Wireless Local Area Network (WLAN) split-plane environments
WO2018188313A1 (en) Method and apparatus for switching services in backup network
CN111682989B (en) Method, device and system for detecting port link state
US20140321261A1 (en) Communications network
CN103490921B (en) Network protection method, device, lower link point and system
CN113938405B (en) Data processing method and device
US9521073B2 (en) Enhanced fine-grained overlay transport virtualization multi-homing using per-network authoritative edge device synchronization
CN113395261A (en) Method, equipment and medium for spanning tree protocol fast convergence in MLAG environment
CN107154896A (en) A kind of data transmission method and forwarding unit
CN113810945B (en) Multi-path uplink load balancing method, device, computer equipment and storage medium
CN105636086A (en) Network mode switching processing method, network mode switching processing device and terminal comprising network mode switching processing device
US8144574B1 (en) Distributed control packet processing
US10771284B2 (en) Troubleshooting method and apparatus for edge routing bridge in TRILL campus
CN102594735B (en) A kind of home gateway and realize the method that many uplink modes link detects automatically
US11502945B2 (en) High-availability networking as a service via Wi-Fi
CN116248581B (en) Cloud scene gateway cluster master-slave switching method and system based on SDN
US11950032B2 (en) G.8032 with optical bypass

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 510000 room 1301, No. 37, Jinlong street, Xiangjiang financial and business center, Nansha District, Guangzhou City, Guangdong Province (office only)

Patentee after: Guangzhou Tongze Kangwei Technology Co.,Ltd.

Address before: 510000 room 1301, No. 37, Jinlong street, Xiangjiang financial and business center, Nansha District, Guangzhou City, Guangdong Province (office only)

Patentee before: Guangzhou Tongze Kangwei Intelligent Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder