CN109587062B - Load balancing information synchronization method, device and processing equipment - Google Patents

Load balancing information synchronization method, device and processing equipment Download PDF

Info

Publication number
CN109587062B
CN109587062B CN201811501921.0A CN201811501921A CN109587062B CN 109587062 B CN109587062 B CN 109587062B CN 201811501921 A CN201811501921 A CN 201811501921A CN 109587062 B CN109587062 B CN 109587062B
Authority
CN
China
Prior art keywords
load balancing
message
nodes
information
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811501921.0A
Other languages
Chinese (zh)
Other versions
CN109587062A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201811501921.0A priority Critical patent/CN109587062B/en
Publication of CN109587062A publication Critical patent/CN109587062A/en
Application granted granted Critical
Publication of CN109587062B publication Critical patent/CN109587062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

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

Abstract

The invention provides a method, a device and a processing device for synchronizing load balancing information, which relate to the technical field of communication, wherein the method comprises the following steps: receiving a message forwarded by the switch, wherein the message comprises a source address, the load balancing node and the switch are in the same available area, and the load balancing node is in communication connection with the switch; distributing a destination address for the message; determining load balancing information according to a source address and a destination address; wherein, the load balancing information comprises a message forwarding path; and sending the load balancing information to other load balancing nodes in the available area where the load balancing node is located. The method, the device, the processing equipment and the computer storage medium for synchronizing the load balancing information, provided by the embodiment of the invention, realize the function of simulating multicast on the premise of not depending on a switch, reduce the development cost and improve the stability of a system.

Description

