# US 2021/0084537 A1 · Load balance method and apparatus thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0084537 A1
- Document ID: US20210084537A1
- Status: Published application
- Kind: A1
- Application number: 17/105,256
- Filed: 2020-11-25
- Published: 2021-03-18
- Earliest claimed: 2018-05-29
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Shaoqian ZHANG; Hua WANG; Junhui GONG
- Web page: https://patentgrep.com/patent/US20210084537A1

## CPC

- H04L 47/125: by balancing the load, e.g. traffic engineering
- H04W 28/088: among core entities
- H04L 61/2521: Translation architectures other than single NAT servers
- H04L 61/2596: Translation of addresses of the same type other than IP, e.g. translation from MAC to MAC addresses
- H04L 67/1023: based on a hash applied to IP addresses or costs
- H04L 69/324: in the data link layer [OSI layer 2], e.g. HDLC
- H04W 72/02: Selection of wireless resources by user or terminal
- H04W 72/52: based on load
- H04W 80/02: Data link layer protocols
- H04L 2101/622: Layer-2 addresses, e.g. medium access control [MAC] addresses
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

Embodiments of this application provide a load balance method and an apparatus thereof. The method may include the following steps: receiving, by a load balance node, a first service request packet from a service request end, where the first service request packet includes address information of the service request end, address information of a to-be-processed load balance instance, and a MAC address of the load balance node; determining a to-be-processed service member based on the address information of the to-be-processed load balance instance, where the to-be-processed service member is configured to process the first service request packet; and modifying the MAC address of the load balance node in the first service request packet to a MAC address of the to-be-processed service member, to obtain a second service request packet, and sending the second service request packet to a computing node to which the to-be-processed service member belongs.

## Claims

### Claim 1

A load balance method, comprising:
receiving, by a load balance node, a first service request packet from a service request end, wherein the first service request packet comprises address information of the service request end, address information of a to-be-processed load balance instance, and a media access control (MAC) address of the load balance node, and the to-be-processed load balance instance is a load balance instance configured on the load balance node;
determining, by the load balance node, a to-be-processed service member based on the address information of the to-be-processed load balance instance, wherein the to-be-processed service member is configured to process the first service request packet;
modifying, by the load balance node, the MAC address of the load balance node in the first service request packet to a MAC address of the to-be-processed service member, to obtain a second service request packet, wherein the second service request packet comprises the address information of the service request end, the address information of the to-be-processed load balance instance, and the MAC address of the to-be-processed service member; and
sending, by the load balance node, the second service request packet to a computing node to which the to-be-processed service member belongs.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the address information comprises an IP address and a port identifier.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the determining, by the load balance node, a to-be-processed service member based on the address information of the to-be-processed load balance instance comprises:
querying, by the load balance node based on the IP address and the port identifier of the to-be-processed load balance instance, a resource pool corresponding to the to-be-processed load balance instance; and
determining, by the load balance node, the to-be-processed service member from the resource pool according to a load balance algorithm corresponding to the resource pool.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the querying, by the load balance node based on the IP address and the port identifier of the to-be-processed load balance instance, a resource pool corresponding to the to-be-processed load balance instance comprises:
determining, by the load balance node, the to-be-processed load balance instance based on the IP address of the to-be-processed load balance instance;
querying, by the load balance node based on the port identifier of the to-be-processed load balance instance, a listener associated with the to-be-processed load balance instance; and
querying, by the load balance node, a resource pool bound to the listener, and determining the resource pool as the resource pool corresponding to the to-be-processed load balance instance.

### Claim 5

A load balance method, comprising:
receiving, by a computing node, a second service request packet from a load balance node, wherein the second service request packet comprises address information of a service request end, address information of a to-be-processed load balance instance, and a MAC address of a to-be-processed service member, the to-be-processed load balance instance is a load balance instance configured on the load balance node, the second service request packet is obtained by the load balance node by modifying a MAC address of the load balance node in a first service request packet, and the first service request packet is a service request packet sent by the service request end to the load balance node;
modifying, by the computing node based on configuration information, the address information of the to-be-processed load balance instance in the second service request packet to address information of the to-be-processed service member, to obtain a third service request packet; and
sending, by the computing node, the third service request packet to the to-be-processed service member based on the MAC address of the to-be-processed service member.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the method further comprises:
receiving, by the computing node, the configuration information from a load balancer, wherein the configuration information comprises a mapping relationship between the address information of the load balance instance and address information of a service member deployed on the computing node.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the address information comprises an IP address and a port identifier.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the method further comprises:
recording, by the computing node, connection information, wherein the connection information comprises the address information of the service request end, the address information of the to-be-processed load balance instance, and the address information of the to-be-processed service member.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the method further comprises:
receiving, by the computing node, a service response packet from the to-be-processed service member, wherein the service response packet comprises the address information of the to-be-processed service member;
modifying, by the computing node based on the connection information, the address information of the to-be-processed service member in the service response packet to the address information of the to-be-processed load balance instance; and
sending, by the computing node, the modified service response packet to the service request end based on the connection information.

