Gateway system management method and device and storage medium

By adjusting the service load of the gateway equipment through the management device, the problem of insufficient resource utilization in the event of failure of traditional gateway systems is solved, and energy consumption reduction and load balancing are achieved.

CN119544615APending Publication Date: 2025-02-28HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311134481.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-31
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When the main BNG fails, traditional gateway systems cannot fully utilize the network resources of the backup BNG, resulting in high energy consumption and unreasonable resource allocation.

Method used

Through the management device, the service load of each gateway device is adjusted and network resources are used reasonably. Specific methods include determining the current service load and preset load of each gateway device, generating adjustment strategies to reduce energy consumption or balance load.

Benefits of technology

It realizes the energy consumption reduction and load balancing of the gateway system, improves resource utilization efficiency, and meets users' energy saving and load balancing needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention discloses a management method and device of a gateway system and a storage medium, relates to the technical field of communication, and can reasonably manage network resources of a plurality of gateway devices so as to realize the energy-saving demand and the load balancing demand of a user. The management method of the gateway system comprises the step that the management device responds to management demand information. When the management demand information is an energy-saving demand and the energy consumption of the gateway system is greater than or equal to preset energy consumption, a first adjustment strategy is determined according to the current service load of each gateway device and a first preset load, and the adjusted energy consumption of the gateway system is less than the preset energy consumption; and when the management demand information is a load balancing demand and an avalanche network management device exists in the gateway system, a second adjustment strategy is determined according to the current service load of each gateway device and a second preset load, and the service load of the avalanche network management device in the adjusted gateway system is smaller than the second preset load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a management method, device and storage medium of a gateway system. Background Art

[0002] As Broadband Remote Access Server (BRAS) has flexible access authentication, effective address management, powerful user management, and can provide rich and flexible services and control functions, BRAS is widely used in the network as a type of Broadband Network Gateway (BNG).

[0003] In traditional technology, a gateway system consisting of dual BNG or multiple pairs of dual BNG is usually used. A pair of dual BNG includes: a primary BNG and a backup BNG; the backup BNG backs up the user information in the primary BNG in real time, so that when the primary BNG fails, the backup BNG can take over the services of the primary BNG.

[0004] In the above scenario, when the active BNG fails, the interrupted business can be restored on the backup BNG that has a backup link connection relationship with the active BNG to ensure the reliability of the equipment in the gateway system. However, this method cannot fully utilize the network resources of each BNG, and is prone to problems such as high energy consumption of the gateway system and unreasonable resource allocation. Summary of the invention

[0005] The embodiments of the present application provide a management method, device and storage medium for a gateway system, which can reasonably manage the network resources of multiple gateway devices, thereby achieving the user's energy-saving needs and load balancing needs.

[0006] To achieve the above objectives, the present application provides the following technical solutions:

[0007] In a first aspect, a method for managing a gateway system is provided. The gateway system includes multiple gateway devices; the method can be executed by a management device, or by any gateway device among the multiple gateway devices. The following is an example of the method being executed by a management device. The method includes: the management device responds to management demand information, and adjusts the energy-saving demand or load balancing demand of the gateway system. When the management demand information is an energy-saving demand and the energy consumption of the gateway system is greater than or equal to the preset energy consumption, the current business load of each gateway device is obtained, and according to the current business load of each gateway device and the first preset load, a first adjustment strategy is determined, and the first adjustment strategy is sent to the gateway system; the first preset load is the threshold load when the gateway device is in an energy-saving state; the first adjustment strategy is used to adjust the business load of each gateway device, and the energy consumption of the adjusted gateway system is less than the preset energy consumption; when the management demand information is a load balancing demand, and there is an avalanche network management device in the gateway system, the current business load of each gateway device is obtained, and according to the current business load of each gateway device and the second preset load, a second adjustment strategy is determined, and the second adjustment strategy is sent to the gateway system; the second preset load is the threshold load when the gateway device is in an avalanche state, and the utilization rate of the central processing unit CPU when the gateway device is in an avalanche state is greater than or equal to the preset utilization rate; the second adjustment strategy is used to adjust the business load of each gateway device, and the business load of the avalanche network management device in the adjusted gateway system is less than the second preset load.

[0008] As can be seen from the above, compared with the related art that only considers the use of dual-machine backup to improve the reliability of the gateway system, the technical solution provided in the embodiment of the present application can also respond to the management demand information corresponding to the gateway system, determine the user's energy-saving demand or load balancing demand for the gateway system, and generate a corresponding adjustment strategy. The business load of each gateway device is adjusted by the adjustment strategy, and the network resources of each gateway device are reasonably used to meet the user's energy-saving demand or load balancing demand for the gateway system. Specifically, when the management demand information is an energy-saving demand and the energy consumption of the gateway system is greater than or equal to the preset energy consumption, the management device formulates a corresponding first adjustment strategy and sends the first adjustment strategy to the gateway system to adjust the business load of each gateway device in the gateway device, so that the energy consumption of the adjusted gateway system is less than the preset energy consumption, thereby achieving the purpose of reducing the energy consumption of the gateway system. When the management demand information is a load balancing demand and there is an avalanche network management device in the gateway system, the management device formulates a corresponding second adjustment strategy and sends the second adjustment strategy to the gateway system to adjust the business load of each gateway device in the gateway device, so that the business load of the avalanche network management device in the adjusted gateway system is less than the second preset load, thereby achieving load balancing of the gateway system.

[0009] In one possible implementation, a first adjustment strategy is determined based on the current business load of each gateway device and a first preset load, including: determining a first gateway device in the gateway system that is in an energy-saving state and a second gateway device that is not in an energy-saving state; the current business load of the first gateway device is less than or equal to the first preset load; the current business load of the second gateway device is greater than the first preset load; and determining the first adjustment strategy to adjust the access priority of the first gateway device to be greater than the access priority of the second gateway device.

[0010] As can be seen from the above, by increasing the access priority of the first gateway device, the user device can access the first gateway device preferentially, thereby reducing the service load of the second gateway device, so that the second gateway device can enter the energy-saving state as soon as possible.

[0011] In one possible implementation, a first adjustment strategy is determined based on the current business load of each gateway device and a first preset load, including: determining a first gateway device in the gateway system that is in an energy-saving state and a second gateway device that is not in an energy-saving state; the current business load of the first gateway device is less than or equal to the first preset load; the current business load of the second gateway device is greater than the first preset load; based on the first preset load, the current business load of the first gateway device, and the current business load of the second gateway device, a first load amount is determined, and the first adjustment strategy is determined to transfer the business load on the second gateway device corresponding to the first load amount to the first gateway device according to the first load amount.

[0012] As can be seen from the above, if the second gateway device is not in the energy-saving state, it means that the current business load on the second gateway device is large, and if the first gateway device is in the energy-saving state, it means that the current business load on the first gateway device is small. In order to make the second gateway device also enter the energy-saving state, the management device transfers part of the load on the second gateway device to the first gateway device, and reduces the load of the second gateway device without affecting the energy-saving state of the first gateway device, so that the second gateway device can enter the energy-saving state as soon as possible.

[0013] In one possible implementation, a first load amount is determined based on a first preset load, a current business load of the first gateway device, and a current business load of the second gateway device, including: determining the difference between the first preset load and the current business load of the first gateway device to obtain the load amount that can be undertaken by the first gateway device; determining the difference between the current business load of the second gateway device and the first preset load to obtain the load amount to be transferred by the second gateway device; and determining the first load amount based on the load amount that can be undertaken and the load amount to be transferred.

[0014] From the above, it can be seen that after fully understanding the load that can be undertaken by the first gateway device and the load to be transferred by the second gateway device, the first load suitable for the gateway system can be determined based on the load that can be undertaken and the load to be transferred.

[0015] In one possible implementation, the first load is determined based on the load that can be accepted and the load to be transferred, including: when the load that can be accepted is greater than or equal to the load to be transferred, the load to be transferred is determined as the first load; when the load that can be accepted is less than the load to be transferred, the load that can be accepted is determined as the first load.

[0016] As can be seen from the above, in order to reduce the degree of business load adjustment, the management device can determine the first load amount to the lowest adjustable limit. Specifically, the management device can compare the load amount that can be undertaken with the load amount to be transferred. In the case where the load amount that can be undertaken is greater than or equal to the load amount to be transferred, the management device determines the load amount to be transferred as the first load amount; in the case where the load amount that can be undertaken is less than the load amount to be transferred, the management device determines the load amount that can be undertaken as the first load amount.

