CN110365718B - Load balancing method and system - Google Patents

Load balancing method and system Download PDF

Info

Publication number
CN110365718B
CN110365718B CN201810252749.3A CN201810252749A CN110365718B CN 110365718 B CN110365718 B CN 110365718B CN 201810252749 A CN201810252749 A CN 201810252749A CN 110365718 B CN110365718 B CN 110365718B
Authority
CN
China
Prior art keywords
gateway
intelligent terminal
control node
gateways
data
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
CN201810252749.3A
Other languages
Chinese (zh)
Other versions
CN110365718A (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.)
Shenzhen Jinzhi Lingxuan Video Technology Co ltd
Original Assignee
Shenzhen Jinzhi Lingxuan Video 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 Shenzhen Jinzhi Lingxuan Video Technology Co ltd filed Critical Shenzhen Jinzhi Lingxuan Video Technology Co ltd
Priority to CN201810252749.3A priority Critical patent/CN110365718B/en
Publication of CN110365718A publication Critical patent/CN110365718A/en
Application granted granted Critical
Publication of CN110365718B publication Critical patent/CN110365718B/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
    • 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/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Landscapes

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

Abstract

The invention discloses a load balancing system and a method, wherein the system comprises at least two gateways which are communicated with each other, each gateway comprises a memory and a controller, instructions are stored in the memories, and the instructions execute the following steps under the control of the controllers: determining a gateway as a control node; the method comprises the steps that a Control node determines intelligent terminal information of all gateways connected with intelligent terminals, wherein the intelligent terminal information comprises intelligent terminal types, Media Access Control (MAC) interfaces and interface numbers; the control node distributes all intelligent terminals needing processing according to the load capacity of the gateway; and the gateway transparently transmits the data through a link layer to acquire and process the data of the intelligent terminal which is connected to other gateways and needs to be processed. Compared with the prior art, the invention concentrates and redistributes the calculation tasks of the load on each gateway on the basis of the original network structure, ensures that surplus hardware resources of the gateway can be distributed to other intelligent terminals in time, and simultaneously does not need to additionally increase physical lines.

Description