Load balancing information synchronization method, device and processing equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a processing device for synchronizing load balancing information.
Background
In the cloud service network, a user can access cloud resources through the Internet. A common network structure includes a three-layer architecture of core switches-gateway nodes (logical gateways, also called load balancing nodes) -service nodes, where the core switches include an external network switch connected to an internet service provider and an internal network switch connected to the gateway nodes, and the service nodes provide services required by users, such as computation, storage, and the like.
In order to ensure the stability of providing services, a disaster recovery mechanism is generally provided, the existing switch may synchronize the states of each gateway node in the group in a multicast manner, and the state of any gateway node may be sent to all other gateway nodes in the group through the switch. However, the multicast method has the following problems: the multicast networking is complex, the building process is complex, normal network forwarding is easily affected when the network operation and maintenance operation is improper, and the stability is poor; multicast introduces bandwidth and performance consumption to the switches.
In view of the above problem of the scheme for synchronization by multicast, no effective solution has been proposed at present.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, an apparatus, and a processing device for synchronizing load balancing information, which can perform analog multicast, reduce development cost, and improve system stability.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for synchronizing load balancing information, which is applied to a load balancing node, and includes: receiving a message forwarded by the switch, wherein the message comprises a source address, the load balancing node and the switch are in the same available area, and the load balancing node is in communication connection with the switch; distributing a destination address for the message; determining load balancing information according to a source address and a destination address; wherein, the load balancing information comprises a message forwarding path; and sending the load balancing information to other load balancing nodes in the available area where the load balancing node is located.
In a preferred embodiment of the present invention, sending load balancing information to other load balancing nodes in an available area where the load balancing node is located includes: acquiring addresses of other load balancing nodes; and respectively sending the load balancing information to other load balancing nodes according to the addresses.
Respectively sending the load balancing information to other load balancing nodes according to the addresses, comprising: copying the load balancing information based on the number of other load balancing nodes to obtain N message forwarding paths; the value of N is the number of other load balancing nodes; and respectively sending the load balancing information obtained by copying to the corresponding other load balancing nodes based on the address of each other load balancing node.
In the preferred embodiment of the present invention, the message forwarding path includes a source address and a destination address; the source address is the address of the user end sending the message; the destination address is the address of the service node allocated to the message.
In a preferred embodiment of the present invention, the method further includes: and receiving and storing the message forwarding path table sent by other load balancing nodes.
In a preferred embodiment of the present invention, after obtaining the message of the user from the switch, the method further includes: judging whether the source address of the message is in a pre-stored message forwarding path table or not; the pre-stored message forwarding path table comprises: the message forwarding path table of the load balancing node and the message forwarding path tables received from other load balancing nodes; if not, distributing a destination address for the message based on a preset load balancing scheduling algorithm; if yes, the destination address of the message is obtained from the message forwarding path table.
In a preferred embodiment of the present invention, the method further includes: and acquiring addresses of other load balancing nodes from a switch or a pre-stored database.
In a preferred embodiment of the present invention, the method further includes: and when the load balancing information is monitored to be updated, synchronizing the updated load balancing information to other load balancing nodes.
In a second aspect, an embodiment of the present invention provides a device for synchronizing load balancing information, which is applied to a load balancing node, and includes: the receiving module is used for receiving a message forwarded by the switch, wherein the message comprises a source address, the load balancing node and the switch are in the same available area, and the load balancing node is in communication connection with the switch; the load balancing module is used for distributing a destination address for the message; the load balancing information determining module is used for determining load balancing information according to the source address and the destination address; wherein, the load balancing information comprises a message forwarding path; and the sending module is used for sending the load balancing information to other load balancing nodes in the available area where the load balancing node is located.
In a preferred embodiment of the present invention, the sending module is further configured to: acquiring addresses of other load balancing nodes; and respectively sending the load balancing information to other load balancing nodes according to the addresses.
In a preferred embodiment of the present invention, the sending module is further configured to: copying the load balancing information based on the number of other load balancing nodes to obtain N message forwarding paths; the value of N is the number of other load balancing nodes; and respectively sending the load balancing information obtained by copying to the corresponding other load balancing nodes based on the address of each other load balancing node.
In a preferred embodiment of the present invention, the message forwarding path includes a source address and a destination address; the source address is the address of the user end sending the message; the destination address is the address of the service node allocated to the message.
In a preferred embodiment of the present invention, the apparatus further includes a storage module, configured to receive and store the packet forwarding path table sent by the other load balancing node.
In a preferred embodiment of the present invention, the apparatus further includes a scheduling module, configured to: judging whether the source address of the message is in a pre-stored message forwarding path table or not; the pre-stored message forwarding path table comprises: the message forwarding path table of the load balancing node and the message forwarding path tables received from other load balancing nodes; if not, distributing a destination address for the message based on a preset load balancing scheduling algorithm; if yes, the destination address of the message is obtained from the message forwarding path table.
In a preferred embodiment of the present invention, the apparatus further includes an address obtaining module, configured to: and acquiring addresses of other load balancing nodes from a switch or a pre-stored database.
In a preferred embodiment of the present invention, the apparatus further includes an update module, configured to: and when the load balancing information is monitored to be updated, synchronizing the updated load balancing information to other load balancing nodes.
In a third aspect, an embodiment of the present invention provides a processing device for load balancing information synchronization, including a memory and a processor, where the memory is used to store a program that supports the processor to execute the above method for gateway information synchronization, and the processor is configured to execute the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an apparatus for synchronizing gateway information.
Compared with the prior art, the load balancing information synchronization method, the load balancing information synchronization device, the processing equipment and the computer storage medium provided by the embodiment of the invention can determine the load balancing information according to the source address and the destination address, then can send the load balancing information to other load balancing nodes in the available area to complete information synchronization, can realize the function of simulating multicast synchronization on the premise of not depending on a switch, can more efficiently carry out load scheduling among clusters, improve disaster tolerance capability, reduce development cost and improve system stability.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
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 embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of a network structure provided by an embodiment of the present invention;
fig. 2 is a flowchart of a method for synchronizing load balancing information according to an embodiment of the present invention;
fig. 3 is a schematic diagram of another network structure provided by the embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for synchronizing load balancing information according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a processing device according to 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 only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The noun explains:
an Availability Zone (Availability Zone) refers to one or more data centers isolated from each other by the infrastructure of power, network, etc. in the same area (Region). One area contains one or more available areas, and when one available area fails, the use of other available areas is not affected, and an application or a database is protected from a single location failure. In addition, the available area can provide greater availability, fault tolerance, and scalability than a single data center.
The usable area has the following characteristics:
cloud services between different available zones in the same area can be accessed through the intranet.
The number of available zones under different zones may not be the same.
The available area is an identifier defined for the user plane, and different users select the same available area under the same area, possibly corresponding to different physical data centers.
In the existing network structure, the switch may join a device or a service to a multicast group in advance, and then send information to the device or the service in the group in a multicast manner. The switch is generally an internal network core or an external network core, if multicast is required, a multicast rule needs to be configured, the multicast networking is complex, the configuration is complex, high requirements are imposed on maintenance personnel, and normal network forwarding is easily affected when the network operation and maintenance operation is improper. The core has its own function to be executed, for example, the core function is to do three-layer forwarding, if the task of multicast is also handed over to the core to be executed, it is easy to cause its stability to be reduced, and a multicast storm may be generated. Meanwhile, the multicast has certain bandwidth and performance consumption on the switch, and the switch may not support the multicast or support the multicast is not friendly enough, so that potential safety hazards exist.
Based on the foregoing reasons, embodiments of the present invention provide a method, an apparatus, and a processing device for load balancing information synchronization, where the technology may be applied to a gateway node in a cluster, and is described in detail below.
The cluster may include a plurality of service nodes, gateway nodes (logic gateways, which may be referred to as load balancing nodes in this application) or switches, for example, a single heavy load operation is shared by a plurality of node devices for parallel processing, and after the processing of each node device is completed, the results are summarized and returned to the user, so that the system processing capability is greatly improved. Generally, the method is divided into several types: high availability clustering: generally, when a certain node in a cluster fails, tasks on the node can be automatically transferred to other normal nodes, and the node in the cluster can be maintained off-line and then on-line, so that the operation of the whole cluster is not influenced in the process; load balancing clustering: when the load balancing cluster operates, generally, one or more front-end load balancers (namely, the gateway nodes) distribute the workload to a group of servers at the back end, so as to achieve high performance and high availability of the whole system; high performance computing cluster: high performance computing clusters increase computing power by distributing computing tasks to different service nodes of the cluster.
Referring to the schematic network structure shown in fig. 1, a client, an external network switch, an internal network switch, a load balancing node, and a service node are shown, and a user may access the external network switch to access a target service node. The load balancing nodes 1 to N in fig. 1 form a load balancing cluster together, and are all connected to the same intranet switch, and the service nodes 1 to N form a service node cluster together. The following embodiments are described taking the above network configuration as an example.
Referring to fig. 2, a flowchart of a method for synchronizing load balancing information specifically includes the following steps:
step S202, receiving the message forwarded by the switch.
The message includes a source address, the load balancing node is located in the same available area (Availability Zone) as the switch, and the load balancing node is in communication connection with the switch. The load balancing node can receive messages forwarded by the switch and sent by other load balancing nodes or clients.
Step S204, a destination address is distributed to the message.
When a message is received, a destination address is distributed to the message based on a preset load balancing scheduling algorithm. The preset load balancing scheduling algorithm may be determined based on the needs of the current cloud service network, and is not limited in this embodiment.
Step S206, determining load balancing information according to the source address and the destination address. The load balancing information includes a packet forwarding path.
After the source address and the destination address of the message are known, a forwarding path of the message can be obtained, where the forwarding path of the message includes the source address and the destination address, the source address is an address of a user side sending the message, and the destination address is an address of a service node allocated to the message.
For example, the message forwarding path includes a source address (e.g., the message is from the client a, i.e., the address of the client a) and a destination address (the aforementioned allocated destination address, taking the destination address as the address of the service node 1 as an example), and when acquiring a subsequent message of the client a, the destination address of the client a (i.e., the address of the service node 1) may be queried from the existing message forwarding path.
Step S208, sending load balancing information to other load balancing nodes in the available area where the load balancing node is located.
Wherein the other load balancing nodes comprise load balancing nodes belonging to the same available area as the load balancing node. The current load balancing node can synchronize the message forwarding path to other load balancing nodes belonging to the available area, namely, the multicast function is simulated, but the core switch is not required to configure and maintain the multicast. Compared with the existing mode of synchronizing the state information in a switch multicast mode, the method does not depend on the switch, and can send the message forwarding path to other gateway nodes as long as the addresses of other load balancing nodes needing to be synchronized are known, so that synchronization is realized.
The method for synchronizing the load balancing information provided by the embodiment of the invention is applied to the load balancing nodes, can determine the load balancing information according to the source address and the destination address, then can send the load balancing information to other load balancing nodes in the available area to complete information synchronization, can realize the function of simulating multicast synchronization on the premise of not depending on a switch, can more efficiently carry out load scheduling among clusters, improves disaster tolerance capability, reduces development cost and improves system stability.
In consideration of the fact that the message forwarding path needs to be forwarded to other load balancing nodes in the information synchronization process of the load balancing nodes, the addresses of the other load balancing nodes can be obtained first, and then the message forwarding path is sent to the other load balancing nodes respectively according to the addresses.
Under the premise that other load balancing nodes are known, the addresses of the other load balancing nodes can be acquired from a switch or a prestored database. For example, address information of each load balancing node requiring information synchronization is stored in advance on a connected switch or in a database. The address information may be an IP address of the load balancing node or other form of address that may uniquely indicate the location of the load balancing node.
When the load balancing nodes respectively send the message forwarding paths to other load balancing nodes, the message forwarding paths can be copied based on the number of other load balancing nodes to obtain N message forwarding paths; the value of N is the number of other load balancing nodes; and respectively sending the copied message forwarding paths to the corresponding other load balancing nodes based on the address of each other load balancing node. That is, the current load balancing node copies multiple messages by itself when sending information messages, and sends the messages to other load balancing nodes respectively.
Considering that when the packet forwarding path stored in the load balancing node is changed, the changed packet forwarding path needs to be synchronized to other load balancing nodes, the method further includes: and when the message forwarding path is monitored to be updated, synchronizing the updated message forwarding path to other load balancing nodes.
In the load balancing node, the packet forwarding paths may be stored in the form of a packet forwarding path table, that is, the packet forwarding path table may include packet forwarding paths corresponding to a plurality of different user terminals. When receiving the message forwarding path table sent by other load balancing nodes, the load balancing node can store the message forwarding path table, so that after receiving the message, the load balancing node performs load balancing scheduling among the service nodes according to the message forwarding path table and the message forwarding path table of the load balancing node.
Considering that a message sent by a client of a newly added user or a newly added load balancing node needs to be scheduled, after the load balancing node acquires the message of the user from the switch, the method may further include the following steps:
(1) judging whether the source address of the message is in a pre-stored message forwarding path table or not; the pre-stored message forwarding path table includes: the message forwarding path table of the load balancing node and the message forwarding path tables received from other load balancing nodes;
(2) and if not, distributing a destination address for the message based on a preset load balancing scheduling algorithm. And if the message forwarding path corresponding to the source address does not exist, scheduling based on a preset load balancing scheduling algorithm.
(3) If yes, the destination address of the message is obtained from the message forwarding path table.
Based on the method, the information synchronization between the load balancing nodes in one available area can be carried out, and the information synchronization between the load balancing nodes in the same available area can be carried out on the premise of knowing the address information of the load balancing nodes.
Referring to the network structure shown in fig. 1, when a user needs to access services of service nodes, a packet reaches a gateway node (i.e., a load balancing node shown in the figure) through an external network switch and an internal network switch, the gateway node performs scheduling, selects one service node from the service nodes connected to the gateway node, sends the packet to the service node, records scheduling information to a state table, i.e., a packet distribution path table shown in the figure, and then performs real services. At this time, a connection channel is generated, when data of the user side enters again, it needs to determine which service node to enter to obtain the service according to the aforementioned message distribution path table, once the channel is opened, the channel needs to be maintained, and the user can use the channel to continuously use the service, which is called session (session, which stores the attribute and configuration information required by a specific user session), and is recorded in the gateway node.
When a plurality of users access simultaneously, the load balancing node needs to perform load scheduling on the server and record a plurality of sessions, however, if the load balancing node needs to be upgraded and maintained, or because a memory fault, a CPU fault, a software fault and the like cannot normally operate, the state table recorded on the load balancing node will be lost, at this time, the access request of the user reaches, the service cannot be provided, and the user needs to initiate a connection request again. Therefore, when the state table is newly created, the load balancing node needs to synchronize the state table to other load balancing nodes, and when the load balancing node cannot work, subsequent requests based on the session are dispatched to other load balancing nodes.
In the existing scheme, state synchronization is performed in a multicast mode, a plurality of load balancing nodes are added into a multicast group, multicast information is configured in a switch connected with the load balancing nodes, if one of the load balancing nodes needs to synchronize information with other load balancing nodes, the switch sends the information to all other load balancing nodes in the multicast group, and as shown in fig. 1, an intranet switch sends a message distribution path table to each load balancing node. However, in the existing network result, the switch is generally an internal network core or an external network core, and if a complex multicast rule is configured on the core, there is a high network risk. In the method for synchronizing load balancing information provided by this embodiment, the load balancing node synchronizes information to other load balancing nodes without relying on a switch to execute the method. Referring to the network structure diagram shown in fig. 3, synchronization of the packet distribution path table does not need to be performed by using an intranet switch, and each load balancing node can send the packet distribution path table to other load balancing nodes in the cluster.
For example, in a cluster including N load balancing nodes, the cluster may be configured according to actual needs, and if one of the load balancing nodes needs to perform information synchronization, the information may be copied to N-1 shares and then respectively sent to addresses corresponding to other load balancing nodes.
Corresponding to the foregoing method embodiment, an embodiment of the present invention provides a load balancing information synchronization apparatus, which is applied to a load balancing node, and as shown in fig. 4, the apparatus includes:
the receiving module 42 is configured to receive a message forwarded by the switch, where the message includes a source address, the load balancing node is in the same available area as the switch, and the load balancing node is in communication connection with the switch;
a load balancing module 44, configured to allocate a destination address to the packet;
a load balancing information determining module 46, configured to determine load balancing information according to the source address and the destination address; wherein, the load balancing information comprises a message forwarding path;
and a sending module 48, configured to send the load balancing information to other load balancing nodes in the available area where the load balancing node is located.
The device for synchronizing load balancing information provided by the embodiment of the invention has the same technical characteristics as the method for synchronizing load balancing information provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The sending module is further configured to: acquiring addresses of other load balancing nodes; and respectively sending the load balancing information to other load balancing nodes according to the addresses.
In another embodiment, the sending module is further configured to: copying the load balancing information based on the number of other load balancing nodes to obtain N message forwarding paths; the value of N is the number of other load balancing nodes; and respectively sending the load balancing information obtained by copying to the corresponding other load balancing nodes based on the address of each other load balancing node.
In another embodiment, the message forwarding path includes a source address and a destination address; the source address is the address of the user end sending the message; the destination address is the address of the service node allocated to the message.
In another embodiment, the apparatus further includes a storage module, configured to receive and store the packet forwarding path table sent by the other load balancing node.
In another embodiment, the apparatus further includes a scheduling module configured to: judging whether the source address of the message is in a pre-stored message forwarding path table or not; the pre-stored message forwarding path table comprises: the message forwarding path table of the load balancing node and the message forwarding path tables received from other load balancing nodes; if not, distributing a destination address for the message based on a preset load balancing scheduling algorithm; if yes, the destination address of the message is obtained from the message forwarding path table.
In another embodiment, the apparatus further includes an address obtaining module, configured to: and acquiring addresses of other load balancing nodes from a switch or a pre-stored database.
In another embodiment, the apparatus further includes an update module configured to: and when the load balancing information is monitored to be updated, synchronizing the updated load balancing information to other load balancing nodes.
The implementation principle and the generated technical effect of the device for synchronizing load balancing information provided by the embodiment of the present invention are the same as those of the foregoing method embodiment, and for brief description, no mention is made in the device embodiment, and reference may be made to the corresponding contents in the foregoing method embodiment.
The embodiment of the present invention further provides a processing device for synchronizing load balancing information, where the terminal device includes a memory and a processor, the memory is used to store a program that supports the processor to execute the method for synchronizing gateway information provided in the foregoing embodiment, and the processor is configured to execute the program stored in the memory. The terminal device may also include a communication interface for communicating with other devices or a communication network.
Referring to fig. 5, an embodiment of the present invention further provides a processing apparatus, including: the processor 50, the memory 51, the bus 52 and the communication interface 53, wherein the processor 50, the communication interface 53 and the memory 51 are connected through the bus 52; the processor 50 is arranged to execute executable modules, such as computer programs, stored in the memory 51.
The Memory 51 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 53 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 52 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. XX, but this does not indicate only one bus or one type of bus.
The memory 51 is used for storing a program, and the processor 50 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 50, or implemented by the processor 50.
The processor 50 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 50. The Processor 50 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 51, and the processor 50 reads the information in the memory 51 and completes the steps of the method in combination with the hardware thereof.
The method, the apparatus, and the computer program product of the processing device for synchronizing load balancing information provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may 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 server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (18)