[0017] In one possible implementation, a second adjustment strategy is determined based on the current business load of each gateway device and a second preset load, including: determining a third gateway device in an avalanche state and a fourth gateway device that is not in an avalanche state in the gateway system; the current business load of the third gateway device is greater than or equal to the second preset load; the current business load of the fourth gateway device is less than the second preset load; and determining the second adjustment strategy to adjust the access priority of the fourth gateway device to be greater than the access priority of the third gateway device.

[0018] As can be seen from the above, by increasing the access priority of the fourth gateway device, the user device can access the fourth gateway device preferentially, thereby reducing the service load of the third gateway device, so that the third gateway device can get out of the avalanche state as soon as possible.

[0019] In one possible implementation, a second adjustment strategy is determined based on the current business load of each gateway device and a second preset load, including: determining a third gateway device in an avalanche state and a fourth gateway device that is not in an avalanche state in the gateway system; the current business load of the third gateway device is greater than or equal to the second preset load; the current business load of the fourth gateway device is less than the second preset load; based on the second preset load, the current business load of the third gateway device, and the current business load of the fourth gateway device, a second load amount is determined, and the second adjustment strategy is determined to transfer the business load corresponding to the second load amount on the third gateway device to the fourth gateway device according to the second load amount.

[0020] As can be seen from the above, if the third gateway device is in an avalanche state, it indicates that the current business load on the third gateway device is large, and if the fourth gateway device is not in an avalanche state, it indicates that the current business load on the fourth gateway device is small. In order to make the third gateway device get out of the avalanche state as soon as possible, the management device transfers part of the load on the third gateway device to the fourth gateway device, and reduces the load of the third gateway device without affecting the healthy operation of the fourth gateway device, so that the third gateway device can get out of the avalanche state as soon as possible.

[0021] In one possible implementation, the second load amount is determined based on the second preset load, the current business load of the third gateway device, and the current business load of the fourth gateway device, including: determining the difference between the second preset load and the current business load of the fourth gateway device to obtain the load that can be undertaken by the fourth gateway device; determining the difference between the current business load of the third gateway device and the second preset load to obtain the load to be transferred of the third gateway device; determining the second load amount based on the load that can be undertaken and the load to be transferred.

[0022] From the above, it can be seen that after fully understanding the load that can be undertaken by the fourth gateway device and the load to be transferred by the third gateway device, the second load suitable for the gateway system can be determined based on the load that can be undertaken and the load to be transferred.

[0023] In one possible implementation, the second load is determined based on the load that can be accepted and the load to be transferred, including: when the load that can be accepted is greater than or equal to the load to be transferred, the load to be transferred is determined as the second load; when the load that can be accepted is less than the load to be transferred, the load that can be accepted is determined as the second load.

[0024] As can be seen from the above, in order to reduce the degree of business load adjustment, the management device can determine the second load amount to the lowest adjustable limit. Specifically, the management device can compare the load amount that can be undertaken with the load amount to be transferred. In the case where the load amount that can be undertaken is greater than or equal to the load amount to be transferred, the management device determines the load amount to be transferred as the second load amount; in the case where the load amount that can be undertaken is less than the load amount to be transferred, the management device determines the load amount that can be undertaken as the second load amount.

[0025] In one possible implementation, sending a first adjustment strategy to a gateway system includes: obtaining link status information of a first gateway device and link status information of a second gateway device; the link status information is used to reflect whether the link is normal; when the link of the first gateway device is normal and the link of the second gateway device is normal, sending the first adjustment strategy to the gateway system.

[0026] From the above, it can be seen that service switching under energy-saving requirements cannot affect the existing network services. When the dual-machine link access is normal, the management device can issue the first adjustment strategy to start the service switching. If BNG B has a link abnormality, the management device will not issue the first adjustment strategy, that is, the service switching will not be started.

[0027] In one possible implementation, sending a second adjustment strategy to the gateway system includes: obtaining link status information of a third gateway device and link status information of a fourth gateway device; the link status information is used to reflect whether the link is normal; when the link of the third gateway device is normal and the link of the fourth gateway device is normal, sending the second adjustment strategy to the gateway system.

[0028] Similarly, the service switching required by load balancing cannot affect the existing network services. When the dual-machine link access is normal, the management device can issue the second adjustment strategy to start the service switching. If BNG B has a link abnormality, the management device will not issue the second adjustment strategy, that is, the service switching will not be started.

[0029] In one possible implementation, the method also includes: receiving a network service request from a target gateway device; the target gateway device is any gateway device in the gateway system; when the target gateway device is in an energy-saving state, rejecting the network service request; when the target gateway device is not in an energy-saving state, accepting the network service request.

[0030] It can be understood that in order to avoid breaking the minimum energy consumption state of the gateway system, when a new network service is connected to a gateway device, if the gateway device is in an energy-saving state, the management device can reject the network service request of the gateway device, so that the network service request is automatically switched to other gateway devices that are not in an energy-saving state, without affecting the energy-saving state of the gateway device, and the gateway system can also maintain the lowest energy consumption.

[0031] In one possible implementation, the method also includes: receiving a network service request from a target gateway device; the target gateway device is any gateway device in the gateway system; when the target gateway device is in an avalanche state, rejecting the network service request; when the target gateway device is not in an avalanche state, accepting the network service request.

[0032] It can be understood that in order to protect the gateway device in the avalanche state, the management device will reject the network service requests of the gateway device in the avalanche state and accept the network service requests of the gateway device that is not in the avalanche state.

[0033] In the second aspect, a management device for a gateway system is provided. The gateway system includes a plurality of gateway devices; the management device includes a response unit and a processing unit; the response unit is used to respond to management demand information corresponding to the gateway system; the management demand information includes energy-saving demand or load balancing demand; the processing unit is used to obtain the current business load of each gateway device when the management demand information is an energy-saving demand and the energy consumption of the gateway system is greater than or equal to the preset energy consumption, and determine a first adjustment strategy based on the current business load of each gateway device and a first preset load, and send the first adjustment strategy to the gateway system; the first preset load is a threshold load when the gateway device is in an energy-saving state; the first adjustment strategy is used to adjust the business load of each gateway device, and the adjusted The energy consumption of the gateway system is less than the preset energy consumption; the processing unit is also used to obtain the current business load of each gateway device when the management demand information is a load balancing demand and there is an avalanche network management device in the gateway system, and determine the second adjustment strategy according to the current business load of each gateway device and the second preset load, and send the second adjustment strategy to the gateway system; the second preset load is the threshold load when the gateway device is in an avalanche state, and the utilization rate of the central processing unit CPU when the gateway device is in an avalanche state is greater than or equal to the preset utilization rate; the second adjustment strategy is used to adjust the business load of each gateway device, and the business load of the avalanche network management device in the adjusted gateway system is less than the second preset load.

[0034] In one possible implementation, the processing unit is specifically used to: determine a first gateway device in a power-saving state and a second gateway device that is not in a power-saving state in a gateway system; the current business load of the first gateway device is less than or equal to a first preset load; the current business load of the second gateway device is greater than the first preset load; and determine the first adjustment strategy to adjust the access priority of the first gateway device to be greater than the access priority of the second gateway device.

[0035] In one possible implementation, the processing unit is specifically used to: determine a first gateway device in a power-saving state and a second gateway device that is not in a power-saving state in a gateway system; a current business load of the first gateway device is less than or equal to a first preset load; a current business load of the second gateway device is greater than the first preset load; determine a first load amount based on the first preset load, the current business load of the first gateway device, and the current business load of the second gateway device, and determine a first adjustment strategy to transfer the business load on the second gateway device corresponding to the first load amount to the first gateway device according to the first load amount.

[0036] In one possible implementation, the processing unit is specifically used to: determine the difference between a first preset load and a current business load of a first gateway device to obtain an acceptable load amount of the first gateway device; determine the difference between a current business load of a second gateway device and the first preset load to obtain an amount of load to be transferred of the second gateway device; and determine the first load amount based on the amount of load that can be accepted and the amount of load to be transferred.

[0037] In one possible implementation, the processing unit is specifically used to: when the load that can be undertaken is greater than or equal to the load to be transferred, determine the load to be transferred as the first load; when the load that can be undertaken is less than the load to be transferred, determine the load that can be undertaken as the first load.