Load balancing method and system
Technical Field
The invention relates to the field of computer network resource scheduling, in particular to a load balancing method and system.
Background
The development of computer technology makes the informatization of industrial production stronger and stronger, some information and data which are difficult to obtain in real time traditionally can be obtained and processed in real time through various intelligent terminals, a typical application environment is a sensor network which is set in factories and mines for monitoring production and monitoring environment safety, the application environment generally comprises a core node, sub-nodes and an intermediate node between the core node and the sub-nodes, a sensor for monitoring specific parameters such as temperature, humidity, pressure, electromagnetism and the like is used as the sub-nodes of the network, and network equipment which is used as the core node and the intermediate node collects data of the sensor network at the same time, and the application environment comprises the core node, the sub-nodes and the intermediate node. Besides, different from common IP networks and program control networks, the child nodes of such networks generally do not have strong computation performance, and need to be used as intermediate nodes and core nodes of a gateway to process data, rather than merely perform routing and forwarding of the data, so that the peak of the computation workload on the local network poses a great challenge to the data processing capability of the gateway, thereby affecting the robustness of the entire system.
Conventional Internet Protocol Address (IP) networks and program-controlled networks generally use core network load to balance the throughput capacity of a decentralized network, so that balance cannot be achieved between intermediate nodes and child nodes, and the operation tasks of the child nodes cannot be effectively distributed. Moreover, the common method of using multiple links to connect the same node in the core layer for load balancing is not suitable for sub-nodes.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a load balancing system and method for distributing operation services of each intelligent terminal in real time.
The system provided by the invention comprises the following components:
a load balancing system comprising at least two interconnected gateways, said gateways comprising a memory and a controller, said memory having instructions stored therein, the following steps being performed under the control of said controller: determining one gateway as a control node, selecting the control node in a manual designated mode or a dial switch mode, and issuing the control node to other gateways; the method comprises the steps that a Control node determines intelligent terminal information of all gateways connected with intelligent terminals, wherein the intelligent terminal information comprises intelligent terminal types, Media Access Control (MAC) interfaces and interface numbers, all the gateways determine the interfaces connected with the intelligent terminals through Address Resolution Protocols (ARP), MAC addresses connected with the intelligent terminals on the interfaces are obtained, and then the types of the intelligent terminals are obtained; the control node distributes all intelligent terminals needing processing according to the load capacity of the gateway, and distributes the intelligent terminals with partial gateway load exceeding the computing capacity to other gateways with surplus computing capacity; the gateway obtains and processes the data of the intelligent terminal which is connected to other gateways and needs to be processed through the transparent transmission of the data link layer, after the gateway is connected with the intelligent terminal which is connected to other gateways and needs to be processed, the data sent by the intelligent terminal is directly sent to the gateway through the transparent transmission of the unicast data link layer, and the forwarding cost of the intermediate gateway is saved.
Further, the load balancing system further comprises a switch, and the at least two gateways are connected through the switch.
Specifically, the network topology structure of this system is connected with a plurality of intelligent terminal for every gateway, through network interconnect between gateway and the gateway, on this basis, add the switch, pass through between gateway and the gateway the switch is connected, and the gateway of being convenient for carries out the exchange on the data link layer through switch and different gateways to the gateway passes through with the intelligent terminal of connection on other gateways and passes through.
Further, the instructions, under control of the controller, perform the steps of: the control node determines the intelligent terminal information connected with the intelligent terminals on all the gateways, and the method specifically comprises the following steps: the gateway acquires intelligent terminal information of an intelligent terminal connected to an interface of the gateway; the control node acquires intelligent terminal information of all gateways connected with the intelligent terminal; and the control node determines the corresponding relation between the intelligent terminals and the gateways, and determines the number and the types of the intelligent terminals connected to each gateway.
Further, the instructions, under control of the controller, perform the steps of: the method for distributing all intelligent terminals to be processed by the control node according to the load capacity of the gateway specifically comprises the following steps: the control node determines hardware resources required by connection of the intelligent terminal on the gateway according to the type of the intelligent terminal, wherein the hardware resources comprise CPU resources and memory resources required to be occupied; the control node determines an intelligent terminal which is directly connected with the gateway and exceeds the load capacity of the gateway according to the load capacity of the gateway, determines that the system resources of the gateway are not enough to load the intelligent terminal connected with the control node according to the sum of the system resources occupied by the intelligent terminal directly connected with the gateway and compared with the system resources of the gateway, and records the hardware resources required by the intelligent terminal exceeding the load capacity; the control node determines a gateway with surplus load capacity, determines the surplus of the operation capacity of the gateway after the gateway bears the operation requirement of the load, and records the surplus operation capacity; the control node distributes the intelligent terminals exceeding the gateway load capacity to the gateways with surplus load capacity, and the control node distributes the intelligent terminals needing processing for the gateways with surplus operation capacity according to the operation capacity required by the intelligent terminals which are not distributed.
Further, the instructions, under control of the controller, perform the steps of: the gateway passes through the transparent transmission of link layer, acquires the intelligent terminal data that need handle of connecting on other gateways and handles, specifically includes: the control node broadcasts the address information of all gateways, the communication between the gateways is established through a protocol on an IP layer, and the IP and MAC of respective connected interfaces are obtained between the gateways through protocols such as ARP (address resolution protocol) and the like for subsequent communication; the gateway acquires a gateway where the intelligent terminal is located through a control node, and the control node transmits an address of a gateway interface connected with the intelligent terminal to the gateway in the process of distributing the intelligent terminal needing to be operated; the gateway sends a data acquisition request to the gateway where the intelligent terminal is located, the gateway sends an IP data packet to the gateway where the intelligent terminal is located, and the gateway where the intelligent terminal is located is required to acquire data of the intelligent terminal; the gateway where the intelligent terminal is located forwards a request for acquiring data to the intelligent terminal, the intelligent terminal and the gateway where the intelligent terminal is located are conducted through American Electronic Industry Association recommended standard232 (RS 232) or American Electronic Industry Association recommended standard 485 (RS 232), the gateway where the intelligent terminal is located distributes a unique address corresponding to the gateway where the terminal is located for the intelligent terminal through a dial switch, software setting or a software self-negotiation mode, and the gateway where the intelligent terminal is located transmits the data request to the intelligent terminal through an interface connected with the intelligent terminal; the gateway where the intelligent terminal is located matches an interface where the intelligent terminal is located with the gateway to establish unicast transparent transmission, and the intelligent terminal responds to a data request to the gateway where the intelligent terminal is located; after determining that the intelligent terminal responds to the data request, the gateway where the intelligent terminal is located sends a response of the data request to the gateway and forwards an address of the intelligent terminal, then the gateway where the intelligent terminal is located establishes a transparent transmission link from an interface where the intelligent terminal is located to the gateway, communication between the gateway and the intelligent terminal is not processed above a data link layer, and the intelligent terminal sends data to the gateway through transparent transmission of the gateway where the intelligent terminal is located; and the gateway processes the data sent by the intelligent terminal.
Further, the instructions, under control of the controller, perform the steps of: the other scheme that the gateway transparently transmits through the link layer to acquire and process the data of the intelligent terminal connected to other gateways to be processed specifically includes: the gateway broadcasts the address information of all gateways; the gateway acquires a network address (Internet Protocol, IP) of the intelligent terminal through the control node, and establishes connection between the gateway and the intelligent terminal on a network layer through a network interface; the gateway sends a data acquisition request to the intelligent terminal; the gateway where the intelligent terminal is located routes the data acquisition request to the intelligent terminal, and the data acquisition request is transmitted from the gateway to the intelligent terminal through the routing of a routing protocol among other gateways; the intelligent terminal responds to the gateway to obtain the data request, and the gateway where the intelligent terminal is located also forwards the response of the intelligent terminal to the gateway through a routing protocol; then, the gateway where the intelligent terminal is located matches the interface where the intelligent terminal is located with the gateway to establish transparent transmission of a unicast data link layer, and the data directly sent to the gateway by the intelligent terminal is forwarded between corresponding interfaces in a two-layer mode without further processing; and the intelligent terminal transmits data to the gateway through the transparent transmission of the gateway where the intelligent terminal is located, and then the gateway processes the data transmitted by the intelligent terminal.
Further, the instructions, under control of the controller, perform the steps of: after the control node distributes all the intelligent terminals needing to be processed according to the load capacity of the gateway, the method further comprises the following steps: and the gateway determines that the intelligent terminal is connected to an interface of the gateway according to the address of the intelligent terminal needing to be processed, which is distributed by the control node, sends a data acquisition request to the intelligent terminal through the corresponding interface, and processes the data uploaded by the intelligent terminal.
The utility model also discloses a load balancing method, which is applied to the load balancing system to complete the load balancing among different gateways.
Compared with the prior art, the invention concentrates and redistributes the calculation tasks of the load on each gateway on the basis of the original network structure, ensures that surplus hardware resources of the gateway can be distributed to other intelligent terminals in time, and simultaneously does not need to additionally increase physical lines.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of a load balancing system according to the present invention.
Fig. 2 is a further improvement of the load balancing system of the present invention according to an embodiment shown in fig. 1.
Fig. 3 is a flowchart of a load balancing method according to the present invention.
Fig. 4 is a flowchart of step S200 of fig. 3.
Fig. 5 is a flowchart of step S300 of fig. 3.
Fig. 6 is a flowchart illustrating the step S400 of fig. 3 in which the smart terminal communicates with the outside using a data link layer.
Fig. 7 is a flowchart illustrating the step S400 of fig. 3 in which the smart terminal communicates with the outside using a network layer.
Description of reference numerals:
1-intelligent terminal, 2-gateway, 3-exchanger
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a load balancing system, please refer to fig. 1, the system comprises at least two gateways 2, the gateways 2 are in communication connection with each other, each gateway 2 is connected with a plurality of intelligent terminals 1, wherein the gateways 2 are network devices, and forward data on two layers or three layers according to the existing general network protocol, on the basis, each gateway 2 has the capability of loading the intelligent terminal 1, the gateways 2 are used for processing the data uploaded by the intelligent terminals 1, the load capability of the gateways 2 is surplus in the state that the intelligent terminals 1 connected with the gateways 2 are few, and the intelligent terminals 1 exceed the load capability of the gateways 2 in the state that the intelligent terminals 1 connected with the gateways 2 are many.
The intelligent terminal 1 has a network interface with a Media Access Control (MAC) address, and transmits digital information according to a data link protocol, in an embodiment, the intelligent terminal 1 is a sensing device and transmits acquired digital sensing information through the network interface, and in an embodiment, the intelligent terminal 1 further has an IP address and transmits and receives information to and from other network devices across the gateway 2 according to a network layer protocol.
The hardware structures of the gateways 2 are the same or similar and have the functions, wherein one gateway 2 is manually or automatically negotiated according to relevant protocols and serves as a control node, the control node has other functions of the gateway, on the basis, the control node is further used for acquiring information of the intelligent terminals 1 connected with all the gateways 2 and redistributing the intelligent terminals 1 to be processed by all the gateways 2 according to surplus conditions of loads of the gateways 2, the gateway of the internet of things is an internet of things gateway in one embodiment and is suitable for being applied to use places such as industrial detection and intelligent home, and on the basis of traditional network equipment, the functions of extracting, processing and controlling data of the internet of things node are integrated.
The gateway 2 processes data uploaded by the intelligent terminal 1 connected with the gateway; the gateway 2 serving as the intelligent terminal 1 is used for forwarding the data of the intelligent terminal 1 connected with the gateway to other gateways; and also acquires the data of the intelligent terminal 1 connected to other gateways 2 to be processed and uses the surplus load capacity of the intelligent terminal to process.
In a physical connection mode, the gateways 2 are mutually communicated, in an application environment, the load balancing system consists of a small number of gateways 2 and a plurality of intelligent terminals 1, the gateways 2 can be mutually connected through different network interfaces, and the network structure is suitable for being applied to the load balancing system consisting of less than three gateways 2; in another embodiment, a switch is further provided, all gateways 2 are connected with the switch, link communication between the gateways 2 is realized through a switch data link layer, the network structure is suitable for a load balancing system formed by three or more gateways 2, the use of connecting lines is reduced, the network topology is simpler, addresses of all terminals can be negotiated and communication can be established between the network interface and the intelligent terminal through serial interfaces including RS232 and RS485, or communication on two layers or three layers can be established through the network interface.
Referring to fig. 3, a method executed on a load balancing system includes:
step S100: and determining one gateway as a control node.
Specifically, the control node selects, in a negotiation manner, from a plurality of gateways, for example, a dial switch, or selects, in a manually set manner, a gateway having the strongest computing capability and a physical location close to the center as the control node, and the control node is configured to collect information of other gateways, summarize load conditions of the gateways, and adjust and allocate the intelligent terminals to be processed by the gateways.
Step S200: and the control node determines the intelligent terminal information of all the gateways connected with the intelligent terminal.
Specifically, referring to fig. 4, the control node obtains the information of the intelligent terminals connected to all the gateways, and after the information of the intelligent terminals is centralized, it can be further determined whether the loads of the gateways are balanced and how to allocate the intelligent terminals connected to the gateways.
Step S300: and the control node distributes all intelligent terminals needing processing according to the load capacity of the gateway.
Specifically, referring to fig. 5, the control node redistributes the intelligent terminals to be processed according to the surplus and shortage of the load capacity of each gateway.
Step S400: and the gateway acquires the data of the intelligent terminal to be processed.
Specifically, referring to fig. 6 and 7, the control node allocates the intelligent terminal connected to the other gateway to the gateway whose load capacity is excessive for processing according to the surplus load capacity of the gateway and the insufficient load capacity of the other gateway, and the gateway whose load capacity is excessive negotiates with the gateway where the intelligent terminal is located to establish a transparent transmission link according to the allocation condition of the intelligent terminal, and receives the data of the intelligent terminal through the transparent transmission link to save the hardware overhead of data forwarding.
Step S500: and the gateway processes the data of the intelligent terminal.
Specifically, the gateway processes the received data to complete the task of the load balancing system, and in one set of embodiments, the processed data may be transmitted to a server associated therewith to provide further data services, or the processing results may be stored in the gateway for retrieval by an operator.
Specifically, step S200 specifically includes:
step S201: and the gateway acquires the intelligent terminal information connected with the intelligent terminal on the interface of the gateway.
Specifically, each gateway acquires the address of an intelligent terminal connected with the gateway through a scanning interface, in one embodiment, the gateway negotiates the address with the intelligent terminal using serial port communication and uses the address to carry out communication, and in another embodiment, the gateway acquires the MAC and IP of the intelligent terminal using a network interface and acquires the model of the intelligent terminal through a protocol followed by the intelligent terminal as the type of the intelligent terminal.
Step S202: and the control node acquires the information of the intelligent terminals connected with all the gateways.
Specifically, the control node acquires information of the intelligent terminals connected with all the gateways, including address information and the types of the intelligent terminals.
Step S203: and the control node determines the corresponding relation between the intelligent terminal and the gateway.
Specifically, the control node determines the corresponding relationship between the intelligent terminal and the gateways, so that the load condition of each gateway can be conveniently determined.
Specifically, step S300 specifically includes:
and S301, the control node determines hardware resources required by each intelligent terminal.
Specifically, according to the type of the intelligent terminal, the control node determines hardware resources required by the intelligent terminal, and generally, under a stable operating environment, processor resources and memory resources required by each intelligent terminal are relatively fixed, so that the control node determines the requirements of each intelligent terminal on the processor and the memory resources according to the type of the intelligent terminal, wherein the consumption of the intelligent terminal on the memory is generally related to the occupied physical space of the memory and the bandwidth which can be provided by a matched memory controller, and can be generally recorded by the number of bytes occupied by the memory space. The occupation of the processor resources by the intelligent terminal is different according to the power, the manufacturing process and the core architecture of different processors, in one embodiment, all gateways have the same processor structure, and the requirement of the intelligent terminal on the processor resources can be recorded by the core frequency occupied by the intelligent terminal; in another embodiment, if the processor structures used by the gateways are not uniform, a standard processor is set, the calculated amount which can be completed in unit time is used as a unit score, the requirements of the intelligent terminal on the processor resources can be expressed relative to the score, and it should be noted that the common general-purpose processor does not have completely consistent calculation efficiency for different types, so that the score needs to be determined according to the main calculation type when processing the intelligent terminal data.
The requirements of the intelligent terminal on the processor and the memory resource can be preset in the gateway and correspond to the type of the intelligent terminal.
Step S302: and the control node determines the intelligent terminal which exceeds the load capacity of the gateway and is directly connected with the control node.
Specifically, the control node determines the service condition of the gateway load capacity according to the sum of the requirements of the intelligent terminals connected to each gateway on the hardware resources, and determines the intelligent terminals exceeding the gateway load capacity; in another embodiment, a specific intelligent terminal is determined for the control node to assign to other gateways.
Step S303: the control node determines the gateway for which the load capacity is surplus.
Specifically, the control node determines the gateway with surplus load capacity and determines the surplus hardware resources.
Step S304: the control node redistributes the load of the gateways.
Specifically, the control node allocates the intelligent terminal to be processed according to the surplus situation of the gateway with surplus load capacity.
Wherein step S400 specifically includes:
step S401 a: control node broadcasts address information of all gateways
Specifically, the control node broadcasts the IP addresses of all gateways, the gateways establish their own routing chain tables, determine the MACs of other gateways, and establish communication between the gateways.
Step S402 a: the gateway acquires the gateway where the intelligent terminal is located through the control node
Specifically, the gateway acquires the address of the gateway where the intelligent terminal is located from the control node according to the intelligent terminal to be processed,
step S403 a: and the gateway sends a request for acquiring data to the gateway where the intelligent terminal is located.
Specifically, the gateway sends a data packet to the gateway where the intelligent terminal is located through a routing protocol.
Step S404 a: and the gateway where the intelligent terminal is located forwards the request for acquiring the data to the intelligent terminal.
Specifically, the gateway where the intelligent terminal is located forwards the acquired request to the intelligent terminal using serial communication such as RS232 and RS485 through an address negotiated with the intelligent terminal.
Step S405 a: and establishing transparent transmission of a unicast data link layer between the intelligent terminal and the gateway.
Specifically, in this embodiment, the communication of the intelligent terminal is established on the serial link between the intelligent terminal and the gateway where the intelligent terminal is located, the address negotiated with the serial link is used, the gateway sends the request for obtaining data to the gateway where the intelligent terminal is located, the gateway where the intelligent terminal is located forwards the request for obtaining data to the intelligent terminal through the negotiated address, after the intelligent terminal responds to the request for obtaining data, the gateway where the intelligent terminal is located returns the response to the gateway, meanwhile, according to the address negotiated by the intelligent terminal and the MAC of the gateway, the transparent transmission of the unicast data link layer is established between the interface connected with the intelligent terminal and the interface connected with the gateway, the data sent from the intelligent terminal to the gateway, and the format of the data conforming to the data format of the intelligent terminal, the transparent transmission of the unicast data link layer is completed by forwarding the link layer to the gateway, without upper layer processing, so on the premise of greatly saving hardware resources, and forwarding the data of the intelligent terminal to a gateway for processing.
Step S406 a: and the gateway acquires the data of the intelligent terminal to be processed through transparent transmission.
Specifically, the gateway obtains the data of the intelligent terminal through transparent transmission.
In another embodiment, step S400 specifically includes:
step S401 b: the control node broadcasts address information of all gateways.
Step S402 b: and the gateway acquires the IP of the intelligent terminal.
Specifically, the gateway acquires an address of the gateway where the intelligent terminal is located from the control node according to the intelligent terminal to be processed, in some routing protocols, a virtual interface of the gateway where the intelligent terminal is located needs to be determined, some high-level application-based management software also provides a port number of the gateway where the corresponding intelligent terminal is located, and the intelligent terminal is determined according to the virtual interface or the port number.
Step S403 b: and the gateway sends a request for acquiring data to the intelligent terminal.
The gateway directly sends a request for acquiring data to the intelligent terminal using the network interface through a network protocol.
Step S404 b: and the request for acquiring the data is routed to the intelligent terminal.
The request for acquiring the data is directly forwarded to the intelligent terminal by the gateway where the intelligent terminal is located.
Step S405 b: and the intelligent terminal responds to the request for acquiring the data to the gateway.
And the intelligent terminal responds to the request for acquiring the data to the gateway through the network protocol.
Step S406 b: and establishing transparent transmission of a unicast data link layer between the intelligent terminal and the gateway.
When data between the gateway and the intelligent terminal are forwarded, the gateway where the terminal is located confirms the interface connected with the gateway and the interface connected with the intelligent terminal, and confirms the MAC of the two interfaces simultaneously.
Step S407 b: and the gateway acquires the data of the intelligent terminal to be processed through transparent transmission.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A load balancing system comprising at least two interconnected gateways, said gateways comprising a memory and a controller, said memory having instructions stored therein, said instructions under the control of said controller performing the steps of:
determining a gateway as a control node;
the method comprises the steps that a Control node determines intelligent terminal information of all gateways connected with intelligent terminals, wherein the intelligent terminal information comprises intelligent terminal types, Media Access Control (MAC) interfaces and interface numbers;
the control node distributes all intelligent terminals needing processing according to the load capacity of the gateway; and
the gateway transparently transmits through a link layer to acquire and process the data of the intelligent terminal which is connected to other gateways and needs to be processed;
the step that the control node distributes all intelligent terminals to be processed according to the load capacity of the gateway specifically comprises the following steps:
the control node determines hardware resources required by connection of the intelligent terminal on the gateway according to the type of the intelligent terminal;
the control node determines an intelligent terminal which is directly connected with the gateway and exceeds the load capacity of the gateway according to the load capacity of the gateway;
the control node determines a gateway with surplus load capacity; and
and the control node distributes the intelligent terminal exceeding the gateway load capacity to the gateway with surplus load capacity.
2. A load balancing system according to claim 1, wherein: the step that the control node determines the intelligent terminal information of all the gateways connected with the intelligent terminals specifically comprises the following steps:
the gateway acquires intelligent terminal information of an intelligent terminal connected to an interface of the gateway;
the control node acquires intelligent terminal information of all gateways connected with the intelligent terminal; and
and the control node determines the corresponding relation between the intelligent terminal and the gateway.
3. A load balancing system according to claim 1, wherein: the step of acquiring and processing the data of the intelligent terminal connected to other gateways, which needs to be processed, specifically comprises the following steps:
the control node broadcasts the address information of all gateways;
the gateway acquires the gateway where the intelligent terminal is located through the control node;
the gateway sends a data acquisition request to a gateway where the intelligent terminal is located;
the gateway where the intelligent terminal is located forwards the request for acquiring the data to the intelligent terminal;
the gateway where the intelligent terminal is located matches the interface where the intelligent terminal is located with the gateway to establish transparent transmission of a unicast data link layer;
the intelligent terminal transmits data to the gateway through the transparent transmission of the gateway where the intelligent terminal is located; and
and the gateway processes the data sent by the intelligent terminal.
4. A load balancing system according to claim 1, wherein: the step that the gateway obtains and processes the data of the intelligent terminal which is connected with other gateways and needs to be processed through transparent transmission of the link layer specifically comprises the following steps:
the control node broadcasts the address information of all gateways;
the gateway acquires a network address (Internet Protocol, IP) of the intelligent terminal through the control node;
the gateway sends a data acquisition request to the intelligent terminal;
the gateway where the intelligent terminal is located routes the data acquisition request to the intelligent terminal;
the intelligent terminal responds to the gateway to acquire a data request;
the gateway where the intelligent terminal is located matches the interface where the intelligent terminal is located with the gateway to establish transparent transmission of a unicast data link layer;
the intelligent terminal transmits data to the gateway through the transparent transmission of the gateway where the intelligent terminal is located; and
and the gateway processes the data sent by the intelligent terminal.
5. A load balancing system according to claim 1, wherein: the steps are as follows: after the "the control node distributes all the intelligent terminals to be processed according to the load capacity of the gateway", the method further includes: the gateway is connected to the interface of the gateway according to the intelligent terminal to be processed, and processes the data uploaded by the intelligent terminal.
6. A load balancing system according to claim 1, wherein: the load balancing system further comprises a switch, and the at least two gateways are connected through the switch.
7. A load balancing method applied in the load balancing system of any one of claims 1 to 6, the method comprising:
determining a gateway as a control node;
the method comprises the steps that a Control node determines intelligent terminal information of all gateways connected with intelligent terminals, wherein the intelligent terminal information comprises intelligent terminal types, Media Access Control (MAC) interfaces and interface numbers;
the control node distributes all intelligent terminals needing processing according to the load capacity of the gateway; and
the gateway transparently transmits through a link layer to acquire and process the data of the intelligent terminal which is connected to other gateways and needs to be processed;
the method for distributing all intelligent terminals to be processed by the control node according to the load capacity of the gateway specifically comprises the following steps:
the control node determines hardware resources required by connection of the intelligent terminal on the gateway according to the type of the intelligent terminal;
the control node determines an intelligent terminal which is directly connected with the gateway and exceeds the load capacity of the gateway according to the load capacity of the gateway;
the control node determines a gateway with surplus load capacity; and
and the control node distributes the intelligent terminal exceeding the gateway load capacity to the gateway with surplus load capacity.
8. The method of claim 7, wherein: the control node determines the intelligent terminal information of all gateways connected with the intelligent terminal, and the method specifically comprises the following steps:
the gateway acquires intelligent terminal information of an intelligent terminal connected to an interface of the gateway;
the control node acquires intelligent terminal information of all gateways connected with the intelligent terminal; and
and the control node determines the corresponding relation between the intelligent terminal and the gateway.
CN201810252749.3A 2018-03-26 2018-03-26 Load balancing method and system Active CN110365718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810252749.3A CN110365718B (en) 2018-03-26 2018-03-26 Load balancing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810252749.3A CN110365718B (en) 2018-03-26 2018-03-26 Load balancing method and system