1. A method for synchronizing load balancing information is applied to a load balancing node, and comprises the following steps:
receiving a message forwarded by a switch, wherein the message comprises a source address, the load balancing node and the switch are in the same available area, and the load balancing node is in communication connection with the switch; wherein, the available area refers to one or more data centers with mutually isolated infrastructure facilities in the same area;
distributing a destination address for the message;
determining load balancing information according to the source address and the destination address; wherein, the load balancing information comprises a message forwarding path;
and sending the load balancing information to other load balancing nodes in the available area where the load balancing node is located.
2. The method according to claim 1, wherein said sending the load balancing information to other load balancing nodes in the available area where the load balancing node is located comprises:
acquiring addresses of the other load balancing nodes;
and respectively sending the load balancing information to the other load balancing nodes according to the addresses.
3. The method according to claim 2, wherein the sending the load balancing information to the other load balancing nodes according to the addresses respectively comprises:
copying the load balancing information based on the number of the other load balancing nodes to obtain N message forwarding paths; wherein, the value of N is the number of other load balancing nodes;
and respectively sending the load balancing information obtained by copying to the corresponding other load balancing nodes based on the address of each other load balancing node.
4. The method according to any of claims 1-3, wherein the packet forwarding path comprises a source address and a destination address; the source address is the address of the user side sending the message; and the destination address is the address of the service node distributed by the message.
5. The method according to any one of claims 1-3, further comprising: and receiving and storing the message forwarding path table sent by the other load balancing nodes.
6. The method of claim 5, after obtaining the message of the user from the switch, further comprising:
judging whether the source address of the message is in a pre-stored message forwarding path table or not; the pre-stored packet forwarding path table includes: the message forwarding path table of the load balancing node and the message forwarding path tables received from the other load balancing nodes;
if not, distributing a destination address for the message based on a preset load balancing scheduling algorithm;
and if so, acquiring the destination address of the message from the message forwarding path table.
7. The method according to any one of claims 1-3, further comprising:
and acquiring the addresses of the other load balancing nodes from the switch or a pre-stored database.
8. The method according to any one of claims 1-3, further comprising:
and when the load balancing information is monitored to be updated, synchronizing the updated load balancing information to the other load balancing nodes.
9. An apparatus for synchronizing load balancing information, applied to a load balancing node, includes:
the receiving module is used for receiving a message forwarded by a switch, wherein the message comprises a source address, the load balancing node and the switch are in the same available area, and the load balancing node is in communication connection with the switch; wherein, the available area refers to one or more data centers with mutually isolated infrastructure facilities in the same area;
the load balancing module is used for distributing a destination address for the message;
the load balancing information determining module is used for determining load balancing information according to the source address and the destination address; wherein, the load balancing information comprises a message forwarding path;
and the sending module is used for sending the load balancing information to other load balancing nodes in the available area where the load balancing node is located.
10. The apparatus of claim 9, wherein the sending module is further configured to:
acquiring addresses of the other load balancing nodes;
and respectively sending the load balancing information to the other load balancing nodes according to the addresses.
11. The apparatus of claim 10, wherein the sending module is further configured to:
copying the load balancing information based on the number of the other load balancing nodes to obtain N message forwarding paths; wherein, the value of N is the number of other load balancing nodes;
and respectively sending the load balancing information obtained by copying to the corresponding other load balancing nodes based on the address of each other load balancing node.
12. The apparatus according to any of claims 9-11, wherein the packet forwarding path comprises a source address and a destination address; the source address is the address of the user side sending the message; and the destination address is the address of the service node distributed by the message.
13. The apparatus according to any of claims 9-11, further comprising a storage module configured to receive and store the packet forwarding path table sent by the other load balancing node.
14. The apparatus of claim 13, further comprising a scheduling module configured to:
judging whether the source address of the message is in a pre-stored message forwarding path table or not; the pre-stored packet forwarding path table includes: the message forwarding path table of the load balancing node and the message forwarding path tables received from the other load balancing nodes;
if not, distributing a destination address for the message based on a preset load balancing scheduling algorithm;
and if so, acquiring the destination address of the message from the message forwarding path table.
15. The apparatus according to any one of claims 9-11, further comprising an address acquisition module configured to:
and acquiring the addresses of the other load balancing nodes from the switch or a pre-stored database.
16. The apparatus according to any one of claims 9-11, further comprising an update module configured to:
and when the load balancing information is monitored to be updated, synchronizing the updated load balancing information to the other load balancing nodes.
17. A processing device for gateway information synchronization, the processing device comprising a memory for storing a program that enables a processor to perform the method of any of claims 1 to 8, and a processor configured to execute the program stored in the memory.
18. A computer storage medium storing computer software instructions for use by the apparatus of any one of claims 9 to 16.
CN201811501921.0A 2018-12-07 2018-12-07 Load balancing information synchronization method, device and processing equipment Active CN109587062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811501921.0A CN109587062B (en) 2018-12-07 2018-12-07 Load balancing information synchronization method, device and processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811501921.0A CN109587062B (en) 2018-12-07 2018-12-07 Load balancing information synchronization method, device and processing equipment

