Load balancing method, device and equipment based on edge cloud network

CN116887353BActive Publication Date: 2026-10-27CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210311840.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2026-10-27
Estimated Expiration
2042-03-28

AI Technical Summary

Technical Problem

[0004]本申请提供一种基于边缘云网络的负载均衡方法、装置及设备,用以解决5G云网融合一体机转发用户数据时传输稳定性较差的问题

Benefits of technology

[0054]第五方面,本申请提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如第一方面任一项所述的基于边缘云网络的负载均衡方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116887353B_ABST
    Figure CN116887353B_ABST
Patent Text Reader

Abstract

The application provides a load balancing method, device and equipment based on an edge cloud network, applied to a server, wherein the server comprises at least two network cards, each network card comprises at least two ports, the ports in different network cards have a binding relationship, the method comprises the following steps: receiving a first data packet to be processed from a first virtual local area network (VLAN) sub-interface; determining the type of the first data packet, wherein the type of the first data packet is an N3 data packet or an N6 data packet; determining a target interface in the interfaces of the at least two network cards according to the type of the first data packet, and forwarding the first data packet through the target interface. The transmission stability of a 5G cloud network integrated machine when forwarding user data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network communication technology, and in particular to a load balancing method, apparatus and device based on edge cloud network. Background Technology

[0002] The 5G edge cloud network converged all-in-one machine is a platform that integrates 5G network and edge computing capabilities.

[0003] The 5G edge cloud-network converged appliance provides 5G private network services to industry users by sinking the 5G core network User Plane Function (UPF) network elements and adding Session Management Function (SMF) and Access and Mobility Management Function (AMF) network elements. Within the 5G edge cloud-network converged appliance, the UPF network elements forward user data through the N3 and N6 interfaces. Currently, the N3 and N6 interfaces forward user data via a single outgoing link. However, with the increasing number of users, this single outgoing link cannot meet their network bandwidth and stability requirements, resulting in poor transmission stability when the 5G cloud-network converged appliance forwards user data. Summary of the Invention

[0004] This application provides a load balancing method, apparatus, and device based on edge cloud networks to solve the problem of poor transmission stability when 5G cloud-network converged integrated machines forward user data.

[0005] In a first aspect, this application provides a load balancing method based on an edge cloud network, applied to a server, wherein the server includes at least two network interface cards (NICs), each NIC includes at least two ports, and the ports in different NICs have a binding relationship, the method comprising:

[0006] Receive the first data packet to be processed from the first VLAN sub-interface of the first virtual LAN;

[0007] Determine the type of the first data packet; the type of the first data packet is either an N3 data packet or an N6 data packet.

[0008] Based on the type of the first data packet, a target interface is determined among the interfaces of the at least two network interface cards, and the first data packet is forwarded through the target interface.

[0009] In one possible implementation, determining the target interface among the interfaces of the at least two network interface cards based on the type of the first data packet includes:

[0010] Based on the type of the first data packet, determine the corresponding traffic splitting algorithm for the first data packet;

[0011] Based on the traffic splitting algorithm corresponding to the first data packet, the target interface is determined among the interfaces of the at least two network cards.

[0012] In one possible implementation, determining the traffic splitting algorithm corresponding to the first data packet based on its type includes:

[0013] If the type of the first data packet is an N3 data packet, then the traffic splitting algorithm corresponding to the first data packet is determined to be a hash traffic splitting algorithm based on Internet Protocol IP address;

[0014] If the type of the first data packet is N6 data packet, then the traffic splitting algorithm corresponding to the first data packet is determined to be a hash traffic splitting algorithm based on IP address and port number.

[0015] In one possible implementation, the target interface is determined among the interfaces of the at least two network interface cards according to the traffic splitting algorithm corresponding to the first data packet, including:

[0016] If the traffic splitting algorithm corresponding to the first data packet is a hash-based traffic splitting algorithm based on IP address, then the target interface is determined from the interfaces of the at least two network cards according to the IP address of the first data packet.