[0038] In one possible implementation, the processing unit is specifically used to: determine a third gateway device in an avalanche state and a fourth gateway device that is not in an avalanche state in the gateway system; a current business load of the third gateway device is greater than or equal to a second preset load; a current business load of the fourth gateway device is less than the second preset load; and determine the second adjustment strategy to adjust the access priority of the fourth gateway device to be greater than the access priority of the third gateway device.

[0039] In one possible implementation, the processing unit is specifically used to: determine a third gateway device in a gateway system that is in an avalanche state and a fourth gateway device that is not in an avalanche state; a current business load of the third gateway device is greater than or equal to a second preset load; a current business load of the fourth gateway device is less than the second preset load; determine a second load amount based on the second preset load, the current business load of the third gateway device, and the current business load of the fourth gateway device, and determine a second adjustment strategy to transfer the business load corresponding to the second load amount on the third gateway device to the fourth gateway device according to the second load amount.

[0040] In one possible implementation, the processing unit is specifically used to: determine the difference between the second preset load and the current business load of the fourth gateway device to obtain the load that can be undertaken by the fourth gateway device; determine the difference between the current business load of the third gateway device and the second preset load to obtain the load to be transferred of the third gateway device; determine the second load based on the load that can be undertaken and the load to be transferred.

[0041] In one possible implementation, the processing unit is specifically used to: when the load that can be undertaken is greater than or equal to the load to be transferred, determine the load to be transferred as the second load; when the load that can be undertaken is less than the load to be transferred, determine the load that can be undertaken as the second load.

[0042] In one possible implementation, the processing unit is specifically used to: obtain link status information of the first gateway device and link status information of the second gateway device; the link status information is used to reflect whether the link is normal; when the link of the first gateway device is normal and the link of the second gateway device is normal, send a first adjustment strategy to the gateway system.

[0043] In one possible implementation, the processing unit is specifically used to: obtain link status information of the third gateway device and link status information of the fourth gateway device; the link status information is used to reflect whether the link is normal; when the link of the third gateway device is normal and the link of the fourth gateway device is normal, send a second adjustment strategy to the gateway system.

[0044] In one possible implementation, the response unit is also used to: receive a network service request from a target gateway device; the target gateway device is any gateway device in the gateway system; when the target gateway device is in an energy-saving state, reject the network service request; when the target gateway device is not in an energy-saving state, accept the network service request.

[0045] In one possible implementation, the response unit is also used to: receive a network service request from a target gateway device; the target gateway device is any gateway device in the gateway system; when the target gateway device is in an avalanche state, reject the network service request; when the target gateway device is not in an avalanche state, accept the network service request.

[0046] In a third aspect, a management device of a gateway system is provided, the management device comprising: a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to execute instructions so that the gateway device executes the method of the first aspect as described above.

[0047] In a fourth aspect, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the method of the first aspect described above.

[0048] In a fifth aspect, a computer program product is provided. When the computer program product is executed in a storage device, the storage device is caused to execute the method related to the first aspect to implement the method of the first aspect.

[0049] The beneficial effects of the second to fifth aspects mentioned above can be referred to the first aspect and will not be repeated here.

[0050] It should be noted that various possible implementation methods of any one of the above aspects can be combined under the premise that there is no contradiction between the solutions. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 This is a schematic diagram of a BNG dual-machine access scenario;

[0052] Figure 2 One of the structural diagrams of the gateway management system provided in the embodiment of the present application;

[0053] Figure 3 The second structural diagram of the gateway management system provided in the embodiment of the present application;

[0054] Figure 4 One of the flow charts of the gateway system management method provided in the embodiment of the present application;

[0055] Figure 5 A second flowchart of the method for managing a gateway system provided in an embodiment of the present application;

[0056] Figure 6 A third flowchart of the gateway system management method provided in an embodiment of the present application;

[0057] Figure 7 A fourth flowchart of a method for managing a gateway system provided in an embodiment of the present application;

[0058] Figure 8 A fifth flowchart of the method for managing a gateway system provided in an embodiment of the present application;

[0059] Fig. 9 Flow chart six of the gateway system management method provided in the embodiment of the present application;

[0060] Fig.10 A schematic diagram of the composition of a management device provided in an embodiment of the present application;

[0061] Fig.11 A schematic diagram of the hardware structure of a management device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] In the description of this application, unless otherwise specified, " / " indicates that the objects associated with each other are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship between associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.

[0063] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0064] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0065] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0066] It is understood that the "embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments in the entire specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It is understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0067] It can be understood that in the present application, "when" and "if" both mean that corresponding processing will be carried out under certain objective circumstances, and do not limit the time, nor do they require any judgment action when implementing, nor do they mean the existence of other limitations.

[0068] It can be understood that some optional features in the embodiments of the present application may be implemented independently in certain scenarios without relying on other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects, or may be combined with other features according to needs in certain scenarios. Accordingly, the devices provided in the embodiments of the present application may also realize these features or functions accordingly, which will not be elaborated here.

[0069] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In the various embodiments in this application, and the various implementation methods / implementation methods / implementation methods in each embodiment, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their inherent logical relationships. The implementation methods of this application described below do not constitute a limitation on the scope of protection of this application.

[0070] In order to make the embodiments of the present application clearer, some concepts involved in the present application are first briefly introduced.

[0071] 1. Broadband Remote Access Server (BRAS).

[0072] Broadband access server is an access gateway for broadband network applications. It is a bridge between broadband access network and backbone network, providing basic access means and management functions of broadband access network. It is located at the edge of the network, providing broadband access services, realizing the convergence and forwarding of multiple services, and can meet the requirements of different users for transmission capacity and bandwidth utilization. Therefore, it is the core equipment for broadband user access.

[0073] 2. Service Router (SR).

[0074] The service router is an expandable and upgradeable network (Internet) router that can provide Internet services and make the migration of traditional data services possible.

[0075] 3. Broadband network gateway (BNG).

[0076] BRAS and SR are both subdivisions of BNG. BRAS, as a type of BNG, is widely used in networks. In addition, with the improvement of equipment performance, the functions of BRAS and SR can be integrated to form BNG.

[0077] BNG mainly performs two functions: one is the network carrying function: allowing users to access the Internet; the other is the control implementation function: cooperating with the authentication system, billing system, customer management system and service policy control system to realize the authentication, billing and management functions of user access.

[0078] In actual applications, a gateway system consisting of dual BNG or multiple pairs of dual BNGs or a single virtual Broadband Network Gateway (vBNG) can be used. A pair of dual BNGs includes: a primary BNG and a backup BNG; the backup BNG backs up the user information in the primary BNG in real time, so that when the primary BNG fails, the backup BNG can take over the business of the primary BNG. A single vBNG means deploying a vBNG in a virtual machine.

[0079] 4. Backup.

[0080] Backup is a key measure to avoid data loss due to system crash, hardware failure, and human error. Usually, backup includes hot backup and cold backup. Cold backup is an offline backup of the database. Users cannot access the database during the backup process, but cold backup is faster and safer. Hot backup is also called dynamic backup or online backup. This technology can be used to perform backups when the system is running normally, and can back up databases that are being used or edited.

[0081] Traditional broadband access equipment mainly adopts dual-machine hot standby to solve the reliability problem of equipment. It is necessary to configure a backup link between the two devices. The access user data on the main device is transmitted to the backup device in real time through the backup link. The virtual router redundancy protocol (VRRP) is used between the two devices to control the main and backup switching of the equipment. Since there is a fixed backup relationship between the main and backup devices, when the main device fails, the interrupted business can only be restored on the backup device that has a backup link connection relationship with the main device, but not on other idle devices. The requirement of fully utilizing network resources cannot be met, and it is easy to cause problems such as high energy consumption of the gateway system and unreasonable resource allocation.

[0082] like Figure 1 As shown in the figure, a BNG dual-machine access scenario is provided. Among them, BNG 1 and BNG 2 are a pair of dual-machine BNG devices, which are connected to SR at the upper layer and optical line terminal (OLT) at the lower layer. Since the Internet Protocol Core (IP core) is deployed in SR, the dual-machine BNG device can connect each customer premise equipment (CPE) under OLT to the Internet.