Publications (2)

Publication Number Publication Date
CN110365718A CN110365718A (en) 2019-10-22
CN110365718B true CN110365718B (en) 2021-12-10

Family

ID=68212091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810252749.3A Active CN110365718B (en) 2018-03-26 2018-03-26 Load balancing method and system

Country Status (1)

Country Link
CN (1) CN110365718B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111212109A (en) * 2019-12-13 2020-05-29 东软集团股份有限公司 Internet of things communication method, server, terminal and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009640A (en) * 2005-11-05 2007-08-01 华为技术有限公司 Service forwarding method between the gateways in the service network and its service gateway
CN101399742A (en) * 2007-09-28 2009-04-01 中国移动通信集团公司 Data service network system and access method of data service
CN105636141A (en) * 2016-03-05 2016-06-01 臧利 Load transferring method and system for base station

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7299294B1 (en) * 1999-11-10 2007-11-20 Emc Corporation Distributed traffic controller for network data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009640A (en) * 2005-11-05 2007-08-01 华为技术有限公司 Service forwarding method between the gateways in the service network and its service gateway
CN101399742A (en) * 2007-09-28 2009-04-01 中国移动通信集团公司 Data service network system and access method of data service
CN105636141A (en) * 2016-03-05 2016-06-01 臧利 Load transferring method and system for base station