[0017] If the traffic splitting algorithm corresponding to the first data packet is a hash-based traffic splitting algorithm based on IP address and port number, then the target interface is determined among the interfaces of the at least two network cards according to the IP address and port number of the first data packet.

[0018] In one possible implementation, determining the type of the first data packet includes:

[0019] If the first data packet is sent or received from the N3 interface, then the type of the first data packet is determined to be an N3 data packet;

[0020] If the first data packet is sent or received from the N6 interface, then the type of the first data packet is determined to be an N6 data packet.

[0021] In one possible implementation, the method further includes:

[0022] After configuring the at least two network cards in the server, obtain the operational detection results of the at least two network cards in the server;

[0023] The ports of the at least two network interface cards (NICs) are bound together, and the mode of the at least two NICs is set to Dynamic Link Aggregation (LACP) mode.

[0024] Configure VLAN sub-interfaces for ports on at least two network interface cards in the server.

[0025] In one possible implementation, the first data packet is a 5G data packet.

[0026] Secondly, this application provides a load balancing device based on an edge cloud network, applied to a server. The server includes at least two network interface cards (NICs), each NIC including at least two ports, with the ports in different NICs having a binding relationship. The load balancing device based on the edge cloud network includes: a receiving module, a determining module, and a forwarding module, wherein...

[0027] The receiving module is used to receive the first data packet to be processed from the first virtual local area network (VLAN) sub-interface;

[0028] The determining module is used to determine the type of the first data packet, wherein the type of the first data packet is either an N3 data packet or an N6 data packet;

[0029] The forwarding module is used to determine the target interface among the interfaces of the at least two network cards according to the type of the first data packet, and forward the first data packet through the target interface.

[0030] In one possible implementation, the forwarding module is specifically used for:

[0031] Based on the type of the first data packet, determine the corresponding traffic splitting algorithm for the first data packet;

[0032] Based on the traffic splitting algorithm corresponding to the first data packet, the target interface is determined among the interfaces of the at least two network cards.

[0033] In one possible implementation, the forwarding module is specifically used for:

[0034] Based on the type of the first data packet, determine the corresponding traffic splitting algorithm for the first data packet;

[0035] If the type of the first data packet is an N3 data packet, then the traffic splitting algorithm corresponding to the first data packet is determined to be a hash traffic splitting algorithm based on Internet Protocol IP address;

[0036] If the type of the first data packet is N6 data packet, then the traffic splitting algorithm corresponding to the first data packet is determined to be a hash traffic splitting algorithm based on IP address and port number.

[0037] In one possible implementation, the forwarding module is specifically used for:

[0038] Based on the traffic splitting algorithm corresponding to the first data packet, the target interface is determined among the interfaces of the at least two network cards;

[0039] If the traffic splitting algorithm corresponding to the first data packet is a hash-based traffic splitting algorithm based on IP address, then the target interface is determined from the interfaces of the at least two network cards according to the IP address of the first data packet.

[0040] If the traffic splitting algorithm corresponding to the first data packet is a hash-based traffic splitting algorithm based on IP address and port number, then the target interface is determined among the interfaces of the at least two network cards according to the IP address and port number of the first data packet.

[0041] In one possible implementation, the determining module is specifically used for:

[0042] Determine the type of the first data packet;

[0043] If the first data packet is sent or received from the N3 interface, then the type of the first data packet is determined to be an N3 data packet;

[0044] If the first data packet is sent or received from the N6 interface, then the type of the first data packet is determined to be an N6 data packet.

[0045] In one possible implementation, the edge cloud network-based load balancing device further includes an acquisition module and a binding module, wherein,

[0046] The acquisition module is used to acquire the operation detection results of the at least two network cards in the server after the at least two network cards are configured in the server;

[0047] The binding module is used to bind ports in the at least two network cards and to set the mode of the at least two network cards to Dynamic Link Aggregation (LACP) mode.