[0083] Example 1: With the popularization of the concept of green and low carbon, users have put forward energy-saving requirements for BNG equipment. BNG equipment is also set with energy-saving functions when it leaves the factory. For example, when the BRAS service traffic on the BNG equipment is reduced to 30%, the BNG equipment can start the green energy-saving mode. However, for the above dual-machine access scenario, assuming that the BRAS service traffic currently forwarded by BNG 1 and BNG 2 is 45% and 35% respectively, neither of them can start the green energy-saving mode.

[0084] Example 2: For the above BNG dual-machine access scenario, the services on the access side are usually allocated to different BNG devices according to a fixed load sharing algorithm (such as odd and even MAC load sharing algorithm). This makes it easy for the services on the access side to be hashed and transferred to BNG 1 in some time periods, causing BNG 1 to avalanche and device performance to decline, while BNG2 is relatively idle.

[0085] In summary, in the relevant BNG dual-machine access scenario, the network resources of each BNG cannot be fully utilized, which may easily lead to problems such as high energy consumption of the gateway system and unreasonable resource allocation.

[0086] In view of the above problems, the embodiment of the present application provides a management method for a gateway system, which can respond to the management demand information corresponding to the gateway system, determine the energy-saving demand or load-balancing demand of the user for the gateway system, and generate a corresponding adjustment strategy. The business load of each gateway device is adjusted through the adjustment strategy, and the network resources of each gateway device are reasonably used to meet the energy-saving demand or load-balancing demand of the user for the gateway system.

[0087] The following is a detailed description of the management method of the gateway system provided by the embodiment of the present application in conjunction with the accompanying drawings. It should be noted that the various embodiments of the present application can refer to each other, for example, the same or similar steps, method embodiments, system embodiments and device embodiments can refer to each other without limitation.

[0088] The gateway system management method provided in the embodiment of the present application can be applied to the gateway management system. Figure 2 FIG. 1 shows a schematic diagram of the structure of the gateway management system. Figure 2 As shown, the gateway management system 10 includes a management device 11 and multiple gateway devices 12. The management device 11 is respectively connected to each gateway device 12. The management device 11 and each gateway device 12 can be connected in a wired manner or in a wireless manner, which is not limited in the embodiment of the present application.

[0089] The management device 11 is used to manage each gateway device 12 according to the user's management needs. For example, the management device 11 can adjust the business load of each gateway device by adjusting the strategy, and then reasonably use the network resources of each gateway device to meet the user's energy saving needs or load balancing needs. The specific management process can refer to the management method of the gateway system introduced in the following method embodiment, which will not be repeated here.

[0090] The management device 11 may be an electronic device having a service management function independent of each gateway device 12, or may be any gateway device among the multiple gateway devices 12. For example, the management device 11 may be a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a desktop computer, a cloud server, a BNG, etc. The embodiment of the present application does not limit the specific type of the electronic device.

[0091] The gateway device 12 may be a gateway device of various forms, for example, the gateway device 12 may be a router, CPE, BNG, gateway connector, protocol converter, etc. The embodiment of the present application does not limit the specific type and number of gateway devices. That is, the management method of the gateway system provided in the embodiment of the present application can be applied to Figure 1 The BNG dual-machine access scenario shown can also be applied to multiple BNG access scenarios, and can also be applied to any other multiple gateway device access scenarios.

[0092] Figure 3 The diagram shows a scenario in which the management device 11 is an independent electronic device, wherein the gateway device 12 includes BNG1 and BNG2, BNG1 and BNG2 are connected, BNG1 can be the main BNG, and BNG2 can be the backup BNG corresponding to BNG1. BNG1 and BNG2 are connected to multiple CPEs (such as CPE1, CPE2, and CPE3) through OLT. The management device 11 can be a network control equipment (NCE), which is connected to BNG1 and BNG2 respectively. A network management platform is deployed on the NCE, and BNG1 and BNG2 can be managed through the network management platform.

[0093] To meet energy-saving requirements, NCE can monitor the interfaces of each BNG (including backup interfaces, Virtual Router Redundancy Protocol (VRRP) interfaces, Reliable Broadcast Protocol (RBP) interfaces, etc.) to clarify the service information of each BNG. It can also monitor the power-saving status of each BNG and adjust the access decision of each BNG based on the power-saving status and service information.

[0094] Similarly, under load balancing requirements, NCE can monitor the interfaces of each BNG (including backup interfaces, Virtual Router Redundancy Protocol (VRRP) interfaces, Reliable Broadcast Protocol (RBP) interfaces, etc.) to clarify the business information of each BNG. It can also monitor the avalanche status of each BNG and adjust the access decisions of each BNG based on the avalanche status and business information.

[0095] The application scenarios of the embodiments of the present application are not limited. The system architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. It is known to those skilled in the art that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0096] The execution subject of the management method of the gateway system provided in the embodiment of the present application can be the above-mentioned management device 11. As mentioned above, the management device 11 can be an electronic device independent of each gateway device, or any one of a plurality of gateway devices, or a processor in the aforementioned gateway device (such as a central processing unit (CPU)); or, the management device 11 can also be an application (application, APP) with management functions installed in the aforementioned gateway device; or, the management device 11 can also be a functional module with management functions in the aforementioned gateway device, etc. The embodiment of the present application does not limit this. For the sake of simplicity of description, the management device 11 is uniformly introduced as the execution subject below.

[0097] The following is an introduction to the management method of the gateway system provided in the embodiment of the present application.

[0098] Figure 4 The flowchart of the gateway system management method provided in the embodiment of the present application may include the following steps:

[0099] S201. Respond to the management demand information corresponding to the gateway system.

[0100] The management demand information includes energy saving demand or load balancing demand.

[0101] As a possible implementation method, the operation and maintenance personnel can configure specific management demand information (energy saving demand or load balancing demand) in the management device according to user needs. After the configuration is completed, the management device can respond to the configured management demand information and adjust the energy saving demand or load balancing demand of the gateway system.

[0102] As another possible implementation, the management device may receive management demand information sent by the user to the gateway system, and in response to the management demand information, adjust the energy-saving demand or load balancing demand of the gateway system.

[0103] For example, the user's network traffic drops sharply in the second half of the night. At this time, each gateway device in the gateway system only needs to carry a small amount of forwarding services and meet the normal detection of some users. In order to achieve deep energy saving, the user hopes to reduce the energy consumption of the gateway system as much as possible. Therefore, the management demand information corresponding to the gateway system during the late night period can be configured as energy-saving demand.

[0104] Another example is that the user's network traffic surges in the first half of the night. At this time, some gateway devices in the gateway system need to carry more forwarding services, which may cause equipment avalanche, thus affecting the normal use of users. In order to reduce the business pressure of avalanche devices, users hope that subsequent services will use lightly loaded gateway devices as much as possible to avoid using avalanche devices. Because the management demand information corresponding to the gateway system in the first half of the night can be configured as a load balancing demand.

[0105] S202. When the management demand information is an energy-saving demand and the energy consumption of the gateway system is greater than or equal to the preset energy consumption, obtain the current business load of each gateway device, and determine a first adjustment strategy based on the current business load of each gateway device and the first preset load.

[0106] The first preset load is a threshold load when the gateway device is in an energy-saving state. The first adjustment strategy is used to adjust the service load of each gateway device, and the energy consumption of the adjusted gateway system is less than the preset energy consumption.

[0107] In a possible implementation, in response to energy-saving requirements for the gateway system, the management device monitors the energy consumption of the gateway system in real time. When the energy consumption of the gateway system is greater than or equal to the preset energy consumption, the management device obtains the current service load of each gateway device, and determines the first adjustment strategy based on the current service load of each gateway device and the first preset load. When the energy consumption of the gateway system is less than the preset energy consumption, the management device determines that the gateway system meets the user's energy-saving requirements and does not need to be adjusted.

[0108] It should be noted that the preset energy consumption can be set flexibly, and this application does not limit the specific preset energy consumption.

[0109] For example, the management device can determine the preset energy consumption according to the number of gateway devices in the gateway system and the standard energy consumption of each gateway device in the energy-saving state. For example, if there are 4 BNGs in the gateway system and the standard energy consumption of one BNG in the energy-saving state is 200, the management device can determine the preset energy consumption corresponding to the gateway system as 4*200=800.

[0110] The preset energy consumption may also be set by the user in the management device. For example, the user sets the preset energy consumption to 1000 based on experience. When the energy consumption of the gateway system is greater than or equal to 1000, it is considered necessary to save energy on the gateway system.

