CN110868361A - Gateway load balancing method, device and equipment - Google Patents
Gateway load balancing method, device and equipment Download PDFInfo
- Publication number
- CN110868361A CN110868361A CN201911060481.4A CN201911060481A CN110868361A CN 110868361 A CN110868361 A CN 110868361A CN 201911060481 A CN201911060481 A CN 201911060481A CN 110868361 A CN110868361 A CN 110868361A
- Authority
- CN
- China
- Prior art keywords
- gateway
- target
- gateways
- load balancing
- load
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000012545 processing Methods 0.000 claims description 9
- 238000004891 communication Methods 0.000 claims description 5
- 238000007726 management method Methods 0.000 claims description 4
- 230000015556 catabolic process Effects 0.000 abstract 1
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a method, a device and equipment for balancing gateway load, which relate to the technical field of networks, and the method comprises the following steps: acquiring load information of a plurality of gateways; determining a target gateway according to the load information of the plurality of gateways; establishing a corresponding relation between a browser client and the target gateway; providing the corresponding relation to a browser so that the browser can send an access request of a target application program to the target gateway according to the corresponding relation and further access the target application program; wherein the plurality of applications includes the target application. The invention can improve the gateway analysis speed and avoid the problem of breakdown caused by heavy work of a single gateway.
Description
Technical Field
The embodiment of the invention relates to the technical field of networks, in particular to a method, a device and equipment for balancing gateway load.
Background
Domain name resolution is a service that directs a domain name to a website space IP (Internet Protocol, Internet Protocol address) so that people can conveniently access the website through the registered domain name. The IP address is a digital address for identifying a station on the network, and a domain name is adopted to replace the IP address to identify the station address for the convenience of memory. Domain name resolution is the process of converting a domain name to an IP address. The Domain Name resolution is performed by a DNS (Domain Name System) server.
Currently, when a user accesses a target application through a browser, a gateway designated by the target application performs DNS resolution, so that when the access amount of the target application is too large in a certain time, the gateway may resolve the DNS slowly, or even cause the gateway to crash.
Disclosure of Invention
The embodiment of the invention aims to provide a gateway load balancing method, a gateway load balancing device and gateway load balancing equipment, which are used for solving the problem of low resolution speed of the existing DNS.
In order to achieve the above object, the embodiments of the present invention mainly provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for balancing gateway load, including: acquiring load information of a plurality of gateways; determining a target gateway according to the load information of the plurality of gateways; establishing a corresponding relation between a browser client and the target gateway; providing the corresponding relation to the browser client so that the browser client can send an access request of a target application program to the target gateway according to the corresponding relation to further access the target application program; wherein the plurality of applications includes the target application.
Further, the determining a target gateway according to the load information of the plurality of gateways specifically includes: selecting a gateway with the smallest load from the plurality of gateways as the target gateway.
Further, the load information includes concurrency number and memory usage rate.
Further, the plurality of application programs includes at least two of an Office Automation (OA) application program, a Customer Relationship Management (CRM) program, and an Enterprise Resource Planning (ERP) program.
In a second aspect, an embodiment of the present invention further provides a system for balancing gateway load, including: the acquisition module is used for acquiring the load information of a plurality of gateways; the control processing module is used for determining a target gateway according to the load information of the plurality of gateways and further establishing a corresponding relation between the browser client and the target gateway; and the communication module is used for providing the corresponding relation for the browser client so that the browser client can send an access request of a target application program to the target gateway according to the corresponding relation to further access the target application program, and the plurality of application programs comprise the target application program.
Further, the control processing module is configured to select a gateway with the smallest load from the plurality of gateways as the target gateway.
Further, the load information includes concurrency number and memory usage rate.
Further, the plurality of application programs includes at least two of an Office Automation (OA) application program, a Customer Relationship Management (CRM) program, and an Enterprise Resource Planning (ERP) program.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: at least one processor and at least one memory; the memory is to store one or more program instructions; the processor is configured to execute one or more program instructions to perform the method of gateway load balancing according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium containing one or more program instructions for executing the method for gateway load balancing according to the first aspect.
The technical scheme provided by the embodiment of the invention at least has the following advantages:
according to the gateway load balancing method, device and equipment provided by the embodiment of the invention, a plurality of gateways are provided for analyzing a plurality of application programs, and load balancing is carried out according to the load conditions of the plurality of gateways, so that the domain name resolution speed is increased, and the problem of collapse caused by heavy work of a single gateway is avoided.
Drawings
Fig. 1 is a flowchart of a method for balancing gateway load according to an embodiment of the present invention;
fig. 2 is a block diagram of a gateway load balancing system according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention is provided for illustrative purposes, and other advantages and effects of the present invention will become apparent to those skilled in the art from the present disclosure.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, interfaces, techniques, etc. in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In the description of the present invention, it is to be noted that, unless otherwise explicitly specified or limited, the term "connected" is to be interpreted broadly, e.g. as a fixed connection, a detachable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Fig. 1 is a flowchart of a method for balancing gateway load according to an embodiment of the present invention. As shown in fig. 1, a method for balancing gateway load according to an embodiment of the present invention includes:
s1: load information of a plurality of gateways is obtained.
Specifically, the invention provides a plurality of gateways, which do not fix the DNS analysis on the access request of a certain application program, but can select one gateway from the plurality of gateways to analyze the access request of the target application program.
The background server acquires the load conditions of a plurality of gateways. The background server can acquire the load conditions of a plurality of current gateways at intervals, and prepare to select one gateway browser for application access analysis.
In one embodiment of the invention, the load information includes concurrency and memory usage. The concurrency number is the number of online users who interact with the server at the same time. The biggest characteristic of these users is that they interact with the server, and the interaction can be either one-way data transmission or two-way data transmission. The concurrency number and the memory utilization rate can effectively show the load condition of the gateway.
S2: and determining a target gateway according to the load information of the plurality of gateways.
In one embodiment of the invention, the background server selects the gateway with the smallest current load as the target gateway. Further, when the current load difference of the multiple gateways is within a certain range, the gateway with the best performance (the gateway with the latest model, the fastest processing speed or the most stable historical working condition) can be selected for DNS resolution. The gateways store the analysis mode of the address of the application program.
S3: and establishing a corresponding relation between the browser client and the target gateway.
And after the background server selects the target gateway, establishing a corresponding relation between the browser client and the target gateway. The client browser can access the corresponding application program according to the corresponding relation.
S4: and providing the corresponding relation to a browser client so that the browser can send an access request of a target application program to the target gateway according to the analyzed corresponding relation, and then access the target application program. Wherein the plurality of applications includes the target application.
Specifically, after the background server establishes a correspondence between the browser client and the target gateway, the correspondence is sent to the browser client used by the user. After receiving the analysis correspondence, the browser client can send an access request of the target application program to the target gateway, and then the target gateway analyzes the access request, so that the browser of the user can access the target application program through the target gateway.
According to the gateway load balancing method provided by the embodiment of the invention, a plurality of gateways are provided for analyzing a plurality of application programs, and load balancing is carried out according to the load conditions of the plurality of gateways, so that the domain name analyzing speed is increased, and the problem of collapse caused by heavy work of a single gateway is avoided.
Fig. 2 is a block diagram of a gateway load balancing apparatus according to an embodiment of the present invention. As shown in fig. 2, the gateway load balancing apparatus according to the embodiment of the present invention includes: an acquisition module 100, a control processing module 200 and a communication module 300.
The obtaining module 100 is configured to obtain load information of a plurality of gateways. The control processing module 200 is configured to determine a target gateway according to load information of multiple gateways, and further establish a corresponding relationship between a browser client and the target gateway. The communication module 300 is configured to provide the corresponding relationship to the browser client, so that the browser client sends an access request of a target application to the target gateway according to the corresponding relationship, and further accesses the target application, where the plurality of applications include the target application.
In one embodiment of the present invention, the control processing module 300 is configured to select a gateway with the smallest load from the plurality of gateways as the target gateway.
In one embodiment of the invention, the load information includes concurrency and memory usage.
In one embodiment of the invention, the plurality of application programs includes at least two of an OA application, a CRM program, and an ERP program.
It should be noted that, a specific implementation of the gateway load balancing apparatus in the embodiment of the present invention is similar to a specific implementation of the gateway load balancing method in the embodiment of the present invention, and specific reference is specifically made to the description of the gateway load balancing method, and details are not described here in order to reduce redundancy.
An embodiment of the present invention discloses an electronic device, including: at least one processor and at least one memory; the memory is to store one or more program instructions; the processor is configured to execute one or more program instructions to perform the method for gateway load balancing as described above.
The embodiments disclosed herein provide a computer-readable storage medium having computer program instructions stored therein, which when run on a computer, cause the computer to perform the above-mentioned method for gateway load balancing.
In an embodiment of the invention, the processor may be an integrated circuit chip having signal processing capability. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
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 processor reads the information in the storage medium and completes the steps of the method in combination with the hardware.
The storage medium may be a memory, for example, which may be volatile memory or nonvolatile memory, or which may include both volatile and nonvolatile memory.
The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory.
Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous DRAM (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM).
The storage media described in connection with the embodiments of the invention are intended to comprise, without being limited to, these and any other suitable types of memory.
Those skilled in the art will appreciate that the functionality described in the present invention may be implemented in a combination of hardware and software in one or more of the examples described above. When software is applied, the corresponding functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for gateway load balancing, comprising:
acquiring load information of a plurality of gateways;
determining a target gateway according to the load information of the plurality of gateways;
establishing a corresponding relation between a browser client and the target gateway;
providing the corresponding relation to the browser client so that the browser client can send an access request of a target application program to the target gateway according to the corresponding relation to further access the target application program;
wherein the plurality of applications includes the target application.
2. The method for gateway load balancing according to claim 1, wherein determining the target gateway according to the load information of the plurality of gateways specifically includes:
selecting a gateway with the smallest load from the plurality of gateways as the target gateway.
3. The method of gateway load balancing according to claim 1, wherein the load information comprises concurrency number and memory usage.
4. The method for gateway load balancing according to claim 1, wherein the plurality of applications includes at least two of an Office Automation (OA) application, a Customer Relationship Management (CRM) program, and an Enterprise Resource Planning (ERP) program.
5. An apparatus for gateway load balancing, comprising:
the acquisition module is used for acquiring the load information of a plurality of gateways;
the control processing module is used for determining a target gateway according to the load information of the plurality of gateways and further establishing a corresponding relation between the browser client and the target gateway;
and the communication module is used for providing the corresponding relation for the browser client so that the browser client can send an access request of a target application program to the target gateway according to the corresponding relation to further access the target application program, and the plurality of application programs comprise the target application program.
6. The gateway load balancing apparatus of claim 5, wherein the control processing module is configured to select a gateway with the smallest load from the plurality of gateways as the target gateway.
7. The gateway load balancing apparatus of claim 5, wherein the load information comprises concurrency number and memory usage.
8. The apparatus for gateway load balancing according to claim 5, wherein the plurality of applications comprise at least two of an Office Automation (OA) application, a Customer Relationship Management (CRM) program, and an Enterprise Resource Planning (ERP) program.
9. An electronic device, characterized in that the electronic device comprises: at least one processor and at least one memory;
the memory is to store one or more program instructions;
the processor, configured to execute one or more program instructions to perform the method of gateway load balancing according to any one of claims 1 to 4.
10. A computer readable storage medium having one or more program instructions embodied therein for performing the method for gateway load balancing of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911060481.4A CN110868361A (en) | 2019-11-01 | 2019-11-01 | Gateway load balancing method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911060481.4A CN110868361A (en) | 2019-11-01 | 2019-11-01 | Gateway load balancing method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110868361A true CN110868361A (en) | 2020-03-06 |
Family
ID=69653561
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911060481.4A Pending CN110868361A (en) | 2019-11-01 | 2019-11-01 | Gateway load balancing method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110868361A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385359A (en) * | 2020-03-05 | 2020-07-07 | 星辰天合(北京)数据科技有限公司 | Load processing method and device of object gateway |
CN112104698A (en) * | 2020-08-07 | 2020-12-18 | 深圳市星砺达科技有限公司 | Method for accessing vehicle-mounted terminal to gateway, related equipment and medium |
CN112929424A (en) * | 2021-01-26 | 2021-06-08 | 成都佳发安泰教育科技股份有限公司 | Gateway load balancing method, device, equipment and storage medium |
CN113872995A (en) * | 2020-06-30 | 2021-12-31 | 华为技术有限公司 | Method and apparatus for selecting edge-enabled client |
CN115473753A (en) * | 2022-07-20 | 2022-12-13 | 青岛海尔科技有限公司 | Control method and device of gateway equipment, storage medium and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101827013A (en) * | 2009-03-05 | 2010-09-08 | 华为技术有限公司 | Method, device and system for balancing multi-gateway load |
CN101883103A (en) * | 2009-04-15 | 2010-11-10 | 埃森哲环球服务有限公司 | Method and system for client-side extension of web server group architecture in cloud data center |
CN102917443A (en) * | 2012-10-23 | 2013-02-06 | 中国联合网络通信集团有限公司 | Method and device for selecting gateway and transmitting information, and network system |
US20170041385A1 (en) * | 2015-08-07 | 2017-02-09 | International Business Machines Corporation | Dynamic healthchecking load balancing gateway |
CN107426274A (en) * | 2017-04-06 | 2017-12-01 | 云南小鹰科技有限公司 | The method and system of service application and monitoring analysis scheduling based on sequential |
-
2019
- 2019-11-01 CN CN201911060481.4A patent/CN110868361A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101827013A (en) * | 2009-03-05 | 2010-09-08 | 华为技术有限公司 | Method, device and system for balancing multi-gateway load |
CN101883103A (en) * | 2009-04-15 | 2010-11-10 | 埃森哲环球服务有限公司 | Method and system for client-side extension of web server group architecture in cloud data center |
CN102917443A (en) * | 2012-10-23 | 2013-02-06 | 中国联合网络通信集团有限公司 | Method and device for selecting gateway and transmitting information, and network system |
US20170041385A1 (en) * | 2015-08-07 | 2017-02-09 | International Business Machines Corporation | Dynamic healthchecking load balancing gateway |
CN107426274A (en) * | 2017-04-06 | 2017-12-01 | 云南小鹰科技有限公司 | The method and system of service application and monitoring analysis scheduling based on sequential |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385359A (en) * | 2020-03-05 | 2020-07-07 | 星辰天合(北京)数据科技有限公司 | Load processing method and device of object gateway |
CN113872995A (en) * | 2020-06-30 | 2021-12-31 | 华为技术有限公司 | Method and apparatus for selecting edge-enabled client |
CN113872995B (en) * | 2020-06-30 | 2023-09-26 | 华为技术有限公司 | Methods and apparatus for selecting edge-enabled clients |
CN112104698A (en) * | 2020-08-07 | 2020-12-18 | 深圳市星砺达科技有限公司 | Method for accessing vehicle-mounted terminal to gateway, related equipment and medium |
CN112929424A (en) * | 2021-01-26 | 2021-06-08 | 成都佳发安泰教育科技股份有限公司 | Gateway load balancing method, device, equipment and storage medium |
CN112929424B (en) * | 2021-01-26 | 2022-11-15 | 成都佳发安泰教育科技股份有限公司 | Gateway load balancing method, device, equipment and storage medium |
CN115473753A (en) * | 2022-07-20 | 2022-12-13 | 青岛海尔科技有限公司 | Control method and device of gateway equipment, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110868361A (en) | Gateway load balancing method, device and equipment | |
US11461402B2 (en) | Routing based request correlation | |
CN110830458A (en) | Domain name access method, system and equipment | |
US8065417B1 (en) | Service provider registration by a content broker | |
US9985927B2 (en) | Managing content delivery network service providers by a content broker | |
CN109347998B (en) | Method and system for detecting IP address of DNS (Domain name Server) outlet server | |
CN107613037B (en) | Domain name redirection method and system | |
CN111917900A (en) | Request processing method and device for domain name proxy | |
CN104683457A (en) | Concurrency control method and device | |
CN112291365A (en) | Access balance processing method and device, computer equipment and storage medium | |
US10333966B2 (en) | Quarantining an internet protocol address | |
CN109413224B (en) | Message forwarding method and device | |
CN110276028B (en) | Processing method and device for internal link function requirements of business system | |
CN113055420A (en) | HTTPS service identification method and device and computing equipment | |
CN110855639A (en) | Method, device and equipment for controlling login of intranet and extranet of browser | |
CN104902033A (en) | Method and device for recording login address | |
CN110633432A (en) | Method, device, terminal equipment and medium for acquiring data | |
CN111222068A (en) | Private network IP conversion method and device | |
CN113783843B (en) | Domain name scheduling method, device, equipment and readable storage medium based on cloud WAF | |
CN113596105B (en) | Content acquisition method, edge node and computer readable storage medium | |
CN114697378B (en) | Website access method, device, equipment and medium | |
CN110958160B (en) | Website detection method, device and system and computer readable storage medium | |
CN112771835A (en) | Processing method and device for outer chain rewriting | |
CN104869182A (en) | Domain name resolution method and device | |
CN114070818B (en) | Website access system, method and device |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20221021 Address after: Room 1106-3, Taihu Science and Technology Industrial Park, No. 18, Longshan South Road, Guangfu Town, Wuzhong District, Suzhou City, Jiangsu Province, 215100 Applicant after: Suzhou Yunzhishen Technology Co.,Ltd. Address before: 100080 809-1, 8 / F, No.9, North Fourth Ring Road West, Haidian District, Beijing Applicant before: CLOUDDEEP INTERNET (BEIJING) TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200306 |
|
RJ01 | Rejection of invention patent application after publication |