Publications (2)

Publication Number Publication Date
CN109587062A CN109587062A (en) 2019-04-05
CN109587062B true CN109587062B (en) 2021-05-25

Family

ID=65927887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811501921.0A Active CN109587062B (en) 2018-12-07 2018-12-07 Load balancing information synchronization method, device and processing equipment

Country Status (1)

Country Link
CN (1) CN109587062B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104566B (en) * 2020-09-18 2024-02-27 网易(杭州)网络有限公司 Processing method and device for load balancing
CN113407341B (en) * 2021-06-22 2024-03-22 中国工商银行股份有限公司 Load object synchronization method and device based on distributed load balancing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611758A (en) * 2012-03-30 2012-07-25 浪潮电子信息产业股份有限公司 Method for synchronizing clustered data by using load balancer
CN102857577A (en) * 2012-09-24 2013-01-02 北京联创信安科技有限公司 System and method for automatic load balancing of cluster storage
CN104023082A (en) * 2014-06-23 2014-09-03 浪潮电子信息产业股份有限公司 Method for achieving cluster load balance
CN106941450A (en) * 2016-01-05 2017-07-11 中兴通讯股份有限公司 A kind of route synchronization method, equipment and communication system
CN107948087A (en) * 2017-12-07 2018-04-20 锐捷网络股份有限公司 A kind of method and apparatus of load balancing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8776207B2 (en) * 2011-02-16 2014-07-08 Fortinet, Inc. Load balancing in a network with session information
US9137141B2 (en) * 2012-06-12 2015-09-15 International Business Machines Corporation Synchronization of load-balancing switches

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611758A (en) * 2012-03-30 2012-07-25 浪潮电子信息产业股份有限公司 Method for synchronizing clustered data by using load balancer
CN102857577A (en) * 2012-09-24 2013-01-02 北京联创信安科技有限公司 System and method for automatic load balancing of cluster storage
CN104023082A (en) * 2014-06-23 2014-09-03 浪潮电子信息产业股份有限公司 Method for achieving cluster load balance
CN106941450A (en) * 2016-01-05 2017-07-11 中兴通讯股份有限公司 A kind of route synchronization method, equipment and communication system
CN107948087A (en) * 2017-12-07 2018-04-20 锐捷网络股份有限公司 A kind of method and apparatus of load balancing

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Load-Balancing Routing in Multichannel Hybrid Wireless Networks With Single Network Interface》;Jungmin So;《IEEE Transactions on Vehicular Technology》;20071231;全文 *
《基于负载通告的SDN多控制器负载均衡机制》;王颖;《电子与信息学报》;20171130;第39卷(第11期);全文 *
《基于软件定义网络的负载均衡策略研究》;李春;《中国优秀硕士学位论文全文数据库》;20180430;全文 *