[0111] In actual applications, gateway devices are usually configured with a threshold load in an energy-saving state when they leave the factory, that is, when the service load of the gateway device is less than or equal to the first preset load, the gateway device can automatically enter an energy-saving state (such as sleep or low-power operation, etc.), and the energy consumption of the gateway device will be reduced. When the service load of the gateway device is greater than the first preset load, the gateway device is adjusted to a non-energy-saving state (such as a performance model or high-power operation, etc.), and the energy consumption of the gateway device will increase.

[0112] The present application does not limit the specific first adjustment strategy. The basis of the first adjustment strategy is to make as many gateway devices as possible in the gateway system enter the energy-saving state by reasonably adjusting the business load of each gateway device.

[0113] In order to facilitate the determination of the first adjustment strategy, after the management device obtains the current service load of each gateway device, it can compare the current service load of each gateway device with the first preset load to determine the first gateway device in the energy-saving state and the second gateway device that is not in the energy-saving state. The current service load of the first gateway device is less than or equal to the first preset load; the current service load of the second gateway device is greater than the first preset load.

[0114] In a possible implementation manner, the management device may determine the first adjustment strategy to adjust the access priority of the first gateway device to be greater than the access priority of the second gateway device.

[0115] It can be understood that increasing the access priority of the first gateway device can enable the user device to access the first gateway device preferentially, thereby reducing the service load of the second gateway device, so that the second gateway device can enter the energy-saving state as soon as possible.

[0116] In another possible implementation, the management device can also determine the first load amount based on the first preset load, the current business load of the first gateway device, and the current business load of the second gateway device, and determine the first adjustment strategy to transfer the business load corresponding to the first load amount on the second gateway device to the first gateway device according to the first load amount.

[0117] It should be noted that the service load corresponding to the first load amount on the second gateway device may be one service or multiple services, and the embodiment of the present application does not limit the specific services to be transferred.

[0118] It is understandable that if the second gateway device is not in the energy-saving state, it indicates that the current business load on the second gateway device is large, and if the first gateway device is in the energy-saving state, it indicates that the current business load on the first gateway device is small. In order to make the second gateway device also enter the energy-saving state, the management device transfers part of the load on the second gateway device to the first gateway device, and reduces the load of the second gateway device without affecting the energy-saving state of the first gateway device, so that the second gateway device can enter the energy-saving state as soon as possible.

[0119] In another possible implementation, the management device may also determine the first adjustment strategy to transfer the business load corresponding to the first load amount on the second gateway device to the first gateway device according to the first load amount, and adjust the access priority of the first gateway device to be greater than the access priority of the second gateway device.

[0120] S203: Send a first adjustment strategy to the gateway system.

[0121] In a possible implementation, after determining the first adjustment strategy, the management device may send the first adjustment strategy to each gateway device of the gateway system. Accordingly, after receiving the first adjustment strategy, each gateway device may adjust the service according to the content indicated in the first adjustment strategy.

[0122] For example, for the two BNG devices in the BNG dual-machine access system: BNG A and BNG B, before receiving the first adjustment strategy, both are in a non-energy-saving state. After receiving the first adjustment strategy, BNG A transfers its own services or users to be accessed to BNG B, which carries the service forwarding and enters the energy-saving state. Compared with the situation before the adjustment where both BNG A and BNG B are not in an energy-saving state, after the adjustment, BNG A enters an energy-saving state and BNG B is not in an energy-saving state, and the energy consumption of the BNG dual-machine access system is reduced compared with that before the adjustment.

[0123] In another possible implementation, in order not to affect the existing network services, the management device may first obtain the link status information of the first gateway device and the link status information of the second gateway device; the link status information is used to reflect whether the link is normal. When the link of the first gateway device is normal and the link of the second gateway device is normal, the management device sends the first adjustment strategy to the gateway system.

[0124] Figure 5 The process of adjusting the service load of the BNG dual-machine access system under the energy-saving demand is shown. Among them, the BNG dual-machine access system includes BNG A and BNG B, and the management device is NCE. At T1, NCE connects to the BNG dual machines and obtains the energy-saving status of BNG A and BNG B. At T2, BNG A and BNG B are not in the energy-saving state. At T3, NCE obtains the link status of BNG A and BNG B. At T4, BNG A and BNG B feedback the link status to NCE and both are normal. At T5, NCE sends the first control strategy to BNG A, instructing BNG A to adjust the access decision, such as adjusting the VRRP weight of RBPtrack on the access side of BNG A, so that the access priority of BNG A is less than the access priority of BNG B. At this time, the retained services or users of BNG A can be transferred to BNGB, and BNG B will bear the service forwarding, and BNG A will enter the energy-saving state.

[0125] It is understandable that service switching under energy-saving requirements cannot affect the existing network services. When the dual-machine link access is normal, the management device can issue the first adjustment strategy to start the service switching. If BNG B has a link abnormality, the management device will not issue the first adjustment strategy, that is, the service switching will not be started.

[0126] S204. When the management demand information is a load balancing demand and there is an avalanche of network management devices in the gateway system, obtain the current business load of each gateway device, and determine a second adjustment strategy based on the current business load of each gateway device and a second preset load.

[0127] Among them, the second preset load is the threshold load when the gateway device is in an avalanche state; the second adjustment strategy is used to adjust the business load of each gateway device, and the business load of the avalanche network management device in the adjusted gateway system is less than the second preset load.

[0128] In one possible implementation, in response to the load balancing demand for the gateway system, the management device monitors the operating status (including avalanche status or non-avalanche status) of each gateway device in the gateway system in real time. If there is an avalanche network management device in the gateway system, the management device obtains the current business load of each gateway device, and determines the second adjustment strategy based on the current business load of each gateway device and the second preset load. If there is no avalanche network management device in the gateway system, the management device determines that the gateway system meets the user's load balancing requirements and no adjustment is required.

[0129] In actual applications, gateway devices are usually configured with a threshold load in an avalanche state at the factory, that is, when the business load of the gateway device is greater than or equal to the second preset load, the gateway device is in an avalanche state, and the operating pressure of the gateway device is high. For example, when the gateway device is in an avalanche state, the utilization rate of the central processing unit (CPU) is large (usually above 70%), and / or the memory utilization rate is high. Maintaining this state of operation will cause great damage to the hardware of the gateway device (such as memory, CPU, etc.). That is, when the business load of the gateway device is less than the second preset load, the gateway device is in a non-avalanche state, that is, the gateway device can maintain healthy operation.

[0130] The present application does not limit the specific second adjustment strategy. The basis of the second adjustment strategy is to reasonably adjust the business load of each gateway device so that the grid devices in the avalanche state in the gateway system can return to normal as much as possible to avoid equipment damage.

[0131] In order to facilitate the determination of the second adjustment strategy, after the management device obtains the current service load of each gateway device, it can compare the current service load of each gateway device with the second preset load to determine the third gateway device in the avalanche state and the fourth gateway device that is not in the avalanche state. The current service load of the third gateway device is greater than or equal to the second preset load; the current service load of the fourth gateway device is less than the second preset load.

[0132] In a possible implementation manner, the management device may determine the second adjustment strategy to adjust the access priority of the fourth gateway device to be greater than the access priority of the third gateway device.

[0133] It can be understood that increasing the access priority of the fourth gateway device can enable the user device to access the fourth gateway device preferentially, thereby reducing the service load of the third gateway device, so that the third gateway device can get out of the avalanche state as soon as possible.

[0134] In another possible implementation, the management device can also determine the second load amount based on the second preset load, the current business load of the third gateway device, and the current business load of the fourth gateway device, and determine the second adjustment strategy to transfer the business load corresponding to the second load amount on the third gateway device to the fourth gateway device according to the second load amount.

[0135] It is understandable that if the third gateway device is in an avalanche state, it indicates that the current business load on the third gateway device is large, and if the fourth gateway device is not in an avalanche state, it indicates that the current business load on the fourth gateway device is small. In order to make the third gateway device get out of the avalanche state as soon as possible, the management device transfers part of the load on the third gateway device to the fourth gateway device, and reduces the load of the third gateway device without affecting the healthy operation of the fourth gateway device, so that the third gateway device can get out of the avalanche state as soon as possible.

[0136] In another possible implementation, the management device may also determine the first adjustment strategy to transfer the business load corresponding to the second load amount on the third gateway device to the fourth gateway device according to the second load amount, and adjust the access priority of the fourth gateway device to be greater than the access priority of the third gateway device.

[0137] S205: Send a second adjustment strategy to the gateway system.