Also Published As

Publication number Publication date
CN110365718A (en) 2019-10-22

Similar Documents

Publication Publication Date Title
CN108449282B (en) Load balancing method and device
CN109756474B (en) Service cross-region calling method and device for power dispatching automation system
CN109561141A (en) A kind of selection method and equipment of CDN node
CN109451019B (en) High-concurrency acquisition method for industrial real-time data
JP2008167317A (en) Monitor controlling system, monitor device, monitor controlling method, and monitor controlling program
CN105323310B (en) Network communication method, equipment and network attached storage equipment
JP2006262193A (en) Controller, packet transferring method, and packet processor
CN107450434B (en) Building automatic control system and method based on secondary network
WO2021197353A1 (en) Data distribution method and apparatus, and device and medium
RU2008138577A (en) NETWORK SYSTEM
CN112491616A (en) Information configuration method and device, electronic equipment and storage medium
CN110365718B (en) Load balancing method and system
CN114945032B (en) Electric power internet of things terminal data access system, method, device, equipment and medium
CN107483313A (en) A kind of collecting method and system based on cascade ethernet device
CN108650116B (en) Grouping method for DMR transfer platform IP interconnection
CN108833218B (en) Network system of multi-connected air conditioning unit and establishing method thereof
CN101534255A (en) A method and device for realizing oriented processing of certain request
JP2015525982A (en) COMMUNICATION METHOD, COMMUNICATION SYSTEM, INFORMATION PROCESSING DEVICE, COMMUNICATION TERMINAL, AND PROGRAM
CN101621419B (en) Reusable test message adapting method and system
CN105429884A (en) Method and system of managing routers in different networks through terminal
JP2004306200A (en) Robot control system
CN103986692B (en) Data forwarding method and system based on wireless access point
JP5454953B2 (en) Communication resource allocation system
CN115866066A (en) Data transmission method and device, nonvolatile storage medium and electronic equipment
CN113542371B (en) Resource scheduling method and system based on edge gateway

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