Also Published As

Publication number Publication date
CN109587062A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109510770B (en) Information synchronization method and device among load balancing nodes and processing equipment
CN112087312B (en) Method, device and equipment for providing edge service
CN107078969B (en) Realize computer equipment, the system and method for load balancing
EP4258598A1 (en) Computing power application traffic forwarding method and apparatus
EP3229405B1 (en) Software defined data center and scheduling and traffic-monitoring method for service cluster therein
US9659075B2 (en) Providing high availability in an active/active appliance cluster
WO2018000993A1 (en) Distributed storage method and system
US10198338B2 (en) System and method of generating data center alarms for missing events
US9432321B2 (en) Method and apparatus for messaging in the cloud
US20140188801A1 (en) Method and system for intelligent load balancing
CN103825975A (en) Cdn node distribution server and system
CN103475566A (en) Real-time message exchange platform and distributed cluster establishment method
CN112087390B (en) Network routing method and device
TW201724001A (en) System and method for acquiring, processing and updating global information
WO2020057445A1 (en) Communication system, method, and device
CN109587062B (en) Load balancing information synchronization method, device and processing equipment
CN113301079B (en) Data acquisition method, system, computing device and storage medium
CN113727464A (en) Method and device for establishing high-concurrency call of SIP streaming media server
Chantre et al. Reliable broadcasting in 5G NFV-based networks
CN114201362A (en) Prometheus-based enterprise-level high-availability monitoring system and implementation method
US20150372895A1 (en) Proactive Change of Communication Models
CN114124890A (en) Determination method, virtual router, control equipment and domain name resolution system
CN113127271A (en) Transaction system deployment method and device, computer equipment and storage medium
Jindal et al. MME-FaaS cloud-native control for mobile networks
Chandrasekaran et al. CASE: A context-aware storage placement and retrieval ecosystem

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