[0138] In a possible implementation, after determining the second adjustment strategy, the management device may send the second adjustment strategy to each gateway device of the gateway system. Accordingly, after receiving the second adjustment strategy, each gateway device may adjust the service according to the content indicated in the second adjustment strategy.

[0139] For example, for two BNG devices in the BNG dual-machine access system: BNG A and BNG B, before receiving the second adjustment strategy, BNG A is in an avalanche state, and BNG B is normal (i.e., not in an avalanche state). After receiving the second adjustment strategy, BNG A transfers its own services or users to be accessed to BNG B, which carries the service forwarding, and BNG A leaves the avalanche state and resumes normal operation.

[0140] In another possible implementation, in order not to affect the existing network services, the management device may first obtain the link status information of the third gateway device and the link status information of the fourth gateway device; the link status information is used to reflect whether the link is normal. When the link of the third gateway device is normal and the link of the fourth gateway device is normal, the management device sends the second adjustment strategy to the gateway system.

[0141] Figure 6The process of adjusting the service load of the BNG dual-machine access system under the load balancing requirement is shown. The BNG dual-machine access system includes BNG A and BNG B, and the management device is NCE. At T1, NCE connects to the BNG dual machines and obtains the operating status of BNG A and BNG B. At T2, BNG A is in an avalanche state, and BNG B is not in an avalanche state. At T3, NCE obtains the link status of BNG A and BNG B. At T4, BNG A and BNG B feedback the link status to NCE and both are normal. At T5, NCE sends the second control strategy to BNG A, instructing BNG A to adjust the access decision, such as adjusting the VRRP weight of RBPtrack on the access side of BNG A, so that the access priority of BNG A is less than the access priority of BNG B. At this time, the retained services or users of BNG A can be transferred to BNG B, which carries the service forwarding, and BNG A is out of the avalanche state and can operate normally.

[0142] It can be understood that the service switching required by load balancing cannot affect the existing network services. When the dual-machine link access is normal, the management device can issue the second adjustment strategy to start the service switching. If BNG B has a link abnormality, the management device will not issue the second adjustment strategy, that is, the service switching will not be started.

[0143] As can be seen from the above, compared with the related art that only considers the use of dual-machine backup to improve the reliability of the gateway system, the technical solution provided in the embodiment of the present application can also respond to the management demand information corresponding to the gateway system, determine the user's energy-saving demand or load balancing demand for the gateway system, and generate a corresponding adjustment strategy. The business load of each gateway device is adjusted by the adjustment strategy, and the network resources of each gateway device are reasonably used to meet the user's energy-saving demand or load balancing demand for the gateway system. Specifically, when the management demand information is an energy-saving demand and the energy consumption of the gateway system is greater than or equal to the preset energy consumption, the management device formulates a corresponding first adjustment strategy and sends the first adjustment strategy to the gateway system to adjust the business load of each gateway device in the gateway device, so that the energy consumption of the adjusted gateway system is less than the preset energy consumption, thereby achieving the purpose of reducing the energy consumption of the gateway system. When the management demand information is a load balancing demand and there is an avalanche network management device in the gateway system, the management device formulates a corresponding second adjustment strategy and sends the second adjustment strategy to the gateway system to adjust the business load of each gateway device in the gateway device, so that the business load of the avalanche network management device in the adjusted gateway system is less than the second preset load, thereby achieving load balancing of the gateway system.

[0144] In one design, in order to determine the first load, the management device determines the difference between the first preset load and the current service load of the first gateway device to obtain the load that can be undertaken by the first gateway device, and determines the difference between the current service load of the second gateway device and the first preset load to obtain the load to be transferred of the second gateway device. Further, the management device determines the first load based on the load that can be undertaken and the load to be transferred.

[0145] In some embodiments, in order to reduce the degree of business load adjustment, the management device may determine the first load amount to the lowest adjustable limit. Specifically, the management device may compare the load amount that can be undertaken with the load amount to be transferred. When the load amount that can be undertaken is greater than or equal to the load amount to be transferred, the management device determines the load amount to be transferred as the first load amount; when the load amount that can be undertaken is less than the load amount to be transferred, the management device determines the load amount that can be undertaken as the first load amount.

[0146] Exemplarily, the gateway system includes gateway device 1 (current business load is 100), gateway device 2 (current business load is 200) and gateway device 3 (current business load is 500). Assuming that the first preset load is 400, gateway device 1 and gateway device 2 can be used as the first gateway device, and the corresponding load that can be undertaken is (400-100)+(400-200)=500. Gateway device 3 can be used as the second gateway device, and the corresponding load to be transferred is 500-400=100. It can be seen that the load that can be undertaken by the first gateway device is greater than the load to be transferred of the second gateway device, so the load to be transferred of the second gateway device can be transferred to the first gateway device, that is, gateway device 3 transfers the business load of 100 to gateway device 1 and / or gateway device 2. After the transfer, gateway device 3 can enter the energy-saving state, while gateway device 1 and gateway device 2 can still maintain the energy-saving state.

[0147] Similarly, in order to determine the second load, the management device determines the difference between the second preset load and the current service load of the fourth gateway device to obtain the load that can be undertaken by the fourth gateway device, and determines the difference between the current service load of the third gateway device and the second preset load to obtain the load to be transferred of the third gateway device. Further, the management device determines the second load based on the load that can be undertaken and the load to be transferred.

[0148] In some embodiments, the management device may compare the load that can be taken on with the load to be transferred. If the load that can be taken on is greater than or equal to the load to be transferred, the load to be transferred is determined as the second load; if the load that can be taken on is less than the load to be transferred, the load that can be taken on is determined as the second load.

[0149] In one design, in order to ensure the continuity of the first adjustment strategy and meet the energy-saving requirements of the user for the gateway system, Figure 7 As shown, after the above S203, the management method of the gateway system provided in the embodiment of the present application may further include:

[0150] S301: Receive a network service request from a target gateway device.

[0151] The target gateway device is any gateway device in the gateway system.

[0152] In a possible implementation, after each network device in the gateway system adjusts the service load according to the first adjustment strategy, if the target gateway device has a new network service request or a new user accesses, the target gateway device can forward the network service request to the management device. Correspondingly, the management device receives the network service request of the target gateway device and makes corresponding feedback.

[0153] S302: Determine whether the target gateway device is in an energy-saving state.

[0154] In a possible implementation, the target gateway device adds its own energy-saving state information in the network service request to indicate whether it is in an energy-saving state. After receiving the network service request from the target gateway device, the management device parses the network service request to obtain a parsing result, and determines whether the target gateway device is in an energy-saving state according to the parsing result.

[0155] S303: When the target gateway device is in an energy-saving state, reject the network service request.

[0156] In a possible implementation, when the target gateway device is in an energy-saving state, the management device rejects the network service request. Correspondingly, after the request times out, the network service request on the target gateway device can be automatically switched to other gateway devices.

[0157] S304: When the target gateway device is not in a power-saving state, accept the network service request.

[0158] In a possible implementation, when the target gateway device is not in an energy-saving state, the management apparatus accepts a network service request and operates the target gateway device to forward the network service.

[0159] It can be understood that after the gateway system adjusts the business load of each gateway device according to the first adjustment strategy, the energy consumption of the gateway system has reached the minimum energy consumption. In order to avoid breaking the minimum energy consumption state of the gateway system, when a new network service is connected to a gateway device, if the gateway device is in an energy-saving state, the management device can reject the network service request of the gateway device, so that the network service request is automatically switched to other gateway devices that are not in an energy-saving state, without affecting the energy-saving state of the gateway device, and the gateway system can also maintain the minimum energy consumption.

[0160] Taking the BNG dual-machine access system (including BNG A and BNG B) as an example, the management device can be the remote server corresponding to BNG A and BNG B (such as Remote Authentication Dial In User Service (RADIUS) server). BNG can add its own energy-saving status information through the Radius RFC2865 extension protocol. For example, radius attribute 225 can be selected as the BNG extension message and RADIUS server for 3A authentication (including authentication: verifying the user's identity and available network services; authorization: opening network services to users based on authentication results; accounting: recording the user's usage of various network services and providing them to the billing system). Among them, the value in radius attribute 255 is customized 0-1, 0 can represent not being in energy-saving state, and 1 can represent being in energy-saving state. BNG can embed the above radius attribute 255 attributes in the message interacting with the RADIUS server to indicate its own energy-saving state.

