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

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

Info

Publication number
CN113810945A
CN113810945A CN202111108231.0A CN202111108231A CN113810945A CN 113810945 A CN113810945 A CN 113810945A CN 202111108231 A CN202111108231 A CN 202111108231A CN 113810945 A CN113810945 A CN 113810945A
Authority
CN
China
Prior art keywords
wan port
wan
load balancing
cpe
verified
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.)
Granted
Application number
CN202111108231.0A
Other languages
Chinese (zh)
Other versions
CN113810945B (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 multi-path uplink load balancing method and device, computer equipment and a storage medium. The method comprises the following steps: constructing connection with a plurality of 5G CPE and connection with a terminal; configuring an inspection strategy of each WAN port connected with the 5G CPE by using the mwan3 protocol; detecting the connectivity of each WAN port according to the inspection strategy at regular time, and opening the WAN port with normal connectivity; acquiring a network access request of a terminal; 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 obtain 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 the coverage of a 5G single operator is limited, the network is unstable and the multi-path uplink load balance of a multi-operator network cannot be realized can be solved.

Description

Multi-path uplink load balancing method and device, computer equipment and storage medium
Technical Field
The present invention relates to a load balancing method, and more particularly, to a multi-path uplink load balancing method, apparatus, computer device, and storage medium.
Background
Along with the rise of live broadcast industry and the quick discovery of 5G network, it is more and more to utilize the live scene of 5G in the open air, there is not the wired broadband of operator this moment, the more and more teamization of live broadcast work and the multiple platform simultaneously, the live activity of a scene probably has the current situation that many main broadcast multi-scene multi-platform exist simultaneously, in traditional live scene, all support live broadcast all the way through a cell-phone or a networking equipment, can't effectively guarantee live broadcast effect, and single operator after the interrupt, the live broadcast that can lead to is interrupted, to sum up, there is single operator of 5G in the prior art to cover limitedly, and the network is unstable, can't accomplish the multichannel of many operator networks and go upward load balancing.
Therefore, it is necessary to design a new method to solve the technical problems that the coverage of a 5G single operator is limited, the network is unstable, and the multi-path uplink load balancing of the multi-operator network cannot be achieved.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a multipath uplink load balancing method, a multipath uplink load balancing device, computer equipment and a storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme: the multi-path uplink load balancing method comprises the following steps:
establishing connection with a plurality of 5G CPE and connection with a terminal, wherein the plurality of 5G CPE form a wireless broadband;
configuring an inspection strategy of each WAN port connected with the 5G CPE by using the mwan3 protocol;
detecting the connectivity of each WAN port according to the inspection strategy at regular time, and opening the WAN port with normal connectivity;
acquiring a network access request of a terminal;
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 obtain 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 the 5G CPE form a wireless broadband, which comprises:
and the 5G CPE dials to the base station through a 5G wireless communication protocol to form a wireless broadband.
The further technical scheme is as follows: the timing detecting the connectivity of each WAN port according to the checking strategy and opening the WAN port with normal connectivity comprises the following steps:
judging whether all WAN ports are checked;
if not, acquiring the WAN port needing to be verified;
judging whether the WAN port needing to be checked is communicated with the link or the IP to be checked;
if the WAN port needing to be verified is communicated with the link or the IP to be checked, determining that the WAN port needing to be verified is the WAN port with normal connectivity;
opening the WAN port with normal connectivity, and executing the judgment to judge whether all the WAN ports are verified;
if the WAN port needing to be verified does not communicate with the link or IP to be checked, determining that the WAN port needing to be verified is the WAN port with abnormal connectivity;
and closing the WAN ports with abnormal connectivity, and executing the judgment to judge whether all the WAN ports are verified.
The further technical scheme is as follows: after the judging whether all the WAN ports are checked, the method further comprises the following steps:
and if all the WAN ports are verified, executing the network access request of the acquisition terminal.
The further technical scheme is as follows: the load balancing strategy comprises a main/standby strategy and a global load balancing strategy; the main and standby strategy is to transmit the internet request through a main WAN port according to the priority of the jumping points of the WAN; and the global load balancing strategy is to calculate the flow of each WAN port and perform load balancing distribution of the flow according to flow statistics.
The further technical scheme is as follows: the 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 to acquire the return data from the 5G CPE includes:
judging whether the load balancing strategy corresponding to the WAN port is a main/standby strategy or not;
if the load balancing strategy corresponding to the WAN port is a main/standby strategy, determining a main WAN port;
forwarding the internet surfing request to the corresponding 5G CPE by using the main WAN port so as to obtain return data from the 5G CPE;
if the load balancing strategy corresponding to the WAN port is not the main/standby strategy, calculating the opened flow of the WAN port, distributing an internet access request to the WAN port according to the flow, and forwarding the internet access 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 system comprises a construction unit and a control unit, wherein the construction unit is used for constructing connection with a plurality of 5G CPE and connection with a terminal, and the plurality of 5G CPE form a wireless broadband;
a configuration unit, configured to configure an inspection 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 inspection strategy at regular time and opening the WAN port with normal connectivity;
the request acquisition unit is used for acquiring an internet access 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 obtain 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 the WAN ports are checked completely;
the WAN port acquisition subunit is used for acquiring the WAN port needing to be verified if all the WAN ports are not verified;
the communication judging subunit is used for judging whether the WAN port needing to be checked is communicated with the link or the IP to be checked;
the first determining subunit is used for determining that the WAN port needing to be verified is a WAN port with normal connectivity if the WAN port needing to be verified is communicated with the link or the IP of the inspection;
the opening subunit is used for opening the WAN port with normal connectivity and executing the judgment to judge whether all the WAN ports are verified;
the second determining subunit is used for determining that the WAN port needing to be verified is the WAN port with abnormal connectivity if the WAN port needing to be verified does not have the link or IP for the communication check;
and the closing subunit is used for closing the WAN ports with abnormal connectivity and executing the judgment to judge whether all the WAN ports are verified.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.
The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.
Compared with the prior art, the invention has the beneficial effects that: according to the invention, the load balancing router is constructed to be connected with a plurality of 5G CPE and the terminals, the load balancing router is used for detecting the connectivity of each WAN port by utilizing the mwan3 protocol, the WAN port with normal connectivity is opened, when an internet access request is obtained, the internet access request is forwarded to the corresponding 5G CPE through the WAN port according to a primary and standby strategy or a global load balancing strategy so as to obtain return data from the 5G CPE, and the return data is forwarded to the terminals through the routing table, so that the technical problems that the coverage of a single 5G operator is limited, the network is unstable, and the multi-path uplink load balancing of a multi-operator network cannot be realized are solved.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a multi-path uplink load balancing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a multi-path uplink load balancing method according to an embodiment of the present invention;
fig. 3 is a schematic sub-flow diagram of a multi-path uplink load balancing method according to an embodiment of the present invention;
fig. 4 is a sub-flow diagram of a multi-path uplink load balancing method according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a multi-path uplink load balancing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a detection unit of the multi-path uplink load balancing apparatus according to the embodiment of the present invention;
fig. 7 is a schematic block diagram of a forwarding unit of a multi-path uplink load balancing apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "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 the specification of the present invention 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 this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a multi-path uplink load balancing method according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of a multi-path uplink load balancing method according to an embodiment of the present invention. The multi-path uplink load balancing method is applied to a server. The server is a load balancing router, performs data interaction with a plurality of 5G CPEs and terminals, connects the plurality of 5G CPEs with the terminals by using the load balancing router, detects the connectivity of each WAN port at regular time, forwards an internet access request of the terminal to the corresponding 5G CPE through the WAN port, and realizes multi-path uplink load balancing of the multi-operator network by means of a load balancing strategy.
Fig. 2 is a schematic flow chart of a multi-path 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.
And S110, constructing connection with a plurality of 5G CPE and connection with a terminal.
In this embodiment, a plurality of 5G CPEs are connected to a plurality of WAN (Wide Area Network) ports of the load balancing router via a gigabit cable. And connecting equipment needing to surf the internet, namely a terminal, to the load balancing router in a Local Area Network (LAN) port or wireless Access Point (AP) mode.
Wherein, a plurality of 5G CPE (Customer Premise Equipment) form a wireless broadband; specifically, a plurality of the 5G CPE dials to a base station through a 5G wireless communication protocol to form a wireless broadband. And multiple operators dial, so that the defect of insufficient 5G wireless coverage signals of a single operator is overcome.
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 tolerance processing on the connected wireless broadband.
S120, configuring an inspection strategy of each WAN port connected with the 5G CPE by using the mwan3 protocol.
Combining a plurality of wireless broadband by using an mwan3 protocol, and providing a network multipath load balancing function for LAN connection equipment and AP connection equipment of the load balancing router; the mwan3 protocol is used to provide the function of abnormal fast switching of network provider network for the LAN connection device and wireless AP connection device of the load balancing router by combining a plurality of wireless broadband.
Developing and realizing mwan3 protocol, namely a Load balancing/failure with multiple WAN interfaces protocol, on the Load balancing router, routing a plurality of WAN ports, and realizing Load balancing and quick disaster tolerance; the equipment accessed to the LAN port of the load balancing router realizes the load balancing and quick disaster recovery effects of surfing the internet; and the equipment connected with the AP signal of the load balancing router realizes the load balancing and quick disaster recovery effects of the Internet.
S130, detecting the connectivity of each WAN port according to the checking strategy at regular time, and opening the WAN port with normal connectivity.
In this embodiment, the check policy refers to whether to connect the checked link or IP.
In an embodiment, referring to fig. 3, the step S130 may include steps S131 to S137.
S131, judging whether all WAN ports are verified;
s132, if not all WAN ports are verified, acquiring the WAN port needing to be verified;
s133, judging whether the WAN port needing to be verified is communicated with the link or IP to be checked;
s134, if the WAN port needing to be verified is communicated with the link or the IP to be checked, determining that the WAN port needing to be verified is the WAN port with normal connectivity;
s135, opening the WAN port with normal connectivity, and executing the judgment to judge whether all the WAN ports are verified;
s136, if the WAN port needing to be verified does not have the link or IP for checking, determining that the WAN port needing to be verified is the WAN port with abnormal connectivity;
and S137, closing the WAN ports with abnormal connectivity, and executing the judgment to judge whether all the WAN ports are verified.
If all WAN ports are checked, the step S140 is executed.
Developing an implementation program of the mwan3 protocol on the load balancing router, wherein at the moment, a plurality of WAN ports connected with the load balancing router can already have multi-path internet access outlet capacity; the mwan3 protocol realizes the WAN port abnormity inspection strategy, configures IP or connection whether the inspection of each WAN port is communicated, and the program regularly inspects whether each WAN port is normal and effective to ensure the connectivity of the WAN port; the load balancing router regularly checks the wireless broadband state, regularly judges the connection state of each WAN port according to a checking strategy, automatically eliminates the networking routing strategy of the invalid WAN when the wireless broadband is disconnected or the Internet is abnormal, timely adjusts the WAN connection route capable of being accessed to the Internet, ensures that the Internet can be quickly switched to the wireless network of an operator, and achieves the disaster tolerance effect.
And S140, acquiring the internet access request of the terminal.
In this embodiment, the internet access request refers to a request for a terminal to connect to the 5G CPE.
S150, 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 obtain the return data from the 5G CPE.
In this embodiment, the returned data refers to response data fed back by the 5G CPE according to the internet access request.
Specifically, the load balancing policy includes a master/slave policy and a global load balancing policy; the main and standby strategy is to transmit the internet request through a main WAN port according to the priority of the jumping points of the WAN; and the global load balancing strategy is to calculate the flow of each WAN port and perform load balancing distribution of the flow according to flow statistics.
In addition, the main and standby strategy sets the hop point measurement of the main WAN port to 1 and the component values to 1000, and sets the hop point measurement of other WAN ports to 100; the global load balancing policy sets the hop metrics for all WAN ports to all 1 and the component values to 1000.
In an 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 main/standby strategy;
s152, if the load balancing strategy corresponding to the WAN port is a main/standby strategy, determining a main WAN port;
s153, the main WAN port is utilized to forward the internet surfing request to the corresponding 5G CPE so as to obtain return data from the 5G CPE;
s154, if the load balancing strategy corresponding to the WAN port is not the main/standby strategy, calculating the opened flow of the WAN port, 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.
Specifically, the terminal initiates an internet request to the load balancing router, and the load balancing router forwards the internet request from the effective wireless broadband connection through a load balancing algorithm, and forwards the return data back to the internet device through the routing table when the request returns.
And S160, forwarding the return data to the terminal through the routing table.
The embodiment can realize the effect of internet traffic load balancing of a plurality of live broadcast devices; fast recovery of operator wireless network faults in the live broadcast process; fast recovery of single CPE device operational failure
The embodiment solves the problems of insufficient coverage of a single operator 5G base station and multi-path uplink load balancing, firstly, a plurality of 5G CPEs are used for realizing that a plurality of operators dial to form a wireless broadband and connect the wireless broadband to a WAN port on a load balancing router, the load balancing router carries out load balancing on the plurality of wireless broadband through developing and realizing a mwan3 protocol, so that equipment for connecting a LAN port of the load balancing router and an AP can share a 5G internet link and the load balancing, when a single operator breaks the line, a load balancing program can close the WAN port route to enable the WAN port route to be quickly off-line, a method for quickly and automatically switching other operators for flow is realized, and smooth operation and fault switching of a live broadcast scene are ensured.
According to the multipath uplink load balancing method, the load balancing router is connected with the plurality of 5G CPE and the terminal, the load balancing router is used for detecting the connectivity of each WAN port by utilizing the mwan3 protocol, the WAN port with normal connectivity is opened, when an internet access request is obtained, the internet access request is forwarded to the corresponding 5G CPE through the WAN port according to a main and standby strategy or a global load balancing strategy so as to obtain return data from the 5G CPE, and the return data is forwarded to the terminal through the routing table, so that the technical problems that the coverage of a single 5G operator is limited, the network is unstable, and the multipath 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 executing the above-mentioned multi-path uplink load balancing method, and the apparatus 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 obtaining unit 304, a forwarding unit 305, and a returning unit 306.
The building unit 301 is configured to build connections with a plurality of 5G CPEs and connections with a terminal, where the plurality of 5G CPEs form a wireless broadband; a configuration unit 302, configured to configure an inspection 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 at regular time according to the inspection policy, and open a WAN port with normal connectivity; a request obtaining unit 304, configured to obtain an internet access request of a terminal; the forwarding unit 305 is configured to forward the internet access 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 return data from the 5G CPE; a returning unit 306, configured to forward the returned data to the terminal through the routing table.
In one embodiment, as shown in fig. 6, the detection unit 303 includes a checking and judging sub-unit 3031, a WAN port acquiring sub-unit 3032, a communication judging sub-unit 3033, a first determining sub-unit 3034, an opening sub-unit 3035, a second determining sub-unit 3036, and a closing sub-unit 3037.
A checking and judging subunit 3031, configured to judge whether all WAN ports have been checked; and if all the WAN ports are verified, executing the network access request of the acquisition terminal. A WAN port acquiring subunit 3032, configured to acquire a WAN port to be verified if all WAN ports are not verified; a connection judgment subunit 3033, configured to judge whether the WAN port to be verified is connected to the link or IP to be checked; a first determining subunit 3034, configured to determine, if the WAN port that needs to be verified communicates with the link or the IP to be checked, that the WAN port that needs to be verified is a WAN port with normal connectivity; the opening subunit 3035 is configured to open a WAN port with normal connectivity, and execute the judgment to determine whether all WAN ports are verified; a second determining subunit 3036, configured to determine, if the WAN port that needs to be verified does not communicate the link or the IP of the inspection, that the WAN port that needs to be verified is a WAN port with abnormal connectivity; a closing subunit 3037, configured to close the WAN port with abnormal connectivity, and execute the determination to determine whether all WAN ports have been verified.
In an embodiment, referring to fig. 7, the forwarding unit 305 includes a policy determination subunit 3051, a primary WAN port determination subunit 3052, a first forwarding subunit 3053, and a second forwarding subunit 3054.
A policy determination subunit 3051, configured to determine whether the load balancing policy corresponding to the WAN port is a master/standby 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 the main standby policy; the first forwarding subunit 3053 is configured to forward, by using the main WAN port, the internet access request to the corresponding 5G CPE to obtain return data from the 5G CPE; the second forwarding subunit 3054 is configured to, if the load balancing policy corresponding to the WAN port is not the primary/standby policy, calculate a traffic of the opened WAN port, distribute an internet access request to the WAN port according to the traffic, and forward the internet access request to the corresponding 5G CPE through the WAN port, so as to obtain return data from the 5G CPE.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the 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, no further description is provided herein.
The multi-path uplink load balancing apparatus 300 may be implemented in the form of a computer program, which can be run 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, wherein the server may be an independent server or a server cluster composed of a plurality of servers.
Referring 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 programs 5032 include program instructions that, when executed, cause the processor 502 to perform a method of multi-lane upstream load balancing.
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 operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be enabled to perform a multi-channel uplink load balancing method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration relevant to the present teachings and does not constitute a limitation on the computer device 500 to which the present teachings may be applied, and that a particular computer device 500 may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
establishing connection with a plurality of 5G CPE and connection with a terminal, wherein the plurality of 5G CPE form a wireless broadband; configuring an inspection strategy of each WAN port connected with the 5G CPE by using the mwan3 protocol; detecting the connectivity of each WAN port according to the inspection strategy at regular time, and opening the WAN port with normal connectivity; acquiring a network access request of a terminal; 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 obtain return data from the 5G CPE; and forwarding the return data to the terminal through the routing table.
The load balancing strategy comprises a main/standby strategy and a global load balancing strategy; the main and standby strategy is to transmit the internet request through a main WAN port according to the priority of the jumping points of the WAN; and the global load balancing strategy is to calculate the flow of each WAN port and perform load balancing distribution of the flow according to flow statistics.
In an 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 the 5G CPE dials to the base station through a 5G wireless communication protocol to form a wireless broadband.
In an embodiment, when the step of detecting connectivity of each WAN port according to the inspection policy and opening a WAN port with normal connectivity is implemented by the processor 502, the following steps are specifically implemented:
judging whether all WAN ports are checked; if not, acquiring the WAN port needing to be verified; judging whether the WAN port needing to be checked is communicated with the link or the IP to be checked; if the WAN port needing to be verified is communicated with the link or the IP to be checked, determining that the WAN port needing to be verified is the WAN port with normal connectivity; opening the WAN port with normal connectivity, and executing the judgment to judge whether all the WAN ports are verified; if the WAN port needing to be verified does not communicate with the link or IP to be checked, determining that the WAN port needing to be verified is the WAN port with abnormal connectivity; and closing the WAN ports with abnormal connectivity, and executing the judgment to judge whether all the WAN ports are verified.
In an embodiment, after the step of determining whether all WAN ports are verified, the processor 502 further performs the following steps:
and if all the WAN ports are verified, executing the network access request of the acquisition terminal.
In an embodiment, when implementing the step of forwarding the internet access 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/standby strategy or not; if the load balancing strategy corresponding to the WAN port is a main/standby strategy, determining a main WAN port; forwarding the internet surfing request to the corresponding 5G CPE by using the main WAN port so as to obtain return data from the 5G CPE; if the load balancing strategy corresponding to the WAN port is not the main/standby strategy, calculating the opened flow of the WAN port, distributing an internet access request to the WAN port according to the flow, and forwarding the internet access request to the corresponding 5GCPE through the WAN port so as to acquire return data from the 5G CPE.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may 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, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:
establishing connection with a plurality of 5G CPE and connection with a terminal, wherein the plurality of 5G CPE form a wireless broadband; configuring an inspection strategy of each WAN port connected with the 5G CPE by using the mwan3 protocol; detecting the connectivity of each WAN port according to the inspection strategy at regular time, and opening the WAN port with normal connectivity; acquiring a network access request of a terminal; 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 obtain return data from the 5G CPE; and forwarding the return data to the terminal through the routing table.
The load balancing strategy comprises a main/standby strategy and a global load balancing strategy; the main and standby strategy is to transmit the internet request through a main WAN port according to the priority of the jumping points of the WAN; and the global load balancing strategy is to calculate the flow of each WAN port and perform load balancing distribution of the flow according to flow statistics.
In an embodiment, when the processor executes the computer program to implement the step of forming a wireless broadband by the plurality of 5 GCPEs, the following steps are specifically implemented:
and the 5G CPE dials to the base station through a 5G wireless communication protocol to form a wireless broadband.
In an embodiment, when the processor executes the computer program to implement the steps of detecting connectivity of each WAN port according to the inspection policy at the timing, and opening a WAN port with normal connectivity, the following steps are specifically implemented:
judging whether all WAN ports are checked; if not, acquiring the WAN port needing to be verified; judging whether the WAN port needing to be checked is communicated with the link or the IP to be checked; if the WAN port needing to be verified is communicated with the link or the IP to be checked, determining that the WAN port needing to be verified is the WAN port with normal connectivity; opening the WAN port with normal connectivity, and executing the judgment to judge whether all the WAN ports are verified; if the WAN port needing to be verified does not communicate with the link or IP to be checked, determining that the WAN port needing to be verified is the WAN port with abnormal connectivity; and closing the WAN ports with abnormal connectivity, and executing the judgment to judge whether all the WAN ports are verified.
In an embodiment, after the step of determining whether all WAN ports are verified is implemented by the processor executing the computer program, the following steps are further implemented:
and if all the WAN ports are verified, executing the network access request of the acquisition terminal.
In an embodiment, when the processor executes the computer program to implement the step of forwarding the internet access request to the corresponding 5G CPEs through the WAN ports according to the load balancing policy corresponding to the WAN ports to obtain the return data from the 5G CPEs, the following steps are specifically implemented:
judging whether the load balancing strategy corresponding to the WAN port is a main/standby strategy or not; if the load balancing strategy corresponding to the WAN port is a main/standby strategy, determining a main WAN port; forwarding the internet surfing request to the corresponding 5G CPE by using the main WAN port so as to obtain return data from the 5G CPE; if the load balancing strategy corresponding to the WAN port is not the main/standby strategy, calculating the opened flow of the WAN port, distributing an internet access request to the WAN port according to the flow, and forwarding the internet access 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 usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly 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 implementation. 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 embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments 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, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
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 merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute 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 specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. The multipath uplink load balancing method is characterized by comprising the following steps:
establishing connection with a plurality of 5G CPE and connection with a terminal, wherein the plurality of 5G CPE form a wireless broadband;
configuring an inspection strategy of each WAN port connected with the 5G CPE by using the mwan3 protocol;
detecting the connectivity of each WAN port according to the inspection strategy at regular time, and opening the WAN port with normal connectivity;
acquiring a network access request of a terminal;
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 obtain return data from the 5G CPE;
and forwarding the return data to the terminal through the routing table.
2. The method according to claim 1, wherein the step of combining the plurality of pieces of 5G CPE into a wireless broadband comprises:
and the 5G CPE dials to the base station through a 5G wireless communication protocol to form a wireless broadband.
3. The multi-path uplink load balancing method according to claim 1, wherein the periodically detecting the connectivity of each WAN port according to the inspection policy and opening the WAN port with normal connectivity comprises:
judging whether all WAN ports are checked;
if not, acquiring the WAN port needing to be verified;
judging whether the WAN port needing to be checked is communicated with the link or the IP to be checked;
if the WAN port needing to be verified is communicated with the link or the IP to be checked, determining that the WAN port needing to be verified is the WAN port with normal connectivity;
opening the WAN port with normal connectivity, and executing the judgment to judge whether all the WAN ports are verified;
if the WAN port needing to be verified does not communicate with the link or IP to be checked, determining that the WAN port needing to be verified is the WAN port with abnormal connectivity;
and closing the WAN ports with abnormal connectivity, and executing the judgment to judge whether all the WAN ports are verified.
4. The method according to claim 3, wherein after determining whether all WAN ports have been verified, the method further comprises:
and if all the WAN ports are verified, executing the network access request of the acquisition terminal.
5. The multi-path uplink load balancing method according to claim 1, wherein the load balancing policy includes a master/slave policy and a global load balancing policy; the main and standby strategy is to transmit the internet request through a main WAN port according to the priority of the jumping points of the WAN; and the global load balancing strategy is to calculate the flow of each WAN port and perform load balancing distribution of the flow according to flow statistics.
6. The multi-path uplink load balancing method according to claim 5, wherein the forwarding the internet access request to the corresponding 5G CPEs through the WAN ports according to the load balancing policy corresponding to the WAN ports to obtain the return data from the 5G CPEs includes:
judging whether the load balancing strategy corresponding to the WAN port is a main/standby strategy or not;
if the load balancing strategy corresponding to the WAN port is a main/standby strategy, determining a main WAN port;
forwarding the internet surfing request to the corresponding 5G CPE by using the main WAN port so as to obtain return data from the 5G CPE;
if the load balancing strategy corresponding to the WAN port is not the main/standby strategy, calculating the opened flow of the WAN port, distributing an internet access request to the WAN port according to the flow, and forwarding the internet access request to the corresponding 5G CPE through the WAN port so as to acquire return data from the 5G CPE.
7. Multichannel uplink load balancing device, its characterized in that includes:
the system comprises a construction unit and a control unit, wherein the construction unit is used for constructing connection with a plurality of 5G CPE and connection with a terminal, and the plurality of 5G CPE form a wireless broadband;
a configuration unit, configured to configure an inspection 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 inspection strategy at regular time and opening the WAN port with normal connectivity;
the request acquisition unit is used for acquiring an internet access 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 obtain return data from the 5G CPE;
and the return unit is used for forwarding the return data to the terminal through the routing table.
8. The multi-path uplink load balancing apparatus according to claim 7, wherein the detecting unit includes:
the checking and judging subunit is used for judging whether all the WAN ports are checked completely;
the WAN port acquisition subunit is used for acquiring the WAN port needing to be verified if all the WAN ports are not verified;
the communication judging subunit is used for judging whether the WAN port needing to be checked is communicated with the link or the IP to be checked;
the first determining subunit is used for determining that the WAN port needing to be verified is a WAN port with normal connectivity if the WAN port needing to be verified is communicated with the link or the IP of the inspection;
the opening subunit is used for opening the WAN port with normal connectivity and executing the judgment to judge whether all the WAN ports are verified;
the second determining subunit is used for determining that the WAN port needing to be verified is the WAN port with abnormal connectivity if the WAN port needing to be verified does not have the link or IP for the communication check;
and the closing subunit is used for closing the WAN ports with abnormal connectivity and executing the judgment to judge whether all the WAN ports are verified.
9. A computer device, characterized in that the computer device 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 to 6.
10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.
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 true CN113810945A (en) 2021-12-17
CN113810945B 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 (9)

* 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
US20120106346A1 (en) * 2010-10-28 2012-05-03 Verizon Patent And Licensing Inc. Load balancing to provide a target grade of service (gos)
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

Patent Citations (9)

* 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
US20120106346A1 (en) * 2010-10-28 2012-05-03 Verizon Patent And Licensing Inc. Load balancing to provide a target grade of service (gos)
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
CN113810945B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN111886833B (en) Method for redirecting control channel messages and device for implementing the method
RU2651149C2 (en) Sdn-controller, data processing center system and the routed connection method
US8438307B2 (en) Method and device of load-sharing in IRF stack
US8817593B2 (en) Method and apparatus providing failover for a point to point tunnel for wireless local area network split-plane environments
CN108123824B (en) Network fault detection method and device
EP3665865A1 (en) Method and system of a high availability enhancements to a computer network
CN111682989B (en) Method, device and system for detecting port link state
CN108306777B (en) SDN controller-based virtual gateway active/standby switching method and device
US10454809B2 (en) Automatic network topology detection for merging two isolated networks
JP2008539631A (en) Connection between Power over Ethernet (registered trademark) management device and Ethernet (registered trademark) device
US20110022652A1 (en) Digital signal processor clustering in integrated media-services gateways
WO2018188313A1 (en) Method and apparatus for switching services in backup network
CN110891018B (en) Network traffic recovery method and device, SDN controller and storage medium
US20140321261A1 (en) Communications network
US8446818B2 (en) Routed split multi-link trunking resiliency for wireless local area network split-plane environments
WO2020114017A1 (en) Data center traffic exchange method and apparatus, device and storage medium
KR100474677B1 (en) Method for detecting failure of routing protocol module in distributed architecture router
CN113938405B (en) Data processing method and device
US9106558B2 (en) Switch device, information processing apparatus, and method of controlling switching device
CN112187633A (en) Link fault convergence method and device, electronic equipment and storage medium
CN105636086A (en) Network mode switching processing method, network mode switching processing device and terminal comprising network mode switching processing device
CN113810945A (en) Multi-path uplink load balancing method and device, computer equipment and storage medium
CN113676408B (en) Routing method, system, device and storage medium for virtual private network
CN112637051B (en) Path detection message forwarding method and device
CN103997422A (en) Fault processing method and device for IP interface board

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
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.