[0048] The binding module is also used to set up VLAN sub-interfaces for ports in the at least two network cards in the server.

[0049] In one possible implementation, the first data packet is a 5G data packet.

[0050] Thirdly, this application provides a load balancing device based on an edge cloud network, including: a processor and a memory;

[0051] The memory stores computer-executed instructions;

[0052] The processor executes computer execution instructions stored in the memory, causing the processor to perform a load balancing method based on an edge cloud network as described in any of the first aspects.

[0053] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the load balancing method based on an edge cloud network as described in any of the first aspects.

[0054] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the load balancing method based on an edge cloud network as described in any of the first aspects.

[0055] The load balancing method based on edge cloud networks provided in this application involves configuring at least two network interface cards (NICs) in a server. The server performs bond binding on these two NICs, selecting dynamic link aggregation as the bonding mode. The two bonded interfaces are then used as the N3 and N6 interfaces of a 5G cloud-network converged appliance. This method enables user data forwarding via multiple egress links on the N3 and N6 interfaces, improving the transmission stability of the 5G cloud-network converged appliance when forwarding user data. Attached Figure Description

[0056] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0057] Figure 1 A schematic diagram of an edge cloud network system architecture provided in this application embodiment;

[0058] Figure 2 A flowchart illustrating a load balancing method based on an edge cloud network provided in an embodiment of this application;

[0059] Figure 3 This is a schematic diagram of cross-NIC binding provided in an embodiment of this application;

[0060] Figure 4 A flowchart illustrating another load balancing method based on an edge cloud network provided in this application embodiment;

[0061] Figure 5 A schematic diagram of the structure of a load balancing device based on an edge cloud network provided in an embodiment of this application;

[0062] Figure 6 A schematic diagram of another load balancing device based on an edge cloud network provided in an embodiment of this application;

[0063] Figure 7 A schematic diagram of the hardware structure of the load balancing device based on edge cloud network provided in this application. Detailed Implementation

[0064] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0065] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0066] To facilitate understanding, let's first combine... Figure 1 The architecture of the edge cloud network system involved in the embodiments of this application will be described.

[0067] Figure 1 This is a schematic diagram of an edge cloud network system architecture provided for an embodiment of this application. Figure 1 As shown, the network system includes: terminal equipment, base stations, 5G cloud-network converged all-in-one machine, enterprise intranet, and public network unified data management (UDM) network elements.

[0068] In the aforementioned network system architecture, the base station establishes connections between terminal devices and the 5G cloud-network converged appliance to forward user data. The 5G cloud-network converged appliance includes at least UPF, SMF, and AMF network elements. The SMF and AMF network elements interface with the public UDM network element to send and receive signaling data. The UPF network element interfaces with the base station and the enterprise intranet, and forwards user data through the N3 and N6 interfaces.

[0069] In related technologies, the N3 and N6 interfaces forward user data through a single outgoing link. However, the bandwidth resources and operational stability of a single outgoing link are relatively poor, resulting in poor transmission stability when the 5G cloud-network converged appliance forwards user data.

[0070] To address the aforementioned technical issues, this embodiment utilizes multiple network interface cards (NICs) within the 5G cloud-network converged integrated server. These NICs are bonded together to create several bond interfaces. The 5G cloud-network converged integrated server uses these bond interfaces as the N3 and N6 interfaces, enabling the forwarding of user data through multiple egress links on the N3 and N6 interfaces. This improves the transmission stability of the 5G cloud-network converged integrated server when forwarding user data.

[0071] The technical solutions shown in this application will now be described through specific embodiments. It should be noted that the following embodiments may exist independently or in combination with each other; for the same or similar content, the description will not be repeated in different embodiments.

[0072] Figure 2 This is a flowchart illustrating a load balancing method based on an edge cloud network, provided as an embodiment of this application. Please refer to... Figure 2 The method may include:

[0073] S201. Receive the first data packet to be processed from the first Virtual Local Area Network (VLAN) sub-interface.

[0074] The execution entity in this embodiment is a server. Optionally, the server can be a 5G cloud-network converged integrated server.

[0075] The first data packet is the user data to be forwarded at the current moment. Optionally, the first data packet is a 5G data packet. The UPF network element can forward the first data packet.

[0076] In one possible implementation, the server includes at least two network interface cards (NICs), each NIC includes at least two ports, and the ports in different NICs are bound together.

[0077] For example, the server may include two two-port network interface cards (NICs). The two ports of each NIC are bonded to the two ports of the other NIC. Optionally, the cross-NIC bonding can be a bond binding.

[0078] like Figure 3 As shown, Figure 3 This is a schematic diagram illustrating cross-NIC binding as provided in an embodiment of this application. Please refer to [link / reference]. Figure 3The server includes network interface card (NIC) 1 and NIC 2. Both NIC 1 and NIC 2 have port 1 and port 2, meaning they are both two-port NICs. Port 1 of NIC 1 is bonded to port 1 of NIC 2, resulting in one bond interface. Port 2 of NIC 1 is also bonded to port 2 of NIC 2, resulting in one bond interface.

[0079] It should be noted that the cross-NIC bonding methods between NIC 1 and NIC 2 include, but are not limited to, [specific methods]. Figure 3 The provided binding method allows for cross-NIC port binding between two network interface cards (NICs). For example, port 1 of NIC 1 can be bonded to port 2 of NIC 2, and vice versa.

[0080] In one possible implementation, after configuring at least two network interface cards (NICs) on the server, the operational monitoring results of the at least two NICs on the server are obtained. Ports on the at least two NICs are then bound, and the at least two NICs are set to Dynamic Link Aggregation Control Protocol (LACP) mode. VLAN sub-interfaces are then configured for the ports on the at least two NICs on the server.

[0081] Specifically, after configuring at least two network interface cards (NICs) on the server, their operational status needs to be checked to confirm that they are functioning correctly and can establish dynamic LACP with the peer. For example, the peer could be a stacked switch. After binding at least two NICs on the server, the operating mode of the bound NICs needs to be selected. For example, within a containerized UPF container, the bond interface can be bound using the Data Plane Development Kit (DPDK) to enable the bound NICs to operate under dynamic LACP.

[0082] Within the containerized UPF container, two network cards are transparently transmitted into the container via the Kubernetes host-device container network interface (CNI). Then, bonds and dynamic LACP are configured within the Vector Packet Processing (VPP) framework.

[0083] bond add BondEthernet0 port0 / b / 0

[0084] bond add BondEthernet0 port0 / d / 0

[0085] setint state BondEthernet0 up

[0086] create bond mode lacp load-balance l34

[0087] bond add BondEthernet1 port0 / c / 0

[0088] bond add BondEthernet1 port0 / e / 0

[0089] setint state BondEthernet1 up

[0090] Furthermore, in this embodiment, VLAN sub-interfaces are configured on ports of at least two network interface cards (NICs) within the server to send and receive user data. The 5G cloud-network converged appliance needs to interface with internal network edge computing nodes. VLAN sub-interfaces are generated within the server using the VPP protocol stack, and VLAN data packets reachable from the edge computing nodes are encapsulated using DPDK.

[0091] It should be understood that, in addition to forwarding the aforementioned user data, the 5G cloud-network converged all-in-one machine can also send and receive signaling data.

[0092] In another possible implementation, in addition to the above-mentioned at least two two-port network cards, other network cards are also provided in the server.

[0093] Optionally, the server can bond ports of other network cards and use the bonded interface as the interface for sending and receiving signaling data for the 5G cloud-network converged all-in-one machine.

[0094] Optionally, a VLAN sub-interface can be configured within the server for the bonded interface to send and receive signaling data.