[0161] like Figure 8 As shown, assuming that after the above-mentioned BNG dual-machine access system is adjusted according to the first adjustment strategy, BNG A reaches the energy-saving state, and the accounting request message sent by BNG A to the RADIUS server carries radius attribute 255 with a value of 1. After receiving the message, the RADIUS server does not respond to BNG A's request, and automatically switches BNG A's users to BNG B after a timeout. The accounting request message sent by BNG B to the RADIUS server carries radius attribute 255 with a value of 2. After receiving the message, the RADIUS server responds to BNG B's request to authenticate BNG B's accounting request.

[0162] In some embodiments, in order to avoid increasing the pressure on the gateway device in the avalanche state in the gateway system, when a new network service accesses the gateway device in the avalanche state, the management device can reject the network service request of the gateway device.

[0163] Taking the BNG dual-machine access system (including BNG A and BNG B) as an example, the management device can be the remote server corresponding to BNG A and BNG B (such as Remote Authentication Dial In User Service (RADIUS) server). BNG can add its own operating status (including avalanche status or non-avalanche status) through the Radius RFC2865 extension protocol. For example, radius attribute 224 can be selected as the BNG extension message and RADIUS server for 3A authentication. Among them, the value in radius attribute 224 is customized 0-1, 0 can represent not in avalanche state, and 1 can represent in avalanche state. BNG can embed the above-mentioned radius attribute 224 attribute in the message interacting with the RADIUS server to indicate its own operating status.

[0164] like Fig. 9 As shown, assuming the above BNG dual-machine access system, assuming that BNG A is in an avalanche state, the accounting request message sent by BNG A to the RADIUS server carries radius attribute 224, and the value is 1. After receiving the message, the RADIUS server does not respond to BNG A's request, and automatically switches BNG A's users to BNG B after a timeout. The accounting request message sent by BNG B to the RADIUS server carries radius attribute 224, and the value is 0. After receiving the message, the RADIUS server responds to BNG B's request to authenticate BNG B's accounting request.

[0165] The above mainly introduces the scheme of the embodiment of the present application from the perspective of method. It is understandable that, in order to realize the above functions, the management device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0166] The embodiment of the present application can divide the functional units of the management device according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0167] The present application embodiment provides a management device for a gateway system, such as Fig.10 As shown, the management device 40 includes a response unit 401 and a processing unit 402. The response unit 401 is used to respond to the management demand information corresponding to the gateway system; the management demand information includes energy-saving demand or load balancing demand; the processing unit 402 is used to obtain the current business load of each gateway device when the management demand information is an energy-saving demand and the energy consumption of the gateway system is greater than or equal to the preset energy consumption, and determine a first adjustment strategy based on the current business load of each gateway device and the first preset load, and send the first adjustment strategy to the gateway system; the first preset load is the threshold load of the gateway device in the energy-saving state; the first adjustment strategy is used to adjust the business load of each gateway device, and the energy consumption of the adjusted gateway system is less than the preset energy consumption. ; The processing unit 402 is also used to obtain the current business load of each gateway device when the management demand information is a load balancing demand and there is an avalanche network management device in the gateway system, and determine the second adjustment strategy based on the current business load of each gateway device and the second preset load, and send the first adjustment strategy to the gateway system; the second preset load is the threshold load when the gateway device is in an avalanche state, and the utilization rate of the central processing unit CPU when the gateway device is in an avalanche state is greater than or equal to the preset utilization rate; the second adjustment strategy is used to adjust the business load of each gateway device, and the business load of the avalanche network management device in the adjusted gateway system is less than the second preset load.

[0168] In one possible implementation, the processing unit 402 is specifically used to: determine a first gateway device in a power-saving state and a second gateway device that is not in a power-saving state in the gateway system; the current business load of the first gateway device is less than or equal to the first preset load; the current business load of the second gateway device is greater than the first preset load; and determine the first adjustment strategy to adjust the access priority of the first gateway device to be greater than the access priority of the second gateway device.

[0169] In one possible implementation, the processing unit 402 is specifically used to: determine a first gateway device in a power-saving state and a second gateway device that is not in a power-saving state in the gateway system; the current business load of the first gateway device is less than or equal to the first preset load; the current business load of the second gateway device is greater than the first preset load; determine a first load amount based on the first preset load, the current business load of the first gateway device, and the current business load of the second gateway device, and determine a first adjustment strategy to transfer the business load corresponding to the first load amount on the second gateway device to the first gateway device according to the first load amount.

[0170] In one possible implementation, the processing unit 402 is specifically used to: determine the difference between the first preset load and the current business load of the first gateway device to obtain the load that can be borne by the first gateway device; determine the difference between the current business load of the second gateway device and the first preset load to obtain the load to be transferred by the second gateway device; determine the first load based on the load that can be borne and the load to be transferred.

[0171] In one possible implementation, the processing unit 402 is specifically used to: when the load that can be undertaken is greater than or equal to the load to be transferred, determine the load to be transferred as the first load; when the load that can be undertaken is less than the load to be transferred, determine the load that can be undertaken as the first load.

[0172] In one possible implementation, the processing unit 402 is specifically used to: determine a third gateway device in the gateway system that is in an avalanche state and a fourth gateway device that is not in an avalanche state; the current business load of the third gateway device is greater than or equal to the second preset load; the current business load of the fourth gateway device is less than the second preset load; and determine the second adjustment strategy to adjust the access priority of the fourth gateway device to be greater than the access priority of the third gateway device.

[0173] In one possible implementation, the processing unit 402 is specifically used to: determine a third gateway device in the gateway system that is in an avalanche state and a fourth gateway device that is not in an avalanche state; a current business load of the third gateway device is greater than or equal to a second preset load; a current business load of the fourth gateway device is less than the second preset load; determine a second load amount based on the second preset load, the current business load of the third gateway device, and the current business load of the fourth gateway device, and determine the second adjustment strategy to transfer the business load corresponding to the second load amount on the third gateway device to the fourth gateway device according to the second load amount.

[0174] In one possible implementation, the processing unit 402 is specifically used to: determine the difference between the second preset load and the current business load of the fourth gateway device to obtain the load that can be undertaken by the fourth gateway device; determine the difference between the current business load of the third gateway device and the second preset load to obtain the load to be transferred of the third gateway device; determine the second load based on the load that can be undertaken and the load to be transferred.

[0175] In one possible implementation, the processing unit is specifically used to: when the load that can be undertaken is greater than or equal to the load to be transferred, determine the load to be transferred as the second load; when the load that can be undertaken is less than the load to be transferred, determine the load that can be undertaken as the second load.

[0176] In one possible implementation, the processing unit 402 is specifically used to: obtain link status information of the first gateway device and link status information of the second gateway device; the link status information is used to reflect whether the link is normal; when the link of the first gateway device is normal and the link of the second gateway device is normal, send a first adjustment strategy to the gateway system.

[0177] In one possible implementation, the processing unit 402 is specifically used to: obtain link status information of the third gateway device and link status information of the fourth gateway device; the link status information is used to reflect whether the link is normal; when the link of the third gateway device is normal and the link of the fourth gateway device is normal, send a second adjustment strategy to the gateway system.

[0178] In one possible implementation, the response unit 401 is also used to: receive a network service request from a target gateway device; the target gateway device is any gateway device in the gateway system; when the target gateway device is in an energy-saving state, reject the network service request; when the target gateway device is not in an energy-saving state, accept the network service request.

[0179] In one possible implementation, the response unit 401 is also used to: receive a network service request from a target gateway device; the target gateway device is any gateway device in the gateway system; when the target gateway device is in an avalanche state, reject the network service request; when the target gateway device is not in an avalanche state, accept the network service request.

[0180] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides a possible structure of the management device of the gateway system involved in the above-mentioned embodiment. Fig.11As shown, the management device 50 includes: a processor 502 and a bus 504. In some exemplary implementations, the management device 50 may further include a memory 501; optionally, the management device 50 may further include a communication interface 503.

[0181] The processor 502 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present application. The processor 502 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present application. The processor 502 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0182] The communication interface 503 is used to connect with other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0183] The memory 501 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0184] As a possible implementation, the memory 501 may exist independently of the processor 502, and the memory 501 may be connected to the processor 502 via a bus 504 for storing instructions or program codes. When the processor 502 calls and executes the instructions or program codes stored in the memory 501, the management method of the gateway system provided in the embodiment of the present application can be implemented.