### Claim 10

A load balance node, wherein the load balance node comprises a processor, a transceiver, and a memory, the transceiver is configured to receive and send information, the memory stores a computer-executable instruction, the processor is connected to the memory and the transceiver by using a bus, and when the processor executes the computer-executable instruction stored in the memory, the load balance node is enabled to perform the following steps:
controlling the transceiver to receive a first service request packet from a service request end, wherein the first service request packet comprises address information of the service request end, address information of a to-be-processed load balance instance, and a MAC address of the load balance node, and the to-be-processed load balance instance is a load balance instance configured on the load balance node;
determining a to-be-processed service member based on the address information of the to-be-processed load balance instance, wherein the to-be-processed service member is configured to process the first service request packet;
modifying the MAC address of the load balance node in the first service request packet to a MAC address of the to-be-processed service member, to obtain a second service request packet, wherein the second service request packet comprises the address information of the service request end, the address information of the to-be-processed load balance instance, and the MAC address of the to-be-processed service member; and
controlling the transceiver to send the second service request packet to a computing node to which the to-be-processed service member belongs.

### Claim 11 (depends on 10)

The load balance node according to claim 10, wherein the address information comprises an IP address and a port identifier.

### Claim 12 (depends on 11)

The load balance node according to claim 11, wherein when the load balance node performs the determining a to-be-processed service member based on the address information of the to-be-processed load balance instance, the load balance node is specifically configured to: querying, based on the IP address and the port identifier of the to-be-processed load balance instance, a resource pool corresponding to the to-be-processed load balance instance; and determining the to-be-processed service member from the resource pool according to a load balance algorithm corresponding to the resource pool.

### Claim 13 (depends on 12)

The load balance node according to claim 12, wherein when the load balance node performs querying, based on the IP address and the port identifier of the to-be-processed load balance instance, the resource pool corresponding to the to-be-processed load balance instance, the load balance node is specifically configured to: determining the to-be-processed load balance instance based on the IP address of the to-be-processed load balance instance; querying, based on the port identifier of the to-be-processed load balance instance, a listener associated with the to-be-processed load balance instance; and querying a resource pool bound to the listener, and determining the resource pool as the resource pool corresponding to the to-be-processed load balance instance.

### Claim 14

A computing node, wherein the computing node comprises a processor, a transceiver, and a memory, the transceiver is configured to receive and send information, the memory stores a computer-executable instruction, the processor is connected to the memory and the transceiver by using a bus, and when the processor executes the computer-executable instruction stored in the memory, the computing node is enabled to perform the following steps:
controlling the transceiver to receive a second service request packet from a load balance node, wherein the second service request packet comprises address information of a service request end, address information of a to-be-processed load balance instance, and a MAC address of a to-be-processed service member, the to-be-processed load balance instance is a load balance instance configured on the load balance node, the second service request packet is obtained by the load balance node by modifying a MAC address of the load balance node in a first service request packet, and the first service request packet is a service request packet sent by the service request end to the load balance node;
modifying the address information of the to-be-processed load balance instance in the second service request packet to address information of the to-be-processed service member based on configuration information, to obtain a third service request packet; and
controlling the transceiver to send the third service request packet to the to-be-processed service member based on the MAC address of the to-be-processed service member.

### Claim 15 (depends on 14)

The computing node according to claim 14, wherein the computing node further performs the following step:
controlling the transceiver to receive the configuration information from a load balancer, wherein the configuration information comprises a mapping relationship between the address information of the load balance instance and address information of a service member deployed on the computing node.

### Claim 16 (depends on 14)

The computing node according to claim 14, wherein the address information comprises an IP address and a port identifier.

### Claim 17 (depends on 15)

The computing node according to claim 15, wherein the computing node further performs the following step:
recording connection information, wherein the connection information comprises the address information of the service request end, the address information of the to-be-processed load balance instance, and the address information of the to-be-processed service member.

### Claim 18 (depends on 17)

The computing node according to claim 17, wherein the computing node further performs the following step:
controlling the transceiver to receive a service response packet from the to-be-processed service member, wherein the service response packet comprises the address information of the to-be-processed service member;
modifying the address information of the to-be-processed service member in the service response packet to the address information of the to-be-processed load balance instance based on the connection information; and
controlling the transceiver to send the modified service response packet to the service request end based on the connection information.