[0095] For example, when sending and receiving signaling data, the 5G cloud-network converged appliance can interface with public network UDM elements. VLAN isolation is achieved within the server's operating system by adding VLAN sub-interfaces to the bond port, and these VLAN sub-interfaces are then transparently transmitted to the corresponding 5G core network elements, such as SMF and AMF elements.

[0096] Specifically, add a bond sub-interface within the server's operating system, create the ` / etc / sysconfig / network-scripts / ifcfg-bond0.300` configuration file, and add the following configuration:

[0097] DEVICE = bond0.300

[0098] BOOTPROTO="static"

[0099] ONBOOT = yes

[0100] IPADDR = 172.30.30.75

[0101] NETMASK = 255.255.0.0

[0102] GATEWAY = 172.30.0.1

[0103] VLAN = yes

[0104] S202. Determine the type of the first data packet. The type of the first data packet is either an N3 data packet or an N6 data packet.

[0105] It should be understood that the UPF network element forwards user data through the N3 and N6 interfaces. The server can determine whether the first data packet is an N3 or N6 data packet based on the interface through which it receives the first data packet.

[0106] Specifically, if the first data packet is sent or received from the N3 interface, then the type of the first data packet is determined to be an N3 data packet. If the first data packet is sent or received from the N6 interface, then the type of the first data packet is determined to be an N6 data packet.

[0107] S203. Based on the type of the first data packet, determine the target interface among the interfaces of at least two network cards, and forward the first data packet through the target interface.

[0108] The target interface is the network interface card that ultimately forwards the first data packet.

[0109] In one possible implementation, after network interface card 1 and network interface card 2 are bonded across network interface cards, the resulting two bond interfaces can be used as the N3 and N6 interfaces of the 5G cloud-network converged integrated machine, respectively. The N3 and N6 interfaces can forward the first data packet.

[0110] It should be understood that for different first data packets, the server selects either the N3 interface or the N6 interface to forward the first data packet, and further selects a network interface card (NIC) port on the N3 interface or a NIC port on the N6 interface to forward the first data packet. That is, the target interface is either a NIC port on the N3 interface or a NIC port on the N6 interface.

[0111] The target interface can be determined as follows: Based on the type of the first data packet, determine the traffic splitting algorithm corresponding to the first data packet. Based on the traffic splitting algorithm corresponding to the first data packet, determine the target interface among the interfaces of at least two network interface cards (NICs).

[0112] Specifically, the server can select the corresponding traffic splitting algorithm based on the type of the data packet, and further determine one of the network interface cards (NIC) ports on the N3 or N6 interface as the target interface based on the traffic splitting algorithm. For example, the traffic splitting algorithm can be a hash-based traffic splitting algorithm based on the content contained in the first data packet.

[0113] The load balancing method based on edge cloud networks provided in this application embodiment involves configuring at least two network interface cards (NICs) in a server. The server performs bond binding on these two NICs, selecting dynamic link aggregation as the bonding mode. The two bonded interfaces are then used as the N3 and N6 interfaces of a 5G cloud-network converged appliance. This method enables user data forwarding via multiple egress links on the N3 and N6 interfaces, improving the transmission stability of the 5G cloud-network converged appliance when forwarding user data.

[0114] Based on any of the above embodiments, the following, in conjunction with Figure 4 This application provides a further detailed description of the load balancing method based on edge cloud networks.

[0115] Figure 4 This is a flowchart illustrating another load balancing method based on an edge cloud network provided in an embodiment of this application. Please refer to... Figure 4 The method may include:

[0116] S401: Receive the first data packet to be processed from the first VLAN sub-interface of the first virtual LAN.

[0117] S402. Determine the type of the first data packet. The type of the first data packet is either an N3 data packet or an N6 data packet.

[0118] It should be noted that the execution process of S401-S402 can be found in the execution process of S201-S202, and will not be repeated here.

[0119] S403. Determine the traffic splitting algorithm corresponding to the first data packet based on its type.