[0185] In another possible implementation, the memory 501 may also be integrated with the processor 502 .

[0186] The bus 504 may be an extended industry standard architecture (EISA) bus, etc. The bus 504 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0187] Some embodiments of the present application provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium), which stores computer program instructions. When the computer program instructions are executed on a computer, the computer executes the gateway system management method as described in any of the above embodiments.

[0188] Exemplarily, the above-mentioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks or magnetic tapes, etc.), optical disks (e.g., compact disks (CD), digital versatile disks (DVD), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.). The various computer-readable storage media described in this application may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.

[0189] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the gateway system management method described in any of the above embodiments.

[0190] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A gateway system management method, characterized in that: The gateway system includes a plurality of gateway devices; the method includes: Responding to management demand information corresponding to the gateway system; the management demand information includes energy saving demand or load balancing demand; When the management requirement information is the energy-saving requirement and the energy consumption of the gateway system is greater than or equal to the preset energy consumption, the current service load of each gateway device is obtained, and a first adjustment strategy is determined according to the current service load of each gateway device and a first preset load, and the first adjustment strategy is sent to the gateway system; the first preset load is a threshold load when the gateway device is in an energy-saving state; the first adjustment strategy is used to adjust the service load of each gateway device, and the energy consumption of the adjusted gateway system is less than the preset energy consumption; When the management demand information is the load balancing demand and there is an avalanche network management device in the gateway system, the current business load of each gateway device is obtained, and according to the current business load of each gateway device and the second preset load, a second adjustment strategy is determined, and the second adjustment strategy is sent to the gateway system; the second preset load is the threshold load when the gateway device is in an avalanche state, and the utilization rate of the central processing unit CPU is greater than or equal to the preset utilization rate when the gateway device is in an avalanche state; the second adjustment strategy is used to adjust the business load of each gateway device, and the business load of the avalanche network management device in the adjusted gateway system is less than the second preset load.

2. The method according to claim 1, characterized in that The determining of the first adjustment strategy according to the current service load of each gateway device and the first preset load includes: Determine a first gateway device in the gateway system that is in an energy-saving state and a second gateway device that is not in an energy-saving state; a current service load of the first gateway device is less than or equal to the first preset load, and a current service load of the second gateway device is greater than the first preset load; The first adjustment strategy is determined as: adjusting the access priority of the first gateway device to be greater than the access priority of the second gateway device.

3. The method according to claim 1 or 2, characterized in that: The determining of the first adjustment strategy according to the current service load of each gateway device and the first preset load includes: Determine a first gateway device in the gateway system that is in an energy-saving state and a second gateway device that is not in an energy-saving state; a current service load of the first gateway device is less than or equal to the first preset load, and a current service load of the second gateway device is greater than the first preset load; A first load amount is determined based on the first preset load, the current business load of the first gateway device, and the current business load of the second gateway device, and the first adjustment strategy is determined as: transferring the business load on the second gateway device corresponding to the first load amount to the first gateway device according to the first load amount.

4. The method according to claim 3, characterized in that The determining a first load amount according to the first preset load, the determining a first load according to the first preset load, the current service load of the first gateway device, and the current service load of the second gateway device includes: Determine a difference between the first preset load and the current service load of the first gateway device to obtain an acceptable load of the first gateway device; Determine a difference between a current service load of the second gateway device and the first preset load, and obtain a load amount to be transferred of the second gateway device; The first load capacity is determined according to the load capacity that can be undertaken and the load capacity to be transferred.

5. The method according to claim 4, characterized in that The determining the first load amount according to the load amount that can be undertaken and the load amount to be transferred includes: In the case where the load that can be taken is greater than or equal to the load to be transferred, determining the load to be transferred as the first load; In the case that the load capacity that can be accepted is smaller than the load capacity to be transferred, the load capacity that can be accepted is determined as the first load capacity.

6. The method according to claim 1, characterized in that The determining the second adjustment strategy according to the current service load of each gateway device and the second preset load includes: Determine a third gateway device in an avalanche state and a fourth gateway device in the gateway system that is not in an avalanche state; a current service load of the third gateway device is greater than or equal to the second preset load; and a current service load of the fourth gateway device is less than the second preset load; The second adjustment strategy is determined to adjust the access priority of the fourth gateway device to be greater than the access priority of the third gateway device.

7. The method according to claim 1 or 6, characterized in that: The determining the second adjustment strategy according to the current service load of each gateway device and the second preset load includes: Determine a third gateway device in an avalanche state and a fourth gateway device in the gateway system that is not in an avalanche state; a current service load of the third gateway device is greater than or equal to the second preset load; and a current service load of the fourth gateway device is less than the second preset load; A second load amount is determined based on the second preset load, the current business load of the third gateway device, and the current business load of the fourth gateway device, and the second adjustment strategy is determined to transfer the business load corresponding to the second load amount on the third gateway device to the fourth gateway device according to the second load amount.

8. The method according to claim 7, characterized in that The determining the second load amount according to the second preset load, the current service load of the third gateway device, and the current service load of the fourth gateway device includes: Determine a difference between the second preset load and the current service load of the fourth gateway device to obtain a load that can be undertaken by the fourth gateway device; Determine a difference between a current service load of the third gateway device and the second preset load to obtain a load amount to be transferred of the third gateway device; The second load capacity is determined according to the load capacity that can be undertaken and the load capacity to be transferred.

9. The method according to claim 8, characterized in that The determining the second load amount according to the load amount that can be undertaken and the load amount to be transferred includes: In the case where the load that can be taken is greater than or equal to the load to be transferred, the load to be transferred is determined as the second load; In the case that the acceptable load is less than the load to be transferred, the acceptable load is determined as the second load.

10. The method according to claim 2, characterized in that The sending the first adjustment strategy to the gateway system includes: Acquire link status information of the first gateway device and link status information of the second gateway device; the link status information is used to reflect whether the link is normal; When the link of the first gateway device is normal and the link of the second gateway device is normal, the first adjustment strategy is sent to the gateway system.

11. The method according to claim 6, characterized in that The sending the second adjustment strategy to the gateway system includes: Acquire link status information of the third gateway device and link status information of the fourth gateway device; the link status information is used to reflect whether the link is normal; When the link of the third gateway device is normal and the link of the fourth gateway device is normal, the second adjustment strategy is sent to the gateway system.

12. The method according to claim 10, characterized in that The method further comprises: Receiving a network service request from a target gateway device; the target gateway device is any gateway device in the gateway system; When the target gateway device is in an energy-saving state, rejecting the network service request; When the target gateway device is not in the energy-saving state, the network service request is accepted.

13. The method according to claim 11, characterized in that The method further comprises: Receiving a network service request from a target gateway device; the target gateway device is any gateway device in the gateway system; When the target gateway device is in an avalanche state, rejecting the network service request; When the target gateway device is not in an avalanche state, the network service request is accepted.

14. A management device for a gateway system, characterized in that: The gateway system includes a plurality of gateway devices; the management device includes a response unit and a processing unit; The response unit is used to respond to the management demand information corresponding to the gateway system; the management demand information includes energy saving demand or load balancing demand; The processing unit is used to obtain the current service load of each gateway device when the management demand information is the energy-saving demand and the energy consumption of the gateway system is greater than or equal to the preset energy consumption, and determine a first adjustment strategy according to the current service load of each gateway device and a first preset load, and send the first adjustment strategy to the gateway system; the first preset load is a threshold load when the gateway device is in an energy-saving state; the first adjustment strategy is used to adjust the service load of each gateway device, and the energy consumption of the adjusted gateway system is less than the preset energy consumption; The processing unit is further used for obtaining the current service load of each gateway device when the management demand information is the load balancing demand and there is an avalanche network management device in the gateway system, and determining a second adjustment strategy according to the current service load of each gateway device and a second preset load, and sending the first adjustment strategy to the gateway system; the second preset load is a threshold load when the gateway device is in an avalanche state, and the utilization rate of the central processing unit CPU when the gateway device is in an avalanche state is greater than or equal to the preset utilization rate; The second adjustment strategy is used to adjust the business load of each gateway device, and the business load of the avalanche network management device in the gateway system after adjustment is less than the second preset load.

15. A management device for a gateway system, characterized in that: The management device includes: a processor and a memory for storing instructions executable by the processor; The processor is configured to execute the instructions so that the gateway device performs the method as described in any one of claims 1-13.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 13.