CN111935285A - Dynamic load balancing method - Google Patents
Dynamic load balancing method Download PDFInfo
- Publication number
- CN111935285A CN111935285A CN202010806986.7A CN202010806986A CN111935285A CN 111935285 A CN111935285 A CN 111935285A CN 202010806986 A CN202010806986 A CN 202010806986A CN 111935285 A CN111935285 A CN 111935285A
- Authority
- CN
- China
- Prior art keywords
- service
- stream
- load balancing
- balancing method
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000011664 signaling Effects 0.000 claims abstract description 14
- 230000002452 interceptive effect Effects 0.000 claims abstract description 5
- 230000008569 process Effects 0.000 claims abstract description 5
- 230000008859 change Effects 0.000 claims description 6
- 238000007667 floating Methods 0.000 claims description 4
- 230000004044 response Effects 0.000 claims description 4
- 230000007246 mechanism Effects 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
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
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- 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
- H04L67/1034—Reaction to server failures by a load balancer
-
- 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/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a dynamic load balancing method, which comprises the following steps: s1: judging the service object, if the single data volume of the service object is small, the request is frequent, and the concurrency requirement is high, entering step S2, if the data traffic of the service object is large, the interactive process is less, and the requirement on the network is high, entering step S3; s2: a signaling load balancing method is adopted; s3: a media service load balancing method is adopted. The invention can meet the requirements of different data streams, has the guarantee of high availability and simultaneously ensures the provision of efficient and stable data transmission service.
Description
Technical Field
The invention relates to the technical field of laser communication, in particular to a dynamic load balancing method.
Background
Load balancing, is a computer technology used to distribute Load among multiple computers (computer clusters), network connections, CPUs, disk drives, or other resources to optimize resource usage, maximize throughput, minimize response time, and avoid overload.
The traditional load balancing technology has the defects of low availability, unstable and efficient provided service and the like.
Disclosure of Invention
The present invention is directed to solve the above problems, and an object of the present invention is to provide a dynamic load balancing method, which can meet the requirements of different data streams, has a high availability guarantee, and ensures to provide a high-efficient and stable data transmission service.
A dynamic load balancing method comprises the following steps:
s1: judging the service object, if the single data volume of the service object is small, the request is frequent, and the concurrency requirement is high, entering step S2, if the data traffic of the service object is large, the interactive process is less, and the requirement on the network is high, entering step S3;
s2: a signaling load balancing method is adopted;
s3: a media service load balancing method is adopted.
Further, the signaling load balancing method specifically includes the following substeps:
s21: a user initiates access;
s22: accessing a routing node through a router;
s23: the routing node allocates a signaling service according to an algorithm, specifically: a state reporting mechanism is arranged between the routing node and the service, the reported content comprises the number of connections, the response speed and the performance parameters, the routing node judges through the reported content, and then the task is distributed to fall on a specific idle server for processing;
s24: and returning the address result of the allocation processing server.
Further, the media service load balancing method comprises the following sub-steps:
s31: after a user initiates access, a media server pulls a data stream according to a request, and synchronously sends information to all CDN nodes while sending data to a client through CDN information, but data distribution is not performed, so that a visitor can quickly access the data;
s32: the method comprises the steps that a router accesses a routing node, when an accessor accesses a data stream through the gateway, the gateway distributes service according to state information of media service, if the service is distributed to a stream taking server, the service is directly returned to the service for normal stream taking, if the load of the stream taking server is high, other distributed servers perform service, and the distributed server needs to take the stream to the stream taking node and then distribute the stream to the stream taking node at the moment, so that only one path of data is provided for a data source, the load of original equipment is reduced, and simultaneously, the load of all nodes is balanced;
s33: the routing node distributes media services according to the algorithm;
s34: and returning the address result of the allocation processing server.
Further, the routing node comprises a main gateway and a standby gateway, and one or more standby gateways are provided.
Further, when the main gateway fails, the standby gateway takes over the work through the floating IP.
Furthermore, if the media service node fails, the stream fetching information on the service is distributed to other service nodes through the routing node in time, and the user is informed that the stream fetching position changes, and stream fetching change is carried out immediately to ensure that the stream information is not interrupted; if only the distribution node has a fault, the user only needs to be informed of the change of the stream taking position, and the stream is taken from the new address again.
The invention has the beneficial effects that: the method can meet the requirements of different data streams, has high availability guarantee, and simultaneously ensures that high-efficiency and stable data transmission service is provided.
Drawings
Fig. 1 is a flow chart of a signaling load balancing method of the present invention.
Fig. 2 is a flow chart of a media service load balancing method of the present invention.
Detailed Description
In order to more clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will now be described with reference to the accompanying drawings.
A dynamic load balancing method as shown in fig. 1 and 2 includes the following steps:
s1: judging the service object, if the single data volume of the service object is small, the request is frequent, and the concurrency requirement is high, entering step S2, if the data traffic of the service object is large, the interactive process is less, and the requirement on the network is high, entering step S3;
s2: a signaling load balancing method is adopted;
s3: a media service load balancing method is adopted.
The signaling service mainly serves scenes with small single data volume, frequent requests and high concurrency requirements, such as HTTP service and SIP signaling service, and for the type of service, the least connection and the fastest mode, namely the observer mode, are adopted for load balancing. Meanwhile, in order to ensure high availability, a dual-standby or multi-standby structure is required on a hardware level to ensure that efficient and stable service is provided when a server is down.
The user initiates access, the router accesses the main and standby servers of the routing gateway, then the routing gateway allocates signaling service according to the algorithm, and returns the address result of the allocation processing server.
And if the main routing equipment node fails, the standby routing node takes over the work through the floating IP. To ensure that service is not interrupted.
A state reporting mechanism is arranged between the routing nodes and the service, the reported content comprises the number of connections, the response speed and performance parameters (CPU, memory, network and the like), the routing nodes judge through the information, and then the task is distributed to fall on a specific idle server for processing.
The load balancing and high availability of the signaling service are completed through the above contents.
The media service is characterized by large data flow, less interactive process and high requirement on network. The single machine has limited processing capacity, and the simple adoption of the observer mode for load balancing aiming at the service of the type is not enough to meet the stable and efficient transmission of data.
The user initiates access, the router accesses the main and standby servers of the routing gateway, the routing gateway distributes media services according to the algorithm, and returns the address result of the distribution processing server.
And if the main routing equipment node fails, the standby routing node takes over the work through the floating IP. To ensure that service is not interrupted.
After the media server pulls the data stream according to the request, the media server distributes the data to the client and simultaneously synchronizes information to all CDN nodes through CDN information, but data distribution is not performed, so that a visitor can conveniently and quickly access the data.
When a visitor accesses the data stream through the gateway, the gateway distributes service according to the state information of the media service, if the service is distributed to the stream taking server, the service is directly returned to the normal stream taking of the service, if the load of the stream taking server is high, the distributed other servers perform service, and the distributed server needs to take the stream to the stream taking node and then distribute the stream. The data source is ensured to have only one path of data, and the load on the original equipment is reduced. And simultaneously balancing the loads of all nodes.
If one routing node fails, the processing mode is consistent with the signaling mode.
If the media service node has a fault, the stream fetching information on the service is distributed to other nodes through the routing node in time, and the user is informed that the stream fetching position is changed, and stream fetching change is carried out immediately, so that the stream information is ensured not to be interrupted. If the distribution node is in fault, the user is only required to be informed of the change of the stream taking position, and the stream is taken from the new address again.
In this embodiment, the proposed dynamic load balancing method can meet the requirements of different data streams, has a guarantee of high availability, and ensures that a high-efficiency and stable data transmission service is provided.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (6)
1. A dynamic load balancing method is characterized by comprising the following steps:
s1: judging the service object, if the single data volume of the service object is small, the request is frequent, and the concurrency requirement is high, entering step S2, if the data traffic of the service object is large, the interactive process is less, and the requirement on the network is high, entering step S3;
s2: a signaling load balancing method is adopted;
s3: a media service load balancing method is adopted.
2. The dynamic load balancing method according to claim 1, wherein the signaling load balancing method specifically comprises the following sub-steps:
s21: a user initiates access;
s22: accessing a routing node through a router;
s23: the routing node allocates a signaling service according to an algorithm, specifically: a state reporting mechanism is arranged between the routing node and the service, the reported content comprises the number of connections, the response speed and the performance parameters, the routing node judges through the reported content, and then the task is distributed to fall on a specific idle server for processing;
s24: and returning the address result of the allocation processing server.
3. A dynamic load balancing method according to claim 1, wherein the media service load balancing method comprises the sub-steps of:
s31: after a user initiates access, a media server pulls a data stream according to a request, and synchronously sends information to all CDN nodes while sending data to a client through CDN information, but data distribution is not performed, so that a visitor can quickly access the data;
s32: the method comprises the steps that a router accesses a routing node, when an accessor accesses a data stream through the gateway, the gateway distributes service according to state information of media service, if the service is distributed to a stream taking server, the service is directly returned to the service for normal stream taking, if the load of the stream taking server is high, other distributed servers perform service, and the distributed server needs to take the stream to the stream taking node and then distribute the stream to the stream taking node at the moment, so that only one path of data is provided for a data source, the load of original equipment is reduced, and simultaneously, the load of all nodes is balanced;
s33: the routing node distributes media services according to the algorithm;
s34: and returning the address result of the allocation processing server.
4. A method for dynamic load balancing according to any one of claims 2 or 3, wherein the routing nodes comprise a primary gateway and a backup gateway, the backup gateway being one or more.
5. The method of claim 4, wherein when the primary gateway fails, the standby gateway takes over its operation through the floating IP.
6. A dynamic load balancing method according to claim 3, wherein if a media service node fails, the stream fetching information on the service is distributed to other service nodes through the routing node in time, and the user is notified that the stream fetching position changes, and the stream fetching change is performed immediately, so as to ensure that the stream information is not interrupted; if only the distribution node has a fault, the user only needs to be informed of the change of the stream taking position, and the stream is taken from the new address again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010806986.7A CN111935285A (en) | 2020-08-12 | 2020-08-12 | Dynamic load balancing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010806986.7A CN111935285A (en) | 2020-08-12 | 2020-08-12 | Dynamic load balancing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111935285A true CN111935285A (en) | 2020-11-13 |
Family
ID=73310764
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010806986.7A Pending CN111935285A (en) | 2020-08-12 | 2020-08-12 | Dynamic load balancing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111935285A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1403934A (en) * | 2001-09-06 | 2003-03-19 | 华为技术有限公司 | Load balancing method and equipment for convective medium server |
WO2008080320A1 (en) * | 2006-12-31 | 2008-07-10 | Huawei Technologies Co., Ltd. | Media stream transmission method, system and related device |
CN101741850A (en) * | 2009-12-25 | 2010-06-16 | 北京邮电大学 | Multi-task concurrent execution system and method for hybrid network service |
CN101834877A (en) * | 2010-06-03 | 2010-09-15 | 华中科技大学 | Method and system for dynamic load balancing based on distributed SIP architecture |
CN102098270A (en) * | 2009-12-15 | 2011-06-15 | 上海威乾视频技术有限公司 | System and method for realizing load balance of streaming media server |
-
2020
- 2020-08-12 CN CN202010806986.7A patent/CN111935285A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1403934A (en) * | 2001-09-06 | 2003-03-19 | 华为技术有限公司 | Load balancing method and equipment for convective medium server |
WO2008080320A1 (en) * | 2006-12-31 | 2008-07-10 | Huawei Technologies Co., Ltd. | Media stream transmission method, system and related device |
CN102098270A (en) * | 2009-12-15 | 2011-06-15 | 上海威乾视频技术有限公司 | System and method for realizing load balance of streaming media server |
CN101741850A (en) * | 2009-12-25 | 2010-06-16 | 北京邮电大学 | Multi-task concurrent execution system and method for hybrid network service |
CN101834877A (en) * | 2010-06-03 | 2010-09-15 | 华中科技大学 | Method and system for dynamic load balancing based on distributed SIP architecture |
Non-Patent Citations (3)
Title |
---|
万博通公司技术部: "《宽带IP网络技术及其应用实例》", 31 May 2000 * |
杨成: "《网络电视技术》", 30 September 2017 * |
温璋: "高性能CDN流媒体服务器系统设计和实现", 《中国优秀硕士学位论文全文数据库》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
USRE45806E1 (en) | System and method for the optimization of database access in data base networks | |
CN112640371B (en) | Method and system for performing data operations on a distributed storage environment | |
US8909782B2 (en) | Method and system for dynamically rebalancing client sessions within a cluster of servers connected to a network | |
US10069707B2 (en) | System and method for seamless horizontal scaling using logical scalable units | |
CN105979273B (en) | Cloud monitoring and cloud operation and maintenance of intelligent commercial television based on big data and cloud computing | |
EP2670114A1 (en) | System and Methods for Communicating in a Telecommunication Network via Independent Key Routing and Proxies | |
CN108287905B (en) | A method for extracting and storing network flow features | |
KR102747387B1 (en) | Master data placement in distributed storage systems | |
CN111970362B (en) | LVS-based vehicle networking gateway clustering method and system | |
CN113727464A (en) | Method and device for establishing high-concurrency call of SIP streaming media server | |
US11093493B1 (en) | Dynamically switching between query and scan for optimizing table reads | |
EP2670112B1 (en) | System and Method for Communicating in a Telecommunication Network via Common Key Routing and Proxies | |
AU2013201256A1 (en) | Differentiated service-based graceful degradation layer | |
EP2670113A1 (en) | System and Method for Communicating in a Telecommunication Network via Independent Key Routing and Data Locality Tables | |
WO2019149166A1 (en) | Network access method, client, network interaction method, and scheduling and network systems | |
US20130325984A1 (en) | System and Methods for Communicating in a Telecommunication Network Using Common Key Routing and Data Locality Tables | |
CN111935285A (en) | Dynamic load balancing method | |
CN111010444A (en) | System and method for realizing Wowza streaming media engine distributed cluster | |
WO2023179786A1 (en) | Capacity expansion method for network address translation gateway, device and storage medium | |
CN111294383B (en) | Internet of things service management system | |
Kulkarni et al. | Managing state for failure resiliency in network function virtualization | |
CN110519397B (en) | A load balancing system and method for NGINX-based SIP terminal access | |
Xu et al. | Supporting multimedia service polymorphism in dynamic and heterogeneous environments | |
US20220103615A1 (en) | Distributed content distribution network | |
Rubambiza et al. | EdgeRDV: A Framework for Edge Workload Management at Scale |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201113 |