[0120] In this embodiment of the application, the splitting algorithm corresponding to the first data packet can be a hash splitting algorithm based on the content contained in the first data packet.

[0121] In one possible implementation, the traffic splitting algorithm corresponding to the first data packet can be determined as follows: if the type of the first data packet is N3, then the traffic splitting algorithm corresponding to the first data packet is determined to be a hash-based traffic splitting algorithm based on IP address (Layer 3, L3). If the type of the first data packet is N6, then the traffic splitting algorithm corresponding to the first data packet is determined to be a hash-based traffic splitting algorithm based on IP address and port number (Layer 3+4, L3+L4).

[0122] For example, assuming the 5G cloud-network converged appliance receives an N3 data packet, the server selects a hash-based traffic splitting algorithm based on the IP address. Assuming the 5G cloud-network converged appliance receives an N6 data packet, the server selects a hash-based traffic splitting algorithm based on both the IP address and the port number.

[0123] S404. Based on the traffic splitting algorithm corresponding to the first data packet, determine the target interface among the interfaces of at least two network cards.

[0124] In this embodiment of the application, for any N3 data packet or N6 data packet, the server can calculate the corresponding hash value according to the corresponding hash splitting algorithm, and further determine the target interface based on the hash value.

[0125] Specifically, if the traffic splitting algorithm corresponding to the first data packet is a hash-based traffic splitting algorithm based on the IP address, then the target interface is determined from the interfaces of at least two network interface cards (NICs) based on the IP address of the first data packet. If the traffic splitting algorithm corresponding to the first data packet is a hash-based traffic splitting algorithm based on both the IP address and the port number, then the target interface is determined from the interfaces of at least two network interface cards (NICs) based on both the IP address and the port number of the first data packet.

[0126] For example, assuming the first data packet is packet N3, the server selects a hash-based traffic splitting algorithm based on the IP address to calculate the hash value, and determines the target interface in interface N3 based on the hash value. Assuming the first data packet is packet N6, the server selects a hash-based traffic splitting algorithm based on both the IP address and port number to calculate the hash value, and determines the target interface in interface N6 based on the hash value.

[0127] The load balancing method based on edge cloud networks provided in this application uses two bond interfaces bound across network interface cards (NICs) as the N3 and N6 interfaces of a 5G cloud-network converged appliance, respectively. A corresponding hash-based traffic splitting algorithm is used at the N3 and N6 interfaces to determine the NIC interface used for forwarding user data. This method enables user data forwarding via dual-egress links on the N3 and N6 interfaces, improving the transmission stability of the 5G cloud-network converged appliance when forwarding user data.

[0128] Figure 5 This is a schematic diagram of a load balancing device based on an edge cloud network, provided as an embodiment of this application. Please refer to... Figure 5 The edge cloud network-based load balancing device 10 is applied to a server, which includes at least two network interface cards (NICs), each NIC including at least two ports. The ports in different NICs are bound together. The edge cloud network-based load balancing device 10 includes: a receiving module 11, a determining module 12, and a forwarding module 13.

[0129] The receiving module 11 is used to receive the first data packet to be processed from the first virtual local area network (VLAN) sub-interface;

[0130] The determining module 12 is used to determine the type of the first data packet, wherein the type of the first data packet is an N3 data packet or an N6 data packet;

[0131] The forwarding module 13 is used to determine the target interface among the interfaces of the at least two network cards according to the type of the first data packet, and forward the first data packet through the target interface.

[0132] The load balancing device based on edge cloud network provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be repeated here.

[0133] In one possible implementation, the forwarding module 13 is specifically used for:

[0134] Based on the type of the first data packet, determine the corresponding traffic splitting algorithm for the first data packet;

[0135] Based on the traffic splitting algorithm corresponding to the first data packet, the target interface is determined among the interfaces of the at least two network cards.

[0136] In one possible implementation, the forwarding module 13 is specifically used for:

[0137] Based on the type of the first data packet, determine the corresponding traffic splitting algorithm for the first data packet;

