CN110365718A - A kind of load-balancing method and system - Google Patents
A kind of load-balancing method and system Download PDFInfo
- Publication number
- CN110365718A CN110365718A CN201810252749.3A CN201810252749A CN110365718A CN 110365718 A CN110365718 A CN 110365718A CN 201810252749 A CN201810252749 A CN 201810252749A CN 110365718 A CN110365718 A CN 110365718A
- Authority
- CN
- China
- Prior art keywords
- gateway
- intelligent terminal
- control node
- data
- gateways
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols 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 kind of SiteServer LBS and methods, the system includes at least two gateways interconnected, the gateway includes memory and controller, it is stored with instruction in the memory, described instruction executes following steps under the control of the controller: determining that a gateway is control node;Control node determines the intelligent terminal information that intelligent terminal is connected on all gateways, and the intelligent terminal information includes intelligent terminal type, media access control interface (Media Access Control, MAC) and interface index;Control node distributes all intelligent terminals to be treated according to the load capacity of gateway;And gateway is obtained the Intelligent terminal data to be treated being connected on other gateways and is handled by link layer transparent transmission.Compared with prior art, the present invention passes through on the basis of original network structure, the processor active task of load on each gateway is put together and is redistributed, guarantees that the hardware resource of gateway surplus can distribute to other intelligent terminals in time, while increasing physical circuit without additional.
Description
Technical field
The present invention relates to computer network resources scheduling fields, and in particular to a kind of load-balancing method and system.
Background technique
The development of computer technology is some to be traditionally difficult to obtain in real time so that industrial informationization is more and more stronger
Information and data can be obtained and be handled in real time by various intelligent terminals, and typical application environment is in factories and miness to monitor
Production, monitors Environmental security and the sensor network that is arranged, and this kind of application environment generally includes core node, child node and is located at
Intermediate node between the two, for monitoring the sensor of the special parameters such as temperature, humidity, pressure, electromagnetism as such network
Child node, it is such to answer while there are also summarizing the data of sensor network as the network equipment of core node and intermediate node
In environment.Sensor as child node is more, and the complexity of system is higher, in addition to this, with common IP network and
Program-controlled network is different, and the child node of such network does not have very strong operational performance usually, needs the intermediate node as gateway
Data are handled with core node, rather than are only the routing and forwarding for carrying out data, so the operation on localized network
Amount peak value constitutes very big challenge to the data-handling capacity of gateway, to influence the stalwartness of whole system.
Conventional Internet protocol address (Internet Protocol Address, IP) network and program-controlled network, usually
Using the throughput capacity of core network load balancing scatternet, can not so be completed between intermediate node and child node
Weighing apparatus, can not effectively distribute the processor active task of child node.Also, common load balancing is connected together in core layer using multilink
The way of one node is also not suitable for using for child node.
Summary of the invention
For overcome the deficiencies in the prior art, the purpose of the present invention is intended to provide one kind and distributes each intelligent terminal fortune in real time
The SiteServer LBS and method of calculation business.
System provided by the invention is as follows:
A kind of SiteServer LBS includes memory and control including at least two gateways interconnected, the gateway
Device is stored with instruction in the memory, executes following steps under the control of the controller: determining a gateway for control
Node processed, by way of specifying manually or the mode of toggle switch selectes control node, and issues and control to other gateways
Node;Control node determines the intelligent terminal information that intelligent terminal is connected on all gateways, and the intelligent terminal information includes intelligence
Energy terminal kinds, media access control interface (Media Access Control, MAC) and interface index, all gateways pass through
Address resolution protocol (Address Resolution Protocol, ARP) determines the interface for itself being connected with intelligent terminal, obtains
The MAC Address for connecting intelligent terminal on interface is taken, obtains the type of each intelligent terminal later;Control node is according to the load of gateway
All intelligent terminals to be treated of capability distribution distribute to the intelligent terminal that part gateway load is more than its operational capability
Other operational capabilities still have the gateway of surplus;Gateway passes through the transparent transmission of data link link layer, and acquisition is connected on other gateways
Intelligent terminal data to be treated and handle, built in gateway and the intelligent terminal to be treated that is connected on other gateways
After vertical connection, the data that intelligent terminal is sent pass through the transparent transmission of unicast data link layer, are sent directly to gateway, save mid-level net
The forwarding expense of pass.
Further, a kind of SiteServer LBS further includes interchanger, and at least two gateways pass through the friendship
It changes planes connection.
Specifically, the network of the system is opened up, to mend structure be that each gateway is connected with several intelligent terminals, gateway and gateway it
Between by network be connected with each other, herein basis on, add interchanger, connected between gateway and gateway by the interchanger,
The exchange in data link layer is carried out from different gateways by interchanger convenient for gateway, in order to gateway and is connected to other gateways
Upper intelligent terminal carries out transparent transmission.
Further, described instruction executes following steps under the control of the controller: control node determines all gateways
The intelligent terminal information of upper connection intelligent terminal, specifically includes: gateway, which obtains, connects the intelligent whole of intelligent terminal in own interfaces
Client information;Control node obtains the intelligent terminal information that intelligent terminal is connected on all gateways;Control node determines intelligent terminal
With the corresponding relationship of gateway, control node determines the value volume and range of product of the intelligent terminal connected on each gateway.
Further, described instruction executes following steps under the control of the controller: the control node is according to gateway
Load capacity distribute all intelligent terminals to be treated, specifically include: control node determines net according to intelligent terminal type
Hardware resource needed for shutting connection intelligent terminal, including the cpu resource and memory source for needing to occupy;Control node is according to gateway
Load capacity determination be connected directly with gateway, and more than gateway load ability intelligent terminal, control node according to gateway
The intelligent terminal being connected directly needs the summation of occupying system resources, and the system resource having with the gateway compares, and determines
The system resource that gateway has is not enough to load intelligent terminal connected to it, and will exceed the intelligent terminal of its load capacity
Required hardware resource record;Control node determines that the gateway of surplus occurs in load capacity, and control node also determines that gateway is being held
Still there is the surplus of operational capability after carrying on a shoulder pole the operation demand of its load and records the operational capability of surplus;Control node will be more than net
The intelligent terminal for closing load capacity is distributed to the gateway of load capacity surplus, and control node is according to needed for unappropriated intelligent terminal
Operational capability, to there is the gateway of operational capability surplus to distribute intelligent terminal to be treated.
Further, described instruction executes following steps under the control of the controller: gateway is obtained by link layer transparent transmission
Take the Intelligent terminal data to be treated being connected on other gateways and handle, specifically include: control node broadcasts all nets
The address information of pass, the communication between gateway are established by the agreement on IP layer, and by agreements such as ARP, between gateway, acquisition is respectively
From the IP and MAC of connected interface, used for subsequent communications;Gateway obtains the gateway where intelligent terminal, control by control node
During node distribution processed needs the intelligent terminal of operation, the address of the gateway interface connected to gateway transmission intelligent terminal;
Gateway where from gateway to intelligent terminal, which is sent, obtains request of data, and the gateway where gateway to intelligent terminal sends IP data
Packet requires the data for obtaining intelligent terminal to the gateway where intelligent terminal;Gateway where intelligent terminal will acquire data
Request is forwarded to intelligent terminal, recommends to mark by American Electronics Industry Association between the gateway where intelligent terminal and intelligent terminal
232 (Electronic Industry Association-recommeded standard232, RS232) of standard or American Electronic
Industry Association proposed standard 485 (Electronic Industry Association-recommeded standard232,
RS232 it) carries out, the gateway where intelligent terminal is in such a way that toggle switch, software are arranged or are voluntarily negotiated using software
Intelligent terminal distribution corresponds to the unique address of gateway where terminal, and request of data is passed through intelligence by the gateway where intelligent terminal
The interface of energy terminal connection is transferred to intelligent terminal;Gateway where intelligent terminal matches the interface where intelligent terminal with gateway
Unicast transparent transmission is established, the gateway response data request where intelligent terminal to intelligent terminal;Gateway where intelligent terminal determines
After intelligent terminal has responded request of data, the response of request of data is sent to gateway, and forwards the address of intelligent terminal, Zhi Houzhi
Gateway where energy terminal is established from the interface where intelligent terminal to the transparent transmission link gateway, whole to gateway and intelligence
The processing of data link layer or more is not done in communication between end, and intelligent terminal passes through the gateway transparent transmission where intelligent terminal to gateway
Send data;The data that gateway processes intelligent terminal is sent.
Further, described instruction executes following steps under the control of the controller: gateway is obtained by link layer transparent transmission
Take the Intelligent terminal data to be treated being connected on other gateways and handle, another scheme, specifically include: gateway is wide
Broadcast the address information of all gateways;Gateway obtains the network address (Internet of intelligent terminal by control node
Protocol, IP), gateway establishes the connection between gateway and intelligent terminal by network interface in network layer;Gateway is to intelligence
It can terminal transmission acquisition request of data;Gateway where intelligent terminal will acquire request of data and route to the intelligent terminal, obtain
Transmitting of the request of data by the routing completion of the Routing Protocol between other gateways between gateway to intelligent terminal;Intelligence
Terminal is responded to gateway obtains request of data, and it is whole to gateway forwards intelligence that the gateway where intelligent terminal equally passes through Routing Protocol
The response at end;Later, the interface where intelligent terminal is established unicast data chain with gateway pairing by the gateway where intelligent terminal
The transparent transmission of road floor is forwarded directly to the data of gateway by intelligent terminal, between corresponding interface, is forwarded with two layers of mode, no
It is further to be handled;Gateway transparent transmission where intelligent terminal passes through intelligent terminal is intelligent to gateway processes after gateway transmission data
The data that terminal is sent.
Further, described instruction executes following steps under the control of the controller: control node is according to the negative of gateway
Loading capability distributes after all intelligent terminals to be treated, this method further include: the needs that gateway is distributed according to control node
The address of the intelligent terminal of processing determines that intelligent terminal is connected on the interface of itself, by corresponding interface to intelligent terminal
It issues and obtains request of data, and handle the data of intelligent terminal upload.
Also disclose a kind of load-balancing method, apply in a kind of above-mentioned SiteServer LBS with complete different gateways it
Between load balancing.
Compared with prior art, the present invention is by the basis of original network structure, by the load on each gateway
Processor active task put together and redistribute, guarantee that the hardware resource of gateway surplus can distribute to other intelligent terminals in time,
Increase physical circuit without additional simultaneously.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of embodiment of SiteServer LBS of the present invention.
Fig. 2 further improves for a kind of embodiment shown in SiteServer LBS Fig. 1 of the present invention.
Fig. 3 is the flow chart of load-balancing method of the present invention.
Fig. 4 is the flow chart of Fig. 3 step S200.
Fig. 5 is the flow chart of Fig. 3 step S300.
Fig. 6 is the flow chart that Fig. 3 step S400 intelligent terminal uses data link layer communication with the outside world.
Fig. 7 is the flow chart that Fig. 3 step S400 intelligent terminal uses network layer communication with the outside world.
Description of symbols:
1 --- intelligent terminal, 2 --- gateway, 3 --- interchanger
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The present invention provides a kind of systems of load balancing, referring to FIG. 1, this system includes at least two gateways 2, it is described
The intercommunication of gateway 2 connects, and is connected with several intelligent terminals 1 on each gateway 2, wherein the gateway 2 is the network equipment,
Existing general purpose network protocol is followed, in two layers or three layers upper forwarding data, herein on basis, while every gateway 2 has
The ability of intelligent terminal 1 is loaded, the gateway 2 is used for the data that processing intelligent terminal 1 uploads, the intelligent terminal 1 that gateway 2 connects
In the state of less, there is surplus in the load capacity of gateway 2, and in the state that the intelligent terminal 1 that gateway 2 connects is more, intelligence is eventually
End 1 exceeds 2 load capacity of gateway.
The intelligent terminal 1 has with the address media access control interface (Media Access Control, MAC)
Network interface, it then follows Data Link Protocol sends digital information, and in a kind of embodiment, the intelligent terminal 1 is that sensing is set
It is standby, collected digitized sensor information is sent by network interface, in a kind of embodiment, the intelligent terminal 1 also has
There is IP address, it then follows network layer protocol spanning gateway 2 is received and sent messages to other network equipments.
The hardware configuration of the gateway 2 is same or similar, is provided with above-mentioned function, wherein it is artificial or follow related protocol from
Negotiate a gateway 2 as control node, control node itself has other effects of gateway, herein on basis, control section
Point is also used to obtain the information for the intelligent terminal 1 that all gateways 2 connect, and is redistributed according to the surplus situation that gateway 2 loads
Each gateway 2 intelligent terminal 1 to be treated, a kind of embodiment are things-internet gateways, and things-internet gateway is suitble to be used in industrial inspection
It surveys, the fields of employment such as smart home, on the basis of legacy network devices, is integrated with and Internet of things node data are extracted, are located
The function of reason and control.
The data that the intelligent terminal 1 of itself connection of the processing of gateway 2 uploads;And the gateway 2 as 1 place of intelligent terminal, to
The data for the intelligent terminal 1 that other gateway forwards are connect with itself;It also obtains and is connected to intelligence to be treated on other gateways 2
The data of terminal 1 are simultaneously handled using the load capacity of itself surplus.
In physical connection mode, between gateway 2 be interconnected, in a kind of application environment, SiteServer LBS by
A small number of gateways 2 and several intelligent terminals 1 form, and can be connected with each other by heterogeneous networks interface between gateway 2, this network knot
Structure is suitably applied the SiteServer LBS of three or less gateways 2 composition;In another embodiment, it is additionally provided with interchanger,
All gateways 2 are connect with interchanger, turn to realize that the link between gateway 2 is connected to by exchange data link layer, this net
Network structure is suitably applied the SiteServer LBS of three or three or more gateways 2 composition, the use of connecting line is reduced, so that net
Network open up mend it is more succinct, between network interface and intelligent terminal can by the serial line interface including RS232 and RS485 including, association
Communication is simultaneously established in the address of each terminal of quotient, or establishes the communication on two layers or three layers by network interface.
Referring to FIG. 3, a kind of method executed in system of load balancing, this method specifically:
Step S100: determine that a gateway is control node.
Specifically, the form of control node through consultation is selected from multiple gateways, such as toggle switch, or by artificial
It is most strong that the form of setting selectes some operational capabilities, and physical location is used as control node, control node use by ectocentral gateway
In the information for collecting other gateways, summarizes the loading condition of each gateway, adjust and distribute each gateway intelligent terminal to be treated.
Step S200: control node determines the intelligent terminal information that intelligent terminal is connected on all gateways.
Specifically, referring to FIG. 4, control node obtains the intelligent terminal information connected on all gateways, intelligent terminal letter
Breath can just further determine that whether the load of each gateway is balanced after concentrating, and how distribute the intelligence of each gateway connection eventually
End.
Step S300: control node distributes all intelligent terminals to be treated according to the load capacity of gateway.
Specifically, referring to FIG. 5, control node is redistributed according to the surplus and deficiency of each gateway load ability needs to locate
The intelligent terminal of reason.
Step S400: gateway obtains the data of intelligent terminal to be treated.
Specifically, Fig. 6 and Fig. 7 are please referred to, control node surplus occurs according to gateway load ability, while other gateways are negative
There is deficiency in loading capability, and the intelligent terminal connected on other gateways is distributed to the load capacity and is occurred at the gateway of surplus
There is the gateway of surplus according to the distribution condition of intelligent terminal, build with the gateway negotiation where intelligent terminal in reason, the load capacity
Vertical transparent transmission link, and the data of intelligent terminal are received to save the hardware spending of data forwarding by transparent transmission link.
Step S500: the data of gateway processes intelligent terminal.
Specifically, the received data of gateway processes complete the task of SiteServer LBS, in one set of embodiments, processing
Data afterwards can be transmitted to matched server and be stored in gateway to provide further data service, or by processing result
In, wait operator to extract.
Specifically, wherein step S200 is specifically included:
Step S201: gateway obtains the intelligent terminal information of the connection intelligent terminal in own interfaces.
Specifically, each gateway obtains the address of the intelligent terminal of gateway feeding connection by scan interface, in a kind of implementation
In example, gateway and the intelligent terminal negotiation address using serial communication, and communicated using the address, in another embodiment
Middle gateway obtains the MAC and IP of the intelligent terminal using network interface, and obtains intelligence by the agreement that intelligent terminal follows
The model of terminal, the type as intelligent terminal.
Step S202: control node obtains the intelligent terminal information of all gateway connections.
Specifically, control node obtains the intelligent terminal information of all gateway connections, including address information and intelligent terminal
Type.
Step S203: control node determines the corresponding relationship of intelligent terminal and gateway.
Specifically, control node determines the corresponding relationship between intelligent terminal and gateway, facilitates the load for determining each gateway
Situation.
Specifically, wherein step S300 is specifically included:
Step S301: hardware resource needed for control node determines each intelligent terminal.
Specifically, according to the type of intelligent terminal, hardware resource needed for control node determines intelligent terminal, usually steady
Under fixed running environment, the processor resource and memory source that each intelligent terminal needs are relatively fixed, so control node root
According to the type of intelligent terminal, demand of each intelligent terminal to processor and memory source is determined, wherein intelligent terminal is to memory
The bandwidth that can usually be provided with the physical space of committed memory and matched Memory Controller Hub of consumption it is related, can usually use
The byte number in committed memory space records.Intelligent terminal according to the power of different processor, makes the occupancy of processor resource
The difference of journey and core architecture and it is different, in one embodiment, all gateways processor structure having the same can be with
Demand of the core frequency record intelligent terminal that intelligent terminal occupies to processor resource;Gateway uses in another embodiment
Processor structure disunity, then set a standard processor, using the calculation amount that its unit time can complete as singly
Position score, demand of the intelligent terminal to processor resource can be indicated relative to score, it should be noted that common is general
Processor is not completely the same to variety classes computational efficiency, it is therefore desirable to main meter when according to processing intelligent terminal data
It calculates type and determines score.
Requirement of the intelligent terminal to processor and memory source can be preset in the gateway, and with intelligent terminal type
It is corresponding.
Step S302: control node determines the intelligent terminal directly connected beyond gateway load ability.
Specifically, control node is determined according to summation of the intelligent terminal connected on each gateway to hardware resource requirements and is somebody's turn to do
The service condition of gateway load ability, determines the intelligent terminal for exceeding gateway load ability, in a kind of embodiment, will exceed load
The task amount of ability is recorded in the form of hardware resource, determines additional hardware resource requirements;In another embodiment, tool is determined
The intelligent terminal of body distributes to other gateways for control node.
Step S303: control node determines the gateway of load capacity surplus.
Specifically, control node determines the gateway of load capacity surplus, determines the hardware resource of its surplus.
Step S304: control node redistributes the load of each gateway.
Specifically, control node distributes intelligence to be treated eventually according to the surplus situation of the gateway of load capacity surplus
End.
Wherein step S400 is specifically included:
Step S401a: control node broadcasts the address information of all gateways
Specifically, control node broadcasts the IP address of all gateways, and gateway establishes the routing chained list of itself, and determines other
The MAC of gateway establishes the communication between gateway.
Step S402a: gateway obtains the gateway where intelligent terminal by control node
Specifically, the intelligent terminal that gateway is handled as needed, the ground of gateway where obtaining intelligent terminal to control node
Location,
Step S403a: the gateway where gateway to intelligent terminal sends the request for obtaining data.
Specifically, gateway sends data packet by the gateway where Routing Protocol to intelligent terminal.
Step S404a: the request that the gateway where intelligent terminal will acquire data is forwarded to intelligent terminal.
Specifically, the request that the gateway where intelligent terminal will acquire is forwarded to by the address negotiated with intelligent terminal to be made
With the intelligent terminal of the serial communications such as RS232 and RS485.
Step S405a: establish intelligent terminal to the unicast data link layer between gateway transparent transmission.
Specifically, in this embodiment, string of the connection setup of intelligent terminal between the gateway where intelligent terminal
On line link, uses and will acquire the net that request of data is sent to where intelligent terminal with the address negotiated between it, gateway
It closes, the gateway where intelligent terminal will acquire the address of request of data through consultation and be forwarded to intelligent terminal, intelligent terminal response
After obtaining request of data, response returns to gateway by the gateway where intelligent terminal, while through consultation according to intelligent terminal
The MAC of address and gateway establishes unicast data link layer between the interface of connection intelligent terminal and the interface of connection gateway
Transparent transmission, the data sent from intelligent terminal to gateway, and format meets the data of Intelligent terminal data format, will pass through link
Layer is forwarded to the transparent transmission that gateway completes unicast data link layer, does not do upper layer processing, so greatlys save the premise of hardware resource
Under, by the data forwarding of intelligent terminal to gateway processes.
Step S406a: gateway obtains the data of intelligent terminal to be treated by transparent transmission.
Specifically, gateway gets the data of intelligent terminal by transparent transmission.
In another embodiment, step S400 is specifically included:
Step S401b: control node broadcasts the address information of all gateways.
Step S402b: the IP of gateway acquisition intelligent terminal.
Specifically, the intelligent terminal that gateway is handled as needed, the ground of gateway where obtaining intelligent terminal to control node
Location, in some Routing Protocols, it is also necessary to the virtual interface of gateway, some pipes based on advanced application where determining intelligent terminal
Reason software additionally provides the port numbers of gateway where corresponding intelligent terminal corresponds to intelligent terminal, true according to virtual interface or port numbers
The fixed intelligent terminal.
Step S403b: gateway sends the request for obtaining data to intelligent terminal.
Gateway passes through network protocol to the request for using the intelligent terminal of network interface to directly transmit acquisition data.
Step S404b: the request for obtaining data routes to intelligent terminal.
The request for obtaining data is forwarded directly to intelligent terminal by the gateway where intelligent terminal.
Step S405b: intelligent terminal responds the request for obtaining data to gateway.
Intelligent terminal responds the request for obtaining data by network protocol to gateway.
Step S406b: establish intelligent terminal to the unicast data link layer between gateway transparent transmission.
When data between forward gateway and intelligent terminal, interface that the gateway confirmation where terminal is connected with gateway with
And the interface being connected with intelligent terminal, while confirming the MAC of the two, herein on basis, the gateway where terminal establishes two groups
The transparent transmission of unicast data link between interface, original MAC is the MAC of intelligent terminal between two ports, and purpose MAC is gateway
MAC, and format meets the data needle of Intelligent terminal data format, is directly forwarded without doing at upper layer by data link layer
Reason.
Step S407b: gateway obtains the data of intelligent terminal to be treated by transparent transmission.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art,
It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims
Subject to.
Claims (10)
1. a kind of SiteServer LBS, which is characterized in that including at least two gateways interconnected, the gateway includes storage
Device and controller are stored with instruction in the memory, and described instruction executes following steps under the control of the controller:
Determine that a gateway is control node;
Control node determines the intelligent terminal information that intelligent terminal is connected on all gateways, wherein the intelligent terminal packet
Include intelligent terminal type, media access control interface (Media Access Control, MAC) and interface index;
Control node distributes all intelligent terminals to be treated according to the load capacity of gateway;And
Gateway is obtained the Intelligent terminal data to be treated being connected on other gateways and is handled by link layer transparent transmission.
2. a kind of SiteServer LBS according to claim 1, it is characterised in that: " control node determines institute to the step
Have the intelligent terminal information that intelligent terminal is connected on gateway ", it specifically includes:
Gateway obtains the intelligent terminal information that intelligent terminal is connected in own interfaces;
Control node obtains the intelligent terminal information that intelligent terminal is connected on all gateways;And
Control node determines the corresponding relationship of intelligent terminal and gateway.
3. a kind of SiteServer LBS according to claim 1, it is characterised in that: step " the control node root
All intelligent terminals to be treated are distributed according to the load capacity of gateway ", it specifically includes:
Hardware resource needed for control node determines connection intelligent terminal on gateway according to intelligent terminal type;
Control node is determined according to the load capacity of gateway and is connected directly with gateway, and is more than the intelligent whole of gateway load ability
End;
Control node determines that the gateway of surplus occurs in load capacity;And
Control node distributes the intelligent terminal more than gateway load ability to the gateway of load capacity surplus.
4. a kind of SiteServer LBS according to claim 1, it is characterised in that: " acquisition is connected to other to the step
Intelligent terminal data to be treated on gateway is simultaneously handled ", it specifically includes:
Control node broadcasts the address information of all gateways;
Gateway obtains the gateway where intelligent terminal by control node;
Gateway where from gateway to intelligent terminal, which is sent, obtains request of data;
The request that gateway where intelligent terminal will acquire data is forwarded to intelligent terminal;
Interface where intelligent terminal is established the transparent transmission of unicast data link layer by gateway where intelligent terminal with gateway pairing;
Gateway transparent transmission where intelligent terminal passes through intelligent terminal sends data to gateway;And
The data that gateway processes intelligent terminal is sent.
5. a kind of SiteServer LBS according to claim 1, it is characterised in that: " gateway passes through link layer to the step
Transparent transmission obtains the Intelligent terminal data to be treated being connected on other gateways and handles ", it specifically includes:
Control node broadcasts the address information of all gateways;
Gateway obtains the network address (Internet Protocol, IP) of intelligent terminal by control node;
Gateway sends to intelligent terminal and obtains request of data;
Gateway where intelligent terminal will acquire request of data and route to intelligent terminal;
Intelligent terminal responds to gateway and obtains request of data;
Interface where intelligent terminal is established the transparent transmission of unicast data link layer by the gateway where intelligent terminal with gateway pairing;
Gateway transparent transmission where intelligent terminal passes through intelligent terminal sends data to gateway;And
The data that gateway processes intelligent terminal is sent.
6. a kind of SiteServer LBS according to claim 1, it is characterised in that: the step: " control node is according to net
The load capacity of pass distributes all intelligent terminals to be treated " after, this method further include: the intelligence that gateway is handled as needed
Energy terminal is connected on the interface of itself, handles the data of intelligent terminal upload.
7. a kind of SiteServer LBS according to claim 1, it is characterised in that: a kind of SiteServer LBS also wraps
Interchanger is included, at least two gateways are connected by the interchanger.
8. a kind of load-balancing method, apply in a kind of SiteServer LBS described in claim 1 to 7 any one, it should
Method includes:
Determine that a gateway is control node;
Control node determines the intelligent terminal information that intelligent terminal is connected on all gateways, wherein the intelligent terminal packet
Include intelligent terminal type, media access control interface (Media Access Control, MAC) and interface index;
Control node distributes all intelligent terminals to be treated according to the load capacity of gateway;And
Gateway is obtained the Intelligent terminal data to be treated being connected on other gateways and is handled by link layer transparent transmission.
9. a kind of load-balancing method according to claim 8, it is characterised in that: the control node determines all gateways
The intelligent terminal information of upper connection intelligent terminal, specifically includes:
Gateway obtains the intelligent terminal information that intelligent terminal is connected in own interfaces;
Control node obtains the intelligent terminal information that intelligent terminal is connected on all gateways;And
Control node determines the corresponding relationship of intelligent terminal and gateway.
10. a kind of load-balancing method according to claim 8, it is characterised in that: the control node is according to gateway
Load capacity distributes all intelligent terminals to be treated, specifically includes:
Hardware resource needed for control node determines connection intelligent terminal on gateway according to intelligent terminal type;
Control node is determined according to the load capacity of gateway and is connected directly with gateway, and is more than the intelligent whole of gateway load ability
End;
Control node determines that the gateway of surplus occurs in load capacity;And
Control node distributes the intelligent terminal more than gateway load ability to the gateway of load capacity surplus.
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 true CN110365718A (en) | 2019-10-22 |
CN110365718B 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) |
Cited By (1)
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 (4)
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 |
US20080104273A1 (en) * | 1999-11-10 | 2008-05-01 | Jehoshua Bruck | Distributed Traffic Controller for Network Data |
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 |
-
2018
- 2018-03-26 CN CN201810252749.3A patent/CN110365718B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080104273A1 (en) * | 1999-11-10 | 2008-05-01 | Jehoshua Bruck | Distributed Traffic Controller for Network Data |
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 |
Cited By (1)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN110365718B (en) | 2021-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Zhou et al. | Design and implementation of open LoRa for IoT | |
CN101176306B (en) | Traffic analysis system and method for checking network communication service flow | |
CN102447708A (en) | Communication implementation method based on application-layer transparent proxy technology | |
WO2012152132A1 (en) | Method and system for realizing application platform adaptation | |
CN105323310B (en) | Network communication method, equipment and network attached storage equipment | |
WO2011002177A2 (en) | Zigbee gateway, and ip service server interconnected with the zigbee gateway via an ip network | |
CN114945032B (en) | Electric power internet of things terminal data access system, method, device, equipment and medium | |
CN110717664A (en) | CPS production system for service-oriented production process based on mobile edge calculation | |
JP2007249472A (en) | Programmable controller and communication unit | |
Ünal | Integration of ZigBee based GPS receiver to CAN network for precision farming applications | |
CN103685285B (en) | A kind of method that terminal quantity is limited under route pattern | |
CN103873369B (en) | Gateway and method for supporting interaction of heterogeneous network | |
CN110365718A (en) | A kind of load-balancing method and system | |
CN108702799A (en) | Method for merging mobile core and IOT data | |
CN117615028A (en) | Method and system for transmitting IEC104 protocol data based on electric power Internet of things management platform | |
CN109905927B (en) | WIFI-based Internet of things equipment ad hoc network method and system | |
CN107770060A (en) | A kind of things-internet gateway system based on wire and wireless integration technology | |
CN104885417A (en) | Control apparatus, communication system, communication node control method and program | |
CN108933704B (en) | Network deployment method and device | |
CN116455817A (en) | Software-defined cloud network fusion architecture and route implementation method | |
CN103986692B (en) | Data forwarding method and system based on wireless access point | |
JP2018528641A (en) | Communication policy control in machine-to-machine communication system | |
CN107465770A (en) | The method and device that a kind of SDN communicates with non-SDN | |
TWI489891B (en) | Distributed data processing system, distributed data processing method and wireless terminal point thereof | |
CN106789208B (en) | A kind of network forensics facility network tube model based on the reversed through-transmission technique of UDT |
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 |