[0138] If the type of the first data packet is an N3 data packet, then the traffic splitting algorithm corresponding to the first data packet is determined to be a hash traffic splitting algorithm based on Internet Protocol IP address;

[0139] If the type of the first data packet is N6 data packet, then the traffic splitting algorithm corresponding to the first data packet is determined to be a hash traffic splitting algorithm based on IP address and port number.

[0140] In one possible implementation, the forwarding module 13 is specifically used for:

[0141] Based on the traffic splitting algorithm corresponding to the first data packet, the target interface is determined among the interfaces of the at least two network cards;

[0142] If the traffic splitting algorithm corresponding to the first data packet is a hash-based traffic splitting algorithm based on IP address, then the target interface is determined from the interfaces of the at least two network cards according to the IP address of the first data packet.

[0143] If the traffic splitting algorithm corresponding to the first data packet is a hash-based traffic splitting algorithm based on IP address and port number, then the target interface is determined among the interfaces of the at least two network cards according to the IP address and port number of the first data packet.

[0144] In one possible implementation, the determining module 12 is specifically used for:

[0145] Determine the type of the first data packet;

[0146] If the first data packet is sent or received from the N3 interface, then the type of the first data packet is determined to be an N3 data packet;

[0147] If the first data packet is sent or received from the N6 interface, then the type of the first data packet is determined to be an N6 data packet.

[0148] Figure 6 This is a schematic diagram of another load balancing device based on an edge cloud network provided in an embodiment of this application. Figure 5 Based on the illustrated embodiments, please refer to Figure 6 The load balancing device 10 based on the edge cloud network also includes an acquisition module 14 and a binding module 15, wherein,

[0149] The acquisition module 14 is used to acquire the operation detection results of the at least two network cards in the server after the at least two network cards are configured in the server;

[0150] The binding module 15 is used to bind the ports of the at least two network cards and set the mode of the at least two network cards to Dynamic Link Aggregation (LACP) mode.

[0151] The binding module 15 is also used to set up VLAN sub-interfaces for ports in the at least two network cards in the server.

[0152] In one possible implementation, the first data packet is a 5G data packet.

[0153] The load balancing device based on edge cloud network provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be repeated here.

[0154] Figure 7 This is a schematic diagram of the hardware structure of the load balancing device based on an edge cloud network provided in this application. Please refer to [link / reference]. Figure 7The edge cloud network-based load balancing device 20 may include a processor 21 and a memory 22, wherein the processor 21 and the memory 22 can communicate; for example, the processor 21 and the memory 22 communicate through a communication bus 23, the memory 22 is used to store program instructions, and the processor 21 is used to call the program instructions in the memory to execute the edge cloud network-based load balancing method shown in any of the above method embodiments.

[0155] Optionally, the load balancing device 20 based on the edge cloud network may also include a communication interface, which may include a transmitter and / or a receiver.

[0156] Optionally, the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0157] Optionally, the load balancing device based on edge cloud network shown in the embodiments of this application can be a terminal device, server, chip, processing module, etc.

[0158] This application provides a readable storage medium storing a computer program; the computer program is used to implement the load balancing method based on edge cloud network as described in any of the above embodiments.

[0159] This application provides a computer program product, which includes instructions that, when executed, cause a computer to perform the aforementioned load balancing method based on an edge cloud network.

[0160] All or part of the steps in the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof.

[0161] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable terminal device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable terminal device, generate instructions for implementing the flowchart. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0162] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable terminal device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0163] These computer program instructions can also be loaded onto a computer or other programmable terminal device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0164] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include these modifications and variations.

[0165] In this application, the term "comprising" and its variations can refer to non-limiting inclusion; the term "or" and its variations can refer to "and / or". The terms "first", "second", etc., in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. In this application, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

Claims

1. A load balancing method based on edge cloud networks, characterized in that, Applied to a server, the server including at least two network interface cards (NICs), each NIC including at least two ports, the ports in different NICs having a binding relationship, the method includes: Receive the first data packet to be processed from the first VLAN sub-interface of the first virtual LAN; Determine the type of the first data packet; the type of the first data packet is either an N3 data packet or an N6 data packet. Based on the type of the first data packet, the corresponding traffic splitting algorithm is determined; wherein, if the type of the first data packet is an N3 data packet, the traffic splitting algorithm corresponding to the first data packet is determined to be a hash traffic splitting algorithm based on Internet Protocol IP address; if the type of the first data packet is an N6 data packet, the traffic splitting algorithm corresponding to the first data packet is determined to be a hash traffic splitting algorithm based on IP address and port number. According to the traffic splitting algorithm corresponding to the first data packet, the target interface is determined among the interfaces of the at least two network cards; wherein, if the traffic splitting algorithm corresponding to the first data packet is a hash traffic splitting algorithm based on IP address, then the target interface is determined among the interfaces of the at least two network cards according to the IP address of the first data packet; if the traffic splitting algorithm corresponding to the first data packet is a hash traffic splitting algorithm based on IP address and port number, then the target interface is determined among the interfaces of the at least two network cards according to the IP address and port number of the first data packet. The first data packet is forwarded through the target interface.

2. The method according to claim 1, characterized in that, Determining the type of the first data packet includes: If the first data packet is sent or received from the N3 interface, then the type of the first data packet is determined to be an N3 data packet; If the first data packet is sent or received from the N6 interface, then the type of the first data packet is determined to be an N6 data packet.

3. The method according to claim 1 or 2, characterized in that, The method further includes: After configuring the at least two network cards in the server, obtain the operational detection results of the at least two network cards in the server; The ports of the at least two network interface cards (NICs) are bound together, and the mode of the at least two NICs is set to Dynamic Link Aggregation (LACP) mode. Configure VLAN sub-interfaces for ports on at least two network interface cards in the server.

4. The method according to claim 1 or 2, characterized in that, The first data packet is a 5G data packet.

5. A load balancing device based on an edge cloud network, characterized in that, Applied to servers, the servers include at least two network interface cards (NICs), each NIC includes at least two ports, and the ports in different NICs have a binding relationship. The load balancing device based on the edge cloud network includes: a receiving module, a determining module, and a forwarding module, wherein... The receiving module is used to receive the first data packet to be processed from the first virtual local area network (VLAN) sub-interface; The determining module is used to determine the type of the first data packet, wherein the type of the first data packet is either an N3 data packet or an N6 data packet; The forwarding module is configured to determine the traffic splitting algorithm corresponding to the first data packet based on the type of the first data packet; wherein, if the type of the first data packet is an N3 data packet, the traffic splitting algorithm corresponding to the first data packet is determined to be a hash traffic splitting algorithm based on Internet Protocol (IP) address; if the type of the first data packet is an N6 data packet, the traffic splitting algorithm corresponding to the first data packet is determined to be a hash traffic splitting algorithm based on IP address and port number; and determine the target interface among the interfaces of the at least two network interface cards (NICs) based on the traffic splitting algorithm corresponding to the first data packet; wherein, if the traffic splitting algorithm corresponding to the first data packet is a hash traffic splitting algorithm based on IP address, the target interface is determined among the interfaces of the at least two NICs based on the IP address of the first data packet; if the traffic splitting algorithm corresponding to the first data packet is a hash traffic splitting algorithm based on IP address and port number, the target interface is determined among the interfaces of the at least two NICs based on the IP address and port number of the first data packet; and forward the first data packet through the target interface.

6. A load balancing device based on an edge cloud network, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the load balancing method based on an edge cloud network as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by the processor, implement the load balancing method based on an edge cloud network as described in any one of claims 1 to 4.

8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the load balancing method based on edge cloud network as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Network offloading method, device and system, and computer equipment

    CN108282412A

  • Method, device and equipment for determining configuration information

    CN114189443A